|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+6XX":function(R,D,n){var y=n("y1pI");function f(x){return y(this.__data__,x)>-1}R.exports=f},"+BJd":function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("6MrE"),v=n.n(x)},"+QRC":function(R,D,n){"use strict";var y=n("E9nw"),f={"text/plain":"Text","text/html":"Url",default:"Text"},x="Copy to clipboard: #{key}, Enter";function v(p){var d=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return p.replace(/#{\s*key\s*}/g,d)}function m(p,d){var u,s,i,t,o,e,l=!1;d||(d={}),u=d.debug||!1;try{i=y(),t=document.createRange(),o=document.getSelection(),e=document.createElement("span"),e.textContent=p,e.ariaHidden="true",e.style.all="unset",e.style.position="fixed",e.style.top=0,e.style.clip="rect(0, 0, 0, 0)",e.style.whiteSpace="pre",e.style.webkitUserSelect="text",e.style.MozUserSelect="text",e.style.msUserSelect="text",e.style.userSelect="text",e.addEventListener("copy",function(a){if(a.stopPropagation(),d.format)if(a.preventDefault(),typeof a.clipboardData=="undefined"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var c=f[d.format]||f.default;window.clipboardData.setData(c,p)}else a.clipboardData.clearData(),a.clipboardData.setData(d.format,p);d.onCopy&&(a.preventDefault(),d.onCopy(a.clipboardData))}),document.body.appendChild(e),t.selectNodeContents(e),o.addRange(t);var r=document.execCommand("copy");if(!r)throw new Error("copy command was unsuccessful");l=!0}catch(a){u&&console.error("unable to copy using execCommand: ",a),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(d.format||"text",p),d.onCopy&&d.onCopy(window.clipboardData),l=!0}catch(c){u&&console.error("unable to copy using clipboardData: ",c),u&&console.error("falling back to prompt"),s=v("message"in d?d.message:x),window.prompt(s,p)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(t):o.removeAllRanges()),e&&document.body.removeChild(e),i()}return l}R.exports=m},"+TT/":function(R,D,n){var y=n("bYtY"),f=n("mFDi"),x=n("OELB"),v=x.parsePercent,m=n("7aKB"),p=y.each,d=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function s(A,b,S,E,C){var _=0,T=0;E==null&&(E=Infinity),C==null&&(C=Infinity);var w=0;b.eachChild(function(O,I){var k=O.position,M=O.getBoundingRect(),j=b.childAt(I+1),P=j&&j.getBoundingRect(),X,F;if(A==="horizontal"){var U=M.width+(P?-P.x+M.x:0);X=_+U,X>E||O.newline?(_=0,X=U,T+=w+S,w=M.height):w=Math.max(w,M.height)}else{var K=M.height+(P?-P.y+M.y:0);F=T+K,F>C||O.newline?(_+=w+S,T=0,F=K,w=M.width):w=Math.max(w,M.width)}if(O.newline)return;k[0]=_,k[1]=T,A==="horizontal"?_=X+S:T=F+S})}var i=s,t=y.curry(s,"vertical"),o=y.curry(s,"horizontal");function e(A,b,S){var E=b.width,C=b.height,_=v(A.x,E),T=v(A.y,C),w=v(A.x2,E),O=v(A.y2,C);return(isNaN(_)||isNaN(parseFloat(A.x)))&&(_=0),(isNaN(w)||isNaN(parseFloat(A.x2)))&&(w=E),(isNaN(T)||isNaN(parseFloat(A.y)))&&(T=0),(isNaN(O)||isNaN(parseFloat(A.y2)))&&(O=C),S=m.normalizeCssArray(S||0),{width:Math.max(w-_-S[1]-S[3],0),height:Math.max(O-T-S[0]-S[2],0)}}function l(A,b,S){S=m.normalizeCssArray(S||0);var E=b.width,C=b.height,_=v(A.left,E),T=v(A.top,C),w=v(A.right,E),O=v(A.bottom,C),I=v(A.width,E),k=v(A.height,C),M=S[2]+S[0],j=S[1]+S[3],P=A.aspect;isNaN(I)&&(I=E-w-j-_),isNaN(k)&&(k=C-O-M-T),P!=null&&(isNaN(I)&&isNaN(k)&&(P>E/C?I=E*.8:k=C*.8),isNaN(I)&&(I=P*k),isNaN(k)&&(k=I/P)),isNaN(_)&&(_=E-w-I-j),isNaN(T)&&(T=C-O-k-M);switch(A.left||A.right){case"center":_=E/2-I/2-S[3];break;case"right":_=E-I-j;break}switch(A.top||A.bottom){case"middle":case"center":T=C/2-k/2-S[0];break;case"bottom":T=C-k-M;break}_=_||0,T=T||0,isNaN(I)&&(I=E-j-_-(w||0)),isNaN(k)&&(k=C-M-T-(O||0));var X=new f(_+S[3],T+S[0],I,k);return X.margin=S,X}function r(A,b,S,E,C){var _=!C||!C.hv||C.hv[0],T=!C||!C.hv||C.hv[1],w=C&&C.boundingMode||"all";if(!_&&!T)return;var O;if(w==="raw")O=A.type==="group"?new f(0,0,+b.width||0,+b.height||0):A.getBoundingRect();else if(O=A.getBoundingRect(),A.needLocalTransform()){var I=A.getLocalTransform();O=O.clone(),O.applyTransform(I)}b=l(y.defaults({width:O.width,height:O.height},b),S,E);var k=A.position,M=_?b.x-O.x:0,j=T?b.y-O.y:0;A.attr("position",w==="raw"?[M,j]:[k[0]+M,k[1]+j])}function a(A,b){return A[u[b][0]]!=null||A[u[b][1]]!=null&&A[u[b][2]]!=null}function c(A,b,S){!y.isObject(S)&&(S={});var E=S.ignoreSize;!y.isArray(E)&&(E=[E,E]);var C=T(u[0],0),_=T(u[1],1);I(u[0],A,C),I(u[1],A,_);function T(k,M){var j={},P=0,X={},F=0,U=2;if(p(k,function(V){X[V]=A[V]}),p(k,function(V){w(b,V)&&(j[V]=X[V]=b[V]),O(j,V)&&P++,O(X,V)&&F++}),E[M])return O(b,k[1])?X[k[2]]=null:O(b,k[2])&&(X[k[1]]=null),X;if(F===U||!P)return X;if(P>=U)return j;for(var K=0;K<k.length;K++){var z=k[K];if(!w(j,z)&&w(A,z)){j[z]=A[z];break}}return j}function w(k,M){return k.hasOwnProperty(M)}function O(k,M){return k[M]!=null&&k[M]!=="auto"}function I(k,M,j){p(k,function(P){M[P]=j[P]})}}function h(A){return g({},A)}function g(A,b){return b&&A&&p(d,function(S){b.hasOwnProperty(S)&&(A[S]=b[S])}),A}D.LOCATION_PARAMS=d,D.HV_NAMES=u,D.box=i,D.vbox=t,D.hbox=o,D.getAvailableSize=e,D.getLayoutRect=l,D.positionElement=r,D.sizeCalculable=a,D.mergeLayoutParam=c,D.getLayoutParams=h,D.copyLayoutParams=g},"+Zaj":function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("ugBc")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="CalendarOutlined";var i=v.forwardRef(s);D.default=i},"+d4F":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("y3Yb"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},"+eQT":function(R,D,n){"use strict";var y=n("wd/R"),f=n.n(y),x=n("Kwbf"),v={getNow:function(){return f()()},getWeekDay:function(Tr){var tn=Tr.clone().locale("en_US");return tn.weekday()+tn.localeData().firstDayOfWeek()},getYear:function(Tr){return Tr.year()},getMonth:function(Tr){return Tr.month()},getDate:function(Tr){return Tr.date()},getHour:function(Tr){return Tr.hour()},getMinute:function(Tr){return Tr.minute()},getSecond:function(Tr){return Tr.second()},addYear:function(Tr,tn){var Qr=Tr.clone();return Qr.add(tn,"year")},addMonth:function(Tr,tn){var Qr=Tr.clone();return Qr.add(tn,"month")},addDate:function(Tr,tn){var Qr=Tr.clone();return Qr.add(tn,"day")},setYear:function(Tr,tn){var Qr=Tr.clone();return Qr.year(tn)},setMonth:function(Tr,tn){var Qr=Tr.clone();return Qr.month(tn)},setDate:function(Tr,tn){var Qr=Tr.clone();return Qr.date(tn)},setHour:function(Tr,tn){var Qr=Tr.clone();return Qr.hour(tn)},setMinute:function(Tr,tn){var Qr=Tr.clone();return Qr.minute(tn)},setSecond:function(Tr,tn){var Qr=Tr.clone();return Qr.second(tn)},isAfter:function(Tr,tn){return Tr.isAfter(tn)},isValidate:function(Tr){return Tr.isValid()},locale:{getWeekFirstDay:function(Tr){var tn=f()().locale(Tr);return tn.localeData().firstDayOfWeek()},getWeek:function(Tr,tn){var Qr=tn.clone(),Jn=Qr.locale(Tr);return Jn.week()},getShortWeekDays:function(Tr){var tn=f()().locale(Tr);return tn.localeData().weekdaysMin()},getShortMonths:function(Tr){var tn=f()().locale(Tr);return tn.localeData().monthsShort()},format:function(Tr,tn,Qr){var Jn=tn.clone(),fn=Jn.locale(Tr);return fn.format(Qr)},parse:function(Tr,tn,Qr){for(var Jn=[],fn=0;fn<Qr.length;fn+=1){var Xr=Qr[fn],ii=tn;if(Xr.includes("wo")||Xr.includes("Wo")){Xr=Xr.replace(/wo/g,"w").replace(/Wo/g,"W");var nn=Xr.match(/[-YyMmDdHhSsWwGg]+/g),Wn=ii.match(/[-\d]+/g);nn&&Wn?(Xr=nn.join(""),ii=Wn.join("")):Jn.push(Xr.replace(/o/g,""))}var li=f()(ii,Xr,Tr,!0);if(li.isValid())return li}for(var ci=0;ci<Jn.length;ci+=1){var si=f()(tn,Jn[ci],Tr,!1);if(si.isValid())return Object(x.b)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),si}return null}}},m=v,p=n("pVnL"),d=n.n(p),u=n("q1tI"),s=n.n(u),i=n("2/Rp");function t(mt){return u.createElement(i.a,d()({size:"small",type:"primary"},mt))}var o=n("mr32");function e(mt){return u.createElement(o.a,d()({color:"blue"},mt))}var l=n("lSNA"),r=n.n(l),a=n("lwsE"),c=n.n(a),h=n("W8MJ"),g=n.n(h),A=n("7W2i"),b=n.n(A),S=n("LQ03"),E=n.n(S),C=n("TSYQ"),_=n.n(C),T=n("r/2G"),w=n.n(T),O=n("XzQk"),I=n.n(O),k=n("kbBi"),M=n.n(k),j=n("1OyB"),P=n("vuIU"),X=n("Ji7U"),F=n("LK+K"),U=n("rePB"),K=n("VTBJ"),z=n("ODXe"),V=n("6cGi"),Q=n("U8pU"),G=n("4IlW"),te=u.createContext({}),q=te,se={visibility:"hidden"};function re(mt){var Tr=mt.prefixCls,tn=mt.prevIcon,Qr=tn===void 0?"\u2039":tn,Jn=mt.nextIcon,fn=Jn===void 0?"\u203A":Jn,Xr=mt.superPrevIcon,ii=Xr===void 0?"\xAB":Xr,nn=mt.superNextIcon,Wn=nn===void 0?"\xBB":nn,li=mt.onSuperPrev,ci=mt.onSuperNext,si=mt.onPrev,Ci=mt.onNext,gi=mt.children,Ai=u.useContext(q),Ni=Ai.hideNextBtn,ia=Ai.hidePrevBtn;return u.createElement("div",{className:Tr},li&&u.createElement("button",{type:"button",onClick:li,tabIndex:-1,className:"".concat(Tr,"-super-prev-btn"),style:ia?se:{}},ii),si&&u.createElement("button",{type:"button",onClick:si,tabIndex:-1,className:"".concat(Tr,"-prev-btn"),style:ia?se:{}},Qr),u.createElement("div",{className:"".concat(Tr,"-view")},gi),Ci&&u.createElement("button",{type:"button",onClick:Ci,tabIndex:-1,className:"".concat(Tr,"-next-btn"),style:Ni?se:{}},fn),ci&&u.createElement("button",{type:"button",onClick:ci,tabIndex:-1,className:"".concat(Tr,"-super-next-btn"),style:Ni?se:{}},Wn))}var xe=re;function Oe(mt){var Tr=u.useContext(q),tn=Tr.hideHeader;if(tn)return null;var Qr=mt.prefixCls,Jn=mt.generateConfig,fn=mt.locale,Xr=mt.value,ii=mt.format,nn="".concat(Qr,"-header");return u.createElement(xe,{prefixCls:nn},Xr?Jn.locale.format(fn.locale,Xr,ii):"\xA0")}var Me=Oe,Qe=n("YrtM"),Ve=n("KQm4"),ut=new Map;function Fe(mt,Tr,tn){if(ut.get(mt)&&cancelAnimationFrame(ut.get(mt)),tn<=0){ut.set(mt,requestAnimationFrame(function(){mt.scrollTop=Tr}));return}var Qr=Tr-mt.scrollTop,Jn=Qr/tn*10;ut.set(mt,requestAnimationFrame(function(){mt.scrollTop+=Jn,mt.scrollTop!==Tr&&Fe(mt,Tr,tn-10)}))}function ue(mt,Tr){var tn=Tr.onLeftRight,Qr=Tr.onCtrlLeftRight,Jn=Tr.onUpDown,fn=Tr.onPageUpDown,Xr=Tr.onEnter,ii=mt.which,nn=mt.ctrlKey,Wn=mt.metaKey;switch(ii){case G.a.LEFT:if(nn||Wn){if(Qr)return Qr(-1),!0}else if(tn)return tn(-1),!0;break;case G.a.RIGHT:if(nn||Wn){if(Qr)return Qr(1),!0}else if(tn)return tn(1),!0;break;case G.a.UP:if(Jn)return Jn(-1),!0;break;case G.a.DOWN:if(Jn)return Jn(1),!0;break;case G.a.PAGE_UP:if(fn)return fn(-1),!0;break;case G.a.PAGE_DOWN:if(fn)return fn(1),!0;break;case G.a.ENTER:if(Xr)return Xr(),!0;break}return!1}function et(mt,Tr,tn,Qr){var Jn=mt;if(!Jn)switch(Tr){case"time":Jn=Qr?"hh:mm:ss a":"HH:mm:ss";break;case"week":Jn="gggg-wo";break;case"month":Jn="YYYY-MM";break;case"quarter":Jn="YYYY-[Q]Q";break;case"year":Jn="YYYY";break;default:Jn=tn?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Jn}function he(mt,Tr){var tn=mt==="time"?8:10;return Math.max(tn,Tr.length)+2}var J=null,Y=new Set;function $(mt){return!J&&typeof window!="undefined"&&window.addEventListener&&(J=function(tn){Object(Ve.a)(Y).forEach(function(Qr){Qr(tn)})},window.addEventListener("mousedown",J)),Y.add(mt),function(){Y.delete(mt),Y.size===0&&(window.removeEventListener("mousedown",J),J=null)}}var de=function(Tr){return Tr==="month"||Tr==="date"?"year":Tr},be=function(Tr){return Tr==="date"?"month":Tr},Ce=function(Tr){return Tr==="month"||Tr==="date"?"quarter":Tr},Be=function(Tr){return Tr==="date"?"week":Tr},fe={year:de,month:be,quarter:Ce,week:Be,time:null,date:null};function we(mt,Tr){return mt.some(function(tn){return tn&&tn.contains(Tr)})}function Re(mt){var Tr=mt.prefixCls,tn=mt.units,Qr=mt.onSelect,Jn=mt.value,fn=mt.active,Xr=mt.hideDisabledOptions,ii="".concat(Tr,"-cell"),nn=u.useContext(q),Wn=nn.open,li=u.useRef(null),ci=u.useRef(new Map);return u.useLayoutEffect(function(){var si=ci.current.get(Jn);si&&Wn!==!1&&Fe(li.current,si.offsetTop,120)},[Jn]),u.useLayoutEffect(function(){if(Wn){var si=ci.current.get(Jn);si&&Fe(li.current,si.offsetTop,0)}},[Wn]),u.createElement("ul",{className:_()("".concat(Tr,"-column"),Object(U.a)({},"".concat(Tr,"-column-active"),fn)),ref:li,style:{position:"relative"}},tn.map(function(si){var Ci;return Xr&&si.disabled?null:u.createElement("li",{key:si.value,ref:function(Ai){ci.current.set(si.value,Ai)},className:_()(ii,(Ci={},Object(U.a)(Ci,"".concat(ii,"-disabled"),si.disabled),Object(U.a)(Ci,"".concat(ii,"-selected"),Jn===si.value),Ci)),onClick:function(){if(si.disabled)return;Qr(si.value)}},u.createElement("div",{className:"".concat(ii,"-inner")},si.label))}))}var rt=Re;function St(mt,Tr){for(var tn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Qr=String(mt);Qr.length<Tr;)Qr="".concat(tn).concat(mt);return Qr}var ft=function(){for(var Tr=arguments.length,tn=new Array(Tr),Qr=0;Qr<Tr;Qr++)tn[Qr]=arguments[Qr];return tn};function He(mt){return mt==null?[]:Array.isArray(mt)?mt:[mt]}function er(mt){var Tr={};return Object.keys(mt).forEach(function(tn){(tn.substr(0,5)==="data-"||tn.substr(0,5)==="aria-"||tn==="role"||tn==="name")&&tn.substr(0,7)!=="data-__"&&(Tr[tn]=mt[tn])}),Tr}function ct(mt,Tr){return mt?mt[Tr]:null}function Kt(mt,Tr,tn){var Qr=[ct(mt,0),ct(mt,1)];return Qr[tn]=typeof Tr=="function"?Tr(Qr[tn]):Tr,!Qr[0]&&!Qr[1]?null:Qr}function fr(mt,Tr,tn,Qr,Jn){var fn=mt.setHour(Tr,tn);return fn=mt.setMinute(fn,Qr),fn=mt.setSecond(fn,Jn),fn}function Gt(mt,Tr,tn,Qr,Jn,fn){var Xr=Math.floor(mt/Qr)*Qr;if(Xr<mt)return[Xr,60-Jn,60-fn];var ii=Math.floor(Tr/Jn)*Jn;if(ii<Tr)return[Xr,ii,60-fn];var nn=Math.floor(tn/fn)*fn;return[Xr,ii,nn]}function Pt(mt,Tr){if(mt.length!==Tr.length)return!0;for(var tn=0;tn<mt.length;tn+=1)if(mt[tn].disabled!==Tr[tn].disabled)return!0;return!1}function Xt(mt,Tr,tn,Qr){for(var Jn=[],fn=mt;fn<=Tr;fn+=tn)Jn.push({label:St(fn,2),value:fn,disabled:(Qr||[]).includes(fn)});return Jn}function Ge(mt){var Tr=mt.generateConfig,tn=mt.prefixCls,Qr=mt.operationRef,Jn=mt.activeColumnIndex,fn=mt.value,Xr=mt.showHour,ii=mt.showMinute,nn=mt.showSecond,Wn=mt.use12Hours,li=mt.hourStep,ci=li===void 0?1:li,si=mt.minuteStep,Ci=si===void 0?1:si,gi=mt.secondStep,Ai=gi===void 0?1:gi,Ni=mt.disabledHours,ia=mt.disabledMinutes,Ki=mt.disabledSeconds,fa=mt.hideDisabledOptions,Ya=mt.onSelect,xa=[],wa="".concat(tn,"-content"),Da="".concat(tn,"-time-panel"),ja,ko=fn?Tr.getHour(fn):-1,ro=fn?Tr.getMinute(fn):-1,pa=fn?Tr.getSecond(fn):-1,Ea=function(Ao,$a,ss,_s){var Fo=fn||Tr.getNow(),il=Math.max(0,$a),Eo=Math.max(0,ss),zo=Math.max(0,_s);return Fo=fr(Tr,Fo,!Wn||!Ao?il:il+12,Eo,zo),Fo},Fa=Xt(0,23,ci,Ni&&Ni()),Ka=Object(Qe.a)(function(){return Fa},Fa,Pt);Wn&&(ja=ko>=12,ko%=12);var lo=u.useMemo(function(){if(!Wn)return[!1,!1];var co=[!0,!0];return Ka.forEach(function(Ao){var $a=Ao.disabled,ss=Ao.value;if($a)return;ss>=12?co[1]=!1:co[0]=!1}),co},[Wn,Ka]),so=Object(z.a)(lo,2),Co=so[0],Lo=so[1],is=u.useMemo(function(){return Wn?Ka.filter(ja?function(co){return co.value>=12}:function(co){return co.value<12}).map(function(co){var Ao=co.value%12,$a=Ao===0?"12":St(Ao,2);return Object(K.a)(Object(K.a)({},co),{},{label:$a,value:Ao})}):Ka},[Wn,Ka]),cs=Xt(0,59,Ci,ia&&ia(ko)),Rs=Xt(0,59,Ai,Ki&&Ki(ko,ro));Qr.current={onUpDown:function(Ao){var $a=xa[Jn];if($a)for(var ss=$a.units.findIndex(function(Eo){return Eo.value===$a.value}),_s=$a.units.length,Fo=1;Fo<_s;Fo+=1){var il=$a.units[(ss+Ao*Fo+_s)%_s];if(il.disabled!==!0){$a.onSelect(il.value);break}}}};function Ko(co,Ao,$a,ss,_s){co!==!1&&xa.push({node:u.cloneElement(Ao,{prefixCls:Da,value:$a,active:Jn===xa.length,onSelect:_s,units:ss,hideDisabledOptions:fa}),onSelect:_s,value:$a,units:ss})}Ko(Xr,u.createElement(rt,{key:"hour"}),ko,is,function(co){Ya(Ea(ja,co,ro,pa),"mouse")}),Ko(ii,u.createElement(rt,{key:"minute"}),ro,cs,function(co){Ya(Ea(ja,ko,co,pa),"mouse")}),Ko(nn,u.createElement(rt,{key:"second"}),pa,Rs,function(co){Ya(Ea(ja,ko,ro,co),"mouse")});var as=-1;return typeof ja=="boolean"&&(as=ja?1:0),Ko(Wn===!0,u.createElement(rt,{key:"12hours"}),as,[{label:"AM",value:0,disabled:Co},{label:"PM",value:1,disabled:Lo}],function(co){Ya(Ea(!!co,ko,ro,pa),"mouse")}),u.createElement("div",{className:wa},xa.map(function(co){var Ao=co.node;return Ao}))}var pe=Ge,oe=function(Tr){return Tr.filter(function(tn){return tn!==!1}).length};function lt(mt){var Tr=mt.generateConfig,tn=mt.format,Qr=tn===void 0?"HH:mm:ss":tn,Jn=mt.prefixCls,fn=mt.active,Xr=mt.operationRef,ii=mt.showHour,nn=mt.showMinute,Wn=mt.showSecond,li=mt.use12Hours,ci=li===void 0?!1:li,si=mt.onSelect,Ci=mt.value,gi="".concat(Jn,"-time-panel"),Ai=u.useRef(),Ni=u.useState(-1),ia=Object(z.a)(Ni,2),Ki=ia[0],fa=ia[1],Ya=oe([ii,nn,Wn,ci]);return Xr.current={onKeyDown:function(wa){return ue(wa,{onLeftRight:function(ja){fa((Ki+ja+Ya)%Ya)},onUpDown:function(ja){Ki===-1?fa(0):Ai.current&&Ai.current.onUpDown(ja)},onEnter:function(){si(Ci||Tr.getNow(),"key"),fa(-1)}})},onBlur:function(){fa(-1)}},u.createElement("div",{className:_()(gi,Object(U.a)({},"".concat(gi,"-active"),fn))},u.createElement(Me,Object.assign({},mt,{format:Qr,prefixCls:Jn})),u.createElement(pe,Object.assign({},mt,{prefixCls:Jn,activeColumnIndex:Ki,operationRef:Ai})))}var qe=lt,ge=7;function Ht(mt,Tr){return!mt&&!Tr?!0:!mt||!Tr?!1:void 0}function vr(mt,Tr,tn){var Qr=Ht(Tr,tn);if(typeof Qr=="boolean")return Qr;var Jn=Math.floor(mt.getYear(Tr)/10),fn=Math.floor(mt.getYear(tn)/10);return Jn===fn}function At(mt,Tr,tn){var Qr=Ht(Tr,tn);return typeof Qr=="boolean"?Qr:mt.getYear(Tr)===mt.getYear(tn)}function ir(mt,Tr){var tn=Math.floor(mt.getMonth(Tr)/3);return tn+1}function lr(mt,Tr,tn){var Qr=Ht(Tr,tn);return typeof Qr=="boolean"?Qr:At(mt,Tr,tn)&&ir(mt,Tr)===ir(mt,tn)}function dn(mt,Tr,tn){var Qr=Ht(Tr,tn);return typeof Qr=="boolean"?Qr:At(mt,Tr,tn)&&mt.getMonth(Tr)===mt.getMonth(tn)}function Ft(mt,Tr,tn){var Qr=Ht(Tr,tn);return typeof Qr=="boolean"?Qr:mt.getYear(Tr)===mt.getYear(tn)&&mt.getMonth(Tr)===mt.getMonth(tn)&&mt.getDate(Tr)===mt.getDate(tn)}function ur(mt,Tr,tn){var Qr=Ht(Tr,tn);return typeof Qr=="boolean"?Qr:mt.getHour(Tr)===mt.getHour(tn)&&mt.getMinute(Tr)===mt.getMinute(tn)&&mt.getSecond(Tr)===mt.getSecond(tn)}function Jt(mt,Tr,tn,Qr){var Jn=Ht(tn,Qr);return typeof Jn=="boolean"?Jn:mt.locale.getWeek(Tr,tn)===mt.locale.getWeek(Tr,Qr)}function pt(mt,Tr,tn){return Ft(mt,Tr,tn)&&ur(mt,Tr,tn)}function at(mt,Tr,tn,Qr){return!Tr||!tn||!Qr?!1:!Ft(mt,Tr,Qr)&&!Ft(mt,tn,Qr)&&mt.isAfter(Qr,Tr)&&mt.isAfter(tn,Qr)}function Pr(mt,Tr,tn){var Qr=Tr.locale.getWeekFirstDay(mt),Jn=Tr.setDate(tn,1),fn=Tr.getWeekDay(Jn),Xr=Tr.addDate(Jn,Qr-fn);return Tr.getMonth(Xr)===Tr.getMonth(tn)&&Tr.getDate(Xr)>1&&(Xr=Tr.addDate(Xr,-7)),Xr}function un(mt,Tr,tn){var Qr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Tr){case"year":return tn.addYear(mt,Qr*10);case"quarter":case"month":return tn.addYear(mt,Qr);default:return tn.addMonth(mt,Qr)}}var _n=u.createContext({}),Xn=_n;function xi(mt){var Tr=mt.cellPrefixCls,tn=mt.generateConfig,Qr=mt.rangedValue,Jn=mt.hoverRangedValue,fn=mt.isInView,Xr=mt.isSameCell,ii=mt.offsetCell,nn=mt.today,Wn=mt.value;function li(ci){var si,Ci=ii(ci,-1),gi=ii(ci,1),Ai=ct(Qr,0),Ni=ct(Qr,1),ia=ct(Jn,0),Ki=ct(Jn,1),fa=at(tn,ia,Ki,ci);function Ya(ro){return Xr(Ai,ro)}function xa(ro){return Xr(Ni,ro)}var wa=Xr(ia,ci),Da=Xr(Ki,ci),ja=(fa||Da)&&(!fn(Ci)||xa(Ci)),ko=(fa||wa)&&(!fn(gi)||Ya(gi));return si={},Object(U.a)(si,"".concat(Tr,"-in-view"),fn(ci)),Object(U.a)(si,"".concat(Tr,"-in-range"),at(tn,Ai,Ni,ci)),Object(U.a)(si,"".concat(Tr,"-range-start"),Ya(ci)),Object(U.a)(si,"".concat(Tr,"-range-end"),xa(ci)),Object(U.a)(si,"".concat(Tr,"-range-start-single"),Ya(ci)&&!Ni),Object(U.a)(si,"".concat(Tr,"-range-end-single"),xa(ci)&&!Ai),Object(U.a)(si,"".concat(Tr,"-range-start-near-hover"),Ya(ci)&&(Xr(Ci,ia)||at(tn,ia,Ki,Ci))),Object(U.a)(si,"".concat(Tr,"-range-end-near-hover"),xa(ci)&&(Xr(gi,Ki)||at(tn,ia,Ki,gi))),Object(U.a)(si,"".concat(Tr,"-range-hover"),fa),Object(U.a)(si,"".concat(Tr,"-range-hover-start"),wa),Object(U.a)(si,"".concat(Tr,"-range-hover-end"),Da),Object(U.a)(si,"".concat(Tr,"-range-hover-edge-start"),ja),Object(U.a)(si,"".concat(Tr,"-range-hover-edge-end"),ko),Object(U.a)(si,"".concat(Tr,"-range-hover-edge-start-near-range"),ja&&Xr(Ci,Ni)),Object(U.a)(si,"".concat(Tr,"-range-hover-edge-end-near-range"),ko&&Xr(gi,Ai)),Object(U.a)(si,"".concat(Tr,"-today"),Xr(nn,ci)),Object(U.a)(si,"".concat(Tr,"-selected"),Xr(Wn,ci)),si}return li}function Pn(mt){for(var Tr=mt.prefixCls,tn=mt.disabledDate,Qr=mt.onSelect,Jn=mt.rowNum,fn=mt.colNum,Xr=mt.prefixColumn,ii=mt.rowClassName,nn=mt.baseDate,Wn=mt.getCellClassName,li=mt.getCellText,ci=mt.getCellNode,si=mt.getCellDate,Ci=mt.titleCell,gi=mt.headerCells,Ai=u.useContext(q),Ni=Ai.onDateMouseEnter,ia=Ai.onDateMouseLeave,Ki="".concat(Tr,"-cell"),fa=[],Ya=0;Ya<Jn;Ya+=1){for(var xa=[],wa=void 0,Da=function(ro){var pa=Ya*fn+ro,Ea=si(nn,pa),Fa=tn&&tn(Ea);ro===0&&(wa=Ea,Xr&&xa.push(Xr(wa))),xa.push(u.createElement("td",{key:ro,title:Ci&&Ci(Ea),className:_()(Ki,Object(K.a)(Object(U.a)({},"".concat(Ki,"-disabled"),Fa),Wn(Ea))),onClick:function(){Fa||Qr(Ea)},onMouseEnter:function(){!Fa&&Ni&&Ni(Ea)},onMouseLeave:function(){!Fa&&ia&&ia(Ea)}},ci?ci(Ea):u.createElement("div",{className:"".concat(Ki,"-inner")},li(Ea))))},ja=0;ja<fn;ja+=1)Da(ja);fa.push(u.createElement("tr",{key:Ya,className:ii&&ii(wa)},xa))}return u.createElement("div",{className:"".concat(Tr,"-body")},u.createElement("table",{className:"".concat(Tr,"-content")},gi&&u.createElement("thead",null,u.createElement("tr",null,gi)),u.createElement("tbody",null,fa)))}function Un(mt){var Tr=mt.prefixCls,tn=mt.generateConfig,Qr=mt.prefixColumn,Jn=mt.locale,fn=mt.rowCount,Xr=mt.viewDate,ii=mt.value,nn=mt.dateRender,Wn=u.useContext(Xn),li=Wn.rangedValue,ci=Wn.hoverRangedValue,si=Pr(Jn.locale,tn,Xr),Ci="".concat(Tr,"-cell"),gi=tn.locale.getWeekFirstDay(Jn.locale),Ai=tn.getNow(),Ni=[],ia=Jn.shortWeekDays||(tn.locale.getShortWeekDays?tn.locale.getShortWeekDays(Jn.locale):[]);Qr&&Ni.push(u.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Ki=0;Ki<ge;Ki+=1)Ni.push(u.createElement("th",{key:Ki},ia[(Ki+gi)%ge]));var fa=xi({cellPrefixCls:Ci,today:Ai,value:ii,generateConfig:tn,rangedValue:Qr?null:li,hoverRangedValue:Qr?null:ci,isSameCell:function(wa,Da){return Ft(tn,wa,Da)},isInView:function(wa){return dn(tn,wa,Xr)},offsetCell:function(wa,Da){return tn.addDate(wa,Da)}}),Ya=nn?function(xa){return nn(xa,Ai)}:void 0;return u.createElement(Pn,Object.assign({},mt,{rowNum:fn,colNum:ge,baseDate:si,getCellNode:Ya,getCellText:tn.getDate,getCellClassName:fa,getCellDate:tn.addDate,titleCell:function(wa){return tn.locale.format(Jn.locale,wa,"YYYY-MM-DD")},headerCells:Ni}))}var $t=Un;function xt(mt){var Tr=mt.prefixCls,tn=mt.generateConfig,Qr=mt.locale,Jn=mt.viewDate,fn=mt.onNextMonth,Xr=mt.onPrevMonth,ii=mt.onNextYear,nn=mt.onPrevYear,Wn=mt.onYearClick,li=mt.onMonthClick,ci=u.useContext(q),si=ci.hideHeader;if(si)return null;var Ci="".concat(Tr,"-header"),gi=Qr.shortMonths||(tn.locale.getShortMonths?tn.locale.getShortMonths(Qr.locale):[]),Ai=tn.getMonth(Jn),Ni=u.createElement("button",{type:"button",key:"year",onClick:Wn,tabIndex:-1,className:"".concat(Tr,"-year-btn")},tn.locale.format(Qr.locale,Jn,Qr.yearFormat)),ia=u.createElement("button",{type:"button",key:"month",onClick:li,tabIndex:-1,className:"".concat(Tr,"-month-btn")},Qr.monthFormat?tn.locale.format(Qr.locale,Jn,Qr.monthFormat):gi[Ai]),Ki=Qr.monthBeforeYear?[ia,Ni]:[Ni,ia];return u.createElement(xe,Object.assign({},mt,{prefixCls:Ci,onSuperPrev:nn,onPrev:Xr,onNext:fn,onSuperNext:ii}),Ki)}var De=xt,ke=6;function Pe(mt){var Tr=mt.prefixCls,tn=mt.panelName,Qr=tn===void 0?"date":tn,Jn=mt.keyboardConfig,fn=mt.active,Xr=mt.operationRef,ii=mt.generateConfig,nn=mt.value,Wn=mt.viewDate,li=mt.onViewDateChange,ci=mt.onPanelChange,si=mt.onSelect,Ci="".concat(Tr,"-").concat(Qr,"-panel");Xr.current={onKeyDown:function(ia){return ue(ia,Object(K.a)({onLeftRight:function(fa){si(ii.addDate(nn||Wn,fa),"key")},onCtrlLeftRight:function(fa){si(ii.addYear(nn||Wn,fa),"key")},onUpDown:function(fa){si(ii.addDate(nn||Wn,fa*ge),"key")},onPageUpDown:function(fa){si(ii.addMonth(nn||Wn,fa),"key")}},Jn))}};var gi=function(ia){var Ki=ii.addYear(Wn,ia);li(Ki),ci(null,Ki)},Ai=function(ia){var Ki=ii.addMonth(Wn,ia);li(Ki),ci(null,Ki)};return u.createElement("div",{className:_()(Ci,Object(U.a)({},"".concat(Ci,"-active"),fn))},u.createElement(De,Object.assign({},mt,{prefixCls:Tr,value:nn,viewDate:Wn,onPrevYear:function(){gi(-1)},onNextYear:function(){gi(1)},onPrevMonth:function(){Ai(-1)},onNextMonth:function(){Ai(1)},onMonthClick:function(){ci("month",Wn)},onYearClick:function(){ci("year",Wn)}})),u.createElement($t,Object.assign({},mt,{onSelect:function(ia){return si(ia,"mouse")},prefixCls:Tr,value:nn,viewDate:Wn,rowCount:ke})))}var tt=Pe;function yt(mt,Tr,tn){if(!tn)return Tr;var Qr=Tr;return Qr=mt.setHour(Qr,mt.getHour(tn)),Qr=mt.setMinute(Qr,mt.getMinute(tn)),Qr=mt.setSecond(Qr,mt.getSecond(tn)),Qr}var Et=ft("date","time");function Yt(mt){var Tr=mt.prefixCls,tn=mt.operationRef,Qr=mt.generateConfig,Jn=mt.value,fn=mt.defaultValue,Xr=mt.disabledTime,ii=mt.showTime,nn=mt.onSelect,Wn="".concat(Tr,"-datetime-panel"),li=u.useState(null),ci=Object(z.a)(li,2),si=ci[0],Ci=ci[1],gi=u.useRef({}),Ai=u.useRef({}),Ni=Object(Q.a)(ii)==="object"?Object(K.a)({},ii):{};function ia(xa){var wa=Et.indexOf(si)+xa,Da=Et[wa]||null;return Da}var Ki=function(wa){Ai.current.onBlur&&Ai.current.onBlur(wa),Ci(null)};tn.current={onKeyDown:function(wa){if(wa.which===G.a.TAB){var Da=ia(wa.shiftKey?-1:1);return Ci(Da),Da&&wa.preventDefault(),!0}if(si){var ja=si==="date"?gi:Ai;return ja.current&&ja.current.onKeyDown&&ja.current.onKeyDown(wa),!0}return[G.a.LEFT,G.a.RIGHT,G.a.UP,G.a.DOWN].includes(wa.which)?(Ci("date"),!0):!1},onBlur:Ki,onClose:Ki};var fa=function(wa,Da){var ja=wa;Da==="date"&&!Jn&&Ni.defaultValue?(ja=Qr.setHour(ja,Qr.getHour(Ni.defaultValue)),ja=Qr.setMinute(ja,Qr.getMinute(Ni.defaultValue)),ja=Qr.setSecond(ja,Qr.getSecond(Ni.defaultValue))):Da==="time"&&!Jn&&fn&&(ja=Qr.setYear(ja,Qr.getYear(fn)),ja=Qr.setMonth(ja,Qr.getMonth(fn)),ja=Qr.setDate(ja,Qr.getDate(fn))),nn&&nn(ja,"mouse")},Ya=Xr?Xr(Jn||null):{};return u.createElement("div",{className:_()(Wn,Object(U.a)({},"".concat(Wn,"-active"),si))},u.createElement(tt,Object.assign({},mt,{operationRef:gi,active:si==="date",onSelect:function(wa){fa(yt(Qr,wa,ii&&Object(Q.a)(ii)==="object"?ii.defaultValue:null),"date")}})),u.createElement(qe,Object.assign({},mt,{format:void 0},Ni,Ya,{defaultValue:void 0,operationRef:Ai,active:si==="time",onSelect:function(wa){fa(wa,"time")}})))}var Rr=Yt;function zr(mt){var Tr=mt.prefixCls,tn=mt.generateConfig,Qr=mt.locale,Jn=mt.value,fn="".concat(Tr,"-cell"),Xr=function(li){return u.createElement("td",{key:"week",className:_()(fn,"".concat(fn,"-week"))},tn.locale.getWeek(Qr.locale,li))},ii="".concat(Tr,"-week-panel-row"),nn=function(li){return _()(ii,Object(U.a)({},"".concat(ii,"-selected"),Jt(tn,Qr.locale,Jn,li)))};return u.createElement(tt,Object.assign({},mt,{panelName:"week",prefixColumn:Xr,rowClassName:nn,keyboardConfig:{onLeftRight:null}}))}var hn=zr;function jt(mt){var Tr=mt.prefixCls,tn=mt.generateConfig,Qr=mt.locale,Jn=mt.viewDate,fn=mt.onNextYear,Xr=mt.onPrevYear,ii=mt.onYearClick,nn=u.useContext(q),Wn=nn.hideHeader;if(Wn)return null;var li="".concat(Tr,"-header");return u.createElement(xe,Object.assign({},mt,{prefixCls:li,onSuperPrev:Xr,onSuperNext:fn}),u.createElement("button",{type:"button",onClick:ii,className:"".concat(Tr,"-year-btn")},tn.locale.format(Qr.locale,Jn,Qr.yearFormat)))}var vt=jt,bt=3,cr=4;function Qt(mt){var Tr=mt.prefixCls,tn=mt.locale,Qr=mt.value,Jn=mt.viewDate,fn=mt.generateConfig,Xr=mt.monthCellRender,ii=u.useContext(Xn),nn=ii.rangedValue,Wn=ii.hoverRangedValue,li="".concat(Tr,"-cell"),ci=xi({cellPrefixCls:li,value:Qr,generateConfig:fn,rangedValue:nn,hoverRangedValue:Wn,isSameCell:function(Ni,ia){return dn(fn,Ni,ia)},isInView:function(){return!0},offsetCell:function(Ni,ia){return fn.addMonth(Ni,ia)}}),si=tn.shortMonths||(fn.locale.getShortMonths?fn.locale.getShortMonths(tn.locale):[]),Ci=fn.setMonth(Jn,0),gi=Xr?function(Ai){return Xr(Ai,tn)}:void 0;return u.createElement(Pn,Object.assign({},mt,{rowNum:cr,colNum:bt,baseDate:Ci,getCellNode:gi,getCellText:function(Ni){return tn.monthFormat?fn.locale.format(tn.locale,Ni,tn.monthFormat):si[fn.getMonth(Ni)]},getCellClassName:ci,getCellDate:fn.addMonth,titleCell:function(Ni){return fn.locale.format(tn.locale,Ni,"YYYY-MM")}}))}var Mt=Qt;function tr(mt){var Tr=mt.prefixCls,tn=mt.operationRef,Qr=mt.onViewDateChange,Jn=mt.generateConfig,fn=mt.value,Xr=mt.viewDate,ii=mt.onPanelChange,nn=mt.onSelect,Wn="".concat(Tr,"-month-panel");tn.current={onKeyDown:function(si){return ue(si,{onLeftRight:function(gi){nn(Jn.addMonth(fn||Xr,gi),"key")},onCtrlLeftRight:function(gi){nn(Jn.addYear(fn||Xr,gi),"key")},onUpDown:function(gi){nn(Jn.addMonth(fn||Xr,gi*bt),"key")},onEnter:function(){ii("date",fn||Xr)}})}};var li=function(si){var Ci=Jn.addYear(Xr,si);Qr(Ci),ii(null,Ci)};return u.createElement("div",{className:Wn},u.createElement(vt,Object.assign({},mt,{prefixCls:Tr,onPrevYear:function(){li(-1)},onNextYear:function(){li(1)},onYearClick:function(){ii("year",Xr)}})),u.createElement(Mt,Object.assign({},mt,{prefixCls:Tr,onSelect:function(si){nn(si,"mouse"),ii("date",si)}})))}var Rt=tr;function qt(mt){var Tr=mt.prefixCls,tn=mt.generateConfig,Qr=mt.locale,Jn=mt.viewDate,fn=mt.onNextYear,Xr=mt.onPrevYear,ii=mt.onYearClick,nn=u.useContext(q),Wn=nn.hideHeader;if(Wn)return null;var li="".concat(Tr,"-header");return u.createElement(xe,Object.assign({},mt,{prefixCls:li,onSuperPrev:Xr,onSuperNext:fn}),u.createElement("button",{type:"button",onClick:ii,className:"".concat(Tr,"-year-btn")},tn.locale.format(Qr.locale,Jn,Qr.yearFormat)))}var Hr=qt,Nr=4,Dr=1;function cn(mt){var Tr=mt.prefixCls,tn=mt.locale,Qr=mt.value,Jn=mt.viewDate,fn=mt.generateConfig,Xr=u.useContext(Xn),ii=Xr.rangedValue,nn=Xr.hoverRangedValue,Wn="".concat(Tr,"-cell"),li=xi({cellPrefixCls:Wn,value:Qr,generateConfig:fn,rangedValue:ii,hoverRangedValue:nn,isSameCell:function(Ci,gi){return lr(fn,Ci,gi)},isInView:function(){return!0},offsetCell:function(Ci,gi){return fn.addMonth(Ci,gi*3)}}),ci=fn.setDate(fn.setMonth(Jn,0),1);return u.createElement(Pn,Object.assign({},mt,{rowNum:Dr,colNum:Nr,baseDate:ci,getCellText:function(Ci){return fn.locale.format(tn.locale,Ci,tn.quarterFormat||"[Q]Q")},getCellClassName:li,getCellDate:function(Ci,gi){return fn.addMonth(Ci,gi*3)},titleCell:function(Ci){return fn.locale.format(tn.locale,Ci,"YYYY-[Q]Q")}}))}var An=cn;function ri(mt){var Tr=mt.prefixCls,tn=mt.operationRef,Qr=mt.onViewDateChange,Jn=mt.generateConfig,fn=mt.value,Xr=mt.viewDate,ii=mt.onPanelChange,nn=mt.onSelect,Wn="".concat(Tr,"-quarter-panel");tn.current={onKeyDown:function(si){return ue(si,{onLeftRight:function(gi){nn(Jn.addMonth(fn||Xr,gi*3),"key")},onCtrlLeftRight:function(gi){nn(Jn.addYear(fn||Xr,gi),"key")},onUpDown:function(gi){nn(Jn.addYear(fn||Xr,gi),"key")}})}};var li=function(si){var Ci=Jn.addYear(Xr,si);Qr(Ci),ii(null,Ci)};return u.createElement("div",{className:Wn},u.createElement(Hr,Object.assign({},mt,{prefixCls:Tr,onPrevYear:function(){li(-1)},onNextYear:function(){li(1)},onYearClick:function(){ii("year",Xr)}})),u.createElement(An,Object.assign({},mt,{prefixCls:Tr,onSelect:function(si){nn(si,"mouse")}})))}var $n=ri;function fi(mt){var Tr=mt.prefixCls,tn=mt.generateConfig,Qr=mt.viewDate,Jn=mt.onPrevDecade,fn=mt.onNextDecade,Xr=mt.onDecadeClick,ii=u.useContext(q),nn=ii.hideHeader;if(nn)return null;var Wn="".concat(Tr,"-header"),li=tn.getYear(Qr),ci=Math.floor(li/je)*je,si=ci+je-1;return u.createElement(xe,Object.assign({},mt,{prefixCls:Wn,onSuperPrev:Jn,onSuperNext:fn}),u.createElement("button",{type:"button",onClick:Xr,className:"".concat(Tr,"-decade-btn")},ci,"-",si))}var _i=fi,Di=3,Wi=4;function it(mt){var Tr=mt.prefixCls,tn=mt.value,Qr=mt.viewDate,Jn=mt.locale,fn=mt.generateConfig,Xr=u.useContext(Xn),ii=Xr.rangedValue,nn=Xr.hoverRangedValue,Wn="".concat(Tr,"-cell"),li=fn.getYear(Qr),ci=Math.floor(li/je)*je,si=ci+je-1,Ci=fn.setYear(Qr,ci-Math.ceil((Di*Wi-je)/2)),gi=function(ia){var Ki=fn.getYear(ia);return ci<=Ki&&Ki<=si},Ai=xi({cellPrefixCls:Wn,value:tn,generateConfig:fn,rangedValue:ii,hoverRangedValue:nn,isSameCell:function(ia,Ki){return At(fn,ia,Ki)},isInView:gi,offsetCell:function(ia,Ki){return fn.addYear(ia,Ki)}});return u.createElement(Pn,Object.assign({},mt,{rowNum:Wi,colNum:Di,baseDate:Ci,getCellText:fn.getYear,getCellClassName:Ai,getCellDate:fn.addYear,titleCell:function(ia){return fn.locale.format(Jn.locale,ia,"YYYY")}}))}var Le=it,je=10;function Xe(mt){var Tr=mt.prefixCls,tn=mt.operationRef,Qr=mt.onViewDateChange,Jn=mt.generateConfig,fn=mt.value,Xr=mt.viewDate,ii=mt.sourceMode,nn=mt.onSelect,Wn=mt.onPanelChange,li="".concat(Tr,"-year-panel");tn.current={onKeyDown:function(Ci){return ue(Ci,{onLeftRight:function(Ai){nn(Jn.addYear(fn||Xr,Ai),"key")},onCtrlLeftRight:function(Ai){nn(Jn.addYear(fn||Xr,Ai*je),"key")},onUpDown:function(Ai){nn(Jn.addYear(fn||Xr,Ai*Di),"key")},onEnter:function(){Wn(ii==="date"?"date":"month",fn||Xr)}})}};var ci=function(Ci){var gi=Jn.addYear(Xr,Ci*10);Qr(gi),Wn(null,gi)};return u.createElement("div",{className:li},u.createElement(_i,Object.assign({},mt,{prefixCls:Tr,onPrevDecade:function(){ci(-1)},onNextDecade:function(){ci(1)},onDecadeClick:function(){Wn("decade",Xr)}})),u.createElement(Le,Object.assign({},mt,{prefixCls:Tr,onSelect:function(Ci){Wn(ii==="date"?"date":"month",Ci),nn(Ci,"mouse")}})))}var nt=Xe;function Ze(mt){var Tr=mt.prefixCls,tn=mt.generateConfig,Qr=mt.viewDate,Jn=mt.onPrevDecades,fn=mt.onNextDecades,Xr=u.useContext(q),ii=Xr.hideHeader;if(ii)return null;var nn="".concat(Tr,"-header"),Wn=tn.getYear(Qr),li=Math.floor(Wn/mn)*mn,ci=li+mn-1;return u.createElement(xe,Object.assign({},mt,{prefixCls:nn,onSuperPrev:Jn,onSuperNext:fn}),li,"-",ci)}var ot=Ze,Ct=3,gt=4;function pr(mt){var Tr=Yr-1,tn=mt.prefixCls,Qr=mt.viewDate,Jn=mt.generateConfig,fn=mt.disabledDate,Xr="".concat(tn,"-cell"),ii=Jn.getYear(Qr),nn=Math.floor(ii/Yr)*Yr,Wn=Math.floor(ii/mn)*mn,li=Wn+mn-1,ci=Jn.setYear(Qr,Wn-Math.ceil((Ct*gt*Yr-mn)/2)),si=function(gi){var Ai,Ni=fn&&fn(gi),ia=Jn.getYear(gi),Ki=ia+Tr;return Ai={},Object(U.a)(Ai,"".concat(Xr,"-disabled"),Ni),Object(U.a)(Ai,"".concat(Xr,"-in-view"),Wn<=ia&&Ki<=li),Object(U.a)(Ai,"".concat(Xr,"-selected"),ia===nn),Ai};return u.createElement(Pn,Object.assign({},mt,{rowNum:gt,colNum:Ct,baseDate:ci,getCellText:function(gi){var Ai=Jn.getYear(gi);return"".concat(Ai,"-").concat(Ai+Tr)},getCellClassName:si,getCellDate:function(gi,Ai){return Jn.addYear(gi,Ai*Yr)}}))}var $r=pr,Yr=10,mn=Yr*10;function Ar(mt){var Tr=mt.prefixCls,tn=mt.onViewDateChange,Qr=mt.generateConfig,Jn=mt.viewDate,fn=mt.operationRef,Xr=mt.onSelect,ii=mt.onPanelChange,nn="".concat(Tr,"-decade-panel");fn.current={onKeyDown:function(si){return ue(si,{onLeftRight:function(gi){Xr(Qr.addYear(Jn,gi*Yr),"key")},onCtrlLeftRight:function(gi){Xr(Qr.addYear(Jn,gi*mn),"key")},onUpDown:function(gi){Xr(Qr.addYear(Jn,gi*Yr*Ct),"key")},onEnter:function(){ii("year",Jn)}})}};var Wn=function(si){var Ci=Qr.addYear(Jn,si*mn);tn(Ci),ii(null,Ci)},li=function(si){Xr(si,"mouse"),ii("year",si)};return u.createElement("div",{className:nn},u.createElement(ot,Object.assign({},mt,{prefixCls:Tr,onPrevDecades:function(){Wn(-1)},onNextDecades:function(){Wn(1)}})),u.createElement($r,Object.assign({},mt,{prefixCls:Tr,onSelect:li})))}var zn=Ar;function Fr(mt,Tr,tn){return tn?u.createElement("div",{className:"".concat(mt,"-footer-extra")},tn(Tr)):null}function Bn(mt){var Tr=mt.prefixCls,tn=mt.rangeList,Qr=tn===void 0?[]:tn,Jn=mt.components,fn=Jn===void 0?{}:Jn,Xr=mt.needConfirmButton,ii=mt.onNow,nn=mt.onOk,Wn=mt.okDisabled,li=mt.showNow,ci=mt.locale,si,Ci;if(Qr.length){var gi=fn.rangeItem||"span";si=u.createElement(u.Fragment,null,Qr.map(function(Ni){var ia=Ni.label,Ki=Ni.onClick,fa=Ni.onMouseEnter,Ya=Ni.onMouseLeave;return u.createElement("li",{key:ia,className:"".concat(Tr,"-preset")},u.createElement(gi,{onClick:Ki,onMouseEnter:fa,onMouseLeave:Ya},ia))}))}if(Xr){var Ai=fn.button||"button";ii&&!si&&li!==!1&&(si=u.createElement("li",{className:"".concat(Tr,"-now")},u.createElement("a",{className:"".concat(Tr,"-now-btn"),onClick:ii},ci.now))),Ci=Xr&&u.createElement("li",{className:"".concat(Tr,"-ok")},u.createElement(Ai,{disabled:Wn,onClick:nn},ci.ok))}return!si&&!Ci?null:u.createElement("ul",{className:"".concat(Tr,"-ranges")},si,Ci)}function bn(mt){var Tr,tn=mt.prefixCls,Qr=tn===void 0?"rc-picker":tn,Jn=mt.className,fn=mt.style,Xr=mt.locale,ii=mt.generateConfig,nn=mt.value,Wn=mt.defaultValue,li=mt.pickerValue,ci=mt.defaultPickerValue,si=mt.disabledDate,Ci=mt.mode,gi=mt.picker,Ai=gi===void 0?"date":gi,Ni=mt.tabIndex,ia=Ni===void 0?0:Ni,Ki=mt.showNow,fa=mt.showTime,Ya=mt.showToday,xa=mt.renderExtraFooter,wa=mt.hideHeader,Da=mt.onSelect,ja=mt.onChange,ko=mt.onPanelChange,ro=mt.onMouseDown,pa=mt.onPickerValueChange,Ea=mt.onOk,Fa=mt.components,Ka=mt.direction,lo=mt.hourStep,so=lo===void 0?1:lo,Co=mt.minuteStep,Lo=Co===void 0?1:Co,is=mt.secondStep,cs=is===void 0?1:is,Rs=Ai==="date"&&!!fa||Ai==="time",Ko=24%so===0,as=60%Lo===0,co=60%cs===0,Ao=u.useContext(q),$a=Ao.operationRef,ss=Ao.panelRef,_s=Ao.onSelect,Fo=Ao.hideRanges,il=Ao.defaultOpenValue,Eo=u.useContext(Xn),zo=Eo.inRange,Fs=Eo.panelPosition,ms=Eo.rangedValue,hs=Eo.hoverRangedValue,wn=u.useRef({}),Ns=u.useRef(!0),Ll=Object(V.a)(null,{value:nn,defaultValue:Wn,postState:function(vi){return!vi&&il&&Ai==="time"?il:vi}}),el=Object(z.a)(Ll,2),Gs=el[0],ds=el[1],ks=Object(V.a)(null,{value:li,defaultValue:ci||Gs,postState:function(vi){return vi||ii.getNow()}}),Qs=Object(z.a)(ks,2),tl=Qs[0],xs=Qs[1],Bs=function(vi){xs(vi),pa&&pa(vi)},al=function(vi){var Qi=fe[Ai];return Qi?Qi(vi):vi},Js=Object(V.a)(function(){return Ai==="time"?"time":al("date")},{value:Ci}),Vo=Object(z.a)(Js,2),No=Vo[0],fs=Vo[1];u.useEffect(function(){fs(Ai)},[Ai]);var Ds=u.useState(function(){return No}),go=Object(z.a)(Ds,2),Ut=go[0],or=go[1],Nn=function(vi,Qi){var sa=al(vi||No);or(No),fs(sa),ko&&(No!==sa||pt(ii,tl,tl))&&ko(Qi,sa)},hi=function(vi,Qi){var sa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(No===Ai||sa)&&(ds(vi),Da&&Da(vi),_s&&_s(vi,Qi),ja&&!pt(ii,vi,Gs)&&ja(vi))},Nt=function(vi){return wn.current&&wn.current.onKeyDown?([G.a.LEFT,G.a.RIGHT,G.a.UP,G.a.DOWN,G.a.PAGE_UP,G.a.PAGE_DOWN,G.a.ENTER].includes(vi.which)&&vi.preventDefault(),wn.current.onKeyDown(vi)):(Object(x.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},ce=function(vi){wn.current&&wn.current.onBlur&&wn.current.onBlur(vi)};$a&&Fs!=="right"&&($a.current={onKeyDown:Nt,onClose:function(){wn.current&&wn.current.onClose&&wn.current.onClose()}}),u.useEffect(function(){nn&&!Ns.current&&xs(nn)},[nn]),u.useEffect(function(){Ns.current=!1},[]);var Se,Ie=Object(K.a)(Object(K.a)({},mt),{},{operationRef:wn,prefixCls:Qr,viewDate:tl,value:Gs,onViewDateChange:Bs,sourceMode:Ut,onPanelChange:Nn,disabledDate:No!=="decade"?si:void 0});delete Ie.onChange,delete Ie.onSelect;switch(No){case"decade":Se=u.createElement(zn,Object.assign({},Ie,{onSelect:function(vi,Qi){Bs(vi),hi(vi,Qi)}}));break;case"year":Se=u.createElement(nt,Object.assign({},Ie,{onSelect:function(vi,Qi){Bs(vi),hi(vi,Qi)}}));break;case"month":Se=u.createElement(Rt,Object.assign({},Ie,{onSelect:function(vi,Qi){Bs(vi),hi(vi,Qi)}}));break;case"quarter":Se=u.createElement($n,Object.assign({},Ie,{onSelect:function(vi,Qi){Bs(vi),hi(vi,Qi)}}));break;case"week":Se=u.createElement(hn,Object.assign({},Ie,{onSelect:function(vi,Qi){Bs(vi),hi(vi,Qi)}}));break;case"time":delete Ie.showTime,Se=u.createElement(qe,Object.assign({},Ie,Object(Q.a)(fa)==="object"?fa:null,{onSelect:function(vi,Qi){Bs(vi),hi(vi,Qi)}}));break;default:fa?Se=u.createElement(Rr,Object.assign({},Ie,{onSelect:function(vi,Qi){Bs(vi),hi(vi,Qi)}})):Se=u.createElement(tt,Object.assign({},Ie,{onSelect:function(vi,Qi){Bs(vi),hi(vi,Qi)}}))}var Je,Dt,sr=function(){var vi=ii.getNow(),Qi=Gt(ii.getHour(vi),ii.getMinute(vi),ii.getSecond(vi),Ko?so:1,as?Lo:1,co?cs:1),sa=fr(ii,vi,Qi[0],Qi[1],Qi[2]);hi(sa,"submit")};Fo||(Je=Fr(Qr,No,xa),Dt=Bn({prefixCls:Qr,components:Fa,needConfirmButton:Rs,okDisabled:!Gs||si&&si(Gs),locale:Xr,showNow:Ki,onNow:Rs&&sr,onOk:function(){Gs&&(hi(Gs,"submit",!0),Ea&&Ea(Gs))}}));var Jr;if(Ya&&No==="date"&&Ai==="date"&&!fa){var gn=ii.getNow(),Dn="".concat(Qr,"-today-btn"),ui=si&&si(gn);Jr=u.createElement("a",{className:_()(Dn,ui&&"".concat(Dn,"-disabled")),"aria-disabled":ui,onClick:function(){ui||hi(gn,"mouse",!0)}},Xr.today)}return u.createElement(q.Provider,{value:Object(K.a)(Object(K.a)({},Ao),{},{hideHeader:"hideHeader"in mt?wa:Ao.hideHeader,hidePrevBtn:zo&&Fs==="right",hideNextBtn:zo&&Fs==="left"})},u.createElement("div",{tabIndex:ia,className:_()("".concat(Qr,"-panel"),Jn,(Tr={},Object(U.a)(Tr,"".concat(Qr,"-panel-has-range"),ms&&ms[0]&&ms[1]),Object(U.a)(Tr,"".concat(Qr,"-panel-has-range-hover"),hs&&hs[0]&&hs[1]),Object(U.a)(Tr,"".concat(Qr,"-panel-rtl"),Ka==="rtl"),Tr)),style:fn,onKeyDown:Nt,onBlur:ce,onMouseDown:ro,ref:ss},Se,Je||Dt||Jr?u.createElement("div",{className:"".concat(Qr,"-footer")},Je,Dt,Jr):null))}var en=bn,ti=n("JX7q"),pi=n("i8i4"),Pi=n.n(pi),qr=n("l4aY"),En=n("m+aA"),Yn=n("c+Xe"),zt=n("zT1h"),Ot=n("QC+M");function kt(mt,Tr,tn){return tn?mt[0]===Tr[0]:mt[0]===Tr[0]&&mt[1]===Tr[1]}function Bt(mt,Tr,tn){var Qr=mt[Tr]||{};return Object(K.a)(Object(K.a)({},Qr),tn)}function Wt(mt,Tr,tn,Qr){for(var Jn=tn.points,fn=Object.keys(mt),Xr=0;Xr<fn.length;Xr+=1){var ii=fn[Xr];if(kt(mt[ii].points,Jn,Qr))return"".concat(Tr,"-placement-").concat(ii)}return""}var Lt=n("Ff2n"),dr=n("xEkU"),yr=n.n(dr),br=n("9mu1"),Mr=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function Gn(mt,Tr){var tn={};return tn[mt.toLowerCase()]=Tr.toLowerCase(),tn["Webkit".concat(mt)]="webkit".concat(Tr),tn["Moz".concat(mt)]="moz".concat(Tr),tn["ms".concat(mt)]="MS".concat(Tr),tn["O".concat(mt)]="o".concat(Tr.toLowerCase()),tn}function Mn(mt,Tr){var tn={animationend:Gn("Animation","AnimationEnd"),transitionend:Gn("Transition","TransitionEnd")};return mt&&("AnimationEvent"in Tr||delete tn.animationend.animation,"TransitionEvent"in Tr||delete tn.transitionend.transition),tn}var di=Mn(Mr,typeof window!="undefined"?window:{}),vn={};if(Mr){var Ur=document.createElement("div");vn=Ur.style}var In={};function Qn(mt){if(In[mt])return In[mt];var Tr=di[mt];if(Tr)for(var tn=Object.keys(Tr),Qr=tn.length,Jn=0;Jn<Qr;Jn+=1){var fn=tn[Jn];if(Object.prototype.hasOwnProperty.call(Tr,fn)&&fn in vn)return In[mt]=Tr[fn],In[mt]}return""}var qn=Qn("animationend"),oi=Qn("transitionend"),Ti=!!(qn&&oi);function ki(mt,Tr){if(!mt)return null;if(Object(Q.a)(mt)==="object"){var tn=Tr.replace(/-\w/g,function(Qr){return Qr[1].toUpperCase()});return mt[tn]}return"".concat(mt,"-").concat(Tr)}var Ri="none",oa="appear",ma="enter",aa="leave";function ba(mt){var Tr=mt,tn=!!u.forwardRef;Object(Q.a)(mt)==="object"&&(Tr=mt.transitionSupport,tn="forwardRef"in mt?mt.forwardRef:tn);function Qr(fn){return!!(fn.motionName&&Tr)}var Jn=function(fn){Object(X.a)(ii,fn);var Xr=Object(F.a)(ii);function ii(){var nn;return Object(j.a)(this,ii),nn=Xr.apply(this,arguments),nn.$cacheEle=null,nn.node=null,nn.raf=null,nn.destroyed=!1,nn.deadlineId=null,nn.state={status:Ri,statusActive:!1,newStatus:!1,statusStyle:null},nn.onDomUpdate=function(){var Wn=nn.state,li=Wn.status,ci=Wn.newStatus,si=nn.props,Ci=si.onAppearStart,gi=si.onEnterStart,Ai=si.onLeaveStart,Ni=si.onAppearActive,ia=si.onEnterActive,Ki=si.onLeaveActive,fa=si.motionAppear,Ya=si.motionEnter,xa=si.motionLeave;if(!Qr(nn.props))return;var wa=nn.getElement();nn.$cacheEle!==wa&&(nn.removeEventListener(nn.$cacheEle),nn.addEventListener(wa),nn.$cacheEle=wa),ci&&li===oa&&fa?nn.updateStatus(Ci,null,null,function(){nn.updateActiveStatus(Ni,oa)}):ci&&li===ma&&Ya?nn.updateStatus(gi,null,null,function(){nn.updateActiveStatus(ia,ma)}):ci&&li===aa&&xa&&nn.updateStatus(Ai,null,null,function(){nn.updateActiveStatus(Ki,aa)})},nn.onMotionEnd=function(Wn){if(Wn&&!Wn.deadline&&Wn.target!==nn.getElement())return;var li=nn.state,ci=li.status,si=li.statusActive,Ci=nn.props,gi=Ci.onAppearEnd,Ai=Ci.onEnterEnd,Ni=Ci.onLeaveEnd;ci===oa&&si?nn.updateStatus(gi,{status:Ri},Wn):ci===ma&&si?nn.updateStatus(Ai,{status:Ri},Wn):ci===aa&&si&&nn.updateStatus(Ni,{status:Ri},Wn)},nn.setNodeRef=function(Wn){var li=nn.props.internalRef;nn.node=Wn,Object(Yn.b)(li,Wn)},nn.getElement=function(){try{return Object(En.a)(nn.node||Object(ti.a)(nn))}catch(Wn){return nn.$cacheEle}},nn.addEventListener=function(Wn){if(!Wn)return;Wn.addEventListener(oi,nn.onMotionEnd),Wn.addEventListener(qn,nn.onMotionEnd)},nn.removeEventListener=function(Wn){if(!Wn)return;Wn.removeEventListener(oi,nn.onMotionEnd),Wn.removeEventListener(qn,nn.onMotionEnd)},nn.updateStatus=function(Wn,li,ci,si){var Ci=Wn?Wn(nn.getElement(),ci):null;if(Ci===!1||nn.destroyed)return;var gi;si&&(gi=function(){nn.nextFrame(si)}),nn.setState(Object(K.a)({statusStyle:Object(Q.a)(Ci)==="object"?Ci:null,newStatus:!1},li),gi)},nn.updateActiveStatus=function(Wn,li){nn.nextFrame(function(){var ci=nn.state.status;if(ci!==li)return;var si=nn.props.motionDeadline;nn.updateStatus(Wn,{statusActive:!0}),si>0&&(nn.deadlineId=setTimeout(function(){nn.onMotionEnd({deadline:!0})},si))})},nn.nextFrame=function(Wn){nn.cancelNextFrame(),nn.raf=yr()(Wn)},nn.cancelNextFrame=function(){nn.raf&&(yr.a.cancel(nn.raf),nn.raf=null)},nn}return Object(P.a)(ii,[{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 Wn,li=this.state,ci=li.status,si=li.statusActive,Ci=li.statusStyle,gi=this.props,Ai=gi.children,Ni=gi.motionName,ia=gi.visible,Ki=gi.removeOnLeave,fa=gi.leavedClassName,Ya=gi.eventProps;return Ai?ci===Ri||!Qr(this.props)?ia?Ai(Object(K.a)({},Ya),this.setNodeRef):Ki?null:Ai(Object(K.a)(Object(K.a)({},Ya),{},{className:fa}),this.setNodeRef):Ai(Object(K.a)(Object(K.a)({},Ya),{},{className:_()(ki(Ni,ci),(Wn={},Object(U.a)(Wn,ki(Ni,"".concat(ci,"-active")),si),Object(U.a)(Wn,Ni,typeof Ni=="string"),Wn)),style:Ci}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Wn,li){var ci=li.prevProps,si=li.status;if(!Qr(Wn))return{};var Ci=Wn.visible,gi=Wn.motionAppear,Ai=Wn.motionEnter,Ni=Wn.motionLeave,ia=Wn.motionLeaveImmediately,Ki={prevProps:Wn};return(si===oa&&!gi||si===ma&&!Ai||si===aa&&!Ni)&&(Ki.status=Ri,Ki.statusActive=!1,Ki.newStatus=!1),!ci&&Ci&&gi&&(Ki.status=oa,Ki.statusActive=!1,Ki.newStatus=!0),ci&&!ci.visible&&Ci&&Ai&&(Ki.status=ma,Ki.statusActive=!1,Ki.newStatus=!0),(ci&&ci.visible&&!Ci&&Ni||!ci&&ia&&!Ci&&Ni)&&(Ki.status=aa,Ki.statusActive=!1,Ki.newStatus=!0),Ki}}]),ii}(u.Component);return Jn.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},tn?u.forwardRef(function(fn,Xr){return u.createElement(Jn,Object.assign({internalRef:Xr},fn))}):Jn}var yi=ba(Ti),kn="add",ji="keep",ha="remove",ta="removed";function ra(mt){var Tr;return mt&&Object(Q.a)(mt)==="object"&&"key"in mt?Tr=mt:Tr={key:mt},Object(K.a)(Object(K.a)({},Tr),{},{key:String(Tr.key)})}function Ir(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return mt.map(ra)}function xr(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],tn=[],Qr=0,Jn=Tr.length,fn=Ir(mt),Xr=Ir(Tr);fn.forEach(function(Wn){for(var li=!1,ci=Qr;ci<Jn;ci+=1){var si=Xr[ci];if(si.key===Wn.key){Qr<ci&&(tn=tn.concat(Xr.slice(Qr,ci).map(function(Ci){return Object(K.a)(Object(K.a)({},Ci),{},{status:kn})})),Qr=ci),tn.push(Object(K.a)(Object(K.a)({},si),{},{status:ji})),Qr+=1,li=!0;break}}li||tn.push(Object(K.a)(Object(K.a)({},Wn),{},{status:ha}))}),Qr<Jn&&(tn=tn.concat(Xr.slice(Qr).map(function(Wn){return Object(K.a)(Object(K.a)({},Wn),{},{status:kn})})));var ii={};tn.forEach(function(Wn){var li=Wn.key;ii[li]=(ii[li]||0)+1});var nn=Object.keys(ii).filter(function(Wn){return ii[Wn]>1});return nn.forEach(function(Wn){tn=tn.filter(function(li){var ci=li.key,si=li.status;return ci!==Wn||si!==ha}),tn.forEach(function(li){li.key===Wn&&(li.status=ji)})}),tn}var Cn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function mr(mt){var Tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yi,tn=function(Qr){Object(X.a)(fn,Qr);var Jn=Object(F.a)(fn);function fn(){var Xr;return Object(j.a)(this,fn),Xr=Jn.apply(this,arguments),Xr.state={keyEntities:[]},Xr.removeKey=function(ii){Xr.setState(function(nn){var Wn=nn.keyEntities;return{keyEntities:Wn.map(function(li){return li.key!==ii?li:Object(K.a)(Object(K.a)({},li),{},{status:ta})})}})},Xr}return Object(P.a)(fn,[{key:"render",value:function(){var ii=this,nn=this.state.keyEntities,Wn=this.props,li=Wn.component,ci=Wn.children,si=Object(Lt.a)(Wn,["component","children"]),Ci=li||u.Fragment,gi={};return Cn.forEach(function(Ai){gi[Ai]=si[Ai],delete si[Ai]}),delete si.keys,u.createElement(Ci,Object.assign({},si),nn.map(function(Ai){var Ni=Ai.status,ia=Object(Lt.a)(Ai,["status"]),Ki=Ni===kn||Ni===ji;return u.createElement(Tr,Object.assign({},gi,{key:ia.key,visible:Ki,eventProps:ia,onLeaveEnd:function(){gi.onLeaveEnd&&gi.onLeaveEnd.apply(gi,arguments),ii.removeKey(ia.key)}}),ci)}))}}],[{key:"getDerivedStateFromProps",value:function(ii,nn){var Wn=ii.keys,li=nn.keyEntities,ci=Ir(Wn);if(!mt)return{keyEntities:ci.map(function(gi){return Object(K.a)(Object(K.a)({},gi),{},{status:ji})})};var si=xr(li,ci),Ci=li.length;return{keyEntities:si.filter(function(gi){for(var Ai=null,Ni=0;Ni<Ci;Ni+=1){var ia=li[Ni];if(ia.key===gi.key){Ai=ia;break}}return!(Ai&&Ai.status===ta&&gi.status===ha)})}}}]),fn}(u.Component);return tn.defaultProps={component:"div"},tn}var kr=mr(Ti),Gr=yi,ln=function(Tr,tn){var Qr=Tr.prefixCls,Jn=Tr.className,fn=Tr.style,Xr=Tr.children,ii=Tr.onMouseEnter,nn=Tr.onMouseLeave,Wn=Tr.onMouseDown,li=Tr.onTouchStart,ci=Xr;return u.Children.count(Xr)>1&&(ci=u.createElement("div",{className:"".concat(Qr,"-content")},Xr)),u.createElement("div",{ref:tn,className:Jn,onMouseEnter:ii,onMouseLeave:nn,onMouseDown:Wn,onTouchStart:li,style:fn},ci)},Fn=u.forwardRef(ln);Fn.displayName="PopupInner";var _t=Fn;function Or(mt){var Tr=mt.prefixCls,tn=mt.motion,Qr=mt.animation,Jn=mt.transitionName;return tn||(Qr?{motionName:"".concat(Tr,"-").concat(Qr)}:Jn?{motionName:Jn}:null)}function Lr(mt){return mt&&mt.motionName}var rn=function(mt){Object(X.a)(tn,mt);var Tr=Object(F.a)(tn);function tn(){var Qr;return Object(j.a)(this,tn),Qr=Tr.apply(this,arguments),Qr.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Qr.popupRef=s.a.createRef(),Qr.alignRef=s.a.createRef(),Qr.nextFrameState=null,Qr.nextFrameId=null,Qr.onAlign=function(Jn,fn){var Xr=Qr.state.status,ii=Qr.props,nn=ii.getClassNameFromAlign,Wn=ii.onAlign,li=nn(fn);Xr==="align"?Qr.setState({alignClassName:li,status:"aligned"},function(){Qr.alignRef.current.forceAlign()}):Xr==="aligned"?(Qr.setState({alignClassName:li,status:"afterAlign"}),Wn(Jn,fn)):Qr.setState({alignClassName:li})},Qr.onMotionEnd=function(){var Jn=Qr.props.visible;Qr.setState({status:Jn?"AfterMotion":"stable",inMotion:!1})},Qr.setStateOnNextFrame=function(Jn){Qr.cancelFrameState(),Qr.nextFrameState=Object(K.a)(Object(K.a)({},Qr.nextFrameState),Jn),Qr.nextFrameId=yr()(function(){var fn=Object(K.a)({},Qr.nextFrameState);Qr.nextFrameState=null,Qr.setState(fn)})},Qr.getMotion=function(){return Object(K.a)({},Or(Qr.props))},Qr.getAlignTarget=function(){var Jn=Qr.props,fn=Jn.point,Xr=Jn.getRootDomNode;return fn||Xr},Qr.cancelFrameState=function(){yr.a.cancel(Qr.nextFrameId)},Qr.renderPopupElement=function(){var Jn=Qr.state,fn=Jn.status,Xr=Jn.targetHeight,ii=Jn.targetWidth,nn=Jn.alignClassName,Wn=Qr.props,li=Wn.prefixCls,ci=Wn.className,si=Wn.style,Ci=Wn.stretch,gi=Wn.visible,Ai=Wn.align,Ni=Wn.destroyPopupOnHide,ia=Wn.onMouseEnter,Ki=Wn.onMouseLeave,fa=Wn.onMouseDown,Ya=Wn.onTouchStart,xa=Wn.children,wa=_()(li,ci,nn),Da="".concat(li,"-hidden"),ja={};Ci&&(Ci.indexOf("height")!==-1?ja.height=Xr:Ci.indexOf("minHeight")!==-1&&(ja.minHeight=Xr),Ci.indexOf("width")!==-1?ja.width=ii:Ci.indexOf("minWidth")!==-1&&(ja.minWidth=ii));var ko=Object(K.a)(Object(K.a)(Object(K.a)(Object(K.a)({},ja),Qr.getZIndexStyle()),si),{},{opacity:fn==="stable"||!gi?void 0:0,pointerEvents:fn==="stable"||!gi?void 0:"none"}),ro=Qr.getMotion(),pa=gi;gi&&fn!=="beforeMotion"&&fn!=="motion"&&fn!=="stable"&&(ro.motionAppear=!1,ro.motionEnter=!1,ro.motionLeave=!1),(fn==="afterAlign"||fn==="beforeMotion")&&(pa=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(Ka){var lo=ro==null?void 0:ro[Ka];ro[Ka]=function(){for(var so=arguments.length,Co=new Array(so),Lo=0;Lo<so;Lo++)Co[Lo]=arguments[Lo];lo==null||lo.apply(void 0,Co),Qr.setState({inMotion:!0})}});var Ea=!gi||fn!=="align"&&fn!=="aligned"&&fn!=="stable",Fa=!0;return fn==="stable"&&(Fa=gi),Ni&&!Fa?null:s.a.createElement(Gr,Object.assign({visible:pa},ro,{removeOnLeave:!1,onEnterEnd:Qr.onMotionEnd,onLeaveEnd:Qr.onMotionEnd,leavedClassName:Da}),function(Ka,lo){var so=Ka.style,Co=Ka.className;return s.a.createElement(br.a,{target:Qr.getAlignTarget(),key:"popup",ref:Qr.alignRef,monitorWindowResize:!0,disabled:Ea,align:Ai,onAlign:Qr.onAlign},s.a.createElement(_t,{prefixCls:li,className:_()(wa,Co),ref:Object(Yn.a)(lo,Qr.popupRef),onMouseEnter:ia,onMouseLeave:Ki,onMouseDown:fa,onTouchStart:Ya,style:Object(K.a)(Object(K.a)({},ko),so)},xa))})},Qr.renderMaskElement=function(){var Jn=Qr.props,fn=Jn.mask,Xr=Jn.maskMotion,ii=Jn.maskTransitionName,nn=Jn.maskAnimation,Wn=Jn.prefixCls,li=Jn.visible;if(!fn)return null;var ci={};return Xr&&Xr.motionName&&(ci=Object(K.a)({motionAppear:!0},Or({motion:Xr,prefixCls:Wn,transitionName:ii,animation:nn}))),s.a.createElement(Gr,Object.assign({},ci,{visible:li,removeOnLeave:!0}),function(si){var Ci=si.className;return s.a.createElement("div",{style:Qr.getZIndexStyle(),key:"mask",className:_()("".concat(Wn,"-mask"),Ci)})})},Qr}return Object(P.a)(tn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Jn=this.state.status,fn=this.props,Xr=fn.getRootDomNode,ii=fn.visible,nn=fn.stretch;if(this.cancelFrameState(),ii&&Jn!=="stable")switch(Jn){case null:{this.setStateOnNextFrame({status:nn?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Lr(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Wn=["measure","align",null,"beforeMotion","motion"],li=Wn.indexOf(Jn),ci=Wn[li+1];li!==-1&&ci&&this.setStateOnNextFrame({status:ci})}}if(Jn==="measure"){var si=Xr();si&&this.setStateOnNextFrame({targetHeight:si.offsetHeight,targetWidth:si.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Jn=this.props.zIndex;return{zIndex:Jn}}},{key:"render",value:function(){return s.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Jn,fn){var Xr=Jn.visible,ii=Object(Lt.a)(Jn,["visible"]),nn=fn.prevVisible,Wn=fn.status,li=fn.inMotion,ci={prevVisible:Xr,status:Wn},si=Or(ii);return nn===null&&Xr===!1?(ci.status="stable",ci.inMotion=!1):Xr!==nn&&(ci.inMotion=!1,Xr||Lr(si)&&li?ci.status=null:ci.status="stable",Xr&&(ci.alignClassName=null)),ci}}]),tn}(u.Component),xn=rn,Ln=u.createContext(null),Sn=Ln;function ei(){}function Kn(){return""}function mi(){return window.document}var Fi=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function bi(mt){var Tr=function(tn){Object(X.a)(Jn,tn);var Qr=Object(F.a)(Jn);function Jn(fn){var Xr;Object(j.a)(this,Jn),Xr=Qr.call(this,fn),Xr.popupRef=s.a.createRef(),Xr.triggerRef=s.a.createRef(),Xr.onMouseEnter=function(nn){var Wn=Xr.props.mouseEnterDelay;Xr.fireEvents("onMouseEnter",nn),Xr.delaySetPopupVisible(!0,Wn,Wn?null:nn)},Xr.onMouseMove=function(nn){Xr.fireEvents("onMouseMove",nn),Xr.setPoint(nn)},Xr.onMouseLeave=function(nn){Xr.fireEvents("onMouseLeave",nn),Xr.delaySetPopupVisible(!1,Xr.props.mouseLeaveDelay)},Xr.onPopupMouseEnter=function(){Xr.clearDelayTimer()},Xr.onPopupMouseLeave=function(nn){if(nn.relatedTarget&&!nn.relatedTarget.setTimeout&&Xr.popupRef.current&&Xr.popupRef.current.popupRef.current&&Object(qr.a)(Xr.popupRef.current.popupRef.current,nn.relatedTarget))return;Xr.delaySetPopupVisible(!1,Xr.props.mouseLeaveDelay)},Xr.onFocus=function(nn){Xr.fireEvents("onFocus",nn),Xr.clearDelayTimer(),Xr.isFocusToShow()&&(Xr.focusTime=Date.now(),Xr.delaySetPopupVisible(!0,Xr.props.focusDelay))},Xr.onMouseDown=function(nn){Xr.fireEvents("onMouseDown",nn),Xr.preClickTime=Date.now()},Xr.onTouchStart=function(nn){Xr.fireEvents("onTouchStart",nn),Xr.preTouchTime=Date.now()},Xr.onBlur=function(nn){Xr.fireEvents("onBlur",nn),Xr.clearDelayTimer(),Xr.isBlurToHide()&&Xr.delaySetPopupVisible(!1,Xr.props.blurDelay)},Xr.onContextMenu=function(nn){nn.preventDefault(),Xr.fireEvents("onContextMenu",nn),Xr.setPopupVisible(!0,nn)},Xr.onContextMenuClose=function(){Xr.isContextMenuToShow()&&Xr.close()},Xr.onClick=function(nn){if(Xr.fireEvents("onClick",nn),Xr.focusTime){var Wn;if(Xr.preClickTime&&Xr.preTouchTime?Wn=Math.min(Xr.preClickTime,Xr.preTouchTime):Xr.preClickTime?Wn=Xr.preClickTime:Xr.preTouchTime&&(Wn=Xr.preTouchTime),Math.abs(Wn-Xr.focusTime)<20)return;Xr.focusTime=0}Xr.preClickTime=0,Xr.preTouchTime=0,Xr.isClickToShow()&&(Xr.isClickToHide()||Xr.isBlurToHide())&&nn&&nn.preventDefault&&nn.preventDefault();var li=!Xr.state.popupVisible;(Xr.isClickToHide()&&!li||li&&Xr.isClickToShow())&&Xr.setPopupVisible(!Xr.state.popupVisible,nn)},Xr.onPopupMouseDown=function(){if(Xr.hasPopupMouseDown=!0,clearTimeout(Xr.mouseDownTimeout),Xr.mouseDownTimeout=window.setTimeout(function(){Xr.hasPopupMouseDown=!1},0),Xr.context){var nn;(nn=Xr.context).onPopupMouseDown.apply(nn,arguments)}},Xr.onDocumentClick=function(nn){if(Xr.props.mask&&!Xr.props.maskClosable)return;var Wn=nn.target,li=Xr.getRootDomNode(),ci=Xr.getPopupDomNode();!Object(qr.a)(li,Wn)&&!Object(qr.a)(ci,Wn)&&!Xr.hasPopupMouseDown&&Xr.close()},Xr.getRootDomNode=function(){var nn=Xr.props.getTriggerDOMNode;if(nn)return nn(Xr.triggerRef.current);try{var Wn=Object(En.a)(Xr.triggerRef.current);if(Wn)return Wn}catch(li){}return Pi.a.findDOMNode(Object(ti.a)(Xr))},Xr.getPopupClassNameFromAlign=function(nn){var Wn=[],li=Xr.props,ci=li.popupPlacement,si=li.builtinPlacements,Ci=li.prefixCls,gi=li.alignPoint,Ai=li.getPopupClassNameFromAlign;return ci&&si&&Wn.push(Wt(si,Ci,nn,gi)),Ai&&Wn.push(Ai(nn)),Wn.join(" ")},Xr.getComponent=function(){var nn=Xr.props,Wn=nn.prefixCls,li=nn.destroyPopupOnHide,ci=nn.popupClassName,si=nn.onPopupAlign,Ci=nn.popupMotion,gi=nn.popupAnimation,Ai=nn.popupTransitionName,Ni=nn.popupStyle,ia=nn.mask,Ki=nn.maskAnimation,fa=nn.maskTransitionName,Ya=nn.maskMotion,xa=nn.zIndex,wa=nn.popup,Da=nn.stretch,ja=nn.alignPoint,ko=Xr.state,ro=ko.popupVisible,pa=ko.point,Ea=Xr.getPopupAlign(),Fa={};return Xr.isMouseEnterToShow()&&(Fa.onMouseEnter=Xr.onPopupMouseEnter),Xr.isMouseLeaveToHide()&&(Fa.onMouseLeave=Xr.onPopupMouseLeave),Fa.onMouseDown=Xr.onPopupMouseDown,Fa.onTouchStart=Xr.onPopupMouseDown,s.a.createElement(xn,Object.assign({prefixCls:Wn,destroyPopupOnHide:li,visible:ro,point:ja&&pa,className:ci,align:Ea,onAlign:si,animation:gi,getClassNameFromAlign:Xr.getPopupClassNameFromAlign},Fa,{stretch:Da,getRootDomNode:Xr.getRootDomNode,style:Ni,mask:ia,zIndex:xa,transitionName:Ai,maskAnimation:Ki,maskTransitionName:fa,maskMotion:Ya,ref:Xr.popupRef,motion:Ci}),typeof wa=="function"?wa():wa)},Xr.getContainer=function(){var nn=Object(ti.a)(Xr),Wn=nn.props,li=document.createElement("div");li.style.position="absolute",li.style.top="0",li.style.left="0",li.style.width="100%";var ci=Wn.getPopupContainer?Wn.getPopupContainer(Xr.getRootDomNode()):Wn.getDocument().body;return ci.appendChild(li),li},Xr.setPoint=function(nn){var Wn=Xr.props.alignPoint;if(!Wn||!nn)return;Xr.setState({point:{pageX:nn.pageX,pageY:nn.pageY}})},Xr.handlePortalUpdate=function(){Xr.state.prevPopupVisible!==Xr.state.popupVisible&&Xr.props.afterPopupVisibleChange(Xr.state.popupVisible)};var ii;return"popupVisible"in fn?ii=!!fn.popupVisible:ii=!!fn.defaultPopupVisible,Xr.state={prevPopupVisible:ii,popupVisible:ii},Fi.forEach(function(nn){Xr["fire".concat(nn)]=function(Wn){Xr.fireEvents(nn,Wn)}}),Xr}return Object(P.a)(Jn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Xr=this.props,ii=this.state;if(ii.popupVisible){var nn;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(nn=Xr.getDocument(),this.clickOutsideHandler=Object(zt.a)(nn,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(nn=nn||Xr.getDocument(),this.touchOutsideHandler=Object(zt.a)(nn,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(nn=nn||Xr.getDocument(),this.contextMenuOutsideHandler1=Object(zt.a)(nn,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(zt.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 Xr=this.props,ii=Xr.popupPlacement,nn=Xr.popupAlign,Wn=Xr.builtinPlacements;return ii&&Wn?Bt(Wn,ii,nn):nn}},{key:"setPopupVisible",value:function(Xr,ii){var nn=this.props.alignPoint,Wn=this.state.popupVisible;this.clearDelayTimer(),Wn!==Xr&&("popupVisible"in this.props||this.setState({popupVisible:Xr,prevPopupVisible:Wn}),this.props.onPopupVisibleChange(Xr)),nn&&ii&&this.setPoint(ii)}},{key:"delaySetPopupVisible",value:function(Xr,ii,nn){var Wn=this,li=ii*1e3;if(this.clearDelayTimer(),li){var ci=nn?{pageX:nn.pageX,pageY:nn.pageY}:null;this.delayTimer=window.setTimeout(function(){Wn.setPopupVisible(Xr,ci),Wn.clearDelayTimer()},li)}else this.setPopupVisible(Xr,nn)}},{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(Xr){var ii=this.props.children.props,nn=this.props;return ii[Xr]&&nn[Xr]?this["fire".concat(Xr)]:ii[Xr]||nn[Xr]}},{key:"isClickToShow",value:function(){var Xr=this.props,ii=Xr.action,nn=Xr.showAction;return ii.indexOf("click")!==-1||nn.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Xr=this.props,ii=Xr.action,nn=Xr.showAction;return ii.indexOf("contextMenu")!==-1||nn.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Xr=this.props,ii=Xr.action,nn=Xr.hideAction;return ii.indexOf("click")!==-1||nn.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Xr=this.props,ii=Xr.action,nn=Xr.showAction;return ii.indexOf("hover")!==-1||nn.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Xr=this.props,ii=Xr.action,nn=Xr.hideAction;return ii.indexOf("hover")!==-1||nn.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Xr=this.props,ii=Xr.action,nn=Xr.showAction;return ii.indexOf("focus")!==-1||nn.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Xr=this.props,ii=Xr.action,nn=Xr.hideAction;return ii.indexOf("focus")!==-1||nn.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(Xr,ii){var nn=this.props.children.props[Xr];nn&&nn(ii);var Wn=this.props[Xr];Wn&&Wn(ii)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Xr=this.state.popupVisible,ii=this.props,nn=ii.children,Wn=ii.forceRender,li=ii.alignPoint,ci=ii.className,si=ii.autoDestroy,Ci=s.a.Children.only(nn),gi={key:"trigger"};this.isContextMenuToShow()?gi.onContextMenu=this.onContextMenu:gi.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(gi.onClick=this.onClick,gi.onMouseDown=this.onMouseDown,gi.onTouchStart=this.onTouchStart):(gi.onClick=this.createTwoChains("onClick"),gi.onMouseDown=this.createTwoChains("onMouseDown"),gi.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(gi.onMouseEnter=this.onMouseEnter,li&&(gi.onMouseMove=this.onMouseMove)):gi.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?gi.onMouseLeave=this.onMouseLeave:gi.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(gi.onFocus=this.onFocus,gi.onBlur=this.onBlur):(gi.onFocus=this.createTwoChains("onFocus"),gi.onBlur=this.createTwoChains("onBlur"));var Ai=_()(Ci&&Ci.props&&Ci.props.className,ci);Ai&&(gi.className=Ai);var Ni=Object(K.a)({},gi);Object(Yn.c)(Ci)&&(Ni.ref=Object(Yn.a)(this.triggerRef,Ci.ref));var ia=s.a.cloneElement(Ci,Ni),Ki;return(Xr||this.popupRef.current||Wn)&&(Ki=s.a.createElement(mt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Xr&&si&&(Ki=null),s.a.createElement(Sn.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},ia,Ki)}}],[{key:"getDerivedStateFromProps",value:function(Xr,ii){var nn=Xr.popupVisible,Wn={};return nn!==void 0&&ii.popupVisible!==nn&&(Wn.popupVisible=nn,Wn.prevPopupVisible=ii.popupVisible),Wn}}]),Jn}(s.a.Component);return Tr.contextType=Sn,Tr.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Kn,getDocument:mi,onPopupVisibleChange:ei,afterPopupVisibleChange:ei,onPopupAlign:ei,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Tr}var Ii=bi(Ot.a),Vi={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function ea(mt){var Tr,tn=mt.prefixCls,Qr=mt.popupElement,Jn=mt.popupStyle,fn=mt.visible,Xr=mt.dropdownClassName,ii=mt.dropdownAlign,nn=mt.transitionName,Wn=mt.getPopupContainer,li=mt.children,ci=mt.range,si=mt.popupPlacement,Ci=mt.direction,gi="".concat(tn,"-dropdown"),Ai=function(){return si!==void 0?si:Ci==="rtl"?"bottomRight":"bottomLeft"};return u.createElement(Ii,{showAction:[],hideAction:[],popupPlacement:Ai(),builtinPlacements:Vi,prefixCls:gi,popupTransitionName:nn,popup:Qr,popupAlign:ii,popupVisible:fn,popupClassName:_()(Xr,(Tr={},Object(U.a)(Tr,"".concat(gi,"-range"),ci),Object(U.a)(Tr,"".concat(gi,"-rtl"),Ci==="rtl"),Tr)),popupStyle:Jn,getPopupContainer:Wn},li)}var Xi=ea;function zi(mt){var Tr=mt.open,tn=mt.value,Qr=mt.isClickOutside,Jn=mt.triggerOpen,fn=mt.forwardKeyDown,Xr=mt.blurToCancel,ii=mt.onSubmit,nn=mt.onCancel,Wn=mt.onFocus,li=mt.onBlur,ci=Object(u.useState)(!1),si=Object(z.a)(ci,2),Ci=si[0],gi=si[1],Ai=Object(u.useState)(!1),Ni=Object(z.a)(Ai,2),ia=Ni[0],Ki=Ni[1],fa=Object(u.useRef)(!1),Ya=Object(u.useRef)(!1),xa={onMouseDown:function(){gi(!0),Jn(!0)},onKeyDown:function(Da){switch(Da.which){case G.a.ENTER:{Tr?ii()!==!1&&gi(!0):Jn(!0),Da.preventDefault();return}case G.a.TAB:{Ci&&Tr&&!Da.shiftKey?(gi(!1),Da.preventDefault()):!Ci&&Tr&&(!fn(Da)&&Da.shiftKey&&(gi(!0),Da.preventDefault()));return}case G.a.ESC:{gi(!0),nn();return}}!Tr&&![G.a.SHIFT].includes(Da.which)?Jn(!0):Ci||fn(Da)},onFocus:function(Da){gi(!0),Ki(!0),Wn&&Wn(Da)},onBlur:function(Da){if(fa.current||!Qr(document.activeElement)){fa.current=!1;return}Xr?setTimeout(function(){Qr(document.activeElement)&&nn()},0):Tr&&(Jn(!1),Ya.current&&ii()),Ki(!1),li&&li(Da)}};return Object(u.useEffect)(function(){Ya.current=!1},[Tr]),Object(u.useEffect)(function(){Ya.current=!0},[tn]),Object(u.useEffect)(function(){return $(function(wa){var Da=wa.target;Tr&&(Qr(Da)?ia||Jn(!1):(fa.current=!0,requestAnimationFrame(function(){fa.current=!1})))})}),[xa,{focused:ia,typing:Ci}]}function Hi(mt){var Tr=mt.valueTexts,tn=mt.onTextChange,Qr=u.useState(""),Jn=Object(z.a)(Qr,2),fn=Jn[0],Xr=Jn[1],ii=u.useRef([]);ii.current=Tr;function nn(li){Xr(li),tn(li)}function Wn(){Xr(ii.current[0])}return u.useEffect(function(){Tr.every(function(li){return li!==fn})&&Wn()},[Tr.join("||")]),[fn,nn,Wn]}var Ji=n("Gytx"),ca=n.n(Ji);function Ca(mt,Tr){var tn=Tr.formatList,Qr=Tr.generateConfig,Jn=Tr.locale;return Object(Qe.a)(function(){if(!mt)return[[""],""];for(var fn="",Xr=[],ii=0;ii<tn.length;ii+=1){var nn=tn[ii],Wn=Qr.locale.format(Jn.locale,mt,nn);Xr.push(Wn),ii===0&&(fn=Wn)}return[Xr,fn]},[mt,tn],function(fn,Xr){return fn[0]!==Xr[0]||!ca()(fn[1],Xr[1])})}function na(mt,Tr){var tn=Tr.formatList,Qr=Tr.generateConfig,Jn=Tr.locale,fn=Object(u.useState)(null),Xr=Object(z.a)(fn,2),ii=Xr[0],nn=Xr[1],Wn=Object(u.useRef)(null);function li(Ni){var ia=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Wn.current),ia){nn(Ni);return}Wn.current=requestAnimationFrame(function(){nn(Ni)})}var ci=Ca(ii,{formatList:tn,generateConfig:Qr,locale:Jn}),si=Object(z.a)(ci,2),Ci=si[1];function gi(Ni){li(Ni)}function Ai(){var Ni=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;li(null,Ni)}return Object(u.useEffect)(function(){Ai(!0)},[mt]),Object(u.useEffect)(function(){return function(){return cancelAnimationFrame(Wn.current)}},[]),[Ci,gi,Ai]}function Pa(mt){var Tr,tn=mt.prefixCls,Qr=tn===void 0?"rc-picker":tn,Jn=mt.id,fn=mt.tabIndex,Xr=mt.style,ii=mt.className,nn=mt.dropdownClassName,Wn=mt.dropdownAlign,li=mt.popupStyle,ci=mt.transitionName,si=mt.generateConfig,Ci=mt.locale,gi=mt.inputReadOnly,Ai=mt.allowClear,Ni=mt.autoFocus,ia=mt.showTime,Ki=mt.picker,fa=Ki===void 0?"date":Ki,Ya=mt.format,xa=mt.use12Hours,wa=mt.value,Da=mt.defaultValue,ja=mt.open,ko=mt.defaultOpen,ro=mt.defaultOpenValue,pa=mt.suffixIcon,Ea=mt.clearIcon,Fa=mt.disabled,Ka=mt.disabledDate,lo=mt.placeholder,so=mt.getPopupContainer,Co=mt.pickerRef,Lo=mt.panelRender,is=mt.onChange,cs=mt.onOpenChange,Rs=mt.onFocus,Ko=mt.onBlur,as=mt.onMouseDown,co=mt.onMouseUp,Ao=mt.onMouseEnter,$a=mt.onMouseLeave,ss=mt.onContextMenu,_s=mt.onClick,Fo=mt.direction,il=mt.autoComplete,Eo=il===void 0?"off":il,zo=u.useRef(null),Fs=fa==="date"&&!!ia||fa==="time",ms=He(et(Ya,fa,ia,xa)),hs=u.useRef(null),wn=u.useRef(null),Ns=Object(V.a)(null,{value:wa,defaultValue:Da}),Ll=Object(z.a)(Ns,2),el=Ll[0],Gs=Ll[1],ds=u.useState(el),ks=Object(z.a)(ds,2),Qs=ks[0],tl=ks[1],xs=u.useRef(null),Bs=Object(V.a)(!1,{value:ja,defaultValue:ko,postState:function(vo){return Fa?!1:vo},onChange:function(vo){cs&&cs(vo),!vo&&xs.current&&xs.current.onClose&&xs.current.onClose()}}),al=Object(z.a)(Bs,2),Js=al[0],Vo=al[1],No=Ca(Qs,{formatList:ms,generateConfig:si,locale:Ci}),fs=Object(z.a)(No,2),Ds=fs[0],go=fs[1],Ut=Hi({valueTexts:Ds,onTextChange:function(vo){var Ms=si.locale.parse(Ci.locale,vo,ms);Ms&&(!Ka||!Ka(Ms))&&tl(Ms)}}),or=Object(z.a)(Ut,3),Nn=or[0],hi=or[1],Nt=or[2],ce=function(vo){tl(vo),Gs(vo),is&&!pt(si,el,vo)&&is(vo,vo?si.locale.format(Ci.locale,vo,ms[0]):"")},Se=function(vo){if(Fa&&vo)return;Vo(vo)},Ie=function(vo){return Js&&xs.current&&xs.current.onKeyDown?xs.current.onKeyDown(vo):(Object(x.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Je=function(){co&&co.apply(void 0,arguments),zo.current&&(zo.current.focus(),Se(!0))},Dt=zi({blurToCancel:Fs,open:Js,value:Nn,triggerOpen:Se,forwardKeyDown:Ie,isClickOutside:function(vo){return!we([hs.current,wn.current],vo)},onSubmit:function(){return Ka&&Ka(Qs)?!1:(ce(Qs),Se(!1),Nt(),!0)},onCancel:function(){Se(!1),tl(el),Nt()},onFocus:Rs,onBlur:Ko}),sr=Object(z.a)(Dt,2),Jr=sr[0],gn=sr[1],Dn=gn.focused,ui=gn.typing;u.useEffect(function(){Js||(tl(el),!Ds.length||Ds[0]===""?hi(""):go!==Nn&&Nt())},[Js,Ds]),u.useEffect(function(){Js||Nt()},[fa]),u.useEffect(function(){tl(el)},[el]),Co&&(Co.current={focus:function(){zo.current&&zo.current.focus()},blur:function(){zo.current&&zo.current.blur()}});var Si=Object(K.a)(Object(K.a)({},mt),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),vi=u.createElement(en,Object.assign({},Si,{generateConfig:si,className:_()(Object(U.a)({},"".concat(Qr,"-panel-focused"),!ui)),value:Qs,locale:Ci,tabIndex:-1,onChange:tl,direction:Fo}));Lo&&(vi=Lo(vi));var Qi=u.createElement("div",{className:"".concat(Qr,"-panel-container"),onMouseDown:function(vo){vo.preventDefault()}},vi),sa;pa&&(sa=u.createElement("span",{className:"".concat(Qr,"-suffix")},pa));var Ua;Ai&&el&&!Fa&&(Ua=u.createElement("span",{onMouseDown:function(vo){vo.preventDefault(),vo.stopPropagation()},onMouseUp:function(vo){vo.preventDefault(),vo.stopPropagation(),ce(null),Se(!1)},className:"".concat(Qr,"-clear")},Ea||u.createElement("span",{className:"".concat(Qr,"-clear-btn")})));var no=function(vo,Ms){(Ms==="submit"||Ms!=="key"&&!Fs)&&(ce(vo),Se(!1))},Wo=Fo==="rtl"?"bottomRight":"bottomLeft",Zo=na(Nn,{formatList:ms,generateConfig:si,locale:Ci}),Bo=Object(z.a)(Zo,3),Es=Bo[0],As=Bo[1],$o=Bo[2];return u.createElement(q.Provider,{value:{operationRef:xs,hideHeader:fa==="time",panelRef:hs,onSelect:no,open:Js,defaultOpenValue:ro,onDateMouseEnter:As,onDateMouseLeave:$o}},u.createElement(Xi,{visible:Js,popupElement:Qi,popupStyle:li,prefixCls:Qr,dropdownClassName:nn,dropdownAlign:Wn,getPopupContainer:so,transitionName:ci,popupPlacement:Wo,direction:Fo},u.createElement("div",{className:_()(Qr,ii,(Tr={},Object(U.a)(Tr,"".concat(Qr,"-disabled"),Fa),Object(U.a)(Tr,"".concat(Qr,"-focused"),Dn),Object(U.a)(Tr,"".concat(Qr,"-rtl"),Fo==="rtl"),Tr)),style:Xr,onMouseDown:as,onMouseUp:Je,onMouseEnter:Ao,onMouseLeave:$a,onContextMenu:ss,onClick:_s},u.createElement("div",{className:_()("".concat(Qr,"-input"),Object(U.a)({},"".concat(Qr,"-input-placeholder"),!!Es)),ref:wn},u.createElement("input",Object.assign({id:Jn,tabIndex:fn,disabled:Fa,readOnly:gi||!ui,value:Es||Nn,onChange:function(vo){hi(vo.target.value)},autoFocus:Ni,placeholder:lo,ref:zo,title:Nn},Jr,{size:he(fa,ms[0])},er(mt),{autoComplete:Eo})),sa,Ua))))}var La=function(mt){Object(X.a)(tn,mt);var Tr=Object(F.a)(tn);function tn(){var Qr;return Object(j.a)(this,tn),Qr=Tr.apply(this,arguments),Qr.pickerRef=u.createRef(),Qr.focus=function(){Qr.pickerRef.current&&Qr.pickerRef.current.focus()},Qr.blur=function(){Qr.pickerRef.current&&Qr.pickerRef.current.blur()},Qr}return Object(P.a)(tn,[{key:"render",value:function(){return u.createElement(Pa,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),tn}(u.Component),va=La;function ga(mt,Tr,tn){var Qr=mt.picker,Jn=mt.locale,fn=mt.selectedValue,Xr=mt.disabledDate,ii=mt.disabled,nn=mt.generateConfig,Wn=ct(fn,0),li=ct(fn,1);function ci(Ni){var ia=nn.getYear(Ni),Ki=nn.locale.getWeek(Jn.locale,Ni);return ia*100+Ki}function si(Ni){var ia=nn.getYear(Ni),Ki=nn.getMonth(Ni);return ia*100+Ki}function Ci(Ni){var ia=nn.getYear(Ni),Ki=ir(nn,Ni);return ia*10+Ki}var gi=u.useCallback(function(Ni){if(Xr&&Xr(Ni))return!0;if(ii[1]&&li)return!Ft(nn,Ni,li)&&nn.isAfter(Ni,li);if(Tr&&li)switch(Qr){case"quarter":return Ci(Ni)>Ci(li);case"month":return si(Ni)>si(li);case"week":return ci(Ni)>ci(li);default:return!Ft(nn,Ni,li)&&nn.isAfter(Ni,li)}return!1},[Xr,ii[1],li,Tr]),Ai=u.useCallback(function(Ni){if(Xr&&Xr(Ni))return!0;if(ii[0]&&Wn)return!Ft(nn,Ni,li)&&nn.isAfter(Wn,Ni);if(tn&&Wn)switch(Qr){case"quarter":return Ci(Ni)<Ci(Wn);case"month":return si(Ni)<si(Wn);case"week":return ci(Ni)<ci(Wn);default:return!Ft(nn,Ni,Wn)&&nn.isAfter(Wn,Ni)}return!1},[Xr,ii[0],Wn,tn]);return[gi,Ai]}function Oa(mt,Tr,tn,Qr){var Jn=un(mt,tn,Qr,1);function fn(Xr){return Xr(mt,Tr)?"same":Xr(Jn,Tr)?"closing":"far"}switch(tn){case"year":return fn(function(Xr,ii){return vr(Qr,Xr,ii)});case"quarter":case"month":return fn(function(Xr,ii){return At(Qr,Xr,ii)});default:return fn(function(Xr,ii){return dn(Qr,Xr,ii)})}}function Aa(mt,Tr,tn,Qr){var Jn=ct(mt,0),fn=ct(mt,1);if(Tr===0)return Jn;if(Jn&&fn){var Xr=Oa(Jn,fn,tn,Qr);switch(Xr){case"same":return Jn;case"closing":return Jn;default:return un(fn,tn,Qr,-1)}}return Jn}function Xa(mt){var Tr=mt.values,tn=mt.picker,Qr=mt.defaultDates,Jn=mt.generateConfig,fn=u.useState(function(){return[ct(Qr,0),ct(Qr,1)]}),Xr=Object(z.a)(fn,2),ii=Xr[0],nn=Xr[1],Wn=u.useState(null),li=Object(z.a)(Wn,2),ci=li[0],si=li[1],Ci=ct(Tr,0),gi=ct(Tr,1);function Ai(ia){return ii[ia]?ii[ia]:ct(ci,ia)||Aa(Tr,ia,tn,Jn)||Ci||gi||Jn.getNow()}function Ni(ia,Ki){if(ia){var fa=Kt(ci,ia,Ki);nn(Kt(ii,null,Ki)||[null,null]);var Ya=(Ki+1)%2;ct(Tr,Ya)||(fa=Kt(fa,ia,Ya)),si(fa)}else(Ci||gi)&&si(null)}return[Ai,Ni]}function _a(mt,Tr){return mt&&mt[0]&&mt[1]&&Tr.isAfter(mt[0],mt[1])?[mt[1],mt[0]]:mt}function Va(mt,Tr,tn,Qr){return mt||Qr&&Qr[Tr]?!0:!!tn[(Tr+1)%2]}function Bi(mt){var Tr,tn,Qr,Jn=mt.prefixCls,fn=Jn===void 0?"rc-picker":Jn,Xr=mt.id,ii=mt.style,nn=mt.className,Wn=mt.popupStyle,li=mt.dropdownClassName,ci=mt.transitionName,si=mt.dropdownAlign,Ci=mt.getPopupContainer,gi=mt.generateConfig,Ai=mt.locale,Ni=mt.placeholder,ia=mt.autoFocus,Ki=mt.disabled,fa=mt.format,Ya=mt.picker,xa=Ya===void 0?"date":Ya,wa=mt.showTime,Da=mt.use12Hours,ja=mt.separator,ko=ja===void 0?"~":ja,ro=mt.value,pa=mt.defaultValue,Ea=mt.defaultPickerValue,Fa=mt.open,Ka=mt.defaultOpen,lo=mt.disabledDate,so=mt.disabledTime,Co=mt.dateRender,Lo=mt.panelRender,is=mt.ranges,cs=mt.allowEmpty,Rs=mt.allowClear,Ko=mt.suffixIcon,as=mt.clearIcon,co=mt.pickerRef,Ao=mt.inputReadOnly,$a=mt.mode,ss=mt.renderExtraFooter,_s=mt.onChange,Fo=mt.onOpenChange,il=mt.onPanelChange,Eo=mt.onCalendarChange,zo=mt.onFocus,Fs=mt.onBlur,ms=mt.onOk,hs=mt.components,wn=mt.order,Ns=mt.direction,Ll=mt.activePickerIndex,el=mt.autoComplete,Gs=el===void 0?"off":el,ds=xa==="date"&&!!wa||xa==="time",ks=Object(u.useRef)({}),Qs=Object(u.useRef)(null),tl=Object(u.useRef)(null),xs=Object(u.useRef)(null),Bs=Object(u.useRef)(null),al=Object(u.useRef)(null),Js=Object(u.useRef)(null),Vo=Object(u.useRef)(null),No=He(et(fa,xa,wa,Da)),fs=Object(V.a)(0,{value:Ll}),Ds=Object(z.a)(fs,2),go=Ds[0],Ut=Ds[1],or=Object(u.useRef)(null),Nn=u.useMemo(function(){return Array.isArray(Ki)?Ki:[Ki||!1,Ki||!1]},[Ki]),hi=Object(V.a)(null,{value:ro,defaultValue:pa,postState:function(ve){return xa==="time"&&!wn?ve:_a(ve,gi)}}),Nt=Object(z.a)(hi,2),ce=Nt[0],Se=Nt[1],Ie=Xa({values:ce,picker:xa,defaultDates:Ea,generateConfig:gi}),Je=Object(z.a)(Ie,2),Dt=Je[0],sr=Je[1],Jr=Object(V.a)(ce,{postState:function(ve){var Te=ve;if(Nn[0]&&Nn[1])return Te;for(var ze=0;ze<2;ze+=1)Nn[ze]&&!ct(Te,ze)&&!ct(cs,ze)&&(Te=Kt(Te,gi.getNow(),ze));return Te}}),gn=Object(z.a)(Jr,2),Dn=gn[0],ui=gn[1],Si=Object(V.a)([xa,xa],{value:$a}),vi=Object(z.a)(Si,2),Qi=vi[0],sa=vi[1];Object(u.useEffect)(function(){sa([xa,xa])},[xa]);var Ua=function(ve,Te){sa(ve),il&&il(Te,ve)},no=ga({picker:xa,selectedValue:Dn,locale:Ai,disabled:Nn,disabledDate:lo,generateConfig:gi},ks.current[1],ks.current[0]),Wo=Object(z.a)(no,2),Zo=Wo[0],Bo=Wo[1],Es=Object(V.a)(!1,{value:Fa,defaultValue:Ka,postState:function(ve){return Nn[go]?!1:ve},onChange:function(ve){Fo&&Fo(ve),!ve&&or.current&&or.current.onClose&&or.current.onClose()}}),As=Object(z.a)(Es,2),$o=As[0],Do=As[1],vo=$o&&go===0,Ms=$o&&go===1,rl=Object(u.useState)(0),gs=Object(z.a)(rl,2),Ra=gs[0],dl=gs[1];Object(u.useEffect)(function(){!$o&&Qs.current&&dl(Qs.current.offsetWidth)},[$o]);var fl=u.useRef();function Us(ne,ve){if(ne)clearTimeout(fl.current),ks.current[ve]=!0,Ut(ve),Do(ne),$o||sr(null,ve);else if(go===ve){Do(ne);var Te=ks.current;fl.current=setTimeout(function(){Te===ks.current&&(ks.current={})})}}function Os(ne){Us(!0,ne),setTimeout(function(){var ve=[Js,Vo][ne];ve.current&&ve.current.focus()},0)}function Xs(ne,ve){var Te=ne,ze=ct(Te,0),st=ct(Te,1);ze&&st&&gi.isAfter(ze,st)&&(xa==="week"&&!Jt(gi,Ai.locale,ze,st)||xa==="quarter"&&!lr(gi,ze,st)||xa!=="week"&&xa!=="quarter"&&xa!=="time"&&!Ft(gi,ze,st)?(ve===0?(Te=[ze,null],st=null):(ze=null,Te=[null,st]),ks.current=Object(U.a)({},ve,!0)):(xa!=="time"||wn!==!1)&&(Te=_a(Te,gi))),ui(Te);var ht=Te&&Te[0]?gi.locale.format(Ai.locale,Te[0],No[0]):"",Zt=Te&&Te[1]?gi.locale.format(Ai.locale,Te[1],No[0]):"";if(Eo){var Cr={range:ve===0?"start":"end"};Eo(Te,[ht,Zt],Cr)}var Sr=Va(ze,0,Nn,cs),Kr=Va(st,1,Nn,cs),Zr=Te===null||Sr&&Kr;Zr&&(Se(Te),_s&&(!pt(gi,ct(ce,0),ze)||!pt(gi,ct(ce,1),st))&&_s(Te,[ht,Zt]));var On=null;ve===0&&!Nn[1]?On=1:ve===1&&!Nn[0]&&(On=0),On!==null&&On!==go&&(!ks.current[On]||!ct(Te,On))&&ct(Te,ve)?Os(On):Us(!1,ve)}var Ql=function(ve){return $o&&or.current&&or.current.onKeyDown?or.current.onKeyDown(ve):(Object(x.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ul={formatList:No,generateConfig:gi,locale:Ai},wl=Ca(ct(Dn,0),Ul),Ts=Object(z.a)(wl,2),Ws=Ts[0],Tl=Ts[1],pl=Ca(ct(Dn,1),Ul),jo=Object(z.a)(pl,2),yo=jo[0],qo=jo[1],ps=function(ve,Te){var ze=gi.locale.parse(Ai.locale,ve,No),st=Te===0?Zo:Bo;ze&&!st(ze)&&(ui(Kt(Dn,ze,Te)),sr(ze,Te))},Is=Hi({valueTexts:Ws,onTextChange:function(ve){return ps(ve,0)}}),es=Object(z.a)(Is,3),Ls=es[0],Ps=es[1],ml=es[2],Rl=Hi({valueTexts:yo,onTextChange:function(ve){return ps(ve,1)}}),_l=Object(z.a)(Rl,3),Bl=_l[0],jl=_l[1],kl=_l[2],Xl=Object(u.useState)(null),ol=Object(z.a)(Xl,2),Ys=ol[0],sl=ol[1],nl=Object(u.useState)(null),xl=Object(z.a)(nl,2),Ml=xl[0],Wl=xl[1],au=na(Ls,{formatList:No,generateConfig:gi,locale:Ai}),Nl=Object(z.a)(au,3),$l=Nl[0],tu=Nl[1],Iu=Nl[2],pu=na(Bl,{formatList:No,generateConfig:gi,locale:Ai}),mu=Object(z.a)(pu,3),gu=mu[0],ql=mu[1],Cl=mu[2],ll=function(ve){Wl(Kt(Dn,ve,go)),go===0?tu(ve):ql(ve)},Hl=function(){Wl(Kt(Dn,null,go)),go===0?Iu():Cl()},Sl=function(ve,Te){return{blurToCancel:ds,forwardKeyDown:Ql,onBlur:Fs,isClickOutside:function(st){return!we([tl.current,xs.current,Bs.current],st)},onFocus:function(st){Ut(ve),zo&&zo(st)},triggerOpen:function(st){Us(st,ve)},onSubmit:function(){Xs(Dn,ve),Te()},onCancel:function(){Us(!1,ve),ui(ce),Te()}}},Su=zi(Object(K.a)(Object(K.a)({},Sl(0,ml)),{},{open:vo,value:Ls})),vu=Object(z.a)(Su,2),Au=vu[0],Ol=vu[1],cu=Ol.focused,du=Ol.typing,Lu=zi(Object(K.a)(Object(K.a)({},Sl(1,kl)),{},{open:Ms,value:Bl})),zl=Object(z.a)(Lu,2),ru=zl[0],ou=zl[1],su=ou.focused,Jl=ou.typing,Du=function(ve){!$o&&!Js.current.contains(ve.target)&&!Vo.current.contains(ve.target)&&(Nn[0]?Nn[1]||Os(1):Os(0))},Ru=function(ve){$o&&(cu||su)&&!Js.current.contains(ve.target)&&!Vo.current.contains(ve.target)&&ve.preventDefault()},Zl=ce&&ce[0]?gi.locale.format(Ai.locale,ce[0],"YYYYMMDDHHmmss"):"",yu=ce&&ce[1]?gi.locale.format(Ai.locale,ce[1],"YYYYMMDDHHmmss"):"";Object(u.useEffect)(function(){$o||(ui(ce),!Ws.length||Ws[0]===""?Ps(""):Tl!==Ls&&ml(),!yo.length||yo[0]===""?jl(""):qo!==Bl&&kl())},[$o,Ws,yo]),Object(u.useEffect)(function(){ui(ce)},[Zl,yu]),co&&(co.current={focus:function(){Js.current&&Js.current.focus()},blur:function(){Js.current&&Js.current.blur(),Vo.current&&Vo.current.blur()}});var xu=Object.keys(is||{}),bu=xu.map(function(ne){var ve=is[ne],Te=typeof ve=="function"?ve():ve;return{label:ne,onClick:function(){Xs(Te,null),Us(!1,go)},onMouseEnter:function(){sl(Te)},onMouseLeave:function(){sl(null)}}});function hl(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Te=null;$o&&Ml&&Ml[0]&&Ml[1]&&gi.isAfter(Ml[1],Ml[0])&&(Te=Ml);var ze=wa;if(wa&&Object(Q.a)(wa)==="object"&&wa.defaultValue){var st=wa.defaultValue;ze=Object(K.a)(Object(K.a)({},wa),{},{defaultValue:ct(st,go)||void 0})}var ht=null;return Co&&(ht=function(Cr,Sr){return Co(Cr,Sr,{range:go?"end":"start"})}),u.createElement(Xn.Provider,{value:{inRange:!0,panelPosition:ne,rangedValue:Ys||Dn,hoverRangedValue:Te}},u.createElement(en,Object.assign({},mt,ve,{dateRender:ht,showTime:ze,mode:Qi[go],generateConfig:gi,style:void 0,direction:Ns,disabledDate:go===0?Zo:Bo,disabledTime:function(Cr){return so?so(Cr,go===0?"start":"end"):!1},className:_()(Object(U.a)({},"".concat(fn,"-panel-focused"),go===0?!du:!Jl)),value:ct(Dn,go),locale:Ai,tabIndex:-1,onPanelChange:function(Cr,Sr){Ua(Kt(Qi,Sr,go),Kt(Dn,Cr,go));var Kr=Cr;ne==="right"&&Qi[go]===Sr&&(Kr=un(Kr,Sr,gi,-1)),sr(Kr,go)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Dl=0,nu=0;go&&xs.current&&al.current&&tl.current&&(Dl=xs.current.offsetWidth+al.current.offsetWidth,tl.current.offsetWidth&&Dl>tl.current.offsetWidth&&(nu=Dl));var Nu=Ns==="rtl"?{right:Dl}:{left:Dl};function hu(){var ne,ve=Fr(fn,Qi[go],ss),Te=Bn({prefixCls:fn,components:hs,needConfirmButton:ds,okDisabled:!ct(Dn,go)||lo&&lo(Dn[go]),locale:Ai,rangeList:bu,onOk:function(){ct(Dn,go)&&(Xs(Dn,go),ms&&ms(Dn))}});if(xa!=="time"&&!wa){var ze=Dt(go),st=un(ze,xa,gi),ht=Qi[go],Zt=ht===xa,Cr=hl(Zt?"left":!1,{pickerValue:ze,onPickerValueChange:function(On){sr(On,go)}}),Sr=hl("right",{pickerValue:st,onPickerValueChange:function(On){sr(un(On,xa,gi,-1),go)}});Ns==="rtl"?ne=u.createElement(u.Fragment,null,Sr,Zt&&Cr):ne=u.createElement(u.Fragment,null,Cr,Zt&&Sr)}else ne=hl();var Kr=u.createElement(u.Fragment,null,u.createElement("div",{className:"".concat(fn,"-panels")},ne),(ve||Te)&&u.createElement("div",{className:"".concat(fn,"-footer")},ve,Te));return Lo&&(Kr=Lo(Kr)),u.createElement("div",{className:"".concat(fn,"-panel-container"),style:{marginLeft:nu},ref:tl,onMouseDown:function(On){On.preventDefault()}},Kr)}var fu=u.createElement("div",{className:_()("".concat(fn,"-range-wrapper"),"".concat(fn,"-").concat(xa,"-range-wrapper")),style:{minWidth:Ra}},u.createElement("div",{className:"".concat(fn,"-range-arrow"),style:Nu}),hu()),iu;Ko&&(iu=u.createElement("span",{className:"".concat(fn,"-suffix")},Ko));var Ae;Rs&&(ct(ce,0)&&!Nn[0]||ct(ce,1)&&!Nn[1])&&(Ae=u.createElement("span",{onMouseDown:function(ve){ve.preventDefault(),ve.stopPropagation()},onMouseUp:function(ve){ve.preventDefault(),ve.stopPropagation();var Te=ce;Nn[0]||(Te=Kt(Te,null,0)),Nn[1]||(Te=Kt(Te,null,1)),Xs(Te,null),Us(!1,go)},className:"".concat(fn,"-clear")},as||u.createElement("span",{className:"".concat(fn,"-clear-btn")})));var ee={size:he(xa,No[0])},L=0,W=0;xs.current&&Bs.current&&al.current&&(go===0?W=xs.current.offsetWidth:(L=Dl,W=Bs.current.offsetWidth));var H=Ns==="rtl"?{right:L}:{left:L},Z=function(ve,Te){var ze=Kt(Dn,ve,go);Te==="submit"||Te!=="key"&&!ds?(Xs(ze,go),go===0?Iu():Cl()):ui(ze)};return u.createElement(q.Provider,{value:{operationRef:or,hideHeader:xa==="time",onDateMouseEnter:ll,onDateMouseLeave:Hl,hideRanges:!0,onSelect:Z,open:$o}},u.createElement(Xi,{visible:$o,popupElement:fu,popupStyle:Wn,prefixCls:fn,dropdownClassName:li,dropdownAlign:si,getPopupContainer:Ci,transitionName:ci,range:!0,direction:Ns},u.createElement("div",Object.assign({ref:Qs,className:_()(fn,"".concat(fn,"-range"),nn,(Tr={},Object(U.a)(Tr,"".concat(fn,"-disabled"),Nn[0]&&Nn[1]),Object(U.a)(Tr,"".concat(fn,"-focused"),go===0?cu:su),Object(U.a)(Tr,"".concat(fn,"-rtl"),Ns==="rtl"),Tr)),style:ii,onClick:Du,onMouseDown:Ru},er(mt)),u.createElement("div",{className:_()("".concat(fn,"-input"),(tn={},Object(U.a)(tn,"".concat(fn,"-input-active"),go===0),Object(U.a)(tn,"".concat(fn,"-input-placeholder"),!!$l),tn)),ref:xs},u.createElement("input",Object.assign({id:Xr,disabled:Nn[0],readOnly:Ao||!du,value:$l||Ls,onChange:function(ve){Ps(ve.target.value)},autoFocus:ia,placeholder:ct(Ni,0)||"",ref:Js},Au,ee,{autoComplete:Gs}))),u.createElement("div",{className:"".concat(fn,"-range-separator"),ref:al},ko),u.createElement("div",{className:_()("".concat(fn,"-input"),(Qr={},Object(U.a)(Qr,"".concat(fn,"-input-active"),go===1),Object(U.a)(Qr,"".concat(fn,"-input-placeholder"),!!gu),Qr)),ref:Bs},u.createElement("input",Object.assign({disabled:Nn[1],readOnly:Ao||!Jl,value:gu||Bl,onChange:function(ve){jl(ve.target.value)},placeholder:ct(Ni,1)||"",ref:Vo},ru,ee,{autoComplete:Gs}))),u.createElement("div",{className:"".concat(fn,"-active-bar"),style:Object(K.a)(Object(K.a)({},H),{},{width:W,position:"absolute"})}),iu,Ae)))}var io=function(mt){Object(X.a)(tn,mt);var Tr=Object(F.a)(tn);function tn(){var Qr;return Object(j.a)(this,tn),Qr=Tr.apply(this,arguments),Qr.pickerRef=u.createRef(),Qr.focus=function(){Qr.pickerRef.current&&Qr.pickerRef.current.focus()},Qr.blur=function(){Qr.pickerRef.current&&Qr.pickerRef.current.blur()},Qr}return Object(P.a)(tn,[{key:"render",value:function(){return u.createElement(Bi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),tn}(u.Component),oo=io,Qo=va,mo=n("61s2");function To(mt,Tr,tn){return tn!==void 0?tn:mt==="year"&&Tr.lang.yearPlaceholder?Tr.lang.yearPlaceholder:mt==="quarter"&&Tr.lang.quarterPlaceholder?Tr.lang.quarterPlaceholder:mt==="month"&&Tr.lang.monthPlaceholder?Tr.lang.monthPlaceholder:mt==="week"&&Tr.lang.weekPlaceholder?Tr.lang.weekPlaceholder:mt==="time"&&Tr.timePickerLocale.placeholder?Tr.timePickerLocale.placeholder:Tr.lang.placeholder}function ao(mt,Tr,tn){return tn!==void 0?tn:mt==="year"&&Tr.lang.yearPlaceholder?Tr.lang.rangeYearPlaceholder:mt==="month"&&Tr.lang.monthPlaceholder?Tr.lang.rangeMonthPlaceholder:mt==="week"&&Tr.lang.weekPlaceholder?Tr.lang.rangeWeekPlaceholder:mt==="time"&&Tr.timePickerLocale.placeholder?Tr.timePickerLocale.rangePlaceholder:Tr.lang.rangePlaceholder}var So=n("uaoM"),bo=n("H84U"),to=n("YMnH"),Jo=n("3Nzz"),Uo=function(mt,Tr){var tn={};for(var Qr in mt)Object.prototype.hasOwnProperty.call(mt,Qr)&&Tr.indexOf(Qr)<0&&(tn[Qr]=mt[Qr]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jn=0,Qr=Object.getOwnPropertySymbols(mt);Jn<Qr.length;Jn++)Tr.indexOf(Qr[Jn])<0&&Object.prototype.propertyIsEnumerable.call(mt,Qr[Jn])&&(tn[Qr[Jn]]=mt[Qr[Jn]]);return tn};function wo(mt){function Tr(nn,Wn){var li=function(ci){b()(Ci,ci);var si=E()(Ci);function Ci(gi){var Ai;return c()(this,Ci),Ai=si.call(this,gi),Ai.pickerRef=u.createRef(),Ai.focus=function(){Ai.pickerRef.current&&Ai.pickerRef.current.focus()},Ai.blur=function(){Ai.pickerRef.current&&Ai.pickerRef.current.blur()},Ai.getDefaultLocale=function(){var Ni=Ai.props.locale,ia=d()(d()({},mo.a),Ni);return ia.lang=d()(d()({},ia.lang),(Ni||{}).lang),ia},Ai.renderPicker=function(Ni){var ia=Ai.context,Ki=ia.getPrefixCls,fa=ia.direction,Ya=ia.getPopupContainer,xa=Ai.props,wa=xa.prefixCls,Da=xa.getPopupContainer,ja=xa.className,ko=xa.size,ro=xa.bordered,pa=ro===void 0?!0:ro,Ea=xa.placeholder,Fa=Uo(xa,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Ka=Ai.props,lo=Ka.format,so=Ka.showTime,Co=Ki("picker",wa),Lo={showToday:!0},is={};nn&&(is.picker=nn);var cs=nn||Ai.props.picker;return is=d()(d()(d()({},is),so?rs(d()({format:lo,picker:cs},so)):{}),cs==="time"?rs(d()(d()({format:lo},Ai.props),{picker:cs})):{}),u.createElement(Jo.b.Consumer,null,function(Rs){var Ko,as=ko||Rs;return u.createElement(Qo,d()({ref:Ai.pickerRef,placeholder:To(cs,Ni,Ea),suffixIcon:cs==="time"?u.createElement(I.a,null):u.createElement(w.a,null),clearIcon:u.createElement(M.a,null),allowClear:!0,transitionName:"slide-up"},Lo,Fa,is,{locale:Ni.lang,className:_()(ja,(Ko={},r()(Ko,"".concat(Co,"-").concat(as),as),r()(Ko,"".concat(Co,"-borderless"),!pa),Ko)),prefixCls:Co,getPopupContainer:Da||Ya,generateConfig:mt,prevIcon:u.createElement("span",{className:"".concat(Co,"-prev-icon")}),nextIcon:u.createElement("span",{className:"".concat(Co,"-next-icon")}),superPrevIcon:u.createElement("span",{className:"".concat(Co,"-super-prev-icon")}),superNextIcon:u.createElement("span",{className:"".concat(Co,"-super-next-icon")}),components:os,direction:fa}))})},Object(So.a)(nn!=="quarter",Wn,"DatePicker.".concat(Wn," is legacy usage. Please use DatePicker[picker='").concat(nn,"'] directly.")),Ai}return g()(Ci,[{key:"render",value:function(){return u.createElement(to.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Ci}(u.Component);return li.contextType=bo.b,Wn&&(li.displayName=Wn),li}var tn=Tr(),Qr=Tr("week","WeekPicker"),Jn=Tr("month","MonthPicker"),fn=Tr("year","YearPicker"),Xr=Tr("time","TimePicker"),ii=Tr("quarter","QuarterPicker");return{DatePicker:tn,WeekPicker:Qr,MonthPicker:Jn,YearPicker:fn,TimePicker:Xr,QuarterPicker:ii}}var ts=n("8ISB"),Ia=n.n(ts),Oo=function(mt,Tr){var tn={};for(var Qr in mt)Object.prototype.hasOwnProperty.call(mt,Qr)&&Tr.indexOf(Qr)<0&&(tn[Qr]=mt[Qr]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jn=0,Qr=Object.getOwnPropertySymbols(mt);Jn<Qr.length;Jn++)Tr.indexOf(Qr[Jn])<0&&Object.prototype.propertyIsEnumerable.call(mt,Qr[Jn])&&(tn[Qr[Jn]]=mt[Qr[Jn]]);return tn};function Io(mt){var Tr=function(tn){b()(Jn,tn);var Qr=E()(Jn);function Jn(){var fn;return c()(this,Jn),fn=Qr.apply(this,arguments),fn.pickerRef=u.createRef(),fn.focus=function(){fn.pickerRef.current&&fn.pickerRef.current.focus()},fn.blur=function(){fn.pickerRef.current&&fn.pickerRef.current.blur()},fn.getDefaultLocale=function(){var Xr=fn.props.locale,ii=d()(d()({},mo.a),Xr);return ii.lang=d()(d()({},ii.lang),(Xr||{}).lang),ii},fn.renderPicker=function(Xr){var ii=fn.context,nn=ii.getPrefixCls,Wn=ii.direction,li=ii.getPopupContainer,ci=fn.props,si=ci.prefixCls,Ci=ci.getPopupContainer,gi=ci.className,Ai=ci.size,Ni=ci.bordered,ia=Ni===void 0?!0:Ni,Ki=ci.placeholder,fa=Oo(ci,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Ya=fn.props,xa=Ya.format,wa=Ya.showTime,Da=Ya.picker,ja=nn("picker",si),ko={};return ko=d()(d()(d()({},ko),wa?rs(d()({format:xa,picker:Da},wa)):{}),Da==="time"?rs(d()(d()({format:xa},fn.props),{picker:Da})):{}),u.createElement(Jo.b.Consumer,null,function(ro){var pa,Ea=Ai||ro;return u.createElement(oo,d()({separator:u.createElement("span",{"aria-label":"to",className:"".concat(ja,"-separator")},u.createElement(Ia.a,null)),ref:fn.pickerRef,placeholder:ao(Da,Xr,Ki),suffixIcon:Da==="time"?u.createElement(I.a,null):u.createElement(w.a,null),clearIcon:u.createElement(M.a,null),allowClear:!0,transitionName:"slide-up"},fa,ko,{className:_()(gi,(pa={},r()(pa,"".concat(ja,"-").concat(Ea),Ea),r()(pa,"".concat(ja,"-borderless"),!ia),pa)),locale:Xr.lang,prefixCls:ja,getPopupContainer:Ci||li,generateConfig:mt,prevIcon:u.createElement("span",{className:"".concat(ja,"-prev-icon")}),nextIcon:u.createElement("span",{className:"".concat(ja,"-next-icon")}),superPrevIcon:u.createElement("span",{className:"".concat(ja,"-super-prev-icon")}),superNextIcon:u.createElement("span",{className:"".concat(ja,"-super-next-icon")}),components:os,direction:Wn}))})},fn}return g()(Jn,[{key:"render",value:function(){return u.createElement(to.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Jn}(u.Component);return Tr.contextType=bo.b,Tr}var os={button:t,rangeItem:e};function xo(mt){return mt?Array.isArray(mt)?mt:[mt]:[]}function rs(mt){var Tr=mt.format,tn=mt.picker,Qr=mt.showHour,Jn=mt.showMinute,fn=mt.showSecond,Xr=mt.use12Hours,ii=xo(Tr)[0],nn=d()({},mt);return ii&&(!ii.includes("s")&&fn===void 0&&(nn.showSecond=!1),!ii.includes("m")&&Jn===void 0&&(nn.showMinute=!1),!ii.includes("H")&&!ii.includes("h")&&Qr===void 0&&(nn.showHour=!1),(ii.includes("a")||ii.includes("A"))&&Xr===void 0&&(nn.use12Hours=!0)),tn==="time"?nn:{showTime:nn}}function Ho(mt){var Tr=wo(mt),tn=Tr.DatePicker,Qr=Tr.WeekPicker,Jn=Tr.MonthPicker,fn=Tr.YearPicker,Xr=Tr.TimePicker,ii=Tr.QuarterPicker,nn=Io(mt),Wn=tn;return Wn.WeekPicker=Qr,Wn.MonthPicker=Jn,Wn.YearPicker=fn,Wn.RangePicker=nn,Wn.TimePicker=Xr,Wn.QuarterPicker=ii,Wn}var _o=Ho,uo=_o(m),Ha=D.a=uo},"+lIL":function(R,D,n){var y=n("ProS");n("/ry/"),n("3OrL");var f=n("L5E0"),x=n("7Phj");y.registerVisual(f),y.registerLayout(x)},"+nKL":function(R,D,n){"use strict";var y=n("wx14"),f=n("VTBJ"),x=n("U8pU"),v=n("ODXe"),m=n("rePB"),p=n("Ff2n"),d=n("q1tI"),u=n("i8i4"),s=n("TSYQ"),i=n.n(s),t=n("t23M"),o=d.forwardRef(function(et,he){var J=et.height,Y=et.offsetY,$=et.offsetX,de=et.children,be=et.prefixCls,Ce=et.onInnerResize,Be=et.innerProps,fe=et.rtl,we=et.extra,Re={},rt={display:"flex",flexDirection:"column"};if(Y!==void 0){var St;Re={height:J,position:"relative",overflow:"hidden"},rt=Object(f.a)(Object(f.a)({},rt),{},(St={transform:"translateY(".concat(Y,"px)")},Object(m.a)(St,fe?"marginRight":"marginLeft",-$),Object(m.a)(St,"position","absolute"),Object(m.a)(St,"left",0),Object(m.a)(St,"right",0),Object(m.a)(St,"top",0),St))}return d.createElement("div",{style:Re},d.createElement(t.a,{onResize:function(He){var er=He.offsetHeight;er&&Ce&&Ce()}},d.createElement("div",Object(y.a)({style:rt,className:i()(Object(m.a)({},"".concat(be,"-holder-inner"),be)),ref:he},Be),de,we)))});o.displayName="Filler";var e=o,l=n("wgJM");function r(et,he){var J="touches"in et?et.touches[0]:et;return J[he?"pageX":"pageY"]}var a=d.forwardRef(function(et,he){var J,Y=et.prefixCls,$=et.rtl,de=et.scrollOffset,be=et.scrollRange,Ce=et.onStartMove,Be=et.onStopMove,fe=et.onScroll,we=et.horizontal,Re=et.spinSize,rt=et.containerSize,St=et.style,ft=et.thumbStyle,He=d.useState(!1),er=Object(v.a)(He,2),ct=er[0],Kt=er[1],fr=d.useState(null),Gt=Object(v.a)(fr,2),Pt=Gt[0],Xt=Gt[1],Ge=d.useState(null),pe=Object(v.a)(Ge,2),oe=pe[0],lt=pe[1],qe=!$,ge=d.useRef(),Ht=d.useRef(),vr=d.useState(!1),At=Object(v.a)(vr,2),ir=At[0],lr=At[1],dn=d.useRef(),Ft=function(){clearTimeout(dn.current),lr(!0),dn.current=setTimeout(function(){lr(!1)},3e3)},ur=be-rt||0,Jt=rt-Re||0,pt=ur>0,at=d.useMemo(function(){if(de===0||ur===0)return 0;var xt=de/ur;return xt*Jt},[de,ur,Jt]),Pr=function(De){De.stopPropagation(),De.preventDefault()},un=d.useRef({top:at,dragging:ct,pageY:Pt,startTop:oe});un.current={top:at,dragging:ct,pageY:Pt,startTop:oe};var _n=function(De){Kt(!0),Xt(r(De,we)),lt(un.current.top),Ce(),De.stopPropagation(),De.preventDefault()};d.useEffect(function(){var xt=function(tt){tt.preventDefault()},De=ge.current,ke=Ht.current;return De.addEventListener("touchstart",xt),ke.addEventListener("touchstart",_n),function(){De.removeEventListener("touchstart",xt),ke.removeEventListener("touchstart",_n)}},[]);var Xn=d.useRef();Xn.current=ur;var xi=d.useRef();xi.current=Jt,d.useEffect(function(){if(ct){var xt,De=function(tt){var yt=un.current,Et=yt.dragging,Yt=yt.pageY,Rr=yt.startTop;if(l.a.cancel(xt),Et){var zr=r(tt,we)-Yt,hn=Rr;!qe&&we?hn-=zr:hn+=zr;var jt=Xn.current,vt=xi.current,bt=vt?hn/vt:0,cr=Math.ceil(bt*jt);cr=Math.max(cr,0),cr=Math.min(cr,jt),xt=Object(l.a)(function(){fe(cr,we)})}},ke=function(){Kt(!1),Be()};return window.addEventListener("mousemove",De),window.addEventListener("touchmove",De),window.addEventListener("mouseup",ke),window.addEventListener("touchend",ke),function(){window.removeEventListener("mousemove",De),window.removeEventListener("touchmove",De),window.removeEventListener("mouseup",ke),window.removeEventListener("touchend",ke),l.a.cancel(xt)}}},[ct]),d.useEffect(function(){Ft()},[de]),d.useImperativeHandle(he,function(){return{delayHidden:Ft}});var Pn="".concat(Y,"-scrollbar"),Un={position:"absolute",visibility:ir&&pt?null:"hidden"},$t={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return we?(Un.height=8,Un.left=0,Un.right=0,Un.bottom=0,$t.height="100%",$t.width=Re,qe?$t.left=at:$t.right=at):(Un.width=8,Un.top=0,Un.bottom=0,qe?Un.right=0:Un.left=0,$t.width="100%",$t.height=Re,$t.top=at),d.createElement("div",{ref:ge,className:i()(Pn,(J={},Object(m.a)(J,"".concat(Pn,"-horizontal"),we),Object(m.a)(J,"".concat(Pn,"-vertical"),!we),Object(m.a)(J,"".concat(Pn,"-visible"),ir),J)),style:Object(f.a)(Object(f.a)({},Un),St),onMouseDown:Pr,onMouseMove:Ft},d.createElement("div",{ref:Ht,className:i()("".concat(Pn,"-thumb"),Object(m.a)({},"".concat(Pn,"-thumb-moving"),ct)),style:Object(f.a)(Object(f.a)({},$t),ft),onMouseDown:_n}))}),c=a;function h(et){var he=et.children,J=et.setRef,Y=d.useCallback(function($){J($)},[]);return d.cloneElement(he,{ref:Y})}function g(et,he,J,Y,$,de,be){var Ce=be.getKey;return et.slice(he,J+1).map(function(Be,fe){var we=he+fe,Re=de(Be,we,{style:{width:Y}}),rt=Ce(Be);return d.createElement(h,{key:rt,setRef:function(ft){return $(Be,ft)}},Re)})}var A=n("m+aA"),b=n("1OyB"),S=n("vuIU"),E=function(){function et(){Object(b.a)(this,et),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return Object(S.a)(et,[{key:"set",value:function(J,Y){this.maps[J]=Y,this.id+=1}},{key:"get",value:function(J){return this.maps[J]}}]),et}(),C=E;function _(et,he,J){var Y=d.useState(0),$=Object(v.a)(Y,2),de=$[0],be=$[1],Ce=Object(d.useRef)(new Map),Be=Object(d.useRef)(new C),fe=Object(d.useRef)();function we(){l.a.cancel(fe.current)}function Re(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;we();var ft=function(){Ce.current.forEach(function(er,ct){if(er&&er.offsetParent){var Kt=Object(A.a)(er),fr=Kt.offsetHeight;Be.current.get(ct)!==fr&&Be.current.set(ct,Kt.offsetHeight)}}),be(function(er){return er+1})};St?ft():fe.current=Object(l.a)(ft)}function rt(St,ft){var He=et(St),er=Ce.current.get(He);ft?(Ce.current.set(He,ft),Re()):Ce.current.delete(He),!er!==!ft&&(ft?he==null||he(St):J==null||J(St))}return Object(d.useEffect)(function(){return we},[]),[rt,Re,Be.current,de]}var T=n("TNol"),w=n("mBDr"),O=n("6cGi"),I=n("c+Xe"),k=n("ub+h"),M=n("bG1m"),j=n("Kwbf"),P=10;function X(et,he,J,Y,$,de,be,Ce){var Be=d.useRef(),fe=d.useState(null),we=Object(v.a)(fe,2),Re=we[0],rt=we[1];return Object(T.a)(function(){if(Re&&Re.times<P){if(!et.current){rt(function(Ft){return Object(f.a)({},Ft)});return}de();var St=Re.targetAlign,ft=Re.originAlign,He=Re.index,er=Re.offset,ct=et.current.clientHeight,Kt=!1,fr=St,Gt=null;if(ct){for(var Pt=St||ft,Xt=0,Ge=0,pe=0,oe=Math.min(he.length-1,He),lt=0;lt<=oe;lt+=1){var qe=$(he[lt]);Ge=Xt;var ge=J.get(qe);pe=Ge+(ge===void 0?Y:ge),Xt=pe}for(var Ht=Pt==="top"?er:ct-er,vr=oe;vr>=0;vr-=1){var At=$(he[vr]),ir=J.get(At);if(ir===void 0){Kt=!0;break}if(Ht-=ir,Ht<=0)break}switch(Pt){case"top":Gt=Ge-er;break;case"bottom":Gt=pe-ct+er;break;default:{var lr=et.current.scrollTop,dn=lr+ct;Ge<lr?fr="top":pe>dn&&(fr="bottom")}}Gt!==null&&be(Gt),Gt!==Re.lastTop&&(Kt=!0)}Kt&&rt(function(Ft){return Object(f.a)(Object(f.a)({},Ft),{},{times:Ft.times+1,targetAlign:fr,lastTop:Gt})})}},[Re,et.current]),function(St){if(St==null){Ce();return}if(l.a.cancel(Be.current),typeof St=="number")be(St);else if(St&&Object(x.a)(St)==="object"){var ft,He=St.align;"index"in St?ft=St.index:ft=he.findIndex(function(Kt){return $(Kt)===St.key});var er=St.offset,ct=er===void 0?0:er;rt({times:0,index:ft,offset:ct,originAlign:He})}}}function F(et,he,J,Y){var $=J-et,de=he-J,be=Math.min($,de)*2;if(Y<=be){var Ce=Math.floor(Y/2);return Y%2?J+Ce+1:J-Ce}return $>de?J-(Y-de):J+(Y-$)}function U(et,he,J){var Y=et.length,$=he.length,de,be;if(Y===0&&$===0)return null;Y<$?(de=et,be=he):(de=he,be=et);var Ce={__EMPTY_ITEM__:!0};function Be(ft){return ft!==void 0?J(ft):Ce}for(var fe=null,we=Math.abs(Y-$)!==1,Re=0;Re<be.length;Re+=1){var rt=Be(de[Re]),St=Be(be[Re]);if(rt!==St){fe=Re,we=we||rt!==Be(be[Re+1]);break}}return fe===null?null:{index:fe,multiple:we}}function K(et,he,J){var Y=d.useState(et),$=Object(v.a)(Y,2),de=$[0],be=$[1],Ce=d.useState(null),Be=Object(v.a)(Ce,2),fe=Be[0],we=Be[1];return d.useEffect(function(){var Re=U(de||[],et||[],he);(Re==null?void 0:Re.index)!==void 0&&(J==null||J(Re.index),we(et[Re.index])),be(et)},[et]),[fe]}var z=(typeof navigator=="undefined"?"undefined":Object(x.a)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),V=z,Q=function(et,he){var J=Object(d.useRef)(!1),Y=Object(d.useRef)(null);function $(){clearTimeout(Y.current),J.current=!0,Y.current=setTimeout(function(){J.current=!1},50)}var de=Object(d.useRef)({top:et,bottom:he});return de.current.top=et,de.current.bottom=he,function(be){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Be=be<0&&de.current.top||be>0&&de.current.bottom;return Ce&&Be?(clearTimeout(Y.current),J.current=!1):(!Be||J.current)&&$(),!J.current&&Be}};function G(et,he,J,Y,$){var de=Object(d.useRef)(0),be=Object(d.useRef)(null),Ce=Object(d.useRef)(null),Be=Object(d.useRef)(!1),fe=Q(he,J);function we(er,ct){if(l.a.cancel(be.current),de.current+=ct,Ce.current=ct,fe(ct))return;V||er.preventDefault(),be.current=Object(l.a)(function(){var Kt=Be.current?10:1;$(de.current*Kt),de.current=0})}function Re(er,ct){$(ct,!0),V||er.preventDefault()}var rt=Object(d.useRef)(null),St=Object(d.useRef)(null);function ft(er){if(!et)return;l.a.cancel(St.current),St.current=Object(l.a)(function(){rt.current=null},2);var ct=er.deltaX,Kt=er.deltaY,fr=er.shiftKey,Gt=ct,Pt=Kt;(rt.current==="sx"||!rt.current&&(fr||!1)&&Kt&&!ct)&&(Gt=Kt,Pt=0,rt.current="sx");var Xt=Math.abs(Gt),Ge=Math.abs(Pt);rt.current===null&&(rt.current=Y&&Xt>Ge?"x":"y"),rt.current==="y"?we(er,Pt):Re(er,Gt)}function He(er){if(!et)return;Be.current=er.detail===Ce.current}return[ft,He]}var te=14/15;function q(et,he,J){var Y=Object(d.useRef)(!1),$=Object(d.useRef)(0),de=Object(d.useRef)(null),be=Object(d.useRef)(null),Ce,Be=function(rt){if(Y.current){var St=Math.ceil(rt.touches[0].pageY),ft=$.current-St;$.current=St,J(ft)&&rt.preventDefault(),clearInterval(be.current),be.current=setInterval(function(){ft*=te,(!J(ft,!0)||Math.abs(ft)<=.1)&&clearInterval(be.current)},16)}},fe=function(){Y.current=!1,Ce()},we=function(rt){Ce(),rt.touches.length===1&&!Y.current&&(Y.current=!0,$.current=Math.ceil(rt.touches[0].pageY),de.current=rt.target,de.current.addEventListener("touchmove",Be),de.current.addEventListener("touchend",fe))};Ce=function(){de.current&&(de.current.removeEventListener("touchmove",Be),de.current.removeEventListener("touchend",fe))},Object(T.a)(function(){return et&&he.current.addEventListener("touchstart",we),function(){var Re;(Re=he.current)===null||Re===void 0||Re.removeEventListener("touchstart",we),Ce(),clearInterval(be.current)}},[et])}var se=20;function re(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,J=et/he*100;return isNaN(J)&&(J=0),J=Math.max(J,se),J=Math.min(J,et/2),Math.floor(J)}function xe(et,he,J,Y){var $=d.useMemo(function(){return[new Map,[]]},[et,J.id,Y]),de=Object(v.a)($,2),be=de[0],Ce=de[1],Be=function(we){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:we,rt=be.get(we),St=be.get(Re);if(rt===void 0||St===void 0)for(var ft=et.length,He=Ce.length;He<ft;He+=1){var er,ct=et[He],Kt=he(ct);be.set(Kt,He);var fr=(er=J.get(Kt))!==null&&er!==void 0?er:Y;if(Ce[He]=(Ce[He-1]||0)+fr,Kt===we&&(rt=He),Kt===Re&&(St=He),rt!==void 0&&St!==void 0)break}return{top:Ce[rt-1]||0,bottom:Ce[St]}};return Be}var Oe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Me=[],Qe={overflowY:"auto",overflowAnchor:"none"};function Ve(et,he){var J=et.prefixCls,Y=J===void 0?"rc-virtual-list":J,$=et.className,de=et.height,be=et.itemHeight,Ce=et.fullHeight,Be=Ce===void 0?!0:Ce,fe=et.style,we=et.data,Re=et.children,rt=et.itemKey,St=et.virtual,ft=et.direction,He=et.scrollWidth,er=et.component,ct=er===void 0?"div":er,Kt=et.onScroll,fr=et.onVirtualScroll,Gt=et.onVisibleChange,Pt=et.innerProps,Xt=et.extraRender,Ge=et.styles,pe=Object(p.a)(et,Oe),oe=!!(St!==!1&&de&&be),lt=oe&&we&&(be*we.length>de||!!He),qe=ft==="rtl",ge=i()(Y,Object(m.a)({},"".concat(Y,"-rtl"),qe),$),Ht=we||Me,vr=Object(d.useRef)(),At=Object(d.useRef)(),ir=Object(d.useState)(0),lr=Object(v.a)(ir,2),dn=lr[0],Ft=lr[1],ur=Object(d.useState)(0),Jt=Object(v.a)(ur,2),pt=Jt[0],at=Jt[1],Pr=Object(d.useState)(!1),un=Object(v.a)(Pr,2),_n=un[0],Xn=un[1],xi=function(){Xn(!0)},Pn=function(){Xn(!1)},Un=d.useCallback(function(ti){return typeof rt=="function"?rt(ti):ti==null?void 0:ti[rt]},[rt]),$t={getKey:Un};function xt(ti){Ft(function(pi){var Pi;typeof ti=="function"?Pi=ti(pi):Pi=ti;var qr=_i(Pi);return vr.current.scrollTop=qr,qr})}var De=Object(d.useRef)({start:0,end:Ht.length}),ke=Object(d.useRef)(),Pe=K(Ht,Un),tt=Object(v.a)(Pe,1),yt=tt[0];ke.current=yt;var Et=_(Un,null,null),Yt=Object(v.a)(Et,4),Rr=Yt[0],zr=Yt[1],hn=Yt[2],jt=Yt[3],vt=d.useMemo(function(){if(!oe)return{scrollHeight:void 0,start:0,end:Ht.length-1,offset:void 0};if(!lt){var ti;return{scrollHeight:((ti=At.current)===null||ti===void 0?void 0:ti.offsetHeight)||0,start:0,end:Ht.length-1,offset:void 0}}for(var pi=0,Pi,qr,En,Yn=Ht.length,zt=0;zt<Yn;zt+=1){var Ot=Ht[zt],kt=Un(Ot),Bt=hn.get(kt),Wt=pi+(Bt===void 0?be:Bt);Wt>=dn&&Pi===void 0&&(Pi=zt,qr=pi),Wt>dn+de&&En===void 0&&(En=zt),pi=Wt}return Pi===void 0&&(Pi=0,qr=0,En=Math.ceil(de/be)),En===void 0&&(En=Ht.length-1),En=Math.min(En+1,Ht.length-1),{scrollHeight:pi,start:Pi,end:En,offset:qr}},[lt,oe,dn,Ht,jt,de]),bt=vt.scrollHeight,cr=vt.start,Qt=vt.end,Mt=vt.offset;De.current.start=cr,De.current.end=Qt;var tr=d.useState({width:0,height:de}),Rt=Object(v.a)(tr,2),qt=Rt[0],Hr=Rt[1],Nr=function(pi){Hr({width:pi.width||pi.offsetWidth,height:pi.height||pi.offsetHeight})},Dr=Object(d.useRef)(),cn=Object(d.useRef)(),An=d.useMemo(function(){return re(qt.width,He)},[qt.width,He]),ri=d.useMemo(function(){return re(qt.height,bt)},[qt.height,bt]),$n=bt-de,fi=Object(d.useRef)($n);fi.current=$n;function _i(ti){var pi=ti;return Number.isNaN(fi.current)||(pi=Math.min(pi,fi.current)),pi=Math.max(pi,0),pi}var Di=dn<=0,Wi=dn>=$n,it=Q(Di,Wi),Le=function(){return{x:qe?-pt:pt,y:dn}},je=Object(d.useRef)(Le()),Xe=Object(w.a)(function(){if(fr){var ti=Le();(je.current.x!==ti.x||je.current.y!==ti.y)&&(fr(ti),je.current=ti)}});function nt(ti,pi){var Pi=ti;pi?(Object(u.flushSync)(function(){at(Pi)}),Xe()):xt(Pi)}function Ze(ti){var pi=ti.currentTarget.scrollTop;pi!==dn&&xt(pi),Kt==null||Kt(ti),Xe()}var ot=function(pi){var Pi=pi,qr=He-qt.width;return Pi=Math.max(Pi,0),Pi=Math.min(Pi,qr),Pi},Ct=Object(w.a)(function(ti,pi){pi?(Object(u.flushSync)(function(){at(function(Pi){var qr=Pi+(qe?-ti:ti);return ot(qr)})}),Xe()):xt(function(Pi){var qr=Pi+ti;return qr})}),gt=G(oe,Di,Wi,!!He,Ct),pr=Object(v.a)(gt,2),$r=pr[0],Yr=pr[1];q(oe,vr,function(ti,pi){return it(ti,pi)?!1:($r({preventDefault:function(){},deltaY:ti}),!0)}),Object(T.a)(function(){function ti(Pi){oe&&Pi.preventDefault()}var pi=vr.current;return pi.addEventListener("wheel",$r),pi.addEventListener("DOMMouseScroll",Yr),pi.addEventListener("MozMousePixelScroll",ti),function(){pi.removeEventListener("wheel",$r),pi.removeEventListener("DOMMouseScroll",Yr),pi.removeEventListener("MozMousePixelScroll",ti)}},[oe]),Object(T.a)(function(){He&&at(function(ti){return ot(ti)})},[qt.width,He]);var mn=function(){var pi,Pi;(pi=Dr.current)===null||pi===void 0||pi.delayHidden(),(Pi=cn.current)===null||Pi===void 0||Pi.delayHidden()},Ar=X(vr,Ht,hn,be,Un,function(){return zr(!0)},xt,mn);d.useImperativeHandle(he,function(){return{getScrollInfo:Le,scrollTo:function(pi){function Pi(qr){return qr&&Object(x.a)(qr)==="object"&&("left"in qr||"top"in qr)}Pi(pi)?(pi.left!==void 0&&at(ot(pi.left)),Ar(pi.top)):Ar(pi)}}}),Object(T.a)(function(){if(Gt){var ti=Ht.slice(cr,Qt+1);Gt(ti,Ht)}},[cr,Qt,Ht]);var zn=xe(Ht,Un,hn,be),Fr=Xt==null?void 0:Xt({start:cr,end:Qt,virtual:lt,offsetX:pt,offsetY:Mt,rtl:qe,getSize:zn}),Bn=g(Ht,cr,Qt,He,Rr,Re,$t),bn=null;de&&(bn=Object(f.a)(Object(m.a)({},Be?"height":"maxHeight",de),Qe),oe&&(bn.overflowY="hidden",He&&(bn.overflowX="hidden"),_n&&(bn.pointerEvents="none")));var en={};return qe&&(en.dir="rtl"),d.createElement("div",Object(y.a)({style:Object(f.a)(Object(f.a)({},fe),{},{position:"relative"}),className:ge},en,pe),d.createElement(t.a,{onResize:Nr},d.createElement(ct,{className:"".concat(Y,"-holder"),style:bn,ref:vr,onScroll:Ze,onMouseEnter:mn},d.createElement(e,{prefixCls:Y,height:bt,offsetX:pt,offsetY:Mt,scrollWidth:He,onInnerResize:zr,ref:At,innerProps:Pt,rtl:qe,extra:Fr},Bn))),lt&&bt>de&&d.createElement(c,{ref:Dr,prefixCls:Y,scrollOffset:dn,scrollRange:bt,rtl:qe,onScroll:nt,onStartMove:xi,onStopMove:Pn,spinSize:ri,containerSize:qt.height,style:Ge==null?void 0:Ge.verticalScrollBar,thumbStyle:Ge==null?void 0:Ge.verticalScrollBarThumb}),lt&&He&&d.createElement(c,{ref:cn,prefixCls:Y,scrollOffset:pt,scrollRange:He,rtl:qe,onScroll:nt,onStartMove:xi,onStopMove:Pn,spinSize:An,containerSize:qt.width,horizontal:!0,style:Ge==null?void 0:Ge.horizontalScrollBar,thumbStyle:Ge==null?void 0:Ge.horizontalScrollBarThumb}))}var ut=d.forwardRef(Ve);ut.displayName="List";var Fe=ut,ue=D.a=Fe},"+rIm":function(R,D,n){var y=n("bYtY"),f=y.retrieve,x=y.defaults,v=y.extend,m=y.each,p=n("7aKB"),d=n("IwbS"),u=n("Qxkt"),s=n("OELB"),i=s.isRadianAroundZero,t=s.remRadian,o=n("oVpE"),e=o.createSymbol,l=n("Fofx"),r=n("QBsz"),a=r.applyTransform,c=n("aX7z"),h=c.shouldShowAllLabels,g=Math.PI,A=function(F,U){this.opt=U,this.axisModel=F,x(U,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new d.Group;var K=new d.Group({position:U.position.slice(),rotation:U.rotation});K.updateTransform(),this._transform=K.transform,this._dumbGroup=K};A.prototype={constructor:A,hasBuilder:function(F){return!!b[F]},add:function(F){b[F].call(this)},getGroup:function(){return this.group}};var b={axisLine:function(){var F=this.opt,U=this.axisModel;if(!U.get("axisLine.show"))return;var K=this.axisModel.axis.getExtent(),z=this._transform,V=[K[0],0],Q=[K[1],0];z&&(a(V,V,z),a(Q,Q,z));var G=v({lineCap:"round"},U.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new d.Line({anid:"line",subPixelOptimize:!0,shape:{x1:V[0],y1:V[1],x2:Q[0],y2:Q[1]},style:G,strokeContainThreshold:F.strokeContainThreshold||5,silent:!0,z2:1}));var te=U.get("axisLine.symbol"),q=U.get("axisLine.symbolSize"),se=U.get("axisLine.symbolOffset")||0;if(typeof se=="number"&&(se=[se,se]),te!=null){typeof te=="string"&&(te=[te,te]),(typeof q=="string"||typeof q=="number")&&(q=[q,q]);var re=q[0],xe=q[1];m([{rotate:F.rotation+Math.PI/2,offset:se[0],r:0},{rotate:F.rotation-Math.PI/2,offset:se[1],r:Math.sqrt((V[0]-Q[0])*(V[0]-Q[0])+(V[1]-Q[1])*(V[1]-Q[1]))}],function(Oe,Me){if(te[Me]!=="none"&&te[Me]!=null){var Qe=e(te[Me],-re/2,-xe/2,re,xe,G.stroke,!0),Ve=Oe.r+Oe.offset,ut=[V[0]+Ve*Math.cos(F.rotation),V[1]-Ve*Math.sin(F.rotation)];Qe.attr({rotation:Oe.rotate,position:ut,silent:!0,z2:11}),this.group.add(Qe)}},this)}},axisTickLabel:function(){var F=this.axisModel,U=this.opt,K=M(this,F,U),z=P(this,F,U);T(F,z,K),j(this,F,U)},axisName:function(){var F=this.opt,U=this.axisModel,K=f(F.axisName,U.get("name"));if(!K)return;var z=U.get("nameLocation"),V=F.nameDirection,Q=U.getModel("nameTextStyle"),G=U.get("nameGap")||0,te=this.axisModel.axis.getExtent(),q=te[0]>te[1]?-1:1,se=[z==="start"?te[0]-q*G:z==="end"?te[1]+q*G:(te[0]+te[1])/2,I(z)?F.labelOffset+V*G:0],re,xe=U.get("nameRotate");xe!=null&&(xe=xe*g/180);var Oe;I(z)?re=E(F.rotation,xe!=null?xe:F.rotation,V):(re=C(F,z,xe||0,te),Oe=F.axisNameAvailableWidth,Oe!=null&&(Oe=Math.abs(Oe/Math.sin(re.rotation)),!isFinite(Oe)&&(Oe=null)));var Me=Q.getFont(),Qe=U.get("nameTruncate",!0)||{},Ve=Qe.ellipsis,ut=f(F.nameTruncateMaxWidth,Qe.maxWidth,Oe),Fe=Ve!=null&&ut!=null?p.truncateText(K,ut,Me,Ve,{minChar:2,placeholder:Qe.placeholder}):K,ue=U.get("tooltip",!0),et=U.mainType,he={componentType:et,name:K,$vars:["name"]};he[et+"Index"]=U.componentIndex;var J=new d.Text({anid:"name",__fullText:K,__truncatedText:Fe,position:se,rotation:re.rotation,silent:_(U),z2:1,tooltip:ue&&ue.show?v({content:K,formatter:function(){return K},formatterParams:he},ue):null});d.setTextStyle(J.style,Q,{text:Fe,textFont:Me,textFill:Q.getTextColor()||U.get("axisLine.lineStyle.color"),textAlign:Q.get("align")||re.textAlign,textVerticalAlign:Q.get("verticalAlign")||re.textVerticalAlign}),U.get("triggerEvent")&&(J.eventData=S(U),J.eventData.targetType="axisName",J.eventData.name=K),this._dumbGroup.add(J),J.updateTransform(),this.group.add(J),J.decomposeTransform()}},S=A.makeAxisEventDataBase=function(F){var U={componentType:F.mainType,componentIndex:F.componentIndex};return U[F.mainType+"Index"]=F.componentIndex,U},E=A.innerTextLayout=function(F,U,K){var z=t(U-F),V,Q;return i(z)?(Q=K>0?"top":"bottom",V="center"):i(z-g)?(Q=K>0?"bottom":"top",V="center"):(Q="middle",z>0&&z<g?V=K>0?"right":"left":V=K>0?"left":"right"),{rotation:z,textAlign:V,textVerticalAlign:Q}};function C(F,U,K,z){var V=t(K-F.rotation),Q,G,te=z[0]>z[1],q=U==="start"&&!te||U!=="start"&&te;return i(V-g/2)?(G=q?"bottom":"top",Q="center"):i(V-g*1.5)?(G=q?"top":"bottom",Q="center"):(G="middle",V<g*1.5&&V>g/2?Q=q?"left":"right":Q=q?"right":"left"),{rotation:V,textAlign:Q,textVerticalAlign:G}}var _=A.isLabelSilent=function(F){var U=F.get("tooltip");return F.get("silent")||!(F.get("triggerEvent")||U&&U.show)};function T(F,U,K){if(h(F.axis))return;var z=F.get("axisLabel.showMinLabel"),V=F.get("axisLabel.showMaxLabel");U=U||[],K=K||[];var Q=U[0],G=U[1],te=U[U.length-1],q=U[U.length-2],se=K[0],re=K[1],xe=K[K.length-1],Oe=K[K.length-2];z===!1?(w(Q),w(se)):O(Q,G)&&(z?(w(G),w(re)):(w(Q),w(se))),V===!1?(w(te),w(xe)):O(q,te)&&(V?(w(q),w(Oe)):(w(te),w(xe)))}function w(F){F&&(F.ignore=!0)}function O(F,U,K){var z=F&&F.getBoundingRect().clone(),V=U&&U.getBoundingRect().clone();if(!z||!V)return;var Q=l.identity([]);return l.rotate(Q,Q,-F.rotation),z.applyTransform(l.mul([],Q,F.getLocalTransform())),V.applyTransform(l.mul([],Q,U.getLocalTransform())),z.intersect(V)}function I(F){return F==="middle"||F==="center"}function k(F,U,K,z,V){for(var Q=[],G=[],te=[],q=0;q<F.length;q++){var se=F[q].coord;G[0]=se,G[1]=0,te[0]=se,te[1]=K,U&&(a(G,G,U),a(te,te,U));var re=new d.Line({anid:V+"_"+F[q].tickValue,subPixelOptimize:!0,shape:{x1:G[0],y1:G[1],x2:te[0],y2:te[1]},style:z,z2:2,silent:!0});Q.push(re)}return Q}function M(F,U,K){var z=U.axis,V=U.getModel("axisTick");if(!V.get("show")||z.scale.isBlank())return;for(var Q=V.getModel("lineStyle"),G=K.tickDirection*V.get("length"),te=z.getTicksCoords(),q=k(te,F._transform,G,x(Q.getLineStyle(),{stroke:U.get("axisLine.lineStyle.color")}),"ticks"),se=0;se<q.length;se++)F.group.add(q[se]);return q}function j(F,U,K){var z=U.axis,V=U.getModel("minorTick");if(!V.get("show")||z.scale.isBlank())return;var Q=z.getMinorTicksCoords();if(!Q.length)return;for(var G=V.getModel("lineStyle"),te=K.tickDirection*V.get("length"),q=x(G.getLineStyle(),x(U.getModel("axisTick").getLineStyle(),{stroke:U.get("axisLine.lineStyle.color")})),se=0;se<Q.length;se++)for(var re=k(Q[se],F._transform,te,q,"minorticks_"+se),xe=0;xe<re.length;xe++)F.group.add(re[xe])}function P(F,U,K){var z=U.axis,V=f(K.axisLabelShow,U.get("axisLabel.show"));if(!V||z.scale.isBlank())return;var Q=U.getModel("axisLabel"),G=Q.get("margin"),te=z.getViewLabels(),q=(f(K.labelRotate,Q.get("rotate"))||0)*g/180,se=E(K.rotation,q,K.labelDirection),re=U.getCategories&&U.getCategories(!0),xe=[],Oe=_(U),Me=U.get("triggerEvent");return m(te,function(Qe,Ve){var ut=Qe.tickValue,Fe=Qe.formattedLabel,ue=Qe.rawLabel,et=Q;re&&re[ut]&&re[ut].textStyle&&(et=new u(re[ut].textStyle,Q,U.ecModel));var he=et.getTextColor()||U.get("axisLine.lineStyle.color"),J=z.dataToCoord(ut),Y=[J,K.labelOffset+K.labelDirection*G],$=new d.Text({anid:"label_"+ut,position:Y,rotation:se.rotation,silent:Oe,z2:10});d.setTextStyle($.style,et,{text:Fe,textAlign:et.getShallow("align",!0)||se.textAlign,textVerticalAlign:et.getShallow("verticalAlign",!0)||et.getShallow("baseline",!0)||se.textVerticalAlign,textFill:typeof he=="function"?he(z.type==="category"?ue:z.type==="value"?ut+"":ut,Ve):he}),Me&&($.eventData=S(U),$.eventData.targetType="axisLabel",$.eventData.value=ue),F._dumbGroup.add($),$.updateTransform(),xe.push($),F.group.add($),$.decomposeTransform()}),xe}var X=A;R.exports=X},"+wW9":function(R,D,n){var y=n("bYtY"),f=y.each,x=y.isArray,v=y.isObject,m=n("JuEJ"),p=n("4NO4"),d=p.normalizeToArray;function u(l,r){r=r.split(",");for(var a=l,c=0;c<r.length&&!(a=a&&a[r[c]],a==null);c++);return a}function s(l,r,a,c){r=r.split(",");for(var h=l,g,A=0;A<r.length-1;A++)g=r[A],h[g]==null&&(h[g]={}),h=h[g];(c||h[r[A]]==null)&&(h[r[A]]=a)}function i(l){f(t,function(r){r[0]in l&&!(r[1]in l)&&(l[r[1]]=l[r[0]])})}var t=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],o=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function e(l,r){m(l,r),l.series=d(l.series),f(l.series,function(a){if(!v(a))return;var c=a.type;if(c==="line")a.clipOverflow!=null&&(a.clip=a.clipOverflow);else if(c==="pie"||c==="gauge")a.clockWise!=null&&(a.clockwise=a.clockWise);else if(c==="gauge"){var h=u(a,"pointer.color");h!=null&&s(a,"itemStyle.color",h)}i(a)}),l.dataRange&&(l.visualMap=l.dataRange),f(o,function(a){var c=l[a];c&&(x(c)||(c=[c]),f(c,function(h){i(h)}))})}R.exports=e},"/IIm":function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("bYtY"),v=n("H6uX"),m=n("IwbS"),p=n("pP6R"),d=n("gPAo"),u=x.curry,s=x.each,i=x.map,t=Math.min,o=Math.max,e=Math.pow,l=1e4,r=6,a=6,c="globalPan",h={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},g={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},A={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},b=0;function S(fe){v.call(this),this._zr=fe,this.group=new m.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+b++,this._handlers={},s(Y,function(we,Re){this._handlers[Re]=x.bind(we,this)},this)}S.prototype={constructor:S,enableBrush:function(fe){return this._brushType&&C(this),fe.brushType&&E(this,fe),this},setPanels:function(fe){if(fe&&fe.length){var we=this._panels={};x.each(fe,function(Re){we[Re.panelId]=x.clone(Re)})}else this._panels=null;return this},mount:function(fe){fe=fe||{},this._enableGlobalPan=fe.enableGlobalPan;var we=this.group;return this._zr.add(we),we.attr({position:fe.position||[0,0],rotation:fe.rotation||0,scale:fe.scale||[1,1]}),this._transform=we.getLocalTransform(),this},eachCover:function(fe,we){s(this._covers,fe,we)},updateCovers:function(fe){fe=x.map(fe,function(fr){return x.merge(x.clone(A),fr,!0)});var we="\0-brush-index-",Re=this._covers,rt=this._covers=[],St=this,ft=this._creatingCover;return new d(Re,fe,er,He).add(ct).update(ct).remove(Kt).execute(),this;function He(fr,Gt){return(fr.id!=null?fr.id:we+Gt)+"-"+fr.brushType}function er(fr,Gt){return He(fr.__brushOption,Gt)}function ct(fr,Gt){var Pt=fe[fr];if(Gt!=null&&Re[Gt]===ft)rt[fr]=Re[Gt];else{var Xt=rt[fr]=Gt!=null?(Re[Gt].__brushOption=Pt,Re[Gt]):O(St,w(St,Pt));M(St,Xt)}}function Kt(fr){Re[fr]!==ft&&St.group.remove(Re[fr])}},unmount:function(){return this.enableBrush(!1),F(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},x.mixin(S,v);function E(fe,we){var Re=fe._zr;fe._enableGlobalPan||p.take(Re,c,fe._uid),_(Re,fe._handlers),fe._brushType=we.brushType,fe._brushOption=x.merge(x.clone(A),we,!0)}function C(fe){var we=fe._zr;p.release(we,c,fe._uid),T(we,fe._handlers),fe._brushType=fe._brushOption=null}function _(fe,we){s(we,function(Re,rt){fe.on(rt,Re)})}function T(fe,we){s(we,function(Re,rt){fe.off(rt,Re)})}function w(fe,we){var Re=be[we.brushType].createCover(fe,we);return Re.__brushOption=we,k(Re,we),fe.group.add(Re),Re}function O(fe,we){var Re=j(we);return Re.endCreating&&(Re.endCreating(fe,we),k(we,we.__brushOption)),we}function I(fe,we){var Re=we.__brushOption;j(we).updateCoverShape(fe,we,Re.range,Re)}function k(fe,we){var Re=we.z;Re==null&&(Re=l),fe.traverse(function(rt){rt.z=Re,rt.z2=Re})}function M(fe,we){j(we).updateCommon(fe,we),I(fe,we)}function j(fe){return be[fe.__brushOption.brushType]}function P(fe,we,Re){var rt=fe._panels;if(!rt)return!0;var St,ft=fe._transform;return s(rt,function(He){He.isTargetByCursor(we,Re,ft)&&(St=He)}),St}function X(fe,we){var Re=fe._panels;if(!Re)return!0;var rt=we.__brushOption.panelId;return rt!=null?Re[rt]:!0}function F(fe){var we=fe._covers,Re=we.length;return s(we,function(rt){fe.group.remove(rt)},fe),we.length=0,!!Re}function U(fe,we){var Re=i(fe._covers,function(rt){var St=rt.__brushOption,ft=x.clone(St.range);return{brushType:St.brushType,panelId:St.panelId,range:ft}});fe.trigger("brush",Re,{isEnd:!!we.isEnd,removeOnClick:!!we.removeOnClick})}function K(fe){var we=fe._track;if(!we.length)return!1;var Re=we[we.length-1],rt=we[0],St=Re[0]-rt[0],ft=Re[1]-rt[1],He=e(St*St+ft*ft,.5);return He>r}function z(fe){var we=fe.length-1;return we<0&&(we=0),[fe[0],fe[we]]}function V(fe,we,Re,rt){var St=new m.Group;return St.add(new m.Rect({name:"main",style:q(Re),silent:!0,draggable:!0,cursor:"move",drift:u(fe,we,St,"nswe"),ondragend:u(U,we,{isEnd:!0})})),s(rt,function(ft){St.add(new m.Rect({name:ft,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:u(fe,we,St,ft),ondragend:u(U,we,{isEnd:!0})}))}),St}function Q(fe,we,Re,rt){var St=rt.brushStyle.lineWidth||0,ft=o(St,a),He=Re[0][0],er=Re[1][0],ct=He-St/2,Kt=er-St/2,fr=Re[0][1],Gt=Re[1][1],Pt=fr-ft+St/2,Xt=Gt-ft+St/2,Ge=fr-He,pe=Gt-er,oe=Ge+St,lt=pe+St;te(fe,we,"main",He,er,Ge,pe),rt.transformable&&(te(fe,we,"w",ct,Kt,ft,lt),te(fe,we,"e",Pt,Kt,ft,lt),te(fe,we,"n",ct,Kt,oe,ft),te(fe,we,"s",ct,Xt,oe,ft),te(fe,we,"nw",ct,Kt,ft,ft),te(fe,we,"ne",Pt,Kt,ft,ft),te(fe,we,"sw",ct,Xt,ft,ft),te(fe,we,"se",Pt,Xt,ft,ft))}function G(fe,we){var Re=we.__brushOption,rt=Re.transformable,St=we.childAt(0);St.useStyle(q(Re)),St.attr({silent:!rt,cursor:rt?"move":"default"}),s(["w","e","n","s","se","sw","ne","nw"],function(ft){var He=we.childOfName(ft),er=xe(fe,ft);He&&He.attr({silent:!rt,invisible:!rt,cursor:rt?g[er]+"-resize":null})})}function te(fe,we,Re,rt,St,ft,He){var er=we.childOfName(Re);er&&er.setShape(ut(Ve(fe,we,[[rt,St],[rt+ft,St+He]])))}function q(fe){return x.defaults({strokeNoScale:!0},fe.brushStyle)}function se(fe,we,Re,rt){var St=[t(fe,Re),t(we,rt)],ft=[o(fe,Re),o(we,rt)];return[[St[0],ft[0]],[St[1],ft[1]]]}function re(fe){return m.getTransform(fe.group)}function xe(fe,we){if(we.length>1){we=we.split("");var Re=[xe(fe,we[0]),xe(fe,we[1])];return(Re[0]==="e"||Re[0]==="w")&&Re.reverse(),Re.join("")}else{var rt={w:"left",e:"right",n:"top",s:"bottom"},St={left:"w",right:"e",top:"n",bottom:"s"},Re=m.transformDirection(rt[we],re(fe));return St[Re]}}function Oe(fe,we,Re,rt,St,ft,He,er){var ct=rt.__brushOption,Kt=fe(ct.range),fr=Qe(Re,ft,He);s(St.split(""),function(Gt){var Pt=h[Gt];Kt[Pt[0]][Pt[1]]+=fr[Pt[0]]}),ct.range=we(se(Kt[0][0],Kt[1][0],Kt[0][1],Kt[1][1])),M(Re,rt),U(Re,{isEnd:!1})}function Me(fe,we,Re,rt,St){var ft=we.__brushOption.range,He=Qe(fe,Re,rt);s(ft,function(er){er[0]+=He[0],er[1]+=He[1]}),M(fe,we),U(fe,{isEnd:!1})}function Qe(fe,we,Re){var rt=fe.group,St=rt.transformCoordToLocal(we,Re),ft=rt.transformCoordToLocal(0,0);return[St[0]-ft[0],St[1]-ft[1]]}function Ve(fe,we,Re){var rt=X(fe,we);return rt&&rt!==!0?rt.clipPath(Re,fe._transform):x.clone(Re)}function ut(fe){var we=t(fe[0][0],fe[1][0]),Re=t(fe[0][1],fe[1][1]),rt=o(fe[0][0],fe[1][0]),St=o(fe[0][1],fe[1][1]);return{x:we,y:Re,width:rt-we,height:St-Re}}function Fe(fe,we,Re){if(!fe._brushType||de(fe,we))return;var rt=fe._zr,St=fe._covers,ft=P(fe,we,Re);if(!fe._dragging)for(var He=0;He<St.length;He++){var er=St[He].__brushOption;if(ft&&(ft===!0||er.panelId===ft.panelId)&&be[er.brushType].contain(St[He],Re[0],Re[1]))return}ft&&rt.setCursorStyle("crosshair")}function ue(fe){var we=fe.event;we.preventDefault&&we.preventDefault()}function et(fe,we,Re){return fe.childOfName("main").contain(we,Re)}function he(fe,we,Re,rt){var St=fe._creatingCover,ft=fe._creatingPanel,He=fe._brushOption,er;if(fe._track.push(Re.slice()),K(fe)||St){if(ft&&!St){He.brushMode==="single"&&F(fe);var ct=x.clone(He);ct.brushType=J(ct.brushType,ft),ct.panelId=ft===!0?null:ft.panelId,St=fe._creatingCover=w(fe,ct),fe._covers.push(St)}if(St){var Kt=be[J(fe._brushType,ft)],fr=St.__brushOption;fr.range=Kt.getCreatingRange(Ve(fe,St,fe._track)),rt&&(O(fe,St),Kt.updateCommon(fe,St)),I(fe,St),er={isEnd:rt}}}else rt&&He.brushMode==="single"&&He.removeOnClick&&(P(fe,we,Re)&&F(fe)&&(er={isEnd:rt,removeOnClick:!0}));return er}function J(fe,we){return fe==="auto"?we.defaultBrushType:fe}var Y={mousedown:function(fe){if(this._dragging)$(this,fe);else if(!fe.target||!fe.target.draggable){ue(fe);var we=this.group.transformCoordToLocal(fe.offsetX,fe.offsetY);this._creatingCover=null;var Re=this._creatingPanel=P(this,fe,we);Re&&(this._dragging=!0,this._track=[we.slice()])}},mousemove:function(fe){var we=fe.offsetX,Re=fe.offsetY,rt=this.group.transformCoordToLocal(we,Re);if(Fe(this,fe,rt),this._dragging){ue(fe);var St=he(this,fe,rt,!1);St&&U(this,St)}},mouseup:function(fe){$(this,fe)}};function $(fe,we){if(fe._dragging){ue(we);var Re=we.offsetX,rt=we.offsetY,St=fe.group.transformCoordToLocal(Re,rt),ft=he(fe,we,St,!0);fe._dragging=!1,fe._track=[],fe._creatingCover=null,ft&&U(fe,ft)}}function de(fe,we,Re){var rt=fe._zr;return we<0||we>rt.getWidth()||Re<0||Re>rt.getHeight()}var be={lineX:Ce(0),lineY:Ce(1),rect:{createCover:function(fe,we){return V(u(Oe,function(Re){return Re},function(Re){return Re}),fe,we,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(fe){var we=z(fe);return se(we[1][0],we[1][1],we[0][0],we[0][1])},updateCoverShape:function(fe,we,Re,rt){Q(fe,we,Re,rt)},updateCommon:G,contain:et},polygon:{createCover:function(fe,we){var Re=new m.Group;return Re.add(new m.Polyline({name:"main",style:q(we),silent:!0})),Re},getCreatingRange:function(fe){return fe},endCreating:function(fe,we){we.remove(we.childAt(0)),we.add(new m.Polygon({name:"main",draggable:!0,drift:u(Me,fe,we),ondragend:u(U,fe,{isEnd:!0})}))},updateCoverShape:function(fe,we,Re,rt){we.childAt(0).setShape({points:Ve(fe,we,Re)})},updateCommon:G,contain:et}};function Ce(fe){return{createCover:function(we,Re){return V(u(Oe,function(rt){var St=[rt,[0,100]];return fe&&St.reverse(),St},function(rt){return rt[fe]}),we,Re,[["w","e"],["n","s"]][fe])},getCreatingRange:function(we){var Re=z(we),rt=t(Re[0][fe],Re[1][fe]),St=o(Re[0][fe],Re[1][fe]);return[rt,St]},updateCoverShape:function(we,Re,rt,St){var ft,He=X(we,Re);if(He!==!0&&He.getLinearBrushOtherExtent)ft=He.getLinearBrushOtherExtent(fe,we._transform);else{var er=we._zr;ft=[0,[er.getWidth(),er.getHeight()][1-fe]]}var ct=[rt,ft];fe&&ct.reverse(),Q(we,Re,ct,St)},updateCommon:G,contain:et}}var Be=S;R.exports=Be},"/MfK":function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="DeleteOutlined";var d=D.a=f.forwardRef(p)},"/POA":function(R,D,n){!function(y,f){if(!0)R.exports=f();else var x,v}(window,function(){return function(y){var f={};function x(v){if(f[v])return f[v].exports;var m=f[v]={i:v,l:!1,exports:{}};return y[v].call(m.exports,m,m.exports,x),m.l=!0,m.exports}return x.m=y,x.c=f,x.d=function(v,m,p){x.o(v,m)||Object.defineProperty(v,m,{enumerable:!0,get:p})},x.r=function(v){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},x.t=function(v,m){if(1&m&&(v=x(v)),8&m)return v;if(4&m&&typeof v=="object"&&v&&v.__esModule)return v;var p=Object.create(null);if(x.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:v}),2&m&&typeof v!="string")for(var d in v)x.d(p,d,function(u){return v[u]}.bind(null,d));return p},x.n=function(v){var m=v&&v.__esModule?function(){return v.default}:function(){return v};return x.d(m,"a",m),m},x.o=function(v,m){return Object.prototype.hasOwnProperty.call(v,m)},x.p="",x(x.s=34)}([function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.forwardEvent=f.EventEmitter=void 0;var v=function(){function m(){this._listeners=[],this._disposed=!1}return Object.defineProperty(m.prototype,"event",{get:function(){var d=this;return this._event||(this._event=function(u){return d._listeners.push(u),{dispose:function(){if(!d._disposed){for(var i=0;i<d._listeners.length;i++)if(d._listeners[i]===u)return void d._listeners.splice(i,1)}}}}),this._event},enumerable:!1,configurable:!0}),m.prototype.fire=function(p,d){for(var u=[],s=0;s<this._listeners.length;s++)u.push(this._listeners[s]);for(s=0;s<u.length;s++)u[s].call(void 0,p,d)},m.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},m}();f.EventEmitter=v,f.forwardEvent=function(m,p){return m(function(d){return p.fire(d)})}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.IUnicodeService=f.IOptionsService=f.ILogService=f.IInstantiationService=f.IDirtyRowService=f.ICharsetService=f.ICoreService=f.ICoreMouseService=f.IBufferService=void 0;var v=x(14);f.IBufferService=v.createDecorator("BufferService"),f.ICoreMouseService=v.createDecorator("CoreMouseService"),f.ICoreService=v.createDecorator("CoreService"),f.ICharsetService=v.createDecorator("CharsetService"),f.IDirtyRowService=v.createDecorator("DirtyRowService"),f.IInstantiationService=v.createDecorator("InstantiationService"),f.ILogService=v.createDecorator("LogService"),f.IOptionsService=v.createDecorator("OptionsService"),f.IUnicodeService=v.createDecorator("UnicodeService")},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getDisposeArrayDisposable=f.disposeArray=f.Disposable=void 0;var v=function(){function p(){this._disposables=[],this._isDisposed=!1}return p.prototype.dispose=function(){this._isDisposed=!0;for(var d=0,u=this._disposables;d<u.length;d++)u[d].dispose();this._disposables.length=0},p.prototype.register=function(d){return this._disposables.push(d),d},p.prototype.unregister=function(d){var u=this._disposables.indexOf(d);u!==-1&&this._disposables.splice(u,1)},p}();function m(p){for(var d=0,u=p;d<u.length;d++)u[d].dispose();p.length=0}f.Disposable=v,f.disposeArray=m,f.getDisposeArrayDisposable=function(p){return{dispose:function(){return m(p)}}}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.WHITESPACE_CELL_CODE=f.WHITESPACE_CELL_WIDTH=f.WHITESPACE_CELL_CHAR=f.NULL_CELL_CODE=f.NULL_CELL_WIDTH=f.NULL_CELL_CHAR=f.CHAR_DATA_CODE_INDEX=f.CHAR_DATA_WIDTH_INDEX=f.CHAR_DATA_CHAR_INDEX=f.CHAR_DATA_ATTR_INDEX=f.DEFAULT_ATTR=f.DEFAULT_COLOR=void 0,f.DEFAULT_COLOR=256,f.DEFAULT_ATTR=256|f.DEFAULT_COLOR<<9,f.CHAR_DATA_ATTR_INDEX=0,f.CHAR_DATA_CHAR_INDEX=1,f.CHAR_DATA_WIDTH_INDEX=2,f.CHAR_DATA_CODE_INDEX=3,f.NULL_CELL_CHAR="",f.NULL_CELL_WIDTH=1,f.NULL_CELL_CODE=0,f.WHITESPACE_CELL_CHAR=" ",f.WHITESPACE_CELL_WIDTH=1,f.WHITESPACE_CELL_CODE=32},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(t,o){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var r in l)l.hasOwnProperty(r)&&(e[r]=l[r])})(t,o)},function(i,t){function o(){this.constructor=i}v(i,t),i.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(f,"__esModule",{value:!0}),f.CellData=void 0;var p=x(8),d=x(3),u=x(6),s=function(i){function t(){var o=i!==null&&i.apply(this,arguments)||this;return o.content=0,o.fg=0,o.bg=0,o.extended=new u.ExtendedAttrs,o.combinedData="",o}return m(t,i),t.fromCharData=function(o){var e=new t;return e.setFromCharData(o),e},t.prototype.isCombined=function(){return 2097152&this.content},t.prototype.getWidth=function(){return this.content>>22},t.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?p.stringFromCodePoint(2097151&this.content):""},t.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},t.prototype.setFromCharData=function(o){this.fg=o[d.CHAR_DATA_ATTR_INDEX],this.bg=0;var e=!1;if(o[d.CHAR_DATA_CHAR_INDEX].length>2)e=!0;else if(o[d.CHAR_DATA_CHAR_INDEX].length===2){var l=o[d.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=l&&l<=56319){var r=o[d.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=r&&r<=57343?this.content=1024*(l-55296)+r-56320+65536|o[d.CHAR_DATA_WIDTH_INDEX]<<22:e=!0}else e=!0}else this.content=o[d.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|o[d.CHAR_DATA_WIDTH_INDEX]<<22;e&&(this.combinedData=o[d.CHAR_DATA_CHAR_INDEX],this.content=2097152|o[d.CHAR_DATA_WIDTH_INDEX]<<22)},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(u.AttributeData);f.CellData=s},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ISoundService=f.ISelectionService=f.IRenderService=f.IMouseService=f.ICoreBrowserService=f.ICharSizeService=void 0;var v=x(14);f.ICharSizeService=v.createDecorator("CharSizeService"),f.ICoreBrowserService=v.createDecorator("CoreBrowserService"),f.IMouseService=v.createDecorator("MouseService"),f.IRenderService=v.createDecorator("RenderService"),f.ISelectionService=v.createDecorator("SelectionService"),f.ISoundService=v.createDecorator("SoundService")},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ExtendedAttrs=f.AttributeData=void 0;var v=function(){function p(){this.fg=0,this.bg=0,this.extended=new m}return p.toColorRGB=function(d){return[d>>>16&255,d>>>8&255,255&d]},p.fromColorRGB=function(d){return(255&d[0])<<16|(255&d[1])<<8|255&d[2]},p.prototype.clone=function(){var d=new p;return d.fg=this.fg,d.bg=this.bg,d.extended=this.extended.clone(),d},p.prototype.isInverse=function(){return 67108864&this.fg},p.prototype.isBold=function(){return 134217728&this.fg},p.prototype.isUnderline=function(){return 268435456&this.fg},p.prototype.isBlink=function(){return 536870912&this.fg},p.prototype.isInvisible=function(){return 1073741824&this.fg},p.prototype.isItalic=function(){return 67108864&this.bg},p.prototype.isDim=function(){return 134217728&this.bg},p.prototype.getFgColorMode=function(){return 50331648&this.fg},p.prototype.getBgColorMode=function(){return 50331648&this.bg},p.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},p.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},p.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},p.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},p.prototype.isFgDefault=function(){return(50331648&this.fg)==0},p.prototype.isBgDefault=function(){return(50331648&this.bg)==0},p.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},p.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},p.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},p.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},p.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},p.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},p.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},p.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},p.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},p.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},p.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},p}();f.AttributeData=v;var m=function(){function p(d,u){d===void 0&&(d=0),u===void 0&&(u=-1),this.underlineStyle=d,this.underlineColor=u}return p.prototype.clone=function(){return new p(this.underlineStyle,this.underlineColor)},p.prototype.isEmpty=function(){return this.underlineStyle===0},p}();f.ExtendedAttrs=m},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.addDisposableDomListener=void 0,f.addDisposableDomListener=function(v,m,p,d){v.addEventListener(m,p,d);var u=!1;return{dispose:function(){u||(u=!0,v.removeEventListener(m,p,d))}}}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.Utf8ToUtf32=f.StringToUtf32=f.utf32ToString=f.stringFromCodePoint=void 0,f.stringFromCodePoint=function(p){return p>65535?(p-=65536,String.fromCharCode(55296+(p>>10))+String.fromCharCode(p%1024+56320)):String.fromCharCode(p)},f.utf32ToString=function(p,d,u){d===void 0&&(d=0),u===void 0&&(u=p.length);for(var s="",i=d;i<u;++i){var t=p[i];t>65535?(t-=65536,s+=String.fromCharCode(55296+(t>>10))+String.fromCharCode(t%1024+56320)):s+=String.fromCharCode(t)}return s};var v=function(){function p(){this._interim=0}return p.prototype.clear=function(){this._interim=0},p.prototype.decode=function(d,u){var s=d.length;if(!s)return 0;var i=0,t=0;this._interim&&(56320<=(l=d.charCodeAt(t++))&&l<=57343?u[i++]=1024*(this._interim-55296)+l-56320+65536:(u[i++]=this._interim,u[i++]=l),this._interim=0);for(var o=t;o<s;++o){var e=d.charCodeAt(o);if(55296<=e&&e<=56319){if(++o>=s)return this._interim=e,i;var l;56320<=(l=d.charCodeAt(o))&&l<=57343?u[i++]=1024*(e-55296)+l-56320+65536:(u[i++]=e,u[i++]=l)}else u[i++]=e}return i},p}();f.StringToUtf32=v;var m=function(){function p(){this.interim=new Uint8Array(3)}return p.prototype.clear=function(){this.interim.fill(0)},p.prototype.decode=function(d,u){var s=d.length;if(!s)return 0;var i,t,o,e,l=0,r=0,a=0;if(this.interim[0]){var c=!1,h=this.interim[0];h&=(224&h)==192?31:(240&h)==224?15:7;for(var g=0,A=void 0;(A=63&this.interim[++g])&&g<4;)h<<=6,h|=A;for(var b=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,S=b-g;a<S;){if(a>=s)return 0;if((192&(A=d[a++]))!=128){a--,c=!0;break}this.interim[g++]=A,h<<=6,h|=63&A}c||(b===2?h<128?a--:u[l++]=h:b===3?h<2048||h>=55296&&h<=57343||(u[l++]=h):h<65536||h>1114111||(u[l++]=h)),this.interim.fill(0)}for(var E=s-4,C=a;C<s;){for(;!(!(C<E)||128&(i=d[C])||128&(t=d[C+1])||128&(o=d[C+2])||128&(e=d[C+3]));)u[l++]=i,u[l++]=t,u[l++]=o,u[l++]=e,C+=4;if((i=d[C++])<128)u[l++]=i;else if((224&i)==192){if(C>=s)return this.interim[0]=i,l;if((192&(t=d[C++]))!=128){C--;continue}if((r=(31&i)<<6|63&t)<128){C--;continue}u[l++]=r}else if((240&i)==224){if(C>=s)return this.interim[0]=i,l;if((192&(t=d[C++]))!=128){C--;continue}if(C>=s)return this.interim[0]=i,this.interim[1]=t,l;if((192&(o=d[C++]))!=128){C--;continue}if((r=(15&i)<<12|(63&t)<<6|63&o)<2048||r>=55296&&r<=57343)continue;u[l++]=r}else if((248&i)==240){if(C>=s)return this.interim[0]=i,l;if((192&(t=d[C++]))!=128){C--;continue}if(C>=s)return this.interim[0]=i,this.interim[1]=t,l;if((192&(o=d[C++]))!=128){C--;continue}if(C>=s)return this.interim[0]=i,this.interim[1]=t,this.interim[2]=o,l;if((192&(e=d[C++]))!=128){C--;continue}if((r=(7&i)<<18|(63&t)<<12|(63&o)<<6|63&e)<65536||r>1114111)continue;u[l++]=r}}return l},p}();f.Utf8ToUtf32=m},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CHAR_ATLAS_CELL_SPACING=f.DIM_OPACITY=f.INVERTED_DEFAULT_COLOR=void 0,f.INVERTED_DEFAULT_COLOR=257,f.DIM_OPACITY=.5,f.CHAR_ATLAS_CELL_SPACING=1},function(y,f,x){"use strict";var v,m,p,d;function u(i){var t=i.toString(16);return t.length<2?"0"+t:t}function s(i,t){return i<t?(t+.05)/(i+.05):(i+.05)/(t+.05)}Object.defineProperty(f,"__esModule",{value:!0}),f.contrastRatio=f.toPaddedHex=f.rgba=f.rgb=f.css=f.color=f.channels=void 0,function(i){i.toCss=function(t,o,e,l){return l!==void 0?"#"+u(t)+u(o)+u(e)+u(l):"#"+u(t)+u(o)+u(e)},i.toRgba=function(t,o,e,l){return l===void 0&&(l=255),(t<<24|o<<16|e<<8|l)>>>0}}(v=f.channels||(f.channels={})),(m=f.color||(f.color={})).blend=function(i,t){var o=(255&t.rgba)/255;if(o===1)return{css:t.css,rgba:t.rgba};var e=t.rgba>>24&255,l=t.rgba>>16&255,r=t.rgba>>8&255,a=i.rgba>>24&255,c=i.rgba>>16&255,h=i.rgba>>8&255,g=a+Math.round((e-a)*o),A=c+Math.round((l-c)*o),b=h+Math.round((r-h)*o);return{css:v.toCss(g,A,b),rgba:v.toRgba(g,A,b)}},m.isOpaque=function(i){return(255&i.rgba)==255},m.ensureContrastRatio=function(i,t,o){var e=d.ensureContrastRatio(i.rgba,t.rgba,o);if(e)return d.toColor(e>>24&255,e>>16&255,e>>8&255)},m.opaque=function(i){var t=(255|i.rgba)>>>0,o=d.toChannels(t),e=o[0],l=o[1],r=o[2];return{css:v.toCss(e,l,r),rgba:t}},m.opacity=function(i,t){var o=Math.round(255*t),e=d.toChannels(i.rgba),l=e[0],r=e[1],a=e[2];return{css:v.toCss(l,r,a,o),rgba:v.toRgba(l,r,a,o)}},(f.css||(f.css={})).toColor=function(i){switch(i.length){case 7:return{css:i,rgba:(parseInt(i.slice(1),16)<<8|255)>>>0};case 9:return{css:i,rgba:parseInt(i.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(i){function t(o,e,l){var r=o/255,a=e/255,c=l/255;return .2126*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.7152*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))+.0722*(c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4))}i.relativeLuminance=function(o){return t(o>>16&255,o>>8&255,255&o)},i.relativeLuminance2=t}(p=f.rgb||(f.rgb={})),function(i){function t(e,l,r){for(var a=e>>24&255,c=e>>16&255,h=e>>8&255,g=l>>24&255,A=l>>16&255,b=l>>8&255,S=s(p.relativeLuminance2(g,b,A),p.relativeLuminance2(a,c,h));S<r&&(g>0||A>0||b>0);)g-=Math.max(0,Math.ceil(.1*g)),A-=Math.max(0,Math.ceil(.1*A)),b-=Math.max(0,Math.ceil(.1*b)),S=s(p.relativeLuminance2(g,b,A),p.relativeLuminance2(a,c,h));return(g<<24|A<<16|b<<8|255)>>>0}function o(e,l,r){for(var a=e>>24&255,c=e>>16&255,h=e>>8&255,g=l>>24&255,A=l>>16&255,b=l>>8&255,S=s(p.relativeLuminance2(g,b,A),p.relativeLuminance2(a,c,h));S<r&&(g<255||A<255||b<255);)g=Math.min(255,g+Math.ceil(.1*(255-g))),A=Math.min(255,A+Math.ceil(.1*(255-A))),b=Math.min(255,b+Math.ceil(.1*(255-b))),S=s(p.relativeLuminance2(g,b,A),p.relativeLuminance2(a,c,h));return(g<<24|A<<16|b<<8|255)>>>0}i.ensureContrastRatio=function(e,l,r){var a=p.relativeLuminance(e>>8),c=p.relativeLuminance(l>>8);if(s(a,c)<r)return c<a?t(e,l,r):o(e,l,r)},i.reduceLuminance=t,i.increaseLuminance=o,i.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},i.toColor=function(e,l,r){return{css:v.toCss(e,l,r),rgba:v.toRgba(e,l,r)}}}(d=f.rgba||(f.rgba={})),f.toPaddedHex=u,f.contrastRatio=s},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.isLinux=f.isWindows=f.isIphone=f.isIpad=f.isMac=f.isSafari=f.isFirefox=void 0;var v=typeof navigator=="undefined",m=v?"node":navigator.userAgent,p=v?"node":navigator.platform;function d(u,s){return u.indexOf(s)>=0}f.isFirefox=!!~m.indexOf("Firefox"),f.isSafari=/^((?!chrome|android).)*safari/i.test(m),f.isMac=d(["Macintosh","MacIntel","MacPPC","Mac68K"],p),f.isIpad=p==="iPad",f.isIphone=p==="iPhone",f.isWindows=d(["Windows","Win16","Win32","WinCE"],p),f.isLinux=p.indexOf("Linux")>=0},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.C1=f.C0=void 0,function(v){v.NUL="\0",v.SOH="",v.STX="",v.ETX="",v.EOT="",v.ENQ="",v.ACK="",v.BEL="\x07",v.BS="\b",v.HT=" ",v.LF=`
|
|
|
`,v.VT="\v",v.FF="\f",v.CR="\r",v.SO="",v.SI="",v.DLE="",v.DC1="",v.DC2="",v.DC3="",v.DC4="",v.NAK="",v.SYN="",v.ETB="",v.CAN="",v.EM="",v.SUB="",v.ESC="",v.FS="",v.GS="",v.RS="",v.US="",v.SP=" ",v.DEL="\x7F"}(f.C0||(f.C0={})),function(v){v.PAD="\x80",v.HOP="\x81",v.BPH="\x82",v.NBH="\x83",v.IND="\x84",v.NEL="\x85",v.SSA="\x86",v.ESA="\x87",v.HTS="\x88",v.HTJ="\x89",v.VTS="\x8A",v.PLD="\x8B",v.PLU="\x8C",v.RI="\x8D",v.SS2="\x8E",v.SS3="\x8F",v.DCS="\x90",v.PU1="\x91",v.PU2="\x92",v.STS="\x93",v.CCH="\x94",v.MW="\x95",v.SPA="\x96",v.EPA="\x97",v.SOS="\x98",v.SGCI="\x99",v.SCI="\x9A",v.CSI="\x9B",v.ST="\x9C",v.OSC="\x9D",v.PM="\x9E",v.APC="\x9F"}(f.C1||(f.C1={}))},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BaseRenderLayer=void 0;var v=x(3),m=x(9),p=x(25),d=x(6),u=x(28),s=x(10),i=x(17),t=function(){function o(e,l,r,a,c,h,g,A){this._container=e,this._alpha=a,this._colors=c,this._rendererId=h,this._bufferService=g,this._optionsService=A,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+l+"-layer"),this._canvas.style.zIndex=r.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return o.prototype.dispose=function(){var e;i.removeElementFromParent(this._canvas),(e=this._charAtlas)===null||e===void 0||e.dispose()},o.prototype._initCanvas=function(){this._ctx=u.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},o.prototype.onOptionsChanged=function(){},o.prototype.onBlur=function(){},o.prototype.onFocus=function(){},o.prototype.onCursorMove=function(){},o.prototype.onGridChanged=function(e,l){},o.prototype.onSelectionChanged=function(e,l,r){r===void 0&&(r=!1)},o.prototype.setColors=function(e){this._refreshCharAtlas(e)},o.prototype._setTransparency=function(e){if(e!==this._alpha){var l=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,l),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},o.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=p.acquireCharAtlas(this._optionsService.options,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},o.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},o.prototype._fillCells=function(e,l,r,a){this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,r*this._scaledCellWidth,a*this._scaledCellHeight)},o.prototype._fillBottomLineAtCells=function(e,l,r){r===void 0&&(r=1),this._ctx.fillRect(e*this._scaledCellWidth,(l+1)*this._scaledCellHeight-window.devicePixelRatio-1,r*this._scaledCellWidth,window.devicePixelRatio)},o.prototype._fillLeftLineAtCell=function(e,l,r){this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,window.devicePixelRatio*r,this._scaledCellHeight)},o.prototype._strokeRectAtCell=function(e,l,r,a){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,l*this._scaledCellHeight+window.devicePixelRatio/2,r*this._scaledCellWidth-window.devicePixelRatio,a*this._scaledCellHeight-window.devicePixelRatio)},o.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},o.prototype._clearCells=function(e,l,r,a){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,l*this._scaledCellHeight,r*this._scaledCellWidth,a*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,r*this._scaledCellWidth,a*this._scaledCellHeight))},o.prototype._fillCharTrueColor=function(e,l,r){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(r),this._ctx.fillText(e.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},o.prototype._drawChars=function(e,l,r){var a,c,h=this._getContrastColor(e);h||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,l,r,h):(e.isInverse()?(a=e.isBgDefault()?m.INVERTED_DEFAULT_COLOR:e.getBgColor(),c=e.isFgDefault()?m.INVERTED_DEFAULT_COLOR:e.getFgColor()):(c=e.isBgDefault()?v.DEFAULT_COLOR:e.getBgColor(),a=e.isFgDefault()?v.DEFAULT_COLOR:e.getFgColor()),a+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&a<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||v.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||v.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=c,this._currentGlyphIdentifier.fg=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,r*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,l,r))},o.prototype._drawUncachedChars=function(e,l,r,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=s.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+d.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var c=e.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&c<8&&(c+=8),this._ctx.fillStyle=this._colors.ansi[c].css}else if(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("+d.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var h=e.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&h<8&&(h+=8),this._ctx.fillStyle=this._colors.ansi[h].css}this._clipRow(r),e.isDim()&&(this._ctx.globalAlpha=m.DIM_OPACITY),this._ctx.fillText(e.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},o.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},o.prototype._getFont=function(e,l){return(l?"italic":"")+" "+(e?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},o.prototype._getContrastColor=function(e){if(this._optionsService.options.minimumContrastRatio!==1){var l=this._colors.contrastCache.getColor(e.bg,e.fg);if(l!==void 0)return l||void 0;var r=e.getFgColor(),a=e.getFgColorMode(),c=e.getBgColor(),h=e.getBgColorMode(),g=!!e.isInverse(),A=!!e.isInverse();if(g){var b=r;r=c,c=b;var S=a;a=h,h=S}var E=this._resolveBackgroundRgba(h,c,g),C=this._resolveForegroundRgba(a,r,g,A),_=s.rgba.ensureContrastRatio(E,C,this._optionsService.options.minimumContrastRatio);if(_){var T={css:s.channels.toCss(_>>24&255,_>>16&255,_>>8&255),rgba:_};return this._colors.contrastCache.setColor(e.bg,e.fg,T),T}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},o.prototype._resolveBackgroundRgba=function(e,l,r){switch(e){case 16777216:case 33554432:return this._colors.ansi[l].rgba;case 50331648:return l<<8;case 0:default:return r?this._colors.foreground.rgba:this._colors.background.rgba}},o.prototype._resolveForegroundRgba=function(e,l,r,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 r?this._colors.background.rgba:this._colors.foreground.rgba}},o}();f.BaseRenderLayer=t},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.createDecorator=f.getServiceDependencies=f.serviceRegistry=void 0;function v(m,p,d){p.di$target===p?p.di$dependencies.push({id:m,index:d}):(p.di$dependencies=[{id:m,index:d}],p.di$target=p)}f.serviceRegistry=new Map,f.getServiceDependencies=function(m){return m.di$dependencies||[]},f.createDecorator=function(m){if(f.serviceRegistry.has(m))return f.serviceRegistry.get(m);var p=function d(u,s,i){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");v(d,u,i)};return p.toString=function(){return m},f.serviceRegistry.set(m,p),p}},function(y,f,x){"use strict";function v(m,p,d,u){if(d===void 0&&(d=0),u===void 0&&(u=m.length),d>=m.length)return m;d=(m.length+d)%m.length,u=u>=m.length?m.length:(m.length+u)%m.length;for(var s=d;s<u;++s)m[s]=p;return m}Object.defineProperty(f,"__esModule",{value:!0}),f.concat=f.fillFallback=f.fill=void 0,f.fill=function(m,p,d,u){return m.fill?m.fill(p,d,u):v(m,p,d,u)},f.fillFallback=v,f.concat=function(m,p){var d=new m.constructor(m.length+p.length);return d.set(m),d.set(p,m.length),d}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BufferLine=f.DEFAULT_ATTR_DATA=void 0;var v=x(8),m=x(3),p=x(4),d=x(6);f.DEFAULT_ATTR_DATA=Object.freeze(new d.AttributeData);var u=function(){function s(i,t,o){o===void 0&&(o=!1),this.isWrapped=o,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*i);for(var e=t||p.CellData.fromCharData([0,m.NULL_CELL_CHAR,m.NULL_CELL_WIDTH,m.NULL_CELL_CODE]),l=0;l<i;++l)this.setCell(l,e);this.length=i}return s.prototype.get=function(i){var t=this._data[3*i+0],o=2097151&t;return[this._data[3*i+1],2097152&t?this._combined[i]:o?v.stringFromCodePoint(o):"",t>>22,2097152&t?this._combined[i].charCodeAt(this._combined[i].length-1):o]},s.prototype.set=function(i,t){this._data[3*i+1]=t[m.CHAR_DATA_ATTR_INDEX],t[m.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[i]=t[1],this._data[3*i+0]=2097152|i|t[m.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*i+0]=t[m.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[m.CHAR_DATA_WIDTH_INDEX]<<22},s.prototype.getWidth=function(i){return this._data[3*i+0]>>22},s.prototype.hasWidth=function(i){return 12582912&this._data[3*i+0]},s.prototype.getFg=function(i){return this._data[3*i+1]},s.prototype.getBg=function(i){return this._data[3*i+2]},s.prototype.hasContent=function(i){return 4194303&this._data[3*i+0]},s.prototype.getCodePoint=function(i){var t=this._data[3*i+0];return 2097152&t?this._combined[i].charCodeAt(this._combined[i].length-1):2097151&t},s.prototype.isCombined=function(i){return 2097152&this._data[3*i+0]},s.prototype.getString=function(i){var t=this._data[3*i+0];return 2097152&t?this._combined[i]:2097151&t?v.stringFromCodePoint(2097151&t):""},s.prototype.loadCell=function(i,t){var o=3*i;return t.content=this._data[o+0],t.fg=this._data[o+1],t.bg=this._data[o+2],2097152&t.content&&(t.combinedData=this._combined[i]),268435456&t.bg&&(t.extended=this._extendedAttrs[i]),t},s.prototype.setCell=function(i,t){2097152&t.content&&(this._combined[i]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[i]=t.extended),this._data[3*i+0]=t.content,this._data[3*i+1]=t.fg,this._data[3*i+2]=t.bg},s.prototype.setCellFromCodePoint=function(i,t,o,e,l,r){268435456&l&&(this._extendedAttrs[i]=r),this._data[3*i+0]=t|o<<22,this._data[3*i+1]=e,this._data[3*i+2]=l},s.prototype.addCodepointToCell=function(i,t){var o=this._data[3*i+0];2097152&o?this._combined[i]+=v.stringFromCodePoint(t):(2097151&o?(this._combined[i]=v.stringFromCodePoint(2097151&o)+v.stringFromCodePoint(t),o&=-2097152,o|=2097152):o=t|1<<22,this._data[3*i+0]=o)},s.prototype.insertCells=function(i,t,o,e){if((i%=this.length)&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs),t<this.length-i){for(var l=new p.CellData,r=this.length-i-t-1;r>=0;--r)this.setCell(i+t+r,this.loadCell(i+r,l));for(r=0;r<t;++r)this.setCell(i+r,o)}else for(r=i;r<this.length;++r)this.setCell(r,o);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs)},s.prototype.deleteCells=function(i,t,o,e){if(i%=this.length,t<this.length-i){for(var l=new p.CellData,r=0;r<this.length-i-t;++r)this.setCell(i+r,this.loadCell(i+t+r,l));for(r=this.length-t;r<this.length;++r)this.setCell(r,o)}else for(r=i;r<this.length;++r)this.setCell(r,o);i&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs),this.getWidth(i)!==0||this.hasContent(i)||this.setCellFromCodePoint(i,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs)},s.prototype.replaceCells=function(i,t,o,e){for(i&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs),t<this.length&&this.getWidth(t-1)===2&&this.setCellFromCodePoint(t,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs);i<t&&i<this.length;)this.setCell(i++,o)},s.prototype.resize=function(i,t){if(i!==this.length){if(i>this.length){var o=new Uint32Array(3*i);this.length&&(3*i<this._data.length?o.set(this._data.subarray(0,3*i)):o.set(this._data)),this._data=o;for(var e=this.length;e<i;++e)this.setCell(e,t)}else if(i){(o=new Uint32Array(3*i)).set(this._data.subarray(0,3*i)),this._data=o;var l=Object.keys(this._combined);for(e=0;e<l.length;e++){var r=parseInt(l[e],10);r>=i&&delete this._combined[r]}}else this._data=new Uint32Array(0),this._combined={};this.length=i}},s.prototype.fill=function(i){this._combined={},this._extendedAttrs={};for(var t=0;t<this.length;++t)this.setCell(t,i)},s.prototype.copyFrom=function(i){for(var t in this.length!==i.length?this._data=new Uint32Array(i._data):this._data.set(i._data),this.length=i.length,this._combined={},i._combined)this._combined[t]=i._combined[t];for(var t in this._extendedAttrs={},i._extendedAttrs)this._extendedAttrs[t]=i._extendedAttrs[t];this.isWrapped=i.isWrapped},s.prototype.clone=function(){var i=new s(0);for(var t in i._data=new Uint32Array(this._data),i.length=this.length,this._combined)i._combined[t]=this._combined[t];for(var t in this._extendedAttrs)i._extendedAttrs[t]=this._extendedAttrs[t];return i.isWrapped=this.isWrapped,i},s.prototype.getTrimmedLength=function(){for(var i=this.length-1;i>=0;--i)if(4194303&this._data[3*i+0])return i+(this._data[3*i+0]>>22);return 0},s.prototype.copyCellsFrom=function(i,t,o,e,l){var r=i._data;if(l)for(var a=e-1;a>=0;a--)for(var c=0;c<3;c++)this._data[3*(o+a)+c]=r[3*(t+a)+c];else for(a=0;a<e;a++)for(c=0;c<3;c++)this._data[3*(o+a)+c]=r[3*(t+a)+c];var h=Object.keys(i._combined);for(c=0;c<h.length;c++){var g=parseInt(h[c],10);g>=t&&(this._combined[g-t+o]=i._combined[g])}},s.prototype.translateToString=function(i,t,o){i===void 0&&(i=!1),t===void 0&&(t=0),o===void 0&&(o=this.length),i&&(o=Math.min(o,this.getTrimmedLength()));for(var e="";t<o;){var l=this._data[3*t+0],r=2097151&l;e+=2097152&l?this._combined[t]:r?v.stringFromCodePoint(r):m.WHITESPACE_CELL_CHAR,t+=l>>22||1}return e},s}();f.BufferLine=u},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.removeElementFromParent=void 0,f.removeElementFromParent=function(){for(var v,m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];for(var d=0,u=m;d<u.length;d++){var s=u[d];(v=s==null?void 0:s.parentElement)===null||v===void 0||v.removeChild(s)}}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.tooMuchOutput=f.promptLabel=void 0,f.promptLabel="Terminal input",f.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(_,T){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,O){w.__proto__=O}||function(w,O){for(var I in O)O.hasOwnProperty(I)&&(w[I]=O[I])})(_,T)},function(C,_){function T(){this.constructor=C}v(C,_),C.prototype=_===null?Object.create(_):(T.prototype=_.prototype,new T)});Object.defineProperty(f,"__esModule",{value:!0}),f.InputHandler=f.WindowsOptionsReportType=void 0;var p,d=x(12),u=x(20),s=x(39),i=x(2),t=x(15),o=x(8),e=x(16),l=x(0),r=x(3),a=x(4),c=x(6),h=x(22),g=x(24),A={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function b(C,_){if(C>24)return _.setWinLines||!1;switch(C){case 1:return!!_.restoreWin;case 2:return!!_.minimizeWin;case 3:return!!_.setWinPosition;case 4:return!!_.setWinSizePixels;case 5:return!!_.raiseWin;case 6:return!!_.lowerWin;case 7:return!!_.refreshWin;case 8:return!!_.setWinSizeChars;case 9:return!!_.maximizeWin;case 10:return!!_.fullscreenWin;case 11:return!!_.getWinState;case 13:return!!_.getWinPosition;case 14:return!!_.getWinSizePixels;case 15:return!!_.getScreenSizePixels;case 16:return!!_.getCellSizePixels;case 18:return!!_.getWinSizeChars;case 19:return!!_.getScreenSizeChars;case 20:return!!_.getIconTitle;case 21:return!!_.getWinTitle;case 22:return!!_.pushTitle;case 23:return!!_.popTitle;case 24:return!!_.setWinLines}return!1}!function(C){C[C.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",C[C.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(p=f.WindowsOptionsReportType||(f.WindowsOptionsReportType={}));var S=function(){function C(_,T,w,O){this._bufferService=_,this._coreService=T,this._logService=w,this._optionsService=O,this._data=new Uint32Array(0)}return C.prototype.hook=function(_){this._data=new Uint32Array(0)},C.prototype.put=function(_,T,w){this._data=t.concat(this._data,_.subarray(T,w))},C.prototype.unhook=function(_){if(_){var T=o.utf32ToString(this._data);switch(this._data=new Uint32Array(0),T){case'"q':return this._coreService.triggerDataEvent(d.C0.ESC+'P1$r0"q'+d.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(d.C0.ESC+'P1$r61;1"p'+d.C0.ESC+"\\");case"r":var w=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(d.C0.ESC+"P1$r"+w+d.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(d.C0.ESC+"P1$r0m"+d.C0.ESC+"\\");case" q":var O={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return O-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(d.C0.ESC+"P1$r"+O+" q"+d.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",T),this._coreService.triggerDataEvent(d.C0.ESC+"P0$r"+d.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},C}(),E=function(C){function _(T,w,O,I,k,M,j,P,X){X===void 0&&(X=new s.EscapeSequenceParser);var F=C.call(this)||this;F._bufferService=T,F._charsetService=w,F._coreService=O,F._dirtyRowService=I,F._logService=k,F._optionsService=M,F._coreMouseService=j,F._unicodeService=P,F._parser=X,F._parseBuffer=new Uint32Array(4096),F._stringDecoder=new o.StringToUtf32,F._utf8Decoder=new o.Utf8ToUtf32,F._workCell=new a.CellData,F._windowTitle="",F._iconName="",F._windowTitleStack=[],F._iconNameStack=[],F._curAttrData=e.DEFAULT_ATTR_DATA.clone(),F._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),F._onRequestBell=new l.EventEmitter,F._onRequestRefreshRows=new l.EventEmitter,F._onRequestReset=new l.EventEmitter,F._onRequestScroll=new l.EventEmitter,F._onRequestSyncScrollBar=new l.EventEmitter,F._onRequestWindowsOptionsReport=new l.EventEmitter,F._onA11yChar=new l.EventEmitter,F._onA11yTab=new l.EventEmitter,F._onCursorMove=new l.EventEmitter,F._onLineFeed=new l.EventEmitter,F._onScroll=new l.EventEmitter,F._onTitleChange=new l.EventEmitter,F.register(F._parser),F._parser.setCsiHandlerFallback(function(V,Q){F._logService.debug("Unknown CSI code: ",{identifier:F._parser.identToString(V),params:Q.toArray()})}),F._parser.setEscHandlerFallback(function(V){F._logService.debug("Unknown ESC code: ",{identifier:F._parser.identToString(V)})}),F._parser.setExecuteHandlerFallback(function(V){F._logService.debug("Unknown EXECUTE code: ",{code:V})}),F._parser.setOscHandlerFallback(function(V,Q,G){F._logService.debug("Unknown OSC code: ",{identifier:V,action:Q,data:G})}),F._parser.setDcsHandlerFallback(function(V,Q,G){Q==="HOOK"&&(G=G.toArray()),F._logService.debug("Unknown DCS code: ",{identifier:F._parser.identToString(V),action:Q,payload:G})}),F._parser.setPrintHandler(function(V,Q,G){return F.print(V,Q,G)}),F._parser.setCsiHandler({final:"@"},function(V){return F.insertChars(V)}),F._parser.setCsiHandler({intermediates:" ",final:"@"},function(V){return F.scrollLeft(V)}),F._parser.setCsiHandler({final:"A"},function(V){return F.cursorUp(V)}),F._parser.setCsiHandler({intermediates:" ",final:"A"},function(V){return F.scrollRight(V)}),F._parser.setCsiHandler({final:"B"},function(V){return F.cursorDown(V)}),F._parser.setCsiHandler({final:"C"},function(V){return F.cursorForward(V)}),F._parser.setCsiHandler({final:"D"},function(V){return F.cursorBackward(V)}),F._parser.setCsiHandler({final:"E"},function(V){return F.cursorNextLine(V)}),F._parser.setCsiHandler({final:"F"},function(V){return F.cursorPrecedingLine(V)}),F._parser.setCsiHandler({final:"G"},function(V){return F.cursorCharAbsolute(V)}),F._parser.setCsiHandler({final:"H"},function(V){return F.cursorPosition(V)}),F._parser.setCsiHandler({final:"I"},function(V){return F.cursorForwardTab(V)}),F._parser.setCsiHandler({final:"J"},function(V){return F.eraseInDisplay(V)}),F._parser.setCsiHandler({prefix:"?",final:"J"},function(V){return F.eraseInDisplay(V)}),F._parser.setCsiHandler({final:"K"},function(V){return F.eraseInLine(V)}),F._parser.setCsiHandler({prefix:"?",final:"K"},function(V){return F.eraseInLine(V)}),F._parser.setCsiHandler({final:"L"},function(V){return F.insertLines(V)}),F._parser.setCsiHandler({final:"M"},function(V){return F.deleteLines(V)}),F._parser.setCsiHandler({final:"P"},function(V){return F.deleteChars(V)}),F._parser.setCsiHandler({final:"S"},function(V){return F.scrollUp(V)}),F._parser.setCsiHandler({final:"T"},function(V){return F.scrollDown(V)}),F._parser.setCsiHandler({final:"X"},function(V){return F.eraseChars(V)}),F._parser.setCsiHandler({final:"Z"},function(V){return F.cursorBackwardTab(V)}),F._parser.setCsiHandler({final:"`"},function(V){return F.charPosAbsolute(V)}),F._parser.setCsiHandler({final:"a"},function(V){return F.hPositionRelative(V)}),F._parser.setCsiHandler({final:"b"},function(V){return F.repeatPrecedingCharacter(V)}),F._parser.setCsiHandler({final:"c"},function(V){return F.sendDeviceAttributesPrimary(V)}),F._parser.setCsiHandler({prefix:">",final:"c"},function(V){return F.sendDeviceAttributesSecondary(V)}),F._parser.setCsiHandler({final:"d"},function(V){return F.linePosAbsolute(V)}),F._parser.setCsiHandler({final:"e"},function(V){return F.vPositionRelative(V)}),F._parser.setCsiHandler({final:"f"},function(V){return F.hVPosition(V)}),F._parser.setCsiHandler({final:"g"},function(V){return F.tabClear(V)}),F._parser.setCsiHandler({final:"h"},function(V){return F.setMode(V)}),F._parser.setCsiHandler({prefix:"?",final:"h"},function(V){return F.setModePrivate(V)}),F._parser.setCsiHandler({final:"l"},function(V){return F.resetMode(V)}),F._parser.setCsiHandler({prefix:"?",final:"l"},function(V){return F.resetModePrivate(V)}),F._parser.setCsiHandler({final:"m"},function(V){return F.charAttributes(V)}),F._parser.setCsiHandler({final:"n"},function(V){return F.deviceStatus(V)}),F._parser.setCsiHandler({prefix:"?",final:"n"},function(V){return F.deviceStatusPrivate(V)}),F._parser.setCsiHandler({intermediates:"!",final:"p"},function(V){return F.softReset(V)}),F._parser.setCsiHandler({intermediates:" ",final:"q"},function(V){return F.setCursorStyle(V)}),F._parser.setCsiHandler({final:"r"},function(V){return F.setScrollRegion(V)}),F._parser.setCsiHandler({final:"s"},function(V){return F.saveCursor(V)}),F._parser.setCsiHandler({final:"t"},function(V){return F.windowOptions(V)}),F._parser.setCsiHandler({final:"u"},function(V){return F.restoreCursor(V)}),F._parser.setCsiHandler({intermediates:"'",final:"}"},function(V){return F.insertColumns(V)}),F._parser.setCsiHandler({intermediates:"'",final:"~"},function(V){return F.deleteColumns(V)}),F._parser.setExecuteHandler(d.C0.BEL,function(){return F.bell()}),F._parser.setExecuteHandler(d.C0.LF,function(){return F.lineFeed()}),F._parser.setExecuteHandler(d.C0.VT,function(){return F.lineFeed()}),F._parser.setExecuteHandler(d.C0.FF,function(){return F.lineFeed()}),F._parser.setExecuteHandler(d.C0.CR,function(){return F.carriageReturn()}),F._parser.setExecuteHandler(d.C0.BS,function(){return F.backspace()}),F._parser.setExecuteHandler(d.C0.HT,function(){return F.tab()}),F._parser.setExecuteHandler(d.C0.SO,function(){return F.shiftOut()}),F._parser.setExecuteHandler(d.C0.SI,function(){return F.shiftIn()}),F._parser.setExecuteHandler(d.C1.IND,function(){return F.index()}),F._parser.setExecuteHandler(d.C1.NEL,function(){return F.nextLine()}),F._parser.setExecuteHandler(d.C1.HTS,function(){return F.tabSet()}),F._parser.setOscHandler(0,new h.OscHandler(function(V){F.setTitle(V),F.setIconName(V)})),F._parser.setOscHandler(1,new h.OscHandler(function(V){return F.setIconName(V)})),F._parser.setOscHandler(2,new h.OscHandler(function(V){return F.setTitle(V)})),F._parser.setEscHandler({final:"7"},function(){return F.saveCursor()}),F._parser.setEscHandler({final:"8"},function(){return F.restoreCursor()}),F._parser.setEscHandler({final:"D"},function(){return F.index()}),F._parser.setEscHandler({final:"E"},function(){return F.nextLine()}),F._parser.setEscHandler({final:"H"},function(){return F.tabSet()}),F._parser.setEscHandler({final:"M"},function(){return F.reverseIndex()}),F._parser.setEscHandler({final:"="},function(){return F.keypadApplicationMode()}),F._parser.setEscHandler({final:">"},function(){return F.keypadNumericMode()}),F._parser.setEscHandler({final:"c"},function(){return F.fullReset()}),F._parser.setEscHandler({final:"n"},function(){return F.setgLevel(2)}),F._parser.setEscHandler({final:"o"},function(){return F.setgLevel(3)}),F._parser.setEscHandler({final:"|"},function(){return F.setgLevel(3)}),F._parser.setEscHandler({final:"}"},function(){return F.setgLevel(2)}),F._parser.setEscHandler({final:"~"},function(){return F.setgLevel(1)}),F._parser.setEscHandler({intermediates:"%",final:"@"},function(){return F.selectDefaultCharset()}),F._parser.setEscHandler({intermediates:"%",final:"G"},function(){return F.selectDefaultCharset()});var U=function(Q){K._parser.setEscHandler({intermediates:"(",final:Q},function(){return F.selectCharset("("+Q)}),K._parser.setEscHandler({intermediates:")",final:Q},function(){return F.selectCharset(")"+Q)}),K._parser.setEscHandler({intermediates:"*",final:Q},function(){return F.selectCharset("*"+Q)}),K._parser.setEscHandler({intermediates:"+",final:Q},function(){return F.selectCharset("+"+Q)}),K._parser.setEscHandler({intermediates:"-",final:Q},function(){return F.selectCharset("-"+Q)}),K._parser.setEscHandler({intermediates:".",final:Q},function(){return F.selectCharset("."+Q)}),K._parser.setEscHandler({intermediates:"/",final:Q},function(){return F.selectCharset("/"+Q)})},K=this;for(var z in u.CHARSETS)U(z);return F._parser.setEscHandler({intermediates:"#",final:"8"},function(){return F.screenAlignmentPattern()}),F._parser.setErrorHandler(function(V){return F._logService.error("Parsing error: ",V),V}),F._parser.setDcsHandler({intermediates:"$",final:"q"},new S(F._bufferService,F._coreService,F._logService,F._optionsService)),F}return m(_,C),Object.defineProperty(_.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),_.prototype.dispose=function(){C.prototype.dispose.call(this)},_.prototype.parse=function(T){var w=this._bufferService.buffer,O=w.x,I=w.y;if(this._logService.debug("parsing data",T),this._parseBuffer.length<T.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(T.length,131072))),this._dirtyRowService.clearRange(),T.length>131072)for(var k=0;k<T.length;k+=131072){var M=k+131072<T.length?k+131072:T.length,j=typeof T=="string"?this._stringDecoder.decode(T.substring(k,M),this._parseBuffer):this._utf8Decoder.decode(T.subarray(k,M),this._parseBuffer);this._parser.parse(this._parseBuffer,j)}else j=typeof T=="string"?this._stringDecoder.decode(T,this._parseBuffer):this._utf8Decoder.decode(T,this._parseBuffer),this._parser.parse(this._parseBuffer,j);(w=this._bufferService.buffer).x===O&&w.y===I||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},_.prototype.print=function(T,w,O){var I,k,M=this._bufferService.buffer,j=this._charsetService.charset,P=this._optionsService.options.screenReaderMode,X=this._bufferService.cols,F=this._coreService.decPrivateModes.wraparound,U=this._coreService.modes.insertMode,K=this._curAttrData,z=M.lines.get(M.ybase+M.y);this._dirtyRowService.markDirty(M.y),M.x&&O-w>0&&z.getWidth(M.x-1)===2&&z.setCellFromCodePoint(M.x-1,0,1,K.fg,K.bg,K.extended);for(var V=w;V<O;++V){if(I=T[V],k=this._unicodeService.wcwidth(I),I<127&&j){var Q=j[String.fromCharCode(I)];Q&&(I=Q.charCodeAt(0))}if(P&&this._onA11yChar.fire(o.stringFromCodePoint(I)),k||!M.x){if(M.x+k-1>=X){if(F){for(;M.x<X;)z.setCellFromCodePoint(M.x++,0,1,K.fg,K.bg,K.extended);M.x=0,M.y++,M.y===M.scrollBottom+1?(M.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(M.y>=this._bufferService.rows&&(M.y=this._bufferService.rows-1),M.lines.get(M.ybase+M.y).isWrapped=!0),z=M.lines.get(M.ybase+M.y)}else if(M.x=X-1,k===2)continue}if(U&&(z.insertCells(M.x,k,M.getNullCell(K),K),z.getWidth(X-1)===2&&z.setCellFromCodePoint(X-1,r.NULL_CELL_CODE,r.NULL_CELL_WIDTH,K.fg,K.bg,K.extended)),z.setCellFromCodePoint(M.x++,I,k,K.fg,K.bg,K.extended),k>0)for(;--k;)z.setCellFromCodePoint(M.x++,0,0,K.fg,K.bg,K.extended)}else z.getWidth(M.x-1)?z.addCodepointToCell(M.x-1,I):z.addCodepointToCell(M.x-2,I)}O-w>0&&(z.loadCell(M.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),M.x<X&&O-w>0&&z.getWidth(M.x)===0&&!z.hasContent(M.x)&&z.setCellFromCodePoint(M.x,0,1,K.fg,K.bg,K.extended),this._dirtyRowService.markDirty(M.y)},_.prototype.addCsiHandler=function(T,w){var O=this;return T.final!=="t"||T.prefix||T.intermediates?this._parser.addCsiHandler(T,w):this._parser.addCsiHandler(T,function(I){return!b(I.params[0],O._optionsService.options.windowOptions)||w(I)})},_.prototype.addDcsHandler=function(T,w){return this._parser.addDcsHandler(T,new g.DcsHandler(w))},_.prototype.addEscHandler=function(T,w){return this._parser.addEscHandler(T,w)},_.prototype.addOscHandler=function(T,w){return this._parser.addOscHandler(T,new h.OscHandler(w))},_.prototype.bell=function(){this._onRequestBell.fire()},_.prototype.lineFeed=function(){var T=this._bufferService.buffer;this._dirtyRowService.markDirty(T.y),this._optionsService.options.convertEol&&(T.x=0),T.y++,T.y===T.scrollBottom+1?(T.y--,this._onRequestScroll.fire(this._eraseAttrData())):T.y>=this._bufferService.rows&&(T.y=this._bufferService.rows-1),T.x>=this._bufferService.cols&&T.x--,this._dirtyRowService.markDirty(T.y),this._onLineFeed.fire()},_.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},_.prototype.backspace=function(){var T,w=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(w.x>0&&w.x--);if(this._restrictCursor(this._bufferService.cols),w.x>0)w.x--;else if(w.x===0&&w.y>w.scrollTop&&w.y<=w.scrollBottom&&((T=w.lines.get(w.ybase+w.y))===null||T===void 0?void 0:T.isWrapped)){w.lines.get(w.ybase+w.y).isWrapped=!1,w.y--,w.x=this._bufferService.cols-1;var O=w.lines.get(w.ybase+w.y);O.hasWidth(w.x)&&!O.hasContent(w.x)&&w.x--}this._restrictCursor()},_.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var T=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-T)}},_.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},_.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},_.prototype._restrictCursor=function(T){T===void 0&&(T=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(T,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},_.prototype._setCursor=function(T,w){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=T,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+w):(this._bufferService.buffer.x=T,this._bufferService.buffer.y=w),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},_.prototype._moveCursor=function(T,w){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+T,this._bufferService.buffer.y+w)},_.prototype.cursorUp=function(T){var w=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;w>=0?this._moveCursor(0,-Math.min(w,T.params[0]||1)):this._moveCursor(0,-(T.params[0]||1))},_.prototype.cursorDown=function(T){var w=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;w>=0?this._moveCursor(0,Math.min(w,T.params[0]||1)):this._moveCursor(0,T.params[0]||1)},_.prototype.cursorForward=function(T){this._moveCursor(T.params[0]||1,0)},_.prototype.cursorBackward=function(T){this._moveCursor(-(T.params[0]||1),0)},_.prototype.cursorNextLine=function(T){this.cursorDown(T),this._bufferService.buffer.x=0},_.prototype.cursorPrecedingLine=function(T){this.cursorUp(T),this._bufferService.buffer.x=0},_.prototype.cursorCharAbsolute=function(T){this._setCursor((T.params[0]||1)-1,this._bufferService.buffer.y)},_.prototype.cursorPosition=function(T){this._setCursor(T.length>=2?(T.params[1]||1)-1:0,(T.params[0]||1)-1)},_.prototype.charPosAbsolute=function(T){this._setCursor((T.params[0]||1)-1,this._bufferService.buffer.y)},_.prototype.hPositionRelative=function(T){this._moveCursor(T.params[0]||1,0)},_.prototype.linePosAbsolute=function(T){this._setCursor(this._bufferService.buffer.x,(T.params[0]||1)-1)},_.prototype.vPositionRelative=function(T){this._moveCursor(0,T.params[0]||1)},_.prototype.hVPosition=function(T){this.cursorPosition(T)},_.prototype.tabClear=function(T){var w=T.params[0];w===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:w===3&&(this._bufferService.buffer.tabs={})},_.prototype.cursorForwardTab=function(T){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var w=T.params[0]||1;w--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},_.prototype.cursorBackwardTab=function(T){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var w=T.params[0]||1,O=this._bufferService.buffer;w--;)O.x=O.prevStop()},_.prototype._eraseInBufferLine=function(T,w,O,I){I===void 0&&(I=!1);var k=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+T);k.replaceCells(w,O,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),I&&(k.isWrapped=!1)},_.prototype._resetBufferLine=function(T){var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+T);w.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),w.isWrapped=!1},_.prototype.eraseInDisplay=function(T){var w;switch(this._restrictCursor(),T.params[0]){case 0:for(w=this._bufferService.buffer.y,this._dirtyRowService.markDirty(w),this._eraseInBufferLine(w++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);w<this._bufferService.rows;w++)this._resetBufferLine(w);this._dirtyRowService.markDirty(w);break;case 1:for(w=this._bufferService.buffer.y,this._dirtyRowService.markDirty(w),this._eraseInBufferLine(w,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(w+1).isWrapped=!1);w--;)this._resetBufferLine(w);this._dirtyRowService.markDirty(0);break;case 2:for(w=this._bufferService.rows,this._dirtyRowService.markDirty(w-1);w--;)this._resetBufferLine(w);this._dirtyRowService.markDirty(0);break;case 3:var O=this._bufferService.buffer.lines.length-this._bufferService.rows;O>0&&(this._bufferService.buffer.lines.trimStart(O),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-O,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-O,0),this._onScroll.fire(0))}},_.prototype.eraseInLine=function(T){switch(this._restrictCursor(),T.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},_.prototype.insertLines=function(T){this._restrictCursor();var w=T.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.y<O.scrollTop)){for(var I=O.ybase+O.y,k=this._bufferService.rows-1-O.scrollBottom,M=this._bufferService.rows-1+O.ybase-k+1;w--;)O.lines.splice(M-1,1),O.lines.splice(I,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.y,O.scrollBottom),O.x=0}},_.prototype.deleteLines=function(T){this._restrictCursor();var w=T.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.y<O.scrollTop)){var I,k=O.ybase+O.y;for(I=this._bufferService.rows-1-O.scrollBottom,I=this._bufferService.rows-1+O.ybase-I;w--;)O.lines.splice(k,1),O.lines.splice(I,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.y,O.scrollBottom),O.x=0}},_.prototype.insertChars=function(T){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.insertCells(this._bufferService.buffer.x,T.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.deleteChars=function(T){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.deleteCells(this._bufferService.buffer.x,T.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.scrollUp=function(T){for(var w=T.params[0]||1,O=this._bufferService.buffer;w--;)O.lines.splice(O.ybase+O.scrollTop,1),O.lines.splice(O.ybase+O.scrollBottom,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.scrollTop,O.scrollBottom)},_.prototype.scrollDown=function(T){for(var w=T.params[0]||1,O=this._bufferService.buffer;w--;)O.lines.splice(O.ybase+O.scrollBottom,1),O.lines.splice(O.ybase+O.scrollTop,0,O.getBlankLine(e.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(O.scrollTop,O.scrollBottom)},_.prototype.scrollLeft=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var k=w.lines.get(w.ybase+I);k.deleteCells(0,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),k.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.scrollRight=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var k=w.lines.get(w.ybase+I);k.insertCells(0,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),k.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.insertColumns=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var k=this._bufferService.buffer.lines.get(w.ybase+I);k.insertCells(w.x,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),k.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.deleteColumns=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var k=w.lines.get(w.ybase+I);k.deleteCells(w.x,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),k.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.eraseChars=function(T){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(T.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.repeatPrecedingCharacter=function(T){if(this._parser.precedingCodepoint){for(var w=T.params[0]||1,O=new Uint32Array(w),I=0;I<w;++I)O[I]=this._parser.precedingCodepoint;this.print(O,0,O.length)}},_.prototype.sendDeviceAttributesPrimary=function(T){T.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(d.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(d.C0.ESC+"[?6c"))},_.prototype.sendDeviceAttributesSecondary=function(T){T.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(d.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(d.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(T.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(d.C0.ESC+"[>83;40003;0c"))},_.prototype._is=function(T){return(this._optionsService.options.termName+"").indexOf(T)===0},_.prototype.setMode=function(T){for(var w=0;w<T.length;w++)switch(T.params[w]){case 4:this._coreService.modes.insertMode=!0}},_.prototype.setModePrivate=function(T){for(var w=0;w<T.length;w++)switch(T.params[w]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,u.DEFAULT_CHARSET),this._charsetService.setgCharset(1,u.DEFAULT_CHARSET),this._charsetService.setgCharset(2,u.DEFAULT_CHARSET),this._charsetService.setgCharset(3,u.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},_.prototype.resetMode=function(T){for(var w=0;w<T.length;w++)switch(T.params[w]){case 4:this._coreService.modes.insertMode=!1}},_.prototype.resetModePrivate=function(T){for(var w=0;w<T.length;w++)switch(T.params[w]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),T.params[w]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},_.prototype._updateAttrColor=function(T,w,O,I,k){return w===2?(T|=50331648,T&=-16777216,T|=c.AttributeData.fromColorRGB([O,I,k])):w===5&&(T&=-50331904,T|=33554432|255&O),T},_.prototype._extractColor=function(T,w,O){var I=[0,0,-1,0,0,0],k=0,M=0;do{if(I[M+k]=T.params[w+M],T.hasSubParams(w+M)){var j=T.getSubParams(w+M),P=0;do I[1]===5&&(k=1),I[M+P+1+k]=j[P];while(++P<j.length&&P+M+1+k<I.length);break}if(I[1]===5&&M+k>=2||I[1]===2&&M+k>=5)break;I[1]&&(k=1)}while(++M+w<T.length&&M+k<I.length);for(P=2;P<I.length;++P)I[P]===-1&&(I[P]=0);switch(I[0]){case 38:O.fg=this._updateAttrColor(O.fg,I[1],I[3],I[4],I[5]);break;case 48:O.bg=this._updateAttrColor(O.bg,I[1],I[3],I[4],I[5]);break;case 58:O.extended=O.extended.clone(),O.extended.underlineColor=this._updateAttrColor(O.extended.underlineColor,I[1],I[3],I[4],I[5])}return M},_.prototype._processUnderline=function(T,w){w.extended=w.extended.clone(),(!~T||T>5)&&(T=1),w.extended.underlineStyle=T,w.fg|=268435456,T===0&&(w.fg&=-268435457),w.updateExtended()},_.prototype.charAttributes=function(T){if(T.length===1&&T.params[0]===0)return this._curAttrData.fg=e.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=e.DEFAULT_ATTR_DATA.bg);for(var w,O=T.length,I=this._curAttrData,k=0;k<O;k++)(w=T.params[k])>=30&&w<=37?(I.fg&=-50331904,I.fg|=16777216|w-30):w>=40&&w<=47?(I.bg&=-50331904,I.bg|=16777216|w-40):w>=90&&w<=97?(I.fg&=-50331904,I.fg|=16777224|w-90):w>=100&&w<=107?(I.bg&=-50331904,I.bg|=16777224|w-100):w===0?(I.fg=e.DEFAULT_ATTR_DATA.fg,I.bg=e.DEFAULT_ATTR_DATA.bg):w===1?I.fg|=134217728:w===3?I.bg|=67108864:w===4?(I.fg|=268435456,this._processUnderline(T.hasSubParams(k)?T.getSubParams(k)[0]:1,I)):w===5?I.fg|=536870912:w===7?I.fg|=67108864:w===8?I.fg|=1073741824:w===2?I.bg|=134217728:w===21?this._processUnderline(2,I):w===22?(I.fg&=-134217729,I.bg&=-134217729):w===23?I.bg&=-67108865:w===24?I.fg&=-268435457:w===25?I.fg&=-536870913:w===27?I.fg&=-67108865:w===28?I.fg&=-1073741825:w===39?(I.fg&=-67108864,I.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):w===49?(I.bg&=-67108864,I.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):w===38||w===48||w===58?k+=this._extractColor(T,k,I):w===59?(I.extended=I.extended.clone(),I.extended.underlineColor=-1,I.updateExtended()):w===100?(I.fg&=-67108864,I.fg|=16777215&e.DEFAULT_ATTR_DATA.fg,I.bg&=-67108864,I.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",w)},_.prototype.deviceStatus=function(T){switch(T.params[0]){case 5:this._coreService.triggerDataEvent(d.C0.ESC+"[0n");break;case 6:var w=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(d.C0.ESC+"["+w+";"+O+"R")}},_.prototype.deviceStatusPrivate=function(T){switch(T.params[0]){case 6:var w=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(d.C0.ESC+"[?"+w+";"+O+"R")}},_.prototype.softReset=function(T){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},_.prototype.setCursorStyle=function(T){var w=T.params[0]||1;switch(w){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var O=w%2==1;this._optionsService.options.cursorBlink=O},_.prototype.setScrollRegion=function(T){var w,O=T.params[0]||1;(T.length<2||(w=T.params[1])>this._bufferService.rows||w===0)&&(w=this._bufferService.rows),w>O&&(this._bufferService.buffer.scrollTop=O-1,this._bufferService.buffer.scrollBottom=w-1,this._setCursor(0,0))},_.prototype.windowOptions=function(T){if(b(T.params[0],this._optionsService.options.windowOptions)){var w=T.length>1?T.params[1]:0;switch(T.params[0]){case 14:w!==2&&this._onRequestWindowsOptionsReport.fire(p.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(p.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(d.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:w!==0&&w!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),w!==0&&w!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:w!==0&&w!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),w!==0&&w!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},_.prototype.saveCursor=function(T){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},_.prototype.restoreCursor=function(T){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},_.prototype.setTitle=function(T){this._windowTitle=T,this._onTitleChange.fire(T)},_.prototype.setIconName=function(T){this._iconName=T},_.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},_.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},_.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},_.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,u.DEFAULT_CHARSET)},_.prototype.selectCharset=function(T){T.length===2?T[0]!=="/"&&this._charsetService.setgCharset(A[T[0]],u.CHARSETS[T[1]]||u.DEFAULT_CHARSET):this.selectDefaultCharset()},_.prototype.index=function(){this._restrictCursor();var T=this._bufferService.buffer;this._bufferService.buffer.y++,T.y===T.scrollBottom+1?(T.y--,this._onRequestScroll.fire(this._eraseAttrData())):T.y>=this._bufferService.rows&&(T.y=this._bufferService.rows-1),this._restrictCursor()},_.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},_.prototype.reverseIndex=function(){this._restrictCursor();var T=this._bufferService.buffer;if(T.y===T.scrollTop){var w=T.scrollBottom-T.scrollTop;T.lines.shiftElements(T.ybase+T.y,w,1),T.lines.set(T.ybase+T.y,T.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(T.scrollTop,T.scrollBottom)}else T.y--,this._restrictCursor()},_.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},_.prototype.reset=function(){this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone()},_.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},_.prototype.setgLevel=function(T){this._charsetService.setgLevel(T)},_.prototype.screenAlignmentPattern=function(){var T=new a.CellData;T.content=1<<22|"E".charCodeAt(0),T.fg=this._curAttrData.fg,T.bg=this._curAttrData.bg;var w=this._bufferService.buffer;this._setCursor(0,0);for(var O=0;O<this._bufferService.rows;++O){var I=w.ybase+w.y+O,k=w.lines.get(I);k&&(k.fill(T),k.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},_}(i.Disposable);f.InputHandler=E},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.DEFAULT_CHARSET=f.CHARSETS=void 0,f.CHARSETS={},f.DEFAULT_CHARSET=f.CHARSETS.B,f.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},f.CHARSETS.A={"#":"\xA3"},f.CHARSETS.B=void 0,f.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},f.CHARSETS.C=f.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},f.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},f.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},f.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},f.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},f.CHARSETS.E=f.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},f.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},f.CHARSETS.H=f.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},f.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.Params=void 0;var v=function(){function m(p,d){if(p===void 0&&(p=32),d===void 0&&(d=32),this.maxLength=p,this.maxSubParamsLength=d,d>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(p),this.length=0,this._subParams=new Int32Array(d),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(p),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return m.fromArray=function(p){var d=new m;if(!p.length)return d;for(var u=p[0]instanceof Array?1:0;u<p.length;++u){var s=p[u];if(s instanceof Array)for(var i=0;i<s.length;++i)d.addSubParam(s[i]);else d.addParam(s)}return d},m.prototype.clone=function(){var p=new m(this.maxLength,this.maxSubParamsLength);return p.params.set(this.params),p.length=this.length,p._subParams.set(this._subParams),p._subParamsLength=this._subParamsLength,p._subParamsIdx.set(this._subParamsIdx),p._rejectDigits=this._rejectDigits,p._rejectSubDigits=this._rejectSubDigits,p._digitIsSub=this._digitIsSub,p},m.prototype.toArray=function(){for(var p=[],d=0;d<this.length;++d){p.push(this.params[d]);var u=this._subParamsIdx[d]>>8,s=255&this._subParamsIdx[d];s-u>0&&p.push(Array.prototype.slice.call(this._subParams,u,s))}return p},m.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},m.prototype.addParam=function(p){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(p<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=p>2147483647?2147483647:p}},m.prototype.addSubParam=function(p){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(p<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=p>2147483647?2147483647:p,this._subParamsIdx[this.length-1]++}},m.prototype.hasSubParams=function(p){return(255&this._subParamsIdx[p])-(this._subParamsIdx[p]>>8)>0},m.prototype.getSubParams=function(p){var d=this._subParamsIdx[p]>>8,u=255&this._subParamsIdx[p];return u-d>0?this._subParams.subarray(d,u):null},m.prototype.getSubParamsAll=function(){for(var p={},d=0;d<this.length;++d){var u=this._subParamsIdx[d]>>8,s=255&this._subParamsIdx[d];s-u>0&&(p[d]=this._subParams.slice(u,s))}return p},m.prototype.addDigit=function(p){var d;if(!(this._rejectDigits||!(d=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var u=this._digitIsSub?this._subParams:this.params,s=u[d-1];u[d-1]=~s?Math.min(10*s+p,2147483647):p}},m}();f.Params=v},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.OscHandler=f.OscParser=void 0;var v=x(23),m=x(8),p=function(){function u(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return u.prototype.addHandler=function(s,i){this._handlers[s]===void 0&&(this._handlers[s]=[]);var t=this._handlers[s];return t.push(i),{dispose:function(){var e=t.indexOf(i);e!==-1&&t.splice(e,1)}}},u.prototype.setHandler=function(s,i){this._handlers[s]=[i]},u.prototype.clearHandler=function(s){this._handlers[s]&&delete this._handlers[s]},u.prototype.setHandlerFallback=function(s){this._handlerFb=s},u.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},u.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},u.prototype._start=function(){var s=this._handlers[this._id];if(s)for(var i=s.length-1;i>=0;i--)s[i].start();else this._handlerFb(this._id,"START")},u.prototype._put=function(s,i,t){var o=this._handlers[this._id];if(o)for(var e=o.length-1;e>=0;e--)o[e].put(s,i,t);else this._handlerFb(this._id,"PUT",m.utf32ToString(s,i,t))},u.prototype._end=function(s){var i=this._handlers[this._id];if(i){for(var t=i.length-1;t>=0&&i[t].end(s)===!1;t--);for(t--;t>=0;t--)i[t].end(!1)}else this._handlerFb(this._id,"END",s)},u.prototype.start=function(){this.reset(),this._id=-1,this._state=1},u.prototype.put=function(s,i,t){if(this._state!==3){if(this._state===1)for(;i<t;){var o=s[i++];if(o===59){this._state=2,this._start();break}if(o<48||57<o)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+o-48}this._state===2&&t-i>0&&this._put(s,i,t)}},u.prototype.end=function(s){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(s)),this._id=-1,this._state=0)},u}();f.OscParser=p;var d=function(){function u(s){this._handler=s,this._data="",this._hitLimit=!1}return u.prototype.start=function(){this._data="",this._hitLimit=!1},u.prototype.put=function(s,i,t){this._hitLimit||(this._data+=m.utf32ToString(s,i,t),this._data.length>v.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},u.prototype.end=function(s){var i;return this._hitLimit?i=!1:s&&(i=this._handler(this._data)),this._data="",this._hitLimit=!1,i},u}();f.OscHandler=d},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.PAYLOAD_LIMIT=void 0,f.PAYLOAD_LIMIT=1e7},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.DcsHandler=f.DcsParser=void 0;var v=x(8),m=x(21),p=x(23),d=[],u=function(){function i(){this._handlers=Object.create(null),this._active=d,this._ident=0,this._handlerFb=function(){}}return i.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},i.prototype.addHandler=function(t,o){this._handlers[t]===void 0&&(this._handlers[t]=[]);var e=this._handlers[t];return e.push(o),{dispose:function(){var r=e.indexOf(o);r!==-1&&e.splice(r,1)}}},i.prototype.setHandler=function(t,o){this._handlers[t]=[o]},i.prototype.clearHandler=function(t){this._handlers[t]&&delete this._handlers[t]},i.prototype.setHandlerFallback=function(t){this._handlerFb=t},i.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=d,this._ident=0},i.prototype.hook=function(t,o){if(this.reset(),this._ident=t,this._active=this._handlers[t]||d,this._active.length)for(var e=this._active.length-1;e>=0;e--)this._active[e].hook(o);else this._handlerFb(this._ident,"HOOK",o)},i.prototype.put=function(t,o,e){if(this._active.length)for(var l=this._active.length-1;l>=0;l--)this._active[l].put(t,o,e);else this._handlerFb(this._ident,"PUT",v.utf32ToString(t,o,e))},i.prototype.unhook=function(t){if(this._active.length){for(var o=this._active.length-1;o>=0&&this._active[o].unhook(t)===!1;o--);for(o--;o>=0;o--)this._active[o].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",t);this._active=d,this._ident=0},i}();f.DcsParser=u;var s=function(){function i(t){this._handler=t,this._data="",this._hitLimit=!1}return i.prototype.hook=function(t){this._params=t.clone(),this._data="",this._hitLimit=!1},i.prototype.put=function(t,o,e){this._hitLimit||(this._data+=v.utf32ToString(t,o,e),this._data.length>p.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},i.prototype.unhook=function(t){var o;return this._hitLimit?o=!1:t&&(o=this._handler(this._data,this._params||new m.Params)),this._params=void 0,this._data="",this._hitLimit=!1,o},i}();f.DcsHandler=s},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.removeTerminalFromCache=f.acquireCharAtlas=void 0;var v=x(26),m=x(43),p=[];f.acquireCharAtlas=function(d,u,s,i,t){for(var o=v.generateConfig(i,t,d,s),e=0;e<p.length;e++){var l=(r=p[e]).ownedBy.indexOf(u);if(l>=0){if(v.configEquals(r.config,o))return r.atlas;r.ownedBy.length===1?(r.atlas.dispose(),p.splice(e,1)):r.ownedBy.splice(l,1);break}}for(e=0;e<p.length;e++){var r=p[e];if(v.configEquals(r.config,o))return r.ownedBy.push(u),r.atlas}var a={atlas:new m.DynamicCharAtlas(document,o),config:o,ownedBy:[u]};return p.push(a),a.atlas},f.removeTerminalFromCache=function(d){for(var u=0;u<p.length;u++){var s=p[u].ownedBy.indexOf(d);if(s!==-1){p[u].ownedBy.length===1?(p[u].atlas.dispose(),p.splice(u,1)):p[u].ownedBy.splice(s,1);break}}}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.is256Color=f.configEquals=f.generateConfig=void 0;var v=x(3);f.generateConfig=function(m,p,d,u){var s={foreground:u.foreground,background:u.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:u.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:m,scaledCharHeight:p,fontFamily:d.fontFamily,fontSize:d.fontSize,fontWeight:d.fontWeight,fontWeightBold:d.fontWeightBold,allowTransparency:d.allowTransparency,colors:s}},f.configEquals=function(m,p){for(var d=0;d<m.colors.ansi.length;d++)if(m.colors.ansi[d].rgba!==p.colors.ansi[d].rgba)return!1;return m.devicePixelRatio===p.devicePixelRatio&&m.fontFamily===p.fontFamily&&m.fontSize===p.fontSize&&m.fontWeight===p.fontWeight&&m.fontWeightBold===p.fontWeightBold&&m.allowTransparency===p.allowTransparency&&m.scaledCharWidth===p.scaledCharWidth&&m.scaledCharHeight===p.scaledCharHeight&&m.colors.foreground===p.colors.foreground&&m.colors.background===p.colors.background},f.is256Color=function(m){return m<v.DEFAULT_COLOR}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ColorManager=f.DEFAULT_ANSI_COLORS=void 0;var v=x(10),m=x(45),p=v.css.toColor("#ffffff"),d=v.css.toColor("#000000"),u=v.css.toColor("#ffffff"),s=v.css.toColor("#000000"),i={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};f.DEFAULT_ANSI_COLORS=function(){for(var o=[v.css.toColor("#2e3436"),v.css.toColor("#cc0000"),v.css.toColor("#4e9a06"),v.css.toColor("#c4a000"),v.css.toColor("#3465a4"),v.css.toColor("#75507b"),v.css.toColor("#06989a"),v.css.toColor("#d3d7cf"),v.css.toColor("#555753"),v.css.toColor("#ef2929"),v.css.toColor("#8ae234"),v.css.toColor("#fce94f"),v.css.toColor("#729fcf"),v.css.toColor("#ad7fa8"),v.css.toColor("#34e2e2"),v.css.toColor("#eeeeec")],e=[0,95,135,175,215,255],l=0;l<216;l++){var r=e[l/36%6|0],a=e[l/6%6|0],c=e[l%6];o.push({css:v.channels.toCss(r,a,c),rgba:v.channels.toRgba(r,a,c)})}for(l=0;l<24;l++){var h=8+10*l;o.push({css:v.channels.toCss(h,h,h),rgba:v.channels.toRgba(h,h,h)})}return o}();var t=function(){function o(e,l){this.allowTransparency=l;var r=e.createElement("canvas");r.width=1,r.height=1;var a=r.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 m.ColorContrastCache,this.colors={foreground:p,background:d,cursor:u,cursorAccent:s,selectionTransparent:i,selectionOpaque:v.color.blend(d,i),ansi:f.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return o.prototype.onOptionsChange=function(e){e==="minimumContrastRatio"&&this._contrastCache.clear()},o.prototype.setTheme=function(e){(e===void 0&&(e={}),this.colors.foreground=this._parseColor(e.foreground,p),this.colors.background=this._parseColor(e.background,d),this.colors.cursor=this._parseColor(e.cursor,u,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,s,!0),this.colors.selectionTransparent=this._parseColor(e.selection,i,!0),this.colors.selectionOpaque=v.color.blend(this.colors.background,this.colors.selectionTransparent),v.color.isOpaque(this.colors.selectionTransparent))&&(this.colors.selectionTransparent=v.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(e.black,f.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,f.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,f.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,f.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,f.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,f.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,f.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,f.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,f.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,f.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,f.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,f.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,f.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,f.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,f.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,f.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},o.prototype._parseColor=function(e,l,r){if(r===void 0&&(r=this.allowTransparency),e===void 0)return l;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+e+" is invalid using fallback "+l.css),l;this._ctx.fillRect(0,0,1,1);var a=this._ctx.getImageData(0,0,1,1).data;if(a[3]!==255){if(!r)return console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+l.css+"."),l;var c=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(E){return Number(E)}),h=c[0],g=c[1],A=c[2],b=c[3],S=Math.round(255*b);return{rgba:v.channels.toRgba(h,g,A,S),css:e}}return{css:this._ctx.fillStyle,rgba:v.channels.toRgba(a[0],a[1],a[2],a[3])}},o}();f.ColorManager=t},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.throwIfFalsy=void 0,f.throwIfFalsy=function(v){if(!v)throw new Error("value must not be falsy");return v}},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(o,e){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,r){l.__proto__=r}||function(l,r){for(var a in r)r.hasOwnProperty(a)&&(l[a]=r[a])})(o,e)},function(t,o){function e(){this.constructor=t}v(t,o),t.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)});Object.defineProperty(f,"__esModule",{value:!0}),f.CharacterJoinerRegistry=f.JoinedCellData=void 0;var p=x(6),d=x(3),u=x(4),s=function(t){function o(e,l,r){var a=t.call(this)||this;return a.content=0,a.combinedData="",a.fg=e.fg,a.bg=e.bg,a.combinedData=l,a._width=r,a}return m(o,t),o.prototype.isCombined=function(){return 2097152},o.prototype.getWidth=function(){return this._width},o.prototype.getChars=function(){return this.combinedData},o.prototype.getCode=function(){return 2097151},o.prototype.setFromCharData=function(e){throw new Error("not implemented")},o.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},o}(p.AttributeData);f.JoinedCellData=s;var i=function(){function t(o){this._bufferService=o,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new u.CellData}return t.prototype.registerCharacterJoiner=function(o){var e={id:this._nextCharacterJoinerId++,handler:o};return this._characterJoiners.push(e),e.id},t.prototype.deregisterCharacterJoiner=function(o){for(var e=0;e<this._characterJoiners.length;e++)if(this._characterJoiners[e].id===o)return this._characterJoiners.splice(e,1),!0;return!1},t.prototype.getJoinedCharacters=function(o){if(this._characterJoiners.length===0)return[];var e=this._bufferService.buffer.lines.get(o);if(!e||e.length===0)return[];for(var l=[],r=e.translateToString(!0),a=0,c=0,h=0,g=e.getFg(0),A=e.getBg(0),b=0;b<e.getTrimmedLength();b++)if(e.loadCell(b,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==g||this._workCell.bg!==A){if(b-a>1)for(var S=this._getJoinedRanges(r,h,c,e,a),E=0;E<S.length;E++)l.push(S[E]);a=b,h=c,g=this._workCell.fg,A=this._workCell.bg}c+=this._workCell.getChars().length||d.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-a>1)for(S=this._getJoinedRanges(r,h,c,e,a),E=0;E<S.length;E++)l.push(S[E]);return l},t.prototype._getJoinedRanges=function(o,e,l,r,a){for(var c=o.substring(e,l),h=this._characterJoiners[0].handler(c),g=1;g<this._characterJoiners.length;g++)for(var A=this._characterJoiners[g].handler(c),b=0;b<A.length;b++)t._mergeRanges(h,A[b]);return this._stringRangesToCellRanges(h,r,a),h},t.prototype._stringRangesToCellRanges=function(o,e,l){var r=0,a=!1,c=0,h=o[r];if(h){for(var g=l;g<this._bufferService.cols;g++){var A=e.getWidth(g),b=e.getString(g).length||d.WHITESPACE_CELL_CHAR.length;if(A!==0){if(!a&&h[0]<=c&&(h[0]=g,a=!0),h[1]<=c){if(h[1]=g,!(h=o[++r]))break;h[0]<=c?(h[0]=g,a=!0):a=!1}c+=b}}h&&(h[1]=this._bufferService.cols)}},t._mergeRanges=function(o,e){for(var l=!1,r=0;r<o.length;r++){var a=o[r];if(l){if(e[1]<=a[0])return o[r-1][1]=e[1],o;if(e[1]<=a[1])return o[r-1][1]=Math.max(e[1],a[1]),o.splice(r,1),o;o.splice(r,1),r--}else{if(e[1]<=a[0])return o.splice(r,0,e),o;if(e[1]<=a[1])return a[0]=Math.min(e[0],a[0]),o;e[0]<a[1]&&(a[0]=Math.min(e[0],a[0]),l=!0)}}return l?o[o.length-1][1]=e[1]:o.push(e),o},t}();f.CharacterJoinerRegistry=i},function(y,f,x){"use strict";function v(m,p){var d=p.getBoundingClientRect();return[m.clientX-d.left,m.clientY-d.top]}Object.defineProperty(f,"__esModule",{value:!0}),f.getRawByteCoords=f.getCoords=f.getCoordsRelativeToElement=void 0,f.getCoordsRelativeToElement=v,f.getCoords=function(m,p,d,u,s,i,t,o){if(s){var e=v(m,p);if(e)return e[0]=Math.ceil((e[0]+(o?i/2:0))/i),e[1]=Math.ceil(e[1]/t),e[0]=Math.min(Math.max(e[0],1),d+(o?1:0)),e[1]=Math.min(Math.max(e[1],1),u),e}},f.getRawByteCoords=function(m){if(m)return{x:m[0]+32,y:m[1]+32}}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.RenderDebouncer=void 0;var v=function(){function m(p){this._renderCallback=p}return m.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},m.prototype.refresh=function(p,d,u){var s=this;this._rowCount=u,p=p!==void 0?p:0,d=d!==void 0?d:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,p):p,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,d):d,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return s._innerRefresh()}))},m.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var p=Math.max(this._rowStart,0),d=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(p,d)}},m}();f.RenderDebouncer=v},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(u,s){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,t){i.__proto__=t}||function(i,t){for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o])})(u,s)},function(d,u){function s(){this.constructor=d}v(d,u),d.prototype=u===null?Object.create(u):(s.prototype=u.prototype,new s)});Object.defineProperty(f,"__esModule",{value:!0}),f.ScreenDprMonitor=void 0;var p=function(d){function u(){var s=d!==null&&d.apply(this,arguments)||this;return s._currentDevicePixelRatio=window.devicePixelRatio,s}return m(u,d),u.prototype.setListener=function(s){var i=this;this._listener&&this.clearListener(),this._listener=s,this._outerListener=function(){i._listener&&(i._listener(window.devicePixelRatio,i._currentDevicePixelRatio),i._updateDpr())},this._updateDpr()},u.prototype.dispose=function(){d.prototype.dispose.call(this),this.clearListener()},u.prototype._updateDpr=function(){var s;this._outerListener&&((s=this._resolutionMediaMatchList)===null||s===void 0||s.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},u.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},u}(x(2).Disposable);f.ScreenDprMonitor=p},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.clone=void 0,f.clone=function v(m,p){if(p===void 0&&(p=5),typeof m!="object")return m;var d=Array.isArray(m)?[]:{};for(var u in m)d[u]=p<=1?m[u]:m[u]?v(m[u],p-1):m[u];return d}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.Terminal=void 0;var v=x(4),m=x(35),p=x(18),d=x(0),u=x(83),s=function(){function r(a){this._core=new m.Terminal(a),this._addonManager=new u.AddonManager}return r.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(r.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new e(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"unicode",{get:function(){return this._checkProposedApi(),new l(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"buffer",{get:function(){return this._checkProposedApi(),new t(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),r.prototype.blur=function(){this._core.blur()},r.prototype.focus=function(){this._core.focus()},r.prototype.resize=function(a,c){this._verifyIntegers(a,c),this._core.resize(a,c)},r.prototype.open=function(a){this._core.open(a)},r.prototype.attachCustomKeyEventHandler=function(a){this._core.attachCustomKeyEventHandler(a)},r.prototype.registerLinkMatcher=function(a,c,h){return this._checkProposedApi(),this._core.registerLinkMatcher(a,c,h)},r.prototype.deregisterLinkMatcher=function(a){this._checkProposedApi(),this._core.deregisterLinkMatcher(a)},r.prototype.registerLinkProvider=function(a){return this._checkProposedApi(),this._core.registerLinkProvider(a)},r.prototype.registerCharacterJoiner=function(a){return this._checkProposedApi(),this._core.registerCharacterJoiner(a)},r.prototype.deregisterCharacterJoiner=function(a){this._checkProposedApi(),this._core.deregisterCharacterJoiner(a)},r.prototype.registerMarker=function(a){return this._checkProposedApi(),this._verifyIntegers(a),this._core.addMarker(a)},r.prototype.addMarker=function(a){return this.registerMarker(a)},r.prototype.hasSelection=function(){return this._core.hasSelection()},r.prototype.select=function(a,c,h){this._verifyIntegers(a,c,h),this._core.select(a,c,h)},r.prototype.getSelection=function(){return this._core.getSelection()},r.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},r.prototype.clearSelection=function(){this._core.clearSelection()},r.prototype.selectAll=function(){this._core.selectAll()},r.prototype.selectLines=function(a,c){this._verifyIntegers(a,c),this._core.selectLines(a,c)},r.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},r.prototype.scrollLines=function(a){this._verifyIntegers(a),this._core.scrollLines(a)},r.prototype.scrollPages=function(a){this._verifyIntegers(a),this._core.scrollPages(a)},r.prototype.scrollToTop=function(){this._core.scrollToTop()},r.prototype.scrollToBottom=function(){this._core.scrollToBottom()},r.prototype.scrollToLine=function(a){this._verifyIntegers(a),this._core.scrollToLine(a)},r.prototype.clear=function(){this._core.clear()},r.prototype.write=function(a,c){this._core.write(a,c)},r.prototype.writeUtf8=function(a,c){this._core.write(a,c)},r.prototype.writeln=function(a,c){this._core.write(a),this._core.write(`\r
|
|
|
`,c)},r.prototype.paste=function(a){this._core.paste(a)},r.prototype.getOption=function(a){return this._core.optionsService.getOption(a)},r.prototype.setOption=function(a,c){this._core.optionsService.setOption(a,c)},r.prototype.refresh=function(a,c){this._verifyIntegers(a,c),this._core.refresh(a,c)},r.prototype.reset=function(){this._core.reset()},r.prototype.loadAddon=function(a){return this._addonManager.loadAddon(this,a)},Object.defineProperty(r,"strings",{get:function(){return p},enumerable:!1,configurable:!0}),r.prototype._verifyIntegers=function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];for(var h=0,g=a;h<g.length;h++){var A=g[h];if(A===1/0||isNaN(A)||A%1!=0)throw new Error("This API only accepts integers")}},r}();f.Terminal=s;var i=function(){function r(a,c){this._buffer=a,this.type=c}return r.prototype.init=function(a){return this._buffer=a,this},Object.defineProperty(r.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),r.prototype.getLine=function(a){var c=this._buffer.lines.get(a);if(c)return new o(c)},r.prototype.getNullCell=function(){return new v.CellData},r}(),t=function(){function r(a){var c=this;this._buffers=a,this._onBufferChange=new d.EventEmitter,this._normal=new i(this._buffers.normal,"normal"),this._alternate=new i(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return c._onBufferChange.fire(c.active)})}return Object.defineProperty(r.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),r}(),o=function(){function r(a){this._line=a}return Object.defineProperty(r.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),r.prototype.getCell=function(a,c){if(!(a<0||a>=this._line.length))return c?(this._line.loadCell(a,c),c):this._line.loadCell(a,new v.CellData)},r.prototype.translateToString=function(a,c,h){return this._line.translateToString(a,c,h)},r}(),e=function(){function r(a){this._core=a}return r.prototype.registerCsiHandler=function(a,c){return this._core.addCsiHandler(a,function(h){return c(h.toArray())})},r.prototype.addCsiHandler=function(a,c){return this.registerCsiHandler(a,c)},r.prototype.registerDcsHandler=function(a,c){return this._core.addDcsHandler(a,function(h,g){return c(h,g.toArray())})},r.prototype.addDcsHandler=function(a,c){return this.registerDcsHandler(a,c)},r.prototype.registerEscHandler=function(a,c){return this._core.addEscHandler(a,c)},r.prototype.addEscHandler=function(a,c){return this.registerEscHandler(a,c)},r.prototype.registerOscHandler=function(a,c){return this._core.addOscHandler(a,c)},r.prototype.addOscHandler=function(a,c){return this.registerOscHandler(a,c)},r}(),l=function(){function r(a){this._core=a}return r.prototype.register=function(a){this._core.unicodeService.register(a)},Object.defineProperty(r.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(c){this._core.unicodeService.activeVersion=c},enumerable:!1,configurable:!0}),r}()},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(F,U){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,z){K.__proto__=z}||function(K,z){for(var V in z)z.hasOwnProperty(V)&&(K[V]=z[V])})(F,U)},function(X,F){function U(){this.constructor=X}v(X,F),X.prototype=F===null?Object.create(F):(U.prototype=F.prototype,new U)});Object.defineProperty(f,"__esModule",{value:!0}),f.Terminal=void 0;var p=x(36),d=x(37),u=x(38),s=x(12),i=x(19),t=x(40),o=x(50),e=x(51),l=x(11),r=x(7),a=x(18),c=x(54),h=x(55),g=x(56),A=x(57),b=x(59),S=x(0),E=x(16),C=x(27),_=x(60),T=x(5),w=x(61),O=x(62),I=x(63),k=x(64),M=x(65),j=typeof window!="undefined"?window.document:null,P=function(X){function F(U){U===void 0&&(U={});var K=X.call(this,U)||this;return K.browser=l,K._keyDownHandled=!1,K._onCursorMove=new S.EventEmitter,K._onKey=new S.EventEmitter,K._onRender=new S.EventEmitter,K._onSelectionChange=new S.EventEmitter,K._onTitleChange=new S.EventEmitter,K._onFocus=new S.EventEmitter,K._onBlur=new S.EventEmitter,K._onA11yCharEmitter=new S.EventEmitter,K._onA11yTabEmitter=new S.EventEmitter,K._setup(),K.linkifier=K._instantiationService.createInstance(o.Linkifier),K.linkifier2=K.register(K._instantiationService.createInstance(I.Linkifier2)),K.register(K._inputHandler.onRequestBell(function(){return K.bell()})),K.register(K._inputHandler.onRequestRefreshRows(function(z,V){return K.refresh(z,V)})),K.register(K._inputHandler.onRequestReset(function(){return K.reset()})),K.register(K._inputHandler.onRequestScroll(function(z,V){return K.scroll(z,V||void 0)})),K.register(K._inputHandler.onRequestWindowsOptionsReport(function(z){return K._reportWindowsOptions(z)})),K.register(S.forwardEvent(K._inputHandler.onCursorMove,K._onCursorMove)),K.register(S.forwardEvent(K._inputHandler.onTitleChange,K._onTitleChange)),K.register(S.forwardEvent(K._inputHandler.onA11yChar,K._onA11yCharEmitter)),K.register(S.forwardEvent(K._inputHandler.onA11yTab,K._onA11yTabEmitter)),K.register(K._bufferService.onResize(function(z){return K._afterResize(z.cols,z.rows)})),K}return m(F,X),Object.defineProperty(F.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),F.prototype.dispose=function(){var U,K,z;this._isDisposed||(X.prototype.dispose.call(this),(U=this._renderService)===null||U===void 0||U.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(z=(K=this.element)===null||K===void 0?void 0:K.parentNode)===null||z===void 0||z.removeChild(this.element))},F.prototype._setup=function(){X.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(F.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),F.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},F.prototype._updateOptions=function(U){var K,z,V,Q;switch(X.prototype._updateOptions.call(this,U),U){case"fontFamily":case"fontSize":(K=this._renderService)===null||K===void 0||K.clear(),(z=this._charSizeService)===null||z===void 0||z.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(V=this.viewport)===null||V===void 0||V.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new g.AccessibilityManager(this,this._renderService)):((Q=this._accessibilityManager)===null||Q===void 0||Q.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},F.prototype._onTextAreaFocus=function(U){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(s.C0.ESC+"[I"),this.updateCursorStyle(U),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},F.prototype.blur=function(){var U;return(U=this.textarea)===null||U===void 0?void 0:U.blur()},F.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(s.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},F.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var U=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),K=this._bufferService.buffer.y*U,z=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=z+"px",this.textarea.style.top=K+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=U+"px",this.textarea.style.lineHeight=U+"px",this.textarea.style.zIndex="-5"}},F.prototype._initGlobal=function(){var U=this;this._bindKeys(),this.register(r.addDisposableDomListener(this.element,"copy",function(z){U.hasSelection()&&u.copyHandler(z,U._selectionService)}));var K=function(V){return u.handlePasteEvent(V,U.textarea,U._coreService)};this.register(r.addDisposableDomListener(this.textarea,"paste",K)),this.register(r.addDisposableDomListener(this.element,"paste",K)),l.isFirefox?this.register(r.addDisposableDomListener(this.element,"mousedown",function(z){z.button===2&&u.rightClickHandler(z,U.textarea,U.screenElement,U._selectionService,U.options.rightClickSelectsWord)})):this.register(r.addDisposableDomListener(this.element,"contextmenu",function(z){u.rightClickHandler(z,U.textarea,U.screenElement,U._selectionService,U.options.rightClickSelectsWord)})),l.isLinux&&this.register(r.addDisposableDomListener(this.element,"auxclick",function(z){z.button===1&&u.moveTextAreaUnderMouseCursor(z,U.textarea,U.screenElement)}))},F.prototype._bindKeys=function(){var U=this;this.register(r.addDisposableDomListener(this.textarea,"keyup",function(K){return U._keyUp(K)},!0)),this.register(r.addDisposableDomListener(this.textarea,"keydown",function(K){return U._keyDown(K)},!0)),this.register(r.addDisposableDomListener(this.textarea,"keypress",function(K){return U._keyPress(K)},!0)),this.register(r.addDisposableDomListener(this.textarea,"compositionstart",function(){return U._compositionHelper.compositionstart()})),this.register(r.addDisposableDomListener(this.textarea,"compositionupdate",function(K){return U._compositionHelper.compositionupdate(K)})),this.register(r.addDisposableDomListener(this.textarea,"compositionend",function(){return U._compositionHelper.compositionend()})),this.register(this.onRender(function(){return U._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(K){return U._queueLinkification(K.start,K.end)}))},F.prototype.open=function(U){var K=this;if(!U)throw new Error("Terminal requires a parent element.");j.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 z=j.createDocumentFragment();this._viewportElement=j.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),z.appendChild(this._viewportElement),this._viewportScrollArea=j.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=j.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=j.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),z.appendChild(this.screenElement),this.textarea=j.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(r.addDisposableDomListener(this.textarea,"focus",function(G){return K._onTextAreaFocus(G)})),this.register(r.addDisposableDomListener(this.textarea,"blur",function(){return K._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var V=this._instantiationService.createInstance(k.CoreBrowserService,this.textarea);this._instantiationService.setService(T.ICoreBrowserService,V),this._charSizeService=this._instantiationService.createInstance(w.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(T.ICharSizeService,this._charSizeService),this._compositionView=j.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(p.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(z),this._theme=this.options.theme||this._theme,this._colorManager=new C.ColorManager(j,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(G){return K._colorManager.onOptionsChange(G)})),this._colorManager.setTheme(this._theme);var Q=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(_.RenderService,Q,this.rows,this.screenElement)),this._instantiationService.setService(T.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(G){return K._onRender.fire(G)})),this.onResize(function(G){return K._renderService.resize(G.cols,G.rows)}),this._soundService=this._instantiationService.createInstance(c.SoundService),this._instantiationService.setService(T.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(O.MouseService),this._instantiationService.setService(T.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(d.Viewport,function(G,te){return K.scrollLines(G,te)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return K.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){K._renderService.onCursorMove(),K._syncTextArea()})),this.register(this.onResize(function(){return K._renderService.onResize(K.cols,K.rows)})),this.register(this.onBlur(function(){return K._renderService.onBlur()})),this.register(this.onFocus(function(){return K._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return K.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(e.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(T.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(G){return K.scrollLines(G.amount,G.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return K._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(G){return K._renderService.onSelectionChanged(G.start,G.end,G.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(G){K.textarea.value=G,K.textarea.focus(),K.textarea.select()})),this.register(this.onScroll(function(){K.viewport.syncScrollArea(),K._selectionService.refresh()})),this.register(r.addDisposableDomListener(this._viewportElement,"scroll",function(){return K._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(h.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return K._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(r.addDisposableDomListener(this.element,"mousedown",function(G){return K._selectionService.onMouseDown(G)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new g.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},F.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(t.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(A.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},F.prototype._setTheme=function(U){var K,z,V;this._theme=U,(K=this._colorManager)===null||K===void 0||K.setTheme(U),(z=this._renderService)===null||z===void 0||z.setColors(this._colorManager.colors),(V=this.viewport)===null||V===void 0||V.onThemeChange(this._colorManager.colors)},F.prototype.bindMouse=function(){var U=this,K=this,z=this.element;function V(re){var xe,Oe,Me=K._mouseService.getRawByteCoords(re,K.screenElement,K.cols,K.rows);if(!Me)return!1;switch(re.overrideType||re.type){case"mousemove":Oe=32,re.buttons===void 0?(xe=3,re.button!==void 0&&(xe=re.button<3?re.button:3)):xe=1&re.buttons?0:4&re.buttons?1:2&re.buttons?2:3;break;case"mouseup":Oe=0,xe=re.button<3?re.button:3;break;case"mousedown":Oe=1,xe=re.button<3?re.button:3;break;case"wheel":re.deltaY!==0&&(Oe=re.deltaY<0?0:1),xe=4;break;default:return!1}return!(Oe===void 0||xe===void 0||xe>4)&&K._coreMouseService.triggerMouseEvent({col:Me.x-33,row:Me.y-33,button:xe,action:Oe,ctrl:re.ctrlKey,alt:re.altKey,shift:re.shiftKey})}var Q={mouseup:null,wheel:null,mousedrag:null,mousemove:null},G=function(xe){return V(xe),xe.buttons||(U._document.removeEventListener("mouseup",Q.mouseup),Q.mousedrag&&U._document.removeEventListener("mousemove",Q.mousedrag)),U.cancel(xe)},te=function(xe){return V(xe),xe.preventDefault(),U.cancel(xe)},q=function(xe){xe.buttons&&V(xe)},se=function(xe){xe.buttons||V(xe)};this.register(this._coreMouseService.onProtocolChange(function(re){re?(U.optionsService.options.logLevel==="debug"&&U._logService.debug("Binding to mouse events:",U._coreMouseService.explainEvents(re)),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&re?Q.mousemove||(z.addEventListener("mousemove",se),Q.mousemove=se):(z.removeEventListener("mousemove",Q.mousemove),Q.mousemove=null),16&re?Q.wheel||(z.addEventListener("wheel",te,{passive:!1}),Q.wheel=te):(z.removeEventListener("wheel",Q.wheel),Q.wheel=null),2&re?Q.mouseup||(Q.mouseup=G):(U._document.removeEventListener("mouseup",Q.mouseup),Q.mouseup=null),4&re?Q.mousedrag||(Q.mousedrag=q):(U._document.removeEventListener("mousemove",Q.mousedrag),Q.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(r.addDisposableDomListener(z,"mousedown",function(re){if(re.preventDefault(),U.focus(),U._coreMouseService.areMouseEventsActive&&!U._selectionService.shouldForceSelection(re))return V(re),Q.mouseup&&U._document.addEventListener("mouseup",Q.mouseup),Q.mousedrag&&U._document.addEventListener("mousemove",Q.mousedrag),U.cancel(re)})),this.register(r.addDisposableDomListener(z,"wheel",function(re){if(!Q.wheel){if(!U.buffer.hasScrollback){var xe=U.viewport.getLinesScrolled(re);if(xe===0)return;for(var Oe=s.C0.ESC+(U._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(re.deltaY<0?"A":"B"),Me="",Qe=0;Qe<Math.abs(xe);Qe++)Me+=Oe;U._coreService.triggerDataEvent(Me,!0)}}},{passive:!0})),this.register(r.addDisposableDomListener(z,"wheel",function(re){if(!Q.wheel)return U.viewport.onWheel(re)?void 0:U.cancel(re)},{passive:!1})),this.register(r.addDisposableDomListener(z,"touchstart",function(re){if(!U._coreMouseService.areMouseEventsActive)return U.viewport.onTouchStart(re),U.cancel(re)},{passive:!0})),this.register(r.addDisposableDomListener(z,"touchmove",function(re){if(!U._coreMouseService.areMouseEventsActive)return U.viewport.onTouchMove(re)?void 0:U.cancel(re)},{passive:!1}))},F.prototype.refresh=function(U,K){var z;(z=this._renderService)===null||z===void 0||z.refreshRows(U,K)},F.prototype._queueLinkification=function(U,K){var z;(z=this.linkifier)===null||z===void 0||z.linkifyRows(U,K)},F.prototype.updateCursorStyle=function(U){this._selectionService&&this._selectionService.shouldColumnSelect(U)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},F.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},F.prototype.scrollLines=function(U,K){X.prototype.scrollLines.call(this,U,K),this.refresh(0,this.rows-1)},F.prototype.paste=function(U){u.paste(U,this.textarea,this._coreService)},F.prototype.attachCustomKeyEventHandler=function(U){this._customKeyEventHandler=U},F.prototype.registerLinkMatcher=function(U,K,z){var V=this.linkifier.registerLinkMatcher(U,K,z);return this.refresh(0,this.rows-1),V},F.prototype.deregisterLinkMatcher=function(U){this.linkifier.deregisterLinkMatcher(U)&&this.refresh(0,this.rows-1)},F.prototype.registerLinkProvider=function(U){return this.linkifier2.registerLinkProvider(U)},F.prototype.registerCharacterJoiner=function(U){var K=this._renderService.registerCharacterJoiner(U);return this.refresh(0,this.rows-1),K},F.prototype.deregisterCharacterJoiner=function(U){this._renderService.deregisterCharacterJoiner(U)&&this.refresh(0,this.rows-1)},Object.defineProperty(F.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),F.prototype.addMarker=function(U){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+U)},F.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},F.prototype.select=function(U,K,z){this._selectionService.setSelection(U,K,z)},F.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},F.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},F.prototype.clearSelection=function(){var U;(U=this._selectionService)===null||U===void 0||U.clearSelection()},F.prototype.selectAll=function(){var U;(U=this._selectionService)===null||U===void 0||U.selectAll()},F.prototype.selectLines=function(U,K){var z;(z=this._selectionService)===null||z===void 0||z.selectLines(U,K)},F.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 K=b.evaluateKeyboardEvent(U,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(U),K.type===3||K.type===2){var z=this.rows-1;return this.scrollLines(K.type===2?-z:z),this.cancel(U,!0)}return K.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,U)||(K.cancel&&this.cancel(U,!0),!K.key||(K.key!==s.C0.ETX&&K.key!==s.C0.CR||(this.textarea.value=""),this._onKey.fire({key:K.key,domEvent:U}),this._showCursor(),this._coreService.triggerDataEvent(K.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(U,!0)))},F.prototype._isThirdLevelShift=function(U,K){var z=U.isMac&&!this.options.macOptionIsMeta&&K.altKey&&!K.ctrlKey&&!K.metaKey||U.isWindows&&K.altKey&&K.ctrlKey&&!K.metaKey;return K.type==="keypress"?z:z&&(!K.keyCode||K.keyCode>47)},F.prototype._keyUp=function(U){this._customKeyEventHandler&&this._customKeyEventHandler(U)===!1||(function(K){return K.keyCode===16||K.keyCode===17||K.keyCode===18}(U)||this.focus(),this.updateCursorStyle(U))},F.prototype._keyPress=function(U){var K;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(U)===!1)return!1;if(this.cancel(U),U.charCode)K=U.charCode;else if(U.which===null||U.which===void 0)K=U.keyCode;else{if(U.which===0||U.charCode===0)return!1;K=U.which}return!(!K||(U.altKey||U.ctrlKey||U.metaKey)&&!this._isThirdLevelShift(this.browser,U))&&(K=String.fromCharCode(K),this._onKey.fire({key:K,domEvent:U}),this._showCursor(),this._coreService.triggerDataEvent(K,!0),!0)},F.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},F.prototype.resize=function(U,K){U!==this.cols||K!==this.rows?X.prototype.resize.call(this,U,K):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},F.prototype._afterResize=function(U,K){var z,V;(z=this._charSizeService)===null||z===void 0||z.measure(),(V=this.viewport)===null||V===void 0||V.syncScrollArea(!0)},F.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var U=1;U<this.rows;U++)this.buffer.lines.push(this.buffer.getBlankLine(E.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},F.prototype.reset=function(){var U,K;this.options.rows=this.rows,this.options.cols=this.cols;var z=this._customKeyEventHandler;this._setup(),X.prototype.reset.call(this),(U=this._selectionService)===null||U===void 0||U.reset(),this._customKeyEventHandler=z,this.refresh(0,this.rows-1),(K=this.viewport)===null||K===void 0||K.syncScrollArea()},F.prototype._reportWindowsOptions=function(U){if(this._renderService)switch(U){case i.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var K=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),z=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(s.C0.ESC+"[4;"+z+";"+K+"t");break;case i.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var V=this._renderService.dimensions.scaledCellWidth.toFixed(0),Q=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(s.C0.ESC+"[6;"+Q+";"+V+"t")}},F.prototype.cancel=function(U,K){if(this.options.cancelEvents||K)return U.preventDefault(),U.stopPropagation(),!1},F.prototype._visualBell=function(){return!1},F.prototype._soundBell=function(){return this.options.bellStyle==="sound"},F}(M.CoreTerminal);f.Terminal=P},function(y,f,x){"use strict";var v=this&&this.__decorate||function(s,i,t,o){var e,l=arguments.length,r=l<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,t):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,i,t,o);else for(var a=s.length-1;a>=0;a--)(e=s[a])&&(r=(l<3?e(r):l>3?e(i,t,r):e(i,t))||r);return l>3&&r&&Object.defineProperty(i,t,r),r},m=this&&this.__param||function(s,i){return function(t,o){i(t,o,s)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CompositionHelper=void 0;var p=x(5),d=x(1),u=function(){function s(i,t,o,e,l,r){this._textarea=i,this._compositionView=t,this._bufferService=o,this._optionsService=e,this._charSizeService=l,this._coreService=r,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(s.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),s.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},s.prototype.compositionupdate=function(i){var t=this;this._compositionView.textContent=i.data,this.updateCompositionElements(),setTimeout(function(){t._compositionPosition.end=t._textarea.value.length},0)},s.prototype.compositionend=function(){this._finalizeComposition(!0)},s.prototype.keydown=function(i){if(this._isComposing||this._isSendingComposition){if(i.keyCode===229)return!1;if(i.keyCode===16||i.keyCode===17||i.keyCode===18)return!1;this._finalizeComposition(!1)}return i.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},s.prototype._finalizeComposition=function(i){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,i){var o={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(t._isSendingComposition){t._isSendingComposition=!1;var l=void 0;l=t._isComposing?t._textarea.value.substring(o.start,o.end):t._textarea.value.substring(o.start),t._coreService.triggerDataEvent(l,!0)}},0)}else{this._isSendingComposition=!1;var e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}},s.prototype._handleAnyTextareaChanges=function(){var i=this,t=this._textarea.value;setTimeout(function(){if(!i._isComposing){var o=i._textarea.value.replace(t,"");o.length>0&&i._coreService.triggerDataEvent(o,!0)}},0)},s.prototype.updateCompositionElements=function(i){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var o=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),e=this._bufferService.buffer.y*o,l=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=l+"px",this._compositionView.style.top=e+"px",this._compositionView.style.height=o+"px",this._compositionView.style.lineHeight=o+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var r=this._compositionView.getBoundingClientRect();this._textarea.style.left=l+"px",this._textarea.style.top=e+"px",this._textarea.style.width=r.width+"px",this._textarea.style.height=r.height+"px",this._textarea.style.lineHeight=r.height+"px"}i||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},s=v([m(2,d.IBufferService),m(3,d.IOptionsService),m(4,p.ICharSizeService),m(5,d.ICoreService)],s)}();f.CompositionHelper=u},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(l,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var h in c)c.hasOwnProperty(h)&&(a[h]=c[h])})(l,r)},function(e,l){function r(){this.constructor=e}v(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)}),p=this&&this.__decorate||function(e,l,r,a){var c,h=arguments.length,g=h<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,r):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,a);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(g=(h<3?c(g):h>3?c(l,r,g):c(l,r))||g);return h>3&&g&&Object.defineProperty(l,r,g),g},d=this&&this.__param||function(e,l){return function(r,a){l(r,a,e)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Viewport=void 0;var u=x(2),s=x(7),i=x(5),t=x(1),o=function(e){function l(r,a,c,h,g,A,b){var S=e.call(this)||this;return S._scrollLines=r,S._viewportElement=a,S._scrollArea=c,S._bufferService=h,S._optionsService=g,S._charSizeService=A,S._renderService=b,S.scrollBarWidth=0,S._currentRowHeight=0,S._lastRecordedBufferLength=0,S._lastRecordedViewportHeight=0,S._lastRecordedBufferHeight=0,S._lastTouchY=0,S._lastScrollTop=0,S._wheelPartialScroll=0,S._refreshAnimationFrame=null,S._ignoreNextScrollEvent=!1,S.scrollBarWidth=S._viewportElement.offsetWidth-S._scrollArea.offsetWidth||15,S.register(s.addDisposableDomListener(S._viewportElement,"scroll",S._onScroll.bind(S))),setTimeout(function(){return S.syncScrollArea()},0),S}return m(l,e),l.prototype.onThemeChange=function(r){this._viewportElement.style.backgroundColor=r.background.css},l.prototype._refresh=function(r){var a=this;if(r)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 r=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==r&&(this._lastRecordedBufferHeight=r,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var 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(r){if(r===void 0&&(r=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(r);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var 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(r)}else this._refresh(r)},l.prototype._onScroll=function(r){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var a=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(a,!0)}},l.prototype._bubbleScroll=function(r,a){var c=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(a<0&&this._viewportElement.scrollTop!==0||a>0&&c<this._lastRecordedBufferHeight)||(r.cancelable&&r.preventDefault(),!1)},l.prototype.onWheel=function(r){var a=this._getPixelsScrolled(r);return a!==0&&(this._viewportElement.scrollTop+=a,this._bubbleScroll(r,a))},l.prototype._getPixelsScrolled=function(r){if(r.deltaY===0)return 0;var a=this._applyScrollModifier(r.deltaY,r);return r.deltaMode===WheelEvent.DOM_DELTA_LINE?a*=this._currentRowHeight:r.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(a*=this._currentRowHeight*this._bufferService.rows),a},l.prototype.getLinesScrolled=function(r){if(r.deltaY===0)return 0;var a=this._applyScrollModifier(r.deltaY,r);return r.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):r.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(a*=this._bufferService.rows),a},l.prototype._applyScrollModifier=function(r,a){var c=this._optionsService.options.fastScrollModifier;return c==="alt"&&a.altKey||c==="ctrl"&&a.ctrlKey||c==="shift"&&a.shiftKey?r*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:r*this._optionsService.options.scrollSensitivity},l.prototype.onTouchStart=function(r){this._lastTouchY=r.touches[0].pageY},l.prototype.onTouchMove=function(r){var a=this._lastTouchY-r.touches[0].pageY;return this._lastTouchY=r.touches[0].pageY,a!==0&&(this._viewportElement.scrollTop+=a,this._bubbleScroll(r,a))},l=p([d(3,t.IBufferService),d(4,t.IOptionsService),d(5,i.ICharSizeService),d(6,i.IRenderService)],l)}(u.Disposable);f.Viewport=o},function(y,f,x){"use strict";function v(u){return u.replace(/\r?\n/g,"\r")}function m(u,s){return s?"[200~"+u+"[201~":u}function p(u,s,i){u=m(u=v(u),i.decPrivateModes.bracketedPasteMode),i.triggerDataEvent(u,!0),s.value=""}function d(u,s,i){var t=i.getBoundingClientRect(),o=u.clientX-t.left-10,e=u.clientY-t.top-10;s.style.width="20px",s.style.height="20px",s.style.left=o+"px",s.style.top=e+"px",s.style.zIndex="1000",s.focus()}Object.defineProperty(f,"__esModule",{value:!0}),f.rightClickHandler=f.moveTextAreaUnderMouseCursor=f.paste=f.handlePasteEvent=f.copyHandler=f.bracketTextForPaste=f.prepareTextForTerminal=void 0,f.prepareTextForTerminal=v,f.bracketTextForPaste=m,f.copyHandler=function(u,s){u.clipboardData&&u.clipboardData.setData("text/plain",s.selectionText),u.preventDefault()},f.handlePasteEvent=function(u,s,i){u.stopPropagation(),u.clipboardData&&p(u.clipboardData.getData("text/plain"),s,i)},f.paste=p,f.moveTextAreaUnderMouseCursor=d,f.rightClickHandler=function(u,s,i,t,o){d(u,s,i),o&&!t.isClickInSelection(u)&&t.selectWordAtCursor(u),s.value=t.selectionText,s.select()}},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(l,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var h in c)c.hasOwnProperty(h)&&(a[h]=c[h])})(l,r)},function(e,l){function r(){this.constructor=e}v(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)});Object.defineProperty(f,"__esModule",{value:!0}),f.EscapeSequenceParser=f.VT500_TRANSITION_TABLE=f.TransitionTable=void 0;var p=x(2),d=x(15),u=x(21),s=x(22),i=x(24),t=function(){function e(l){this.table=new Uint8Array(l)}return e.prototype.setDefault=function(l,r){d.fill(this.table,l<<4|r)},e.prototype.add=function(l,r,a,c){this.table[r<<8|l]=a<<4|c},e.prototype.addMany=function(l,r,a,c){for(var h=0;h<l.length;h++)this.table[r<<8|l[h]]=a<<4|c},e}();f.TransitionTable=t,f.VT500_TRANSITION_TABLE=function(){var e=new t(4095),l=Array.apply(null,Array(256)).map(function(A,b){return b}),r=function(b,S){return l.slice(b,S)},a=r(32,127),c=r(0,24);c.push(25),c.push.apply(c,r(28,32));var h,g=r(0,14);for(h in e.setDefault(1,0),e.addMany(a,0,2,0),g)e.addMany([24,26,153,154],h,3,0),e.addMany(r(128,144),h,3,0),e.addMany(r(144,152),h,3,0),e.add(156,h,0,0),e.add(27,h,11,1),e.add(157,h,4,8),e.addMany([152,158,159],h,0,7),e.add(155,h,11,3),e.add(144,h,11,9);return e.addMany(c,0,3,0),e.addMany(c,1,3,1),e.add(127,1,0,1),e.addMany(c,8,0,8),e.addMany(c,3,3,3),e.add(127,3,0,3),e.addMany(c,4,3,4),e.add(127,4,0,4),e.addMany(c,6,3,6),e.addMany(c,5,3,5),e.add(127,5,0,5),e.addMany(c,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(a,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(r(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(a,7,0,7),e.addMany(c,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(r(64,127),3,7,0),e.addMany(r(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(r(48,60),4,8,4),e.addMany(r(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(r(32,64),6,0,6),e.add(127,6,0,6),e.addMany(r(64,127),6,0,0),e.addMany(r(32,48),3,9,5),e.addMany(r(32,48),5,9,5),e.addMany(r(48,64),5,0,6),e.addMany(r(64,127),5,7,0),e.addMany(r(32,48),4,9,5),e.addMany(r(32,48),1,9,2),e.addMany(r(32,48),2,9,2),e.addMany(r(48,127),2,10,0),e.addMany(r(48,80),1,10,0),e.addMany(r(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(r(96,127),1,10,0),e.add(80,1,11,9),e.addMany(c,9,0,9),e.add(127,9,0,9),e.addMany(r(28,32),9,0,9),e.addMany(r(32,48),9,9,12),e.addMany(r(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(c,11,0,11),e.addMany(r(32,128),11,0,11),e.addMany(r(28,32),11,0,11),e.addMany(c,10,0,10),e.add(127,10,0,10),e.addMany(r(28,32),10,0,10),e.addMany(r(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(r(32,48),10,9,12),e.addMany(c,12,0,12),e.add(127,12,0,12),e.addMany(r(28,32),12,0,12),e.addMany(r(32,48),12,9,12),e.addMany(r(48,64),12,0,11),e.addMany(r(64,127),12,12,13),e.addMany(r(64,127),10,12,13),e.addMany(r(64,127),9,12,13),e.addMany(c,13,13,13),e.addMany(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 o=function(e){function l(r){r===void 0&&(r=f.VT500_TRANSITION_TABLE);var a=e.call(this)||this;return a._transitions=r,a.initialState=0,a.currentState=a.initialState,a._params=new u.Params,a._params.addParam(0),a._collect=0,a.precedingCodepoint=0,a._printHandlerFb=function(c,h,g){},a._executeHandlerFb=function(c){},a._csiHandlerFb=function(c,h){},a._escHandlerFb=function(c){},a._errorHandlerFb=function(c){return c},a._printHandler=a._printHandlerFb,a._executeHandlers=Object.create(null),a._csiHandlers=Object.create(null),a._escHandlers=Object.create(null),a._oscParser=new s.OscParser,a._dcsParser=new i.DcsParser,a._errorHandler=a._errorHandlerFb,a.setEscHandler({final:"\\"},function(){}),a}return m(l,e),l.prototype._identifier=function(r,a){a===void 0&&(a=[64,126]);var c=0;if(r.prefix){if(r.prefix.length>1)throw new Error("only one byte as prefix supported");if((c=r.prefix.charCodeAt(0))&&60>c||c>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(r.intermediates){if(r.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var h=0;h<r.intermediates.length;++h){var g=r.intermediates.charCodeAt(h);if(32>g||g>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");c<<=8,c|=g}}if(r.final.length!==1)throw new Error("final must be a single byte");var A=r.final.charCodeAt(0);if(a[0]>A||A>a[1])throw new Error("final must be in range "+a[0]+" .. "+a[1]);return c<<=8,c|=A},l.prototype.identToString=function(r){for(var a=[];r;)a.push(String.fromCharCode(255&r)),r>>=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(r){this._printHandler=r},l.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},l.prototype.addEscHandler=function(r,a){var c=this._identifier(r,[48,126]);this._escHandlers[c]===void 0&&(this._escHandlers[c]=[]);var h=this._escHandlers[c];return h.push(a),{dispose:function(){var A=h.indexOf(a);A!==-1&&h.splice(A,1)}}},l.prototype.setEscHandler=function(r,a){this._escHandlers[this._identifier(r,[48,126])]=[a]},l.prototype.clearEscHandler=function(r){this._escHandlers[this._identifier(r,[48,126])]&&delete this._escHandlers[this._identifier(r,[48,126])]},l.prototype.setEscHandlerFallback=function(r){this._escHandlerFb=r},l.prototype.setExecuteHandler=function(r,a){this._executeHandlers[r.charCodeAt(0)]=a},l.prototype.clearExecuteHandler=function(r){this._executeHandlers[r.charCodeAt(0)]&&delete this._executeHandlers[r.charCodeAt(0)]},l.prototype.setExecuteHandlerFallback=function(r){this._executeHandlerFb=r},l.prototype.addCsiHandler=function(r,a){var c=this._identifier(r);this._csiHandlers[c]===void 0&&(this._csiHandlers[c]=[]);var h=this._csiHandlers[c];return h.push(a),{dispose:function(){var A=h.indexOf(a);A!==-1&&h.splice(A,1)}}},l.prototype.setCsiHandler=function(r,a){this._csiHandlers[this._identifier(r)]=[a]},l.prototype.clearCsiHandler=function(r){this._csiHandlers[this._identifier(r)]&&delete this._csiHandlers[this._identifier(r)]},l.prototype.setCsiHandlerFallback=function(r){this._csiHandlerFb=r},l.prototype.addDcsHandler=function(r,a){return this._dcsParser.addHandler(this._identifier(r),a)},l.prototype.setDcsHandler=function(r,a){this._dcsParser.setHandler(this._identifier(r),a)},l.prototype.clearDcsHandler=function(r){this._dcsParser.clearHandler(this._identifier(r))},l.prototype.setDcsHandlerFallback=function(r){this._dcsParser.setHandlerFallback(r)},l.prototype.addOscHandler=function(r,a){return this._oscParser.addHandler(r,a)},l.prototype.setOscHandler=function(r,a){this._oscParser.setHandler(r,a)},l.prototype.clearOscHandler=function(r){this._oscParser.clearHandler(r)},l.prototype.setOscHandlerFallback=function(r){this._oscParser.setHandlerFallback(r)},l.prototype.setErrorHandler=function(r){this._errorHandler=r},l.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},l.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},l.prototype.parse=function(r,a){for(var c=0,h=0,g=this.currentState,A=this._oscParser,b=this._dcsParser,S=this._collect,E=this._params,C=this._transitions.table,_=0;_<a;++_){switch((h=C[g<<8|((c=r[_])<160?c:160)])>>4){case 2:for(var T=_+1;;++T){if(T>=a||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}if(++T>=a||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}if(++T>=a||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}if(++T>=a||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}}break;case 3:this._executeHandlers[c]?this._executeHandlers[c]():this._executeHandlerFb(c),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:_,code:c,currentState:g,collect:S,params:E,abort:!1}).abort)return;break;case 7:for(var w=this._csiHandlers[S<<8|c],O=w?w.length-1:-1;O>=0&&w[O](E)===!1;O--);O<0&&this._csiHandlerFb(S<<8|c,E),this.precedingCodepoint=0;break;case 8:do switch(c){case 59:E.addParam(0);break;case 58:E.addSubParam(-1);break;default:E.addDigit(c-48)}while(++_<a&&(c=r[_])>47&&c<60);_--;break;case 9:S<<=8,S|=c;break;case 10:for(var I=this._escHandlers[S<<8|c],k=I?I.length-1:-1;k>=0&&I[k]()===!1;k--);k<0&&this._escHandlerFb(S<<8|c),this.precedingCodepoint=0;break;case 11:E.reset(),E.addParam(0),S=0;break;case 12:b.hook(S<<8|c,E);break;case 13:for(var M=_+1;;++M)if(M>=a||(c=r[M])===24||c===26||c===27||c>127&&c<160){b.put(r,_,M),_=M-1;break}break;case 14:b.unhook(c!==24&&c!==26),c===27&&(h|=1),E.reset(),E.addParam(0),S=0,this.precedingCodepoint=0;break;case 4:A.start();break;case 5:for(var j=_+1;;j++)if(j>=a||(c=r[j])<32||c>127&&c<=159){A.put(r,_,j),_=j-1;break}break;case 6:A.end(c!==24&&c!==26),c===27&&(h|=1),E.reset(),E.addParam(0),S=0,this.precedingCodepoint=0}g=15&h}this._collect=S,this.currentState=g},l}(p.Disposable);f.EscapeSequenceParser=o},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(b,S){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,C){E.__proto__=C}||function(E,C){for(var _ in C)C.hasOwnProperty(_)&&(E[_]=C[_])})(b,S)},function(A,b){function S(){this.constructor=A}v(A,b),A.prototype=b===null?Object.create(b):(S.prototype=b.prototype,new S)}),p=this&&this.__decorate||function(A,b,S,E){var C,_=arguments.length,T=_<3?b:E===null?E=Object.getOwnPropertyDescriptor(b,S):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(A,b,S,E);else for(var w=A.length-1;w>=0;w--)(C=A[w])&&(T=(_<3?C(T):_>3?C(b,S,T):C(b,S))||T);return _>3&&T&&Object.defineProperty(b,S,T),T},d=this&&this.__param||function(A,b){return function(S,E){b(S,E,A)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Renderer=void 0;var u=x(41),s=x(47),i=x(48),t=x(49),o=x(29),e=x(2),l=x(5),r=x(1),a=x(25),c=x(0),h=1,g=function(A){function b(S,E,C,_,T,w,O,I,k){var M=A.call(this)||this;M._colors=S,M._screenElement=E,M._bufferService=T,M._charSizeService=w,M._optionsService=O,M._id=h++,M._onRequestRedraw=new c.EventEmitter;var j=M._optionsService.options.allowTransparency;return M._characterJoinerRegistry=new o.CharacterJoinerRegistry(M._bufferService),M._renderLayers=[new u.TextRenderLayer(M._screenElement,0,M._colors,M._characterJoinerRegistry,j,M._id,M._bufferService,O),new s.SelectionRenderLayer(M._screenElement,1,M._colors,M._id,M._bufferService,O),new t.LinkRenderLayer(M._screenElement,2,M._colors,M._id,C,_,M._bufferService,O),new i.CursorRenderLayer(M._screenElement,3,M._colors,M._id,M._onRequestRedraw,M._bufferService,O,I,k)],M.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},M._devicePixelRatio=window.devicePixelRatio,M._updateDimensions(),M.onOptionsChanged(),M}return m(b,A),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){for(var S=0,E=this._renderLayers;S<E.length;S++)E[S].dispose();A.prototype.dispose.call(this),a.removeTerminalFromCache(this._id)},b.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},b.prototype.setColors=function(S){this._colors=S;for(var E=0,C=this._renderLayers;E<C.length;E++){var _=C[E];_.setColors(this._colors),_.reset()}},b.prototype.onResize=function(S,E){this._updateDimensions();for(var C=0,_=this._renderLayers;C<_.length;C++)_[C].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},b.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},b.prototype.onBlur=function(){this._runOperation(function(S){return S.onBlur()})},b.prototype.onFocus=function(){this._runOperation(function(S){return S.onFocus()})},b.prototype.onSelectionChanged=function(S,E,C){C===void 0&&(C=!1),this._runOperation(function(_){return _.onSelectionChanged(S,E,C)})},b.prototype.onCursorMove=function(){this._runOperation(function(S){return S.onCursorMove()})},b.prototype.onOptionsChanged=function(){this._runOperation(function(S){return S.onOptionsChanged()})},b.prototype.clear=function(){this._runOperation(function(S){return S.reset()})},b.prototype._runOperation=function(S){for(var E=0,C=this._renderLayers;E<C.length;E++)S(C[E])},b.prototype.renderRows=function(S,E){for(var C=0,_=this._renderLayers;C<_.length;C++)_[C].onGridChanged(S,E)},b.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},b.prototype.registerCharacterJoiner=function(S){return this._characterJoinerRegistry.registerCharacterJoiner(S)},b.prototype.deregisterCharacterJoiner=function(S){return this._characterJoinerRegistry.deregisterCharacterJoiner(S)},b=p([d(4,r.IBufferService),d(5,l.ICharSizeService),d(6,r.IOptionsService),d(7,r.ICoreService),d(8,l.ICoreBrowserService)],b)}(e.Disposable);f.Renderer=g},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(l,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var h in c)c.hasOwnProperty(h)&&(a[h]=c[h])})(l,r)},function(e,l){function r(){this.constructor=e}v(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)});Object.defineProperty(f,"__esModule",{value:!0}),f.TextRenderLayer=void 0;var p=x(42),d=x(13),u=x(6),s=x(3),i=x(29),t=x(4),o=function(e){function l(r,a,c,h,g,A,b,S){var E=e.call(this,r,"text",a,g,c,A,b,S)||this;return E._characterWidth=0,E._characterFont="",E._characterOverlapCache={},E._workCell=new t.CellData,E._state=new p.GridCache,E._characterJoinerRegistry=h,E}return m(l,e),l.prototype.resize=function(r){e.prototype.resize.call(this,r);var a=this._getFont(!1,!1);this._characterWidth===r.scaledCharWidth&&this._characterFont===a||(this._characterWidth=r.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(r,a,c,h){for(var g=r;g<=a;g++)for(var A=g+this._bufferService.buffer.ydisp,b=this._bufferService.buffer.lines.get(A),S=c?c.getJoinedCharacters(A):[],E=0;E<this._bufferService.cols;E++){b.loadCell(E,this._workCell);var C=this._workCell,_=!1,T=E;if(C.getWidth()!==0){if(S.length>0&&E===S[0][0]){_=!0;var w=S.shift();C=new i.JoinedCellData(this._workCell,b.translateToString(!0,w[0],w[1]),w[1]-w[0]),T=w[1]-1}!_&&this._isOverlapping(C)&&T<b.length-1&&b.getCodePoint(T+1)===s.NULL_CELL_CODE&&(C.content&=-12582913,C.content|=2<<22),h(C,E,g),E=T}}},l.prototype._drawBackground=function(r,a){var c=this,h=this._ctx,g=this._bufferService.cols,A=0,b=0,S=null;h.save(),this._forEachCell(r,a,null,function(E,C,_){var T=null;E.isInverse()?T=E.isFgDefault()?c._colors.foreground.css:E.isFgRGB()?"rgb("+u.AttributeData.toColorRGB(E.getFgColor()).join(",")+")":c._colors.ansi[E.getFgColor()].css:E.isBgRGB()?T="rgb("+u.AttributeData.toColorRGB(E.getBgColor()).join(",")+")":E.isBgPalette()&&(T=c._colors.ansi[E.getBgColor()].css),S===null&&(A=C,b=_),_!==b?(h.fillStyle=S||"",c._fillCells(A,b,g-A,1),A=C,b=_):S!==T&&(h.fillStyle=S||"",c._fillCells(A,b,C-A,1),A=C,b=_),S=T}),S!==null&&(h.fillStyle=S,this._fillCells(A,b,g-A,1)),h.restore()},l.prototype._drawForeground=function(r,a){var c=this;this._forEachCell(r,a,this._characterJoinerRegistry,function(h,g,A){if(!h.isInvisible()&&(c._drawChars(h,g,A),h.isUnderline())){if(c._ctx.save(),h.isInverse())if(h.isBgDefault())c._ctx.fillStyle=c._colors.background.css;else if(h.isBgRGB())c._ctx.fillStyle="rgb("+u.AttributeData.toColorRGB(h.getBgColor()).join(",")+")";else{var b=h.getBgColor();c._optionsService.options.drawBoldTextInBrightColors&&h.isBold()&&b<8&&(b+=8),c._ctx.fillStyle=c._colors.ansi[b].css}else if(h.isFgDefault())c._ctx.fillStyle=c._colors.foreground.css;else if(h.isFgRGB())c._ctx.fillStyle="rgb("+u.AttributeData.toColorRGB(h.getFgColor()).join(",")+")";else{var S=h.getFgColor();c._optionsService.options.drawBoldTextInBrightColors&&h.isBold()&&S<8&&(S+=8),c._ctx.fillStyle=c._colors.ansi[S].css}c._fillBottomLineAtCells(g,A,h.getWidth()),c._ctx.restore()}})},l.prototype.onGridChanged=function(r,a){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,r,this._bufferService.cols,a-r+1),this._drawBackground(r,a),this._drawForeground(r,a))},l.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},l.prototype._isOverlapping=function(r){if(r.getWidth()!==1)return!1;if(r.getCode()<256)return!1;var a=r.getChars();if(this._characterOverlapCache.hasOwnProperty(a))return this._characterOverlapCache[a];this._ctx.save(),this._ctx.font=this._characterFont;var c=Math.floor(this._ctx.measureText(a).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[a]=c,c},l}(d.BaseRenderLayer);f.TextRenderLayer=o},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.GridCache=void 0;var v=function(){function m(){this.cache=[]}return m.prototype.resize=function(p,d){for(var u=0;u<p;u++){this.cache.length<=u&&this.cache.push([]);for(var s=this.cache[u].length;s<d;s++)this.cache[u].push(void 0);this.cache[u].length=d}this.cache.length=p},m.prototype.clear=function(){for(var p=0;p<this.cache.length;p++)for(var d=0;d<this.cache[p].length;d++)this.cache[p][d]=void 0},m}();f.GridCache=v},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(h,g){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,b){A.__proto__=b}||function(A,b){for(var S in b)b.hasOwnProperty(S)&&(A[S]=b[S])})(h,g)},function(c,h){function g(){this.constructor=c}v(c,h),c.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(f,"__esModule",{value:!0}),f.NoneCharAtlas=f.DynamicCharAtlas=f.getGlyphCacheKey=void 0;var p=x(9),d=x(44),u=x(27),s=x(46),i=x(11),t=x(28),o=x(10),e={css:"rgba(0, 0, 0, 0)",rgba:0};function l(c){return c.code<<21|c.bg<<12|c.fg<<3|(c.bold?0:4)+(c.dim?0:2)+(c.italic?0:1)}f.getGlyphCacheKey=l;var r=function(c){function h(g,A){var b=c.call(this)||this;b._config=A,b._drawToCacheCount=0,b._glyphsWaitingOnBitmap=[],b._bitmapCommitTimeout=null,b._bitmap=null,b._cacheCanvas=g.createElement("canvas"),b._cacheCanvas.width=1024,b._cacheCanvas.height=1024,b._cacheCtx=t.throwIfFalsy(b._cacheCanvas.getContext("2d",{alpha:!0}));var S=g.createElement("canvas");S.width=b._config.scaledCharWidth,S.height=b._config.scaledCharHeight,b._tmpCtx=t.throwIfFalsy(S.getContext("2d",{alpha:b._config.allowTransparency})),b._width=Math.floor(1024/b._config.scaledCharWidth),b._height=Math.floor(1024/b._config.scaledCharHeight);var E=b._width*b._height;return b._cacheMap=new s.LRUMap(E),b._cacheMap.prealloc(E),b}return m(h,c),h.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},h.prototype.beginFrame=function(){this._drawToCacheCount=0},h.prototype.draw=function(g,A,b,S){if(A.code===32)return!0;if(!this._canCache(A))return!1;var E=l(A),C=this._cacheMap.get(E);if(C!=null)return this._drawFromCache(g,C,b,S),!0;if(this._drawToCacheCount<100){var _=void 0;_=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var T=this._drawToCache(A,_);return this._cacheMap.set(E,T),this._drawFromCache(g,T,b,S),!0}return!1},h.prototype._canCache=function(g){return g.code<256},h.prototype._toCoordinateX=function(g){return g%this._width*this._config.scaledCharWidth},h.prototype._toCoordinateY=function(g){return Math.floor(g/this._width)*this._config.scaledCharHeight},h.prototype._drawFromCache=function(g,A,b,S){if(!A.isEmpty){var E=this._toCoordinateX(A.index),C=this._toCoordinateY(A.index);g.drawImage(A.inBitmap?this._bitmap:this._cacheCanvas,E,C,this._config.scaledCharWidth,this._config.scaledCharHeight,b,S,this._config.scaledCharWidth,this._config.scaledCharHeight)}},h.prototype._getColorFromAnsiIndex=function(g){return g<this._config.colors.ansi.length?this._config.colors.ansi[g]:u.DEFAULT_ANSI_COLORS[g]},h.prototype._getBackgroundColor=function(g){return this._config.allowTransparency?e:g.bg===p.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:g.bg<256?this._getColorFromAnsiIndex(g.bg):this._config.colors.background},h.prototype._getForegroundColor=function(g){return g.fg===p.INVERTED_DEFAULT_COLOR?o.color.opaque(this._config.colors.background):g.fg<256?this._getColorFromAnsiIndex(g.fg):this._config.colors.foreground},h.prototype._drawToCache=function(g,A){this._drawToCacheCount++,this._tmpCtx.save();var b=this._getBackgroundColor(g);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=b.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var S=g.bold?this._config.fontWeightBold:this._config.fontWeight,E=g.italic?"italic":"";this._tmpCtx.font=E+" "+S+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(g).css,g.dim&&(this._tmpCtx.globalAlpha=p.DIM_OPACITY),this._tmpCtx.fillText(g.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var C=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),_=!1;this._config.allowTransparency||(_=function(I,k){for(var M=!0,j=k.rgba>>>24,P=k.rgba>>>16&255,X=k.rgba>>>8&255,F=0;F<I.data.length;F+=4)I.data[F]===j&&I.data[F+1]===P&&I.data[F+2]===X?I.data[F+3]=0:M=!1;return M}(C,b));var T=this._toCoordinateX(A),w=this._toCoordinateY(A);this._cacheCtx.putImageData(C,T,w);var O={index:A,isEmpty:_,inBitmap:!1};return this._addGlyphToBitmap(O),O},h.prototype._addGlyphToBitmap=function(g){var A=this;!("createImageBitmap"in window)||i.isFirefox||i.isSafari||(this._glyphsWaitingOnBitmap.push(g),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return A._generateBitmap()},100)))},h.prototype._generateBitmap=function(){var g=this,A=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(b){g._bitmap=b;for(var S=0;S<A.length;S++)A[S].inBitmap=!0}),this._bitmapCommitTimeout=null},h}(d.BaseCharAtlas);f.DynamicCharAtlas=r;var a=function(c){function h(g,A){return c.call(this)||this}return m(h,c),h.prototype.draw=function(g,A,b,S){return!1},h}(d.BaseCharAtlas);f.NoneCharAtlas=a},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BaseCharAtlas=void 0;var v=function(){function m(){this._didWarmUp=!1}return m.prototype.dispose=function(){},m.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},m.prototype._doWarmUp=function(){},m.prototype.beginFrame=function(){},m}();f.BaseCharAtlas=v},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ColorContrastCache=void 0;var v=function(){function m(){this._color={},this._rgba={}}return m.prototype.clear=function(){this._color={},this._rgba={}},m.prototype.setCss=function(p,d,u){this._rgba[p]||(this._rgba[p]={}),this._rgba[p][d]=u},m.prototype.getCss=function(p,d){return this._rgba[p]?this._rgba[p][d]:void 0},m.prototype.setColor=function(p,d,u){this._color[p]||(this._color[p]={}),this._color[p][d]=u},m.prototype.getColor=function(p,d){return this._color[p]?this._color[p][d]:void 0},m}();f.ColorContrastCache=v},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.LRUMap=void 0;var v=function(){function m(p){this.capacity=p,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return m.prototype._unlinkNode=function(p){var d=p.prev,u=p.next;p===this._head&&(this._head=u),p===this._tail&&(this._tail=d),d!==null&&(d.next=u),u!==null&&(u.prev=d)},m.prototype._appendNode=function(p){var d=this._tail;d!==null&&(d.next=p),p.prev=d,p.next=null,this._tail=p,this._head===null&&(this._head=p)},m.prototype.prealloc=function(p){for(var d=this._nodePool,u=0;u<p;u++)d.push({prev:null,next:null,key:null,value:null})},m.prototype.get=function(p){var d=this._map[p];return d!==void 0?(this._unlinkNode(d),this._appendNode(d),d.value):null},m.prototype.peekValue=function(p){var d=this._map[p];return d!==void 0?d.value:null},m.prototype.peek=function(){var p=this._head;return p===null?null:p.value},m.prototype.set=function(p,d){var u=this._map[p];if(u!==void 0)u=this._map[p],this._unlinkNode(u),u.value=d;else if(this.size>=this.capacity)u=this._head,this._unlinkNode(u),delete this._map[u.key],u.key=p,u.value=d,this._map[p]=u;else{var s=this._nodePool;s.length>0?((u=s.pop()).key=p,u.value=d):u={prev:null,next:null,key:p,value:d},this._map[p]=u,this.size++}this._appendNode(u)},m}();f.LRUMap=v},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(u,s){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,t){i.__proto__=t}||function(i,t){for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o])})(u,s)},function(d,u){function s(){this.constructor=d}v(d,u),d.prototype=u===null?Object.create(u):(s.prototype=u.prototype,new s)});Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionRenderLayer=void 0;var p=function(d){function u(s,i,t,o,e,l){var r=d.call(this,s,"selection",i,!0,t,o,e,l)||this;return r._clearState(),r}return m(u,d),u.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},u.prototype.resize=function(s){d.prototype.resize.call(this,s),this._clearState()},u.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},u.prototype.onSelectionChanged=function(s,i,t){if(this._didStateChange(s,i,t,this._bufferService.buffer.ydisp))if(this._clearAll(),s&&i){var o=s[1]-this._bufferService.buffer.ydisp,e=i[1]-this._bufferService.buffer.ydisp,l=Math.max(o,0),r=Math.min(e,this._bufferService.rows-1);if(!(l>=this._bufferService.rows||r<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,t){var a=s[0],c=i[0]-a,h=r-l+1;this._fillCells(a,l,c,h)}else{a=o===l?s[0]:0;var g=l===r?i[0]:this._bufferService.cols;this._fillCells(a,l,g-a,1);var A=Math.max(r-l-1,0);if(this._fillCells(0,l+1,this._bufferService.cols,A),l!==r){var b=e===r?i[0]:this._bufferService.cols;this._fillCells(0,r,b,1)}}this._state.start=[s[0],s[1]],this._state.end=[i[0],i[1]],this._state.columnSelectMode=t,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},u.prototype._didStateChange=function(s,i,t,o){return!this._areCoordinatesEqual(s,this._state.start)||!this._areCoordinatesEqual(i,this._state.end)||t!==this._state.columnSelectMode||o!==this._state.ydisp},u.prototype._areCoordinatesEqual=function(s,i){return!(!s||!i)&&s[0]===i[0]&&s[1]===i[1]},u}(x(13).BaseRenderLayer);f.SelectionRenderLayer=p},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(t,o){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var r in l)l.hasOwnProperty(r)&&(e[r]=l[r])})(t,o)},function(i,t){function o(){this.constructor=i}v(i,t),i.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(f,"__esModule",{value:!0}),f.CursorRenderLayer=void 0;var p=x(13),d=x(4),u=function(i){function t(o,e,l,r,a,c,h,g,A){var b=i.call(this,o,"cursor",e,!0,l,r,c,h)||this;return b._onRequestRedraw=a,b._coreService=g,b._coreBrowserService=A,b._cell=new d.CellData,b._state={x:0,y:0,isFocused:!1,style:"",width:0},b._cursorRenderers={bar:b._renderBarCursor.bind(b),block:b._renderBlockCursor.bind(b),underline:b._renderUnderlineCursor.bind(b)},b}return m(t,i),t.prototype.resize=function(o){i.prototype.resize.call(this,o),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},t.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var o,e=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new s(this._coreBrowserService.isFocused,function(){e._render(!0)})):((o=this._cursorBlinkStateManager)===null||o===void 0||o.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype.onGridChanged=function(o,e){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(o){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var e=this._bufferService.buffer.ybase+this._bufferService.buffer.y,l=e-this._bufferService.buffer.ydisp;if(l<0||l>=this._bufferService.rows)this._clearCursor();else{var r=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(e).loadCell(r,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var a=this._optionsService.options.cursorStyle;return a&&a!=="block"?this._cursorRenderers[a](r,l,this._cell):this._renderBlurCursor(r,l,this._cell),this._ctx.restore(),this._state.x=r,this._state.y=l,this._state.isFocused=!1,this._state.style=a,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===r&&this._state.y===l&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](r,l,this._cell),this._ctx.restore(),this._state.x=r,this._state.y=l,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},t.prototype._renderBarCursor=function(o,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(o,e,this._optionsService.options.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(o,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(o,e,l.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(l,o,e),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(o,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(o,e),this._ctx.restore()},t.prototype._renderBlurCursor=function(o,e,l){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(o,e,l.getWidth(),1),this._ctx.restore()},t}(p.BaseRenderLayer);f.CursorRenderLayer=u;var s=function(){function i(t,o){this._renderCallback=o,this.isCursorVisible=!0,t&&this._restartInterval()}return Object.defineProperty(i.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},i.prototype.restartBlinkAnimation=function(){var t=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})))},i.prototype._restartInterval=function(t){var o=this;t===void 0&&(t=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(o._animationTimeRestarted){var e=600-(Date.now()-o._animationTimeRestarted);if(o._animationTimeRestarted=void 0,e>0)return void o._restartInterval(e)}o.isCursorVisible=!1,o._animationFrame=window.requestAnimationFrame(function(){o._renderCallback(),o._animationFrame=void 0}),o._blinkInterval=window.setInterval(function(){if(o._animationTimeRestarted){var l=600-(Date.now()-o._animationTimeRestarted);return o._animationTimeRestarted=void 0,void o._restartInterval(l)}o.isCursorVisible=!o.isCursorVisible,o._animationFrame=window.requestAnimationFrame(function(){o._renderCallback(),o._animationFrame=void 0})},600)},t)},i.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},i.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},i}()},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(t,o){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var r in l)l.hasOwnProperty(r)&&(e[r]=l[r])})(t,o)},function(i,t){function o(){this.constructor=i}v(i,t),i.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(f,"__esModule",{value:!0}),f.LinkRenderLayer=void 0;var p=x(13),d=x(9),u=x(26),s=function(i){function t(o,e,l,r,a,c,h,g){var A=i.call(this,o,"link",e,!0,l,r,h,g)||this;return a.onShowLinkUnderline(function(b){return A._onShowLinkUnderline(b)}),a.onHideLinkUnderline(function(b){return A._onHideLinkUnderline(b)}),c.onShowLinkUnderline(function(b){return A._onShowLinkUnderline(b)}),c.onHideLinkUnderline(function(b){return A._onHideLinkUnderline(b)}),A}return m(t,i),t.prototype.resize=function(o){i.prototype.resize.call(this,o),this._state=void 0},t.prototype.reset=function(){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var o=this._state.y2-this._state.y1-1;o>0&&this._clearCells(0,this._state.y1+1,this._state.cols,o),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onShowLinkUnderline=function(o){if(o.fg===d.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:o.fg&&u.is256Color(o.fg)?this._ctx.fillStyle=this._colors.ansi[o.fg].css:this._ctx.fillStyle=this._colors.foreground.css,o.y1===o.y2)this._fillBottomLineAtCells(o.x1,o.y1,o.x2-o.x1);else{this._fillBottomLineAtCells(o.x1,o.y1,o.cols-o.x1);for(var e=o.y1+1;e<o.y2;e++)this._fillBottomLineAtCells(0,e,o.cols);this._fillBottomLineAtCells(0,o.y2,o.x2)}this._state=o},t.prototype._onHideLinkUnderline=function(o){this._clearCurrentLink()},t}(p.BaseRenderLayer);f.LinkRenderLayer=s},function(y,f,x){"use strict";var v=this&&this.__decorate||function(i,t,o,e){var l,r=arguments.length,a=r<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,o):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(i,t,o,e);else for(var c=i.length-1;c>=0;c--)(l=i[c])&&(a=(r<3?l(a):r>3?l(t,o,a):l(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},m=this&&this.__param||function(i,t){return function(o,e){t(o,e,i)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseZone=f.Linkifier=void 0;var p=x(0),d=x(1),u=function(){function i(t,o,e){this._bufferService=t,this._logService=o,this._unicodeService=e,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new p.EventEmitter,this._onHideLinkUnderline=new p.EventEmitter,this._onLinkTooltip=new p.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(i.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),i.prototype.attachToDom=function(t,o){this._element=t,this._mouseZoneManager=o},i.prototype.linkifyRows=function(t,o){var e=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=o):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,o)),this._mouseZoneManager.clearAll(t,o),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return e._linkifyRows()},i._timeBeforeLatency))},i.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var t=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var o=t.ydisp+this._rowsToLinkify.start;if(!(o>=t.lines.length)){for(var e=t.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,l=Math.ceil(2e3/this._bufferService.cols),r=this._bufferService.buffer.iterator(!1,o,e,l,l);r.hasNext();)for(var a=r.next(),c=0;c<this._linkMatchers.length;c++)this._doLinkifyRow(a.range.first,a.content,this._linkMatchers[c]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},i.prototype.registerLinkMatcher=function(t,o,e){if(e===void 0&&(e={}),!o)throw new Error("handler must be defined");var l={id:this._nextLinkMatcherId++,regex:t,handler:o,matchIndex:e.matchIndex,validationCallback:e.validationCallback,hoverTooltipCallback:e.tooltipCallback,hoverLeaveCallback:e.leaveCallback,willLinkActivate:e.willLinkActivate,priority:e.priority||0};return this._addLinkMatcherToList(l),l.id},i.prototype._addLinkMatcherToList=function(t){if(this._linkMatchers.length!==0){for(var o=this._linkMatchers.length-1;o>=0;o--)if(t.priority<=this._linkMatchers[o].priority)return void this._linkMatchers.splice(o+1,0,t);this._linkMatchers.splice(0,0,t)}else this._linkMatchers.push(t)},i.prototype.deregisterLinkMatcher=function(t){for(var o=0;o<this._linkMatchers.length;o++)if(this._linkMatchers[o].id===t)return this._linkMatchers.splice(o,1),!0;return!1},i.prototype._doLinkifyRow=function(t,o,e){for(var l,r=this,a=new RegExp(e.regex.source,(e.regex.flags||"")+"g"),c=-1,h=function(){var b=l[typeof e.matchIndex!="number"?0:e.matchIndex];if(!b)return g._logService.debug("match found without corresponding matchIndex",l,e),"break";if(c=o.indexOf(b,c+1),a.lastIndex=c+b.length,c<0)return"break";var S=g._bufferService.buffer.stringIndexToBufferIndex(t,c);if(S[0]<0)return"break";var E=g._bufferService.buffer.lines.get(S[0]);if(!E)return"break";var C=E.getFg(S[1]),_=C?C>>9&511:void 0;e.validationCallback?e.validationCallback(b,function(T){r._rowsTimeoutId||T&&r._addLink(S[1],S[0]-r._bufferService.buffer.ydisp,b,e,_)}):g._addLink(S[1],S[0]-g._bufferService.buffer.ydisp,b,e,_)},g=this;(l=a.exec(o))!==null&&!(h()==="break"););},i.prototype._addLink=function(t,o,e,l,r){var a=this;if(this._mouseZoneManager&&this._element){var c=this._unicodeService.getStringCellWidth(e),h=t%this._bufferService.cols,g=o+Math.floor(t/this._bufferService.cols),A=(h+c)%this._bufferService.cols,b=g+Math.floor((h+c)/this._bufferService.cols);A===0&&(A=this._bufferService.cols,b--),this._mouseZoneManager.add(new s(h+1,g+1,A+1,b+1,function(S){if(l.handler)return l.handler(S,e);var E=window.open();E?(E.opener=null,E.location.href=e):console.warn("Opening link blocked as opener could not be cleared")},function(){a._onShowLinkUnderline.fire(a._createLinkHoverEvent(h,g,A,b,r)),a._element.classList.add("xterm-cursor-pointer")},function(S){a._onLinkTooltip.fire(a._createLinkHoverEvent(h,g,A,b,r)),l.hoverTooltipCallback&&l.hoverTooltipCallback(S,e,{start:{x:h,y:g},end:{x:A,y:b}})},function(){a._onHideLinkUnderline.fire(a._createLinkHoverEvent(h,g,A,b,r)),a._element.classList.remove("xterm-cursor-pointer"),l.hoverLeaveCallback&&l.hoverLeaveCallback()},function(S){return!l.willLinkActivate||l.willLinkActivate(S,e)}))}},i.prototype._createLinkHoverEvent=function(t,o,e,l,r){return{x1:t,y1:o,x2:e,y2:l,cols:this._bufferService.cols,fg:r}},i._timeBeforeLatency=200,i=v([m(0,d.IBufferService),m(1,d.ILogService),m(2,d.IUnicodeService)],i)}();f.Linkifier=u;var s=function(t,o,e,l,r,a,c,h,g){this.x1=t,this.y1=o,this.x2=e,this.y2=l,this.clickCallback=r,this.hoverCallback=a,this.tooltipCallback=c,this.leaveCallback=h,this.willLinkActivate=g};f.MouseZone=s},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(b,S){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,C){E.__proto__=C}||function(E,C){for(var _ in C)C.hasOwnProperty(_)&&(E[_]=C[_])})(b,S)},function(A,b){function S(){this.constructor=A}v(A,b),A.prototype=b===null?Object.create(b):(S.prototype=b.prototype,new S)}),p=this&&this.__decorate||function(A,b,S,E){var C,_=arguments.length,T=_<3?b:E===null?E=Object.getOwnPropertyDescriptor(b,S):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(A,b,S,E);else for(var w=A.length-1;w>=0;w--)(C=A[w])&&(T=(_<3?C(T):_>3?C(b,S,T):C(b,S))||T);return _>3&&T&&Object.defineProperty(b,S,T),T},d=this&&this.__param||function(A,b){return function(S,E){b(S,E,A)}};Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionService=void 0;var u=x(11),s=x(52),i=x(4),t=x(0),o=x(5),e=x(1),l=x(30),r=x(53),a=x(2),c=String.fromCharCode(160),h=new RegExp(c,"g"),g=function(A){function b(S,E,C,_,T,w,O){var I=A.call(this)||this;return I._element=S,I._screenElement=E,I._bufferService=C,I._coreService=_,I._mouseService=T,I._optionsService=w,I._renderService=O,I._dragScrollAmount=0,I._enabled=!0,I._workCell=new i.CellData,I._mouseDownTimeStamp=0,I._onLinuxMouseSelection=I.register(new t.EventEmitter),I._onRedrawRequest=I.register(new t.EventEmitter),I._onSelectionChange=I.register(new t.EventEmitter),I._onRequestScrollLines=I.register(new t.EventEmitter),I._mouseMoveListener=function(k){return I._onMouseMove(k)},I._mouseUpListener=function(k){return I._onMouseUp(k)},I._coreService.onUserInput(function(){I.hasSelection&&I.clearSelection()}),I._trimListener=I._bufferService.buffer.lines.onTrim(function(k){return I._onTrim(k)}),I.register(I._bufferService.buffers.onBufferActivate(function(k){return I._onBufferActivate(k)})),I.enable(),I._model=new s.SelectionModel(I._bufferService),I._activeSelectionMode=0,I}return m(b,A),Object.defineProperty(b.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){this._removeMouseDownListeners()},b.prototype.reset=function(){this.clearSelection()},b.prototype.disable=function(){this.clearSelection(),this._enabled=!1},b.prototype.enable=function(){this._enabled=!0},Object.defineProperty(b.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"hasSelection",{get:function(){var E=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;return!(!E||!C)&&(E[0]!==C[0]||E[1]!==C[1])},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionText",{get:function(){var E=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;if(!E||!C)return"";var _=this._bufferService.buffer,T=[];if(this._activeSelectionMode===3){if(E[0]===C[0])return"";for(var w=E[1];w<=C[1];w++){var O=_.translateBufferLineToString(w,!0,E[0],C[0]);T.push(O)}}else{var I=E[1]===C[1]?C[0]:void 0;for(T.push(_.translateBufferLineToString(E[1],!0,E[0],I)),w=E[1]+1;w<=C[1]-1;w++){var k=_.lines.get(w);O=_.translateBufferLineToString(w,!0),k&&k.isWrapped?T[T.length-1]+=O:T.push(O)}E[1]!==C[1]&&(k=_.lines.get(C[1]),O=_.translateBufferLineToString(C[1],!0,0,C[0]),k&&k.isWrapped?T[T.length-1]+=O:T.push(O))}return T.map(function(M){return M.replace(h," ")}).join(u.isWindows?`\r
|
|
|
`:`
|
|
|
`)},enumerable:!1,configurable:!0}),b.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},b.prototype.refresh=function(S){var E=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return E._refresh()})),u.isLinux&&S)&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},b.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},b.prototype.isClickInSelection=function(S){var E=this._getMouseBufferCoords(S),C=this._model.finalSelectionStart,_=this._model.finalSelectionEnd;return!!(C&&_&&E)&&this._areCoordsInSelection(E,C,_)},b.prototype._areCoordsInSelection=function(S,E,C){return S[1]>E[1]&&S[1]<C[1]||E[1]===C[1]&&S[1]===E[1]&&S[0]>=E[0]&&S[0]<C[0]||E[1]<C[1]&&S[1]===C[1]&&S[0]<C[0]||E[1]<C[1]&&S[1]===E[1]&&S[0]>=E[0]},b.prototype.selectWordAtCursor=function(S){var E=this._getMouseBufferCoords(S);E&&(this._selectWordAt(E,!1),this._model.selectionEnd=void 0,this.refresh(!0))},b.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},b.prototype.selectLines=function(S,E){this._model.clearSelection(),S=Math.max(S,0),E=Math.min(E,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,S],this._model.selectionEnd=[this._bufferService.cols,E],this.refresh(),this._onSelectionChange.fire()},b.prototype._onTrim=function(S){this._model.onTrim(S)&&this.refresh()},b.prototype._getMouseBufferCoords=function(S){var E=this._mouseService.getCoords(S,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(E)return E[0]--,E[1]--,E[1]+=this._bufferService.buffer.ydisp,E},b.prototype._getMouseEventScrollAmount=function(S){var E=l.getCoordsRelativeToElement(S,this._screenElement)[1],C=this._renderService.dimensions.canvasHeight;return E>=0&&E<=C?0:(E>C&&(E-=C),E=Math.min(Math.max(E,-50),50),(E/=50)/Math.abs(E)+Math.round(14*E))},b.prototype.shouldForceSelection=function(S){return u.isMac?S.altKey&&this._optionsService.options.macOptionClickForcesSelection:S.shiftKey},b.prototype.onMouseDown=function(S){if(this._mouseDownTimeStamp=S.timeStamp,(S.button!==2||!this.hasSelection)&&S.button===0){if(!this._enabled){if(!this.shouldForceSelection(S))return;S.stopPropagation()}S.preventDefault(),this._dragScrollAmount=0,this._enabled&&S.shiftKey?this._onIncrementalClick(S):S.detail===1?this._onSingleClick(S):S.detail===2?this._onDoubleClick(S):S.detail===3&&this._onTripleClick(S),this._addMouseDownListeners(),this.refresh(!0)}},b.prototype._addMouseDownListeners=function(){var S=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return S._dragScroll()},50)},b.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},b.prototype._onIncrementalClick=function(S){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(S))},b.prototype._onSingleClick=function(S){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(S)?3:0,this._model.selectionStart=this._getMouseBufferCoords(S),this._model.selectionStart){this._model.selectionEnd=void 0;var E=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);E&&E.length!==this._model.selectionStart[0]&&E.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},b.prototype._onDoubleClick=function(S){var E=this._getMouseBufferCoords(S);E&&(this._activeSelectionMode=1,this._selectWordAt(E,!0))},b.prototype._onTripleClick=function(S){var E=this._getMouseBufferCoords(S);E&&(this._activeSelectionMode=2,this._selectLineAt(E[1]))},b.prototype.shouldColumnSelect=function(S){return S.altKey&&!(u.isMac&&this._optionsService.options.macOptionClickForcesSelection)},b.prototype._onMouseMove=function(S){if(S.stopImmediatePropagation(),this._model.selectionStart){var E=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(S),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(S),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var C=this._bufferService.buffer;if(this._model.selectionEnd[1]<C.lines.length){var _=C.lines.get(this._model.selectionEnd[1]);_&&_.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}E&&E[0]===this._model.selectionEnd[0]&&E[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},b.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var S=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(S.ydisp+this._bufferService.rows,S.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=S.ydisp),this.refresh()}},b.prototype._onMouseUp=function(S){var E=S.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&E<500&&S.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var C=this._mouseService.getCoords(S,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(C&&C[0]!==void 0&&C[1]!==void 0){var _=r.moveToCellSequence(C[0]-1,C[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(_,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},b.prototype._onBufferActivate=function(S){var E=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=S.activeBuffer.lines.onTrim(function(C){return E._onTrim(C)})},b.prototype._convertViewportColToCharacterIndex=function(S,E){for(var C=E[0],_=0;E[0]>=_;_++){var T=S.loadCell(_,this._workCell).getChars().length;this._workCell.getWidth()===0?C--:T>1&&E[0]!==_&&(C+=T-1)}return C},b.prototype.setSelection=function(S,E,C){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[S,E],this._model.selectionStartLength=C,this.refresh()},b.prototype._getWordAt=function(S,E,C,_){if(C===void 0&&(C=!0),_===void 0&&(_=!0),!(S[0]>=this._bufferService.cols)){var T=this._bufferService.buffer,w=T.lines.get(S[1]);if(w){var O=T.translateBufferLineToString(S[1],!1),I=this._convertViewportColToCharacterIndex(w,S),k=I,M=S[0]-I,j=0,P=0,X=0,F=0;if(O.charAt(I)===" "){for(;I>0&&O.charAt(I-1)===" ";)I--;for(;k<O.length&&O.charAt(k+1)===" ";)k++}else{var U=S[0],K=S[0];w.getWidth(U)===0&&(j++,U--),w.getWidth(K)===2&&(P++,K++);var z=w.getString(K).length;for(z>1&&(F+=z-1,k+=z-1);U>0&&I>0&&!this._isCharWordSeparator(w.loadCell(U-1,this._workCell));){w.loadCell(U-1,this._workCell);var V=this._workCell.getChars().length;this._workCell.getWidth()===0?(j++,U--):V>1&&(X+=V-1,I-=V-1),I--,U--}for(;K<w.length&&k+1<O.length&&!this._isCharWordSeparator(w.loadCell(K+1,this._workCell));){w.loadCell(K+1,this._workCell);var Q=this._workCell.getChars().length;this._workCell.getWidth()===2?(P++,K++):Q>1&&(F+=Q-1,k+=Q-1),k++,K++}}k++;var G=I+M-j+X,te=Math.min(this._bufferService.cols,k-I+j+P-X-F);if(E||O.slice(I,k).trim()!==""){if(C&&G===0&&w.getCodePoint(0)!==32){var q=T.lines.get(S[1]-1);if(q&&w.isWrapped&&q.getCodePoint(this._bufferService.cols-1)!==32){var se=this._getWordAt([this._bufferService.cols-1,S[1]-1],!1,!0,!1);if(se){var re=this._bufferService.cols-se.start;G-=re,te+=re}}}if(_&&G+te===this._bufferService.cols&&w.getCodePoint(this._bufferService.cols-1)!==32){var xe=T.lines.get(S[1]+1);if(xe&&xe.isWrapped&&xe.getCodePoint(0)!==32){var Oe=this._getWordAt([0,S[1]+1],!1,!1,!0);Oe&&(te+=Oe.length)}}return{start:G,length:te}}}}},b.prototype._selectWordAt=function(S,E){var C=this._getWordAt(S,E);if(C){for(;C.start<0;)C.start+=this._bufferService.cols,S[1]--;this._model.selectionStart=[C.start,S[1]],this._model.selectionStartLength=C.length}},b.prototype._selectToWordAt=function(S){var E=this._getWordAt(S,!0);if(E){for(var C=S[1];E.start<0;)E.start+=this._bufferService.cols,C--;if(!this._model.areSelectionValuesReversed())for(;E.start+E.length>this._bufferService.cols;)E.length-=this._bufferService.cols,C++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?E.start:E.start+E.length,C]}},b.prototype._isCharWordSeparator=function(S){return S.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(S.getChars())>=0},b.prototype._selectLineAt=function(S){var E=this._bufferService.buffer.getWrappedRangeForLine(S);this._model.selectionStart=[0,E.first],this._model.selectionEnd=[this._bufferService.cols,E.last],this._model.selectionStartLength=0},b=p([d(2,e.IBufferService),d(3,e.ICoreService),d(4,o.IMouseService),d(5,e.IOptionsService),d(6,o.IRenderService)],b)}(a.Disposable);f.SelectionService=g},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionModel=void 0;var v=function(){function m(p){this._bufferService=p,this.isSelectAllActive=!1,this.selectionStartLength=0}return m.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(m.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var d=this.selectionStart[0]+this.selectionStartLength;return d>this._bufferService.cols?[d%this._bufferService.cols,this.selectionStart[1]+Math.floor(d/this._bufferService.cols)]:[d,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),m.prototype.areSelectionValuesReversed=function(){var p=this.selectionStart,d=this.selectionEnd;return!(!p||!d)&&(p[1]>d[1]||p[1]===d[1]&&p[0]>d[0])},m.prototype.onTrim=function(p){return this.selectionStart&&(this.selectionStart[1]-=p),this.selectionEnd&&(this.selectionEnd[1]-=p),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},m}();f.SelectionModel=v},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.moveToCellSequence=void 0;var v=x(12);function m(t,o,e,l){var r=t-p(e,t),a=o-p(e,o);return i(Math.abs(r-a)-function(c,h,g){for(var A=0,b=c-p(g,c),S=h-p(g,h),E=0;E<Math.abs(b-S);E++){var C=d(c,h)==="A"?-1:1,_=g.buffer.lines.get(b+C*E);_&&_.isWrapped&&A++}return A}(t,o,e),s(d(t,o),l))}function p(t,o){for(var e=0,l=t.buffer.lines.get(o),r=l&&l.isWrapped;r&&o>=0&&o<t.rows;)e++,r=(l=t.buffer.lines.get(--o))&&l.isWrapped;return e}function d(t,o){return t>o?"A":"B"}function u(t,o,e,l,r,a){for(var c=t,h=o,g="";c!==e||h!==l;)c+=r?1:-1,r&&c>a.cols-1?(g+=a.buffer.translateBufferLineToString(h,!1,t,c),c=0,t=0,h++):!r&&c<0&&(g+=a.buffer.translateBufferLineToString(h,!1,0,t+1),t=c=a.cols-1,h--);return g+a.buffer.translateBufferLineToString(h,!1,t,c)}function s(t,o){var e=o?"O":"[";return v.C0.ESC+e+t}function i(t,o){t=Math.floor(t);for(var e="",l=0;l<t;l++)e+=o;return e}f.moveToCellSequence=function(t,o,e,l){var r,a=e.buffer.x,c=e.buffer.y;if(!e.buffer.hasScrollback)return function(g,A,b,S,E,C){return m(A,S,E,C).length===0?"":i(u(g,A,g,A-p(E,A),!1,E).length,s("D",C))}(a,c,0,o,e,l)+m(c,o,e,l)+function(g,A,b,S,E,C){var _;_=m(A,S,E,C).length>0?S-p(E,S):A;var T=S,w=function(O,I,k,M,j,P){var X;return X=m(k,M,j,P).length>0?M-p(j,M):I,O<k&&X<=M||O>=k&&X<M?"C":"D"}(g,A,b,S,E,C);return i(u(g,_,b,T,w==="C",E).length,s(w,C))}(a,c,t,o,e,l);if(c===o)return r=a>t?"D":"C",i(Math.abs(a-t),s(r,l));r=c>o?"D":"C";var h=Math.abs(c-o);return i(function(g,A){return A.cols-g}(c>o?t:a,e)+(h-1)*e.cols+1+((c>o?a:t)-1),s(r,l))}},function(y,f,x){"use strict";var v=this&&this.__decorate||function(u,s,i,t){var o,e=arguments.length,l=e<3?s:t===null?t=Object.getOwnPropertyDescriptor(s,i):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(u,s,i,t);else for(var r=u.length-1;r>=0;r--)(o=u[r])&&(l=(e<3?o(l):e>3?o(s,i,l):o(s,i))||l);return e>3&&l&&Object.defineProperty(s,i,l),l},m=this&&this.__param||function(u,s){return function(i,t){s(i,t,u)}};Object.defineProperty(f,"__esModule",{value:!0}),f.SoundService=void 0;var p=x(1),d=function(){function u(s){this._optionsService=s}return Object.defineProperty(u,"audioContext",{get:function(){if(!u._audioContext){var i=window.AudioContext||window.webkitAudioContext;if(!i)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;u._audioContext=new i}return u._audioContext},enumerable:!1,configurable:!0}),u.prototype.playBellSound=function(){var s=u.audioContext;if(s){var i=s.createBufferSource();s.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(t){i.buffer=t,i.connect(s.destination),i.start(0)})}},u.prototype._base64ToArrayBuffer=function(s){for(var i=window.atob(s),t=i.length,o=new Uint8Array(t),e=0;e<t;e++)o[e]=i.charCodeAt(e);return o.buffer},u.prototype._removeMimeType=function(s){return s.split(",")[1]},u=v([m(0,p.IOptionsService)],u)}();f.SoundService=d},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(l,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var h in c)c.hasOwnProperty(h)&&(a[h]=c[h])})(l,r)},function(e,l){function r(){this.constructor=e}v(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)}),p=this&&this.__decorate||function(e,l,r,a){var c,h=arguments.length,g=h<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,r):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,a);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(g=(h<3?c(g):h>3?c(l,r,g):c(l,r))||g);return h>3&&g&&Object.defineProperty(l,r,g),g},d=this&&this.__param||function(e,l){return function(r,a){l(r,a,e)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseZoneManager=void 0;var u=x(2),s=x(7),i=x(5),t=x(1),o=function(e){function l(r,a,c,h,g,A){var b=e.call(this)||this;return b._element=r,b._screenElement=a,b._bufferService=c,b._mouseService=h,b._selectionService=g,b._optionsService=A,b._zones=[],b._areZonesActive=!1,b._lastHoverCoords=[void 0,void 0],b._initialSelectionLength=0,b.register(s.addDisposableDomListener(b._element,"mousedown",function(S){return b._onMouseDown(S)})),b._mouseMoveListener=function(S){return b._onMouseMove(S)},b._mouseLeaveListener=function(S){return b._onMouseLeave(S)},b._clickListener=function(S){return b._onClick(S)},b}return m(l,e),l.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},l.prototype.add=function(r){this._zones.push(r),this._zones.length===1&&this._activate()},l.prototype.clearAll=function(r,a){if(this._zones.length!==0){r&&a||(r=0,a=this._bufferService.rows-1);for(var c=0;c<this._zones.length;c++){var h=this._zones[c];(h.y1>r&&h.y1<=a+1||h.y2>r&&h.y2<=a+1||h.y1<r&&h.y2>a+1)&&(this._currentZone&&this._currentZone===h&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(c--,1))}this._zones.length===0&&this._deactivate()}},l.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},l.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},l.prototype._onMouseMove=function(r){this._lastHoverCoords[0]===r.pageX&&this._lastHoverCoords[1]===r.pageY||(this._onHover(r),this._lastHoverCoords=[r.pageX,r.pageY])},l.prototype._onHover=function(r){var a=this,c=this._findZoneEventAt(r);c!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),c&&(this._currentZone=c,c.hoverCallback&&c.hoverCallback(r),this._tooltipTimeout=window.setTimeout(function(){return a._onTooltip(r)},this._optionsService.options.linkTooltipHoverDuration)))},l.prototype._onTooltip=function(r){this._tooltipTimeout=void 0;var a=this._findZoneEventAt(r);a&&a.tooltipCallback&&a.tooltipCallback(r)},l.prototype._onMouseDown=function(r){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var a=this._findZoneEventAt(r);(a==null?void 0:a.willLinkActivate(r))&&(r.preventDefault(),r.stopImmediatePropagation())}},l.prototype._onMouseLeave=function(r){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},l.prototype._onClick=function(r){var a=this._findZoneEventAt(r),c=this._getSelectionLength();a&&c===this._initialSelectionLength&&(a.clickCallback(r),r.preventDefault(),r.stopImmediatePropagation())},l.prototype._getSelectionLength=function(){var r=this._selectionService.selectionText;return r?r.length:0},l.prototype._findZoneEventAt=function(r){var a=this._mouseService.getCoords(r,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(a)for(var c=a[0],h=a[1],g=0;g<this._zones.length;g++){var A=this._zones[g];if(A.y1===A.y2){if(h===A.y1&&c>=A.x1&&c<A.x2)return A}else if(h===A.y1&&c>=A.x1||h===A.y2&&c<A.x2||h>A.y1&&h<A.y2)return A}},l=p([d(2,t.IBufferService),d(3,i.IMouseService),d(4,i.ISelectionService),d(5,t.IOptionsService)],l)}(u.Disposable);f.MouseZoneManager=o},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(r,a){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var g in h)h.hasOwnProperty(g)&&(c[g]=h[g])})(r,a)},function(l,r){function a(){this.constructor=l}v(l,r),l.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)});Object.defineProperty(f,"__esModule",{value:!0}),f.AccessibilityManager=void 0;var p=x(18),d=x(11),u=x(31),s=x(7),i=x(2),t=x(32),o=x(17),e=function(l){function r(a,c){var h=l.call(this)||this;h._terminal=a,h._renderService=c,h._liveRegionLineCount=0,h._charsToConsume=[],h._charsToAnnounce="",h._accessibilityTreeRoot=document.createElement("div"),h._accessibilityTreeRoot.classList.add("xterm-accessibility"),h._rowContainer=document.createElement("div"),h._rowContainer.classList.add("xterm-accessibility-tree"),h._rowContainer.setAttribute("role","list"),h._rowElements=[];for(var g=0;g<h._terminal.rows;g++)h._rowElements[g]=h._createAccessibilityTreeNode(),h._rowContainer.appendChild(h._rowElements[g]);if(h._topBoundaryFocusListener=function(A){return h._onBoundaryFocus(A,0)},h._bottomBoundaryFocusListener=function(A){return h._onBoundaryFocus(A,1)},h._rowElements[0].addEventListener("focus",h._topBoundaryFocusListener),h._rowElements[h._rowElements.length-1].addEventListener("focus",h._bottomBoundaryFocusListener),h._refreshRowsDimensions(),h._accessibilityTreeRoot.appendChild(h._rowContainer),h._renderRowsDebouncer=new u.RenderDebouncer(h._renderRows.bind(h)),h._refreshRows(),h._liveRegion=document.createElement("div"),h._liveRegion.classList.add("live-region"),h._liveRegion.setAttribute("aria-live","assertive"),h._accessibilityTreeRoot.appendChild(h._liveRegion),!h._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return h._terminal.element.insertAdjacentElement("afterbegin",h._accessibilityTreeRoot),h.register(h._renderRowsDebouncer),h.register(h._terminal.onResize(function(A){return h._onResize(A.rows)})),h.register(h._terminal.onRender(function(A){return h._refreshRows(A.start,A.end)})),h.register(h._terminal.onScroll(function(){return h._refreshRows()})),h.register(h._terminal.onA11yChar(function(A){return h._onChar(A)})),h.register(h._terminal.onLineFeed(function(){return h._onChar(`
|
|
|
`)})),h.register(h._terminal.onA11yTab(function(A){return h._onTab(A)})),h.register(h._terminal.onKey(function(A){return h._onKey(A.key)})),h.register(h._terminal.onBlur(function(){return h._clearLiveRegion()})),h.register(h._renderService.onDimensionsChange(function(){return h._refreshRowsDimensions()})),h._screenDprMonitor=new t.ScreenDprMonitor,h.register(h._screenDprMonitor),h._screenDprMonitor.setListener(function(){return h._refreshRowsDimensions()}),h.register(s.addDisposableDomListener(window,"resize",function(){return h._refreshRowsDimensions()})),h}return m(r,l),r.prototype.dispose=function(){l.prototype.dispose.call(this),o.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},r.prototype._onBoundaryFocus=function(a,c){var h=a.target,g=this._rowElements[c===0?1:this._rowElements.length-2];if(h.getAttribute("aria-posinset")!==(c===0?"1":""+this._terminal.buffer.lines.length)&&a.relatedTarget===g){var A,b;if(c===0?(A=h,b=this._rowElements.pop(),this._rowContainer.removeChild(b)):(A=this._rowElements.shift(),b=h,this._rowContainer.removeChild(A)),A.removeEventListener("focus",this._topBoundaryFocusListener),b.removeEventListener("focus",this._bottomBoundaryFocusListener),c===0){var S=this._createAccessibilityTreeNode();this._rowElements.unshift(S),this._rowContainer.insertAdjacentElement("afterbegin",S)}else S=this._createAccessibilityTreeNode(),this._rowElements.push(S),this._rowContainer.appendChild(S);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(c===0?-1:1),this._rowElements[c===0?1:this._rowElements.length-2].focus(),a.preventDefault(),a.stopImmediatePropagation()}},r.prototype._onResize=function(a){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var c=this._rowContainer.children.length;c<this._terminal.rows;c++)this._rowElements[c]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[c]);for(;this._rowElements.length>a;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},r.prototype._createAccessibilityTreeNode=function(){var a=document.createElement("div");return a.setAttribute("role","listitem"),a.tabIndex=-1,this._refreshRowDimensions(a),a},r.prototype._onTab=function(a){for(var c=0;c<a;c++)this._onChar(" ")},r.prototype._onChar=function(a){var c=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+=p.tooMuchOutput)),d.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){c._accessibilityTreeRoot.appendChild(c._liveRegion)},0))},r.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,d.isMac&&o.removeElementFromParent(this._liveRegion)},r.prototype._onKey=function(a){this._clearLiveRegion(),this._charsToConsume.push(a)},r.prototype._refreshRows=function(a,c){this._renderRowsDebouncer.refresh(a,c,this._terminal.rows)},r.prototype._renderRows=function(a,c){for(var h=this._terminal.buffer,g=h.lines.length.toString(),A=a;A<=c;A++){var b=h.translateBufferLineToString(h.ydisp+A,!0),S=(h.ydisp+A+1).toString(),E=this._rowElements[A];E&&(b.length===0?E.innerHTML=" ":E.textContent=b,E.setAttribute("aria-posinset",S),E.setAttribute("aria-setsize",g))}this._announceCharacters()},r.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var a=0;a<this._terminal.rows;a++)this._refreshRowDimensions(this._rowElements[a])}},r.prototype._refreshRowDimensions=function(a){a.style.height=this._renderService.dimensions.actualCellHeight+"px"},r.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},r}(i.Disposable);f.AccessibilityManager=e},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(g,A){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var E in S)S.hasOwnProperty(E)&&(b[E]=S[E])})(g,A)},function(h,g){function A(){this.constructor=h}v(h,g),h.prototype=g===null?Object.create(g):(A.prototype=g.prototype,new A)}),p=this&&this.__decorate||function(h,g,A,b){var S,E=arguments.length,C=E<3?g:b===null?b=Object.getOwnPropertyDescriptor(g,A):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(h,g,A,b);else for(var _=h.length-1;_>=0;_--)(S=h[_])&&(C=(E<3?S(C):E>3?S(g,A,C):S(g,A))||C);return E>3&&C&&Object.defineProperty(g,A,C),C},d=this&&this.__param||function(h,g){return function(A,b){g(A,b,h)}};Object.defineProperty(f,"__esModule",{value:!0}),f.DomRenderer=void 0;var u=x(58),s=x(9),i=x(2),t=x(5),o=x(1),e=x(0),l=x(10),r=x(17),a=1,c=function(h){function g(A,b,S,E,C,_,T,w,O){var I=h.call(this)||this;return I._colors=A,I._element=b,I._screenElement=S,I._viewportElement=E,I._linkifier=C,I._linkifier2=_,I._charSizeService=T,I._optionsService=w,I._bufferService=O,I._terminalClass=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 u.DomRendererRowFactory(document,I._optionsService,I._colors),I._element.classList.add("xterm-dom-renderer-owner-"+I._terminalClass),I._screenElement.appendChild(I._rowContainer),I._screenElement.appendChild(I._selectionContainer),I._linkifier.onShowLinkUnderline(function(k){return I._onLinkHover(k)}),I._linkifier.onHideLinkUnderline(function(k){return I._onLinkLeave(k)}),I._linkifier2.onShowLinkUnderline(function(k){return I._onLinkHover(k)}),I._linkifier2.onHideLinkUnderline(function(k){return I._onLinkLeave(k)}),I}return m(g,h),Object.defineProperty(g.prototype,"onRequestRedraw",{get:function(){return new e.EventEmitter().event},enumerable:!1,configurable:!0}),g.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),r.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),h.prototype.dispose.call(this)},g.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var A=0,b=this._rowElements;A<b.length;A++){var S=b[A];S.style.width=this.dimensions.canvasWidth+"px",S.style.height=this.dimensions.actualCellHeight+"px",S.style.lineHeight=this.dimensions.actualCellHeight+"px",S.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var E=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=E,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},g.prototype.setColors=function(A){this._colors=A,this._injectCss()},g.prototype._injectCss=function(){var A=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var b=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";b+=this._terminalSelector+" span:not(."+u.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+u.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+u.ITALIC_CLASS+" { font-style: italic;}",b+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",b+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",b+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_BLINK_CLASS+":not(."+u.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_BLINK_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",b+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(S,E){b+=A._terminalSelector+" .xterm-fg-"+E+" { color: "+S.css+"; }"+A._terminalSelector+" .xterm-bg-"+E+" { background-color: "+S.css+"; }"}),b+=this._terminalSelector+" .xterm-fg-"+s.INVERTED_DEFAULT_COLOR+" { color: "+l.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+s.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=b},g.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},g.prototype._refreshRowElements=function(A,b){for(var S=this._rowElements.length;S<=b;S++){var E=document.createElement("div");this._rowContainer.appendChild(E),this._rowElements.push(E)}for(;this._rowElements.length>b;)this._rowContainer.removeChild(this._rowElements.pop())},g.prototype.onResize=function(A,b){this._refreshRowElements(A,b),this._updateDimensions()},g.prototype.onCharSizeChanged=function(){this._updateDimensions()},g.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},g.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},g.prototype.onSelectionChanged=function(A,b,S){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(A&&b){var E=A[1]-this._bufferService.buffer.ydisp,C=b[1]-this._bufferService.buffer.ydisp,_=Math.max(E,0),T=Math.min(C,this._bufferService.rows-1);if(!(_>=this._bufferService.rows||T<0)){var w=document.createDocumentFragment();if(S)w.appendChild(this._createSelectionElement(_,A[0],b[0],T-_+1));else{var O=E===_?A[0]:0,I=_===T?b[0]:this._bufferService.cols;w.appendChild(this._createSelectionElement(_,O,I));var k=T-_-1;if(w.appendChild(this._createSelectionElement(_+1,0,this._bufferService.cols,k)),_!==T){var M=C===T?b[0]:this._bufferService.cols;w.appendChild(this._createSelectionElement(T,0,M))}}this._selectionContainer.appendChild(w)}}},g.prototype._createSelectionElement=function(A,b,S,E){E===void 0&&(E=1);var C=document.createElement("div");return C.style.height=E*this.dimensions.actualCellHeight+"px",C.style.top=A*this.dimensions.actualCellHeight+"px",C.style.left=b*this.dimensions.actualCellWidth+"px",C.style.width=this.dimensions.actualCellWidth*(S-b)+"px",C},g.prototype.onCursorMove=function(){},g.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},g.prototype.clear=function(){for(var A=0,b=this._rowElements;A<b.length;A++)b[A].innerHTML=""},g.prototype.renderRows=function(A,b){for(var S=this._bufferService.buffer.ybase+this._bufferService.buffer.y,E=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),C=this._optionsService.options.cursorBlink,_=A;_<=b;_++){var T=this._rowElements[_];T.innerHTML="";var w=_+this._bufferService.buffer.ydisp,O=this._bufferService.buffer.lines.get(w),I=this._optionsService.options.cursorStyle;T.appendChild(this._rowFactory.createRow(O,w===S,I,E,C,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(g.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),g.prototype.registerCharacterJoiner=function(A){return-1},g.prototype.deregisterCharacterJoiner=function(A){return!1},g.prototype._onLinkHover=function(A){this._setCellUnderline(A.x1,A.x2,A.y1,A.y2,A.cols,!0)},g.prototype._onLinkLeave=function(A){this._setCellUnderline(A.x1,A.x2,A.y1,A.y2,A.cols,!1)},g.prototype._setCellUnderline=function(A,b,S,E,C,_){for(;A!==b||S!==E;){var T=this._rowElements[S];if(!T)return;var w=T.children[A];w&&(w.style.textDecoration=_?"underline":"none"),++A>=C&&(A=0,S++)}},g=p([d(6,t.ICharSizeService),d(7,o.IOptionsService),d(8,o.IBufferService)],g)}(i.Disposable);f.DomRenderer=c},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.DomRendererRowFactory=f.CURSOR_STYLE_UNDERLINE_CLASS=f.CURSOR_STYLE_BAR_CLASS=f.CURSOR_STYLE_BLOCK_CLASS=f.CURSOR_BLINK_CLASS=f.CURSOR_CLASS=f.UNDERLINE_CLASS=f.ITALIC_CLASS=f.DIM_CLASS=f.BOLD_CLASS=void 0;var v=x(9),m=x(3),p=x(4),d=x(10);f.BOLD_CLASS="xterm-bold",f.DIM_CLASS="xterm-dim",f.ITALIC_CLASS="xterm-italic",f.UNDERLINE_CLASS="xterm-underline",f.CURSOR_CLASS="xterm-cursor",f.CURSOR_BLINK_CLASS="xterm-cursor-blink",f.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",f.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",f.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var u=function(){function i(t,o,e){this._document=t,this._optionsService=o,this._colors=e,this._workCell=new p.CellData}return i.prototype.setColors=function(t){this._colors=t},i.prototype.createRow=function(t,o,e,l,r,a,c){for(var h=this._document.createDocumentFragment(),g=0,A=Math.min(t.length,c)-1;A>=0;A--)if(t.loadCell(A,this._workCell).getCode()!==m.NULL_CELL_CODE||o&&A===l){g=A+1;break}for(A=0;A<g;A++){t.loadCell(A,this._workCell);var b=this._workCell.getWidth();if(b!==0){var S=this._document.createElement("span");if(b>1&&(S.style.width=a*b+"px"),o&&A===l)switch(S.classList.add(f.CURSOR_CLASS),r&&S.classList.add(f.CURSOR_BLINK_CLASS),e){case"bar":S.classList.add(f.CURSOR_STYLE_BAR_CLASS);break;case"underline":S.classList.add(f.CURSOR_STYLE_UNDERLINE_CLASS);break;default:S.classList.add(f.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&S.classList.add(f.BOLD_CLASS),this._workCell.isItalic()&&S.classList.add(f.ITALIC_CLASS),this._workCell.isDim()&&S.classList.add(f.DIM_CLASS),this._workCell.isUnderline()&&S.classList.add(f.UNDERLINE_CLASS),this._workCell.isInvisible()?S.textContent=m.WHITESPACE_CELL_CHAR:S.textContent=this._workCell.getChars()||m.WHITESPACE_CELL_CHAR;var E=this._workCell.getFgColor(),C=this._workCell.getFgColorMode(),_=this._workCell.getBgColor(),T=this._workCell.getBgColorMode(),w=!!this._workCell.isInverse();if(w){var O=E;E=_,_=O;var I=C;C=T,T=I}switch(C){case 16777216:case 33554432:this._workCell.isBold()&&E<8&&this._optionsService.options.drawBoldTextInBrightColors&&(E+=8),this._applyMinimumContrast(S,this._colors.background,this._colors.ansi[E])||S.classList.add("xterm-fg-"+E);break;case 50331648:var k=d.rgba.toColor(E>>16&255,E>>8&255,255&E);this._applyMinimumContrast(S,this._colors.background,k)||this._addStyle(S,"color:#"+s(E.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(S,this._colors.background,this._colors.foreground)||w&&S.classList.add("xterm-fg-"+v.INVERTED_DEFAULT_COLOR)}switch(T){case 16777216:case 33554432:S.classList.add("xterm-bg-"+_);break;case 50331648:this._addStyle(S,"background-color:#"+s(_.toString(16),"0",6));break;case 0:default:w&&S.classList.add("xterm-bg-"+v.INVERTED_DEFAULT_COLOR)}h.appendChild(S)}}return h},i.prototype._applyMinimumContrast=function(t,o,e){if(this._optionsService.options.minimumContrastRatio===1)return!1;var l=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return l===void 0&&(l=d.color.ensureContrastRatio(o,e,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,l!=null?l:null)),!!l&&(this._addStyle(t,"color:"+l.css),!0)},i.prototype._addStyle=function(t,o){t.setAttribute("style",""+(t.getAttribute("style")||"")+o+";")},i}();function s(i,t,o){for(;i.length<o;)i=t+i;return i}f.DomRendererRowFactory=u},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.evaluateKeyboardEvent=void 0;var v=x(12),m={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};f.evaluateKeyboardEvent=function(p,d,u,s){var i={type:0,cancel:!1,key:void 0},t=(p.shiftKey?1:0)|(p.altKey?2:0)|(p.ctrlKey?4:0)|(p.metaKey?8:0);switch(p.keyCode){case 0:p.key==="UIKeyInputUpArrow"?i.key=d?v.C0.ESC+"OA":v.C0.ESC+"[A":p.key==="UIKeyInputLeftArrow"?i.key=d?v.C0.ESC+"OD":v.C0.ESC+"[D":p.key==="UIKeyInputRightArrow"?i.key=d?v.C0.ESC+"OC":v.C0.ESC+"[C":p.key==="UIKeyInputDownArrow"&&(i.key=d?v.C0.ESC+"OB":v.C0.ESC+"[B");break;case 8:if(p.shiftKey){i.key=v.C0.BS;break}if(p.altKey){i.key=v.C0.ESC+v.C0.DEL;break}i.key=v.C0.DEL;break;case 9:if(p.shiftKey){i.key=v.C0.ESC+"[Z";break}i.key=v.C0.HT,i.cancel=!0;break;case 13:i.key=p.altKey?v.C0.ESC+v.C0.CR:v.C0.CR,i.cancel=!0;break;case 27:i.key=v.C0.ESC,p.altKey&&(i.key=v.C0.ESC+v.C0.ESC),i.cancel=!0;break;case 37:if(p.metaKey)break;t?(i.key=v.C0.ESC+"[1;"+(t+1)+"D",i.key===v.C0.ESC+"[1;3D"&&(i.key=v.C0.ESC+(u?"b":"[1;5D"))):i.key=d?v.C0.ESC+"OD":v.C0.ESC+"[D";break;case 39:if(p.metaKey)break;t?(i.key=v.C0.ESC+"[1;"+(t+1)+"C",i.key===v.C0.ESC+"[1;3C"&&(i.key=v.C0.ESC+(u?"f":"[1;5C"))):i.key=d?v.C0.ESC+"OC":v.C0.ESC+"[C";break;case 38:if(p.metaKey)break;t?(i.key=v.C0.ESC+"[1;"+(t+1)+"A",u||i.key!==v.C0.ESC+"[1;3A"||(i.key=v.C0.ESC+"[1;5A")):i.key=d?v.C0.ESC+"OA":v.C0.ESC+"[A";break;case 40:if(p.metaKey)break;t?(i.key=v.C0.ESC+"[1;"+(t+1)+"B",u||i.key!==v.C0.ESC+"[1;3B"||(i.key=v.C0.ESC+"[1;5B")):i.key=d?v.C0.ESC+"OB":v.C0.ESC+"[B";break;case 45:p.shiftKey||p.ctrlKey||(i.key=v.C0.ESC+"[2~");break;case 46:i.key=t?v.C0.ESC+"[3;"+(t+1)+"~":v.C0.ESC+"[3~";break;case 36:i.key=t?v.C0.ESC+"[1;"+(t+1)+"H":d?v.C0.ESC+"OH":v.C0.ESC+"[H";break;case 35:i.key=t?v.C0.ESC+"[1;"+(t+1)+"F":d?v.C0.ESC+"OF":v.C0.ESC+"[F";break;case 33:p.shiftKey?i.type=2:i.key=v.C0.ESC+"[5~";break;case 34:p.shiftKey?i.type=3:i.key=v.C0.ESC+"[6~";break;case 112:i.key=t?v.C0.ESC+"[1;"+(t+1)+"P":v.C0.ESC+"OP";break;case 113:i.key=t?v.C0.ESC+"[1;"+(t+1)+"Q":v.C0.ESC+"OQ";break;case 114:i.key=t?v.C0.ESC+"[1;"+(t+1)+"R":v.C0.ESC+"OR";break;case 115:i.key=t?v.C0.ESC+"[1;"+(t+1)+"S":v.C0.ESC+"OS";break;case 116:i.key=t?v.C0.ESC+"[15;"+(t+1)+"~":v.C0.ESC+"[15~";break;case 117:i.key=t?v.C0.ESC+"[17;"+(t+1)+"~":v.C0.ESC+"[17~";break;case 118:i.key=t?v.C0.ESC+"[18;"+(t+1)+"~":v.C0.ESC+"[18~";break;case 119:i.key=t?v.C0.ESC+"[19;"+(t+1)+"~":v.C0.ESC+"[19~";break;case 120:i.key=t?v.C0.ESC+"[20;"+(t+1)+"~":v.C0.ESC+"[20~";break;case 121:i.key=t?v.C0.ESC+"[21;"+(t+1)+"~":v.C0.ESC+"[21~";break;case 122:i.key=t?v.C0.ESC+"[23;"+(t+1)+"~":v.C0.ESC+"[23~";break;case 123:i.key=t?v.C0.ESC+"[24;"+(t+1)+"~":v.C0.ESC+"[24~";break;default:if(!p.ctrlKey||p.shiftKey||p.altKey||p.metaKey)if(u&&!s||!p.altKey||p.metaKey)u&&!p.altKey&&!p.ctrlKey&&p.metaKey?p.keyCode===65&&(i.type=1):p.key&&!p.ctrlKey&&!p.altKey&&!p.metaKey&&p.keyCode>=48&&p.key.length===1?i.key=p.key:p.key&&p.ctrlKey&&p.key==="_"&&(i.key=v.C0.US);else{var o=m[p.keyCode],e=o&&o[p.shiftKey?1:0];if(e)i.key=v.C0.ESC+e;else if(p.keyCode>=65&&p.keyCode<=90){var l=p.ctrlKey?p.keyCode-64:p.keyCode+32;i.key=v.C0.ESC+String.fromCharCode(l)}}else p.keyCode>=65&&p.keyCode<=90?i.key=String.fromCharCode(p.keyCode-64):p.keyCode===32?i.key=v.C0.NUL:p.keyCode>=51&&p.keyCode<=55?i.key=String.fromCharCode(p.keyCode-51+27):p.keyCode===56?i.key=v.C0.DEL:p.keyCode===219?i.key=v.C0.ESC:p.keyCode===220?i.key=v.C0.FS:p.keyCode===221&&(i.key=v.C0.GS)}return i}},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(c,h){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,A){g.__proto__=A}||function(g,A){for(var b in A)A.hasOwnProperty(b)&&(g[b]=A[b])})(c,h)},function(a,c){function h(){this.constructor=a}v(a,c),a.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)}),p=this&&this.__decorate||function(a,c,h,g){var A,b=arguments.length,S=b<3?c:g===null?g=Object.getOwnPropertyDescriptor(c,h):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(a,c,h,g);else for(var E=a.length-1;E>=0;E--)(A=a[E])&&(S=(b<3?A(S):b>3?A(c,h,S):A(c,h))||S);return b>3&&S&&Object.defineProperty(c,h,S),S},d=this&&this.__param||function(a,c){return function(h,g){c(h,g,a)}};Object.defineProperty(f,"__esModule",{value:!0}),f.RenderService=void 0;var u=x(31),s=x(0),i=x(2),t=x(32),o=x(7),e=x(1),l=x(5),r=function(a){function c(h,g,A,b,S,E){var C=a.call(this)||this;if(C._renderer=h,C._rowCount=g,C._isPaused=!1,C._needsFullRefresh=!1,C._isNextRenderRedrawOnly=!0,C._needsSelectionRefresh=!1,C._canvasWidth=0,C._canvasHeight=0,C._selectionState={start:void 0,end:void 0,columnSelectMode:!1},C._onDimensionsChange=new s.EventEmitter,C._onRender=new s.EventEmitter,C._onRefreshRequest=new s.EventEmitter,C.register({dispose:function(){return C._renderer.dispose()}}),C._renderDebouncer=new u.RenderDebouncer(function(T,w){return C._renderRows(T,w)}),C.register(C._renderDebouncer),C._screenDprMonitor=new t.ScreenDprMonitor,C._screenDprMonitor.setListener(function(){return C.onDevicePixelRatioChange()}),C.register(C._screenDprMonitor),C.register(E.onResize(function(T){return C._fullRefresh()})),C.register(b.onOptionChange(function(){return C._renderer.onOptionsChanged()})),C.register(S.onCharSizeChange(function(){return C.onCharSizeChanged()})),C._renderer.onRequestRedraw(function(T){return C.refreshRows(T.start,T.end,!0)}),C.register(o.addDisposableDomListener(window,"resize",function(){return C.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var _=new IntersectionObserver(function(T){return C._onIntersectionChange(T[T.length-1])},{threshold:0});_.observe(A),C.register({dispose:function(){return _.disconnect()}})}return C}return m(c,a),Object.defineProperty(c.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),c.prototype._onIntersectionChange=function(h){this._isPaused=h.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},c.prototype.refreshRows=function(h,g,A){A===void 0&&(A=!1),this._isPaused?this._needsFullRefresh=!0:(A||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(h,g,this._rowCount))},c.prototype._renderRows=function(h,g){this._renderer.renderRows(h,g),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:h,end:g}),this._isNextRenderRedrawOnly=!0},c.prototype.resize=function(h,g){this._rowCount=g,this._fireOnCanvasResize()},c.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},c.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},c.prototype.dispose=function(){a.prototype.dispose.call(this)},c.prototype.setRenderer=function(h){var g=this;this._renderer.dispose(),this._renderer=h,this._renderer.onRequestRedraw(function(A){return g.refreshRows(A.start,A.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},c.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},c.prototype.setColors=function(h){this._renderer.setColors(h),this._fullRefresh()},c.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},c.prototype.onResize=function(h,g){this._renderer.onResize(h,g),this._fullRefresh()},c.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},c.prototype.onBlur=function(){this._renderer.onBlur()},c.prototype.onFocus=function(){this._renderer.onFocus()},c.prototype.onSelectionChanged=function(h,g,A){this._selectionState.start=h,this._selectionState.end=g,this._selectionState.columnSelectMode=A,this._renderer.onSelectionChanged(h,g,A)},c.prototype.onCursorMove=function(){this._renderer.onCursorMove()},c.prototype.clear=function(){this._renderer.clear()},c.prototype.registerCharacterJoiner=function(h){return this._renderer.registerCharacterJoiner(h)},c.prototype.deregisterCharacterJoiner=function(h){return this._renderer.deregisterCharacterJoiner(h)},c=p([d(3,e.IOptionsService),d(4,l.ICharSizeService),d(5,e.IBufferService)],c)}(i.Disposable);f.RenderService=r},function(y,f,x){"use strict";var v=this&&this.__decorate||function(i,t,o,e){var l,r=arguments.length,a=r<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,o):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(i,t,o,e);else for(var c=i.length-1;c>=0;c--)(l=i[c])&&(a=(r<3?l(a):r>3?l(t,o,a):l(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},m=this&&this.__param||function(i,t){return function(o,e){t(o,e,i)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CharSizeService=void 0;var p=x(1),d=x(0),u=function(){function i(t,o,e){this._optionsService=e,this.width=0,this.height=0,this._onCharSizeChange=new d.EventEmitter,this._measureStrategy=new s(t,o,this._optionsService)}return Object.defineProperty(i.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),i.prototype.measure=function(){var t=this._measureStrategy.measure();t.width===this.width&&t.height===this.height||(this.width=t.width,this.height=t.height,this._onCharSizeChange.fire())},i=v([m(2,p.IOptionsService)],i)}();f.CharSizeService=u;var s=function(){function i(t,o,e){this._document=t,this._parentElement=o,this._optionsService=e,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return i.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var t=this._measureElement.getBoundingClientRect();return t.width!==0&&t.height!==0&&(this._result.width=t.width,this._result.height=Math.ceil(t.height)),this._result},i}()},function(y,f,x){"use strict";var v=this&&this.__decorate||function(s,i,t,o){var e,l=arguments.length,r=l<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,t):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,i,t,o);else for(var a=s.length-1;a>=0;a--)(e=s[a])&&(r=(l<3?e(r):l>3?e(i,t,r):e(i,t))||r);return l>3&&r&&Object.defineProperty(i,t,r),r},m=this&&this.__param||function(s,i){return function(t,o){i(t,o,s)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseService=void 0;var p=x(5),d=x(30),u=function(){function s(i,t){this._renderService=i,this._charSizeService=t}return s.prototype.getCoords=function(i,t,o,e,l){return d.getCoords(i,t,o,e,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,l)},s.prototype.getRawByteCoords=function(i,t,o,e){var l=this.getCoords(i,t,o,e);return d.getRawByteCoords(l)},s=v([m(0,p.IRenderService),m(1,p.ICharSizeService)],s)}();f.MouseService=u},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(l,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var h in c)c.hasOwnProperty(h)&&(a[h]=c[h])})(l,r)},function(e,l){function r(){this.constructor=e}v(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)}),p=this&&this.__decorate||function(e,l,r,a){var c,h=arguments.length,g=h<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,r):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,a);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(g=(h<3?c(g):h>3?c(l,r,g):c(l,r))||g);return h>3&&g&&Object.defineProperty(l,r,g),g},d=this&&this.__param||function(e,l){return function(r,a){l(r,a,e)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Linkifier2=void 0;var u=x(1),s=x(0),i=x(2),t=x(7),o=function(e){function l(r){var a=e.call(this)||this;return a._bufferService=r,a._linkProviders=[],a._linkCacheDisposables=[],a._isMouseOut=!0,a._activeLine=-1,a._onShowLinkUnderline=a.register(new s.EventEmitter),a._onHideLinkUnderline=a.register(new s.EventEmitter),a.register(i.getDisposeArrayDisposable(a._linkCacheDisposables)),a}return m(l,e),Object.defineProperty(l.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),l.prototype.registerLinkProvider=function(r){var a=this;return this._linkProviders.push(r),{dispose:function(){var h=a._linkProviders.indexOf(r);h!==-1&&a._linkProviders.splice(h,1)}}},l.prototype.attachToDom=function(r,a,c){var h=this;this._element=r,this._mouseService=a,this._renderService=c,this.register(t.addDisposableDomListener(this._element,"mouseleave",function(){h._isMouseOut=!0,h._clearCurrentLink()})),this.register(t.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(t.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},l.prototype._onMouseMove=function(r){if(this._lastMouseEvent=r,this._element&&this._mouseService){var a=this._positionFromMouseEvent(r,this._element,this._mouseService);if(a){this._isMouseOut=!1;for(var c=r.composedPath(),h=0;h<c.length;h++){var g=c[h];if(g.classList.contains("xterm"))break;if(g.classList.contains("xterm-hover"))return}this._lastBufferCell&&a.x===this._lastBufferCell.x&&a.y===this._lastBufferCell.y||(this._onHover(a),this._lastBufferCell=a)}}},l.prototype._onHover=function(r){if(this._activeLine!==r.y)return this._clearCurrentLink(),void this._askForLink(r,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,r)||(this._clearCurrentLink(),this._askForLink(r,!0))},l.prototype._askForLink=function(r,a){var c=this;this._activeProviderReplies&&a||(this._activeProviderReplies=new Map,this._activeLine=r.y);var h=!1;this._linkProviders.forEach(function(g,A){var b;a?((b=c._activeProviderReplies)===null||b===void 0?void 0:b.get(A))&&(h=c._checkLinkProviderResult(A,r,h)):g.provideLinks(r.y,function(S){var E,C;if(!c._isMouseOut){var _=S==null?void 0:S.map(function(T){return{link:T}});(E=c._activeProviderReplies)===null||E===void 0||E.set(A,_),h=c._checkLinkProviderResult(A,r,h),((C=c._activeProviderReplies)===null||C===void 0?void 0:C.size)===c._linkProviders.length&&c._removeIntersectingLinks(r.y,c._activeProviderReplies)}})})},l.prototype._removeIntersectingLinks=function(r,a){for(var c=new Set,h=0;h<a.size;h++){var g=a.get(h);if(g)for(var A=0;A<g.length;A++)for(var b=g[A],S=b.link.range.start.y<r?0:b.link.range.start.x,E=b.link.range.end.y>r?this._bufferService.cols:b.link.range.end.x,C=S;C<=E;C++){if(c.has(C)){g.splice(A--,1);break}c.add(C)}}},l.prototype._checkLinkProviderResult=function(r,a,c){var h,g=this;if(!this._activeProviderReplies)return c;for(var A=this._activeProviderReplies.get(r),b=!1,S=0;S<r;S++)this._activeProviderReplies.has(S)&&!this._activeProviderReplies.get(S)||(b=!0);if(!b&&A){var E=A.find(function(_){return g._linkAtPosition(_.link,a)});E&&(c=!0,this._handleNewLink(E))}if(this._activeProviderReplies.size===this._linkProviders.length&&!c)for(S=0;S<this._activeProviderReplies.size;S++){var C=(h=this._activeProviderReplies.get(S))===null||h===void 0?void 0:h.find(function(_){return g._linkAtPosition(_.link,a)});if(C){c=!0,this._handleNewLink(C);break}}return c},l.prototype._onClick=function(r){if(this._element&&this._mouseService&&this._currentLink){var a=this._positionFromMouseEvent(r,this._element,this._mouseService);a&&this._linkAtPosition(this._currentLink.link,a)&&this._currentLink.link.activate(r,this._currentLink.link.text)}},l.prototype._clearCurrentLink=function(r,a){this._element&&this._currentLink&&this._lastMouseEvent&&(!r||!a||this._currentLink.link.range.start.y>=r&&this._currentLink.link.range.end.y<=a)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,i.disposeArray(this._linkCacheDisposables))},l.prototype._handleNewLink=function(r){var a=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var c=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);c&&this._linkAtPosition(r.link,c)&&(this._currentLink=r,this._currentLink.state={decorations:{underline:r.link.decorations===void 0||r.link.decorations.underline,pointerCursor:r.link.decorations===void 0||r.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,r.link,this._lastMouseEvent),r.link.decorations={},Object.defineProperties(r.link.decorations,{pointerCursor:{get:function(){var g,A;return(A=(g=a._currentLink)===null||g===void 0?void 0:g.state)===null||A===void 0?void 0:A.decorations.pointerCursor},set:function(g){var A,b;((A=a._currentLink)===null||A===void 0?void 0:A.state)&&a._currentLink.state.decorations.pointerCursor!==g&&(a._currentLink.state.decorations.pointerCursor=g,a._currentLink.state.isHovered&&((b=a._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",g)))}},underline:{get:function(){var g,A;return(A=(g=a._currentLink)===null||g===void 0?void 0:g.state)===null||A===void 0?void 0:A.decorations.underline},set:function(g){var A,b,S;((A=a._currentLink)===null||A===void 0?void 0:A.state)&&((S=(b=a._currentLink)===null||b===void 0?void 0:b.state)===null||S===void 0?void 0:S.decorations.underline)!==g&&(a._currentLink.state.decorations.underline=g,a._currentLink.state.isHovered&&a._fireUnderlineEvent(r.link,g))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(h){var g=h.start===0?0:h.start+1+a._bufferService.buffer.ydisp;a._clearCurrentLink(g,h.end+1+a._bufferService.buffer.ydisp)})))}},l.prototype._linkHover=function(r,a,c){var h;((h=this._currentLink)===null||h===void 0?void 0:h.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(a,!0),this._currentLink.state.decorations.pointerCursor&&r.classList.add("xterm-cursor-pointer")),a.hover&&a.hover(c,a.text)},l.prototype._fireUnderlineEvent=function(r,a){var c=r.range,h=this._bufferService.buffer.ydisp,g=this._createLinkUnderlineEvent(c.start.x-1,c.start.y-h-1,c.end.x,c.end.y-h-1,void 0);(a?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(g)},l.prototype._linkLeave=function(r,a,c){var h;((h=this._currentLink)===null||h===void 0?void 0:h.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(a,!1),this._currentLink.state.decorations.pointerCursor&&r.classList.remove("xterm-cursor-pointer")),a.leave&&a.leave(c,a.text)},l.prototype._linkAtPosition=function(r,a){var c=r.range.start.y===r.range.end.y,h=r.range.start.y<a.y,g=r.range.end.y>a.y;return(c&&r.range.start.x<=a.x&&r.range.end.x>=a.x||h&&r.range.end.x>=a.x||g&&r.range.start.x<=a.x||h&&g)&&r.range.start.y<=a.y&&r.range.end.y>=a.y},l.prototype._positionFromMouseEvent=function(r,a,c){var h=c.getCoords(r,a,this._bufferService.cols,this._bufferService.rows);if(h)return{x:h[0],y:h[1]+this._bufferService.buffer.ydisp}},l.prototype._createLinkUnderlineEvent=function(r,a,c,h,g){return{x1:r,y1:a,x2:c,y2:h,cols:this._bufferService.cols,fg:g}},l=p([d(0,u.IBufferService)],l)}(i.Disposable);f.Linkifier2=o},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CoreBrowserService=void 0;var v=function(){function m(p){this._textarea=p}return Object.defineProperty(m.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),m}();f.CoreBrowserService=v},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(E,C){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,T){_.__proto__=T}||function(_,T){for(var w in T)T.hasOwnProperty(w)&&(_[w]=T[w])})(E,C)},function(S,E){function C(){this.constructor=S}v(S,E),S.prototype=E===null?Object.create(E):(C.prototype=E.prototype,new C)});Object.defineProperty(f,"__esModule",{value:!0}),f.CoreTerminal=void 0;var p=x(2),d=x(1),u=x(66),s=x(67),i=x(68),t=x(74),o=x(75),e=x(0),l=x(76),r=x(77),a=x(78),c=x(80),h=x(81),g=x(19),A=x(82),b=function(S){function E(C){var _=S.call(this)||this;return _._onBinary=new e.EventEmitter,_._onData=new e.EventEmitter,_._onLineFeed=new e.EventEmitter,_._onResize=new e.EventEmitter,_._onScroll=new e.EventEmitter,_._instantiationService=new u.InstantiationService,_.optionsService=new t.OptionsService(C),_._instantiationService.setService(d.IOptionsService,_.optionsService),_._bufferService=_.register(_._instantiationService.createInstance(i.BufferService)),_._instantiationService.setService(d.IBufferService,_._bufferService),_._logService=_._instantiationService.createInstance(s.LogService),_._instantiationService.setService(d.ILogService,_._logService),_._coreService=_.register(_._instantiationService.createInstance(o.CoreService,function(){return _.scrollToBottom()})),_._instantiationService.setService(d.ICoreService,_._coreService),_._coreMouseService=_._instantiationService.createInstance(l.CoreMouseService),_._instantiationService.setService(d.ICoreMouseService,_._coreMouseService),_._dirtyRowService=_._instantiationService.createInstance(r.DirtyRowService),_._instantiationService.setService(d.IDirtyRowService,_._dirtyRowService),_.unicodeService=_._instantiationService.createInstance(a.UnicodeService),_._instantiationService.setService(d.IUnicodeService,_.unicodeService),_._charsetService=_._instantiationService.createInstance(c.CharsetService),_._instantiationService.setService(d.ICharsetService,_._charsetService),_._inputHandler=new g.InputHandler(_._bufferService,_._charsetService,_._coreService,_._dirtyRowService,_._logService,_.optionsService,_._coreMouseService,_.unicodeService),_.register(e.forwardEvent(_._inputHandler.onLineFeed,_._onLineFeed)),_.register(_._inputHandler),_.register(e.forwardEvent(_._bufferService.onResize,_._onResize)),_.register(e.forwardEvent(_._coreService.onData,_._onData)),_.register(e.forwardEvent(_._coreService.onBinary,_._onBinary)),_.register(_.optionsService.onOptionChange(function(T){return _._updateOptions(T)})),_._writeBuffer=new A.WriteBuffer(function(T){return _._inputHandler.parse(T)}),_}return m(E,S),Object.defineProperty(E.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){var C;this._isDisposed||(S.prototype.dispose.call(this),(C=this._windowsMode)===null||C===void 0||C.dispose(),this._windowsMode=void 0)},E.prototype.write=function(C,_){this._writeBuffer.write(C,_)},E.prototype.writeSync=function(C){this._writeBuffer.writeSync(C)},E.prototype.resize=function(C,_){isNaN(C)||isNaN(_)||(C=Math.max(C,i.MINIMUM_COLS),_=Math.max(_,i.MINIMUM_ROWS),this._bufferService.resize(C,_))},E.prototype.scroll=function(C,_){_===void 0&&(_=!1);var T,w=this._bufferService.buffer;(T=this._cachedBlankLine)&&T.length===this.cols&&T.getFg(0)===C.fg&&T.getBg(0)===C.bg||(T=w.getBlankLine(C,_),this._cachedBlankLine=T),T.isWrapped=_;var O=w.ybase+w.scrollTop,I=w.ybase+w.scrollBottom;if(w.scrollTop===0){var k=w.lines.isFull;I===w.lines.length-1?k?w.lines.recycle().copyFrom(T):w.lines.push(T.clone()):w.lines.splice(I+1,0,T.clone()),k?this._bufferService.isUserScrolling&&(w.ydisp=Math.max(w.ydisp-1,0)):(w.ybase++,this._bufferService.isUserScrolling||w.ydisp++)}else{var M=I-O+1;w.lines.shiftElements(O+1,M-1,-1),w.lines.set(I,T.clone())}this._bufferService.isUserScrolling||(w.ydisp=w.ybase),this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom),this._onScroll.fire(w.ydisp)},E.prototype.scrollLines=function(C,_){var T=this._bufferService.buffer;if(C<0){if(T.ydisp===0)return;this._bufferService.isUserScrolling=!0}else C+T.ydisp>=T.ybase&&(this._bufferService.isUserScrolling=!1);var w=T.ydisp;T.ydisp=Math.max(Math.min(T.ydisp+C,T.ybase),0),w!==T.ydisp&&(_||this._onScroll.fire(T.ydisp))},E.prototype.scrollPages=function(C){this.scrollLines(C*(this.rows-1))},E.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},E.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},E.prototype.scrollToLine=function(C){var _=C-this._bufferService.buffer.ydisp;_!==0&&this.scrollLines(_)},E.prototype.addEscHandler=function(C,_){return this._inputHandler.addEscHandler(C,_)},E.prototype.addDcsHandler=function(C,_){return this._inputHandler.addDcsHandler(C,_)},E.prototype.addCsiHandler=function(C,_){return this._inputHandler.addCsiHandler(C,_)},E.prototype.addOscHandler=function(C,_){return this._inputHandler.addOscHandler(C,_)},E.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},E.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},E.prototype._updateOptions=function(C){var _;switch(C){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((_=this._windowsMode)===null||_===void 0||_.dispose(),this._windowsMode=void 0)}},E.prototype._enableWindowsMode=function(){var C=this;if(!this._windowsMode){var _=[];_.push(this.onLineFeed(h.updateWindowsModeWrappedState.bind(null,this._bufferService))),_.push(this.addCsiHandler({final:"H"},function(){return h.updateWindowsModeWrappedState(C._bufferService),!1})),this._windowsMode={dispose:function(){for(var w=0,O=_;w<O.length;w++)O[w].dispose()}}}},E}(p.Disposable);f.CoreTerminal=b},function(y,f,x){"use strict";var v=this&&this.__spreadArrays||function(){for(var s=0,i=0,t=arguments.length;i<t;i++)s+=arguments[i].length;var o=Array(s),e=0;for(i=0;i<t;i++)for(var l=arguments[i],r=0,a=l.length;r<a;r++,e++)o[e]=l[r];return o};Object.defineProperty(f,"__esModule",{value:!0}),f.InstantiationService=f.ServiceCollection=void 0;var m=x(1),p=x(14),d=function(){function s(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];this._entries=new Map;for(var o=0,e=i;o<e.length;o++){var l=e[o],r=l[0],a=l[1];this.set(r,a)}}return s.prototype.set=function(i,t){var o=this._entries.get(i);return this._entries.set(i,t),o},s.prototype.forEach=function(i){this._entries.forEach(function(t,o){return i(o,t)})},s.prototype.has=function(i){return this._entries.has(i)},s.prototype.get=function(i){return this._entries.get(i)},s}();f.ServiceCollection=d;var u=function(){function s(){this._services=new d,this._services.set(m.IInstantiationService,this)}return s.prototype.setService=function(i,t){this._services.set(i,t)},s.prototype.getService=function(i){return this._services.get(i)},s.prototype.createInstance=function(i){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];for(var e=p.getServiceDependencies(i).sort(function(A,b){return A.index-b.index}),l=[],r=0,a=e;r<a.length;r++){var c=a[r],h=this._services.get(c.id);if(!h)throw new Error("[createInstance] "+i.name+" depends on UNKNOWN service "+c.id+".");l.push(h)}var g=e.length>0?e[0].index:t.length;if(t.length!==g)throw new Error("[createInstance] First service dependency of "+i.name+" at position "+(g+1)+" conflicts with "+t.length+" static arguments");return new(i.bind.apply(i,v([void 0],v(t,l))))},s}();f.InstantiationService=u},function(y,f,x){"use strict";var v=this&&this.__decorate||function(t,o,e,l){var r,a=arguments.length,c=a<3?o:l===null?l=Object.getOwnPropertyDescriptor(o,e):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(t,o,e,l);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(c=(a<3?r(c):a>3?r(o,e,c):r(o,e))||c);return a>3&&c&&Object.defineProperty(o,e,c),c},m=this&&this.__param||function(t,o){return function(e,l){o(e,l,t)}},p=this&&this.__spreadArrays||function(){for(var t=0,o=0,e=arguments.length;o<e;o++)t+=arguments[o].length;var l=Array(t),r=0;for(o=0;o<e;o++)for(var a=arguments[o],c=0,h=a.length;c<h;c++,r++)l[r]=a[c];return l};Object.defineProperty(f,"__esModule",{value:!0}),f.LogService=f.LogLevel=void 0;var d,u=x(1);!function(t){t[t.DEBUG=0]="DEBUG",t[t.INFO=1]="INFO",t[t.WARN=2]="WARN",t[t.ERROR=3]="ERROR",t[t.OFF=4]="OFF"}(d=f.LogLevel||(f.LogLevel={}));var s={debug:d.DEBUG,info:d.INFO,warn:d.WARN,error:d.ERROR,off:d.OFF},i=function(){function t(o){var e=this;this._optionsService=o,this._updateLogLevel(),this._optionsService.onOptionChange(function(l){l==="logLevel"&&e._updateLogLevel()})}return t.prototype._updateLogLevel=function(){this._logLevel=s[this._optionsService.options.logLevel]},t.prototype._evalLazyOptionalParams=function(o){for(var e=0;e<o.length;e++)typeof o[e]=="function"&&(o[e]=o[e]())},t.prototype._log=function(o,e,l){this._evalLazyOptionalParams(l),o.call.apply(o,p([console,"xterm.js: "+e],l))},t.prototype.debug=function(o){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=d.DEBUG&&this._log(console.log,o,e)},t.prototype.info=function(o){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=d.INFO&&this._log(console.info,o,e)},t.prototype.warn=function(o){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=d.WARN&&this._log(console.warn,o,e)},t.prototype.error=function(o){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=d.ERROR&&this._log(console.error,o,e)},t=v([m(0,u.IOptionsService)],t)}();f.LogService=i},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(l,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var h in c)c.hasOwnProperty(h)&&(a[h]=c[h])})(l,r)},function(e,l){function r(){this.constructor=e}v(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)}),p=this&&this.__decorate||function(e,l,r,a){var c,h=arguments.length,g=h<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,r):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,a);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(g=(h<3?c(g):h>3?c(l,r,g):c(l,r))||g);return h>3&&g&&Object.defineProperty(l,r,g),g},d=this&&this.__param||function(e,l){return function(r,a){l(r,a,e)}};Object.defineProperty(f,"__esModule",{value:!0}),f.BufferService=f.MINIMUM_ROWS=f.MINIMUM_COLS=void 0;var u=x(1),s=x(69),i=x(0),t=x(2);f.MINIMUM_COLS=2,f.MINIMUM_ROWS=1;var o=function(e){function l(r){var a=e.call(this)||this;return a._optionsService=r,a.isUserScrolling=!1,a._onResize=new i.EventEmitter,a.cols=Math.max(r.options.cols,f.MINIMUM_COLS),a.rows=Math.max(r.options.rows,f.MINIMUM_ROWS),a.buffers=new s.BufferSet(r,a),a}return m(l,e),Object.defineProperty(l.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),l.prototype.dispose=function(){e.prototype.dispose.call(this),this.buffers.dispose()},l.prototype.resize=function(r,a){this.cols=r,this.rows=a,this.buffers.resize(r,a),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:r,rows:a})},l.prototype.reset=function(){this.buffers.dispose(),this.buffers=new s.BufferSet(this._optionsService,this),this.isUserScrolling=!1},l=p([d(0,u.IOptionsService)],l)}(t.Disposable);f.BufferService=o},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(i,t){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var l in e)e.hasOwnProperty(l)&&(o[l]=e[l])})(i,t)},function(s,i){function t(){this.constructor=s}v(s,i),s.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)});Object.defineProperty(f,"__esModule",{value:!0}),f.BufferSet=void 0;var p=x(70),d=x(0),u=function(s){function i(t,o){var e=s.call(this)||this;return e._onBufferActivate=e.register(new d.EventEmitter),e._normal=new p.Buffer(!0,t,o),e._normal.fillViewportRows(),e._alt=new p.Buffer(!1,t,o),e._activeBuffer=e._normal,e.setupTabStops(),e}return m(i,s),Object.defineProperty(i.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),i.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},i.prototype.activateAltBuffer=function(t){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(t),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},i.prototype.resize=function(t,o){this._normal.resize(t,o),this._alt.resize(t,o)},i.prototype.setupTabStops=function(t){this._normal.setupTabStops(t),this._alt.setupTabStops(t)},i}(x(2).Disposable);f.BufferSet=u},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BufferStringIterator=f.Buffer=f.MAX_BUFFER_SIZE=void 0;var v=x(71),m=x(16),p=x(4),d=x(3),u=x(72),s=x(73),i=x(20),t=x(6);f.MAX_BUFFER_SIZE=4294967295;var o=function(){function l(r,a,c){this._hasScrollback=r,this._optionsService=a,this._bufferService=c,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=m.DEFAULT_ATTR_DATA.clone(),this.savedCharset=i.DEFAULT_CHARSET,this.markers=[],this._nullCell=p.CellData.fromCharData([0,d.NULL_CELL_CHAR,d.NULL_CELL_WIDTH,d.NULL_CELL_CODE]),this._whitespaceCell=p.CellData.fromCharData([0,d.WHITESPACE_CELL_CHAR,d.WHITESPACE_CELL_WIDTH,d.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new v.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return l.prototype.getNullCell=function(r){return r?(this._nullCell.fg=r.fg,this._nullCell.bg=r.bg,this._nullCell.extended=r.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new t.ExtendedAttrs),this._nullCell},l.prototype.getWhitespaceCell=function(r){return r?(this._whitespaceCell.fg=r.fg,this._whitespaceCell.bg=r.bg,this._whitespaceCell.extended=r.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new t.ExtendedAttrs),this._whitespaceCell},l.prototype.getBlankLine=function(r,a){return new m.BufferLine(this._bufferService.cols,this.getNullCell(r),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(r){if(!this._hasScrollback)return r;var a=r+this._optionsService.options.scrollback;return a>f.MAX_BUFFER_SIZE?f.MAX_BUFFER_SIZE:a},l.prototype.fillViewportRows=function(r){if(this.lines.length===0){r===void 0&&(r=m.DEFAULT_ATTR_DATA);for(var a=this._rows;a--;)this.lines.push(this.getBlankLine(r))}},l.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new v.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},l.prototype.resize=function(r,a){var c=this.getNullCell(m.DEFAULT_ATTR_DATA),h=this._getCorrectBufferLength(a);if(h>this.lines.maxLength&&(this.lines.maxLength=h),this.lines.length>0){if(this._cols<r)for(var g=0;g<this.lines.length;g++)this.lines.get(g).resize(r,c);var A=0;if(this._rows<a)for(var b=this._rows;b<a;b++)this.lines.length<a+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new m.BufferLine(r,c)):this.ybase>0&&this.lines.length<=this.ybase+this.y+A+1?(this.ybase--,A++,this.ydisp>0&&this.ydisp--):this.lines.push(new m.BufferLine(r,c)));else for(b=this._rows;b>a;b--)this.lines.length>a+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(h<this.lines.maxLength){var S=this.lines.length-h;S>0&&(this.lines.trimStart(S),this.ybase=Math.max(this.ybase-S,0),this.ydisp=Math.max(this.ydisp-S,0),this.savedY=Math.max(this.savedY-S,0)),this.lines.maxLength=h}this.x=Math.min(this.x,r-1),this.y=Math.min(this.y,a-1),A&&(this.y+=A),this.savedX=Math.min(this.savedX,r-1),this.scrollTop=0}if(this.scrollBottom=a-1,this._isReflowEnabled&&(this._reflow(r,a),this._cols>r))for(g=0;g<this.lines.length;g++)this.lines.get(g).resize(r,c);this._cols=r,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(r,a){this._cols!==r&&(r>this._cols?this._reflowLarger(r,a):this._reflowSmaller(r,a))},l.prototype._reflowLarger=function(r,a){var c=u.reflowLargerGetLinesToRemove(this.lines,this._cols,r,this.ybase+this.y,this.getNullCell(m.DEFAULT_ATTR_DATA));if(c.length>0){var h=u.reflowLargerCreateNewLayout(this.lines,c);u.reflowLargerApplyNewLayout(this.lines,h.layout),this._reflowLargerAdjustViewport(r,a,h.countRemoved)}},l.prototype._reflowLargerAdjustViewport=function(r,a,c){for(var h=this.getNullCell(m.DEFAULT_ATTR_DATA),g=c;g-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<a&&this.lines.push(new m.BufferLine(r,h))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-c,0)},l.prototype._reflowSmaller=function(r,a){for(var c=this.getNullCell(m.DEFAULT_ATTR_DATA),h=[],g=0,A=this.lines.length-1;A>=0;A--){var b=this.lines.get(A);if(!(!b||!b.isWrapped&&b.getTrimmedLength()<=r)){for(var S=[b];b.isWrapped&&A>0;)b=this.lines.get(--A),S.unshift(b);var E=this.ybase+this.y;if(!(E>=A&&E<A+S.length)){var C=S[S.length-1].getTrimmedLength(),_=u.reflowSmallerGetNewLineLengths(S,this._cols,r),T=_.length-S.length,w=void 0;w=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+T):Math.max(0,this.lines.length-this.lines.maxLength+T);for(var O=[],I=0;I<T;I++){var k=this.getBlankLine(m.DEFAULT_ATTR_DATA,!0);O.push(k)}O.length>0&&(h.push({start:A+S.length+g,newLines:O}),g+=O.length),S.push.apply(S,O);var M=_.length-1,j=_[M];j===0&&(j=_[--M]);for(var P=S.length-T-1,X=C;P>=0;){var F=Math.min(X,j);if(S[M].copyCellsFrom(S[P],X-F,j-F,F,!0),(j-=F)===0&&(j=_[--M]),(X-=F)===0){P--;var U=Math.max(P,0);X=u.getWrappedLineTrimmedLength(S,U,this._cols)}}for(I=0;I<S.length;I++)_[I]<r&&S[I].setCell(_[I],c);for(var K=T-w;K-- >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+g)-a&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+T,this.ybase+a-1)}}}if(h.length>0){var z=[],V=[];for(I=0;I<this.lines.length;I++)V.push(this.lines.get(I));var Q=this.lines.length,G=Q-1,te=0,q=h[te];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+g);var se=0;for(I=Math.min(this.lines.maxLength-1,Q+g-1);I>=0;I--)if(q&&q.start>G+se){for(var re=q.newLines.length-1;re>=0;re--)this.lines.set(I--,q.newLines[re]);I++,z.push({index:G+1,amount:q.newLines.length}),se+=q.newLines.length,q=h[++te]}else this.lines.set(I,V[G--]);var xe=0;for(I=z.length-1;I>=0;I--)z[I].index+=xe,this.lines.onInsertEmitter.fire(z[I]),xe+=z[I].amount;var Oe=Math.max(0,Q+g-this.lines.maxLength);Oe>0&&this.lines.onTrimEmitter.fire(Oe)}},l.prototype.stringIndexToBufferIndex=function(r,a,c){for(c===void 0&&(c=!1);a;){var h=this.lines.get(r);if(!h)return[-1,-1];for(var g=c?h.getTrimmedLength():h.length,A=0;A<g;++A)if(h.get(A)[d.CHAR_DATA_WIDTH_INDEX]&&(a-=h.get(A)[d.CHAR_DATA_CHAR_INDEX].length||1),a<0)return[r,A];r++}return[r,0]},l.prototype.translateBufferLineToString=function(r,a,c,h){c===void 0&&(c=0);var g=this.lines.get(r);return g?g.translateToString(a,c,h):""},l.prototype.getWrappedRangeForLine=function(r){for(var a=r,c=r;a>0&&this.lines.get(a).isWrapped;)a--;for(;c+1<this.lines.length&&this.lines.get(c+1).isWrapped;)c++;return{first:a,last:c}},l.prototype.setupTabStops=function(r){for(r!=null?this.tabs[r]||(r=this.prevStop(r)):(this.tabs={},r=0);r<this._cols;r+=this._optionsService.options.tabStopWidth)this.tabs[r]=!0},l.prototype.prevStop=function(r){for(r==null&&(r=this.x);!this.tabs[--r]&&r>0;);return r>=this._cols?this._cols-1:r<0?0:r},l.prototype.nextStop=function(r){for(r==null&&(r=this.x);!this.tabs[++r]&&r<this._cols;);return r>=this._cols?this._cols-1:r<0?0:r},l.prototype.addMarker=function(r){var a=this,c=new s.Marker(r);return this.markers.push(c),c.register(this.lines.onTrim(function(h){c.line-=h,c.line<0&&c.dispose()})),c.register(this.lines.onInsert(function(h){c.line>=h.index&&(c.line+=h.amount)})),c.register(this.lines.onDelete(function(h){c.line>=h.index&&c.line<h.index+h.amount&&c.dispose(),c.line>h.index&&(c.line-=h.amount)})),c.register(c.onDispose(function(){return a._removeMarker(c)})),c},l.prototype._removeMarker=function(r){this.markers.splice(this.markers.indexOf(r),1)},l.prototype.iterator=function(r,a,c,h,g){return new e(this,r,a,c,h,g)},l}();f.Buffer=o;var e=function(){function l(r,a,c,h,g,A){c===void 0&&(c=0),h===void 0&&(h=r.lines.length),g===void 0&&(g=0),A===void 0&&(A=0),this._buffer=r,this._trimRight=a,this._startIndex=c,this._endIndex=h,this._startOverscan=g,this._endOverscan=A,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return l.prototype.hasNext=function(){return this._current<this._endIndex},l.prototype.next=function(){var r=this._buffer.getWrappedRangeForLine(this._current);r.first<this._startIndex-this._startOverscan&&(r.first=this._startIndex-this._startOverscan),r.last>this._endIndex+this._endOverscan&&(r.last=this._endIndex+this._endOverscan),r.first=Math.max(r.first,0),r.last=Math.min(r.last,this._buffer.lines.length);for(var a="",c=r.first;c<=r.last;++c)a+=this._buffer.translateBufferLineToString(c,this._trimRight);return this._current=r.last+1,{range:r,content:a}},l}();f.BufferStringIterator=e},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CircularList=void 0;var v=x(0),m=function(){function p(d){this._maxLength=d,this.onDeleteEmitter=new v.EventEmitter,this.onInsertEmitter=new v.EventEmitter,this.onTrimEmitter=new v.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(p.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"maxLength",{get:function(){return this._maxLength},set:function(u){if(this._maxLength!==u){for(var s=new Array(u),i=0;i<Math.min(u,this.length);i++)s[i]=this._array[this._getCyclicIndex(i)];this._array=s,this._maxLength=u,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"length",{get:function(){return this._length},set:function(u){if(u>this._length)for(var s=this._length;s<u;s++)this._array[s]=void 0;this._length=u},enumerable:!1,configurable:!0}),p.prototype.get=function(d){return this._array[this._getCyclicIndex(d)]},p.prototype.set=function(d,u){this._array[this._getCyclicIndex(d)]=u},p.prototype.push=function(d){this._array[this._getCyclicIndex(this._length)]=d,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},p.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(p.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),p.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},p.prototype.splice=function(d,u){for(var s=[],i=2;i<arguments.length;i++)s[i-2]=arguments[i];if(u){for(var t=d;t<this._length-u;t++)this._array[this._getCyclicIndex(t)]=this._array[this._getCyclicIndex(t+u)];this._length-=u}for(t=this._length-1;t>=d;t--)this._array[this._getCyclicIndex(t+s.length)]=this._array[this._getCyclicIndex(t)];for(t=0;t<s.length;t++)this._array[this._getCyclicIndex(d+t)]=s[t];if(this._length+s.length>this._maxLength){var o=this._length+s.length-this._maxLength;this._startIndex+=o,this._length=this._maxLength,this.onTrimEmitter.fire(o)}else this._length+=s.length},p.prototype.trimStart=function(d){d>this._length&&(d=this._length),this._startIndex+=d,this._length-=d,this.onTrimEmitter.fire(d)},p.prototype.shiftElements=function(d,u,s){if(!(u<=0)){if(d<0||d>=this._length)throw new Error("start argument out of range");if(d+s<0)throw new Error("Cannot shift elements in list beyond index 0");if(s>0){for(var i=u-1;i>=0;i--)this.set(d+i+s,this.get(d+i));var t=d+u+s-this._length;if(t>0)for(this._length+=t;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(i=0;i<u;i++)this.set(d+i+s,this.get(d+i))}},p.prototype._getCyclicIndex=function(d){return(this._startIndex+d)%this._maxLength},p}();f.CircularList=m},function(y,f,x){"use strict";function v(m,p,d){if(p===m.length-1)return m[p].getTrimmedLength();var u=!m[p].hasContent(d-1)&&m[p].getWidth(d-1)===1,s=m[p+1].getWidth(0)===2;return u&&s?d-1:d}Object.defineProperty(f,"__esModule",{value:!0}),f.getWrappedLineTrimmedLength=f.reflowSmallerGetNewLineLengths=f.reflowLargerApplyNewLayout=f.reflowLargerCreateNewLayout=f.reflowLargerGetLinesToRemove=void 0,f.reflowLargerGetLinesToRemove=function(m,p,d,u,s){for(var i=[],t=0;t<m.length-1;t++){var o=t,e=m.get(++o);if(e.isWrapped){for(var l=[m.get(t)];o<m.length&&e.isWrapped;)l.push(e),e=m.get(++o);if(u>=t&&u<o)t+=l.length-1;else{for(var r=0,a=v(l,r,p),c=1,h=0;c<l.length;){var g=v(l,c,p),A=g-h,b=d-a,S=Math.min(A,b);l[r].copyCellsFrom(l[c],h,a,S,!1),(a+=S)===d&&(r++,a=0),(h+=S)===g&&(c++,h=0),a===0&&r!==0&&l[r-1].getWidth(d-1)===2&&(l[r].copyCellsFrom(l[r-1],d-1,a++,1,!1),l[r-1].setCell(d-1,s))}l[r].replaceCells(a,d,s);for(var E=0,C=l.length-1;C>0&&(C>r||l[C].getTrimmedLength()===0);C--)E++;E>0&&(i.push(t+l.length-E),i.push(E)),t+=l.length-1}}}return i},f.reflowLargerCreateNewLayout=function(m,p){for(var d=[],u=0,s=p[u],i=0,t=0;t<m.length;t++)if(s===t){var o=p[++u];m.onDeleteEmitter.fire({index:t-i,amount:o}),t+=o-1,i+=o,s=p[++u]}else d.push(t);return{layout:d,countRemoved:i}},f.reflowLargerApplyNewLayout=function(m,p){for(var d=[],u=0;u<p.length;u++)d.push(m.get(p[u]));for(u=0;u<d.length;u++)m.set(u,d[u]);m.length=p.length},f.reflowSmallerGetNewLineLengths=function(m,p,d){for(var u=[],s=m.map(function(a,c){return v(m,c,p)}).reduce(function(a,c){return a+c}),i=0,t=0,o=0;o<s;){if(s-o<d){u.push(s-o);break}i+=d;var e=v(m,t,p);i>e&&(i-=e,t++);var l=m[t].getWidth(i-1)===2;l&&i--;var r=l?d-1:d;u.push(r),o+=r}return u},f.getWrappedLineTrimmedLength=v},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(s,i){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e])})(s,i)},function(u,s){function i(){this.constructor=u}v(u,s),u.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)});Object.defineProperty(f,"__esModule",{value:!0}),f.Marker=void 0;var p=x(0),d=function(u){function s(i){var t=u.call(this)||this;return t.line=i,t._id=s._nextId++,t.isDisposed=!1,t._onDispose=new p.EventEmitter,t}return m(s,u),Object.defineProperty(s.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),s.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},s._nextId=1,s}(x(2).Disposable);f.Marker=d},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.OptionsService=f.DEFAULT_OPTIONS=f.DEFAULT_BELL_SOUND=void 0;var v=x(0),m=x(11),p=x(33);f.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",f.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:f.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:m.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var d=["cols","rows"],u=function(){function s(i){this._onOptionChange=new v.EventEmitter,this.options=p.clone(f.DEFAULT_OPTIONS);for(var t=0,o=Object.keys(i);t<o.length;t++){var e=o[t];if(e in this.options){var l=i[e];this.options[e]=l}}}return Object.defineProperty(s.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),s.prototype.setOption=function(i,t){if(!(i in f.DEFAULT_OPTIONS))throw new Error('No option with key "'+i+'"');if(d.indexOf(i)!==-1)throw new Error('Option "'+i+'" can only be set in the constructor');this.options[i]!==t&&(t=this._sanitizeAndValidateOption(i,t),this.options[i]!==t&&(this.options[i]=t,this._onOptionChange.fire(i)))},s.prototype._sanitizeAndValidateOption=function(i,t){switch(i){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":t||(t=f.DEFAULT_OPTIONS[i]);break;case"cursorWidth":t=Math.floor(t);case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(i+" cannot be less than 1, value: "+t);break;case"minimumContrastRatio":t=Math.max(1,Math.min(21,Math.round(10*t)/10));break;case"scrollback":if((t=Math.min(t,4294967295))<0)throw new Error(i+" cannot be less than 0, value: "+t);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(i+" cannot be less than or equal to 0, value: "+t)}return t},s.prototype.getOption=function(i){if(!(i in f.DEFAULT_OPTIONS))throw new Error('No option with key "'+i+'"');return this.options[i]},s}();f.OptionsService=u},function(y,f,x){"use strict";var v,m=this&&this.__extends||(v=function(a,c){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var A in g)g.hasOwnProperty(A)&&(h[A]=g[A])})(a,c)},function(r,a){function c(){this.constructor=r}v(r,a),r.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}),p=this&&this.__decorate||function(r,a,c,h){var g,A=arguments.length,b=A<3?a:h===null?h=Object.getOwnPropertyDescriptor(a,c):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(r,a,c,h);else for(var S=r.length-1;S>=0;S--)(g=r[S])&&(b=(A<3?g(b):A>3?g(a,c,b):g(a,c))||b);return A>3&&b&&Object.defineProperty(a,c,b),b},d=this&&this.__param||function(r,a){return function(c,h){a(c,h,r)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CoreService=void 0;var u=x(1),s=x(0),i=x(33),t=x(2),o=Object.freeze({insertMode:!1}),e=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),l=function(r){function a(c,h,g,A){var b=r.call(this)||this;return b._bufferService=h,b._logService=g,b._optionsService=A,b.isCursorInitialized=!1,b.isCursorHidden=!1,b._onData=b.register(new s.EventEmitter),b._onUserInput=b.register(new s.EventEmitter),b._onBinary=b.register(new s.EventEmitter),b._scrollToBottom=c,b.register({dispose:function(){return b._scrollToBottom=void 0}}),b.modes=i.clone(o),b.decPrivateModes=i.clone(e),b}return m(a,r),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=i.clone(o),this.decPrivateModes=i.clone(e)},a.prototype.triggerDataEvent=function(c,h){if(h===void 0&&(h=!1),!this._optionsService.options.disableStdin){var g=this._bufferService.buffer;g.ybase!==g.ydisp&&this._scrollToBottom(),h&&this._onUserInput.fire(),this._logService.debug('sending data "'+c+'"',function(){return c.split("").map(function(A){return A.charCodeAt(0)})}),this._onData.fire(c)}},a.prototype.triggerBinaryEvent=function(c){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+c+'"',function(){return c.split("").map(function(h){return h.charCodeAt(0)})}),this._onBinary.fire(c))},a=p([d(1,u.IBufferService),d(2,u.ILogService),d(3,u.IOptionsService)],a)}(t.Disposable);f.CoreService=l},function(y,f,x){"use strict";var v=this&&this.__decorate||function(e,l,r,a){var c,h=arguments.length,g=h<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,r):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,a);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(g=(h<3?c(g):h>3?c(l,r,g):c(l,r))||g);return h>3&&g&&Object.defineProperty(l,r,g),g},m=this&&this.__param||function(e,l){return function(r,a){l(r,a,e)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CoreMouseService=void 0;var p=x(1),d=x(0),u={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(l){return l.button!==4&&l.action===1&&(l.ctrl=!1,l.alt=!1,l.shift=!1,!0)}},VT200:{events:19,restrict:function(l){return l.action!==32}},DRAG:{events:23,restrict:function(l){return l.action!==32||l.button!==3}},ANY:{events:31,restrict:function(l){return!0}}};function s(e,l){var r=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(r|=64,r|=e.action):(r|=3&e.button,4&e.button&&(r|=64),8&e.button&&(r|=128),e.action===32?r|=32:e.action!==0||l||(r|=3)),r}var i=String.fromCharCode,t={DEFAULT:function(l){var r=[s(l,!1)+32,l.col+32,l.row+32];return r[0]>255||r[1]>255||r[2]>255?"":"[M"+i(r[0])+i(r[1])+i(r[2])},SGR:function(l){var r=l.action===0&&l.button!==4?"m":"M";return"[<"+s(l,!0)+";"+l.col+";"+l.row+r}},o=function(){function e(l,r){this._bufferService=l,this._coreService=r,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new d.EventEmitter,this._lastEvent=null;for(var a=0,c=Object.keys(u);a<c.length;a++){var h=c[a];this.addProtocol(h,u[h])}for(var g=0,A=Object.keys(t);g<A.length;g++){var b=A[g];this.addEncoding(b,t[b])}this.reset()}return e.prototype.addProtocol=function(l,r){this._protocols[l]=r},e.prototype.addEncoding=function(l,r){this._encodings[l]=r},Object.defineProperty(e.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(r){if(!this._protocols[r])throw new Error('unknown protocol "'+r+'"');this._activeProtocol=r,this._onProtocolChange.fire(this._protocols[r].events)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(r){if(!this._encodings[r])throw new Error('unknown encoding "'+r+'"');this._activeEncoding=r},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(e.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),e.prototype.triggerMouseEvent=function(l){if(l.col<0||l.col>=this._bufferService.cols||l.row<0||l.row>=this._bufferService.rows)return!1;if(l.button===4&&l.action===32)return!1;if(l.button===3&&l.action!==32)return!1;if(l.button!==4&&(l.action===2||l.action===3))return!1;if(l.col++,l.row++,l.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,l))return!1;if(!this._protocols[this._activeProtocol].restrict(l))return!1;var r=this._encodings[this._activeEncoding](l);return r&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(r):this._coreService.triggerDataEvent(r,!0)),this._lastEvent=l,!0},e.prototype.explainEvents=function(l){return{down:!!(1&l),up:!!(2&l),drag:!!(4&l),move:!!(8&l),wheel:!!(16&l)}},e.prototype._compareEvents=function(l,r){return l.col===r.col&&l.row===r.row&&l.button===r.button&&l.action===r.action&&l.ctrl===r.ctrl&&l.alt===r.alt&&l.shift===r.shift},e=v([m(0,p.IBufferService),m(1,p.ICoreService)],e)}();f.CoreMouseService=o},function(y,f,x){"use strict";var v=this&&this.__decorate||function(u,s,i,t){var o,e=arguments.length,l=e<3?s:t===null?t=Object.getOwnPropertyDescriptor(s,i):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(u,s,i,t);else for(var r=u.length-1;r>=0;r--)(o=u[r])&&(l=(e<3?o(l):e>3?o(s,i,l):o(s,i))||l);return e>3&&l&&Object.defineProperty(s,i,l),l},m=this&&this.__param||function(u,s){return function(i,t){s(i,t,u)}};Object.defineProperty(f,"__esModule",{value:!0}),f.DirtyRowService=void 0;var p=x(1),d=function(){function u(s){this._bufferService=s,this.clearRange()}return Object.defineProperty(u.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),u.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},u.prototype.markDirty=function(s){s<this._start?this._start=s:s>this._end&&(this._end=s)},u.prototype.markRangeDirty=function(s,i){if(s>i){var t=s;s=i,i=t}s<this._start&&(this._start=s),i>this._end&&(this._end=i)},u.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},u=v([m(0,p.IBufferService)],u)}();f.DirtyRowService=d},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.UnicodeService=void 0;var v=x(0),m=x(79),p=function(){function d(){this._providers=Object.create(null),this._active="",this._onChange=new v.EventEmitter;var u=new m.UnicodeV6;this.register(u),this._active=u.version,this._activeProvider=u}return Object.defineProperty(d.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"activeVersion",{get:function(){return this._active},set:function(s){if(!this._providers[s])throw new Error('unknown Unicode version "'+s+'"');this._active=s,this._activeProvider=this._providers[s],this._onChange.fire(s)},enumerable:!1,configurable:!0}),d.prototype.register=function(u){this._providers[u.version]=u},d.prototype.wcwidth=function(u){return this._activeProvider.wcwidth(u)},d.prototype.getStringCellWidth=function(u){for(var s=0,i=u.length,t=0;t<i;++t){var o=u.charCodeAt(t);if(55296<=o&&o<=56319){if(++t>=i)return s+this.wcwidth(o);var e=u.charCodeAt(t);56320<=e&&e<=57343?o=1024*(o-55296)+e-56320+65536:s+=this.wcwidth(e)}s+=this.wcwidth(o)}return s},d}();f.UnicodeService=p},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.UnicodeV6=void 0;var v,m=x(15),p=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],d=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],u=function(){function s(){if(this.version="6",!v){v=new Uint8Array(65536),m.fill(v,1),v[0]=0,m.fill(v,0,1,32),m.fill(v,0,127,160),m.fill(v,2,4352,4448),v[9001]=2,v[9002]=2,m.fill(v,2,11904,42192),v[12351]=1,m.fill(v,2,44032,55204),m.fill(v,2,63744,64256),m.fill(v,2,65040,65050),m.fill(v,2,65072,65136),m.fill(v,2,65280,65377),m.fill(v,2,65504,65511);for(var i=0;i<p.length;++i)m.fill(v,0,p[i][0],p[i][1]+1)}}return s.prototype.wcwidth=function(i){return i<32?0:i<127?1:i<65536?v[i]:function(t,o){var e,l=0,r=o.length-1;if(t<o[0][0]||t>o[r][1])return!1;for(;r>=l;)if(t>o[e=l+r>>1][1])l=e+1;else{if(!(t<o[e][0]))return!0;r=e-1}return!1}(i,d)?0:i>=131072&&i<=196605||i>=196608&&i<=262141?2:1},s}();f.UnicodeV6=u},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CharsetService=void 0;var v=function(){function m(){this.glevel=0,this._charsets=[]}return m.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},m.prototype.setgLevel=function(p){this.glevel=p,this.charset=this._charsets[p]},m.prototype.setgCharset=function(p,d){this._charsets[p]=d,this.glevel===p&&(this.charset=d)},m}();f.CharsetService=v},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.updateWindowsModeWrappedState=void 0;var v=x(3);f.updateWindowsModeWrappedState=function(m){var p=m.buffer.lines.get(m.buffer.ybase+m.buffer.y-1),d=p==null?void 0:p.get(m.cols-1),u=m.buffer.lines.get(m.buffer.ybase+m.buffer.y);u&&d&&(u.isWrapped=d[v.CHAR_DATA_CODE_INDEX]!==v.NULL_CELL_CODE&&d[v.CHAR_DATA_CODE_INDEX]!==v.WHITESPACE_CELL_CODE)}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.WriteBuffer=void 0;var v=function(){function m(p){this._action=p,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return m.prototype.writeSync=function(p){if(this._writeBuffer.length){for(var d=this._bufferOffset;d<this._writeBuffer.length;++d){var u=this._writeBuffer[d],s=this._callbacks[d];this._action(u),s&&s()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(p)},m.prototype.write=function(p,d){var u=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return u._innerWrite()})),this._pendingData+=p.length,this._writeBuffer.push(p),this._callbacks.push(d)},m.prototype._innerWrite=function(){for(var p=this,d=Date.now();this._writeBuffer.length>this._bufferOffset;){var u=this._writeBuffer[this._bufferOffset],s=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(u),this._pendingData-=u.length,s&&s(),Date.now()-d>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return p._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},m}();f.WriteBuffer=v},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.AddonManager=void 0;var v=function(){function m(){this._addons=[]}return m.prototype.dispose=function(){for(var p=this._addons.length-1;p>=0;p--)this._addons[p].instance.dispose()},m.prototype.loadAddon=function(p,d){var u=this,s={instance:d,dispose:d.dispose,isDisposed:!1};this._addons.push(s),d.dispose=function(){return u._wrappedAddonDispose(s)},d.activate(p)},m.prototype._wrappedAddonDispose=function(p){if(!p.isDisposed){for(var d=-1,u=0;u<this._addons.length;u++)if(this._addons[u]===p){d=u;break}if(d===-1)throw new Error("Could not dispose an addon that has not been loaded");p.isDisposed=!0,p.dispose.apply(p.instance),this._addons.splice(d,1)}},m}();f.AddonManager=v}])})},"/SeX":function(R,D,n){var y=n("knOB"),f=n("qZFw"),x=function(m){this.name=m||"",this.cx=0,this.cy=0,this._radiusAxis=new y,this._angleAxis=new f,this._radiusAxis.polar=this._angleAxis.polar=this};x.prototype={type:"polar",axisPointerEnabled:!0,constructor:x,dimensions:["radius","angle"],model:null,containPoint:function(m){var p=this.pointToCoord(m);return this._radiusAxis.contain(p[0])&&this._angleAxis.contain(p[1])},containData:function(m){return this._radiusAxis.containData(m[0])&&this._angleAxis.containData(m[1])},getAxis:function(m){return this["_"+m+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(m){var p=[],d=this._angleAxis,u=this._radiusAxis;return d.scale.type===m&&p.push(d),u.scale.type===m&&p.push(u),p},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(m){var p=this._angleAxis;return m===p?this._radiusAxis:p},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(m){var p=m!=null&&m!=="auto"?this.getAxis(m):this.getBaseAxis();return{baseAxes:[p],otherAxes:[this.getOtherAxis(p)]}},dataToPoint:function(m,p){return this.coordToPoint([this._radiusAxis.dataToRadius(m[0],p),this._angleAxis.dataToAngle(m[1],p)])},pointToData:function(m,p){var d=this.pointToCoord(m);return[this._radiusAxis.radiusToData(d[0],p),this._angleAxis.angleToData(d[1],p)]},pointToCoord:function(m){var p=m[0]-this.cx,d=m[1]-this.cy,u=this.getAngleAxis(),s=u.getExtent(),i=Math.min(s[0],s[1]),t=Math.max(s[0],s[1]);u.inverse?i=t-360:t=i+360;var o=Math.sqrt(p*p+d*d);p/=o,d/=o;for(var e=Math.atan2(-d,p)/Math.PI*180,l=e<i?1:-1;e<i||e>t;)e+=l*360;return[o,e]},coordToPoint:function(m){var p=m[0],d=m[1]/180*Math.PI,u=Math.cos(d)*p+this.cx,s=-Math.sin(d)*p+this.cy;return[u,s]},getArea:function(){var m=this.getAngleAxis(),p=this.getRadiusAxis(),d=p.getExtent().slice();d[0]>d[1]&&d.reverse();var u=m.getExtent(),s=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:d[0],r:d[1],startAngle:-u[0]*s,endAngle:-u[1]*s,clockwise:m.inverse,contain:function(i,t){var o=i-this.cx,e=t-this.cy,l=o*o+e*e,r=this.r,a=this.r0;return l<=r*r&&l>=a*a}}}};var v=x;R.exports=v},"/WM3":function(R,D,n){var y=n("QuXc"),f=n("bYtY"),x=f.isFunction,v={createOnAllSeries:!0,performRawSeries:!0,reset:function(m,p){var d=m.getData(),u=(m.visualColorAccessPath||"itemStyle.color").split("."),s=m.get(u),i=x(s)&&!(s instanceof y)?s:null;(!s||i)&&(s=m.getColorFromPalette(m.name,null,p.getSeriesCount())),d.setVisual("color",s);var t=(m.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),o=m.get(t);if(d.setVisual("borderColor",o),!p.isSeriesFiltered(m)){i&&d.each(function(l){d.setItemVisual(l,"color",i(m.getDataParams(l)))});var e=function(l,r){var a=l.getItemModel(r),c=a.get(u,!0),h=a.get(t,!0);c!=null&&l.setItemVisual(r,"color",c),h!=null&&l.setItemVisual(r,"borderColor",h)};return{dataEach:d.hasItemOption?e:null}}}};R.exports=v},"/d5a":function(R,D){var n={average:function(x){for(var v=0,m=0,p=0;p<x.length;p++)isNaN(x[p])||(v+=x[p],m++);return m===0?NaN:v/m},sum:function(x){for(var v=0,m=0;m<x.length;m++)v+=x[m]||0;return v},max:function(x){for(var v=-Infinity,m=0;m<x.length;m++)x[m]>v&&(v=x[m]);return isFinite(v)?v:NaN},min:function(x){for(var v=Infinity,m=0;m<x.length;m++)x[m]<v&&(v=x[m]);return isFinite(v)?v:NaN},nearest:function(x){return x[0]}},y=function(x,v){return Math.round(x.length/2)};function f(x){return{seriesType:x,modifyOutputEnd:!0,reset:function(v,m,p){var d=v.getData(),u=v.get("sampling"),s=v.coordinateSystem;if(s.type==="cartesian2d"&&u){var i=s.getBaseAxis(),t=s.getOtherAxis(i),o=i.getExtent(),e=o[1]-o[0],l=Math.round(d.count()/e);if(l>1){var r;typeof u=="string"?r=n[u]:typeof u=="function"&&(r=u),r&&v.setData(d.downSample(d.mapDimension(t.dim),1/l,r,y))}}}}}R.exports=f},"/ezw":function(R,D,n){"use strict";var y=n("lSNA"),f=n.n(y),x=n("pVnL"),v=n.n(x),m=n("cDf5"),p=n.n(m),d=n("q1tI"),u=n("TSYQ"),s=n.n(u),i=function(K){var z=K.prefixCls,V=K.className,Q=K.width,G=K.style;return d.createElement("h3",{className:s()(z,V),style:v()({width:Q},G)})},t=i,o=n("RIqP"),e=n.n(o),l=function(K){var z=function(re){var xe=K.width,Oe=K.rows,Me=Oe===void 0?2:Oe;return Array.isArray(xe)?xe[re]:Me-1===re?xe:void 0},V=K.prefixCls,Q=K.className,G=K.style,te=K.rows,q=e()(Array(te)).map(function(se,re){return d.createElement("li",{key:re,style:{width:z(re)}})});return d.createElement("ul",{className:s()(V,Q),style:G},q)},r=l,a=n("H84U"),c=function(K){var z,V,Q=K.prefixCls,G=K.className,te=K.style,q=K.size,se=K.shape,re=s()((z={},f()(z,"".concat(Q,"-lg"),q==="large"),f()(z,"".concat(Q,"-sm"),q==="small"),z)),xe=s()((V={},f()(V,"".concat(Q,"-circle"),se==="circle"),f()(V,"".concat(Q,"-square"),se==="square"),f()(V,"".concat(Q,"-round"),se==="round"),V)),Oe=typeof q=="number"?{width:q,height:q,lineHeight:"".concat(q,"px")}:{};return d.createElement("span",{className:s()(Q,G,re,xe),style:v()(v()({},Oe),te)})},h=c,g=n("BGR+"),A=function(K){var z=function(Q){var G=Q.getPrefixCls,te=K.prefixCls,q=K.className,se=K.active,re=G("skeleton",te),xe=Object(g.default)(K,["prefixCls"]),Oe=s()(re,q,"".concat(re,"-element"),f()({},"".concat(re,"-active"),se));return d.createElement("div",{className:Oe},d.createElement(h,v()({prefixCls:"".concat(re,"-avatar")},xe)))};return d.createElement(a.a,null,z)};A.defaultProps={size:"default",shape:"circle"};var b=A,S=function(K){var z=function(Q){var G=Q.getPrefixCls,te=K.prefixCls,q=K.className,se=K.active,re=G("skeleton",te),xe=Object(g.default)(K,["prefixCls"]),Oe=s()(re,q,"".concat(re,"-element"),f()({},"".concat(re,"-active"),se));return d.createElement("div",{className:Oe},d.createElement(h,v()({prefixCls:"".concat(re,"-button")},xe)))};return d.createElement(a.a,null,z)};S.defaultProps={size:"default"};var E=S,C=function(K){var z=function(Q){var G=Q.getPrefixCls,te=K.prefixCls,q=K.className,se=K.active,re=G("skeleton",te),xe=Object(g.default)(K,["prefixCls"]),Oe=s()(re,q,"".concat(re,"-element"),f()({},"".concat(re,"-active"),se));return d.createElement("div",{className:Oe},d.createElement(h,v()({prefixCls:"".concat(re,"-input")},xe)))};return d.createElement(a.a,null,z)};C.defaultProps={size:"default"};var _=C,T="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",w=function(K){var z=function(Q){var G=Q.getPrefixCls,te=K.prefixCls,q=K.className,se=K.style,re=G("skeleton",te),xe=s()(re,q,"".concat(re,"-element"));return d.createElement("div",{className:xe},d.createElement("div",{className:s()("".concat(re,"-image"),q),style:se},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(re,"-image-svg")},d.createElement("path",{d:T,className:"".concat(re,"-image-path")}))))};return d.createElement(a.a,null,z)},O=w;function I(U){return U&&p()(U)==="object"?U:{}}function k(U,K){return U&&!K?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function M(U,K){return!U&&K?{width:"38%"}:U&&K?{width:"50%"}:{}}function j(U,K){var z={};return(!U||!K)&&(z.width="61%"),!U&&K?z.rows=3:z.rows=2,z}var P=function(K){var z=function(Q){var G=Q.getPrefixCls,te=Q.direction,q=K.prefixCls,se=K.loading,re=K.className,xe=K.children,Oe=K.avatar,Me=K.title,Qe=K.paragraph,Ve=K.active,ut=K.round,Fe=G("skeleton",q);if(se||!("loading"in K)){var ue,et=!!Oe,he=!!Me,J=!!Qe,Y;if(et){var $=v()(v()({prefixCls:"".concat(Fe,"-avatar")},k(he,J)),I(Oe));Y=d.createElement("div",{className:"".concat(Fe,"-header")},d.createElement(h,$))}var de;if(he||J){var be;if(he){var Ce=v()(v()({prefixCls:"".concat(Fe,"-title")},M(et,J)),I(Me));be=d.createElement(t,Ce)}var Be;if(J){var fe=v()(v()({prefixCls:"".concat(Fe,"-paragraph")},j(et,he)),I(Qe));Be=d.createElement(r,fe)}de=d.createElement("div",{className:"".concat(Fe,"-content")},be,Be)}var we=s()(Fe,re,(ue={},f()(ue,"".concat(Fe,"-with-avatar"),et),f()(ue,"".concat(Fe,"-active"),Ve),f()(ue,"".concat(Fe,"-rtl"),te==="rtl"),f()(ue,"".concat(Fe,"-round"),ut),ue));return d.createElement("div",{className:we},Y,de)}return xe};return d.createElement(a.a,null,z)};P.defaultProps={avatar:!1,title:!0,paragraph:!0},P.Button=E,P.Avatar=b,P.Input=_,P.Image=O;var X=P,F=D.a=X},"/iHx":function(R,D,n){var y=n("6GrX"),f=n("IwbS"),x=["textStyle","color"],v={getTextColor:function(m){var p=this.ecModel;return this.getShallow("color")||(!m&&p?p.get(x):null)},getFont:function(){return f.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(m){return y.getBoundingRect(m,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};R.exports=v},"/qDX":function(R,D,n){},"/ry/":function(R,D,n){var y=n("bYtY"),f=n("T4UG"),x=n("5GhG"),v=x.seriesModelMixin,m=f.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});y.mixin(m,v,!0);var p=m;R.exports=p},"/stD":function(R,D,n){var y=n("bYtY"),f=n("IUWy"),x=n("Kagy"),v=x.toolbox.brush;function m(u,s,i){this.model=u,this.ecModel=s,this.api=i,this._brushType,this._brushMode}m.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:y.clone(v.title)};var p=m.prototype;p.render=p.updateView=function(u,s,i){var t,o,e;s.eachComponent({mainType:"brush"},function(l){t=l.brushType,o=l.brushOption.brushMode||"single",e|=l.areas.length}),this._brushType=t,this._brushMode=o,y.each(u.get("type",!0),function(l){u.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?e:l===t)?"emphasis":"normal")})},p.getIcons=function(){var u=this.model,s=u.get("icon",!0),i={};return y.each(u.get("type",!0),function(t){s[t]&&(i[t]=s[t])}),i},p.onclick=function(u,s,i){var t=this._brushType,o=this._brushMode;i==="clear"?(s.dispatchAction({type:"axisAreaSelect",intervals:[]}),s.dispatchAction({type:"brush",command:"clear",areas:[]})):s.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?t:t===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},f.register("brush",m);var d=m;R.exports=d},"/thR":function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("YCuv")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="EnterOutlined";var i=v.forwardRef(s);D.default=i},"/wGt":function(R,D,n){"use strict";var y=n("lSNA"),f=n.n(y),x=n("pVnL"),v=n.n(x),m=n("lwsE"),p=n.n(m),d=n("W8MJ"),u=n.n(d),s=n("PJYZ"),i=n.n(s),t=n("7W2i"),o=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),a=n("Ff2n"),c=n("1OyB"),h=n("vuIU"),g=n("Ji7U"),A=n("md7G"),b=n("foSv"),S=n("1W/9"),E=n("rePB"),C=n("JX7q"),_=n("TSYQ"),T=n.n(_),w=n("qx4F"),O=n("4IlW");function I(be){return Array.isArray(be)?be:[be]}var k={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},M=Object.keys(k).filter(function(be){if(typeof document=="undefined")return!1;var Ce=document.getElementsByTagName("html")[0];return be in(Ce?Ce.style:{})})[0],j=k[M];function P(be,Ce,Be,fe){be.addEventListener?be.addEventListener(Ce,Be,fe):be.attachEvent&&be.attachEvent("on".concat(Ce),Be)}function X(be,Ce,Be,fe){be.removeEventListener?be.removeEventListener(Ce,Be,fe):be.attachEvent&&be.detachEvent("on".concat(Ce),Be)}function F(be,Ce){var Be=typeof be=="function"?be(Ce):be;return Array.isArray(Be)?Be.length===2?Be:[Be[0],Be[1]]:[Be]}var U=function(Ce){return!isNaN(parseFloat(Ce))&&isFinite(Ce)},K=!(typeof window!="undefined"&&window.document&&window.document.createElement),z=function be(Ce,Be,fe,we){if(!Be||Be===document||Be instanceof Document)return!1;if(Be===Ce.parentNode)return!0;var Re=Math.max(Math.abs(fe),Math.abs(we))===Math.abs(we),rt=Math.max(Math.abs(fe),Math.abs(we))===Math.abs(fe),St=Be.scrollHeight-Be.clientHeight,ft=Be.scrollWidth-Be.clientWidth,He=document.defaultView.getComputedStyle(Be),er=He.overflowY==="auto"||He.overflowY==="scroll",ct=He.overflowX==="auto"||He.overflowX==="scroll",Kt=St&&er,fr=ft&&ct;return Re&&(!Kt||Kt&&(Be.scrollTop>=St&&we<0||Be.scrollTop<=0&&we>0))||rt&&(!fr||fr&&(Be.scrollLeft>=ft&&fe<0||Be.scrollLeft<=0&&fe>0))?be(Ce,Be.parentNode,fe,we):!1};function V(be){var Ce=Q();return function(){var fe=Object(b.a)(be),we;if(Ce){var Re=Object(b.a)(this).constructor;we=Reflect.construct(fe,arguments,Re)}else we=fe.apply(this,arguments);return Object(A.a)(this,we)}}function Q(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(be){return!1}}var G={},te=function(be){Object(g.a)(Be,be);var Ce=V(Be);function Be(fe){var we;return Object(c.a)(this,Be),we=Ce.call(this,fe),we.domFocus=function(){we.dom&&we.dom.focus()},we.removeStartHandler=function(Re){if(Re.touches.length>1)return;we.startPos={x:Re.touches[0].clientX,y:Re.touches[0].clientY}},we.removeMoveHandler=function(Re){if(Re.changedTouches.length>1)return;var rt=Re.currentTarget,St=Re.changedTouches[0].clientX-we.startPos.x,ft=Re.changedTouches[0].clientY-we.startPos.y;(rt===we.maskDom||rt===we.handlerDom||rt===we.contentDom&&z(rt,Re.target,St,ft))&&Re.cancelable&&Re.preventDefault()},we.transitionEnd=function(Re){var rt=Re.target;X(rt,j,we.transitionEnd),rt.style.transition=""},we.onKeyDown=function(Re){if(Re.keyCode===O.a.ESC){var rt=we.props.onClose;Re.stopPropagation(),rt&&rt(Re)}},we.onWrapperTransitionEnd=function(Re){var rt=we.props,St=rt.open,ft=rt.afterVisibleChange;Re.target===we.contentWrapper&&Re.propertyName.match(/transform$/)&&(we.dom.style.transition="",!St&&we.getCurrentDrawerSome()&&(document.body.style.overflowX="",we.maskDom&&(we.maskDom.style.left="",we.maskDom.style.width="")),ft&&ft(!!St))},we.openLevelTransition=function(){var Re=we.props,rt=Re.open,St=Re.width,ft=Re.height,He=we.getHorizontalBoolAndPlacementName(),er=He.isHorizontal,ct=He.placementName,Kt=we.contentDom?we.contentDom.getBoundingClientRect()[er?"width":"height"]:0,fr=(er?St:ft)||Kt;we.setLevelAndScrolling(rt,ct,fr)},we.setLevelTransform=function(Re,rt,St,ft){var He=we.props,er=He.placement,ct=He.levelMove,Kt=He.duration,fr=He.ease,Gt=He.showMask;we.levelDom.forEach(function(Pt){Pt.style.transition="transform ".concat(Kt," ").concat(fr),P(Pt,j,we.transitionEnd);var Xt=Re?St:0;if(ct){var Ge=F(ct,{target:Pt,open:Re});Xt=Re?Ge[0]:Ge[1]||0}var pe=typeof Xt=="number"?"".concat(Xt,"px"):Xt,oe=er==="left"||er==="top"?pe:"-".concat(pe);oe=Gt&&er==="right"&&ft?"calc(".concat(oe," + ").concat(ft,"px)"):oe,Pt.style.transform=Xt?"".concat(rt,"(").concat(oe,")"):""})},we.setLevelAndScrolling=function(Re,rt,St){var ft=we.props.onChange;if(!K){var He=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(w.a)(!0):0;we.setLevelTransform(Re,rt,St,He),we.toggleScrollingToDrawerAndBody(He)}ft&&ft(Re)},we.toggleScrollingToDrawerAndBody=function(Re){var rt=we.props,St=rt.getOpenCount,ft=rt.getContainer,He=rt.showMask,er=rt.open,ct=ft&&ft(),Kt=St&&St();if(ct&&ct.parentNode===document.body&&He){var fr=["touchstart"],Gt=[document.body,we.maskDom,we.handlerDom,we.contentDom];er&&document.body.style.overflow!=="hidden"?(Re&&we.addScrollingEffect(Re),Kt===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",Gt.forEach(function(Pt,Xt){if(!Pt)return;P(Pt,fr[Xt]||"touchmove",Xt?we.removeMoveHandler:we.removeStartHandler,we.passive)})):we.getCurrentDrawerSome()&&(Kt||(document.body.style.overflow=""),document.body.style.touchAction="",Re&&we.remScrollingEffect(Re),Gt.forEach(function(Pt,Xt){if(!Pt)return;X(Pt,fr[Xt]||"touchmove",Xt?we.removeMoveHandler:we.removeStartHandler,we.passive)}))}},we.addScrollingEffect=function(Re){var rt=we.props,St=rt.placement,ft=rt.duration,He=rt.ease,er=rt.getOpenCount,ct=rt.switchScrollingEffect,Kt=er&&er();Kt===1&&ct();var fr="width ".concat(ft," ").concat(He),Gt="transform ".concat(ft," ").concat(He);we.dom.style.transition="none";switch(St){case"right":we.dom.style.transform="translateX(-".concat(Re,"px)");break;case"top":case"bottom":we.dom.style.width="calc(100% - ".concat(Re,"px)"),we.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(we.timeout),we.timeout=setTimeout(function(){we.dom&&(we.dom.style.transition="".concat(Gt,",").concat(fr),we.dom.style.width="",we.dom.style.transform="")})},we.remScrollingEffect=function(Re){var rt=we.props,St=rt.placement,ft=rt.duration,He=rt.ease,er=rt.getOpenCount,ct=rt.switchScrollingEffect,Kt=er&&er();Kt||ct(!0),M&&(document.body.style.overflowX="hidden"),we.dom.style.transition="none";var fr,Gt="width ".concat(ft," ").concat(He),Pt="transform ".concat(ft," ").concat(He);switch(St){case"left":{we.dom.style.width="100%",Gt="width 0s ".concat(He," ").concat(ft);break}case"right":{we.dom.style.transform="translateX(".concat(Re,"px)"),we.dom.style.width="100%",Gt="width 0s ".concat(He," ").concat(ft),we.maskDom&&(we.maskDom.style.left="-".concat(Re,"px"),we.maskDom.style.width="calc(100% + ".concat(Re,"px)"));break}case"top":case"bottom":{we.dom.style.width="calc(100% + ".concat(Re,"px)"),we.dom.style.height="100%",we.dom.style.transform="translateZ(0)",fr="height 0s ".concat(He," ").concat(ft);break}default:break}clearTimeout(we.timeout),we.timeout=setTimeout(function(){we.dom&&(we.dom.style.transition="".concat(Pt,",").concat(fr?"".concat(fr,","):"").concat(Gt),we.dom.style.transform="",we.dom.style.width="",we.dom.style.height="")})},we.getCurrentDrawerSome=function(){return!Object.keys(G).some(function(Re){return G[Re]})},we.getLevelDom=function(Re){var rt=Re.level,St=Re.getContainer;if(K)return;var ft=St&&St(),He=ft?ft.parentNode:null;if(we.levelDom=[],rt==="all"){var er=He?Array.prototype.slice.call(He.children):[];er.forEach(function(ct){ct.nodeName!=="SCRIPT"&&ct.nodeName!=="STYLE"&&ct.nodeName!=="LINK"&&ct!==ft&&we.levelDom.push(ct)})}else rt&&I(rt).forEach(function(ct){document.querySelectorAll(ct).forEach(function(Kt){we.levelDom.push(Kt)})})},we.getHorizontalBoolAndPlacementName=function(){var Re=we.props.placement,rt=Re==="left"||Re==="right",St="translate".concat(rt?"X":"Y");return{isHorizontal:rt,placementName:St}},we.state={_self:Object(C.a)(we)},we}return Object(h.a)(Be,[{key:"componentDidMount",value:function(){var we=this;if(!K){var Re=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Re=!0,null}}))}catch(er){}this.passive=Re?{passive:!1}:!1}var rt=this.props,St=rt.open,ft=rt.getContainer,He=ft&&ft();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),St&&(He&&He.parentNode===document.body&&(G[this.drawerId]=St),this.openLevelTransition(),this.forceUpdate(function(){we.domFocus()}))}},{key:"componentDidUpdate",value:function(we){var Re=this.props,rt=Re.open,St=Re.getContainer,ft=St&&St();rt!==we.open&&(rt&&this.domFocus(),ft&&ft.parentNode===document.body&&(G[this.drawerId]=!!rt),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var we=this.props,Re=we.getOpenCount,rt=we.open,St=we.switchScrollingEffect,ft=typeof Re=="function"&&Re();delete G[this.drawerId],rt&&(this.setLevelTransform(!1),document.body.style.touchAction=""),ft||(document.body.style.overflow="",St(!0))}},{key:"render",value:function(){var we,Re=this,rt=this.props,St=rt.className,ft=rt.children,He=rt.style,er=rt.width,ct=rt.height,Kt=rt.defaultOpen,fr=rt.open,Gt=rt.prefixCls,Pt=rt.placement,Xt=rt.level,Ge=rt.levelMove,pe=rt.ease,oe=rt.duration,lt=rt.getContainer,qe=rt.handler,ge=rt.onChange,Ht=rt.afterVisibleChange,vr=rt.showMask,At=rt.maskClosable,ir=rt.maskStyle,lr=rt.onClose,dn=rt.onHandleClick,Ft=rt.keyboard,ur=rt.getOpenCount,Jt=rt.switchScrollingEffect,pt=Object(a.a)(rt,["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"]),at=this.dom?fr:!1,Pr=T()(Gt,(we={},Object(E.a)(we,"".concat(Gt,"-").concat(Pt),!0),Object(E.a)(we,"".concat(Gt,"-open"),at),Object(E.a)(we,St||"",!!St),Object(E.a)(we,"no-mask",!vr),we)),un=this.getHorizontalBoolAndPlacementName(),_n=un.placementName,Xn=Pt==="left"||Pt==="top"?"-100%":"100%",xi=at?"":"".concat(_n,"(").concat(Xn,")"),Pn=qe&&r.cloneElement(qe,{onClick:function($t){qe.props.onClick&&qe.props.onClick(),dn&&dn($t)},ref:function($t){Re.handlerDom=$t}});return r.createElement("div",Object.assign({},pt,{tabIndex:-1,className:Pr,style:He,ref:function($t){Re.dom=$t},onKeyDown:at&&Ft?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),vr&&r.createElement("div",{className:"".concat(Gt,"-mask"),onClick:At?lr:void 0,style:ir,ref:function($t){Re.maskDom=$t}}),r.createElement("div",{className:"".concat(Gt,"-content-wrapper"),style:{transform:xi,msTransform:xi,width:U(er)?"".concat(er,"px"):er,height:U(ct)?"".concat(ct,"px"):ct},ref:function($t){Re.contentWrapper=$t}},r.createElement("div",{className:"".concat(Gt,"-content"),ref:function($t){Re.contentDom=$t},onTouchStart:at&&vr?this.removeStartHandler:void 0,onTouchMove:at&&vr?this.removeMoveHandler:void 0},ft),Pn))}}],[{key:"getDerivedStateFromProps",value:function(we,Re){var rt=Re.prevProps,St=Re._self,ft={prevProps:we};if(rt!==void 0){var He=we.placement,er=we.level;He!==rt.placement&&(St.contentDom=null),er!==rt.level&&St.getLevelDom(we)}return ft}}]),Be}(r.Component);te.defaultProps={switchScrollingEffect:function(){}};var q=te;function se(be){var Ce=re();return function(){var fe=Object(b.a)(be),we;if(Ce){var Re=Object(b.a)(this).constructor;we=Reflect.construct(fe,arguments,Re)}else we=fe.apply(this,arguments);return Object(A.a)(this,we)}}function re(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(be){return!1}}var xe=function(be){Object(g.a)(Be,be);var Ce=se(Be);function Be(fe){var we;Object(c.a)(this,Be),we=Ce.call(this,fe),we.onHandleClick=function(rt){var St=we.props,ft=St.onHandleClick,He=St.open;if(ft&&ft(rt),typeof He=="undefined"){var er=we.state.open;we.setState({open:!er})}},we.onClose=function(rt){var St=we.props,ft=St.onClose,He=St.open;ft&&ft(rt),typeof He=="undefined"&&we.setState({open:!1})};var Re=typeof fe.open!="undefined"?fe.open:!!fe.defaultOpen;return we.state={open:Re},"onMaskClick"in fe&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),we}return Object(h.a)(Be,[{key:"render",value:function(){var we=this,Re=this.props,rt=Re.defaultOpen,St=Re.getContainer,ft=Re.wrapperClassName,He=Re.forceRender,er=Re.handler,ct=Object(a.a)(Re,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),Kt=this.state.open;if(!St)return r.createElement("div",{className:ft,ref:function(Pt){we.dom=Pt}},r.createElement(q,Object.assign({},ct,{open:Kt,handler:er,getContainer:function(){return we.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var fr=!!er||He;return r.createElement(S.a,{visible:Kt,forceRender:fr,getContainer:St,wrapperClassName:ft},function(Gt){var Pt=Gt.visible,Xt=Gt.afterClose,Ge=Object(a.a)(Gt,["visible","afterClose"]);return r.createElement(q,Object.assign({},ct,Ge,{open:Pt!==void 0?Pt:Kt,afterVisibleChange:Xt!==void 0?Xt:ct.afterVisibleChange,handler:er,onClose:we.onClose,onHandleClick:we.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(we,Re){var rt=Re.prevProps,St={prevProps:we};return typeof rt!="undefined"&&we.open!==rt.open&&(St.open=we.open),St}}]),Be}(r.Component);xe.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:r.createElement("div",{className:"drawer-handle"},r.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var Oe=xe,Me=Oe,Qe=n("V/uB"),Ve=n.n(Qe),ut=n("BGR+"),Fe=n("H84U"),ue=n("CWQg"),et=function(be,Ce){var Be={};for(var fe in be)Object.prototype.hasOwnProperty.call(be,fe)&&Ce.indexOf(fe)<0&&(Be[fe]=be[fe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,fe=Object.getOwnPropertySymbols(be);we<fe.length;we++)Ce.indexOf(fe[we])<0&&Object.prototype.propertyIsEnumerable.call(be,fe[we])&&(Be[fe[we]]=be[fe[we]]);return Be},he=r.createContext(null),J=Object(ue.a)("top","right","bottom","left"),Y={distance:180},$=function(be){o()(Be,be);var Ce=l()(Be);function Be(){var fe;return p()(this,Be),fe=Ce.apply(this,arguments),fe.state={push:!1},fe.push=function(){fe.props.push&&fe.setState({push:!0})},fe.pull=function(){fe.props.push&&fe.setState({push:!1})},fe.onDestroyTransitionEnd=function(){var we=fe.getDestroyOnClose();if(!we)return;fe.props.visible||(fe.destroyClose=!0,fe.forceUpdate())},fe.getDestroyOnClose=function(){return fe.props.destroyOnClose&&!fe.props.visible},fe.getPushDistance=function(){var we=fe.props.push,Re;return typeof we=="boolean"?Re=we?Y.distance:0:Re=we.distance,parseFloat(String(Re||0))},fe.getPushTransform=function(we){var Re=fe.getPushDistance();if(we==="left"||we==="right")return"translateX(".concat(we==="left"?Re:-Re,"px)");if(we==="top"||we==="bottom")return"translateY(".concat(we==="top"?Re:-Re,"px)")},fe.getRcDrawerStyle=function(){var we=fe.props,Re=we.zIndex,rt=we.placement,St=we.mask,ft=we.style,He=fe.state.push,er=St?{}:fe.getOffsetStyle();return v()(v()({zIndex:Re,transform:He?fe.getPushTransform(rt):void 0},er),ft)},fe.renderBody=function(){var we=fe.props,Re=we.bodyStyle,rt=we.drawerStyle,St=we.prefixCls,ft=we.visible;if(fe.destroyClose&&!ft)return null;fe.destroyClose=!1;var He={},er=fe.getDestroyOnClose();return er&&(He.opacity=0,He.transition="opacity .3s"),r.createElement("div",{className:"".concat(St,"-wrapper-body"),style:v()(v()({},He),rt),onTransitionEnd:fe.onDestroyTransitionEnd},fe.renderHeader(),r.createElement("div",{className:"".concat(St,"-body"),style:Re},fe.props.children),fe.renderFooter())},fe.renderProvider=function(we){return fe.parentDrawer=we,r.createElement(Fe.a,null,function(Re){var rt=Re.getPopupContainer,St=Re.getPrefixCls,ft=fe.props,He=ft.prefixCls,er=ft.placement,ct=ft.className,Kt=ft.mask,fr=ft.direction,Gt=ft.visible,Pt=et(ft,["prefixCls","placement","className","mask","direction","visible"]),Xt=St("select",He),Ge=T()(ct,f()({"no-mask":!Kt},"".concat(Xt,"-rtl"),fr==="rtl")),pe=Kt?fe.getOffsetStyle():{};return r.createElement(he.Provider,{value:i()(fe)},r.createElement(Me,v()({handler:!1},Object(ut.default)(Pt,["zIndex","style","closable","closeIcon","destroyOnClose","drawerStyle","headerStyle","bodyStyle","footerStyle","footer","locale","title","push","visible","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","pageHeader","autoInsertSpaceInButton","width","height","dropdownMatchSelectWidth","getTargetContainer"]),{getContainer:Pt.getContainer===void 0&&rt?function(){return rt(document.body)}:Pt.getContainer},pe,{prefixCls:Xt,open:Gt,showMask:Kt,placement:er,style:fe.getRcDrawerStyle(),className:Ge}),fe.renderBody()))})},fe}return u()(Be,[{key:"componentDidMount",value:function(){var we=this.props.visible;we&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(we){var Re=this.props.visible;we.visible!==Re&&this.parentDrawer&&(Re?this.parentDrawer.push():this.parentDrawer.pull())}},{key:"componentWillUnmount",value:function(){this.parentDrawer&&(this.parentDrawer.pull(),this.parentDrawer=null)}},{key:"getOffsetStyle",value:function(){var we=this.props,Re=we.placement,rt=we.width,St=we.height,ft=we.visible,He=we.mask;if(!ft&&!He)return{};var er={};return Re==="left"||Re==="right"?er.width=rt:er.height=St,er}},{key:"renderHeader",value:function(){var we=this.props,Re=we.title,rt=we.prefixCls,St=we.closable,ft=we.headerStyle;if(!Re&&!St)return null;var He=Re?"".concat(rt,"-header"):"".concat(rt,"-header-no-title");return r.createElement("div",{className:He,style:ft},Re&&r.createElement("div",{className:"".concat(rt,"-title")},Re),St&&this.renderCloseIcon())}},{key:"renderFooter",value:function(){var we=this.props,Re=we.footer,rt=we.footerStyle,St=we.prefixCls;if(!Re)return null;var ft="".concat(St,"-footer");return r.createElement("div",{className:ft,style:rt},Re)}},{key:"renderCloseIcon",value:function(){var we=this.props,Re=we.closable,rt=we.closeIcon,St=rt===void 0?r.createElement(Ve.a,null):rt,ft=we.prefixCls,He=we.onClose;return Re&&r.createElement("button",{onClick:He,"aria-label":"Close",className:"".concat(ft,"-close"),style:{"--scroll-bar":"".concat(Object(w.a)(),"px")}},St)}},{key:"render",value:function(){return r.createElement(he.Consumer,null,this.renderProvider)}}]),Be}(r.Component);$.defaultProps={width:256,height:256,closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:Y};var de=D.a=Object(Fe.c)({prefixCls:"drawer"})($)},"/y7N":function(R,D,n){var y=n("bYtY"),f=n("IwbS"),x=n("6GrX"),v=n("7aKB"),m=n("Fofx"),p=n("aX7z"),d=n("+rIm");function u(c){var h=c.get("type"),g=c.getModel(h+"Style"),A;return h==="line"?(A=g.getLineStyle(),A.fill=null):h==="shadow"&&(A=g.getAreaStyle(),A.stroke=null),A}function s(c,h,g,A,b){var S=g.get("value"),E=t(S,h.axis,h.ecModel,g.get("seriesDataIndices"),{precision:g.get("label.precision"),formatter:g.get("label.formatter")}),C=g.getModel("label"),_=v.normalizeCssArray(C.get("padding")||0),T=C.getFont(),w=x.getBoundingRect(E,T),O=b.position,I=w.width+_[1]+_[3],k=w.height+_[0]+_[2],M=b.align;M==="right"&&(O[0]-=I),M==="center"&&(O[0]-=I/2);var j=b.verticalAlign;j==="bottom"&&(O[1]-=k),j==="middle"&&(O[1]-=k/2),i(O,I,k,A);var P=C.get("backgroundColor");(!P||P==="auto")&&(P=h.get("axisLine.lineStyle.color")),c.label={shape:{x:0,y:0,width:I,height:k,r:C.get("borderRadius")},position:O.slice(),style:{text:E,textFont:T,textFill:C.getTextColor(),textPosition:"inside",textPadding:_,fill:P,stroke:C.get("borderColor")||"transparent",lineWidth:C.get("borderWidth")||0,shadowBlur:C.get("shadowBlur"),shadowColor:C.get("shadowColor"),shadowOffsetX:C.get("shadowOffsetX"),shadowOffsetY:C.get("shadowOffsetY")},z2:10}}function i(c,h,g,A){var b=A.getWidth(),S=A.getHeight();c[0]=Math.min(c[0]+h,b)-h,c[1]=Math.min(c[1]+g,S)-g,c[0]=Math.max(c[0],0),c[1]=Math.max(c[1],0)}function t(c,h,g,A,b){c=h.scale.parse(c);var S=h.scale.getLabel(c,{precision:b.precision}),E=b.formatter;if(E){var C={value:p.getAxisRawValue(h,c),axisDimension:h.dim,axisIndex:h.index,seriesData:[]};y.each(A,function(_){var T=g.getSeriesByIndex(_.seriesIndex),w=_.dataIndexInside,O=T&&T.getDataParams(w);O&&C.seriesData.push(O)}),y.isString(E)?S=E.replace("{value}",S):y.isFunction(E)&&(S=E(C))}return S}function o(c,h,g){var A=m.create();return m.rotate(A,A,g.rotation),m.translate(A,A,g.position),f.applyTransform([c.dataToCoord(h),(g.labelOffset||0)+(g.labelDirection||1)*(g.labelMargin||0)],A)}function e(c,h,g,A,b,S){var E=d.innerTextLayout(g.rotation,0,g.labelDirection);g.labelMargin=b.get("label.margin"),s(h,A,b,S,{position:o(A.axis,c,g),align:E.textAlign,verticalAlign:E.textVerticalAlign})}function l(c,h,g){return g=g||0,{x1:c[g],y1:c[1-g],x2:h[g],y2:h[1-g]}}function r(c,h,g){return g=g||0,{x:c[g],y:c[1-g],width:h[g],height:h[1-g]}}function a(c,h,g,A,b,S){return{cx:c,cy:h,r0:g,r:A,startAngle:b,endAngle:S,clockwise:!0}}D.buildElStyle=u,D.buildLabelElOption=s,D.getValueLabel=t,D.getTransformedPosition=o,D.buildCartesianSingleLabelElOption=e,D.makeLineShape=l,D.makeRectShape=r,D.makeSectorShape=a},"/zsF":function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("bE4E"),v=n.n(x)},"0/Rx":function(R,D){function n(y){return{seriesType:y,reset:function(f,x){var v=x.findComponents({mainType:"legend"});if(!v||!v.length)return;var m=f.getData();m.filterSelf(function(p){for(var d=m.getName(p),u=0;u<v.length;u++)if(!v[u].isSelected(d))return!1;return!0})}}}R.exports=n},"01d+":function(R,D,n){var y=n("bYtY"),f=y.each,x=n("HF/U"),v=x.simpleLayout,m=x.simpleLayoutEdge;function p(d,u){d.eachSeriesByType("graph",function(s){var i=s.get("layout"),t=s.coordinateSystem;if(t&&t.type!=="view"){var o=s.getData(),e=[];f(t.dimensions,function(g){e=e.concat(o.mapDimension(g,!0))});for(var l=0;l<o.count();l++){for(var r=[],a=!1,c=0;c<e.length;c++){var h=o.get(e[c],l);isNaN(h)||(a=!0),r.push(h)}a?o.setItemLayout(l,t.dataToPoint(r)):o.setItemLayout(l,[NaN,NaN])}m(o.graph)}else(!i||i==="none")&&v(s)})}R.exports=p},"03A+":function(R,D,n){var y=n("JTzB"),f=n("ExA7"),x=Object.prototype,v=x.hasOwnProperty,m=x.propertyIsEnumerable,p=y(function(){return arguments}())?y:function(d){return f(d)&&v.call(d,"callee")&&!m.call(d,"callee")};R.exports=p},"06DH":function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("Kagy"),v=n("IUWy"),m=x.toolbox.magicType,p="__ec_magicType_stack__";function d(o){this.model=o}d.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:f.clone(m.title),option:{},seriesIndex:{}};var u=d.prototype;u.getIcons=function(){var o=this.model,e=o.get("icon"),l={};return f.each(o.get("type"),function(r){e[r]&&(l[r]=e[r])}),l};var s={line:function(o,e,l,r){if(o==="bar")return f.merge({id:e,type:"line",data:l.get("data"),stack:l.get("stack"),markPoint:l.get("markPoint"),markLine:l.get("markLine")},r.get("option.line")||{},!0)},bar:function(o,e,l,r){if(o==="line")return f.merge({id:e,type:"bar",data:l.get("data"),stack:l.get("stack"),markPoint:l.get("markPoint"),markLine:l.get("markLine")},r.get("option.bar")||{},!0)},stack:function(o,e,l,r){var a=l.get("stack")===p;if(o==="line"||o==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),f.merge({id:e,stack:a?"":p},r.get("option.stack")||{},!0)}},i=[["line","bar"],["stack"]];u.onclick=function(o,e,l){var r=this.model,a=r.get("seriesIndex."+l);if(!s[l])return;var c={series:[]},h=function(b){var S=b.subType,E=b.id,C=s[l](S,E,b,r);C&&(f.defaults(C,b.option),c.series.push(C));var _=b.coordinateSystem;if(_&&_.type==="cartesian2d"&&(l==="line"||l==="bar")){var T=_.getAxesByScale("ordinal")[0];if(T){var w=T.dim,O=w+"Axis",I=o.queryComponents({mainType:O,index:b.get(name+"Index"),id:b.get(name+"Id")})[0],k=I.componentIndex;c[O]=c[O]||[];for(var M=0;M<=k;M++)c[O][k]=c[O][k]||{};c[O][k].boundaryGap=l==="bar"}}};f.each(i,function(b){f.indexOf(b,l)>=0&&f.each(b,function(S){r.setIconStatus(S,"normal")})}),r.setIconStatus(l,"emphasis"),o.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},h);var g;if(l==="stack"){var A=c.series&&c.series[0]&&c.series[0].stack===p;g=A?f.merge({stack:m.title.tiled},m.title):f.clone(m.title)}e.dispatchAction({type:"changeMagicType",currentType:l,newOption:c,newTitle:g,featureName:"magicType"})},y.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(o,e){e.mergeOption(o.newOption)}),v.register("magicType",d);var t=d;R.exports=t},"06Qe":function(R,D,n){var y=n("ItGF"),f="urn:schemas-microsoft-com:vml",x=typeof window=="undefined"?null:window,v=!1,m=x&&x.document;function p(s){return d(s)}var d;if(m&&!y.canvasSupported)try{!m.namespaces.zrvml&&m.namespaces.add("zrvml",f),d=function(i){return m.createElement("<zrvml:"+i+' class="zrvml">')}}catch(s){d=function(t){return m.createElement("<"+t+' xmlns="'+f+'" class="zrvml">')}}function u(){if(v||!m)return;v=!0;var s=m.styleSheets;s.length<31?m.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):s[0].addRule(".zrvml","behavior:url(#default#VML)")}D.doc=m,D.createNode=p,D.initVML=u},"09Wf":function(R,D,n){"use strict";n.d(D,"b",function(){return f}),n.d(D,"a",function(){return x});var y=n("CWQg"),f=Object(y.a)("success","processing","error","default","warning"),x=Object(y.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},"0Bwj":function(R,D,n){var y=n("T4UG"),f=n("I3/A"),x=n("7aKB"),v=x.encodeHTML,m=n("Qxkt"),p=n("Tghj"),d=p.__DEV__,u=y.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(i,t){for(var o=i.edges||i.links,e=i.data||i.nodes,l=i.levels,r=this.levelModels={},a=0;a<l.length;a++)l[a].depth!=null&&l[a].depth>=0&&(r[l[a].depth]=new m(l[a],this,t));if(e&&o){var c=f(e,o,this,!0,h);return c.data}function h(g,A){g.wrapMethod("getItemModel",function(b,S){return b.customizeGetParent(function(E){var C=this.parentModel,_=C.getData().getItemLayout(S).depth,T=C.levelModels[_];return T||this.parentModel}),b}),A.wrapMethod("getItemModel",function(b,S){return b.customizeGetParent(function(E){var C=this.parentModel,_=C.getGraph().getEdgeByIndex(S),T=_.node1.getLayout().depth,w=C.levelModels[T];return w||this.parentModel}),b})}},setNodePosition:function(i,t){var o=this.option.data[i];o.localX=t[0],o.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(i,t,o){if(o==="edge"){var e=this.getDataParams(i,o),l=e.data,r=l.source+" -- "+l.target;return e.value&&(r+=" : "+e.value),v(r)}else if(o==="node"){var a=this.getGraph().getNodeByIndex(i),c=a.getLayout().value,h=this.getDataParams(i,o).data.name;if(c)var r=h+" : "+c;return v(r)}return u.superCall(this,"formatTooltip",i,t)},optionUpdated:function(){var i=this.option;i.focusNodeAdjacency===!0&&(i.focusNodeAdjacency="allEdges")},getDataParams:function(i,t){var o=u.superCall(this,"getDataParams",i,t);if(o.value==null&&t==="node"){var e=this.getGraph().getNodeByIndex(i),l=e.getLayout().value;o.value=l}return o},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}}),s=u;R.exports=s},"0Cz8":function(R,D,n){var y=n("Xi7e"),f=n("ebwN"),x=n("e4Nc"),v=200;function m(p,d){var u=this.__data__;if(u instanceof y){var s=u.__data__;if(!f||s.length<v-1)return s.push([p,d]),this.size=++u.size,this;u=this.__data__=new x(s)}return u.set(p,d),this.size=u.size,this}R.exports=m},"0HBW":function(R,D,n){var y=n("ProS"),f=n("bYtY");n("Hxpc"),n("7uqq"),n("dmGj"),n("SehX");function x(v,m){m.update="updateView",y.registerAction(m,function(p,d){var u={};return d.eachComponent({mainType:"geo",query:p},function(s){s[v](p.name);var i=s.coordinateSystem;f.each(i.regions,function(t){u[t.name]=s.isSelected(t.name)||!1})}),{selected:u,name:p.name}})}x("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),x("select",{type:"geoSelect",event:"geoselected"}),x("unSelect",{type:"geoUnSelect",event:"geounselected"})},"0JAE":function(R,D,n){var y=n("bYtY"),f=n("+TT/"),x=n("OELB"),v=n("IDmD"),m=864e5;function p(s,i,t){this._model=s}p.prototype={constructor:p,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(s){s=x.parseDate(s);var i=s.getFullYear(),t=s.getMonth()+1;t=t<10?"0"+t:t;var o=s.getDate();o=o<10?"0"+o:o;var e=s.getDay();return e=Math.abs((e+7-this.getFirstDayOfWeek())%7),{y:i,m:t,d:o,day:e,time:s.getTime(),formatedDate:i+"-"+t+"-"+o,date:s}},getNextNDay:function(s,i){return i=i||0,i===0?this.getDateInfo(s):(s=new Date(this.getDateInfo(s).time),s.setDate(s.getDate()+i),this.getDateInfo(s))},update:function(s,i){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var t=this._rangeInfo.weeks||1,o=["width","height"],e=this._model.get("cellSize").slice(),l=this._model.getBoxLayoutParams(),r=this._orient==="horizontal"?[t,7]:[7,t];y.each([0,1],function(g){h(e,g)&&(l[o[g]]=e[g]*r[g])});var a={width:i.getWidth(),height:i.getHeight()},c=this._rect=f.getLayoutRect(l,a);y.each([0,1],function(g){h(e,g)||(e[g]=c[o[g]]/r[g])});function h(g,A){return g[A]!=null&&g[A]!=="auto"}this._sw=e[0],this._sh=e[1]},dataToPoint:function(s,i){y.isArray(s)&&(s=s[0]),i==null&&(i=!0);var t=this.getDateInfo(s),o=this._rangeInfo,e=t.formatedDate;if(i&&!(t.time>=o.start.time&&t.time<o.end.time+m))return[NaN,NaN];var l=t.day,r=this._getRangeInfo([o.start.time,e]).nthWeek;return this._orient==="vertical"?[this._rect.x+l*this._sw+this._sw/2,this._rect.y+r*this._sh+this._sh/2]:[this._rect.x+r*this._sw+this._sw/2,this._rect.y+l*this._sh+this._sh/2]},pointToData:function(s){var i=this.pointToDate(s);return i&&i.time},dataToRect:function(s,i){var t=this.dataToPoint(s,i);return{contentShape:{x:t[0]-(this._sw-this._lineWidth)/2,y:t[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:t,tl:[t[0]-this._sw/2,t[1]-this._sh/2],tr:[t[0]+this._sw/2,t[1]-this._sh/2],br:[t[0]+this._sw/2,t[1]+this._sh/2],bl:[t[0]-this._sw/2,t[1]+this._sh/2]}},pointToDate:function(s){var i=Math.floor((s[0]-this._rect.x)/this._sw)+1,t=Math.floor((s[1]-this._rect.y)/this._sh)+1,o=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(t,i-1,o):this._getDateByWeeksAndDay(i,t-1,o)},convertToPixel:y.curry(d,"dataToPoint"),convertFromPixel:y.curry(d,"pointToData"),_initRangeOption:function(){var s=this._model.get("range"),i=s;if(y.isArray(i)&&i.length===1&&(i=i[0]),/^\d{4}$/.test(i)&&(s=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)){var t=this.getDateInfo(i),o=t.date;o.setMonth(o.getMonth()+1);var e=this.getNextNDay(o,-1);s=[t.formatedDate,e.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(s=[i,i]);var l=this._getRangeInfo(s);return l.start.time>l.end.time&&s.reverse(),s},_getRangeInfo:function(s){s=[this.getDateInfo(s[0]),this.getDateInfo(s[1])];var i;s[0].time>s[1].time&&(i=!0,s.reverse());var t=Math.floor(s[1].time/m)-Math.floor(s[0].time/m)+1,o=new Date(s[0].time),e=o.getDate(),l=s[1].date.getDate();o.setDate(e+t-1);var r=o.getDate();if(r!==l)for(var a=o.getTime()-s[1].time>0?1:-1;(r=o.getDate())!==l&&(o.getTime()-s[1].time)*a>0;)t-=a,o.setDate(r-a);var c=Math.floor((t+s[0].day+6)/7),h=i?-c+1:c-1;return i&&s.reverse(),{range:[s[0].formatedDate,s[1].formatedDate],start:s[0],end:s[1],allDay:t,weeks:c,nthWeek:h,fweek:s[0].day,lweek:s[1].day}},_getDateByWeeksAndDay:function(s,i,t){var o=this._getRangeInfo(t);if(s>o.weeks||s===0&&i<o.fweek||s===o.weeks&&i>o.lweek)return!1;var e=(s-1)*7-o.fweek+i,l=new Date(o.start.time);return l.setDate(o.start.d+e),this.getDateInfo(l)}},p.dimensions=p.prototype.dimensions,p.getDimensionsInfo=p.prototype.getDimensionsInfo,p.create=function(s,i){var t=[];return s.eachComponent("calendar",function(o){var e=new p(o,s,i);t.push(e),o.coordinateSystem=e}),s.eachSeries(function(o){o.get("coordinateSystem")==="calendar"&&(o.coordinateSystem=t[o.get("calendarIndex")||0])}),t};function d(s,i,t,o){var e=t.calendarModel,l=t.seriesModel,r=e?e.coordinateSystem:l?l.coordinateSystem:null;return r===this?r[s](o):null}v.register("calendar",p);var u=p;R.exports=u},"0NbB":function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="CaretDownOutlined";var d=D.a=f.forwardRef(p)},"0OKo":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("TdNH"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},"0V0F":function(R,D,n){var y=n("bYtY"),f=y.createHashMap,x=y.each;function v(p){var d=f();p.eachSeries(function(u){var s=u.get("stack");if(s){var i=d.get(s)||d.set(s,[]),t=u.getData(),o={stackResultDimension:t.getCalculationInfo("stackResultDimension"),stackedOverDimension:t.getCalculationInfo("stackedOverDimension"),stackedDimension:t.getCalculationInfo("stackedDimension"),stackedByDimension:t.getCalculationInfo("stackedByDimension"),isStackedByIndex:t.getCalculationInfo("isStackedByIndex"),data:t,seriesModel:u};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&t.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),d.each(m)}function m(p){x(p,function(d,u){var s=[],i=[NaN,NaN],t=[d.stackResultDimension,d.stackedOverDimension],o=d.data,e=d.isStackedByIndex,l=o.map(t,function(r,a,c){var h=o.get(d.stackedDimension,c);if(isNaN(h))return i;var g,A;e?A=o.getRawIndex(c):g=o.get(d.stackedByDimension,c);for(var b=NaN,S=u-1;S>=0;S--){var E=p[S];if(e||(A=E.data.rawIndexOf(E.stackedByDimension,g)),A>=0){var C=E.data.getByRawIndex(E.stackResultDimension,A);if(h>=0&&C>0||h<=0&&C<0){h+=C,b=C;break}}}return s[0]=h,s[1]=b,s});o.hostModel.setData(l),d.data=l})}R.exports=v},"0XgM":function(R,D,n){},"0fbx":function(R,D,n){},"0o9m":function(R,D,n){var y=n("ProS");n("hNWo"),n("RlCK"),n("XpcN");var f=n("kDyi"),x=n("bLfw");y.registerProcessor(y.PRIORITY.PROCESSOR.SERIES_FILTER,f),x.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(R,D,n){var y=n("ProS");y.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),y.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},"0r65":function(R,D){var n=arguments[3],y=arguments[4],f=arguments[5],x=JSON.stringify;R.exports=function(v,m){for(var p,d=Object.keys(f),u=0,s=d.length;u<s;u++){var i=d[u],t=f[i].exports;if(t===v||t&&t.default===v){p=i;break}}if(!p){p=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var o={},u=0,s=d.length;u<s;u++){var i=d[u];o[i]=i}y[p]=["function(require,module,exports){"+v+"(self); }",o]}var e=Math.floor(Math.pow(16,8)*Math.random()).toString(16),l={};l[p]=p,y[e]=["function(require,module,exports){var f = require("+x(p)+");(f.default ? f.default : f)(self);}",l];var r={};a(e);function a(S){r[S]=!0;for(var E in y[S][1]){var C=y[S][1][E];r[C]||a(C)}}var c="("+n+")({"+Object.keys(r).map(function(S){return x(S)+":["+y[S][0]+","+x(y[S][1])+"]"}).join(",")+"},{},["+x(e)+"])",h=window.URL||window.webkitURL||window.mozURL||window.msURL,g=new Blob([c],{type:"text/javascript"});if(m&&m.bare)return g;var A=h.createObjectURL(g),b=new Worker(A);return b.objectURL=A,b}},"0s+r":function(R,D,n){var y=n("bYtY"),f=n("QBsz"),x=n("y23F"),v=n("H6uX"),m=n("YH21"),p=n("C0SR"),d="silent";function u(a,c,h){return{type:a,event:h,target:c.target,topTarget:c.topTarget,cancelBubble:!1,offsetX:h.zrX,offsetY:h.zrY,gestureEvent:h.gestureEvent,pinchX:h.pinchX,pinchY:h.pinchY,pinchScale:h.pinchScale,wheelDelta:h.zrDelta,zrByTouch:h.zrByTouch,which:h.which,stop:s}}function s(){m.stop(this.event)}function i(){}i.prototype.dispose=function(){};var t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],o=function(c,h,g,A){v.call(this),this.storage=c,this.painter=h,this.painterRoot=A,g=g||new i,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,x.call(this),this.setHandlerProxy(g)};o.prototype={constructor:o,setHandlerProxy:function(c){this.proxy&&this.proxy.dispose(),c&&(y.each(t,function(h){c.on&&c.on(h,this[h],this)},this),c.handler=this),this.proxy=c},mousemove:function(c){var h=c.zrX,g=c.zrY,A=l(this,h,g),b=this._hovered,S=b.target;S&&!S.__zr&&(b=this.findHover(b.x,b.y),S=b.target);var E=this._hovered=A?{x:h,y:g}:this.findHover(h,g),C=E.target,_=this.proxy;_.setCursor&&_.setCursor(C?C.cursor:"default"),S&&C!==S&&this.dispatchToElement(b,"mouseout",c),this.dispatchToElement(E,"mousemove",c),C&&C!==S&&this.dispatchToElement(E,"mouseover",c)},mouseout:function(c){var h=c.zrEventControl,g=c.zrIsToLocalDOM;h!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",c),h!=="no_globalout"&&(!g&&this.trigger("globalout",{type:"globalout",event:c}))},resize:function(c){this._hovered={}},dispatch:function(c,h){var g=this[c];g&&g.call(this,h)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(c){var h=this.proxy;h.setCursor&&h.setCursor(c)},dispatchToElement:function(c,h,g){c=c||{};var A=c.target;if(A&&A.silent)return;for(var b="on"+h,S=u(h,c,g);A&&!(A[b]&&(S.cancelBubble=A[b].call(A,S)),A.trigger(h,S),A=A.parent,S.cancelBubble););S.cancelBubble||(this.trigger(h,S),this.painter&&this.painter.eachOtherLayer(function(E){typeof E[b]=="function"&&E[b].call(E,S),E.trigger&&E.trigger(h,S)}))},findHover:function(c,h,g){for(var A=this.storage.getDisplayList(),b={x:c,y:h},S=A.length-1;S>=0;S--){var E;if(A[S]!==g&&!A[S].ignore&&(E=e(A[S],c,h))&&(!b.topTarget&&(b.topTarget=A[S]),E!==d)){b.target=A[S];break}}return b},processGesture:function(c,h){this._gestureMgr||(this._gestureMgr=new p);var g=this._gestureMgr;h==="start"&&g.clear();var A=g.recognize(c,this.findHover(c.zrX,c.zrY,null).target,this.proxy.dom);if(h==="end"&&g.clear(),A){var b=A.type;c.gestureEvent=b,this.dispatchToElement({target:A.target},b,A.event)}}},y.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){o.prototype[a]=function(c){var h=c.zrX,g=c.zrY,A=l(this,h,g),b,S;if((a!=="mouseup"||!A)&&(b=this.findHover(h,g),S=b.target),a==="mousedown")this._downEl=S,this._downPoint=[c.zrX,c.zrY],this._upEl=S;else if(a==="mouseup")this._upEl=S;else if(a==="click"){if(this._downEl!==this._upEl||!this._downPoint||f.dist(this._downPoint,[c.zrX,c.zrY])>4)return;this._downPoint=null}this.dispatchToElement(b,a,c)}});function e(a,c,h){if(a[a.rectHover?"rectContain":"contain"](c,h)){for(var g=a,A;g;){if(g.clipPath&&!g.clipPath.contain(c,h))return!1;g.silent&&(A=!0),g=g.parent}return A?d:!0}return!1}function l(a,c,h){var g=a.painter;return c<0||c>g.getWidth()||h<0||h>g.getHeight()}y.mixin(o,v),y.mixin(o,x);var r=o;R.exports=r},"0ycA":function(R,D){function n(){return[]}R.exports=n},"10cm":function(R,D,n){var y=n("ProS"),f=n("2B6p"),x=f.updateCenterAndZoom;n("0qV/");var v={type:"graphRoam",event:"graphRoam",update:"none"};y.registerAction(v,function(m,p){p.eachComponent({mainType:"series",query:m},function(d){var u=d.coordinateSystem,s=x(u,m);d.setCenter&&d.setCenter(s.center),d.setZoom&&d.setZoom(s.zoom)})})},"15/o":function(R,D,n){},"19Vz":function(R,D,n){(function(y){y(n("VrN/"))})(function(y){y.defineOption("placeholder","",function(u,s,i){var t=i&&i!=y.Init;if(s&&!t)u.on("blur",m),u.on("change",p),u.on("swapDoc",p),y.on(u.getInputField(),"compositionupdate",u.state.placeholderCompose=function(){v(u)}),p(u);else if(!s&&t){u.off("blur",m),u.off("change",p),u.off("swapDoc",p),y.off(u.getInputField(),"compositionupdate",u.state.placeholderCompose),f(u);var o=u.getWrapperElement();o.className=o.className.replace(" CodeMirror-empty","")}s&&!u.hasFocus()&&m(u)});function f(u){u.state.placeholder&&(u.state.placeholder.parentNode.removeChild(u.state.placeholder),u.state.placeholder=null)}function x(u){f(u);var s=u.state.placeholder=document.createElement("pre");s.style.cssText="height: 0; overflow: visible",s.style.direction=u.getOption("direction"),s.className="CodeMirror-placeholder CodeMirror-line-like";var i=u.getOption("placeholder");typeof i=="string"&&(i=document.createTextNode(i)),s.appendChild(i),u.display.lineSpace.insertBefore(s,u.display.lineSpace.firstChild)}function v(u){setTimeout(function(){var s=!1,i=u.getInputField();i.nodeName=="TEXTAREA"?s=!i.value:u.lineCount()==1&&(s=!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)),s?x(u):f(u)},20)}function m(u){d(u)&&x(u)}function p(u){var s=u.getWrapperElement(),i=d(u);s.className=s.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?x(u):f(u)}function d(u){return u.lineCount()===1&&u.getLine(0)===""}})},"1Jh7":function(R,D,n){var y=n("y+Vt"),f=n("T6xi"),x=y.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(m,p){f.buildPath(m,p,!1)}});R.exports=x},"1LEl":function(R,D,n){var y=n("ProS"),f=n("F9bG"),x=y.extendComponentView({type:"axisPointer",render:function(m,p,d){var u=p.getComponent("tooltip"),s=m.get("triggerOn")||u&&u.get("triggerOn")||"mousemove|click";f.register("axisPointer",d,function(i,t,o){s!=="none"&&(i==="leave"||s.indexOf(i)>=0)&&o({type:"updateAxisPointer",currTrigger:i,x:t&&t.offsetX,y:t&&t.offsetY})})},remove:function(m,p){f.unregister(p.getZr(),"axisPointer"),x.superApply(this._model,"remove",arguments)},dispose:function(m,p){f.unregister("axisPointer",p),x.superApply(this._model,"dispose",arguments)}}),v=x;R.exports=v},"1MYJ":function(R,D,n){var y=n("y+Vt"),f=y.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var v=this.__dirtyPath,m=this.shape.paths,p=0;p<m.length;p++)v=v||m[p].__dirtyPath;this.__dirtyPath=v,this.__dirty=this.__dirty||v},beforeBrush:function(){this._updatePathDirty();for(var v=this.shape.paths||[],m=this.getGlobalScale(),p=0;p<v.length;p++)v[p].path||v[p].createPathProxy(),v[p].path.setScale(m[0],m[1],v[p].segmentIgnoreThreshold)},buildPath:function(v,m){for(var p=m.paths||[],d=0;d<p.length;d++)p[d].buildPath(v,p[d].shape,!0)},afterBrush:function(){for(var v=this.shape.paths||[],m=0;m<v.length;m++)v[m].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),y.prototype.getBoundingRect.call(this)}});R.exports=f},"1NG9":function(R,D,n){var y=n("y+Vt"),f=n("QBsz"),x=n("iXp4"),v=f.min,m=f.max,p=f.scaleAndAdd,d=f.copy,u=[],s=[],i=[];function t(h){return isNaN(h[0])||isNaN(h[1])}function o(h,g,A,b,S,E,C,_,T,w,O){return w==="none"||!w?l.apply(this,arguments):e.apply(this,arguments)}function e(h,g,A,b,S,E,C,_,T,w,O){for(var I=0,k=A,M=0;M<b;M++){var j=g[k];if(k>=S||k<0)break;if(t(j)){if(O){k+=E;continue}break}if(k===A)h[E>0?"moveTo":"lineTo"](j[0],j[1]);else if(T>0){var P=g[I],X=w==="y"?1:0,F=(j[X]-P[X])*T;d(s,P),s[X]=P[X]+F,d(i,j),i[X]=j[X]-F,h.bezierCurveTo(s[0],s[1],i[0],i[1],j[0],j[1])}else h.lineTo(j[0],j[1]);I=k,k+=E}return M}function l(h,g,A,b,S,E,C,_,T,w,O){for(var I=0,k=A,M=0;M<b;M++){var j=g[k];if(k>=S||k<0)break;if(t(j)){if(O){k+=E;continue}break}if(k===A)h[E>0?"moveTo":"lineTo"](j[0],j[1]),d(s,j);else if(T>0){var P=k+E,X=g[P];if(O)for(;X&&t(g[P]);)P+=E,X=g[P];var F=.5,U=g[I],X=g[P];if(!X||t(X))d(i,j);else{t(X)&&!O&&(X=j),f.sub(u,X,U);var K,z;if(w==="x"||w==="y"){var V=w==="x"?0:1;K=Math.abs(j[V]-U[V]),z=Math.abs(j[V]-X[V])}else K=f.dist(j,U),z=f.dist(j,X);F=z/(z+K),p(i,j,u,-T*(1-F))}v(s,s,_),m(s,s,C),v(i,i,_),m(i,i,C),h.bezierCurveTo(s[0],s[1],i[0],i[1],j[0],j[1]),p(s,j,u,T*F)}else h.lineTo(j[0],j[1]);I=k,k+=E}return M}function r(h,g){var A=[Infinity,Infinity],b=[-Infinity,-Infinity];if(g)for(var S=0;S<h.length;S++){var E=h[S];E[0]<A[0]&&(A[0]=E[0]),E[1]<A[1]&&(A[1]=E[1]),E[0]>b[0]&&(b[0]=E[0]),E[1]>b[1]&&(b[1]=E[1])}return{min:g?A:b,max:g?b:A}}var a=y.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:x(y.prototype.brush),buildPath:function(h,g){var A=g.points,b=0,S=A.length,E=r(A,g.smoothConstraint);if(g.connectNulls){for(;S>0&&t(A[S-1]);S--);for(;b<S&&t(A[b]);b++);}for(;b<S;)b+=o(h,A,b,S,S,1,E.min,E.max,g.smooth,g.smoothMonotone,g.connectNulls)+1}}),c=y.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:x(y.prototype.brush),buildPath:function(h,g){var A=g.points,b=g.stackedOnPoints,S=0,E=A.length,C=g.smoothMonotone,_=r(A,g.smoothConstraint),T=r(b,g.smoothConstraint);if(g.connectNulls){for(;E>0&&t(A[E-1]);E--);for(;S<E&&t(A[S]);S++);}for(;S<E;){var w=o(h,A,S,E,E,1,_.min,_.max,g.smooth,C,g.connectNulls);o(h,b,S+w-1,w,E,-1,T.min,T.max,g.stackedOnSmooth,C,g.connectNulls),S+=w+1,h.closePath()}}});D.Polyline=a,D.Polygon=c},"1RvN":function(R,D){var n=function(){this.head=null,this.tail=null,this._len=0},y=n.prototype;y.insert=function(p){var d=new f(p);return this.insertEntry(d),d},y.insertEntry=function(p){this.head?(this.tail.next=p,p.prev=this.tail,p.next=null,this.tail=p):this.head=this.tail=p,this._len++},y.remove=function(p){var d=p.prev,u=p.next;d?d.next=u:this.head=u,u?u.prev=d:this.tail=d,p.next=p.prev=null,this._len--},y.len=function(){return this._len},y.clear=function(){this.head=this.tail=null,this._len=0};var f=function(d){this.value=d,this.next,this.prev},x=function(d){this._list=new n,this._map={},this._maxSize=d||10,this._lastRemovedEntry=null},v=x.prototype;v.put=function(p,d){var u=this._list,s=this._map,i=null;if(s[p]==null){var t=u.len(),o=this._lastRemovedEntry;if(t>=this._maxSize&&t>0){var e=u.head;u.remove(e),delete s[e.key],i=e.value,this._lastRemovedEntry=e}o?o.value=d:o=new f(d),o.key=p,u.insertEntry(o),s[p]=o}return i},v.get=function(p){var d=this._map[p],u=this._list;if(d!=null)return d!==u.tail&&(u.remove(d),u.insertEntry(d)),d.value},v.clear=function(){this._list.clear(),this._map={}};var m=x;R.exports=m},"1bdT":function(R,D,n){var y=n("3gBT"),f=n("H6uX"),x=n("DN4a"),v=n("vWvF"),m=n("bYtY"),p=function(s){x.call(this,s),f.call(this,s),v.call(this,s),this.id=s.id||y()};p.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(s,i){switch(this.draggable){case"horizontal":i=0;break;case"vertical":s=0;break}var t=this.transform;t||(t=this.transform=[1,0,0,1,0,0]),t[4]+=s,t[5]+=i,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(s,i){},attrKV:function(s,i){if(s==="position"||s==="scale"||s==="origin"){if(i){var t=this[s];t||(t=this[s]=[]),t[0]=i[0],t[1]=i[1]}}else this[s]=i},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(s,i){if(typeof s=="string")this.attrKV(s,i);else if(m.isObject(s))for(var t in s)s.hasOwnProperty(t)&&this.attrKV(t,s[t]);return this.dirty(!1),this},setClipPath:function(s){var i=this.__zr;i&&s.addSelfToZr(i),this.clipPath&&this.clipPath!==s&&this.removeClipPath(),this.clipPath=s,s.__zr=i,s.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var s=this.clipPath;s&&(s.__zr&&s.removeSelfFromZr(s.__zr),s.__zr=null,s.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(s){this.__zr=s;var i=this.animators;if(i)for(var t=0;t<i.length;t++)s.animation.addAnimator(i[t]);this.clipPath&&this.clipPath.addSelfToZr(s)},removeSelfFromZr:function(s){this.__zr=null;var i=this.animators;if(i)for(var t=0;t<i.length;t++)s.animation.removeAnimator(i[t]);this.clipPath&&this.clipPath.removeSelfFromZr(s)}},m.mixin(p,v),m.mixin(p,x),m.mixin(p,f);var d=p;R.exports=d},"1dTM":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("GQ8N"),f=w(n("Lo0S")),x=n("VSMT"),v=n("GdRQ"),m=n("SZEN"),p=n("vewr"),d=_(n("YJ9k")),u=_(n("MZdM")),s=_(n("ItS6")),i=_(n("whVF")),t=_(n("Fv0C")),o=_(n("LCi9")),e=_(n("rwxt")),l=_(n("Mmt2")),r=_(n("iUHT")),a=_(n("mHUz")),c=_(n("P2ho")),h=n("NBmB");n("mdZa");var g=_(n("34/K")),A=_(n("hXwI")),b=_(n("SgaC")),S=_(n("3690")),E=_(n("8K/p")),C=_(n("xO64"));function _(de){return de&&de.__esModule?de:{default:de}}function T(){if(typeof WeakMap!="function")return null;var de=new WeakMap;return T=function(){return de},de}function w(de){if(de&&de.__esModule)return de;if(de===null||O(de)!=="object"&&typeof de!="function")return{default:de};var be=T();if(be&&be.has(de))return be.get(de);var Ce={},Be=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var fe in de)if(Object.prototype.hasOwnProperty.call(de,fe)){var we=Be?Object.getOwnPropertyDescriptor(de,fe):null;we&&(we.get||we.set)?Object.defineProperty(Ce,fe,we):Ce[fe]=de[fe]}return Ce.default=de,be&&be.set(de,Ce),Ce}function O(de){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(Ce){return typeof Ce}:O=function(Ce){return Ce&&typeof Symbol=="function"&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce},O(de)}function I(de,be){if(!(de instanceof be))throw new TypeError("Cannot call a class as a function")}function k(de,be){for(var Ce=0;Ce<be.length;Ce++){var Be=be[Ce];Be.enumerable=Be.enumerable||!1,Be.configurable=!0,"value"in Be&&(Be.writable=!0),Object.defineProperty(de,Be.key,Be)}}function M(de,be,Ce){return be&&k(de.prototype,be),Ce&&k(de,Ce),de}function j(de,be){if(typeof be!="function"&&be!==null)throw new TypeError("Super expression must either be null or a function");de.prototype=Object.create(be&&be.prototype,{constructor:{value:de,writable:!0,configurable:!0}}),be&&P(de,be)}function P(de,be){return P=Object.setPrototypeOf||function(Be,fe){return Be.__proto__=fe,Be},P(de,be)}function X(de){var be=K();return function(){var Be=z(de),fe;if(be){var we=z(this).constructor;fe=Reflect.construct(Be,arguments,we)}else fe=Be.apply(this,arguments);return F(this,fe)}}function F(de,be){return be&&(O(be)==="object"||typeof be=="function")?be:U(de)}function U(de){if(de===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de}function K(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(de){return!1}}function z(de){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(Ce){return Ce.__proto__||Object.getPrototypeOf(Ce)},z(de)}var V=3,Q="rgb(40, 40, 40)",G=17,te=50,q=19,se=75,re=50,xe=1e3,Oe=50,Me=1,Qe=1<<1,Ve=1<<2,ut=1<<3,Fe=1<<4,ue=1<<24,et=1<<25,he=1<<26,J=1<<27,Y=1<<28,$=function(de){j(Ce,de);var be=X(Ce);function Ce(Be,fe,we){var Re;if(I(this,Ce),!Be)throw new Error("Must specify target");if(!fe)throw new Error("Must specify URL");Re=be.call(this),Re._target=Be,Re._url=fe,we=we||{},Re._rfbCredentials=we.credentials||{},Re._shared="shared"in we?!!we.shared:!0,Re._repeaterID=we.repeaterID||"",Re._wsProtocols=we.wsProtocols||[],Re._rfbConnectionState="",Re._rfbInitState="",Re._rfbAuthScheme=-1,Re._rfbCleanDisconnect=!0,Re._rfbVersion=0,Re._rfbMaxVersion=3.8,Re._rfbTightVNC=!1,Re._rfbVeNCryptState=0,Re._rfbXvpVer=0,Re._fbWidth=0,Re._fbHeight=0,Re._fbName="",Re._capabilities={power:!1},Re._supportsFence=!1,Re._supportsContinuousUpdates=!1,Re._enabledContinuousUpdates=!1,Re._supportsSetDesktopSize=!1,Re._screenID=0,Re._screenFlags=0,Re._qemuExtKeyEventSupported=!1,Re._clipboardText=null,Re._clipboardServerCapabilitiesActions={},Re._clipboardServerCapabilitiesFormats={},Re._sock=null,Re._display=null,Re._flushing=!1,Re._keyboard=null,Re._gestures=null,Re._disconnTimer=null,Re._resizeTimeout=null,Re._mouseMoveTimer=null,Re._decoders={},Re._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},Re._mousePos={},Re._mouseButtonMask=0,Re._mouseLastMoveTime=0,Re._viewportDragging=!1,Re._viewportDragPos={},Re._viewportHasMoved=!1,Re._accumulatedWheelDeltaX=0,Re._accumulatedWheelDeltaY=0,Re._gestureLastTapTime=null,Re._gestureFirstDoubleTapEv=null,Re._gestureLastMagnitudeX=0,Re._gestureLastMagnitudeY=0,Re._eventHandlers={focusCanvas:Re._focusCanvas.bind(U(Re)),windowResize:Re._windowResize.bind(U(Re)),handleMouse:Re._handleMouse.bind(U(Re)),handleWheel:Re._handleWheel.bind(U(Re)),handleGesture:Re._handleGesture.bind(U(Re))},f.Debug(">> RFB.constructor"),Re._screen=document.createElement("div"),Re._screen.style.display="flex",Re._screen.style.width="100%",Re._screen.style.height="100%",Re._screen.style.overflow="auto",Re._screen.style.background=Q,Re._canvas=document.createElement("canvas"),Re._canvas.style.margin="auto",Re._canvas.style.outline="none",Re._canvas.style.flexShrink="0",Re._canvas.width=0,Re._canvas.height=0,Re._canvas.tabIndex=-1,Re._screen.appendChild(Re._canvas),Re._cursor=new e.default,Re._cursorImage=Ce.cursors.none,Re._decoders[h.encodings.encodingRaw]=new g.default,Re._decoders[h.encodings.encodingCopyRect]=new A.default,Re._decoders[h.encodings.encodingRRE]=new b.default,Re._decoders[h.encodings.encodingHextile]=new S.default,Re._decoders[h.encodings.encodingTight]=new E.default,Re._decoders[h.encodings.encodingTightPNG]=new C.default;try{Re._display=new u.default(Re._canvas)}catch(rt){throw f.Error("Display exception: "+rt),rt}return Re._display.onflush=Re._onFlush.bind(U(Re)),Re._keyboard=new t.default(Re._canvas),Re._keyboard.onkeyevent=Re._handleKeyEvent.bind(U(Re)),Re._gestures=new o.default,Re._sock=new l.default,Re._sock.on("message",function(){Re._handleMessage()}),Re._sock.on("open",function(){Re._rfbConnectionState==="connecting"&&Re._rfbInitState===""?(Re._rfbInitState="ProtocolVersion",f.Debug("Starting VNC handshake")):Re._fail("Unexpected server connection while "+Re._rfbConnectionState)}),Re._sock.on("close",function(rt){f.Debug("WebSocket on-close event");var St="";rt.code&&(St="(code: "+rt.code,rt.reason&&(St+=", reason: "+rt.reason),St+=")");switch(Re._rfbConnectionState){case"connecting":Re._fail("Connection closed "+St);break;case"connected":Re._updateConnectionState("disconnecting"),Re._updateConnectionState("disconnected");break;case"disconnecting":Re._updateConnectionState("disconnected");break;case"disconnected":Re._fail("Unexpected server disconnect when already disconnected "+St);break;default:Re._fail("Unexpected server disconnect before connecting "+St);break}Re._sock.off("close")}),Re._sock.on("error",function(rt){return f.Warn("WebSocket on-error event")}),setTimeout(Re._updateConnectionState.bind(U(Re),"connecting")),f.Debug("<< RFB.constructor"),Re.dragViewport=!1,Re.focusOnClick=!0,Re._viewOnly=!1,Re._clipViewport=!1,Re._scaleViewport=!1,Re._resizeSession=!1,Re._showDotCursor=!1,we.showDotCursor!==void 0&&(f.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),Re._showDotCursor=we.showDotCursor),Re._qualityLevel=6,Re._compressionLevel=2,Re}return M(Ce,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(fe){this._rfbCredentials=fe,setTimeout(this._initMsg.bind(this),0)}},{key:"sendCtrlAltDel",value:function(){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;f.Info("Sending Ctrl-Alt-Del"),this.sendKey(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(fe,we,Re){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(Re===void 0){this.sendKey(fe,we,!0),this.sendKey(fe,we,!1);return}var rt=c.default[we];if(this._qemuExtKeyEventSupported&&rt)fe=fe||0,f.Info("Sending key ("+(Re?"down":"up")+"): keysym "+fe+", scancode "+rt),Ce.messages.QEMUExtendedKeyEvent(this._sock,fe,Re,rt);else{if(!fe)return;f.Info("Sending keysym ("+(Re?"down":"up")+"): "+fe),Ce.messages.keyEvent(this._sock,fe,Re?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(fe){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[Me]&&this._clipboardServerCapabilitiesActions[J])this._clipboardText=fe,Ce.messages.extendedClipboardNotify(this._sock,[Me]);else{for(var we=new Uint8Array(fe.length),Re=0;Re<fe.length;Re++)we[Re]=fe.charCodeAt(Re);Ce.messages.clientCutText(this._sock,we)}}},{key:"_connect",value:function(){f.Debug(">> RFB.connect"),f.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(fe){fe.name==="SyntaxError"?this._fail("Invalid host or port ("+fe+")"):this._fail("Error when opening socket ("+fe+")")}this._target.appendChild(this._screen),this._gestures.attach(this._canvas),this._cursor.attach(this._canvas),this._refreshCursor(),window.addEventListener("resize",this._eventHandlers.windowResize),this._canvas.addEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.addEventListener("touchstart",this._eventHandlers.focusCanvas),this._canvas.addEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.addEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.addEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.addEventListener("click",this._eventHandlers.handleMouse),this._canvas.addEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.addEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.addEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.addEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.addEventListener("gestureend",this._eventHandlers.handleGesture),f.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){f.Debug(">> RFB.disconnect"),this._cursor.detach(),this._canvas.removeEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gestureend",this._eventHandlers.handleGesture),this._canvas.removeEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.removeEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.removeEventListener("click",this._eventHandlers.handleMouse),this._canvas.removeEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.removeEventListener("touchstart",this._eventHandlers.focusCanvas),window.removeEventListener("resize",this._eventHandlers.windowResize),this._keyboard.ungrab(),this._gestures.detach(),this._sock.close();try{this._target.removeChild(this._screen)}catch(fe){if(!(fe.name==="NotFoundError"))throw fe}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),f.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(fe){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(fe){this._fbName=fe,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(fe){var we=this;window.requestAnimationFrame(function(){we._updateClip(),we._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var fe=this._display.clipViewport,we=this._clipViewport;if(this._scaleViewport&&(we=!1),fe!==we&&(this._display.clipViewport=we),we){var Re=this._screenSize();this._display.viewportChangeSize(Re.w,Re.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var fe=this._screenSize();this._display.autoscale(fe.w,fe.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var fe=this._screenSize();Ce.messages.setDesktopSize(this._sock,Math.floor(fe.w),Math.floor(fe.h),this._screenID,this._screenFlags),f.Debug("Requested new desktop size: "+fe.w+"x"+fe.h)}},{key:"_screenSize",value:function(){var fe=this._screen.getBoundingClientRect();return{w:fe.width,h:fe.height}}},{key:"_fixScrollbars",value:function(){var fe=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=fe}},{key:"_updateConnectionState",value:function(fe){var we=this,Re=this._rfbConnectionState;if(fe===Re){f.Debug("Already in state '"+fe+"', ignoring");return}if(Re==="disconnected"){f.Error("Tried changing state of a disconnected RFB object");return}switch(fe){case"connected":if(Re!=="connecting"){f.Error("Bad transition to connected state, previous connection state: "+Re);return}break;case"disconnected":if(Re!=="disconnecting"){f.Error("Bad transition to disconnected state, previous connection state: "+Re);return}break;case"connecting":if(Re!==""){f.Error("Bad transition to connecting state, previous connection state: "+Re);return}break;case"disconnecting":if(Re!=="connected"&&Re!=="connecting"){f.Error("Bad transition to disconnecting state, previous connection state: "+Re);return}break;default:f.Error("Unknown connection state: "+fe);return}this._rfbConnectionState=fe,f.Debug("New state '"+fe+"', was '"+Re+"'."),this._disconnTimer&&fe!=="disconnecting"&&(f.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(fe){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout(function(){f.Error("Disconnection timed out."),we._updateConnectionState("disconnected")},V*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(fe){switch(this._rfbConnectionState){case"disconnecting":f.Error("Failed when disconnecting: "+fe);break;case"connected":f.Error("Failed while connected: "+fe);break;case"connecting":f.Error("Failed when connecting: "+fe);break;default:f.Error("RFB failure: "+fe);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(fe,we){this._capabilities[fe]=we,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}},{key:"_handleMessage",value:function(){if(this._sock.rQlen===0){f.Warn("handleMessage called on an empty receive queue");return}switch(this._rfbConnectionState){case"disconnected":f.Error("Got data while disconnected");break;case"connected":for(;!this._flushing;){if(!this._normalMsg())break;if(this._sock.rQlen===0)break}break;default:this._initMsg();break}}},{key:"_handleKeyEvent",value:function(fe,we,Re){this.sendKey(fe,we,Re)}},{key:"_handleMouse",value:function(fe){if(fe.type==="click"&&fe.target!==this._canvas)return;if(fe.stopPropagation(),fe.preventDefault(),fe.type==="click"||fe.type==="contextmenu")return;var we=(0,m.clientToElement)(fe.clientX,fe.clientY,this._canvas);switch(fe.type){case"mousedown":(0,p.setCapture)(this._canvas),this._handleMouseButton(we.x,we.y,!0,1<<fe.button);break;case"mouseup":this._handleMouseButton(we.x,we.y,!1,1<<fe.button);break;case"mousemove":this._handleMouseMove(we.x,we.y);break}}},{key:"_handleMouseButton",value:function(fe,we,Re,rt){if(this.dragViewport)if(Re&&!this._viewportDragging){this._viewportDragging=!0,this._viewportDragPos={x:fe,y:we},this._viewportHasMoved=!1;return}else{if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(fe,we,rt)}this._mouseMoveTimer!==null&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(fe,we,this._mouseButtonMask)),Re?this._mouseButtonMask|=rt:this._mouseButtonMask&=~rt,this._sendMouse(fe,we,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(fe,we){var Re=this;if(this._viewportDragging){var rt=this._viewportDragPos.x-fe,St=this._viewportDragPos.y-we;(this._viewportHasMoved||Math.abs(rt)>v.dragThreshold||Math.abs(St)>v.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:fe,y:we},this._display.viewportChangePos(rt,St));return}if(this._mousePos={x:fe,y:we},this._mouseMoveTimer==null){var ft=Date.now()-this._mouseLastMoveTime;ft>G?(this._sendMouse(fe,we,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){Re._handleDelayedMouseMove()},G-ft)}}},{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(fe,we,Re){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Ce.messages.pointerEvent(this._sock,this._display.absX(fe),this._display.absY(we),Re)}},{key:"_handleWheel",value:function(fe){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;fe.stopPropagation(),fe.preventDefault();var we=(0,m.clientToElement)(fe.clientX,fe.clientY,this._canvas),Re=fe.deltaX,rt=fe.deltaY;fe.deltaMode!==0&&(Re*=q,rt*=q),this._accumulatedWheelDeltaX+=Re,this._accumulatedWheelDeltaY+=rt,Math.abs(this._accumulatedWheelDeltaX)>=te&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(we.x,we.y,!0,1<<5),this._handleMouseButton(we.x,we.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(we.x,we.y,!0,1<<6),this._handleMouseButton(we.x,we.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=te&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(we.x,we.y,!0,1<<3),this._handleMouseButton(we.x,we.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(we.x,we.y,!0,1<<4),this._handleMouseButton(we.x,we.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(fe,we,Re){this._handleMouseMove(we,Re),this._cursor.move(fe.detail.clientX,fe.detail.clientY)}},{key:"_handleTapEvent",value:function(fe,we){var Re=(0,m.clientToElement)(fe.detail.clientX,fe.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTime<xe&&this._gestureFirstDoubleTapEv.detail.type===fe.detail.type){var rt=this._gestureFirstDoubleTapEv.detail.clientX-fe.detail.clientX,St=this._gestureFirstDoubleTapEv.detail.clientY-fe.detail.clientY,ft=Math.hypot(rt,St);ft<Oe?Re=(0,m.clientToElement)(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=fe}else this._gestureFirstDoubleTapEv=fe;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,Re.x,Re.y),this._handleMouseButton(Re.x,Re.y,!0,we),this._handleMouseButton(Re.x,Re.y,!1,we)}},{key:"_handleGesture",value:function(fe){var we,Re=(0,m.clientToElement)(fe.detail.clientX,fe.detail.clientY,this._canvas);switch(fe.type){case"gesturestart":switch(fe.detail.type){case"onetap":this._handleTapEvent(fe,1);break;case"twotap":this._handleTapEvent(fe,4);break;case"threetap":this._handleTapEvent(fe,2);break;case"drag":this._fakeMouseMove(fe,Re.x,Re.y),this._handleMouseButton(Re.x,Re.y,!0,1);break;case"longpress":this._fakeMouseMove(fe,Re.x,Re.y),this._handleMouseButton(Re.x,Re.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=fe.detail.magnitudeX,this._gestureLastMagnitudeY=fe.detail.magnitudeY,this._fakeMouseMove(fe,Re.x,Re.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(fe.detail.magnitudeX,fe.detail.magnitudeY),this._fakeMouseMove(fe,Re.x,Re.y);break}break;case"gesturemove":switch(fe.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(fe,Re.x,Re.y);break;case"twodrag":for(this._fakeMouseMove(fe,Re.x,Re.y);fe.detail.magnitudeY-this._gestureLastMagnitudeY>re;)this._handleMouseButton(Re.x,Re.y,!0,8),this._handleMouseButton(Re.x,Re.y,!1,8),this._gestureLastMagnitudeY+=re;for(;fe.detail.magnitudeY-this._gestureLastMagnitudeY<-re;)this._handleMouseButton(Re.x,Re.y,!0,16),this._handleMouseButton(Re.x,Re.y,!1,16),this._gestureLastMagnitudeY-=re;for(;fe.detail.magnitudeX-this._gestureLastMagnitudeX>re;)this._handleMouseButton(Re.x,Re.y,!0,32),this._handleMouseButton(Re.x,Re.y,!1,32),this._gestureLastMagnitudeX+=re;for(;fe.detail.magnitudeX-this._gestureLastMagnitudeX<-re;)this._handleMouseButton(Re.x,Re.y,!0,64),this._handleMouseButton(Re.x,Re.y,!1,64),this._gestureLastMagnitudeX-=re;break;case"pinch":if(this._fakeMouseMove(fe,Re.x,Re.y),we=Math.hypot(fe.detail.magnitudeX,fe.detail.magnitudeY),Math.abs(we-this._gestureLastMagnitudeX)>se){for(this._handleKeyEvent(a.default.XK_Control_L,"ControlLeft",!0);we-this._gestureLastMagnitudeX>se;)this._handleMouseButton(Re.x,Re.y,!0,8),this._handleMouseButton(Re.x,Re.y,!1,8),this._gestureLastMagnitudeX+=se;for(;we-this._gestureLastMagnitudeX<-se;)this._handleMouseButton(Re.x,Re.y,!0,16),this._handleMouseButton(Re.x,Re.y,!1,16),this._gestureLastMagnitudeX-=se}this._handleKeyEvent(a.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(fe.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(fe,Re.x,Re.y),this._handleMouseButton(Re.x,Re.y,!1,1);break;case"longpress":this._fakeMouseMove(fe,Re.x,Re.y),this._handleMouseButton(Re.x,Re.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var fe=this._sock.rQshiftStr(12).substr(4,7);f.Info("Server ProtocolVersion: "+fe);var we=0;switch(fe){case"000.000":we=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 "+fe)}if(we){for(var Re="ID:"+this._repeaterID;Re.length<250;)Re+="\0";return this._sock.sendString(Re),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var rt="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+rt+`
|
|
|
`),f.Debug("Sent ProtocolVersion: "+rt),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function fe(rt,St){for(var ft=0;ft<St.length;ft++)if(St[ft]===rt)return!0;return!1}if(this._rfbVersion>=3.7){var we=this._sock.rQshift8();if(this._sock.rQwait("security type",we,1))return!1;if(we===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var Re=this._sock.rQshiftBytes(we);if(f.Debug("Server security types: "+Re),fe(1,Re))this._rfbAuthScheme=1;else if(fe(22,Re))this._rfbAuthScheme=22;else if(fe(16,Re))this._rfbAuthScheme=16;else if(fe(2,Re))this._rfbAuthScheme=2;else if(fe(19,Re))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+Re+")");this._sock.send([this._rfbAuthScheme])}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),this._rfbAuthScheme==0)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,this._initMsg()}return this._rfbInitState="Authentication",f.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var fe=this._sock.rQshift32(),we="";if(fe>0){if(this._sock.rQwait("reason",fe,4))return!1;we=this._sock.rQshiftStr(fe)}return we!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:we}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+we+")")):(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 fe=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(fe),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var fe=this._sock.rQshift8(),we=this._sock.rQshift8();if(!(fe==0&&we==2))return this._fail("Unsupported VeNCrypt version "+fe+"."+we);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var Re=this._sock.rQshift8();if(Re!=0)return this._fail("VeNCrypt failure "+Re);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var rt=this._sock.rQshift8();if(rt<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=rt,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var St=[],ft=0;ft<this._rfbVeNCryptSubtypesLength;ft++)St.push(this._sock.rQshift32());if(St.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 He=(0,x.encodeUTF8)(this._rfbCredentials.username),er=(0,x.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,He.length]),this._sock.send([0,0,0,er.length]),this._sock.sendString(He),this._sock.sendString(er),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 fe=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),we=Ce.genDES(this._rfbCredentials.password,fe);return this._sock.send(we),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(fe){for(var we={0:{vendor:"TGHT",signature:"NOTUNNEL"}},Re={},rt=0;rt<fe;rt++){var St=this._sock.rQshift32(),ft=this._sock.rQshiftStr(4),He=this._sock.rQshiftStr(8);Re[St]={vendor:ft,signature:He}}return f.Debug("Server Tight tunnel types: "+Re),Re[1]&&Re[1].vendor==="SICR"&&Re[1].signature==="SCHANNEL"&&(f.Debug("Detected Siemens server. Assuming NOTUNNEL support."),Re[0]={vendor:"TGHT",signature:"NOTUNNEL"}),Re[0]?Re[0].vendor!=we[0].vendor||Re[0].signature!=we[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(f.Debug("Selected tunnel type: "+we[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 fe=this._sock.rQshift32();if(fe>0&&this._sock.rQwait("tunnel capabilities",16*fe,4))return!1;if(this._rfbTightVNC=!0,fe>0)return this._negotiateTightTunnels(fe),!1}if(this._sock.rQwait("sub auth count",4))return!1;var we=this._sock.rQshift32();if(we===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*we,4))return!1;for(var Re={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},rt=[],St=0;St<we;St++){this._sock.rQshift32();var ft=this._sock.rQshiftStr(12);rt.push(ft)}f.Debug("Server Tight authentication types: "+rt);for(var He in Re)if(rt.indexOf(He)!=-1){this._sock.send([0,0,0,Re[He]]),f.Debug("Selected authentication type: "+He);switch(He){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: "+He+")")}}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 fe=this._sock.rQshift32();return fe===0?(this._rfbInitState="ClientInitialisation",f.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=fe,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:fe}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var fe=this._sock.rQshift16(),we=this._sock.rQshift16(),Re=this._sock.rQshift8(),rt=this._sock.rQshift8(),St=this._sock.rQshift8(),ft=this._sock.rQshift8(),He=this._sock.rQshift16(),er=this._sock.rQshift16(),ct=this._sock.rQshift16(),Kt=this._sock.rQshift8(),fr=this._sock.rQshift8(),Gt=this._sock.rQshift8();this._sock.rQskipBytes(3);var Pt=this._sock.rQshift32();if(this._sock.rQwait("server init name",Pt,24))return!1;var Xt=this._sock.rQshiftStr(Pt);if(Xt=(0,x.decodeUTF8)(Xt,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+Pt))return!1;var Ge=this._sock.rQshift16(),pe=this._sock.rQshift16(),oe=this._sock.rQshift16();this._sock.rQskipBytes(2);var lt=(Ge+pe+oe)*16;if(this._sock.rQwait("TightVNC extended server init header",lt,32+Pt))return!1;this._sock.rQskipBytes(16*Ge),this._sock.rQskipBytes(16*pe),this._sock.rQskipBytes(16*oe)}return f.Info("Screen: "+fe+"x"+we+", bpp: "+Re+", depth: "+rt+", bigEndian: "+St+", trueColor: "+ft+", redMax: "+He+", greenMax: "+er+", blueMax: "+ct+", redShift: "+Kt+", greenShift: "+fr+", blueShift: "+Gt),this._setDesktopName(Xt),this._resize(fe,we),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(f.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),Ce.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Ce.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var fe=[];fe.push(h.encodings.encodingCopyRect),this._fbDepth==24&&(fe.push(h.encodings.encodingTight),fe.push(h.encodings.encodingTightPNG),fe.push(h.encodings.encodingHextile),fe.push(h.encodings.encodingRRE)),fe.push(h.encodings.encodingRaw),fe.push(h.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),fe.push(h.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),fe.push(h.encodings.pseudoEncodingDesktopSize),fe.push(h.encodings.pseudoEncodingLastRect),fe.push(h.encodings.pseudoEncodingQEMUExtendedKeyEvent),fe.push(h.encodings.pseudoEncodingExtendedDesktopSize),fe.push(h.encodings.pseudoEncodingXvp),fe.push(h.encodings.pseudoEncodingFence),fe.push(h.encodings.pseudoEncodingContinuousUpdates),fe.push(h.encodings.pseudoEncodingDesktopName),fe.push(h.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(fe.push(h.encodings.pseudoEncodingVMwareCursor),fe.push(h.encodings.pseudoEncodingCursor)),Ce.messages.clientEncodings(this._sock,fe)}},{key:"_initMsg",value:function(){switch(this._rfbInitState){case"ProtocolVersion":return this._negotiateProtocolVersion();case"Security":return this._negotiateSecurity();case"Authentication":return this._negotiateAuthentication();case"SecurityResult":return this._handleSecurityResult();case"SecurityReason":return this._handleSecurityReason();case"ClientInitialisation":return this._sock.send([this._shared?1:0]),this._rfbInitState="ServerInitialisation",!0;case"ServerInitialisation":return this._negotiateServerInit();default:return this._fail("Unknown init state (state: "+this._rfbInitState+")")}}},{key:"_handleSetColourMapMsg",value:function(){return f.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(f.Debug("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var fe=this._sock.rQshift32();if(fe=(0,y.toSigned32bit)(fe),this._sock.rQwait("ServerCutText content",Math.abs(fe),8))return!1;if(fe>=0){var we=this._sock.rQshiftStr(fe);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:we}}))}else{fe=Math.abs(fe);var Re=this._sock.rQshift32(),rt=Re&65535,St=Re&4278190080,ft=!!(St&ue);if(ft){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var He=0;He<=15;He++){var er=1<<He;rt&er&&(this._clipboardServerCapabilitiesFormats[er]=!0,this._sock.rQshift32())}for(var ct=24;ct<=31;ct++){var Kt=1<<ct;this._clipboardServerCapabilitiesActions[Kt]=!!(St&Kt)}var fr=[ue,et,he,J,Y];Ce.messages.extendedClipboardCaps(this._sock,fr,{extendedClipboardFormatText:0})}else if(St===et){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[Y]&&(rt&Me&&Ce.messages.extendedClipboardProvide(this._sock,[Me],[this._clipboardText]))}else if(St===he){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[J]&&(this._clipboardText!=null?Ce.messages.extendedClipboardNotify(this._sock,[Me]):Ce.messages.extendedClipboardNotify(this._sock,[]))}else if(St===J){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[et]&&(rt&Me&&Ce.messages.extendedClipboardRequest(this._sock,[Me]))}else if(St===Y){if(this._viewOnly)return!0;if(!(rt&Me))return!0;this._clipboardText=null;var Gt=this._sock.rQshiftBytes(fe-4),Pt=new s.default,Xt=null;Pt.setInput(Gt);for(var Ge=0;Ge<=15;Ge++){var pe=1<<Ge;if(rt&pe){var oe=0,lt=Pt.inflate(4);oe|=lt[0]<<24,oe|=lt[1]<<16,oe|=lt[2]<<8,oe|=lt[3];var qe=Pt.inflate(oe);pe===Me&&(Xt=qe)}}if(Pt.setInput(null),Xt!==null){for(var ge="",Ht=0;Ht<Xt.length;Ht++)ge+=String.fromCharCode(Xt[Ht]);Xt=ge,Xt=(0,x.decodeUTF8)(Xt),Xt.length>0&&Xt.charAt(Xt.length-1)==="\0"&&(Xt=Xt.slice(0,-1)),Xt=Xt.replace(`\r
|
|
|
`,`
|
|
|
`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Xt}}))}}else return this._fail("Unexpected action in extended clipboard message: "+St)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var fe=this._sock.rQshift32(),we=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",we,9))return!1;we>64&&(f.Warn("Bad payload length ("+we+") in fence response"),we=64);var Re=this._sock.rQshiftStr(we);return this._supportsFence=!0,fe&1<<31?(fe&=1<<0|1<<1,Ce.messages.clientFence(this._sock,fe,Re),!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 fe=this._sock.rQshift8(),we=this._sock.rQshift8();switch(we){case 0:f.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=fe,f.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+we+")");break}return!0}},{key:"_normalMsg",value:function(){var fe;this._FBU.rects>0?fe=0:fe=this._sock.rQshift8();var we,Re;switch(fe){case 0:return Re=this._framebufferUpdate(),Re&&!this._enabledContinuousUpdates&&Ce.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),Re;case 1:return this._handleSetColourMapMsg();case 2:return f.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return we=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,we&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),f.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+fe+")"),f.Debug("sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0}}},{key:"_onFlush",value:function(){this._flushing=!1,this._sock.rQlen>0&&this._handleMessage()}},{key:"_framebufferUpdate",value:function(){if(this._FBU.rects===0){if(this._sock.rQwait("FBU header",3,1))return!1;if(this._sock.rQskipBytes(1),this._FBU.rects=this._sock.rQshift16(),this._display.pending())return this._flushing=!0,this._display.flush(),!1}for(;this._FBU.rects>0;){if(this._FBU.encoding===null){if(this._sock.rQwait("rect header",12))return!1;var fe=this._sock.rQshiftBytes(12);this._FBU.x=(fe[0]<<8)+fe[1],this._FBU.y=(fe[2]<<8)+fe[3],this._FBU.width=(fe[4]<<8)+fe[5],this._FBU.height=(fe[6]<<8)+fe[7],this._FBU.encoding=parseInt((fe[8]<<24)+(fe[9]<<16)+(fe[10]<<8)+fe[11],10)}if(!this._handleRect())return!1;this._FBU.rects--,this._FBU.encoding=null}return this._display.flip(),!0}},{key:"_handleRect",value:function(){switch(this._FBU.encoding){case h.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case h.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case h.encodings.pseudoEncodingCursor:return this._handleCursor();case h.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var fe=document.createEvent("keyboardEvent");fe.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(we){}return!0;case h.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case h.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case h.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var fe=this._FBU.x,we=this._FBU.y,Re=this._FBU.width,rt=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var St=this._sock.rQshift8();this._sock.rQshift8();var ft,He=4;if(St==0){var er=4294967040|0;if(ft=new Array(Re*rt*He),this._sock.rQwait("VMware cursor classic encoding",Re*rt*He*2,2))return!1;for(var ct=new Array(Re*rt),Kt=0;Kt<Re*rt;Kt++)ct[Kt]=this._sock.rQshift32();for(var fr=new Array(Re*rt),Gt=0;Gt<Re*rt;Gt++)fr[Gt]=this._sock.rQshift32();for(var Pt=0;Pt<Re*rt;Pt++)if(ct[Pt]==0){var Xt=fr[Pt],Ge=Xt>>8&255,pe=Xt>>16&255,oe=Xt>>24&255;ft[Pt*He]=Ge,ft[Pt*He+1]=pe,ft[Pt*He+2]=oe,ft[Pt*He+3]=255}else(ct[Pt]&er)==er?fr[Pt]==0?(ft[Pt*He]=0,ft[Pt*He+1]=0,ft[Pt*He+2]=0,ft[Pt*He+3]=0):((fr[Pt]&er)==er,ft[Pt*He]=0,ft[Pt*He+1]=0,ft[Pt*He+2]=0,ft[Pt*He+3]=255):(ft[Pt*He]=0,ft[Pt*He+1]=0,ft[Pt*He+2]=0,ft[Pt*He+3]=255)}else if(St==1){if(this._sock.rQwait("VMware cursor alpha encoding",Re*rt*4,2))return!1;ft=new Array(Re*rt*He);for(var lt=0;lt<Re*rt;lt++){var qe=this._sock.rQshift32();ft[lt*4]=qe>>24&255,ft[lt*4+1]=qe>>16&255,ft[lt*4+2]=qe>>8&255,ft[lt*4+3]=qe&255}}else return f.Warn("The given cursor type is not supported: "+St+" given."),!1;return this._updateCursor(ft,fe,we,Re,rt),!0}},{key:"_handleCursor",value:function(){var fe=this._FBU.x,we=this._FBU.y,Re=this._FBU.width,rt=this._FBU.height,St=Re*rt*4,ft=Math.ceil(Re/8)*rt,He=St+ft;if(this._sock.rQwait("cursor encoding",He))return!1;for(var er=this._sock.rQshiftBytes(St),ct=this._sock.rQshiftBytes(ft),Kt=new Uint8Array(Re*rt*4),fr=0,Gt=0;Gt<rt;Gt++)for(var Pt=0;Pt<Re;Pt++){var Xt=Gt*Math.ceil(Re/8)+Math.floor(Pt/8),Ge=ct[Xt]<<Pt%8&128?255:0;Kt[fr]=er[fr+2],Kt[fr+1]=er[fr+1],Kt[fr+2]=er[fr],Kt[fr+3]=Ge,fr+=4}return this._updateCursor(Kt,fe,we,Re,rt),!0}},{key:"_handleDesktopName",value:function(){if(this._sock.rQwait("DesktopName",4))return!1;var fe=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",fe,4))return!1;var we=this._sock.rQshiftStr(fe);return we=(0,x.decodeUTF8)(we,!0),this._setDesktopName(we),!0}},{key:"_handleExtendedDesktopSize",value:function(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;var fe=this._sock.rQpeek8(),we=4+fe*16;if(this._sock.rQwait("ExtendedDesktopSize",we))return!1;var Re=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,Re&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var rt=0;rt<fe;rt+=1)rt===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 St="";switch(this._FBU.y){case 1:St="Resize is administratively prohibited";break;case 2:St="Out of resources";break;case 3:St="Invalid screen layout";break;default:St="Unknown reason";break}f.Warn("Server did not accept the resize request: "+St)}else this._resize(this._FBU.width,this._FBU.height);return!0}},{key:"_handleDataRect",value:function(){var fe=this._decoders[this._FBU.encoding];if(!fe)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return fe.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(we){return this._fail("Error decoding rect: "+we),!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(fe,we){this._fbWidth=fe,this._fbHeight=we,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}},{key:"_xvpOp",value:function(fe,we){if(this._rfbXvpVer<fe)return;f.Info("Sending XVP operation "+we+" (version "+fe+")"),Ce.messages.xvpOp(this._sock,fe,we)}},{key:"_updateCursor",value:function(fe,we,Re,rt,St){this._cursorImage={rgbaPixels:fe,hotx:we,hoty:Re,w:rt,h:St},this._refreshCursor()}},{key:"_shouldShowDotCursor",value:function(){if(!this._showDotCursor)return!1;for(var fe=3;fe<this._cursorImage.rgbaPixels.length;fe+=4)if(this._cursorImage.rgbaPixels[fe])return!1;return!0}},{key:"_refreshCursor",value:function(){if(this._rfbConnectionState!=="connecting"&&this._rfbConnectionState!=="connected")return;var fe=this._shouldShowDotCursor()?Ce.cursors.dot:this._cursorImage;this._cursor.change(fe.rgbaPixels,fe.hotx,fe.hoty,fe.w,fe.h)}},{key:"viewOnly",get:function(){return this._viewOnly},set:function(fe){this._viewOnly=fe,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(fe?this._keyboard.ungrab():this._keyboard.grab())}},{key:"capabilities",get:function(){return this._capabilities}},{key:"touchButton",get:function(){return 0},set:function(fe){f.Warn("Using old API!")}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(fe){this._clipViewport=fe,this._updateClip()}},{key:"scaleViewport",get:function(){return this._scaleViewport},set:function(fe){this._scaleViewport=fe,fe&&this._clipViewport&&this._updateClip(),this._updateScale(),!fe&&this._clipViewport&&this._updateClip()}},{key:"resizeSession",get:function(){return this._resizeSession},set:function(fe){this._resizeSession=fe,fe&&this._requestRemoteResize()}},{key:"showDotCursor",get:function(){return this._showDotCursor},set:function(fe){this._showDotCursor=fe,this._refreshCursor()}},{key:"background",get:function(){return this._screen.style.background},set:function(fe){this._screen.style.background=fe}},{key:"qualityLevel",get:function(){return this._qualityLevel},set:function(fe){if(!Number.isInteger(fe)||fe<0||fe>9){f.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===fe)return;this._qualityLevel=fe,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(fe){if(!Number.isInteger(fe)||fe<0||fe>9){f.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===fe)return;this._compressionLevel=fe,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(fe,we){var Re=fe.split("").map(function(rt){return rt.charCodeAt(0)});return new r.default(Re).encrypt(we)}}]),Ce}(d.default);D.default=$,$.messages={keyEvent:function(be,Ce,Be){var fe=be._sQ,we=be._sQlen;fe[we]=4,fe[we+1]=Be,fe[we+2]=0,fe[we+3]=0,fe[we+4]=Ce>>24,fe[we+5]=Ce>>16,fe[we+6]=Ce>>8,fe[we+7]=Ce,be._sQlen+=8,be.flush()},QEMUExtendedKeyEvent:function(be,Ce,Be,fe){function we(ft){var He=fe>>8,er=fe&255;return He===224&&er<127?er|128:ft}var Re=be._sQ,rt=be._sQlen;Re[rt]=255,Re[rt+1]=0,Re[rt+2]=Be>>8,Re[rt+3]=Be,Re[rt+4]=Ce>>24,Re[rt+5]=Ce>>16,Re[rt+6]=Ce>>8,Re[rt+7]=Ce;var St=we(fe);Re[rt+8]=St>>24,Re[rt+9]=St>>16,Re[rt+10]=St>>8,Re[rt+11]=St,be._sQlen+=12,be.flush()},pointerEvent:function(be,Ce,Be,fe){var we=be._sQ,Re=be._sQlen;we[Re]=5,we[Re+1]=fe,we[Re+2]=Ce>>8,we[Re+3]=Ce,we[Re+4]=Be>>8,we[Re+5]=Be,be._sQlen+=6,be.flush()},_buildExtendedClipboardFlags:function(be,Ce){for(var Be=new Uint8Array(4),fe=0,we=0,Re=0;Re<be.length;Re++)we|=be[Re];for(var rt=0;rt<Ce.length;rt++)fe|=Ce[rt];return Be[0]=we>>24,Be[1]=0,Be[2]=0,Be[3]=fe,Be},extendedClipboardProvide:function(be,Ce,Be){for(var fe=new i.default,we=[],Re=0;Re<Ce.length;Re++){if(Ce[Re]!=Me)throw new Error("Unsupported extended clipboard format for Provide message.");Be[Re]=Be[Re].replace(/\r\n|\r|\n/gm,`\r
|
|
|
`);var rt=(0,x.encodeUTF8)(Be[Re]+"\0");we.push(rt.length>>24&255,rt.length>>16&255,rt.length>>8&255,rt.length&255);for(var St=0;St<rt.length;St++)we.push(rt.charCodeAt(St))}var ft=fe.deflate(new Uint8Array(we)),He=new Uint8Array(4+ft.length);He.set($.messages._buildExtendedClipboardFlags([Y],Ce)),He.set(ft,4),$.messages.clientCutText(be,He,!0)},extendedClipboardNotify:function(be,Ce){var Be=$.messages._buildExtendedClipboardFlags([J],Ce);$.messages.clientCutText(be,Be,!0)},extendedClipboardRequest:function(be,Ce){var Be=$.messages._buildExtendedClipboardFlags([et],Ce);$.messages.clientCutText(be,Be,!0)},extendedClipboardCaps:function(be,Ce,Be){var fe=Object.keys(Be),we=new Uint8Array(4+4*fe.length);fe.map(function(St){return parseInt(St)}),fe.sort(function(St,ft){return St-ft}),we.set($.messages._buildExtendedClipboardFlags(Ce,[]));for(var Re=4,rt=0;rt<fe.length;rt++)we[Re]=Be[fe[rt]]>>24,we[Re+1]=Be[fe[rt]]>>16,we[Re+2]=Be[fe[rt]]>>8,we[Re+3]=Be[fe[rt]]>>0,Re+=4,we[3]|=1<<fe[rt];$.messages.clientCutText(be,we,!0)},clientCutText:function(be,Ce){var Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,fe=be._sQ,we=be._sQlen;fe[we]=6,fe[we+1]=0,fe[we+2]=0,fe[we+3]=0;var Re;Be?Re=(0,y.toUnsigned32bit)(-Ce.length):Re=Ce.length,fe[we+4]=Re>>24,fe[we+5]=Re>>16,fe[we+6]=Re>>8,fe[we+7]=Re,be._sQlen+=8;for(var rt=0,St=Ce.length;St>0;){for(var ft=Math.min(St,be._sQbufferSize-be._sQlen),He=0;He<ft;He++)fe[be._sQlen+He]=Ce[rt+He];be._sQlen+=ft,be.flush(),St-=ft,rt+=ft}},setDesktopSize:function(be,Ce,Be,fe,we){var Re=be._sQ,rt=be._sQlen;Re[rt]=251,Re[rt+1]=0,Re[rt+2]=Ce>>8,Re[rt+3]=Ce,Re[rt+4]=Be>>8,Re[rt+5]=Be,Re[rt+6]=1,Re[rt+7]=0,Re[rt+8]=fe>>24,Re[rt+9]=fe>>16,Re[rt+10]=fe>>8,Re[rt+11]=fe,Re[rt+12]=0,Re[rt+13]=0,Re[rt+14]=0,Re[rt+15]=0,Re[rt+16]=Ce>>8,Re[rt+17]=Ce,Re[rt+18]=Be>>8,Re[rt+19]=Be,Re[rt+20]=we>>24,Re[rt+21]=we>>16,Re[rt+22]=we>>8,Re[rt+23]=we,be._sQlen+=24,be.flush()},clientFence:function(be,Ce,Be){var fe=be._sQ,we=be._sQlen;fe[we]=248,fe[we+1]=0,fe[we+2]=0,fe[we+3]=0,fe[we+4]=Ce>>24,fe[we+5]=Ce>>16,fe[we+6]=Ce>>8,fe[we+7]=Ce;var Re=Be.length;fe[we+8]=Re;for(var rt=0;rt<Re;rt++)fe[we+9+rt]=Be.charCodeAt(rt);be._sQlen+=9+Re,be.flush()},enableContinuousUpdates:function(be,Ce,Be,fe,we,Re){var rt=be._sQ,St=be._sQlen;rt[St]=150,rt[St+1]=Ce,rt[St+2]=Be>>8,rt[St+3]=Be,rt[St+4]=fe>>8,rt[St+5]=fe,rt[St+6]=we>>8,rt[St+7]=we,rt[St+8]=Re>>8,rt[St+9]=Re,be._sQlen+=10,be.flush()},pixelFormat:function(be,Ce,Be){var fe=be._sQ,we=be._sQlen,Re;Ce>16?Re=32:Ce>8?Re=16:Re=8;var rt=Math.floor(Ce/3);fe[we]=0,fe[we+1]=0,fe[we+2]=0,fe[we+3]=0,fe[we+4]=Re,fe[we+5]=Ce,fe[we+6]=0,fe[we+7]=Be?1:0,fe[we+8]=0,fe[we+9]=(1<<rt)-1,fe[we+10]=0,fe[we+11]=(1<<rt)-1,fe[we+12]=0,fe[we+13]=(1<<rt)-1,fe[we+14]=rt*2,fe[we+15]=rt*1,fe[we+16]=rt*0,fe[we+17]=0,fe[we+18]=0,fe[we+19]=0,be._sQlen+=20,be.flush()},clientEncodings:function(be,Ce){var Be=be._sQ,fe=be._sQlen;Be[fe]=2,Be[fe+1]=0,Be[fe+2]=Ce.length>>8,Be[fe+3]=Ce.length;for(var we=fe+4,Re=0;Re<Ce.length;Re++){var rt=Ce[Re];Be[we]=rt>>24,Be[we+1]=rt>>16,Be[we+2]=rt>>8,Be[we+3]=rt,we+=4}be._sQlen+=we-fe,be.flush()},fbUpdateRequest:function(be,Ce,Be,fe,we,Re){var rt=be._sQ,St=be._sQlen;typeof Be=="undefined"&&(Be=0),typeof fe=="undefined"&&(fe=0),rt[St]=3,rt[St+1]=Ce?1:0,rt[St+2]=Be>>8&255,rt[St+3]=Be&255,rt[St+4]=fe>>8&255,rt[St+5]=fe&255,rt[St+6]=we>>8&255,rt[St+7]=we&255,rt[St+8]=Re>>8&255,rt[St+9]=Re&255,be._sQlen+=10,be.flush()},xvpOp:function(be,Ce,Be){var fe=be._sQ,we=be._sQlen;fe[we]=250,fe[we+1]=0,fe[we+2]=Ce,fe[we+3]=Be,be._sQlen+=4,be.flush()}},$.cursors={none:{rgbaPixels:new Uint8Array,w:0,h:0,hotx:0,hoty:0},dot:{rgbaPixels:new Uint8Array([255,255,255,255,0,0,0,255,255,255,255,255,0,0,0,255,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,255,255,255,255,255]),w:3,h:3,hotx:1,hoty:1}}},"1eCo":function(R,D,n){(function(y){y(n("VrN/"))})(function(y){"use strict";var f={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},x={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};y.defineMode("xml",function(v,m){var p=v.indentUnit,d={},u=m.htmlMode?f:x;for(var s in u)d[s]=u[s];for(var s in m)d[s]=m[s];var i,t;function o(I,k){function M(X){return k.tokenize=X,X(I,k)}var j=I.next();if(j=="<")return I.eat("!")?I.eat("[")?I.match("CDATA[")?M(r("atom","]]>")):null:I.match("--")?M(r("comment","-->")):I.match("DOCTYPE",!0,!0)?(I.eatWhile(/[\w\._\-]/),M(a(1))):null:I.eat("?")?(I.eatWhile(/[\w\._\-]/),k.tokenize=r("meta","?>"),"meta"):(i=I.eat("/")?"closeTag":"openTag",k.tokenize=e,"tag bracket");if(j=="&"){var P;return I.eat("#")?I.eat("x")?P=I.eatWhile(/[a-fA-F\d]/)&&I.eat(";"):P=I.eatWhile(/[\d]/)&&I.eat(";"):P=I.eatWhile(/[\w\.\-:]/)&&I.eat(";"),P?"atom":"error"}else return I.eatWhile(/[^&<]/),null}o.isInText=!0;function e(I,k){var M=I.next();if(M==">"||M=="/"&&I.eat(">"))return k.tokenize=o,i=M==">"?"endTag":"selfcloseTag","tag bracket";if(M=="=")return i="equals",null;if(M=="<"){k.tokenize=o,k.state=A,k.tagName=k.tagStart=null;var j=k.tokenize(I,k);return j?j+" tag error":"tag error"}else return/[\'\"]/.test(M)?(k.tokenize=l(M),k.stringStartCol=I.column(),k.tokenize(I,k)):(I.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(I){var k=function(j,P){for(;!j.eol();)if(j.next()==I){P.tokenize=e;break}return"string"};return k.isInAttribute=!0,k}function r(I,k){return function(M,j){for(;!M.eol();){if(M.match(k)){j.tokenize=o;break}M.next()}return I}}function a(I){return function(k,M){for(var j;(j=k.next())!=null;){if(j=="<")return M.tokenize=a(I+1),M.tokenize(k,M);if(j==">")if(I==1){M.tokenize=o;break}else return M.tokenize=a(I-1),M.tokenize(k,M)}return"meta"}}function c(I,k,M){this.prev=I.context,this.tagName=k,this.indent=I.indented,this.startOfLine=M,(d.doNotIndent.hasOwnProperty(k)||I.context&&I.context.noIndent)&&(this.noIndent=!0)}function h(I){I.context&&(I.context=I.context.prev)}function g(I,k){for(var M;;){if(!I.context)return;if(M=I.context.tagName,!d.contextGrabbers.hasOwnProperty(M)||!d.contextGrabbers[M].hasOwnProperty(k))return;h(I)}}function A(I,k,M){return I=="openTag"?(M.tagStart=k.column(),b):I=="closeTag"?S:A}function b(I,k,M){return I=="word"?(M.tagName=k.current(),t="tag",_):d.allowMissingTagName&&I=="endTag"?(t="tag bracket",_(I,k,M)):(t="error",b)}function S(I,k,M){if(I=="word"){var j=k.current();return M.context&&M.context.tagName!=j&&d.implicitlyClosed.hasOwnProperty(M.context.tagName)&&h(M),M.context&&M.context.tagName==j||d.matchClosing===!1?(t="tag",E):(t="tag error",C)}else return d.allowMissingTagName&&I=="endTag"?(t="tag bracket",E(I,k,M)):(t="error",C)}function E(I,k,M){return I!="endTag"?(t="error",E):(h(M),A)}function C(I,k,M){return t="error",E(I,k,M)}function _(I,k,M){if(I=="word")return t="attribute",T;if(I=="endTag"||I=="selfcloseTag"){var j=M.tagName,P=M.tagStart;return M.tagName=M.tagStart=null,I=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(j)?g(M,j):(g(M,j),M.context=new c(M,j,P==M.indented)),A}return t="error",_}function T(I,k,M){return I=="equals"?w:(d.allowMissing||(t="error"),_(I,k,M))}function w(I,k,M){return I=="string"?O:I=="word"&&d.allowUnquoted?(t="string",_):(t="error",_(I,k,M))}function O(I,k,M){return I=="string"?O:_(I,k,M)}return{startState:function(k){var M={tokenize:o,state:A,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(M.baseIndent=k),M},token:function(k,M){if(!M.tagName&&k.sol()&&(M.indented=k.indentation()),k.eatSpace())return null;i=null;var j=M.tokenize(k,M);return(j||i)&&j!="comment"&&(t=null,M.state=M.state(i||j,k,M),t&&(j=t=="error"?j+" error":t)),j},indent:function(k,M,j){var P=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+p;if(P&&P.noIndent)return y.Pass;if(k.tokenize!=e&&k.tokenize!=o)return j?j.match(/^(\s*)/)[0].length:0;if(k.tagName)return d.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+p*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(M))return 0;var X=M&&/^<(\/)?([\w_:\.-]*)/.exec(M);if(X&&X[1])for(;P;)if(P.tagName==X[2]){P=P.prev;break}else if(d.implicitlyClosed.hasOwnProperty(P.tagName))P=P.prev;else break;else if(X)for(;P;){var F=d.contextGrabbers[P.tagName];if(F&&F.hasOwnProperty(X[2]))P=P.prev;else break}for(;P&&P.prev&&!P.startOfLine;)P=P.prev;return P?P.indent+p:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(k){k.state==w&&(k.state=_)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var M=[],j=k.context;j;j=j.prev)j.tagName&&M.push(j.tagName);return M.reverse()}}}),y.defineMIME("text/xml","xml"),y.defineMIME("application/xml","xml"),y.mimeModes.hasOwnProperty("text/html")||y.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1hJj":function(R,D,n){var y=n("e4Nc"),f=n("ftKO"),x=n("3A9y");function v(m){var p=-1,d=m==null?0:m.length;for(this.__data__=new y;++p<d;)this.add(m[p])}v.prototype.add=v.prototype.push=f,v.prototype.has=x,R.exports=v},"1n7x":function(R,D,n){(function(y,f){/*!
|
|
|
* html2pdf.js v0.10.1
|
|
|
* Copyright (c) 2021 Erik Koopmans
|
|
|
* Released under the MIT License.
|
|
|
*/(function(v,m){R.exports=m(n("dtIV"),n("wOnQ"))})(self,function(x,v){return function(){var m={"./src/plugin/hyperlinks.js":function(i,t,o){"use strict";o.r(t);var e=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),l=o.n(e),r=o("./node_modules/core-js/modules/es.string.link.js"),a=o.n(r),c=o("./src/worker.js"),h=o("./src/utils.js"),g=[],A={toContainer:c.default.prototype.toContainer,toPdf:c.default.prototype.toPdf};c.default.prototype.toContainer=function(){return A.toContainer.call(this).then(function(){if(this.opt.enableLinks){var E=this.prop.container,C=E.querySelectorAll("a"),_=(0,h.unitConvert)(E.getBoundingClientRect(),this.prop.pageSize.k);g=[],Array.prototype.forEach.call(C,function(T){for(var w=T.getClientRects(),O=0;O<w.length;O++){var I=(0,h.unitConvert)(w[O],this.prop.pageSize.k);I.left-=_.left,I.top-=_.top;var k=Math.floor(I.top/this.prop.pageSize.inner.height)+1,M=this.opt.margin[0]+I.top%this.prop.pageSize.inner.height,j=this.opt.margin[1]+I.left;g.push({page:k,top:M,left:j,clientRect:I,link:T})}},this)}})},c.default.prototype.toPdf=function(){return A.toPdf.call(this).then(function(){if(this.opt.enableLinks){g.forEach(function(C){this.prop.pdf.setPage(C.page),this.prop.pdf.link(C.left,C.top,C.clientRect.width,C.clientRect.height,{url:C.link.href})},this);var E=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(E)}})}},"./src/plugin/jspdf-plugin.js":function(i,t,o){"use strict";o.r(t);var e=o("./node_modules/core-js/modules/es.symbol.js"),l=o.n(e),r=o("./node_modules/core-js/modules/es.symbol.description.js"),a=o.n(r),c=o("./node_modules/core-js/modules/es.object.to-string.js"),h=o.n(c),g=o("./node_modules/core-js/modules/es.symbol.iterator.js"),A=o.n(g),b=o("./node_modules/core-js/modules/es.array.iterator.js"),S=o.n(b),E=o("./node_modules/core-js/modules/es.string.iterator.js"),C=o.n(E),_=o("./node_modules/core-js/modules/web.dom-collections.iterator.js"),T=o.n(_),w=o("jspdf"),O=o.n(w);function I(k){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(j){return typeof j}:I=function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},I(k)}w.jsPDF.getPageSize=function(k,M,j){if(I(k)==="object"){var P=k;k=P.orientation,M=P.unit||M,j=P.format||j}M=M||"mm",j=j||"a4",k=(""+(k||"P")).toLowerCase();var X=(""+j).toLowerCase(),F={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(M){case"pt":var 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: "+M}if(F.hasOwnProperty(X))var K=F[X][1]/U,z=F[X][0]/U;else try{var K=j[1],z=j[0]}catch(G){throw new Error("Invalid format: "+j)}if(k==="p"||k==="portrait"){if(k="p",z>K){var V=z;z=K,K=V}}else if(k==="l"||k==="landscape"){if(k="l",K>z){var V=z;z=K,K=V}}else throw"Invalid orientation: "+k;var Q={width:z,height:K,unit:M,k:U};return Q},t.default=w.jsPDF},"./src/plugin/pagebreaks.js":function(i,t,o){"use strict";o.r(t);var e=o("./node_modules/core-js/modules/es.array.concat.js"),l=o.n(e),r=o("./node_modules/core-js/modules/es.array.slice.js"),a=o.n(r),c=o("./node_modules/core-js/modules/es.array.join.js"),h=o.n(c),g=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),A=o.n(g),b=o("./node_modules/core-js/modules/es.object.keys.js"),S=o.n(b),E=o("./src/worker.js"),C=o("./src/utils.js"),_={toContainer:E.default.prototype.toContainer};E.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},E.default.prototype.toContainer=function(){return _.toContainer.call(this).then(function(){var O=this.prop.container,I=this.prop.pageSize.inner.px.height,k=[].concat(this.opt.pagebreak.mode),M={avoidAll:k.indexOf("avoid-all")!==-1,css:k.indexOf("css")!==-1,legacy:k.indexOf("legacy")!==-1},j={},P=this;["before","after","avoid"].forEach(function(U){var K=M.avoidAll&&U==="avoid";j[U]=K?[]:[].concat(P.opt.pagebreak[U]||[]),j[U].length>0&&(j[U]=Array.prototype.slice.call(O.querySelectorAll(j[U].join(", "))))});var X=O.querySelectorAll(".html2pdf__page-break");X=Array.prototype.slice.call(X);var F=O.querySelectorAll("*");Array.prototype.forEach.call(F,function(K){var z={before:!1,after:M.legacy&&X.indexOf(K)!==-1,avoid:M.avoidAll};if(M.css){var V=window.getComputedStyle(K),Q=["always","page","left","right"],G=["avoid","avoid-page"];z={before:z.before||Q.indexOf(V.breakBefore||V.pageBreakBefore)!==-1,after:z.after||Q.indexOf(V.breakAfter||V.pageBreakAfter)!==-1,avoid:z.avoid||G.indexOf(V.breakInside||V.pageBreakInside)!==-1}}Object.keys(z).forEach(function(Oe){z[Oe]=z[Oe]||j[Oe].indexOf(K)!==-1});var te=K.getBoundingClientRect();if(z.avoid&&!z.before){var q=Math.floor(te.top/I),se=Math.floor(te.bottom/I),re=Math.abs(te.bottom-te.top)/I;se!==q&&re<=1&&(z.before=!0)}if(z.before){var xe=(0,C.createElement)("div",{style:{display:"block",height:I-te.top%I+"px"}});K.parentNode.insertBefore(xe,K)}if(z.after){var xe=(0,C.createElement)("div",{style:{display:"block",height:I-te.bottom%I+"px"}});K.parentNode.insertBefore(xe,K.nextSibling)}})})}},"./src/utils.js":function(i,t,o){"use strict";o.r(t),o.d(t,{objType:function(){return k},createElement:function(){return M},cloneNode:function(){return j},unitConvert:function(){return P},toPx:function(){return X}});var e=o("./node_modules/core-js/modules/es.number.constructor.js"),l=o.n(e),r=o("./node_modules/core-js/modules/es.symbol.js"),a=o.n(r),c=o("./node_modules/core-js/modules/es.symbol.description.js"),h=o.n(c),g=o("./node_modules/core-js/modules/es.object.to-string.js"),A=o.n(g),b=o("./node_modules/core-js/modules/es.symbol.iterator.js"),S=o.n(b),E=o("./node_modules/core-js/modules/es.array.iterator.js"),C=o.n(E),_=o("./node_modules/core-js/modules/es.string.iterator.js"),T=o.n(_),w=o("./node_modules/core-js/modules/web.dom-collections.iterator.js"),O=o.n(w);function I(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(K){return typeof K}:I=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},I(F)}var k=function(U){var K=I(U);return K==="undefined"?"undefined":K==="string"||U instanceof String?"string":K==="number"||U instanceof Number?"number":K==="function"||U instanceof Function?"function":!!U&&U.constructor===Array?"array":U&&U.nodeType===1?"element":K==="object"?"object":"unknown"},M=function(U,K){var z=document.createElement(U);if(K.className&&(z.className=K.className),K.innerHTML){z.innerHTML=K.innerHTML;for(var V=z.getElementsByTagName("script"),Q=V.length;Q-- >0;null)V[Q].parentNode.removeChild(V[Q])}for(var G in K.style)z.style[G]=K.style[G];return z},j=function F(U,K){for(var z=U.nodeType===3?document.createTextNode(U.nodeValue):U.cloneNode(!1),V=U.firstChild;V;V=V.nextSibling)(K===!0||V.nodeType!==1||V.nodeName!=="SCRIPT")&&z.appendChild(F(V,K));return U.nodeType===1&&(U.nodeName==="CANVAS"?(z.width=U.width,z.height=U.height,z.getContext("2d").drawImage(U,0,0)):(U.nodeName==="TEXTAREA"||U.nodeName==="SELECT")&&(z.value=U.value),z.addEventListener("load",function(){z.scrollTop=U.scrollTop,z.scrollLeft=U.scrollLeft},!0)),z},P=function(U,K){if(k(U)==="number")return U*72/96/K;var z={};for(var V in U)z[V]=U[V]*72/96/K;return z},X=function(U,K){return Math.floor(U*K/72*96)}},"./src/worker.js":function(i,t,o){"use strict";o.r(t);var e=o("./node_modules/core-js/modules/es.object.assign.js"),l=o.n(e),r=o("./node_modules/core-js/modules/es.array.map.js"),a=o.n(r),c=o("./node_modules/core-js/modules/es.object.keys.js"),h=o.n(c),g=o("./node_modules/core-js/modules/es.array.concat.js"),A=o.n(g),b=o("./node_modules/core-js/modules/es.object.to-string.js"),S=o.n(b),E=o("./node_modules/core-js/modules/es.regexp.to-string.js"),C=o.n(E),_=o("./node_modules/core-js/modules/es.function.name.js"),T=o.n(_),w=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),O=o.n(w),I=o("jspdf"),k=o.n(I),M=o("html2canvas"),j=o.n(M),P=o("./src/utils.js"),X=o("./node_modules/es6-promise/dist/es6-promise.js"),F=o.n(X),U=F().Promise,K=function z(V){var Q=Object.assign(z.convert(U.resolve()),JSON.parse(JSON.stringify(z.template))),G=z.convert(U.resolve(),Q);return G=G.setProgress(1,z,1,[z]),G=G.set(V),G};K.prototype=Object.create(U.prototype),K.prototype.constructor=K,K.convert=function(V,Q){return V.__proto__=Q||K.prototype,V},K.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},K.prototype.from=function(V,Q){function G(te){switch((0,P.objType)(te)){case"string":return"string";case"element":return te.nodeName.toLowerCase==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){Q=Q||G(V);switch(Q){case"string":return this.set({src:(0,P.createElement)("div",{innerHTML:V})});case"element":return this.set({src:V});case"canvas":return this.set({canvas:V});case"img":return this.set({img:V});default:return this.error("Unknown source type.")}})},K.prototype.to=function(V){switch(V){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},K.prototype.toContainer=function(){var V=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(V).then(function(){var G={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},te={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};G.opacity=0;var q=(0,P.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,P.createElement)("div",{className:"html2pdf__overlay",style:G}),this.prop.container=(0,P.createElement)("div",{className:"html2pdf__container",style:te}),this.prop.container.appendChild(q),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},K.prototype.toCanvas=function(){var V=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(V).then(function(){var G=Object.assign({},this.opt.html2canvas);return delete G.onrendered,M(this.prop.container,G)}).then(function(G){var te=this.opt.html2canvas.onrendered||function(){};te(G),this.prop.canvas=G,document.body.removeChild(this.prop.overlay)})},K.prototype.toImg=function(){var V=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(V).then(function(){var G=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=G})},K.prototype.toPdf=function(){var V=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(V).then(function(){var G=this.prop.canvas,te=this.opt,q=G.height,se=Math.floor(G.width*this.prop.pageSize.inner.ratio),re=Math.ceil(q/se),xe=this.prop.pageSize.inner.height,Oe=document.createElement("canvas"),Me=Oe.getContext("2d");Oe.width=G.width,Oe.height=se,this.prop.pdf=this.prop.pdf||new I.jsPDF(te.jsPDF);for(var Qe=0;Qe<re;Qe++){Qe===re-1&&q%se!==0&&(Oe.height=q%se,xe=Oe.height*this.prop.pageSize.inner.width/Oe.width);var Ve=Oe.width,ut=Oe.height;Me.fillStyle="white",Me.fillRect(0,0,Ve,ut),Me.drawImage(G,0,Qe*se,Ve,ut,0,0,Ve,ut),Qe&&this.prop.pdf.addPage();var Fe=Oe.toDataURL("image/"+te.image.type,te.image.quality);this.prop.pdf.addImage(Fe,te.image.type,te.margin[1],te.margin[0],this.prop.pageSize.inner.width,xe)}})},K.prototype.output=function(V,Q,G){return G=G||"pdf",G.toLowerCase()==="img"||G.toLowerCase()==="image"?this.outputImg(V,Q):this.outputPdf(V,Q)},K.prototype.outputPdf=function(V,Q){var G=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(G).then(function(){return this.prop.pdf.output(V,Q)})},K.prototype.outputImg=function(V,Q){var G=[function(){return this.prop.img||this.toImg()}];return this.thenList(G).then(function(){switch(V){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+V+'" is not supported.'}})},K.prototype.save=function(V){var Q=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Q).set(V?{filename:V}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},K.prototype.set=function(V){if((0,P.objType)(V)!=="object")return this;var Q=Object.keys(V||{}).map(function(G){switch(G){case"margin":return this.setMargin.bind(this,V.margin);case"jsPDF":return function(){return this.opt.jsPDF=V.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,V.pageSize);default:return G in K.template.prop?function(){this.prop[G]=V[G]}:function(){this.opt[G]=V[G]}}},this);return this.then(function(){return this.thenList(Q)})},K.prototype.get=function(V,Q){return this.then(function(){var te=V in K.template.prop?this.prop[V]:this.opt[V];return Q?Q(te):te})},K.prototype.setMargin=function(V){return this.then(function(){switch((0,P.objType)(V)){case"number":V=[V,V,V,V];case"array":if(V.length===2&&(V=[V[0],V[1],V[0],V[1]]),V.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=V}).then(this.setPageSize)},K.prototype.setPageSize=function(V){return this.then(function(){V=V||I.jsPDF.getPageSize(this.opt.jsPDF),V.hasOwnProperty("inner")||(V.inner={width:V.width-this.opt.margin[1]-this.opt.margin[3],height:V.height-this.opt.margin[0]-this.opt.margin[2]},V.inner.px={width:(0,P.toPx)(V.inner.width,V.k),height:(0,P.toPx)(V.inner.height,V.k)},V.inner.ratio=V.inner.height/V.inner.width),this.prop.pageSize=V})},K.prototype.setProgress=function(V,Q,G,te){return V!=null&&(this.progress.val=V),Q!=null&&(this.progress.state=Q),G!=null&&(this.progress.n=G),te!=null&&(this.progress.stack=te),this.progress.ratio=this.progress.val/this.progress.state,this},K.prototype.updateProgress=function(V,Q,G,te){return this.setProgress(V?this.progress.val+V:null,Q||null,G?this.progress.n+G:null,te?this.progress.stack.concat(te):null)},K.prototype.then=function(V,Q){var G=this;return this.thenCore(V,Q,function(q,se){return G.updateProgress(null,null,1,[q]),U.prototype.then.call(this,function(xe){return G.updateProgress(null,q),xe}).then(q,se).then(function(xe){return G.updateProgress(1),xe})})},K.prototype.thenCore=function(V,Q,G){G=G||U.prototype.then;var te=this;V&&(V=V.bind(te)),Q&&(Q=Q.bind(te));var q=U.toString().indexOf("[native code]")!==-1&&U.name==="Promise",se=q?te:K.convert(Object.assign({},te),U.prototype),re=G.call(se,V,Q);return K.convert(re,te.__proto__)},K.prototype.thenExternal=function(V,Q){return U.prototype.then.call(this,V,Q)},K.prototype.thenList=function(V){var Q=this;return V.forEach(function(te){Q=Q.thenCore(te)}),Q},K.prototype.catch=function(z){z&&(z=z.bind(this));var V=U.prototype.catch.call(this,z);return K.convert(V,this)},K.prototype.catchExternal=function(V){return U.prototype.catch.call(this,V)},K.prototype.error=function(V){return this.then(function(){throw new Error(V)})},K.prototype.using=K.prototype.set,K.prototype.saveAs=K.prototype.save,K.prototype.export=K.prototype.output,K.prototype.run=K.prototype.then,t.default=K},"./node_modules/core-js/internals/a-function.js":function(i){i.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"./node_modules/core-js/internals/a-possible-prototype.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js");i.exports=function(l){if(!e(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"./node_modules/core-js/internals/add-to-unscopables.js":function(i,t,o){var e=o("./node_modules/core-js/internals/well-known-symbol.js"),l=o("./node_modules/core-js/internals/object-create.js"),r=o("./node_modules/core-js/internals/object-define-property.js"),a=e("unscopables"),c=Array.prototype;c[a]==null&&r.f(c,a,{configurable:!0,value:l(null)}),i.exports=function(h){c[a][h]=!0}},"./node_modules/core-js/internals/an-object.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js");i.exports=function(l){if(!e(l))throw TypeError(String(l)+" is not an object");return l}},"./node_modules/core-js/internals/array-for-each.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/array-iteration.js").forEach,l=o("./node_modules/core-js/internals/array-method-is-strict.js"),r=l("forEach");i.exports=r?[].forEach:function(c){return e(this,c,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-indexed-object.js"),l=o("./node_modules/core-js/internals/to-length.js"),r=o("./node_modules/core-js/internals/to-absolute-index.js"),a=function(h){return function(g,A,b){var S=e(g),E=l(S.length),C=r(b,E),_;if(h&&A!=A){for(;E>C;)if(_=S[C++],_!=_)return!0}else for(;E>C;C++)if((h||C in S)&&S[C]===A)return h||C||0;return!h&&-1}};i.exports={includes:a(!0),indexOf:a(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(i,t,o){var e=o("./node_modules/core-js/internals/function-bind-context.js"),l=o("./node_modules/core-js/internals/indexed-object.js"),r=o("./node_modules/core-js/internals/to-object.js"),a=o("./node_modules/core-js/internals/to-length.js"),c=o("./node_modules/core-js/internals/array-species-create.js"),h=[].push,g=function(b){var S=b==1,E=b==2,C=b==3,_=b==4,T=b==6,w=b==7,O=b==5||T;return function(I,k,M,j){for(var P=r(I),X=l(P),F=e(k,M,3),U=a(X.length),K=0,z=j||c,V=S?z(I,U):E||w?z(I,0):void 0,Q,G;U>K;K++)if((O||K in X)&&(Q=X[K],G=F(Q,K,P),b))if(S)V[K]=G;else if(G)switch(b){case 3:return!0;case 5:return Q;case 6:return K;case 2:h.call(V,Q)}else switch(b){case 4:return!1;case 7:h.call(V,Q)}return T?-1:C||_?_:V}};i.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterReject:g(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js"),l=o("./node_modules/core-js/internals/well-known-symbol.js"),r=o("./node_modules/core-js/internals/engine-v8-version.js"),a=l("species");i.exports=function(c){return r>=51||!e(function(){var h=[],g=h.constructor={};return g[a]=function(){return{foo:1}},h[c](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/fails.js");i.exports=function(l,r){var a=[][l];return!!a&&e(function(){a.call(null,r||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js"),l=o("./node_modules/core-js/internals/is-array.js"),r=o("./node_modules/core-js/internals/well-known-symbol.js"),a=r("species");i.exports=function(c){var h;return l(c)&&(h=c.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:e(h)&&(h=h[a],h===null&&(h=void 0))),h===void 0?Array:h}},"./node_modules/core-js/internals/array-species-create.js":function(i,t,o){var e=o("./node_modules/core-js/internals/array-species-constructor.js");i.exports=function(l,r){return new(e(l))(r===0?0:r)}},"./node_modules/core-js/internals/classof-raw.js":function(i){var t={}.toString;i.exports=function(o){return t.call(o).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-string-tag-support.js"),l=o("./node_modules/core-js/internals/classof-raw.js"),r=o("./node_modules/core-js/internals/well-known-symbol.js"),a=r("toStringTag"),c=l(function(){return arguments}())=="Arguments",h=function(A,b){try{return A[b]}catch(S){}};i.exports=e?l:function(g){var A,b,S;return g===void 0?"Undefined":g===null?"Null":typeof(b=h(A=Object(g),a))=="string"?b:c?l(A):(S=l(A))=="Object"&&typeof A.callee=="function"?"Arguments":S}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(i,t,o){var e=o("./node_modules/core-js/internals/has.js"),l=o("./node_modules/core-js/internals/own-keys.js"),r=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),a=o("./node_modules/core-js/internals/object-define-property.js");i.exports=function(c,h){for(var g=l(h),A=a.f,b=r.f,S=0;S<g.length;S++){var E=g[S];e(c,E)||A(c,E,b(h,E))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js");i.exports=!e(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},"./node_modules/core-js/internals/create-html.js":function(i,t,o){var e=o("./node_modules/core-js/internals/require-object-coercible.js"),l=o("./node_modules/core-js/internals/to-string.js"),r=/"/g;i.exports=function(a,c,h,g){var A=l(e(a)),b="<"+c;return h!==""&&(b+=" "+h+'="'+l(g).replace(r,""")+'"'),b+">"+A+"</"+c+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,l=o("./node_modules/core-js/internals/object-create.js"),r=o("./node_modules/core-js/internals/create-property-descriptor.js"),a=o("./node_modules/core-js/internals/set-to-string-tag.js"),c=o("./node_modules/core-js/internals/iterators.js"),h=function(){return this};i.exports=function(g,A,b){var S=A+" Iterator";return g.prototype=l(e,{next:r(1,b)}),a(g,S,!1,!0),c[S]=h,g}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/object-define-property.js"),r=o("./node_modules/core-js/internals/create-property-descriptor.js");i.exports=e?function(a,c,h){return l.f(a,c,r(1,h))}:function(a,c,h){return a[c]=h,a}},"./node_modules/core-js/internals/create-property-descriptor.js":function(i){i.exports=function(t,o){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:o}}},"./node_modules/core-js/internals/create-property.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/to-property-key.js"),l=o("./node_modules/core-js/internals/object-define-property.js"),r=o("./node_modules/core-js/internals/create-property-descriptor.js");i.exports=function(a,c,h){var g=e(c);g in a?l.f(a,g,r(0,h)):a[g]=h}},"./node_modules/core-js/internals/define-iterator.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/create-iterator-constructor.js"),r=o("./node_modules/core-js/internals/object-get-prototype-of.js"),a=o("./node_modules/core-js/internals/object-set-prototype-of.js"),c=o("./node_modules/core-js/internals/set-to-string-tag.js"),h=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),g=o("./node_modules/core-js/internals/redefine.js"),A=o("./node_modules/core-js/internals/well-known-symbol.js"),b=o("./node_modules/core-js/internals/is-pure.js"),S=o("./node_modules/core-js/internals/iterators.js"),E=o("./node_modules/core-js/internals/iterators-core.js"),C=E.IteratorPrototype,_=E.BUGGY_SAFARI_ITERATORS,T=A("iterator"),w="keys",O="values",I="entries",k=function(){return this};i.exports=function(M,j,P,X,F,U,K){l(P,j,X);var z=function(Qe){if(Qe===F&&q)return q;if(!_&&Qe in G)return G[Qe];switch(Qe){case w:return function(){return new P(this,Qe)};case O:return function(){return new P(this,Qe)};case I:return function(){return new P(this,Qe)}}return function(){return new P(this)}},V=j+" Iterator",Q=!1,G=M.prototype,te=G[T]||G["@@iterator"]||F&&G[F],q=!_&&te||z(F),se=j=="Array"&&G.entries||te,re,xe,Oe;if(se&&(re=r(se.call(new M)),C!==Object.prototype&&re.next&&(!b&&r(re)!==C&&(a?a(re,C):typeof re[T]!="function"&&h(re,T,k)),c(re,V,!0,!0),b&&(S[V]=k))),F==O&&te&&te.name!==O&&(Q=!0,q=function(){return te.call(this)}),(!b||K)&&G[T]!==q&&h(G,T,q),S[j]=q,F)if(xe={values:z(O),keys:U?q:z(w),entries:z(I)},K)for(Oe in xe)(_||Q||!(Oe in G))&&g(G,Oe,xe[Oe]);else e({target:j,proto:!0,forced:_||Q},xe);return xe}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(i,t,o){var e=o("./node_modules/core-js/internals/path.js"),l=o("./node_modules/core-js/internals/has.js"),r=o("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),a=o("./node_modules/core-js/internals/object-define-property.js").f;i.exports=function(c){var h=e.Symbol||(e.Symbol={});l(h,c)||a(h,c,{value:r.f(c)})}},"./node_modules/core-js/internals/descriptors.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js");i.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/is-object.js"),r=e.document,a=l(r)&&l(r.createElement);i.exports=function(c){return a?r.createElement(c):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(i){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(i,t,o){var e=o("./node_modules/core-js/internals/get-built-in.js");i.exports=e("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/engine-user-agent.js"),r=e.process,a=e.Deno,c=r&&r.versions||a&&a.version,h=c&&c.v8,g,A;h?(g=h.split("."),A=g[0]<4?1:g[0]+g[1]):l&&(g=l.match(/Edge\/(\d+)/),(!g||g[1]>=74)&&(g=l.match(/Chrome\/(\d+)/),g&&(A=g[1]))),i.exports=A&&+A},"./node_modules/core-js/internals/enum-bug-keys.js":function(i){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,r=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=o("./node_modules/core-js/internals/redefine.js"),c=o("./node_modules/core-js/internals/set-global.js"),h=o("./node_modules/core-js/internals/copy-constructor-properties.js"),g=o("./node_modules/core-js/internals/is-forced.js");i.exports=function(A,b){var S=A.target,E=A.global,C=A.stat,_,T,w,O,I,k;if(E?T=e:C?T=e[S]||c(S,{}):T=(e[S]||{}).prototype,T)for(w in b){if(I=b[w],A.noTargetGet?(k=l(T,w),O=k&&k.value):O=T[w],_=g(E?w:S+(C?".":"#")+w,A.forced),!_&&O!==void 0){if(typeof I===typeof O)continue;h(I,O)}(A.sham||O&&O.sham)&&r(I,"sham",!0),a(T,w,I,A)}}},"./node_modules/core-js/internals/fails.js":function(i){i.exports=function(t){try{return!!t()}catch(o){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(i,t,o){var e=o("./node_modules/core-js/internals/a-function.js");i.exports=function(l,r,a){if(e(l),r===void 0)return l;switch(a){case 0:return function(){return l.call(r)};case 1:return function(c){return l.call(r,c)};case 2:return function(c,h){return l.call(r,c,h)};case 3:return function(c,h,g){return l.call(r,c,h,g)}}return function(){return l.apply(r,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=function(a){return typeof a=="function"?a:void 0};i.exports=function(r,a){return arguments.length<2?l(e[r]):e[r]&&e[r][a]}},"./node_modules/core-js/internals/global.js":function(i){var t=function(e){return e&&e.Math==Math&&e};i.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof y=="object"&&y)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-object.js"),l={}.hasOwnProperty;i.exports=Object.hasOwn||function(a,c){return l.call(e(a),c)}},"./node_modules/core-js/internals/hidden-keys.js":function(i){i.exports={}},"./node_modules/core-js/internals/html.js":function(i,t,o){var e=o("./node_modules/core-js/internals/get-built-in.js");i.exports=e("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/fails.js"),r=o("./node_modules/core-js/internals/document-create-element.js");i.exports=!e&&!l(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js"),l=o("./node_modules/core-js/internals/classof-raw.js"),r="".split;i.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return l(a)=="String"?r.call(a,""):Object(a)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js"),l=o("./node_modules/core-js/internals/object-set-prototype-of.js");i.exports=function(r,a,c){var h,g;return l&&typeof(h=a.constructor)=="function"&&h!==c&&e(g=h.prototype)&&g!==c.prototype&&l(r,g),r}},"./node_modules/core-js/internals/inspect-source.js":function(i,t,o){var e=o("./node_modules/core-js/internals/shared-store.js"),l=Function.toString;typeof e.inspectSource!="function"&&(e.inspectSource=function(r){return l.call(r)}),i.exports=e.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(i,t,o){var e=o("./node_modules/core-js/internals/native-weak-map.js"),l=o("./node_modules/core-js/internals/global.js"),r=o("./node_modules/core-js/internals/is-object.js"),a=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=o("./node_modules/core-js/internals/has.js"),h=o("./node_modules/core-js/internals/shared-store.js"),g=o("./node_modules/core-js/internals/shared-key.js"),A=o("./node_modules/core-js/internals/hidden-keys.js"),b="Object already initialized",S=l.WeakMap,E,C,_,T=function(X){return _(X)?C(X):E(X,{})},w=function(X){return function(F){var U;if(!r(F)||(U=C(F)).type!==X)throw TypeError("Incompatible receiver, "+X+" required");return U}};if(e||h.state){var O=h.state||(h.state=new S),I=O.get,k=O.has,M=O.set;E=function(X,F){if(k.call(O,X))throw new TypeError(b);return F.facade=X,M.call(O,X,F),F},C=function(X){return I.call(O,X)||{}},_=function(X){return k.call(O,X)}}else{var j=g("state");A[j]=!0,E=function(X,F){if(c(X,j))throw new TypeError(b);return F.facade=X,a(X,j,F),F},C=function(X){return c(X,j)?X[j]:{}},_=function(X){return c(X,j)}}i.exports={set:E,get:C,has:_,enforce:T,getterFor:w}},"./node_modules/core-js/internals/is-array.js":function(i,t,o){var e=o("./node_modules/core-js/internals/classof-raw.js");i.exports=Array.isArray||function(r){return e(r)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js"),l=/#|\.prototype\./,r=function(b,S){var E=c[a(b)];return E==g?!0:E==h?!1:typeof S=="function"?e(S):!!S},a=r.normalize=function(A){return String(A).replace(l,".").toLowerCase()},c=r.data={},h=r.NATIVE="N",g=r.POLYFILL="P";i.exports=r},"./node_modules/core-js/internals/is-object.js":function(i){i.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},"./node_modules/core-js/internals/is-pure.js":function(i){i.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(i,t,o){var e=o("./node_modules/core-js/internals/get-built-in.js"),l=o("./node_modules/core-js/internals/use-symbol-as-uid.js");i.exports=l?function(r){return typeof r=="symbol"}:function(r){var a=e("Symbol");return typeof a=="function"&&Object(r)instanceof a}},"./node_modules/core-js/internals/iterators-core.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/fails.js"),l=o("./node_modules/core-js/internals/object-get-prototype-of.js"),r=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=o("./node_modules/core-js/internals/has.js"),c=o("./node_modules/core-js/internals/well-known-symbol.js"),h=o("./node_modules/core-js/internals/is-pure.js"),g=c("iterator"),A=!1,b=function(){return this},S,E,C;[].keys&&(C=[].keys(),"next"in C?(E=l(l(C)),E!==Object.prototype&&(S=E)):A=!0);var _=S==null||e(function(){var T={};return S[g].call(T)!==T});_&&(S={}),(!h||_)&&!a(S,g)&&r(S,g,b),i.exports={IteratorPrototype:S,BUGGY_SAFARI_ITERATORS:A}},"./node_modules/core-js/internals/iterators.js":function(i){i.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(i,t,o){var e=o("./node_modules/core-js/internals/engine-v8-version.js"),l=o("./node_modules/core-js/internals/fails.js");i.exports=!!Object.getOwnPropertySymbols&&!l(function(){var r=Symbol();return!String(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&e&&e<41})},"./node_modules/core-js/internals/native-weak-map.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/inspect-source.js"),r=e.WeakMap;i.exports=typeof r=="function"&&/native code/.test(l(r))},"./node_modules/core-js/internals/object-assign.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/fails.js"),r=o("./node_modules/core-js/internals/object-keys.js"),a=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),c=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),h=o("./node_modules/core-js/internals/to-object.js"),g=o("./node_modules/core-js/internals/indexed-object.js"),A=Object.assign,b=Object.defineProperty;i.exports=!A||l(function(){if(e&&A({b:1},A(b({},"a",{enumerable:!0,get:function(){b(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var S={},E={},C=Symbol(),_="abcdefghijklmnopqrst";return S[C]=7,_.split("").forEach(function(T){E[T]=T}),A({},S)[C]!=7||r(A({},E)).join("")!=_})?function(E,C){for(var _=h(E),T=arguments.length,w=1,O=a.f,I=c.f;T>w;)for(var k=g(arguments[w++]),M=O?r(k).concat(O(k)):r(k),j=M.length,P=0,X;j>P;)X=M[P++],(!e||I.call(k,X))&&(_[X]=k[X]);return _}:A},"./node_modules/core-js/internals/object-create.js":function(i,t,o){var e=o("./node_modules/core-js/internals/an-object.js"),l=o("./node_modules/core-js/internals/object-define-properties.js"),r=o("./node_modules/core-js/internals/enum-bug-keys.js"),a=o("./node_modules/core-js/internals/hidden-keys.js"),c=o("./node_modules/core-js/internals/html.js"),h=o("./node_modules/core-js/internals/document-create-element.js"),g=o("./node_modules/core-js/internals/shared-key.js"),A=">",b="<",S="prototype",E="script",C=g("IE_PROTO"),_=function(){},T=function(j){return b+E+A+j+b+"/"+E+A},w=function(j){j.write(T("")),j.close();var P=j.parentWindow.Object;return j=null,P},O=function(){var j=h("iframe"),P="java"+E+":",X;if(j.style)return j.style.display="none",c.appendChild(j),j.src=String(P),X=j.contentWindow.document,X.open(),X.write(T("document.F=Object")),X.close(),X.F},I,k=function(){try{I=new ActiveXObject("htmlfile")}catch(P){}k=document.domain&&I?w(I):O()||w(I);for(var j=r.length;j--;)delete k[S][r[j]];return k()};a[C]=!0,i.exports=Object.create||function(j,P){var X;return j!==null?(_[S]=e(j),X=new _,_[S]=null,X[C]=j):X=k(),P===void 0?X:l(X,P)}},"./node_modules/core-js/internals/object-define-properties.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/object-define-property.js"),r=o("./node_modules/core-js/internals/an-object.js"),a=o("./node_modules/core-js/internals/object-keys.js");i.exports=e?Object.defineProperties:function(h,g){r(h);for(var A=a(g),b=A.length,S=0,E;b>S;)l.f(h,E=A[S++],g[E]);return h}},"./node_modules/core-js/internals/object-define-property.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/ie8-dom-define.js"),r=o("./node_modules/core-js/internals/an-object.js"),a=o("./node_modules/core-js/internals/to-property-key.js"),c=Object.defineProperty;t.f=e?c:function(g,A,b){if(r(g),A=a(A),r(b),l)try{return c(g,A,b)}catch(S){}if("get"in b||"set"in b)throw TypeError("Accessors not supported");return"value"in b&&(g[A]=b.value),g}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),r=o("./node_modules/core-js/internals/create-property-descriptor.js"),a=o("./node_modules/core-js/internals/to-indexed-object.js"),c=o("./node_modules/core-js/internals/to-property-key.js"),h=o("./node_modules/core-js/internals/has.js"),g=o("./node_modules/core-js/internals/ie8-dom-define.js"),A=Object.getOwnPropertyDescriptor;t.f=e?A:function(S,E){if(S=a(S),E=c(E),g)try{return A(S,E)}catch(C){}if(h(S,E))return r(!l.f.call(S,E),S[E])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-indexed-object.js"),l=o("./node_modules/core-js/internals/object-get-own-property-names.js").f,r={}.toString,a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(g){try{return l(g)}catch(A){return a.slice()}};i.exports.f=function(g){return a&&r.call(g)=="[object Window]"?c(g):l(e(g))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(i,t,o){var e=o("./node_modules/core-js/internals/object-keys-internal.js"),l=o("./node_modules/core-js/internals/enum-bug-keys.js"),r=l.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(c){return e(c,r)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(i,t){t.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(i,t,o){var e=o("./node_modules/core-js/internals/has.js"),l=o("./node_modules/core-js/internals/to-object.js"),r=o("./node_modules/core-js/internals/shared-key.js"),a=o("./node_modules/core-js/internals/correct-prototype-getter.js"),c=r("IE_PROTO"),h=Object.prototype;i.exports=a?Object.getPrototypeOf:function(g){return g=l(g),e(g,c)?g[c]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?h:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(i,t,o){var e=o("./node_modules/core-js/internals/has.js"),l=o("./node_modules/core-js/internals/to-indexed-object.js"),r=o("./node_modules/core-js/internals/array-includes.js").indexOf,a=o("./node_modules/core-js/internals/hidden-keys.js");i.exports=function(c,h){var g=l(c),A=0,b=[],S;for(S in g)!e(a,S)&&e(g,S)&&b.push(S);for(;h.length>A;)e(g,S=h[A++])&&(~r(b,S)||b.push(S));return b}},"./node_modules/core-js/internals/object-keys.js":function(i,t,o){var e=o("./node_modules/core-js/internals/object-keys-internal.js"),l=o("./node_modules/core-js/internals/enum-bug-keys.js");i.exports=Object.keys||function(a){return e(a,l)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(i,t){"use strict";var o={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,l=e&&!o.call({1:2},1);t.f=l?function(a){var c=e(this,a);return!!c&&c.enumerable}:o},"./node_modules/core-js/internals/object-set-prototype-of.js":function(i,t,o){var e=o("./node_modules/core-js/internals/an-object.js"),l=o("./node_modules/core-js/internals/a-possible-prototype.js");i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,a={},c;try{c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,c.call(a,[]),r=a instanceof Array}catch(h){}return function(g,A){return e(g),l(A),r?c.call(g,A):g.__proto__=A,g}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/to-string-tag-support.js"),l=o("./node_modules/core-js/internals/classof.js");i.exports=e?{}.toString:function(){return"[object "+l(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js");i.exports=function(l,r){var a,c;if(r==="string"&&typeof(a=l.toString)=="function"&&!e(c=a.call(l)))return c;if(typeof(a=l.valueOf)=="function"&&!e(c=a.call(l)))return c;if(r!=="string"&&typeof(a=l.toString)=="function"&&!e(c=a.call(l)))return c;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(i,t,o){var e=o("./node_modules/core-js/internals/get-built-in.js"),l=o("./node_modules/core-js/internals/object-get-own-property-names.js"),r=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),a=o("./node_modules/core-js/internals/an-object.js");i.exports=e("Reflect","ownKeys")||function(h){var g=l.f(a(h)),A=r.f;return A?g.concat(A(h)):g}},"./node_modules/core-js/internals/path.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js");i.exports=e},"./node_modules/core-js/internals/redefine.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),r=o("./node_modules/core-js/internals/has.js"),a=o("./node_modules/core-js/internals/set-global.js"),c=o("./node_modules/core-js/internals/inspect-source.js"),h=o("./node_modules/core-js/internals/internal-state.js"),g=h.get,A=h.enforce,b=String(String).split("String");(i.exports=function(S,E,C,_){var T=_?!!_.unsafe:!1,w=_?!!_.enumerable:!1,O=_?!!_.noTargetGet:!1,I;if(typeof C=="function"&&(typeof E=="string"&&!r(C,"name")&&l(C,"name",E),I=A(C),I.source||(I.source=b.join(typeof E=="string"?E:""))),S===e){w?S[E]=C:a(E,C);return}else T?!O&&S[E]&&(w=!0):delete S[E];w?S[E]=C:l(S,E,C)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||c(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/an-object.js");i.exports=function(){var l=e(this),r="";return l.global&&(r+="g"),l.ignoreCase&&(r+="i"),l.multiline&&(r+="m"),l.dotAll&&(r+="s"),l.unicode&&(r+="u"),l.sticky&&(r+="y"),r}},"./node_modules/core-js/internals/require-object-coercible.js":function(i){i.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"./node_modules/core-js/internals/set-global.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js");i.exports=function(l,r){try{Object.defineProperty(e,l,{value:r,configurable:!0,writable:!0})}catch(a){e[l]=r}return r}},"./node_modules/core-js/internals/set-to-string-tag.js":function(i,t,o){var e=o("./node_modules/core-js/internals/object-define-property.js").f,l=o("./node_modules/core-js/internals/has.js"),r=o("./node_modules/core-js/internals/well-known-symbol.js"),a=r("toStringTag");i.exports=function(c,h,g){c&&!l(c=g?c:c.prototype,a)&&e(c,a,{configurable:!0,value:h})}},"./node_modules/core-js/internals/shared-key.js":function(i,t,o){var e=o("./node_modules/core-js/internals/shared.js"),l=o("./node_modules/core-js/internals/uid.js"),r=e("keys");i.exports=function(a){return r[a]||(r[a]=l(a))}},"./node_modules/core-js/internals/shared-store.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/set-global.js"),r="__core-js_shared__",a=e[r]||l(r,{});i.exports=a},"./node_modules/core-js/internals/shared.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-pure.js"),l=o("./node_modules/core-js/internals/shared-store.js");(i.exports=function(r,a){return l[r]||(l[r]=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(i,t,o){var e=o("./node_modules/core-js/internals/fails.js");i.exports=function(l){return e(function(){var r=""[l]('"');return r!==r.toLowerCase()||r.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-integer.js"),l=o("./node_modules/core-js/internals/to-string.js"),r=o("./node_modules/core-js/internals/require-object-coercible.js"),a=function(h){return function(g,A){var b=l(r(g)),S=e(A),E=b.length,C,_;return S<0||S>=E?h?"":void 0:(C=b.charCodeAt(S),C<55296||C>56319||S+1===E||(_=b.charCodeAt(S+1))<56320||_>57343?h?b.charAt(S):C:h?b.slice(S,S+2):(C-55296<<10)+(_-56320)+65536)}};i.exports={codeAt:a(!1),charAt:a(!0)}},"./node_modules/core-js/internals/string-trim.js":function(i,t,o){var e=o("./node_modules/core-js/internals/require-object-coercible.js"),l=o("./node_modules/core-js/internals/to-string.js"),r=o("./node_modules/core-js/internals/whitespaces.js"),a="["+r+"]",c=RegExp("^"+a+a+"*"),h=RegExp(a+a+"*$"),g=function(b){return function(S){var E=l(e(S));return b&1&&(E=E.replace(c,"")),b&2&&(E=E.replace(h,"")),E}};i.exports={start:g(1),end:g(2),trim:g(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-integer.js"),l=Math.max,r=Math.min;i.exports=function(a,c){var h=e(a);return h<0?l(h+c,0):r(h,c)}},"./node_modules/core-js/internals/to-indexed-object.js":function(i,t,o){var e=o("./node_modules/core-js/internals/indexed-object.js"),l=o("./node_modules/core-js/internals/require-object-coercible.js");i.exports=function(r){return e(l(r))}},"./node_modules/core-js/internals/to-integer.js":function(i){var t=Math.ceil,o=Math.floor;i.exports=function(e){return isNaN(e=+e)?0:(e>0?o:t)(e)}},"./node_modules/core-js/internals/to-length.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-integer.js"),l=Math.min;i.exports=function(r){return r>0?l(e(r),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(i,t,o){var e=o("./node_modules/core-js/internals/require-object-coercible.js");i.exports=function(l){return Object(e(l))}},"./node_modules/core-js/internals/to-primitive.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js"),l=o("./node_modules/core-js/internals/is-symbol.js"),r=o("./node_modules/core-js/internals/ordinary-to-primitive.js"),a=o("./node_modules/core-js/internals/well-known-symbol.js"),c=a("toPrimitive");i.exports=function(h,g){if(!e(h)||l(h))return h;var A=h[c],b;if(A!==void 0){if(g===void 0&&(g="default"),b=A.call(h,g),!e(b)||l(b))return b;throw TypeError("Can't convert object to primitive value")}return g===void 0&&(g="number"),r(h,g)}},"./node_modules/core-js/internals/to-property-key.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-primitive.js"),l=o("./node_modules/core-js/internals/is-symbol.js");i.exports=function(r){var a=e(r,"string");return l(a)?a:String(a)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(i,t,o){var e=o("./node_modules/core-js/internals/well-known-symbol.js"),l=e("toStringTag"),r={};r[l]="z",i.exports=String(r)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-symbol.js");i.exports=function(l){if(e(l))throw TypeError("Cannot convert a Symbol value to a string");return String(l)}},"./node_modules/core-js/internals/uid.js":function(i){var t=0,o=Math.random();i.exports=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++t+o).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(i,t,o){var e=o("./node_modules/core-js/internals/native-symbol.js");i.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(i,t,o){var e=o("./node_modules/core-js/internals/well-known-symbol.js");t.f=e},"./node_modules/core-js/internals/well-known-symbol.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/shared.js"),r=o("./node_modules/core-js/internals/has.js"),a=o("./node_modules/core-js/internals/uid.js"),c=o("./node_modules/core-js/internals/native-symbol.js"),h=o("./node_modules/core-js/internals/use-symbol-as-uid.js"),g=l("wks"),A=e.Symbol,b=h?A:A&&A.withoutSetter||a;i.exports=function(S){return(!r(g,S)||!(c||typeof g[S]=="string"))&&(c&&r(A,S)?g[S]=A[S]:g[S]=b("Symbol."+S)),g[S]}},"./node_modules/core-js/internals/whitespaces.js":function(i){i.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/fails.js"),r=o("./node_modules/core-js/internals/is-array.js"),a=o("./node_modules/core-js/internals/is-object.js"),c=o("./node_modules/core-js/internals/to-object.js"),h=o("./node_modules/core-js/internals/to-length.js"),g=o("./node_modules/core-js/internals/create-property.js"),A=o("./node_modules/core-js/internals/array-species-create.js"),b=o("./node_modules/core-js/internals/array-method-has-species-support.js"),S=o("./node_modules/core-js/internals/well-known-symbol.js"),E=o("./node_modules/core-js/internals/engine-v8-version.js"),C=S("isConcatSpreadable"),_=9007199254740991,T="Maximum allowed index exceeded",w=E>=51||!l(function(){var M=[];return M[C]=!1,M.concat()[0]!==M}),O=b("concat"),I=function(j){if(!a(j))return!1;var P=j[C];return P!==void 0?!!P:r(j)},k=!w||!O;e({target:"Array",proto:!0,forced:k},{concat:function(j){var P=c(this),X=A(P,0),F=0,U,K,z,V,Q;for(U=-1,z=arguments.length;U<z;U++)if(Q=U===-1?P:arguments[U],I(Q)){if(V=h(Q.length),F+V>_)throw TypeError(T);for(K=0;K<V;K++,F++)K in Q&&g(X,F,Q[K])}else{if(F>=_)throw TypeError(T);g(X,F++,Q)}return X.length=F,X}})},"./node_modules/core-js/modules/es.array.iterator.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/to-indexed-object.js"),l=o("./node_modules/core-js/internals/add-to-unscopables.js"),r=o("./node_modules/core-js/internals/iterators.js"),a=o("./node_modules/core-js/internals/internal-state.js"),c=o("./node_modules/core-js/internals/define-iterator.js"),h="Array Iterator",g=a.set,A=a.getterFor(h);i.exports=c(Array,"Array",function(b,S){g(this,{type:h,target:e(b),index:0,kind:S})},function(){var b=A(this),S=b.target,E=b.kind,C=b.index++;return!S||C>=S.length?(b.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:C,done:!1}:E=="values"?{value:S[C],done:!1}:{value:[C,S[C]],done:!1}},"values"),r.Arguments=r.Array,l("keys"),l("values"),l("entries")},"./node_modules/core-js/modules/es.array.join.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/indexed-object.js"),r=o("./node_modules/core-js/internals/to-indexed-object.js"),a=o("./node_modules/core-js/internals/array-method-is-strict.js"),c=[].join,h=l!=Object,g=a("join",",");e({target:"Array",proto:!0,forced:h||!g},{join:function(b){return c.call(r(this),b===void 0?",":b)}})},"./node_modules/core-js/modules/es.array.map.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/array-iteration.js").map,r=o("./node_modules/core-js/internals/array-method-has-species-support.js"),a=r("map");e({target:"Array",proto:!0,forced:!a},{map:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/is-object.js"),r=o("./node_modules/core-js/internals/is-array.js"),a=o("./node_modules/core-js/internals/to-absolute-index.js"),c=o("./node_modules/core-js/internals/to-length.js"),h=o("./node_modules/core-js/internals/to-indexed-object.js"),g=o("./node_modules/core-js/internals/create-property.js"),A=o("./node_modules/core-js/internals/well-known-symbol.js"),b=o("./node_modules/core-js/internals/array-method-has-species-support.js"),S=b("slice"),E=A("species"),C=[].slice,_=Math.max;e({target:"Array",proto:!0,forced:!S},{slice:function(w,O){var I=h(this),k=c(I.length),M=a(w,k),j=a(O===void 0?k:O,k),P,X,F;if(r(I)&&(P=I.constructor,typeof P=="function"&&(P===Array||r(P.prototype))?P=void 0:l(P)&&(P=P[E],P===null&&(P=void 0)),P===Array||P===void 0))return C.call(I,M,j);for(X=new(P===void 0?Array:P)(_(j-M,0)),F=0;M<j;M++,F++)M in I&&g(X,F,I[M]);return X.length=F,X}})},"./node_modules/core-js/modules/es.function.name.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/object-define-property.js").f,r=Function.prototype,a=r.toString,c=/^\s*function ([^ (]*)/,h="name";e&&!(h in r)&&l(r,h,{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(A){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/global.js"),r=o("./node_modules/core-js/internals/is-forced.js"),a=o("./node_modules/core-js/internals/redefine.js"),c=o("./node_modules/core-js/internals/has.js"),h=o("./node_modules/core-js/internals/classof-raw.js"),g=o("./node_modules/core-js/internals/inherit-if-required.js"),A=o("./node_modules/core-js/internals/is-symbol.js"),b=o("./node_modules/core-js/internals/to-primitive.js"),S=o("./node_modules/core-js/internals/fails.js"),E=o("./node_modules/core-js/internals/object-create.js"),C=o("./node_modules/core-js/internals/object-get-own-property-names.js").f,_=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,T=o("./node_modules/core-js/internals/object-define-property.js").f,w=o("./node_modules/core-js/internals/string-trim.js").trim,O="Number",I=l[O],k=I.prototype,M=h(E(k))==O,j=function(z){if(A(z))throw TypeError("Cannot convert a Symbol value to a number");var V=b(z,"number"),Q,G,te,q,se,re,xe,Oe;if(typeof V=="string"&&V.length>2){if(V=w(V),Q=V.charCodeAt(0),Q===43||Q===45){if(G=V.charCodeAt(2),G===88||G===120)return NaN}else if(Q===48){switch(V.charCodeAt(1)){case 66:case 98:te=2,q=49;break;case 79:case 111:te=8,q=55;break;default:return+V}for(se=V.slice(2),re=se.length,xe=0;xe<re;xe++)if(Oe=se.charCodeAt(xe),Oe<48||Oe>q)return NaN;return parseInt(se,te)}}return+V};if(r(O,!I(" 0o1")||!I("0b1")||I("+0x1"))){for(var P=function(z){var V=arguments.length<1?0:z,Q=this;return Q instanceof P&&(M?S(function(){k.valueOf.call(Q)}):h(Q)!=O)?g(new I(j(V)),Q,P):j(V)},X=e?C(I):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),F=0,U;X.length>F;F++)c(I,U=X[F])&&!c(P,U)&&T(P,U,_(I,U));P.prototype=k,k.constructor=P,a(l,O,P)}},"./node_modules/core-js/modules/es.object.assign.js":function(i,t,o){var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/object-assign.js");e({target:"Object",stat:!0,forced:Object.assign!==l},{assign:l})},"./node_modules/core-js/modules/es.object.keys.js":function(i,t,o){var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/to-object.js"),r=o("./node_modules/core-js/internals/object-keys.js"),a=o("./node_modules/core-js/internals/fails.js"),c=a(function(){r(1)});e({target:"Object",stat:!0,forced:c},{keys:function(g){return r(l(g))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-string-tag-support.js"),l=o("./node_modules/core-js/internals/redefine.js"),r=o("./node_modules/core-js/internals/object-to-string.js");e||l(Object.prototype,"toString",r,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/redefine.js"),l=o("./node_modules/core-js/internals/an-object.js"),r=o("./node_modules/core-js/internals/to-string.js"),a=o("./node_modules/core-js/internals/fails.js"),c=o("./node_modules/core-js/internals/regexp-flags.js"),h="toString",g=RegExp.prototype,A=g[h],b=a(function(){return A.call({source:"a",flags:"b"})!="/a/b"}),S=A.name!=h;(b||S)&&e(RegExp.prototype,h,function(){var C=l(this),_=r(C.source),T=C.flags,w=r(T===void 0&&C instanceof RegExp&&!("flags"in g)?c.call(C):T);return"/"+_+"/"+w},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/string-multibyte.js").charAt,l=o("./node_modules/core-js/internals/to-string.js"),r=o("./node_modules/core-js/internals/internal-state.js"),a=o("./node_modules/core-js/internals/define-iterator.js"),c="String Iterator",h=r.set,g=r.getterFor(c);a(String,"String",function(A){h(this,{type:c,string:l(A),index:0})},function(){var b=g(this),S=b.string,E=b.index,C;return E>=S.length?{value:void 0,done:!0}:(C=e(S,E),b.index+=C.length,{value:C,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/create-html.js"),r=o("./node_modules/core-js/internals/string-html-forced.js");e({target:"String",proto:!0,forced:r("link")},{link:function(c){return l(this,"a","href",c)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/descriptors.js"),r=o("./node_modules/core-js/internals/global.js"),a=o("./node_modules/core-js/internals/has.js"),c=o("./node_modules/core-js/internals/is-object.js"),h=o("./node_modules/core-js/internals/object-define-property.js").f,g=o("./node_modules/core-js/internals/copy-constructor-properties.js"),A=r.Symbol;if(l&&typeof A=="function"&&(!("description"in A.prototype)||A().description!==void 0)){var b={},S=function(){var O=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),I=this instanceof S?new A(O):O===void 0?A():A(O);return O===""&&(b[I]=!0),I};g(S,A);var E=S.prototype=A.prototype;E.constructor=S;var C=E.toString,_=String(A("test"))=="Symbol(test)",T=/^Symbol\((.*)\)[^)]+$/;h(E,"description",{configurable:!0,get:function(){var O=c(this)?this.valueOf():this,I=C.call(O);if(a(b,O))return"";var k=_?I.slice(7,-1):I.replace(T,"$1");return k===""?void 0:k}}),e({global:!0,forced:!0},{Symbol:S})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(i,t,o){var e=o("./node_modules/core-js/internals/define-well-known-symbol.js");e("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/global.js"),r=o("./node_modules/core-js/internals/get-built-in.js"),a=o("./node_modules/core-js/internals/is-pure.js"),c=o("./node_modules/core-js/internals/descriptors.js"),h=o("./node_modules/core-js/internals/native-symbol.js"),g=o("./node_modules/core-js/internals/fails.js"),A=o("./node_modules/core-js/internals/has.js"),b=o("./node_modules/core-js/internals/is-array.js"),S=o("./node_modules/core-js/internals/is-object.js"),E=o("./node_modules/core-js/internals/is-symbol.js"),C=o("./node_modules/core-js/internals/an-object.js"),_=o("./node_modules/core-js/internals/to-object.js"),T=o("./node_modules/core-js/internals/to-indexed-object.js"),w=o("./node_modules/core-js/internals/to-property-key.js"),O=o("./node_modules/core-js/internals/to-string.js"),I=o("./node_modules/core-js/internals/create-property-descriptor.js"),k=o("./node_modules/core-js/internals/object-create.js"),M=o("./node_modules/core-js/internals/object-keys.js"),j=o("./node_modules/core-js/internals/object-get-own-property-names.js"),P=o("./node_modules/core-js/internals/object-get-own-property-names-external.js"),X=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),F=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),U=o("./node_modules/core-js/internals/object-define-property.js"),K=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),z=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),V=o("./node_modules/core-js/internals/redefine.js"),Q=o("./node_modules/core-js/internals/shared.js"),G=o("./node_modules/core-js/internals/shared-key.js"),te=o("./node_modules/core-js/internals/hidden-keys.js"),q=o("./node_modules/core-js/internals/uid.js"),se=o("./node_modules/core-js/internals/well-known-symbol.js"),re=o("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),xe=o("./node_modules/core-js/internals/define-well-known-symbol.js"),Oe=o("./node_modules/core-js/internals/set-to-string-tag.js"),Me=o("./node_modules/core-js/internals/internal-state.js"),Qe=o("./node_modules/core-js/internals/array-iteration.js").forEach,Ve=G("hidden"),ut="Symbol",Fe="prototype",ue=se("toPrimitive"),et=Me.set,he=Me.getterFor(ut),J=Object[Fe],Y=l.Symbol,$=r("JSON","stringify"),de=F.f,be=U.f,Ce=P.f,Be=K.f,fe=Q("symbols"),we=Q("op-symbols"),Re=Q("string-to-symbol-registry"),rt=Q("symbol-to-string-registry"),St=Q("wks"),ft=l.QObject,He=!ft||!ft[Fe]||!ft[Fe].findChild,er=c&&g(function(){return k(be({},"a",{get:function(){return be(this,"a",{value:7}).a}})).a!=7})?function(lt,qe,ge){var Ht=de(J,qe);Ht&&delete J[qe],be(lt,qe,ge),Ht&<!==J&&be(J,qe,Ht)}:be,ct=function(qe,ge){var Ht=fe[qe]=k(Y[Fe]);return et(Ht,{type:ut,tag:qe,description:ge}),c||(Ht.description=ge),Ht},Kt=function(qe,ge,Ht){qe===J&&Kt(we,ge,Ht),C(qe);var vr=w(ge);return C(Ht),A(fe,vr)?(Ht.enumerable?(A(qe,Ve)&&qe[Ve][vr]&&(qe[Ve][vr]=!1),Ht=k(Ht,{enumerable:I(0,!1)})):(A(qe,Ve)||be(qe,Ve,I(1,{})),qe[Ve][vr]=!0),er(qe,vr,Ht)):be(qe,vr,Ht)},fr=function(qe,ge){C(qe);var Ht=T(ge),vr=M(Ht).concat(pe(Ht));return Qe(vr,function(At){(!c||Pt.call(Ht,At))&&Kt(qe,At,Ht[At])}),qe},Gt=function(qe,ge){return ge===void 0?k(qe):fr(k(qe),ge)},Pt=function(qe){var ge=w(qe),Ht=Be.call(this,ge);return this===J&&A(fe,ge)&&!A(we,ge)?!1:Ht||!A(this,ge)||!A(fe,ge)||A(this,Ve)&&this[Ve][ge]?Ht:!0},Xt=function(qe,ge){var Ht=T(qe),vr=w(ge);if(Ht===J&&A(fe,vr)&&!A(we,vr))return;var At=de(Ht,vr);return At&&A(fe,vr)&&!(A(Ht,Ve)&&Ht[Ve][vr])&&(At.enumerable=!0),At},Ge=function(qe){var ge=Ce(T(qe)),Ht=[];return Qe(ge,function(vr){!A(fe,vr)&&!A(te,vr)&&Ht.push(vr)}),Ht},pe=function(qe){var ge=qe===J,Ht=Ce(ge?we:T(qe)),vr=[];return Qe(Ht,function(At){A(fe,At)&&(!ge||A(J,At))&&vr.push(fe[At])}),vr};if(h||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var qe=!arguments.length||arguments[0]===void 0?void 0:O(arguments[0]),ge=q(qe),Ht=function vr(At){this===J&&vr.call(we,At),A(this,Ve)&&A(this[Ve],ge)&&(this[Ve][ge]=!1),er(this,ge,I(1,At))};return c&&He&&er(J,ge,{configurable:!0,set:Ht}),ct(ge,qe)},V(Y[Fe],"toString",function(){return he(this).tag}),V(Y,"withoutSetter",function(lt){return ct(q(lt),lt)}),K.f=Pt,U.f=Kt,F.f=Xt,j.f=P.f=Ge,X.f=pe,re.f=function(lt){return ct(se(lt),lt)},c&&(be(Y[Fe],"description",{configurable:!0,get:function(){return he(this).description}}),a||V(J,"propertyIsEnumerable",Pt,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:Y}),Qe(M(St),function(lt){xe(lt)}),e({target:ut,stat:!0,forced:!h},{for:function(qe){var ge=O(qe);if(A(Re,ge))return Re[ge];var Ht=Y(ge);return Re[ge]=Ht,rt[Ht]=ge,Ht},keyFor:function(qe){if(!E(qe))throw TypeError(qe+" is not a symbol");if(A(rt,qe))return rt[qe]},useSetter:function(){He=!0},useSimple:function(){He=!1}}),e({target:"Object",stat:!0,forced:!h,sham:!c},{create:Gt,defineProperty:Kt,defineProperties:fr,getOwnPropertyDescriptor:Xt}),e({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:Ge,getOwnPropertySymbols:pe}),e({target:"Object",stat:!0,forced:g(function(){X.f(1)})},{getOwnPropertySymbols:function(qe){return X.f(_(qe))}}),$){var oe=!h||g(function(){var lt=Y();return $([lt])!="[null]"||$({a:lt})!="{}"||$(Object(lt))!="{}"});e({target:"JSON",stat:!0,forced:oe},{stringify:function(qe,ge,Ht){for(var vr=[qe],At=1,ir;arguments.length>At;)vr.push(arguments[At++]);return ir=ge,!S(ge)&&qe===void 0||E(qe)?void 0:(b(ge)||(ge=function(dn,Ft){if(typeof ir=="function"&&(Ft=ir.call(this,dn,Ft)),!E(Ft))return Ft}),vr[1]=ge,$.apply(null,vr))}})}Y[Fe][ue]||z(Y[Fe],ue,Y[Fe].valueOf),Oe(Y,ut),te[Ve]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/dom-iterables.js"),r=o("./node_modules/core-js/internals/array-for-each.js"),a=o("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var c in l){var h=e[c],g=h&&h.prototype;if(g&&g.forEach!==r)try{a(g,"forEach",r)}catch(A){g.forEach=r}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/dom-iterables.js"),r=o("./node_modules/core-js/modules/es.array.iterator.js"),a=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=o("./node_modules/core-js/internals/well-known-symbol.js"),h=c("iterator"),g=c("toStringTag"),A=r.values;for(var b in l){var S=e[b],E=S&&S.prototype;if(E){if(E[h]!==A)try{a(E,h,A)}catch(_){E[h]=A}if(E[g]||a(E,g,b),l[b]){for(var C in r)if(E[C]!==r[C])try{a(E,C,r[C])}catch(_){E[C]=r[C]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(i){/*!
|
|
|
* @overview es6-promise - a tiny implementation of Promises/A+.
|
|
|
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
|
|
* @license Licensed under MIT license
|
|
|
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
|
|
* @version v4.2.8+1e68dce6
|
|
|
*/(function(t,o){i.exports=o()})(this,function(){"use strict";function t(ft){var He=typeof ft;return ft!==null&&(He==="object"||He==="function")}function o(ft){return typeof ft=="function"}var e=void 0;Array.isArray?e=Array.isArray:e=function(He){return Object.prototype.toString.call(He)==="[object Array]"};var l=e,r=0,a=void 0,c=void 0,h=function(He,er){M[r]=He,M[r+1]=er,r+=2,r===2&&(c?c(j):X())};function g(ft){c=ft}function A(ft){h=ft}var b=typeof window!="undefined"?window:void 0,S=b||{},E=S.MutationObserver||S.WebKitMutationObserver,C=typeof self=="undefined"&&typeof f!="undefined"&&{}.toString.call(f)==="[object process]",_=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function T(){return function(){return f.nextTick(j)}}function w(){return typeof a!="undefined"?function(){a(j)}:k()}function O(){var ft=0,He=new E(j),er=document.createTextNode("");return He.observe(er,{characterData:!0}),function(){er.data=ft=++ft%2}}function I(){var ft=new MessageChannel;return ft.port1.onmessage=j,function(){return ft.port2.postMessage(0)}}function k(){var ft=setTimeout;return function(){return ft(j,1)}}var M=new Array(1e3);function j(){for(var ft=0;ft<r;ft+=2){var He=M[ft],er=M[ft+1];He(er),M[ft]=void 0,M[ft+1]=void 0}r=0}function P(){try{var ft=Function("return this")().require("vertx");return a=ft.runOnLoop||ft.runOnContext,w()}catch(He){return k()}}var X=void 0;C?X=T():E?X=O():_?X=I():b===void 0&&!0?X=P():X=k();function F(ft,He){var er=this,ct=new this.constructor(z);ct[K]===void 0&&$(ct);var Kt=er._state;if(Kt){var fr=arguments[Kt-1];h(function(){return et(Kt,ct,fr,er._result)})}else Fe(er,ct,ft,He);return ct}function U(ft){var He=this;if(ft&&typeof ft=="object"&&ft.constructor===He)return ft;var er=new He(z);return Me(er,ft),er}var K=Math.random().toString(36).substring(2);function z(){}var V=void 0,Q=1,G=2;function te(){return new TypeError("You cannot resolve a promise with itself")}function q(){return new TypeError("A promises callback cannot return that same promise.")}function se(ft,He,er,ct){try{ft.call(He,er,ct)}catch(Kt){return Kt}}function re(ft,He,er){h(function(ct){var Kt=!1,fr=se(er,He,function(Gt){if(Kt)return;Kt=!0,He!==Gt?Me(ct,Gt):Ve(ct,Gt)},function(Gt){if(Kt)return;Kt=!0,ut(ct,Gt)},"Settle: "+(ct._label||" unknown promise"));!Kt&&fr&&(Kt=!0,ut(ct,fr))},ft)}function xe(ft,He){He._state===Q?Ve(ft,He._result):He._state===G?ut(ft,He._result):Fe(He,void 0,function(er){return Me(ft,er)},function(er){return ut(ft,er)})}function Oe(ft,He,er){He.constructor===ft.constructor&&er===F&&He.constructor.resolve===U?xe(ft,He):er===void 0?Ve(ft,He):o(er)?re(ft,He,er):Ve(ft,He)}function Me(ft,He){if(ft===He)ut(ft,te());else if(t(He)){var er=void 0;try{er=He.then}catch(ct){ut(ft,ct);return}Oe(ft,He,er)}else Ve(ft,He)}function Qe(ft){ft._onerror&&ft._onerror(ft._result),ue(ft)}function Ve(ft,He){if(ft._state!==V)return;ft._result=He,ft._state=Q,ft._subscribers.length!==0&&h(ue,ft)}function ut(ft,He){if(ft._state!==V)return;ft._state=G,ft._result=He,h(Qe,ft)}function Fe(ft,He,er,ct){var Kt=ft._subscribers,fr=Kt.length;ft._onerror=null,Kt[fr]=He,Kt[fr+Q]=er,Kt[fr+G]=ct,fr===0&&ft._state&&h(ue,ft)}function ue(ft){var He=ft._subscribers,er=ft._state;if(He.length===0)return;for(var ct=void 0,Kt=void 0,fr=ft._result,Gt=0;Gt<He.length;Gt+=3)ct=He[Gt],Kt=He[Gt+er],ct?et(er,ct,Kt,fr):Kt(fr);ft._subscribers.length=0}function et(ft,He,er,ct){var Kt=o(er),fr=void 0,Gt=void 0,Pt=!0;if(Kt){try{fr=er(ct)}catch(Xt){Pt=!1,Gt=Xt}if(He===fr){ut(He,q());return}}else fr=ct;He._state!==V||(Kt&&Pt?Me(He,fr):Pt===!1?ut(He,Gt):ft===Q?Ve(He,fr):ft===G&&ut(He,fr))}function he(ft,He){try{He(function(ct){Me(ft,ct)},function(ct){ut(ft,ct)})}catch(er){ut(ft,er)}}var J=0;function Y(){return J++}function $(ft){ft[K]=J++,ft._state=void 0,ft._result=void 0,ft._subscribers=[]}function de(){return new Error("Array Methods must be provided an Array")}var be=function(){function ft(He,er){this._instanceConstructor=He,this.promise=new He(z),this.promise[K]||$(this.promise),l(er)?(this.length=er.length,this._remaining=er.length,this._result=new Array(this.length),this.length===0?Ve(this.promise,this._result):(this.length=this.length||0,this._enumerate(er),this._remaining===0&&Ve(this.promise,this._result))):ut(this.promise,de())}return ft.prototype._enumerate=function(er){for(var ct=0;this._state===V&&ct<er.length;ct++)this._eachEntry(er[ct],ct)},ft.prototype._eachEntry=function(er,ct){var Kt=this._instanceConstructor,fr=Kt.resolve;if(fr===U){var Gt=void 0,Pt=void 0,Xt=!1;try{Gt=er.then}catch(pe){Xt=!0,Pt=pe}if(Gt===F&&er._state!==V)this._settledAt(er._state,ct,er._result);else if(typeof Gt!="function")this._remaining--,this._result[ct]=er;else if(Kt===rt){var Ge=new Kt(z);Xt?ut(Ge,Pt):Oe(Ge,er,Gt),this._willSettleAt(Ge,ct)}else this._willSettleAt(new Kt(function(pe){return pe(er)}),ct)}else this._willSettleAt(fr(er),ct)},ft.prototype._settledAt=function(er,ct,Kt){var fr=this.promise;fr._state===V&&(this._remaining--,er===G?ut(fr,Kt):this._result[ct]=Kt),this._remaining===0&&Ve(fr,this._result)},ft.prototype._willSettleAt=function(er,ct){var Kt=this;Fe(er,void 0,function(fr){return Kt._settledAt(Q,ct,fr)},function(fr){return Kt._settledAt(G,ct,fr)})},ft}();function Ce(ft){return new be(this,ft).promise}function Be(ft){var He=this;return l(ft)?new He(function(er,ct){for(var Kt=ft.length,fr=0;fr<Kt;fr++)He.resolve(ft[fr]).then(er,ct)}):new He(function(er,ct){return ct(new TypeError("You must pass an array to race."))})}function fe(ft){var He=this,er=new He(z);return ut(er,ft),er}function we(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Re(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var rt=function(){function ft(He){this[K]=Y(),this._result=this._state=void 0,this._subscribers=[],z!==He&&(typeof He!="function"&&we(),this instanceof ft?he(this,He):Re())}return ft.prototype.catch=function(er){return this.then(null,er)},ft.prototype.finally=function(er){var ct=this,Kt=ct.constructor;return o(er)?ct.then(function(fr){return Kt.resolve(er()).then(function(){return fr})},function(fr){return Kt.resolve(er()).then(function(){throw fr})}):ct.then(er,er)},ft}();rt.prototype.then=F,rt.all=Ce,rt.race=Be,rt.resolve=U,rt.reject=fe,rt._setScheduler=g,rt._setAsap=A,rt._asap=h;function St(){var ft=void 0;if(typeof y!="undefined")ft=y;else if(typeof self!="undefined")ft=self;else try{ft=Function("return this")()}catch(ct){throw new Error("polyfill failed because global object is unavailable in this environment")}var He=ft.Promise;if(He){var er=null;try{er=Object.prototype.toString.call(He.resolve())}catch(ct){}if(er==="[object Promise]"&&!He.cast)return}ft.Promise=rt}return rt.polyfill=St,rt.Promise=rt,rt})},html2canvas:function(i){"use strict";i.exports=v},jspdf:function(i){"use strict";i.exports=x}},p={};function d(s){var i=p[s];if(i!==void 0)return i.exports;var t=p[s]={exports:{}};return m[s].call(t.exports,t,t.exports,d),t.exports}!function(){d.n=function(s){var i=s&&s.__esModule?function(){return s.default}:function(){return s};return d.d(i,{a:i}),i}}(),!function(){d.d=function(s,i){for(var t in i)d.o(i,t)&&!d.o(s,t)&&Object.defineProperty(s,t,{enumerable:!0,get:i[t]})}}(),!function(){d.o=function(s,i){return Object.prototype.hasOwnProperty.call(s,i)}}(),!function(){d.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}}();var u={};return!function(){"use strict";/*!**********************!*\
|
|
|
!*** ./src/index.js ***!
|
|
|
\**********************/d.r(u);var s=d("./src/worker.js"),i=d("./src/plugin/jspdf-plugin.js"),t=d("./src/plugin/pagebreaks.js"),o=d("./src/plugin/hyperlinks.js"),e=function l(r,a){var c=new l.Worker(a);return r?c.from(r).save():c};e.Worker=s.default,u.default=e}(),u=u.default,u}()})}).call(this,n("yLpj"),n("Q2Ig"))},"1q3G":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=y;function y(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},"1tlw":function(R,D,n){var y=n("MBQ8"),f=y.extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(v){return v.stack=null,f.superApply(this,"getInitialData",arguments)}}),x=f;R.exports=x},"1u/T":function(R,D,n){var y=n("ProS"),f={type:"selectDataRange",event:"dataRangeSelected",update:"update"};y.registerAction(f,function(x,v){v.eachComponent({mainType:"visualMap",query:x},function(m){m.setSelected(x.selected)})})},"1uat":function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("MlIO"))})(this,function(y){return function(){var f=y,x=f.lib,v=x.Hasher,m=f.x64,p=m.Word,d=m.WordArray,u=f.algo;function s(){return p.create.apply(p,arguments)}var i=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],t=[];(function(){for(var e=0;e<80;e++)t[e]=s()})();var o=u.SHA512=v.extend({_doReset:function(){this._hash=new d.init([new p.init(1779033703,4089235720),new p.init(3144134277,2227873595),new p.init(1013904242,4271175723),new p.init(2773480762,1595750129),new p.init(1359893119,2917565137),new p.init(2600822924,725511199),new p.init(528734635,4215389547),new p.init(1541459225,327033209)])},_doProcessBlock:function(l,r){for(var a=this._hash.words,c=a[0],h=a[1],g=a[2],A=a[3],b=a[4],S=a[5],E=a[6],C=a[7],_=c.high,T=c.low,w=h.high,O=h.low,I=g.high,k=g.low,M=A.high,j=A.low,P=b.high,X=b.low,F=S.high,U=S.low,K=E.high,z=E.low,V=C.high,Q=C.low,G=_,te=T,q=w,se=O,re=I,xe=k,Oe=M,Me=j,Qe=P,Ve=X,ut=F,Fe=U,ue=K,et=z,he=V,J=Q,Y=0;Y<80;Y++){var $,de,be=t[Y];if(Y<16)de=be.high=l[r+Y*2]|0,$=be.low=l[r+Y*2+1]|0;else{var Ce=t[Y-15],Be=Ce.high,fe=Ce.low,we=(Be>>>1|fe<<31)^(Be>>>8|fe<<24)^Be>>>7,Re=(fe>>>1|Be<<31)^(fe>>>8|Be<<24)^(fe>>>7|Be<<25),rt=t[Y-2],St=rt.high,ft=rt.low,He=(St>>>19|ft<<13)^(St<<3|ft>>>29)^St>>>6,er=(ft>>>19|St<<13)^(ft<<3|St>>>29)^(ft>>>6|St<<26),ct=t[Y-7],Kt=ct.high,fr=ct.low,Gt=t[Y-16],Pt=Gt.high,Xt=Gt.low;$=Re+fr,de=we+Kt+($>>>0<Re>>>0?1:0),$=$+er,de=de+He+($>>>0<er>>>0?1:0),$=$+Xt,de=de+Pt+($>>>0<Xt>>>0?1:0),be.high=de,be.low=$}var Ge=Qe&ut^~Qe&ue,pe=Ve&Fe^~Ve&et,oe=G&q^G&re^q&re,lt=te&se^te&xe^se&xe,qe=(G>>>28|te<<4)^(G<<30|te>>>2)^(G<<25|te>>>7),ge=(te>>>28|G<<4)^(te<<30|G>>>2)^(te<<25|G>>>7),Ht=(Qe>>>14|Ve<<18)^(Qe>>>18|Ve<<14)^(Qe<<23|Ve>>>9),vr=(Ve>>>14|Qe<<18)^(Ve>>>18|Qe<<14)^(Ve<<23|Qe>>>9),At=i[Y],ir=At.high,lr=At.low,dn=J+vr,Ft=he+Ht+(dn>>>0<J>>>0?1:0),dn=dn+pe,Ft=Ft+Ge+(dn>>>0<pe>>>0?1:0),dn=dn+lr,Ft=Ft+ir+(dn>>>0<lr>>>0?1:0),dn=dn+$,Ft=Ft+de+(dn>>>0<$>>>0?1:0),ur=ge+lt,Jt=qe+oe+(ur>>>0<ge>>>0?1:0);he=ue,J=et,ue=ut,et=Fe,ut=Qe,Fe=Ve,Ve=Me+dn|0,Qe=Oe+Ft+(Ve>>>0<Me>>>0?1:0)|0,Oe=re,Me=xe,re=q,xe=se,q=G,se=te,te=dn+ur|0,G=Ft+Jt+(te>>>0<dn>>>0?1:0)|0}T=c.low=T+te,c.high=_+G+(T>>>0<te>>>0?1:0),O=h.low=O+se,h.high=w+q+(O>>>0<se>>>0?1:0),k=g.low=k+xe,g.high=I+re+(k>>>0<xe>>>0?1:0),j=A.low=j+Me,A.high=M+Oe+(j>>>0<Me>>>0?1:0),X=b.low=X+Ve,b.high=P+Qe+(X>>>0<Ve>>>0?1:0),U=S.low=U+Fe,S.high=F+ut+(U>>>0<Fe>>>0?1:0),z=E.low=z+et,E.high=K+ue+(z>>>0<et>>>0?1:0),Q=C.low=Q+J,C.high=V+he+(Q>>>0<J>>>0?1:0)},_doFinalize:function(){var l=this._data,r=l.words,a=this._nDataBytes*8,c=l.sigBytes*8;r[c>>>5]|=128<<24-c%32,r[(c+128>>>10<<5)+30]=Math.floor(a/4294967296),r[(c+128>>>10<<5)+31]=a,l.sigBytes=r.length*4,this._process();var h=this._hash.toX32();return h},clone:function(){var l=v.clone.call(this);return l._hash=this._hash.clone(),l},blockSize:1024/32});f.SHA512=v._createHelper(o),f.HmacSHA512=v._createHmacHelper(o)}(),y.SHA512})},"1vzs":function(R,D,n){"use strict";n.d(D,"a",function(){return r});var y=n("q1tI"),f=n.n(y),x=n("HQEm"),v=n.n(x),m=n("gZBC"),p=n.n(m),d=n("NAnI"),u=n.n(d),s=n("V/uB"),i=n.n(s),t=n("kbBi"),o=n.n(t),e=n("w6Tc"),l=n.n(e);function r(a){var c=a.suffixIcon,h=a.clearIcon,g=a.menuItemSelectedIcon,A=a.removeIcon,b=a.loading,S=a.multiple,E=a.prefixCls,C=h;h||(C=y.createElement(o.a,null));var _=null;if(c!==void 0)_=c;else if(b)_=y.createElement(p.a,{spin:!0});else{var T="".concat(E,"-suffix");_=function(k){var M=k.open,j=k.showSearch;return M&&j?y.createElement(l.a,{className:T}):y.createElement(v.a,{className:T})}}var w=null;g!==void 0?w=g:S?w=y.createElement(u.a,null):w=null;var O=null;return A!==void 0?O=A:O=y.createElement(i.a,null),{clearIcon:C,suffixIcon:_,itemIcon:w,removeIcon:O}}},"1xaR":function(R,D,n){var y=n("ProS"),f=n("bYtY");n("qgGe"),n("NA0q"),n("RPvy");var x=n("mOdp"),v=n("y3NT"),m=n("0/Rx");y.registerVisual(f.curry(x,"sunburst")),y.registerLayout(f.curry(v,"sunburst")),y.registerProcessor(f.curry(m,"sunburst"))},"24YM":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.SizeSensorId=D.SensorTabIndex=D.SensorClassName=void 0;var y="size-sensor-id";D.SizeSensorId=y;var f="size-sensor-object";D.SensorClassName=f;var x="-1";D.SensorTabIndex=x},"2548":function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("6GrX"),v=n("IUWy"),m=n("IwbS"),p=n("Qxkt"),d=n("gPAo"),u=n("eRkO"),s=y.extendComponentView({type:"toolbox",render:function(t,o,e,l){var r=this.group;if(r.removeAll(),!t.get("show"))return;var a=+t.get("itemSize"),c=t.get("feature")||{},h=this._features||(this._features={}),g=[];f.each(c,function(S,E){g.push(E)}),new d(this._featureNames||[],g).add(A).update(A).remove(f.curry(A,null)).execute(),this._featureNames=g;function A(S,E){var C=g[S],_=g[E],T=c[C],w=new p(T,t,t.ecModel),O;if(l&&l.newTitle!=null&&l.featureName===C&&(T.title=l.newTitle),C&&!_){if(i(C))O={model:w,onclick:w.option.onclick,featureName:C};else{var I=v.get(C);if(!I)return;O=new I(w,o,e)}h[C]=O}else{if(O=h[_],!O)return;O.model=w,O.ecModel=o,O.api=e}if(!C&&_){O.dispose&&O.dispose(o,e);return}if(!w.get("show")||O.unusable){O.remove&&O.remove(o,e);return}b(w,O,C),w.setIconStatus=function(k,M){var j=this.option,P=this.iconPaths;j.iconStatus=j.iconStatus||{},j.iconStatus[k]=M,P[k]&&P[k].trigger(M)},O.render&&O.render(w,o,e,l)}function b(S,E,C){var _=S.getModel("iconStyle"),T=S.getModel("emphasis.iconStyle"),w=E.getIcons?E.getIcons():S.get("icon"),O=S.get("title")||{};if(typeof w=="string"){var I=w,k=O;w={},O={},w[C]=I,O[C]=k}var M=S.iconPaths={};f.each(w,function(j,P){var X=m.createIcon(j,{},{x:-a/2,y:-a/2,width:a,height:a});X.setStyle(_.getItemStyle()),X.hoverStyle=T.getItemStyle(),X.setStyle({text:O[P],textAlign:T.get("textAlign"),textBorderRadius:T.get("textBorderRadius"),textPadding:T.get("textPadding"),textFill:null});var F=t.getModel("tooltip");F&&F.get("show")&&X.attr("tooltip",f.extend({content:O[P],formatter:F.get("formatter",!0)||function(){return O[P]},formatterParams:{componentType:"toolbox",name:P,title:O[P],$vars:["name","title"]},position:F.get("position",!0)||"bottom"},F.option)),m.setHoverStyle(X),t.get("showTitle")&&(X.__title=O[P],X.on("mouseover",function(){var U=T.getItemStyle(),K=t.get("orient")==="vertical"?t.get("right")==null?"right":"left":t.get("bottom")==null?"bottom":"top";X.setStyle({textFill:T.get("textFill")||U.fill||U.stroke||"#000",textBackgroundColor:T.get("textBackgroundColor"),textPosition:T.get("textPosition")||K})}).on("mouseout",function(){X.setStyle({textFill:null,textBackgroundColor:null})})),X.trigger(S.get("iconStatus."+P)||"normal"),r.add(X),X.on("click",f.bind(E.onclick,E,o,e,P)),M[P]=X})}u.layout(r,t,e),r.add(u.makeBackground(r.getBoundingRect(),t)),r.eachChild(function(S){var E=S.__title,C=S.hoverStyle;if(C&&E){var _=x.getBoundingRect(E,x.makeFont(C)),T=S.position[0]+r.position[0],w=S.position[1]+r.position[1]+a,O=!1;w+_.height>e.getHeight()&&(C.textPosition="top",O=!0);var I=O?-5-_.height:a+8;T+_.width/2>e.getWidth()?(C.textPosition=["100%",I],C.textAlign="right"):T-_.width/2<0&&(C.textPosition=[0,I],C.textAlign="left")}})},updateView:function(t,o,e,l){f.each(this._features,function(r){r.updateView&&r.updateView(r.model,o,e,l)})},remove:function(t,o){f.each(this._features,function(e){e.remove&&e.remove(t,o)}),this.group.removeAll()},dispose:function(t,o){f.each(this._features,function(e){e.dispose&&e.dispose(t,o)})}});function i(t){return t.indexOf("my")===0}R.exports=s},"2B6p":function(R,D){function n(y,f,x){var v=y.getZoom(),m=y.getCenter(),p=f.zoom,d=y.dataToPoint(m);if(f.dx!=null&&f.dy!=null){d[0]-=f.dx,d[1]-=f.dy;var m=y.pointToData(d);y.setCenter(m)}if(p!=null){if(x){var u=x.min||0,s=x.max||Infinity;p=Math.max(Math.min(v*p,s),u)/v}y.scale[0]*=p,y.scale[1]*=p;var i=y.position,t=(f.originX-i[0])*(p-1),o=(f.originY-i[1])*(p-1);i[0]-=t,i[1]-=o,y.updateTransform();var m=y.pointToData(d);y.setCenter(m),y.setZoom(p*v)}return{center:y.getCenter(),zoom:y.getZoom()}}D.updateCenterAndZoom=n},"2BaD":function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="CloseCircleOutlined";var d=D.a=f.forwardRef(p)},"2DNl":function(R,D,n){var y=n("IMiH"),f=n("loD1"),x=n("59Ip"),v=n("aKvl"),m=n("n1HI"),p=n("hX1E"),d=p.normalizeRadian,u=n("Sj9i"),s=n("hyiK"),i=y.CMD,t=Math.PI*2,o=1e-4;function e(E,C){return Math.abs(E-C)<o}var l=[-1,-1,-1],r=[-1,-1];function a(){var E=r[0];r[0]=r[1],r[1]=E}function c(E,C,_,T,w,O,I,k,M,j){if(j>C&&j>T&&j>O&&j>k||j<C&&j<T&&j<O&&j<k)return 0;var P=u.cubicRootAt(C,T,O,k,j,l);if(P===0)return 0;for(var X=0,F=-1,U,K,z=0;z<P;z++){var V=l[z],Q=V===0||V===1?.5:1,G=u.cubicAt(E,_,w,I,V);if(G<M)continue;F<0&&(F=u.cubicExtrema(C,T,O,k,r),r[1]<r[0]&&F>1&&a(),U=u.cubicAt(C,T,O,k,r[0]),F>1&&(K=u.cubicAt(C,T,O,k,r[1]))),F===2?V<r[0]?X+=U<C?Q:-Q:V<r[1]?X+=K<U?Q:-Q:X+=k<K?Q:-Q:V<r[0]?X+=U<C?Q:-Q:X+=k<U?Q:-Q}return X}function h(E,C,_,T,w,O,I,k){if(k>C&&k>T&&k>O||k<C&&k<T&&k<O)return 0;var M=u.quadraticRootAt(C,T,O,k,l);if(M===0)return 0;var j=u.quadraticExtremum(C,T,O);if(j>=0&&j<=1){for(var P=0,X=u.quadraticAt(C,T,O,j),F=0;F<M;F++){var U=l[F]===0||l[F]===1?.5:1,K=u.quadraticAt(E,_,w,l[F]);if(K<I)continue;l[F]<j?P+=X<C?U:-U:P+=O<X?U:-U}return P}else{var U=l[0]===0||l[0]===1?.5:1,K=u.quadraticAt(E,_,w,l[0]);return K<I?0:O<C?U:-U}}function g(E,C,_,T,w,O,I,k){if(k-=C,k>_||k<-_)return 0;var M=Math.sqrt(_*_-k*k);l[0]=-M,l[1]=M;var j=Math.abs(T-w);if(j<1e-4)return 0;if(j%t<1e-4){T=0,w=t;var P=O?1:-1;return I>=l[0]+E&&I<=l[1]+E?P:0}if(O){var M=T;T=d(w),w=d(M)}else T=d(T),w=d(w);T>w&&(w+=t);for(var X=0,F=0;F<2;F++){var U=l[F];if(U+E>I){var K=Math.atan2(k,U),P=O?1:-1;K<0&&(K=t+K),(K>=T&&K<=w||K+t>=T&&K+t<=w)&&(K>Math.PI/2&&K<Math.PI*1.5&&(P=-P),X+=P)}}return X}function A(E,C,_,T,w){for(var O=0,I=0,k=0,M=0,j=0,P=0;P<E.length;){var X=E[P++];X===i.M&&P>1&&(_||(O+=s(I,k,M,j,T,w))),P===1&&(I=E[P],k=E[P+1],M=I,j=k);switch(X){case i.M:M=E[P++],j=E[P++],I=M,k=j;break;case i.L:if(_){if(f.containStroke(I,k,E[P],E[P+1],C,T,w))return!0}else O+=s(I,k,E[P],E[P+1],T,w)||0;I=E[P++],k=E[P++];break;case i.C:if(_){if(x.containStroke(I,k,E[P++],E[P++],E[P++],E[P++],E[P],E[P+1],C,T,w))return!0}else O+=c(I,k,E[P++],E[P++],E[P++],E[P++],E[P],E[P+1],T,w)||0;I=E[P++],k=E[P++];break;case i.Q:if(_){if(v.containStroke(I,k,E[P++],E[P++],E[P],E[P+1],C,T,w))return!0}else O+=h(I,k,E[P++],E[P++],E[P],E[P+1],T,w)||0;I=E[P++],k=E[P++];break;case i.A:var F=E[P++],U=E[P++],K=E[P++],z=E[P++],V=E[P++],Q=E[P++];P+=1;var G=1-E[P++],te=Math.cos(V)*K+F,q=Math.sin(V)*z+U;P>1?O+=s(I,k,te,q,T,w):(M=te,j=q);var se=(T-F)*z/K+F;if(_){if(m.containStroke(F,U,z,V,V+Q,G,C,se,w))return!0}else O+=g(F,U,z,V,V+Q,G,se,w);I=Math.cos(V+Q)*K+F,k=Math.sin(V+Q)*z+U;break;case i.R:M=I=E[P++],j=k=E[P++];var re=E[P++],xe=E[P++],te=M+re,q=j+xe;if(_){if(f.containStroke(M,j,te,j,C,T,w)||f.containStroke(te,j,te,q,C,T,w)||f.containStroke(te,q,M,q,C,T,w)||f.containStroke(M,q,M,j,C,T,w))return!0}else O+=s(te,j,te,q,T,w),O+=s(M,q,M,j,T,w);break;case i.Z:if(_){if(f.containStroke(I,k,M,j,C,T,w))return!0}else O+=s(I,k,M,j,T,w);I=M,k=j;break}}return!_&&!e(k,j)&&(O+=s(I,k,M,j,T,w)||0),O!==0}function b(E,C,_){return A(E,0,!1,C,_)}function S(E,C,_,T){return A(E,C,!0,_,T)}D.contain=b,D.containStroke=S},"2dDv":function(R,D,n){var y=n("bYtY"),f=n("Fofx"),x=n("+TT/"),v=n("aX7z"),m=n("D1WM"),p=n("IwbS"),d=n("OELB"),u=n("72pK"),s=y.each,i=Math.min,t=Math.max,o=Math.floor,e=Math.ceil,l=d.round,r=Math.PI;function a(b,S,E){this._axesMap=y.createHashMap(),this._axesLayout={},this.dimensions=b.dimensions,this._rect,this._model=b,this._init(b,S,E)}a.prototype={type:"parallel",constructor:a,_init:function(b,S,E){var C=b.dimensions,_=b.parallelAxisIndex;s(C,function(T,w){var O=_[w],I=S.getComponent("parallelAxis",O),k=this._axesMap.set(T,new m(T,v.createScaleByModel(I),[0,0],I.get("type"),O)),M=k.type==="category";k.onBand=M&&I.get("boundaryGap"),k.inverse=I.get("inverse"),I.axis=k,k.model=I,k.coordinateSystem=I.coordinateSystem=this},this)},update:function(b,S){this._updateAxesFromSeries(this._model,b)},containPoint:function(b){var S=this._makeLayoutInfo(),E=S.axisBase,C=S.layoutBase,_=S.pixelDimIndex,T=b[1-_],w=b[_];return T>=E&&T<=E+S.axisLength&&w>=C&&w<=C+S.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(b,S){S.eachSeries(function(E){if(!b.contains(E,S))return;var C=E.getData();s(this.dimensions,function(_){var T=this._axesMap.get(_);T.scale.unionExtentFromData(C,C.mapDimension(_)),v.niceScaleExtent(T.scale,T.model)},this)},this)},resize:function(b,S){this._rect=x.getLayoutRect(b.getBoxLayoutParams(),{width:S.getWidth(),height:S.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var b=this._model,S=this._rect,E=["x","y"],C=["width","height"],_=b.get("layout"),T=_==="horizontal"?0:1,w=S[C[T]],O=[0,w],I=this.dimensions.length,k=c(b.get("axisExpandWidth"),O),M=c(b.get("axisExpandCount")||0,[0,I]),j=b.get("axisExpandable")&&I>3&&I>M&&M>1&&k>0&&w>0,P=b.get("axisExpandWindow"),X;if(P)X=c(P[1]-P[0],O),P[1]=P[0]+X;else{X=c(k*(M-1),O);var F=b.get("axisExpandCenter")||o(I/2);P=[k*F-X/2],P[1]=P[0]+X}var U=(w-X)/(I-M);U<3&&(U=0);var K=[o(l(P[0]/k,1))+1,e(l(P[1]/k,1))-1],z=U/k*P[0];return{layout:_,pixelDimIndex:T,layoutBase:S[E[T]],layoutLength:w,axisBase:S[E[1-T]],axisLength:S[C[1-T]],axisExpandable:j,axisExpandWidth:k,axisCollapseWidth:U,axisExpandWindow:P,axisCount:I,winInnerIndices:K,axisExpandWindow0Pos:z}},_layoutAxes:function(){var b=this._rect,S=this._axesMap,E=this.dimensions,C=this._makeLayoutInfo(),_=C.layout;S.each(function(T){var w=[0,C.axisLength],O=T.inverse?1:0;T.setExtent(w[O],w[1-O])}),s(E,function(T,w){var O=(C.axisExpandable?g:h)(w,C),I={horizontal:{x:O.position,y:C.axisLength},vertical:{x:0,y:O.position}},k={horizontal:r/2,vertical:0},M=[I[_].x+b.x,I[_].y+b.y],j=k[_],P=f.create();f.rotate(P,P,j),f.translate(P,P,M),this._axesLayout[T]={position:M,rotation:j,transform:P,axisNameAvailableWidth:O.axisNameAvailableWidth,axisLabelShow:O.axisLabelShow,nameTruncateMaxWidth:O.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(b){return this._axesMap.get(b)},dataToPoint:function(b,S){return this.axisCoordToPoint(this._axesMap.get(S).dataToCoord(b),S)},eachActiveState:function(b,S,E,C){E==null&&(E=0),C==null&&(C=b.count());var _=this._axesMap,T=this.dimensions,w=[],O=[];y.each(T,function(U){w.push(b.mapDimension(U)),O.push(_.get(U).model)});for(var I=this.hasAxisBrushed(),k=E;k<C;k++){var M;if(!I)M="normal";else{M="active";for(var j=b.getValues(w,k),P=0,X=T.length;P<X;P++){var F=O[P].getActiveState(j[P]);if(F==="inactive"){M="inactive";break}}}S(M,k)}},hasAxisBrushed:function(){for(var b=this.dimensions,S=this._axesMap,E=!1,C=0,_=b.length;C<_;C++)S.get(b[C]).model.getActiveState()!=="normal"&&(E=!0);return E},axisCoordToPoint:function(b,S){var E=this._axesLayout[S];return p.applyTransform([b,0],E.transform)},getAxisLayout:function(b){return y.clone(this._axesLayout[b])},getSlidedAxisExpandWindow:function(b){var S=this._makeLayoutInfo(),E=S.pixelDimIndex,C=S.axisExpandWindow.slice(),_=C[1]-C[0],T=[0,S.axisExpandWidth*(S.axisCount-1)];if(!this.containPoint(b))return{behavior:"none",axisExpandWindow:C};var w=b[E]-S.layoutBase-S.axisExpandWindow0Pos,O,I="slide",k=S.axisCollapseWidth,M=this._model.get("axisExpandSlideTriggerArea"),j=M[0]!=null;if(k)j&&k&&w<_*M[0]?(I="jump",O=w-_*M[2]):j&&k&&w>_*(1-M[0])?(I="jump",O=w-_*(1-M[2])):(O=w-_*M[1])>=0&&(O=w-_*(1-M[1]))<=0&&(O=0),O*=S.axisExpandWidth/k,O?u(O,C,T,"all"):I="none";else{var _=C[1]-C[0],P=T[1]*w/_;C=[t(0,P-_/2)],C[1]=i(T[1],C[0]+_),C[0]=C[1]-_}return{axisExpandWindow:C,behavior:I}}};function c(b,S){return i(t(b,S[0]),S[1])}function h(b,S){var E=S.layoutLength/(S.axisCount-1);return{position:E*b,axisNameAvailableWidth:E,axisLabelShow:!0}}function g(b,S){var E=S.layoutLength,C=S.axisExpandWidth,_=S.axisCount,T=S.axisCollapseWidth,w=S.winInnerIndices,O,I=T,k=!1,M;return b<w[0]?(O=b*T,M=T):b<=w[1]?(O=S.axisExpandWindow0Pos+b*C-S.axisExpandWindow[0],I=C,k=!0):(O=E-(_-1-b)*T,M=T),{position:O,axisNameAvailableWidth:I,axisLabelShow:k,nameTruncateMaxWidth:M}}var A=a;R.exports=A},"2fGM":function(R,D,n){var y=n("bYtY"),f=n("bLfw"),x=n("nkfE"),v=n("ICMv"),m=f.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});y.merge(m.prototype,v);var p={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function d(u,s){return s.type||(s.data?"category":"value")}x("angle",m,d,p.angle),x("radius",m,d,p.radius)},"2fM7":function(R,D,n){"use strict";var y=n("lSNA"),f=n.n(y),x=n("pVnL"),v=n.n(x),m=n("lwsE"),p=n.n(m),d=n("W8MJ"),u=n.n(d),s=n("7W2i"),i=n.n(s),t=n("LQ03"),o=n.n(t),e=n("q1tI"),l=n("BGR+"),r=n("TSYQ"),a=n.n(r),c=n("1OyB"),h=n("vuIU"),g=n("Ji7U"),A=n("LK+K"),b=n("rePB"),S=n("Ff2n"),E=n("ODXe"),C=n("4IlW"),_=n("bX4T"),T=n("YrtM"),w=n("+nKL"),O=function(ke){var Pe=ke.className,tt=ke.customizeIcon,yt=ke.customizeIconProps,Et=ke.onMouseDown,Yt=ke.onClick,Rr=ke.children,zr;return typeof tt=="function"?zr=tt(yt):zr=tt,e.createElement("span",{className:Pe,onMouseDown:function(jt){jt.preventDefault(),Et&&Et(jt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Yt,"aria-hidden":!0},zr!==void 0?zr:e.createElement("span",{className:a()(Pe.split(/\s+/).map(function(hn){return"".concat(hn,"-icon")}))},Rr))},I=O,k=function(ke,Pe){var tt=ke.prefixCls,yt=ke.id,Et=ke.flattenOptions,Yt=ke.childrenAsData,Rr=ke.values,zr=ke.searchValue,hn=ke.multiple,jt=ke.defaultActiveFirstOption,vt=ke.height,bt=ke.itemHeight,cr=ke.notFoundContent,Qt=ke.open,Mt=ke.menuItemSelectedIcon,tr=ke.virtual,Rt=ke.onSelect,qt=ke.onToggleOpen,Hr=ke.onActiveValue,Nr=ke.onScroll,Dr=ke.onMouseEnter,cn="".concat(tt,"-item"),An=Object(T.a)(function(){return Et},[Qt,Et],function(Ze,ot){return ot[0]&&Ze[1]!==ot[1]}),ri=e.useRef(null),$n=function(ot){ot.preventDefault()},fi=function(ot){ri.current&&ri.current.scrollTo({index:ot})},_i=function(ot){for(var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,gt=An.length,pr=0;pr<gt;pr+=1){var $r=(ot+pr*Ct+gt)%gt,Yr=An[$r],mn=Yr.group,Ar=Yr.data;if(!mn&&!Ar.disabled)return $r}return-1},Di=e.useState(function(){return _i(0)}),Wi=Object(E.a)(Di,2),it=Wi[0],Le=Wi[1],je=function(ot){Le(ot);var Ct=An[ot];if(!Ct){Hr(null,-1);return}Hr(Ct.data.value,ot)};e.useEffect(function(){je(jt!==!1?_i(0):-1)},[An.length,zr]),e.useEffect(function(){var Ze=setTimeout(function(){if(!hn&&Qt&&Rr.size===1){var ot=Array.from(Rr)[0],Ct=An.findIndex(function(gt){var pr=gt.data;return pr.value===ot});je(Ct),fi(Ct)}});return function(){return clearTimeout(Ze)}},[Qt]);var Xe=function(ot){ot!==void 0&&Rt(ot,{selected:!Rr.has(ot)}),hn||qt(!1)};if(e.useImperativeHandle(Pe,function(){return{onKeyDown:function(ot){var Ct=ot.which;switch(Ct){case C.a.UP:case C.a.DOWN:{var gt=0;if(Ct===C.a.UP?gt=-1:Ct===C.a.DOWN&&(gt=1),gt!==0){var pr=_i(it+gt,gt);fi(pr),je(pr)}break}case C.a.ENTER:{var $r=An[it];$r&&!$r.data.disabled?Xe($r.data.value):Xe(void 0),Qt&&ot.preventDefault();break}case C.a.ESC:qt(!1)}},onKeyUp:function(){},scrollTo:function(ot){fi(ot)}}}),An.length===0)return e.createElement("div",{role:"listbox",id:"".concat(yt,"_list"),className:"".concat(cn,"-empty"),onMouseDown:$n},cr);function nt(Ze){var ot=An[Ze];if(!ot)return null;var Ct=ot.data||{},gt=Ct.value,pr=Ct.label,$r=Ct.children,Yr=Object(_.a)(Ct,!0),mn=Yt?$r:pr;return ot?e.createElement("div",Object.assign({"aria-label":typeof mn=="string"?mn:null},Yr,{key:Ze,role:"option",id:"".concat(yt,"_list_").concat(Ze),"aria-selected":Rr.has(gt)}),gt):null}return e.createElement(e.Fragment,null,e.createElement("div",{role:"listbox",id:"".concat(yt,"_list"),style:{height:0,width:0,overflow:"hidden"}},nt(it-1),nt(it),nt(it+1)),e.createElement(w.a,{itemKey:"key",ref:ri,data:An,height:vt,itemHeight:bt,fullHeight:!1,onMouseDown:$n,onScroll:Nr,virtual:tr,onMouseEnter:Dr},function(Ze,ot){var Ct,gt=Ze.group,pr=Ze.groupOption,$r=Ze.data,Yr=$r.label,mn=$r.key;if(gt)return e.createElement("div",{className:a()(cn,"".concat(cn,"-group"))},Yr!==void 0?Yr:mn);var Ar=$r.disabled,zn=$r.value,Fr=$r.title,Bn=$r.children,bn=$r.style,en=$r.className,ti=Object(S.a)($r,["disabled","value","title","children","style","className"]),pi=Rr.has(zn),Pi="".concat(cn,"-option"),qr=a()(cn,Pi,en,(Ct={},Object(b.a)(Ct,"".concat(Pi,"-grouped"),pr),Object(b.a)(Ct,"".concat(Pi,"-active"),it===ot&&!Ar),Object(b.a)(Ct,"".concat(Pi,"-disabled"),Ar),Object(b.a)(Ct,"".concat(Pi,"-selected"),pi),Ct)),En=Yt?Bn:Yr,Yn=!Mt||typeof Mt=="function"||pi;return e.createElement("div",Object.assign({},ti,{"aria-selected":pi,className:qr,title:Fr,onMouseMove:function(){if(it===ot||Ar)return;je(ot)},onClick:function(){Ar||Xe(zn)},style:bn}),e.createElement("div",{className:"".concat(Pi,"-content")},En||zn),e.isValidElement(Mt)||pi,Yn&&e.createElement(I,{className:"".concat(cn,"-option-state"),customizeIcon:Mt,customizeIconProps:{isSelected:pi}},pi?"\u2713":null))}))},M=e.forwardRef(k);M.displayName="OptionList";var j=M,P=function(){return null};P.isSelectOption=!0;var X=P,F=function(){return null};F.isSelectOptGroup=!0;var U=F,K=n("VTBJ"),z=n("Zm9Q");function V(De){var ke=De.key,Pe=De.props,tt=Pe.children,yt=Pe.value,Et=Object(S.a)(Pe,["children","value"]);return Object(K.a)({key:ke,value:yt!==void 0?yt:ke,children:tt},Et)}function Q(De){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(z.a)(De).map(function(Pe,tt){if(!e.isValidElement(Pe)||!Pe.type)return null;var yt=Pe.type.isSelectOptGroup,Et=Pe.key,Yt=Pe.props,Rr=Yt.children,zr=Object(S.a)(Yt,["children"]);return ke||!yt?V(Pe):Object(K.a)(Object(K.a)({key:"__RC_SELECT_GRP__".concat(Et===null?tt:Et,"__"),label:Et},zr),{},{options:Q(Rr)})}).filter(function(Pe){return Pe})}var G=n("KQm4"),te=n("T5bk"),q=n("U8pU"),se=n("Kwbf");function re(De){return Array.isArray(De)?De:De!==void 0?[De]:[]}function xe(De,ke){var Pe=ke.labelInValue,tt=ke.combobox;if(De===void 0||De===""&&tt)return[];var yt=Array.isArray(De)?De:[De];return Pe?yt.map(function(Et){var Yt=Et.key,Rr=Et.value;return Rr!==void 0?Rr:Yt}):yt}function Oe(De,ke){var Pe=ke.optionLabelProp,tt=ke.labelInValue,yt=ke.prevValue,Et=ke.options,Yt=ke.getLabeledValue,Rr=De;return tt&&(Rr=Rr.map(function(zr){return Yt(zr,{options:Et,prevValue:yt,labelInValue:tt,optionLabelProp:Pe})})),Rr}function Me(De,ke){var Pe=Object(G.a)(ke),tt;for(tt=De.length-1;tt>=0&&De[tt].disabled;tt-=1);var yt=null;return tt!==-1&&(yt=Pe[tt],Pe.splice(tt,1)),{values:Pe,removedValue:yt}}var Qe=typeof window!="undefined"&&window.document&&window.document.documentElement,Ve=Qe,ut=0;function Fe(){var De;return Ve?(De=ut,ut+=1):De="TEST_OR_SSR",De}function ue(De,ke){var Pe=De.key,tt;return"value"in De&&(tt=De.value),Pe!=null?Pe:tt!==void 0?tt:"rc-index-key-".concat(ke)}function et(De){var ke=[];function Pe(tt,yt){tt.forEach(function(Et){yt||!("options"in Et)?ke.push({key:ue(Et,ke.length),groupOption:yt,data:Et}):(ke.push({key:ue(Et,ke.length),group:!0,data:Et}),Pe(Et.options,!0))})}return Pe(De,!1),ke}function he(De){var ke=Object(K.a)({},De);return"props"in ke||Object.defineProperty(ke,"props",{get:function(){return Object(se.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ke}}),ke}function J(De,ke){var Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tt=Pe.prevValueOptions,yt=tt===void 0?[]:tt,Et=new Map;return ke.forEach(function(Yt){if(!Yt.group){var Rr=Yt.data;Et.set(Rr.value,Rr)}}),De.map(function(Yt){var Rr=Et.get(Yt);return Rr||(Rr=Object(K.a)({},yt.find(function(zr){return zr._INTERNAL_OPTION_VALUE_===Yt}))),he(Rr)})}var Y=function(ke,Pe){var tt=Pe.options,yt=Pe.prevValue,Et=Pe.labelInValue,Yt=Pe.optionLabelProp,Rr=J([ke],tt)[0],zr={value:ke},hn,jt=re(yt);return Et&&(hn=jt.find(function(vt){return Object(q.a)(vt)==="object"&&"value"in vt?vt.value===ke:vt.key===ke})),hn&&Object(q.a)(hn)==="object"&&"label"in hn?(zr.label=hn.label,Rr&&typeof hn.label=="string"&&typeof Rr[Yt]=="string"&&hn.label.trim()!==Rr[Yt].trim()&&Object(se.a)(!1,"`label` of `value` is not same as `label` in Select options.")):Rr&&Yt in Rr?zr.label=Rr[Yt]:zr.label=ke,zr.key=zr.value,zr};function $(De){return re(De).join("")}function de(De){return function(ke,Pe){var tt=ke.toLowerCase();if("options"in Pe)return $(Pe.label).toLowerCase().includes(tt);var yt=Pe[De],Et=$(yt).toLowerCase();return Et.includes(tt)}}function be(De,ke,Pe){var tt=Pe.optionFilterProp,yt=Pe.filterOption,Et=[],Yt;return yt===!1?ke:(typeof yt=="function"?Yt=yt:Yt=de(tt),ke.forEach(function(Rr){if("options"in Rr){var zr=Yt(De,Rr);if(zr)Et.push(Rr);else{var hn=Rr.options.filter(function(jt){return Yt(De,jt)});hn.length&&Et.push(Object(K.a)(Object(K.a)({},Rr),{},{options:hn}))}return}Yt(De,he(Rr))&&Et.push(Rr)}),Et)}function Ce(De,ke){if(!ke||!ke.length)return null;var Pe=!1;function tt(Et,Yt){var Rr=Object(te.a)(Yt),zr=Rr[0],hn=Rr.slice(1);if(!zr)return[Et];var jt=Et.split(zr);return Pe=Pe||jt.length>1,jt.reduce(function(vt,bt){return[].concat(Object(G.a)(vt),Object(G.a)(tt(bt,hn)))},[]).filter(function(vt){return vt})}var yt=tt(De,ke);return Pe?yt:null}function Be(De,ke){var Pe=J([De],ke)[0];return Pe.disabled}function fe(De,ke,Pe,tt){var yt=re(ke).slice().sort(),Et=Object(G.a)(De),Yt=new Set;return De.forEach(function(Rr){Rr.options?Rr.options.forEach(function(zr){Yt.add(zr.value)}):Yt.add(Rr.value)}),yt.forEach(function(Rr){var zr=tt?Rr.value:Rr;if(!Yt.has(zr)){var hn;Et.push(tt?(hn={},Object(b.a)(hn,Pe,Rr.label),Object(b.a)(hn,"value",zr),hn):{value:zr})}}),Et}var we=n("6cGi"),Re=n("HTfv"),rt=n("c+Xe"),St=function(ke,Pe){var tt=ke.prefixCls,yt=ke.id,Et=ke.inputElement,Yt=ke.disabled,Rr=ke.tabIndex,zr=ke.autoFocus,hn=ke.autoComplete,jt=ke.editable,vt=ke.accessibilityIndex,bt=ke.value,cr=ke.onKeyDown,Qt=ke.onMouseDown,Mt=ke.onChange,tr=ke.onPaste,Rt=ke.onCompositionStart,qt=ke.onCompositionEnd,Hr=ke.open,Nr=ke.attrs,Dr=Et||e.createElement("input",null),cn=Dr,An=cn.ref,ri=cn.props,$n=ri.onKeyDown,fi=ri.onChange,_i=ri.onMouseDown,Di=ri.onCompositionStart,Wi=ri.onCompositionEnd,it=ri.style;return Dr=e.cloneElement(Dr,Object(K.a)(Object(K.a)({id:yt,ref:Object(rt.a)(Pe,An),disabled:Yt,tabIndex:Rr,autoComplete:hn||"off",autoFocus:zr,className:"".concat(tt,"-selection-search-input"),style:Object(K.a)(Object(K.a)({},it),{},{opacity:jt?null:0}),role:"combobox","aria-expanded":Hr,"aria-haspopup":"listbox","aria-owns":"".concat(yt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(yt,"_list"),"aria-activedescendant":"".concat(yt,"_list_").concat(vt)},Nr),{},{value:jt?bt:"",readOnly:!jt,unselectable:jt?null:"on",onKeyDown:function(je){cr(je),$n&&$n(je)},onMouseDown:function(je){Qt(je),_i&&_i(je)},onChange:function(je){Mt(je),fi&&fi(je)},onCompositionStart:function(je){Rt(je),Di&&Di(je)},onCompositionEnd:function(je){qt(je),Wi&&Wi(je)},onPaste:tr})),Dr},ft=e.forwardRef(St);ft.displayName="Input";var He=ft;function er(De,ke){Ve?e.useLayoutEffect(De,ke):e.useEffect(De,ke)}var ct="__RC_SELECT_MAX_REST_COUNT__",Kt=function(ke){var Pe=ke.id,tt=ke.prefixCls,yt=ke.values,Et=ke.open,Yt=ke.searchValue,Rr=ke.inputRef,zr=ke.placeholder,hn=ke.disabled,jt=ke.mode,vt=ke.showSearch,bt=ke.autoFocus,cr=ke.autoComplete,Qt=ke.accessibilityIndex,Mt=ke.tabIndex,tr=ke.removeIcon,Rt=ke.choiceTransitionName,qt=ke.maxTagCount,Hr=ke.maxTagTextLength,Nr=ke.maxTagPlaceholder,Dr=Nr===void 0?function(zn){return"+ ".concat(zn.length," ...")}:Nr,cn=ke.tagRender,An=ke.onSelect,ri=ke.onInputChange,$n=ke.onInputPaste,fi=ke.onInputKeyDown,_i=ke.onInputMouseDown,Di=ke.onInputCompositionStart,Wi=ke.onInputCompositionEnd,it=e.useState(!1),Le=Object(E.a)(it,2),je=Le[0],Xe=Le[1],nt=e.useRef(null),Ze=e.useState(0),ot=Object(E.a)(Ze,2),Ct=ot[0],gt=ot[1];e.useEffect(function(){Xe(!0)},[]);var pr=Et||jt==="tags"?Yt:"",$r=jt==="tags"||Et&&vt;er(function(){gt(nt.current.scrollWidth)},[pr]);var Yr=yt,mn;typeof qt=="number"&&(mn=yt.length-qt,Yr=yt.slice(0,qt)),typeof Hr=="number"&&(Yr=Yr.map(function(zn){var Fr=zn.label,Bn=Object(S.a)(zn,["label"]),bn=Fr;if(typeof Fr=="string"||typeof Fr=="number"){var en=String(bn);en.length>Hr&&(bn="".concat(en.slice(0,Hr),"..."))}return Object(K.a)(Object(K.a)({},Bn),{},{label:bn})})),mn>0&&Yr.push({key:ct,label:typeof Dr=="function"?Dr(yt.slice(qt)):Dr});var Ar=e.createElement(Re.CSSMotionList,{component:!1,keys:Yr,motionName:Rt,motionAppear:je},function(zn){var Fr=zn.key,Bn=zn.label,bn=zn.value,en=zn.disabled,ti=zn.className,pi=zn.style,Pi=Fr||bn,qr=Fr!==ct&&!en,En=function(Ot){Ot.preventDefault(),Ot.stopPropagation()},Yn=function(Ot){Ot&&Ot.stopPropagation(),An(bn,{selected:!1})};return typeof cn=="function"?e.createElement("span",{key:Pi,onMouseDown:En,className:ti,style:pi},cn({label:Bn,value:bn,disabled:en,closable:qr,onClose:Yn})):e.createElement("span",{key:Pi,className:a()(ti,"".concat(tt,"-selection-item"),Object(b.a)({},"".concat(tt,"-selection-item-disabled"),en)),style:pi},e.createElement("span",{className:"".concat(tt,"-selection-item-content")},Bn),qr&&e.createElement(I,{className:"".concat(tt,"-selection-item-remove"),onMouseDown:En,onClick:Yn,customizeIcon:tr},"\xD7"))});return e.createElement(e.Fragment,null,Ar,e.createElement("span",{className:"".concat(tt,"-selection-search"),style:{width:Ct}},e.createElement(He,{ref:Rr,open:Et,prefixCls:tt,id:Pe,inputElement:null,disabled:hn,autoFocus:bt,autoComplete:cr,editable:$r,accessibilityIndex:Qt,value:pr,onKeyDown:fi,onMouseDown:_i,onChange:ri,onPaste:$n,onCompositionStart:Di,onCompositionEnd:Wi,tabIndex:Mt,attrs:Object(_.a)(ke,!0)}),e.createElement("span",{ref:nt,className:"".concat(tt,"-selection-search-mirror"),"aria-hidden":!0},pr,"\xA0")),!yt.length&&!pr&&e.createElement("span",{className:"".concat(tt,"-selection-placeholder")},zr))},fr=Kt,Gt=function(ke){var Pe=ke.inputElement,tt=ke.prefixCls,yt=ke.id,Et=ke.inputRef,Yt=ke.disabled,Rr=ke.autoFocus,zr=ke.autoComplete,hn=ke.accessibilityIndex,jt=ke.mode,vt=ke.open,bt=ke.values,cr=ke.placeholder,Qt=ke.tabIndex,Mt=ke.showSearch,tr=ke.searchValue,Rt=ke.activeValue,qt=ke.onInputKeyDown,Hr=ke.onInputMouseDown,Nr=ke.onInputChange,Dr=ke.onInputPaste,cn=ke.onInputCompositionStart,An=ke.onInputCompositionEnd,ri=e.useState(!1),$n=Object(E.a)(ri,2),fi=$n[0],_i=$n[1],Di=jt==="combobox",Wi=Di||Mt&&vt,it=bt[0],Le=tr||"";Di&&Rt&&!fi&&(Le=Rt),e.useEffect(function(){Di&&_i(!1)},[Di,Rt]);var je=jt!=="combobox"&&!vt?!1:!!Le,Xe=it&&(typeof it.label=="string"||typeof it.label=="number")?it.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(tt,"-selection-search")},e.createElement(He,{ref:Et,prefixCls:tt,id:yt,open:vt,inputElement:Pe,disabled:Yt,autoFocus:Rr,autoComplete:zr,editable:Wi,accessibilityIndex:hn,value:Le,onKeyDown:qt,onMouseDown:Hr,onChange:function(Ze){_i(!0),Nr(Ze)},onPaste:Dr,onCompositionStart:cn,onCompositionEnd:An,tabIndex:Qt,attrs:Object(_.a)(ke,!0)})),!Di&&it&&!je&&e.createElement("span",{className:"".concat(tt,"-selection-item"),title:Xe},it.label),!it&&!je&&e.createElement("span",{className:"".concat(tt,"-selection-placeholder")},cr))},Pt=Gt;function Xt(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ke=e.useRef(null),Pe=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(Pe.current)}},[]);function tt(yt){(yt||ke.current===null)&&(ke.current=yt),window.clearTimeout(Pe.current),Pe.current=window.setTimeout(function(){ke.current=null},De)}return[function(){return ke.current},tt]}var Ge=function(ke,Pe){var tt=Object(e.useRef)(null),yt=Object(e.useRef)(!1),Et=ke.prefixCls,Yt=ke.multiple,Rr=ke.open,zr=ke.mode,hn=ke.showSearch,jt=ke.tokenWithEnter,vt=ke.onSearch,bt=ke.onSearchSubmit,cr=ke.onToggleOpen,Qt=ke.onInputKeyDown,Mt=ke.domRef;e.useImperativeHandle(Pe,function(){return{focus:function(){tt.current.focus()},blur:function(){tt.current.blur()}}});var tr=Xt(0),Rt=Object(E.a)(tr,2),qt=Rt[0],Hr=Rt[1],Nr=function(je){var Xe=je.which;(Xe===C.a.UP||Xe===C.a.DOWN)&&je.preventDefault(),Qt&&Qt(je),Xe===C.a.ENTER&&zr==="tags"&&!yt.current&&!Rr&&bt(je.target.value),[C.a.SHIFT,C.a.TAB,C.a.BACKSPACE,C.a.ESC].includes(Xe)||cr(!0)},Dr=function(){Hr(!0)},cn=Object(e.useRef)(null),An=function(je){vt(je,!0,yt.current)!==!1&&cr(!0)},ri=function(){yt.current=!0},$n=function(){yt.current=!1},fi=function(je){var Xe=je.target.value;if(jt&&cn.current&&/[\r\n]/.test(cn.current)){var nt=cn.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");Xe=Xe.replace(nt,cn.current)}cn.current=null,An(Xe)},_i=function(je){var Xe=je.clipboardData,nt=Xe.getData("text");cn.current=nt},Di=function(je){var Xe=qt();if(je.target!==tt.current){Xe||je.preventDefault();var nt=document.body.style.msTouchAction!==void 0;nt?setTimeout(function(){tt.current.focus()}):tt.current.focus()}(zr!=="combobox"&&(!hn||!Xe)||!Rr)&&(Rr&&vt("",!0,!1),cr())},Wi={inputRef:tt,onInputKeyDown:Nr,onInputMouseDown:Dr,onInputChange:fi,onInputPaste:_i,onInputCompositionStart:ri,onInputCompositionEnd:$n},it=Yt?e.createElement(fr,Object.assign({},ke,Wi)):e.createElement(Pt,Object.assign({},ke,Wi));return e.createElement("div",{ref:Mt,className:"".concat(Et,"-selector"),onMouseDown:Di},it)},pe=e.forwardRef(Ge);pe.displayName="Selector";var oe=pe,lt=n("Uaa1"),qe=function(ke){var Pe=typeof ke!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Pe,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Pe,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Pe,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Pe,adjustY:1}}}},ge=function(ke,Pe){var tt=ke.prefixCls,yt=ke.disabled,Et=ke.visible,Yt=ke.children,Rr=ke.popupElement,zr=ke.containerWidth,hn=ke.animation,jt=ke.transitionName,vt=ke.dropdownStyle,bt=ke.dropdownClassName,cr=ke.direction,Qt=cr===void 0?"ltr":cr,Mt=ke.dropdownMatchSelectWidth,tr=Mt===void 0?!0:Mt,Rt=ke.dropdownRender,qt=ke.dropdownAlign,Hr=ke.getPopupContainer,Nr=ke.empty,Dr=ke.getTriggerDOMNode,cn=Object(S.a)(ke,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),An="".concat(tt,"-dropdown"),ri=Rr;Rt&&(ri=Rt(Rr));var $n=e.useMemo(function(){return qe(tr)},[tr]),fi=hn?"".concat(An,"-").concat(hn):jt,_i=e.useRef(null);e.useImperativeHandle(Pe,function(){return{getPopupElement:function(){return _i.current}}});var Di=Object(K.a)({minWidth:zr},vt);return typeof tr=="number"?Di.width=tr:tr&&(Di.width=zr),e.createElement(lt.a,Object.assign({},cn,{showAction:[],hideAction:[],popupPlacement:Qt==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:$n,prefixCls:An,popupTransitionName:fi,popup:e.createElement("div",{ref:_i},ri),popupAlign:qt,popupVisible:Et,getPopupContainer:Hr,popupClassName:a()(bt,Object(b.a)({},"".concat(An,"-empty"),Nr)),popupStyle:Di,getTriggerDOMNode:Dr}),Yt)},Ht=e.forwardRef(ge);Ht.displayName="SelectTrigger";var vr=Ht,At="RC_SELECT_INTERNAL_PROPS_MARK";function ir(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ke=e.useState(!1),Pe=Object(E.a)(ke,2),tt=Pe[0],yt=Pe[1],Et=e.useRef(null),Yt=function(){window.clearTimeout(Et.current)};e.useEffect(function(){return Yt},[]);var Rr=function(hn,jt){Yt(),Et.current=window.setTimeout(function(){yt(hn),jt&&jt()},De)};return[tt,Rr,Yt]}function lr(De,ke,Pe){var tt=e.useRef(null);tt.current={elements:De.filter(function(yt){return yt}),open:ke,triggerOpen:Pe},e.useEffect(function(){function yt(Et){var Yt=Et.target;tt.current.open&&tt.current.elements.every(function(Rr){return!Rr.contains(Yt)&&Rr!==Yt})&&tt.current.triggerOpen(!1)}return window.addEventListener("mousedown",yt),function(){return window.removeEventListener("mousedown",yt)}},[])}function dn(De){var ke=e.useRef(De),Pe=e.useMemo(function(){var tt=new Map;ke.current.forEach(function(Et){var Yt=Et.value,Rr=Et.label;Yt!==Rr&&tt.set(Yt,Rr)});var yt=De.map(function(Et){var Yt=tt.get(Et.value);return Et.value===Et.label&&Yt?Object(K.a)(Object(K.a)({},Et),{},{label:Yt}):Et});return ke.current=yt,yt},[De]);return Pe}function Ft(De,ke){var Pe=e.useRef(null),tt=e.useMemo(function(){var Et=new Map;return ke.forEach(function(Yt){var Rr=Yt.data.value;Et.set(Rr,Yt)}),Et},[De,ke]);Pe.current=tt;var yt=function(Yt){return Yt.map(function(Rr){return Pe.current.get(Rr)}).filter(Boolean)};return yt}var ur=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function Jt(De){var ke=De.prefixCls,Pe=De.components.optionList,tt=De.convertChildrenToData,yt=De.flattenOptions,Et=De.getLabeledValue,Yt=De.filterOptions,Rr=De.isValueDisabled,zr=De.findValueOption,hn=De.warningProps,jt=De.fillOptionsWithMissingValue,vt=De.omitDOMProps;function bt(Qt,Mt){var tr,Rt=Qt.prefixCls,qt=Rt===void 0?ke:Rt,Hr=Qt.className,Nr=Qt.id,Dr=Qt.open,cn=Qt.defaultOpen,An=Qt.options,ri=Qt.children,$n=Qt.mode,fi=Qt.value,_i=Qt.defaultValue,Di=Qt.labelInValue,Wi=Qt.showSearch,it=Qt.inputValue,Le=Qt.searchValue,je=Qt.filterOption,Xe=Qt.optionFilterProp,nt=Xe===void 0?"value":Xe,Ze=Qt.autoClearSearchValue,ot=Ze===void 0?!0:Ze,Ct=Qt.onSearch,gt=Qt.allowClear,pr=Qt.clearIcon,$r=Qt.showArrow,Yr=Qt.inputIcon,mn=Qt.menuItemSelectedIcon,Ar=Qt.disabled,zn=Qt.loading,Fr=Qt.defaultActiveFirstOption,Bn=Qt.notFoundContent,bn=Bn===void 0?"Not Found":Bn,en=Qt.optionLabelProp,ti=Qt.backfill,pi=Qt.getInputElement,Pi=Qt.getPopupContainer,qr=Qt.listHeight,En=qr===void 0?200:qr,Yn=Qt.listItemHeight,zt=Yn===void 0?20:Yn,Ot=Qt.animation,kt=Qt.transitionName,Bt=Qt.virtual,Wt=Qt.dropdownStyle,Lt=Qt.dropdownClassName,dr=Qt.dropdownMatchSelectWidth,yr=Qt.dropdownRender,br=Qt.dropdownAlign,Mr=Qt.showAction,Gn=Mr===void 0?[]:Mr,Mn=Qt.direction,di=Qt.tokenSeparators,vn=Qt.tagRender,Ur=Qt.onPopupScroll,In=Qt.onDropdownVisibleChange,Qn=Qt.onFocus,qn=Qt.onBlur,oi=Qt.onKeyUp,Ti=Qt.onKeyDown,ki=Qt.onMouseDown,Ri=Qt.onChange,oa=Qt.onSelect,ma=Qt.onDeselect,aa=Qt.onClear,ba=Qt.internalProps,yi=ba===void 0?{}:ba,kn=Object(S.a)(Qt,["prefixCls","className","id","open","defaultOpen","options","children","mode","value","defaultValue","labelInValue","showSearch","inputValue","searchValue","filterOption","optionFilterProp","autoClearSearchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","menuItemSelectedIcon","disabled","loading","defaultActiveFirstOption","notFoundContent","optionLabelProp","backfill","getInputElement","getPopupContainer","listHeight","listItemHeight","animation","transitionName","virtual","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","onChange","onSelect","onDeselect","onClear","internalProps"]),ji=yi.mark===At,ha=vt?vt(kn):kn;ur.forEach(function(pa){delete ha[pa]});var ta=Object(e.useRef)(null),ra=Object(e.useRef)(null),Ir=Object(e.useRef)(null),xr=Object(e.useRef)(null),Cn=Object(e.useMemo)(function(){return(di||[]).some(function(pa){return[`
|
|
|
`,`\r
|
|
|
`].includes(pa)})},[di]),mr=ir(),kr=Object(E.a)(mr,3),Gr=kr[0],ln=kr[1],Fn=kr[2],_t=Object(e.useState)(),Or=Object(E.a)(_t,2),Lr=Or[0],rn=Or[1];Object(e.useEffect)(function(){rn("rc_select_".concat(Fe()))},[]);var xn=Nr||Lr,Ln=en;Ln===void 0&&(Ln=An?"label":"children");var Sn=$n==="combobox"?!1:Di,ei=$n==="tags"||$n==="multiple",Kn=Wi!==void 0?Wi:ei||$n==="combobox",mi=Object(e.useRef)(null);e.useImperativeHandle(Mt,function(){return{focus:Ir.current.focus,blur:Ir.current.blur}});var Fi=Object(we.a)(_i,{value:fi}),bi=Object(E.a)(Fi,2),Ii=bi[0],Vi=bi[1],ea=Object(e.useMemo)(function(){return xe(Ii,{labelInValue:Sn,combobox:$n==="combobox"})},[Ii,Sn]),Xi=Object(e.useMemo)(function(){return new Set(ea)},[ea]),zi=Object(e.useState)(null),Hi=Object(E.a)(zi,2),Ji=Hi[0],ca=Hi[1],Ca=Object(e.useState)(""),na=Object(E.a)(Ca,2),Pa=na[0],La=na[1],va=Pa;$n==="combobox"&&Ii!==void 0?va=Ii:Le!==void 0?va=Le:it&&(va=it);var ga=Object(e.useMemo)(function(){var pa=An;return pa===void 0&&(pa=tt(ri)),$n==="tags"&&jt&&(pa=jt(pa,Ii,Ln,Di)),pa||[]},[An,ri,$n,Ii]),Oa=Object(e.useMemo)(function(){return yt(ga,Qt)},[ga]),Aa=Ft(ea,Oa),Xa=Object(e.useMemo)(function(){if(!va||!Kn)return Object(G.a)(ga);var pa=Yt(va,ga,{optionFilterProp:nt,filterOption:$n==="combobox"&&je===void 0?function(){return!0}:je});return $n==="tags"&&pa.every(function(Ea){return Ea[nt]!==va})&&pa.unshift({value:va,label:va,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),pa},[ga,va,$n,Kn]),_a=Object(e.useMemo)(function(){return yt(Xa,Qt)},[Xa]);Object(e.useEffect)(function(){xr.current&&xr.current.scrollTo&&xr.current.scrollTo(0)},[va]);var Va=Object(e.useMemo)(function(){var pa=ea.map(function(Ea){var Fa=Aa([Ea]),Ka=Et(Ea,{options:Fa,prevValue:Ii,labelInValue:Sn,optionLabelProp:Ln});return Object(K.a)(Object(K.a)({},Ka),{},{disabled:Rr(Ea,Fa)})});return!$n&&pa.length===1&&pa[0].value===null&&pa[0].label===null?[]:pa},[Ii,ga,$n]);Va=dn(Va);var Bi=function(Ea,Fa,Ka){var lo=Aa([Ea]),so=zr([Ea],lo)[0];if(!yi.skipTriggerSelect){var Co=Sn?Et(Ea,{options:lo,prevValue:Ii,labelInValue:Sn,optionLabelProp:Ln}):Ea;Fa&&oa?oa(Co,so):!Fa&&ma&&ma(Co,so)}ji&&(Fa&&yi.onRawSelect?yi.onRawSelect(Ea,so,Ka):!Fa&&yi.onRawDeselect&&yi.onRawDeselect(Ea,so,Ka))},io=Object(e.useState)([]),oo=Object(E.a)(io,2),Qo=oo[0],mo=oo[1],To=function(Ea){if(ji&&yi.skipTriggerChange)return;var Fa=Aa(Ea),Ka=Oe(Array.from(Ea),{labelInValue:Sn,options:Fa,getLabeledValue:Et,prevValue:Ii,optionLabelProp:Ln}),lo=ei?Ka:Ka[0];if(Ri&&(ea.length!==0||Ka.length!==0)){var so=zr(Ea,Fa,{prevValueOptions:Qo});mo(so.map(function(Co,Lo){var is=Object(K.a)({},Co);return Object.defineProperty(is,"_INTERNAL_OPTION_VALUE_",{get:function(){return Ea[Lo]}}),is})),Ri(lo,ei?so:so[0])}Vi(lo)},ao=function(Ea,Fa){var Ka=Fa.selected,lo=Fa.source;if(Ar)return;var so;ei?(so=new Set(ea),Ka?so.add(Ea):so.delete(Ea)):(so=new Set,so.add(Ea)),(ei||!ei&&Array.from(ea)[0]!==Ea)&&To(Array.from(so)),Bi(Ea,!ei||Ka,lo),$n==="combobox"?(La(String(Ea)),ca("")):(!ei||ot)&&(La(""),ca(""))},So=function(Ea,Fa){ao(Ea,Object(K.a)(Object(K.a)({},Fa),{},{source:"option"}))},bo=function(Ea,Fa){ao(Ea,Object(K.a)(Object(K.a)({},Fa),{},{source:"selection"}))},to=$n==="combobox"&&pi&&pi()||null,Jo=Object(we.a)(void 0,{defaultValue:cn,value:Dr}),Uo=Object(E.a)(Jo,2),wo=Uo[0],ts=Uo[1],Ia=wo,Oo=!bn&&!Xa.length;(Ar||Oo&&Ia&&$n==="combobox")&&(Ia=!1);var Io=Oo?!1:Ia,os=function(Ea){var Fa=Ea!==void 0?Ea:!Ia;wo!==Fa&&!Ar&&(ts(Fa),In&&In(Fa))};lr([ta.current,ra.current&&ra.current.getPopupElement()],Io,os);var xo=function(Ea,Fa,Ka){var lo=!0,so=Ea;ca(null);var Co=Ka?null:Ce(Ea,di),Lo=Co;if($n==="combobox")Fa&&To([so]);else if(Co){so="",$n!=="tags"&&(Lo=Co.map(function(cs){var Rs=Oa.find(function(Ko){var as=Ko.data;return as[Ln]===cs});return Rs?Rs.data.value:null}).filter(function(cs){return cs!==null}));var is=Array.from(new Set([].concat(Object(G.a)(ea),Object(G.a)(Lo))));To(is),is.forEach(function(cs){Bi(cs,!0,"input")}),os(!1),lo=!1}return La(so),Ct&&va!==so&&Ct(so),lo},rs=function(Ea){var Fa=Array.from(new Set([].concat(Object(G.a)(ea),[Ea])));To(Fa),Fa.forEach(function(Ka){Bi(Ka,!0,"input")}),La("")};Object(e.useEffect)(function(){wo&&!!Ar&&ts(!1)},[Ar]),Object(e.useEffect)(function(){!Ia&&!ei&&$n!=="combobox"&&xo("",!1,!1)},[Ia]);var Ho=Xt(),_o=Object(E.a)(Ho,2),uo=_o[0],Ha=_o[1],mt=function(Ea){var Fa=uo(),Ka=Ea.which;if(!Ia&&Ka===C.a.ENTER&&os(!0),Ha(!!va),Ka===C.a.BACKSPACE&&!Fa&&ei&&!va&&ea.length){var lo=Me(Va,ea);lo.removedValue!==null&&(To(lo.values),Bi(lo.removedValue,!1,"input"))}for(var so=arguments.length,Co=new Array(so>1?so-1:0),Lo=1;Lo<so;Lo++)Co[Lo-1]=arguments[Lo];if(Ia&&xr.current){var is;(is=xr.current).onKeyDown.apply(is,[Ea].concat(Co))}Ti&&Ti.apply(void 0,[Ea].concat(Co))},Tr=function(Ea){for(var Fa=arguments.length,Ka=new Array(Fa>1?Fa-1:0),lo=1;lo<Fa;lo++)Ka[lo-1]=arguments[lo];if(Ia&&xr.current){var so;(so=xr.current).onKeyUp.apply(so,[Ea].concat(Ka))}oi&&oi.apply(void 0,[Ea].concat(Ka))},tn=Object(e.useRef)(!1),Qr=function(){ln(!0),Ar||(Qn&&!tn.current&&Qn.apply(void 0,arguments),Gn.includes("focus")&&os(!0)),tn.current=!0},Jn=function(){if(ln(!1,function(){tn.current=!1,os(!1)}),Ar)return;va&&($n==="tags"?(xo("",!1,!1),To(Array.from(new Set([].concat(Object(G.a)(ea),[va]))))):$n==="multiple"&&La("")),qn&&qn.apply(void 0,arguments)},fn=[];Object(e.useEffect)(function(){return function(){fn.forEach(function(pa){return clearTimeout(pa)}),fn.splice(0,fn.length)}},[]);var Xr=function(Ea){var Fa=Ea.target,Ka=ra.current&&ra.current.getPopupElement();if(Ka&&Ka.contains(Fa)){var lo=setTimeout(function(){var is=fn.indexOf(lo);is!==-1&&fn.splice(is,1),Fn(),Ka.contains(document.activeElement)||Ir.current.focus()});fn.push(lo)}if(ki){for(var so=arguments.length,Co=new Array(so>1?so-1:0),Lo=1;Lo<so;Lo++)Co[Lo-1]=arguments[Lo];ki.apply(void 0,[Ea].concat(Co))}},ii=Object(e.useState)(0),nn=Object(E.a)(ii,2),Wn=nn[0],li=nn[1],ci=Fr!==void 0?Fr:$n!=="combobox",si=function(Ea,Fa){li(Fa),ti&&$n==="combobox"&&Ea!==null&&ca(String(Ea))},Ci=Object(e.useState)(null),gi=Object(E.a)(Ci,2),Ai=gi[0],Ni=gi[1],ia=Object(e.useState)({}),Ki=Object(E.a)(ia,2),fa=Ki[1];function Ya(){fa({})}er(function(){if(Io){var pa=Math.ceil(ta.current.offsetWidth);Ai!==pa&&Ni(pa)}},[Io]);var xa=e.createElement(Pe,{ref:xr,prefixCls:qt,id:xn,open:Ia,childrenAsData:!An,options:Xa,flattenOptions:_a,multiple:ei,values:Xi,height:En,itemHeight:zt,onSelect:So,onToggleOpen:os,onActiveValue:si,defaultActiveFirstOption:ci,notFoundContent:bn,onScroll:Ur,searchValue:va,menuItemSelectedIcon:mn,virtual:Bt!==!1&&dr!==!1,onMouseEnter:Ya}),wa,Da=function(){ji&&yi.onClear&&yi.onClear(),aa&&aa(),To([]),xo("",!1,!1)};!Ar&>&&(ea.length||va)&&(wa=e.createElement(I,{className:"".concat(qt,"-clear"),onMouseDown:Da,customizeIcon:pr},"\xD7"));var ja=$r!==void 0?$r:zn||!ei&&$n!=="combobox",ko;ja&&(ko=e.createElement(I,{className:a()("".concat(qt,"-arrow"),Object(b.a)({},"".concat(qt,"-arrow-loading"),zn)),customizeIcon:Yr,customizeIconProps:{loading:zn,searchValue:va,open:Ia,focused:Gr,showSearch:Kn}}));var ro=a()(qt,Hr,(tr={},Object(b.a)(tr,"".concat(qt,"-focused"),Gr),Object(b.a)(tr,"".concat(qt,"-multiple"),ei),Object(b.a)(tr,"".concat(qt,"-single"),!ei),Object(b.a)(tr,"".concat(qt,"-allow-clear"),gt),Object(b.a)(tr,"".concat(qt,"-show-arrow"),ja),Object(b.a)(tr,"".concat(qt,"-disabled"),Ar),Object(b.a)(tr,"".concat(qt,"-loading"),zn),Object(b.a)(tr,"".concat(qt,"-open"),Ia),Object(b.a)(tr,"".concat(qt,"-customize-input"),to),Object(b.a)(tr,"".concat(qt,"-show-search"),Kn),tr));return e.createElement("div",Object.assign({className:ro},ha,{ref:ta,onMouseDown:Xr,onKeyDown:mt,onKeyUp:Tr,onFocus:Qr,onBlur:Jn}),Gr&&!Ia&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ea.join(", "))),e.createElement(vr,{ref:ra,disabled:Ar,prefixCls:qt,visible:Io,popupElement:xa,containerWidth:Ai,animation:Ot,transitionName:kt,dropdownStyle:Wt,dropdownClassName:Lt,direction:Mn,dropdownMatchSelectWidth:dr,dropdownRender:yr,dropdownAlign:br,getPopupContainer:Pi,empty:!ga.length,getTriggerDOMNode:function(){return mi.current}},e.createElement(oe,Object.assign({},Qt,{domRef:mi,prefixCls:qt,inputElement:to,ref:Ir,id:xn,showSearch:Kn,mode:$n,accessibilityIndex:Wn,multiple:ei,tagRender:vn,values:Va,open:Ia,onToggleOpen:os,searchValue:va,activeValue:Ji,onSearch:xo,onSearchSubmit:rs,onSelect:bo,tokenWithEnter:Cn}))),ko,wa)}var cr=e.forwardRef(bt);return cr}function pt(De){var ke=De.mode,Pe=De.options,tt=De.children,yt=De.backfill,Et=De.allowClear,Yt=De.placeholder,Rr=De.getInputElement,zr=De.showSearch,hn=De.onSearch,jt=De.defaultOpen,vt=De.autoFocus,bt=De.labelInValue,cr=De.value,Qt=De.inputValue,Mt=De.optionLabelProp,tr=ke==="multiple"||ke==="tags",Rt=zr!==void 0?zr:tr||ke==="combobox",qt=Pe||Q(tt);if(Object(se.a)(ke!=="tags"||qt.every(function(cn){return!cn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ke==="tags"||ke==="combobox"){var Hr=qt.some(function(cn){return cn.options?cn.options.some(function(An){return typeof("value"in An?An.value:An.key)=="number"}):typeof("value"in cn?cn.value:cn.key)=="number"});Object(se.a)(!Hr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(se.a)(ke!=="combobox"||!Mt,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(se.a)(ke==="combobox"||!yt,"`backfill` only works with `combobox` mode."),Object(se.a)(ke==="combobox"||!Rr,"`getInputElement` only work with `combobox` mode."),Object(se.b)(ke!=="combobox"||!Rr||!Et||!Yt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),hn&&!Rt&&ke!=="combobox"&&ke!=="tags"&&Object(se.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(se.b)(!jt||vt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),cr!=null){var Nr=re(cr);Object(se.a)(!bt||Nr.every(function(cn){return Object(q.a)(cn)==="object"&&("key"in cn||"value"in cn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(se.a)(!tr||Array.isArray(cr),"`value` should be array when `mode` is `multiple` or `tags`")}if(tt){var Dr=null;Object(z.a)(tt).some(function(cn){if(!e.isValidElement(cn)||!cn.type)return!1;var An=cn.type;if(An.isSelectOption)return!1;if(An.isSelectOptGroup){var ri=Object(z.a)(cn.props.children).every(function($n){return!e.isValidElement($n)||!cn.type||$n.type.isSelectOption?!0:(Dr=$n.type,!1)});return!ri}return Dr=An,!0}),Dr&&Object(se.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Dr.displayName||Dr.name||Dr,"`.")),Object(se.a)(Qt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var at=pt,Pr=Jt({prefixCls:"rc-select",components:{optionList:j},convertChildrenToData:Q,flattenOptions:et,getLabeledValue:Y,filterOptions:be,isValueDisabled:Be,findValueOption:J,warningProps:at,fillOptionsWithMissingValue:fe}),un=function(De){Object(g.a)(Pe,De);var ke=Object(A.a)(Pe);function Pe(){var tt;return Object(c.a)(this,Pe),tt=ke.apply(this,arguments),tt.selectRef=e.createRef(),tt.focus=function(){tt.selectRef.current.focus()},tt.blur=function(){tt.selectRef.current.blur()},tt}return Object(h.a)(Pe,[{key:"render",value:function(){return e.createElement(Pr,Object.assign({ref:this.selectRef},this.props))}}]),Pe}(e.Component);un.Option=X,un.OptGroup=U;var _n=un,Xn=_n,xi=n("H84U"),Pn=n("1vzs"),Un=n("3Nzz"),$t=function(De){i()(Pe,De);var ke=o()(Pe);function Pe(){var tt;return p()(this,Pe),tt=ke.apply(this,arguments),tt.selectRef=e.createRef(),tt.focus=function(){tt.selectRef.current&&tt.selectRef.current.focus()},tt.blur=function(){tt.selectRef.current&&tt.selectRef.current.blur()},tt.getMode=function(){var yt=tt.props.mode;return yt==="combobox"?void 0:yt===Pe.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":yt},tt.renderSelect=function(yt){var Et=yt.getPopupContainer,Yt=yt.getPrefixCls,Rr=yt.renderEmpty,zr=yt.direction,hn=yt.virtual,jt=yt.dropdownMatchSelectWidth,vt=tt.props,bt=vt.prefixCls,cr=vt.notFoundContent,Qt=vt.className,Mt=vt.size,tr=vt.listHeight,Rt=tr===void 0?256:tr,qt=vt.listItemHeight,Hr=qt===void 0?24:qt,Nr=vt.getPopupContainer,Dr=vt.dropdownClassName,cn=vt.bordered,An=Yt("select",bt),ri=tt.getMode(),$n=ri==="multiple"||ri==="tags",fi;cr!==void 0?fi=cr:ri==="combobox"?fi=null:fi=Rr("Select");var _i=Object(Pn.a)(v()(v()({},tt.props),{multiple:$n,prefixCls:An})),Di=_i.suffixIcon,Wi=_i.itemIcon,it=_i.removeIcon,Le=_i.clearIcon,je=Object(l.default)(tt.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),Xe=a()(Dr,f()({},"".concat(An,"-dropdown-").concat(zr),zr==="rtl"));return e.createElement(Un.b.Consumer,null,function(nt){var Ze,ot=Mt||nt,Ct=a()(Qt,(Ze={},f()(Ze,"".concat(An,"-lg"),ot==="large"),f()(Ze,"".concat(An,"-sm"),ot==="small"),f()(Ze,"".concat(An,"-rtl"),zr==="rtl"),f()(Ze,"".concat(An,"-borderless"),!cn),Ze));return e.createElement(Xn,v()({ref:tt.selectRef,virtual:hn,dropdownMatchSelectWidth:jt},je,{listHeight:Rt,listItemHeight:Hr,mode:ri,prefixCls:An,direction:zr,inputIcon:Di,menuItemSelectedIcon:Wi,removeIcon:it,clearIcon:Le,notFoundContent:fi,className:Ct,getPopupContainer:Nr||Et,dropdownClassName:Xe}))})},tt}return u()(Pe,[{key:"render",value:function(){return e.createElement(xi.a,null,this.renderSelect)}}]),Pe}(e.Component);$t.Option=X,$t.OptGroup=U,$t.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",$t.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var xt=D.a=$t},"2fw6":function(R,D,n){var y=n("y+Vt"),f=y.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(v,m,p){p&&v.moveTo(m.cx+m.r,m.cy),v.arc(m.cx,m.cy,m.r,0,Math.PI*2,!0)}});R.exports=f},"2gN3":function(R,D,n){var y=n("Kz5y"),f=y["__core-js_shared__"];R.exports=f},"2jpz":function(R,D,n){"use strict";n.d(D,"a",function(){return h});var y=n("cDf5"),f=n.n(y),x=n("q1tI"),v=n.n(x),m=n("TSYQ"),p=n.n(m),d=n("gZBC"),u=n.n(d),s=n("vk+C"),i=n.n(s),t=n("pG52"),o=n.n(t),e=n("Csr3"),l=n.n(e),r=n("e5VY"),a=n.n(r),c=n("0n0R");function h(g,A,b,S){var E=S.isLeaf,C=S.expanded,_=S.loading;if(_)return x.createElement(u.a,{className:"".concat(g,"-switcher-loading-icon")});var T;if(b&&f()(b)==="object"&&(T=b.showLeafIcon),E)return b?f()(b)==="object"&&!T?x.createElement("span",{className:"".concat(g,"-switcher-leaf-line")}):x.createElement(i.a,{className:"".concat(g,"-switcher-line-icon")}):null;var w="".concat(g,"-switcher-icon");return Object(c.b)(A)?Object(c.a)(A,{className:p()(A.props.className||"",w)}):A||(b?C?x.createElement(o.a,{className:"".concat(g,"-switcher-line-icon")}):x.createElement(l.a,{className:"".concat(g,"-switcher-line-icon")}):x.createElement(a.a,{className:w}))}},"2oIt":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};D.default=y},"2uGb":function(R,D,n){var y=n("ProS");n("ko1b"),n("s2lz"),n("RBEP");var f=n("kMLO"),x=n("nKiI");y.registerVisual(f),y.registerLayout(x)},"2w7y":function(R,D,n){var y=n("ProS");n("qMZE"),n("g0SD"),y.registerPreprocessor(function(f){f.markPoint=f.markPoint||{}})},"33Ds":function(R,D,n){var y=n("ProS"),f=n("b9oc"),x=n("Kagy"),v=n("IUWy"),m=x.toolbox.restore;function p(s){this.model=s}p.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:m.title};var d=p.prototype;d.onclick=function(s,i,t){f.clear(s),i.dispatchAction({type:"restore",from:this.uid})},v.register("restore",p),y.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(s,i){i.resetOption("recreate")});var u=p;R.exports=u},"34/K":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function f(m,p){for(var d=0;d<p.length;d++){var u=p[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function x(m,p,d){return p&&f(m.prototype,p),d&&f(m,d),m}var v=function(){function m(){y(this,m),this._lines=0}return x(m,[{key:"decodeRect",value:function(d,u,s,i,t,o,e){this._lines===0&&(this._lines=i);var l=e==8?1:4,r=s*l;if(t.rQwait("RAW",r))return!1;var a=u+(i-this._lines),c=Math.min(this._lines,Math.floor(t.rQlen/r)),h=t.rQ,g=t.rQi;if(e==8){for(var A=s*c,b=new Uint8Array(A*4),S=0;S<A;S++)b[S*4+0]=(h[g+S]>>0&3)*255/3,b[S*4+1]=(h[g+S]>>2&3)*255/3,b[S*4+2]=(h[g+S]>>4&3)*255/3,b[S*4+4]=0;h=b,g=0}return o.blitImage(d,a,s,c,h,g),t.rQskipBytes(c*r),this._lines-=c,!(this._lines>0)}}]),m}();D.default=v},"3690":function(R,D,n){"use strict";function y(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(t){return typeof t}:y=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(s)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var f=v(n("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return x=function(){return s},s}function v(s){if(s&&s.__esModule)return s;if(s===null||y(s)!=="object"&&typeof s!="function")return{default:s};var i=x();if(i&&i.has(s))return i.get(s);var t={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in s)if(Object.prototype.hasOwnProperty.call(s,e)){var l=o?Object.getOwnPropertyDescriptor(s,e):null;l&&(l.get||l.set)?Object.defineProperty(t,e,l):t[e]=s[e]}return t.default=s,i&&i.set(s,t),t}function m(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")}function p(s,i){for(var t=0;t<i.length;t++){var o=i[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(s,o.key,o)}}function d(s,i,t){return i&&p(s.prototype,i),t&&p(s,t),s}var u=function(){function s(){m(this,s),this._tiles=0,this._lastsubencoding=0}return d(s,[{key:"decodeRect",value:function(t,o,e,l,r,a,c){for(this._tiles===0&&(this._tilesX=Math.ceil(e/16),this._tilesY=Math.ceil(l/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);this._tiles>0;){var h=1;if(r.rQwait("HEXTILE",h))return!1;var g=r.rQ,A=r.rQi,b=g[A];if(b>30)throw new Error("Illegal hextile subencoding (subencoding: "+b+")");var S=this._totalTiles-this._tiles,E=S%this._tilesX,C=Math.floor(S/this._tilesX),_=t+E*16,T=o+C*16,w=Math.min(16,t+e-_),O=Math.min(16,o+l-T);if(b&1)h+=w*O*4;else if(b&2&&(h+=4),b&4&&(h+=4),b&8){if(h++,r.rQwait("HEXTILE",h))return!1;var I=g[A+h-1];b&16?h+=I*(4+2):h+=I*2}if(r.rQwait("HEXTILE",h))return!1;if(A++,b===0)this._lastsubencoding&1?f.Debug(" Ignoring blank after RAW"):a.fillRect(_,T,w,O,this._background);else if(b&1)a.blitImage(_,T,w,O,g,A),A+=h-1;else{if(b&2&&(this._background=[g[A],g[A+1],g[A+2],g[A+3]],A+=4),b&4&&(this._foreground=[g[A],g[A+1],g[A+2],g[A+3]],A+=4),a.startTile(_,T,w,O,this._background),b&8){var k=g[A];A++;for(var M=0;M<k;M++){var j=void 0;b&16?(j=[g[A],g[A+1],g[A+2],g[A+3]],A+=4):j=this._foreground;var P=g[A];A++;var X=P>>4,F=P&15,U=g[A];A++;var K=(U>>4)+1,z=(U&15)+1;a.subTile(X,F,K,z,j)}}a.finishTile()}r.rQi=A,this._lastsubencoding=b,this._tiles--}return!0}}]),s}();D.default=u},"3A9y":function(R,D){function n(y){return this.__data__.has(y)}R.exports=n},"3C/r":function(R,D){var n=function(x,v){this.image=x,this.repeat=v,this.type="pattern"};n.prototype.getCanvasPattern=function(f){return f.createPattern(this.image,this.repeat||"repeat")};var y=n;R.exports=y},"3CBa":function(R,D,n){var y=n("hydK"),f=y.createElement,x=n("bYtY"),v=n("SUKs"),m=n("y+Vt"),p=n("Dagg"),d=n("dqUG"),u=n("DBLp"),s=n("sW+o"),i=n("n6Mw"),t=n("vKoX"),o=n("P47w"),e=o.path,l=o.image,r=o.text;function a(w){return parseInt(w,10)}function c(w){return w instanceof m?e:w instanceof p?l:w instanceof d?r:e}function h(w,O){return O&&w&&O.parentNode!==w}function g(w,O,I){if(h(w,O)&&I){var k=I.nextSibling;k?w.insertBefore(O,k):w.appendChild(O)}}function A(w,O){if(h(w,O)){var I=w.firstChild;I?w.insertBefore(O,I):w.appendChild(O)}}function b(w,O){O&&w&&O.parentNode===w&&w.removeChild(O)}function S(w){return w.__textSvgEl}function E(w){return w.__svgEl}var C=function(O,I,k,M){this.root=O,this.storage=I,this._opts=k=x.extend({},k||{});var j=f("svg");j.setAttribute("xmlns","http://www.w3.org/2000/svg"),j.setAttribute("version","1.1"),j.setAttribute("baseProfile","full"),j.style.cssText="user-select:none;position:absolute;left:0;top:0;";var P=f("g");j.appendChild(P);var X=f("g");j.appendChild(X),this.gradientManager=new s(M,X),this.clipPathManager=new i(M,X),this.shadowManager=new t(M,X);var F=document.createElement("div");F.style.cssText="overflow:hidden;position:relative",this._svgDom=j,this._svgRoot=X,this._backgroundRoot=P,this._viewport=F,O.appendChild(F),F.appendChild(j),this.resize(k.width,k.height),this._visibleList=[]};C.prototype={constructor:C,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var O=this.getViewportRoot();if(O)return{offsetLeft:O.offsetLeft||0,offsetTop:O.offsetTop||0}},refresh:function(){var O=this.storage.getDisplayList(!0);this._paintList(O)},setBackgroundColor:function(O){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var I=f("rect");I.setAttribute("width",this.getWidth()),I.setAttribute("height",this.getHeight()),I.setAttribute("x",0),I.setAttribute("y",0),I.setAttribute("id",0),I.style.fill=O,this._backgroundRoot.appendChild(I),this._backgroundNode=I},_paintList:function(O){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var I=this._svgRoot,k=this._visibleList,M=O.length,j=[],P;for(P=0;P<M;P++){var X=O[P],F=c(X),U=E(X)||S(X);X.invisible||(X.__dirty&&(F&&F.brush(X),this.clipPathManager.update(X),X.style&&(this.gradientManager.update(X.style.fill),this.gradientManager.update(X.style.stroke),this.shadowManager.update(U,X)),X.__dirty=!1),j.push(X))}var K=u(k,j),z;for(P=0;P<K.length;P++){var V=K[P];if(V.removed)for(var Q=0;Q<V.count;Q++){var X=k[V.indices[Q]],U=E(X),G=S(X);b(I,U),b(I,G)}}for(P=0;P<K.length;P++){var V=K[P];if(V.added)for(var Q=0;Q<V.count;Q++){var X=j[V.indices[Q]],U=E(X),G=S(X);z?g(I,U,z):A(I,U),U?g(I,G,U):z?g(I,G,z):A(I,G),g(I,G,U),z=G||U||z,this.gradientManager.addWithoutUpdate(U||G,X),this.shadowManager.addWithoutUpdate(U||G,X),this.clipPathManager.markUsed(X)}else if(!V.removed)for(var Q=0;Q<V.count;Q++){var X=j[V.indices[Q]],U=E(X),G=S(X),U=E(X),G=S(X);this.gradientManager.markUsed(X),this.gradientManager.addWithoutUpdate(U||G,X),this.shadowManager.markUsed(X),this.shadowManager.addWithoutUpdate(U||G,X),this.clipPathManager.markUsed(X),G&&g(I,G,U),z=U||G||z}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=j},_getDefs:function(O){var I=this._svgDom,k=I.getElementsByTagName("defs");if(k.length===0)if(O){var k=I.insertBefore(f("defs"),I.firstChild);return k.contains||(k.contains=function(j){var P=k.children;if(!P)return!1;for(var X=P.length-1;X>=0;--X)if(P[X]===j)return!0;return!1}),k}else return null;else return k[0]},resize:function(O,I){var k=this._viewport;k.style.display="none";var M=this._opts;if(O!=null&&(M.width=O),I!=null&&(M.height=I),O=this._getSize(0),I=this._getSize(1),k.style.display="",this._width!==O||this._height!==I){this._width=O,this._height=I;var j=k.style;j.width=O+"px",j.height=I+"px";var P=this._svgDom;P.setAttribute("width",O),P.setAttribute("height",I)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",O),this._backgroundNode.setAttribute("height",I))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(O){var I=this._opts,k=["width","height"][O],M=["clientWidth","clientHeight"][O],j=["paddingLeft","paddingTop"][O],P=["paddingRight","paddingBottom"][O];if(I[k]!=null&&I[k]!=="auto")return parseFloat(I[k]);var X=this.root,F=document.defaultView.getComputedStyle(X);return(X[M]||a(F[k])||a(X.style[k]))-(a(F[j])||0)-(a(F[P])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var O=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
|
|
|
\r<`));return"data:image/svg+xml;charset=UTF-8,"+O}};function _(w){return function(){v('In SVG mode painter not support method "'+w+'"')}}x.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(w){C.prototype[w]=_(w)});var T=C;R.exports=T},"3Fdi":function(R,D){var n=Function.prototype,y=n.toString;function f(x){if(x!=null){try{return y.call(x)}catch(v){}try{return x+""}catch(v){}}return""}R.exports=f},"3LNs":function(R,D,n){var y=n("bYtY"),f=n("Yl7c"),x=n("IwbS"),v=n("zTMp"),m=n("YH21"),p=n("iLNv"),d=n("4NO4"),u=d.makeInner,s=u(),i=y.clone,t=y.bind;function o(){}o.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(g,A,b,S){var E=A.get("value"),C=A.get("status");if(this._axisModel=g,this._axisPointerModel=A,this._api=b,!S&&this._lastValue===E&&this._lastStatus===C)return;this._lastValue=E,this._lastStatus=C;var _=this._group,T=this._handle;if(!C||C==="hide"){_&&_.hide(),T&&T.hide();return}_&&_.show(),T&&T.show();var w={};this.makeElOption(w,E,g,A,b);var O=w.graphicKey;O!==this._lastGraphicKey&&this.clear(b),this._lastGraphicKey=O;var I=this._moveAnimation=this.determineAnimation(g,A);if(!_)_=this._group=new x.Group,this.createPointerEl(_,w,g,A),this.createLabelEl(_,w,g,A),b.getZr().add(_);else{var k=y.curry(e,A,I);this.updatePointerEl(_,w,k,A),this.updateLabelEl(_,w,k,A)}c(_,A,!0),this._renderHandle(E)},remove:function(g){this.clear(g)},dispose:function(g){this.clear(g)},determineAnimation:function(g,A){var b=A.get("animation"),S=g.axis,E=S.type==="category",C=A.get("snap");if(!C&&!E)return!1;if(b==="auto"||b==null){var _=this.animationThreshold;if(E&&S.getBandWidth()>_)return!0;if(C){var T=v.getAxisInfo(g).seriesDataCount,w=S.getExtent();return Math.abs(w[0]-w[1])/T>_}return!1}return b===!0},makeElOption:function(g,A,b,S,E){},createPointerEl:function(g,A,b,S){var E=A.pointer;if(E){var C=s(g).pointerEl=new x[E.type](i(A.pointer));g.add(C)}},createLabelEl:function(g,A,b,S){if(A.label){var E=s(g).labelEl=new x.Rect(i(A.label));g.add(E),r(E,S)}},updatePointerEl:function(g,A,b){var S=s(g).pointerEl;S&&A.pointer&&(S.setStyle(A.pointer.style),b(S,{shape:A.pointer.shape}))},updateLabelEl:function(g,A,b,S){var E=s(g).labelEl;E&&(E.setStyle(A.label.style),b(E,{shape:A.label.shape,position:A.label.position}),r(E,S))},_renderHandle:function(g){if(this._dragging||!this.updateHandleTransform)return;var A=this._axisPointerModel,b=this._api.getZr(),S=this._handle,E=A.getModel("handle"),C=A.get("status");if(!E.get("show")||!C||C==="hide"){S&&b.remove(S),this._handle=null;return}var _;this._handle||(_=!0,S=this._handle=x.createIcon(E.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(O){m.stop(O.event)},onmousedown:t(this._onHandleDragMove,this,0,0),drift:t(this._onHandleDragMove,this),ondragend:t(this._onHandleDragEnd,this)}),b.add(S)),c(S,A,!1);var T=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];S.setStyle(E.getItemStyle(null,T));var w=E.get("size");y.isArray(w)||(w=[w,w]),S.attr("scale",[w[0]/2,w[1]/2]),p.createOrUpdate(this,"_doDispatchAxisPointer",E.get("throttle")||0,"fixRate"),this._moveHandleToValue(g,_)},_moveHandleToValue:function(g,A){e(this._axisPointerModel,!A&&this._moveAnimation,this._handle,a(this.getHandleTransform(g,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(g,A){var b=this._handle;if(!b)return;this._dragging=!0;var S=this.updateHandleTransform(a(b),[g,A],this._axisModel,this._axisPointerModel);this._payloadInfo=S,b.stopAnimation(),b.attr(a(S)),s(b).lastProp=null,this._doDispatchAxisPointer()},_doDispatchAxisPointer:function(){var g=this._handle;if(!g)return;var A=this._payloadInfo,b=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:A.cursorPoint[0],y:A.cursorPoint[1],tooltipOption:A.tooltipOption,axesInfo:[{axisDim:b.axis.dim,axisIndex:b.componentIndex}]})},_onHandleDragEnd:function(g){this._dragging=!1;var A=this._handle;if(!A)return;var b=this._axisPointerModel.get("value");this._moveHandleToValue(b),this._api.dispatchAction({type:"hideTip"})},getHandleTransform:null,updateHandleTransform:null,clear:function(g){this._lastValue=null,this._lastStatus=null;var A=g.getZr(),b=this._group,S=this._handle;A&&b&&(this._lastGraphicKey=null,b&&A.remove(b),S&&A.remove(S),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(g,A,b){return b=b||0,{x:g[b],y:g[1-b],width:A[b],height:A[1-b]}}},o.prototype.constructor=o;function e(g,A,b,S){l(s(b).lastProp,S)||(s(b).lastProp=S,A?x.updateProps(b,S,g):(b.stopAnimation(),b.attr(S)))}function l(g,A){if(y.isObject(g)&&y.isObject(A)){var b=!0;return y.each(A,function(S,E){b=b&&l(g[E],S)}),!!b}else return g===A}function r(g,A){g[A.get("label.show")?"show":"hide"]()}function a(g){return{position:g.position.slice(),rotation:g.rotation||0}}function c(g,A,b){var S=A.get("z"),E=A.get("zlevel");g&&g.traverse(function(C){C.type!=="group"&&(S!=null&&(C.z=S),E!=null&&(C.zlevel=E),C.silent=b)})}f.enableClassExtend(o);var h=o;R.exports=h},"3OrL":function(R,D,n){var y=n("bYtY"),f=n("6Ic6"),x=n("IwbS"),v=n("y+Vt"),m=["itemStyle"],p=["emphasis","itemStyle"],d=f.extend({type:"boxplot",render:function(e,l,r){var a=e.getData(),c=this.group,h=this._data;this._data||c.removeAll();var g=e.get("layout")==="horizontal"?1:0;a.diff(h).add(function(A){if(a.hasValue(A)){var b=a.getItemLayout(A),S=s(b,a,A,g,!0);a.setItemGraphicEl(A,S),c.add(S)}}).update(function(A,b){var S=h.getItemGraphicEl(b);if(!a.hasValue(A)){c.remove(S);return}var E=a.getItemLayout(A);S?i(E,S,a,A):S=s(E,a,A,g),c.add(S),a.setItemGraphicEl(A,S)}).remove(function(A){var b=h.getItemGraphicEl(A);b&&c.remove(b)}).execute(),this._data=a},remove:function(e){var l=this.group,r=this._data;this._data=null,r&&r.eachItemGraphicEl(function(a){a&&l.remove(a)})},dispose:y.noop}),u=v.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,l){var r=l.points,a=0;for(e.moveTo(r[a][0],r[a][1]),a++;a<4;a++)e.lineTo(r[a][0],r[a][1]);for(e.closePath();a<r.length;a++)e.moveTo(r[a][0],r[a][1]),a++,e.lineTo(r[a][0],r[a][1])}});function s(e,l,r,a,c){var h=e.ends,g=new u({shape:{points:c?t(h,a,e):h}});return i(e,g,l,r,c),g}function i(e,l,r,a,c){var h=r.hostModel,g=x[c?"initProps":"updateProps"];g(l,{shape:{points:e.ends}},h,a);var A=r.getItemModel(a),b=A.getModel(m),S=r.getItemVisual(a,"color"),E=b.getItemStyle(["borderColor"]);E.stroke=S,E.strokeNoScale=!0,l.useStyle(E),l.z2=100;var C=A.getModel(p).getItemStyle();x.setHoverStyle(l,C)}function t(e,l,r){return y.map(e,function(a){return a=a.slice(),a[l]=r.initBaseline,a})}var o=d;R.exports=o},"3S7+":function(R,D,n){"use strict";var y=n("lSNA"),f=n.n(y),x=n("J4zp"),v=n.n(x),m=n("pVnL"),p=n.n(m),d=n("q1tI"),u=n.n(d),s=n("U8pU"),i=n("VTBJ"),t=n("Ff2n"),o=n("1OyB"),e=n("vuIU"),l=n("JX7q"),r=n("Ji7U"),a=n("LK+K"),c=n("i8i4"),h=n.n(c),g=n("l4aY"),A=n("m+aA"),b=n("c+Xe"),S=n("zT1h"),E=n("QC+M"),C=n("TSYQ"),_=n.n(C);function T(Pn,Un,$t){return $t?Pn[0]===Un[0]:Pn[0]===Un[0]&&Pn[1]===Un[1]}function w(Pn,Un,$t){var xt=Pn[Un]||{};return Object(i.a)(Object(i.a)({},xt),$t)}function O(Pn,Un,$t,xt){for(var De=$t.points,ke=Object.keys(Pn),Pe=0;Pe<ke.length;Pe+=1){var tt=ke[Pe];if(T(Pn[tt].points,De,xt))return"".concat(Un,"-placement-").concat(tt)}return""}var I=n("xEkU"),k=n.n(I),M=n("9mu1"),j=n("rePB"),P=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function X(Pn,Un){var $t={};return $t[Pn.toLowerCase()]=Un.toLowerCase(),$t["Webkit".concat(Pn)]="webkit".concat(Un),$t["Moz".concat(Pn)]="moz".concat(Un),$t["ms".concat(Pn)]="MS".concat(Un),$t["O".concat(Pn)]="o".concat(Un.toLowerCase()),$t}function F(Pn,Un){var $t={animationend:X("Animation","AnimationEnd"),transitionend:X("Transition","TransitionEnd")};return Pn&&("AnimationEvent"in Un||delete $t.animationend.animation,"TransitionEvent"in Un||delete $t.transitionend.transition),$t}var U=F(P,typeof window!="undefined"?window:{}),K={};if(P){var z=document.createElement("div");K=z.style}var V={};function Q(Pn){if(V[Pn])return V[Pn];var Un=U[Pn];if(Un)for(var $t=Object.keys(Un),xt=$t.length,De=0;De<xt;De+=1){var ke=$t[De];if(Object.prototype.hasOwnProperty.call(Un,ke)&&ke in K)return V[Pn]=Un[ke],V[Pn]}return""}var G=Q("animationend"),te=Q("transitionend"),q=!!(G&&te);function se(Pn,Un){if(!Pn)return null;if(Object(s.a)(Pn)==="object"){var $t=Un.replace(/-\w/g,function(xt){return xt[1].toUpperCase()});return Pn[$t]}return"".concat(Pn,"-").concat(Un)}var re="none",xe="appear",Oe="enter",Me="leave";function Qe(Pn){var Un=Pn,$t=!!d.forwardRef;Object(s.a)(Pn)==="object"&&(Un=Pn.transitionSupport,$t="forwardRef"in Pn?Pn.forwardRef:$t);function xt(ke){return!!(ke.motionName&&Un)}var De=function(ke){Object(r.a)(tt,ke);var Pe=Object(a.a)(tt);function tt(){var yt;return Object(o.a)(this,tt),yt=Pe.apply(this,arguments),yt.$cacheEle=null,yt.node=null,yt.raf=null,yt.destroyed=!1,yt.deadlineId=null,yt.state={status:re,statusActive:!1,newStatus:!1,statusStyle:null},yt.onDomUpdate=function(){var Et=yt.state,Yt=Et.status,Rr=Et.newStatus,zr=yt.props,hn=zr.onAppearStart,jt=zr.onEnterStart,vt=zr.onLeaveStart,bt=zr.onAppearActive,cr=zr.onEnterActive,Qt=zr.onLeaveActive,Mt=zr.motionAppear,tr=zr.motionEnter,Rt=zr.motionLeave;if(!xt(yt.props))return;var qt=yt.getElement();yt.$cacheEle!==qt&&(yt.removeEventListener(yt.$cacheEle),yt.addEventListener(qt),yt.$cacheEle=qt),Rr&&Yt===xe&&Mt?yt.updateStatus(hn,null,null,function(){yt.updateActiveStatus(bt,xe)}):Rr&&Yt===Oe&&tr?yt.updateStatus(jt,null,null,function(){yt.updateActiveStatus(cr,Oe)}):Rr&&Yt===Me&&Rt&&yt.updateStatus(vt,null,null,function(){yt.updateActiveStatus(Qt,Me)})},yt.onMotionEnd=function(Et){if(Et&&!Et.deadline&&Et.target!==yt.getElement())return;var Yt=yt.state,Rr=Yt.status,zr=Yt.statusActive,hn=yt.props,jt=hn.onAppearEnd,vt=hn.onEnterEnd,bt=hn.onLeaveEnd;Rr===xe&&zr?yt.updateStatus(jt,{status:re},Et):Rr===Oe&&zr?yt.updateStatus(vt,{status:re},Et):Rr===Me&&zr&&yt.updateStatus(bt,{status:re},Et)},yt.setNodeRef=function(Et){var Yt=yt.props.internalRef;yt.node=Et,Object(b.b)(Yt,Et)},yt.getElement=function(){try{return Object(A.a)(yt.node||Object(l.a)(yt))}catch(Et){return yt.$cacheEle}},yt.addEventListener=function(Et){if(!Et)return;Et.addEventListener(te,yt.onMotionEnd),Et.addEventListener(G,yt.onMotionEnd)},yt.removeEventListener=function(Et){if(!Et)return;Et.removeEventListener(te,yt.onMotionEnd),Et.removeEventListener(G,yt.onMotionEnd)},yt.updateStatus=function(Et,Yt,Rr,zr){var hn=Et?Et(yt.getElement(),Rr):null;if(hn===!1||yt.destroyed)return;var jt;zr&&(jt=function(){yt.nextFrame(zr)}),yt.setState(Object(i.a)({statusStyle:Object(s.a)(hn)==="object"?hn:null,newStatus:!1},Yt),jt)},yt.updateActiveStatus=function(Et,Yt){yt.nextFrame(function(){var Rr=yt.state.status;if(Rr!==Yt)return;var zr=yt.props.motionDeadline;yt.updateStatus(Et,{statusActive:!0}),zr>0&&(yt.deadlineId=setTimeout(function(){yt.onMotionEnd({deadline:!0})},zr))})},yt.nextFrame=function(Et){yt.cancelNextFrame(),yt.raf=k()(Et)},yt.cancelNextFrame=function(){yt.raf&&(k.a.cancel(yt.raf),yt.raf=null)},yt}return Object(e.a)(tt,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var Et,Yt=this.state,Rr=Yt.status,zr=Yt.statusActive,hn=Yt.statusStyle,jt=this.props,vt=jt.children,bt=jt.motionName,cr=jt.visible,Qt=jt.removeOnLeave,Mt=jt.leavedClassName,tr=jt.eventProps;return vt?Rr===re||!xt(this.props)?cr?vt(Object(i.a)({},tr),this.setNodeRef):Qt?null:vt(Object(i.a)(Object(i.a)({},tr),{},{className:Mt}),this.setNodeRef):vt(Object(i.a)(Object(i.a)({},tr),{},{className:_()(se(bt,Rr),(Et={},Object(j.a)(Et,se(bt,"".concat(Rr,"-active")),zr),Object(j.a)(Et,bt,typeof bt=="string"),Et)),style:hn}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Et,Yt){var Rr=Yt.prevProps,zr=Yt.status;if(!xt(Et))return{};var hn=Et.visible,jt=Et.motionAppear,vt=Et.motionEnter,bt=Et.motionLeave,cr=Et.motionLeaveImmediately,Qt={prevProps:Et};return(zr===xe&&!jt||zr===Oe&&!vt||zr===Me&&!bt)&&(Qt.status=re,Qt.statusActive=!1,Qt.newStatus=!1),!Rr&&hn&&jt&&(Qt.status=xe,Qt.statusActive=!1,Qt.newStatus=!0),Rr&&!Rr.visible&&hn&&vt&&(Qt.status=Oe,Qt.statusActive=!1,Qt.newStatus=!0),(Rr&&Rr.visible&&!hn&&bt||!Rr&&cr&&!hn&&bt)&&(Qt.status=Me,Qt.statusActive=!1,Qt.newStatus=!0),Qt}}]),tt}(d.Component);return De.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},$t?d.forwardRef(function(ke,Pe){return d.createElement(De,Object.assign({internalRef:Pe},ke))}):De}var Ve=Qe(q),ut="add",Fe="keep",ue="remove",et="removed";function he(Pn){var Un;return Pn&&Object(s.a)(Pn)==="object"&&"key"in Pn?Un=Pn:Un={key:Pn},Object(i.a)(Object(i.a)({},Un),{},{key:String(Un.key)})}function J(){var Pn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Pn.map(he)}function Y(){var Pn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],$t=[],xt=0,De=Un.length,ke=J(Pn),Pe=J(Un);ke.forEach(function(Et){for(var Yt=!1,Rr=xt;Rr<De;Rr+=1){var zr=Pe[Rr];if(zr.key===Et.key){xt<Rr&&($t=$t.concat(Pe.slice(xt,Rr).map(function(hn){return Object(i.a)(Object(i.a)({},hn),{},{status:ut})})),xt=Rr),$t.push(Object(i.a)(Object(i.a)({},zr),{},{status:Fe})),xt+=1,Yt=!0;break}}Yt||$t.push(Object(i.a)(Object(i.a)({},Et),{},{status:ue}))}),xt<De&&($t=$t.concat(Pe.slice(xt).map(function(Et){return Object(i.a)(Object(i.a)({},Et),{},{status:ut})})));var tt={};$t.forEach(function(Et){var Yt=Et.key;tt[Yt]=(tt[Yt]||0)+1});var yt=Object.keys(tt).filter(function(Et){return tt[Et]>1});return yt.forEach(function(Et){$t=$t.filter(function(Yt){var Rr=Yt.key,zr=Yt.status;return Rr!==Et||zr!==ue}),$t.forEach(function(Yt){Yt.key===Et&&(Yt.status=Fe)})}),$t}var $=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function de(Pn){var Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ve,$t=function(xt){Object(r.a)(ke,xt);var De=Object(a.a)(ke);function ke(){var Pe;return Object(o.a)(this,ke),Pe=De.apply(this,arguments),Pe.state={keyEntities:[]},Pe.removeKey=function(tt){Pe.setState(function(yt){var Et=yt.keyEntities;return{keyEntities:Et.map(function(Yt){return Yt.key!==tt?Yt:Object(i.a)(Object(i.a)({},Yt),{},{status:et})})}})},Pe}return Object(e.a)(ke,[{key:"render",value:function(){var tt=this,yt=this.state.keyEntities,Et=this.props,Yt=Et.component,Rr=Et.children,zr=Object(t.a)(Et,["component","children"]),hn=Yt||d.Fragment,jt={};return $.forEach(function(vt){jt[vt]=zr[vt],delete zr[vt]}),delete zr.keys,d.createElement(hn,Object.assign({},zr),yt.map(function(vt){var bt=vt.status,cr=Object(t.a)(vt,["status"]),Qt=bt===ut||bt===Fe;return d.createElement(Un,Object.assign({},jt,{key:cr.key,visible:Qt,eventProps:cr,onLeaveEnd:function(){jt.onLeaveEnd&&jt.onLeaveEnd.apply(jt,arguments),tt.removeKey(cr.key)}}),Rr)}))}}],[{key:"getDerivedStateFromProps",value:function(tt,yt){var Et=tt.keys,Yt=yt.keyEntities,Rr=J(Et);if(!Pn)return{keyEntities:Rr.map(function(jt){return Object(i.a)(Object(i.a)({},jt),{},{status:Fe})})};var zr=Y(Yt,Rr),hn=Yt.length;return{keyEntities:zr.filter(function(jt){for(var vt=null,bt=0;bt<hn;bt+=1){var cr=Yt[bt];if(cr.key===jt.key){vt=cr;break}}return!(vt&&vt.status===et&&jt.status===ue)})}}}]),ke}(d.Component);return $t.defaultProps={component:"div"},$t}var be=de(q),Ce=Ve,Be=function(Un,$t){var xt=Un.prefixCls,De=Un.className,ke=Un.style,Pe=Un.children,tt=Un.onMouseEnter,yt=Un.onMouseLeave,Et=Un.onMouseDown,Yt=Un.onTouchStart,Rr=Pe;return d.Children.count(Pe)>1&&(Rr=d.createElement("div",{className:"".concat(xt,"-content")},Pe)),d.createElement("div",{ref:$t,className:De,onMouseEnter:tt,onMouseLeave:yt,onMouseDown:Et,onTouchStart:Yt,style:ke},Rr)},fe=d.forwardRef(Be);fe.displayName="PopupInner";var we=fe;function Re(Pn){var Un=Pn.prefixCls,$t=Pn.motion,xt=Pn.animation,De=Pn.transitionName;return $t||(xt?{motionName:"".concat(Un,"-").concat(xt)}:De?{motionName:De}:null)}function rt(Pn){return Pn&&Pn.motionName}var St=function(Pn){Object(r.a)($t,Pn);var Un=Object(a.a)($t);function $t(){var xt;return Object(o.a)(this,$t),xt=Un.apply(this,arguments),xt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},xt.popupRef=u.a.createRef(),xt.alignRef=u.a.createRef(),xt.nextFrameState=null,xt.nextFrameId=null,xt.onAlign=function(De,ke){var Pe=xt.state.status,tt=xt.props,yt=tt.getClassNameFromAlign,Et=tt.onAlign,Yt=yt(ke);Pe==="align"?xt.setState({alignClassName:Yt,status:"aligned"},function(){xt.alignRef.current.forceAlign()}):Pe==="aligned"?(xt.setState({alignClassName:Yt,status:"afterAlign"}),Et(De,ke)):xt.setState({alignClassName:Yt})},xt.onMotionEnd=function(){var De=xt.props.visible;xt.setState({status:De?"AfterMotion":"stable",inMotion:!1})},xt.setStateOnNextFrame=function(De){xt.cancelFrameState(),xt.nextFrameState=Object(i.a)(Object(i.a)({},xt.nextFrameState),De),xt.nextFrameId=k()(function(){var ke=Object(i.a)({},xt.nextFrameState);xt.nextFrameState=null,xt.setState(ke)})},xt.getMotion=function(){return Object(i.a)({},Re(xt.props))},xt.getAlignTarget=function(){var De=xt.props,ke=De.point,Pe=De.getRootDomNode;return ke||Pe},xt.cancelFrameState=function(){k.a.cancel(xt.nextFrameId)},xt.renderPopupElement=function(){var De=xt.state,ke=De.status,Pe=De.targetHeight,tt=De.targetWidth,yt=De.alignClassName,Et=xt.props,Yt=Et.prefixCls,Rr=Et.className,zr=Et.style,hn=Et.stretch,jt=Et.visible,vt=Et.align,bt=Et.destroyPopupOnHide,cr=Et.onMouseEnter,Qt=Et.onMouseLeave,Mt=Et.onMouseDown,tr=Et.onTouchStart,Rt=Et.children,qt=_()(Yt,Rr,yt),Hr="".concat(Yt,"-hidden"),Nr={};hn&&(hn.indexOf("height")!==-1?Nr.height=Pe:hn.indexOf("minHeight")!==-1&&(Nr.minHeight=Pe),hn.indexOf("width")!==-1?Nr.width=tt:hn.indexOf("minWidth")!==-1&&(Nr.minWidth=tt));var Dr=Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)({},Nr),xt.getZIndexStyle()),zr),{},{opacity:ke==="stable"||!jt?void 0:0,pointerEvents:ke==="stable"||!jt?void 0:"none"}),cn=xt.getMotion(),An=jt;jt&&ke!=="beforeMotion"&&ke!=="motion"&&ke!=="stable"&&(cn.motionAppear=!1,cn.motionEnter=!1,cn.motionLeave=!1),(ke==="afterAlign"||ke==="beforeMotion")&&(An=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(fi){var _i=cn==null?void 0:cn[fi];cn[fi]=function(){for(var Di=arguments.length,Wi=new Array(Di),it=0;it<Di;it++)Wi[it]=arguments[it];_i==null||_i.apply(void 0,Wi),xt.setState({inMotion:!0})}});var ri=!jt||ke!=="align"&&ke!=="aligned"&&ke!=="stable",$n=!0;return ke==="stable"&&($n=jt),bt&&!$n?null:u.a.createElement(Ce,Object.assign({visible:An},cn,{removeOnLeave:!1,onEnterEnd:xt.onMotionEnd,onLeaveEnd:xt.onMotionEnd,leavedClassName:Hr}),function(fi,_i){var Di=fi.style,Wi=fi.className;return u.a.createElement(M.a,{target:xt.getAlignTarget(),key:"popup",ref:xt.alignRef,monitorWindowResize:!0,disabled:ri,align:vt,onAlign:xt.onAlign},u.a.createElement(we,{prefixCls:Yt,className:_()(qt,Wi),ref:Object(b.a)(_i,xt.popupRef),onMouseEnter:cr,onMouseLeave:Qt,onMouseDown:Mt,onTouchStart:tr,style:Object(i.a)(Object(i.a)({},Dr),Di)},Rt))})},xt.renderMaskElement=function(){var De=xt.props,ke=De.mask,Pe=De.maskMotion,tt=De.maskTransitionName,yt=De.maskAnimation,Et=De.prefixCls,Yt=De.visible;if(!ke)return null;var Rr={};return Pe&&Pe.motionName&&(Rr=Object(i.a)({motionAppear:!0},Re({motion:Pe,prefixCls:Et,transitionName:tt,animation:yt}))),u.a.createElement(Ce,Object.assign({},Rr,{visible:Yt,removeOnLeave:!0}),function(zr){var hn=zr.className;return u.a.createElement("div",{style:xt.getZIndexStyle(),key:"mask",className:_()("".concat(Et,"-mask"),hn)})})},xt}return Object(e.a)($t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var De=this.state.status,ke=this.props,Pe=ke.getRootDomNode,tt=ke.visible,yt=ke.stretch;if(this.cancelFrameState(),tt&&De!=="stable")switch(De){case null:{this.setStateOnNextFrame({status:yt?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:rt(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Et=["measure","align",null,"beforeMotion","motion"],Yt=Et.indexOf(De),Rr=Et[Yt+1];Yt!==-1&&Rr&&this.setStateOnNextFrame({status:Rr})}}if(De==="measure"){var zr=Pe();zr&&this.setStateOnNextFrame({targetHeight:zr.offsetHeight,targetWidth:zr.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var De=this.props.zIndex;return{zIndex:De}}},{key:"render",value:function(){return u.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(De,ke){var Pe=De.visible,tt=Object(t.a)(De,["visible"]),yt=ke.prevVisible,Et=ke.status,Yt=ke.inMotion,Rr={prevVisible:Pe,status:Et},zr=Re(tt);return yt===null&&Pe===!1?(Rr.status="stable",Rr.inMotion=!1):Pe!==yt&&(Rr.inMotion=!1,Pe||rt(zr)&&Yt?Rr.status=null:Rr.status="stable",Pe&&(Rr.alignClassName=null)),Rr}}]),$t}(d.Component),ft=St,He=d.createContext(null),er=He;function ct(){}function Kt(){return""}function fr(){return window.document}var Gt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Pt(Pn){var Un=function($t){Object(r.a)(De,$t);var xt=Object(a.a)(De);function De(ke){var Pe;Object(o.a)(this,De),Pe=xt.call(this,ke),Pe.popupRef=u.a.createRef(),Pe.triggerRef=u.a.createRef(),Pe.onMouseEnter=function(yt){var Et=Pe.props.mouseEnterDelay;Pe.fireEvents("onMouseEnter",yt),Pe.delaySetPopupVisible(!0,Et,Et?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(g.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 Et;if(Pe.preClickTime&&Pe.preTouchTime?Et=Math.min(Pe.preClickTime,Pe.preTouchTime):Pe.preClickTime?Et=Pe.preClickTime:Pe.preTouchTime&&(Et=Pe.preTouchTime),Math.abs(Et-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 Yt=!Pe.state.popupVisible;(Pe.isClickToHide()&&!Yt||Yt&&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 Et=yt.target,Yt=Pe.getRootDomNode(),Rr=Pe.getPopupDomNode();!Object(g.a)(Yt,Et)&&!Object(g.a)(Rr,Et)&&!Pe.hasPopupMouseDown&&Pe.close()},Pe.getRootDomNode=function(){var yt=Pe.props.getTriggerDOMNode;if(yt)return yt(Pe.triggerRef.current);try{var Et=Object(A.a)(Pe.triggerRef.current);if(Et)return Et}catch(Yt){}return h.a.findDOMNode(Object(l.a)(Pe))},Pe.getPopupClassNameFromAlign=function(yt){var Et=[],Yt=Pe.props,Rr=Yt.popupPlacement,zr=Yt.builtinPlacements,hn=Yt.prefixCls,jt=Yt.alignPoint,vt=Yt.getPopupClassNameFromAlign;return Rr&&zr&&Et.push(O(zr,hn,yt,jt)),vt&&Et.push(vt(yt)),Et.join(" ")},Pe.getComponent=function(){var yt=Pe.props,Et=yt.prefixCls,Yt=yt.destroyPopupOnHide,Rr=yt.popupClassName,zr=yt.onPopupAlign,hn=yt.popupMotion,jt=yt.popupAnimation,vt=yt.popupTransitionName,bt=yt.popupStyle,cr=yt.mask,Qt=yt.maskAnimation,Mt=yt.maskTransitionName,tr=yt.maskMotion,Rt=yt.zIndex,qt=yt.popup,Hr=yt.stretch,Nr=yt.alignPoint,Dr=Pe.state,cn=Dr.popupVisible,An=Dr.point,ri=Pe.getPopupAlign(),$n={};return Pe.isMouseEnterToShow()&&($n.onMouseEnter=Pe.onPopupMouseEnter),Pe.isMouseLeaveToHide()&&($n.onMouseLeave=Pe.onPopupMouseLeave),$n.onMouseDown=Pe.onPopupMouseDown,$n.onTouchStart=Pe.onPopupMouseDown,u.a.createElement(ft,Object.assign({prefixCls:Et,destroyPopupOnHide:Yt,visible:cn,point:Nr&&An,className:Rr,align:ri,onAlign:zr,animation:jt,getClassNameFromAlign:Pe.getPopupClassNameFromAlign},$n,{stretch:Hr,getRootDomNode:Pe.getRootDomNode,style:bt,mask:cr,zIndex:Rt,transitionName:vt,maskAnimation:Qt,maskTransitionName:Mt,maskMotion:tr,ref:Pe.popupRef,motion:hn}),typeof qt=="function"?qt():qt)},Pe.getContainer=function(){var yt=Object(l.a)(Pe),Et=yt.props,Yt=document.createElement("div");Yt.style.position="absolute",Yt.style.top="0",Yt.style.left="0",Yt.style.width="100%";var Rr=Et.getPopupContainer?Et.getPopupContainer(Pe.getRootDomNode()):Et.getDocument().body;return Rr.appendChild(Yt),Yt},Pe.setPoint=function(yt){var Et=Pe.props.alignPoint;if(!Et||!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 tt;return"popupVisible"in ke?tt=!!ke.popupVisible:tt=!!ke.defaultPopupVisible,Pe.state={prevPopupVisible:tt,popupVisible:tt},Gt.forEach(function(yt){Pe["fire".concat(yt)]=function(Et){Pe.fireEvents(yt,Et)}}),Pe}return Object(e.a)(De,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Pe=this.props,tt=this.state;if(tt.popupVisible){var yt;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(yt=Pe.getDocument(),this.clickOutsideHandler=Object(S.a)(yt,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(yt=yt||Pe.getDocument(),this.touchOutsideHandler=Object(S.a)(yt,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(yt=yt||Pe.getDocument(),this.contextMenuOutsideHandler1=Object(S.a)(yt,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(S.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var Pe=this.props,tt=Pe.popupPlacement,yt=Pe.popupAlign,Et=Pe.builtinPlacements;return tt&&Et?w(Et,tt,yt):yt}},{key:"setPopupVisible",value:function(Pe,tt){var yt=this.props.alignPoint,Et=this.state.popupVisible;this.clearDelayTimer(),Et!==Pe&&("popupVisible"in this.props||this.setState({popupVisible:Pe,prevPopupVisible:Et}),this.props.onPopupVisibleChange(Pe)),yt&&tt&&this.setPoint(tt)}},{key:"delaySetPopupVisible",value:function(Pe,tt,yt){var Et=this,Yt=tt*1e3;if(this.clearDelayTimer(),Yt){var Rr=yt?{pageX:yt.pageX,pageY:yt.pageY}:null;this.delayTimer=window.setTimeout(function(){Et.setPopupVisible(Pe,Rr),Et.clearDelayTimer()},Yt)}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 tt=this.props.children.props,yt=this.props;return tt[Pe]&&yt[Pe]?this["fire".concat(Pe)]:tt[Pe]||yt[Pe]}},{key:"isClickToShow",value:function(){var Pe=this.props,tt=Pe.action,yt=Pe.showAction;return tt.indexOf("click")!==-1||yt.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Pe=this.props,tt=Pe.action,yt=Pe.showAction;return tt.indexOf("contextMenu")!==-1||yt.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Pe=this.props,tt=Pe.action,yt=Pe.hideAction;return tt.indexOf("click")!==-1||yt.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Pe=this.props,tt=Pe.action,yt=Pe.showAction;return tt.indexOf("hover")!==-1||yt.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Pe=this.props,tt=Pe.action,yt=Pe.hideAction;return tt.indexOf("hover")!==-1||yt.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Pe=this.props,tt=Pe.action,yt=Pe.showAction;return tt.indexOf("focus")!==-1||yt.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Pe=this.props,tt=Pe.action,yt=Pe.hideAction;return tt.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,tt){var yt=this.props.children.props[Pe];yt&&yt(tt);var Et=this.props[Pe];Et&&Et(tt)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Pe=this.state.popupVisible,tt=this.props,yt=tt.children,Et=tt.forceRender,Yt=tt.alignPoint,Rr=tt.className,zr=tt.autoDestroy,hn=u.a.Children.only(yt),jt={key:"trigger"};this.isContextMenuToShow()?jt.onContextMenu=this.onContextMenu:jt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(jt.onClick=this.onClick,jt.onMouseDown=this.onMouseDown,jt.onTouchStart=this.onTouchStart):(jt.onClick=this.createTwoChains("onClick"),jt.onMouseDown=this.createTwoChains("onMouseDown"),jt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(jt.onMouseEnter=this.onMouseEnter,Yt&&(jt.onMouseMove=this.onMouseMove)):jt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?jt.onMouseLeave=this.onMouseLeave:jt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(jt.onFocus=this.onFocus,jt.onBlur=this.onBlur):(jt.onFocus=this.createTwoChains("onFocus"),jt.onBlur=this.createTwoChains("onBlur"));var vt=_()(hn&&hn.props&&hn.props.className,Rr);vt&&(jt.className=vt);var bt=Object(i.a)({},jt);Object(b.c)(hn)&&(bt.ref=Object(b.a)(this.triggerRef,hn.ref));var cr=u.a.cloneElement(hn,bt),Qt;return(Pe||this.popupRef.current||Et)&&(Qt=u.a.createElement(Pn,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Pe&&zr&&(Qt=null),u.a.createElement(er.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},cr,Qt)}}],[{key:"getDerivedStateFromProps",value:function(Pe,tt){var yt=Pe.popupVisible,Et={};return yt!==void 0&&tt.popupVisible!==yt&&(Et.popupVisible=yt,Et.prevPopupVisible=tt.popupVisible),Et}}]),De}(u.a.Component);return Un.contextType=er,Un.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Kt,getDocument:fr,onPopupVisibleChange:ct,afterPopupVisibleChange:ct,onPopupAlign:ct,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Un}var Xt=Pt(E.a),Ge={adjustX:1,adjustY:1},pe=[0,0],oe={left:{points:["cr","cl"],overflow:Ge,offset:[-4,0],targetOffset:pe},right:{points:["cl","cr"],overflow:Ge,offset:[4,0],targetOffset:pe},top:{points:["bc","tc"],overflow:Ge,offset:[0,-4],targetOffset:pe},bottom:{points:["tc","bc"],overflow:Ge,offset:[0,4],targetOffset:pe},topLeft:{points:["bl","tl"],overflow:Ge,offset:[0,-4],targetOffset:pe},leftTop:{points:["tr","tl"],overflow:Ge,offset:[-4,0],targetOffset:pe},topRight:{points:["br","tr"],overflow:Ge,offset:[0,-4],targetOffset:pe},rightTop:{points:["tl","tr"],overflow:Ge,offset:[4,0],targetOffset:pe},bottomRight:{points:["tr","br"],overflow:Ge,offset:[0,4],targetOffset:pe},rightBottom:{points:["bl","br"],overflow:Ge,offset:[4,0],targetOffset:pe},bottomLeft:{points:["tl","bl"],overflow:Ge,offset:[0,4],targetOffset:pe},leftBottom:{points:["br","bl"],overflow:Ge,offset:[-4,0],targetOffset:pe}},lt=oe,qe=function(Un){var $t=Un.overlay,xt=Un.prefixCls,De=Un.id,ke=Un.overlayInnerStyle;return d.createElement("div",{className:"".concat(xt,"-inner"),id:De,role:"tooltip",style:ke},typeof $t=="function"?$t():$t)},ge=qe,Ht=function(Un,$t){var xt=Un.overlayClassName,De=Un.trigger,ke=De===void 0?["hover"]:De,Pe=Un.mouseEnterDelay,tt=Pe===void 0?0:Pe,yt=Un.mouseLeaveDelay,Et=yt===void 0?.1:yt,Yt=Un.overlayStyle,Rr=Un.prefixCls,zr=Rr===void 0?"rc-tooltip":Rr,hn=Un.children,jt=Un.onVisibleChange,vt=Un.afterVisibleChange,bt=Un.transitionName,cr=Un.animation,Qt=Un.placement,Mt=Qt===void 0?"right":Qt,tr=Un.align,Rt=tr===void 0?{}:tr,qt=Un.destroyTooltipOnHide,Hr=qt===void 0?!1:qt,Nr=Un.defaultVisible,Dr=Un.getTooltipContainer,cn=Un.overlayInnerStyle,An=Object(t.a)(Un,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ri=Object(d.useRef)(null);Object(d.useImperativeHandle)($t,function(){return ri.current});var $n=Object(i.a)({},An);"visible"in Un&&($n.popupVisible=Un.visible);var fi=function(){var Le=Un.arrowContent,je=Le===void 0?null:Le,Xe=Un.overlay,nt=Un.id;return[d.createElement("div",{className:"".concat(zr,"-arrow"),key:"arrow"},je),d.createElement(ge,{key:"content",prefixCls:zr,id:nt,overlay:Xe,overlayInnerStyle:cn})]},_i=!1,Di=!1;if(typeof Hr=="boolean")_i=Hr;else if(Hr&&Object(s.a)(Hr)==="object"){var Wi=Hr.keepParent;_i=Wi===!0,Di=Wi===!1}return d.createElement(Xt,Object.assign({popupClassName:xt,prefixCls:zr,popup:fi,action:ke,builtinPlacements:oe,popupPlacement:Mt,ref:ri,popupAlign:Rt,getPopupContainer:Dr,onPopupVisibleChange:jt,afterPopupVisibleChange:vt,popupTransitionName:bt,popupAnimation:cr,defaultPopupVisible:Nr,destroyPopupOnHide:_i,autoDestroy:Di,mouseLeaveDelay:Et,popupStyle:Yt,mouseEnterDelay:tt},$n),hn)},vr=Object(d.forwardRef)(Ht),At=vr,ir={adjustX:1,adjustY:1},lr={adjustX:0,adjustY:0},dn=[0,0];function Ft(Pn){return typeof Pn=="boolean"?Pn?ir:lr:p()(p()({},lr),Pn)}function ur(Pn){var Un=Pn.arrowWidth,$t=Un===void 0?5:Un,xt=Pn.horizontalArrowShift,De=xt===void 0?16:xt,ke=Pn.verticalArrowShift,Pe=ke===void 0?8:ke,tt=Pn.autoAdjustOverflow,yt={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(De+$t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(Pe+$t)]},topRight:{points:["br","tc"],offset:[De+$t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(Pe+$t)]},bottomRight:{points:["tr","bc"],offset:[De+$t,4]},rightBottom:{points:["bl","cr"],offset:[4,Pe+$t]},bottomLeft:{points:["tl","bc"],offset:[-(De+$t),4]},leftBottom:{points:["br","cl"],offset:[-4,Pe+$t]}};return Object.keys(yt).forEach(function(Et){yt[Et]=Pn.arrowPointAtCenter?p()(p()({},yt[Et]),{overflow:Ft(tt),targetOffset:dn}):p()(p()({},oe[Et]),{overflow:Ft(tt)}),yt[Et].ignoreShake=!0}),yt}var Jt=n("0n0R"),pt=n("H84U"),at=n("09Wf"),Pr=function(Un,$t){var xt={},De=p()({},Un);return $t.forEach(function(ke){Un&&ke in Un&&(xt[ke]=Un[ke],delete De[ke])}),{picked:xt,omitted:De}},un=new RegExp("^(".concat(at.a.join("|"),")(-inverse)?$"));function _n(Pn,Un){var $t=Pn.type;if(($t.__ANT_BUTTON===!0||$t.__ANT_SWITCH===!0||$t.__ANT_CHECKBOX===!0||Pn.type==="button")&&Pn.props.disabled){var xt=Pr(Pn.props.style,["position","left","right","top","bottom","float","display","zIndex"]),De=xt.picked,ke=xt.omitted,Pe=p()(p()({display:"inline-block"},De),{cursor:"not-allowed",width:Pn.props.block?"100%":null}),tt=p()(p()({},ke),{pointerEvents:"none"}),yt=Object(Jt.a)(Pn,{style:tt,className:null});return d.createElement("span",{style:Pe,className:_()(Pn.props.className,"".concat(Un,"-disabled-compatible-wrapper"))},yt)}return Pn}var Xn=d.forwardRef(function(Pn,Un){var $t,xt=d.useContext(pt.b),De=xt.getPopupContainer,ke=xt.getPrefixCls,Pe=xt.direction,tt=d.useState(!!Pn.visible||!!Pn.defaultVisible),yt=v()(tt,2),Et=yt[0],Yt=yt[1];d.useEffect(function(){"visible"in Pn&&Yt(Pn.visible)},[Pn.visible]);var Rr=function(){var Wi=Pn.title,it=Pn.overlay;return!Wi&&!it&&Wi!==0},zr=function(Wi){"visible"in Pn||Yt(Rr()?!1:Wi),Pn.onVisibleChange&&!Rr()&&Pn.onVisibleChange(Wi)},hn=function(){var Wi=Pn.builtinPlacements,it=Pn.arrowPointAtCenter,Le=Pn.autoAdjustOverflow;return Wi||ur({arrowPointAtCenter:it,autoAdjustOverflow:Le})},jt=function(Wi,it){var Le=hn(),je=Object.keys(Le).filter(function(Ze){return Le[Ze].points[0]===it.points[0]&&Le[Ze].points[1]===it.points[1]})[0];if(!je)return;var Xe=Wi.getBoundingClientRect(),nt={top:"50%",left:"50%"};je.indexOf("top")>=0||je.indexOf("Bottom")>=0?nt.top="".concat(Xe.height-it.offset[1],"px"):(je.indexOf("Top")>=0||je.indexOf("bottom")>=0)&&(nt.top="".concat(-it.offset[1],"px")),je.indexOf("left")>=0||je.indexOf("Right")>=0?nt.left="".concat(Xe.width-it.offset[0],"px"):(je.indexOf("right")>=0||je.indexOf("Left")>=0)&&(nt.left="".concat(-it.offset[0],"px")),Wi.style.transformOrigin="".concat(nt.left," ").concat(nt.top)},vt=function(){var Wi=Pn.title,it=Pn.overlay;return Wi===0?Wi:it||Wi||""},bt=Pn.prefixCls,cr=Pn.openClassName,Qt=Pn.getPopupContainer,Mt=Pn.getTooltipContainer,tr=Pn.overlayClassName,Rt=Pn.color,qt=Pn.overlayInnerStyle,Hr=Pn.children,Nr=ke("tooltip",bt),Dr=Et;!("visible"in Pn)&&Rr()&&(Dr=!1);var cn=_n(Object(Jt.b)(Hr)?Hr:d.createElement("span",null,Hr),Nr),An=cn.props,ri=_()(An.className,f()({},cr||"".concat(Nr,"-open"),!0)),$n=_()(tr,($t={},f()($t,"".concat(Nr,"-rtl"),Pe==="rtl"),f()($t,"".concat(Nr,"-").concat(Rt),Rt&&un.test(Rt)),$t)),fi,_i;return Rt&&!un.test(Rt)&&(fi=p()(p()({},qt),{background:Rt}),_i={background:Rt}),d.createElement(At,p()({},Pn,{prefixCls:Nr,overlayClassName:$n,getTooltipContainer:Qt||Mt||De,ref:Un,builtinPlacements:hn(),overlay:vt(),visible:Dr,onVisibleChange:zr,onPopupAlign:jt,overlayInnerStyle:fi,arrowContent:d.createElement("span",{className:"".concat(Nr,"-arrow-content"),style:_i})}),Dr?Object(Jt.a)(cn,{className:ri}):cn)});Xn.displayName="Tooltip",Xn.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var xi=D.a=Xn},"3TkU":function(R,D,n){n("aTJb"),n("OlYY"),n("fc+c"),n("QUw5"),n("Swgg"),n("LBfv"),n("noeP")},"3X6L":function(R,D,n){var y=n("bYtY"),f=n("7a+S"),x=n("OKJ2"),v=f.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});y.mixin(v,x);var m=v;R.exports=m},"3e3G":function(R,D,n){var y=n("bYtY"),f=n("QuXc"),x=function(p,d,u,s,i){this.x=p==null?.5:p,this.y=d==null?.5:d,this.r=u==null?.5:u,this.type="radial",this.global=i||!1,f.call(this,s)};x.prototype={constructor:x},y.inherits(x,f);var v=x;R.exports=v},"3gBT":function(R,D){var n=2311;function y(){return n++}R.exports=y},"3hzK":function(R,D){var n={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};R.exports=n},"3m61":function(R,D){function n(f){return f instanceof Array||(f=[f,f]),f}function y(f){f.eachSeriesByType("graph",function(x){var v=x.getGraph(),m=x.getEdgeData(),p=n(x.get("edgeSymbol")),d=n(x.get("edgeSymbolSize")),u="lineStyle.color".split("."),s="lineStyle.opacity".split(".");m.setVisual("fromSymbol",p&&p[0]),m.setVisual("toSymbol",p&&p[1]),m.setVisual("fromSymbolSize",d&&d[0]),m.setVisual("toSymbolSize",d&&d[1]),m.setVisual("color",x.get(u)),m.setVisual("opacity",x.get(s)),m.each(function(i){var t=m.getItemModel(i),o=v.getEdgeByIndex(i),e=n(t.getShallow("symbol",!0)),l=n(t.getShallow("symbolSize",!0)),r=t.get(u),a=t.get(s);switch(r){case"source":r=o.node1.getVisual("color");break;case"target":r=o.node2.getVisual("color");break}e[0]&&o.setVisual("fromSymbol",e[0]),e[1]&&o.setVisual("toSymbol",e[1]),l[0]&&o.setVisual("fromSymbolSize",l[0]),l[1]&&o.setVisual("toSymbolSize",l[1]),o.setVisual("color",r),o.setVisual("opacity",a)})})}R.exports=y},"3ouR":function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112c17.7 0 32 14.3 32 32v736c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32zm-40 72H184v656h656V184zM640.01 338.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-square",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="CloseSquareOutlined";var d=D.a=f.forwardRef(p)},"3y9D":function(R,D,n){(function(y,f){R.exports=D=f(n("Ib8C"))})(this,function(y){return function(){var f=y,x=f.lib,v=x.WordArray,m=x.Hasher,p=f.algo,d=[],u=p.SHA1=m.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(i,t){for(var o=this._hash.words,e=o[0],l=o[1],r=o[2],a=o[3],c=o[4],h=0;h<80;h++){if(h<16)d[h]=i[t+h]|0;else{var g=d[h-3]^d[h-8]^d[h-14]^d[h-16];d[h]=g<<1|g>>>31}var A=(e<<5|e>>>27)+c+d[h];h<20?A+=(l&r|~l&a)+1518500249:h<40?A+=(l^r^a)+1859775393:h<60?A+=(l&r|l&a|r&a)-1894007588:A+=(l^r^a)-899497514,c=a,a=r,r=l<<30|l>>>2,l=e,e=A}o[0]=o[0]+e|0,o[1]=o[1]+l|0,o[2]=o[2]+r|0,o[3]=o[3]+a|0,o[4]=o[4]+c|0},_doFinalize:function(){var i=this._data,t=i.words,o=this._nDataBytes*8,e=i.sigBytes*8;return t[e>>>5]|=128<<24-e%32,t[(e+64>>>9<<4)+14]=Math.floor(o/4294967296),t[(e+64>>>9<<4)+15]=o,i.sigBytes=t.length*4,this._process(),this._hash},clone:function(){var i=m.clone.call(this);return i._hash=this._hash.clone(),i}});f.SHA1=m._createHelper(u),f.HmacSHA1=m._createHmacHelper(u)}(),y.SHA1})},"3zoK":function(R,D,n){var y=n("bYtY"),f=n("bLfw"),x=n("KCsZ"),v=n("nkfE"),m=n("OELB"),p=n("ICMv"),d=f.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return x([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var o=this.activeIntervals=y.clone(t);if(o)for(var e=o.length-1;e>=0;e--)m.asc(o[e])},getActiveState:function(t){var o=this.activeIntervals;if(!o.length)return"normal";if(t==null||isNaN(t))return"inactive";if(o.length===1){var e=o[0];if(e[0]<=t&&t<=e[1])return"active"}else for(var l=0,r=o.length;l<r;l++)if(o[l][0]<=t&&t<=o[l][1])return"active";return"inactive"}}),u={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};y.merge(d.prototype,p);function s(t,o){return o.type||(o.data?"category":"value")}v("parallel",d,s,u);var i=d;R.exports=i},"49sm":function(R,D){var n={}.toString;R.exports=Array.isArray||function(y){return n.call(y)=="[object Array]"}},"4Feb":function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("bYtY"),v=n("IwbS"),m=n("x3X8"),p=m.getDefaultLabel,d=n("MwEJ"),u=n("nVfU"),s=u.getLayoutOnAxis,i=n("gPAo"),t=n("T4UG"),o=n("Qxkt"),e=n("6Ic6"),l=n("sK/D"),r=l.createClipPath,a=n("qj72"),c=n("ANjR"),h=n("MHtr"),g=n("6usn"),A=n("Rx6q"),b=v.CACHED_LABEL_STYLE_PROPERTIES,S=["itemStyle"],E=["emphasis","itemStyle"],C=["label"],_=["emphasis","label"],T="e\0\0",w={cartesian2d:a,geo:c,singleAxis:h,polar:g,calendar:A};t.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(re,xe){return d(this.getSource(),this)},getDataParams:function(re,xe,Oe){var Me=t.prototype.getDataParams.apply(this,arguments);return Oe&&(Me.info=Oe.info),Me}}),e.extend({type:"custom",_data:null,render:function(re,xe,Oe,Me){var Qe=this._data,Ve=re.getData(),ut=this.group,Fe=M(re,Ve,xe,Oe);Ve.diff(Qe).add(function(et){P(null,et,Fe(et,Me),re,ut,Ve)}).update(function(et,he){var J=Qe.getItemGraphicEl(he);P(J,et,Fe(et,Me),re,ut,Ve)}).remove(function(et){var he=Qe.getItemGraphicEl(et);he&&ut.remove(he)}).execute();var ue=re.get("clip",!0)?r(re.coordinateSystem,!1,re):null;ue?ut.setClipPath(ue):ut.removeClipPath(),this._data=Ve},incrementalPrepareRender:function(re,xe,Oe){this.group.removeAll(),this._data=null},incrementalRender:function(re,xe,Oe,Me,Qe){var Ve=xe.getData(),ut=M(xe,Ve,Oe,Me);function Fe(he){he.isGroup||(he.incremental=!0,he.useHoverLayer=!0)}for(var ue=re.start;ue<re.end;ue++){var et=P(null,ue,ut(ue,Qe),xe,this.group,Ve);et.traverse(Fe)}},dispose:x.noop,filterForExposedEvent:function(re,xe,Oe,Me){var Qe=xe.element;if(Qe==null||Oe.name===Qe)return!0;for(;(Oe=Oe.parent)&&Oe!==this.group;)if(Oe.name===Qe)return!0;return!1}});function O(re){var xe=re.type,Oe;if(xe==="path"){var Me=re.shape,Qe=Me.width!=null&&Me.height!=null?{x:Me.x||0,y:Me.y||0,width:Me.width,height:Me.height}:null,Ve=te(Me);Oe=v.makePath(Ve,null,Qe,Me.layout||"center"),Oe.__customPathData=Ve}else if(xe==="image")Oe=new v.Image({}),Oe.__customImagePath=re.style.image;else if(xe==="text")Oe=new v.Text({}),Oe.__customText=re.style.text;else if(xe==="group")Oe=new v.Group;else{if(xe==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var ut=v.getShapeClass(xe);Oe=new ut}return Oe.__customGraphicType=xe,Oe.name=re.name,Oe}function I(re,xe,Oe,Me,Qe,Ve,ut){var Fe={},ue=Oe.style||{};if(Oe.shape&&(Fe.shape=x.clone(Oe.shape)),Oe.position&&(Fe.position=Oe.position.slice()),Oe.scale&&(Fe.scale=Oe.scale.slice()),Oe.origin&&(Fe.origin=Oe.origin.slice()),Oe.rotation&&(Fe.rotation=Oe.rotation),re.type==="image"&&Oe.style){var et=Fe.style={};x.each(["x","y","width","height"],function(Y){k(Y,et,ue,re.style,Ve)})}if(re.type==="text"&&Oe.style){var et=Fe.style={};x.each(["x","y"],function($){k($,et,ue,re.style,Ve)}),!ue.hasOwnProperty("textFill")&&ue.fill&&(ue.textFill=ue.fill),!ue.hasOwnProperty("textStroke")&&ue.stroke&&(ue.textStroke=ue.stroke)}if(re.type!=="group"&&(re.useStyle(ue),Ve)){re.style.opacity=0;var he=ue.opacity;he==null&&(he=1),v.initProps(re,{style:{opacity:he}},Me,xe)}Ve?re.attr(Fe):v.updateProps(re,Fe,Me,xe),Oe.hasOwnProperty("z2")&&re.attr("z2",Oe.z2||0),Oe.hasOwnProperty("silent")&&re.attr("silent",Oe.silent),Oe.hasOwnProperty("invisible")&&re.attr("invisible",Oe.invisible),Oe.hasOwnProperty("ignore")&&re.attr("ignore",Oe.ignore),Oe.hasOwnProperty("info")&&re.attr("info",Oe.info);var J=Oe.styleEmphasis;v.setElementHoverStyle(re,J),ut&&v.setAsHighDownDispatcher(re,J!==!1)}function k(re,xe,Oe,Me,Qe){Oe[re]!=null&&!Qe&&(xe[re]=Oe[re],Oe[re]=Me[re])}function M(re,xe,Oe,Me){var Qe=re.get("renderItem"),Ve=re.coordinateSystem,ut={};Ve&&(ut=Ve.prepareCustoms?Ve.prepareCustoms():w[Ve.type](Ve));var Fe=x.defaults({getWidth:Me.getWidth,getHeight:Me.getHeight,getZr:Me.getZr,getDevicePixelRatio:Me.getDevicePixelRatio,value:Ce,style:Be,styleEmphasis:fe,visual:we,barLayout:Re,currentSeriesIndices:rt,font:St},ut.api||{}),ue={context:{},seriesId:re.id,seriesName:re.name,seriesIndex:re.seriesIndex,coordSys:ut.coordSys,dataInsideLength:xe.count(),encode:j(re.getData())},et,he=!0,J,Y,$,de;return function(ft,He){return et=ft,he=!0,Qe&&Qe(x.defaults({dataIndexInside:ft,dataIndex:xe.getRawIndex(ft),actionType:He?He.type:null},ue),Fe)};function be(ft){ft==null&&(ft=et),he&&(J=xe.getItemModel(ft),Y=J.getModel(C),$=J.getModel(_),de=xe.getItemVisual(ft,"color"),he=!1)}function Ce(ft,He){return He==null&&(He=et),xe.get(xe.getDimension(ft||0),He)}function Be(ft,He){He==null&&(He=et),be(He);var er=J.getModel(S).getItemStyle();de!=null&&(er.fill=de);var ct=xe.getItemVisual(He,"opacity");ct!=null&&(er.opacity=ct);var Kt=ft?V(ft,Y):Y;return v.setTextStyle(er,Kt,null,{autoColor:de,isRectText:!0}),er.text=Kt.getShallow("show")?x.retrieve2(re.getFormattedLabel(He,"normal"),p(xe,He)):null,ft&&Q(er,ft),er}function fe(ft,He){He==null&&(He=et),be(He);var er=J.getModel(E).getItemStyle(),ct=ft?V(ft,$):$;return v.setTextStyle(er,ct,null,{isRectText:!0},!0),er.text=ct.getShallow("show")?x.retrieve3(re.getFormattedLabel(He,"emphasis"),re.getFormattedLabel(He,"normal"),p(xe,He)):null,ft&&Q(er,ft),er}function we(ft,He){return He==null&&(He=et),xe.getItemVisual(He,ft)}function Re(ft){if(Ve.getBaseAxis){var He=Ve.getBaseAxis();return s(x.defaults({axis:He},ft),Me)}}function rt(){return Oe.getCurrentSeriesIndices()}function St(ft){return v.getFont(ft,Oe)}}function j(re){var xe={};return x.each(re.dimensions,function(Oe,Me){var Qe=re.getDimensionInfo(Oe);if(!Qe.isExtraCoord){var Ve=Qe.coordDim,ut=xe[Ve]=xe[Ve]||[];ut[Qe.coordDimIndex]=Me}}),xe}function P(re,xe,Oe,Me,Qe,Ve){return re=X(re,xe,Oe,Me,Qe,Ve,!0),re&&Ve.setItemGraphicEl(xe,re),re}function X(re,xe,Oe,Me,Qe,Ve,ut){var Fe=!Oe;Oe=Oe||{};var ue=Oe.type,et=Oe.shape,he=Oe.style;if(re&&(Fe||ue!=null&&ue!==re.__customGraphicType||ue==="path"&&q(et)&&te(et)!==re.__customPathData||ue==="image"&&se(he,"image")&&he.image!==re.__customImagePath||ue==="text"&&se(et,"text")&&he.text!==re.__customText)&&(Qe.remove(re),re=null),Fe)return;var J=!re;return!re&&(re=O(Oe)),I(re,xe,Oe,Me,Ve,J,ut),ue==="group"&&F(re,xe,Oe,Me,Ve),Qe.add(re),re}function F(re,xe,Oe,Me,Qe){var Ve=Oe.children,ut=Ve?Ve.length:0,Fe=Oe.$mergeChildren,ue=Fe==="byName"||Oe.diffChildrenByName,et=Fe===!1;if(!ut&&!ue&&!et)return;if(ue){U({oldChildren:re.children()||[],newChildren:Ve||[],dataIndex:xe,animatableModel:Me,group:re,data:Qe});return}et&&re.removeAll();for(var he=0;he<ut;he++)Ve[he]&&X(re.childAt(he),xe,Ve[he],Me,re,Qe)}function U(re){new i(re.oldChildren,re.newChildren,K,K,re).add(z).update(z).remove(G).execute()}function K(re,xe){var Oe=re&&re.name;return Oe!=null?Oe:T+xe}function z(re,xe){var Oe=this.context,Me=re!=null?Oe.newChildren[re]:null,Qe=xe!=null?Oe.oldChildren[xe]:null;X(Qe,Oe.dataIndex,Me,Oe.animatableModel,Oe.group,Oe.data)}function V(re,xe){var Oe=new o({},xe);return x.each(b,function(Me,Qe){re.hasOwnProperty(Me)&&(Oe.option[Qe]=re[Me])}),Oe}function Q(re,xe){for(var Oe in xe)(xe.hasOwnProperty(Oe)||!b.hasOwnProperty(Oe))&&(re[Oe]=xe[Oe])}function G(re){var xe=this.context,Oe=xe.oldChildren[re];Oe&&xe.group.remove(Oe)}function te(re){return re&&(re.pathData||re.d)}function q(re){return re&&(re.hasOwnProperty("pathData")||re.hasOwnProperty("d"))}function se(re,xe){return re&&re.hasOwnProperty(xe)}},"4HMb":function(R,D,n){var y=n("bYtY"),f=n("6GrX"),x=n("4NO4"),v=x.makeInner,m=n("aX7z"),p=m.makeLabelFormatter,d=m.getOptionCategoryInterval,u=m.shouldShowAllLabels,s=v();function i(C){return C.type==="category"?o(C):r(C)}function t(C,_){return C.type==="category"?l(C,_):{ticks:C.scale.getTicks()}}function o(C){var _=C.getLabelModel(),T=e(C,_);return!_.get("show")||C.scale.isBlank()?{labels:[],labelCategoryInterval:T.labelCategoryInterval}:T}function e(C,_){var T=a(C,"labels"),w=d(_),O=c(T,w);if(O)return O;var I,k;return y.isFunction(w)?I=E(C,w):(k=w==="auto"?g(C):w,I=S(C,k)),h(T,w,{labels:I,labelCategoryInterval:k})}function l(C,_){var T=a(C,"ticks"),w=d(_),O=c(T,w);if(O)return O;var I,k;if((!_.get("show")||C.scale.isBlank())&&(I=[]),y.isFunction(w))I=E(C,w,!0);else if(w==="auto"){var M=e(C,C.getLabelModel());k=M.labelCategoryInterval,I=y.map(M.labels,function(j){return j.tickValue})}else k=w,I=S(C,k,!0);return h(T,w,{ticks:I,tickCategoryInterval:k})}function r(C){var _=C.scale.getTicks(),T=p(C);return{labels:y.map(_,function(w,O){return{formattedLabel:T(w,O),rawLabel:C.scale.getLabel(w),tickValue:w}})}}function a(C,_){return s(C)[_]||(s(C)[_]=[])}function c(C,_){for(var T=0;T<C.length;T++)if(C[T].key===_)return C[T].value}function h(C,_,T){return C.push({key:_,value:T}),T}function g(C){var _=s(C).autoInterval;return _!=null?_:s(C).autoInterval=C.calculateCategoryInterval()}function A(C){var _=b(C),T=p(C),w=(_.axisRotate-_.labelRotate)/180*Math.PI,O=C.scale,I=O.getExtent(),k=O.count();if(I[1]-I[0]<1)return 0;var M=1;k>40&&(M=Math.max(1,Math.floor(k/40)));for(var j=I[0],P=C.dataToCoord(j+1)-C.dataToCoord(j),X=Math.abs(P*Math.cos(w)),F=Math.abs(P*Math.sin(w)),U=0,K=0;j<=I[1];j+=M){var z=0,V=0,Q=f.getBoundingRect(T(j),_.font,"center","top");z=Q.width*1.3,V=Q.height*1.3,U=Math.max(U,z,7),K=Math.max(K,V,7)}var G=U/X,te=K/F;isNaN(G)&&(G=Infinity),isNaN(te)&&(te=Infinity);var q=Math.max(0,Math.floor(Math.min(G,te))),se=s(C.model),re=C.getExtent(),xe=se.lastAutoInterval,Oe=se.lastTickCount;return xe!=null&&Oe!=null&&Math.abs(xe-q)<=1&&Math.abs(Oe-k)<=1&&xe>q&&se.axisExtend0===re[0]&&se.axisExtend1===re[1]?q=xe:(se.lastTickCount=k,se.lastAutoInterval=q,se.axisExtend0=re[0],se.axisExtend1=re[1]),q}function b(C){var _=C.getLabelModel();return{axisRotate:C.getRotate?C.getRotate():C.isHorizontal&&!C.isHorizontal()?90:0,labelRotate:_.get("rotate")||0,font:_.getFont()}}function S(C,_,T){var w=p(C),O=C.scale,I=O.getExtent(),k=C.getLabelModel(),M=[],j=Math.max((_||0)+1,1),P=I[0],X=O.count();P!==0&&j>1&&X/j>2&&(P=Math.round(Math.ceil(P/j)*j));var F=u(C),U=k.get("showMinLabel")||F,K=k.get("showMaxLabel")||F;U&&P!==I[0]&&V(I[0]);for(var z=P;z<=I[1];z+=j)V(z);K&&z-j!==I[1]&&V(I[1]);function V(Q){M.push(T?Q:{formattedLabel:w(Q),rawLabel:O.getLabel(Q),tickValue:Q})}return M}function E(C,_,T){var w=C.scale,O=p(C),I=[];return y.each(w.getTicks(),function(k){var M=w.getLabel(k);_(k,M)&&I.push(T?k:{formattedLabel:O(k),rawLabel:M,tickValue:k})}),I}D.createAxisLabels=i,D.createAxisTicks=t,D.calculateCategoryInterval=A},"4NO4":function(R,D,n){var y=n("bYtY"),f=n("ItGF"),x=y.each,v=y.isObject,m=y.isArray,p="series\0";function d(T){return T instanceof Array?T:T==null?[]:[T]}function u(T,w,O){if(T){T[w]=T[w]||{},T.emphasis=T.emphasis||{},T.emphasis[w]=T.emphasis[w]||{};for(var I=0,k=O.length;I<k;I++){var M=O[I];!T.emphasis[w].hasOwnProperty(M)&&T[w].hasOwnProperty(M)&&(T.emphasis[w][M]=T[w][M])}}}var s=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function i(T){return v(T)&&!m(T)&&!(T instanceof Date)?T.value:T}function t(T){return v(T)&&!(T instanceof Array)}function o(T,w){w=(w||[]).slice();var O=y.map(T||[],function(I,k){return{exist:I}});return x(w,function(I,k){if(!v(I))return;for(var M=0;M<O.length;M++)if(!O[M].option&&I.id!=null&&O[M].exist.id===I.id+""){O[M].option=I,w[k]=null;return}for(var M=0;M<O.length;M++){var j=O[M].exist;if(!O[M].option&&(j.id==null||I.id==null)&&I.name!=null&&!r(I)&&!r(j)&&j.name===I.name+""){O[M].option=I,w[k]=null;return}}}),x(w,function(I,k){if(!v(I))return;for(var M=0;M<O.length;M++){var j=O[M].exist;if(!O[M].option&&!r(j)&&I.id==null){O[M].option=I;break}}M>=O.length&&O.push({option:I})}),O}function e(T){var w=y.createHashMap();x(T,function(O,I){var k=O.exist;k&&w.set(k.id,O)}),x(T,function(O,I){var k=O.option;y.assert(!k||k.id==null||!w.get(k.id)||w.get(k.id)===O,"id duplicates: "+(k&&k.id)),k&&k.id!=null&&w.set(k.id,O),!O.keyInfo&&(O.keyInfo={})}),x(T,function(O,I){var k=O.exist,M=O.option,j=O.keyInfo;if(!v(M))return;if(j.name=M.name!=null?M.name+"":k?k.name:p+I,k)j.id=k.id;else if(M.id!=null)j.id=M.id+"";else{var P=0;do j.id="\0"+j.name+"\0"+P++;while(w.get(j.id))}w.set(j.id,O)})}function l(T){var w=T.name;return!!(w&&w.indexOf(p))}function r(T){return v(T)&&T.id&&(T.id+"").indexOf("\0_ec_\0")===0}function a(T,w){var O={},I={};return k(T||[],O),k(w||[],I,O),[M(O),M(I)];function k(j,P,X){for(var F=0,U=j.length;F<U;F++)for(var K=j[F].seriesId,z=d(j[F].dataIndex),V=X&&X[K],Q=0,G=z.length;Q<G;Q++){var te=z[Q];V&&V[te]?V[te]=null:(P[K]||(P[K]={}))[te]=1}}function M(j,P){var X=[];for(var F in j)if(j.hasOwnProperty(F)&&j[F]!=null)if(P)X.push(+F);else{var U=M(j[F],!0);U.length&&X.push({seriesId:F,dataIndex:U})}return X}}function c(T,w){if(w.dataIndexInside!=null)return w.dataIndexInside;if(w.dataIndex!=null)return y.isArray(w.dataIndex)?y.map(w.dataIndex,function(O){return T.indexOfRawIndex(O)}):T.indexOfRawIndex(w.dataIndex);if(w.name!=null)return y.isArray(w.name)?y.map(w.name,function(O){return T.indexOfName(O)}):T.indexOfName(w.name)}function h(){var T="__\0ec_inner_"+g+++"_"+Math.random().toFixed(5);return function(w){return w[T]||(w[T]={})}}var g=0;function A(T,w,O){if(y.isString(w)){var I={};I[w+"Index"]=0,w=I}var k=O&&O.defaultMainType;k&&!b(w,k+"Index")&&!b(w,k+"Id")&&!b(w,k+"Name")&&(w[k+"Index"]=0);var M={};return x(w,function(j,P){var j=w[P];if(P==="dataIndex"||P==="dataIndexInside"){M[P]=j;return}var X=P.match(/^(\w+)(Index|Id|Name)$/)||[],F=X[1],U=(X[2]||"").toLowerCase();if(!F||!U||j==null||U==="index"&&j==="none"||O&&O.includeMainTypes&&y.indexOf(O.includeMainTypes,F)<0)return;var K={mainType:F};(U!=="index"||j!=="all")&&(K[U]=j);var z=T.queryComponents(K);M[F+"Models"]=z,M[F+"Model"]=z[0]}),M}function b(T,w){return T&&T.hasOwnProperty(w)}function S(T,w,O){T.setAttribute?T.setAttribute(w,O):T[w]=O}function E(T,w){return T.getAttribute?T.getAttribute(w):T[w]}function C(T){return T==="auto"?f.domSupported?"html":"richText":T||"html"}function _(T,w){var O=y.createHashMap(),I=[];return y.each(T,function(k){var M=w(k);(O.get(M)||(I.push(M),O.set(M,[]))).push(k)}),{keys:I,buckets:O}}D.normalizeToArray=d,D.defaultEmphasis=u,D.TEXT_STYLE_OPTIONS=s,D.getDataItemValue=i,D.isDataItemOption=t,D.mappingToExists=o,D.makeIdAndName=e,D.isNameSpecified=l,D.isIdInner=r,D.compressBatches=a,D.queryDataIndex=c,D.makeInner=h,D.parseFinder=A,D.setAttribute=S,D.getAttribute=E,D.getTooltipRenderMode=C,D.groupData=_},"4NgU":function(R,D,n){var y=n("Yl7c");function f(v){this._setting=v||{},this._extent=[Infinity,-Infinity],this._interval=0,this.init&&this.init.apply(this,arguments)}f.prototype.parse=function(v){return v},f.prototype.getSetting=function(v){return this._setting[v]},f.prototype.contain=function(v){var m=this._extent;return v>=m[0]&&v<=m[1]},f.prototype.normalize=function(v){var m=this._extent;return m[1]===m[0]?.5:(v-m[0])/(m[1]-m[0])},f.prototype.scale=function(v){var m=this._extent;return v*(m[1]-m[0])+m[0]},f.prototype.unionExtent=function(v){var m=this._extent;v[0]<m[0]&&(m[0]=v[0]),v[1]>m[1]&&(m[1]=v[1])},f.prototype.unionExtentFromData=function(v,m){this.unionExtent(v.getApproximateExtent(m))},f.prototype.getExtent=function(){return this._extent.slice()},f.prototype.setExtent=function(v,m){var p=this._extent;isNaN(v)||(p[0]=v),isNaN(m)||(p[1]=m)},f.prototype.isBlank=function(){return this._isBlank},f.prototype.setBlank=function(v){this._isBlank=v},f.prototype.getLabel=null,y.enableClassExtend(f),y.enableClassManagement(f,{registerWhenExtend:!0});var x=f;R.exports=x},"4fz+":function(R,D,n){var y=n("bYtY"),f=n("1bdT"),x=n("mFDi"),v=function(d){d=d||{},f.call(this,d);for(var u in d)d.hasOwnProperty(u)&&(this[u]=d[u]);this._children=[],this.__storage=null,this.__dirty=!0};v.prototype={constructor:v,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(d){return this._children[d]},childOfName:function(d){for(var u=this._children,s=0;s<u.length;s++)if(u[s].name===d)return u[s]},childCount:function(){return this._children.length},add:function(d){return d&&d!==this&&d.parent!==this&&(this._children.push(d),this._doAdd(d)),this},addBefore:function(d,u){if(d&&d!==this&&d.parent!==this&&u&&u.parent===this){var s=this._children,i=s.indexOf(u);i>=0&&(s.splice(i,0,d),this._doAdd(d))}return this},_doAdd:function(d){d.parent&&d.parent.remove(d),d.parent=this;var u=this.__storage,s=this.__zr;u&&u!==d.__storage&&(u.addToStorage(d),d instanceof v&&d.addChildrenToStorage(u)),s&&s.refresh()},remove:function(d){var u=this.__zr,s=this.__storage,i=this._children,t=y.indexOf(i,d);return t<0?this:(i.splice(t,1),d.parent=null,s&&(s.delFromStorage(d),d instanceof v&&d.delChildrenFromStorage(s)),u&&u.refresh(),this)},removeAll:function(){var d=this._children,u=this.__storage,s,i;for(i=0;i<d.length;i++)s=d[i],u&&(u.delFromStorage(s),s instanceof v&&s.delChildrenFromStorage(u)),s.parent=null;return d.length=0,this},eachChild:function(d,u){for(var s=this._children,i=0;i<s.length;i++){var t=s[i];d.call(u,t,i)}return this},traverse:function(d,u){for(var s=0;s<this._children.length;s++){var i=this._children[s];d.call(u,i),i.type==="group"&&i.traverse(d,u)}return this},addChildrenToStorage:function(d){for(var u=0;u<this._children.length;u++){var s=this._children[u];d.addToStorage(s),s instanceof v&&s.addChildrenToStorage(d)}},delChildrenFromStorage:function(d){for(var u=0;u<this._children.length;u++){var s=this._children[u];d.delFromStorage(s),s instanceof v&&s.delChildrenFromStorage(d)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(d){for(var u=null,s=new x(0,0,0,0),i=d||this._children,t=[],o=0;o<i.length;o++){var e=i[o];if(e.ignore||e.invisible)continue;var l=e.getBoundingRect(),r=e.getLocalTransform(t);r?(s.copy(l),s.applyTransform(r),u=u||s.clone(),u.union(s)):(u=u||l.clone(),u.union(l))}return u||s}},y.inherits(v,f);var m=v;R.exports=m},"4i/N":function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="CloseOutlined";var d=D.a=f.forwardRef(p)},"4kuk":function(R,D,n){var y=n("SfRM"),f=n("Hvzi"),x=n("u8Dt"),v=n("ekgI"),m=n("JSQU");function p(d){var u=-1,s=d==null?0:d.length;for(this.clear();++u<s;){var i=d[u];this.set(i[0],i[1])}}p.prototype.clear=y,p.prototype.delete=f,p.prototype.get=x,p.prototype.has=v,p.prototype.set=m,R.exports=p},"4mN7":function(R,D,n){var y=n("QBsz"),f=n("Sj9i"),x=Math.min,v=Math.max,m=Math.sin,p=Math.cos,d=Math.PI*2,u=y.create(),s=y.create(),i=y.create();function t(h,g,A){if(h.length===0)return;var b=h[0],S=b[0],E=b[0],C=b[1],_=b[1],T;for(T=1;T<h.length;T++)b=h[T],S=x(S,b[0]),E=v(E,b[0]),C=x(C,b[1]),_=v(_,b[1]);g[0]=S,g[1]=C,A[0]=E,A[1]=_}function o(h,g,A,b,S,E){S[0]=x(h,A),S[1]=x(g,b),E[0]=v(h,A),E[1]=v(g,b)}var e=[],l=[];function r(h,g,A,b,S,E,C,_,T,w){var O=f.cubicExtrema,I=f.cubicAt,k,M=O(h,A,S,C,e);for(T[0]=Infinity,T[1]=Infinity,w[0]=-Infinity,w[1]=-Infinity,k=0;k<M;k++){var j=I(h,A,S,C,e[k]);T[0]=x(j,T[0]),w[0]=v(j,w[0])}for(M=O(g,b,E,_,l),k=0;k<M;k++){var P=I(g,b,E,_,l[k]);T[1]=x(P,T[1]),w[1]=v(P,w[1])}T[0]=x(h,T[0]),w[0]=v(h,w[0]),T[0]=x(C,T[0]),w[0]=v(C,w[0]),T[1]=x(g,T[1]),w[1]=v(g,w[1]),T[1]=x(_,T[1]),w[1]=v(_,w[1])}function a(h,g,A,b,S,E,C,_){var T=f.quadraticExtremum,w=f.quadraticAt,O=v(x(T(h,A,S),1),0),I=v(x(T(g,b,E),1),0),k=w(h,A,S,O),M=w(g,b,E,I);C[0]=x(h,S,k),C[1]=x(g,E,M),_[0]=v(h,S,k),_[1]=v(g,E,M)}function c(h,g,A,b,S,E,C,_,T){var w=y.min,O=y.max,I=Math.abs(S-E);if(I%d<1e-4&&I>1e-4){_[0]=h-A,_[1]=g-b,T[0]=h+A,T[1]=g+b;return}if(u[0]=p(S)*A+h,u[1]=m(S)*b+g,s[0]=p(E)*A+h,s[1]=m(E)*b+g,w(_,u,s),O(T,u,s),S=S%d,S<0&&(S=S+d),E=E%d,E<0&&(E=E+d),S>E&&!C?E+=d:S<E&&C&&(S+=d),C){var k=E;E=S,S=k}for(var M=0;M<E;M+=Math.PI/2)M>S&&(i[0]=p(M)*A+h,i[1]=m(M)*b+g,w(_,i,_),O(T,i,T))}D.fromPoints=t,D.fromLine=o,D.fromCubic=r,D.fromQuadratic=a,D.fromArc=c},"4vCz":function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("X2/X")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="PlusSquareOutlined";var i=v.forwardRef(s);D.default=i},"4xFK":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};D.default=y},"56rv":function(R,D,n){var y=n("IwbS"),f=n("x3X8"),x=f.getDefaultLabel;function v(p,d,u,s,i,t,o){var e=u.getModel("label"),l=u.getModel("emphasis.label");y.setLabelStyle(p,d,e,l,{labelFetcher:i,labelDataIndex:t,defaultText:x(i.getData(),t),isRectText:!0,autoColor:s}),m(p),m(d)}function m(p,d){p.textPosition==="outside"&&(p.textPosition=d)}D.setLabel=v},"59Ip":function(R,D,n){var y=n("Sj9i");function f(x,v,m,p,d,u,s,i,t,o,e){if(t===0)return!1;var l=t;if(e>v+l&&e>p+l&&e>u+l&&e>i+l||e<v-l&&e<p-l&&e<u-l&&e<i-l||o>x+l&&o>m+l&&o>d+l&&o>s+l||o<x-l&&o<m-l&&o<d-l&&o<s-l)return!1;var r=y.cubicProjectPoint(x,v,m,p,d,u,s,i,o,e,null);return r<=l/2}D.containStroke=f},"5Dmo":function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("5YgA"),v=n.n(x)},"5GOC":function(R,D,n){"use strict";var y=n("cIOH"),f=n("b56q"),x=n("15/o")},"5GhG":function(R,D,n){var y=n("5GtS"),f=n("bYtY"),x=n("L0Ub"),v=x.getDimensionTypeByAxis,m=n("D5nY"),p=m.makeSeriesEncodeForAxisCoordSys,d={_baseAxisDim:null,getInitialData:function(u,s){var i,t=s.getComponent("xAxis",this.get("xAxisIndex")),o=s.getComponent("yAxis",this.get("yAxisIndex")),e=t.get("type"),l=o.get("type"),r;e==="category"?(u.layout="horizontal",i=t.getOrdinalMeta(),r=!0):l==="category"?(u.layout="vertical",i=o.getOrdinalMeta(),r=!0):u.layout=u.layout||"horizontal";var a=["x","y"],c=u.layout==="horizontal"?0:1,h=this._baseAxisDim=a[c],g=a[1-c],A=[t,o],b=A[c].get("type"),S=A[1-c].get("type"),E=u.data;if(E&&r){var C=[];f.each(E,function(w,O){var I;w.value&&f.isArray(w.value)?(I=w.value.slice(),w.value.unshift(O)):f.isArray(w)?(I=w.slice(),w.unshift(O)):I=w,C.push(I)}),u.data=C}var _=this.defaultValueDimensions,T=[{name:h,type:v(b),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:v(S),dimsDef:_.slice()}];return y(this,{coordDimensions:T,dimensionsCount:_.length+1,encodeDefaulter:f.curry(p,T,this)})},getBaseAxis:function(){var u=this._baseAxisDim;return this.ecModel.getComponent(u+"Axis",this.get(u+"AxisIndex")).axis}};D.seriesModelMixin=d},"5GtS":function(R,D,n){var y=n("sdST"),f=n("YXkt"),x=n("bYtY"),v=x.extend,m=x.isArray;function p(d,u,s){u=m(u)&&{coordDimensions:u}||v({},u);var i=d.getSource(),t=y(i,u),o=new f(t,d);return o.initData(i,s),o}R.exports=p},"5Hur":function(R,D,n){var y=n("4NO4"),f=y.makeInner,x=y.normalizeToArray,v=f();function m(d,u){for(var s=d.length,i=0;i<s;i++)if(d[i].length>u)return d[i];return d[s-1]}var p={clearColorPalette:function(){v(this).colorIdx=0,v(this).colorNameMap={}},getColorFromPalette:function(d,u,s){u=u||this;var i=v(u),t=i.colorIdx||0,o=i.colorNameMap=i.colorNameMap||{};if(o.hasOwnProperty(d))return o[d];var e=x(this.get("color",!0)),l=this.get("colorLayer",!0),r=s==null||!l?e:m(l,s);if(r=r||e,!r||!r.length)return;var a=r[t];return d&&(o[d]=a),i.colorIdx=(t+1)%r.length,a}};R.exports=p},"5NDa":function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("OnYD"),v=n.n(x),m=n("+L6B")},"5NHt":function(R,D,n){n("aTJb"),n("OlYY"),n("fc+c"),n("N5BQ"),n("IyUQ"),n("LBfv"),n("noeP")},"5OYt":function(R,D,n){"use strict";var y=n("J4zp"),f=n.n(y),x=n("q1tI"),v=n.n(x),m=n("ACnJ");function p(){var d=Object(x.useState)({}),u=f()(d,2),s=u[0],i=u[1];return Object(x.useEffect)(function(){var t=m.a.subscribe(function(o){i(o)});return function(){return m.a.unsubscribe(t)}},[]),s}D.a=p},"5RzL":function(R,D,n){"use strict";var y=n("pVnL"),f=n.n(y),x=n("lSNA"),v=n.n(x),m=n("lwsE"),p=n.n(m),d=n("W8MJ"),u=n.n(d),s=n("7W2i"),i=n.n(s),t=n("LQ03"),o=n.n(t),e=n("q1tI"),l=n.n(e),r=n("1OyB"),a=n("vuIU"),c=n("Ji7U"),h=n("LK+K"),g=n("KQm4"),A=n("U8pU"),b=n("ODXe"),S=n("VTBJ"),E=n("rePB"),C=n("Ff2n"),_=n("4IlW"),T=n("TSYQ"),w=n.n(T),O=n("6cGi"),I=n("bX4T"),k=n("8XRh"),M=function(xr){var Cn=xr.className,mr=xr.customizeIcon,kr=xr.customizeIconProps,Gr=xr.onMouseDown,ln=xr.onClick,Fn=xr.children,_t;return typeof mr=="function"?_t=mr(kr):_t=mr,e.createElement("span",{className:Cn,onMouseDown:function(Lr){Lr.preventDefault(),Gr&&Gr(Lr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ln,"aria-hidden":!0},_t!==void 0?_t:e.createElement("span",{className:w()(Cn.split(/\s+/).map(function(Or){return"".concat(Or,"-icon")}))},Fn))},j=M,P=n("c+Xe"),X=function(xr,Cn){var mr=xr.prefixCls,kr=xr.id,Gr=xr.inputElement,ln=xr.disabled,Fn=xr.tabIndex,_t=xr.autoFocus,Or=xr.autoComplete,Lr=xr.editable,rn=xr.accessibilityIndex,xn=xr.value,Ln=xr.maxLength,Sn=xr.onKeyDown,ei=xr.onMouseDown,Kn=xr.onChange,mi=xr.onPaste,Fi=xr.onCompositionStart,bi=xr.onCompositionEnd,Ii=xr.open,Vi=xr.attrs,ea=Gr||e.createElement("input",null),Xi=ea,zi=Xi.ref,Hi=Xi.props,Ji=Hi.onKeyDown,ca=Hi.onChange,Ca=Hi.onMouseDown,na=Hi.onCompositionStart,Pa=Hi.onCompositionEnd,La=Hi.style;return ea=e.cloneElement(ea,Object(S.a)(Object(S.a)({id:kr,ref:Object(P.a)(Cn,zi),disabled:ln,tabIndex:Fn,autoComplete:Or||"off",type:"search",autoFocus:_t,className:"".concat(mr,"-selection-search-input"),style:Object(S.a)(Object(S.a)({},La),{},{opacity:Lr?null:0}),role:"combobox","aria-expanded":Ii,"aria-haspopup":"listbox","aria-owns":"".concat(kr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(kr,"_list"),"aria-activedescendant":"".concat(kr,"_list_").concat(rn)},Vi),{},{value:Lr?xn:"",maxLength:Ln,readOnly:!Lr,unselectable:Lr?null:"on",onKeyDown:function(ga){Sn(ga),Ji&&Ji(ga)},onMouseDown:function(ga){ei(ga),Ca&&Ca(ga)},onChange:function(ga){Kn(ga),ca&&ca(ga)},onCompositionStart:function(ga){Fi(ga),na&&na(ga)},onCompositionEnd:function(ga){bi(ga),Pa&&Pa(ga)},onPaste:mi})),ea},F=e.forwardRef(X);F.displayName="Input";var U=F;function K(Ir){return Array.isArray(Ir)?Ir:Ir!==void 0?[Ir]:[]}function z(Ir,xr){var Cn=xr.labelInValue,mr=xr.combobox;if(Ir===void 0||Ir===""&&mr)return[];var kr=Array.isArray(Ir)?Ir:[Ir];return Cn?kr.map(function(Gr){var ln=Gr.key,Fn=Gr.value;return Fn!==void 0?Fn:ln}):kr}function V(Ir,xr){var Cn=xr.optionLabelProp,mr=xr.labelInValue,kr=xr.prevValue,Gr=xr.options,ln=xr.getLabeledValue,Fn=Ir;return mr&&(Fn=Fn.map(function(_t){return ln(_t,{options:Gr,prevValue:kr,labelInValue:mr,optionLabelProp:Cn})})),Fn}function Q(Ir,xr){var Cn=Object(g.a)(xr),mr;for(mr=Ir.length-1;mr>=0&&Ir[mr].disabled;mr-=1);var kr=null;return mr!==-1&&(kr=Cn[mr],Cn.splice(mr,1)),{values:Cn,removedValue:kr}}var G=typeof window!="undefined"&&window.document&&window.document.documentElement,te=G,q=0;function se(){var Ir;return te?(Ir=q,q+=1):Ir="TEST_OR_SSR",Ir}function re(Ir,xr){te?e.useLayoutEffect(Ir,xr):e.useEffect(Ir,xr)}var xe="__RC_SELECT_MAX_REST_COUNT__",Oe=function(xr){var Cn=xr.id,mr=xr.prefixCls,kr=xr.values,Gr=xr.open,ln=xr.searchValue,Fn=xr.inputRef,_t=xr.placeholder,Or=xr.disabled,Lr=xr.mode,rn=xr.showSearch,xn=xr.autoFocus,Ln=xr.autoComplete,Sn=xr.accessibilityIndex,ei=xr.tabIndex,Kn=xr.removeIcon,mi=xr.choiceTransitionName,Fi=xr.maxTagCount,bi=xr.maxTagTextLength,Ii=xr.maxTagPlaceholder,Vi=Ii===void 0?function(to){return"+ ".concat(to.length," ...")}:Ii,ea=xr.tagRender,Xi=xr.onSelect,zi=xr.onInputChange,Hi=xr.onInputPaste,Ji=xr.onInputKeyDown,ca=xr.onInputMouseDown,Ca=xr.onInputCompositionStart,na=xr.onInputCompositionEnd,Pa=Object(e.useState)(!1),La=Object(b.a)(Pa,2),va=La[0],ga=La[1],Oa=e.useRef(null),Aa=Object(e.useState)(0),Xa=Object(b.a)(Aa,2),_a=Xa[0],Va=Xa[1],Bi=Object(e.useState)(!1),io=Object(b.a)(Bi,2),oo=io[0],Qo=io[1];e.useEffect(function(){ga(!0)},[]);var mo=Gr||Lr==="tags"?ln:"",To=Lr==="tags"||rn&&(Gr||oo);re(function(){Va(Oa.current.scrollWidth)},[mo]);var ao=kr,So;typeof Fi=="number"&&(So=kr.length-Fi,ao=kr.slice(0,Fi)),typeof bi=="number"&&(ao=ao.map(function(to){var Jo=to.label,Uo=Object(C.a)(to,["label"]),wo=Jo;if(typeof Jo=="string"||typeof Jo=="number"){var ts=String(wo);ts.length>bi&&(wo="".concat(ts.slice(0,bi),"..."))}return Object(S.a)(Object(S.a)({},Uo),{},{label:wo})})),So>0&&ao.push({key:xe,label:typeof Vi=="function"?Vi(kr.slice(Fi)):Vi});var bo=e.createElement(k.a,{component:!1,keys:ao,motionName:mi,motionAppear:va},function(to){var Jo=to.key,Uo=to.label,wo=to.value,ts=to.disabled,Ia=to.className,Oo=to.style,Io=Jo||wo,os=!Or&&Jo!==xe&&!ts,xo=function(_o){_o.preventDefault(),_o.stopPropagation()},rs=function(_o){_o&&_o.stopPropagation(),Xi(wo,{selected:!1})};return typeof ea=="function"?e.createElement("span",{key:Io,onMouseDown:xo,className:Ia,style:Oo},ea({label:Uo,value:wo,disabled:ts,closable:os,onClose:rs})):e.createElement("span",{key:Io,className:w()(Ia,"".concat(mr,"-selection-item"),Object(E.a)({},"".concat(mr,"-selection-item-disabled"),ts)),style:Oo},e.createElement("span",{className:"".concat(mr,"-selection-item-content")},Uo),os&&e.createElement(j,{className:"".concat(mr,"-selection-item-remove"),onMouseDown:xo,onClick:rs,customizeIcon:Kn},"\xD7"))});return e.createElement(e.Fragment,null,bo,e.createElement("span",{className:"".concat(mr,"-selection-search"),style:{width:_a},onFocus:function(){Qo(!0)},onBlur:function(){Qo(!1)}},e.createElement(U,{ref:Fn,open:Gr,prefixCls:mr,id:Cn,inputElement:null,disabled:Or,autoFocus:xn,autoComplete:Ln,editable:To,accessibilityIndex:Sn,value:mo,onKeyDown:Ji,onMouseDown:ca,onChange:zi,onPaste:Hi,onCompositionStart:Ca,onCompositionEnd:na,tabIndex:ei,attrs:Object(I.a)(xr,!0)}),e.createElement("span",{ref:Oa,className:"".concat(mr,"-selection-search-mirror"),"aria-hidden":!0},mo,"\xA0")),!kr.length&&!mo&&e.createElement("span",{className:"".concat(mr,"-selection-placeholder")},_t))},Me=Oe,Qe=function(xr){var Cn=xr.inputElement,mr=xr.prefixCls,kr=xr.id,Gr=xr.inputRef,ln=xr.disabled,Fn=xr.autoFocus,_t=xr.autoComplete,Or=xr.accessibilityIndex,Lr=xr.mode,rn=xr.open,xn=xr.values,Ln=xr.placeholder,Sn=xr.tabIndex,ei=xr.showSearch,Kn=xr.searchValue,mi=xr.activeValue,Fi=xr.maxLength,bi=xr.onInputKeyDown,Ii=xr.onInputMouseDown,Vi=xr.onInputChange,ea=xr.onInputPaste,Xi=xr.onInputCompositionStart,zi=xr.onInputCompositionEnd,Hi=e.useState(!1),Ji=Object(b.a)(Hi,2),ca=Ji[0],Ca=Ji[1],na=Lr==="combobox",Pa=na||ei,La=xn[0],va=Kn||"";na&&mi&&!ca&&(va=mi),e.useEffect(function(){na&&Ca(!1)},[na,mi]);var ga=Lr!=="combobox"&&!rn?!1:!!va,Oa=La&&(typeof La.label=="string"||typeof La.label=="number")?La.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(mr,"-selection-search")},e.createElement(U,{ref:Gr,prefixCls:mr,id:kr,open:rn,inputElement:Cn,disabled:ln,autoFocus:Fn,autoComplete:_t,editable:Pa,accessibilityIndex:Or,value:va,onKeyDown:bi,onMouseDown:Ii,onChange:function(Xa){Ca(!0),Vi(Xa)},onPaste:ea,onCompositionStart:Xi,onCompositionEnd:zi,tabIndex:Sn,attrs:Object(I.a)(xr,!0),maxLength:na?Fi:void 0})),!na&&La&&!ga&&e.createElement("span",{className:"".concat(mr,"-selection-item"),title:Oa},La.label),!La&&!ga&&e.createElement("span",{className:"".concat(mr,"-selection-placeholder")},Ln))},Ve=Qe;function ut(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,xr=e.useRef(null),Cn=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(Cn.current)}},[]);function mr(kr){(kr||xr.current===null)&&(xr.current=kr),window.clearTimeout(Cn.current),Cn.current=window.setTimeout(function(){xr.current=null},Ir)}return[function(){return xr.current},mr]}var Fe=function(xr,Cn){var mr=Object(e.useRef)(null),kr=Object(e.useRef)(!1),Gr=xr.prefixCls,ln=xr.multiple,Fn=xr.open,_t=xr.mode,Or=xr.showSearch,Lr=xr.tokenWithEnter,rn=xr.onSearch,xn=xr.onSearchSubmit,Ln=xr.onToggleOpen,Sn=xr.onInputKeyDown,ei=xr.domRef;e.useImperativeHandle(Cn,function(){return{focus:function(){mr.current.focus()},blur:function(){mr.current.blur()}}});var Kn=ut(0),mi=Object(b.a)(Kn,2),Fi=mi[0],bi=mi[1],Ii=function(ga){var Oa=ga.which;(Oa===_.a.UP||Oa===_.a.DOWN)&&ga.preventDefault(),Sn&&Sn(ga),Oa===_.a.ENTER&&_t==="tags"&&!kr.current&&!Fn&&xn(ga.target.value),[_.a.SHIFT,_.a.TAB,_.a.BACKSPACE,_.a.ESC].includes(Oa)||Ln(!0)},Vi=function(){bi(!0)},ea=Object(e.useRef)(null),Xi=function(ga){rn(ga,!0,kr.current)!==!1&&Ln(!0)},zi=function(){kr.current=!0},Hi=function(){kr.current=!1},Ji=function(ga){var Oa=ga.target.value;if(Lr&&ea.current&&/[\r\n]/.test(ea.current)){var Aa=ea.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");Oa=Oa.replace(Aa,ea.current)}ea.current=null,Xi(Oa)},ca=function(ga){var Oa=ga.clipboardData,Aa=Oa.getData("text");ea.current=Aa},Ca=function(ga){var Oa=ga.target;if(Oa!==mr.current){var Aa=document.body.style.msTouchAction!==void 0;Aa?setTimeout(function(){mr.current.focus()}):mr.current.focus()}},na=function(ga){var Oa=Fi();ga.target!==mr.current&&!Oa&&ga.preventDefault(),(_t!=="combobox"&&(!Or||!Oa)||!Fn)&&(Fn&&rn("",!0,!1),Ln())},Pa={inputRef:mr,onInputKeyDown:Ii,onInputMouseDown:Vi,onInputChange:Ji,onInputPaste:ca,onInputCompositionStart:zi,onInputCompositionEnd:Hi},La=ln?e.createElement(Me,Object.assign({},xr,Pa)):e.createElement(Ve,Object.assign({},xr,Pa));return e.createElement("div",{ref:ei,className:"".concat(Gr,"-selector"),onClick:Ca,onMouseDown:na},La)},ue=e.forwardRef(Fe);ue.displayName="Selector";var et=ue,he=n("uciX"),J=function(xr){var Cn=typeof xr!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Cn,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Cn,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Cn,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Cn,adjustY:1}}}},Y=function(xr,Cn){var mr=xr.prefixCls,kr=xr.disabled,Gr=xr.visible,ln=xr.children,Fn=xr.popupElement,_t=xr.containerWidth,Or=xr.animation,Lr=xr.transitionName,rn=xr.dropdownStyle,xn=xr.dropdownClassName,Ln=xr.direction,Sn=Ln===void 0?"ltr":Ln,ei=xr.dropdownMatchSelectWidth,Kn=ei===void 0?!0:ei,mi=xr.dropdownRender,Fi=xr.dropdownAlign,bi=xr.getPopupContainer,Ii=xr.empty,Vi=xr.getTriggerDOMNode,ea=Object(C.a)(xr,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),Xi="".concat(mr,"-dropdown"),zi=Fn;mi&&(zi=mi(Fn));var Hi=e.useMemo(function(){return J(Kn)},[Kn]),Ji=Or?"".concat(Xi,"-").concat(Or):Lr,ca=e.useRef(null);e.useImperativeHandle(Cn,function(){return{getPopupElement:function(){return ca.current}}});var Ca=Object(S.a)({minWidth:_t},rn);return typeof Kn=="number"?Ca.width=Kn:Kn&&(Ca.width=_t),e.createElement(he.a,Object.assign({},ea,{showAction:[],hideAction:[],popupPlacement:Sn==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:Hi,prefixCls:Xi,popupTransitionName:Ji,popup:e.createElement("div",{ref:ca},zi),popupAlign:Fi,popupVisible:Gr,getPopupContainer:bi,popupClassName:w()(xn,Object(E.a)({},"".concat(Xi,"-empty"),Ii)),popupStyle:Ca,getTriggerDOMNode:Vi}),ln)},$=e.forwardRef(Y);$.displayName="SelectTrigger";var de=$,be="RC_SELECT_INTERNAL_PROPS_MARK";function Ce(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,xr=e.useState(!1),Cn=Object(b.a)(xr,2),mr=Cn[0],kr=Cn[1],Gr=e.useRef(null),ln=function(){window.clearTimeout(Gr.current)};e.useEffect(function(){return ln},[]);var Fn=function(Or,Lr){ln(),Gr.current=window.setTimeout(function(){kr(Or),Lr&&Lr()},Ir)};return[mr,Fn,ln]}var Be=n("T5bk"),fe=n("Kwbf");function we(Ir,xr){var Cn=Ir.key,mr;return"value"in Ir&&(mr=Ir.value),Cn!=null?Cn:mr!==void 0?mr:"rc-index-key-".concat(xr)}function Re(Ir){var xr=[];function Cn(mr,kr){mr.forEach(function(Gr){kr||!("options"in Gr)?xr.push({key:we(Gr,xr.length),groupOption:kr,data:Gr}):(xr.push({key:we(Gr,xr.length),group:!0,data:Gr}),Cn(Gr.options,!0))})}return Cn(Ir,!1),xr}function rt(Ir){var xr=Object(S.a)({},Ir);return"props"in xr||Object.defineProperty(xr,"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`."),xr}}),xr}function St(Ir,xr){var Cn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},mr=Cn.prevValueOptions,kr=mr===void 0?[]:mr,Gr=new Map;return xr.forEach(function(ln){if(!ln.group){var Fn=ln.data;Gr.set(Fn.value,Fn)}}),Ir.map(function(ln){var Fn=Gr.get(ln);return Fn||(Fn=Object(S.a)({},kr.find(function(_t){return _t._INTERNAL_OPTION_VALUE_===ln}))),rt(Fn)})}var ft=function(xr,Cn){var mr=Cn.options,kr=Cn.prevValue,Gr=Cn.labelInValue,ln=Cn.optionLabelProp,Fn=St([xr],mr)[0],_t={value:xr},Or,Lr=K(kr);return Gr&&(Or=Lr.find(function(rn){return Object(A.a)(rn)==="object"&&"value"in rn?rn.value===xr:rn.key===xr})),Or&&Object(A.a)(Or)==="object"&&"label"in Or?(_t.label=Or.label,Fn&&typeof Or.label=="string"&&typeof Fn[ln]=="string"&&Or.label.trim()!==Fn[ln].trim()&&Object(fe.a)(!1,"`label` of `value` is not same as `label` in Select options.")):Fn&&ln in Fn?_t.label=Fn[ln]:_t.label=xr,_t.key=_t.value,_t};function He(Ir){return K(Ir).join("")}function er(Ir){return function(xr,Cn){var mr=xr.toLowerCase();if("options"in Cn)return He(Cn.label).toLowerCase().includes(mr);var kr=Cn[Ir],Gr=He(kr).toLowerCase();return Gr.includes(mr)}}function ct(Ir,xr,Cn){var mr=Cn.optionFilterProp,kr=Cn.filterOption,Gr=[],ln;return kr===!1?Object(g.a)(xr):(typeof kr=="function"?ln=kr:ln=er(mr),xr.forEach(function(Fn){if("options"in Fn){var _t=ln(Ir,Fn);if(_t)Gr.push(Fn);else{var Or=Fn.options.filter(function(Lr){return ln(Ir,Lr)});Or.length&&Gr.push(Object(S.a)(Object(S.a)({},Fn),{},{options:Or}))}return}ln(Ir,rt(Fn))&&Gr.push(Fn)}),Gr)}function Kt(Ir,xr){if(!xr||!xr.length)return null;var Cn=!1;function mr(Gr,ln){var Fn=Object(Be.a)(ln),_t=Fn[0],Or=Fn.slice(1);if(!_t)return[Gr];var Lr=Gr.split(_t);return Cn=Cn||Lr.length>1,Lr.reduce(function(rn,xn){return[].concat(Object(g.a)(rn),Object(g.a)(mr(xn,Or)))},[]).filter(function(rn){return rn})}var kr=mr(Ir,xr);return Cn?kr:null}function fr(Ir,xr){var Cn=St([Ir],xr)[0];return Cn.disabled}function Gt(Ir,xr,Cn,mr){var kr=K(xr).slice().sort(),Gr=Object(g.a)(Ir),ln=new Set;return Ir.forEach(function(Fn){Fn.options?Fn.options.forEach(function(_t){ln.add(_t.value)}):ln.add(Fn.value)}),kr.forEach(function(Fn){var _t=mr?Fn.value:Fn;if(!ln.has(_t)){var Or;Gr.push(mr?(Or={},Object(E.a)(Or,Cn,Fn.label),Object(E.a)(Or,"value",_t),Or):{value:_t})}}),Gr}function Pt(Ir,xr,Cn){var mr=e.useRef(null);mr.current={elements:Ir.filter(function(kr){return kr}),open:xr,triggerOpen:Cn},e.useEffect(function(){function kr(Gr){var ln=Gr.target;mr.current.open&&mr.current.elements.every(function(Fn){return!Fn.contains(ln)&&Fn!==ln})&&mr.current.triggerOpen(!1)}return window.addEventListener("mousedown",kr),function(){return window.removeEventListener("mousedown",kr)}},[])}function Xt(Ir){var xr=e.useRef(Ir),Cn=e.useMemo(function(){var mr=new Map;xr.current.forEach(function(Gr){var ln=Gr.value,Fn=Gr.label;ln!==Fn&&mr.set(ln,Fn)});var kr=Ir.map(function(Gr){var ln=mr.get(Gr.value);return Gr.value===Gr.label&&ln?Object(S.a)(Object(S.a)({},Gr),{},{label:ln}):Gr});return xr.current=kr,kr},[Ir]);return Cn}function Ge(Ir,xr){var Cn=e.useRef(null),mr=e.useMemo(function(){var Gr=new Map;return xr.forEach(function(ln){var Fn=ln.data.value;Gr.set(Fn,ln)}),Gr},[Ir,xr]);Cn.current=mr;var kr=function(ln){return ln.map(function(Fn){return Cn.current.get(Fn)}).filter(Boolean)};return kr}var pe=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function oe(Ir){var xr=Ir.prefixCls,Cn=Ir.components.optionList,mr=Ir.convertChildrenToData,kr=Ir.flattenOptions,Gr=Ir.getLabeledValue,ln=Ir.filterOptions,Fn=Ir.isValueDisabled,_t=Ir.findValueOption,Or=Ir.warningProps,Lr=Ir.fillOptionsWithMissingValue,rn=Ir.omitDOMProps;function xn(Sn,ei){var Kn,mi=Sn.prefixCls,Fi=mi===void 0?xr:mi,bi=Sn.className,Ii=Sn.id,Vi=Sn.open,ea=Sn.defaultOpen,Xi=Sn.options,zi=Sn.children,Hi=Sn.mode,Ji=Sn.value,ca=Sn.defaultValue,Ca=Sn.labelInValue,na=Sn.showSearch,Pa=Sn.inputValue,La=Sn.searchValue,va=Sn.filterOption,ga=Sn.filterSort,Oa=Sn.optionFilterProp,Aa=Oa===void 0?"value":Oa,Xa=Sn.autoClearSearchValue,_a=Xa===void 0?!0:Xa,Va=Sn.onSearch,Bi=Sn.allowClear,io=Sn.clearIcon,oo=Sn.showArrow,Qo=Sn.inputIcon,mo=Sn.menuItemSelectedIcon,To=Sn.disabled,ao=Sn.loading,So=Sn.defaultActiveFirstOption,bo=Sn.notFoundContent,to=bo===void 0?"Not Found":bo,Jo=Sn.optionLabelProp,Uo=Sn.backfill,wo=Sn.getInputElement,ts=Sn.getPopupContainer,Ia=Sn.listHeight,Oo=Ia===void 0?200:Ia,Io=Sn.listItemHeight,os=Io===void 0?20:Io,xo=Sn.animation,rs=Sn.transitionName,Ho=Sn.virtual,_o=Sn.dropdownStyle,uo=Sn.dropdownClassName,Ha=Sn.dropdownMatchSelectWidth,mt=Sn.dropdownRender,Tr=Sn.dropdownAlign,tn=Sn.showAction,Qr=tn===void 0?[]:tn,Jn=Sn.direction,fn=Sn.tokenSeparators,Xr=Sn.tagRender,ii=Sn.onPopupScroll,nn=Sn.onDropdownVisibleChange,Wn=Sn.onFocus,li=Sn.onBlur,ci=Sn.onKeyUp,si=Sn.onKeyDown,Ci=Sn.onMouseDown,gi=Sn.onChange,Ai=Sn.onSelect,Ni=Sn.onDeselect,ia=Sn.onClear,Ki=Sn.internalProps,fa=Ki===void 0?{}:Ki,Ya=Object(C.a)(Sn,["prefixCls","className","id","open","defaultOpen","options","children","mode","value","defaultValue","labelInValue","showSearch","inputValue","searchValue","filterOption","filterSort","optionFilterProp","autoClearSearchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","menuItemSelectedIcon","disabled","loading","defaultActiveFirstOption","notFoundContent","optionLabelProp","backfill","getInputElement","getPopupContainer","listHeight","listItemHeight","animation","transitionName","virtual","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","onChange","onSelect","onDeselect","onClear","internalProps"]),xa=fa.mark===be,wa=rn?rn(Ya):Ya;pe.forEach(function(jo){delete wa[jo]});var Da=Object(e.useRef)(null),ja=Object(e.useRef)(null),ko=Object(e.useRef)(null),ro=Object(e.useRef)(null),pa=Object(e.useMemo)(function(){return(fn||[]).some(function(jo){return[`
|
|
|
`,`\r
|
|
|
`].includes(jo)})},[fn]),Ea=Ce(),Fa=Object(b.a)(Ea,3),Ka=Fa[0],lo=Fa[1],so=Fa[2],Co=Object(e.useState)(),Lo=Object(b.a)(Co,2),is=Lo[0],cs=Lo[1];Object(e.useEffect)(function(){cs("rc_select_".concat(se()))},[]);var Rs=Ii||is,Ko=Jo;Ko===void 0&&(Ko=Xi?"label":"children");var as=Hi==="combobox"?!1:Ca,co=Hi==="tags"||Hi==="multiple",Ao=na!==void 0?na:co||Hi==="combobox",$a=Object(e.useRef)(null);e.useImperativeHandle(ei,function(){return{focus:ko.current.focus,blur:ko.current.blur}});var ss=Object(O.a)(ca,{value:Ji}),_s=Object(b.a)(ss,2),Fo=_s[0],il=_s[1],Eo=Object(e.useMemo)(function(){return z(Fo,{labelInValue:as,combobox:Hi==="combobox"})},[Fo,as]),zo=Object(e.useMemo)(function(){return new Set(Eo)},[Eo]),Fs=Object(e.useState)(null),ms=Object(b.a)(Fs,2),hs=ms[0],wn=ms[1],Ns=Object(e.useState)(""),Ll=Object(b.a)(Ns,2),el=Ll[0],Gs=Ll[1],ds=el;Hi==="combobox"&&Fo!==void 0?ds=Fo:La!==void 0?ds=La:Pa&&(ds=Pa);var ks=Object(e.useMemo)(function(){var jo=Xi;return jo===void 0&&(jo=mr(zi)),Hi==="tags"&&Lr&&(jo=Lr(jo,Fo,Ko,Ca)),jo||[]},[Xi,zi,Hi,Fo]),Qs=Object(e.useMemo)(function(){return kr(ks,Sn)},[ks]),tl=Ge(Eo,Qs),xs=Object(e.useMemo)(function(){if(!ds||!Ao)return Object(g.a)(ks);var jo=ln(ds,ks,{optionFilterProp:Aa,filterOption:Hi==="combobox"&&va===void 0?function(){return!0}:va});return Hi==="tags"&&jo.every(function(yo){return yo[Aa]!==ds})&&jo.unshift({value:ds,label:ds,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),ga&&Array.isArray(jo)?Object(g.a)(jo).sort(ga):jo},[ks,ds,Hi,Ao,ga]),Bs=Object(e.useMemo)(function(){return kr(xs,Sn)},[xs]);Object(e.useEffect)(function(){ro.current&&ro.current.scrollTo&&ro.current.scrollTo(0)},[ds]);var al=Object(e.useMemo)(function(){var jo=Eo.map(function(yo){var qo=tl([yo]),ps=Gr(yo,{options:qo,prevValue:Fo,labelInValue:as,optionLabelProp:Ko});return Object(S.a)(Object(S.a)({},ps),{},{disabled:Fn(yo,qo)})});return!Hi&&jo.length===1&&jo[0].value===null&&jo[0].label===null?[]:jo},[Fo,ks,Hi]);al=Xt(al);var Js=function(yo,qo,ps){var Is=tl([yo]),es=_t([yo],Is)[0];if(!fa.skipTriggerSelect){var Ls=as?Gr(yo,{options:Is,prevValue:Fo,labelInValue:as,optionLabelProp:Ko}):yo;qo&&Ai?Ai(Ls,es):!qo&&Ni&&Ni(Ls,es)}xa&&(qo&&fa.onRawSelect?fa.onRawSelect(yo,es,ps):!qo&&fa.onRawDeselect&&fa.onRawDeselect(yo,es,ps))},Vo=Object(e.useState)([]),No=Object(b.a)(Vo,2),fs=No[0],Ds=No[1],go=function(yo){if(xa&&fa.skipTriggerChange)return;var qo=tl(yo),ps=V(Array.from(yo),{labelInValue:as,options:qo,getLabeledValue:Gr,prevValue:Fo,optionLabelProp:Ko}),Is=co?ps:ps[0];if(gi&&(Eo.length!==0||ps.length!==0)){var es=_t(yo,qo,{prevValueOptions:fs});Ds(es.map(function(Ls,Ps){var ml=Object(S.a)({},Ls);return Object.defineProperty(ml,"_INTERNAL_OPTION_VALUE_",{get:function(){return yo[Ps]}}),ml})),gi(Is,co?es:es[0])}il(Is)},Ut=function(yo,qo){var ps=qo.selected,Is=qo.source;if(To)return;var es;co?(es=new Set(Eo),ps?es.add(yo):es.delete(yo)):(es=new Set,es.add(yo)),(co||!co&&Array.from(Eo)[0]!==yo)&&go(Array.from(es)),Js(yo,!co||ps,Is),Hi==="combobox"?(Gs(String(yo)),wn("")):(!co||_a)&&(Gs(""),wn(""))},or=function(yo,qo){Ut(yo,Object(S.a)(Object(S.a)({},qo),{},{source:"option"}))},Nn=function(yo,qo){Ut(yo,Object(S.a)(Object(S.a)({},qo),{},{source:"selection"}))},hi=Hi==="combobox"&&wo&&wo()||null,Nt=Object(O.a)(void 0,{defaultValue:ea,value:Vi}),ce=Object(b.a)(Nt,2),Se=ce[0],Ie=ce[1],Je=Se,Dt=!to&&!xs.length;(To||Dt&&Je&&Hi==="combobox")&&(Je=!1);var sr=Dt?!1:Je,Jr=function(yo){var qo=yo!==void 0?yo:!Je;Se!==qo&&!To&&(Ie(qo),nn&&nn(qo))};Pt([Da.current,ja.current&&ja.current.getPopupElement()],sr,Jr);var gn=function(yo,qo,ps){var Is=!0,es=yo;wn(null);var Ls=ps?null:Kt(yo,fn),Ps=Ls;if(Hi==="combobox")qo&&go([es]);else if(Ls){es="",Hi!=="tags"&&(Ps=Ls.map(function(Rl){var _l=Qs.find(function(Bl){var jl=Bl.data;return jl[Ko]===Rl});return _l?_l.data.value:null}).filter(function(Rl){return Rl!==null}));var ml=Array.from(new Set([].concat(Object(g.a)(Eo),Object(g.a)(Ps))));go(ml),ml.forEach(function(Rl){Js(Rl,!0,"input")}),Jr(!1),Is=!1}return Gs(es),Va&&ds!==es&&Va(es),Is},Dn=function(yo){var qo=Array.from(new Set([].concat(Object(g.a)(Eo),[yo])));go(qo),qo.forEach(function(ps){Js(ps,!0,"input")}),Gs("")};Object(e.useEffect)(function(){Se&&!!To&&Ie(!1)},[To]),Object(e.useEffect)(function(){!Je&&!co&&Hi!=="combobox"&&gn("",!1,!1)},[Je]);var ui=ut(),Si=Object(b.a)(ui,2),vi=Si[0],Qi=Si[1],sa=function(yo){var qo=vi(),ps=yo.which;if(!Je&&ps===_.a.ENTER&&Jr(!0),Qi(!!ds),ps===_.a.BACKSPACE&&!qo&&co&&!ds&&Eo.length){var Is=Q(al,Eo);Is.removedValue!==null&&(go(Is.values),Js(Is.removedValue,!1,"input"))}for(var es=arguments.length,Ls=new Array(es>1?es-1:0),Ps=1;Ps<es;Ps++)Ls[Ps-1]=arguments[Ps];if(Je&&ro.current){var ml;(ml=ro.current).onKeyDown.apply(ml,[yo].concat(Ls))}si&&si.apply(void 0,[yo].concat(Ls))},Ua=function(yo){for(var qo=arguments.length,ps=new Array(qo>1?qo-1:0),Is=1;Is<qo;Is++)ps[Is-1]=arguments[Is];if(Je&&ro.current){var es;(es=ro.current).onKeyUp.apply(es,[yo].concat(ps))}ci&&ci.apply(void 0,[yo].concat(ps))},no=Object(e.useRef)(!1),Wo=function(){lo(!0),To||(Wn&&!no.current&&Wn.apply(void 0,arguments),Qr.includes("focus")&&Jr(!0)),no.current=!0},Zo=function(){if(lo(!1,function(){no.current=!1,Jr(!1)}),To)return;ds&&(Hi==="tags"?(gn("",!1,!1),go(Array.from(new Set([].concat(Object(g.a)(Eo),[ds]))))):Hi==="multiple"&&Gs("")),li&&li.apply(void 0,arguments)},Bo=[];Object(e.useEffect)(function(){return function(){Bo.forEach(function(jo){return clearTimeout(jo)}),Bo.splice(0,Bo.length)}},[]);var Es=function(yo){var qo=yo.target,ps=ja.current&&ja.current.getPopupElement();if(ps&&ps.contains(qo)){var Is=setTimeout(function(){var ml=Bo.indexOf(Is);ml!==-1&&Bo.splice(ml,1),so(),ps.contains(document.activeElement)||ko.current.focus()});Bo.push(Is)}if(Ci){for(var es=arguments.length,Ls=new Array(es>1?es-1:0),Ps=1;Ps<es;Ps++)Ls[Ps-1]=arguments[Ps];Ci.apply(void 0,[yo].concat(Ls))}},As=Object(e.useState)(0),$o=Object(b.a)(As,2),Do=$o[0],vo=$o[1],Ms=So!==void 0?So:Hi!=="combobox",rl=function(yo,qo){var ps=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Is=ps.source,es=Is===void 0?"keyboard":Is;vo(qo),Uo&&Hi==="combobox"&&yo!==null&&es==="keyboard"&&wn(String(yo))},gs=Object(e.useState)(null),Ra=Object(b.a)(gs,2),dl=Ra[0],fl=Ra[1],Us=Object(e.useState)({}),Os=Object(b.a)(Us,2),Xs=Os[1];function Ql(){Xs({})}re(function(){if(sr){var jo=Math.ceil(Da.current.offsetWidth);dl!==jo&&fl(jo)}},[sr]);var Ul=e.createElement(Cn,{ref:ro,prefixCls:Fi,id:Rs,open:Je,childrenAsData:!Xi,options:xs,flattenOptions:Bs,multiple:co,values:zo,height:Oo,itemHeight:os,onSelect:or,onToggleOpen:Jr,onActiveValue:rl,defaultActiveFirstOption:Ms,notFoundContent:to,onScroll:ii,searchValue:ds,menuItemSelectedIcon:mo,virtual:Ho!==!1&&Ha!==!1,onMouseEnter:Ql}),wl,Ts=function(){xa&&fa.onClear&&fa.onClear(),ia&&ia(),go([]),gn("",!1,!1)};!To&&Bi&&(Eo.length||ds)&&(wl=e.createElement(j,{className:"".concat(Fi,"-clear"),onMouseDown:Ts,customizeIcon:io},"\xD7"));var Ws=oo!==void 0?oo:ao||!co&&Hi!=="combobox",Tl;Ws&&(Tl=e.createElement(j,{className:w()("".concat(Fi,"-arrow"),Object(E.a)({},"".concat(Fi,"-arrow-loading"),ao)),customizeIcon:Qo,customizeIconProps:{loading:ao,searchValue:ds,open:Je,focused:Ka,showSearch:Ao}}));var pl=w()(Fi,bi,(Kn={},Object(E.a)(Kn,"".concat(Fi,"-focused"),Ka),Object(E.a)(Kn,"".concat(Fi,"-multiple"),co),Object(E.a)(Kn,"".concat(Fi,"-single"),!co),Object(E.a)(Kn,"".concat(Fi,"-allow-clear"),Bi),Object(E.a)(Kn,"".concat(Fi,"-show-arrow"),Ws),Object(E.a)(Kn,"".concat(Fi,"-disabled"),To),Object(E.a)(Kn,"".concat(Fi,"-loading"),ao),Object(E.a)(Kn,"".concat(Fi,"-open"),Je),Object(E.a)(Kn,"".concat(Fi,"-customize-input"),hi),Object(E.a)(Kn,"".concat(Fi,"-show-search"),Ao),Kn));return e.createElement("div",Object.assign({className:pl},wa,{ref:Da,onMouseDown:Es,onKeyDown:sa,onKeyUp:Ua,onFocus:Wo,onBlur:Zo}),Ka&&!Je&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Eo.join(", "))),e.createElement(de,{ref:ja,disabled:To,prefixCls:Fi,visible:sr,popupElement:Ul,containerWidth:dl,animation:xo,transitionName:rs,dropdownStyle:_o,dropdownClassName:uo,direction:Jn,dropdownMatchSelectWidth:Ha,dropdownRender:mt,dropdownAlign:Tr,getPopupContainer:ts,empty:!ks.length,getTriggerDOMNode:function(){return $a.current}},e.createElement(et,Object.assign({},Sn,{domRef:$a,prefixCls:Fi,inputElement:hi,ref:ko,id:Rs,showSearch:Ao,mode:Hi,accessibilityIndex:Do,multiple:co,tagRender:Xr,values:al,open:Je,onToggleOpen:Jr,searchValue:ds,activeValue:hs,onSearch:gn,onSearchSubmit:Dn,onSelect:Nn,tokenWithEnter:pa}))),Tl,wl)}var Ln=e.forwardRef(xn);return Ln}var lt=n("Zm9Q"),qe=n("JX7q"),ge=e.createContext(null),Ht=function(xr){var Cn=xr.prefixCls,mr=xr.level,kr=xr.isStart,Gr=xr.isEnd;if(!mr)return null;for(var ln="".concat(Cn,"-indent-unit"),Fn=[],_t=0;_t<mr;_t+=1){var Or;Fn.push(e.createElement("span",{key:_t,className:w()(ln,(Or={},Object(E.a)(Or,"".concat(ln,"-start"),kr[_t]),Object(E.a)(Or,"".concat(ln,"-end"),Gr[_t]),Or))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(Cn,"-indent")},Fn)},vr=Ht,At="open",ir="close",lr="---",dn=function(Ir){Object(c.a)(Cn,Ir);var xr=Object(h.a)(Cn);function Cn(){var mr;return Object(r.a)(this,Cn),mr=xr.apply(this,arguments),mr.state={dragNodeHighlight:!1},mr.onSelectorClick=function(kr){var Gr=mr.props.context.onNodeClick;Gr(kr,jt(mr.props)),mr.isSelectable()?mr.onSelect(kr):mr.onCheck(kr)},mr.onSelectorDoubleClick=function(kr){var Gr=mr.props.context.onNodeDoubleClick;Gr(kr,jt(mr.props))},mr.onSelect=function(kr){if(mr.isDisabled())return;var Gr=mr.props.context.onNodeSelect;kr.preventDefault(),Gr(kr,jt(mr.props))},mr.onCheck=function(kr){if(mr.isDisabled())return;var Gr=mr.props,ln=Gr.disableCheckbox,Fn=Gr.checked,_t=mr.props.context.onNodeCheck;if(!mr.isCheckable()||ln)return;kr.preventDefault();var Or=!Fn;_t(kr,jt(mr.props),Or)},mr.onMouseEnter=function(kr){var Gr=mr.props.context.onNodeMouseEnter;Gr(kr,jt(mr.props))},mr.onMouseLeave=function(kr){var Gr=mr.props.context.onNodeMouseLeave;Gr(kr,jt(mr.props))},mr.onContextMenu=function(kr){var Gr=mr.props.context.onNodeContextMenu;Gr(kr,jt(mr.props))},mr.onDragStart=function(kr){var Gr=mr.props.context.onNodeDragStart;kr.stopPropagation(),mr.setState({dragNodeHighlight:!0}),Gr(kr,Object(qe.a)(mr));try{kr.dataTransfer.setData("text/plain","")}catch(ln){}},mr.onDragEnter=function(kr){var Gr=mr.props.context.onNodeDragEnter;kr.preventDefault(),kr.stopPropagation(),Gr(kr,Object(qe.a)(mr))},mr.onDragOver=function(kr){var Gr=mr.props.context.onNodeDragOver;kr.preventDefault(),kr.stopPropagation(),Gr(kr,Object(qe.a)(mr))},mr.onDragLeave=function(kr){var Gr=mr.props.context.onNodeDragLeave;kr.stopPropagation(),Gr(kr,Object(qe.a)(mr))},mr.onDragEnd=function(kr){var Gr=mr.props.context.onNodeDragEnd;kr.stopPropagation(),mr.setState({dragNodeHighlight:!1}),Gr(kr,Object(qe.a)(mr))},mr.onDrop=function(kr){var Gr=mr.props.context.onNodeDrop;kr.preventDefault(),kr.stopPropagation(),mr.setState({dragNodeHighlight:!1}),Gr(kr,Object(qe.a)(mr))},mr.onExpand=function(kr){var Gr=mr.props.context.onNodeExpand;Gr(kr,jt(mr.props))},mr.setSelectHandle=function(kr){mr.selectHandle=kr},mr.getNodeState=function(){var kr=mr.props.expanded;return mr.isLeaf()?null:kr?At:ir},mr.hasChildren=function(){var kr=mr.props.eventKey,Gr=mr.props.context.keyEntities,ln=Gr[kr]||{},Fn=ln.children;return!!(Fn||[]).length},mr.isLeaf=function(){var kr=mr.props,Gr=kr.isLeaf,ln=kr.loaded,Fn=mr.props.context.loadData,_t=mr.hasChildren();return Gr===!1?!1:Gr||!Fn&&!_t||Fn&&ln&&!_t},mr.isDisabled=function(){var kr=mr.props.disabled,Gr=mr.props.context.disabled;return!!(Gr||kr)},mr.isCheckable=function(){var kr=mr.props.checkable,Gr=mr.props.context.checkable;return!Gr||kr===!1?!1:Gr},mr.syncLoadData=function(kr){var Gr=kr.expanded,ln=kr.loading,Fn=kr.loaded,_t=mr.props.context,Or=_t.loadData,Lr=_t.onNodeLoad;if(ln)return;Or&&Gr&&!mr.isLeaf()&&(!mr.hasChildren()&&!Fn&&Lr(jt(mr.props)))},mr.renderSwitcher=function(){var kr=mr.props,Gr=kr.expanded,ln=kr.switcherIcon,Fn=mr.props.context,_t=Fn.prefixCls,Or=Fn.switcherIcon,Lr=ln||Or;if(mr.isLeaf())return e.createElement("span",{className:w()("".concat(_t,"-switcher"),"".concat(_t,"-switcher-noop"))},typeof Lr=="function"?Lr(Object(S.a)(Object(S.a)({},mr.props),{},{isLeaf:!0})):Lr);var rn=w()("".concat(_t,"-switcher"),"".concat(_t,"-switcher_").concat(Gr?At:ir));return e.createElement("span",{onClick:mr.onExpand,className:rn},typeof Lr=="function"?Lr(Object(S.a)(Object(S.a)({},mr.props),{},{isLeaf:!1})):Lr)},mr.renderCheckbox=function(){var kr=mr.props,Gr=kr.checked,ln=kr.halfChecked,Fn=kr.disableCheckbox,_t=mr.props.context.prefixCls,Or=mr.isDisabled(),Lr=mr.isCheckable();if(!Lr)return null;var rn=typeof Lr!="boolean"?Lr:null;return e.createElement("span",{className:w()("".concat(_t,"-checkbox"),Gr&&"".concat(_t,"-checkbox-checked"),!Gr&&ln&&"".concat(_t,"-checkbox-indeterminate"),(Or||Fn)&&"".concat(_t,"-checkbox-disabled")),onClick:mr.onCheck},rn)},mr.renderIcon=function(){var kr=mr.props.loading,Gr=mr.props.context.prefixCls;return e.createElement("span",{className:w()("".concat(Gr,"-iconEle"),"".concat(Gr,"-icon__").concat(mr.getNodeState()||"docu"),kr&&"".concat(Gr,"-icon_loading"))})},mr.renderSelector=function(){var kr=mr.state.dragNodeHighlight,Gr=mr.props,ln=Gr.title,Fn=Gr.selected,_t=Gr.icon,Or=Gr.loading,Lr=Gr.data,rn=mr.props.context,xn=rn.prefixCls,Ln=rn.showIcon,Sn=rn.icon,ei=rn.draggable,Kn=rn.loadData,mi=rn.titleRender,Fi=mr.isDisabled(),bi="".concat(xn,"-node-content-wrapper"),Ii;if(Ln){var Vi=_t||Sn;Ii=Vi?e.createElement("span",{className:w()("".concat(xn,"-iconEle"),"".concat(xn,"-icon__customize"))},typeof Vi=="function"?Vi(mr.props):Vi):mr.renderIcon()}else Kn&&Or&&(Ii=mr.renderIcon());var ea;typeof ln=="function"?ea=ln(Lr):mi?ea=mi(Lr):ea=ln;var Xi=e.createElement("span",{className:"".concat(xn,"-title")},ea);return e.createElement("span",{ref:mr.setSelectHandle,title:typeof ln=="string"?ln:"",className:w()("".concat(bi),"".concat(bi,"-").concat(mr.getNodeState()||"normal"),!Fi&&(Fn||kr)&&"".concat(xn,"-node-selected"),!Fi&&ei&&"draggable"),draggable:!Fi&&ei||void 0,"aria-grabbed":!Fi&&ei||void 0,onMouseEnter:mr.onMouseEnter,onMouseLeave:mr.onMouseLeave,onContextMenu:mr.onContextMenu,onClick:mr.onSelectorClick,onDoubleClick:mr.onSelectorDoubleClick,onDragStart:ei?mr.onDragStart:void 0},Ii,Xi)},mr}return Object(a.a)(Cn,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var kr=this.props.selectable,Gr=this.props.context.selectable;return typeof kr=="boolean"?kr:Gr}},{key:"render",value:function(){var kr,Gr=this.props,ln=Gr.eventKey,Fn=Gr.className,_t=Gr.style,Or=Gr.dragOver,Lr=Gr.dragOverGapTop,rn=Gr.dragOverGapBottom,xn=Gr.isLeaf,Ln=Gr.isStart,Sn=Gr.isEnd,ei=Gr.expanded,Kn=Gr.selected,mi=Gr.checked,Fi=Gr.halfChecked,bi=Gr.loading,Ii=Gr.domRef,Vi=Gr.active,ea=Gr.onMouseMove,Xi=Object(C.a)(Gr,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),zi=this.props.context,Hi=zi.prefixCls,Ji=zi.filterTreeNode,ca=zi.draggable,Ca=zi.keyEntities,na=this.isDisabled(),Pa=Pe(Xi),La=Ca[ln]||{},va=La.level,ga=Sn[Sn.length-1];return e.createElement("div",Object.assign({ref:Ii,className:w()(Fn,"".concat(Hi,"-treenode"),(kr={},Object(E.a)(kr,"".concat(Hi,"-treenode-disabled"),na),Object(E.a)(kr,"".concat(Hi,"-treenode-switcher-").concat(ei?"open":"close"),!xn),Object(E.a)(kr,"".concat(Hi,"-treenode-checkbox-checked"),mi),Object(E.a)(kr,"".concat(Hi,"-treenode-checkbox-indeterminate"),Fi),Object(E.a)(kr,"".concat(Hi,"-treenode-selected"),Kn),Object(E.a)(kr,"".concat(Hi,"-treenode-loading"),bi),Object(E.a)(kr,"".concat(Hi,"-treenode-active"),Vi),Object(E.a)(kr,"".concat(Hi,"-treenode-leaf-last"),ga),Object(E.a)(kr,"drag-over",!na&&Or),Object(E.a)(kr,"drag-over-gap-top",!na&&Lr),Object(E.a)(kr,"drag-over-gap-bottom",!na&&rn),Object(E.a)(kr,"filter-node",Ji&&Ji(jt(this.props))),kr)),style:_t,onDragEnter:ca?this.onDragEnter:void 0,onDragOver:ca?this.onDragOver:void 0,onDragLeave:ca?this.onDragLeave:void 0,onDrop:ca?this.onDrop:void 0,onDragEnd:ca?this.onDragEnd:void 0,onMouseMove:ea},Pa),e.createElement(vr,{prefixCls:Hi,level:va,isStart:Ln,isEnd:Sn}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Cn}(e.Component),Ft=function(xr){return e.createElement(ge.Consumer,null,function(Cn){return e.createElement(dn,Object.assign({},xr,{context:Cn}))})};Ft.displayName="TreeNode",Ft.defaultProps={title:lr},Ft.isTreeNode=1;var ur=Ft,Jt=.25,pt=2;function at(Ir,xr){var Cn=Ir.slice(),mr=Cn.indexOf(xr);return mr>=0&&Cn.splice(mr,1),Cn}function Pr(Ir,xr){var Cn=Ir.slice();return Cn.indexOf(xr)===-1&&Cn.push(xr),Cn}function un(Ir){return Ir.split("-")}function _n(Ir,xr){return"".concat(Ir,"-").concat(xr)}function Xn(Ir){return Ir&&Ir.type&&Ir.type.isTreeNode}function xi(Ir,xr){var Cn=[Ir],mr=xr[Ir];function kr(){var Gr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Gr.forEach(function(ln){var Fn=ln.key,_t=ln.children;Cn.push(Fn),kr(_t)})}return kr(mr.children),Cn}function Pn(Ir,xr){var Cn=Ir.clientY,mr=xr.selectHandle.getBoundingClientRect(),kr=mr.top,Gr=mr.bottom,ln=mr.height,Fn=Math.max(ln*Jt,pt);return Cn<=kr+Fn?-1:Cn>=Gr-Fn?1:0}function Un(Ir,xr){if(!Ir)return;var Cn=xr.multiple;return Cn?Ir.slice():Ir.length?[Ir[0]]:Ir}var $t=function(xr){return xr};function xt(Ir,xr){if(!Ir)return[];var Cn=xr||{},mr=Cn.processProps,kr=mr===void 0?$t:mr,Gr=Array.isArray(Ir)?Ir:[Ir];return Gr.map(function(ln){var Fn=ln.children,_t=Object(C.a)(ln,["children"]),Or=xt(Fn,xr);return l.a.createElement(ur,Object.assign({},kr(_t)),Or)})}function De(Ir){if(!Ir)return null;var xr;if(Array.isArray(Ir))xr={checkedKeys:Ir,halfCheckedKeys:void 0};else if(Object(A.a)(Ir)==="object")xr={checkedKeys:Ir.checked||void 0,halfCheckedKeys:Ir.halfChecked||void 0};else return Object(fe.a)(!1,"`checkedKeys` is not an array or an object"),null;return xr}function ke(Ir,xr){var Cn=new Set;function mr(kr){if(Cn.has(kr))return;var Gr=xr[kr];if(!Gr)return;Cn.add(kr);var ln=Gr.parent,Fn=Gr.node;if(Fn.disabled)return;ln&&mr(ln.key)}return(Ir||[]).forEach(function(kr){mr(kr)}),Object(g.a)(Cn)}function Pe(Ir){var xr={};return Object.keys(Ir).forEach(function(Cn){(Cn.startsWith("data-")||Cn.startsWith("aria-"))&&(xr[Cn]=Ir[Cn])}),xr}function tt(Ir,xr){return Ir!=null?Ir:xr}function yt(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],xr=new Map;function Cn(mr){var kr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(mr||[]).forEach(function(Gr){var ln=Gr.key,Fn=Gr.children;Object(fe.a)(ln!=null,"Tree node must have a certain key: [".concat(kr).concat(ln,"]"));var _t=String(ln);Object(fe.a)(!xr.has(_t)||ln===null||ln===void 0,"Same 'key' exist in the Tree: ".concat(_t)),xr.set(_t,!0),Cn(Fn,"".concat(kr).concat(_t," > "))})}Cn(Ir)}function Et(Ir){function xr(Cn){var mr=Object(lt.a)(Cn);return mr.map(function(kr){if(!Xn(kr))return Object(fe.a)(!kr,"Tree/TreeNode can only accept TreeNode as children."),null;var Gr=kr.key,ln=kr.props,Fn=ln.children,_t=Object(C.a)(ln,["children"]),Or=Object(S.a)({key:Gr},_t),Lr=xr(Fn);return Lr.length&&(Or.children=Lr),Or}).filter(function(kr){return kr})}return xr(Ir)}function Yt(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Cn=new Set(xr===!0?[]:xr),mr=[];function kr(Gr){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Gr.map(function(Fn,_t){var Or=_n(ln?ln.pos:"0",_t),Lr=tt(Fn.key,Or),rn=Object(S.a)(Object(S.a)({},Fn),{},{parent:ln,pos:Or,children:null,data:Fn,isStart:[].concat(Object(g.a)(ln?ln.isStart:[]),[_t===0]),isEnd:[].concat(Object(g.a)(ln?ln.isEnd:[]),[_t===Gr.length-1])});return mr.push(rn),xr===!0||Cn.has(Lr)?rn.children=kr(Fn.children||[],rn):rn.children=[],rn})}return kr(Ir),mr}function Rr(Ir,xr,Cn){var mr;Cn?typeof Cn=="string"?mr=function(ln){return ln[Cn]}:typeof Cn=="function"&&(mr=function(ln){return Cn(ln)}):mr=function(ln,Fn){return tt(ln.key,Fn)};function kr(Gr,ln,Fn){var _t=Gr?Gr.children:Ir,Or=Gr?_n(Fn.pos,ln):"0";if(Gr){var Lr=mr(Gr,Or),rn={node:Gr,index:ln,pos:Or,key:Lr,parentPos:Fn.node?Fn.pos:null,level:Fn.level+1};xr(rn)}_t&&_t.forEach(function(xn,Ln){kr(xn,Ln,{node:Gr,pos:Or,level:Fn?Fn.level+1:-1})})}kr(null)}function zr(Ir){var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Cn=xr.initWrapper,mr=xr.processEntity,kr=xr.onProcessFinished,Gr=arguments.length>2?arguments[2]:void 0,ln={},Fn={},_t={posEntities:ln,keyEntities:Fn};return Cn&&(_t=Cn(_t)||_t),Rr(Ir,function(Or){var Lr=Or.node,rn=Or.index,xn=Or.pos,Ln=Or.key,Sn=Or.parentPos,ei=Or.level,Kn={node:Lr,index:rn,key:Ln,pos:xn,level:ei},mi=tt(Ln,xn);ln[xn]=Kn,Fn[mi]=Kn,Kn.parent=ln[Sn],Kn.parent&&(Kn.parent.children=Kn.parent.children||[],Kn.parent.children.push(Kn)),mr&&mr(Kn,_t)},Gr),kr&&kr(_t),_t}function hn(Ir,xr){var Cn=xr.expandedKeys,mr=xr.selectedKeys,kr=xr.loadedKeys,Gr=xr.loadingKeys,ln=xr.checkedKeys,Fn=xr.halfCheckedKeys,_t=xr.dragOverNodeKey,Or=xr.dropPosition,Lr=xr.keyEntities,rn=Lr[Ir],xn={eventKey:Ir,expanded:Cn.indexOf(Ir)!==-1,selected:mr.indexOf(Ir)!==-1,loaded:kr.indexOf(Ir)!==-1,loading:Gr.indexOf(Ir)!==-1,checked:ln.indexOf(Ir)!==-1,halfChecked:Fn.indexOf(Ir)!==-1,pos:String(rn?rn.pos:""),dragOver:_t===Ir&&Or===0,dragOverGapTop:_t===Ir&&Or===-1,dragOverGapBottom:_t===Ir&&Or===1};return xn}function jt(Ir){var xr=Ir.data,Cn=Ir.expanded,mr=Ir.selected,kr=Ir.checked,Gr=Ir.loaded,ln=Ir.loading,Fn=Ir.halfChecked,_t=Ir.dragOver,Or=Ir.dragOverGapTop,Lr=Ir.dragOverGapBottom,rn=Ir.pos,xn=Ir.active,Ln=Object(S.a)(Object(S.a)({},xr),{},{expanded:Cn,selected:mr,checked:kr,loaded:Gr,loading:ln,halfChecked:Fn,dragOver:_t,dragOverGapTop:Or,dragOverGapBottom:Lr,pos:rn,active:xn});return"props"in Ln||Object.defineProperty(Ln,"props",{get:function(){return Object(fe.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Ir}}),Ln}function vt(Ir,xr){var Cn=new Set;return Ir.forEach(function(mr){xr.has(mr)||Cn.add(mr)}),Cn}function bt(Ir){var xr=Ir||{},Cn=xr.disabled,mr=xr.disableCheckbox,kr=xr.checkable;return!!(Cn||mr)||kr===!1}function cr(Ir,xr,Cn,mr){for(var kr=new Set(Ir),Gr=new Set,ln=0;ln<=Cn;ln+=1){var Fn=xr.get(ln)||new Set;Fn.forEach(function(rn){var xn=rn.key,Ln=rn.node,Sn=rn.children,ei=Sn===void 0?[]:Sn;kr.has(xn)&&!mr(Ln)&&ei.filter(function(Kn){return!mr(Kn.node)}).forEach(function(Kn){kr.add(Kn.key)})})}for(var _t=new Set,Or=Cn;Or>=0;Or-=1){var Lr=xr.get(Or)||new Set;Lr.forEach(function(rn){var xn=rn.parent,Ln=rn.node;if(mr(Ln)||!rn.parent||_t.has(rn.parent.key))return;if(mr(rn.parent.node)){_t.add(xn.key);return}var Sn=!0,ei=!1;(xn.children||[]).filter(function(Kn){return!mr(Kn.node)}).forEach(function(Kn){var mi=Kn.key,Fi=kr.has(mi);Sn&&!Fi&&(Sn=!1),!ei&&(Fi||Gr.has(mi))&&(ei=!0)}),Sn&&kr.add(xn.key),ei&&Gr.add(xn.key),_t.add(xn.key)})}return{checkedKeys:Array.from(kr),halfCheckedKeys:Array.from(vt(Gr,kr))}}function Qt(Ir,xr,Cn,mr,kr){for(var Gr=new Set(Ir),ln=new Set(xr),Fn=0;Fn<=mr;Fn+=1){var _t=Cn.get(Fn)||new Set;_t.forEach(function(xn){var Ln=xn.key,Sn=xn.node,ei=xn.children,Kn=ei===void 0?[]:ei;!Gr.has(Ln)&&!ln.has(Ln)&&!kr(Sn)&&Kn.filter(function(mi){return!kr(mi.node)}).forEach(function(mi){Gr.delete(mi.key)})})}ln=new Set;for(var Or=new Set,Lr=mr;Lr>=0;Lr-=1){var rn=Cn.get(Lr)||new Set;rn.forEach(function(xn){var Ln=xn.parent,Sn=xn.node;if(kr(Sn)||!xn.parent||Or.has(xn.parent.key))return;if(kr(xn.parent.node)){Or.add(Ln.key);return}var ei=!0,Kn=!1;(Ln.children||[]).filter(function(mi){return!kr(mi.node)}).forEach(function(mi){var Fi=mi.key,bi=Gr.has(Fi);ei&&!bi&&(ei=!1),!Kn&&(bi||ln.has(Fi))&&(Kn=!0)}),ei||Gr.delete(Ln.key),Kn&&ln.add(Ln.key),Or.add(Ln.key)})}return{checkedKeys:Array.from(Gr),halfCheckedKeys:Array.from(vt(ln,Gr))}}function Mt(Ir,xr,Cn,mr){var kr=[],Gr;mr?Gr=mr:Gr=bt;var ln=new Set(Ir.filter(function(Lr){var rn=!!Cn[Lr];return rn||kr.push(Lr),rn})),Fn=new Map,_t=0;Object.keys(Cn).forEach(function(Lr){var rn=Cn[Lr],xn=rn.level,Ln=Fn.get(xn);Ln||(Ln=new Set,Fn.set(xn,Ln)),Ln.add(rn),_t=Math.max(_t,xn)}),Object(fe.a)(!kr.length,"Tree missing follow keys: ".concat(kr.slice(0,100).map(function(Lr){return"'".concat(Lr,"'")}).join(", ")));var Or;return xr===!0?Or=cr(ln,Fn,_t,Gr):Or=Qt(ln,xr.halfCheckedKeys,Fn,_t,Gr),Or}var tr=n("YrtM"),Rt=n("+nKL"),qt=function(xr,Cn){var mr=xr.className,kr=xr.style,Gr=xr.motion,ln=xr.motionNodes,Fn=xr.motionType,_t=xr.onMotionStart,Or=xr.onMotionEnd,Lr=xr.active,rn=xr.treeNodeRequiredProps,xn=Object(C.a)(xr,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),Ln=e.useState(!0),Sn=Object(b.a)(Ln,2),ei=Sn[0],Kn=Sn[1],mi=e.useContext(ge),Fi=mi.prefixCls,bi=e.useRef(!1),Ii=function(){bi.current||Or(),bi.current=!0};return Object(e.useEffect)(function(){ln&&Fn==="hide"&&ei&&Kn(!1)},[ln]),Object(e.useEffect)(function(){return ln&&_t(),function(){ln&&Ii()}},[]),ln?e.createElement(k.b,Object.assign({ref:Cn,visible:ei},Gr,{motionAppear:Fn==="show",onAppearEnd:Ii,onLeaveEnd:Ii}),function(Vi,ea){var Xi=Vi.className,zi=Vi.style;return e.createElement("div",{ref:ea,className:w()("".concat(Fi,"-treenode-motion"),Xi),style:zi},ln.map(function(Hi){var Ji=Hi.data,ca=Ji.key,Ca=Object(C.a)(Ji,["key"]),na=Hi.isStart,Pa=Hi.isEnd;delete Ca.children;var La=hn(ca,rn);return e.createElement(ur,Object.assign({},Ca,La,{active:Lr,data:Hi.data,key:ca,isStart:na,isEnd:Pa}))}))}):e.createElement(ur,Object.assign({domRef:Cn,className:mr,style:kr},xn,{active:Lr}))};qt.displayName="MotionTreeNode";var Hr=e.forwardRef(qt),Nr=Hr;function Dr(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Cn=Ir.length,mr=xr.length;if(Math.abs(Cn-mr)!==1)return{add:!1,key:null};function kr(Gr,ln){var Fn=new Map;Gr.forEach(function(Or){Fn.set(Or,!0)});var _t=ln.filter(function(Or){return!Fn.has(Or)});return _t.length===1?_t[0]:null}return Cn<mr?{add:!0,key:kr(Ir,xr)}:{add:!1,key:kr(xr,Ir)}}function cn(Ir,xr,Cn){var mr=Ir.findIndex(function(Fn){var _t=Fn.data;return _t.key===Cn}),kr=Ir[mr+1],Gr=xr.findIndex(function(Fn){var _t=Fn.data;return _t.key===Cn});if(kr){var ln=xr.findIndex(function(Fn){var _t=Fn.data;return _t.key===kr.data.key});return xr.slice(Gr+1,ln)}return xr.slice(Gr+1)}var An={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ri=function(){},$n="RC_TREE_MOTION_".concat(Math.random()),fi={key:$n},_i={key:$n,level:0,index:0,pos:"0",node:fi},Di={parent:null,children:[],pos:_i.pos,data:fi,isStart:[],isEnd:[]};function Wi(Ir,xr,Cn,mr){return xr===!1||!Cn?Ir:Ir.slice(0,Math.ceil(Cn/mr)+1)}function it(Ir){var xr=Ir.data.key,Cn=Ir.pos;return tt(xr,Cn)}function Le(Ir){for(var xr=String(Ir.data.key),Cn=Ir;Cn.parent;)Cn=Cn.parent,xr="".concat(Cn.data.key," > ").concat(xr);return xr}var je=function(xr,Cn){var mr=xr.prefixCls,kr=xr.data,Gr=xr.selectable,ln=xr.checkable,Fn=xr.expandedKeys,_t=xr.selectedKeys,Or=xr.checkedKeys,Lr=xr.loadedKeys,rn=xr.loadingKeys,xn=xr.halfCheckedKeys,Ln=xr.keyEntities,Sn=xr.disabled,ei=xr.dragging,Kn=xr.dragOverNodeKey,mi=xr.dropPosition,Fi=xr.motion,bi=xr.height,Ii=xr.itemHeight,Vi=xr.virtual,ea=xr.focusable,Xi=xr.activeItem,zi=xr.focused,Hi=xr.tabIndex,Ji=xr.onKeyDown,ca=xr.onFocus,Ca=xr.onBlur,na=xr.onActiveChange,Pa=xr.onListChangeStart,La=xr.onListChangeEnd,va=Object(C.a)(xr,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),ga=e.useRef(null);e.useImperativeHandle(Cn,function(){return{scrollTo:function(rs){ga.current.scrollTo(rs)}}});var Oa=e.useState(Fn),Aa=Object(b.a)(Oa,2),Xa=Aa[0],_a=Aa[1],Va=e.useState(kr),Bi=Object(b.a)(Va,2),io=Bi[0],oo=Bi[1],Qo=e.useState(kr),mo=Object(b.a)(Qo,2),To=mo[0],ao=mo[1],So=e.useState([]),bo=Object(b.a)(So,2),to=bo[0],Jo=bo[1],Uo=e.useState(null),wo=Object(b.a)(Uo,2),ts=wo[0],Ia=wo[1];function Oo(){oo(kr),ao(kr),Jo([]),Ia(null),La()}e.useEffect(function(){_a(Fn);var xo=Dr(Xa,Fn);if(xo.key!==null)if(xo.add){var rs=io.findIndex(function(Tr){var tn=Tr.data.key;return tn===xo.key}),Ho=Wi(cn(io,kr,xo.key),Vi,bi,Ii),_o=io.slice();_o.splice(rs+1,0,Di),ao(_o),Jo(Ho),Ia("show")}else{var uo=kr.findIndex(function(Tr){var tn=Tr.data.key;return tn===xo.key}),Ha=Wi(cn(kr,io,xo.key),Vi,bi,Ii),mt=kr.slice();mt.splice(uo+1,0,Di),ao(mt),Jo(Ha),Ia("hide")}else io!==kr&&(oo(kr),ao(kr))},[Fn,kr]),e.useEffect(function(){ei||Oo()},[ei]);var Io=Fi?To:kr,os={expandedKeys:Fn,selectedKeys:_t,loadedKeys:Lr,loadingKeys:rn,checkedKeys:Or,halfCheckedKeys:xn,dragOverNodeKey:Kn,dropPosition:mi,keyEntities:Ln};return e.createElement(e.Fragment,null,zi&&Xi&&e.createElement("span",{style:An,"aria-live":"assertive"},Le(Xi)),e.createElement("div",{role:"tree"},e.createElement("input",{style:An,disabled:ea===!1||Sn,tabIndex:ea!==!1?Hi:null,onKeyDown:Ji,onFocus:ca,onBlur:Ca,value:"",onChange:ri})),e.createElement(Rt.a,Object.assign({},va,{data:Io,itemKey:it,height:bi,fullHeight:!1,virtual:Vi,itemHeight:Ii,prefixCls:"".concat(mr,"-list"),ref:ga}),function(xo){var rs=xo.pos,Ho=xo.data,_o=Ho.key,uo=Object(C.a)(Ho,["key"]),Ha=xo.isStart,mt=xo.isEnd,Tr=tt(_o,rs);delete uo.children;var tn=hn(Tr,os);return e.createElement(Nr,Object.assign({},uo,tn,{active:Xi&&_o===Xi.data.key,pos:rs,data:xo.data,isStart:Ha,isEnd:mt,motion:Fi,motionNodes:_o===$n?to:null,motionType:ts,onMotionStart:Pa,onMotionEnd:Oo,treeNodeRequiredProps:os,onMouseMove:function(){na(null)}}))}))},Xe=e.forwardRef(je);Xe.displayName="NodeList";var nt=Xe,Ze=function(Ir){Object(c.a)(Cn,Ir);var xr=Object(h.a)(Cn);function Cn(){var mr;return Object(r.a)(this,Cn),mr=xr.apply(this,arguments),mr.destroyed=!1,mr.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},mr.listRef=e.createRef(),mr.onNodeDragStart=function(kr,Gr){var ln=mr.state,Fn=ln.expandedKeys,_t=ln.keyEntities,Or=mr.props.onDragStart,Lr=Gr.props.eventKey;mr.dragNode=Gr;var rn=at(Fn,Lr);mr.setState({dragging:!0,dragNodesKeys:xi(Lr,_t)}),mr.setExpandedKeys(rn),Or&&Or({event:kr,node:jt(Gr.props)})},mr.onNodeDragEnter=function(kr,Gr){var ln=mr.state,Fn=ln.expandedKeys,_t=ln.keyEntities,Or=ln.dragNodesKeys,Lr=mr.props.onDragEnter,rn=Gr.props,xn=rn.pos,Ln=rn.eventKey;if(!mr.dragNode||Or.indexOf(Ln)!==-1)return;var Sn=Pn(kr,Gr);if(mr.dragNode.props.eventKey===Ln&&Sn===0){mr.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){mr.setState({dragOverNodeKey:Ln,dropPosition:Sn}),mr.delayedDragEnterLogic||(mr.delayedDragEnterLogic={}),Object.keys(mr.delayedDragEnterLogic).forEach(function(ei){clearTimeout(mr.delayedDragEnterLogic[ei])}),mr.delayedDragEnterLogic[xn]=window.setTimeout(function(){if(!mr.state.dragging)return;var ei=Object(g.a)(Fn),Kn=_t[Ln];Kn&&(Kn.children||[]).length&&(ei=Pr(Fn,Ln)),"expandedKeys"in mr.props||mr.setExpandedKeys(ei),Lr&&Lr({event:kr,node:jt(Gr.props),expandedKeys:ei})},400)},0)},mr.onNodeDragOver=function(kr,Gr){var ln=mr.state.dragNodesKeys,Fn=mr.props.onDragOver,_t=Gr.props.eventKey;if(ln.indexOf(_t)!==-1)return;if(mr.dragNode&&_t===mr.state.dragOverNodeKey){var Or=Pn(kr,Gr);if(Or===mr.state.dropPosition)return;mr.setState({dropPosition:Or})}Fn&&Fn({event:kr,node:jt(Gr.props)})},mr.onNodeDragLeave=function(kr,Gr){var ln=mr.props.onDragLeave;mr.setState({dragOverNodeKey:""}),ln&&ln({event:kr,node:jt(Gr.props)})},mr.onNodeDragEnd=function(kr,Gr){var ln=mr.props.onDragEnd;mr.setState({dragOverNodeKey:""}),mr.cleanDragState(),ln&&ln({event:kr,node:jt(Gr.props)}),mr.dragNode=null},mr.onNodeDrop=function(kr,Gr){var ln=mr.state,Fn=ln.dragNodesKeys,_t=Fn===void 0?[]:Fn,Or=ln.dropPosition,Lr=mr.props.onDrop,rn=Gr.props,xn=rn.eventKey,Ln=rn.pos;if(mr.setState({dragOverNodeKey:""}),mr.cleanDragState(),_t.indexOf(xn)!==-1){Object(fe.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Sn=un(Ln),ei={event:kr,node:jt(Gr.props),dragNode:mr.dragNode?jt(mr.dragNode.props):null,dragNodesKeys:_t.slice(),dropPosition:Or+Number(Sn[Sn.length-1]),dropToGap:!1};Or!==0&&(ei.dropToGap=!0),Lr&&Lr(ei),mr.dragNode=null},mr.cleanDragState=function(){var kr=mr.state.dragging;kr&&mr.setState({dragging:!1})},mr.onNodeClick=function(kr,Gr){var ln=mr.props.onClick;ln&&ln(kr,Gr)},mr.onNodeDoubleClick=function(kr,Gr){var ln=mr.props.onDoubleClick;ln&&ln(kr,Gr)},mr.onNodeSelect=function(kr,Gr){var ln=mr.state.selectedKeys,Fn=mr.state.keyEntities,_t=mr.props,Or=_t.onSelect,Lr=_t.multiple,rn=Gr.selected,xn=Gr.key,Ln=!rn;Ln?Lr?ln=Pr(ln,xn):ln=[xn]:ln=at(ln,xn);var Sn=ln.map(function(ei){var Kn=Fn[ei];return Kn?Kn.node:null}).filter(function(ei){return ei});mr.setUncontrolledState({selectedKeys:ln}),Or&&Or(ln,{event:"select",selected:Ln,node:Gr,selectedNodes:Sn,nativeEvent:kr.nativeEvent})},mr.onNodeCheck=function(kr,Gr,ln){var Fn=mr.state,_t=Fn.keyEntities,Or=Fn.checkedKeys,Lr=Fn.halfCheckedKeys,rn=mr.props,xn=rn.checkStrictly,Ln=rn.onCheck,Sn=Gr.key,ei,Kn={event:"check",node:Gr,checked:ln,nativeEvent:kr.nativeEvent};if(xn){var mi=ln?Pr(Or,Sn):at(Or,Sn),Fi=at(Lr,Sn);ei={checked:mi,halfChecked:Fi},Kn.checkedNodes=mi.map(function(zi){return _t[zi]}).filter(function(zi){return zi}).map(function(zi){return zi.node}),mr.setUncontrolledState({checkedKeys:mi})}else{var bi=Mt([].concat(Object(g.a)(Or),[Sn]),!0,_t),Ii=bi.checkedKeys,Vi=bi.halfCheckedKeys;if(!ln){var ea=new Set(Ii);ea.delete(Sn);var Xi=Mt(Array.from(ea),{checked:!1,halfCheckedKeys:Vi},_t);Ii=Xi.checkedKeys,Vi=Xi.halfCheckedKeys}ei=Ii,Kn.checkedNodes=[],Kn.checkedNodesPositions=[],Kn.halfCheckedKeys=Vi,Ii.forEach(function(zi){var Hi=_t[zi];if(!Hi)return;var Ji=Hi.node,ca=Hi.pos;Kn.checkedNodes.push(Ji),Kn.checkedNodesPositions.push({node:Ji,pos:ca})}),mr.setUncontrolledState({checkedKeys:Ii},!1,{halfCheckedKeys:Vi})}Ln&&Ln(ei,Kn)},mr.onNodeLoad=function(kr){return new Promise(function(Gr){mr.setState(function(ln){var Fn=ln.loadedKeys,_t=Fn===void 0?[]:Fn,Or=ln.loadingKeys,Lr=Or===void 0?[]:Or,rn=mr.props,xn=rn.loadData,Ln=rn.onLoad,Sn=kr.key;if(!xn||_t.indexOf(Sn)!==-1||Lr.indexOf(Sn)!==-1)return{};var ei=xn(kr);return ei.then(function(){var Kn=mr.state,mi=Kn.loadedKeys,Fi=Kn.loadingKeys,bi=Pr(mi,Sn),Ii=at(Fi,Sn);Ln&&Ln(bi,{event:"load",node:kr}),mr.setUncontrolledState({loadedKeys:bi}),mr.setState({loadingKeys:Ii}),Gr()}),{loadingKeys:Pr(Lr,Sn)}})})},mr.onNodeMouseEnter=function(kr,Gr){var ln=mr.props.onMouseEnter;ln&&ln({event:kr,node:Gr})},mr.onNodeMouseLeave=function(kr,Gr){var ln=mr.props.onMouseLeave;ln&&ln({event:kr,node:Gr})},mr.onNodeContextMenu=function(kr,Gr){var ln=mr.props.onRightClick;ln&&(kr.preventDefault(),ln({event:kr,node:Gr}))},mr.onFocus=function(){var kr=mr.props.onFocus;mr.setState({focused:!0}),kr&&kr.apply(void 0,arguments)},mr.onBlur=function(){var kr=mr.props.onBlur;mr.setState({focused:!1}),mr.onActiveChange(null),kr&&kr.apply(void 0,arguments)},mr.getTreeNodeRequiredProps=function(){var kr=mr.state,Gr=kr.expandedKeys,ln=kr.selectedKeys,Fn=kr.loadedKeys,_t=kr.loadingKeys,Or=kr.checkedKeys,Lr=kr.halfCheckedKeys,rn=kr.dragOverNodeKey,xn=kr.dropPosition,Ln=kr.keyEntities;return{expandedKeys:Gr||[],selectedKeys:ln||[],loadedKeys:Fn||[],loadingKeys:_t||[],checkedKeys:Or||[],halfCheckedKeys:Lr||[],dragOverNodeKey:rn,dropPosition:xn,keyEntities:Ln}},mr.setExpandedKeys=function(kr){var Gr=mr.state.treeData,ln=Yt(Gr,kr);mr.setUncontrolledState({expandedKeys:kr,flattenNodes:ln},!0)},mr.onNodeExpand=function(kr,Gr){var ln=mr.state.expandedKeys,Fn=mr.state.listChanging,_t=mr.props,Or=_t.onExpand,Lr=_t.loadData,rn=Gr.key,xn=Gr.expanded;if(Fn)return;var Ln=ln.indexOf(rn),Sn=!xn;if(Object(fe.a)(xn&&Ln!==-1||!xn&&Ln===-1,"Expand state not sync with index check"),Sn?ln=Pr(ln,rn):ln=at(ln,rn),mr.setExpandedKeys(ln),Or&&Or(ln,{node:Gr,expanded:Sn,nativeEvent:kr.nativeEvent}),Sn&&Lr){var ei=mr.onNodeLoad(Gr);ei&&ei.then(function(){var Kn=Yt(mr.state.treeData,ln);mr.setUncontrolledState({flattenNodes:Kn})})}},mr.onListChangeStart=function(){mr.setUncontrolledState({listChanging:!0})},mr.onListChangeEnd=function(){setTimeout(function(){mr.setUncontrolledState({listChanging:!1})})},mr.onActiveChange=function(kr){var Gr=mr.state.activeKey,ln=mr.props.onActiveChange;if(Gr===kr)return;mr.setState({activeKey:kr}),kr!==null&&mr.scrollTo({key:kr}),ln&&ln(kr)},mr.getActiveItem=function(){var kr=mr.state,Gr=kr.activeKey,ln=kr.flattenNodes;return Gr===null?null:ln.find(function(Fn){var _t=Fn.data.key;return _t===Gr})||null},mr.offsetActiveKey=function(kr){var Gr=mr.state,ln=Gr.flattenNodes,Fn=Gr.activeKey,_t=ln.findIndex(function(rn){var xn=rn.data.key;return xn===Fn});_t===-1&&kr<0&&(_t=ln.length),_t=(_t+kr+ln.length)%ln.length;var Or=ln[_t];if(Or){var Lr=Or.data.key;mr.onActiveChange(Lr)}else mr.onActiveChange(null)},mr.onKeyDown=function(kr){var Gr=mr.state,ln=Gr.activeKey,Fn=Gr.expandedKeys,_t=Gr.checkedKeys,Or=mr.props,Lr=Or.onKeyDown,rn=Or.checkable,xn=Or.selectable;switch(kr.which){case _.a.UP:{mr.offsetActiveKey(-1),kr.preventDefault();break}case _.a.DOWN:{mr.offsetActiveKey(1),kr.preventDefault();break}}var Ln=mr.getActiveItem();if(Ln&&Ln.data){var Sn=mr.getTreeNodeRequiredProps(),ei=Ln.data.isLeaf===!1||!!(Ln.data.children||[]).length,Kn=jt(Object(S.a)(Object(S.a)({},hn(ln,Sn)),{},{data:Ln.data,active:!0}));switch(kr.which){case _.a.LEFT:{ei&&Fn.includes(ln)?mr.onNodeExpand({},Kn):Ln.parent&&mr.onActiveChange(Ln.parent.data.key),kr.preventDefault();break}case _.a.RIGHT:{ei&&!Fn.includes(ln)?mr.onNodeExpand({},Kn):Ln.children&&Ln.children.length&&mr.onActiveChange(Ln.children[0].data.key),kr.preventDefault();break}case _.a.ENTER:case _.a.SPACE:{rn&&!Kn.disabled&&Kn.checkable!==!1&&!Kn.disableCheckbox?mr.onNodeCheck({},Kn,!_t.includes(ln)):!rn&&xn&&!Kn.disabled&&Kn.selectable!==!1&&mr.onNodeSelect({},Kn);break}}}Lr&&Lr(kr)},mr.setUncontrolledState=function(kr){var Gr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(mr.destroyed)return;var Fn=!1,_t=!0,Or={};Object.keys(kr).forEach(function(Lr){if(Lr in mr.props){_t=!1;return}Fn=!0,Or[Lr]=kr[Lr]}),Fn&&(!Gr||_t)&&mr.setState(Object(S.a)(Object(S.a)({},Or),ln))},mr.scrollTo=function(kr){mr.listRef.current.scrollTo(kr)},mr}return Object(a.a)(Cn,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var kr,Gr=this.state,ln=Gr.focused,Fn=Gr.flattenNodes,_t=Gr.keyEntities,Or=Gr.dragging,Lr=Gr.activeKey,rn=this.props,xn=rn.prefixCls,Ln=rn.className,Sn=rn.style,ei=rn.showLine,Kn=rn.focusable,mi=rn.tabIndex,Fi=mi===void 0?0:mi,bi=rn.selectable,Ii=rn.showIcon,Vi=rn.icon,ea=rn.switcherIcon,Xi=rn.draggable,zi=rn.checkable,Hi=rn.checkStrictly,Ji=rn.disabled,ca=rn.motion,Ca=rn.loadData,na=rn.filterTreeNode,Pa=rn.height,La=rn.itemHeight,va=rn.virtual,ga=rn.titleRender,Oa=rn.onContextMenu,Aa=Pe(this.props);return e.createElement(ge.Provider,{value:{prefixCls:xn,selectable:bi,showIcon:Ii,icon:Vi,switcherIcon:ea,draggable:Xi,checkable:zi,checkStrictly:Hi,disabled:Ji,keyEntities:_t,loadData:Ca,filterTreeNode:na,titleRender:ga,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},e.createElement("div",{className:w()(xn,Ln,(kr={},Object(E.a)(kr,"".concat(xn,"-show-line"),ei),Object(E.a)(kr,"".concat(xn,"-focused"),ln),Object(E.a)(kr,"".concat(xn,"-active-focused"),Lr!==null),kr))},e.createElement(nt,Object.assign({ref:this.listRef,prefixCls:xn,style:Sn,data:Fn,disabled:Ji,selectable:bi,checkable:!!zi,motion:ca,dragging:Or,height:Pa,itemHeight:La,virtual:va,focusable:Kn,focused:ln,tabIndex:Fi,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Oa},this.getTreeNodeRequiredProps(),Aa))))}}],[{key:"getDerivedStateFromProps",value:function(kr,Gr){var ln=Gr.prevProps,Fn={prevProps:kr};function _t(Vi){return!ln&&Vi in kr||ln&&ln[Vi]!==kr[Vi]}var Or;if(_t("treeData")?Or=kr.treeData:_t("children")&&(Object(fe.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Or=Et(kr.children)),Or){Fn.treeData=Or;var Lr=zr(Or);Fn.keyEntities=Object(S.a)(Object(E.a)({},$n,_i),Lr.keyEntities)}var rn=Fn.keyEntities||Gr.keyEntities;if(_t("expandedKeys")||ln&&_t("autoExpandParent"))Fn.expandedKeys=kr.autoExpandParent||!ln&&kr.defaultExpandParent?ke(kr.expandedKeys,rn):kr.expandedKeys;else if(!ln&&kr.defaultExpandAll){var xn=Object(S.a)({},rn);delete xn[$n],Fn.expandedKeys=Object.keys(xn).map(function(Vi){return xn[Vi].key})}else!ln&&kr.defaultExpandedKeys&&(Fn.expandedKeys=kr.autoExpandParent||kr.defaultExpandParent?ke(kr.defaultExpandedKeys,rn):kr.defaultExpandedKeys);if(Fn.expandedKeys||delete Fn.expandedKeys,Or||Fn.expandedKeys){var Ln=Yt(Or||Gr.treeData,Fn.expandedKeys||Gr.expandedKeys);Fn.flattenNodes=Ln}if(kr.selectable&&(_t("selectedKeys")?Fn.selectedKeys=Un(kr.selectedKeys,kr):!ln&&kr.defaultSelectedKeys&&(Fn.selectedKeys=Un(kr.defaultSelectedKeys,kr))),kr.checkable){var Sn;if(_t("checkedKeys")?Sn=De(kr.checkedKeys)||{}:!ln&&kr.defaultCheckedKeys?Sn=De(kr.defaultCheckedKeys)||{}:Or&&(Sn=De(kr.checkedKeys)||{checkedKeys:Gr.checkedKeys,halfCheckedKeys:Gr.halfCheckedKeys}),Sn){var ei=Sn,Kn=ei.checkedKeys,mi=Kn===void 0?[]:Kn,Fi=ei.halfCheckedKeys,bi=Fi===void 0?[]:Fi;if(!kr.checkStrictly){var Ii=Mt(mi,!0,rn);mi=Ii.checkedKeys,bi=Ii.halfCheckedKeys}Fn.checkedKeys=mi,Fn.halfCheckedKeys=bi}}return _t("loadedKeys")&&(Fn.loadedKeys=kr.loadedKeys),Fn}}]),Cn}(e.Component);Ze.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},Ze.TreeNode=ur;var ot=Ze,Ct=ot,gt=e.createContext(null);function pr(Ir,xr){if(!Ir)return!0;var Cn=Ir.data,mr=Cn.disabled,kr=Cn.disableCheckbox;switch(xr){case"select":return mr;case"checkbox":return mr||kr}return!1}function $r(Ir,xr){var Cn=e.useCallback(function(kr){var Gr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",ln=arguments.length>2?arguments[2]:void 0,Fn=Ir.get(kr);return!ln&&pr(Fn,Gr)?null:Fn},[Ir]),mr=e.useCallback(function(kr){var Gr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",ln=arguments.length>2?arguments[2]:void 0,Fn=xr.get(kr);return!ln&&pr(Fn,Gr)?null:Fn},[xr]);return[Cn,mr]}function Yr(Ir){return e.useMemo(function(){var xr=new Map,Cn=new Map;return Ir.forEach(function(mr){xr.set(mr.key,mr),Cn.set(mr.data.value,mr)}),[xr,Cn]},[Ir])}var mn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ar=function(xr,Cn){var mr=xr.prefixCls,kr=xr.height,Gr=xr.itemHeight,ln=xr.virtual,Fn=xr.options,_t=xr.flattenOptions,Or=xr.multiple,Lr=xr.searchValue,rn=xr.onSelect,xn=xr.onToggleOpen,Ln=xr.open,Sn=xr.notFoundContent,ei=xr.onMouseEnter,Kn=e.useContext(gt),mi=Kn.checkable,Fi=Kn.checkedKeys,bi=Kn.halfCheckedKeys,Ii=Kn.treeExpandedKeys,Vi=Kn.treeDefaultExpandAll,ea=Kn.treeDefaultExpandedKeys,Xi=Kn.onTreeExpand,zi=Kn.treeIcon,Hi=Kn.showTreeIcon,Ji=Kn.switcherIcon,ca=Kn.treeLine,Ca=Kn.treeNodeFilterProp,na=Kn.loadData,Pa=Kn.treeLoadedKeys,La=Kn.treeMotion,va=Kn.onTreeLoad,ga=e.useRef(),Oa=Object(tr.a)(function(){return Fn},[Ln,Fn],function(tn,Qr){return Qr[0]&&tn[1]!==Qr[1]}),Aa=Yr(_t),Xa=Object(b.a)(Aa,2),_a=Xa[0],Va=Xa[1],Bi=$r(_a,Va),io=Object(b.a)(Bi,2),oo=io[0],Qo=io[1],mo=e.useMemo(function(){return Fi.map(function(tn){var Qr=Qo(tn);return Qr?Qr.key:null})},[Fi]),To=e.useMemo(function(){return mi?{checked:mo,halfChecked:bi}:null},[mo,bi,mi]);e.useEffect(function(){if(Ln&&!Or&&mo.length){var tn;(tn=ga.current)===null||tn===void 0||tn.scrollTo({key:mo[0]})}},[Ln]);var ao=String(Lr).toLowerCase(),So=function(Qr){return ao?String(Qr[Ca]).toLowerCase().includes(ao):!1},bo=e.useState(ea),to=Object(b.a)(bo,2),Jo=to[0],Uo=to[1],wo=e.useState(null),ts=Object(b.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=e.useMemo(function(){return Ii?Object(g.a)(Ii):Lr?Ia:Jo},[Jo,Ia,ao,Ii]);e.useEffect(function(){Lr&&Oo(_t.map(function(tn){return tn.key}))},[Lr]);var os=function(Qr){Uo(Qr),Oo(Qr),Xi&&Xi(Qr)},xo=function(Qr){Qr.preventDefault()},rs=function(Qr,Jn){var fn=Jn.node.key,Xr=oo(fn,mi?"checkbox":"select");Xr!==null&&rn(Xr.data.value,{selected:!Fi.includes(Xr.data.value)}),Or||xn(!1)},Ho=e.useState(null),_o=Object(b.a)(Ho,2),uo=_o[0],Ha=_o[1],mt=oo(uo);if(e.useImperativeHandle(Cn,function(){return{onKeyDown:function(Qr){var Jn,fn=Qr.which;switch(fn){case _.a.UP:case _.a.DOWN:case _.a.LEFT:case _.a.RIGHT:(Jn=ga.current)===null||Jn===void 0||Jn.onKeyDown(Qr);break;case _.a.ENTER:{mt!==null&&rs(null,{node:{key:uo},selected:!Fi.includes(mt.data.value)});break}case _.a.ESC:xn(!1)}},onKeyUp:function(){}}}),Oa.length===0)return e.createElement("div",{role:"listbox",className:"".concat(mr,"-empty"),onMouseDown:xo},Sn);var Tr={};return Pa&&(Tr.loadedKeys=Pa),Io&&(Tr.expandedKeys=Io),e.createElement("div",{onMouseDown:xo,onMouseEnter:ei},mt&&Ln&&e.createElement("span",{style:mn,"aria-live":"assertive"},mt.data.value),e.createElement(Ct,Object.assign({ref:ga,focusable:!1,prefixCls:"".concat(mr,"-tree"),treeData:Oa,height:kr,itemHeight:Gr,virtual:ln,multiple:Or,icon:zi,showIcon:Hi,switcherIcon:Ji,showLine:ca,loadData:Lr?null:na,motion:La,checkable:mi,checkStrictly:!0,checkedKeys:To,selectedKeys:mi?[]:mo,defaultExpandAll:Vi},Tr,{onActiveChange:Ha,onSelect:rs,onCheck:rs,onExpand:os,onLoad:va,filterTreeNode:So})))},zn=e.forwardRef(Ar);zn.displayName="OptionList";var Fr=zn,Bn=function(){return null},bn=Bn;function en(Ir){return Object(lt.a)(Ir).map(function(xr){if(!e.isValidElement(xr)||!xr.type)return null;var Cn=xr.key,mr=xr.props,kr=mr.children,Gr=mr.value,ln=Object(C.a)(mr,["children","value"]),Fn=Object(S.a)({key:Cn,value:Gr},ln),_t=en(kr);return _t.length&&(Fn.children=_t),Fn}).filter(function(xr){return xr})}function ti(Ir){if(!Ir)return Ir;var xr=Object(S.a)({},Ir);return"props"in xr||Object.defineProperty(xr,"props",{get:function(){return Object(fe.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),xr}}),xr}function pi(Ir,xr,Cn,mr,kr){var Gr=null,ln=null;function Fn(){function _t(Or){var Lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",rn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Or.map(function(xn,Ln){var Sn="".concat(Lr,"-").concat(Ln),ei=Cn.includes(xn.value),Kn=_t(xn.children||[],Sn,ei),mi=e.createElement(bn,Object.assign({},xn),Kn.map(function(bi){return bi.node}));if(xr===xn.value&&(Gr=mi),ei){var Fi={pos:Sn,node:mi,children:Kn};return rn||ln.push(Fi),Fi}return null}).filter(function(xn){return xn})}ln||(ln=[],_t(mr),ln.sort(function(Or,Lr){var rn=Or.node.props.value,xn=Lr.node.props.value,Ln=Cn.indexOf(rn),Sn=Cn.indexOf(xn);return Ln-Sn}))}Object.defineProperty(Ir,"triggerNode",{get:function(){return Object(fe.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Fn(),Gr}}),Object.defineProperty(Ir,"allCheckedNodes",{get:function(){return Object(fe.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Fn(),kr?ln:ln.map(function(Or){var Lr=Or.node;return Lr})}})}function Pi(Ir){return Array.isArray(Ir)?Ir:Ir!==void 0?[Ir]:[]}function qr(Ir,xr){var Cn=new Map;return xr.forEach(function(mr){var kr=mr.data;Cn.set(kr.value,kr)}),Ir.map(function(mr){return ti(Cn.get(mr))})}function En(Ir,xr){var Cn=qr([Ir],xr)[0];return Cn?Cn.disabled:!1}function Yn(Ir){return Ir.disabled||Ir.disableCheckbox||Ir.checkable===!1}function zt(Ir){for(var xr=Ir.parent,Cn=0,mr=xr;mr;)mr=mr.parent,Cn+=1;return Cn}function Ot(Ir){function xr(mr){return(mr||[]).map(function(kr){var Gr=kr.value,ln=kr.key,Fn=kr.children,_t=Object(S.a)(Object(S.a)({},kr),{},{key:"key"in kr?ln:Gr});return Fn&&(_t.children=xr(Fn)),_t})}var Cn=Yt(xr(Ir),!0);return Cn.map(function(mr){return{key:mr.data.key,data:mr.data,level:zt(mr)}})}function kt(Ir){return function(xr,Cn){var mr=Cn[Ir];return String(mr).toLowerCase().includes(String(xr).toLowerCase())}}function Bt(Ir,xr,Cn){var mr=Cn.optionFilterProp,kr=Cn.filterOption;if(kr===!1)return xr;var Gr;typeof kr=="function"?Gr=kr:Gr=kt(mr);function ln(Fn){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Fn.map(function(Or){var Lr=Or.children,rn=_t||Gr(Ir,ti(Or)),xn=ln(Lr||[],rn);return rn||xn.length?Object(S.a)(Object(S.a)({},Or),{},{children:xn}):null}).filter(function(Or){return Or})}return ln(xr)}function Wt(Ir,xr,Cn,mr){var kr=new Map;return Pi(xr).forEach(function(Gr){Gr&&Object(A.a)(Gr)==="object"&&"value"in Gr&&kr.set(Gr.value,Gr)}),Ir.map(function(Gr){var ln={value:Gr},Fn=Cn(Gr,"select",!0),_t=Fn?mr(Fn.data):Gr;if(kr.has(Gr)){var Or=kr.get(Gr);ln.label="label"in Or?Or.label:_t,"halfChecked"in Or&&(ln.halfChecked=Or.halfChecked)}else ln.label=_t;return ln})}function Lt(Ir,xr){var Cn=new Set(Ir);return Cn.add(xr),Array.from(Cn)}function dr(Ir,xr){var Cn=new Set(Ir);return Cn.delete(xr),Array.from(Cn)}function yr(Ir){var xr=Ir.searchPlaceholder,Cn=Ir.treeCheckStrictly,mr=Ir.treeCheckable,kr=Ir.labelInValue,Gr=Ir.value,ln=Ir.multiple;Object(fe.a)(!xr,"`searchPlaceholder` has been removed."),Cn&&kr===!1&&Object(fe.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(kr||Cn)&&Object(fe.a)(Pi(Gr).every(function(Fn){return Fn&&Object(A.a)(Fn)==="object"&&"value"in Fn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Cn||ln||mr?Object(fe.a)(!Gr||Array.isArray(Gr),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(fe.a)(!Array.isArray(Gr),"`value` should not be array when `TreeSelect` is single mode.")}var br=yr,Mr=10;function Gn(Ir,xr){var Cn=xr.id,mr=xr.pId,kr=xr.rootPId,Gr={},ln=[],Fn=Ir.map(function(_t){var Or=Object(S.a)({},_t),Lr=Or[Cn];return Gr[Lr]=Or,Or.key=Or.key||Lr,Or});return Fn.forEach(function(_t){var Or=_t[mr],Lr=Gr[Or];Lr&&(Lr.children=Lr.children||[],Lr.children.push(_t)),(Or===kr||!Lr&&kr===null)&&ln.push(_t)}),ln}function Mn(Ir,xr){var Cn=0,mr=new Set;function kr(Gr){return(Gr||[]).map(function(ln){var Fn=ln.key,_t=ln.value,Or=ln.children,Lr=Object(C.a)(ln,["key","value","children"]),rn="value"in ln?_t:Fn,xn=Object(S.a)(Object(S.a)({},Lr),{},{key:Fn!=null?Fn:rn,value:rn,title:xr(ln)});return"children"in ln&&(xn.children=kr(Or)),xn})}return kr(Ir)}function di(Ir,xr,Cn){var mr=Cn.getLabelProp,kr=Cn.simpleMode,Gr=e.useRef({});return Ir?(Gr.current.formatTreeData=Gr.current.treeData===Ir?Gr.current.formatTreeData:Mn(kr?Gn(Ir,Object(S.a)({id:"id",pId:"pId",rootPId:null},kr!==!0?kr:{})):Ir,mr),Gr.current.treeData=Ir):Gr.current.formatTreeData=Gr.current.children===xr?Gr.current.formatTreeData:Mn(en(xr),mr),Gr.current.formatTreeData}var vn="SHOW_ALL",Ur="SHOW_PARENT",In="SHOW_CHILD";function Qn(Ir,xr,Cn){var mr=new Set(Ir);return xr===In?Ir.filter(function(kr){var Gr=Cn[kr];return!(Gr&&Gr.children&&Gr.children.every(function(ln){var Fn=ln.node;return Yn(Fn)||mr.has(Fn.key)}))}):xr===Ur?Ir.filter(function(kr){var Gr=Cn[kr],ln=Gr?Gr.parent:null;return!(ln&&!Yn(ln.node)&&mr.has(ln.node.key))}):Ir}function qn(Ir,xr){var Cn=xr.value,mr=xr.getEntityByValue,kr=xr.getEntityByKey,Gr=xr.treeConduction,ln=xr.showCheckedStrategy,Fn=xr.conductKeyEntities,_t=xr.getLabelProp;return e.useMemo(function(){var Or=Ir;if(Gr){var Lr=Qn(Ir.map(function(rn){var xn=mr(rn);return xn?xn.key:rn}),ln,Fn);Or=Lr.map(function(rn){var xn=kr(rn);return xn?xn.data.value:rn})}return Wt(Or,Cn,mr,_t)},[Ir,Cn,Gr,ln,mr])}var oi=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],Ti=oe({prefixCls:"rc-tree-select",components:{optionList:Fr},convertChildrenToData:function(){return null},flattenOptions:Ot,getLabeledValue:ft,filterOptions:Bt,isValueDisabled:En,findValueOption:qr,omitDOMProps:function(xr){var Cn=Object(S.a)({},xr);return oi.forEach(function(mr){delete Cn[mr]}),Cn}});Ti.displayName="Select";var ki=e.forwardRef(function(Ir,xr){var Cn=Ir.multiple,mr=Ir.treeCheckable,kr=Ir.treeCheckStrictly,Gr=Ir.showCheckedStrategy,ln=Gr===void 0?"SHOW_CHILD":Gr,Fn=Ir.labelInValue,_t=Ir.loadData,Or=Ir.treeLoadedKeys,Lr=Ir.treeNodeFilterProp,rn=Lr===void 0?"value":Lr,xn=Ir.treeNodeLabelProp,Ln=Ir.treeDataSimpleMode,Sn=Ir.treeData,ei=Ir.treeExpandedKeys,Kn=Ir.treeDefaultExpandedKeys,mi=Ir.treeDefaultExpandAll,Fi=Ir.children,bi=Ir.treeIcon,Ii=Ir.showTreeIcon,Vi=Ir.switcherIcon,ea=Ir.treeLine,Xi=Ir.treeMotion,zi=Ir.filterTreeNode,Hi=Ir.dropdownPopupAlign,Ji=Ir.onChange,ca=Ir.onTreeExpand,Ca=Ir.onTreeLoad,na=Ir.onDropdownVisibleChange,Pa=Ir.onSelect,La=Ir.onDeselect,va=mr||kr,ga=Cn||va,Oa=mr&&!kr,Aa=kr||Fn,Xa=e.useRef(null);e.useImperativeHandle(xr,function(){return{focus:Xa.current.focus,blur:Xa.current.blur}});var _a=function(fn){return Sn&&fn.label||fn.title},Va=function(fn){return xn?fn[xn]:_a(fn)},Bi=di(Sn,Fi,{getLabelProp:_a,simpleMode:Ln}),io=Object(e.useMemo)(function(){return Ot(Bi)},[Bi]),oo=Yr(io),Qo=Object(b.a)(oo,2),mo=Qo[0],To=Qo[1],ao=$r(mo,To),So=Object(b.a)(ao,2),bo=So[0],to=So[1],Jo=Object(e.useMemo)(function(){return Oa?zr(Bi):{keyEntities:null}},[Bi,mr,kr]),Uo=Jo.keyEntities,wo=Object(O.a)(Ir.defaultValue,{value:Ir.value}),ts=Object(b.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=function(fn){var Xr=[],ii=[];return fn.forEach(function(nn){to(nn)?ii.push(nn):Xr.push(nn)}),{missingRawValues:Xr,existRawValues:ii}},os=Object(e.useMemo)(function(){var Jn=[],fn=[];if(Pi(Ia).forEach(function(Ci){if(Ci&&Object(A.a)(Ci)==="object"&&"value"in Ci)if(Ci.halfChecked&&kr){var gi=to(Ci.value);Jn.push(gi?gi.key:Ci.value)}else fn.push(Ci.value);else fn.push(Ci)}),Oa){var Xr=Io(fn),ii=Xr.missingRawValues,nn=Xr.existRawValues,Wn=nn.map(function(Ci){return to(Ci).key}),li=Mt(Wn,!0,Uo),ci=li.checkedKeys,si=li.halfCheckedKeys;return[[].concat(Object(g.a)(ii),Object(g.a)(ci.map(function(Ci){return bo(Ci).data.value}))),si]}return[fn,Jn]},[Ia,ga,Aa,mr,kr]),xo=Object(b.a)(os,2),rs=xo[0],Ho=xo[1],_o=qn(rs,{treeConduction:Oa,value:Ia,showCheckedStrategy:ln,conductKeyEntities:Uo,getEntityByValue:to,getEntityByKey:bo,getLabelProp:Va}),uo=function(fn,Xr,ii){if(Oo(ga?fn:fn[0]),Ji){var nn=fn;if(Oa&&ln!=="SHOW_ALL"){var Wn=fn.map(function(Ki){var fa=to(Ki);return fa?fa.key:Ki}),li=Qn(Wn,ln,Uo);nn=li.map(function(Ki){var fa=bo(Ki);return fa?fa.data.value:Ki})}var ci=Xr||{triggerValue:void 0,selected:void 0},si=ci.triggerValue,Ci=ci.selected,gi=Aa?Wt(nn,Ia,to,Va):nn;if(kr){var Ai=Ho.map(function(Ki){var fa=bo(Ki);return fa?fa.data.value:Ki}).filter(function(Ki){return!nn.includes(Ki)});gi=[].concat(Object(g.a)(gi),Object(g.a)(Wt(Ai,Ia,to,Va)))}var Ni={preValue:_o,triggerValue:si},ia=!0;(kr||ii==="selection"&&!Ci)&&(ia=!1),pi(Ni,si,fn,Bi,ia),va?Ni.checked=Ci:Ni.selected=Ci,Ji(ga?gi:gi[0],Aa?null:nn.map(function(Ki){var fa=to(Ki);return fa?Va(fa.data):null}),Ni)}},Ha=function(fn,Xr,ii){var nn=fn;if(!ga)uo([fn],{selected:!0,triggerValue:fn},ii);else{var Wn=Lt(rs,fn);if(Oa){var li=Io(Wn),ci=li.missingRawValues,si=li.existRawValues,Ci=si.map(function(Ni){return to(Ni).key}),gi=Mt(Ci,!0,Uo),Ai=gi.checkedKeys;Wn=[].concat(Object(g.a)(ci),Object(g.a)(Ai.map(function(Ni){return bo(Ni).data.value})))}uo(Wn,{selected:!0,triggerValue:fn},ii)}Pa&&Pa(nn,Xr)},mt=function(fn,Xr,ii){var nn=fn,Wn=dr(rs,fn);if(Oa){var li=Io(Wn),ci=li.missingRawValues,si=li.existRawValues,Ci=si.map(function(Ni){return to(Ni).key}),gi=Mt(Ci,{checked:!1,halfCheckedKeys:Ho},Uo),Ai=gi.checkedKeys;Wn=[].concat(Object(g.a)(ci),Object(g.a)(Ai.map(function(Ni){return bo(Ni).data.value})))}uo(Wn,{selected:!1,triggerValue:fn},ii),La&&La(nn,Xr)},Tr=function(){uo([],null,"clear")},tn=e.useCallback(function(Jn){if(na){var fn={};Object.defineProperty(fn,"documentClickClose",{get:function(){return Object(fe.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),na(Jn,fn)}},[na]),Qr={optionLabelProp:null,optionFilterProp:rn,dropdownAlign:Hi,internalProps:{mark:be,onClear:Tr,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:Ha,onRawDeselect:mt}};return"filterTreeNode"in Ir&&(Qr.filterOption=zi),e.createElement(gt.Provider,{value:{checkable:va,loadData:_t,treeLoadedKeys:Or,onTreeLoad:Ca,checkedKeys:rs,halfCheckedKeys:Ho,treeDefaultExpandAll:mi,treeExpandedKeys:ei,treeDefaultExpandedKeys:Kn,onTreeExpand:ca,treeIcon:bi,treeMotion:Xi,showTreeIcon:Ii,switcherIcon:Vi,treeLine:ea,treeNodeFilterProp:rn}},e.createElement(Ti,Object.assign({ref:Xa,mode:ga?"multiple":null},Ir,Qr,{value:_o,labelInValue:!0,options:Bi,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:tn})))}),Ri=function(Ir){Object(c.a)(Cn,Ir);var xr=Object(h.a)(Cn);function Cn(){var mr;return Object(r.a)(this,Cn),mr=xr.apply(this,arguments),mr.selectRef=e.createRef(),mr.focus=function(){mr.selectRef.current.focus()},mr.blur=function(){mr.selectRef.current.blur()},mr}return Object(a.a)(Cn,[{key:"render",value:function(){return e.createElement(ki,Object.assign({ref:this.selectRef},this.props))}}]),Cn}(e.Component);Ri.TreeNode=bn,Ri.SHOW_ALL=vn,Ri.SHOW_PARENT=Ur,Ri.SHOW_CHILD=In;var oa=Ri,ma=oa,aa=n("BGR+"),ba=n("H84U"),yi=n("uaoM"),kn=n("1vzs"),ji=n("2jpz"),ha=n("3Nzz"),ta=function(Ir){i()(Cn,Ir);var xr=o()(Cn);function Cn(mr){var kr;return p()(this,Cn),kr=xr.call(this,mr),kr.selectRef=e.createRef(),kr.renderTreeSelect=function(Gr){var ln=Gr.getPopupContainer,Fn=Gr.getPrefixCls,_t=Gr.renderEmpty,Or=Gr.direction,Lr=Gr.virtual,rn=Gr.dropdownMatchSelectWidth,xn=kr.props,Ln=xn.prefixCls,Sn=xn.size,ei=xn.className,Kn=xn.treeCheckable,mi=xn.multiple,Fi=xn.listHeight,bi=Fi===void 0?256:Fi,Ii=xn.listItemHeight,Vi=Ii===void 0?26:Ii,ea=xn.notFoundContent,Xi=xn.switcherIcon,zi=xn.treeLine,Hi=xn.getPopupContainer,Ji=xn.dropdownClassName,ca=xn.bordered,Ca=xn.treeIcon,na=Ca===void 0?!1:Ca,Pa=Fn("select",Ln),La=Fn("select-tree",Ln),va=Fn("tree-select",Ln),ga=w()(Ji,"".concat(va,"-dropdown"),v()({},"".concat(va,"-dropdown-rtl"),Or==="rtl")),Oa=!!(Kn||mi),Aa=Object(kn.a)(f()(f()({},kr.props),{multiple:Oa,prefixCls:Pa})),Xa=Aa.suffixIcon,_a=Aa.itemIcon,Va=Aa.removeIcon,Bi=Aa.clearIcon,io;ea!==void 0?io=ea:io=_t("Select");var oo=Object(aa.default)(kr.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","size","bordered"]);return e.createElement(ha.b.Consumer,null,function(Qo){var mo,To=Sn||Qo,ao=w()(!Ln&&va,(mo={},v()(mo,"".concat(Pa,"-lg"),To==="large"),v()(mo,"".concat(Pa,"-sm"),To==="small"),v()(mo,"".concat(Pa,"-rtl"),Or==="rtl"),v()(mo,"".concat(Pa,"-borderless"),!ca),mo),ei);return e.createElement(ma,f()({virtual:Lr,dropdownMatchSelectWidth:rn},oo,{ref:kr.selectRef,prefixCls:Pa,className:ao,listHeight:bi,listItemHeight:Vi,treeCheckable:Kn&&e.createElement("span",{className:"".concat(Pa,"-tree-checkbox-inner")}),inputIcon:Xa,menuItemSelectedIcon:_a,removeIcon:Va,clearIcon:Bi,switcherIcon:function(bo){return Object(ji.a)(La,Xi,zi,bo)},showTreeIcon:na,notFoundContent:io,getPopupContainer:Hi||ln,treeMotion:null,dropdownClassName:ga}))})},Object(yi.a)(mr.multiple!==!1||!mr.treeCheckable,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true"),kr}return u()(Cn,[{key:"focus",value:function(){this.selectRef.current&&this.selectRef.current.focus()}},{key:"blur",value:function(){this.selectRef.current&&this.selectRef.current.blur()}},{key:"render",value:function(){return e.createElement(ba.a,null,this.renderTreeSelect)}}]),Cn}(e.Component);ta.TreeNode=bn,ta.SHOW_ALL=vn,ta.SHOW_PARENT=Ur,ta.SHOW_CHILD=In,ta.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var ra=D.a=ta},"5Uyt":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("KmBX"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},"5YOS":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("xb2K"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},"5YgA":function(R,D,n){},"5bA4":function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="LeftOutlined";var d=D.a=f.forwardRef(p)},"5hvy":function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("MlIO"))})(this,function(y){return function(f){var x=y,v=x.lib,m=v.WordArray,p=v.Hasher,d=x.x64,u=d.Word,s=x.algo,i=[],t=[],o=[];(function(){for(var r=1,a=0,c=0;c<24;c++){i[r+5*a]=(c+1)*(c+2)/2%64;var h=a%5,g=(2*r+3*a)%5;r=h,a=g}for(var r=0;r<5;r++)for(var a=0;a<5;a++)t[r+5*a]=a+(2*r+3*a)%5*5;for(var A=1,b=0;b<24;b++){for(var S=0,E=0,C=0;C<7;C++){if(A&1){var _=(1<<C)-1;_<32?E^=1<<_:S^=1<<_-32}A&128?A=A<<1^113:A<<=1}o[b]=u.create(S,E)}})();var e=[];(function(){for(var r=0;r<25;r++)e[r]=u.create()})();var l=s.SHA3=p.extend({cfg:p.cfg.extend({outputLength:512}),_doReset:function(){for(var a=this._state=[],c=0;c<25;c++)a[c]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(a,c){for(var h=this._state,g=this.blockSize/2,A=0;A<g;A++){var b=a[c+2*A],S=a[c+2*A+1];b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360;var E=h[A];E.high^=S,E.low^=b}for(var C=0;C<24;C++){for(var _=0;_<5;_++){for(var T=0,w=0,O=0;O<5;O++){var E=h[_+5*O];T^=E.high,w^=E.low}var I=e[_];I.high=T,I.low=w}for(var _=0;_<5;_++)for(var k=e[(_+4)%5],M=e[(_+1)%5],j=M.high,P=M.low,T=k.high^(j<<1|P>>>31),w=k.low^(P<<1|j>>>31),O=0;O<5;O++){var E=h[_+5*O];E.high^=T,E.low^=w}for(var X=1;X<25;X++){var T,w,E=h[X],F=E.high,U=E.low,K=i[X];K<32?(T=F<<K|U>>>32-K,w=U<<K|F>>>32-K):(T=U<<K-32|F>>>64-K,w=F<<K-32|U>>>64-K);var z=e[t[X]];z.high=T,z.low=w}var V=e[0],Q=h[0];V.high=Q.high,V.low=Q.low;for(var _=0;_<5;_++)for(var O=0;O<5;O++){var X=_+5*O,E=h[X],G=e[X],te=e[(_+1)%5+5*O],q=e[(_+2)%5+5*O];E.high=G.high^~te.high&q.high,E.low=G.low^~te.low&q.low}var E=h[0],se=o[C];E.high^=se.high,E.low^=se.low}},_doFinalize:function(){var a=this._data,c=a.words,h=this._nDataBytes*8,g=a.sigBytes*8,A=this.blockSize*32;c[g>>>5]|=1<<24-g%32,c[(f.ceil((g+1)/A)*A>>>5)-1]|=128,a.sigBytes=c.length*4,this._process();for(var b=this._state,S=this.cfg.outputLength/8,E=S/8,C=[],_=0;_<E;_++){var T=b[_],w=T.high,O=T.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,C.push(O),C.push(w)}return new m.init(C,S)},clone:function(){for(var a=p.clone.call(this),c=a._state=this._state.slice(0),h=0;h<25;h++)c[h]=c[h].clone();return a}});x.SHA3=p._createHelper(l),x.HmacSHA3=p._createHmacHelper(l)}(Math),y.SHA3})},"5nXd":function(R,D,n){var y=n("MFOe"),f=y.slice,x=y.pluck,v=y.each,m=y.bind,p=y.create,d=y.isList,u=y.isFunction,s=y.isObject;R.exports={createStore:o};var i={version:"2.0.12",enabled:!1,get:function(l,r){var a=this.storage.read(this._namespacePrefix+l);return this._deserialize(a,r)},set:function(l,r){return r===void 0?this.remove(l):(this.storage.write(this._namespacePrefix+l,this._serialize(r)),r)},remove:function(l){this.storage.remove(this._namespacePrefix+l)},each:function(l){var r=this;this.storage.each(function(a,c){l.call(r,r._deserialize(a),(c||"").replace(r._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(l){return this._namespacePrefix=="__storejs_"+l+"_"},createStore:function(){return o.apply(this,arguments)},addPlugin:function(l){this._addPlugin(l)},namespace:function(l){return o(this.storage,this.plugins,l)}};function t(){var e=typeof console=="undefined"?null:console;if(!e)return;var l=e.warn?e.warn:e.log;l.apply(e,arguments)}function o(e,l,r){r||(r=""),e&&!d(e)&&(e=[e]),l&&!d(l)&&(l=[l]);var a=r?"__storejs_"+r+"_":"",c=r?new RegExp("^"+a):null,h=/^[a-zA-Z0-9_\-]*$/;if(!h.test(r))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var g={_namespacePrefix:a,_namespaceRegexp:c,_testStorage:function(S){try{var E="__storejs__test__";S.write(E,E);var C=S.read(E)===E;return S.remove(E),C}catch(_){return!1}},_assignPluginFnProp:function(S,E){var C=this[E];this[E]=function(){var T=f(arguments,0),w=this;function O(){return C?(v(arguments,function(k,M){T[M]=k}),C.apply(w,T)):void 0}var I=[O].concat(T);return S.apply(w,I)}},_serialize:function(S){return JSON.stringify(S)},_deserialize:function(S,E){if(!S)return E;var C="";try{C=JSON.parse(S)}catch(_){C=S}return C!==void 0?C:E},_addStorage:function(S){if(this.enabled)return;this._testStorage(S)&&(this.storage=S,this.enabled=!0)},_addPlugin:function(S){var E=this;if(d(S)){v(S,function(T){E._addPlugin(T)});return}var C=x(this.plugins,function(T){return S===T});if(C)return;if(this.plugins.push(S),!u(S))throw new Error("Plugins must be function values that return objects");var _=S.call(this);if(!s(_))throw new Error("Plugins must return an object of function properties");v(_,function(T,w){if(!u(T))throw new Error("Bad plugin property: "+w+" from plugin "+S.name+". Plugins should only return functions.");E._assignPluginFnProp(T,w)})},addStorage:function(S){t("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(S)}},A=p(g,i,{plugins:[]});return A.raw={},v(A,function(b,S){u(b)&&(A.raw[S]=m(A,b))}),v(e,function(b){A._addStorage(b)}),v(l,function(b){A._addPlugin(b)}),A}},"5rEg":function(R,D,n){"use strict";var y=n("mh/l"),f=n("lSNA"),x=n.n(f),v=n("q1tI"),m=n("TSYQ"),p=n.n(m),d=n("H84U"),u=function(K){return v.createElement(d.a,null,function(z){var V,Q=z.getPrefixCls,G=z.direction,te=K.prefixCls,q=K.className,se=q===void 0?"":q,re=Q("input-group",te),xe=p()(re,(V={},x()(V,"".concat(re,"-lg"),K.size==="large"),x()(V,"".concat(re,"-sm"),K.size==="small"),x()(V,"".concat(re,"-compact"),K.compact),x()(V,"".concat(re,"-rtl"),G==="rtl"),V),se);return v.createElement("span",{className:xe,style:K.style,onMouseEnter:K.onMouseEnter,onMouseLeave:K.onMouseLeave,onFocus:K.onFocus,onBlur:K.onBlur},K.children)})},s=u,i=n("pVnL"),t=n.n(i),o=n("c+Xe"),e=n("w6Tc"),l=n.n(e),r=n("gZBC"),a=n.n(r),c=n("2/Rp"),h=n("3Nzz"),g=n("0n0R"),A=function(U,K){var z={};for(var V in U)Object.prototype.hasOwnProperty.call(U,V)&&K.indexOf(V)<0&&(z[V]=U[V]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(U);Q<V.length;Q++)K.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(U,V[Q])&&(z[V[Q]]=U[V[Q]]);return z},b=v.forwardRef(function(U,K){var z=v.useRef(null),V=function(Oe){var Me=U.onChange,Qe=U.onSearch;Oe&&Oe.target&&Oe.type==="click"&&Qe&&Qe(Oe.target.value,Oe),Me&&Me(Oe)},Q=function(Oe){var Me;document.activeElement===((Me=z.current)===null||Me===void 0?void 0:Me.input)&&Oe.preventDefault()},G=function(Oe){var Me,Qe=U.onSearch,Ve=U.loading,ut=U.disabled;if(Ve||ut)return;Qe&&Qe((Me=z.current)===null||Me===void 0?void 0:Me.input.value,Oe)},te=function(Oe){var Me=U.enterButton,Qe=U.size;return Me?v.createElement(h.b.Consumer,{key:"enterButton"},function(Ve){return v.createElement(c.a,{className:"".concat(Oe,"-button"),type:"primary",size:Qe||Ve},v.createElement(a.a,null))}):v.createElement(a.a,{className:"".concat(Oe,"-icon"),key:"loadingIcon"})},q=function(Oe){var Me=U.suffix,Qe=U.enterButton,Ve=U.loading;if(Ve&&!Qe)return[Me,te(Oe)];if(Qe)return Me;var ut=v.createElement(l.a,{className:"".concat(Oe,"-icon"),key:"searchIcon",onClick:G});return Me?[Object(g.c)(Me,null,{key:"suffix"}),ut]:ut},se=function(Oe,Me){var Qe=U.enterButton,Ve=U.disabled,ut=U.addonAfter,Fe=U.loading,ue="".concat(Oe,"-button");if(Fe&&Qe)return[te(Oe),ut];if(!Qe)return ut;var et,he=Qe,J=he.type&&he.type.__ANT_BUTTON===!0;return J||he.type==="button"?et=Object(g.a)(he,t()({onMouseDown:Q,onClick:G,key:"enterButton"},J?{className:ue,size:Me}:{})):et=v.createElement(c.a,{className:ue,type:"primary",size:Me,disabled:Ve,key:"enterButton",onMouseDown:Q,onClick:G},Qe===!0?v.createElement(l.a,null):Qe),ut?[et,Object(g.c)(ut,null,{key:"addonAfter"})]:et},re=function(Oe){var Me=Oe.getPrefixCls,Qe=Oe.direction,Ve=U.prefixCls,ut=U.inputPrefixCls,Fe=U.enterButton,ue=U.className,et=U.size,he=A(U,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete he.onSearch,delete he.loading;var J=Me("input-search",Ve),Y=Me("input",ut),$=function(be){var Ce;if(Fe){var Be;Ce=p()(J,ue,(Be={},x()(Be,"".concat(J,"-rtl"),Qe==="rtl"),x()(Be,"".concat(J,"-enter-button"),!!Fe),x()(Be,"".concat(J,"-").concat(be),!!be),Be))}else Ce=p()(J,ue,x()({},"".concat(J,"-rtl"),Qe==="rtl"));return Ce};return v.createElement(h.b.Consumer,null,function(de){return v.createElement(y.a,t()({ref:Object(o.a)(z,K),onPressEnter:G},he,{size:et||de,prefixCls:Y,addonAfter:se(J,et||de),suffix:q(J),onChange:V,className:$(et||de)}))})};return v.createElement(d.a,null,re)});b.defaultProps={enterButton:!1},b.displayName="Search";var S=b,E=n("whJP"),C=n("J4zp"),_=n.n(C),T=n("BGR+"),w=n("qPY4"),O=n.n(w),I=n("fUL4"),k=n.n(I),M=function(U,K){var z={};for(var V in U)Object.prototype.hasOwnProperty.call(U,V)&&K.indexOf(V)<0&&(z[V]=U[V]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(U);Q<V.length;Q++)K.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(U,V[Q])&&(z[V[Q]]=U[V[Q]]);return z},j={click:"onClick",hover:"onMouseOver"},P=v.forwardRef(function(U,K){var z=Object(v.useState)(!1),V=_()(z,2),Q=V[0],G=V[1],te=function(){var xe=U.disabled;if(xe)return;G(!Q)},q=function(xe){var Oe,Me=U.action,Qe=U.iconRender,Ve=Qe===void 0?function(){return null}:Qe,ut=j[Me]||"",Fe=Ve(Q),ue=(Oe={},x()(Oe,ut,te),x()(Oe,"className","".concat(xe,"-icon")),x()(Oe,"key","passwordIcon"),x()(Oe,"onMouseDown",function(he){he.preventDefault()}),x()(Oe,"onMouseUp",function(he){he.preventDefault()}),Oe);return v.cloneElement(v.isValidElement(Fe)?Fe:v.createElement("span",null,Fe),ue)},se=function(xe){var Oe=xe.getPrefixCls,Me=U.className,Qe=U.prefixCls,Ve=U.inputPrefixCls,ut=U.size,Fe=U.visibilityToggle,ue=M(U,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),et=Oe("input",Ve),he=Oe("input-password",Qe),J=Fe&&q(he),Y=p()(he,Me,x()({},"".concat(he,"-").concat(ut),!!ut)),$=t()(t()({},Object(T.default)(ue,["suffix","iconRender"])),{type:Q?"text":"password",className:Y,prefixCls:et,suffix:J});return ut&&($.size=ut),v.createElement(y.a,t()({ref:K},$))};return v.createElement(d.a,null,se)});P.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(K){return K?v.createElement(O.a,null):v.createElement(k.a,null)}},P.displayName="Password";var X=P;y.a.Group=s,y.a.Search=S,y.a.TextArea=E.a,y.a.Password=X;var F=D.a=y.a},"5s0K":function(R,D,n){var y=n("bYtY");function f(){var x=[],v={},m;return{add:function(p,d,u,s,i){return y.isString(s)&&(i=s,s=0),v[p.id]?!1:(v[p.id]=1,x.push({el:p,target:d,time:u,delay:s,easing:i}),!0)},done:function(p){return m=p,this},start:function(){for(var p=x.length,d=0,u=x.length;d<u;d++){var s=x[d];s.el.animateTo(s.target,s.time,s.delay,s.easing,i)}return this;function i(){p--,p||(x.length=0,v={},m&&m())}}}}D.createWrap=f},"5yev":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"};D.default=y},"6/nd":function(R,D,n){var y=n("ProS");y.registerAction("legendScroll","legendscroll",function(f,x){var v=f.scrollDataIndex;v!=null&&x.eachComponent({mainType:"legend",subType:"scroll",query:f},function(m){m.setScrollDataIndex(v)})})},"62sa":function(R,D,n){var y=n("bYtY"),f=n("4NO4"),x=f.makeInner,v=n("zTMp"),m=n("Ez2D"),p=y.each,d=y.curry,u=x();function s(A,b,S){var E=A.currTrigger,C=[A.x,A.y],_=A,T=A.dispatchAction||y.bind(S.dispatchAction,S),w=b.getComponent("axisPointer").coordSysAxesInfo;if(!w)return;g(C)&&(C=m({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},b).point);var O=g(C),I=_.axesInfo,k=w.axesInfo,M=E==="leave"||g(C),j={},P={},X={list:[],map:{}},F={showPointer:d(o,P),showTooltip:d(e,X)};p(w.coordSysMap,function(K,z){var V=O||K.containPoint(C);p(w.coordSysAxesInfo[z],function(Q,G){var te=Q.axis,q=c(I,Q);if(!M&&V&&(!I||q)){var se=q&&q.value;se==null&&!O&&(se=te.pointToData(C)),se!=null&&i(Q,se,F,!1,j)}})});var U={};return p(k,function(K,z){var V=K.linkGroup;V&&!P[z]&&p(V.axesInfo,function(Q,G){var te=P[G];if(Q!==K&&te){var q=te.value;V.mapper&&(q=K.axis.scale.parse(V.mapper(q,h(Q),h(K)))),U[K.key]=q}})}),p(U,function(K,z){i(k[z],K,F,!0,j)}),l(P,k,j),r(X,C,A,T),a(k,T,S),j}function i(A,b,S,E,C){var _=A.axis;if(_.scale.isBlank()||!_.containData(b))return;if(!A.involveSeries){S.showPointer(A,b);return}var T=t(b,A),w=T.payloadBatch,O=T.snapToValue;w[0]&&C.seriesIndex==null&&y.extend(C,w[0]),!E&&A.snap&&(_.containData(O)&&O!=null&&(b=O)),S.showPointer(A,b,w,C),S.showTooltip(A,T,O)}function t(A,b){var S=b.axis,E=S.dim,C=A,_=[],T=Number.MAX_VALUE,w=-1;return p(b.seriesModels,function(O,I){var k=O.getData().mapDimension(E,!0),M,j;if(O.getAxisTooltipData){var P=O.getAxisTooltipData(k,A,S);j=P.dataIndices,M=P.nestestValue}else{if(j=O.getData().indicesOfNearest(k[0],A,S.type==="category"?.5:null),!j.length)return;M=O.getData().get(k[0],j[0])}if(M==null||!isFinite(M))return;var X=A-M,F=Math.abs(X);F<=T&&((F<T||X>=0&&w<0)&&(T=F,w=X,C=M,_.length=0),p(j,function(U){_.push({seriesIndex:O.seriesIndex,dataIndexInside:U,dataIndex:O.getData().getRawIndex(U)})}))}),{payloadBatch:_,snapToValue:C}}function o(A,b,S,E){A[b.key]={value:S,payloadBatch:E}}function e(A,b,S,E){var C=S.payloadBatch,_=b.axis,T=_.model,w=b.axisPointerModel;if(!b.triggerTooltip||!C.length)return;var O=b.coordSys.model,I=v.makeKey(O),k=A.map[I];k||(k=A.map[I]={coordSysId:O.id,coordSysIndex:O.componentIndex,coordSysType:O.type,coordSysMainType:O.mainType,dataByAxis:[]},A.list.push(k)),k.dataByAxis.push({axisDim:_.dim,axisIndex:T.componentIndex,axisType:T.type,axisId:T.id,value:E,valueLabelOpt:{precision:w.get("label.precision"),formatter:w.get("label.formatter")},seriesDataIndices:C.slice()})}function l(A,b,S){var E=S.axesInfo=[];p(b,function(C,_){var T=C.axisPointerModel.option,w=A[_];w?(!C.useHandle&&(T.status="show"),T.value=w.value,T.seriesDataIndices=(w.payloadBatch||[]).slice()):!C.useHandle&&(T.status="hide"),T.status==="show"&&E.push({axisDim:C.axis.dim,axisIndex:C.axis.model.componentIndex,value:T.value})})}function r(A,b,S,E){if(g(b)||!A.list.length){E({type:"hideTip"});return}var C=((A.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};E({type:"showTip",escapeConnect:!0,x:b[0],y:b[1],tooltipOption:S.tooltipOption,position:S.position,dataIndexInside:C.dataIndexInside,dataIndex:C.dataIndex,seriesIndex:C.seriesIndex,dataByCoordSys:A.list})}function a(A,b,S){var E=S.getZr(),C="axisPointerLastHighlights",_=u(E)[C]||{},T=u(E)[C]={};p(A,function(I,k){var M=I.axisPointerModel.option;M.status==="show"&&p(M.seriesDataIndices,function(j){var P=j.seriesIndex+" | "+j.dataIndex;T[P]=j})});var w=[],O=[];y.each(_,function(I,k){!T[k]&&O.push(I)}),y.each(T,function(I,k){!_[k]&&w.push(I)}),O.length&&S.dispatchAction({type:"downplay",escapeConnect:!0,batch:O}),w.length&&S.dispatchAction({type:"highlight",escapeConnect:!0,batch:w})}function c(A,b){for(var S=0;S<(A||[]).length;S++){var E=A[S];if(b.axis.dim===E.axisDim&&b.axis.model.componentIndex===E.axisIndex)return E}}function h(A){var b=A.axis.model,S={},E=S.axisDim=A.axis.dim;return S.axisIndex=S[E+"AxisIndex"]=b.componentIndex,S.axisName=S[E+"AxisName"]=b.name,S.axisId=S[E+"AxisId"]=b.id,S}function g(A){return!A||A[0]==null||isNaN(A[0])||A[1]==null||isNaN(A[1])}R.exports=s},"6BzB":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.shrinkBuf=y,D.arraySet=f,D.flattenChunks=x,D.Buf32=D.Buf16=D.Buf8=void 0;function y(d,u){return d.length===u?d:d.subarray?d.subarray(0,u):(d.length=u,d)}function f(d,u,s,i,t){if(u.subarray&&d.subarray){d.set(u.subarray(s,s+i),t);return}for(var o=0;o<i;o++)d[t+o]=u[s+o]}function x(d){var u,s,i,t,o,e;for(i=0,u=0,s=d.length;u<s;u++)i+=d[u].length;for(e=new Uint8Array(i),t=0,u=0,s=d.length;u<s;u++)o=d[u],e.set(o,t),t+=o.length;return e}var v=Uint8Array;D.Buf8=v;var m=Uint16Array;D.Buf16=m;var p=Int32Array;D.Buf32=p},"6D9b":function(R,D,n){},"6GrX":function(R,D,n){var y=n("mFDi"),f=n("Xnb7"),x=n("bYtY"),v=x.getContext,m=x.extend,p=x.retrieve2,d=x.retrieve3,u=x.trim,s={},i=0,t=5e3,o=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,e="12px sans-serif",l={};function r(X,F){l[X]=F}function a(X,F){F=F||e;var U=X+":"+F;if(s[U])return s[U];for(var K=(X+"").split(`
|
|
|
`),z=0,V=0,Q=K.length;V<Q;V++)z=Math.max(I(K[V],F).width,z);return i>t&&(i=0,s={}),i++,s[U]=z,z}function c(X,F,U,K,z,V,Q,G){return Q?g(X,F,U,K,z,V,Q,G):h(X,F,U,K,z,V,G)}function h(X,F,U,K,z,V,Q){var G=k(X,F,z,V,Q),te=a(X,F);z&&(te+=z[1]+z[3]);var q=G.outerHeight,se=A(0,te,U),re=b(0,q,K),xe=new y(se,re,te,q);return xe.lineHeight=G.lineHeight,xe}function g(X,F,U,K,z,V,Q,G){var te=M(X,{rich:Q,truncate:G,font:F,textAlign:U,textPadding:z,textLineHeight:V}),q=te.outerWidth,se=te.outerHeight,re=A(0,q,U),xe=b(0,se,K);return new y(re,xe,q,se)}function A(X,F,U){return U==="right"?X-=F:U==="center"&&(X-=F/2),X}function b(X,F,U){return U==="middle"?X-=F/2:U==="bottom"&&(X-=F),X}function S(X,F,U){var K=F.textPosition,z=F.textDistance,V=U.x,Q=U.y;z=z||0;var G=U.height,te=U.width,q=G/2,se="left",re="top";switch(K){case"left":V-=z,Q+=q,se="right",re="middle";break;case"right":V+=z+te,Q+=q,re="middle";break;case"top":V+=te/2,Q-=z,se="center",re="bottom";break;case"bottom":V+=te/2,Q+=G+z,se="center";break;case"inside":V+=te/2,Q+=q,se="center",re="middle";break;case"insideLeft":V+=z,Q+=q,re="middle";break;case"insideRight":V+=te-z,Q+=q,se="right",re="middle";break;case"insideTop":V+=te/2,Q+=z,se="center";break;case"insideBottom":V+=te/2,Q+=G-z,se="center",re="bottom";break;case"insideTopLeft":V+=z,Q+=z;break;case"insideTopRight":V+=te-z,Q+=z,se="right";break;case"insideBottomLeft":V+=z,Q+=G-z,re="bottom";break;case"insideBottomRight":V+=te-z,Q+=G-z,se="right",re="bottom";break}return X=X||{},X.x=V,X.y=Q,X.textAlign=se,X.textVerticalAlign=re,X}function E(X,F,U){var K={textPosition:X,textDistance:U};return S({},K,F)}function C(X,F,U,K,z){if(!F)return"";var V=(X+"").split(`
|
|
|
`);z=_(F,U,K,z);for(var Q=0,G=V.length;Q<G;Q++)V[Q]=T(V[Q],z);return V.join(`
|
|
|
`)}function _(X,F,U,K){K=m({},K),K.font=F;var U=p(U,"...");K.maxIterations=p(K.maxIterations,2);var z=K.minChar=p(K.minChar,0);K.cnCharWidth=a("\u56FD",F);var V=K.ascCharWidth=a("a",F);K.placeholder=p(K.placeholder,"");for(var Q=X=Math.max(0,X-1),G=0;G<z&&Q>=V;G++)Q-=V;var te=a(U,F);return te>Q&&(U="",te=0),Q=X-te,K.ellipsis=U,K.ellipsisWidth=te,K.contentWidth=Q,K.containerWidth=X,K}function T(X,F){var U=F.containerWidth,K=F.font,z=F.contentWidth;if(!U)return"";var V=a(X,K);if(V<=U)return X;for(var Q=0;;Q++){if(V<=z||Q>=F.maxIterations){X+=F.ellipsis;break}var G=Q===0?w(X,z,F.ascCharWidth,F.cnCharWidth):V>0?Math.floor(X.length*z/V):0;X=X.substr(0,G),V=a(X,K)}return X===""&&(X=F.placeholder),X}function w(X,F,U,K){for(var z=0,V=0,Q=X.length;V<Q&&z<F;V++){var G=X.charCodeAt(V);z+=0<=G&&G<=127?U:K}return V}function O(X){return a("\u56FD",X)}function I(X,F){return l.measureText(X,F)}l.measureText=function(X,F){var U=v();return U.font=F||e,U.measureText(X)};function k(X,F,U,K,z){X!=null&&(X+="");var V=p(K,O(F)),Q=X?X.split(`
|
|
|
`):[],G=Q.length*V,te=G,q=!0;if(U&&(te+=U[0]+U[2]),X&&z){q=!1;var se=z.outerHeight,re=z.outerWidth;if(se!=null&&te>se)X="",Q=[];else if(re!=null)for(var xe=_(re-(U?U[1]+U[3]:0),F,z.ellipsis,{minChar:z.minChar,placeholder:z.placeholder}),Oe=0,Me=Q.length;Oe<Me;Oe++)Q[Oe]=T(Q[Oe],xe)}return{lines:Q,height:G,outerHeight:te,lineHeight:V,canCacheByTextString:q}}function M(X,F){var U={lines:[],width:0,height:0};if(X!=null&&(X+=""),!X)return U;for(var K=o.lastIndex=0,z;(z=o.exec(X))!=null;){var V=z.index;V>K&&j(U,X.substring(K,V)),j(U,z[2],z[1]),K=o.lastIndex}K<X.length&&j(U,X.substring(K,X.length));var Q=U.lines,G=0,te=0,q=[],se=F.textPadding,re=F.truncate,xe=re&&re.outerWidth,Oe=re&&re.outerHeight;se&&(xe!=null&&(xe-=se[1]+se[3]),Oe!=null&&(Oe-=se[0]+se[2]));for(var Me=0;Me<Q.length;Me++){for(var Qe=Q[Me],Ve=0,ut=0,Fe=0;Fe<Qe.tokens.length;Fe++){var ue=Qe.tokens[Fe],et=ue.styleName&&F.rich[ue.styleName]||{},he=ue.textPadding=et.textPadding,J=ue.font=et.font||F.font,Y=ue.textHeight=p(et.textHeight,O(J));if(he&&(Y+=he[0]+he[2]),ue.height=Y,ue.lineHeight=d(et.textLineHeight,F.textLineHeight,Y),ue.textAlign=et&&et.textAlign||F.textAlign,ue.textVerticalAlign=et&&et.textVerticalAlign||"middle",Oe!=null&&G+ue.lineHeight>Oe)return{lines:[],width:0,height:0};ue.textWidth=a(ue.text,J);var $=et.textWidth,de=$==null||$==="auto";if(typeof $=="string"&&$.charAt($.length-1)==="%")ue.percentWidth=$,q.push(ue),$=0;else{if(de){$=ue.textWidth;var be=et.textBackgroundColor,Ce=be&&be.image;Ce&&(Ce=f.findExistImage(Ce),f.isImageReady(Ce)&&($=Math.max($,Ce.width*Y/Ce.height)))}var Be=he?he[1]+he[3]:0;$+=Be;var fe=xe!=null?xe-ut:null;fe!=null&&fe<$&&(!de||fe<Be?(ue.text="",ue.textWidth=$=0):(ue.text=C(ue.text,fe-Be,J,re.ellipsis,{minChar:re.minChar}),ue.textWidth=a(ue.text,J),$=ue.textWidth+Be))}ut+=ue.width=$,et&&(Ve=Math.max(Ve,ue.lineHeight))}Qe.width=ut,Qe.lineHeight=Ve,G+=Ve,te=Math.max(te,ut)}U.outerWidth=U.width=p(F.textWidth,te),U.outerHeight=U.height=p(F.textHeight,G),se&&(U.outerWidth+=se[1]+se[3],U.outerHeight+=se[0]+se[2]);for(var Me=0;Me<q.length;Me++){var ue=q[Me],we=ue.percentWidth;ue.width=parseInt(we,10)/100*te}return U}function j(X,F,U){for(var K=F==="",z=F.split(`
|
|
|
`),V=X.lines,Q=0;Q<z.length;Q++){var G=z[Q],te={styleName:U,text:G,isLineHolder:!G&&!K};if(Q)V.push({tokens:[te]});else{var q=(V[V.length-1]||(V[0]={tokens:[]})).tokens,se=q.length;se===1&&q[0].isLineHolder?q[0]=te:(G||!se||K)&&q.push(te)}}}function P(X){var F=(X.fontSize||X.fontFamily)&&[X.fontStyle,X.fontWeight,(X.fontSize||12)+"px",X.fontFamily||"sans-serif"].join(" ");return F&&u(F)||X.textFont||X.font}D.DEFAULT_FONT=e,D.$override=r,D.getWidth=a,D.getBoundingRect=c,D.adjustTextX=A,D.adjustTextY=b,D.calculateTextPosition=S,D.adjustTextPositionOnRect=E,D.truncateText=C,D.getLineHeight=O,D.measureText=I,D.parsePlainText=k,D.parseRichText=M,D.makeFont=P},"6Hfg":function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("FhB9")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="SwapRightOutlined";var i=v.forwardRef(s);D.default=i},"6Ic6":function(R,D,n){var y=n("bYtY"),f=y.each,x=n("4fz+"),v=n("iRjW"),m=n("Yl7c"),p=n("4NO4"),d=n("IwbS"),u=n("9H2F"),s=u.createTask,i=n("zM3Q"),t=p.makeInner(),o=i();function e(){this.group=new x,this.uid=v.getUID("viewChart"),this.renderTask=s({plan:c,reset:h}),this.renderTask.context={view:this}}e.prototype={type:"chart",init:function(b,S){},render:function(b,S,E,C){},highlight:function(b,S,E,C){a(b.getData(),C,"emphasis")},downplay:function(b,S,E,C){a(b.getData(),C,"normal")},remove:function(b,S){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var l=e.prototype;l.updateView=l.updateLayout=l.updateVisual=function(b,S,E,C){this.render(b,S,E,C)};function r(b,S,E){if(b&&(b.trigger(S,E),b.isGroup&&!d.isHighDownDispatcher(b)))for(var C=0,_=b.childCount();C<_;C++)r(b.childAt(C),S,E)}function a(b,S,E){var C=p.queryDataIndex(b,S),_=S&&S.highlightKey!=null?d.getHighlightDigit(S.highlightKey):null;C!=null?f(p.normalizeToArray(C),function(T){r(b.getItemGraphicEl(T),E,_)}):b.eachItemGraphicEl(function(T){r(T,E,_)})}m.enableClassExtend(e,["dispose"]),m.enableClassManagement(e,{registerWhenExtend:!0}),e.markUpdateMethod=function(b,S){t(b).updateMethod=S};function c(b){return o(b.model)}function h(b){var S=b.model,E=b.ecModel,C=b.api,_=b.payload,T=S.pipelineContext.progressiveRender,w=b.view,O=_&&t(_).updateMethod,I=T?"incrementalPrepareRender":O&&w[O]?O:"render";return I!=="render"&&w[I](S,E,C,_),g[I]}var g={incrementalPrepareRender:{progress:function(b,S){S.view.incrementalRender(b,S.model,S.ecModel,S.api,S.payload)}},render:{forceFirstProgress:!0,progress:function(b,S){S.view.render(S.model,S.ecModel,S.api,S.payload)}}},A=e;R.exports=A},"6MrE":function(R,D,n){},"6Qwc":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={8:"Backspace",9:"Tab",10:"NumpadClear",12:"Numpad5",13:"Enter",16:"ShiftLeft",17:"ControlLeft",18:"AltLeft",19:"Pause",20:"CapsLock",21:"Lang1",25:"Lang2",27:"Escape",28:"Convert",29:"NonConvert",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",44:"PrintScreen",45:"Insert",46:"Delete",47:"Help",48:"Digit0",49:"Digit1",50:"Digit2",51:"Digit3",52:"Digit4",53:"Digit5",54:"Digit6",55:"Digit7",56:"Digit8",57:"Digit9",91:"MetaLeft",92:"MetaRight",93:"ContextMenu",95:"Sleep",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",108:"NumpadDecimal",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",124:"F13",125:"F14",126:"F15",127:"F16",128:"F17",129:"F18",130:"F19",131:"F20",132:"F21",133:"F22",134:"F23",135:"F24",144:"NumLock",145:"ScrollLock",166:"BrowserBack",167:"BrowserForward",168:"BrowserRefresh",169:"BrowserStop",170:"BrowserSearch",171:"BrowserFavorites",172:"BrowserHome",173:"AudioVolumeMute",174:"AudioVolumeDown",175:"AudioVolumeUp",176:"MediaTrackNext",177:"MediaTrackPrevious",178:"MediaStop",179:"MediaPlayPause",180:"LaunchMail",181:"MediaSelect",182:"LaunchApp1",183:"LaunchApp2",225:"AltRight"};D.default=y},"6SEX":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("qWUW"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},"6UJt":function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("v56E"),v=n.n(x),m=n("R9oj"),p=n("5NDa")},"6VBw":function(R,D,n){"use strict";var y=n("VTBJ"),f=n("ODXe"),x=n("rePB"),v=n("Ff2n"),m=n("q1tI"),p=n("TSYQ"),d=n.n(p),u=n("Pw59"),s=n("Qi1f"),i=["icon","className","onClick","style","primaryColor","secondaryColor"],t={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function o(b){var S=b.primaryColor,E=b.secondaryColor;t.primaryColor=S,t.secondaryColor=E||Object(s.b)(S),t.calculated=!!E}function e(){return Object(y.a)({},t)}var l=function(S){var E=S.icon,C=S.className,_=S.onClick,T=S.style,w=S.primaryColor,O=S.secondaryColor,I=Object(v.a)(S,i),k=t;if(w&&(k={primaryColor:w,secondaryColor:O||Object(s.b)(w)}),Object(s.f)(),Object(s.g)(Object(s.c)(E),"icon should be icon definiton, but got ".concat(E)),!Object(s.c)(E))return null;var M=E;return M&&typeof M.icon=="function"&&(M=Object(y.a)(Object(y.a)({},M),{},{icon:M.icon(k.primaryColor,k.secondaryColor)})),Object(s.a)(M.icon,"svg-".concat(M.name),Object(y.a)({className:C,onClick:_,style:T,"data-icon":M.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},I))};l.displayName="IconReact",l.getTwoToneColors=e,l.setTwoToneColors=o;var r=l;function a(b){var S=Object(s.d)(b),E=Object(f.a)(S,2),C=E[0],_=E[1];return r.setTwoToneColors({primaryColor:C,secondaryColor:_})}function c(){var b=r.getTwoToneColors();return b.calculated?[b.primaryColor,b.secondaryColor]:b.primaryColor}var h=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];a("#1890ff");var g=m.forwardRef(function(b,S){var E,C=b.className,_=b.icon,T=b.spin,w=b.rotate,O=b.tabIndex,I=b.onClick,k=b.twoToneColor,M=Object(v.a)(b,h),j=m.useContext(u.a),P=j.prefixCls,X=P===void 0?"anticon":P,F=j.rootClassName,U=d()(F,X,(E={},Object(x.a)(E,"".concat(X,"-").concat(_.name),!!_.name),Object(x.a)(E,"".concat(X,"-spin"),!!T||_.name==="loading"),E),C),K=O;K===void 0&&I&&(K=-1);var z=w?{msTransform:"rotate(".concat(w,"deg)"),transform:"rotate(".concat(w,"deg)")}:void 0,V=Object(s.d)(k),Q=Object(f.a)(V,2),G=Q[0],te=Q[1];return m.createElement("span",Object(y.a)(Object(y.a)({role:"img","aria-label":_.name},M),{},{ref:S,tabIndex:K,onClick:I,className:U}),m.createElement(r,{icon:_,primaryColor:G,secondaryColor:te,style:z}))});g.displayName="AntdIcon",g.getTwoToneColor=c,g.setTwoToneColor=a;var A=D.a=g},"6cGi":function(R,D,n){"use strict";n.d(D,"a",function(){return p});var y=n("ODXe"),f=n("mBDr"),x=n("TNol"),v=n("dm2S");function m(d){return d!==void 0}function p(d,u){var s=u||{},i=s.defaultValue,t=s.value,o=s.onChange,e=s.postState,l=Object(v.a)(function(){return m(t)?t:m(i)?typeof i=="function"?i():i:typeof d=="function"?d():d}),r=Object(y.a)(l,2),a=r[0],c=r[1],h=t!==void 0?t:a,g=e?e(h):h,A=Object(f.a)(o),b=Object(v.a)([h]),S=Object(y.a)(b,2),E=S[0],C=S[1];Object(x.b)(function(){var T=E[0];a!==T&&A(a,T)},[E]),Object(x.b)(function(){m(t)||c(t)},[t]);var _=Object(f.a)(function(T,w){c(T,w),C([h],w)});return[g,_]}},"6fms":function(R,D,n){var y=n("SUKs"),f=n("06Qe"),x=n("bYtY"),v=x.each;function m(s){return parseInt(s,10)}function p(s,i){f.initVML(),this.root=s,this.storage=i;var t=document.createElement("div"),o=document.createElement("div");t.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",o.style.cssText="position:absolute;left:0;top:0;",s.appendChild(t),this._vmlRoot=o,this._vmlViewport=t,this.resize();var e=i.delFromStorage,l=i.addToStorage;i.delFromStorage=function(r){e.call(i,r),r&&(r.onRemove&&r.onRemove(o))},i.addToStorage=function(r){r.onAdd&&r.onAdd(o),l.call(i,r)},this._firstPaint=!0}p.prototype={constructor:p,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var i=this.getViewportRoot();if(i)return{offsetLeft:i.offsetLeft||0,offsetTop:i.offsetTop||0}},refresh:function(){var i=this.storage.getDisplayList(!0,!0);this._paintList(i)},_paintList:function(i){for(var t=this._vmlRoot,o=0;o<i.length;o++){var e=i[o];e.invisible||e.ignore?(e.__alreadyNotVisible||e.onRemove(t),e.__alreadyNotVisible=!0):(e.__alreadyNotVisible&&e.onAdd(t),e.__alreadyNotVisible=!1,e.__dirty&&(e.beforeBrush&&e.beforeBrush(),(e.brushVML||e.brush).call(e,t),e.afterBrush&&e.afterBrush())),e.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(i,t){var i=i==null?this._getWidth():i,t=t==null?this._getHeight():t;if(this._width!==i||this._height!==t){this._width=i,this._height=t;var o=this._vmlViewport.style;o.width=i+"px",o.height=t+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var i=this.root,t=i.currentStyle;return(i.clientWidth||m(t.width))-m(t.paddingLeft)-m(t.paddingRight)|0},_getHeight:function(){var i=this.root,t=i.currentStyle;return(i.clientHeight||m(t.height))-m(t.paddingTop)-m(t.paddingBottom)|0}};function d(s){return function(){y('In IE8.0 VML mode painter not support method "'+s+'"')}}v(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(s){p.prototype[s]=d(s)});var u=p;R.exports=u},"6ner":function(R,D,n){"use strict";var y=n("VTBJ"),f=n("1OyB"),x=n("vuIU"),v=n("Ji7U"),m=n("LK+K"),p=n("q1tI"),d=n.n(p),u=n("m+aA"),s=n("Zm9Q"),i=n("Kwbf"),t=n("c+Xe"),o=n("bdgK"),e="rc-observer-key",l=function(r){Object(v.a)(c,r);var a=Object(m.a)(c);function c(){var h;return Object(f.a)(this,c),h=a.apply(this,arguments),h.resizeObserver=null,h.childNode=null,h.currentElement=null,h.state={width:0,height:0,offsetHeight:0,offsetWidth:0},h.onResize=function(g){var A=h.props.onResize,b=g[0].target,S=b.getBoundingClientRect(),E=S.width,C=S.height,_=b.offsetWidth,T=b.offsetHeight,w=Math.floor(E),O=Math.floor(C);if(h.state.width!==w||h.state.height!==O||h.state.offsetWidth!==_||h.state.offsetHeight!==T){var I={width:w,height:O,offsetWidth:_,offsetHeight:T};h.setState(I),A&&Promise.resolve().then(function(){A(Object(y.a)(Object(y.a)({},I),{},{offsetWidth:_,offsetHeight:T}))})}},h.setChildNode=function(g){h.childNode=g},h}return Object(x.a)(c,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var g=this.props.disabled;if(g){this.destroyObserver();return}var A=Object(u.a)(this.childNode||this),b=A!==this.currentElement;b&&(this.destroyObserver(),this.currentElement=A),!this.resizeObserver&&A&&(this.resizeObserver=new o.default(this.onResize),this.resizeObserver.observe(A))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var g=this.props.children,A=Object(s.a)(g);if(A.length>1)Object(i.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(A.length===0)return Object(i.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var b=A[0];if(p.isValidElement(b)&&Object(t.c)(b)){var S=b.ref;A[0]=p.cloneElement(b,{ref:Object(t.a)(S,this.setChildNode)})}return A.length===1?A[0]:A.map(function(E,C){return!p.isValidElement(E)||"key"in E&&E.key!==null?E:p.cloneElement(E,{key:"".concat(e,"-").concat(C)})})}}]),c}(p.Component);l.displayName="ResizeObserver",D.a=l},"6r85":function(R,D,n){var y=n("bYtY");function f(x){if(!x||!y.isArray(x.series))return;y.each(x.series,function(v){y.isObject(v)&&v.type==="k"&&(v.type="candlestick")})}R.exports=f},"6sVZ":function(R,D){var n=Object.prototype;function y(f){var x=f&&f.constructor,v=typeof x=="function"&&x.prototype||n;return f===v}R.exports=y},"6uqw":function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("ItGF"),v=n("YOMW"),m=n("XxSj"),p=n("K4ya"),d=n("4NO4"),u=n("OELB"),s=m.mapVisual,i=m.eachVisual,t=f.isArray,o=f.each,e=u.asc,l=u.linearMap,r=f.noop,a=y.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-Infinity,Infinity],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(h,g,A){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(h,A)},optionUpdated:function(h,g){var A=this.option;x.canvasSupported||(A.realtime=!1),!g&&p.replaceVisualOption(A,h,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(h){var g=this.stateList;h=f.bind(h,this),this.controllerVisuals=p.createVisualMappings(this.option.controller,g,h),this.targetVisuals=p.createVisualMappings(this.option.target,g,h)},getTargetSeriesIndices:function(){var h=this.option.seriesIndex,g=[];return h==null||h==="all"?this.ecModel.eachSeries(function(A,b){g.push(b)}):g=d.normalizeToArray(h),g},eachTargetSeries:function(h,g){f.each(this.getTargetSeriesIndices(),function(A){h.call(g,this.ecModel.getSeriesByIndex(A))},this)},isTargetSeries:function(h){var g=!1;return this.eachTargetSeries(function(A){A===h&&(g=!0)}),g},formatValueText:function(h,g,A){var b=this.option,S=b.precision,E=this.dataBound,C=b.formatter,_,T;if(A=A||["<",">"],f.isArray(h)&&(h=h.slice(),_=!0),T=g?h:_?[w(h[0]),w(h[1])]:w(h),f.isString(C))return C.replace("{value}",_?T[0]:T).replace("{value2}",_?T[1]:T);if(f.isFunction(C))return _?C(h[0],h[1]):C(h);if(_)return h[0]===E[0]?A[0]+" "+T[1]:h[1]===E[1]?A[1]+" "+T[0]:T[0]+" - "+T[1];return T;function w(O){return O===E[0]?"min":O===E[1]?"max":(+O).toFixed(Math.min(S,20))}},resetExtent:function(){var h=this.option,g=e([h.min,h.max]);this._dataExtent=g},getDataDimension:function(h){var g=this.option.dimension,A=h.dimensions;if(g==null&&!A.length)return;if(g!=null)return h.getDimension(g);for(var b=h.dimensions,S=b.length-1;S>=0;S--){var E=b[S],C=h.getDimensionInfo(E);if(!C.isCalculationCoord)return E}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var h=this.ecModel,g=this.option,A={inRange:g.inRange,outOfRange:g.outOfRange},b=g.target||(g.target={}),S=g.controller||(g.controller={});f.merge(b,A),f.merge(S,A);var E=this.isCategory();C.call(this,b),C.call(this,S),_.call(this,b,"inRange","outOfRange"),T.call(this,S);function C(w){t(g.color)&&!w.inRange&&(w.inRange={color:g.color.slice().reverse()}),w.inRange=w.inRange||{color:h.get("gradientColor")},o(this.stateList,function(O){var I=w[O];if(f.isString(I)){var k=v.get(I,"active",E);k?(w[O]={},w[O][I]=k):delete w[O]}},this)}function _(w,O,I){var k=w[O],M=w[I];k&&!M&&(M=w[I]={},o(k,function(j,P){if(!m.isValidType(P))return;var X=v.get(P,"inactive",E);X!=null&&(M[P]=X,P==="color"&&!M.hasOwnProperty("opacity")&&!M.hasOwnProperty("colorAlpha")&&(M.opacity=[0,0]))}))}function T(w){var O=(w.inRange||{}).symbol||(w.outOfRange||{}).symbol,I=(w.inRange||{}).symbolSize||(w.outOfRange||{}).symbolSize,k=this.get("inactiveColor");o(this.stateList,function(M){var j=this.itemSize,P=w[M];P||(P=w[M]={color:E?k:[k]}),P.symbol==null&&(P.symbol=O&&f.clone(O)||(E?"roundRect":["roundRect"])),P.symbolSize==null&&(P.symbolSize=I&&f.clone(I)||(E?j[0]:[j[0],j[0]])),P.symbol=s(P.symbol,function(U){return U==="none"||U==="square"?"roundRect":U});var X=P.symbolSize;if(X!=null){var F=-Infinity;i(X,function(U){U>F&&(F=U)}),P.symbolSize=s(X,function(U){return l(U,[0,F],[0,j[0]],!0)})}},this)}},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:r,getValueState:r,getVisualMeta:r}),c=a;R.exports=c},"6usn":function(R,D,n){var y=n("bYtY");function f(v,m){return y.map(["Radius","Angle"],function(p,d){var u=this["get"+p+"Axis"](),s=m[d],i=v[d]/2,t="dataTo"+p,o=u.type==="category"?u.getBandWidth():Math.abs(u[t](s-i)-u[t](s+i));return p==="Angle"&&(o=o*Math.PI/180),o},this)}function x(v){var m=v.getRadiusAxis(),p=v.getAngleAxis(),d=m.getExtent();return d[0]>d[1]&&d.reverse(),{coordSys:{type:"polar",cx:v.cx,cy:v.cy,r:d[1],r0:d[0]},api:{coord:y.bind(function(u){var s=m.dataToRadius(u[0]),i=p.dataToAngle(u[1]),t=v.coordToPoint([s,i]);return t.push(s,i*Math.PI/180),t}),size:y.bind(f,v)}}}R.exports=x},"6xvX":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("V7ic"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},"711d":function(R,D){function n(y){return function(f){return f==null?void 0:f[y]}}R.exports=n},"72pK":function(R,D){function n(x,v,m,p,d,u){x=x||0;var s=m[1]-m[0];if(d!=null&&(d=f(d,[0,s])),u!=null&&(u=Math.max(u,d!=null?d:0)),p==="all"){var i=Math.abs(v[1]-v[0]);i=f(i,[0,s]),d=u=f(i,[d,u]),p=0}v[0]=f(v[0],m),v[1]=f(v[1],m);var t=y(v,p);v[p]+=x;var o=d||0,e=m.slice();t.sign<0?e[0]+=o:e[1]-=o,v[p]=f(v[p],e);var l=y(v,p);d!=null&&(l.sign!==t.sign||l.span<d)&&(v[1-p]=v[p]+t.sign*d);var l=y(v,p);return u!=null&&l.span>u&&(v[1-p]=v[p]+l.sign*u),v}function y(x,v){var m=x[v]-x[1-v];return{span:Math.abs(m),sign:m>0?-1:m<0?1:v?-1:1}}function f(x,v){return Math.min(v[1]!=null?v[1]:Infinity,Math.max(v[0]!=null?v[0]:-Infinity,x))}R.exports=n},"75ce":function(R,D,n){var y=n("ProS");n("IXuL"),n("8X+K");var f=n("f5Yq"),x=n("h8O9"),v=n("/d5a");n("Ae16"),y.registerVisual(f("line","circle","line")),y.registerLayout(x("line")),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,v("line"))},"75ev":function(R,D,n){var y=n("ProS");n("IWNH"),n("bNin"),n("v5uJ");var f=n("f5Yq"),x=n("yik8");y.registerVisual(f("tree","circle")),y.registerLayout(x)},"77Zs":function(R,D,n){var y=n("Xi7e");function f(){this.__data__=new y,this.size=0}R.exports=f},"7AJT":function(R,D,n){var y=n("bYtY"),f=n("hM6l"),x=function(m,p,d,u,s){f.call(this,m,p,d),this.type=u||"value",this.position=s||"bottom"};x.prototype={constructor:x,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var m=this.position;return m==="top"||m==="bottom"},getGlobalExtent:function(m){var p=this.getExtent();return p[0]=this.toGlobalCoord(p[0]),p[1]=this.toGlobalCoord(p[1]),m&&p[0]>p[1]&&p.reverse(),p},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(m,p){return this.coordToData(this.toLocalCoord(m[this.dim==="x"?0:1]),p)},toLocalCoord:null,toGlobalCoord:null},y.inherits(x,f);var v=x;R.exports=v},"7Cbv":function(R,D,n){"use strict";var y=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),f=new Uint8Array(16);function x(){if(!y)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return y(f)}var v=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function m(e){return typeof e=="string"&&v.test(e)}for(var p=m,d=[],u=0;u<256;++u)d.push((u+256).toString(16).substr(1));function s(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(d[e[l+0]]+d[e[l+1]]+d[e[l+2]]+d[e[l+3]]+"-"+d[e[l+4]]+d[e[l+5]]+"-"+d[e[l+6]]+d[e[l+7]]+"-"+d[e[l+8]]+d[e[l+9]]+"-"+d[e[l+10]]+d[e[l+11]]+d[e[l+12]]+d[e[l+13]]+d[e[l+14]]+d[e[l+15]]).toLowerCase();if(!p(r))throw TypeError("Stringified UUID is invalid");return r}var i=s;function t(e,l,r){e=e||{};var a=e.random||(e.rng||x)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,l){r=r||0;for(var c=0;c<16;++c)l[r+c]=a[c];return l}return i(a)}var o=D.a=t},"7DRL":function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("bYtY"),v=x.createHashMap,m=x.isString,p=x.isArray,d=x.each,u=x.assert,s=n("MEGo"),i=s.parseXML,t=v(),o={registerMap:function(l,r,a){var c;return p(r)?c=r:r.svg?c=[{type:"svg",source:r.svg,specialAreas:r.specialAreas}]:(r.geoJson&&!r.features&&(a=r.specialAreas,r=r.geoJson),c=[{type:"geoJSON",source:r,specialAreas:a}]),d(c,function(h){var g=h.type;g==="geoJson"&&(g=h.type="geoJSON");var A=e[g];A(h)}),t.set(l,c)},retrieveMap:function(l){return t.get(l)}},e={geoJSON:function(l){var r=l.source;l.geoJSON=m(r)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r},svg:function(l){l.svgXML=i(l.source)}};R.exports=o},"7G+c":function(R,D,n){var y=n("bYtY"),f=y.createHashMap,x=y.isTypedArray,v=n("Yl7c"),m=v.enableClassCheck,p=n("k9D9"),d=p.SOURCE_FORMAT_ORIGINAL,u=p.SERIES_LAYOUT_BY_COLUMN,s=p.SOURCE_FORMAT_UNKNOWN,i=p.SOURCE_FORMAT_TYPED_ARRAY,t=p.SOURCE_FORMAT_KEYED_COLUMNS;function o(l){this.fromDataset=l.fromDataset,this.data=l.data||(l.sourceFormat===t?{}:[]),this.sourceFormat=l.sourceFormat||s,this.seriesLayoutBy=l.seriesLayoutBy||u,this.dimensionsDefine=l.dimensionsDefine,this.encodeDefine=l.encodeDefine&&f(l.encodeDefine),this.startIndex=l.startIndex||0,this.dimensionsDetectCount=l.dimensionsDetectCount}o.seriesDataToSource=function(l){return new o({data:l,sourceFormat:x(l)?i:d,fromDataset:!1})},m(o);var e=o;R.exports=e},"7GkX":function(R,D,n){var y=n("b80T"),f=n("A90E"),x=n("MMmD");function v(m){return x(m)?y(m):f(m)}R.exports=v},"7Kak":function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("KPFz"),v=n.n(x)},"7Phj":function(R,D,n){var y=n("bYtY"),f=n("OELB"),x=f.parsePercent,v=y.each;function m(s){var i=p(s);v(i,function(t){var o=t.seriesModels;if(!o.length)return;d(t),v(o,function(e,l){u(e,t.boxOffsetList[l],t.boxWidthList[l])})})}function p(s){var i=[],t=[];return s.eachSeriesByType("boxplot",function(o){var e=o.getBaseAxis(),l=y.indexOf(t,e);l<0&&(l=t.length,t[l]=e,i[l]={axis:e,seriesModels:[]}),i[l].seriesModels.push(o)}),i}function d(s){var i,t=s.axis,o=s.seriesModels,e=o.length,l=s.boxWidthList=[],r=s.boxOffsetList=[],a=[],c;if(t.type==="category")c=t.getBandWidth();else{var h=0;v(o,function(E){h=Math.max(h,E.getData().count())}),i=t.getExtent(),Math.abs(i[1]-i[0])/h}v(o,function(E){var C=E.get("boxWidth");y.isArray(C)||(C=[C,C]),a.push([x(C[0],c)||0,x(C[1],c)||0])});var g=c*.8-2,A=g/e*.3,b=(g-A*(e-1))/e,S=b/2-g/2;v(o,function(E,C){r.push(S),S+=A+b,l.push(Math.min(Math.max(b,a[C][0]),a[C][1]))})}function u(s,i,t){var o=s.coordinateSystem,e=s.getData(),l=t/2,r=s.get("layout")==="horizontal"?0:1,a=1-r,c=["x","y"],h=e.mapDimension(c[r]),g=e.mapDimension(c[a],!0);if(h==null||g.length<5)return;for(var A=0;A<e.count();A++){var b=e.get(h,A),S=O(b,g[2],A),E=O(b,g[0],A),C=O(b,g[1],A),_=O(b,g[3],A),T=O(b,g[4],A),w=[];I(w,C,0),I(w,_,1),w.push(E,C,T,_),k(w,E),k(w,T),k(w,S),e.setItemLayout(A,{initBaseline:S[a],ends:w})}function O(M,j,P){var X=e.get(j,P),F=[];F[r]=M,F[a]=X;var U;return isNaN(M)||isNaN(X)?U=[NaN,NaN]:(U=o.dataToPoint(F),U[r]+=i),U}function I(M,j,P){var X=j.slice(),F=j.slice();X[r]+=l,F[r]-=l,P?M.push(X,F):M.push(F,X)}function k(M,j){var P=j.slice(),X=j.slice();P[r]-=l,X[r]+=l,M.push(P,X)}}R.exports=m},"7SHv":function(R,D,n){var y=n("LPTA"),f=y.devicePixelRatio,x=n("bYtY"),v=n("SUKs"),m=n("mFDi"),p=n("BPZU"),d=n("Xmg4"),u=n("mLcG"),s=n("Dagg"),i=n("ItGF"),t=1e5,o=314159,e=.01,l=.001;function r(_){return parseInt(_,10)}function a(_){return _?_.__builtin__?!0:!(typeof _.resize!="function"||typeof _.refresh!="function"):!1}var c=new m(0,0,0,0),h=new m(0,0,0,0);function g(_,T,w){return c.copy(_.getBoundingRect()),_.transform&&c.applyTransform(_.transform),h.width=T,h.height=w,!c.intersect(h)}function A(_,T){if(_===T)return!1;if(!_||!T||_.length!==T.length)return!0;for(var w=0;w<_.length;w++)if(_[w]!==T[w])return!0;return!1}function b(_,T){for(var w=0;w<_.length;w++){var O=_[w];O.setTransform(T),T.beginPath(),O.buildPath(T,O.shape),T.clip(),O.restoreTransform(T)}}function S(_,T){var w=document.createElement("div");return w.style.cssText=["position:relative","width:"+_+"px","height:"+T+"px","padding:0","margin:0","border-width:0"].join(";")+";",w}var E=function(T,w,O){this.type="canvas";var I=!T.nodeName||T.nodeName.toUpperCase()==="CANVAS";this._opts=O=x.extend({},O||{}),this.dpr=O.devicePixelRatio||f,this._singleCanvas=I,this.root=T;var k=T.style;k&&(k["-webkit-tap-highlight-color"]="transparent",k["-webkit-user-select"]=k["user-select"]=k["-webkit-touch-callout"]="none",T.innerHTML=""),this.storage=w;var M=this._zlevelList=[],j=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,I){var X=T.width,F=T.height;O.width!=null&&(X=O.width),O.height!=null&&(F=O.height),this.dpr=O.devicePixelRatio||1,T.width=X*this.dpr,T.height=F*this.dpr,this._width=X,this._height=F;var U=new d(T,this,this.dpr);U.__builtin__=!0,U.initContext(),j[o]=U,U.zlevel=o,M.push(o),this._domRoot=T}else{this._width=this._getSize(0),this._height=this._getSize(1);var P=this._domRoot=S(this._width,this._height);T.appendChild(P)}this._hoverlayer=null,this._hoverElements=[]};E.prototype={constructor:E,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var T=this.getViewportRoot();if(T)return{offsetLeft:T.offsetLeft||0,offsetTop:T.offsetTop||0}},refresh:function(T){var w=this.storage.getDisplayList(!0),O=this._zlevelList;this._redrawId=Math.random(),this._paintList(w,T,this._redrawId);for(var I=0;I<O.length;I++){var k=O[I],M=this._layers[k];if(!M.__builtin__&&M.refresh){var j=I===0?this._backgroundColor:null;M.refresh(j)}}return this.refreshHover(),this},addHover:function(T,w){if(T.__hoverMir)return;var O=new T.constructor({style:T.style,shape:T.shape,z:T.z,z2:T.z2,silent:T.silent});return O.__from=T,T.__hoverMir=O,w&&O.setStyle(w),this._hoverElements.push(O),O},removeHover:function(T){var w=T.__hoverMir,O=this._hoverElements,I=x.indexOf(O,w);I>=0&&O.splice(I,1),T.__hoverMir=null},clearHover:function(T){for(var w=this._hoverElements,O=0;O<w.length;O++){var I=w[O].__from;I&&(I.__hoverMir=null)}w.length=0},refreshHover:function(){var T=this._hoverElements,w=T.length,O=this._hoverlayer;if(O&&O.clear(),!w)return;p(T,this.storage.displayableSortFunc),O||(O=this._hoverlayer=this.getLayer(t));var I={};O.ctx.save();for(var k=0;k<w;){var M=T[k],j=M.__from;if(!(j&&j.__zr)){T.splice(k,1),j.__hoverMir=null,w--;continue}k++,j.invisible||(M.transform=j.transform,M.invTransform=j.invTransform,M.__clipPaths=j.__clipPaths,this._doPaintEl(M,O,!0,I))}O.ctx.restore()},getHoverLayer:function(){return this.getLayer(t)},_paintList:function(T,w,O){if(this._redrawId!==O)return;w=w||!1,this._updateLayerStatus(T);var I=this._doPaintList(T,w);if(this._needsManuallyCompositing&&this._compositeManually(),!I){var k=this;u(function(){k._paintList(T,w,O)})}},_compositeManually:function(){var T=this.getLayer(o).ctx,w=this._domRoot.width,O=this._domRoot.height;T.clearRect(0,0,w,O),this.eachBuiltinLayer(function(I){I.virtual&&T.drawImage(I.dom,0,0,w,O)})},_doPaintList:function(T,w){for(var O=[],I=0;I<this._zlevelList.length;I++){var k=this._zlevelList[I],M=this._layers[k];M.__builtin__&&M!==this._hoverlayer&&(M.__dirty||w)&&O.push(M)}for(var j=!0,P=0;P<O.length;P++){var M=O[P],X=M.ctx,F={};X.save();var U=w?M.__startIndex:M.__drawIndex,K=!w&&M.incremental&&Date.now,z=K&&Date.now(),V=M.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(M.__startIndex===M.__endIndex)M.clear(!1,V);else if(U===M.__startIndex){var Q=T[U];(!Q.incremental||!Q.notClear||w)&&M.clear(!1,V)}U===-1&&(console.error("For some unknown reason. drawIndex is -1"),U=M.__startIndex);for(var G=U;G<M.__endIndex;G++){var te=T[G];if(this._doPaintEl(te,M,w,F),te.__dirty=te.__dirtyText=!1,K){var q=Date.now()-z;if(q>15)break}}M.__drawIndex=G,M.__drawIndex<M.__endIndex&&(j=!1),F.prevElClipPaths&&X.restore(),X.restore()}return i.wxa&&x.each(this._layers,function(se){se&&se.ctx&&se.ctx.draw&&se.ctx.draw()}),j},_doPaintEl:function(T,w,O,I){var k=w.ctx,M=T.transform;if((w.__dirty||O)&&!T.invisible&&T.style.opacity!==0&&!(M&&!M[0]&&!M[3])&&!(T.culling&&g(T,this._width,this._height))){var j=T.__clipPaths,P=I.prevElClipPaths;(!P||A(j,P))&&(P&&(k.restore(),I.prevElClipPaths=null,I.prevEl=null),j&&(k.save(),b(j,k),I.prevElClipPaths=j)),T.beforeBrush&&T.beforeBrush(k),T.brush(k,I.prevEl||null),I.prevEl=T,T.afterBrush&&T.afterBrush(k)}},getLayer:function(T,w){this._singleCanvas&&!this._needsManuallyCompositing&&(T=o);var O=this._layers[T];return O||(O=new d("zr_"+T,this,this.dpr),O.zlevel=T,O.__builtin__=!0,this._layerConfig[T]?x.merge(O,this._layerConfig[T],!0):this._layerConfig[T-e]&&x.merge(O,this._layerConfig[T-e],!0),w&&(O.virtual=w),this.insertLayer(T,O),O.initContext()),O},insertLayer:function(T,w){var O=this._layers,I=this._zlevelList,k=I.length,M=null,j=-1,P=this._domRoot;if(O[T]){v("ZLevel "+T+" has been used already");return}if(!a(w)){v("Layer of zlevel "+T+" is not valid");return}if(k>0&&T>I[0]){for(j=0;j<k-1&&!(I[j]<T&&I[j+1]>T);j++);M=O[I[j]]}if(I.splice(j+1,0,T),O[T]=w,!w.virtual)if(M){var X=M.dom;X.nextSibling?P.insertBefore(w.dom,X.nextSibling):P.appendChild(w.dom)}else P.firstChild?P.insertBefore(w.dom,P.firstChild):P.appendChild(w.dom)},eachLayer:function(T,w){var O=this._zlevelList,I,k;for(k=0;k<O.length;k++)I=O[k],T.call(w,this._layers[I],I)},eachBuiltinLayer:function(T,w){var O=this._zlevelList,I,k,M;for(M=0;M<O.length;M++)k=O[M],I=this._layers[k],I.__builtin__&&T.call(w,I,k)},eachOtherLayer:function(T,w){var O=this._zlevelList,I,k,M;for(M=0;M<O.length;M++)k=O[M],I=this._layers[k],I.__builtin__||T.call(w,I,k)},getLayers:function(){return this._layers},_updateLayerStatus:function(T){this.eachBuiltinLayer(function(F,U){F.__dirty=F.__used=!1});function w(F){k&&(k.__endIndex!==F&&(k.__dirty=!0),k.__endIndex=F)}if(this._singleCanvas)for(var O=1;O<T.length;O++){var I=T[O];if(I.zlevel!==T[O-1].zlevel||I.incremental){this._needsManuallyCompositing=!0;break}}for(var k=null,M=0,j,O=0;O<T.length;O++){var I=T[O],P=I.zlevel,X;j!==P&&(j=P,M=0),I.incremental?(X=this.getLayer(P+l,this._needsManuallyCompositing),X.incremental=!0,M=1):X=this.getLayer(P+(M>0?e:0),this._needsManuallyCompositing),X.__builtin__||v("ZLevel "+P+" has been used by unkown layer "+X.id),X!==k&&(X.__used=!0,X.__startIndex!==O&&(X.__dirty=!0),X.__startIndex=O,X.incremental?X.__drawIndex=-1:X.__drawIndex=O,w(O),k=X),I.__dirty&&(X.__dirty=!0,X.incremental&&X.__drawIndex<0&&(X.__drawIndex=O))}w(O),this.eachBuiltinLayer(function(F,U){!F.__used&&F.getElementCount()>0&&(F.__dirty=!0,F.__startIndex=F.__endIndex=F.__drawIndex=0),F.__dirty&&F.__drawIndex<0&&(F.__drawIndex=F.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(T){T.clear()},setBackgroundColor:function(T){this._backgroundColor=T},configLayer:function(T,w){if(w){var O=this._layerConfig;O[T]?x.merge(O[T],w,!0):O[T]=w;for(var I=0;I<this._zlevelList.length;I++){var k=this._zlevelList[I];if(k===T||k===T+e){var M=this._layers[k];x.merge(M,O[T],!0)}}}},delLayer:function(T){var w=this._layers,O=this._zlevelList,I=w[T];if(!I)return;I.dom.parentNode.removeChild(I.dom),delete w[T],O.splice(x.indexOf(O,T),1)},resize:function(T,w){if(this._domRoot.style){var O=this._domRoot;O.style.display="none";var I=this._opts;if(T!=null&&(I.width=T),w!=null&&(I.height=w),T=this._getSize(0),w=this._getSize(1),O.style.display="",this._width!==T||w!==this._height){O.style.width=T+"px",O.style.height=w+"px";for(var k in this._layers)this._layers.hasOwnProperty(k)&&this._layers[k].resize(T,w);x.each(this._progressiveLayers,function(M){M.resize(T,w)}),this.refresh(!0)}this._width=T,this._height=w}else{if(T==null||w==null)return;this._width=T,this._height=w,this.getLayer(o).resize(T,w)}return this},clearLayer:function(T){var w=this._layers[T];w&&w.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(T){if(T=T||{},this._singleCanvas&&!this._compositeManually)return this._layers[o].dom;var w=new d("image",this,T.pixelRatio||this.dpr);if(w.initContext(),w.clear(!1,T.backgroundColor||this._backgroundColor),T.pixelRatio<=this.dpr){this.refresh();var O=w.dom.width,I=w.dom.height,k=w.ctx;this.eachLayer(function(F){F.__builtin__?k.drawImage(F.dom,0,0,O,I):F.renderToCanvas&&(w.ctx.save(),F.renderToCanvas(w.ctx),w.ctx.restore())})}else for(var M={},j=this.storage.getDisplayList(!0),P=0;P<j.length;P++){var X=j[P];this._doPaintEl(X,w,!0,M)}return w.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(T){var w=this._opts,O=["width","height"][T],I=["clientWidth","clientHeight"][T],k=["paddingLeft","paddingTop"][T],M=["paddingRight","paddingBottom"][T];if(w[O]!=null&&w[O]!=="auto")return parseFloat(w[O]);var j=this.root,P=document.defaultView.getComputedStyle(j);return(j[I]||r(P[O])||r(j.style[O]))-(r(P[k])||0)-(r(P[M])||0)|0},pathToImage:function(T,w){w=w||this.dpr;var O=document.createElement("canvas"),I=O.getContext("2d"),k=T.getBoundingRect(),M=T.style,j=M.shadowBlur*w,P=M.shadowOffsetX*w,X=M.shadowOffsetY*w,F=M.hasStroke()?M.lineWidth:0,U=Math.max(F/2,-P+j),K=Math.max(F/2,P+j),z=Math.max(F/2,-X+j),V=Math.max(F/2,X+j),Q=k.width+U+K,G=k.height+z+V;O.width=Q*w,O.height=G*w,I.scale(w,w),I.clearRect(0,0,Q,G),I.dpr=w;var te={position:T.position,rotation:T.rotation,scale:T.scale};T.position=[U-k.x,z-k.y],T.rotation=0,T.scale=[1,1],T.updateTransform(),T&&T.brush(I);var q=s,se=new q({style:{x:0,y:0,image:O}});return te.position!=null&&(se.position=T.position=te.position),te.rotation!=null&&(se.rotation=T.rotation=te.rotation),te.scale!=null&&(se.scale=T.scale=te.scale),se}};var C=E;R.exports=C},"7a+S":function(R,D,n){var y=n("bYtY"),f=n("bLfw"),x=n("YXkt"),v=n("4NO4"),m=f.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(d,u,s){this._data,this._names,this.mergeDefaultAndTheme(d,s),this._initData()},mergeOption:function(d){m.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(d){d==null&&(d=this.option.currentIndex);var u=this._data.count();this.option.loop?d=(d%u+u)%u:(d>=u&&(d=u-1),d<0&&(d=0)),this.option.currentIndex=d},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(d){this.option.autoPlay=!!d},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var d=this.option,u=d.data||[],s=d.axisType,i=this._names=[];if(s==="category"){var t=[];y.each(u,function(l,r){var a=v.getDataItemValue(l),c;y.isObject(l)?(c=y.clone(l),c.value=r):c=r,t.push(c),!y.isString(a)&&(a==null||isNaN(a))&&(a=""),i.push(a+"")}),u=t}var o={category:"ordinal",time:"time"}[s]||"number",e=this._data=new x([{name:"value",type:o}],this);e.initData(u,i)},getData:function(){return this._data},getCategories:function(){if(this.get("axisType")==="category")return this._names.slice()}}),p=m;R.exports=p},"7aKB":function(R,D,n){var y=n("bYtY"),f=n("6GrX"),x=n("OELB");function v(S){return isNaN(S)?"-":(S=(S+"").split("."),S[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(S.length>1?"."+S[1]:""))}function m(S,E){return S=(S||"").toLowerCase().replace(/-(.)/g,function(C,_){return _.toUpperCase()}),E&&S&&(S=S.charAt(0).toUpperCase()+S.slice(1)),S}var p=y.normalizeCssArray,d=/([&<>"'])/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"};function s(S){return S==null?"":(S+"").replace(d,function(E,C){return u[C]})}var i=["a","b","c","d","e","f","g"],t=function(S,E){return"{"+S+(E==null?"":E)+"}"};function o(S,E,C){y.isArray(E)||(E=[E]);var _=E.length;if(!_)return"";for(var T=E[0].$vars||[],w=0;w<T.length;w++){var O=i[w];S=S.replace(t(O),t(O,0))}for(var I=0;I<_;I++)for(var k=0;k<T.length;k++){var M=E[I][T[k]];S=S.replace(t(i[k],I),C?s(M):M)}return S}function e(S,E,C){return y.each(E,function(_,T){S=S.replace("{"+T+"}",C?s(_):_)}),S}function l(S,E){S=y.isString(S)?{color:S,extraCssText:E}:S||{};var C=S.color,_=S.type,E=S.extraCssText,T=S.renderMode||"html",w=S.markerId||"X";return C?T==="html"?_==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+s(C)+";"+(E||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+s(C)+";"+(E||"")+'"></span>':{renderMode:T,content:"{marker"+w+"|} ",style:{color:C}}:""}function r(S,E){return S+="","0000".substr(0,E-S.length)+S}function a(S,E,C){(S==="week"||S==="month"||S==="quarter"||S==="half-year"||S==="year")&&(S=`MM-dd
|
|
|
yyyy`);var _=x.parseDate(E),T=C?"UTC":"",w=_["get"+T+"FullYear"](),O=_["get"+T+"Month"]()+1,I=_["get"+T+"Date"](),k=_["get"+T+"Hours"](),M=_["get"+T+"Minutes"](),j=_["get"+T+"Seconds"](),P=_["get"+T+"Milliseconds"]();return S=S.replace("MM",r(O,2)).replace("M",O).replace("yyyy",w).replace("yy",w%100).replace("dd",r(I,2)).replace("d",I).replace("hh",r(k,2)).replace("h",k).replace("mm",r(M,2)).replace("m",M).replace("ss",r(j,2)).replace("s",j).replace("SSS",r(P,3)),S}function c(S){return S&&S.charAt(0).toUpperCase()+S.substr(1)}var h=f.truncateText;function g(S){return f.getBoundingRect(S.text,S.font,S.textAlign,S.textVerticalAlign,S.textPadding,S.textLineHeight,S.rich,S.truncate)}function A(S,E,C,_,T,w,O,I){return f.getBoundingRect(S,E,C,_,T,I,w,O)}function b(S,E){if(E==="_blank"||E==="blank"){var C=window.open();C.opener=null,C.location=S}else window.open(S,E)}D.addCommas=v,D.toCamelCase=m,D.normalizeCssArray=p,D.encodeHTML=s,D.formatTpl=o,D.formatTplSimple=e,D.getTooltipMarker=l,D.formatTime=a,D.capitalFirst=c,D.truncateText=h,D.getTextBoundingRect=g,D.getTextRect=A,D.windowOpen=b},"7bkD":function(R,D,n){var y=n("bYtY");function f(x,v){v=v||{};var m=x.coordinateSystem,p=x.axis,d={},u=p.position,s=p.orient,i=m.getRect(),t=[i.x,i.x+i.width,i.y,i.y+i.height],o={horizontal:{top:t[2],bottom:t[3]},vertical:{left:t[0],right:t[1]}};d.position=[s==="vertical"?o.vertical[u]:t[0],s==="horizontal"?o.horizontal[u]:t[3]];var e={horizontal:0,vertical:1};d.rotation=Math.PI/2*e[s];var l={top:-1,bottom:1,right:1,left:-1};d.labelDirection=d.tickDirection=d.nameDirection=l[u],x.get("axisTick.inside")&&(d.tickDirection=-d.tickDirection),y.retrieve(v.labelInside,x.get("axisLabel.inside"))&&(d.labelDirection=-d.labelDirection);var r=v.rotate;return r==null&&(r=x.get("axisLabel.rotate")),d.labelRotation=u==="top"?-r:r,d.z2=1,d}D.layout=f},"7fqy":function(R,D){function n(y){var f=-1,x=Array(y.size);return y.forEach(function(v,m){x[++f]=[m,v]}),x}R.exports=n},"7hqr":function(R,D,n){var y=n("bYtY"),f=y.each,x=y.isString;function v(d,u,s){s=s||{};var i=s.byIndex,t=s.stackedCoordDimension,o=!!(d&&d.get("stack")),e,l,r,a;if(f(u,function(A,b){x(A)&&(u[b]=A={name:A}),o&&!A.isExtraCoord&&(!i&&!e&&A.ordinalMeta&&(e=A),!l&&A.type!=="ordinal"&&A.type!=="time"&&(!t||t===A.coordDim)&&(l=A))}),l&&!i&&!e&&(i=!0),l){r="__\0ecstackresult",a="__\0ecstackedover",e&&(e.createInvertedIndices=!0);var c=l.coordDim,h=l.type,g=0;f(u,function(A){A.coordDim===c&&g++}),u.push({name:r,coordDim:c,coordDimIndex:g,type:h,isExtraCoord:!0,isCalculationCoord:!0}),g++,u.push({name:a,coordDim:a,coordDimIndex:g,type:h,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:l&&l.name,stackedByDimension:e&&e.name,isStackedByIndex:i,stackedOverDimension:a,stackResultDimension:r}}function m(d,u){return!!u&&u===d.getCalculationInfo("stackedDimension")}function p(d,u){return m(d,u)?d.getCalculationInfo("stackResultDimension"):u}D.enableDataStack=v,D.isDimensionStacked=m,D.getStackedDimension=p},"7mYs":function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("IwbS"),v=n("7aKB"),m=n("OELB"),p={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},d={EN:["S","M","T","W","T","F","S"],CN:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},u=y.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(s,i,t){var o=this.group;o.removeAll();var e=s.coordinateSystem,l=e.getRangeInfo(),r=e.getOrient();this._renderDayRect(s,l,o),this._renderLines(s,l,r,o),this._renderYearText(s,l,r,o),this._renderMonthText(s,r,o),this._renderWeekText(s,l,r,o)},_renderDayRect:function(s,i,t){for(var o=s.coordinateSystem,e=s.getModel("itemStyle").getItemStyle(),l=o.getCellWidth(),r=o.getCellHeight(),a=i.start.time;a<=i.end.time;a=o.getNextNDay(a,1).time){var c=o.dataToRect([a],!1).tl,h=new x.Rect({shape:{x:c[0],y:c[1],width:l,height:r},cursor:"default",style:e});t.add(h)}},_renderLines:function(s,i,t,o){var e=this,l=s.coordinateSystem,r=s.getModel("splitLine.lineStyle").getLineStyle(),a=s.get("splitLine.show"),c=r.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=i.start,g=0;h.time<=i.end.time;g++){b(h.formatedDate),g===0&&(h=l.getDateInfo(i.start.y+"-"+i.start.m));var A=h.date;A.setMonth(A.getMonth()+1),h=l.getDateInfo(A)}b(l.getNextNDay(i.end.time,1).formatedDate);function b(S){e._firstDayOfMonth.push(l.getDateInfo(S)),e._firstDayPoints.push(l.dataToRect([S],!1).tl);var E=e._getLinePointsOfOneWeek(s,S,t);e._tlpoints.push(E[0]),e._blpoints.push(E[E.length-1]),a&&e._drawSplitline(E,r,o)}a&&this._drawSplitline(e._getEdgesPoints(e._tlpoints,c,t),r,o),a&&this._drawSplitline(e._getEdgesPoints(e._blpoints,c,t),r,o)},_getEdgesPoints:function(s,i,t){var o=[s[0].slice(),s[s.length-1].slice()],e=t==="horizontal"?0:1;return o[0][e]=o[0][e]-i/2,o[1][e]=o[1][e]+i/2,o},_drawSplitline:function(s,i,t){var o=new x.Polyline({z2:20,shape:{points:s},style:i});t.add(o)},_getLinePointsOfOneWeek:function(s,i,t){var o=s.coordinateSystem;i=o.getDateInfo(i);for(var e=[],l=0;l<7;l++){var r=o.getNextNDay(i.time,l),a=o.dataToRect([r.time],!1);e[2*r.day]=a.tl,e[2*r.day+1]=a[t==="horizontal"?"bl":"tr"]}return e},_formatterLabel:function(s,i){return typeof s=="string"&&s?v.formatTplSimple(s,i):typeof s=="function"?s(i):i.nameMap},_yearTextPositionControl:function(s,i,t,o,e){i=i.slice();var l=["center","bottom"];o==="bottom"?(i[1]+=e,l=["center","top"]):o==="left"?i[0]-=e:o==="right"?(i[0]+=e,l=["center","top"]):i[1]-=e;var r=0;return(o==="left"||o==="right")&&(r=Math.PI/2),{rotation:r,position:i,style:{textAlign:l[0],textVerticalAlign:l[1]}}},_renderYearText:function(s,i,t,o){var e=s.getModel("yearLabel");if(!e.get("show"))return;var l=e.get("margin"),r=e.get("position");r||(r=t!=="horizontal"?"top":"left");var a=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(a[0][0]+a[1][0])/2,h=(a[0][1]+a[1][1])/2,g=t==="horizontal"?0:1,A={top:[c,a[g][1]],bottom:[c,a[1-g][1]],left:[a[1-g][0],h],right:[a[g][0],h]},b=i.start.y;+i.end.y>+i.start.y&&(b=b+"-"+i.end.y);var S=e.get("formatter"),E={start:i.start.y,end:i.end.y,nameMap:b},C=this._formatterLabel(S,E),_=new x.Text({z2:30});x.setTextStyle(_.style,e,{text:C}),_.attr(this._yearTextPositionControl(_,A[r],t,r,l)),o.add(_)},_monthTextPositionControl:function(s,i,t,o,e){var l="left",r="top",a=s[0],c=s[1];return t==="horizontal"?(c=c+e,i&&(l="center"),o==="start"&&(r="bottom")):(a=a+e,i&&(r="middle"),o==="start"&&(l="right")),{x:a,y:c,textAlign:l,textVerticalAlign:r}},_renderMonthText:function(s,i,t){var o=s.getModel("monthLabel");if(!o.get("show"))return;var e=o.get("nameMap"),l=o.get("margin"),r=o.get("position"),a=o.get("align"),c=[this._tlpoints,this._blpoints];f.isString(e)&&(e=p[e.toUpperCase()]||[]);var h=r==="start"?0:1,g=i==="horizontal"?0:1;l=r==="start"?-l:l;for(var A=a==="center",b=0;b<c[h].length-1;b++){var S=c[h][b].slice(),E=this._firstDayOfMonth[b];if(A){var C=this._firstDayPoints[b];S[g]=(C[g]+c[0][b+1][g])/2}var _=o.get("formatter"),T=e[+E.m-1],w={yyyy:E.y,yy:(E.y+"").slice(2),MM:E.m,M:+E.m,nameMap:T},O=this._formatterLabel(_,w),I=new x.Text({z2:30});f.extend(x.setTextStyle(I.style,o,{text:O}),this._monthTextPositionControl(S,A,i,r,l)),t.add(I)}},_weekTextPositionControl:function(s,i,t,o,e){var l="center",r="middle",a=s[0],c=s[1],h=t==="start";return i==="horizontal"?(a=a+o+(h?1:-1)*e[0]/2,l=h?"right":"left"):(c=c+o+(h?1:-1)*e[1]/2,r=h?"bottom":"top"),{x:a,y:c,textAlign:l,textVerticalAlign:r}},_renderWeekText:function(s,i,t,o){var e=s.getModel("dayLabel");if(!e.get("show"))return;var l=s.coordinateSystem,r=e.get("position"),a=e.get("nameMap"),c=e.get("margin"),h=l.getFirstDayOfWeek();f.isString(a)&&(a=d[a.toUpperCase()]||[]);var g=l.getNextNDay(i.end.time,7-i.lweek).time,A=[l.getCellWidth(),l.getCellHeight()];c=m.parsePercent(c,A[t==="horizontal"?0:1]),r==="start"&&(g=l.getNextNDay(i.start.time,-(7+i.fweek)).time,c=-c);for(var b=0;b<7;b++){var S=l.getNextNDay(g,b),E=l.dataToRect([S.time],!1).center,C=b;C=Math.abs((b+h)%7);var _=new x.Text({z2:30});f.extend(x.setTextStyle(_.style,e,{text:a[C]}),this._weekTextPositionControl(E,t,r,c,A)),o.add(_)}}});R.exports=u},"7oTu":function(R,D,n){var y=n("IMiH"),f=n("QBsz"),x=f.applyTransform,v=y.CMD,m=[[],[],[]],p=Math.sqrt,d=Math.atan2;function u(s,i){var t=s.data,o,e,l,r,a,c,h=v.M,g=v.C,A=v.L,b=v.R,S=v.A,E=v.Q;for(l=0,r=0;l<t.length;){o=t[l++],r=l,e=0;switch(o){case h:e=1;break;case A:e=1;break;case g:e=3;break;case E:e=2;break;case S:var C=i[4],_=i[5],T=p(i[0]*i[0]+i[1]*i[1]),w=p(i[2]*i[2]+i[3]*i[3]),O=d(-i[1]/w,i[0]/T);t[l]*=T,t[l++]+=C,t[l]*=w,t[l++]+=_,t[l++]*=T,t[l++]*=w,t[l++]+=O,t[l++]+=O,l+=2,r=l;break;case b:c[0]=t[l++],c[1]=t[l++],x(c,c,i),t[r++]=c[0],t[r++]=c[1],c[0]+=t[l++],c[1]+=t[l++],x(c,c,i),t[r++]=c[0],t[r++]=c[1]}for(a=0;a<e;a++){var c=m[a];c[0]=t[l++],c[1]=t[l++],x(c,c,i),t[r++]=c[0],t[r++]=c[1]}}}R.exports=u},"7pVf":function(R,D,n){var y=n("ProS"),f=n("ZqQs");n("oE7X"),n("OUJF"),n("3X6L"),n("NH9N"),y.registerPreprocessor(f)},"7ph2":function(R,D){function n(x){return x instanceof Array||(x=[x,x]),x}var y="lineStyle.opacity".split("."),f={seriesType:"lines",reset:function(x,v,m){var p=n(x.get("symbol")),d=n(x.get("symbolSize")),u=x.getData();u.setVisual("fromSymbol",p&&p[0]),u.setVisual("toSymbol",p&&p[1]),u.setVisual("fromSymbolSize",d&&d[0]),u.setVisual("toSymbolSize",d&&d[1]),u.setVisual("opacity",x.get(y));function s(i,t){var o=i.getItemModel(t),e=n(o.getShallow("symbol",!0)),l=n(o.getShallow("symbolSize",!0)),r=o.get(y);e[0]&&i.setItemVisual(t,"fromSymbol",e[0]),e[1]&&i.setItemVisual(t,"toSymbol",e[1]),l[0]&&i.setItemVisual(t,"fromSymbolSize",l[0]),l[1]&&i.setItemVisual(t,"toSymbolSize",l[1]),i.setItemVisual(t,"opacity",r)}return{dataEach:u.hasItemOption?s:null}}};R.exports=f},"7uqq":function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("ProS"),v=n("bYtY"),m=n("AUH6"),p=n("+TT/"),d=n("OELB"),u=n("W4dC"),s=n("7DRL");function i(l,r){var a=l.get("boundingCoords");if(a!=null){var c=a[0],h=a[1];isNaN(c[0])||isNaN(c[1])||isNaN(h[0])||isNaN(h[1])||this.setBoundingRect(c[0],c[1],h[0]-c[0],h[1]-c[1])}var g=this.getBoundingRect(),A,b=l.get("layoutCenter"),S=l.get("layoutSize"),E=r.getWidth(),C=r.getHeight(),_=g.width/g.height*this.aspectScale,T=!1;b&&S&&(b=[d.parsePercent(b[0],E),d.parsePercent(b[1],C)],S=d.parsePercent(S,Math.min(E,C)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(S)&&(T=!0));var w;if(T){var w={};_>1?(w.width=S,w.height=S/_):(w.height=S,w.width=S*_),w.y=b[1]-w.height/2,w.x=b[0]-w.width/2}else A=l.getBoxLayoutParams(),A.aspect=_,w=p.getLayoutRect(A,{width:E,height:C});this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(l.get("center")),this.setZoom(l.get("zoom"))}function t(l,r){v.each(r.get("geoCoord"),function(a,c){l.addGeoCoord(c,a)})}var o={dimensions:m.prototype.dimensions,create:function(l,r){var a=[];l.eachComponent("geo",function(h,g){var A=h.get("map"),b=h.get("aspectScale"),S=!0,E=s.retrieveMap(A);E&&E[0]&&E[0].type==="svg"?(b==null&&(b=1),S=!1):b==null&&(b=.75);var C=new m(A+g,A,h.get("nameMap"),S);C.aspectScale=b,C.zoomLimit=h.get("scaleLimit"),a.push(C),t(C,h),h.coordinateSystem=C,C.model=h,C.resize=i,C.resize(h,r)}),l.eachSeries(function(h){var g=h.get("coordinateSystem");if(g==="geo"){var A=h.get("geoIndex")||0;h.coordinateSystem=a[A]}});var c={};return l.eachSeriesByType("map",function(h){if(!h.getHostGeoModel()){var g=h.getMapType();c[g]=c[g]||[],c[g].push(h)}}),v.each(c,function(h,g){var A=v.map(h,function(S){return S.get("nameMap")}),b=new m(g,g,v.mergeAll(A));b.zoomLimit=v.retrieve.apply(null,v.map(h,function(S){return S.get("scaleLimit")})),a.push(b),b.resize=i,b.aspectScale=h[0].get("aspectScale"),b.resize(h[0],r),v.each(h,function(S){S.coordinateSystem=b,t(b,S)})}),a},getFilledRegions:function(l,r,a){for(var c=(l||[]).slice(),h=v.createHashMap(),g=0;g<c.length;g++)h.set(c[g].name,c[g]);var A=u.load(r,a);return v.each(A.regions,function(b){var S=b.name;!h.get(S)&&c.push({name:S})}),c}};x.registerCoordinateSystem("geo",o);var e=o;R.exports=e},"7yuC":function(R,D,n){var y=n("QBsz"),f=y.scaleAndAdd;function x(v,m,p){for(var d=p.rect,u=d.width,s=d.height,i=[d.x+u/2,d.y+s/2],t=p.gravity==null?.1:p.gravity,o=0;o<v.length;o++){var e=v[o];e.p||(e.p=y.create(u*(Math.random()-.5)+i[0],s*(Math.random()-.5)+i[1])),e.pp=y.clone(e.p),e.edges=null}var l=p.friction==null?.6:p.friction,r=l;return{warmUp:function(){r=l*.8},setFixed:function(a){v[a].fixed=!0},setUnfixed:function(a){v[a].fixed=!1},step:function(a){for(var c=[],h=v.length,g=0;g<m.length;g++){var A=m[g];if(A.ignoreForceLayout)continue;var b=A.n1,S=A.n2;y.sub(c,S.p,b.p);var E=y.len(c)-A.d,C=S.w/(b.w+S.w);isNaN(C)&&(C=0),y.normalize(c,c),!b.fixed&&f(b.p,b.p,c,C*E*r),!S.fixed&&f(S.p,S.p,c,-(1-C)*E*r)}for(var g=0;g<h;g++){var _=v[g];_.fixed||(y.sub(c,i,_.p),f(_.p,_.p,c,t*r))}for(var g=0;g<h;g++)for(var b=v[g],T=g+1;T<h;T++){var S=v[T];y.sub(c,S.p,b.p);var E=y.len(c);E===0&&(y.set(c,Math.random()-.5,Math.random()-.5),E=1);var w=(b.rep+S.rep)/E/E;!b.fixed&&f(b.pp,b.pp,c,w),!S.fixed&&f(S.pp,S.pp,c,-w)}for(var O=[],g=0;g<h;g++){var _=v[g];_.fixed||(y.sub(O,_.p,_.pp),f(_.p,_.p,O,r),y.copy(_.pp,_.p))}r=r*.992,a&&a(v,m,r<.01)}}}D.forceLayout=x},"8+yF":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={256:960,257:992,258:451,259:483,260:417,261:433,262:454,263:486,264:710,265:742,266:709,267:741,268:456,269:488,270:463,271:495,272:464,273:496,274:938,275:954,278:972,279:1004,280:458,281:490,282:460,283:492,284:728,285:760,286:683,287:699,288:725,289:757,290:939,291:955,292:678,293:694,294:673,295:689,296:933,297:949,298:975,299:1007,302:967,303:999,304:681,305:697,308:684,309:700,310:979,311:1011,312:930,313:453,314:485,315:934,316:950,317:421,318:437,321:419,322:435,323:465,324:497,325:977,326:1009,327:466,328:498,330:957,331:959,332:978,333:1010,336:469,337:501,338:5052,339:5053,340:448,341:480,342:931,343:947,344:472,345:504,346:422,347:438,348:734,349:766,350:426,351:442,352:425,353:441,354:478,355:510,356:427,357:443,358:940,359:956,360:989,361:1021,362:990,363:1022,364:733,365:765,366:473,367:505,368:475,369:507,370:985,371:1017,376:5054,377:428,378:444,379:431,380:447,381:430,382:446,402:2294,466:16777681,711:439,728:418,729:511,731:434,733:445,901:1966,902:1953,904:1954,905:1955,906:1956,908:1959,910:1960,911:1963,912:1974,913:1985,914:1986,915:1987,916:1988,917:1989,918:1990,919:1991,920:1992,921:1993,922:1994,923:1995,924:1996,925:1997,926:1998,927:1999,928:2e3,929:2001,931:2002,932:2004,933:2005,934:2006,935:2007,936:2008,937:2009,938:1957,939:1961,940:1969,941:1970,942:1971,943:1972,944:1978,945:2017,946:2018,947:2019,948:2020,949:2021,950:2022,951:2023,952:2024,953:2025,954:2026,955:2027,956:2028,957:2029,958:2030,959:2031,960:2032,961:2033,962:2035,963:2034,964:2036,965:2037,966:2038,967:2039,968:2040,969:2041,970:1973,971:1977,972:1975,973:1976,974:1979,1025:1715,1026:1713,1027:1714,1028:1716,1029:1717,1030:1718,1031:1719,1032:1720,1033:1721,1034:1722,1035:1723,1036:1724,1038:1726,1039:1727,1040:1761,1041:1762,1042:1783,1043:1767,1044:1764,1045:1765,1046:1782,1047:1786,1048:1769,1049:1770,1050:1771,1051:1772,1052:1773,1053:1774,1054:1775,1055:1776,1056:1778,1057:1779,1058:1780,1059:1781,1060:1766,1061:1768,1062:1763,1063:1790,1064:1787,1065:1789,1066:1791,1067:1785,1068:1784,1069:1788,1070:1760,1071:1777,1072:1729,1073:1730,1074:1751,1075:1735,1076:1732,1077:1733,1078:1750,1079:1754,1080:1737,1081:1738,1082:1739,1083:1740,1084:1741,1085:1742,1086:1743,1087:1744,1088:1746,1089:1747,1090:1748,1091:1749,1092:1734,1093:1736,1094:1731,1095:1758,1096:1755,1097:1757,1098:1759,1099:1753,1100:1752,1101:1756,1102:1728,1103:1745,1105:1699,1106:1697,1107:1698,1108:1700,1109:1701,1110:1702,1111:1703,1112:1704,1113:1705,1114:1706,1115:1707,1116:1708,1118:1710,1119:1711,1168:1725,1169:1709,1488:3296,1489:3297,1490:3298,1491:3299,1492:3300,1493:3301,1494:3302,1495:3303,1496:3304,1497:3305,1498:3306,1499:3307,1500:3308,1501:3309,1502:3310,1503:3311,1504:3312,1505:3313,1506:3314,1507:3315,1508:3316,1509:3317,1510:3318,1511:3319,1512:3320,1513:3321,1514:3322,1548:1452,1563:1467,1567:1471,1569:1473,1570:1474,1571:1475,1572:1476,1573:1477,1574:1478,1575:1479,1576:1480,1577:1481,1578:1482,1579:1483,1580:1484,1581:1485,1582:1486,1583:1487,1584:1488,1585:1489,1586:1490,1587:1491,1588:1492,1589:1493,1590:1494,1591:1495,1592:1496,1593:1497,1594:1498,1600:1504,1601:1505,1602:1506,1603:1507,1604:1508,1605:1509,1606:1510,1607:1511,1608:1512,1609:1513,1610:1514,1611:1515,1612:1516,1613:1517,1614:1518,1615:1519,1616:1520,1617:1521,1618:1522,3585:3489,3586:3490,3587:3491,3588:3492,3589:3493,3590:3494,3591:3495,3592:3496,3593:3497,3594:3498,3595:3499,3596:3500,3597:3501,3598:3502,3599:3503,3600:3504,3601:3505,3602:3506,3603:3507,3604:3508,3605:3509,3606:3510,3607:3511,3608:3512,3609:3513,3610:3514,3611:3515,3612:3516,3613:3517,3614:3518,3615:3519,3616:3520,3617:3521,3618:3522,3619:3523,3620:3524,3621:3525,3622:3526,3623:3527,3624:3528,3625:3529,3626:3530,3627:3531,3628:3532,3629:3533,3630:3534,3631:3535,3632:3536,3633:3537,3634:3538,3635:3539,3636:3540,3637:3541,3638:3542,3639:3543,3640:3544,3641:3545,3642:3546,3647:3551,3648:3552,3649:3553,3650:3554,3651:3555,3652:3556,3653:3557,3654:3558,3655:3559,3656:3560,3657:3561,3658:3562,3659:3563,3660:3564,3661:3565,3664:3568,3665:3569,3666:3570,3667:3571,3668:3572,3669:3573,3670:3574,3671:3575,3672:3576,3673:3577,8194:2722,8195:2721,8196:2723,8197:2724,8199:2725,8200:2726,8201:2727,8202:2728,8210:2747,8211:2730,8212:2729,8213:1967,8215:3295,8216:2768,8217:2769,8218:2813,8220:2770,8221:2771,8222:2814,8224:2801,8225:2802,8226:2790,8229:2735,8230:2734,8240:2773,8242:2774,8243:2775,8248:2812,8254:1150,8361:3839,8364:8364,8453:2744,8470:1712,8471:2811,8478:2772,8482:2761,8531:2736,8532:2737,8533:2738,8534:2739,8535:2740,8536:2741,8537:2742,8538:2743,8539:2755,8540:2756,8541:2757,8542:2758,8592:2299,8593:2300,8594:2301,8595:2302,8658:2254,8660:2253,8706:2287,8711:2245,8728:3018,8730:2262,8733:2241,8734:2242,8743:2270,8744:2271,8745:2268,8746:2269,8747:2239,8756:2240,8764:2248,8771:2249,8773:16785992,8800:2237,8801:2255,8804:2236,8805:2238,8834:2266,8835:2267,8866:3068,8867:3036,8868:3010,8869:3022,8968:3027,8970:3012,8981:2810,8992:2212,8993:2213,9109:3020,9115:2219,9117:2220,9118:2221,9120:2222,9121:2215,9123:2216,9124:2217,9126:2218,9128:2223,9132:2224,9143:2209,9146:2543,9147:2544,9148:2546,9149:2547,9225:2530,9226:2533,9227:2537,9228:2531,9229:2532,9251:2732,9252:2536,9472:2211,9474:2214,9484:2210,9488:2539,9492:2541,9496:2538,9500:2548,9508:2549,9516:2551,9524:2550,9532:2542,9618:2529,9642:2791,9643:2785,9644:2779,9645:2786,9646:2783,9647:2767,9650:2792,9651:2787,9654:2781,9655:2765,9660:2793,9661:2788,9664:2780,9665:2764,9670:2528,9675:2766,9679:2782,9702:2784,9734:2789,9742:2809,9747:2762,9756:2794,9758:2795,9792:2808,9794:2807,9827:2796,9829:2798,9830:2797,9837:2806,9839:2805,10003:2803,10007:2804,10013:2777,10016:2800,10216:2748,10217:2750,12289:1188,12290:1185,12300:1186,12301:1187,12443:1246,12444:1247,12449:1191,12450:1201,12451:1192,12452:1202,12453:1193,12454:1203,12455:1194,12456:1204,12457:1195,12458:1205,12459:1206,12461:1207,12463:1208,12465:1209,12467:1210,12469:1211,12471:1212,12473:1213,12475:1214,12477:1215,12479:1216,12481:1217,12483:1199,12484:1218,12486:1219,12488:1220,12490:1221,12491:1222,12492:1223,12493:1224,12494:1225,12495:1226,12498:1227,12501:1228,12504:1229,12507:1230,12510:1231,12511:1232,12512:1233,12513:1234,12514:1235,12515:1196,12516:1236,12517:1197,12518:1237,12519:1198,12520:1238,12521:1239,12522:1240,12523:1241,12524:1242,12525:1243,12527:1244,12530:1190,12531:1245,12539:1189,12540:1200},f={lookup:function(v){if(v>=32&&v<=255)return v;var m=y[v];return m!==void 0?m:16777216|v}};D.default=f},"8CQX":function(R,D,n){"use strict";function y(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(a){return typeof a}:y=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},y(l)}Object.defineProperty(D,"__esModule",{value:!0}),D.getKeycode=t,D.getKey=o,D.getKeysym=e;var f=i(n("mHUz")),x=i(n("8+yF")),v=i(n("6Qwc")),m=i(n("gIYZ")),p=i(n("mTgk")),d=s(n("GdRQ"));function u(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return u=function(){return l},l}function s(l){if(l&&l.__esModule)return l;if(l===null||y(l)!=="object"&&typeof l!="function")return{default:l};var r=u();if(r&&r.has(l))return r.get(l);var a={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in l)if(Object.prototype.hasOwnProperty.call(l,h)){var g=c?Object.getOwnPropertyDescriptor(l,h):null;g&&(g.get||g.set)?Object.defineProperty(a,h,g):a[h]=l[h]}return a.default=l,r&&r.set(l,a),a}function i(l){return l&&l.__esModule?l:{default:l}}function t(l){if(l.code){switch(l.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return l.code}if(l.type!=="keypress"&&l.keyCode in v.default){var r=v.default[l.keyCode];if(d.isMac()&&r==="ContextMenu"&&(r="MetaRight"),l.location===2)switch(r){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(l.location===3)switch(r){case"Delete":return"NumpadDecimal";case"Insert":return"Numpad0";case"End":return"Numpad1";case"ArrowDown":return"Numpad2";case"PageDown":return"Numpad3";case"ArrowLeft":return"Numpad4";case"ArrowRight":return"Numpad6";case"Home":return"Numpad7";case"ArrowUp":return"Numpad8";case"PageUp":return"Numpad9";case"Enter":return"NumpadEnter"}return r}return"Unidentified"}function o(l){if(l.key!==void 0){switch(l.key){case"Spacebar":return" ";case"Esc":return"Escape";case"Scroll":return"ScrollLock";case"Win":return"Meta";case"Apps":return"ContextMenu";case"Up":return"ArrowUp";case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Down":return"ArrowDown";case"Del":return"Delete";case"Divide":return"/";case"Multiply":return"*";case"Subtract":return"-";case"Add":return"+";case"Decimal":return l.char}switch(l.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(l.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if(l.key==="\0"&&l.code==="NumpadDecimal")return"Delete";if(!d.isIE()&&!d.isEdge())return l.key;if(l.key.length!==1&&l.key!=="Unidentified")return l.key}var r=t(l);return r in m.default?m.default[r]:l.charCode?String.fromCharCode(l.charCode):"Unidentified"}function e(l){var r=o(l);if(r==="Unidentified")return null;if(r in p.default){var a=l.location;if(r==="Meta"&&a===0&&(a=2),r==="Clear"&&a===3){var c=t(l);c==="NumLock"&&(a=0)}if((a===void 0||a>3)&&(a=0),r==="Meta"){var h=t(l);if(h==="AltLeft")return f.default.XK_Meta_L;if(h==="AltRight")return f.default.XK_Meta_R}if(r==="Clear"){var g=t(l);if(g==="NumLock")return f.default.XK_Num_Lock}return p.default[r][a]}if(r.length!==1)return null;var A=r.charCodeAt();return A?x.default.lookup(A):null}},"8EBN":function(R,D,n){(function(y){y(n("VrN/"))})(function(y){"use strict";y.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var f=0;f<y.modeInfo.length;f++){var x=y.modeInfo[f];x.mimes&&(x.mime=x.mimes[0])}y.findModeByMIME=function(v){v=v.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var p=y.modeInfo[m];if(p.mime==v)return p;if(p.mimes){for(var d=0;d<p.mimes.length;d++)if(p.mimes[d]==v)return p}}if(/\+xml$/.test(v))return y.findModeByMIME("application/xml");if(/\+json$/.test(v))return y.findModeByMIME("application/json")},y.findModeByExtension=function(v){v=v.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var p=y.modeInfo[m];if(p.ext){for(var d=0;d<p.ext.length;d++)if(p.ext[d]==v)return p}}},y.findModeByFileName=function(v){for(var m=0;m<y.modeInfo.length;m++){var p=y.modeInfo[m];if(p.file&&p.file.test(v))return p}var d=v.lastIndexOf("."),u=d>-1&&v.substring(d+1,v.length);if(u)return y.findModeByExtension(u)},y.findModeByName=function(v){v=v.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var p=y.modeInfo[m];if(p.name.toLowerCase()==v)return p;if(p.alias){for(var d=0;d<p.alias.length;d++)if(p.alias[d].toLowerCase()==v)return p}}}})},"8IMR":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};D.default=y},"8ISB":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("6Hfg"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},"8K/p":function(R,D,n){"use strict";function y(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(e){return typeof e}:y=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(t)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var f=p(n("Lo0S")),x=v(n("ItS6"));function v(t){return t&&t.__esModule?t:{default:t}}function m(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return m=function(){return t},t}function p(t){if(t&&t.__esModule)return t;if(t===null||y(t)!=="object"&&typeof t!="function")return{default:t};var o=m();if(o&&o.has(t))return o.get(t);var e={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=l?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(e,r,a):e[r]=t[r]}return e.default=t,o&&o.set(t,e),e}function d(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function u(t,o){for(var e=0;e<o.length;e++){var l=o[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}function s(t,o,e){return o&&u(t.prototype,o),e&&u(t,e),t}var i=function(){function t(){d(this,t),this._ctl=null,this._filter=null,this._numColors=0,this._palette=new Uint8Array(1024),this._len=0,this._zlibs=[];for(var o=0;o<4;o++)this._zlibs[o]=new x.default}return s(t,[{key:"decodeRect",value:function(e,l,r,a,c,h,g){if(this._ctl===null){if(c.rQwait("TIGHT compression-control",1))return!1;this._ctl=c.rQshift8();for(var A=0;A<4;A++)this._ctl>>A&1&&(this._zlibs[A].reset(),f.Info("Reset zlib stream "+A));this._ctl=this._ctl>>4}var b;if(this._ctl===8)b=this._fillRect(e,l,r,a,c,h,g);else if(this._ctl===9)b=this._jpegRect(e,l,r,a,c,h,g);else if(this._ctl===10)b=this._pngRect(e,l,r,a,c,h,g);else if((this._ctl&128)==0)b=this._basicRect(this._ctl,e,l,r,a,c,h,g);else throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");return b&&(this._ctl=null),b}},{key:"_fillRect",value:function(e,l,r,a,c,h,g){if(c.rQwait("TIGHT",3))return!1;var A=c.rQi,b=c.rQ;return h.fillRect(e,l,r,a,[b[A+2],b[A+1],b[A]],!1),c.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(e,l,r,a,c,h,g){var A=this._readData(c);return A===null?!1:(h.imageRect(e,l,r,a,"image/jpeg",A),!0)}},{key:"_pngRect",value:function(e,l,r,a,c,h,g){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(e,l,r,a,c,h,g,A){if(this._filter===null)if(e&4){if(h.rQwait("TIGHT",1))return!1;this._filter=h.rQshift8()}else this._filter=0;var b=e&3,S;switch(this._filter){case 0:S=this._copyFilter(b,l,r,a,c,h,g,A);break;case 1:S=this._paletteFilter(b,l,r,a,c,h,g,A);break;case 2:S=this._gradientFilter(b,l,r,a,c,h,g,A);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return S&&(this._filter=null),S}},{key:"_copyFilter",value:function(e,l,r,a,c,h,g,A){var b=a*c*3,S;if(b<12){if(h.rQwait("TIGHT",b))return!1;S=h.rQshiftBytes(b)}else{if(S=this._readData(h),S===null)return!1;this._zlibs[e].setInput(S),S=this._zlibs[e].inflate(b),this._zlibs[e].setInput(null)}return g.blitRgbImage(l,r,a,c,S,0,!1),!0}},{key:"_paletteFilter",value:function(e,l,r,a,c,h,g,A){if(this._numColors===0){if(h.rQwait("TIGHT palette",1))return!1;var b=h.rQpeek8()+1,S=b*3;if(h.rQwait("TIGHT palette",1+S))return!1;this._numColors=b,h.rQskipBytes(1),h.rQshiftTo(this._palette,S)}var E=this._numColors<=2?1:8,C=Math.floor((a*E+7)/8),_=C*c,T;if(_<12){if(h.rQwait("TIGHT",_))return!1;T=h.rQshiftBytes(_)}else{if(T=this._readData(h),T===null)return!1;this._zlibs[e].setInput(T),T=this._zlibs[e].inflate(_),this._zlibs[e].setInput(null)}return this._numColors==2?this._monoRect(l,r,a,c,T,this._palette,g):this._paletteRect(l,r,a,c,T,this._palette,g),this._numColors=0,!0}},{key:"_monoRect",value:function(e,l,r,a,c,h,g){for(var A=this._getScratchBuffer(r*a*4),b=Math.floor((r+7)/8),S=Math.floor(r/8),E=0;E<a;E++){var C=void 0,_=void 0,T=void 0;for(T=0;T<S;T++)for(var w=7;w>=0;w--)C=(E*r+T*8+7-w)*4,_=(c[E*b+T]>>w&1)*3,A[C]=h[_],A[C+1]=h[_+1],A[C+2]=h[_+2],A[C+3]=255;for(var O=7;O>=8-r%8;O--)C=(E*r+T*8+7-O)*4,_=(c[E*b+T]>>O&1)*3,A[C]=h[_],A[C+1]=h[_+1],A[C+2]=h[_+2],A[C+3]=255}g.blitRgbxImage(e,l,r,a,A,0,!1)}},{key:"_paletteRect",value:function(e,l,r,a,c,h,g){for(var A=this._getScratchBuffer(r*a*4),b=r*a*4,S=0,E=0;S<b;S+=4,E++){var C=c[E]*3;A[S]=h[C],A[S+1]=h[C+1],A[S+2]=h[C+2],A[S+3]=255}g.blitRgbxImage(e,l,r,a,A,0,!1)}},{key:"_gradientFilter",value:function(e,l,r,a,c,h,g,A){throw new Error("Gradient filter not implemented")}},{key:"_readData",value:function(e){if(this._len===0){if(e.rQwait("TIGHT",3))return null;var l;l=e.rQshift8(),this._len=l&127,l&128&&(l=e.rQshift8(),this._len|=(l&127)<<7,l&128&&(l=e.rQshift8(),this._len|=l<<14))}if(e.rQwait("TIGHT",this._len))return null;var r=e.rQshiftBytes(this._len);return this._len=0,r}},{key:"_getScratchBuffer",value:function(e){return(!this._scratchBuffer||this._scratchBuffer.length<e)&&(this._scratchBuffer=new Uint8Array(e)),this._scratchBuffer}}]),t}();D.default=i},"8SMY":function(R,D,n){var y=n("n4Lv"),f=y.prepareDataCoordInfo,x=y.getStackedOnPoint;function v(p,d){var u=[];return d.diff(p).add(function(s){u.push({cmd:"+",idx:s})}).update(function(s,i){u.push({cmd:"=",idx:i,idx1:s})}).remove(function(s){u.push({cmd:"-",idx:s})}).execute(),u}function m(p,d,u,s,i,t,o,e){for(var l=v(p,d),r=[],a=[],c=[],h=[],g=[],A=[],b=[],S=f(i,d,o),E=f(t,p,e),C=0;C<l.length;C++){var _=l[C],T=!0;switch(_.cmd){case"=":var w=p.getItemLayout(_.idx),O=d.getItemLayout(_.idx1);(isNaN(w[0])||isNaN(w[1]))&&(w=O.slice()),r.push(w),a.push(O),c.push(u[_.idx]),h.push(s[_.idx1]),b.push(d.getRawIndex(_.idx1));break;case"+":var I=_.idx;r.push(i.dataToPoint([d.get(S.dataDimsForPoint[0],I),d.get(S.dataDimsForPoint[1],I)])),a.push(d.getItemLayout(I).slice()),c.push(x(S,i,d,I)),h.push(s[I]),b.push(d.getRawIndex(I));break;case"-":var I=_.idx,k=p.getRawIndex(I);k!==I?(r.push(p.getItemLayout(I)),a.push(t.dataToPoint([p.get(E.dataDimsForPoint[0],I),p.get(E.dataDimsForPoint[1],I)])),c.push(u[I]),h.push(x(E,t,p,I)),b.push(k)):T=!1}T&&(g.push(_),A.push(A.length))}A.sort(function(U,K){return b[U]-b[K]});for(var M=[],j=[],P=[],X=[],F=[],C=0;C<A.length;C++){var I=A[C];M[C]=r[I],j[C]=a[I],P[C]=c[I],X[C]=h[I],F[C]=g[I]}return{current:M,next:j,stackedOnCurrent:P,stackedOnNext:X,status:F}}R.exports=m},"8Skl":function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="DownOutlined";var d=D.a=f.forwardRef(p)},"8Th4":function(R,D,n){var y=n("3LNs"),f=n("/y7N"),x=n("7bkD"),v=n("Znkb"),m=["x","y"],p=["width","height"],d=y.extend({makeElOption:function(o,e,l,r,a){var c=l.axis,h=c.coordinateSystem,g=i(h,1-s(c)),A=h.dataToPoint(e)[0],b=r.get("type");if(b&&b!=="none"){var S=f.buildElStyle(r),E=u[b](c,A,g);E.style=S,o.graphicKey=E.type,o.pointer=E}var C=x.layout(l);f.buildCartesianSingleLabelElOption(e,o,C,l,r,a)},getHandleTransform:function(o,e,l){var r=x.layout(e,{labelInside:!1});return r.labelMargin=l.get("handle.margin"),{position:f.getTransformedPosition(e.axis,o,r),rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(o,e,l,r){var a=l.axis,c=a.coordinateSystem,h=s(a),g=i(c,h),A=o.position;A[h]+=e[h],A[h]=Math.min(g[1],A[h]),A[h]=Math.max(g[0],A[h]);var b=i(c,1-h),S=(b[1]+b[0])/2,E=[S,S];return E[h]=A[h],{position:A,rotation:o.rotation,cursorPoint:E,tooltipOption:{verticalAlign:"middle"}}}}),u={line:function(o,e,l){var r=f.makeLineShape([e,l[0]],[e,l[1]],s(o));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(o,e,l){var r=o.getBandWidth(),a=l[1]-l[0];return{type:"Rect",shape:f.makeRectShape([e-r/2,l[0]],[r,a],s(o))}}};function s(o){return o.isHorizontal()?0:1}function i(o,e){var l=o.getRect();return[l[m[e]],l[m[e]]+l[p[e]]]}v.registerAxisPointerClass("SingleAxisPointer",d);var t=d;R.exports=t},"8Uz6":function(R,D,n){var y=n("hNWo"),f=n("+TT/"),x=f.mergeLayoutParam,v=f.getLayoutParams,m=y.extend({type:"legend.scroll",setScrollDataIndex:function(u){this.option.scrollDataIndex=u},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(u,s,i,t){var o=v(u);m.superCall(this,"init",u,s,i,t),p(this,u,o)},mergeOption:function(u,s){m.superCall(this,"mergeOption",u,s),p(this,this.option,u)}});function p(u,s,i){var t=u.getOrient(),o=[1,1];o[t.index]=0,x(s,i,{type:"box",ignoreSize:o})}var d=m;R.exports=d},"8X+K":function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("bYtY"),v=n("4mN7"),m=v.fromPoints,p=n("9wZj"),d=n("FBjb"),u=n("8SMY"),s=n("IwbS"),i=n("4NO4"),t=n("1NG9"),o=t.Polyline,e=t.Polygon,l=n("6Ic6"),r=n("n4Lv"),a=r.prepareDataCoordInfo,c=r.getStackedOnPoint,h=n("sK/D"),g=h.createGridClipPath,A=h.createPolarClipPath;function b(M,j){if(M.length!==j.length)return;for(var P=0;P<M.length;P++){var X=M[P],F=j[P];if(X[0]!==F[0]||X[1]!==F[1])return}return!0}function S(M,j){var P=[],X=[],F=[],U=[];return m(M,P,X),m(j,F,U),Math.max(Math.abs(P[0]-F[0]),Math.abs(P[1]-F[1]),Math.abs(X[0]-U[0]),Math.abs(X[1]-U[1]))}function E(M){return typeof M=="number"?M:M?.5:0}function C(M,j,P){if(!P.valueDim)return[];for(var X=[],F=0,U=j.count();F<U;F++)X.push(c(P,M,j,F));return X}function _(M,j,P){for(var X=j.getBaseAxis(),F=X.dim==="x"||X.dim==="radius"?0:1,U=[],K=0;K<M.length-1;K++){var z=M[K+1],V=M[K];U.push(V);var Q=[];switch(P){case"end":Q[F]=z[F],Q[1-F]=V[1-F],U.push(Q);break;case"middle":var G=(V[F]+z[F])/2,te=[];Q[F]=te[F]=G,Q[1-F]=V[1-F],te[1-F]=z[1-F],U.push(Q),U.push(te);break;default:Q[F]=V[F],Q[1-F]=z[1-F],U.push(Q)}}return M[K]&&U.push(M[K]),U}function T(M,j){var P=M.getVisual("visualMeta");if(!P||!P.length||!M.count())return;if(j.type!=="cartesian2d")return;for(var X,F,U=P.length-1;U>=0;U--){var K=P[U].dimension,z=M.dimensions[K],V=M.getDimensionInfo(z);if(X=V&&V.coordDim,X==="x"||X==="y"){F=P[U];break}}if(!F)return;var Q=j.getAxis(X),G=x.map(F.stops,function(Qe){return{coord:Q.toGlobalCoord(Q.dataToCoord(Qe.value)),color:Qe.color}}),te=G.length,q=F.outerColors.slice();te&&G[0].coord>G[te-1].coord&&(G.reverse(),q.reverse());var se=10,re=G[0].coord-se,xe=G[te-1].coord+se,Oe=xe-re;if(Oe<.001)return"transparent";x.each(G,function(Qe){Qe.offset=(Qe.coord-re)/Oe}),G.push({offset:te?G[te-1].offset:.5,color:q[1]||"transparent"}),G.unshift({offset:te?G[0].offset:.5,color:q[0]||"transparent"});var Me=new s.LinearGradient(0,0,0,0,G,!0);return Me[X]=re,Me[X+"2"]=xe,Me}function w(M,j,P){var X=M.get("showAllSymbol"),F=X==="auto";if(X&&!F)return;var U=P.getAxesByScale("ordinal")[0];if(!U)return;if(F&&O(U,j))return;var K=j.mapDimension(U.dim),z={};return x.each(U.getViewLabels(),function(V){z[V.tickValue]=1}),function(V){return!z.hasOwnProperty(j.get(K,V))}}function O(M,j){var P=M.getExtent(),X=Math.abs(P[1]-P[0])/M.scale.count();isNaN(X)&&(X=0);for(var F=j.count(),U=Math.max(1,Math.round(F/5)),K=0;K<F;K+=U)if(d.getSymbolSize(j,K)[M.isHorizontal()?1:0]*1.5>X)return!1;return!0}function I(M,j,P){if(M.type==="cartesian2d"){var X=M.getBaseAxis().isHorizontal(),F=g(M,j,P);if(!P.get("clip",!0)){var U=F.shape,K=Math.max(U.width,U.height);X?(U.y-=K,U.height+=K*2):(U.x-=K,U.width+=K*2)}return F}else return A(M,j,P)}var k=l.extend({type:"line",init:function(){var M=new s.Group,j=new p;this.group.add(j.group),this._symbolDraw=j,this._lineGroup=M},render:function(M,j,P){var X=M.coordinateSystem,F=this.group,U=M.getData(),K=M.getModel("lineStyle"),z=M.getModel("areaStyle"),V=U.mapArray(U.getItemLayout),Q=X.type==="polar",G=this._coordSys,te=this._symbolDraw,q=this._polyline,se=this._polygon,re=this._lineGroup,xe=M.get("animation"),Oe=!z.isEmpty(),Me=z.get("origin"),Qe=a(X,U,Me),Ve=C(X,U,Qe),ut=M.get("showSymbol"),Fe=ut&&!Q&&w(M,U,X),ue=this._data;ue&&ue.eachItemGraphicEl(function(be,Ce){be.__temp&&(F.remove(be),ue.setItemGraphicEl(Ce,null))}),ut||te.remove(),F.add(re);var et=!Q&&M.get("step"),he;X&&X.getArea&&M.get("clip",!0)&&(he=X.getArea(),he.width!=null?(he.x-=.1,he.y-=.1,he.width+=.2,he.height+=.2):he.r0&&(he.r0-=.5,he.r1+=.5)),this._clipShapeForSymbol=he,q&&G.type===X.type&&et===this._step?(Oe&&!se?se=this._newPolygon(V,Ve,X,xe):se&&!Oe&&(re.remove(se),se=this._polygon=null),re.setClipPath(I(X,!1,M)),ut&&te.updateData(U,{isIgnore:Fe,clipShape:he}),U.eachItemGraphicEl(function(be){be.stopAnimation(!0)}),(!b(this._stackedOnPoints,Ve)||!b(this._points,V))&&(xe?this._updateAnimation(U,Ve,X,P,et,Me):(et&&(V=_(V,X,et),Ve=_(Ve,X,et)),q.setShape({points:V}),se&&se.setShape({points:V,stackedOnPoints:Ve})))):(ut&&te.updateData(U,{isIgnore:Fe,clipShape:he}),et&&(V=_(V,X,et),Ve=_(Ve,X,et)),q=this._newPolyline(V,X,xe),Oe&&(se=this._newPolygon(V,Ve,X,xe)),re.setClipPath(I(X,!0,M)));var J=T(U,X)||U.getVisual("color");q.useStyle(x.defaults(K.getLineStyle(),{fill:"none",stroke:J,lineJoin:"bevel"}));var Y=M.get("smooth");if(Y=E(M.get("smooth")),q.setShape({smooth:Y,smoothMonotone:M.get("smoothMonotone"),connectNulls:M.get("connectNulls")}),se){var $=U.getCalculationInfo("stackedOnSeries"),de=0;se.useStyle(x.defaults(z.getAreaStyle(),{fill:J,opacity:.7,lineJoin:"bevel"})),$&&(de=E($.get("smooth"))),se.setShape({smooth:Y,stackedOnSmooth:de,smoothMonotone:M.get("smoothMonotone"),connectNulls:M.get("connectNulls")})}this._data=U,this._coordSys=X,this._stackedOnPoints=Ve,this._points=V,this._step=et,this._valueOrigin=Me},dispose:function(){},highlight:function(M,j,P,X){var F=M.getData(),U=i.queryDataIndex(F,X);if(!(U instanceof Array)&&U!=null&&U>=0){var K=F.getItemGraphicEl(U);if(!K){var z=F.getItemLayout(U);if(!z)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(z[0],z[1]))return;K=new d(F,U),K.position=z,K.setZ(M.get("zlevel"),M.get("z")),K.ignore=isNaN(z[0])||isNaN(z[1]),K.__temp=!0,F.setItemGraphicEl(U,K),K.stopSymbolAnimation(!0),this.group.add(K)}K.highlight()}else l.prototype.highlight.call(this,M,j,P,X)},downplay:function(M,j,P,X){var F=M.getData(),U=i.queryDataIndex(F,X);if(U!=null&&U>=0){var K=F.getItemGraphicEl(U);K&&(K.__temp?(F.setItemGraphicEl(U,null),this.group.remove(K)):K.downplay())}else l.prototype.downplay.call(this,M,j,P,X)},_newPolyline:function(M){var j=this._polyline;return j&&this._lineGroup.remove(j),j=new o({shape:{points:M},silent:!0,z2:10}),this._lineGroup.add(j),this._polyline=j,j},_newPolygon:function(M,j){var P=this._polygon;return P&&this._lineGroup.remove(P),P=new e({shape:{points:M,stackedOnPoints:j},silent:!0}),this._lineGroup.add(P),this._polygon=P,P},_updateAnimation:function(M,j,P,X,F,U){var K=this._polyline,z=this._polygon,V=M.hostModel,Q=u(this._data,M,this._stackedOnPoints,j,this._coordSys,P,this._valueOrigin,U),G=Q.current,te=Q.stackedOnCurrent,q=Q.next,se=Q.stackedOnNext;if(F&&(G=_(Q.current,P,F),te=_(Q.stackedOnCurrent,P,F),q=_(Q.next,P,F),se=_(Q.stackedOnNext,P,F)),S(G,q)>3e3||z&&S(te,se)>3e3){K.setShape({points:q}),z&&z.setShape({points:q,stackedOnPoints:se});return}K.shape.__points=Q.current,K.shape.points=G,s.updateProps(K,{shape:{points:q}},V),z&&(z.setShape({points:G,stackedOnPoints:te}),s.updateProps(z,{shape:{points:q,stackedOnPoints:se}},V));for(var re=[],xe=Q.status,Oe=0;Oe<xe.length;Oe++){var Me=xe[Oe].cmd;if(Me==="="){var Qe=M.getItemGraphicEl(xe[Oe].idx1);Qe&&re.push({el:Qe,ptIdx:Oe})}}K.animators&&K.animators.length&&K.animators[0].during(function(){for(var Ve=0;Ve<re.length;Ve++){var ut=re[Ve].el;ut.attr("position",K.shape.__points[re[Ve].ptIdx])}})},remove:function(M){var j=this.group,P=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),P&&P.eachItemGraphicEl(function(X,F){X.__temp&&(j.remove(X),P.setItemGraphicEl(F,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});R.exports=k},"8XDt":function(R,D,n){n("qH13");var y=n("aX58"),f=y.registerPainter,x=n("6fms");f("vml",x)},"8XRh":function(R,D,n){"use strict";n.d(D,"a",function(){return Kt});var y=n("rePB"),f=n("VTBJ"),x=n("ODXe"),v=n("U8pU"),m=n("TSYQ"),p=n.n(m),d=n("m+aA"),u=n("c+Xe"),s=n("q1tI"),i=n("Ff2n"),t=["children"],o=s.createContext({});function e(Gt){var Pt=Gt.children,Xt=Object(i.a)(Gt,t);return s.createElement(o.Provider,{value:Xt},Pt)}var l=n("1OyB"),r=n("vuIU"),a=n("Ji7U"),c=n("LK+K"),h=function(Gt){Object(a.a)(Xt,Gt);var Pt=Object(c.a)(Xt);function Xt(){return Object(l.a)(this,Xt),Pt.apply(this,arguments)}return Object(r.a)(Xt,[{key:"render",value:function(){return this.props.children}}]),Xt}(s.Component),g=h,A=n("dm2S"),b="none",S="appear",E="enter",C="leave",_="none",T="prepare",w="start",O="active",I="end",k="prepared",M=n("MNnm");function j(Gt,Pt){var Xt={};return Xt[Gt.toLowerCase()]=Pt.toLowerCase(),Xt["Webkit".concat(Gt)]="webkit".concat(Pt),Xt["Moz".concat(Gt)]="moz".concat(Pt),Xt["ms".concat(Gt)]="MS".concat(Pt),Xt["O".concat(Gt)]="o".concat(Pt.toLowerCase()),Xt}function P(Gt,Pt){var Xt={animationend:j("Animation","AnimationEnd"),transitionend:j("Transition","TransitionEnd")};return Gt&&("AnimationEvent"in Pt||delete Xt.animationend.animation,"TransitionEvent"in Pt||delete Xt.transitionend.transition),Xt}var X=P(Object(M.a)(),typeof window!="undefined"?window:{}),F={};if(Object(M.a)()){var U=document.createElement("div");F=U.style}var K={};function z(Gt){if(K[Gt])return K[Gt];var Pt=X[Gt];if(Pt)for(var Xt=Object.keys(Pt),Ge=Xt.length,pe=0;pe<Ge;pe+=1){var oe=Xt[pe];if(Object.prototype.hasOwnProperty.call(Pt,oe)&&oe in F)return K[Gt]=Pt[oe],K[Gt]}return""}var V=z("animationend"),Q=z("transitionend"),G=!!(V&&Q),te=V||"animationend",q=Q||"transitionend";function se(Gt,Pt){if(!Gt)return null;if(Object(v.a)(Gt)==="object"){var Xt=Pt.replace(/-\w/g,function(Ge){return Ge[1].toUpperCase()});return Gt[Xt]}return"".concat(Gt,"-").concat(Pt)}var re=function(Gt){var Pt=Object(s.useRef)(),Xt=Object(s.useRef)(Gt);Xt.current=Gt;var Ge=s.useCallback(function(lt){Xt.current(lt)},[]);function pe(lt){lt&&(lt.removeEventListener(q,Ge),lt.removeEventListener(te,Ge))}function oe(lt){Pt.current&&Pt.current!==lt&&pe(Pt.current),lt&<!==Pt.current&&(lt.addEventListener(q,Ge),lt.addEventListener(te,Ge),Pt.current=lt)}return s.useEffect(function(){return function(){pe(Pt.current)}},[]),[oe,pe]},xe=Object(M.a)()?s.useLayoutEffect:s.useEffect,Oe=xe,Me=n("wgJM"),Qe=function(){var Gt=s.useRef(null);function Pt(){Me.a.cancel(Gt.current)}function Xt(Ge){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Pt();var oe=Object(Me.a)(function(){pe<=1?Ge({isCanceled:function(){return oe!==Gt.current}}):Xt(Ge,pe-1)});Gt.current=oe}return s.useEffect(function(){return function(){Pt()}},[]),[Xt,Pt]},Ve=[T,w,O,I],ut=[T,k],Fe=!1,ue=!0;function et(Gt){return Gt===O||Gt===I}var he=function(Gt,Pt,Xt){var Ge=Object(A.a)(_),pe=Object(x.a)(Ge,2),oe=pe[0],lt=pe[1],qe=Qe(),ge=Object(x.a)(qe,2),Ht=ge[0],vr=ge[1];function At(){lt(T,!0)}var ir=Pt?ut:Ve;return Oe(function(){if(oe!==_&&oe!==I){var lr=ir.indexOf(oe),dn=ir[lr+1],Ft=Xt(oe);Ft===Fe?lt(dn,!0):dn&&Ht(function(ur){function Jt(){if(ur.isCanceled())return;lt(dn,!0)}Ft===!0?Jt():Promise.resolve(Ft).then(Jt)})}},[Gt,oe]),s.useEffect(function(){return function(){vr()}},[]),[At,oe]};function J(Gt,Pt,Xt,Ge){var pe=Ge.motionEnter,oe=pe===void 0?!0:pe,lt=Ge.motionAppear,qe=lt===void 0?!0:lt,ge=Ge.motionLeave,Ht=ge===void 0?!0:ge,vr=Ge.motionDeadline,At=Ge.motionLeaveImmediately,ir=Ge.onAppearPrepare,lr=Ge.onEnterPrepare,dn=Ge.onLeavePrepare,Ft=Ge.onAppearStart,ur=Ge.onEnterStart,Jt=Ge.onLeaveStart,pt=Ge.onAppearActive,at=Ge.onEnterActive,Pr=Ge.onLeaveActive,un=Ge.onAppearEnd,_n=Ge.onEnterEnd,Xn=Ge.onLeaveEnd,xi=Ge.onVisibleChanged,Pn=Object(A.a)(),Un=Object(x.a)(Pn,2),$t=Un[0],xt=Un[1],De=Object(A.a)(b),ke=Object(x.a)(De,2),Pe=ke[0],tt=ke[1],yt=Object(A.a)(null),Et=Object(x.a)(yt,2),Yt=Et[0],Rr=Et[1],zr=Object(s.useRef)(!1),hn=Object(s.useRef)(null);function jt(){return Xt()}var vt=Object(s.useRef)(!1);function bt(){tt(b,!0),Rr(null,!0)}function cr(fi){var _i=jt();if(fi&&!fi.deadline&&fi.target!==_i)return;var Di=vt.current,Wi;Pe===S&&Di?Wi=un==null?void 0:un(_i,fi):Pe===E&&Di?Wi=_n==null?void 0:_n(_i,fi):Pe===C&&Di&&(Wi=Xn==null?void 0:Xn(_i,fi)),Pe!==b&&Di&&Wi!==!1&&bt()}var Qt=re(cr),Mt=Object(x.a)(Qt,1),tr=Mt[0],Rt=function(_i){var Di,Wi,it;switch(_i){case S:return Di={},Object(y.a)(Di,T,ir),Object(y.a)(Di,w,Ft),Object(y.a)(Di,O,pt),Di;case E:return Wi={},Object(y.a)(Wi,T,lr),Object(y.a)(Wi,w,ur),Object(y.a)(Wi,O,at),Wi;case C:return it={},Object(y.a)(it,T,dn),Object(y.a)(it,w,Jt),Object(y.a)(it,O,Pr),it;default:return{}}},qt=s.useMemo(function(){return Rt(Pe)},[Pe]),Hr=he(Pe,!Gt,function(fi){if(fi===T){var _i=qt[T];return _i?_i(jt()):Fe}if(cn in qt){var Di;Rr(((Di=qt[cn])===null||Di===void 0?void 0:Di.call(qt,jt(),null))||null)}return cn===O&&(tr(jt()),vr>0&&(clearTimeout(hn.current),hn.current=setTimeout(function(){cr({deadline:!0})},vr))),cn===k&&bt(),ue}),Nr=Object(x.a)(Hr,2),Dr=Nr[0],cn=Nr[1],An=et(cn);vt.current=An,Oe(function(){xt(Pt);var fi=zr.current;zr.current=!0;var _i;!fi&&Pt&&qe&&(_i=S),fi&&Pt&&oe&&(_i=E),(fi&&!Pt&&Ht||!fi&&At&&!Pt&&Ht)&&(_i=C);var Di=Rt(_i);_i&&(Gt||Di[T])?(tt(_i),Dr()):tt(b)},[Pt]),Object(s.useEffect)(function(){(Pe===S&&!qe||Pe===E&&!oe||Pe===C&&!Ht)&&tt(b)},[qe,oe,Ht]),Object(s.useEffect)(function(){return function(){zr.current=!1,clearTimeout(hn.current)}},[]);var ri=s.useRef(!1);Object(s.useEffect)(function(){$t&&(ri.current=!0),$t!==void 0&&Pe===b&&((ri.current||$t)&&(xi==null||xi($t)),ri.current=!0)},[$t,Pe]);var $n=Yt;return qt[T]&&cn===w&&($n=Object(f.a)({transition:"none"},$n)),[Pe,cn,$n,$t!=null?$t:Pt]}function Y(Gt){var Pt=Gt;Object(v.a)(Gt)==="object"&&(Pt=Gt.transitionSupport);function Xt(pe,oe){return!!(pe.motionName&&Pt&&oe!==!1)}var Ge=s.forwardRef(function(pe,oe){var lt=pe.visible,qe=lt===void 0?!0:lt,ge=pe.removeOnLeave,Ht=ge===void 0?!0:ge,vr=pe.forceRender,At=pe.children,ir=pe.motionName,lr=pe.leavedClassName,dn=pe.eventProps,Ft=s.useContext(o),ur=Ft.motion,Jt=Xt(pe,ur),pt=Object(s.useRef)(),at=Object(s.useRef)();function Pr(){try{return pt.current instanceof HTMLElement?pt.current:Object(d.a)(at.current)}catch(Rr){return null}}var un=J(Jt,qe,Pr,pe),_n=Object(x.a)(un,4),Xn=_n[0],xi=_n[1],Pn=_n[2],Un=_n[3],$t=s.useRef(Un);Un&&($t.current=!0);var xt=s.useCallback(function(Rr){pt.current=Rr,Object(u.b)(oe,Rr)},[oe]),De,ke=Object(f.a)(Object(f.a)({},dn),{},{visible:qe});if(!At)De=null;else if(Xn===b)Un?De=At(Object(f.a)({},ke),xt):!Ht&&$t.current&&lr?De=At(Object(f.a)(Object(f.a)({},ke),{},{className:lr}),xt):vr||!Ht&&!lr?De=At(Object(f.a)(Object(f.a)({},ke),{},{style:{display:"none"}}),xt):De=null;else{var Pe,tt;xi===T?tt="prepare":et(xi)?tt="active":xi===w&&(tt="start");var yt=se(ir,"".concat(Xn,"-").concat(tt));De=At(Object(f.a)(Object(f.a)({},ke),{},{className:p()(se(ir,Xn),(Pe={},Object(y.a)(Pe,yt,yt&&tt),Object(y.a)(Pe,ir,typeof ir=="string"),Pe)),style:Pn}),xt)}if(s.isValidElement(De)&&Object(u.c)(De)){var Et=De,Yt=Et.ref;Yt||(De=s.cloneElement(De,{ref:xt}))}return s.createElement(g,{ref:at},De)});return Ge.displayName="CSSMotion",Ge}var $=Y(G),de=n("wx14"),be=n("JX7q"),Ce="add",Be="keep",fe="remove",we="removed";function Re(Gt){var Pt;return Gt&&Object(v.a)(Gt)==="object"&&"key"in Gt?Pt=Gt:Pt={key:Gt},Object(f.a)(Object(f.a)({},Pt),{},{key:String(Pt.key)})}function rt(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Gt.map(Re)}function St(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Xt=[],Ge=0,pe=Pt.length,oe=rt(Gt),lt=rt(Pt);oe.forEach(function(Ht){for(var vr=!1,At=Ge;At<pe;At+=1){var ir=lt[At];if(ir.key===Ht.key){Ge<At&&(Xt=Xt.concat(lt.slice(Ge,At).map(function(lr){return Object(f.a)(Object(f.a)({},lr),{},{status:Ce})})),Ge=At),Xt.push(Object(f.a)(Object(f.a)({},ir),{},{status:Be})),Ge+=1,vr=!0;break}}vr||Xt.push(Object(f.a)(Object(f.a)({},Ht),{},{status:fe}))}),Ge<pe&&(Xt=Xt.concat(lt.slice(Ge).map(function(Ht){return Object(f.a)(Object(f.a)({},Ht),{},{status:Ce})})));var qe={};Xt.forEach(function(Ht){var vr=Ht.key;qe[vr]=(qe[vr]||0)+1});var ge=Object.keys(qe).filter(function(Ht){return qe[Ht]>1});return ge.forEach(function(Ht){Xt=Xt.filter(function(vr){var At=vr.key,ir=vr.status;return At!==Ht||ir!==fe}),Xt.forEach(function(vr){vr.key===Ht&&(vr.status=Be)})}),Xt}var ft=["component","children","onVisibleChanged","onAllRemoved"],He=["status"],er=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ct(Gt){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,Xt=function(Ge){Object(a.a)(oe,Ge);var pe=Object(c.a)(oe);function oe(){var lt;Object(l.a)(this,oe);for(var qe=arguments.length,ge=new Array(qe),Ht=0;Ht<qe;Ht++)ge[Ht]=arguments[Ht];return lt=pe.call.apply(pe,[this].concat(ge)),Object(y.a)(Object(be.a)(lt),"state",{keyEntities:[]}),Object(y.a)(Object(be.a)(lt),"removeKey",function(vr){var At=lt.state.keyEntities,ir=At.map(function(lr){return lr.key!==vr?lr:Object(f.a)(Object(f.a)({},lr),{},{status:we})});return lt.setState({keyEntities:ir}),ir.filter(function(lr){var dn=lr.status;return dn!==we}).length}),lt}return Object(r.a)(oe,[{key:"render",value:function(){var qe=this,ge=this.state.keyEntities,Ht=this.props,vr=Ht.component,At=Ht.children,ir=Ht.onVisibleChanged,lr=Ht.onAllRemoved,dn=Object(i.a)(Ht,ft),Ft=vr||s.Fragment,ur={};return er.forEach(function(Jt){ur[Jt]=dn[Jt],delete dn[Jt]}),delete dn.keys,s.createElement(Ft,dn,ge.map(function(Jt,pt){var at=Jt.status,Pr=Object(i.a)(Jt,He),un=at===Ce||at===Be;return s.createElement(Pt,Object(de.a)({},ur,{key:Pr.key,visible:un,eventProps:Pr,onVisibleChanged:function(Xn){if(ir==null||ir(Xn,{key:Pr.key}),!Xn){var xi=qe.removeKey(Pr.key);xi===0&&lr&&lr()}}}),function(_n,Xn){return At(Object(f.a)(Object(f.a)({},_n),{},{index:pt}),Xn)})}))}}],[{key:"getDerivedStateFromProps",value:function(qe,ge){var Ht=qe.keys,vr=ge.keyEntities,At=rt(Ht),ir=St(vr,At);return{keyEntities:ir.filter(function(lr){var dn=vr.find(function(Ft){var ur=Ft.key;return lr.key===ur});return!(dn&&dn.status===we&&lr.status===fe)})}}}]),oe}(s.Component);return Object(y.a)(Xt,"defaultProps",{component:"div"}),Xt}var Kt=ct(G),fr=D.b=$},"8hn6":function(R,D){var n="#eee",y=function(){return{axisLine:{lineStyle:{color:n}},axisTick:{lineStyle:{color:n}},axisLabel:{textStyle:{color:n}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:n}}}},f=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],x={color:f,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:n},crossStyle:{color:n},label:{color:"#000"}}},legend:{textStyle:{color:n}},textStyle:{color:n},title:{textStyle:{color:n}},toolbox:{iconStyle:{normal:{borderColor:n}}},dataZoom:{textStyle:{color:n}},visualMap:{textStyle:{color:n}},timeline:{lineStyle:{color:n},itemStyle:{normal:{color:f[1]}},label:{normal:{textStyle:{color:n}}},controlStyle:{normal:{color:n,borderColor:n}}},timeAxis:y(),logAxis:y(),valueAxis:y(),categoryAxis:y(),line:{symbol:"circle"},graph:{color:f},gauge:{title:{textStyle:{color:n}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};x.categoryAxis.splitLine.show=!1;var v=x;R.exports=v},"8nMs":function(R,D,n){var y=n("bYtY"),f=n("IwbS"),x=n("+rIm"),v=n("Znkb"),m=n("AVZG"),p=n("WN+l"),d=p.rectCoordAxisBuildSplitArea,u=p.rectCoordAxisHandleRemove,s=["axisLine","axisTickLabel","axisName"],i=["splitArea","splitLine","minorSplitLine"],t=v.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(o,e,l,r){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new f.Group,this.group.add(this._axisGroup),!o.get("show"))return;var c=o.getCoordSysModel(),h=m.layout(c,o),g=new x(o,h);y.each(s,g.add,g),this._axisGroup.add(g.getGroup()),y.each(i,function(A){o.get(A+".show")&&this["_"+A](o,c)},this),f.groupTransition(a,this._axisGroup,o),t.superCall(this,"render",o,e,l,r)},remove:function(){u(this)},_splitLine:function(o,e){var l=o.axis;if(l.scale.isBlank())return;var r=o.getModel("splitLine"),a=r.getModel("lineStyle"),c=a.get("color");c=y.isArray(c)?c:[c];for(var h=e.coordinateSystem.getRect(),g=l.isHorizontal(),A=0,b=l.getTicksCoords({tickModel:r}),S=[],E=[],C=a.getLineStyle(),_=0;_<b.length;_++){var T=l.toGlobalCoord(b[_].coord);g?(S[0]=T,S[1]=h.y,E[0]=T,E[1]=h.y+h.height):(S[0]=h.x,S[1]=T,E[0]=h.x+h.width,E[1]=T);var w=A++%c.length,O=b[_].tickValue;this._axisGroup.add(new f.Line({anid:O!=null?"line_"+b[_].tickValue:null,subPixelOptimize:!0,shape:{x1:S[0],y1:S[1],x2:E[0],y2:E[1]},style:y.defaults({stroke:c[w]},C),silent:!0}))}},_minorSplitLine:function(o,e){var l=o.axis,r=o.getModel("minorSplitLine"),a=r.getModel("lineStyle"),c=e.coordinateSystem.getRect(),h=l.isHorizontal(),g=l.getMinorTicksCoords();if(!g.length)return;for(var A=[],b=[],S=a.getLineStyle(),E=0;E<g.length;E++)for(var C=0;C<g[E].length;C++){var _=l.toGlobalCoord(g[E][C].coord);h?(A[0]=_,A[1]=c.y,b[0]=_,b[1]=c.y+c.height):(A[0]=c.x,A[1]=_,b[0]=c.x+c.width,b[1]=_),this._axisGroup.add(new f.Line({anid:"minor_line_"+g[E][C].tickValue,subPixelOptimize:!0,shape:{x1:A[0],y1:A[1],x2:b[0],y2:b[1]},style:S,silent:!0}))}},_splitArea:function(o,e){d(this,this._axisGroup,o,e)}});t.extend({type:"xAxis"}),t.extend({type:"yAxis"})},"8nly":function(R,D,n){var y=n("mFDi"),f=n("4mN7"),x=n("QBsz"),v=n("BlVb");function m(d,u,s){if(this.name=d,this.geometries=u,s)s=[s[0],s[1]];else{var i=this.getBoundingRect();s=[i.x+i.width/2,i.y+i.height/2]}this.center=s}m.prototype={constructor:m,properties:null,getBoundingRect:function(){var d=this._rect;if(d)return d;for(var u=Number.MAX_VALUE,s=[u,u],i=[-u,-u],t=[],o=[],e=this.geometries,l=0;l<e.length;l++){if(e[l].type!=="polygon")continue;var r=e[l].exterior;f.fromPoints(r,t,o),x.min(s,s,t),x.max(i,i,o)}return l===0&&(s[0]=s[1]=i[0]=i[1]=0),this._rect=new y(s[0],s[1],i[0]-s[0],i[1]-s[1])},contain:function(d){var u=this.getBoundingRect(),s=this.geometries;if(!u.contain(d[0],d[1]))return!1;e:for(var i=0,t=s.length;i<t;i++){if(s[i].type!=="polygon")continue;var o=s[i].exterior,e=s[i].interiors;if(v.contain(o,d[0],d[1])){for(var l=0;l<(e?e.length:0);l++)if(v.contain(e[l]))continue e;return!0}}return!1},transformTo:function(d,u,s,i){var t=this.getBoundingRect(),o=t.width/t.height;s?i||(i=s/o):s=o*i;for(var e=new y(d,u,s,i),l=t.calculateTransform(e),r=this.geometries,a=0;a<r.length;a++){if(r[a].type!=="polygon")continue;for(var c=r[a].exterior,h=r[a].interiors,g=0;g<c.length;g++)x.applyTransform(c[g],c[g],l);for(var A=0;A<(h?h.length:0);A++)for(var g=0;g<h[A].length;g++)x.applyTransform(h[A][g],h[A][g],l)}t=this._rect,t.copy(e),this.center=[t.x+t.width/2,t.y+t.height/2]},cloneShallow:function(d){d==null&&(d=this.name);var u=new m(d,this.geometries,this.center);return u._rect=this._rect,u.transformTo=null,u}};var p=m;R.exports=p},"8txm":function(R,D,n){},"8waO":function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("iLNv"),v=n("ZWlE");n("hJvP"),n("IXyC"),n("xRUu");var m=5;y.extendComponentView({type:"parallel",render:function(u,s,i){this._model=u,this._api=i,this._handlers||(this._handlers={},f.each(p,function(t,o){i.getZr().on(o,this._handlers[o]=f.bind(t,this))},this)),x.createOrUpdate(this,"_throttledDispatchExpand",u.get("axisExpandRate"),"fixRate")},dispose:function(u,s){f.each(this._handlers,function(i,t){s.getZr().off(t,i)}),this._handlers=null},_throttledDispatchExpand:function(u){this._dispatchExpand(u)},_dispatchExpand:function(u){u&&this._api.dispatchAction(f.extend({type:"parallelAxisExpand"},u))}});var p={mousedown:function(u){d(this,"click")&&(this._mouseDownPoint=[u.offsetX,u.offsetY])},mouseup:function(u){var s=this._mouseDownPoint;if(d(this,"click")&&s){var i=[u.offsetX,u.offsetY],t=Math.pow(s[0]-i[0],2)+Math.pow(s[1]-i[1],2);if(t>m)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([u.offsetX,u.offsetY]);o.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(u){if(this._mouseDownPoint||!d(this,"mousemove"))return;var s=this._model,i=s.coordinateSystem.getSlidedAxisExpandWindow([u.offsetX,u.offsetY]),t=i.behavior;t==="jump"&&this._throttledDispatchExpand.debounceNextCall(s.get("axisExpandDebounce")),this._throttledDispatchExpand(t==="none"?null:{axisExpandWindow:i.axisExpandWindow,animation:t==="jump"?null:!1})}};function d(u,s){var i=u._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===s}y.registerPreprocessor(v)},"8x+h":function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("ProS"),v=n("bYtY"),m=n("K4ya"),p=n("Qxkt"),d=["#ddd"],u=x.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,o){var e=this.option;!o&&m.replaceVisualOption(e,t,["inBrush","outOfBrush"]);var l=e.inBrush=e.inBrush||{};e.outOfBrush=e.outOfBrush||{color:d},l.hasOwnProperty("liftZ")||(l.liftZ=5)},setAreas:function(t){if(!t)return;this.areas=v.map(t,function(o){return s(this.option,o)},this)},setBrushOption:function(t){this.brushOption=s(this.option,t),this.brushType=this.brushOption.brushType}});function s(t,o){return v.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new p(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},o,!0)}var i=u;R.exports=i},"8z0m":function(R,D,n){"use strict";var y=n("lSNA"),f=n.n(y),x=n("RIqP"),v=n.n(x),m=n("pVnL"),p=n.n(m),d=n("J4zp"),u=n.n(d),s=n("q1tI"),i=n.n(s),t=n("TSYQ"),o=n.n(t);function e(Ft,ur){var Jt="cannot "+Ft.method+" "+Ft.action+" "+ur.status+"'",pt=new Error(Jt);return pt.status=ur.status,pt.method=Ft.method,pt.url=Ft.action,pt}function l(Ft){var ur=Ft.responseText||Ft.response;if(!ur)return ur;try{return JSON.parse(ur)}catch(Jt){return ur}}function r(Ft){var ur=new XMLHttpRequest;Ft.onProgress&&ur.upload&&(ur.upload.onprogress=function(Pr){Pr.total>0&&(Pr.percent=Pr.loaded/Pr.total*100),Ft.onProgress(Pr)});var Jt=new FormData;Ft.data&&Object.keys(Ft.data).forEach(function(at){var Pr=Ft.data[at];if(Array.isArray(Pr)){Pr.forEach(function(un){Jt.append(at+"[]",un)});return}Jt.append(at,Ft.data[at])}),Ft.file instanceof Blob?Jt.append(Ft.filename,Ft.file,Ft.file.name):Jt.append(Ft.filename,Ft.file),ur.onerror=function(Pr){Ft.onError(Pr)},ur.onload=function(){return ur.status<200||ur.status>=300?Ft.onError(e(Ft,ur),l(ur)):Ft.onSuccess(l(ur),ur)},ur.open(Ft.method,Ft.action,!0),Ft.withCredentials&&"withCredentials"in ur&&(ur.withCredentials=!0);var pt=Ft.headers||{};return pt["X-Requested-With"]!==null&&ur.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(pt).forEach(function(at){pt[at]!==null&&ur.setRequestHeader(at,pt[at])}),ur.send(Jt),{abort:function(){ur.abort()}}}var a=+new Date,c=0;function h(){return"rc-upload-"+a+"-"+ ++c}function g(Ft,ur){return Ft.indexOf(ur,Ft.length-ur.length)!==-1}var A=function(Ft,ur){if(Ft&&ur){var Jt=Array.isArray(ur)?ur:ur.split(","),pt=Ft.name||"",at=Ft.type||"",Pr=at.replace(/\/.*$/,"");return Jt.some(function(un){var _n=un.trim();return _n.charAt(0)==="."?g(pt.toLowerCase(),_n.toLowerCase()):/\/\*$/.test(_n)?Pr===_n.replace(/\/.*$/,""):at===_n})}return!0};function b(Ft,ur){var Jt=Ft.createReader(),pt=[];function at(){Jt.readEntries(function(Pr){var un=Array.prototype.slice.apply(Pr);pt=pt.concat(un);var _n=!un.length;_n?ur(pt):at()})}at()}var S=function(ur,Jt,pt){var at=function Pr(un,_n){_n=_n||"",un.isFile?un.file(function(Xn){pt(Xn)&&(un.fullPath&&!Xn.webkitRelativePath&&(Object.defineProperties(Xn,{webkitRelativePath:{writable:!0}}),Xn.webkitRelativePath=un.fullPath.replace(/^\//,""),Object.defineProperties(Xn,{webkitRelativePath:{writable:!1}})),Jt([Xn]))}):un.isDirectory&&b(un,function(Xn){Xn.forEach(function(xi){Pr(xi,""+_n+un.name+"/")})})};ur.forEach(function(Pr){at(Pr.webkitGetAsEntry())})},E=S,C=Object.assign||function(Ft){for(var ur=1;ur<arguments.length;ur++){var Jt=arguments[ur];for(var pt in Jt)Object.prototype.hasOwnProperty.call(Jt,pt)&&(Ft[pt]=Jt[pt])}return Ft},_=function(){function Ft(ur,Jt){var pt=[],at=!0,Pr=!1,un=void 0;try{for(var _n=ur[Symbol.iterator](),Xn;!(at=(Xn=_n.next()).done)&&!(pt.push(Xn.value),Jt&&pt.length===Jt);at=!0);}catch(xi){Pr=!0,un=xi}finally{try{!at&&_n.return&&_n.return()}finally{if(Pr)throw un}}return pt}return function(ur,Jt){if(Array.isArray(ur))return ur;if(Symbol.iterator in Object(ur))return Ft(ur,Jt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function Ft(ur,Jt){for(var pt=0;pt<Jt.length;pt++){var at=Jt[pt];at.enumerable=at.enumerable||!1,at.configurable=!0,"value"in at&&(at.writable=!0),Object.defineProperty(ur,at.key,at)}}return function(ur,Jt,pt){return Jt&&Ft(ur.prototype,Jt),pt&&Ft(ur,pt),ur}}();function w(Ft,ur,Jt){return ur in Ft?Object.defineProperty(Ft,ur,{value:Jt,enumerable:!0,configurable:!0,writable:!0}):Ft[ur]=Jt,Ft}function O(Ft,ur){var Jt={};for(var pt in Ft){if(ur.indexOf(pt)>=0)continue;if(!Object.prototype.hasOwnProperty.call(Ft,pt))continue;Jt[pt]=Ft[pt]}return Jt}function I(Ft,ur){if(!(Ft instanceof ur))throw new TypeError("Cannot call a class as a function")}function k(Ft,ur){if(!Ft)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ur&&(typeof ur=="object"||typeof ur=="function")?ur:Ft}function M(Ft,ur){if(typeof ur!="function"&&ur!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ur);Ft.prototype=Object.create(ur&&ur.prototype,{constructor:{value:Ft,enumerable:!1,writable:!0,configurable:!0}}),ur&&(Object.setPrototypeOf?Object.setPrototypeOf(Ft,ur):Ft.__proto__=ur)}var j=function(ur){return Object.keys(ur).reduce(function(Jt,pt){return(pt.substr(0,5)==="data-"||pt.substr(0,5)==="aria-"||pt==="role")&&(Jt[pt]=ur[pt]),Jt},{})},P=function(Ft){M(ur,Ft);function ur(){var Jt,pt,at,Pr;I(this,ur);for(var un=arguments.length,_n=Array(un),Xn=0;Xn<un;Xn++)_n[Xn]=arguments[Xn];return Pr=(pt=(at=k(this,(Jt=ur.__proto__||Object.getPrototypeOf(ur)).call.apply(Jt,[this].concat(_n))),at),at.state={uid:h()},at.reqs={},at.onChange=function(xi){var Pn=xi.target.files;at.uploadFiles(Pn),at.reset()},at.onClick=function(xi){var Pn=at.fileInput;if(!Pn)return;var Un=at.props,$t=Un.children,xt=Un.onClick;$t&&$t.type==="button"&&(Pn.parentNode.focus(),Pn.parentNode.querySelector("button").blur()),Pn.click(),xt&&xt(xi)},at.onKeyDown=function(xi){xi.key==="Enter"&&at.onClick()},at.onFileDrop=function(xi){var Pn=at.props.multiple;if(xi.preventDefault(),xi.type==="dragover")return;if(at.props.directory)E(Array.prototype.slice.call(xi.dataTransfer.items),at.uploadFiles,function($t){return A($t,at.props.accept)});else{var Un=Array.prototype.slice.call(xi.dataTransfer.files).filter(function($t){return A($t,at.props.accept)});Pn===!1&&(Un=Un.slice(0,1)),at.uploadFiles(Un)}},at.uploadFiles=function(xi){var Pn=Array.prototype.slice.call(xi);Pn.map(function(Un){return Un.uid=h(),Un}).forEach(function(Un){at.upload(Un,Pn)})},at.saveFileInput=function(xi){at.fileInput=xi},pt),k(at,Pr)}return T(ur,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(pt,at){var Pr=this,un=this.props;if(!un.beforeUpload)return setTimeout(function(){return Pr.post(pt)},0);var _n=un.beforeUpload(pt,at);_n&&_n.then?_n.then(function(Xn){var xi=Object.prototype.toString.call(Xn);return xi==="[object File]"||xi==="[object Blob]"?Pr.post(Xn):Pr.post(pt)}).catch(function(Xn){console.log(Xn)}):_n!==!1&&setTimeout(function(){return Pr.post(pt)},0);return}},{key:"post",value:function(pt){var at=this;if(!this._isMounted)return;var Pr=this.props,un=Pr.onStart,_n=Pr.onProgress,Xn=Pr.transformFile,xi=Xn===void 0?function(Pn){return Pn}:Xn;new Promise(function(Pn){var Un=Pr.action;return typeof Un=="function"&&(Un=Un(pt)),Pn(Un)}).then(function(Pn){var Un=pt.uid,$t=Pr.customRequest||r,xt=Promise.resolve(xi(pt)).then(function(De){var ke=Pr.data;return typeof ke=="function"&&(ke=ke(De)),Promise.all([De,ke])}).catch(function(De){console.error(De)});xt.then(function(De){var ke=_(De,2),Pe=ke[0],tt=ke[1],yt={action:Pn,filename:Pr.name,data:tt,file:Pe,headers:Pr.headers,withCredentials:Pr.withCredentials,method:Pr.method||"post",onProgress:_n?function(Et){_n(Et,pt)}:null,onSuccess:function(Yt,Rr){delete at.reqs[Un],Pr.onSuccess(Yt,pt,Rr)},onError:function(Yt,Rr){delete at.reqs[Un],Pr.onError(Yt,Rr,pt)}};un(pt),at.reqs[Un]=$t(yt)})})}},{key:"reset",value:function(){this.setState({uid:h()})}},{key:"abort",value:function(pt){var at=this.reqs;if(pt){var Pr=pt;pt&&pt.uid&&(Pr=pt.uid),at[Pr]&&at[Pr].abort&&at[Pr].abort(),delete at[Pr]}else Object.keys(at).forEach(function(un){at[un]&&at[un].abort&&at[un].abort(),delete at[un]})}},{key:"render",value:function(){var pt,at=this.props,Pr=at.component,un=at.prefixCls,_n=at.className,Xn=at.disabled,xi=at.id,Pn=at.style,Un=at.multiple,$t=at.accept,xt=at.children,De=at.directory,ke=at.openFileDialogOnClick,Pe=at.onMouseEnter,tt=at.onMouseLeave,yt=O(at,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),Et=o()((pt={},w(pt,un,!0),w(pt,un+"-disabled",Xn),w(pt,_n,_n),pt)),Yt=Xn?{}:{onClick:ke?this.onClick:function(){},onKeyDown:ke?this.onKeyDown:function(){},onMouseEnter:Pe,onMouseLeave:tt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return i.a.createElement(Pr,C({},Yt,{className:Et,role:"button",style:Pn}),i.a.createElement("input",C({},j(yt),{id:xi,type:"file",ref:this.saveFileInput,onClick:function(zr){return zr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:$t,directory:De?"directory":null,webkitdirectory:De?"webkitdirectory":null,multiple:Un,onChange:this.onChange})),xt)}}]),ur}(s.Component),X=P,F=Object.assign||function(Ft){for(var ur=1;ur<arguments.length;ur++){var Jt=arguments[ur];for(var pt in Jt)Object.prototype.hasOwnProperty.call(Jt,pt)&&(Ft[pt]=Jt[pt])}return Ft},U=function(){function Ft(ur,Jt){for(var pt=0;pt<Jt.length;pt++){var at=Jt[pt];at.enumerable=at.enumerable||!1,at.configurable=!0,"value"in at&&(at.writable=!0),Object.defineProperty(ur,at.key,at)}}return function(ur,Jt,pt){return Jt&&Ft(ur.prototype,Jt),pt&&Ft(ur,pt),ur}}();function K(Ft,ur){if(!(Ft instanceof ur))throw new TypeError("Cannot call a class as a function")}function z(Ft,ur){if(!Ft)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ur&&(typeof ur=="object"||typeof ur=="function")?ur:Ft}function V(Ft,ur){if(typeof ur!="function"&&ur!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ur);Ft.prototype=Object.create(ur&&ur.prototype,{constructor:{value:Ft,enumerable:!1,writable:!0,configurable:!0}}),ur&&(Object.setPrototypeOf?Object.setPrototypeOf(Ft,ur):Ft.__proto__=ur)}function Q(){}var G=function(Ft){V(ur,Ft);function ur(){var Jt,pt,at,Pr;K(this,ur);for(var un=arguments.length,_n=Array(un),Xn=0;Xn<un;Xn++)_n[Xn]=arguments[Xn];return Pr=(pt=(at=z(this,(Jt=ur.__proto__||Object.getPrototypeOf(ur)).call.apply(Jt,[this].concat(_n))),at),at.saveUploader=function(xi){at.uploader=xi},pt),z(at,Pr)}return U(ur,[{key:"abort",value:function(pt){this.uploader.abort(pt)}},{key:"render",value:function(){return i.a.createElement(X,F({},this.props,{ref:this.saveUploader}))}}]),ur}(s.Component);G.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Q,onError:Q,onSuccess:Q,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var te=G,q=te,se=function(Ft,ur){var Jt={};for(var pt in Ft)Object.prototype.hasOwnProperty.call(Ft,pt)&&ur.indexOf(pt)<0&&(Jt[pt]=Ft[pt]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,pt=Object.getOwnPropertySymbols(Ft);at<pt.length;at++)ur.indexOf(pt[at])<0&&Object.prototype.propertyIsEnumerable.call(Ft,pt[at])&&(Jt[pt[at]]=Ft[pt[at]]);return Jt},re=function(ur,Jt){var pt=ur.style,at=ur.height,Pr=se(ur,["style","height"]);return s.createElement(lr,p()({ref:Jt},Pr,{type:"drag",style:p()(p()({},pt),{height:at})}))},xe=s.forwardRef(re);xe.displayName="Dragger";var Oe=xe,Me=n("UmKh"),Qe=n("gZBC"),Ve=n.n(Qe),ut=n("+d4F"),Fe=n.n(ut),ue=n("XAae"),et=n.n(ue),he=n("6xvX"),J=n.n(he),Y=n("qPY4"),$=n.n(Y),de=n("QB+1"),be=n.n(de),Ce=n("Qs3X"),Be=n.n(Ce),fe=n("0n0R");function we(){return!0}function Re(Ft){return p()(p()({},Ft),{lastModified:Ft.lastModified,lastModifiedDate:Ft.lastModifiedDate,name:Ft.name,size:Ft.size,type:Ft.type,uid:Ft.uid,percent:0,originFileObj:Ft})}function rt(Ft,ur){var Jt=Ft.uid!==void 0?"uid":"name";return ur.filter(function(pt){return pt[Jt]===Ft[Jt]})[0]}function St(Ft,ur){var Jt=Ft.uid!==void 0?"uid":"name",pt=ur.filter(function(at){return at[Jt]!==Ft[Jt]});return pt.length===ur.length?null:pt}var ft=function(){var ur=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Jt=ur.split("/"),pt=Jt[Jt.length-1],at=pt.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(at)||[""])[0]},He=function(ur){return ur.indexOf("image/")===0},er=function(ur){if(ur.type&&!ur.thumbUrl)return He(ur.type);var Jt=ur.thumbUrl||ur.url,pt=ft(Jt);return/^data:image\//.test(Jt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(pt)?!0:/^data:/.test(Jt)?!1:!pt},ct=200;function Kt(Ft){return new Promise(function(ur){if(!Ft.type||!He(Ft.type)){ur("");return}var Jt=document.createElement("canvas");Jt.width=ct,Jt.height=ct,Jt.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(ct,"px; height: ").concat(ct,"px; z-index: 9999; display: none;"),document.body.appendChild(Jt);var pt=Jt.getContext("2d"),at=new Image;at.onload=function(){var Pr=at.width,un=at.height,_n=ct,Xn=ct,xi=0,Pn=0;Pr<un?(Xn=un*(ct/Pr),Pn=-(Xn-_n)/2):(_n=Pr*(ct/un),xi=-(_n-Xn)/2),pt.drawImage(at,xi,Pn,_n,Xn);var Un=Jt.toDataURL();document.body.removeChild(Jt),ur(Un)},at.src=window.URL.createObjectURL(Ft)})}var fr=n("3S7+"),Gt=n("CFYs"),Pt=n("H84U"),Xt=n("2/Rp"),Ge=n("hkKa"),pe=function(ur,Jt){var pt,at=ur.listType,Pr=ur.previewFile,un=ur.onPreview,_n=ur.onDownload,Xn=ur.onRemove,xi=ur.locale,Pn=ur.iconRender,Un=ur.isImageUrl,$t=ur.prefixCls,xt=ur.items,De=xt===void 0?[]:xt,ke=ur.showPreviewIcon,Pe=ur.showRemoveIcon,tt=ur.showDownloadIcon,yt=ur.removeIcon,Et=ur.downloadIcon,Yt=ur.progress,Rr=Object(Ge.a)();s.useEffect(function(){if(at!=="picture"&&at!=="picture-card")return;(De||[]).forEach(function(Nr){if(typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Nr.originFileObj instanceof File||Nr.originFileObj instanceof Blob)||Nr.thumbUrl!==void 0)return;Nr.thumbUrl="",Pr&&Pr(Nr.originFileObj).then(function(Dr){Nr.thumbUrl=Dr||"",Rr()})})},[at,De,Pr]);var zr=function(Dr,cn){return un?(cn.preventDefault(),un(Dr)):void 0},hn=function(Dr){typeof _n=="function"?_n(Dr):Dr.url&&window.open(Dr.url)},jt=function(Dr){Xn&&Xn(Dr)},vt=function(Dr){if(Pn)return Pn(Dr,at);var cn=Dr.status==="uploading",An=Un&&Un(Dr)?s.createElement(et.a,null):s.createElement(J.a,null),ri=cn?s.createElement(Ve.a,null):s.createElement(Fe.a,null);return at==="picture"?ri=cn?s.createElement(Ve.a,null):An:at==="picture-card"&&(ri=cn?xi.uploading:An),ri},bt=function(Dr,cn,An,ri){var $n={type:"text",size:"small",title:ri,onClick:function(Di){cn(),Object(fe.b)(Dr)&&Dr.props.onClick&&Dr.props.onClick(Di)},className:"".concat(An,"-list-item-card-actions-btn")};if(Object(fe.b)(Dr)){var fi=Object(fe.a)(Dr,p()(p()({},Dr.props),{onClick:function(){}}));return s.createElement(Xt.a,p()({},$n,{icon:fi}))}return s.createElement(Xt.a,$n,s.createElement("span",null,Dr))};s.useImperativeHandle(Jt,function(){return{handlePreview:zr,handleDownload:hn}});var cr=s.useContext(Pt.b),Qt=cr.getPrefixCls,Mt=cr.direction,tr=Qt("upload",$t),Rt=De.map(function(Nr){var Dr,cn,An,ri=vt(Nr),$n=s.createElement("div",{className:"".concat(tr,"-text-icon")},ri);if(at==="picture"||at==="picture-card")if(Nr.status==="uploading"||!Nr.thumbUrl&&!Nr.url){var fi,_i=o()((fi={},f()(fi,"".concat(tr,"-list-item-thumbnail"),!0),f()(fi,"".concat(tr,"-list-item-file"),Nr.status!=="uploading"),fi));$n=s.createElement("div",{className:_i},ri)}else{var Di,Wi=Un&&Un(Nr)?s.createElement("img",{src:Nr.thumbUrl||Nr.url,alt:Nr.name,className:"".concat(tr,"-list-item-image")}):ri,it=o()((Di={},f()(Di,"".concat(tr,"-list-item-thumbnail"),!0),f()(Di,"".concat(tr,"-list-item-file"),Un&&!Un(Nr)),Di));$n=s.createElement("a",{className:it,onClick:function(bn){return zr(Nr,bn)},href:Nr.url||Nr.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Wi)}if(Nr.status==="uploading"){var Le="percent"in Nr?s.createElement(Gt.a,p()({},Yt,{type:"line",percent:Nr.percent})):null;An=s.createElement("div",{className:"".concat(tr,"-list-item-progress"),key:"progress"},Le)}var je=o()((Dr={},f()(Dr,"".concat(tr,"-list-item"),!0),f()(Dr,"".concat(tr,"-list-item-").concat(Nr.status),!0),f()(Dr,"".concat(tr,"-list-item-list-type-").concat(at),!0),Dr)),Xe=typeof Nr.linkProps=="string"?JSON.parse(Nr.linkProps):Nr.linkProps,nt=Pe?bt(yt||s.createElement(be.a,null),function(){return jt(Nr)},tr,xi.removeFile):null,Ze=tt&&Nr.status==="done"?bt(Et||s.createElement(Be.a,null),function(){return hn(Nr)},tr,xi.downloadFile):null,ot=at!=="picture-card"&&s.createElement("span",{key:"download-delete",className:"".concat(tr,"-list-item-card-actions ").concat(at==="picture"?"picture":"")},Ze,nt),Ct=o()((cn={},f()(cn,"".concat(tr,"-list-item-name"),!0),f()(cn,"".concat(tr,"-list-item-name-icon-count-").concat([Ze,nt].filter(function(Bn){return Bn}).length),!0),cn)),gt=Nr.url?[s.createElement("a",p()({key:"view",target:"_blank",rel:"noopener noreferrer",className:Ct,title:Nr.name},Xe,{href:Nr.url,onClick:function(bn){return zr(Nr,bn)}}),Nr.name),ot]:[s.createElement("span",{key:"view",className:Ct,onClick:function(bn){return zr(Nr,bn)},title:Nr.name},Nr.name),ot],pr={pointerEvents:"none",opacity:.5},$r=ke?s.createElement("a",{href:Nr.url||Nr.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Nr.url||Nr.thumbUrl?void 0:pr,onClick:function(bn){return zr(Nr,bn)},title:xi.previewFile},s.createElement($.a,null)):null,Yr=at==="picture-card"&&Nr.status!=="uploading"&&s.createElement("span",{className:"".concat(tr,"-list-item-actions")},$r,Nr.status==="done"&&Ze,nt),mn;Nr.response&&typeof Nr.response=="string"?mn=Nr.response:mn=Nr.error&&Nr.error.statusText||xi.uploadError;var Ar=s.createElement("span",null,$n,gt),zn=s.createElement("div",{className:je},s.createElement("div",{className:"".concat(tr,"-list-item-info")},Ar),Yr,s.createElement(Me.a,{transitionName:"fade",component:""},An)),Fr=o()(f()({},"".concat(tr,"-list-picture-card-container"),at==="picture-card"));return s.createElement("div",{key:Nr.uid,className:Fr},Nr.status==="error"?s.createElement(fr.a,{title:mn,getPopupContainer:function(bn){return bn.parentNode}},zn):s.createElement("span",null,zn))}),qt=o()((pt={},f()(pt,"".concat(tr,"-list"),!0),f()(pt,"".concat(tr,"-list-").concat(at),!0),f()(pt,"".concat(tr,"-list-rtl"),Mt==="rtl"),pt)),Hr=at==="picture-card"?"animate-inline":"animate";return s.createElement(Me.a,{transitionName:"".concat(tr,"-").concat(Hr),component:"div",className:qt},Rt)},oe=s.forwardRef(pe);oe.displayName="UploadList",oe.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:Kt,isImageUrl:er};var lt=oe,qe=n("YMnH"),ge=n("ZvpZ"),Ht=n("uaoM"),vr=n("sPtV"),At=function(ur,Jt){var pt,at=ur.fileList,Pr=ur.defaultFileList,un=ur.onRemove,_n=ur.showUploadList,Xn=ur.listType,xi=ur.onPreview,Pn=ur.onDownload,Un=ur.previewFile,$t=ur.disabled,xt=ur.locale,De=ur.iconRender,ke=ur.isImageUrl,Pe=ur.progress,tt=ur.prefixCls,yt=ur.className,Et=ur.type,Yt=ur.children,Rr=ur.style,zr=Object(vr.a)(at||Pr||[]),hn=u()(zr,2),jt=hn[0],vt=hn[1],bt=s.useState("drop"),cr=u()(bt,2),Qt=cr[0],Mt=cr[1],tr=s.useRef();s.useEffect(function(){vt(at||Pr||[]),Object(Ht.a)("fileList"in ur||!("value"in ur),"Upload","`value` is not a valid prop, do you mean `fileList`?")},[]),s.useEffect(function(){"fileList"in ur&&vt(at||[])},[at]);var Rt=function(gt){"fileList"in ur||vt(gt.fileList);var pr=ur.onChange;pr&&pr(p()(p()({},gt),{fileList:v()(gt.fileList)}))},qt=function(gt){var pr=Re(gt);pr.status="uploading";var $r=jt().concat(),Yr=$r.findIndex(function(mn){var Ar=mn.uid;return Ar===pr.uid});Yr===-1?$r.push(pr):$r[Yr]=pr,Rt({file:pr,fileList:$r})},Hr=function(gt,pr,$r){try{typeof gt=="string"&&(gt=JSON.parse(gt))}catch(mn){}var Yr=rt(pr,jt());if(!Yr)return;Yr.status="done",Yr.response=gt,Yr.xhr=$r,Rt({file:p()({},Yr),fileList:jt().concat()})},Nr=function(gt,pr){var $r=rt(pr,jt());if(!$r)return;$r.percent=gt.percent,Rt({event:gt,file:p()({},$r),fileList:jt().concat()})},Dr=function(gt,pr,$r){var Yr=rt($r,jt());if(!Yr)return;Yr.error=gt,Yr.response=pr,Yr.status="error",Rt({file:p()({},Yr),fileList:jt().concat()})},cn=function(gt){Promise.resolve(typeof un=="function"?un(gt):un).then(function(pr){if(pr===!1)return;var $r=St(gt,jt());$r&&(gt.status="removed",tr.current&&tr.current.abort(gt),Rt({file:gt,fileList:$r}))})},An=function(gt){Mt(gt.type)},ri=function(gt,pr){var $r=ur.beforeUpload;if(!$r)return!0;var Yr=$r(gt,pr);if(Yr===!1){var mn=[];return jt().concat(pr.map(Re)).forEach(function(Ar){mn.every(function(zn){return zn.uid!==Ar.uid})&&mn.push(Ar)}),Rt({file:gt,fileList:mn}),!1}return Yr&&Yr.then?Yr:!0},$n=Object(Ge.a)();s.useImperativeHandle(Jt,function(){return{onStart:qt,onSuccess:Hr,onProgress:Nr,onError:Dr,fileList:jt(),upload:tr.current,forceUpdate:$n}});var fi=function(gt){var pr=_n.showRemoveIcon,$r=_n.showPreviewIcon,Yr=_n.showDownloadIcon,mn=_n.removeIcon,Ar=_n.downloadIcon;return s.createElement(lt,{listType:Xn,items:jt(),previewFile:Un,onPreview:xi,onDownload:Pn,onRemove:cn,showRemoveIcon:!$t&&pr,showPreviewIcon:$r,showDownloadIcon:Yr,removeIcon:mn,downloadIcon:Ar,iconRender:De,locale:p()(p()({},gt),xt),isImageUrl:ke,progress:Pe})},_i=s.useContext(Pt.b),Di=_i.getPrefixCls,Wi=_i.direction,it=Di("upload",tt),Le=p()(p()({onStart:qt,onError:Dr,onProgress:Nr,onSuccess:Hr},ur),{prefixCls:it,beforeUpload:ri});delete Le.className,delete Le.style,(!Yt||$t)&&delete Le.id;var je=_n?s.createElement(qe.a,{componentName:"Upload",defaultLocale:ge.a.Upload},fi):null;if(Et==="drag"){var Xe,nt=o()(it,(Xe={},f()(Xe,"".concat(it,"-drag"),!0),f()(Xe,"".concat(it,"-drag-uploading"),jt().some(function(Ct){return Ct.status==="uploading"})),f()(Xe,"".concat(it,"-drag-hover"),Qt==="dragover"),f()(Xe,"".concat(it,"-disabled"),$t),f()(Xe,"".concat(it,"-rtl"),Wi==="rtl"),Xe),yt);return s.createElement("span",null,s.createElement("div",{className:nt,onDrop:An,onDragOver:An,onDragLeave:An,style:Rr},s.createElement(q,p()({},Le,{ref:tr,className:"".concat(it,"-btn")}),s.createElement("div",{className:"".concat(it,"-drag-container")},Yt))),je)}var Ze=o()(it,(pt={},f()(pt,"".concat(it,"-select"),!0),f()(pt,"".concat(it,"-select-").concat(Xn),!0),f()(pt,"".concat(it,"-disabled"),$t),f()(pt,"".concat(it,"-rtl"),Wi==="rtl"),pt)),ot=s.createElement("div",{className:Ze,style:Yt?void 0:{display:"none"}},s.createElement(q,p()({},Le,{ref:tr})));return Xn==="picture-card"?s.createElement("span",{className:o()(yt,"".concat(it,"-picture-card-wrapper"))},je,ot):s.createElement("span",{className:yt},ot,je)},ir=s.forwardRef(At);ir.Dragger=Oe,ir.displayName="Upload",ir.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:we,showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var lr=ir;lr.Dragger=Oe;var dn=D.a=lr},"98bh":function(R,D,n){var y=n("ProS"),f=n("5GtS"),x=n("bYtY"),v=n("4NO4"),m=n("OELB"),p=m.getPercentWithPrecision,d=n("cCMj"),u=n("KxfA"),s=u.retrieveRawAttr,i=n("D5nY"),t=i.makeSeriesEncodeForNameBased,o=n("xKMd"),e=y.extendSeriesModel({type:"series.pie",init:function(r){e.superApply(this,"init",arguments),this.legendVisualProvider=new o(x.bind(this.getData,this),x.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(r)},mergeOption:function(r){e.superCall(this,"mergeOption",r),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(r,a){return f(this,{coordDimensions:["value"],encodeDefaulter:x.curry(t,this)})},_createSelectableList:function(){for(var r=this.getRawData(),a=r.mapDimension("value"),c=[],h=0,g=r.count();h<g;h++)c.push({name:r.getName(h),value:r.get(a,h),selected:s(r,h,"selected")});return c},getDataParams:function(r){var a=this.getData(),c=e.superCall(this,"getDataParams",r),h=[];return a.each(a.mapDimension("value"),function(g){h.push(g)}),c.percent=p(h,r,a.hostModel.get("percentPrecision")),c.$vars.push("percent"),c},_defaultLabelLine:function(r){v.defaultEmphasis(r,"labelLine",["show"]);var a=r.labelLine,c=r.emphasis.labelLine;a.show=a.show&&r.label.show,c.show=c.show&&r.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});x.mixin(e,d);var l=e;R.exports=l},"9H2F":function(R,D,n){var y=n("bYtY"),f=y.assert,x=y.isArray,v=n("Tghj"),m=v.__DEV__;function p(o){return new d(o)}function d(o){o=o||{},this._reset=o.reset,this._plan=o.plan,this._count=o.count,this._onDirty=o.onDirty,this._dirty=!0,this.context}var u=d.prototype;u.perform=function(o){var e=this._upstream,l=o&&o.skip;if(this._dirty&&e){var r=this.context;r.data=r.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!l&&(a=this._plan(this.context));var c=b(this._modBy),h=this._modDataCount||0,g=b(o&&o.modBy),A=o&&o.modDataCount||0;(c!==g||h!==A)&&(a="reset");function b(I){return!(I>=1)&&(I=1),I}var S;(this._dirty||a==="reset")&&(this._dirty=!1,S=t(this,l)),this._modBy=g,this._modDataCount=A;var E=o&&o.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var C=this._dueIndex,_=Math.min(E!=null?this._dueIndex+E:Infinity,this._dueEnd);if(!l&&(S||C<_)){var T=this._progress;if(x(T))for(var w=0;w<T.length;w++)i(this,T[w],C,_,g,A);else i(this,T,C,_,g,A)}this._dueIndex=_;var O=this._settedOutputEnd!=null?this._settedOutputEnd:_;this._outputDueEnd=O}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var s=function(){var o,e,l,r,a,c={reset:function(A,b,S,E){e=A,o=b,l=S,r=E,a=Math.ceil(r/l),c.next=l>1&&r>0?g:h}};return c;function h(){return e<o?e++:null}function g(){var A=e%a*l+Math.ceil(e/a),b=e>=o?null:A<r?A:e;return e++,b}}();u.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)};function i(o,e,l,r,a,c){s.reset(l,r,a,c),o._callingProgress=e,o._callingProgress({start:l,end:r,count:r-l,next:s.next},o.context)}function t(o,e){o._dueIndex=o._outputDueEnd=o._dueEnd=0,o._settedOutputEnd=null;var l,r;!e&&o._reset&&(l=o._reset(o.context),l&&l.progress&&(r=l.forceFirstProgress,l=l.progress),x(l)&&!l.length&&(l=null)),o._progress=l,o._modBy=o._modDataCount=null;var a=o._downstream;return a&&a.dirty(),r}u.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},u.pipe=function(o){(this._downstream!==o||this._dirty)&&(this._downstream=o,o._upstream=this,o.dirty())},u.dispose=function(){if(this._disposed)return;this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0},u.getUpstream=function(){return this._upstream},u.getDownstream=function(){return this._downstream},u.setOutputEnd=function(o){this._outputDueEnd=this._settedOutputEnd=o},D.createTask=p},"9KIM":function(R,D,n){var y=n("mFDi"),f=n("xSat"),x=f.onIrrelevantElement,v=n("IwbS");function m(s){return s=u(s),function(i,t){return v.clipPointsByRect(i,s)}}function p(s,i){return s=u(s),function(t){var o=i!=null?i:t,e=o?s.width:s.height,l=o?s.x:s.y;return[l,l+(e||0)]}}function d(s,i,t){return s=u(s),function(o,e,l){return s.contain(e[0],e[1])&&!x(o,i,t)}}function u(s){return y.create(s)}D.makeRectPanelClipPath=m,D.makeLinearBrushOtherExtent=p,D.makeRectIsTargetByCursor=d},"9OqN":function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("OLod"))})(this,function(y){return y.mode.CTR=function(){var f=y.lib.BlockCipherMode.extend(),x=f.Encryptor=f.extend({processBlock:function(m,p){var d=this._cipher,u=d.blockSize,s=this._iv,i=this._counter;s&&(i=this._counter=s.slice(0),this._iv=void 0);var t=i.slice(0);d.encryptBlock(t,0),i[u-1]=i[u-1]+1|0;for(var o=0;o<u;o++)m[p+o]^=t[o]}});return f.Decryptor=x,f}(),y.mode.CTR})},"9ama":function(R,D,n){},"9eas":function(R,D,n){n("HM/N"),n("tBnm")},"9hCq":function(R,D,n){var y=n("IwbS"),f=n("+TT/"),x=n("bYtY"),v=n("VaxA"),m=v.wrapTreePathInfo,p=8,d=8,u=5;function s(e){this.group=new y.Group,e.add(this.group)}s.prototype={constructor:s,render:function(e,l,r,a){var c=e.getModel("breadcrumb"),h=this.group;if(h.removeAll(),!c.get("show")||!r)return;var g=c.getModel("itemStyle"),A=g.getModel("textStyle"),b={pos:{left:c.get("left"),right:c.get("right"),top:c.get("top"),bottom:c.get("bottom")},box:{width:l.getWidth(),height:l.getHeight()},emptyItemWidth:c.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,b,A),this._renderContent(e,b,g,A,a),f.positionElement(h,b.pos,b.box)},_prepare:function(e,l,r){for(var a=e;a;a=a.parentNode){var c=a.getModel().get("name"),h=r.getTextRect(c),g=Math.max(h.width+p*2,l.emptyItemWidth);l.totalWidth+=g+d,l.renderList.push({node:a,text:c,width:g})}},_renderContent:function(e,l,r,a,c){for(var h=0,g=l.emptyItemWidth,A=e.get("breadcrumb.height"),b=f.getAvailableSize(l.pos,l.box),S=l.totalWidth,E=l.renderList,C=E.length-1;C>=0;C--){var _=E[C],T=_.node,w=_.width,O=_.text;S>b.width&&(S-=w-g,w=g,O=null);var I=new y.Polygon({shape:{points:i(h,0,w,A,C===E.length-1,C===0)},style:x.defaults(r.getItemStyle(),{lineJoin:"bevel",text:O,textFill:a.getTextColor(),textFont:a.getFont()}),z:10,onclick:x.curry(c,T)});this.group.add(I),t(I,e,T),h+=w+d}},remove:function(){this.group.removeAll()}};function i(e,l,r,a,c,h){var g=[[c?e:e-u,l],[e+r,l],[e+r,l+a],[c?e:e-u,l+a]];return!h&&g.splice(2,0,[e+r+u,l+a/2]),!c&&g.push([e,l+a/2]),g}function t(e,l,r){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:l.componentIndex,seriesIndex:l.componentIndex,seriesName:l.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&m(r,l)}}var o=s;R.exports=o},"9u0u":function(R,D,n){var y=n("bYtY");function f(v,m){var p={};return y.each(v,function(d){d.each(d.mapDimension("value"),function(u,s){var i="ec-"+d.getName(s);p[i]=p[i]||[],isNaN(u)||p[i].push(u)})}),v[0].map(v[0].mapDimension("value"),function(d,u){for(var s="ec-"+v[0].getName(u),i=0,t=Infinity,o=-Infinity,e=p[s].length,l=0;l<e;l++)t=Math.min(t,p[s][l]),o=Math.max(o,p[s][l]),i+=p[s][l];var r;return m==="min"?r=t:m==="max"?r=o:m==="average"?r=i/e:r=i,e===0?NaN:r})}function x(v){var m={};v.eachSeriesByType("map",function(p){var d=p.getHostGeoModel(),u=d?"o"+d.id:"i"+p.getMapType();(m[u]=m[u]||[]).push(p)}),y.each(m,function(p,d){for(var u=f(y.map(p,function(i){return i.getData()}),p[0].get("mapValueCalculation")),s=0;s<p.length;s++)p[s].originalData=p[s].getData();for(var s=0;s<p.length;s++)p[s].seriesGroup=p,p[s].needsDrawMap=s===0&&!p[s].getHostGeoModel(),p[s].setData(u.cloneShallow()),p[s].mainSeries=p[0]})}R.exports=x},"9wZj":function(R,D,n){var y=n("IwbS"),f=n("FBjb"),x=n("bYtY"),v=x.isObject;function m(t){this.group=new y.Group,this._symbolCtor=t||f}var p=m.prototype;function d(t,o,e,l){return o&&!isNaN(o[0])&&!isNaN(o[1])&&!(l.isIgnore&&l.isIgnore(e))&&!(l.clipShape&&!l.clipShape.contain(o[0],o[1]))&&t.getItemVisual(e,"symbol")!=="none"}p.updateData=function(t,o){o=u(o);var e=this.group,l=t.hostModel,r=this._data,a=this._symbolCtor,c=s(t);r||e.removeAll(),t.diff(r).add(function(h){var g=t.getItemLayout(h);if(d(t,g,h,o)){var A=new a(t,h,c);A.attr("position",g),t.setItemGraphicEl(h,A),e.add(A)}}).update(function(h,g){var A=r.getItemGraphicEl(g),b=t.getItemLayout(h);if(!d(t,b,h,o)){e.remove(A);return}A?(A.updateData(t,h,c),y.updateProps(A,{position:b},l)):(A=new a(t,h),A.attr("position",b)),e.add(A),t.setItemGraphicEl(h,A)}).remove(function(h){var g=r.getItemGraphicEl(h);g&&g.fadeOut(function(){e.remove(g)})}).execute(),this._data=t},p.isPersistent=function(){return!0},p.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(o,e){var l=t.getItemLayout(e);o.attr("position",l)})},p.incrementalPrepareUpdate=function(t){this._seriesScope=s(t),this._data=null,this.group.removeAll()},p.incrementalUpdate=function(t,o,e){e=u(e);function l(h){h.isGroup||(h.incremental=h.useHoverLayer=!0)}for(var r=t.start;r<t.end;r++){var a=o.getItemLayout(r);if(d(o,a,r,e)){var c=new this._symbolCtor(o,r,this._seriesScope);c.traverse(l),c.attr("position",a),this.group.add(c),o.setItemGraphicEl(r,c)}}};function u(t){return t!=null&&!v(t)&&(t={isIgnore:t}),t||{}}p.remove=function(t){var o=this.group,e=this._data;e&&t?e.eachItemGraphicEl(function(l){l.fadeOut(function(){o.remove(l)})}):o.removeAll()};function s(t){var o=t.hostModel;return{itemStyle:o.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:o.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:o.get("symbolRotate"),symbolOffset:o.get("symbolOffset"),hoverAnimation:o.get("hoverAnimation"),labelModel:o.getModel("label"),hoverLabelModel:o.getModel("emphasis.label"),cursorStyle:o.get("cursor")}}var i=m;R.exports=i},"9yH6":function(R,D,n){"use strict";var y=n("lSNA"),f=n.n(y),x=n("pVnL"),v=n.n(x),m=n("q1tI"),p=n("x1Ya"),d=n("TSYQ"),u=n.n(d),s=n("H84U"),i=m.createContext(null),t=i.Provider,o=i,e=n("ID/q"),l=n("uaoM"),r=function(k,M){var j={};for(var P in k)Object.prototype.hasOwnProperty.call(k,P)&&M.indexOf(P)<0&&(j[P]=k[P]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,P=Object.getOwnPropertySymbols(k);X<P.length;X++)M.indexOf(P[X])<0&&Object.prototype.propertyIsEnumerable.call(k,P[X])&&(j[P[X]]=k[P[X]]);return j},a=function(M,j){var P,X=m.useContext(o),F=m.useContext(s.b),U=F.getPrefixCls,K=F.direction,z=m.useRef(),V=Object(e.a)(j,z);m.useEffect(function(){Object(l.a)(!("optionType"in M),"Radio","`optionType` is only support in Radio.Group.")},[]);var Q=function(Ve){M.onChange&&M.onChange(Ve),(X==null?void 0:X.onChange)&&X.onChange(Ve)},G=M.prefixCls,te=M.className,q=M.children,se=M.style,re=r(M,["prefixCls","className","children","style"]),xe=U("radio",G),Oe=v()({},re);X&&(Oe.name=X.name,Oe.onChange=Q,Oe.checked=M.value===X.value,Oe.disabled=M.disabled||X.disabled);var Me=u()(te,(P={},f()(P,"".concat(xe,"-wrapper"),!0),f()(P,"".concat(xe,"-wrapper-checked"),Oe.checked),f()(P,"".concat(xe,"-wrapper-disabled"),Oe.disabled),f()(P,"".concat(xe,"-wrapper-rtl"),K==="rtl"),P));return m.createElement("label",{className:Me,style:se,onMouseEnter:M.onMouseEnter,onMouseLeave:M.onMouseLeave},m.createElement(p.a,v()({},Oe,{prefixCls:xe,ref:V})),q!==void 0?m.createElement("span",null,q):null)},c=m.forwardRef(a);c.displayName="Radio",c.defaultProps={type:"radio"};var h=c,g=n("J4zp"),A=n.n(g),b=n("6cGi"),S=n("3Nzz"),E=m.forwardRef(function(k,M){var j=m.useContext(s.b),P=j.getPrefixCls,X=j.direction,F=m.useContext(S.b),U=Object(b.a)(k.defaultValue,{value:k.value}),K=A()(U,2),z=K[0],V=K[1],Q=function(q){var se=z,re=q.target.value;"value"in k||V(re);var xe=k.onChange;xe&&re!==se&&xe(q)},G=function(){var q,se=k.prefixCls,re=k.className,xe=re===void 0?"":re,Oe=k.options,Me=k.optionType,Qe=k.buttonStyle,Ve=k.disabled,ut=k.children,Fe=k.size,ue=k.style,et=k.id,he=k.onMouseEnter,J=k.onMouseLeave,Y=P("radio",se),$="".concat(Y,"-group"),de=ut;if(Oe&&Oe.length>0){var be=Me==="button"?"".concat(Y,"-button"):Y;de=Oe.map(function(fe){return typeof fe=="string"?m.createElement(h,{ref:M,key:fe,prefixCls:be,disabled:Ve,value:fe,checked:z===fe},fe):m.createElement(h,{ref:M,key:"radio-group-value-options-".concat(fe.value),prefixCls:be,disabled:fe.disabled||Ve,value:fe.value,checked:z===fe.value,style:fe.style},fe.label)})}var Ce=Fe||F,Be=u()($,"".concat($,"-").concat(Qe),(q={},f()(q,"".concat($,"-").concat(Ce),Ce),f()(q,"".concat($,"-rtl"),X==="rtl"),q),xe);return m.createElement("div",{className:Be,style:ue,onMouseEnter:he,onMouseLeave:J,id:et},de)};return m.createElement(t,{value:{onChange:Q,value:z,disabled:k.disabled,name:k.name}},G())});E.defaultProps={buttonStyle:"outline"};var C=m.memo(E),_=function(k,M){var j={};for(var P in k)Object.prototype.hasOwnProperty.call(k,P)&&M.indexOf(P)<0&&(j[P]=k[P]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,P=Object.getOwnPropertySymbols(k);X<P.length;X++)M.indexOf(P[X])<0&&Object.prototype.propertyIsEnumerable.call(k,P[X])&&(j[P[X]]=k[P[X]]);return j},T=function(M,j){var P=m.useContext(o),X=m.useContext(s.b),F=X.getPrefixCls,U=M.prefixCls,K=_(M,["prefixCls"]),z=F("radio-button",U);return P&&(K.checked=M.value===P.value,K.disabled=M.disabled||P.disabled),m.createElement(h,v()({prefixCls:z},K,{type:"radio",ref:j}))},w=m.forwardRef(T),O=h;O.Button=w,O.Group=C;var I=D.a=O},A1Ka:function(R,D,n){var y=n("bLfw"),f=n("sS/r"),x=n("D5nY"),v=x.detectSourceFormat,m=n("k9D9"),p=m.SERIES_LAYOUT_BY_COLUMN;y.extend({type:"dataset",defaultOption:{seriesLayoutBy:p,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){v(this)}}),f.extend({type:"dataset"})},A90E:function(R,D,n){var y=n("6sVZ"),f=n("V6Ve"),x=Object.prototype,v=x.hasOwnProperty;function m(p){if(!y(p))return f(p);var d=[];for(var u in Object(p))v.call(p,u)&&u!="constructor"&&d.push(u);return d}R.exports=m},ABKa:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("Qs9O")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="FolderOutlined";var i=v.forwardRef(s);D.default=i},AE9C:function(R,D,n){var y=n("bYtY"),f=n("crZl"),x=n("IwbS"),v=n("oVpE"),m=v.createSymbol,p=n("+TT/"),d=n("y7Aq"),u=f.extend({type:"visualMap.piecewise",doRender:function(){var i=this.group;i.removeAll();var t=this.visualMapModel,o=t.get("textGap"),e=t.textStyleModel,l=e.getFont(),r=e.getTextColor(),a=this._getItemAlign(),c=t.itemSize,h=this._getViewData(),g=h.endsText,A=y.retrieve(t.get("showLabel",!0),!g);g&&this._renderEndsText(i,g[0],c,A,a),y.each(h.viewPieceList,b,this),g&&this._renderEndsText(i,g[1],c,A,a),p.box(t.get("orient"),i,t.get("itemGap")),this.renderBackground(i),this.positionGroup(i);function b(S){var E=S.piece,C=new x.Group;C.onclick=y.bind(this._onItemClick,this,E),this._enableHoverLink(C,S.indexInModelPieceList);var _=t.getRepresentValue(E);if(this._createItemSymbol(C,_,[0,0,c[0],c[1]]),A){var T=this.visualMapModel.getValueState(_);C.add(new x.Text({style:{x:a==="right"?-o:c[0]+o,y:c[1]/2,text:E.text,textVerticalAlign:"middle",textAlign:a,textFont:l,textFill:r,opacity:T==="outOfRange"?.5:1}}))}i.add(C)}},_enableHoverLink:function(i,t){i.on("mouseover",y.bind(o,this,"highlight")).on("mouseout",y.bind(o,this,"downplay"));function o(e){var l=this.visualMapModel;l.option.hoverLink&&this.api.dispatchAction({type:e,batch:d.makeHighDownBatch(l.findTargetDataIndices(t),l)})}},_getItemAlign:function(){var i=this.visualMapModel,t=i.option;if(t.orient==="vertical")return d.getItemAlign(i,this.api,i.itemSize);var o=t.align;return(!o||o==="auto")&&(o="left"),o},_renderEndsText:function(i,t,o,e,l){if(!t)return;var r=new x.Group,a=this.visualMapModel.textStyleModel;r.add(new x.Text({style:{x:e?l==="right"?o[0]:0:o[0]/2,y:o[1]/2,textVerticalAlign:"middle",textAlign:e?l:"center",text:t,textFont:a.getFont(),textFill:a.getTextColor()}})),i.add(r)},_getViewData:function(){var i=this.visualMapModel,t=y.map(i.getPieceList(),function(r,a){return{piece:r,indexInModelPieceList:a}}),o=i.get("text"),e=i.get("orient"),l=i.get("inverse");return(e==="horizontal"?l:!l)?t.reverse():o&&(o=o.slice().reverse()),{viewPieceList:t,endsText:o}},_createItemSymbol:function(i,t,o){i.add(m(this.getControllerVisual(t,"symbol"),o[0],o[1],o[2],o[3],this.getControllerVisual(t,"color")))},_onItemClick:function(i){var t=this.visualMapModel,o=t.option,e=y.clone(o.selected),l=t.getSelectedMapKey(i);o.selectedMode==="single"?(e[l]=!0,y.each(e,function(r,a){e[a]=a===l})):e[l]=!e[l],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:e})}}),s=u;R.exports=s},AEZ6:function(R,D,n){var y=n("bYtY"),f=y.each,x=y.createHashMap,v=n("T4UG"),m=n("MwEJ"),p=v.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(s,i){var t=this.getSource();return d(t,this),m(t,this)},getRawIndicesByActiveState:function(s){var i=this.coordinateSystem,t=this.getData(),o=[];return i.eachActiveState(t,function(e,l){s===e&&o.push(t.getRawIndex(l))}),o},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function d(s,i){if(s.encodeDefine)return;var t=i.ecModel.getComponent("parallel",i.get("parallelIndex"));if(!t)return;var o=s.encodeDefine=x();f(t.dimensions,function(e){var l=u(e);o.set(e,l)})}function u(s){return+s.replace("dim","")}R.exports=p},AH3D:function(R,D,n){var y=n("ProS");n("y4/Y"),n("qWt2"),n("Qvb6"),y.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),y.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},ALo7:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("5GtS"),v=n("4NO4"),m=v.defaultEmphasis,p=n("D5nY"),d=p.makeSeriesEncodeForNameBased,u=n("xKMd"),s=y.extendSeriesModel({type:"series.funnel",init:function(t){s.superApply(this,"init",arguments),this.legendVisualProvider=new u(f.bind(this.getData,this),f.bind(this.getRawData,this)),this._defaultLabelLine(t)},getInitialData:function(t,o){return x(this,{coordDimensions:["value"],encodeDefaulter:f.curry(d,this)})},_defaultLabelLine:function(t){m(t,"labelLine",["show"]);var o=t.labelLine,e=t.emphasis.labelLine;o.show=o.show&&t.label.show,e.show=e.show&&t.emphasis.label.show},getDataParams:function(t){var o=this.getData(),e=s.superCall(this,"getDataParams",t),l=o.mapDimension("value"),r=o.getSum(l);return e.percent=r?+(o.get(l,t)/r*100).toFixed(2):0,e.$vars.push("percent"),e},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),i=s;R.exports=i},ALsQ:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("OLod"))})(this,function(y){return y.mode.CFB=function(){var f=y.lib.BlockCipherMode.extend();f.Encryptor=f.extend({processBlock:function(m,p){var d=this._cipher,u=d.blockSize;x.call(this,m,p,u,d),this._prevBlock=m.slice(p,p+u)}}),f.Decryptor=f.extend({processBlock:function(m,p){var d=this._cipher,u=d.blockSize,s=m.slice(p,p+u);x.call(this,m,p,u,d),this._prevBlock=s}});function x(v,m,p,d){var u,s=this._iv;s?(u=s.slice(0),this._iv=void 0):u=this._prevBlock,d.encryptBlock(u,0);for(var i=0;i<p;i++)v[m+i]^=u[i]}return f}(),y.mode.CFB})},ANjR:function(R,D,n){var y=n("bYtY");function f(v,m){return m=m||[0,0],y.map([0,1],function(p){var d=m[p],u=v[p]/2,s=[],i=[];return s[p]=d-u,i[p]=d+u,s[1-p]=i[1-p]=m[1-p],Math.abs(this.dataToPoint(s)[p]-this.dataToPoint(i)[p])},this)}function x(v){var m=v.getBoundingRect();return{coordSys:{type:"geo",x:m.x,y:m.y,width:m.width,height:m.height,zoom:v.getZoom()},api:{coord:function(p){return v.dataToPoint(p)},size:y.bind(f,v)}}}R.exports=x},AOa7:function(R,D,n){},AUH6:function(R,D,n){var y=n("bYtY"),f=n("mFDi"),x=n("bMXI"),v=n("W4dC");function m(u,s,i,t){x.call(this,u),this.map=s;var o=v.load(s,i);this._nameCoordMap=o.nameCoordMap,this._regionsMap=o.regionsMap,this._invertLongitute=t==null?!0:t,this.regions=o.regions,this._rect=o.boundingRect}m.prototype={constructor:m,type:"geo",dimensions:["lng","lat"],containCoord:function(u){for(var s=this.regions,i=0;i<s.length;i++)if(s[i].contain(u))return!0;return!1},transformTo:function(u,s,i,t){var o=this.getBoundingRect(),e=this._invertLongitute;o=o.clone(),e&&(o.y=-o.y-o.height);var l=this._rawTransformable;if(l.transform=o.calculateTransform(new f(u,s,i,t)),l.decomposeTransform(),e){var r=l.scale;r[1]=-r[1]}l.updateTransform(),this._updateTransform()},getRegion:function(u){return this._regionsMap.get(u)},getRegionByCoord:function(u){for(var s=this.regions,i=0;i<s.length;i++)if(s[i].contain(u))return s[i]},addGeoCoord:function(u,s){this._nameCoordMap.set(u,s)},getGeoCoord:function(u){return this._nameCoordMap.get(u)},getBoundingRect:function(){return this._rect},dataToPoint:function(u,s,i){if(typeof u=="string"&&(u=this.getGeoCoord(u)),u)return x.prototype.dataToPoint.call(this,u,s,i)},convertToPixel:y.curry(p,"dataToPoint"),convertFromPixel:y.curry(p,"pointToData")},y.mixin(m,x);function p(u,s,i,t){var o=i.geoModel,e=i.seriesModel,l=o?o.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return l===this?l[u](t):null}var d=m;R.exports=d},AVZG:function(R,D,n){var y=n("bYtY");function f(x,v,m){m=m||{};var p=x.coordinateSystem,d=v.axis,u={},s=d.getAxesOnZeroOf()[0],i=d.position,t=s?"onZero":i,o=d.dim,e=p.getRect(),l=[e.x,e.x+e.width,e.y,e.y+e.height],r={left:0,right:1,top:0,bottom:1,onZero:2},a=v.get("offset")||0,c=o==="x"?[l[2]-a,l[3]+a]:[l[0]-a,l[1]+a];if(s){var h=s.toGlobalCoord(s.dataToCoord(0));c[r.onZero]=Math.max(Math.min(h,c[1]),c[0])}u.position=[o==="y"?c[r[t]]:l[0],o==="x"?c[r[t]]:l[3]],u.rotation=Math.PI/2*(o==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};u.labelDirection=u.tickDirection=u.nameDirection=g[i],u.labelOffset=s?c[r[i]]-c[r.onZero]:0,v.get("axisTick.inside")&&(u.tickDirection=-u.tickDirection),y.retrieve(m.labelInside,v.get("axisLabel.inside"))&&(u.labelDirection=-u.labelDirection);var A=v.get("axisLabel.rotate");return u.labelRotate=t==="top"?-A:A,u.z2=1,u}D.layout=f},"Ae+d":function(R,D){function n(f,x,v){var m=f.target,p=m.position;p[0]+=x,p[1]+=v,m.dirty()}function y(f,x,v,m){var p=f.target,d=f.zoomLimit,u=p.position,s=p.scale,i=f.zoom=f.zoom||1;if(i*=x,d){var t=d.min||0,o=d.max||Infinity;i=Math.max(Math.min(o,i),t)}var e=i/f.zoom;f.zoom=i,u[0]-=(v-u[0])*(e-1),u[1]-=(m-u[1])*(e-1),s[0]*=e,s[1]*=e,p.dirty()}D.updateViewOnPan=n,D.updateViewOnZoom=y},Ae16:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("IwbS");n("Wqna"),n("rySg"),y.extendComponentView({type:"grid",render:function(v,m){this.group.removeAll(),v.get("show")&&this.group.add(new x.Rect({shape:v.coordinateSystem.getRect(),style:f.defaults({fill:v.get("backgroundColor")},v.getItemStyle()),silent:!0,z2:-1}))}}),y.registerPreprocessor(function(v){v.xAxis&&v.yAxis&&!v.grid&&(v.grid={})})},Awhp:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("PQMj"),v=n.n(x)},"B+YJ":function(R,D,n){n("TYVI"),n("p1MT")},"B6l+":function(R,D,n){var y=n("Sq3C"),f=n("Z1HP"),x=n("Sxd8"),v=n("dt0z");function m(p,d,u){p=v(p),d=x(d);var s=d?f(p):0;return d&&s<d?p+y(d-s,u):p}R.exports=m},B8du:function(R,D){function n(){return!1}R.exports=n},B9cy:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("0XgM"),v=n.n(x)},B9fm:function(R,D,n){var y=n("bYtY"),f=n("Qe9p"),x=n("YH21"),v=n("Ze12"),m=n("ItGF"),p=n("7aKB"),d=y.each,u=p.toCamelCase,s=["","-webkit-","-moz-","-o-"],i="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function t(c){var h="cubic-bezier(0.23, 1, 0.32, 1)",g="left "+c+"s "+h+",top "+c+"s "+h;return y.map(s,function(A){return A+"transition:"+g}).join(";")}function o(c){var h=[],g=c.get("fontSize"),A=c.getTextColor();return A&&h.push("color:"+A),h.push("font:"+c.getFont()),g&&h.push("line-height:"+Math.round(g*3/2)+"px"),d(["decoration","align"],function(b){var S=c.get(b);S&&h.push("text-"+b+":"+S)}),h.join(";")}function e(c){var h=[],g=c.get("transitionDuration"),A=c.get("backgroundColor"),b=c.getModel("textStyle"),S=c.get("padding");return g&&h.push(t(g)),A&&(m.canvasSupported?h.push("background-Color:"+A):(h.push("background-Color:#"+f.toHex(A)),h.push("filter:alpha(opacity=70)"))),d(["width","color","radius"],function(E){var C="border-"+E,_=u(C),T=c.get(_);T!=null&&h.push(C+":"+T+(E==="color"?"":"px"))}),h.push(o(b)),S!=null&&h.push("padding:"+p.normalizeCssArray(S).join("px ")+"px"),h.join(";")+";"}function l(c,h,g,A,b){var S=h&&h.painter;if(g){var E=S&&S.getViewportRoot();E&&v.transformLocalCoord(c,E,document.body,A,b)}else{c[0]=A,c[1]=b;var C=S&&S.getViewportRootOffset();C&&(c[0]+=C.offsetLeft,c[1]+=C.offsetTop)}}function r(c,h,g){if(m.wxa)return null;var A=document.createElement("div");A.domBelongToZr=!0,this.el=A;var b=this._zr=h.getZr(),S=this._appendToBody=g&&g.appendToBody;this._styleCoord=[0,0],l(this._styleCoord,b,S,h.getWidth()/2,h.getHeight()/2),S?document.body.appendChild(A):c.appendChild(A),this._container=c,this._show=!1,this._hideTimeout;var E=this;A.onmouseenter=function(){E._enterable&&(clearTimeout(E._hideTimeout),E._show=!0),E._inContent=!0},A.onmousemove=function(C){if(C=C||window.event,!E._enterable){var _=b.handler,T=b.painter.getViewportRoot();x.normalizeEvent(T,C,!0),_.dispatch("mousemove",C)}},A.onmouseleave=function(){E._enterable&&(E._show&&E.hideLater(E._hideDelay)),E._inContent=!1}}r.prototype={constructor:r,_enterable:!0,update:function(){var c=this._container,h=c.currentStyle||document.defaultView.getComputedStyle(c),g=c.style;g.position!=="absolute"&&h.position!=="absolute"&&(g.position="relative")},show:function(c){clearTimeout(this._hideTimeout);var h=this.el,g=this._styleCoord;h.style.cssText=i+e(c)+";left:"+g[0]+"px;top:"+g[1]+"px;"+(c.get("extraCssText")||""),h.style.display=h.innerHTML?"block":"none",h.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(c){this.el.innerHTML=c==null?"":c},setEnterable:function(c){this._enterable=c},getSize:function(){var c=this.el;return[c.clientWidth,c.clientHeight]},moveTo:function(c,h){var g=this._styleCoord;l(g,this._zr,this._appendToBody,c,h);var A=this.el.style;A.left=g[0]+"px",A.top=g[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(c){this._show&&!(this._inContent&&this._enterable)&&(c?(this._hideDelay=c,this._show=!1,this._hideTimeout=setTimeout(y.bind(this.hide,this),c)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var c=this.el.clientWidth,h=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var g=document.defaultView.getComputedStyle(this.el);g&&(c+=parseInt(g.borderLeftWidth,10)+parseInt(g.borderRightWidth,10),h+=parseInt(g.borderTopWidth,10)+parseInt(g.borderBottomWidth,10))}return{width:c,height:h}}};var a=r;R.exports=a},BPZU:function(R,D){var n=32,y=7,f=256;function x(t){for(var o=0;t>=n;)o|=t&1,t>>=1;return t+o}function v(t,o,e,l){var r=o+1;if(r===e)return 1;if(l(t[r++],t[o])<0){for(;r<e&&l(t[r],t[r-1])<0;)r++;m(t,o,r)}else for(;r<e&&l(t[r],t[r-1])>=0;)r++;return r-o}function m(t,o,e){for(e--;o<e;){var l=t[o];t[o++]=t[e],t[e--]=l}}function p(t,o,e,l,r){for(l===o&&l++;l<e;l++){for(var a=t[l],c=o,h=l,g;c<h;)g=c+h>>>1,r(a,t[g])<0?h=g:c=g+1;var A=l-c;switch(A){case 3:t[c+3]=t[c+2];case 2:t[c+2]=t[c+1];case 1:t[c+1]=t[c];break;default:for(;A>0;)t[c+A]=t[c+A-1],A--}t[c]=a}}function d(t,o,e,l,r,a){var c=0,h=0,g=1;if(a(t,o[e+r])>0){for(h=l-r;g<h&&a(t,o[e+r+g])>0;)c=g,g=(g<<1)+1,g<=0&&(g=h);g>h&&(g=h),c+=r,g+=r}else{for(h=r+1;g<h&&a(t,o[e+r-g])<=0;)c=g,g=(g<<1)+1,g<=0&&(g=h);g>h&&(g=h);var A=c;c=r-g,g=r-A}for(c++;c<g;){var b=c+(g-c>>>1);a(t,o[e+b])>0?c=b+1:g=b}return g}function u(t,o,e,l,r,a){var c=0,h=0,g=1;if(a(t,o[e+r])<0){for(h=r+1;g<h&&a(t,o[e+r-g])<0;)c=g,g=(g<<1)+1,g<=0&&(g=h);g>h&&(g=h);var A=c;c=r-g,g=r-A}else{for(h=l-r;g<h&&a(t,o[e+r+g])>=0;)c=g,g=(g<<1)+1,g<=0&&(g=h);g>h&&(g=h),c+=r,g+=r}for(c++;c<g;){var b=c+(g-c>>>1);a(t,o[e+b])<0?g=b:c=b+1}return g}function s(t,o){var e=y,l=0,r=f,a=0,c,h,g=0;l=t.length,l<2*f&&(r=l>>>1);var A=[];a=l<120?5:l<1542?10:l<119151?19:40,c=[],h=[];function b(w,O){c[g]=w,h[g]=O,g+=1}function S(){for(;g>1;){var w=g-2;if(w>=1&&h[w-1]<=h[w]+h[w+1]||w>=2&&h[w-2]<=h[w]+h[w-1])h[w-1]<h[w+1]&&w--;else if(h[w]>h[w+1])break;C(w)}}function E(){for(;g>1;){var w=g-2;w>0&&h[w-1]<h[w+1]&&w--,C(w)}}function C(w){var O=c[w],I=h[w],k=c[w+1],M=h[w+1];h[w]=I+M,w===g-3&&(c[w+1]=c[w+2],h[w+1]=h[w+2]),g--;var j=u(t[k],t,O,I,0,o);if(O+=j,I-=j,I===0)return;if(M=d(t[O+I-1],t,k,M,M-1,o),M===0)return;I<=M?_(O,I,k,M):T(O,I,k,M)}function _(w,O,I,k){var M=0;for(M=0;M<O;M++)A[M]=t[w+M];var j=0,P=I,X=w;if(t[X++]=t[P++],--k===0){for(M=0;M<O;M++)t[X+M]=A[j+M];return}if(O===1){for(M=0;M<k;M++)t[X+M]=t[P+M];t[X+k]=A[j];return}for(var F=e,U,K,z;;){U=0,K=0,z=!1;do if(o(t[P],A[j])<0){if(t[X++]=t[P++],K++,U=0,--k===0){z=!0;break}}else if(t[X++]=A[j++],U++,K=0,--O===1){z=!0;break}while((U|K)<F);if(z)break;do{if(U=u(t[P],A,j,O,0,o),U!==0){for(M=0;M<U;M++)t[X+M]=A[j+M];if(X+=U,j+=U,O-=U,O<=1){z=!0;break}}if(t[X++]=t[P++],--k===0){z=!0;break}if(K=d(A[j],t,P,k,0,o),K!==0){for(M=0;M<K;M++)t[X+M]=t[P+M];if(X+=K,P+=K,k-=K,k===0){z=!0;break}}if(t[X++]=A[j++],--O===1){z=!0;break}F--}while(U>=y||K>=y);if(z)break;F<0&&(F=0),F+=2}if(e=F,e<1&&(e=1),O===1){for(M=0;M<k;M++)t[X+M]=t[P+M];t[X+k]=A[j]}else{if(O===0)throw new Error;for(M=0;M<O;M++)t[X+M]=A[j+M]}}function T(w,O,I,k){var M=0;for(M=0;M<k;M++)A[M]=t[I+M];var j=w+O-1,P=k-1,X=I+k-1,F=0,U=0;if(t[X--]=t[j--],--O===0){for(F=X-(k-1),M=0;M<k;M++)t[F+M]=A[M];return}if(k===1){for(X-=O,j-=O,U=X+1,F=j+1,M=O-1;M>=0;M--)t[U+M]=t[F+M];t[X]=A[P];return}for(var K=e;;){var z=0,V=0,Q=!1;do if(o(A[P],t[j])<0){if(t[X--]=t[j--],z++,V=0,--O===0){Q=!0;break}}else if(t[X--]=A[P--],V++,z=0,--k===1){Q=!0;break}while((z|V)<K);if(Q)break;do{if(z=O-u(A[P],t,w,O,O-1,o),z!==0){for(X-=z,j-=z,O-=z,U=X+1,F=j+1,M=z-1;M>=0;M--)t[U+M]=t[F+M];if(O===0){Q=!0;break}}if(t[X--]=A[P--],--k===1){Q=!0;break}if(V=k-d(t[j],A,0,k,k-1,o),V!==0){for(X-=V,P-=V,k-=V,U=X+1,F=P+1,M=0;M<V;M++)t[U+M]=A[F+M];if(k<=1){Q=!0;break}}if(t[X--]=t[j--],--O===0){Q=!0;break}K--}while(z>=y||V>=y);if(Q)break;K<0&&(K=0),K+=2}if(e=K,e<1&&(e=1),k===1){for(X-=O,j-=O,U=X+1,F=j+1,M=O-1;M>=0;M--)t[U+M]=t[F+M];t[X]=A[P]}else{if(k===0)throw new Error;for(F=X-(k-1),M=0;M<k;M++)t[F+M]=A[M]}}this.mergeRuns=S,this.forceMergeRuns=E,this.pushRun=b}function i(t,o,e,l){e||(e=0),l||(l=t.length);var r=l-e;if(r<2)return;var a=0;if(r<n){a=v(t,e,l,o),p(t,e,l,e+a,o);return}var c=new s(t,o),h=x(r);do{if(a=v(t,e,l,o),a<h){var g=r;g>h&&(g=h),p(t,e,e+g,e+a,o),a=g}c.pushRun(e,a),c.mergeRuns(),r-=a,e+=a}while(r!==0);c.forceMergeRuns()}R.exports=i},Bd2K:function(R,D,n){(function(y){y(n("VrN/"),n("osHv"))})(function(y){y.defineOption("autoCloseTags",!1,function(s,i,t){if(t!=y.Init&&t&&s.removeKeyMap("autoCloseTags"),!i)return;var o={name:"autoCloseTags"};(typeof i!="object"||i.whenClosing!==!1)&&(o["'/'"]=function(e){return p(e)}),(typeof i!="object"||i.whenOpening!==!1)&&(o["'>'"]=function(e){return v(e)}),s.addKeyMap(o)});var f=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],x=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function v(s){if(s.getOption("disableInput"))return y.Pass;for(var i=s.listSelections(),t=[],o=s.getOption("autoCloseTags"),e=0;e<i.length;e++){if(!i[e].empty())return y.Pass;var l=i[e].head,r=s.getTokenAt(l),a=y.innerMode(s.getMode(),r.state),c=a.state,h=a.mode.xmlCurrentTag&&a.mode.xmlCurrentTag(c),g=h&&h.name;if(!g)return y.Pass;var A=a.mode.configuration=="html",b=typeof o=="object"&&o.dontCloseTags||A&&f,S=typeof o=="object"&&o.indentTags||A&&x;r.end>l.ch&&(g=g.slice(0,g.length-r.end+l.ch));var E=g.toLowerCase();if(!g||r.type=="string"&&(r.end!=l.ch||!/[\"\']/.test(r.string.charAt(r.string.length-1))||r.string.length==1)||r.type=="tag"&&h.close||r.string.indexOf("/")==l.ch-r.start-1||b&&d(b,E)>-1||u(s,a.mode.xmlCurrentContext&&a.mode.xmlCurrentContext(c)||[],g,l,!0))return y.Pass;var C=typeof o=="object"&&o.emptyTags;if(C&&d(C,g)>-1){t[e]={text:"/>",newPos:y.Pos(l.line,l.ch+2)};continue}var _=S&&d(S,E)>-1;t[e]={indent:_,text:">"+(_?`
|
|
|
|
|
|
`:"")+"</"+g+">",newPos:_?y.Pos(l.line+1,0):y.Pos(l.line,l.ch+1)}}for(var T=typeof o=="object"&&o.dontIndentOnAutoClose,e=i.length-1;e>=0;e--){var w=t[e];s.replaceRange(w.text,i[e].head,i[e].anchor,"+insert");var O=s.listSelections().slice(0);O[e]={head:w.newPos,anchor:w.newPos},s.setSelections(O),!T&&w.indent&&(s.indentLine(w.newPos.line,null,!0),s.indentLine(w.newPos.line+1,null,!0))}}function m(s,i){for(var t=s.listSelections(),o=[],e=i?"/":"</",l=s.getOption("autoCloseTags"),r=typeof l=="object"&&l.dontIndentOnSlash,a=0;a<t.length;a++){if(!t[a].empty())return y.Pass;var c=t[a].head,h=s.getTokenAt(c),g=y.innerMode(s.getMode(),h.state),A=g.state;if(i&&(h.type=="string"||h.string.charAt(0)!="<"||h.start!=c.ch-1))return y.Pass;var b,S=g.mode.name!="xml"&&s.getMode().name=="htmlmixed";if(S&&g.mode.name=="javascript")b=e+"script";else if(S&&g.mode.name=="css")b=e+"style";else{var E=g.mode.xmlCurrentContext&&g.mode.xmlCurrentContext(A);if(!E||E.length&&u(s,E,E[E.length-1],c))return y.Pass;b=e+E[E.length-1]}s.getLine(c.line).charAt(h.end)!=">"&&(b+=">"),o[a]=b}if(s.replaceSelections(o),t=s.listSelections(),!r)for(var a=0;a<t.length;a++)(a==t.length-1||t[a].head.line<t[a+1].head.line)&&s.indentLine(t[a].head.line)}function p(s){return s.getOption("disableInput")?y.Pass:m(s,!0)}y.commands.closeTag=function(s){return m(s)};function d(s,i){if(s.indexOf)return s.indexOf(i);for(var t=0,o=s.length;t<o;++t)if(s[t]==i)return t;return-1}function u(s,i,t,o,e){if(!y.scanForClosingTag)return!1;var l=Math.min(s.lastLine()+1,o.line+500),r=y.scanForClosingTag(s,o,null,l);if(!r||r.tag!=t)return!1;for(var a=e?1:0,c=i.length-1;c>=0&&i[c]==t;c--)++a;o=r.to;for(var c=1;c<a;c++){var h=y.scanForClosingTag(s,o,null,l);if(!h||h.tag!=t)return!1;o=h.to}return!0}})},BlVb:function(R,D,n){var y=n("hyiK"),f=1e-8;function x(m,p){return Math.abs(m-p)<f}function v(m,p,d){var u=0,s=m[0];if(!s)return!1;for(var i=1;i<m.length;i++){var t=m[i];u+=y(s[0],s[1],t[0],t[1],p,d),s=t}var o=m[0];return(!x(s[0],o[0])||!x(s[1],o[1]))&&(u+=y(s[0],s[1],o[0],o[1],p,d)),u!==0}D.contain=v},BoS7:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("czTT"),v=n.n(x)},Bq2U:function(R,D,n){var y=n("RDYZ"),f=n("Qe9p"),x=n("bYtY"),v=x.isArrayLike,m=Array.prototype.slice;function p(b,S){return b[S]}function d(b,S,E){b[S]=E}function u(b,S,E){return(S-b)*E+b}function s(b,S,E){return E>.5?S:b}function i(b,S,E,C,_){var T=b.length;if(_===1)for(var w=0;w<T;w++)C[w]=u(b[w],S[w],E);else for(var O=T&&b[0].length,w=0;w<T;w++)for(var I=0;I<O;I++)C[w][I]=u(b[w][I],S[w][I],E)}function t(b,S,E){var C=b.length,_=S.length;if(C!==_){var T=C>_;if(T)b.length=_;else for(var w=C;w<_;w++)b.push(E===1?S[w]:m.call(S[w]))}for(var O=b[0]&&b[0].length,w=0;w<b.length;w++)if(E===1)isNaN(b[w])&&(b[w]=S[w]);else for(var I=0;I<O;I++)isNaN(b[w][I])&&(b[w][I]=S[w][I])}function o(b,S,E){if(b===S)return!0;var C=b.length;if(C!==S.length)return!1;if(E===1){for(var _=0;_<C;_++)if(b[_]!==S[_])return!1}else for(var T=b[0].length,_=0;_<C;_++)for(var w=0;w<T;w++)if(b[_][w]!==S[_][w])return!1;return!0}function e(b,S,E,C,_,T,w,O,I){var k=b.length;if(I===1)for(var M=0;M<k;M++)O[M]=l(b[M],S[M],E[M],C[M],_,T,w);else for(var j=b[0].length,M=0;M<k;M++)for(var P=0;P<j;P++)O[M][P]=l(b[M][P],S[M][P],E[M][P],C[M][P],_,T,w)}function l(b,S,E,C,_,T,w){var O=(E-b)*.5,I=(C-S)*.5;return(2*(S-E)+O+I)*w+(-3*(S-E)-2*O-I)*T+O*_+S}function r(b){if(v(b)){var S=b.length;if(v(b[0])){for(var E=[],C=0;C<S;C++)E.push(m.call(b[C]));return E}return m.call(b)}return b}function a(b){return b[0]=Math.floor(b[0]),b[1]=Math.floor(b[1]),b[2]=Math.floor(b[2]),"rgba("+b.join(",")+")"}function c(b){var S=b[b.length-1].value;return v(S&&S[0])?2:1}function h(b,S,E,C,_,T){var w=b._getter,O=b._setter,I=S==="spline",k=C.length;if(!k)return;var M=C[0].value,j=v(M),P=!1,X=!1,F=j?c(C):0,U;C.sort(function(J,Y){return J.time-Y.time}),U=C[k-1].time;for(var K=[],z=[],V=C[0].value,Q=!0,G=0;G<k;G++){K.push(C[G].time/U);var te=C[G].value;if(j&&o(te,V,F)||!j&&te===V||(Q=!1),V=te,typeof te=="string"){var q=f.parse(te);q?(te=q,P=!0):X=!0}z.push(te)}if(!T&&Q)return;for(var se=z[k-1],G=0;G<k-1;G++)j?t(z[G],se,F):isNaN(z[G])&&!isNaN(se)&&!X&&!P&&(z[G]=se);j&&t(w(b._target,_),se,F);var re=0,xe=0,Oe,Me,Qe,Ve,ut,Fe;if(P)var ue=[0,0,0,0];var et=function(Y,$){var de;if($<0)de=0;else if($<xe){for(Oe=Math.min(re+1,k-1),de=Oe;de>=0&&!(K[de]<=$);de--);de=Math.min(de,k-2)}else{for(de=re;de<k&&!(K[de]>$);de++);de=Math.min(de-1,k-2)}re=de,xe=$;var be=K[de+1]-K[de];if(be===0)return;if(Me=($-K[de])/be,I)if(Ve=z[de],Qe=z[de===0?de:de-1],ut=z[de>k-2?k-1:de+1],Fe=z[de>k-3?k-1:de+2],j)e(Qe,Ve,ut,Fe,Me,Me*Me,Me*Me*Me,w(Y,_),F);else{var Ce;if(P)Ce=e(Qe,Ve,ut,Fe,Me,Me*Me,Me*Me*Me,ue,1),Ce=a(ue);else{if(X)return s(Ve,ut,Me);Ce=l(Qe,Ve,ut,Fe,Me,Me*Me,Me*Me*Me)}O(Y,_,Ce)}else if(j)i(z[de],z[de+1],Me,w(Y,_),F);else{var Ce;if(P)i(z[de],z[de+1],Me,ue,1),Ce=a(ue);else{if(X)return s(z[de],z[de+1],Me);Ce=u(z[de],z[de+1],Me)}O(Y,_,Ce)}},he=new y({target:b._target,life:U,loop:b._loop,delay:b._delay,onframe:et,ondestroy:E});return S&&S!=="spline"&&(he.easing=S),he}var g=function(S,E,C,_){this._tracks={},this._target=S,this._loop=E||!1,this._getter=C||p,this._setter=_||d,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};g.prototype={when:function(S,E){var C=this._tracks;for(var _ in E){if(!E.hasOwnProperty(_))continue;if(!C[_]){C[_]=[];var T=this._getter(this._target,_);if(T==null)continue;S!==0&&C[_].push({time:0,value:r(T)})}C[_].push({time:S,value:E[_]})}return this},during:function(S){return this._onframeList.push(S),this},pause:function(){for(var S=0;S<this._clipList.length;S++)this._clipList[S].pause();this._paused=!0},resume:function(){for(var S=0;S<this._clipList.length;S++)this._clipList[S].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var S=this._doneList,E=S.length,C=0;C<E;C++)S[C].call(this)},start:function(S,E){var C=this,_=0,T=function(){_--,_||C._doneCallback()},w;for(var O in this._tracks){if(!this._tracks.hasOwnProperty(O))continue;var I=h(this,S,T,this._tracks[O],O,E);I&&(this._clipList.push(I),_++,this.animation&&this.animation.addClip(I),w=I)}if(w){var k=w.onframe;w.onframe=function(M,j){k(M,j);for(var P=0;P<C._onframeList.length;P++)C._onframeList[P](M,j)}}return _||this._doneCallback(),this},stop:function(S){for(var E=this._clipList,C=this.animation,_=0;_<E.length;_++){var T=E[_];S&&T.onframe(this._target,1),C&&C.removeClip(T)}E.length=0},delay:function(S){return this._delay=S,this},done:function(S){return S&&this._doneList.push(S),this},getClips:function(){return this._clipList}};var A=g;R.exports=A},Bqw1:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};D.default=y},Bsck:function(R,D,n){var y=n("bYtY"),f=n("Qxkt"),x=n("Mdki"),v=n("YXkt"),m=n("sdST"),p=function(i,t){this.name=i||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=t};p.prototype={constructor:p,isRemoved:function(){return this.dataIndex<0},eachNode:function(i,t,o){typeof i=="function"&&(o=t,t=i,i=null),i=i||{},y.isString(i)&&(i={order:i});var e=i.order||"preorder",l=this[i.attr||"children"],r;e==="preorder"&&(r=t.call(o,this));for(var a=0;!r&&a<l.length;a++)l[a].eachNode(i,t,o);e==="postorder"&&t.call(o,this)},updateDepthAndHeight:function(i){var t=0;this.depth=i;for(var o=0;o<this.children.length;o++){var e=this.children[o];e.updateDepthAndHeight(i+1),e.height>t&&(t=e.height)}this.height=t+1},getNodeById:function(i){if(this.getId()===i)return this;for(var t=0,o=this.children,e=o.length;t<e;t++){var l=o[t].getNodeById(i);if(l)return l}},contains:function(i){if(i===this)return!0;for(var t=0,o=this.children,e=o.length;t<e;t++){var l=o[t].contains(i);if(l)return l}},getAncestors:function(i){for(var t=[],o=i?this:this.parentNode;o;)t.push(o),o=o.parentNode;return t.reverse(),t},getValue:function(i){var t=this.hostTree.data;return t.get(t.getDimension(i||"value"),this.dataIndex)},setLayout:function(i,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,i,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(i){if(this.dataIndex<0)return;var t=this.hostTree,o=t.data.getItemModel(this.dataIndex),e=this.getLevelModel();return e?o.getModel(i,e.getModel(i)):o.getModel(i)},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(i,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,i,t)},getVisual:function(i,t){return this.hostTree.data.getItemVisual(this.dataIndex,i,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(i){for(var t=i.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},isDescendantOf:function(i){return i!==this&&i.isAncestorOf(this)}};function d(i,t){this.root,this.data,this._nodes=[],this.hostModel=i,this.levelModels=y.map(t||[],function(o){return new f(o,i,i.ecModel)})}d.prototype={constructor:d,type:"tree",eachNode:function(i,t,o){this.root.eachNode(i,t,o)},getNodeByDataIndex:function(i){var t=this.data.getRawIndex(i);return this._nodes[t]},getNodeByName:function(i){return this.root.getNodeByName(i)},update:function(){for(var i=this.data,t=this._nodes,o=0,e=t.length;o<e;o++)t[o].dataIndex=-1;for(var o=0,e=i.count();o<e;o++)t[i.getRawIndex(o)].dataIndex=o},clearLayouts:function(){this.data.clearItemLayouts()}},d.createTree=function(i,t,o,e){var l=new d(t,o&&o.levels),r=[],a=1;c(i);function c(A,b){var S=A.value;a=Math.max(a,y.isArray(S)?S.length:1),r.push(A);var E=new p(A.name,l);b?u(E,b):l.root=E,l._nodes.push(E);var C=A.children;if(C)for(var _=0;_<C.length;_++)c(C[_],E)}l.root.updateDepthAndHeight(0);var h=m(r,{coordDimensions:["value"],dimensionsCount:a}),g=new v(h,t);return g.initData(r),e&&e(g),x({mainData:g,struct:l,structAttr:"tree"}),l.update(),l};function u(i,t){var o=t.children;if(i.parentNode===t)return;o.push(i),i.parentNode=t}var s=d;R.exports=s},BtR2:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="LikeOutlined";var d=D.a=f.forwardRef(p)},BuqR:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("bYtY"),v=n("6uqw"),m=n("XxSj"),p=n("YOMW"),d=n("OELB"),u=d.reformIntervals,s=v.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,l){s.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var r=this._mode=this._determineMode();i[this._mode].call(this),this._resetSelected(e,l);var a=this.option.categories;this.resetVisual(function(c,h){r==="categories"?(c.mappingMethod="category",c.categories=x.clone(a)):(c.dataExtent=this.getExtent(),c.mappingMethod="piecewise",c.pieceList=x.map(this._pieceList,function(g){var g=x.clone(g);return h!=="inRange"&&(g.visual=null),g}))})},completeVisualOption:function(){var e=this.option,l={},r=m.listVisualTypes(),a=this.isCategory();x.each(e.pieces,function(h){x.each(r,function(g){h.hasOwnProperty(g)&&(l[g]=1)})}),x.each(l,function(h,g){var A=0;x.each(this.stateList,function(b){A|=c(e,b,g)||c(e.target,b,g)},this),!A&&x.each(this.stateList,function(b){(e[b]||(e[b]={}))[g]=p.get(g,b==="inRange"?"active":"inactive",a)})},this);function c(h,g,A){return h&&h[g]&&(x.isObject(h[g])?h[g].hasOwnProperty(A):h[g]===A)}v.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,l){var r=this.option,a=this._pieceList,c=(l?r:e).selected||{};if(r.selected=c,x.each(a,function(g,A){var b=this.getSelectedMapKey(g);c.hasOwnProperty(b)||(c[b]=!0)},this),r.selectedMode==="single"){var h=!1;x.each(a,function(g,A){var b=this.getSelectedMapKey(g);c[b]&&(h?c[b]=!1:h=!0)},this)}},getSelectedMapKey:function(e){return this._mode==="categories"?e.value+"":e.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=x.clone(e)},getValueState:function(e){var l=m.findPieceIndex(e,this._pieceList);return l!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[l])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var l=[];return this.eachTargetSeries(function(r){var a=[],c=r.getData();c.each(this.getDataDimension(c),function(h,g){var A=m.findPieceIndex(h,this._pieceList);A===e&&a.push(g)},this),l.push({seriesId:r.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 r=e.interval||[];l=r[0]===-Infinity&&r[1]===Infinity?0:(r[0]+r[1])/2}return l},getVisualMeta:function(e){if(this.isCategory())return;var l=[],r=[],a=this;function c(b,S){var E=a.getRepresentValue({interval:b});S||(S=a.getValueState(E));var C=e(E,S);b[0]===-Infinity?r[0]=C:b[1]===Infinity?r[1]=C:l.push({value:b[0],color:C},{value:b[1],color:C})}var h=this._pieceList.slice();if(!h.length)h.push({interval:[-Infinity,Infinity]});else{var g=h[0].interval[0];g!==-Infinity&&h.unshift({interval:[-Infinity,g]}),g=h[h.length-1].interval[1],g!==Infinity&&h.push({interval:[g,Infinity]})}var A=-Infinity;return x.each(h,function(b){var S=b.interval;S&&(S[0]>A&&c([A,S[0]],"outOfRange"),c(S.slice()),A=S[1])},this),{stops:l,outerColors:r}}}),i={splitNumber:function(){var e=this.option,l=this._pieceList,r=Math.min(e.precision,20),a=this.getExtent(),c=e.splitNumber;c=Math.max(parseInt(c,10),1),e.splitNumber=c;for(var h=(a[1]-a[0])/c;+h.toFixed(r)!==h&&r<5;)r++;e.precision=r,h=+h.toFixed(r),e.minOpen&&l.push({interval:[-Infinity,a[0]],close:[0,0]});for(var g=0,A=a[0];g<c;A+=h,g++){var b=g===c-1?a[1]:A+h;l.push({interval:[A,b],close:[1,1]})}e.maxOpen&&l.push({interval:[a[1],Infinity],close:[0,0]}),u(l),x.each(l,function(S,E){S.index=E,S.text=this.formatValueText(S.interval)},this)},categories:function(){var e=this.option;x.each(e.categories,function(l){this._pieceList.push({text:this.formatValueText(l,!0),value:l})},this),t(e,this._pieceList)},pieces:function(){var e=this.option,l=this._pieceList;x.each(e.pieces,function(r,a){x.isObject(r)||(r={value:r});var c={text:"",index:a};if(r.label!=null&&(c.text=r.label),r.hasOwnProperty("value")){var h=c.value=r.value;c.interval=[h,h],c.close=[1,1]}else{for(var g=c.interval=[],A=c.close=[0,0],b=[1,0,1],S=[-Infinity,Infinity],E=[],C=0;C<2;C++){for(var _=[["gte","gt","min"],["lte","lt","max"]][C],T=0;T<3&&g[C]==null;T++)g[C]=r[_[T]],A[C]=b[T],E[C]=T===2;g[C]==null&&(g[C]=S[C])}E[0]&&g[1]===Infinity&&(A[0]=0),E[1]&&g[0]===-Infinity&&(A[1]=0),g[0]===g[1]&&A[0]&&A[1]&&(c.value=g[0])}c.visual=m.retrieveVisuals(r),l.push(c)},this),t(e,l),u(l),x.each(l,function(r){var a=r.close,c=[["<","\u2264"][a[1]],[">","\u2265"][a[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,c)},this)}};function t(e,l){var r=e.inverse;(e.orient==="vertical"?!r:r)&&l.reverse()}var o=s;R.exports=o},BvKs:function(R,D,n){"use strict";n.d(D,"a",function(){return jt});var y=n("pVnL"),f=n.n(y),x=n("lSNA"),v=n.n(x),m=n("lwsE"),p=n.n(m),d=n("W8MJ"),u=n.n(d),s=n("7W2i"),i=n.n(s),t=n("LQ03"),o=n.n(t),e=n("q1tI"),l=n("VTBJ"),r=n("1OyB"),a=n("vuIU"),c=n("JX7q"),h=n("Ji7U"),g=n("LK+K"),A=n("I8Z2"),b=n("BGR+"),S=n("wx14"),E=n("rePB"),C=n("4IlW"),_=n("2GS6"),T=n("Gytx"),w=n.n(T),O=n("TSYQ"),I=n.n(O),k=n("U8pU"),M=n("ODXe"),j=/iPhone/i,P=/iPod/i,X=/iPad/i,F=/\bAndroid(?:.+)Mobile\b/i,U=/Android/i,K=/\bAndroid(?:.+)SD4930UR\b/i,z=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,V=/Windows Phone/i,Q=/\bWindows(?:.+)ARM\b/i,G=/BlackBerry/i,te=/BB10/i,q=/Opera Mini/i,se=/\b(CriOS|Chrome)(?:.+)Mobile/i,re=/Mobile(?:.+)Firefox\b/i;function xe(vt,bt){return vt.test(bt)}function Oe(vt){var bt=vt||(typeof navigator!="undefined"?navigator.userAgent:""),cr=bt.split("[FBAN");if(typeof cr[1]!="undefined"){var Qt=cr,Mt=Object(M.a)(Qt,1);bt=Mt[0]}if(cr=bt.split("Twitter"),typeof cr[1]!="undefined"){var tr=cr,Rt=Object(M.a)(tr,1);bt=Rt[0]}var qt={apple:{phone:xe(j,bt)&&!xe(V,bt),ipod:xe(P,bt),tablet:!xe(j,bt)&&xe(X,bt)&&!xe(V,bt),device:(xe(j,bt)||xe(P,bt)||xe(X,bt))&&!xe(V,bt)},amazon:{phone:xe(K,bt),tablet:!xe(K,bt)&&xe(z,bt),device:xe(K,bt)||xe(z,bt)},android:{phone:!xe(V,bt)&&xe(K,bt)||!xe(V,bt)&&xe(F,bt),tablet:!xe(V,bt)&&!xe(K,bt)&&!xe(F,bt)&&(xe(z,bt)||xe(U,bt)),device:!xe(V,bt)&&(xe(K,bt)||xe(z,bt)||xe(F,bt)||xe(U,bt))||xe(/\bokhttp\b/i,bt)},windows:{phone:xe(V,bt),tablet:xe(Q,bt),device:xe(V,bt)||xe(Q,bt)},other:{blackberry:xe(G,bt),blackberry10:xe(te,bt),opera:xe(q,bt),firefox:xe(re,bt),chrome:xe(se,bt),device:xe(G,bt)||xe(te,bt)||xe(q,bt)||xe(re,bt)||xe(se,bt)},any:null,phone:null,tablet:null};return qt.any=qt.apple.device||qt.android.device||qt.windows.device||qt.other.device,qt.phone=qt.apple.phone||qt.android.phone||qt.windows.phone,qt.tablet=qt.apple.tablet||qt.android.tablet||qt.windows.tablet,qt}var Me=Object(l.a)(Object(l.a)({},Oe()),{},{isMobile:Oe}),Qe=Me;function Ve(){}function ut(vt,bt,cr){var Qt=bt||"";return vt.key||"".concat(Qt,"item_").concat(cr)}function Fe(vt){return"".concat(vt,"-menu-")}function ue(vt,bt){var cr=-1;e.Children.forEach(vt,function(Qt){cr+=1,Qt&&Qt.type&&Qt.type.isMenuItemGroup?e.Children.forEach(Qt.props.children,function(Mt){cr+=1,bt(Mt,cr)}):bt(Qt,cr)})}function et(vt,bt,cr){if(!vt||cr.find)return;e.Children.forEach(vt,function(Qt){if(Qt){var Mt=Qt.type;if(!Mt||!(Mt.isSubMenu||Mt.isMenuItem||Mt.isMenuItemGroup))return;bt.indexOf(Qt.key)!==-1?cr.find=!0:Qt.props.children&&et(Qt.props.children,bt,cr)}})}var he=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],J=function(bt){var cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qt=bt&&typeof bt.getBoundingClientRect=="function"&&bt.getBoundingClientRect().width;if(Qt){if(cr){var Mt=getComputedStyle(bt),tr=Mt.marginLeft,Rt=Mt.marginRight;Qt+=+tr.replace("px","")+ +Rt.replace("px","")}Qt=+Qt.toFixed(6)}return Qt||0},Y=function(bt,cr,Qt){bt&&Object(k.a)(bt.style)==="object"&&(bt.style[cr]=Qt)},$=function(){return Qe.any},de=n("KQm4"),be=n("Ff2n"),Ce=n("i8i4"),Be=n("bdgK"),fe=n("Uaa1"),we=n("HTfv"),Re={adjustX:1,adjustY:1},rt={topLeft:{points:["bl","tl"],overflow:Re,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Re,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Re,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Re,offset:[4,0]}},St={topLeft:{points:["bl","tl"],overflow:Re,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Re,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Re,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Re,offset:[4,0]}},ft=rt,He=0,er={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ct=function(bt,cr,Qt){var Mt=Fe(cr),tr=bt.getState();bt.setState({defaultActiveFirst:Object(l.a)(Object(l.a)({},tr.defaultActiveFirst),{},Object(E.a)({},Mt,Qt))})},Kt=function(vt){Object(h.a)(cr,vt);var bt=Object(g.a)(cr);function cr(Qt){var Mt;Object(r.a)(this,cr),Mt=bt.call(this,Qt),Mt.onDestroy=function(Dr){Mt.props.onDestroy(Dr)},Mt.onKeyDown=function(Dr){var cn=Dr.keyCode,An=Mt.menuInstance,ri=Mt.props,$n=ri.isOpen,fi=ri.store;if(cn===C.a.ENTER)return Mt.onTitleClick(Dr),ct(fi,Mt.props.eventKey,!0),!0;if(cn===C.a.RIGHT)return $n?An.onKeyDown(Dr):(Mt.triggerOpenChange(!0),ct(fi,Mt.props.eventKey,!0)),!0;if(cn===C.a.LEFT){var _i;if($n)_i=An.onKeyDown(Dr);else return;return _i||(Mt.triggerOpenChange(!1),_i=!0),_i}return $n&&(cn===C.a.UP||cn===C.a.DOWN)?An.onKeyDown(Dr):void 0},Mt.onOpenChange=function(Dr){Mt.props.onOpenChange(Dr)},Mt.onPopupVisibleChange=function(Dr){Mt.triggerOpenChange(Dr,Dr?"mouseenter":"mouseleave")},Mt.onMouseEnter=function(Dr){var cn=Mt.props,An=cn.eventKey,ri=cn.onMouseEnter,$n=cn.store;ct($n,Mt.props.eventKey,!1),ri({key:An,domEvent:Dr})},Mt.onMouseLeave=function(Dr){var cn=Mt.props,An=cn.parentMenu,ri=cn.eventKey,$n=cn.onMouseLeave;An.subMenuInstance=Object(c.a)(Mt),$n({key:ri,domEvent:Dr})},Mt.onTitleMouseEnter=function(Dr){var cn=Mt.props,An=cn.eventKey,ri=cn.onItemHover,$n=cn.onTitleMouseEnter;ri({key:An,hover:!0}),$n({key:An,domEvent:Dr})},Mt.onTitleMouseLeave=function(Dr){var cn=Mt.props,An=cn.parentMenu,ri=cn.eventKey,$n=cn.onItemHover,fi=cn.onTitleMouseLeave;An.subMenuInstance=Object(c.a)(Mt),$n({key:ri,hover:!1}),fi({key:ri,domEvent:Dr})},Mt.onTitleClick=function(Dr){var cn=Object(c.a)(Mt),An=cn.props;if(An.onTitleClick({key:An.eventKey,domEvent:Dr}),An.triggerSubMenuAction==="hover")return;Mt.triggerOpenChange(!An.isOpen,"click"),ct(An.store,Mt.props.eventKey,!1)},Mt.onSubMenuClick=function(Dr){typeof Mt.props.onClick=="function"&&Mt.props.onClick(Mt.addKeyPath(Dr))},Mt.onSelect=function(Dr){Mt.props.onSelect(Dr)},Mt.onDeselect=function(Dr){Mt.props.onDeselect(Dr)},Mt.getPrefixCls=function(){return"".concat(Mt.props.rootPrefixCls,"-submenu")},Mt.getActiveClassName=function(){return"".concat(Mt.getPrefixCls(),"-active")},Mt.getDisabledClassName=function(){return"".concat(Mt.getPrefixCls(),"-disabled")},Mt.getSelectedClassName=function(){return"".concat(Mt.getPrefixCls(),"-selected")},Mt.getOpenClassName=function(){return"".concat(Mt.props.rootPrefixCls,"-submenu-open")},Mt.saveMenuInstance=function(Dr){Mt.menuInstance=Dr},Mt.addKeyPath=function(Dr){return Object(l.a)(Object(l.a)({},Dr),{},{keyPath:(Dr.keyPath||[]).concat(Mt.props.eventKey)})},Mt.triggerOpenChange=function(Dr,cn){var An=Mt.props.eventKey,ri=function(){Mt.onOpenChange({key:An,item:Object(c.a)(Mt),trigger:cn,open:Dr})};cn==="mouseenter"?Mt.mouseenterTimeout=setTimeout(function(){ri()},0):ri()},Mt.isChildrenSelected=function(){var Dr={find:!1};return et(Mt.props.children,Mt.props.selectedKeys,Dr),Dr.find},Mt.isOpen=function(){return Mt.props.openKeys.indexOf(Mt.props.eventKey)!==-1},Mt.adjustWidth=function(){if(!Mt.subMenuTitle||!Mt.menuInstance)return;var Dr=Ce.findDOMNode(Mt.menuInstance);if(Dr.offsetWidth>=Mt.subMenuTitle.offsetWidth)return;Dr.style.minWidth="".concat(Mt.subMenuTitle.offsetWidth,"px")},Mt.saveSubMenuTitle=function(Dr){Mt.subMenuTitle=Dr},Mt.getBaseProps=function(){var Dr=Object(c.a)(Mt),cn=Dr.props;return{mode:cn.mode==="horizontal"?"vertical":cn.mode,visible:Mt.props.isOpen,level:cn.level+1,inlineIndent:cn.inlineIndent,focusable:!1,onClick:Mt.onSubMenuClick,onSelect:Mt.onSelect,onDeselect:Mt.onDeselect,onDestroy:Mt.onDestroy,selectedKeys:cn.selectedKeys,eventKey:"".concat(cn.eventKey,"-menu-"),openKeys:cn.openKeys,motion:cn.motion,onOpenChange:Mt.onOpenChange,subMenuOpenDelay:cn.subMenuOpenDelay,parentMenu:Object(c.a)(Mt),subMenuCloseDelay:cn.subMenuCloseDelay,forceSubMenuRender:cn.forceSubMenuRender,triggerSubMenuAction:cn.triggerSubMenuAction,builtinPlacements:cn.builtinPlacements,defaultActiveFirst:cn.store.getState().defaultActiveFirst[Fe(cn.eventKey)],multiple:cn.multiple,prefixCls:cn.rootPrefixCls,id:Mt.internalMenuId,manualRef:Mt.saveMenuInstance,itemIcon:cn.itemIcon,expandIcon:cn.expandIcon,direction:cn.direction}},Mt.getMotion=function(Dr,cn){var An=Object(c.a)(Mt),ri=An.haveRendered,$n=Mt.props,fi=$n.motion,_i=$n.rootPrefixCls,Di=Object(l.a)(Object(l.a)({},fi),{},{leavedClassName:"".concat(_i,"-hidden"),removeOnLeave:!1,motionAppear:ri||!cn||Dr!=="inline"});return Di};var tr=Qt.store,Rt=Qt.eventKey,qt=tr.getState(),Hr=qt.defaultActiveFirst;Mt.isRootMenu=!1;var Nr=!1;return Hr&&(Nr=Hr[Rt]),ct(tr,Rt,Nr),Mt}return Object(a.a)(cr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Mt=this,tr=this.props,Rt=tr.mode,qt=tr.parentMenu,Hr=tr.manualRef;if(Hr&&Hr(this),Rt!=="horizontal"||!qt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Mt.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Mt=this.props,tr=Mt.onDestroy,Rt=Mt.eventKey;tr&&tr(Rt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Mt){var tr=this,Rt=this.getBaseProps(),qt=this.getMotion(Rt.mode,Rt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Rt.visible||Rt.forceSubMenuRender,!this.haveOpened)return e.createElement("div",null);var Hr=Rt.direction;return e.createElement(we.default,Object.assign({visible:Rt.visible},qt),function(Nr){var Dr=Nr.className,cn=Nr.style,An=I()("".concat(Rt.prefixCls,"-sub"),Dr,Object(E.a)({},"".concat(Rt.prefixCls,"-rtl"),Hr==="rtl"));return e.createElement(ir,Object.assign({},Rt,{id:tr.internalMenuId,className:An,style:cn}),Mt)})}},{key:"render",value:function(){var Mt,tr=Object(l.a)({},this.props),Rt=tr.isOpen,qt=this.getPrefixCls(),Hr=tr.mode==="inline",Nr=I()(qt,"".concat(qt,"-").concat(tr.mode),(Mt={},Object(E.a)(Mt,tr.className,!!tr.className),Object(E.a)(Mt,this.getOpenClassName(),Rt),Object(E.a)(Mt,this.getActiveClassName(),tr.active||Rt&&!Hr),Object(E.a)(Mt,this.getDisabledClassName(),tr.disabled),Object(E.a)(Mt,this.getSelectedClassName(),this.isChildrenSelected()),Mt));this.internalMenuId||(tr.eventKey?this.internalMenuId="".concat(tr.eventKey,"$Menu"):(He+=1,this.internalMenuId="$__$".concat(He,"$Menu")));var Dr={},cn={},An={};tr.disabled||(Dr={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},cn={onClick:this.onTitleClick},An={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ri={},$n=tr.direction;Hr&&($n==="rtl"?ri.paddingRight=tr.inlineIndent*tr.level:ri.paddingLeft=tr.inlineIndent*tr.level);var fi={};this.props.isOpen&&(fi={"aria-owns":this.internalMenuId});var _i=null;tr.mode!=="horizontal"&&(_i=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(_i=e.createElement(this.props.expandIcon,Object(l.a)({},this.props))));var Di=e.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:ri,className:"".concat(qt,"-title"),role:"button"},An,cn,{"aria-expanded":Rt},fi,{"aria-haspopup":"true",title:typeof tr.title=="string"?tr.title:void 0}),tr.title,_i||e.createElement("i",{className:"".concat(qt,"-arrow")})),Wi=this.renderChildren(tr.children),it=tr.parentMenu.isRootMenu?tr.parentMenu.props.getPopupContainer:function(Yr){return Yr.parentNode},Le=er[tr.mode],je=tr.popupOffset?{offset:tr.popupOffset}:{},Xe=tr.mode==="inline"?"":tr.popupClassName;Xe+=$n==="rtl"?" ".concat(qt,"-rtl"):"";var nt=tr.disabled,Ze=tr.triggerSubMenuAction,ot=tr.subMenuOpenDelay,Ct=tr.forceSubMenuRender,gt=tr.subMenuCloseDelay,pr=tr.builtinPlacements;he.forEach(function(Yr){return delete tr[Yr]}),delete tr.onClick;var $r=$n==="rtl"?Object.assign({},St,pr):Object.assign({},rt,pr);return delete tr.direction,e.createElement("li",Object.assign({},tr,Dr,{className:Nr,role:"menuitem"}),Hr&&Di,Hr&&Wi,!Hr&&e.createElement(fe.a,{prefixCls:qt,popupClassName:I()("".concat(qt,"-popup"),Xe),getPopupContainer:it,builtinPlacements:$r,popupPlacement:Le,popupVisible:Rt,popupAlign:je,popup:Wi,action:nt?[]:[Ze],mouseEnterDelay:ot,mouseLeaveDelay:gt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Ct},Di))}}]),cr}(e.Component);Kt.defaultProps={onMouseEnter:Ve,onMouseLeave:Ve,onTitleMouseEnter:Ve,onTitleMouseLeave:Ve,onTitleClick:Ve,manualRef:Ve,mode:"vertical",title:""};var fr=Object(A.b)(function(vt,bt){var cr=vt.openKeys,Qt=vt.activeKey,Mt=vt.selectedKeys,tr=bt.eventKey,Rt=bt.subMenuKey;return{isOpen:cr.indexOf(tr)>-1,active:Qt[Rt]===tr,selectedKeys:Mt}})(Kt);fr.isSubMenu=!0;var Gt=fr,Pt="menuitem-overflowed",Xt=.5,Ge=function(vt){Object(h.a)(cr,vt);var bt=Object(g.a)(cr);function cr(){var Qt;return Object(r.a)(this,cr),Qt=bt.apply(this,arguments),Qt.resizeObserver=null,Qt.mutationObserver=null,Qt.originalTotalWidth=0,Qt.overflowedItems=[],Qt.menuItemSizes=[],Qt.cancelFrameId=null,Qt.state={lastVisibleIndex:void 0},Qt.getMenuItemNodes=function(){var Mt=Qt.props.prefixCls,tr=Ce.findDOMNode(Object(c.a)(Qt));return tr?[].slice.call(tr.children).filter(function(Rt){return Rt.className.split(" ").indexOf("".concat(Mt,"-overflowed-submenu"))<0}):[]},Qt.getOverflowedSubMenuItem=function(Mt,tr,Rt){var qt=Qt.props,Hr=qt.overflowedIndicator,Nr=qt.level,Dr=qt.mode,cn=qt.prefixCls,An=qt.theme;if(Nr!==1||Dr!=="horizontal")return null;var ri=Qt.props.children[0],$n=ri.props,fi=$n.children,_i=$n.title,Di=$n.style,Wi=Object(be.a)($n,["children","title","style"]),it=Object(l.a)({},Di),Le="".concat(Mt,"-overflowed-indicator"),je="".concat(Mt,"-overflowed-indicator");tr.length===0&&Rt!==!0?it=Object(l.a)(Object(l.a)({},it),{},{display:"none"}):Rt&&(it=Object(l.a)(Object(l.a)({},it),{},{visibility:"hidden",position:"absolute"}),Le="".concat(Le,"-placeholder"),je="".concat(je,"-placeholder"));var Xe=An?"".concat(cn,"-").concat(An):"",nt={};return he.forEach(function(Ze){Wi[Ze]!==void 0&&(nt[Ze]=Wi[Ze])}),e.createElement(Gt,Object.assign({title:Hr,className:"".concat(cn,"-overflowed-submenu"),popupClassName:Xe},nt,{key:Le,eventKey:je,disabled:!1,style:it}),tr)},Qt.setChildrenWidthAndResize=function(){if(Qt.props.mode!=="horizontal")return;var Mt=Ce.findDOMNode(Object(c.a)(Qt));if(!Mt)return;var tr=Mt.children;if(!tr||tr.length===0)return;var Rt=Mt.children[tr.length-1];Y(Rt,"display","inline-block");var qt=Qt.getMenuItemNodes(),Hr=qt.filter(function(Nr){return Nr.className.split(" ").indexOf(Pt)>=0});Hr.forEach(function(Nr){Y(Nr,"display","inline-block")}),Qt.menuItemSizes=qt.map(function(Nr){return J(Nr,!0)}),Hr.forEach(function(Nr){Y(Nr,"display","none")}),Qt.overflowedIndicatorWidth=J(Mt.children[Mt.children.length-1],!0),Qt.originalTotalWidth=Qt.menuItemSizes.reduce(function(Nr,Dr){return Nr+Dr},0),Qt.handleResize(),Y(Rt,"display","none")},Qt.handleResize=function(){if(Qt.props.mode!=="horizontal")return;var Mt=Ce.findDOMNode(Object(c.a)(Qt));if(!Mt)return;var tr=J(Mt);Qt.overflowedItems=[];var Rt=0,qt;Qt.originalTotalWidth>tr+Xt&&(qt=-1,Qt.menuItemSizes.forEach(function(Hr){Rt+=Hr,Rt+Qt.overflowedIndicatorWidth<=tr&&(qt+=1)})),Qt.setState({lastVisibleIndex:qt})},Qt}return Object(a.a)(cr,[{key:"componentDidMount",value:function(){var Mt=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var tr=Ce.findDOMNode(this);if(!tr)return;this.resizeObserver=new Be.default(function(Rt){Rt.forEach(function(){var qt=Mt.cancelFrameId;cancelAnimationFrame(qt),Mt.cancelFrameId=requestAnimationFrame(Mt.setChildrenWidthAndResize)})}),[].slice.call(tr.children).concat(tr).forEach(function(Rt){Mt.resizeObserver.observe(Rt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Mt.resizeObserver.disconnect(),[].slice.call(tr.children).concat(tr).forEach(function(Rt){Mt.resizeObserver.observe(Rt)}),Mt.setChildrenWidthAndResize()}),this.mutationObserver.observe(tr,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Mt){var tr=this,Rt=this.state.lastVisibleIndex;return(Mt||[]).reduce(function(qt,Hr,Nr){var Dr=Hr;if(tr.props.mode==="horizontal"){var cn=tr.getOverflowedSubMenuItem(Hr.props.eventKey,[]);Rt!==void 0&&tr.props.className.indexOf("".concat(tr.props.prefixCls,"-root"))!==-1&&(Nr>Rt&&(Dr=e.cloneElement(Hr,{style:{display:"none"},eventKey:"".concat(Hr.props.eventKey,"-hidden"),className:"".concat(Pt)})),Nr===Rt+1&&(tr.overflowedItems=Mt.slice(Rt+1).map(function(ri){return e.cloneElement(ri,{key:ri.props.eventKey,mode:"vertical-left"})}),cn=tr.getOverflowedSubMenuItem(Hr.props.eventKey,tr.overflowedItems)));var An=[].concat(Object(de.a)(qt),[cn,Dr]);return Nr===Mt.length-1&&An.push(tr.getOverflowedSubMenuItem(Hr.props.eventKey,[],!0)),An}return[].concat(Object(de.a)(qt),[Dr])},[])}},{key:"render",value:function(){var Mt=this.props,tr=Mt.visible,Rt=Mt.prefixCls,qt=Mt.overflowedIndicator,Hr=Mt.mode,Nr=Mt.level,Dr=Mt.tag,cn=Mt.children,An=Mt.theme,ri=Object(be.a)(Mt,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),$n=Dr;return e.createElement($n,Object.assign({},ri),this.renderChildren(cn))}}]),cr}(e.Component);Ge.defaultProps={tag:"div",className:""};var pe=Ge;function oe(vt){return vt.length?vt.every(function(bt){return!!bt.props.disabled}):!0}function lt(vt,bt,cr){var Qt=vt.getState();vt.setState({activeKey:Object(l.a)(Object(l.a)({},Qt.activeKey),{},Object(E.a)({},bt,cr))})}function qe(vt){return vt.eventKey||"0-menu-"}function ge(vt,bt){var cr=bt,Qt=vt.children,Mt=vt.eventKey;if(cr){var tr;if(ue(Qt,function(Rt,qt){Rt&&Rt.props&&!Rt.props.disabled&&cr===ut(Rt,Mt,qt)&&(tr=!0)}),tr)return cr}return cr=null,vt.defaultActiveFirst&&ue(Qt,function(Rt,qt){!cr&&Rt&&!Rt.props.disabled&&(cr=ut(Rt,Mt,qt))}),cr}function Ht(vt){if(vt){var bt=this.instanceArray.indexOf(vt);bt!==-1?this.instanceArray[bt]=vt:this.instanceArray.push(vt)}}var vr=function(vt){Object(h.a)(cr,vt);var bt=Object(g.a)(cr);function cr(Qt){var Mt;return Object(r.a)(this,cr),Mt=bt.call(this,Qt),Mt.onKeyDown=function(tr,Rt){var qt=tr.keyCode,Hr;if(Mt.getFlatInstanceArray().forEach(function(Dr){Dr&&Dr.props.active&&Dr.onKeyDown&&(Hr=Dr.onKeyDown(tr))}),Hr)return 1;var Nr=null;return(qt===C.a.UP||qt===C.a.DOWN)&&(Nr=Mt.step(qt===C.a.UP?-1:1)),Nr?(tr.preventDefault(),lt(Mt.props.store,qe(Mt.props),Nr.props.eventKey),typeof Rt=="function"&&Rt(Nr),1):void 0},Mt.onItemHover=function(tr){var Rt=tr.key,qt=tr.hover;lt(Mt.props.store,qe(Mt.props),qt?Rt:null)},Mt.onDeselect=function(tr){Mt.props.onDeselect(tr)},Mt.onSelect=function(tr){Mt.props.onSelect(tr)},Mt.onClick=function(tr){Mt.props.onClick(tr)},Mt.onOpenChange=function(tr){Mt.props.onOpenChange(tr)},Mt.onDestroy=function(tr){Mt.props.onDestroy(tr)},Mt.getFlatInstanceArray=function(){return Mt.instanceArray},Mt.step=function(tr){var Rt=Mt.getFlatInstanceArray(),qt=Mt.props.store.getState().activeKey[qe(Mt.props)],Hr=Rt.length;if(!Hr)return null;tr<0&&(Rt=Rt.concat().reverse());var Nr=-1;if(Rt.every(function(ri,$n){return ri&&ri.props.eventKey===qt?(Nr=$n,!1):!0}),!Mt.props.defaultActiveFirst&&Nr!==-1&&oe(Rt.slice(Nr,Hr-1)))return;var Dr=(Nr+1)%Hr,cn=Dr;do{var An=Rt[cn];if(!An||An.props.disabled)cn=(cn+1)%Hr;else return An}while(cn!==Dr);return null},Mt.renderCommonMenuItem=function(tr,Rt,qt){var Hr=Mt.props.store.getState(),Nr=Object(c.a)(Mt),Dr=Nr.props,cn=ut(tr,Dr.eventKey,Rt),An=tr.props;if(!An||typeof tr.type=="string")return tr;var ri=cn===Hr.activeKey,$n=Object(l.a)(Object(l.a)({mode:An.mode||Dr.mode,level:Dr.level,inlineIndent:Dr.inlineIndent,renderMenuItem:Mt.renderMenuItem,rootPrefixCls:Dr.prefixCls,index:Rt,parentMenu:Dr.parentMenu,manualRef:An.disabled?void 0:Object(_.a)(tr.ref,Ht.bind(Object(c.a)(Mt))),eventKey:cn,active:!An.disabled&&ri,multiple:Dr.multiple,onClick:function(_i){(An.onClick||Ve)(_i),Mt.onClick(_i)},onItemHover:Mt.onItemHover,motion:Dr.motion,subMenuOpenDelay:Dr.subMenuOpenDelay,subMenuCloseDelay:Dr.subMenuCloseDelay,forceSubMenuRender:Dr.forceSubMenuRender,onOpenChange:Mt.onOpenChange,onDeselect:Mt.onDeselect,onSelect:Mt.onSelect,builtinPlacements:Dr.builtinPlacements,itemIcon:An.itemIcon||Mt.props.itemIcon,expandIcon:An.expandIcon||Mt.props.expandIcon},qt),{},{direction:Dr.direction});return(Dr.mode==="inline"||$())&&($n.triggerSubMenuAction="click"),e.cloneElement(tr,$n)},Mt.renderMenuItem=function(tr,Rt,qt){if(!tr)return null;var Hr=Mt.props.store.getState(),Nr={openKeys:Hr.openKeys,selectedKeys:Hr.selectedKeys,triggerSubMenuAction:Mt.props.triggerSubMenuAction,subMenuKey:qt};return Mt.renderCommonMenuItem(tr,Rt,Nr)},Qt.store.setState({activeKey:Object(l.a)(Object(l.a)({},Qt.store.getState().activeKey),{},Object(E.a)({},Qt.eventKey,ge(Qt,Qt.activeKey)))}),Mt.instanceArray=[],Mt}return Object(a.a)(cr,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Mt){return this.props.visible||Mt.visible||this.props.className!==Mt.className||!w()(this.props.style,Mt.style)}},{key:"componentDidUpdate",value:function(Mt){var tr=this.props,Rt="activeKey"in tr?tr.activeKey:tr.store.getState().activeKey[qe(tr)],qt=ge(tr,Rt);if(qt!==Rt)lt(tr.store,qe(tr),qt);else if("activeKey"in Mt){var Hr=ge(Mt,Mt.activeKey);qt!==Hr&<(tr.store,qe(tr),qt)}}},{key:"render",value:function(){var Mt=this,tr=Object(S.a)({},this.props);this.instanceArray=[];var Rt=I()(tr.prefixCls,tr.className,"".concat(tr.prefixCls,"-").concat(tr.mode)),qt={className:Rt,role:tr.role||"menu"};tr.id&&(qt.id=tr.id),tr.focusable&&(qt.tabIndex=0,qt.onKeyDown=this.onKeyDown);var Hr=tr.prefixCls,Nr=tr.eventKey,Dr=tr.visible,cn=tr.level,An=tr.mode,ri=tr.overflowedIndicator,$n=tr.theme;return he.forEach(function(fi){return delete tr[fi]}),delete tr.onClick,e.createElement(pe,Object.assign({},tr,{prefixCls:Hr,mode:An,tag:"ul",level:cn,theme:$n,visible:Dr,overflowedIndicator:ri},qt),e.Children.map(tr.children,function(fi,_i){return Mt.renderMenuItem(fi,_i,Nr||"0-menu-")}))}}]),cr}(e.Component);vr.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ve};var At=Object(A.b)()(vr),ir=At,lr=n("Kwbf");function dn(vt,bt,cr){var Qt=vt.prefixCls,Mt=vt.motion,tr=vt.defaultMotions,Rt=tr===void 0?{}:tr,qt=vt.openAnimation,Hr=vt.openTransitionName,Nr=bt.switchingModeFromInline;if(Mt)return Mt;if(Object(k.a)(qt)==="object"&&qt)Object(lr.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof qt=="string")return{motionName:"".concat(Qt,"-open-").concat(qt)};if(Hr)return{motionName:Hr};var Dr=Rt[cr];return Dr||(Nr?null:Rt.other)}var Ft=function(vt){Object(h.a)(cr,vt);var bt=Object(g.a)(cr);function cr(Qt){var Mt;Object(r.a)(this,cr),Mt=bt.call(this,Qt),Mt.inlineOpenKeys=[],Mt.onSelect=function(qt){var Hr=Object(c.a)(Mt),Nr=Hr.props;if(Nr.selectable){var Dr=Mt.store.getState(),cn=Dr.selectedKeys,An=qt.key;Nr.multiple?cn=cn.concat([An]):cn=[An],"selectedKeys"in Nr||Mt.store.setState({selectedKeys:cn}),Nr.onSelect(Object(l.a)(Object(l.a)({},qt),{},{selectedKeys:cn}))}},Mt.onClick=function(qt){var Hr=Mt.getRealMenuMode(),Nr=Object(c.a)(Mt),Dr=Nr.store,cn=Nr.props.onOpenChange;Hr!=="inline"&&!("openKeys"in Mt.props)&&(Dr.setState({openKeys:[]}),cn([])),Mt.props.onClick(qt)},Mt.onKeyDown=function(qt,Hr){Mt.innerMenu.getWrappedInstance().onKeyDown(qt,Hr)},Mt.onOpenChange=function(qt){var Hr=Object(c.a)(Mt),Nr=Hr.props,Dr=Mt.store.getState().openKeys.concat(),cn=!1,An=function($n){var fi=!1;if($n.open)fi=Dr.indexOf($n.key)===-1,fi&&Dr.push($n.key);else{var _i=Dr.indexOf($n.key);fi=_i!==-1,fi&&Dr.splice(_i,1)}cn=cn||fi};Array.isArray(qt)?qt.forEach(An):An(qt),cn&&("openKeys"in Mt.props||Mt.store.setState({openKeys:Dr}),Nr.onOpenChange(Dr))},Mt.onDeselect=function(qt){var Hr=Object(c.a)(Mt),Nr=Hr.props;if(Nr.selectable){var Dr=Mt.store.getState().selectedKeys.concat(),cn=qt.key,An=Dr.indexOf(cn);An!==-1&&Dr.splice(An,1),"selectedKeys"in Nr||Mt.store.setState({selectedKeys:Dr}),Nr.onDeselect(Object(l.a)(Object(l.a)({},qt),{},{selectedKeys:Dr}))}},Mt.onMouseEnter=function(qt){Mt.restoreModeVerticalFromInline();var Hr=Mt.props.onMouseEnter;Hr&&Hr(qt)},Mt.onTransitionEnd=function(qt){var Hr=qt.propertyName==="width"&&qt.target===qt.currentTarget,Nr=qt.target.className,Dr=Object.prototype.toString.call(Nr)==="[object SVGAnimatedString]"?Nr.animVal:Nr,cn=qt.propertyName==="font-size"&&Dr.indexOf("anticon")>=0;(Hr||cn)&&Mt.restoreModeVerticalFromInline()},Mt.setInnerMenu=function(qt){Mt.innerMenu=qt},Mt.isRootMenu=!0;var tr=Qt.defaultSelectedKeys,Rt=Qt.defaultOpenKeys;return"selectedKeys"in Qt&&(tr=Qt.selectedKeys||[]),"openKeys"in Qt&&(Rt=Qt.openKeys||[]),Mt.store=Object(A.c)({selectedKeys:tr,openKeys:Rt,activeKey:{"0-menu-":ge(Qt,Qt.activeKey)}}),Mt.state={switchingModeFromInline:!1},Mt}return Object(a.a)(cr,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Mt){this.updateOpentKeysWhenSwitchMode(Mt),this.updateMiniStore();var tr=this.props,Rt=tr.siderCollapsed,qt=tr.inlineCollapsed,Hr=tr.onOpenChange;(!Mt.inlineCollapsed&&qt||!Mt.siderCollapsed&&Rt)&&Hr([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Mt){var tr=this.props,Rt=this.store,qt=this.inlineOpenKeys,Hr=Rt.getState(),Nr={};Mt.mode==="inline"&&tr.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in tr||((tr.inlineCollapsed&&!Mt.inlineCollapsed||tr.siderCollapsed&&!Mt.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Hr.openKeys.concat(),Nr.openKeys=[]),(!tr.inlineCollapsed&&Mt.inlineCollapsed||!tr.siderCollapsed&&Mt.siderCollapsed)&&(Nr.openKeys=qt,this.inlineOpenKeys=[])),Object.keys(Nr).length&&Rt.setState(Nr)}},{key:"updateMenuDisplay",value:function(){var Mt=this.props.collapsedWidth,tr=this.store,Rt=this.prevOpenKeys,qt=this.getInlineCollapsed()&&(Mt===0||Mt==="0"||Mt==="0px");qt?(this.prevOpenKeys=tr.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Rt&&(this.store.setState({openKeys:Rt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Mt=this.props.mode,tr=this.state.switchingModeFromInline,Rt=this.getInlineCollapsed();return tr&&Rt?"inline":Rt?"vertical":Mt}},{key:"getInlineCollapsed",value:function(){var Mt=this.props,tr=Mt.inlineCollapsed,Rt=Mt.siderCollapsed;return Rt!==void 0?Rt:tr}},{key:"restoreModeVerticalFromInline",value:function(){var Mt=this.state.switchingModeFromInline;Mt&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Mt=Object(l.a)({},Object(b.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),tr=this.getRealMenuMode();return Mt.className+=" ".concat(Mt.prefixCls,"-root"),Mt.direction==="rtl"&&(Mt.className+=" ".concat(Mt.prefixCls,"-rtl")),Mt=Object(l.a)(Object(l.a)({},Mt),{},{mode:tr,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:dn(this.props,this.state,tr)}),delete Mt.openAnimation,delete Mt.openTransitionName,e.createElement(A.a,{store:this.store},e.createElement(ir,Object.assign({},Mt,{ref:this.setInnerMenu}),this.props.children))}}]),cr}(e.Component);Ft.defaultProps={selectable:!0,onClick:Ve,onSelect:Ve,onOpenChange:Ve,onDeselect:Ve,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 ur=Ft,Jt=function(vt){Object(h.a)(cr,vt);var bt=Object(g.a)(cr);function cr(){var Qt;return Object(r.a)(this,cr),Qt=bt.apply(this,arguments),Qt.onKeyDown=function(Mt){var tr=Mt.keyCode;return tr===C.a.ENTER?(Qt.onClick(Mt),!0):void 0},Qt.onMouseLeave=function(Mt){var tr=Qt.props,Rt=tr.eventKey,qt=tr.onItemHover,Hr=tr.onMouseLeave;qt({key:Rt,hover:!1}),Hr({key:Rt,domEvent:Mt})},Qt.onMouseEnter=function(Mt){var tr=Qt.props,Rt=tr.eventKey,qt=tr.onItemHover,Hr=tr.onMouseEnter;qt({key:Rt,hover:!0}),Hr({key:Rt,domEvent:Mt})},Qt.onClick=function(Mt){var tr=Qt.props,Rt=tr.eventKey,qt=tr.multiple,Hr=tr.onClick,Nr=tr.onSelect,Dr=tr.onDeselect,cn=tr.isSelected,An={key:Rt,keyPath:[Rt],item:Object(c.a)(Qt),domEvent:Mt};Hr(An),qt?cn?Dr(An):Nr(An):cn||Nr(An)},Qt.saveNode=function(Mt){Qt.node=Mt},Qt}return Object(a.a)(cr,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Mt=this.props;Mt.onDestroy&&Mt.onDestroy(Mt.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Mt,tr=Object(l.a)({},this.props),Rt=I()(this.getPrefixCls(),tr.className,(Mt={},Object(E.a)(Mt,this.getActiveClassName(),!tr.disabled&&tr.active),Object(E.a)(Mt,this.getSelectedClassName(),tr.isSelected),Object(E.a)(Mt,this.getDisabledClassName(),tr.disabled),Mt)),qt=Object(l.a)(Object(l.a)({},tr.attribute),{},{title:typeof tr.title=="string"?tr.title:void 0,className:Rt,role:tr.role||"menuitem","aria-disabled":tr.disabled});tr.role==="option"?qt=Object(l.a)(Object(l.a)({},qt),{},{role:"option","aria-selected":tr.isSelected}):(tr.role===null||tr.role==="none")&&(qt.role="none");var Hr={onClick:tr.disabled?null:this.onClick,onMouseLeave:tr.disabled?null:this.onMouseLeave,onMouseEnter:tr.disabled?null:this.onMouseEnter},Nr=Object(l.a)({},tr.style);tr.mode==="inline"&&(tr.direction==="rtl"?Nr.paddingRight=tr.inlineIndent*tr.level:Nr.paddingLeft=tr.inlineIndent*tr.level),he.forEach(function(cn){return delete tr[cn]}),delete tr.direction;var Dr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Dr=e.createElement(this.props.itemIcon,this.props)),e.createElement("li",Object.assign({},Object(b.default)(tr,["onClick","onMouseEnter","onMouseLeave","onSelect"]),qt,Hr,{style:Nr,ref:this.saveNode}),tr.children,Dr)}}]),cr}(e.Component);Jt.isMenuItem=!0,Jt.defaultProps={onSelect:Ve,onMouseEnter:Ve,onMouseLeave:Ve,manualRef:Ve};var pt=Object(A.b)(function(vt,bt){var cr=vt.activeKey,Qt=vt.selectedKeys,Mt=bt.eventKey,tr=bt.subMenuKey;return{active:cr[tr]===Mt,isSelected:Qt.indexOf(Mt)!==-1}})(Jt),at=pt,Pr=function(vt){Object(h.a)(cr,vt);var bt=Object(g.a)(cr);function cr(){var Qt;return Object(r.a)(this,cr),Qt=bt.apply(this,arguments),Qt.renderInnerMenuItem=function(Mt){var tr=Qt.props,Rt=tr.renderMenuItem,qt=tr.index;return Rt(Mt,qt,Qt.props.subMenuKey)},Qt}return Object(a.a)(cr,[{key:"render",value:function(){var Mt=Object(S.a)({},this.props),tr=Mt.className,Rt=tr===void 0?"":tr,qt=Mt.rootPrefixCls,Hr="".concat(qt,"-item-group-title"),Nr="".concat(qt,"-item-group-list"),Dr=Mt.title,cn=Mt.children;return he.forEach(function(An){return delete Mt[An]}),delete Mt.onClick,delete Mt.direction,e.createElement("li",Object.assign({},Mt,{className:"".concat(Rt," ").concat(qt,"-item-group")}),e.createElement("div",{className:Hr,title:typeof Dr=="string"?Dr:void 0},Dr),e.createElement("ul",{className:Nr},e.Children.map(cn,this.renderInnerMenuItem)))}}]),cr}(e.Component);Pr.isMenuItemGroup=!0,Pr.defaultProps={disabled:!0};var un=Pr,_n=function(bt){var cr=bt.className,Qt=bt.rootPrefixCls,Mt=bt.style;return e.createElement("li",{className:"".concat(cr," ").concat(Qt,"-item-divider"),style:Mt})};_n.defaultProps={disabled:!0,className:"",style:{}};var Xn=_n,xi=ur,Pn=Object(e.createContext)({inlineCollapsed:!1}),Un=Pn,$t=n("0n0R"),xt=function(vt){i()(cr,vt);var bt=o()(cr);function cr(){return p()(this,cr),bt.apply(this,arguments)}return u()(cr,[{key:"renderTitle",value:function(Mt){var tr=this.props,Rt=tr.icon,qt=tr.title,Hr=tr.level,Nr=tr.rootPrefixCls;if(!Rt)return Mt&&Hr===1&&qt&&typeof qt=="string"?e.createElement("div",{className:"".concat(Nr,"-inline-collapsed-noicon")},qt.charAt(0)):qt;var Dr=Object($t.b)(qt)&&qt.type==="span";return e.createElement(e.Fragment,null,Rt,Dr?qt:e.createElement("span",null,qt))}},{key:"render",value:function(){var Mt=this,tr=this.props,Rt=tr.rootPrefixCls,qt=tr.popupClassName;return e.createElement(Un.Consumer,null,function(Hr){var Nr=Hr.inlineCollapsed,Dr=Hr.antdMenuTheme;return e.createElement(Gt,f()({},Object(b.default)(Mt.props,["icon"]),{title:Mt.renderTitle(Nr),popupClassName:I()(Rt,"".concat(Rt,"-").concat(Dr),qt)}))})}}]),cr}(e.Component);xt.contextType=Un,xt.isSubMenu=1;var De=xt,ke=n("Zm9Q"),Pe=n("3S7+"),tt=n("ZX9x"),yt=function(vt,bt){var cr={};for(var Qt in vt)Object.prototype.hasOwnProperty.call(vt,Qt)&&bt.indexOf(Qt)<0&&(cr[Qt]=vt[Qt]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Qt=Object.getOwnPropertySymbols(vt);Mt<Qt.length;Mt++)bt.indexOf(Qt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(vt,Qt[Mt])&&(cr[Qt[Mt]]=vt[Qt[Mt]]);return cr},Et=function(vt){i()(cr,vt);var bt=o()(cr);function cr(){var Qt;return p()(this,cr),Qt=bt.apply(this,arguments),Qt.renderItem=function(Mt){var tr=Mt.siderCollapsed,Rt=Qt.props,qt=Rt.level,Hr=Rt.className,Nr=Rt.children,Dr=Rt.rootPrefixCls,cn=Qt.props,An=cn.title,ri=cn.icon,$n=cn.danger,fi=yt(cn,["title","icon","danger"]);return e.createElement(Un.Consumer,null,function(_i){var Di,Wi=_i.inlineCollapsed,it=_i.direction,Le=An;typeof An=="undefined"?Le=qt===1?Nr:"":An===!1&&(Le="");var je={title:Le};!tr&&!Wi&&(je.title=null,je.visible=!1);var Xe=Object(ke.a)(Nr).length;return e.createElement(Pe.a,f()({},je,{placement:it==="rtl"?"left":"right",overlayClassName:"".concat(Dr,"-inline-collapsed-tooltip")}),e.createElement(at,f()({},fi,{className:I()(Hr,(Di={},v()(Di,"".concat(Dr,"-item-danger"),$n),v()(Di,"".concat(Dr,"-item-only-child"),(ri?Xe+1:Xe)===1),Di)),title:An}),ri,Qt.renderItemChildren(Wi)))})},Qt}return u()(cr,[{key:"renderItemChildren",value:function(Mt){var tr=this.props,Rt=tr.icon,qt=tr.children,Hr=tr.level,Nr=tr.rootPrefixCls;return!Rt||Object($t.b)(qt)&&qt.type==="span"?qt&&Mt&&Hr===1&&typeof qt=="string"?e.createElement("div",{className:"".concat(Nr,"-inline-collapsed-noicon")},qt.charAt(0)):qt:e.createElement("span",null,qt)}},{key:"render",value:function(){return e.createElement(tt.a.Consumer,null,this.renderItem)}}]),cr}(e.Component);Et.isMenuItem=!0;var Yt=n("H84U"),Rr=n("uaoM"),zr=n("EXcs"),hn=function(vt){i()(cr,vt);var bt=o()(cr);function cr(Qt){var Mt;return p()(this,cr),Mt=bt.call(this,Qt),Mt.renderMenu=function(tr){var Rt=tr.getPopupContainer,qt=tr.getPrefixCls,Hr=tr.direction,Nr=Mt.props,Dr=Nr.prefixCls,cn=Nr.className,An=Nr.theme,ri={horizontal:{motionName:"slide-up"},inline:zr.a,other:{motionName:"zoom-big"}},$n=qt("menu",Dr),fi=I()(cn,"".concat($n,"-").concat(An),v()({},"".concat($n,"-inline-collapsed"),Mt.getInlineCollapsed()));return e.createElement(Un.Provider,{value:{inlineCollapsed:Mt.getInlineCollapsed()||!1,antdMenuTheme:An,direction:Hr}},e.createElement(xi,f()({getPopupContainer:Rt},Mt.props,{className:fi,prefixCls:$n,direction:Hr,defaultMotions:ri})))},Object(Rr.a)(!("inlineCollapsed"in Qt&&Qt.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(Rr.a)(!(Qt.siderCollapsed!==void 0&&"inlineCollapsed"in Qt),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),Mt}return u()(cr,[{key:"getInlineCollapsed",value:function(){var Mt=this.props,tr=Mt.inlineCollapsed,Rt=Mt.siderCollapsed;return Rt!==void 0?Rt:tr}},{key:"render",value:function(){return e.createElement(Yt.a,null,this.renderMenu)}}]),cr}(e.Component);hn.defaultProps={className:"",theme:"light",focusable:!1};var jt=function(vt){i()(cr,vt);var bt=o()(cr);function cr(){return p()(this,cr),bt.apply(this,arguments)}return u()(cr,[{key:"render",value:function(){var Mt=this;return e.createElement(tt.a.Consumer,null,function(tr){return e.createElement(hn,f()({},Mt.props,tr))})}}]),cr}(e.Component);jt.Divider=Xn,jt.Item=Et,jt.SubMenu=De,jt.ItemGroup=un},C0SR:function(R,D,n){var y=n("YH21"),f=function(){this._track=[]};f.prototype={constructor:f,recognize:function(u,s,i){return this._doTrack(u,s,i),this._recognize(u)},clear:function(){return this._track.length=0,this},_doTrack:function(u,s,i){var t=u.touches;if(!t)return;for(var o={points:[],touches:[],target:s,event:u},e=0,l=t.length;e<l;e++){var r=t[e],a=y.clientToLocal(i,r,{});o.points.push([a.zrX,a.zrY]),o.touches.push(r)}this._track.push(o)},_recognize:function(u){for(var s in m)if(m.hasOwnProperty(s)){var i=m[s](this._track,u);if(i)return i}}};function x(d){var u=d[1][0]-d[0][0],s=d[1][1]-d[0][1];return Math.sqrt(u*u+s*s)}function v(d){return[(d[0][0]+d[1][0])/2,(d[0][1]+d[1][1])/2]}var m={pinch:function(u,s){var i=u.length;if(!i)return;var t=(u[i-1]||{}).points,o=(u[i-2]||{}).points||t;if(o&&o.length>1&&t&&t.length>1){var e=x(t)/x(o);!isFinite(e)&&(e=1),s.pinchScale=e;var l=v(t);return s.pinchX=l[0],s.pinchY=l[1],{type:"pinch",target:u[0].target,event:s}}}},p=f;R.exports=p},C0tN:function(R,D,n){n("0o9m"),n("8Uz6"),n("Ducp"),n("6/nd")},CBdT:function(R,D,n){var y=n("ProS");n("8waO"),n("AEZ6"),n("YNf1");var f=n("q3GZ");y.registerVisual(f)},CF2D:function(R,D,n){var y=n("ProS");n("vZI5"),n("GeKi");var f=n("6r85"),x=n("TJmX"),v=n("CbHG");y.registerPreprocessor(f),y.registerVisual(x),y.registerLayout(v)},CFYs:function(R,D,n){"use strict";var y=n("lSNA"),f=n.n(y),x=n("pVnL"),v=n.n(x),m=n("lwsE"),p=n.n(m),d=n("W8MJ"),u=n.n(d),s=n("PJYZ"),i=n.n(s),t=n("7W2i"),o=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),a=n.n(r),c=n("TSYQ"),h=n.n(c),g=n("BGR+"),A=n("V/uB"),b=n.n(A),S=n("NAnI"),E=n.n(S),C=n("J84W"),_=n.n(C),T=n("kbBi"),w=n.n(T),O=n("H84U"),I=n("CWQg"),k=n("uaoM"),M=n("lMfh"),j=n.n(M),P=2,X=.16,F=.05,U=.05,K=.15,z=5,V=4,Q=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function G(Et,Yt,Rr){var zr;return Math.round(Et.h)>=60&&Math.round(Et.h)<=240?zr=Rr?Math.round(Et.h)-P*Yt:Math.round(Et.h)+P*Yt:zr=Rr?Math.round(Et.h)+P*Yt:Math.round(Et.h)-P*Yt,zr<0?zr+=360:zr>=360&&(zr-=360),zr}function te(Et,Yt,Rr){if(Et.h===0&&Et.s===0)return Et.s;var zr;return Rr?zr=Et.s-X*Yt:Yt===V?zr=Et.s+X:zr=Et.s+F*Yt,zr>1&&(zr=1),Rr&&Yt===z&&zr>.1&&(zr=.1),zr<.06&&(zr=.06),Number(zr.toFixed(2))}function q(Et,Yt,Rr){var zr;return Rr?zr=Et.v+U*Yt:zr=Et.v-K*Yt,zr>1&&(zr=1),Number(zr.toFixed(2))}function se(Et){for(var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Rr=[],zr=j()(Et),hn=z;hn>0;hn-=1){var jt=zr.toHsv(),vt=j()({h:G(jt,hn,!0),s:te(jt,hn,!0),v:q(jt,hn,!0)}).toHexString();Rr.push(vt)}Rr.push(zr.toHexString());for(var bt=1;bt<=V;bt+=1){var cr=zr.toHsv(),Qt=j()({h:G(cr,bt),s:te(cr,bt),v:q(cr,bt)}).toHexString();Rr.push(Qt)}return Yt.theme==="dark"?Q.map(function(Mt){var tr=Mt.index,Rt=Mt.opacity,qt=j.a.mix(Yt.backgroundColor||"#141414",Rr[tr],Rt*100).toHexString();return qt}):Rr}var re={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},xe={},Oe={};Object.keys(re).forEach(function(Et){xe[Et]=se(re[Et]),xe[Et].primary=xe[Et][5],Oe[Et]=se(re[Et],{theme:"dark",backgroundColor:"#141414"}),Oe[Et].primary=Oe[Et][5]});var Me=xe.red,Qe=xe.volcano,Ve=xe.gold,ut=xe.orange,Fe=xe.yellow,ue=xe.lime,et=xe.green,he=xe.cyan,J=xe.blue,Y=xe.geekblue,$=xe.purple,de=xe.magenta,be=xe.grey;function Ce(Et){return!Et||Et<0?0:Et>100?100:Et}function Be(Et){var Yt=Et.success,Rr=Et.successPercent,zr=Rr;return Yt&&"progress"in Yt&&(Object(k.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),zr=Yt.progress),Yt&&"percent"in Yt&&(zr=Yt.percent),zr}var fe=function(Et,Yt){var Rr={};for(var zr in Et)Object.prototype.hasOwnProperty.call(Et,zr)&&Yt.indexOf(zr)<0&&(Rr[zr]=Et[zr]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,zr=Object.getOwnPropertySymbols(Et);hn<zr.length;hn++)Yt.indexOf(zr[hn])<0&&Object.prototype.propertyIsEnumerable.call(Et,zr[hn])&&(Rr[zr[hn]]=Et[zr[hn]]);return Rr},we=function(Yt){var Rr=[];return Object.keys(Yt).forEach(function(zr){var hn=parseFloat(zr.replace(/%/g,""));isNaN(hn)||Rr.push({key:hn,value:Yt[zr]})}),Rr=Rr.sort(function(zr,hn){return zr.key-hn.key}),Rr.map(function(zr){var hn=zr.key,jt=zr.value;return"".concat(jt," ").concat(hn,"%")}).join(", ")},Re=function(Yt){var Rr=Yt.from,zr=Rr===void 0?re.blue:Rr,hn=Yt.to,jt=hn===void 0?re.blue:hn,vt=Yt.direction,bt=vt===void 0?"to right":vt,cr=fe(Yt,["from","to","direction"]);if(Object.keys(cr).length!==0){var Qt=we(cr);return{backgroundImage:"linear-gradient(".concat(bt,", ").concat(Qt,")")}}return{backgroundImage:"linear-gradient(".concat(bt,", ").concat(zr,", ").concat(jt,")")}},rt=function(Yt){var Rr=Yt.prefixCls,zr=Yt.percent,hn=Yt.strokeWidth,jt=Yt.size,vt=Yt.strokeColor,bt=Yt.strokeLinecap,cr=Yt.children,Qt=Yt.trailColor,Mt=Yt.success,tr=vt&&typeof vt!="string"?Re(vt):{background:vt},Rt=Qt?{backgroundColor:Qt}:void 0,qt=v()({width:"".concat(Ce(zr),"%"),height:hn||(jt==="small"?6:8),borderRadius:bt==="square"?0:""},tr),Hr=Be(Yt),Nr={width:"".concat(Ce(Hr),"%"),height:hn||(jt==="small"?6:8),borderRadius:bt==="square"?0:"",backgroundColor:Mt==null?void 0:Mt.strokeColor},Dr=Hr!==void 0?r.createElement("div",{className:"".concat(Rr,"-success-bg"),style:Nr}):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(Rr,"-outer")},r.createElement("div",{className:"".concat(Rr,"-inner"),style:Rt},r.createElement("div",{className:"".concat(Rr,"-bg"),style:qt}),Dr)),cr)},St=rt,ft={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},He=function(Yt){var Rr=Yt.map(function(){return Object(r.useRef)()}),zr=Object(r.useRef)();return Object(r.useEffect)(function(){var hn=Date.now(),jt=!1;Object.keys(Rr).forEach(function(vt){var bt=Rr[vt].current;if(!bt)return;jt=!0;var cr=bt.style;cr.transitionDuration=".3s, .3s, .3s, .06s",zr.current&&hn-zr.current<100&&(cr.transitionDuration="0s, 0s")}),jt&&(zr.current=Date.now())}),[Rr]};function er(){return er=Object.assign||function(Et){for(var Yt=1;Yt<arguments.length;Yt++){var Rr=arguments[Yt];for(var zr in Rr)Object.prototype.hasOwnProperty.call(Rr,zr)&&(Et[zr]=Rr[zr])}return Et},er.apply(this,arguments)}function ct(Et,Yt){return Xt(Et)||Pt(Et,Yt)||fr(Et,Yt)||Kt()}function Kt(){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 fr(Et,Yt){if(!Et)return;if(typeof Et=="string")return Gt(Et,Yt);var Rr=Object.prototype.toString.call(Et).slice(8,-1);if(Rr==="Object"&&Et.constructor&&(Rr=Et.constructor.name),Rr==="Map"||Rr==="Set")return Array.from(Et);if(Rr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Rr))return Gt(Et,Yt)}function Gt(Et,Yt){(Yt==null||Yt>Et.length)&&(Yt=Et.length);for(var Rr=0,zr=new Array(Yt);Rr<Yt;Rr++)zr[Rr]=Et[Rr];return zr}function Pt(Et,Yt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Et)))return;var Rr=[],zr=!0,hn=!1,jt=void 0;try{for(var vt=Et[Symbol.iterator](),bt;!(zr=(bt=vt.next()).done)&&!(Rr.push(bt.value),Yt&&Rr.length===Yt);zr=!0);}catch(cr){hn=!0,jt=cr}finally{try{!zr&&vt.return!=null&&vt.return()}finally{if(hn)throw jt}}return Rr}function Xt(Et){if(Array.isArray(Et))return Et}function Ge(Et,Yt){if(Et==null)return{};var Rr=pe(Et,Yt),zr,hn;if(Object.getOwnPropertySymbols){var jt=Object.getOwnPropertySymbols(Et);for(hn=0;hn<jt.length;hn++){if(zr=jt[hn],Yt.indexOf(zr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Et,zr))continue;Rr[zr]=Et[zr]}}return Rr}function pe(Et,Yt){if(Et==null)return{};var Rr={},zr=Object.keys(Et),hn,jt;for(jt=0;jt<zr.length;jt++){if(hn=zr[jt],Yt.indexOf(hn)>=0)continue;Rr[hn]=Et[hn]}return Rr}var oe=function(Yt){var Rr=Yt.className,zr=Yt.percent,hn=Yt.prefixCls,jt=Yt.strokeColor,vt=Yt.strokeLinecap,bt=Yt.strokeWidth,cr=Yt.style,Qt=Yt.trailColor,Mt=Yt.trailWidth,tr=Yt.transition,Rt=Ge(Yt,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Rt.gapPosition;var qt=Array.isArray(zr)?zr:[zr],Hr=Array.isArray(jt)?jt:[jt],Nr=He(qt),Dr=ct(Nr,1),cn=Dr[0],An=bt/2,ri=100-bt/2,$n="M ".concat(vt==="round"?An:0,",").concat(An,`
|
|
|
L `).concat(vt==="round"?ri:100,",").concat(An),fi="0 0 100 ".concat(bt),_i=0;return a.a.createElement("svg",er({className:h()("".concat(hn,"-line"),Rr),viewBox:fi,preserveAspectRatio:"none",style:cr},Rt),a.a.createElement("path",{className:"".concat(hn,"-line-trail"),d:$n,strokeLinecap:vt,stroke:Qt,strokeWidth:Mt||bt,fillOpacity:"0"}),qt.map(function(Di,Wi){var it={strokeDasharray:"".concat(Di,"px, 100px"),strokeDashoffset:"-".concat(_i,"px"),transition:tr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Le=Hr[Wi]||Hr[Hr.length-1];return _i+=Di,a.a.createElement("path",{key:Wi,className:"".concat(hn,"-line-path"),d:$n,strokeLinecap:vt,stroke:Le,strokeWidth:bt,fillOpacity:"0",ref:cn[Wi],style:it})}))};oe.defaultProps=ft;var lt=oe;function qe(){return qe=Object.assign||function(Et){for(var Yt=1;Yt<arguments.length;Yt++){var Rr=arguments[Yt];for(var zr in Rr)Object.prototype.hasOwnProperty.call(Rr,zr)&&(Et[zr]=Rr[zr])}return Et},qe.apply(this,arguments)}function ge(Et,Yt){return lr(Et)||ir(Et,Yt)||vr(Et,Yt)||Ht()}function Ht(){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 vr(Et,Yt){if(!Et)return;if(typeof Et=="string")return At(Et,Yt);var Rr=Object.prototype.toString.call(Et).slice(8,-1);if(Rr==="Object"&&Et.constructor&&(Rr=Et.constructor.name),Rr==="Map"||Rr==="Set")return Array.from(Et);if(Rr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Rr))return At(Et,Yt)}function At(Et,Yt){(Yt==null||Yt>Et.length)&&(Yt=Et.length);for(var Rr=0,zr=new Array(Yt);Rr<Yt;Rr++)zr[Rr]=Et[Rr];return zr}function ir(Et,Yt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Et)))return;var Rr=[],zr=!0,hn=!1,jt=void 0;try{for(var vt=Et[Symbol.iterator](),bt;!(zr=(bt=vt.next()).done)&&!(Rr.push(bt.value),Yt&&Rr.length===Yt);zr=!0);}catch(cr){hn=!0,jt=cr}finally{try{!zr&&vt.return!=null&&vt.return()}finally{if(hn)throw jt}}return Rr}function lr(Et){if(Array.isArray(Et))return Et}function dn(Et,Yt){if(Et==null)return{};var Rr=Ft(Et,Yt),zr,hn;if(Object.getOwnPropertySymbols){var jt=Object.getOwnPropertySymbols(Et);for(hn=0;hn<jt.length;hn++){if(zr=jt[hn],Yt.indexOf(zr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Et,zr))continue;Rr[zr]=Et[zr]}}return Rr}function Ft(Et,Yt){if(Et==null)return{};var Rr={},zr=Object.keys(Et),hn,jt;for(jt=0;jt<zr.length;jt++){if(hn=zr[jt],Yt.indexOf(hn)>=0)continue;Rr[hn]=Et[hn]}return Rr}var ur=0;function Jt(Et){return+Et.replace("%","")}function pt(Et){return Array.isArray(Et)?Et:[Et]}function at(Et,Yt,Rr,zr){var hn=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,jt=arguments.length>5?arguments[5]:void 0,vt=50-zr/2,bt=0,cr=-vt,Qt=0,Mt=-2*vt;switch(jt){case"left":bt=-vt,cr=0,Qt=2*vt,Mt=0;break;case"right":bt=vt,cr=0,Qt=-2*vt,Mt=0;break;case"bottom":cr=vt,Mt=2*vt;break;default:}var tr="M 50,50 m ".concat(bt,",").concat(cr,`
|
|
|
a `).concat(vt,",").concat(vt," 0 1 1 ").concat(Qt,",").concat(-Mt,`
|
|
|
a `).concat(vt,",").concat(vt," 0 1 1 ").concat(-Qt,",").concat(Mt),Rt=Math.PI*2*vt,qt={stroke:Rr,strokeDasharray:"".concat(Yt/100*(Rt-hn),"px ").concat(Rt,"px"),strokeDashoffset:"-".concat(hn/2+Et/100*(Rt-hn),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:tr,pathStyle:qt}}var Pr=function(Yt){var Rr=Yt.prefixCls,zr=Yt.strokeWidth,hn=Yt.trailWidth,jt=Yt.gapDegree,vt=Yt.gapPosition,bt=Yt.trailColor,cr=Yt.strokeLinecap,Qt=Yt.style,Mt=Yt.className,tr=Yt.strokeColor,Rt=Yt.percent,qt=dn(Yt,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Hr=Object(r.useMemo)(function(){return ur+=1,ur},[]),Nr=at(0,100,bt,zr,jt,vt),Dr=Nr.pathString,cn=Nr.pathStyle,An=pt(Rt),ri=pt(tr),$n=ri.find(function(it){return Object.prototype.toString.call(it)==="[object Object]"}),fi=He(An),_i=ge(fi,1),Di=_i[0],Wi=function(){var Le=0;return An.map(function(je,Xe){var nt=ri[Xe]||ri[ri.length-1],Ze=Object.prototype.toString.call(nt)==="[object Object]"?"url(#".concat(Rr,"-gradient-").concat(Hr,")"):"",ot=at(Le,je,nt,zr,jt,vt);return Le+=je,a.a.createElement("path",{key:Xe,className:"".concat(Rr,"-circle-path"),d:ot.pathString,stroke:Ze,strokeLinecap:cr,strokeWidth:zr,opacity:je===0?0:1,fillOpacity:"0",style:ot.pathStyle,ref:Di[Xe]})})};return a.a.createElement("svg",qe({className:h()("".concat(Rr,"-circle"),Mt),viewBox:"0 0 100 100",style:Qt},qt),$n&&a.a.createElement("defs",null,a.a.createElement("linearGradient",{id:"".concat(Rr,"-gradient-").concat(Hr),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys($n).sort(function(it,Le){return Jt(it)-Jt(Le)}).map(function(it,Le){return a.a.createElement("stop",{key:Le,offset:it,stopColor:$n[it]})}))),a.a.createElement("path",{className:"".concat(Rr,"-circle-trail"),d:Dr,stroke:bt,strokeLinecap:cr,strokeWidth:hn||zr,fillOpacity:"0",style:cn}),Wi().reverse())};Pr.defaultProps=ft;var un=Pr,_n={Line:lt,Circle:un};function Xn(Et){var Yt=Et.percent,Rr=Et.success,zr=Et.successPercent,hn=Ce(Yt),jt=Be({success:Rr,successPercent:zr});return jt?[Ce(jt),Ce(hn-Ce(jt))]:hn}function xi(Et){var Yt=Et.success,Rr=Et.strokeColor,zr=Et.successPercent,hn=Rr||null,jt=Be({success:Yt,successPercent:zr});return jt?[re.green,hn]:hn}var Pn=function(Yt){var Rr=Yt.prefixCls,zr=Yt.width,hn=Yt.strokeWidth,jt=Yt.trailColor,vt=Yt.strokeLinecap,bt=Yt.gapPosition,cr=Yt.gapDegree,Qt=Yt.type,Mt=Yt.children,tr=zr||120,Rt={width:tr,height:tr,fontSize:tr*.15+6},qt=hn||6,Hr=bt||Qt==="dashboard"&&"bottom"||"top",Nr=function(){return cr||cr===0?cr:Qt==="dashboard"?75:void 0},Dr=xi(Yt),cn=Object.prototype.toString.call(Dr)==="[object Object]",An=h()("".concat(Rr,"-inner"),f()({},"".concat(Rr,"-circle-gradient"),cn));return r.createElement("div",{className:An,style:Rt},r.createElement(un,{percent:Xn(Yt),strokeWidth:qt,trailWidth:qt,strokeColor:Dr,strokeLinecap:vt,trailColor:jt,prefixCls:Rr,gapDegree:Nr(),gapPosition:Hr}),Mt)},Un=Pn,$t=function(Yt){for(var Rr=Yt.size,zr=Yt.steps,hn=Yt.percent,jt=hn===void 0?0:hn,vt=Yt.strokeWidth,bt=vt===void 0?8:vt,cr=Yt.strokeColor,Qt=Yt.trailColor,Mt=Yt.prefixCls,tr=Yt.children,Rt=Math.floor(zr*(jt/100)),qt=Rr==="small"?2:14,Hr=[],Nr=0;Nr<zr;Nr+=1)Hr.push(r.createElement("div",{key:Nr,className:h()("".concat(Mt,"-steps-item"),f()({},"".concat(Mt,"-steps-item-active"),Nr<=Rt-1)),style:{backgroundColor:Nr<=Rt-1?cr:Qt,width:qt,height:bt}}));return r.createElement("div",{className:"".concat(Mt,"-steps-outer")},Hr,tr)},xt=$t,De=function(Et,Yt){var Rr={};for(var zr in Et)Object.prototype.hasOwnProperty.call(Et,zr)&&Yt.indexOf(zr)<0&&(Rr[zr]=Et[zr]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,zr=Object.getOwnPropertySymbols(Et);hn<zr.length;hn++)Yt.indexOf(zr[hn])<0&&Object.prototype.propertyIsEnumerable.call(Et,zr[hn])&&(Rr[zr[hn]]=Et[zr[hn]]);return Rr},ke=Object(I.a)("line","circle","dashboard"),Pe=Object(I.a)("normal","exception","active","success"),tt=function(Et){o()(Rr,Et);var Yt=l()(Rr);function Rr(){var zr;return p()(this,Rr),zr=Yt.apply(this,arguments),zr.renderProgress=function(hn){var jt,vt=hn.getPrefixCls,bt=hn.direction,cr=i()(zr),Qt=cr.props,Mt=Qt.prefixCls,tr=Qt.className,Rt=Qt.size,qt=Qt.type,Hr=Qt.steps,Nr=Qt.showInfo,Dr=Qt.strokeColor,cn=De(Qt,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),An=vt("progress",Mt),ri=zr.getProgressStatus(),$n=zr.renderProcessInfo(An,ri);Object(k.a)(!("successPercent"in Qt),"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var fi;qt==="line"?fi=Hr?r.createElement(xt,v()({},zr.props,{strokeColor:typeof Dr=="string"?Dr:void 0,prefixCls:An,steps:Hr}),$n):r.createElement(St,v()({},zr.props,{prefixCls:An}),$n):(qt==="circle"||qt==="dashboard")&&(fi=r.createElement(Un,v()({},zr.props,{prefixCls:An,progressStatus:ri}),$n));var _i=h()(An,(jt={},f()(jt,"".concat(An,"-").concat(qt==="dashboard"&&"circle"||Hr&&"steps"||qt),!0),f()(jt,"".concat(An,"-status-").concat(ri),!0),f()(jt,"".concat(An,"-show-info"),Nr),f()(jt,"".concat(An,"-").concat(Rt),Rt),f()(jt,"".concat(An,"-rtl"),bt==="rtl"),jt),tr);return r.createElement("div",v()({},Object(g.default)(cn,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:_i}),fi)},zr}return u()(Rr,[{key:"getPercentNumber",value:function(){var hn=this.props.percent,jt=hn===void 0?0:hn,vt=Be(this.props);return parseInt(vt!==void 0?vt.toString():jt.toString(),10)}},{key:"getProgressStatus",value:function(){var hn=this.props.status;return Pe.indexOf(hn)<0&&this.getPercentNumber()>=100?"success":hn||"normal"}},{key:"renderProcessInfo",value:function(hn,jt){var vt=this.props,bt=vt.showInfo,cr=vt.format,Qt=vt.type,Mt=vt.percent,tr=Be(this.props);if(!bt)return null;var Rt,qt=cr||function(Nr){return"".concat(Nr,"%")},Hr=Qt==="line";return cr||jt!=="exception"&&jt!=="success"?Rt=qt(Ce(Mt),Ce(tr)):jt==="exception"?Rt=Hr?r.createElement(w.a,null):r.createElement(b.a,null):jt==="success"&&(Rt=Hr?r.createElement(_.a,null):r.createElement(E.a,null)),r.createElement("span",{className:"".concat(hn,"-text"),title:typeof Rt=="string"?Rt:void 0},Rt)}},{key:"render",value:function(){return r.createElement(O.a,null,this.renderProgress)}}]),Rr}(r.Component);tt.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var yt=D.a=tt},CH3K:function(R,D){function n(y,f){for(var x=-1,v=f.length,m=y.length;++x<v;)y[m+x]=f[x];return y}R.exports=n},"CMP+":function(R,D,n){var y=n("bYtY"),f=n("hM6l"),x=function(m,p,d,u){f.call(this,m,p,d),this.type=u||"value",this.model=null};x.prototype={constructor:x,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return this.model.get("orient")==="horizontal"}},y.inherits(x,f);var v=x;R.exports=v},CP8R:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};D.default=y},"CWI+":function(R,D,n){},CbHG:function(R,D,n){var y=n("IwbS"),f=y.subPixelOptimize,x=n("zM3Q"),v=n("OELB"),m=v.parsePercent,p=n("bYtY"),d=p.retrieve2,u=typeof Float32Array!="undefined"?Float32Array:Array,s={seriesType:"candlestick",plan:x(),reset:function(o){var e=o.coordinateSystem,l=o.getData(),r=t(o,l),a=0,c=1,h=["x","y"],g=l.mapDimension(h[a]),A=l.mapDimension(h[c],!0),b=A[0],S=A[1],E=A[2],C=A[3];if(l.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),g==null||A.length<4)return;return{progress:o.pipelineContext.large?T:_};function _(w,O){for(var I;(I=w.next())!=null;){var k=O.get(g,I),M=O.get(b,I),j=O.get(S,I),P=O.get(E,I),X=O.get(C,I),F=Math.min(M,j),U=Math.max(M,j),K=te(F,k),z=te(U,k),V=te(P,k),Q=te(X,k),G=[];q(G,z,0),q(G,K,1),G.push(re(Q),re(z),re(V),re(K)),O.setItemLayout(I,{sign:i(O,I,M,j,S),initBaseline:M>j?z[c]:K[c],ends:G,brushRect:se(P,X,k)})}function te(xe,Oe){var Me=[];return Me[a]=Oe,Me[c]=xe,isNaN(Oe)||isNaN(xe)?[NaN,NaN]:e.dataToPoint(Me)}function q(xe,Oe,Me){var Qe=Oe.slice(),Ve=Oe.slice();Qe[a]=f(Qe[a]+r/2,1,!1),Ve[a]=f(Ve[a]-r/2,1,!0),Me?xe.push(Qe,Ve):xe.push(Ve,Qe)}function se(xe,Oe,Me){var Qe=te(xe,Me),Ve=te(Oe,Me);return Qe[a]-=r/2,Ve[a]-=r/2,{x:Qe[0],y:Qe[1],width:c?r:Ve[0]-Qe[0],height:c?Ve[1]-Qe[1]:r}}function re(xe){return xe[a]=f(xe[a],1),xe}}function T(w,O){for(var I=new u(w.count*4),k=0,M,j=[],P=[],X;(X=w.next())!=null;){var F=O.get(g,X),U=O.get(b,X),K=O.get(S,X),z=O.get(E,X),V=O.get(C,X);if(isNaN(F)||isNaN(z)||isNaN(V)){I[k++]=NaN,k+=3;continue}I[k++]=i(O,X,U,K,S),j[a]=F,j[c]=z,M=e.dataToPoint(j,null,P),I[k++]=M?M[0]:NaN,I[k++]=M?M[1]:NaN,j[c]=V,M=e.dataToPoint(j,null,P),I[k++]=M?M[1]:NaN}O.setLayout("largePoints",I)}}};function i(o,e,l,r,a){var c;return l>r?c=-1:l<r?c=1:c=e>0?o.get(a,e-1)<=r?1:-1:1,c}function t(o,e){var l=o.getBaseAxis(),r,a=l.type==="category"?l.getBandWidth():(r=l.getExtent(),Math.abs(r[1]-r[0])/e.count()),c=m(d(o.get("barMaxWidth"),a),a),h=m(d(o.get("barMinWidth"),1),a),g=o.get("barWidth");return g!=null?m(g,a):Math.max(Math.min(a/2,c),h)}R.exports=s},CiB2:function(R,D,n){"use strict";n.d(D,"a",function(){return y});function y(f){if(f==null)throw new TypeError("Cannot destructure undefined")}},Cm0C:function(R,D,n){n("5NHt"),n("f3JH")},CrYA:function(R,D,n){var y=n("MFOe"),f=y.Global;R.exports={name:"sessionStorage",read:v,write:m,each:p,remove:d,clearAll:u};function x(){return f.sessionStorage}function v(s){return x().getItem(s)}function m(s,i){return x().setItem(s,i)}function p(s){for(var i=x().length-1;i>=0;i--){var t=x().key(i);s(v(t),t)}}function d(s){return x().removeItem(s)}function u(){return x().clear()}},Csr3:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("4vCz"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},Cwc5:function(R,D,n){var y=n("NKxu"),f=n("Npjl");function x(v,m){var p=f(v,m);return y(p)?p:void 0}R.exports=x},D1WM:function(R,D,n){var y=n("bYtY"),f=n("hM6l"),x=function(m,p,d,u,s){f.call(this,m,p,d),this.type=u||"value",this.axisIndex=s};x.prototype={constructor:x,model:null,isHorizontal:function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"}},y.inherits(x,f);var v=x;R.exports=v},D5nY:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("4NO4"),v=x.makeInner,m=x.getDataItemValue,p=n("bYtY"),d=p.createHashMap,u=p.each,s=p.map,i=p.isArray,t=p.isString,o=p.isObject,e=p.isTypedArray,l=p.isArrayLike,r=p.extend,a=p.assert,c=n("7G+c"),h=n("k9D9"),g=h.SOURCE_FORMAT_ORIGINAL,A=h.SOURCE_FORMAT_ARRAY_ROWS,b=h.SOURCE_FORMAT_OBJECT_ROWS,S=h.SOURCE_FORMAT_KEYED_COLUMNS,E=h.SOURCE_FORMAT_UNKNOWN,C=h.SOURCE_FORMAT_TYPED_ARRAY,_=h.SERIES_LAYOUT_BY_ROW,T={Must:1,Might:2,Not:3},w=v();function O(G){var te=G.option.source,q=E;if(e(te))q=C;else if(i(te)){te.length===0&&(q=A);for(var se=0,re=te.length;se<re;se++){var xe=te[se];if(xe==null)continue;if(i(xe)){q=A;break}else if(o(xe)){q=b;break}}}else if(o(te)){for(var Oe in te)if(te.hasOwnProperty(Oe)&&l(te[Oe])){q=S;break}}else if(te!=null)throw new Error("Invalid data");w(G).sourceFormat=q}function I(G){return w(G).source}function k(G){w(G).datasetMap=d()}function M(G){var te=G.option,q=te.data,se=e(q)?C:g,re=!1,xe=te.seriesLayoutBy,Oe=te.sourceHeader,Me=te.dimensions,Qe=z(G);if(Qe){var Ve=Qe.option;q=Ve.source,se=w(Qe).sourceFormat,re=!0,xe=xe||Ve.seriesLayoutBy,Oe==null&&(Oe=Ve.sourceHeader),Me=Me||Ve.dimensions}var ut=j(q,se,xe,Oe,Me);w(G).source=new c({data:q,fromDataset:re,seriesLayoutBy:xe,sourceFormat:se,dimensionsDefine:ut.dimensionsDefine,startIndex:ut.startIndex,dimensionsDetectCount:ut.dimensionsDetectCount,encodeDefine:te.encode})}function j(G,te,q,se,re){if(!G)return{dimensionsDefine:P(re)};var xe,Oe;if(te===A)se==="auto"||se==null?X(function(Qe){Qe!=null&&Qe!=="-"&&(t(Qe)?Oe==null&&(Oe=1):Oe=0)},q,G,10):Oe=se?1:0,!re&&Oe===1&&(re=[],X(function(Qe,Ve){re[Ve]=Qe!=null?Qe:""},q,G)),xe=re?re.length:q===_?G.length:G[0]?G[0].length:null;else if(te===b)re||(re=F(G));else if(te===S)re||(re=[],u(G,function(Qe,Ve){re.push(Ve)}));else if(te===g){var Me=m(G[0]);xe=i(Me)&&Me.length||1}else te===C;return{startIndex:Oe,dimensionsDefine:P(re),dimensionsDetectCount:xe}}function P(G){if(!G)return;var te=d();return s(G,function(q,se){if(q=r({},o(q)?q:{name:q}),q.name==null)return q;q.name+="",q.displayName==null&&(q.displayName=q.name);var re=te.get(q.name);return re?q.name+="-"+re.count++:te.set(q.name,{count:1}),q})}function X(G,te,q,se){if(se==null&&(se=Infinity),te===_)for(var re=0;re<q.length&&re<se;re++)G(q[re]?q[re][0]:null,re);else for(var xe=q[0]||[],re=0;re<xe.length&&re<se;re++)G(xe[re],re)}function F(G){for(var te=0,q;te<G.length&&!(q=G[te++]););if(q){var se=[];return u(q,function(re,xe){se.push(xe)}),se}}function U(G,te,q){var se={},re=z(te);if(!re||!G)return se;var xe=[],Oe=[],Me=te.ecModel,Qe=w(Me).datasetMap,Ve=re.uid+"_"+q.seriesLayoutBy,ut,Fe;G=G.slice(),u(G,function(J,Y){!o(J)&&(G[Y]={name:J}),J.type==="ordinal"&&ut==null&&(ut=Y,Fe=he(G[Y])),se[J.name]=[]});var ue=Qe.get(Ve)||Qe.set(Ve,{categoryWayDim:Fe,valueWayDim:0});u(G,function(J,Y){var $=J.name,de=he(J);if(ut==null){var be=ue.valueWayDim;et(se[$],be,de),et(Oe,be,de),ue.valueWayDim+=de}else if(ut===Y)et(se[$],0,de),et(xe,0,de);else{var be=ue.categoryWayDim;et(se[$],be,de),et(Oe,be,de),ue.categoryWayDim+=de}});function et(J,Y,$){for(var de=0;de<$;de++)J.push(Y+de)}function he(J){var Y=J.dimsDef;return Y?Y.length:1}return xe.length&&(se.itemName=xe),Oe.length&&(se.seriesName=Oe),se}function K(G,te,q){var se={},re=z(G);if(!re)return se;var xe=te.sourceFormat,Oe=te.dimensionsDefine,Me;(xe===b||xe===S)&&u(Oe,function(ut,Fe){(o(ut)?ut.name:ut)==="name"&&(Me=Fe)});var Qe=function(){for(var ut={},Fe={},ue=[],et=0,he=Math.min(5,q);et<he;et++){var J=Q(te.data,xe,te.seriesLayoutBy,Oe,te.startIndex,et);ue.push(J);var Y=J===T.Not;if(Y&&ut.v==null&&et!==Me&&(ut.v=et),(ut.n==null||ut.n===ut.v||!Y&&ue[ut.n]===T.Not)&&(ut.n=et),$(ut)&&ue[ut.n]!==T.Not)return ut;Y||(J===T.Might&&Fe.v==null&&et!==Me&&(Fe.v=et),(Fe.n==null||Fe.n===Fe.v)&&(Fe.n=et))}function $(de){return de.v!=null&&de.n!=null}return $(ut)?ut:$(Fe)?Fe:null}();if(Qe){se.value=Qe.v;var Ve=Me!=null?Me:Qe.n;se.itemName=[Ve],se.seriesName=[Ve]}return se}function z(G){var te=G.option,q=te.data;if(!q)return G.ecModel.getComponent("dataset",te.datasetIndex||0)}function V(G,te){return Q(G.data,G.sourceFormat,G.seriesLayoutBy,G.dimensionsDefine,G.startIndex,te)}function Q(G,te,q,se,re,xe){var Oe,Me=5;if(e(G))return T.Not;var Qe,Ve;if(se){var ut=se[xe];o(ut)?(Qe=ut.name,Ve=ut.type):t(ut)&&(Qe=ut)}if(Ve!=null)return Ve==="ordinal"?T.Must:T.Not;if(te===A)if(q===_){for(var Fe=G[xe],ue=0;ue<(Fe||[]).length&&ue<Me;ue++)if((Oe=Y(Fe[re+ue]))!=null)return Oe}else for(var ue=0;ue<G.length&&ue<Me;ue++){var et=G[re+ue];if(et&&(Oe=Y(et[xe]))!=null)return Oe}else if(te===b){if(!Qe)return T.Not;for(var ue=0;ue<G.length&&ue<Me;ue++){var he=G[ue];if(he&&(Oe=Y(he[Qe]))!=null)return Oe}}else if(te===S){if(!Qe)return T.Not;var Fe=G[Qe];if(!Fe||e(Fe))return T.Not;for(var ue=0;ue<Fe.length&&ue<Me;ue++)if((Oe=Y(Fe[ue]))!=null)return Oe}else if(te===g)for(var ue=0;ue<G.length&&ue<Me;ue++){var he=G[ue],J=m(he);if(!i(J))return T.Not;if((Oe=Y(J[xe]))!=null)return Oe}function Y($){var de=t($);if($!=null&&isFinite($)&&$!=="")return de?T.Might:T.Not;if(de&&$!=="-")return T.Must}return T.Not}D.BE_ORDINAL=T,D.detectSourceFormat=O,D.getSource=I,D.resetSourceDefaulter=k,D.prepareSource=M,D.makeSeriesEncodeForAxisCoordSys=U,D.makeSeriesEncodeForNameBased=K,D.guessOrdinal=V},D9ME:function(R,D,n){var y=n("IwbS"),f=n("fls0"),x=n("bYtY"),v=n("oVpE"),m=v.createSymbol,p=n("QBsz"),d=n("Sj9i");function u(t,o,e){y.Group.call(this),this.add(this.createLine(t,o,e)),this._updateEffectSymbol(t,o)}var s=u.prototype;s.createLine=function(t,o,e){return new f(t,o,e)},s._updateEffectSymbol=function(t,o){var e=t.getItemModel(o),l=e.getModel("effect"),r=l.get("symbolSize"),a=l.get("symbol");x.isArray(r)||(r=[r,r]);var c=l.get("color")||t.getItemVisual(o,"color"),h=this.childAt(1);if(this._symbolType!==a&&(this.remove(h),h=m(a,-.5,-.5,1,1,c),h.z2=100,h.culling=!0,this.add(h)),!h)return;h.setStyle("shadowColor",c),h.setStyle(l.getItemStyle(["color"])),h.attr("scale",r),h.setColor(c),h.attr("scale",r),this._symbolType=a,this._symbolScale=r,this._updateEffectAnimation(t,l,o)},s._updateEffectAnimation=function(t,o,e){var l=this.childAt(1);if(!l)return;var r=this,a=t.getItemLayout(e),c=o.get("period")*1e3,h=o.get("loop"),g=o.get("constantSpeed"),A=x.retrieve(o.get("delay"),function(C){return C/t.count()*c/3}),b=typeof A=="function";if(l.ignore=!0,this.updateAnimationPoints(l,a),g>0&&(c=this.getLineLength(l)/g*1e3),c!==this._period||h!==this._loop){l.stopAnimation();var S=A;b&&(S=A(e)),l.__t>0&&(S=-c*l.__t),l.__t=0;var E=l.animate("",h).when(c,{__t:1}).delay(S).during(function(){r.updateSymbolPosition(l)});h||E.done(function(){r.remove(l)}),E.start()}this._period=c,this._loop=h},s.getLineLength=function(t){return p.dist(t.__p1,t.__cp1)+p.dist(t.__cp1,t.__p2)},s.updateAnimationPoints=function(t,o){t.__p1=o[0],t.__p2=o[1],t.__cp1=o[2]||[(o[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2]},s.updateData=function(t,o,e){this.childAt(0).updateData(t,o,e),this._updateEffectSymbol(t,o)},s.updateSymbolPosition=function(t){var o=t.__p1,e=t.__p2,l=t.__cp1,r=t.__t,a=t.position,c=[a[0],a[1]],h=d.quadraticAt,g=d.quadraticDerivativeAt;a[0]=h(o[0],l[0],e[0],r),a[1]=h(o[1],l[1],e[1],r);var A=g(o[0],l[0],e[0],r),b=g(o[1],l[1],e[1],r);if(t.rotation=-Math.atan2(b,A)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(t.__lastT!==void 0&&t.__lastT<t.__t){var S=p.dist(c,a)*1.05;t.attr("scale",[t.scale[0],S]),r===1&&(a[0]=c[0]+(a[0]-c[0])/2,a[1]=c[1]+(a[1]-c[1])/2)}else if(t.__lastT===1){var S=2*p.dist(o,a);t.attr("scale",[t.scale[0],S])}else t.attr("scale",this._symbolScale);t.__lastT=t.__t,t.ignore=!1},s.updateLayout=function(t,o){this.childAt(0).updateLayout(t,o);var e=t.getItemModel(o).getModel("effect");this._updateEffectAnimation(t,e,o)},x.inherits(u,y.Group);var i=u;R.exports=i},DBLp:function(R,D){function n(){}n.prototype={diff:function(p,d,u){u||(u=function(b,S){return b===S}),this.equals=u;var s=this;p=p.slice(),d=d.slice();var i=d.length,t=p.length,o=1,e=i+t,l=[{newPos:-1,components:[]}],r=this.extractCommon(l[0],d,p,0);if(l[0].newPos+1>=i&&r+1>=t){for(var a=[],c=0;c<d.length;c++)a.push(c);return[{indices:a,count:d.length}]}function h(){for(var A=-1*o;A<=o;A+=2){var b,S=l[A-1],E=l[A+1],C=(E?E.newPos:0)-A;S&&(l[A-1]=void 0);var _=S&&S.newPos+1<i,T=E&&0<=C&&C<t;if(!_&&!T){l[A]=void 0;continue}if(!_||T&&S.newPos<E.newPos?(b=f(E),s.pushComponent(b.components,void 0,!0)):(b=S,b.newPos++,s.pushComponent(b.components,!0,void 0)),C=s.extractCommon(b,d,p,A),b.newPos+1>=i&&C+1>=t)return y(s,b.components,d,p);l[A]=b}o++}for(;o<=e;){var g=h();if(g)return g}},pushComponent:function(p,d,u){var s=p[p.length-1];s&&s.added===d&&s.removed===u?p[p.length-1]={count:s.count+1,added:d,removed:u}:p.push({count:1,added:d,removed:u})},extractCommon:function(p,d,u,s){for(var i=d.length,t=u.length,o=p.newPos,e=o-s,l=0;o+1<i&&e+1<t&&this.equals(d[o+1],u[e+1]);)o++,e++,l++;return l&&p.components.push({count:l}),p.newPos=o,e},tokenize:function(p){return p.slice()},join:function(p){return p.slice()}};function y(m,p,d,u){for(var s=0,i=p.length,t=0,o=0;s<i;s++){var e=p[s];if(e.removed){for(var l=[],r=o;r<o+e.count;r++)l.push(r);e.indices=l,o+=e.count}else{for(var l=[],r=t;r<t+e.count;r++)l.push(r);e.indices=l,t+=e.count,e.added||(o+=e.count)}}return p}function f(m){return{newPos:m.newPos,components:m.components.slice(0)}}var x=new n;function v(m,p,d){return x.diff(m,p,d)}R.exports=v},DEFe:function(R,D,n){var y=n("bYtY"),f=n("SgGq"),x=n("Ae+d"),v=n("xSat"),m=v.onIrrelevantElement,p=n("IwbS"),d=n("W4dC"),u=n("iRjW"),s=u.getUID,i=n("DN4a");function t(a){var c=a.getItemStyle(),h=a.get("areaColor");return h!=null&&(c.fill=h),c}function o(a,c,h,g,A){h.off("click"),h.off("mousedown"),c.get("selectedMode")&&(h.on("mousedown",function(){a._mouseDownFlag=!0}),h.on("click",function(b){if(!a._mouseDownFlag)return;a._mouseDownFlag=!1;for(var S=b.target;!S.__regions;)S=S.parent;if(!S)return;var E={type:(c.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:y.map(S.__regions,function(C){return{name:C.name,from:A.uid}})};E[c.mainType+"Id"]=c.id,g.dispatchAction(E),e(c,h)}))}function e(a,c){c.eachChild(function(h){y.each(h.__regions,function(g){h.trigger(a.isSelected(g.name)?"emphasis":"normal")})})}function l(a,c){var h=new p.Group;this.uid=s("ec_map_draw"),this._controller=new f(a.getZr()),this._controllerHost={target:c?h:null},this.group=h,this._updateGroup=c,this._mouseDownFlag,this._mapName,this._initialized,h.add(this._regionsGroup=new p.Group),h.add(this._backgroundGroup=new p.Group)}l.prototype={constructor:l,draw:function(a,c,h,g,A){var b=a.mainType==="geo",S=a.getData&&a.getData();b&&c.eachComponent({mainType:"series",subType:"map"},function(z){!S&&z.getHostGeoModel()===a&&(S=z.getData())});var E=a.coordinateSystem;this._updateBackground(E);var C=this._regionsGroup,_=this.group,T=E.getTransformInfo(),w=!C.childAt(0)||A,O;if(w)_.transform=T.roamTransform,_.decomposeTransform(),_.dirty();else{var I=new i;I.transform=T.roamTransform,I.decomposeTransform();var k={scale:I.scale,position:I.position};O=I.scale,p.updateProps(_,k,a)}var M=T.rawScale,j=T.rawPosition;C.removeAll();var P=["itemStyle"],X=["emphasis","itemStyle"],F=["label"],U=["emphasis","label"],K=y.createHashMap();y.each(E.regions,function(z){var V=K.get(z.name)||K.set(z.name,new p.Group),Q=new p.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});V.add(Q);var G=a.getRegionModel(z.name)||a,te=G.getModel(P),q=G.getModel(X),se=t(te),re=t(q),xe=G.getModel(F),Oe=G.getModel(U),Me;if(S){Me=S.indexOfName(z.name);var Qe=S.getItemVisual(Me,"color",!0);Qe&&(se.fill=Qe)}var Ve=function(be){return[be[0]*M[0]+j[0],be[1]*M[1]+j[1]]};y.each(z.geometries,function(be){if(be.type!=="polygon")return;for(var Ce=[],Be=0;Be<be.exterior.length;++Be)Ce.push(Ve(be.exterior[Be]));Q.shape.paths.push(new p.Polygon({segmentIgnoreThreshold:1,shape:{points:Ce}}));for(var Be=0;Be<(be.interiors?be.interiors.length:0);++Be){for(var fe=be.interiors[Be],Ce=[],we=0;we<fe.length;++we)Ce.push(Ve(fe[we]));Q.shape.paths.push(new p.Polygon({segmentIgnoreThreshold:1,shape:{points:Ce}}))}}),Q.setStyle(se),Q.style.strokeNoScale=!0,Q.culling=!0;var ut=xe.get("show"),Fe=Oe.get("show"),ue=S&&isNaN(S.get(S.mapDimension("value"),Me)),et=S&&S.getItemLayout(Me);if(b||ue&&(ut||Fe)||et&&et.showLabel){var he=b?z.name:Me,J;(!S||Me>=0)&&(J=a);var Y=new p.Text({position:Ve(z.center.slice()),scale:[1/_.scale[0],1/_.scale[1]],z2:10,silent:!0});if(p.setLabelStyle(Y.style,Y.hoverStyle={},xe,Oe,{labelFetcher:J,labelDataIndex:he,defaultText:z.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!w){var $=[1/O[0],1/O[1]];p.updateProps(Y,{scale:$},a)}V.add(Y)}if(S)S.setItemGraphicEl(Me,V);else{var G=a.getRegionModel(z.name);Q.eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:z.name,region:G&&G.option||{}}}var de=V.__regions||(V.__regions=[]);de.push(z),V.highDownSilentOnTouch=!!a.get("selectedMode"),p.setHoverStyle(V,re),C.add(V)}),this._updateController(a,c,h),o(this,a,C,h,g),e(a,C)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&d.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(a){var c=a.map;this._mapName!==c&&y.each(d.makeGraphic(c,this.uid),function(h){this._backgroundGroup.add(h)},this),this._mapName=c},_updateController:function(a,c,h){var g=a.coordinateSystem,A=this._controller,b=this._controllerHost;b.zoomLimit=a.get("scaleLimit"),b.zoom=g.getZoom(),A.enable(a.get("roam")||!1);var S=a.mainType;function E(){var C={type:"geoRoam",componentType:S};return C[S+"Id"]=a.id,C}A.off("pan").on("pan",function(C){this._mouseDownFlag=!1,x.updateViewOnPan(b,C.dx,C.dy),h.dispatchAction(y.extend(E(),{dx:C.dx,dy:C.dy}))},this),A.off("zoom").on("zoom",function(C){if(this._mouseDownFlag=!1,x.updateViewOnZoom(b,C.scale,C.originX,C.originY),h.dispatchAction(y.extend(E(),{zoom:C.scale,originX:C.originX,originY:C.originY})),this._updateGroup){var _=this.group.scale;this._regionsGroup.traverse(function(T){T.type==="text"&&T.attr("scale",[1/_[0],1/_[1]])})}},this),A.setPointerChecker(function(C,_,T){return g.getViewRectAfterRoam().contain(_,T)&&!m(C,h,a)})}};var r=l;R.exports=r},DFOY:function(R,D,n){"use strict";var y=n("pVnL"),f=n.n(y),x=n("lSNA"),v=n.n(x),m=n("lwsE"),p=n.n(m),d=n("W8MJ"),u=n.n(d),s=n("PJYZ"),i=n.n(s),t=n("7W2i"),o=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),a=n.n(r),c=n("VTBJ"),h=n("1OyB"),g=n("vuIU"),A=n("JX7q"),b=n("Ji7U"),S=n("LK+K"),E=n("i8i4"),C=n.n(E),_=n("l4aY"),T=n("m+aA"),w=n("c+Xe"),O=n("zT1h"),I=n("QC+M"),k=n("TSYQ"),M=n.n(k);function j(zt,Ot,kt){return kt?zt[0]===Ot[0]:zt[0]===Ot[0]&&zt[1]===Ot[1]}function P(zt,Ot,kt){var Bt=zt[Ot]||{};return Object(c.a)(Object(c.a)({},Bt),kt)}function X(zt,Ot,kt,Bt){for(var Wt=kt.points,Lt=Object.keys(zt),dr=0;dr<Lt.length;dr+=1){var yr=Lt[dr];if(j(zt[yr].points,Wt,Bt))return"".concat(Ot,"-placement-").concat(yr)}return""}var F=n("Ff2n"),U=n("xEkU"),K=n.n(U),z=n("9mu1"),V=n("rePB"),Q=n("U8pU"),G=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function te(zt,Ot){var kt={};return kt[zt.toLowerCase()]=Ot.toLowerCase(),kt["Webkit".concat(zt)]="webkit".concat(Ot),kt["Moz".concat(zt)]="moz".concat(Ot),kt["ms".concat(zt)]="MS".concat(Ot),kt["O".concat(zt)]="o".concat(Ot.toLowerCase()),kt}function q(zt,Ot){var kt={animationend:te("Animation","AnimationEnd"),transitionend:te("Transition","TransitionEnd")};return zt&&("AnimationEvent"in Ot||delete kt.animationend.animation,"TransitionEvent"in Ot||delete kt.transitionend.transition),kt}var se=q(G,typeof window!="undefined"?window:{}),re={};if(G){var xe=document.createElement("div");re=xe.style}var Oe={};function Me(zt){if(Oe[zt])return Oe[zt];var Ot=se[zt];if(Ot)for(var kt=Object.keys(Ot),Bt=kt.length,Wt=0;Wt<Bt;Wt+=1){var Lt=kt[Wt];if(Object.prototype.hasOwnProperty.call(Ot,Lt)&&Lt in re)return Oe[zt]=Ot[Lt],Oe[zt]}return""}var Qe=Me("animationend"),Ve=Me("transitionend"),ut=!!(Qe&&Ve);function Fe(zt,Ot){if(!zt)return null;if(Object(Q.a)(zt)==="object"){var kt=Ot.replace(/-\w/g,function(Bt){return Bt[1].toUpperCase()});return zt[kt]}return"".concat(zt,"-").concat(Ot)}var ue="none",et="appear",he="enter",J="leave";function Y(zt){var Ot=zt,kt=!!r.forwardRef;Object(Q.a)(zt)==="object"&&(Ot=zt.transitionSupport,kt="forwardRef"in zt?zt.forwardRef:kt);function Bt(Lt){return!!(Lt.motionName&&Ot)}var Wt=function(Lt){Object(b.a)(yr,Lt);var dr=Object(S.a)(yr);function yr(){var br;return Object(h.a)(this,yr),br=dr.apply(this,arguments),br.$cacheEle=null,br.node=null,br.raf=null,br.destroyed=!1,br.deadlineId=null,br.state={status:ue,statusActive:!1,newStatus:!1,statusStyle:null},br.onDomUpdate=function(){var Mr=br.state,Gn=Mr.status,Mn=Mr.newStatus,di=br.props,vn=di.onAppearStart,Ur=di.onEnterStart,In=di.onLeaveStart,Qn=di.onAppearActive,qn=di.onEnterActive,oi=di.onLeaveActive,Ti=di.motionAppear,ki=di.motionEnter,Ri=di.motionLeave;if(!Bt(br.props))return;var oa=br.getElement();br.$cacheEle!==oa&&(br.removeEventListener(br.$cacheEle),br.addEventListener(oa),br.$cacheEle=oa),Mn&&Gn===et&&Ti?br.updateStatus(vn,null,null,function(){br.updateActiveStatus(Qn,et)}):Mn&&Gn===he&&ki?br.updateStatus(Ur,null,null,function(){br.updateActiveStatus(qn,he)}):Mn&&Gn===J&&Ri&&br.updateStatus(In,null,null,function(){br.updateActiveStatus(oi,J)})},br.onMotionEnd=function(Mr){if(Mr&&!Mr.deadline&&Mr.target!==br.getElement())return;var Gn=br.state,Mn=Gn.status,di=Gn.statusActive,vn=br.props,Ur=vn.onAppearEnd,In=vn.onEnterEnd,Qn=vn.onLeaveEnd;Mn===et&&di?br.updateStatus(Ur,{status:ue},Mr):Mn===he&&di?br.updateStatus(In,{status:ue},Mr):Mn===J&&di&&br.updateStatus(Qn,{status:ue},Mr)},br.setNodeRef=function(Mr){var Gn=br.props.internalRef;br.node=Mr,Object(w.b)(Gn,Mr)},br.getElement=function(){try{return Object(T.a)(br.node||Object(A.a)(br))}catch(Mr){return br.$cacheEle}},br.addEventListener=function(Mr){if(!Mr)return;Mr.addEventListener(Ve,br.onMotionEnd),Mr.addEventListener(Qe,br.onMotionEnd)},br.removeEventListener=function(Mr){if(!Mr)return;Mr.removeEventListener(Ve,br.onMotionEnd),Mr.removeEventListener(Qe,br.onMotionEnd)},br.updateStatus=function(Mr,Gn,Mn,di){var vn=Mr?Mr(br.getElement(),Mn):null;if(vn===!1||br.destroyed)return;var Ur;di&&(Ur=function(){br.nextFrame(di)}),br.setState(Object(c.a)({statusStyle:Object(Q.a)(vn)==="object"?vn:null,newStatus:!1},Gn),Ur)},br.updateActiveStatus=function(Mr,Gn){br.nextFrame(function(){var Mn=br.state.status;if(Mn!==Gn)return;var di=br.props.motionDeadline;br.updateStatus(Mr,{statusActive:!0}),di>0&&(br.deadlineId=setTimeout(function(){br.onMotionEnd({deadline:!0})},di))})},br.nextFrame=function(Mr){br.cancelNextFrame(),br.raf=K()(Mr)},br.cancelNextFrame=function(){br.raf&&(K.a.cancel(br.raf),br.raf=null)},br}return Object(g.a)(yr,[{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 Mr,Gn=this.state,Mn=Gn.status,di=Gn.statusActive,vn=Gn.statusStyle,Ur=this.props,In=Ur.children,Qn=Ur.motionName,qn=Ur.visible,oi=Ur.removeOnLeave,Ti=Ur.leavedClassName,ki=Ur.eventProps;return In?Mn===ue||!Bt(this.props)?qn?In(Object(c.a)({},ki),this.setNodeRef):oi?null:In(Object(c.a)(Object(c.a)({},ki),{},{className:Ti}),this.setNodeRef):In(Object(c.a)(Object(c.a)({},ki),{},{className:M()(Fe(Qn,Mn),(Mr={},Object(V.a)(Mr,Fe(Qn,"".concat(Mn,"-active")),di),Object(V.a)(Mr,Qn,typeof Qn=="string"),Mr)),style:vn}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Mr,Gn){var Mn=Gn.prevProps,di=Gn.status;if(!Bt(Mr))return{};var vn=Mr.visible,Ur=Mr.motionAppear,In=Mr.motionEnter,Qn=Mr.motionLeave,qn=Mr.motionLeaveImmediately,oi={prevProps:Mr};return(di===et&&!Ur||di===he&&!In||di===J&&!Qn)&&(oi.status=ue,oi.statusActive=!1,oi.newStatus=!1),!Mn&&vn&&Ur&&(oi.status=et,oi.statusActive=!1,oi.newStatus=!0),Mn&&!Mn.visible&&vn&&In&&(oi.status=he,oi.statusActive=!1,oi.newStatus=!0),(Mn&&Mn.visible&&!vn&&Qn||!Mn&&qn&&!vn&&Qn)&&(oi.status=J,oi.statusActive=!1,oi.newStatus=!0),oi}}]),yr}(r.Component);return Wt.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},kt?r.forwardRef(function(Lt,dr){return r.createElement(Wt,Object.assign({internalRef:dr},Lt))}):Wt}var $=Y(ut),de="add",be="keep",Ce="remove",Be="removed";function fe(zt){var Ot;return zt&&Object(Q.a)(zt)==="object"&&"key"in zt?Ot=zt:Ot={key:zt},Object(c.a)(Object(c.a)({},Ot),{},{key:String(Ot.key)})}function we(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return zt.map(fe)}function Re(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],kt=[],Bt=0,Wt=Ot.length,Lt=we(zt),dr=we(Ot);Lt.forEach(function(Mr){for(var Gn=!1,Mn=Bt;Mn<Wt;Mn+=1){var di=dr[Mn];if(di.key===Mr.key){Bt<Mn&&(kt=kt.concat(dr.slice(Bt,Mn).map(function(vn){return Object(c.a)(Object(c.a)({},vn),{},{status:de})})),Bt=Mn),kt.push(Object(c.a)(Object(c.a)({},di),{},{status:be})),Bt+=1,Gn=!0;break}}Gn||kt.push(Object(c.a)(Object(c.a)({},Mr),{},{status:Ce}))}),Bt<Wt&&(kt=kt.concat(dr.slice(Bt).map(function(Mr){return Object(c.a)(Object(c.a)({},Mr),{},{status:de})})));var yr={};kt.forEach(function(Mr){var Gn=Mr.key;yr[Gn]=(yr[Gn]||0)+1});var br=Object.keys(yr).filter(function(Mr){return yr[Mr]>1});return br.forEach(function(Mr){kt=kt.filter(function(Gn){var Mn=Gn.key,di=Gn.status;return Mn!==Mr||di!==Ce}),kt.forEach(function(Gn){Gn.key===Mr&&(Gn.status=be)})}),kt}var rt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function St(zt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,kt=function(Bt){Object(b.a)(Lt,Bt);var Wt=Object(S.a)(Lt);function Lt(){var dr;return Object(h.a)(this,Lt),dr=Wt.apply(this,arguments),dr.state={keyEntities:[]},dr.removeKey=function(yr){dr.setState(function(br){var Mr=br.keyEntities;return{keyEntities:Mr.map(function(Gn){return Gn.key!==yr?Gn:Object(c.a)(Object(c.a)({},Gn),{},{status:Be})})}})},dr}return Object(g.a)(Lt,[{key:"render",value:function(){var yr=this,br=this.state.keyEntities,Mr=this.props,Gn=Mr.component,Mn=Mr.children,di=Object(F.a)(Mr,["component","children"]),vn=Gn||r.Fragment,Ur={};return rt.forEach(function(In){Ur[In]=di[In],delete di[In]}),delete di.keys,r.createElement(vn,Object.assign({},di),br.map(function(In){var Qn=In.status,qn=Object(F.a)(In,["status"]),oi=Qn===de||Qn===be;return r.createElement(Ot,Object.assign({},Ur,{key:qn.key,visible:oi,eventProps:qn,onLeaveEnd:function(){Ur.onLeaveEnd&&Ur.onLeaveEnd.apply(Ur,arguments),yr.removeKey(qn.key)}}),Mn)}))}}],[{key:"getDerivedStateFromProps",value:function(yr,br){var Mr=yr.keys,Gn=br.keyEntities,Mn=we(Mr);if(!zt)return{keyEntities:Mn.map(function(Ur){return Object(c.a)(Object(c.a)({},Ur),{},{status:be})})};var di=Re(Gn,Mn),vn=Gn.length;return{keyEntities:di.filter(function(Ur){for(var In=null,Qn=0;Qn<vn;Qn+=1){var qn=Gn[Qn];if(qn.key===Ur.key){In=qn;break}}return!(In&&In.status===Be&&Ur.status===Ce)})}}}]),Lt}(r.Component);return kt.defaultProps={component:"div"},kt}var ft=St(ut),He=$,er=function(Ot,kt){var Bt=Ot.prefixCls,Wt=Ot.className,Lt=Ot.style,dr=Ot.children,yr=Ot.onMouseEnter,br=Ot.onMouseLeave,Mr=Ot.onMouseDown,Gn=Ot.onTouchStart,Mn=dr;return r.Children.count(dr)>1&&(Mn=r.createElement("div",{className:"".concat(Bt,"-content")},dr)),r.createElement("div",{ref:kt,className:Wt,onMouseEnter:yr,onMouseLeave:br,onMouseDown:Mr,onTouchStart:Gn,style:Lt},Mn)},ct=r.forwardRef(er);ct.displayName="PopupInner";var Kt=ct;function fr(zt){var Ot=zt.prefixCls,kt=zt.motion,Bt=zt.animation,Wt=zt.transitionName;return kt||(Bt?{motionName:"".concat(Ot,"-").concat(Bt)}:Wt?{motionName:Wt}:null)}function Gt(zt){return zt&&zt.motionName}var Pt=function(zt){Object(b.a)(kt,zt);var Ot=Object(S.a)(kt);function kt(){var Bt;return Object(h.a)(this,kt),Bt=Ot.apply(this,arguments),Bt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Bt.popupRef=a.a.createRef(),Bt.alignRef=a.a.createRef(),Bt.nextFrameState=null,Bt.nextFrameId=null,Bt.onAlign=function(Wt,Lt){var dr=Bt.state.status,yr=Bt.props,br=yr.getClassNameFromAlign,Mr=yr.onAlign,Gn=br(Lt);dr==="align"?Bt.setState({alignClassName:Gn,status:"aligned"},function(){Bt.alignRef.current.forceAlign()}):dr==="aligned"?(Bt.setState({alignClassName:Gn,status:"afterAlign"}),Mr(Wt,Lt)):Bt.setState({alignClassName:Gn})},Bt.onMotionEnd=function(){var Wt=Bt.props.visible;Bt.setState({status:Wt?"AfterMotion":"stable",inMotion:!1})},Bt.setStateOnNextFrame=function(Wt){Bt.cancelFrameState(),Bt.nextFrameState=Object(c.a)(Object(c.a)({},Bt.nextFrameState),Wt),Bt.nextFrameId=K()(function(){var Lt=Object(c.a)({},Bt.nextFrameState);Bt.nextFrameState=null,Bt.setState(Lt)})},Bt.getMotion=function(){return Object(c.a)({},fr(Bt.props))},Bt.getAlignTarget=function(){var Wt=Bt.props,Lt=Wt.point,dr=Wt.getRootDomNode;return Lt||dr},Bt.cancelFrameState=function(){K.a.cancel(Bt.nextFrameId)},Bt.renderPopupElement=function(){var Wt=Bt.state,Lt=Wt.status,dr=Wt.targetHeight,yr=Wt.targetWidth,br=Wt.alignClassName,Mr=Bt.props,Gn=Mr.prefixCls,Mn=Mr.className,di=Mr.style,vn=Mr.stretch,Ur=Mr.visible,In=Mr.align,Qn=Mr.destroyPopupOnHide,qn=Mr.onMouseEnter,oi=Mr.onMouseLeave,Ti=Mr.onMouseDown,ki=Mr.onTouchStart,Ri=Mr.children,oa=M()(Gn,Mn,br),ma="".concat(Gn,"-hidden"),aa={};vn&&(vn.indexOf("height")!==-1?aa.height=dr:vn.indexOf("minHeight")!==-1&&(aa.minHeight=dr),vn.indexOf("width")!==-1?aa.width=yr:vn.indexOf("minWidth")!==-1&&(aa.minWidth=yr));var ba=Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)({},aa),Bt.getZIndexStyle()),di),{},{opacity:Lt==="stable"||!Ur?void 0:0,pointerEvents:Lt==="stable"||!Ur?void 0:"none"}),yi=Bt.getMotion(),kn=Ur;Ur&&Lt!=="beforeMotion"&&Lt!=="motion"&&Lt!=="stable"&&(yi.motionAppear=!1,yi.motionEnter=!1,yi.motionLeave=!1),(Lt==="afterAlign"||Lt==="beforeMotion")&&(kn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(ta){var ra=yi==null?void 0:yi[ta];yi[ta]=function(){for(var Ir=arguments.length,xr=new Array(Ir),Cn=0;Cn<Ir;Cn++)xr[Cn]=arguments[Cn];ra==null||ra.apply(void 0,xr),Bt.setState({inMotion:!0})}});var ji=!Ur||Lt!=="align"&&Lt!=="aligned"&&Lt!=="stable",ha=!0;return Lt==="stable"&&(ha=Ur),Qn&&!ha?null:a.a.createElement(He,Object.assign({visible:kn},yi,{removeOnLeave:!1,onEnterEnd:Bt.onMotionEnd,onLeaveEnd:Bt.onMotionEnd,leavedClassName:ma}),function(ta,ra){var Ir=ta.style,xr=ta.className;return a.a.createElement(z.a,{target:Bt.getAlignTarget(),key:"popup",ref:Bt.alignRef,monitorWindowResize:!0,disabled:ji,align:In,onAlign:Bt.onAlign},a.a.createElement(Kt,{prefixCls:Gn,className:M()(oa,xr),ref:Object(w.a)(ra,Bt.popupRef),onMouseEnter:qn,onMouseLeave:oi,onMouseDown:Ti,onTouchStart:ki,style:Object(c.a)(Object(c.a)({},ba),Ir)},Ri))})},Bt.renderMaskElement=function(){var Wt=Bt.props,Lt=Wt.mask,dr=Wt.maskMotion,yr=Wt.maskTransitionName,br=Wt.maskAnimation,Mr=Wt.prefixCls,Gn=Wt.visible;if(!Lt)return null;var Mn={};return dr&&dr.motionName&&(Mn=Object(c.a)({motionAppear:!0},fr({motion:dr,prefixCls:Mr,transitionName:yr,animation:br}))),a.a.createElement(He,Object.assign({},Mn,{visible:Gn,removeOnLeave:!0}),function(di){var vn=di.className;return a.a.createElement("div",{style:Bt.getZIndexStyle(),key:"mask",className:M()("".concat(Mr,"-mask"),vn)})})},Bt}return Object(g.a)(kt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Wt=this.state.status,Lt=this.props,dr=Lt.getRootDomNode,yr=Lt.visible,br=Lt.stretch;if(this.cancelFrameState(),yr&&Wt!=="stable")switch(Wt){case null:{this.setStateOnNextFrame({status:br?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Gt(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Mr=["measure","align",null,"beforeMotion","motion"],Gn=Mr.indexOf(Wt),Mn=Mr[Gn+1];Gn!==-1&&Mn&&this.setStateOnNextFrame({status:Mn})}}if(Wt==="measure"){var di=dr();di&&this.setStateOnNextFrame({targetHeight:di.offsetHeight,targetWidth:di.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Wt=this.props.zIndex;return{zIndex:Wt}}},{key:"render",value:function(){return a.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Wt,Lt){var dr=Wt.visible,yr=Object(F.a)(Wt,["visible"]),br=Lt.prevVisible,Mr=Lt.status,Gn=Lt.inMotion,Mn={prevVisible:dr,status:Mr},di=fr(yr);return br===null&&dr===!1?(Mn.status="stable",Mn.inMotion=!1):dr!==br&&(Mn.inMotion=!1,dr||Gt(di)&&Gn?Mn.status=null:Mn.status="stable",dr&&(Mn.alignClassName=null)),Mn}}]),kt}(r.Component),Xt=Pt,Ge=r.createContext(null),pe=Ge;function oe(){}function lt(){return""}function qe(){return window.document}var ge=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ht(zt){var Ot=function(kt){Object(b.a)(Wt,kt);var Bt=Object(S.a)(Wt);function Wt(Lt){var dr;Object(h.a)(this,Wt),dr=Bt.call(this,Lt),dr.popupRef=a.a.createRef(),dr.triggerRef=a.a.createRef(),dr.onMouseEnter=function(br){var Mr=dr.props.mouseEnterDelay;dr.fireEvents("onMouseEnter",br),dr.delaySetPopupVisible(!0,Mr,Mr?null:br)},dr.onMouseMove=function(br){dr.fireEvents("onMouseMove",br),dr.setPoint(br)},dr.onMouseLeave=function(br){dr.fireEvents("onMouseLeave",br),dr.delaySetPopupVisible(!1,dr.props.mouseLeaveDelay)},dr.onPopupMouseEnter=function(){dr.clearDelayTimer()},dr.onPopupMouseLeave=function(br){if(br.relatedTarget&&!br.relatedTarget.setTimeout&&dr.popupRef.current&&dr.popupRef.current.popupRef.current&&Object(_.a)(dr.popupRef.current.popupRef.current,br.relatedTarget))return;dr.delaySetPopupVisible(!1,dr.props.mouseLeaveDelay)},dr.onFocus=function(br){dr.fireEvents("onFocus",br),dr.clearDelayTimer(),dr.isFocusToShow()&&(dr.focusTime=Date.now(),dr.delaySetPopupVisible(!0,dr.props.focusDelay))},dr.onMouseDown=function(br){dr.fireEvents("onMouseDown",br),dr.preClickTime=Date.now()},dr.onTouchStart=function(br){dr.fireEvents("onTouchStart",br),dr.preTouchTime=Date.now()},dr.onBlur=function(br){dr.fireEvents("onBlur",br),dr.clearDelayTimer(),dr.isBlurToHide()&&dr.delaySetPopupVisible(!1,dr.props.blurDelay)},dr.onContextMenu=function(br){br.preventDefault(),dr.fireEvents("onContextMenu",br),dr.setPopupVisible(!0,br)},dr.onContextMenuClose=function(){dr.isContextMenuToShow()&&dr.close()},dr.onClick=function(br){if(dr.fireEvents("onClick",br),dr.focusTime){var Mr;if(dr.preClickTime&&dr.preTouchTime?Mr=Math.min(dr.preClickTime,dr.preTouchTime):dr.preClickTime?Mr=dr.preClickTime:dr.preTouchTime&&(Mr=dr.preTouchTime),Math.abs(Mr-dr.focusTime)<20)return;dr.focusTime=0}dr.preClickTime=0,dr.preTouchTime=0,dr.isClickToShow()&&(dr.isClickToHide()||dr.isBlurToHide())&&br&&br.preventDefault&&br.preventDefault();var Gn=!dr.state.popupVisible;(dr.isClickToHide()&&!Gn||Gn&&dr.isClickToShow())&&dr.setPopupVisible(!dr.state.popupVisible,br)},dr.onPopupMouseDown=function(){if(dr.hasPopupMouseDown=!0,clearTimeout(dr.mouseDownTimeout),dr.mouseDownTimeout=window.setTimeout(function(){dr.hasPopupMouseDown=!1},0),dr.context){var br;(br=dr.context).onPopupMouseDown.apply(br,arguments)}},dr.onDocumentClick=function(br){if(dr.props.mask&&!dr.props.maskClosable)return;var Mr=br.target,Gn=dr.getRootDomNode(),Mn=dr.getPopupDomNode();!Object(_.a)(Gn,Mr)&&!Object(_.a)(Mn,Mr)&&!dr.hasPopupMouseDown&&dr.close()},dr.getRootDomNode=function(){var br=dr.props.getTriggerDOMNode;if(br)return br(dr.triggerRef.current);try{var Mr=Object(T.a)(dr.triggerRef.current);if(Mr)return Mr}catch(Gn){}return C.a.findDOMNode(Object(A.a)(dr))},dr.getPopupClassNameFromAlign=function(br){var Mr=[],Gn=dr.props,Mn=Gn.popupPlacement,di=Gn.builtinPlacements,vn=Gn.prefixCls,Ur=Gn.alignPoint,In=Gn.getPopupClassNameFromAlign;return Mn&&di&&Mr.push(X(di,vn,br,Ur)),In&&Mr.push(In(br)),Mr.join(" ")},dr.getComponent=function(){var br=dr.props,Mr=br.prefixCls,Gn=br.destroyPopupOnHide,Mn=br.popupClassName,di=br.onPopupAlign,vn=br.popupMotion,Ur=br.popupAnimation,In=br.popupTransitionName,Qn=br.popupStyle,qn=br.mask,oi=br.maskAnimation,Ti=br.maskTransitionName,ki=br.maskMotion,Ri=br.zIndex,oa=br.popup,ma=br.stretch,aa=br.alignPoint,ba=dr.state,yi=ba.popupVisible,kn=ba.point,ji=dr.getPopupAlign(),ha={};return dr.isMouseEnterToShow()&&(ha.onMouseEnter=dr.onPopupMouseEnter),dr.isMouseLeaveToHide()&&(ha.onMouseLeave=dr.onPopupMouseLeave),ha.onMouseDown=dr.onPopupMouseDown,ha.onTouchStart=dr.onPopupMouseDown,a.a.createElement(Xt,Object.assign({prefixCls:Mr,destroyPopupOnHide:Gn,visible:yi,point:aa&&kn,className:Mn,align:ji,onAlign:di,animation:Ur,getClassNameFromAlign:dr.getPopupClassNameFromAlign},ha,{stretch:ma,getRootDomNode:dr.getRootDomNode,style:Qn,mask:qn,zIndex:Ri,transitionName:In,maskAnimation:oi,maskTransitionName:Ti,maskMotion:ki,ref:dr.popupRef,motion:vn}),typeof oa=="function"?oa():oa)},dr.getContainer=function(){var br=Object(A.a)(dr),Mr=br.props,Gn=document.createElement("div");Gn.style.position="absolute",Gn.style.top="0",Gn.style.left="0",Gn.style.width="100%";var Mn=Mr.getPopupContainer?Mr.getPopupContainer(dr.getRootDomNode()):Mr.getDocument().body;return Mn.appendChild(Gn),Gn},dr.setPoint=function(br){var Mr=dr.props.alignPoint;if(!Mr||!br)return;dr.setState({point:{pageX:br.pageX,pageY:br.pageY}})},dr.handlePortalUpdate=function(){dr.state.prevPopupVisible!==dr.state.popupVisible&&dr.props.afterPopupVisibleChange(dr.state.popupVisible)};var yr;return"popupVisible"in Lt?yr=!!Lt.popupVisible:yr=!!Lt.defaultPopupVisible,dr.state={prevPopupVisible:yr,popupVisible:yr},ge.forEach(function(br){dr["fire".concat(br)]=function(Mr){dr.fireEvents(br,Mr)}}),dr}return Object(g.a)(Wt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var dr=this.props,yr=this.state;if(yr.popupVisible){var br;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(br=dr.getDocument(),this.clickOutsideHandler=Object(O.a)(br,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(br=br||dr.getDocument(),this.touchOutsideHandler=Object(O.a)(br,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(br=br||dr.getDocument(),this.contextMenuOutsideHandler1=Object(O.a)(br,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(O.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var dr=this.props,yr=dr.popupPlacement,br=dr.popupAlign,Mr=dr.builtinPlacements;return yr&&Mr?P(Mr,yr,br):br}},{key:"setPopupVisible",value:function(dr,yr){var br=this.props.alignPoint,Mr=this.state.popupVisible;this.clearDelayTimer(),Mr!==dr&&("popupVisible"in this.props||this.setState({popupVisible:dr,prevPopupVisible:Mr}),this.props.onPopupVisibleChange(dr)),br&&yr&&this.setPoint(yr)}},{key:"delaySetPopupVisible",value:function(dr,yr,br){var Mr=this,Gn=yr*1e3;if(this.clearDelayTimer(),Gn){var Mn=br?{pageX:br.pageX,pageY:br.pageY}:null;this.delayTimer=window.setTimeout(function(){Mr.setPopupVisible(dr,Mn),Mr.clearDelayTimer()},Gn)}else this.setPopupVisible(dr,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(dr){var yr=this.props.children.props,br=this.props;return yr[dr]&&br[dr]?this["fire".concat(dr)]:yr[dr]||br[dr]}},{key:"isClickToShow",value:function(){var dr=this.props,yr=dr.action,br=dr.showAction;return yr.indexOf("click")!==-1||br.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var dr=this.props,yr=dr.action,br=dr.showAction;return yr.indexOf("contextMenu")!==-1||br.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var dr=this.props,yr=dr.action,br=dr.hideAction;return yr.indexOf("click")!==-1||br.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var dr=this.props,yr=dr.action,br=dr.showAction;return yr.indexOf("hover")!==-1||br.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var dr=this.props,yr=dr.action,br=dr.hideAction;return yr.indexOf("hover")!==-1||br.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var dr=this.props,yr=dr.action,br=dr.showAction;return yr.indexOf("focus")!==-1||br.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var dr=this.props,yr=dr.action,br=dr.hideAction;return yr.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(dr,yr){var br=this.props.children.props[dr];br&&br(yr);var Mr=this.props[dr];Mr&&Mr(yr)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var dr=this.state.popupVisible,yr=this.props,br=yr.children,Mr=yr.forceRender,Gn=yr.alignPoint,Mn=yr.className,di=yr.autoDestroy,vn=a.a.Children.only(br),Ur={key:"trigger"};this.isContextMenuToShow()?Ur.onContextMenu=this.onContextMenu:Ur.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Ur.onClick=this.onClick,Ur.onMouseDown=this.onMouseDown,Ur.onTouchStart=this.onTouchStart):(Ur.onClick=this.createTwoChains("onClick"),Ur.onMouseDown=this.createTwoChains("onMouseDown"),Ur.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Ur.onMouseEnter=this.onMouseEnter,Gn&&(Ur.onMouseMove=this.onMouseMove)):Ur.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Ur.onMouseLeave=this.onMouseLeave:Ur.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Ur.onFocus=this.onFocus,Ur.onBlur=this.onBlur):(Ur.onFocus=this.createTwoChains("onFocus"),Ur.onBlur=this.createTwoChains("onBlur"));var In=M()(vn&&vn.props&&vn.props.className,Mn);In&&(Ur.className=In);var Qn=Object(c.a)({},Ur);Object(w.c)(vn)&&(Qn.ref=Object(w.a)(this.triggerRef,vn.ref));var qn=a.a.cloneElement(vn,Qn),oi;return(dr||this.popupRef.current||Mr)&&(oi=a.a.createElement(zt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!dr&&di&&(oi=null),a.a.createElement(pe.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},qn,oi)}}],[{key:"getDerivedStateFromProps",value:function(dr,yr){var br=dr.popupVisible,Mr={};return br!==void 0&&yr.popupVisible!==br&&(Mr.popupVisible=br,Mr.prevPopupVisible=yr.popupVisible),Mr}}]),Wt}(a.a.Component);return Ot.contextType=pe,Ot.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:lt,getDocument:qe,onPopupVisibleChange:oe,afterPopupVisibleChange:oe,onPopupAlign:oe,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Ot}var vr=Ht(I.a),At=n("2W6z"),ir=n.n(At),lr=n("4IlW"),dn=n("uK0f"),Ft=n.n(dn);function ur(zt,Ot){if(zt===Ot)return!0;if(!zt||!Ot)return!1;var kt=zt.length;if(Ot.length!==kt)return!1;for(var Bt=0;Bt<kt;Bt++)if(zt[Bt]!==Ot[Bt])return!1;return!0}function Jt(zt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jt=function(kt){return typeof kt}:Jt=function(kt){return kt&&typeof Symbol=="function"&&kt.constructor===Symbol&&kt!==Symbol.prototype?"symbol":typeof kt},Jt(zt)}function pt(zt,Ot){if(!(zt instanceof Ot))throw new TypeError("Cannot call a class as a function")}function at(zt,Ot){for(var kt=0;kt<Ot.length;kt++){var Bt=Ot[kt];Bt.enumerable=Bt.enumerable||!1,Bt.configurable=!0,"value"in Bt&&(Bt.writable=!0),Object.defineProperty(zt,Bt.key,Bt)}}function Pr(zt,Ot,kt){return Ot&&at(zt.prototype,Ot),kt&&at(zt,kt),zt}function un(zt,Ot){if(typeof Ot!="function"&&Ot!==null)throw new TypeError("Super expression must either be null or a function");zt.prototype=Object.create(Ot&&Ot.prototype,{constructor:{value:zt,writable:!0,configurable:!0}}),Ot&&_n(zt,Ot)}function _n(zt,Ot){return _n=Object.setPrototypeOf||function(Bt,Wt){return Bt.__proto__=Wt,Bt},_n(zt,Ot)}function Xn(zt){var Ot=Un();return function(){var kt=$t(zt),Bt;if(Ot){var Wt=$t(this).constructor;Bt=Reflect.construct(kt,arguments,Wt)}else Bt=kt.apply(this,arguments);return xi(this,Bt)}}function xi(zt,Ot){return Ot&&(Jt(Ot)==="object"||typeof Ot=="function")?Ot:Pn(zt)}function Pn(zt){if(zt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return zt}function Un(){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(zt){return!1}}function $t(zt){return $t=Object.setPrototypeOf?Object.getPrototypeOf:function(kt){return kt.__proto__||Object.getPrototypeOf(kt)},$t(zt)}var xt=function(){var zt=function(Ot){un(Bt,Ot);var kt=Xn(Bt);function Bt(){var Wt;return pt(this,Bt),Wt=kt.apply(this,arguments),Wt.menuItems={},Wt.saveMenuItem=function(Lt){return function(dr){Wt.menuItems[Lt]=dr}},Wt}return Pr(Bt,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(Lt){!Lt.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(Lt){var dr=this.props,yr=dr.fieldNames,br=dr.defaultFieldNames;return yr[Lt]||br[Lt]}},{key:"getOption",value:function(Lt,dr){var yr=this.props,br=yr.prefixCls,Mr=yr.expandTrigger,Gn=yr.expandIcon,Mn=yr.loadingIcon,di=this.props.onSelect.bind(this,Lt,dr),vn=this.props.onItemDoubleClick.bind(this,Lt,dr),Ur={onClick:di,onDoubleClick:vn},In="".concat(br,"-menu-item"),Qn=null,qn=Lt[this.getFieldName("children")]&&Lt[this.getFieldName("children")].length>0;(qn||Lt.isLeaf===!1)&&(In+=" ".concat(br,"-menu-item-expand"),Lt.loading||(Qn=r.createElement("span",{className:"".concat(br,"-menu-item-expand-icon")},Gn))),Mr==="hover"&&(qn||Lt.isLeaf===!1)&&(Ur={onMouseEnter:this.delayOnSelect.bind(this,di),onMouseLeave:this.delayOnSelect.bind(this),onClick:di}),this.isActiveOption(Lt,dr)&&(In+=" ".concat(br,"-menu-item-active"),Ur.ref=this.saveMenuItem(dr)),Lt.disabled&&(In+=" ".concat(br,"-menu-item-disabled"));var oi=null;Lt.loading&&(In+=" ".concat(br,"-menu-item-loading"),oi=Mn||null);var Ti="";return"title"in Lt?Ti=Lt.title:typeof Lt[this.getFieldName("label")]=="string"&&(Ti=Lt[this.getFieldName("label")]),r.createElement("li",Object.assign({key:Lt[this.getFieldName("value")],className:In,title:Ti},Ur,{role:"menuitem",onMouseDown:function(Ri){return Ri.preventDefault()}}),Lt[this.getFieldName("label")],Qn,oi)}},{key:"getActiveOptions",value:function(Lt){var dr=this,yr=this.props.options,br=Lt||this.props.activeValue;return Ft()(yr,function(Mr,Gn){return Mr[dr.getFieldName("value")]===br[Gn]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var Lt=this,dr=this.props.options,yr=this.getActiveOptions().map(function(br){return br[Lt.getFieldName("children")]}).filter(function(br){return!!br});return yr.unshift(dr),yr}},{key:"delayOnSelect",value:function(Lt){for(var dr=this,yr=arguments.length,br=new Array(yr>1?yr-1:0),Mr=1;Mr<yr;Mr++)br[Mr-1]=arguments[Mr];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof Lt=="function"&&(this.delayTimer=window.setTimeout(function(){Lt(br),dr.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var Lt=this.getShowOptions().length,dr=0;dr<Lt;dr++){var yr=this.menuItems[dr];yr&&yr.parentElement&&(yr.parentElement.scrollTop=yr.offsetTop)}}},{key:"isActiveOption",value:function(Lt,dr){var yr=this.props.activeValue,br=yr===void 0?[]:yr;return br[dr]===Lt[this.getFieldName("value")]}},{key:"render",value:function(){var Lt=this,dr=this.props,yr=dr.prefixCls,br=dr.dropdownMenuColumnStyle;return r.createElement("div",null,this.getShowOptions().map(function(Mr,Gn){return r.createElement("ul",{className:"".concat(yr,"-menu"),key:Gn,style:br},Mr.map(function(Mn){return Lt.getOption(Mn,Gn)}))}))}}]),Bt}(r.Component);return zt.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},zt}(),De=xt,ke={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},Pe=ke;function tt(zt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tt=function(kt){return typeof kt}:tt=function(kt){return kt&&typeof Symbol=="function"&&kt.constructor===Symbol&&kt!==Symbol.prototype?"symbol":typeof kt},tt(zt)}function yt(zt,Ot){if(zt==null)return{};var kt=Et(zt,Ot),Bt,Wt;if(Object.getOwnPropertySymbols){var Lt=Object.getOwnPropertySymbols(zt);for(Wt=0;Wt<Lt.length;Wt++){if(Bt=Lt[Wt],Ot.indexOf(Bt)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(zt,Bt))continue;kt[Bt]=zt[Bt]}}return kt}function Et(zt,Ot){if(zt==null)return{};var kt={},Bt=Object.keys(zt),Wt,Lt;for(Lt=0;Lt<Bt.length;Lt++){if(Wt=Bt[Lt],Ot.indexOf(Wt)>=0)continue;kt[Wt]=zt[Wt]}return kt}function Yt(zt){return jt(zt)||hn(zt)||zr(zt)||Rr()}function Rr(){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 zr(zt,Ot){if(!zt)return;if(typeof zt=="string")return vt(zt,Ot);var kt=Object.prototype.toString.call(zt).slice(8,-1);if(kt==="Object"&&zt.constructor&&(kt=zt.constructor.name),kt==="Map"||kt==="Set")return Array.from(zt);if(kt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(kt))return vt(zt,Ot)}function hn(zt){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(zt))return Array.from(zt)}function jt(zt){if(Array.isArray(zt))return vt(zt)}function vt(zt,Ot){(Ot==null||Ot>zt.length)&&(Ot=zt.length);for(var kt=0,Bt=new Array(Ot);kt<Ot;kt++)Bt[kt]=zt[kt];return Bt}function bt(zt,Ot){if(!(zt instanceof Ot))throw new TypeError("Cannot call a class as a function")}function cr(zt,Ot){for(var kt=0;kt<Ot.length;kt++){var Bt=Ot[kt];Bt.enumerable=Bt.enumerable||!1,Bt.configurable=!0,"value"in Bt&&(Bt.writable=!0),Object.defineProperty(zt,Bt.key,Bt)}}function Qt(zt,Ot,kt){return Ot&&cr(zt.prototype,Ot),kt&&cr(zt,kt),zt}function Mt(zt,Ot){if(typeof Ot!="function"&&Ot!==null)throw new TypeError("Super expression must either be null or a function");zt.prototype=Object.create(Ot&&Ot.prototype,{constructor:{value:zt,writable:!0,configurable:!0}}),Ot&&tr(zt,Ot)}function tr(zt,Ot){return tr=Object.setPrototypeOf||function(Bt,Wt){return Bt.__proto__=Wt,Bt},tr(zt,Ot)}function Rt(zt){var Ot=Nr();return function(){var kt=Dr(zt),Bt;if(Ot){var Wt=Dr(this).constructor;Bt=Reflect.construct(kt,arguments,Wt)}else Bt=kt.apply(this,arguments);return qt(this,Bt)}}function qt(zt,Ot){return Ot&&(tt(Ot)==="object"||typeof Ot=="function")?Ot:Hr(zt)}function Hr(zt){if(zt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return zt}function Nr(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(zt){return!1}}function Dr(zt){return Dr=Object.setPrototypeOf?Object.getPrototypeOf:function(kt){return kt.__proto__||Object.getPrototypeOf(kt)},Dr(zt)}var cn=function(){var zt=function(Ot){Mt(Bt,Ot);var kt=Rt(Bt);function Bt(Wt){var Lt;bt(this,Bt),Lt=kt.call(this,Wt),Lt.setPopupVisible=function(yr){var br=Lt.state.value;"popupVisible"in Lt.props||Lt.setState({popupVisible:yr}),yr&&!Lt.state.popupVisible&&Lt.setState({activeValue:br}),Lt.props.onPopupVisibleChange(yr)},Lt.handleChange=function(yr,br,Mr){var Gn=br.visible;(Mr.type!=="keydown"||Mr.keyCode===lr.a.ENTER)&&(Lt.props.onChange(yr.map(function(Mn){return Mn[Lt.getFieldName("value")]}),yr),Lt.setPopupVisible(Gn))},Lt.handlePopupVisibleChange=function(yr){Lt.setPopupVisible(yr)},Lt.handleMenuSelect=function(yr,br,Mr){var Gn=Lt.trigger.getRootDomNode();Gn&&Gn.focus&&Gn.focus();var Mn=Lt.props,di=Mn.changeOnSelect,vn=Mn.loadData,Ur=Mn.expandTrigger;if(!yr||yr.disabled)return;var In=Lt.state.activeValue;In=In.slice(0,br+1),In[br]=yr[Lt.getFieldName("value")];var Qn=Lt.getActiveOptions(In);if(yr.isLeaf===!1&&!yr[Lt.getFieldName("children")]&&vn){di&&Lt.handleChange(Qn,{visible:!0},Mr),Lt.setState({activeValue:In}),vn(Qn);return}var qn={};!yr[Lt.getFieldName("children")]||!yr[Lt.getFieldName("children")].length?(Lt.handleChange(Qn,{visible:!1},Mr),qn.value=In):di&&(Mr.type==="click"||Mr.type==="keydown")&&(Ur==="hover"?Lt.handleChange(Qn,{visible:!1},Mr):Lt.handleChange(Qn,{visible:!0},Mr),qn.value=In),qn.activeValue=In,("value"in Lt.props||Mr.type==="keydown"&&Mr.keyCode!==lr.a.ENTER)&&delete qn.value,Lt.setState(qn)},Lt.handleItemDoubleClick=function(){var yr=Lt.props.changeOnSelect;yr&&Lt.setPopupVisible(!1)},Lt.handleKeyDown=function(yr){var br=Lt.props.children;if(br&&br.props.onKeyDown){br.props.onKeyDown(yr);return}var Mr=Yt(Lt.state.activeValue),Gn=Mr.length-1<0?0:Mr.length-1,Mn=Lt.getCurrentLevelOptions(),di=Mn.map(function(Qn){return Qn[Lt.getFieldName("value")]}).indexOf(Mr[Gn]);if(yr.keyCode!==lr.a.DOWN&&yr.keyCode!==lr.a.UP&&yr.keyCode!==lr.a.LEFT&&yr.keyCode!==lr.a.RIGHT&&yr.keyCode!==lr.a.ENTER&&yr.keyCode!==lr.a.SPACE&&yr.keyCode!==lr.a.BACKSPACE&&yr.keyCode!==lr.a.ESC&&yr.keyCode!==lr.a.TAB)return;if(!Lt.state.popupVisible&&yr.keyCode!==lr.a.BACKSPACE&&yr.keyCode!==lr.a.LEFT&&yr.keyCode!==lr.a.RIGHT&&yr.keyCode!==lr.a.ESC&&yr.keyCode!==lr.a.TAB){Lt.setPopupVisible(!0);return}if(yr.keyCode===lr.a.DOWN||yr.keyCode===lr.a.UP){yr.preventDefault();var vn=di;vn!==-1?yr.keyCode===lr.a.DOWN?(vn+=1,vn=vn>=Mn.length?0:vn):(vn-=1,vn=vn<0?Mn.length-1:vn):vn=0,Mr[Gn]=Mn[vn][Lt.getFieldName("value")]}else if(yr.keyCode===lr.a.LEFT||yr.keyCode===lr.a.BACKSPACE)yr.preventDefault(),Mr.splice(Mr.length-1,1);else if(yr.keyCode===lr.a.RIGHT)yr.preventDefault(),Mn[di]&&Mn[di][Lt.getFieldName("children")]&&Mr.push(Mn[di][Lt.getFieldName("children")][0][Lt.getFieldName("value")]);else if(yr.keyCode===lr.a.ESC||yr.keyCode===lr.a.TAB){Lt.setPopupVisible(!1);return}(!Mr||Mr.length===0)&&Lt.setPopupVisible(!1);var Ur=Lt.getActiveOptions(Mr),In=Ur[Ur.length-1];Lt.handleMenuSelect(In,Ur.length-1,yr),Lt.props.onKeyDown&&Lt.props.onKeyDown(yr)},Lt.saveTrigger=function(yr){Lt.trigger=yr};var dr=[];return"value"in Wt?dr=Wt.value||[]:"defaultValue"in Wt&&(dr=Wt.defaultValue||[]),ir()(!("filedNames"in Wt),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),Lt.state={popupVisible:Wt.popupVisible,activeValue:dr,value:dr,prevProps:Wt},Lt.defaultFieldNames={label:"label",value:"value",children:"children"},Lt}return Qt(Bt,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(Lt){var dr=this.defaultFieldNames,yr=this.props,br=yr.fieldNames,Mr=yr.filedNames;return"filedNames"in this.props?Mr[Lt]||dr[Lt]:br[Lt]||dr[Lt]}},{key:"getFieldNames",value:function(){var Lt=this.props,dr=Lt.fieldNames,yr=Lt.filedNames;return"filedNames"in this.props?yr:dr}},{key:"getCurrentLevelOptions",value:function(){var Lt=this,dr=this.props.options,yr=dr===void 0?[]:dr,br=this.state.activeValue,Mr=br===void 0?[]:br,Gn=Ft()(yr,function(Mn,di){return Mn[Lt.getFieldName("value")]===Mr[di]},{childrenKeyName:this.getFieldName("children")});return Gn[Gn.length-2]?Gn[Gn.length-2][this.getFieldName("children")]:Yt(yr).filter(function(Mn){return!Mn.disabled})}},{key:"getActiveOptions",value:function(Lt){var dr=this;return Ft()(this.props.options||[],function(yr,br){return yr[dr.getFieldName("value")]===Lt[br]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var Lt=this.props,dr=Lt.prefixCls,yr=Lt.transitionName,br=Lt.popupClassName,Mr=Lt.options,Gn=Mr===void 0?[]:Mr,Mn=Lt.disabled,di=Lt.builtinPlacements,vn=Lt.popupPlacement,Ur=Lt.children,In=Lt.dropdownRender,Qn=yt(Lt,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),qn=r.createElement("div",null),oi="";Gn&&Gn.length>0?qn=r.createElement(De,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):oi=" ".concat(dr,"-menus-empty");var Ti=qn;return In&&(Ti=In(qn)),r.createElement(vr,Object.assign({ref:this.saveTrigger},Qn,{popupPlacement:vn,builtinPlacements:di,popupTransitionName:yr,action:Mn?[]:["click"],popupVisible:Mn?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(dr,"-menus"),popupClassName:br+oi,popup:Ti}),r.cloneElement(Ur,{onKeyDown:this.handleKeyDown,tabIndex:Mn?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(Lt,dr){var yr=dr.prevProps,br=yr===void 0?{}:yr,Mr={prevProps:Lt};return"value"in Lt&&!ur(br.value,Lt.value)&&(Mr.value=Lt.value||[],"loadData"in Lt||(Mr.activeValue=Lt.value||[])),"popupVisible"in Lt&&(Mr.popupVisible=Lt.popupVisible),Mr}}]),Bt}(r.Component);return zt.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:">"},zt}(),An=cn,ri=An,$n=n("BGR+"),fi=n("kbBi"),_i=n.n(fi),Di=n("HQEm"),Wi=n.n(Di),it=n("fEPi"),Le=n.n(it),je=n("5YOS"),Xe=n.n(je),nt=n("DFhj"),Ze=n.n(nt),ot=n("5rEg"),Ct=n("H84U"),gt=n("YMnH"),pr=n("uaoM"),$r=n("3Nzz"),Yr=n("0n0R"),mn=function(zt,Ot){var kt={};for(var Bt in zt)Object.prototype.hasOwnProperty.call(zt,Bt)&&Ot.indexOf(Bt)<0&&(kt[Bt]=zt[Bt]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,Bt=Object.getOwnPropertySymbols(zt);Wt<Bt.length;Wt++)Ot.indexOf(Bt[Wt])<0&&Object.prototype.propertyIsEnumerable.call(zt,Bt[Wt])&&(kt[Bt[Wt]]=zt[Bt[Wt]]);return kt},Ar=50;function zn(zt,Ot,kt){return zt.split(Ot).map(function(Bt,Wt){return Wt===0?Bt:[r.createElement("span",{className:"".concat(kt,"-menu-item-keyword"),key:"seperator"},Ot),Bt]})}function Fr(zt,Ot,kt){return Ot.some(function(Bt){return Bt[kt.label].indexOf(zt)>-1})}function Bn(zt,Ot,kt,Bt){return Ot.map(function(Wt,Lt){var dr=Wt[Bt.label],yr=dr.indexOf(zt)>-1?zn(dr,zt,kt):dr;return Lt===0?yr:[" / ",yr]})}function bn(zt,Ot,kt,Bt){function Wt(Lt){return Lt[Bt.label].indexOf(kt)>-1}return zt.findIndex(Wt)-Ot.findIndex(Wt)}function en(zt){var Ot=zt.fieldNames;return Ot}function ti(zt){var Ot=en(zt)||{},kt={children:Ot.children||"children",label:Ot.label||"label",value:Ot.value||"value"};return kt}function pi(zt,Ot){var kt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Bt=ti(Ot),Wt=[],Lt=Bt.children;return zt.forEach(function(dr){var yr=kt.concat(dr);(Ot.changeOnSelect||!dr[Lt]||!dr[Lt].length)&&Wt.push(yr),dr[Lt]&&(Wt=Wt.concat(pi(dr[Lt],Ot,yr)))}),Wt}var Pi=function(Ot){return Ot.join(" / ")};function qr(zt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(zt||[]).forEach(function(kt){var Bt=Ot.value||"value";Object(pr.a)(Bt in kt,"Cascader","Not found `value` in `options`."),qr(kt[Ot.children||"children"],Ot)})}var En=function(zt){o()(kt,zt);var Ot=l()(kt);function kt(Bt){var Wt;return p()(this,kt),Wt=Ot.call(this,Bt),Wt.cachedOptions=[],Wt.setValue=function(Lt){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];"value"in Wt.props||Wt.setState({value:Lt});var yr=Wt.props.onChange;yr&&yr(Lt,dr)},Wt.saveInput=function(Lt){Wt.input=Lt},Wt.handleChange=function(Lt,dr){if(Wt.setState({inputValue:""}),dr[0].__IS_FILTERED_OPTION){var yr=Lt[0],br=dr[0].path;Wt.setValue(yr,br);return}Wt.setValue(Lt,dr)},Wt.handlePopupVisibleChange=function(Lt){"popupVisible"in Wt.props||Wt.setState(function(yr){return{popupVisible:Lt,inputFocused:Lt,inputValue:Lt?yr.inputValue:""}});var dr=Wt.props.onPopupVisibleChange;dr&&dr(Lt)},Wt.handleInputBlur=function(){Wt.setState({inputFocused:!1})},Wt.handleInputClick=function(Lt){var dr=Wt.state,yr=dr.inputFocused,br=dr.popupVisible;(yr||br)&&Lt.stopPropagation()},Wt.handleKeyDown=function(Lt){(Lt.keyCode===lr.a.BACKSPACE||Lt.keyCode===lr.a.SPACE)&&Lt.stopPropagation()},Wt.handleInputChange=function(Lt){var dr=Wt.state.popupVisible,yr=Lt.target.value;dr||Wt.handlePopupVisibleChange(!0),Wt.setState({inputValue:yr})},Wt.clearSelection=function(Lt){var dr=Wt.state.inputValue;Lt.preventDefault(),Lt.stopPropagation(),dr?Wt.setState({inputValue:""}):(Wt.handlePopupVisibleChange(!1),Wt.clearSelectionTimeout=setTimeout(function(){Wt.setValue([])},200))},Wt.renderCascader=function(Lt,dr){var yr=Lt.getPopupContainer,br=Lt.getPrefixCls,Mr=Lt.renderEmpty,Gn=Lt.direction;return r.createElement($r.b.Consumer,null,function(Mn){var di,vn,Ur,In,Qn=i()(Wt),qn=Qn.props,oi=Qn.state,Ti=qn.prefixCls,ki=qn.inputPrefixCls,Ri=qn.children,oa=qn.placeholder,ma=oa===void 0?dr.placeholder||"Please select":oa,aa=qn.size,ba=qn.disabled,yi=qn.className,kn=qn.style,ji=qn.allowClear,ha=qn.showSearch,ta=ha===void 0?!1:ha,ra=qn.suffixIcon,Ir=qn.expandIcon,xr=qn.notFoundContent,Cn=qn.popupClassName,mr=qn.bordered,kr=qn.dropdownRender,Gr=mn(qn,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","expandIcon","notFoundContent","popupClassName","bordered","dropdownRender"]),ln=aa||Mn,Fn=oi.value,_t=oi.inputFocused,Or=Gn==="rtl",Lr=br("cascader",Ti),rn=br("input",ki),xn=M()((di={},v()(di,"".concat(rn,"-lg"),ln==="large"),v()(di,"".concat(rn,"-sm"),ln==="small"),di)),Ln=ji&&!ba&&Fn.length>0||oi.inputValue?r.createElement(_i.a,{className:"".concat(Lr,"-picker-clear"),onClick:Wt.clearSelection}):null,Sn=M()((vn={},v()(vn,"".concat(Lr,"-picker-arrow"),!0),v()(vn,"".concat(Lr,"-picker-arrow-expand"),oi.popupVisible),vn)),ei=M()(yi,"".concat(Lr,"-picker"),(Ur={},v()(Ur,"".concat(Lr,"-picker-rtl"),Or),v()(Ur,"".concat(Lr,"-picker-with-value"),oi.inputValue),v()(Ur,"".concat(Lr,"-picker-disabled"),ba),v()(Ur,"".concat(Lr,"-picker-").concat(ln),!!ln),v()(Ur,"".concat(Lr,"-picker-show-search"),!!ta),v()(Ur,"".concat(Lr,"-picker-focused"),_t),v()(Ur,"".concat(Lr,"-picker-borderless"),!mr),Ur)),Kn=Object($n.default)(Gr,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","bordered"]),mi=qn.options,Fi=ti(Wt.props);if(mi&&mi.length>0)oi.inputValue&&(mi=Wt.generateFilteredOptions(Lr,Mr));else{var bi;mi=[(bi={},v()(bi,Fi.label,xr||Mr("Cascader")),v()(bi,Fi.value,"ANT_CASCADER_NOT_FOUND"),bi)]}oi.popupVisible?Wt.cachedOptions=mi:mi=Wt.cachedOptions;var Ii={},Vi=(mi||[]).length===1&&mi[0].isEmptyNode;Vi&&(Ii.height="auto");var ea=ta.matchInputWidth!==!1;ea&&(oi.inputValue||Vi)&&Wt.input&&(Ii.width=Wt.input.input.offsetWidth);var Xi;ra?Xi=Object(Yr.c)(ra,r.createElement("span",{className:"".concat(Lr,"-picker-arrow")},ra),function(){var Pa;return{className:M()((Pa={},v()(Pa,ra.props.className,ra.props.className),v()(Pa,"".concat(Lr,"-picker-arrow"),!0),Pa))}}):Xi=r.createElement(Wi.a,{className:Sn});var zi=Ri||r.createElement("span",{style:kn,className:ei},r.createElement("span",{className:"".concat(Lr,"-picker-label")},Wt.getLabel()),r.createElement(ot.a,f()({},Kn,{tabIndex:"-1",ref:Wt.saveInput,prefixCls:rn,placeholder:Fn&&Fn.length>0?void 0:ma,className:"".concat(Lr,"-input ").concat(xn),value:oi.inputValue,disabled:ba,readOnly:!ta,autoComplete:Kn.autoComplete||"off",onClick:ta?Wt.handleInputClick:void 0,onBlur:ta?Wt.handleInputBlur:void 0,onKeyDown:Wt.handleKeyDown,onChange:ta?Wt.handleInputChange:void 0})),Ln,Xi),Hi;Ir?Hi=Ir:Hi=Or?r.createElement(Ze.a,null):r.createElement(Le.a,null);var Ji=r.createElement("span",{className:"".concat(Lr,"-menu-item-loading-icon")},r.createElement(Xe.a,{spin:!0})),ca=qn.getPopupContainer||yr,Ca=Object($n.default)(qn,["inputIcon","expandIcon","loadingIcon","bordered"]),na=M()(Cn,(In={},v()(In,"".concat(Lr,"-menu-").concat(Gn),Gn==="rtl"),v()(In,"".concat(Lr,"-menu-empty"),mi.length===1&&mi[0].value==="ANT_CASCADER_NOT_FOUND"),In));return r.createElement(ri,f()({},Ca,{prefixCls:Lr,getPopupContainer:ca,options:mi,value:Fn,popupVisible:oi.popupVisible,onPopupVisibleChange:Wt.handlePopupVisibleChange,onChange:Wt.handleChange,dropdownMenuColumnStyle:Ii,expandIcon:Hi,loadingIcon:Ji,popupClassName:na,popupPlacement:Wt.getPopupPlacement(Gn),dropdownRender:kr}),zi)})},Wt.state={value:Bt.value||Bt.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:Bt.popupVisible,flattenOptions:Bt.showSearch?pi(Bt.options,Bt):void 0,prevProps:Bt},Wt}return u()(kt,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var Wt=this.props,Lt=Wt.options,dr=Wt.displayRender,yr=dr===void 0?Pi:dr,br=ti(this.props),Mr=this.state.value,Gn=Array.isArray(Mr[0])?Mr[0]:Mr,Mn=Ft()(Lt,function(vn,Ur){return vn[br.value]===Gn[Ur]},{childrenKeyName:br.children}),di=Mn.length?Mn.map(function(vn){return vn[br.label]}):Mr;return yr(di,Mn)}},{key:"generateFilteredOptions",value:function(Wt,Lt){var dr=this,yr,br=this.props,Mr=br.showSearch,Gn=br.notFoundContent,Mn=ti(this.props),di=Mr.filter,vn=di===void 0?Fr:di,Ur=Mr.render,In=Ur===void 0?Bn:Ur,Qn=Mr.sort,qn=Qn===void 0?bn:Qn,oi=Mr.limit,Ti=oi===void 0?Ar:oi,ki=this.state,Ri=ki.flattenOptions,oa=Ri===void 0?[]:Ri,ma=ki.inputValue,aa;if(Ti>0){aa=[];var ba=0;oa.some(function(yi){var kn=vn(dr.state.inputValue,yi,Mn);return kn&&(aa.push(yi),ba+=1),ba>=Ti})}else Object(pr.a)(typeof Ti!="number","Cascader","'limit' of showSearch should be positive number or false."),aa=oa.filter(function(yi){return vn(dr.state.inputValue,yi,Mn)});return aa=aa.sort(function(yi,kn){return qn(yi,kn,ma,Mn)}),aa.length>0?aa.map(function(yi){var kn;return kn={__IS_FILTERED_OPTION:!0,path:yi},v()(kn,Mn.value,yi.map(function(ji){return ji[Mn.value]})),v()(kn,Mn.label,In(ma,yi,Wt,Mn)),v()(kn,"disabled",yi.some(function(ji){return!!ji.disabled})),v()(kn,"isEmptyNode",!0),kn}):[(yr={},v()(yr,Mn.value,"ANT_CASCADER_NOT_FOUND"),v()(yr,Mn.label,Gn||Lt("Cascader")),v()(yr,"disabled",!0),v()(yr,"isEmptyNode",!0),yr)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"getPopupPlacement",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ltr",Lt=this.props.popupPlacement;return Lt!==void 0?Lt:Wt==="rtl"?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var Wt=this;return r.createElement(Ct.a,null,function(Lt){return r.createElement(gt.a,null,function(dr){return Wt.renderCascader(Lt,dr)})})}}],[{key:"getDerivedStateFromProps",value:function(Wt,Lt){var dr=Lt.prevProps,yr={prevProps:Wt};return"value"in Wt&&(yr.value=Wt.value||[]),"popupVisible"in Wt&&(yr.popupVisible=Wt.popupVisible),Wt.showSearch&&dr.options!==Wt.options&&(yr.flattenOptions=pi(Wt.options,Wt)),yr}}]),kt}(r.Component);En.defaultProps={transitionName:"slide-up",options:[],disabled:!1,allowClear:!0,bordered:!0};var Yn=D.a=En},DFhj:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("GGyF"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},DL4k:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};D.default=y},DN4a:function(R,D,n){var y=n("Fofx"),f=n("QBsz"),x=y.identity,v=5e-5;function m(o){return o>v||o<-v}var p=function(e){e=e||{},e.position||(this.position=[0,0]),e.rotation==null&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},d=p.prototype;d.transform=null,d.needLocalTransform=function(){return m(this.rotation)||m(this.position[0])||m(this.position[1])||m(this.scale[0]-1)||m(this.scale[1]-1)};var u=[];d.updateTransform=function(){var o=this.parent,e=o&&o.transform,l=this.needLocalTransform(),r=this.transform;if(!(l||e)){r&&x(r);return}r=r||y.create(),l?this.getLocalTransform(r):x(r),e&&(l?y.mul(r,o.transform,r):y.copy(r,o.transform)),this.transform=r;var a=this.globalScaleRatio;if(a!=null&&a!==1){this.getGlobalScale(u);var c=u[0]<0?-1:1,h=u[1]<0?-1:1,g=((u[0]-c)*a+c)/u[0]||0,A=((u[1]-h)*a+h)/u[1]||0;r[0]*=g,r[1]*=g,r[2]*=A,r[3]*=A}this.invTransform=this.invTransform||y.create(),y.invert(this.invTransform,r)},d.getLocalTransform=function(o){return p.getLocalTransform(this,o)},d.setTransform=function(o){var e=this.transform,l=o.dpr||1;e?o.setTransform(l*e[0],l*e[1],l*e[2],l*e[3],l*e[4],l*e[5]):o.setTransform(l,0,0,l,0,0)},d.restoreTransform=function(o){var e=o.dpr||1;o.setTransform(e,0,0,e,0,0)};var s=[],i=y.create();d.setLocalTransform=function(o){if(!o)return;var e=o[0]*o[0]+o[1]*o[1],l=o[2]*o[2]+o[3]*o[3],r=this.position,a=this.scale;m(e-1)&&(e=Math.sqrt(e)),m(l-1)&&(l=Math.sqrt(l)),o[0]<0&&(e=-e),o[3]<0&&(l=-l),r[0]=o[4],r[1]=o[5],a[0]=e,a[1]=l,this.rotation=Math.atan2(-o[1]/l,o[0]/e)},d.decomposeTransform=function(){if(!this.transform)return;var o=this.parent,e=this.transform;o&&o.transform&&(y.mul(s,o.invTransform,e),e=s);var l=this.origin;l&&(l[0]||l[1])&&(i[4]=l[0],i[5]=l[1],y.mul(s,e,i),s[4]-=l[0],s[5]-=l[1],e=s),this.setLocalTransform(e)},d.getGlobalScale=function(o){var e=this.transform;return o=o||[],e?(o[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),o[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(o[0]=-o[0]),e[3]<0&&(o[1]=-o[1]),o):(o[0]=1,o[1]=1,o)},d.transformCoordToLocal=function(o,e){var l=[o,e],r=this.invTransform;return r&&f.applyTransform(l,l,r),l},d.transformCoordToGlobal=function(o,e){var l=[o,e],r=this.transform;return r&&f.applyTransform(l,l,r),l},p.getLocalTransform=function(o,e){e=e||[],x(e);var l=o.origin,r=o.scale||[1,1],a=o.rotation||0,c=o.position||[0,0];return l&&(e[4]-=l[0],e[5]-=l[1]),y.scale(e,e,r),a&&y.rotate(e,e,a),l&&(e[4]+=l[0],e[5]+=l[1]),e[4]+=c[0],e[5]+=c[1],e};var t=p;R.exports=t},DO2E:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};D.default=y},DSRE:function(R,D,n){(function(y){var f=n("Kz5y"),x=n("B8du"),v=D&&!D.nodeType&&D,m=v&&typeof y=="object"&&y&&!y.nodeType&&y,p=m&&m.exports===v,d=p?f.Buffer:void 0,u=d?d.isBuffer:void 0,s=u||x;y.exports=s}).call(this,n("YuTi")(R))},DYRE:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("OPEp"),v=n.n(x)},DZo9:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("JGo8"),v=n.n(x),m=n("+L6B"),p=n("MXD1"),d=n("5Dmo")},Dagg:function(R,D,n){var y=n("Gev7"),f=n("mFDi"),x=n("bYtY"),v=n("Xnb7");function m(d){y.call(this,d)}m.prototype={constructor:m,type:"image",brush:function(u,s){var i=this.style,t=i.image;i.bind(u,this,s);var o=this._image=v.createOrUpdateImage(t,this._image,this,this.onload);if(!o||!v.isImageReady(o))return;var e=i.x||0,l=i.y||0,r=i.width,a=i.height,c=o.width/o.height;if(r==null&&a!=null?r=a*c:a==null&&r!=null?a=r/c:r==null&&a==null&&(r=o.width,a=o.height),this.setTransform(u),i.sWidth&&i.sHeight){var h=i.sx||0,g=i.sy||0;u.drawImage(o,h,g,i.sWidth,i.sHeight,e,l,r,a)}else if(i.sx&&i.sy){var h=i.sx,g=i.sy,A=r-h,b=a-g;u.drawImage(o,h,g,A,b,e,l,r,a)}else u.drawImage(o,e,l,r,a);i.text!=null&&(this.restoreTransform(u),this.drawRectText(u,this.getBoundingRect()))},getBoundingRect:function(){var u=this.style;return this._rect||(this._rect=new f(u.x||0,u.y||0,u.width||0,u.height||0)),this._rect}},x.inherits(m,y);var p=m;R.exports=p},Dg8C:function(R,D,n){var y=n("XxSj"),f=n("bYtY");function x(v,m){v.eachSeriesByType("sankey",function(p){var d=p.getGraph(),u=d.nodes;if(u.length){var s=Infinity,i=-Infinity;f.each(u,function(t){var o=t.getLayout().value;o<s&&(s=o),o>i&&(i=o)}),f.each(u,function(t){var o=new y({type:"color",mappingMethod:"linear",dataExtent:[s,i],visual:p.get("color")}),e=o.mapValueToVisual(t.getLayout().value),l=t.getModel().get("itemStyle.color");l!=null?t.setVisual("color",l):t.setVisual("color",e)})}})}R.exports=x},DjyN:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("Urep"),v=n.n(x),m=n("OaEy")},DlQD:function(R,D,n){(function(y,f){R.exports=f()})(this,function(){"use strict";function y(Gt,Pt){for(var Xt=0;Xt<Pt.length;Xt++){var Ge=Pt[Xt];Ge.enumerable=Ge.enumerable||!1,Ge.configurable=!0,"value"in Ge&&(Ge.writable=!0),Object.defineProperty(Gt,Ge.key,Ge)}}function f(Gt,Pt,Xt){return Pt&&y(Gt.prototype,Pt),Xt&&y(Gt,Xt),Gt}function x(Gt,Pt){if(!Gt)return;if(typeof Gt=="string")return v(Gt,Pt);var Xt=Object.prototype.toString.call(Gt).slice(8,-1);if(Xt==="Object"&&Gt.constructor&&(Xt=Gt.constructor.name),Xt==="Map"||Xt==="Set")return Array.from(Gt);if(Xt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xt))return v(Gt,Pt)}function v(Gt,Pt){(Pt==null||Pt>Gt.length)&&(Pt=Gt.length);for(var Xt=0,Ge=new Array(Pt);Xt<Pt;Xt++)Ge[Xt]=Gt[Xt];return Ge}function m(Gt,Pt){var Xt;if(typeof Symbol=="undefined"||Gt[Symbol.iterator]==null){if(Array.isArray(Gt)||(Xt=x(Gt))||Pt&&Gt&&typeof Gt.length=="number"){Xt&&(Gt=Xt);var Ge=0;return function(){return Ge>=Gt.length?{done:!0}:{done:!1,value:Gt[Ge++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Xt=Gt[Symbol.iterator](),Xt.next.bind(Xt)}function p(Gt,Pt){return Pt={exports:{}},Gt(Pt,Pt.exports),Pt.exports}var d=p(function(Gt){function Pt(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Xt(Ge){Gt.exports.defaults=Ge}Gt.exports={defaults:Pt(),getDefaults:Pt,changeDefaults:Xt}}),u=d.defaults,s=d.getDefaults,i=d.changeDefaults,t=/[&<>"']/,o=/[&<>"']/g,e=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,r={"&":"&","<":"<",">":">",'"':""","'":"'"},a=function(Pt){return r[Pt]};function c(Gt,Pt){if(Pt){if(t.test(Gt))return Gt.replace(o,a)}else if(e.test(Gt))return Gt.replace(l,a);return Gt}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function g(Gt){return Gt.replace(h,function(Pt,Xt){return Xt=Xt.toLowerCase(),Xt==="colon"?":":Xt.charAt(0)==="#"?Xt.charAt(1)==="x"?String.fromCharCode(parseInt(Xt.substring(2),16)):String.fromCharCode(+Xt.substring(1)):""})}var A=/(^|[^\[])\^/g;function b(Gt,Pt){Gt=Gt.source||Gt,Pt=Pt||"";var Xt={replace:function(pe,oe){return oe=oe.source||oe,oe=oe.replace(A,"$1"),Gt=Gt.replace(pe,oe),Xt},getRegex:function(){return new RegExp(Gt,Pt)}};return Xt}var S=/[^\w:]/g,E=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function C(Gt,Pt,Xt){if(Gt){var Ge;try{Ge=decodeURIComponent(g(Xt)).replace(S,"").toLowerCase()}catch(pe){return null}if(Ge.indexOf("javascript:")===0||Ge.indexOf("vbscript:")===0||Ge.indexOf("data:")===0)return null}Pt&&!E.test(Xt)&&(Xt=I(Pt,Xt));try{Xt=encodeURI(Xt).replace(/%25/g,"%")}catch(pe){return null}return Xt}var _={},T=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,O=/^([^:]+:\/*[^/]*)[\s\S]*$/;function I(Gt,Pt){_[" "+Gt]||(T.test(Gt)?_[" "+Gt]=Gt+"/":_[" "+Gt]=P(Gt,"/",!0)),Gt=_[" "+Gt];var Xt=Gt.indexOf(":")===-1;return Pt.substring(0,2)==="//"?Xt?Pt:Gt.replace(w,"$1")+Pt:Pt.charAt(0)==="/"?Xt?Pt:Gt.replace(O,"$1")+Pt:Gt+Pt}var k={exec:function(){}};function M(Gt){for(var Pt=1,Xt,Ge;Pt<arguments.length;Pt++){Xt=arguments[Pt];for(Ge in Xt)Object.prototype.hasOwnProperty.call(Xt,Ge)&&(Gt[Ge]=Xt[Ge])}return Gt}function j(Gt,Pt){var Xt=Gt.replace(/\|/g,function(oe,lt,qe){for(var ge=!1,Ht=lt;--Ht>=0&&qe[Ht]==="\\";)ge=!ge;return ge?"|":" |"}),Ge=Xt.split(/ \|/),pe=0;if(Ge.length>Pt)Ge.splice(Pt);else for(;Ge.length<Pt;)Ge.push("");for(;pe<Ge.length;pe++)Ge[pe]=Ge[pe].trim().replace(/\\\|/g,"|");return Ge}function P(Gt,Pt,Xt){var Ge=Gt.length;if(Ge===0)return"";for(var pe=0;pe<Ge;){var oe=Gt.charAt(Ge-pe-1);if(oe===Pt&&!Xt)pe++;else if(oe!==Pt&&Xt)pe++;else break}return Gt.substr(0,Ge-pe)}function X(Gt,Pt){if(Gt.indexOf(Pt[1])===-1)return-1;for(var Xt=Gt.length,Ge=0,pe=0;pe<Xt;pe++)if(Gt[pe]==="\\")pe++;else if(Gt[pe]===Pt[0])Ge++;else if(Gt[pe]===Pt[1]&&(Ge--,Ge<0))return pe;return-1}function F(Gt){Gt&&Gt.sanitize&&!Gt.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var U={escape:c,unescape:g,edit:b,cleanUrl:C,resolveUrl:I,noopTest:k,merge:M,splitCells:j,rtrim:P,findClosingBracket:X,checkSanitizeDeprecation:F},K=d.defaults,z=U.rtrim,V=U.splitCells,Q=U.escape,G=U.findClosingBracket;function te(Gt,Pt,Xt){var Ge=Pt.href,pe=Pt.title?Q(Pt.title):null,oe=Gt[1].replace(/\\([\[\]])/g,"$1");return Gt[0].charAt(0)!=="!"?{type:"link",raw:Xt,href:Ge,title:pe,text:oe}:{type:"image",raw:Xt,href:Ge,title:pe,text:Q(oe)}}function q(Gt,Pt){var Xt=Gt.match(/^(\s+)(?:```)/);if(Xt===null)return Pt;var Ge=Xt[1];return Pt.split(`
|
|
|
`).map(function(pe){var oe=pe.match(/^\s+/);if(oe===null)return pe;var lt=oe[0];return lt.length>=Ge.length?pe.slice(Ge.length):pe}).join(`
|
|
|
`)}var se=function(){function Gt(Xt){this.options=Xt||K}var Pt=Gt.prototype;return Pt.space=function(Ge){var pe=this.rules.block.newline.exec(Ge);if(pe)return pe[0].length>1?{type:"space",raw:pe[0]}:{raw:`
|
|
|
`}},Pt.code=function(Ge,pe){var oe=this.rules.block.code.exec(Ge);if(oe){var lt=pe[pe.length-1];if(lt&<.type==="paragraph")return{raw:oe[0],text:oe[0].trimRight()};var qe=oe[0].replace(/^ {4}/gm,"");return{type:"code",raw:oe[0],codeBlockStyle:"indented",text:this.options.pedantic?qe:z(qe,`
|
|
|
`)}}},Pt.fences=function(Ge){var pe=this.rules.block.fences.exec(Ge);if(pe){var oe=pe[0],lt=q(oe,pe[3]||"");return{type:"code",raw:oe,lang:pe[2]?pe[2].trim():pe[2],text:lt}}},Pt.heading=function(Ge){var pe=this.rules.block.heading.exec(Ge);if(pe)return{type:"heading",raw:pe[0],depth:pe[1].length,text:pe[2]}},Pt.nptable=function(Ge){var pe=this.rules.block.nptable.exec(Ge);if(pe){var oe={type:"table",header:V(pe[1].replace(/^ *| *\| *$/g,"")),align:pe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pe[3]?pe[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:pe[0]};if(oe.header.length===oe.align.length){var lt=oe.align.length,qe;for(qe=0;qe<lt;qe++)/^ *-+: *$/.test(oe.align[qe])?oe.align[qe]="right":/^ *:-+: *$/.test(oe.align[qe])?oe.align[qe]="center":/^ *:-+ *$/.test(oe.align[qe])?oe.align[qe]="left":oe.align[qe]=null;for(lt=oe.cells.length,qe=0;qe<lt;qe++)oe.cells[qe]=V(oe.cells[qe],oe.header.length);return oe}}},Pt.hr=function(Ge){var pe=this.rules.block.hr.exec(Ge);if(pe)return{type:"hr",raw:pe[0]}},Pt.blockquote=function(Ge){var pe=this.rules.block.blockquote.exec(Ge);if(pe){var oe=pe[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:pe[0],text:oe}}},Pt.list=function(Ge){var pe=this.rules.block.list.exec(Ge);if(pe){for(var oe=pe[0],lt=pe[2],qe=lt.length>1,ge=lt[lt.length-1]===")",Ht={type:"list",raw:oe,ordered:qe,start:qe?+lt.slice(0,-1):"",loose:!1,items:[]},vr=pe[0].match(this.rules.block.item),At=!1,ir,lr,dn,Ft,ur,Jt,pt,at=vr.length,Pr=0;Pr<at;Pr++)ir=vr[Pr],oe=ir,lr=ir.length,ir=ir.replace(/^ *([*+-]|\d+[.)]) */,""),~ir.indexOf(`
|
|
|
`)&&(lr-=ir.length,ir=this.options.pedantic?ir.replace(/^ {1,4}/gm,""):ir.replace(new RegExp("^ {1,"+lr+"}","gm"),"")),Pr!==at-1&&(dn=this.rules.block.bullet.exec(vr[Pr+1])[0],(qe?dn.length===1||!ge&&dn[dn.length-1]===")":dn.length>1||this.options.smartLists&&dn!==lt)&&(Ft=vr.slice(Pr+1).join(`
|
|
|
`),Ht.raw=Ht.raw.substring(0,Ht.raw.length-Ft.length),Pr=at-1)),ur=At||/\n\n(?!\s*$)/.test(ir),Pr!==at-1&&(At=ir.charAt(ir.length-1)===`
|
|
|
`,ur||(ur=At)),ur&&(Ht.loose=!0),Jt=/^\[[ xX]\] /.test(ir),pt=void 0,Jt&&(pt=ir[1]!==" ",ir=ir.replace(/^\[[ xX]\] +/,"")),Ht.items.push({type:"list_item",raw:oe,task:Jt,checked:pt,loose:ur,text:ir});return Ht}},Pt.html=function(Ge){var pe=this.rules.block.html.exec(Ge);if(pe)return{type:this.options.sanitize?"paragraph":"html",raw:pe[0],pre:!this.options.sanitizer&&(pe[1]==="pre"||pe[1]==="script"||pe[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(pe[0]):Q(pe[0]):pe[0]}},Pt.def=function(Ge){var pe=this.rules.block.def.exec(Ge);if(pe){pe[3]&&(pe[3]=pe[3].substring(1,pe[3].length-1));var oe=pe[1].toLowerCase().replace(/\s+/g," ");return{tag:oe,raw:pe[0],href:pe[2],title:pe[3]}}},Pt.table=function(Ge){var pe=this.rules.block.table.exec(Ge);if(pe){var oe={type:"table",header:V(pe[1].replace(/^ *| *\| *$/g,"")),align:pe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pe[3]?pe[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(oe.header.length===oe.align.length){oe.raw=pe[0];var lt=oe.align.length,qe;for(qe=0;qe<lt;qe++)/^ *-+: *$/.test(oe.align[qe])?oe.align[qe]="right":/^ *:-+: *$/.test(oe.align[qe])?oe.align[qe]="center":/^ *:-+ *$/.test(oe.align[qe])?oe.align[qe]="left":oe.align[qe]=null;for(lt=oe.cells.length,qe=0;qe<lt;qe++)oe.cells[qe]=V(oe.cells[qe].replace(/^ *\| *| *\| *$/g,""),oe.header.length);return oe}}},Pt.lheading=function(Ge){var pe=this.rules.block.lheading.exec(Ge);if(pe)return{type:"heading",raw:pe[0],depth:pe[2].charAt(0)==="="?1:2,text:pe[1]}},Pt.paragraph=function(Ge){var pe=this.rules.block.paragraph.exec(Ge);if(pe)return{type:"paragraph",raw:pe[0],text:pe[1].charAt(pe[1].length-1)===`
|
|
|
`?pe[1].slice(0,-1):pe[1]}},Pt.text=function(Ge,pe){var oe=this.rules.block.text.exec(Ge);if(oe){var lt=pe[pe.length-1];return lt&<.type==="text"?{raw:oe[0],text:oe[0]}:{type:"text",raw:oe[0],text:oe[0]}}},Pt.escape=function(Ge){var pe=this.rules.inline.escape.exec(Ge);if(pe)return{type:"escape",raw:pe[0],text:Q(pe[1])}},Pt.tag=function(Ge,pe,oe){var lt=this.rules.inline.tag.exec(Ge);if(lt)return!pe&&/^<a /i.test(lt[0])?pe=!0:pe&&/^<\/a>/i.test(lt[0])&&(pe=!1),!oe&&/^<(pre|code|kbd|script)(\s|>)/i.test(lt[0])?oe=!0:oe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(lt[0])&&(oe=!1),{type:this.options.sanitize?"text":"html",raw:lt[0],inLink:pe,inRawBlock:oe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(lt[0]):Q(lt[0]):lt[0]}},Pt.link=function(Ge){var pe=this.rules.inline.link.exec(Ge);if(pe){var oe=G(pe[2],"()");if(oe>-1){var lt=pe[0].indexOf("!")===0?5:4,qe=lt+pe[1].length+oe;pe[2]=pe[2].substring(0,oe),pe[0]=pe[0].substring(0,qe).trim(),pe[3]=""}var ge=pe[2],Ht="";if(this.options.pedantic){var vr=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ge);vr?(ge=vr[1],Ht=vr[3]):Ht=""}else Ht=pe[3]?pe[3].slice(1,-1):"";ge=ge.trim().replace(/^<([\s\S]*)>$/,"$1");var At=te(pe,{href:ge&&ge.replace(this.rules.inline._escapes,"$1"),title:Ht&&Ht.replace(this.rules.inline._escapes,"$1")},pe[0]);return At}},Pt.reflink=function(Ge,pe){var oe;if((oe=this.rules.inline.reflink.exec(Ge))||(oe=this.rules.inline.nolink.exec(Ge))){var lt=(oe[2]||oe[1]).replace(/\s+/g," ");if(lt=pe[lt.toLowerCase()],!lt||!lt.href){var qe=oe[0].charAt(0);return{type:"text",raw:qe,text:qe}}var ge=te(oe,lt,oe[0]);return ge}},Pt.strong=function(Ge,pe,oe){oe===void 0&&(oe="");var lt=this.rules.inline.strong.start.exec(Ge);if(lt&&(!lt[1]||lt[1]&&(oe===""||this.rules.inline.punctuation.exec(oe)))){pe=pe.slice(-1*Ge.length);var qe=lt[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;qe.lastIndex=0;for(var ge;(lt=qe.exec(pe))!=null;)if(ge=this.rules.inline.strong.middle.exec(pe.slice(0,lt.index+3)),ge)return{type:"strong",raw:Ge.slice(0,ge[0].length),text:Ge.slice(2,ge[0].length-2)}}},Pt.em=function(Ge,pe,oe){oe===void 0&&(oe="");var lt=this.rules.inline.em.start.exec(Ge);if(lt&&(!lt[1]||lt[1]&&(oe===""||this.rules.inline.punctuation.exec(oe)))){pe=pe.slice(-1*Ge.length);var qe=lt[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;qe.lastIndex=0;for(var ge;(lt=qe.exec(pe))!=null;)if(ge=this.rules.inline.em.middle.exec(pe.slice(0,lt.index+2)),ge)return{type:"em",raw:Ge.slice(0,ge[0].length),text:Ge.slice(1,ge[0].length-1)}}},Pt.codespan=function(Ge){var pe=this.rules.inline.code.exec(Ge);if(pe){var oe=pe[2].replace(/\n/g," "),lt=/[^ ]/.test(oe),qe=oe.startsWith(" ")&&oe.endsWith(" ");return lt&&qe&&(oe=oe.substring(1,oe.length-1)),oe=Q(oe,!0),{type:"codespan",raw:pe[0],text:oe}}},Pt.br=function(Ge){var pe=this.rules.inline.br.exec(Ge);if(pe)return{type:"br",raw:pe[0]}},Pt.del=function(Ge){var pe=this.rules.inline.del.exec(Ge);if(pe)return{type:"del",raw:pe[0],text:pe[1]}},Pt.autolink=function(Ge,pe){var oe=this.rules.inline.autolink.exec(Ge);if(oe){var lt,qe;return oe[2]==="@"?(lt=Q(this.options.mangle?pe(oe[1]):oe[1]),qe="mailto:"+lt):(lt=Q(oe[1]),qe=lt),{type:"link",raw:oe[0],text:lt,href:qe,tokens:[{type:"text",raw:lt,text:lt}]}}},Pt.url=function(Ge,pe){var oe;if(oe=this.rules.inline.url.exec(Ge)){var lt,qe;if(oe[2]==="@")lt=Q(this.options.mangle?pe(oe[0]):oe[0]),qe="mailto:"+lt;else{var ge;do ge=oe[0],oe[0]=this.rules.inline._backpedal.exec(oe[0])[0];while(ge!==oe[0]);lt=Q(oe[0]),oe[1]==="www."?qe="http://"+lt:qe=lt}return{type:"link",raw:oe[0],text:lt,href:qe,tokens:[{type:"text",raw:lt,text:lt}]}}},Pt.inlineText=function(Ge,pe,oe){var lt=this.rules.inline.text.exec(Ge);if(lt){var qe;return pe?qe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(lt[0]):Q(lt[0]):lt[0]:qe=Q(this.options.smartypants?oe(lt[0]):lt[0]),{type:"text",raw:lt[0],text:qe}}},Gt}(),re=U.noopTest,xe=U.edit,Oe=U.merge,Me={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:re,table:re,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Me._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Me._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Me.def=xe(Me.def).replace("label",Me._label).replace("title",Me._title).getRegex(),Me.bullet=/(?:[*+-]|\d{1,9}[.)])/,Me.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Me.item=xe(Me.item,"gm").replace(/bull/g,Me.bullet).getRegex(),Me.list=xe(Me.list).replace(/bull/g,Me.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Me.def.source+")").getRegex(),Me._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",Me._comment=/<!--(?!-?>)[\s\S]*?-->/,Me.html=xe(Me.html,"i").replace("comment",Me._comment).replace("tag",Me._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Me.paragraph=xe(Me._paragraph).replace("hr",Me.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",Me._tag).getRegex(),Me.blockquote=xe(Me.blockquote).replace("paragraph",Me.paragraph).getRegex(),Me.normal=Oe({},Me),Me.gfm=Oe({},Me.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*|$)"}),Me.gfm.nptable=xe(Me.gfm.nptable).replace("hr",Me.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",Me._tag).getRegex(),Me.gfm.table=xe(Me.gfm.table).replace("hr",Me.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",Me._tag).getRegex(),Me.pedantic=Oe({},Me.normal,{html:xe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Me._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:re,paragraph:xe(Me.normal._paragraph).replace("hr",Me.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",Me.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Qe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:re,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:re,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};Qe._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Qe.punctuation=xe(Qe.punctuation).replace(/punctuation/g,Qe._punctuation).getRegex(),Qe._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Qe._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Qe.em.start=xe(Qe.em.start).replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.em.middle=xe(Qe.em.middle).replace(/punctuation/g,Qe._punctuation).replace(/overlapSkip/g,Qe._overlapSkip).getRegex(),Qe.em.endAst=xe(Qe.em.endAst,"g").replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.em.endUnd=xe(Qe.em.endUnd,"g").replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.strong.start=xe(Qe.strong.start).replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.strong.middle=xe(Qe.strong.middle).replace(/punctuation/g,Qe._punctuation).replace(/blockSkip/g,Qe._blockSkip).getRegex(),Qe.strong.endAst=xe(Qe.strong.endAst,"g").replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.strong.endUnd=xe(Qe.strong.endUnd,"g").replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.blockSkip=xe(Qe._blockSkip,"g").getRegex(),Qe.overlapSkip=xe(Qe._overlapSkip,"g").getRegex(),Qe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Qe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Qe._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])?)+(?![-_])/,Qe.autolink=xe(Qe.autolink).replace("scheme",Qe._scheme).replace("email",Qe._email).getRegex(),Qe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Qe.tag=xe(Qe.tag).replace("comment",Me._comment).replace("attribute",Qe._attribute).getRegex(),Qe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Qe._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Qe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Qe.link=xe(Qe.link).replace("label",Qe._label).replace("href",Qe._href).replace("title",Qe._title).getRegex(),Qe.reflink=xe(Qe.reflink).replace("label",Qe._label).getRegex(),Qe.reflinkSearch=xe(Qe.reflinkSearch,"g").replace("reflink",Qe.reflink).replace("nolink",Qe.nolink).getRegex(),Qe.normal=Oe({},Qe),Qe.pedantic=Oe({},Qe.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:xe(/^!?\[(label)\]\((.*?)\)/).replace("label",Qe._label).getRegex(),reflink:xe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Qe._label).getRegex()}),Qe.gfm=Oe({},Qe.normal,{escape:xe(Qe.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),Qe.gfm.url=xe(Qe.gfm.url,"i").replace("email",Qe.gfm._extended_email).getRegex(),Qe.breaks=Oe({},Qe.gfm,{br:xe(Qe.br).replace("{2,}","*").getRegex(),text:xe(Qe.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Ve={block:Me,inline:Qe},ut=d.defaults,Fe=Ve.block,ue=Ve.inline;function et(Gt){return Gt.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function he(Gt){var Pt="",Xt,Ge,pe=Gt.length;for(Xt=0;Xt<pe;Xt++)Ge=Gt.charCodeAt(Xt),Math.random()>.5&&(Ge="x"+Ge.toString(16)),Pt+="&#"+Ge+";";return Pt}var J=function(){function Gt(Xt){this.tokens=[],this.tokens.links=Object.create(null),this.options=Xt||ut,this.options.tokenizer=this.options.tokenizer||new se,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ge={block:Fe.normal,inline:ue.normal};this.options.pedantic?(Ge.block=Fe.pedantic,Ge.inline=ue.pedantic):this.options.gfm&&(Ge.block=Fe.gfm,this.options.breaks?Ge.inline=ue.breaks:Ge.inline=ue.gfm),this.tokenizer.rules=Ge}Gt.lex=function(Ge,pe){var oe=new Gt(pe);return oe.lex(Ge)};var Pt=Gt.prototype;return Pt.lex=function(Ge){return Ge=Ge.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(Ge,this.tokens,!0),this.inline(this.tokens),this.tokens},Pt.blockTokens=function(Ge,pe,oe){pe===void 0&&(pe=[]),oe===void 0&&(oe=!0),Ge=Ge.replace(/^ +$/gm,"");for(var lt,qe,ge,Ht;Ge;){if(lt=this.tokenizer.space(Ge)){Ge=Ge.substring(lt.raw.length),lt.type&&pe.push(lt);continue}if(lt=this.tokenizer.code(Ge,pe)){Ge=Ge.substring(lt.raw.length),lt.type?pe.push(lt):(Ht=pe[pe.length-1],Ht.raw+=`
|
|
|
`+lt.raw,Ht.text+=`
|
|
|
`+lt.text);continue}if(lt=this.tokenizer.fences(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(lt=this.tokenizer.heading(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(lt=this.tokenizer.nptable(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(lt=this.tokenizer.hr(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(lt=this.tokenizer.blockquote(Ge)){Ge=Ge.substring(lt.raw.length),lt.tokens=this.blockTokens(lt.text,[],oe),pe.push(lt);continue}if(lt=this.tokenizer.list(Ge)){for(Ge=Ge.substring(lt.raw.length),ge=lt.items.length,qe=0;qe<ge;qe++)lt.items[qe].tokens=this.blockTokens(lt.items[qe].text,[],!1);pe.push(lt);continue}if(lt=this.tokenizer.html(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(oe&&(lt=this.tokenizer.def(Ge))){Ge=Ge.substring(lt.raw.length),this.tokens.links[lt.tag]||(this.tokens.links[lt.tag]={href:lt.href,title:lt.title});continue}if(lt=this.tokenizer.table(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(lt=this.tokenizer.lheading(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(oe&&(lt=this.tokenizer.paragraph(Ge))){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(lt=this.tokenizer.text(Ge,pe)){Ge=Ge.substring(lt.raw.length),lt.type?pe.push(lt):(Ht=pe[pe.length-1],Ht.raw+=`
|
|
|
`+lt.raw,Ht.text+=`
|
|
|
`+lt.text);continue}if(Ge){var vr="Infinite loop on byte: "+Ge.charCodeAt(0);if(this.options.silent){console.error(vr);break}else throw new Error(vr)}}return pe},Pt.inline=function(Ge){var pe,oe,lt,qe,ge,Ht,vr=Ge.length;for(pe=0;pe<vr;pe++){Ht=Ge[pe];switch(Ht.type){case"paragraph":case"text":case"heading":{Ht.tokens=[],this.inlineTokens(Ht.text,Ht.tokens);break}case"table":{for(Ht.tokens={header:[],cells:[]},qe=Ht.header.length,oe=0;oe<qe;oe++)Ht.tokens.header[oe]=[],this.inlineTokens(Ht.header[oe],Ht.tokens.header[oe]);for(qe=Ht.cells.length,oe=0;oe<qe;oe++)for(ge=Ht.cells[oe],Ht.tokens.cells[oe]=[],lt=0;lt<ge.length;lt++)Ht.tokens.cells[oe][lt]=[],this.inlineTokens(ge[lt],Ht.tokens.cells[oe][lt]);break}case"blockquote":{this.inline(Ht.tokens);break}case"list":{for(qe=Ht.items.length,oe=0;oe<qe;oe++)this.inline(Ht.items[oe].tokens);break}}}return Ge},Pt.inlineTokens=function(Ge,pe,oe,lt,qe){pe===void 0&&(pe=[]),oe===void 0&&(oe=!1),lt===void 0&&(lt=!1),qe===void 0&&(qe="");var ge,Ht=Ge,vr;if(this.tokens.links){var At=Object.keys(this.tokens.links);if(At.length>0)for(;(vr=this.tokenizer.rules.inline.reflinkSearch.exec(Ht))!=null;)At.includes(vr[0].slice(vr[0].lastIndexOf("[")+1,-1))&&(Ht=Ht.slice(0,vr.index)+"["+"a".repeat(vr[0].length-2)+"]"+Ht.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(vr=this.tokenizer.rules.inline.blockSkip.exec(Ht))!=null;)Ht=Ht.slice(0,vr.index)+"["+"a".repeat(vr[0].length-2)+"]"+Ht.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Ge;){if(ge=this.tokenizer.escape(Ge)){Ge=Ge.substring(ge.raw.length),pe.push(ge);continue}if(ge=this.tokenizer.tag(Ge,oe,lt)){Ge=Ge.substring(ge.raw.length),oe=ge.inLink,lt=ge.inRawBlock,pe.push(ge);continue}if(ge=this.tokenizer.link(Ge)){Ge=Ge.substring(ge.raw.length),ge.type==="link"&&(ge.tokens=this.inlineTokens(ge.text,[],!0,lt)),pe.push(ge);continue}if(ge=this.tokenizer.reflink(Ge,this.tokens.links)){Ge=Ge.substring(ge.raw.length),ge.type==="link"&&(ge.tokens=this.inlineTokens(ge.text,[],!0,lt)),pe.push(ge);continue}if(ge=this.tokenizer.strong(Ge,Ht,qe)){Ge=Ge.substring(ge.raw.length),ge.tokens=this.inlineTokens(ge.text,[],oe,lt),pe.push(ge);continue}if(ge=this.tokenizer.em(Ge,Ht,qe)){Ge=Ge.substring(ge.raw.length),ge.tokens=this.inlineTokens(ge.text,[],oe,lt),pe.push(ge);continue}if(ge=this.tokenizer.codespan(Ge)){Ge=Ge.substring(ge.raw.length),pe.push(ge);continue}if(ge=this.tokenizer.br(Ge)){Ge=Ge.substring(ge.raw.length),pe.push(ge);continue}if(ge=this.tokenizer.del(Ge)){Ge=Ge.substring(ge.raw.length),ge.tokens=this.inlineTokens(ge.text,[],oe,lt),pe.push(ge);continue}if(ge=this.tokenizer.autolink(Ge,he)){Ge=Ge.substring(ge.raw.length),pe.push(ge);continue}if(!oe&&(ge=this.tokenizer.url(Ge,he))){Ge=Ge.substring(ge.raw.length),pe.push(ge);continue}if(ge=this.tokenizer.inlineText(Ge,lt,et)){Ge=Ge.substring(ge.raw.length),qe=ge.raw.slice(-1),pe.push(ge);continue}if(Ge){var ir="Infinite loop on byte: "+Ge.charCodeAt(0);if(this.options.silent){console.error(ir);break}else throw new Error(ir)}}return pe},f(Gt,null,[{key:"rules",get:function(){return{block:Fe,inline:ue}}}]),Gt}(),Y=d.defaults,$=U.cleanUrl,de=U.escape,be=function(){function Gt(Xt){this.options=Xt||Y}var Pt=Gt.prototype;return Pt.code=function(Ge,pe,oe){var lt=(pe||"").match(/\S*/)[0];if(this.options.highlight){var qe=this.options.highlight(Ge,lt);qe!=null&&qe!==Ge&&(oe=!0,Ge=qe)}return lt?'<pre><code class="'+this.options.langPrefix+de(lt,!0)+'">'+(oe?Ge:de(Ge,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(oe?Ge:de(Ge,!0))+`</code></pre>
|
|
|
`},Pt.blockquote=function(Ge){return`<blockquote>
|
|
|
`+Ge+`</blockquote>
|
|
|
`},Pt.html=function(Ge){return Ge},Pt.heading=function(Ge,pe,oe,lt){return this.options.headerIds?"<h"+pe+' id="'+this.options.headerPrefix+lt.slug(oe)+'">'+Ge+"</h"+pe+`>
|
|
|
`:"<h"+pe+">"+Ge+"</h"+pe+`>
|
|
|
`},Pt.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},Pt.list=function(Ge,pe,oe){var lt=pe?"ol":"ul",qe=pe&&oe!==1?' start="'+oe+'"':"";return"<"+lt+qe+`>
|
|
|
`+Ge+"</"+lt+`>
|
|
|
`},Pt.listitem=function(Ge){return"<li>"+Ge+`</li>
|
|
|
`},Pt.checkbox=function(Ge){return"<input "+(Ge?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Pt.paragraph=function(Ge){return"<p>"+Ge+`</p>
|
|
|
`},Pt.table=function(Ge,pe){return pe&&(pe="<tbody>"+pe+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+Ge+`</thead>
|
|
|
`+pe+`</table>
|
|
|
`},Pt.tablerow=function(Ge){return`<tr>
|
|
|
`+Ge+`</tr>
|
|
|
`},Pt.tablecell=function(Ge,pe){var oe=pe.header?"th":"td",lt=pe.align?"<"+oe+' align="'+pe.align+'">':"<"+oe+">";return lt+Ge+"</"+oe+`>
|
|
|
`},Pt.strong=function(Ge){return"<strong>"+Ge+"</strong>"},Pt.em=function(Ge){return"<em>"+Ge+"</em>"},Pt.codespan=function(Ge){return"<code>"+Ge+"</code>"},Pt.br=function(){return this.options.xhtml?"<br/>":"<br>"},Pt.del=function(Ge){return"<del>"+Ge+"</del>"},Pt.link=function(Ge,pe,oe){if(Ge=$(this.options.sanitize,this.options.baseUrl,Ge),Ge===null)return oe;var lt='<a href="'+de(Ge)+'"';return pe&&(lt+=' title="'+pe+'"'),lt+=">"+oe+"</a>",lt},Pt.image=function(Ge,pe,oe){if(Ge=$(this.options.sanitize,this.options.baseUrl,Ge),Ge===null)return oe;var lt='<img src="'+Ge+'" alt="'+oe+'"';return pe&&(lt+=' title="'+pe+'"'),lt+=this.options.xhtml?"/>":">",lt},Pt.text=function(Ge){return Ge},Gt}(),Ce=function(){function Gt(){}var Pt=Gt.prototype;return Pt.strong=function(Ge){return Ge},Pt.em=function(Ge){return Ge},Pt.codespan=function(Ge){return Ge},Pt.del=function(Ge){return Ge},Pt.html=function(Ge){return Ge},Pt.text=function(Ge){return Ge},Pt.link=function(Ge,pe,oe){return""+oe},Pt.image=function(Ge,pe,oe){return""+oe},Pt.br=function(){return""},Gt}(),Be=function(){function Gt(){this.seen={}}var Pt=Gt.prototype;return Pt.slug=function(Ge){var pe=Ge.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(pe)){var oe=pe;do this.seen[oe]++,pe=oe+"-"+this.seen[oe];while(this.seen.hasOwnProperty(pe))}return this.seen[pe]=0,pe},Gt}(),fe=d.defaults,we=U.unescape,Re=function(){function Gt(Xt){this.options=Xt||fe,this.options.renderer=this.options.renderer||new be,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ce,this.slugger=new Be}Gt.parse=function(Ge,pe){var oe=new Gt(pe);return oe.parse(Ge)};var Pt=Gt.prototype;return Pt.parse=function(Ge,pe){pe===void 0&&(pe=!0);var oe="",lt,qe,ge,Ht,vr,At,ir,lr,dn,Ft,ur,Jt,pt,at,Pr,un,_n,Xn,xi=Ge.length;for(lt=0;lt<xi;lt++){Ft=Ge[lt];switch(Ft.type){case"space":continue;case"hr":{oe+=this.renderer.hr();continue}case"heading":{oe+=this.renderer.heading(this.parseInline(Ft.tokens),Ft.depth,we(this.parseInline(Ft.tokens,this.textRenderer)),this.slugger);continue}case"code":{oe+=this.renderer.code(Ft.text,Ft.lang,Ft.escaped);continue}case"table":{for(lr="",ir="",Ht=Ft.header.length,qe=0;qe<Ht;qe++)ir+=this.renderer.tablecell(this.parseInline(Ft.tokens.header[qe]),{header:!0,align:Ft.align[qe]});for(lr+=this.renderer.tablerow(ir),dn="",Ht=Ft.cells.length,qe=0;qe<Ht;qe++){for(At=Ft.tokens.cells[qe],ir="",vr=At.length,ge=0;ge<vr;ge++)ir+=this.renderer.tablecell(this.parseInline(At[ge]),{header:!1,align:Ft.align[ge]});dn+=this.renderer.tablerow(ir)}oe+=this.renderer.table(lr,dn);continue}case"blockquote":{dn=this.parse(Ft.tokens),oe+=this.renderer.blockquote(dn);continue}case"list":{for(ur=Ft.ordered,Jt=Ft.start,pt=Ft.loose,Ht=Ft.items.length,dn="",qe=0;qe<Ht;qe++)Pr=Ft.items[qe],un=Pr.checked,_n=Pr.task,at="",Pr.task&&(Xn=this.renderer.checkbox(un),pt?Pr.tokens.length>0&&Pr.tokens[0].type==="text"?(Pr.tokens[0].text=Xn+" "+Pr.tokens[0].text,Pr.tokens[0].tokens&&Pr.tokens[0].tokens.length>0&&Pr.tokens[0].tokens[0].type==="text"&&(Pr.tokens[0].tokens[0].text=Xn+" "+Pr.tokens[0].tokens[0].text)):Pr.tokens.unshift({type:"text",text:Xn}):at+=Xn),at+=this.parse(Pr.tokens,pt),dn+=this.renderer.listitem(at,_n,un);oe+=this.renderer.list(dn,ur,Jt);continue}case"html":{oe+=this.renderer.html(Ft.text);continue}case"paragraph":{oe+=this.renderer.paragraph(this.parseInline(Ft.tokens));continue}case"text":{for(dn=Ft.tokens?this.parseInline(Ft.tokens):Ft.text;lt+1<xi&&Ge[lt+1].type==="text";)Ft=Ge[++lt],dn+=`
|
|
|
`+(Ft.tokens?this.parseInline(Ft.tokens):Ft.text);oe+=pe?this.renderer.paragraph(dn):dn;continue}default:{var Pn='Token with "'+Ft.type+'" type was not found.';if(this.options.silent){console.error(Pn);return}else throw new Error(Pn)}}}return oe},Pt.parseInline=function(Ge,pe){pe=pe||this.renderer;var oe="",lt,qe,ge=Ge.length;for(lt=0;lt<ge;lt++){qe=Ge[lt];switch(qe.type){case"escape":{oe+=pe.text(qe.text);break}case"html":{oe+=pe.html(qe.text);break}case"link":{oe+=pe.link(qe.href,qe.title,this.parseInline(qe.tokens,pe));break}case"image":{oe+=pe.image(qe.href,qe.title,qe.text);break}case"strong":{oe+=pe.strong(this.parseInline(qe.tokens,pe));break}case"em":{oe+=pe.em(this.parseInline(qe.tokens,pe));break}case"codespan":{oe+=pe.codespan(qe.text);break}case"br":{oe+=pe.br();break}case"del":{oe+=pe.del(this.parseInline(qe.tokens,pe));break}case"text":{oe+=pe.text(qe.text);break}default:{var Ht='Token with "'+qe.type+'" type was not found.';if(this.options.silent){console.error(Ht);return}else throw new Error(Ht)}}}return oe},Gt}(),rt=U.merge,St=U.checkSanitizeDeprecation,ft=U.escape,He=d.getDefaults,er=d.changeDefaults,ct=d.defaults;function Kt(Gt,Pt,Xt){if(typeof Gt=="undefined"||Gt===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Gt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Gt)+", string expected");if(typeof Pt=="function"&&(Xt=Pt,Pt=null),Pt=rt({},Kt.defaults,Pt||{}),St(Pt),Xt){var Ge=Pt.highlight,pe;try{pe=J.lex(Gt,Pt)}catch(ge){return Xt(ge)}var oe=function(Ht){var vr;if(!Ht)try{vr=Re.parse(pe,Pt)}catch(At){Ht=At}return Pt.highlight=Ge,Ht?Xt(Ht):Xt(null,vr)};if(!Ge||Ge.length<3)return oe();if(delete Pt.highlight,!pe.length)return oe();var lt=0;Kt.walkTokens(pe,function(ge){ge.type==="code"&&(lt++,setTimeout(function(){Ge(ge.text,ge.lang,function(Ht,vr){if(Ht)return oe(Ht);vr!=null&&vr!==ge.text&&(ge.text=vr,ge.escaped=!0),lt--,lt===0&&oe()})},0))}),lt===0&&oe();return}try{var qe=J.lex(Gt,Pt);return Pt.walkTokens&&Kt.walkTokens(qe,Pt.walkTokens),Re.parse(qe,Pt)}catch(ge){if(ge.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Pt.silent)return"<p>An error occurred:</p><pre>"+ft(ge.message+"",!0)+"</pre>";throw ge}}Kt.options=Kt.setOptions=function(Gt){return rt(Kt.defaults,Gt),er(Kt.defaults),Kt},Kt.getDefaults=He,Kt.defaults=ct,Kt.use=function(Gt){var Pt=rt({},Gt);if(Gt.renderer&&function(){var Ge=Kt.defaults.renderer||new be,pe=function(qe){var ge=Ge[qe];Ge[qe]=function(){for(var Ht=arguments.length,vr=new Array(Ht),At=0;At<Ht;At++)vr[At]=arguments[At];var ir=Gt.renderer[qe].apply(Ge,vr);return ir===!1&&(ir=ge.apply(Ge,vr)),ir}};for(var oe in Gt.renderer)pe(oe);Pt.renderer=Ge}(),Gt.tokenizer&&function(){var Ge=Kt.defaults.tokenizer||new se,pe=function(qe){var ge=Ge[qe];Ge[qe]=function(){for(var Ht=arguments.length,vr=new Array(Ht),At=0;At<Ht;At++)vr[At]=arguments[At];var ir=Gt.tokenizer[qe].apply(Ge,vr);return ir===!1&&(ir=ge.apply(Ge,vr)),ir}};for(var oe in Gt.tokenizer)pe(oe);Pt.tokenizer=Ge}(),Gt.walkTokens){var Xt=Kt.defaults.walkTokens;Pt.walkTokens=function(Ge){Gt.walkTokens(Ge),Xt&&Xt(Ge)}}Kt.setOptions(Pt)},Kt.walkTokens=function(Gt,Pt){for(var Xt=m(Gt),Ge;!(Ge=Xt()).done;){var pe=Ge.value;Pt(pe);switch(pe.type){case"table":{for(var oe=m(pe.tokens.header),lt;!(lt=oe()).done;){var qe=lt.value;Kt.walkTokens(qe,Pt)}for(var ge=m(pe.tokens.cells),Ht;!(Ht=ge()).done;)for(var vr=Ht.value,At=m(vr),ir;!(ir=At()).done;){var lr=ir.value;Kt.walkTokens(lr,Pt)}break}case"list":{Kt.walkTokens(pe.items,Pt);break}default:pe.tokens&&Kt.walkTokens(pe.tokens,Pt)}}},Kt.Parser=Re,Kt.parser=Re.parse,Kt.Renderer=be,Kt.TextRenderer=Ce,Kt.Lexer=J,Kt.lexer=J.lex,Kt.Tokenizer=se,Kt.Slugger=Be,Kt.parse=Kt;var fr=Kt;return fr})},"DlR+":function(R,D,n){var y=n("MFOe"),f=y.Global,x=y.trim;R.exports={name:"cookieStorage",read:m,write:d,each:p,remove:u,clearAll:s};var v=f.document;function m(t){if(!t||!i(t))return null;var o="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(v.cookie.replace(new RegExp(o),"$1"))}function p(t){for(var o=v.cookie.split(/; ?/g),e=o.length-1;e>=0;e--){if(!x(o[e]))continue;var l=o[e].split("="),r=unescape(l[0]),a=unescape(l[1]);t(a,r)}}function d(t,o){if(!t)return;v.cookie=escape(t)+"="+escape(o)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function u(t){if(!t||!i(t))return;v.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function s(){p(function(t,o){u(o)})}function i(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(v.cookie)}},Ducp:function(R,D,n){var y=n("bYtY"),f=n("IwbS"),x=n("+TT/"),v=n("XpcN"),m=f.Group,p=["width","height"],d=["x","y"],u=v.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){u.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new m),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new m),this._showController},resetInner:function(){u.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(i,t,o,e,l,r,a){var c=this;u.superCall(this,"renderInner",i,t,o,e,l,r,a);var h=this._controllerGroup,g=t.get("pageIconSize",!0);y.isArray(g)||(g=[g,g]),b("pagePrev",0);var A=t.getModel("pageTextStyle");h.add(new f.Text({name:"pageText",style:{textFill:A.getTextColor(),font:A.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),b("pageNext",1);function b(S,E){var C=S+"DataIndex",_=f.createIcon(t.get("pageIcons",!0)[t.getOrient().name][E],{onclick:y.bind(c._pageGo,c,C,t,e)},{x:-g[0]/2,y:-g[1]/2,width:g[0],height:g[1]});_.name=S,h.add(_)}},layoutInner:function(i,t,o,e,l,r){var a=this.getSelectorGroup(),c=i.getOrient().index,h=p[c],g=d[c],A=p[1-c],b=d[1-c];l&&x.box("horizontal",a,i.get("selectorItemGap",!0));var S=i.get("selectorButtonGap",!0),E=a.getBoundingRect(),C=[-E.x,-E.y],_=y.clone(o);l&&(_[h]=o[h]-E[h]-S);var T=this._layoutContentAndController(i,e,_,c,h,A,b);if(l){if(r==="end")C[c]+=T[h]+S;else{var w=E[h]+S;C[c]-=w,T[g]-=w}T[h]+=E[h]+S,C[1-c]+=T[b]+T[A]/2-E[A]/2,T[A]=Math.max(T[A],E[A]),T[b]=Math.min(T[b],E[b]+C[1-c]),a.attr("position",C)}return T},_layoutContentAndController:function(i,t,o,e,l,r,a){var c=this.getContentGroup(),h=this._containerGroup,g=this._controllerGroup;x.box(i.get("orient"),c,i.get("itemGap"),e?o.width:null,e?null:o.height),x.box("horizontal",g,i.get("pageButtonItemGap",!0));var A=c.getBoundingRect(),b=g.getBoundingRect(),S=this._showController=A[l]>o[l],E=[-A.x,-A.y];t||(E[e]=c.position[e]);var C=[0,0],_=[-b.x,-b.y],T=y.retrieve2(i.get("pageButtonGap",!0),i.get("itemGap",!0));if(S){var w=i.get("pageButtonPosition",!0);w==="end"?_[e]+=o[l]-b[l]:C[e]+=b[l]+T}_[1-e]+=A[r]/2-b[r]/2,c.attr("position",E),h.attr("position",C),g.attr("position",_);var O={x:0,y:0};if(O[l]=S?o[l]:A[l],O[r]=Math.max(A[r],b[r]),O[a]=Math.min(0,b[a]+_[1-e]),h.__rectSize=o[l],S){var I={x:0,y:0};I[l]=Math.max(o[l]-b[l]-T,0),I[r]=O[r],h.setClipPath(new f.Rect({shape:I})),h.__rectSize=I[l]}else g.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var k=this._getPageInfo(i);return k.pageIndex!=null&&f.updateProps(c,{position:k.contentPosition},S?i:!1),this._updatePageInfoView(i,k),O},_pageGo:function(i,t,o){var e=this._getPageInfo(t)[i];e!=null&&o.dispatchAction({type:"legendScroll",scrollDataIndex:e,legendId:t.id})},_updatePageInfoView:function(i,t){var o=this._controllerGroup;y.each(["pagePrev","pageNext"],function(h){var g=t[h+"DataIndex"]!=null,A=o.childOfName(h);A&&(A.setStyle("fill",g?i.get("pageIconColor",!0):i.get("pageIconInactiveColor",!0)),A.cursor=g?"pointer":"default")});var e=o.childOfName("pageText"),l=i.get("pageFormatter"),r=t.pageIndex,a=r!=null?r+1:0,c=t.pageCount;e&&l&&e.setStyle("text",y.isString(l)?l.replace("{current}",a).replace("{total}",c):l({current:a,total:c}))},_getPageInfo:function(i){var t=i.get("scrollDataIndex",!0),o=this.getContentGroup(),e=this._containerGroup.__rectSize,l=i.getOrient().index,r=p[l],a=d[l],c=this._findTargetItemIndex(t),h=o.children(),g=h[c],A=h.length,b=A?1:0,S={contentPosition:o.position.slice(),pageCount:b,pageIndex:b-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!g)return S;var E=O(g);S.contentPosition[l]=-E.s;for(var C=c+1,_=E,T=E,w=null;C<=A;++C)w=O(h[C]),(!w&&T.e>_.s+e||w&&!I(w,_.s))&&(T.i>_.i?_=T:_=w,_&&(S.pageNextDataIndex==null&&(S.pageNextDataIndex=_.i),++S.pageCount)),T=w;for(var C=c-1,_=E,T=E,w=null;C>=-1;--C)w=O(h[C]),(!w||!I(T,w.s))&&_.i<T.i&&(T=_,S.pagePrevDataIndex==null&&(S.pagePrevDataIndex=_.i),++S.pageCount,++S.pageIndex),_=w;return S;function O(k){if(k){var M=k.getBoundingRect(),j=M[a]+k.position[l];return{s:j,e:j+M[r],i:k.__legendDataIndex}}}function I(k,M){return k.e>=M&&k.s<=M+e}},_findTargetItemIndex:function(i){if(!this._showController)return 0;var t,o=this.getContentGroup(),e;return o.eachChild(function(l,r){var a=l.__legendDataIndex;e==null&&a!=null&&(e=r),a===i&&(t=r)}),t!=null?t:e}}),s=u;R.exports=s},"E/ki":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};D.default=y},E2g8:function(R,D,n){(function(y,f){/*!
|
|
|
* @overview es6-promise - a tiny implementation of Promises/A+.
|
|
|
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
|
|
* @license Licensed under MIT license
|
|
|
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
|
|
* @version v4.2.8+1e68dce6
|
|
|
*/(function(x,v){R.exports=v()})(this,function(){"use strict";function x(be){var Ce=typeof be;return be!==null&&(Ce==="object"||Ce==="function")}function v(be){return typeof be=="function"}var m=void 0;Array.isArray?m=Array.isArray:m=function(Ce){return Object.prototype.toString.call(Ce)==="[object Array]"};var p=m,d=0,u=void 0,s=void 0,i=function(Ce,Be){E[d]=Ce,E[d+1]=Be,d+=2,d===2&&(s?s(C):T())};function t(be){s=be}function o(be){i=be}var e=typeof window!="undefined"?window:void 0,l=e||{},r=l.MutationObserver||l.WebKitMutationObserver,a=typeof self=="undefined"&&typeof y!="undefined"&&{}.toString.call(y)==="[object process]",c=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function h(){return function(){return y.nextTick(C)}}function g(){return typeof u!="undefined"?function(){u(C)}:S()}function A(){var be=0,Ce=new r(C),Be=document.createTextNode("");return Ce.observe(Be,{characterData:!0}),function(){Be.data=be=++be%2}}function b(){var be=new MessageChannel;return be.port1.onmessage=C,function(){return be.port2.postMessage(0)}}function S(){var be=setTimeout;return function(){return be(C,1)}}var E=new Array(1e3);function C(){for(var be=0;be<d;be+=2){var Ce=E[be],Be=E[be+1];Ce(Be),E[be]=void 0,E[be+1]=void 0}d=0}function _(){try{var be=Function("return this")().require("vertx");return u=be.runOnLoop||be.runOnContext,g()}catch(Ce){return S()}}var T=void 0;a?T=h():r?T=A():c?T=b():e===void 0&&!0?T=_():T=S();function w(be,Ce){var Be=this,fe=new this.constructor(k);fe[I]===void 0&&Ve(fe);var we=Be._state;if(we){var Re=arguments[we-1];i(function(){return xe(we,fe,Re,Be._result)})}else se(Be,fe,be,Ce);return fe}function O(be){var Ce=this;if(be&&typeof be=="object"&&be.constructor===Ce)return be;var Be=new Ce(k);return Q(Be,be),Be}var I=Math.random().toString(36).substring(2);function k(){}var M=void 0,j=1,P=2;function X(){return new TypeError("You cannot resolve a promise with itself")}function F(){return new TypeError("A promises callback cannot return that same promise.")}function U(be,Ce,Be,fe){try{be.call(Ce,Be,fe)}catch(we){return we}}function K(be,Ce,Be){i(function(fe){var we=!1,Re=U(Be,Ce,function(rt){if(we)return;we=!0,Ce!==rt?Q(fe,rt):te(fe,rt)},function(rt){if(we)return;we=!0,q(fe,rt)},"Settle: "+(fe._label||" unknown promise"));!we&&Re&&(we=!0,q(fe,Re))},be)}function z(be,Ce){Ce._state===j?te(be,Ce._result):Ce._state===P?q(be,Ce._result):se(Ce,void 0,function(Be){return Q(be,Be)},function(Be){return q(be,Be)})}function V(be,Ce,Be){Ce.constructor===be.constructor&&Be===w&&Ce.constructor.resolve===O?z(be,Ce):Be===void 0?te(be,Ce):v(Be)?K(be,Ce,Be):te(be,Ce)}function Q(be,Ce){if(be===Ce)q(be,X());else if(x(Ce)){var Be=void 0;try{Be=Ce.then}catch(fe){q(be,fe);return}V(be,Ce,Be)}else te(be,Ce)}function G(be){be._onerror&&be._onerror(be._result),re(be)}function te(be,Ce){if(be._state!==M)return;be._result=Ce,be._state=j,be._subscribers.length!==0&&i(re,be)}function q(be,Ce){if(be._state!==M)return;be._state=P,be._result=Ce,i(G,be)}function se(be,Ce,Be,fe){var we=be._subscribers,Re=we.length;be._onerror=null,we[Re]=Ce,we[Re+j]=Be,we[Re+P]=fe,Re===0&&be._state&&i(re,be)}function re(be){var Ce=be._subscribers,Be=be._state;if(Ce.length===0)return;for(var fe=void 0,we=void 0,Re=be._result,rt=0;rt<Ce.length;rt+=3)fe=Ce[rt],we=Ce[rt+Be],fe?xe(Be,fe,we,Re):we(Re);be._subscribers.length=0}function xe(be,Ce,Be,fe){var we=v(Be),Re=void 0,rt=void 0,St=!0;if(we){try{Re=Be(fe)}catch(ft){St=!1,rt=ft}if(Ce===Re){q(Ce,F());return}}else Re=fe;Ce._state!==M||(we&&St?Q(Ce,Re):St===!1?q(Ce,rt):be===j?te(Ce,Re):be===P&&q(Ce,Re))}function Oe(be,Ce){try{Ce(function(fe){Q(be,fe)},function(fe){q(be,fe)})}catch(Be){q(be,Be)}}var Me=0;function Qe(){return Me++}function Ve(be){be[I]=Me++,be._state=void 0,be._result=void 0,be._subscribers=[]}function ut(){return new Error("Array Methods must be provided an Array")}var Fe=function(){function be(Ce,Be){this._instanceConstructor=Ce,this.promise=new Ce(k),this.promise[I]||Ve(this.promise),p(Be)?(this.length=Be.length,this._remaining=Be.length,this._result=new Array(this.length),this.length===0?te(this.promise,this._result):(this.length=this.length||0,this._enumerate(Be),this._remaining===0&&te(this.promise,this._result))):q(this.promise,ut())}return be.prototype._enumerate=function(Be){for(var fe=0;this._state===M&&fe<Be.length;fe++)this._eachEntry(Be[fe],fe)},be.prototype._eachEntry=function(Be,fe){var we=this._instanceConstructor,Re=we.resolve;if(Re===O){var rt=void 0,St=void 0,ft=!1;try{rt=Be.then}catch(er){ft=!0,St=er}if(rt===w&&Be._state!==M)this._settledAt(Be._state,fe,Be._result);else if(typeof rt!="function")this._remaining--,this._result[fe]=Be;else if(we===$){var He=new we(k);ft?q(He,St):V(He,Be,rt),this._willSettleAt(He,fe)}else this._willSettleAt(new we(function(er){return er(Be)}),fe)}else this._willSettleAt(Re(Be),fe)},be.prototype._settledAt=function(Be,fe,we){var Re=this.promise;Re._state===M&&(this._remaining--,Be===P?q(Re,we):this._result[fe]=we),this._remaining===0&&te(Re,this._result)},be.prototype._willSettleAt=function(Be,fe){var we=this;se(Be,void 0,function(Re){return we._settledAt(j,fe,Re)},function(Re){return we._settledAt(P,fe,Re)})},be}();function ue(be){return new Fe(this,be).promise}function et(be){var Ce=this;return p(be)?new Ce(function(Be,fe){for(var we=be.length,Re=0;Re<we;Re++)Ce.resolve(be[Re]).then(Be,fe)}):new Ce(function(Be,fe){return fe(new TypeError("You must pass an array to race."))})}function he(be){var Ce=this,Be=new Ce(k);return q(Be,be),Be}function J(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Y(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var $=function(){function be(Ce){this[I]=Qe(),this._result=this._state=void 0,this._subscribers=[],k!==Ce&&(typeof Ce!="function"&&J(),this instanceof be?Oe(this,Ce):Y())}return be.prototype.catch=function(Be){return this.then(null,Be)},be.prototype.finally=function(Be){var fe=this,we=fe.constructor;return v(Be)?fe.then(function(Re){return we.resolve(Be()).then(function(){return Re})},function(Re){return we.resolve(Be()).then(function(){throw Re})}):fe.then(Be,Be)},be}();$.prototype.then=w,$.all=ue,$.race=et,$.resolve=O,$.reject=he,$._setScheduler=t,$._setAsap=o,$._asap=i;function de(){var be=void 0;if(typeof f!="undefined")be=f;else if(typeof self!="undefined")be=self;else try{be=Function("return this")()}catch(fe){throw new Error("polyfill failed because global object is unavailable in this environment")}var Ce=be.Promise;if(Ce){var Be=null;try{Be=Object.prototype.toString.call(Ce.resolve())}catch(fe){}if(Be==="[object Promise]"&&!Ce.cast)return}be.Promise=$}return $.polyfill=de,$.Promise=$,$})}).call(this,n("Q2Ig"),n("yLpj"))},E2jh:function(R,D,n){var y=n("2gN3"),f=function(){var v=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""}();function x(v){return!!f&&f in v}R.exports=x},E4JC:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var f=y,x=f.lib,v=x.StreamCipher,m=f.algo,p=[],d=[],u=[],s=m.Rabbit=v.extend({_doReset:function(){for(var o=this._key.words,e=this.cfg.iv,l=0;l<4;l++)o[l]=(o[l]<<8|o[l]>>>24)&16711935|(o[l]<<24|o[l]>>>8)&4278255360;var r=this._X=[o[0],o[3]<<16|o[2]>>>16,o[1],o[0]<<16|o[3]>>>16,o[2],o[1]<<16|o[0]>>>16,o[3],o[2]<<16|o[1]>>>16],a=this._C=[o[2]<<16|o[2]>>>16,o[0]&4294901760|o[1]&65535,o[3]<<16|o[3]>>>16,o[1]&4294901760|o[2]&65535,o[0]<<16|o[0]>>>16,o[2]&4294901760|o[3]&65535,o[1]<<16|o[1]>>>16,o[3]&4294901760|o[0]&65535];this._b=0;for(var l=0;l<4;l++)i.call(this);for(var l=0;l<8;l++)a[l]^=r[l+4&7];if(e){var c=e.words,h=c[0],g=c[1],A=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,b=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,S=A>>>16|b&4294901760,E=b<<16|A&65535;a[0]^=A,a[1]^=S,a[2]^=b,a[3]^=E,a[4]^=A,a[5]^=S,a[6]^=b,a[7]^=E;for(var l=0;l<4;l++)i.call(this)}},_doProcessBlock:function(o,e){var l=this._X;i.call(this),p[0]=l[0]^l[5]>>>16^l[3]<<16,p[1]=l[2]^l[7]>>>16^l[5]<<16,p[2]=l[4]^l[1]>>>16^l[7]<<16,p[3]=l[6]^l[3]>>>16^l[1]<<16;for(var r=0;r<4;r++)p[r]=(p[r]<<8|p[r]>>>24)&16711935|(p[r]<<24|p[r]>>>8)&4278255360,o[e+r]^=p[r]},blockSize:128/32,ivSize:64/32});function i(){for(var t=this._X,o=this._C,e=0;e<8;e++)d[e]=o[e];o[0]=o[0]+1295307597+this._b|0,o[1]=o[1]+3545052371+(o[0]>>>0<d[0]>>>0?1:0)|0,o[2]=o[2]+886263092+(o[1]>>>0<d[1]>>>0?1:0)|0,o[3]=o[3]+1295307597+(o[2]>>>0<d[2]>>>0?1:0)|0,o[4]=o[4]+3545052371+(o[3]>>>0<d[3]>>>0?1:0)|0,o[5]=o[5]+886263092+(o[4]>>>0<d[4]>>>0?1:0)|0,o[6]=o[6]+1295307597+(o[5]>>>0<d[5]>>>0?1:0)|0,o[7]=o[7]+3545052371+(o[6]>>>0<d[6]>>>0?1:0)|0,this._b=o[7]>>>0<d[7]>>>0?1:0;for(var e=0;e<8;e++){var l=t[e]+o[e],r=l&65535,a=l>>>16,c=((r*r>>>17)+r*a>>>15)+a*a,h=((l&4294901760)*l|0)+((l&65535)*l|0);u[e]=c^h}t[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,t[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,t[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,t[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,t[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,t[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,t[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,t[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}f.Rabbit=v._createHelper(s)}(),y.Rabbit})},E9nw:function(R,D){R.exports=function(){var n=document.getSelection();if(!n.rangeCount)return function(){};for(var y=document.activeElement,f=[],x=0;x<n.rangeCount;x++)f.push(n.getRangeAt(x));switch(y.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":y.blur();break;default:y=null;break}return n.removeAllRanges(),function(){n.type==="Caret"&&n.removeAllRanges(),n.rangeCount||f.forEach(function(v){n.addRange(v)}),y&&y.focus()}}},ELLl:function(R,D,n){(function(y){y(n("VrN/"))})(function(y){var f={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=y.Pos;y.defineOption("autoCloseBrackets",!1,function(r,a,c){c&&c!=y.Init&&(r.removeKeyMap(m),r.state.closeBrackets=null),a&&(p(v(a,"pairs")),r.state.closeBrackets=a,r.addKeyMap(m))});function v(r,a){return a=="pairs"&&typeof r=="string"?r:typeof r=="object"&&r[a]!=null?r[a]:f[a]}var m={Backspace:s,Enter:i};function p(r){for(var a=0;a<r.length;a++){var c=r.charAt(a),h="'"+c+"'";m[h]||(m[h]=d(c))}}p(f.pairs+"`");function d(r){return function(a){return o(a,r)}}function u(r){var a=r.state.closeBrackets;if(!a||a.override)return a;var c=r.getModeAt(r.getCursor());return c.closeBrackets||a}function s(r){var a=u(r);if(!a||r.getOption("disableInput"))return y.Pass;for(var c=v(a,"pairs"),h=r.listSelections(),g=0;g<h.length;g++){if(!h[g].empty())return y.Pass;var A=e(r,h[g].head);if(!A||c.indexOf(A)%2!=0)return y.Pass}for(var g=h.length-1;g>=0;g--){var b=h[g].head;r.replaceRange("",x(b.line,b.ch-1),x(b.line,b.ch+1),"+delete")}}function i(r){var a=u(r),c=a&&v(a,"explode");if(!c||r.getOption("disableInput"))return y.Pass;for(var h=r.listSelections(),g=0;g<h.length;g++){if(!h[g].empty())return y.Pass;var A=e(r,h[g].head);if(!A||c.indexOf(A)%2!=0)return y.Pass}r.operation(function(){var b=r.lineSeparator()||`
|
|
|
`;r.replaceSelection(b+b,null),r.execCommand("goCharLeft"),h=r.listSelections();for(var S=0;S<h.length;S++){var E=h[S].head.line;r.indentLine(E,null,!0),r.indentLine(E+1,null,!0)}})}function t(r){var a=y.cmpPos(r.anchor,r.head)>0;return{anchor:new x(r.anchor.line,r.anchor.ch+(a?-1:1)),head:new x(r.head.line,r.head.ch+(a?1:-1))}}function o(r,a){var c=u(r);if(!c||r.getOption("disableInput"))return y.Pass;var h=v(c,"pairs"),g=h.indexOf(a);if(g==-1)return y.Pass;for(var A=v(c,"closeBefore"),b=v(c,"triples"),S=h.charAt(g+1)==a,E=r.listSelections(),C=g%2==0,_,T=0;T<E.length;T++){var w=E[T],O=w.head,I,k=r.getRange(O,x(O.line,O.ch+1));if(C&&!w.empty())I="surround";else if((S||!C)&&k==a)S&&l(r,O)?I="both":b.indexOf(a)>=0&&r.getRange(O,x(O.line,O.ch+3))==a+a+a?I="skipThree":I="skip";else if(S&&O.ch>1&&b.indexOf(a)>=0&&r.getRange(x(O.line,O.ch-2),O)==a+a){if(O.ch>2&&/\bstring/.test(r.getTokenTypeAt(x(O.line,O.ch-2))))return y.Pass;I="addFour"}else if(S){var M=O.ch==0?" ":r.getRange(x(O.line,O.ch-1),O);if(!y.isWordChar(k)&&M!=a&&!y.isWordChar(M))I="both";else return y.Pass}else if(C&&(k.length===0||/\s/.test(k)||A.indexOf(k)>-1))I="both";else return y.Pass;if(!_)_=I;else if(_!=I)return y.Pass}var j=g%2?h.charAt(g-1):a,P=g%2?a:h.charAt(g+1);r.operation(function(){if(_=="skip")r.execCommand("goCharRight");else if(_=="skipThree")for(var X=0;X<3;X++)r.execCommand("goCharRight");else if(_=="surround"){for(var F=r.getSelections(),X=0;X<F.length;X++)F[X]=j+F[X]+P;r.replaceSelections(F,"around"),F=r.listSelections().slice();for(var X=0;X<F.length;X++)F[X]=t(F[X]);r.setSelections(F)}else _=="both"?(r.replaceSelection(j+P,null),r.triggerElectric(j+P),r.execCommand("goCharLeft")):_=="addFour"&&(r.replaceSelection(j+j+j+j,"before"),r.execCommand("goCharRight"))})}function e(r,a){var c=r.getRange(x(a.line,a.ch-1),x(a.line,a.ch+1));return c.length==2?c:null}function l(r,a){var c=r.getTokenAt(x(a.line,a.ch+1));return/\bstring/.test(c.type)&&c.start==a.ch&&(a.ch==0||!/\bstring/.test(r.getTokenTypeAt(a)))}})},ELcG:function(R,D,n){(function(y,f){R.exports=D=f(n("Ib8C"))})(this,function(y){/** @preserve
|
|
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
|
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
*/return function(f){var x=y,v=x.lib,m=v.WordArray,p=v.Hasher,d=x.algo,u=m.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=m.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),i=m.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),t=m.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),o=m.create([0,1518500249,1859775393,2400959708,2840853838]),e=m.create([1352829926,1548603684,1836072691,2053994217,0]),l=d.RIPEMD160=p.extend({_doReset:function(){this._hash=m.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(S,E){for(var C=0;C<16;C++){var _=E+C,T=S[_];S[_]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}var w=this._hash.words,O=o.words,I=e.words,k=u.words,M=s.words,j=i.words,P=t.words,X,F,U,K,z,V,Q,G,te,q;V=X=w[0],Q=F=w[1],G=U=w[2],te=K=w[3],q=z=w[4];for(var se,C=0;C<80;C+=1)se=X+S[E+k[C]]|0,C<16?se+=r(F,U,K)+O[0]:C<32?se+=a(F,U,K)+O[1]:C<48?se+=c(F,U,K)+O[2]:C<64?se+=h(F,U,K)+O[3]:se+=g(F,U,K)+O[4],se=se|0,se=A(se,j[C]),se=se+z|0,X=z,z=K,K=A(U,10),U=F,F=se,se=V+S[E+M[C]]|0,C<16?se+=g(Q,G,te)+I[0]:C<32?se+=h(Q,G,te)+I[1]:C<48?se+=c(Q,G,te)+I[2]:C<64?se+=a(Q,G,te)+I[3]:se+=r(Q,G,te)+I[4],se=se|0,se=A(se,P[C]),se=se+q|0,V=q,q=te,te=A(G,10),G=Q,Q=se;se=w[1]+U+te|0,w[1]=w[2]+K+q|0,w[2]=w[3]+z+V|0,w[3]=w[4]+X+Q|0,w[4]=w[0]+F+G|0,w[0]=se},_doFinalize:function(){var S=this._data,E=S.words,C=this._nDataBytes*8,_=S.sigBytes*8;E[_>>>5]|=128<<24-_%32,E[(_+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,S.sigBytes=(E.length+1)*4,this._process();for(var T=this._hash,w=T.words,O=0;O<5;O++){var I=w[O];w[O]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return T},clone:function(){var S=p.clone.call(this);return S._hash=this._hash.clone(),S}});function r(b,S,E){return b^S^E}function a(b,S,E){return b&S|~b&E}function c(b,S,E){return(b|~S)^E}function h(b,S,E){return b&E|S&~E}function g(b,S,E){return b^(S|~E)}function A(b,S){return b<<S|b>>>32-S}x.RIPEMD160=p._createHelper(l),x.HmacRIPEMD160=p._createHmacHelper(l)}(Math),y.RIPEMD160})},EMyp:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("mFDi"),v=n("K4ya"),m=n("qJCg"),p=n("iLNv"),d=n("vZ6x"),u=["inBrush","outOfBrush"],s="__ecBrushSelect",i="__ecInBrushSelectEvent",t=y.PRIORITY.VISUAL.BRUSH;y.registerLayout(t,function(b,S,E){b.eachComponent({mainType:"brush"},function(C){E&&E.type==="takeGlobalCursor"&&C.setBrushOption(E.key==="brush"?E.brushOption:{brushType:!1})}),o(b)});function o(b){b.eachComponent({mainType:"brush"},function(S){var E=S.brushTargetManager=new d(S.option,b);E.setInputRanges(S.areas,b)})}y.registerVisual(t,function(b,S,E){var C=[],_,T;b.eachComponent({mainType:"brush"},function(w,O){var I={brushId:w.id,brushIndex:O,brushName:w.name,areas:f.clone(w.areas),selected:[]};C.push(I);var k=w.option,M=k.brushLink,j=[],P=[],X=[],F=0;O||(_=k.throttleType,T=k.throttleDelay);var U=f.map(w.areas,function(te){return h(f.defaults({boundingRect:g[te.brushType](te)},te))}),K=v.createVisualMappings(w.option,u,function(te){te.mappingMethod="fixed"});f.isArray(M)&&f.each(M,function(te){j[te]=1});function z(te){return M==="all"||j[te]}function V(te){return!!te.length}b.eachSeries(function(te,q){var se=X[q]=[];te.subType==="parallel"?Q(te,q,se):G(te,q,se)});function Q(te,q){var se=te.coordinateSystem;F|=se.hasAxisBrushed(),z(q)&&se.eachActiveState(te.getData(),function(re,xe){re==="active"&&(P[xe]=1)})}function G(te,q,se){var re=a(te);if(!re||c(w,q))return;if(f.each(U,function(Oe){re[Oe.brushType]&&w.brushTargetManager.controlSeries(Oe,te,b)&&se.push(Oe),F|=V(se)}),z(q)&&V(se)){var xe=te.getData();xe.each(function(Oe){r(re,se,xe,Oe)&&(P[Oe]=1)})}}b.eachSeries(function(te,q){var se={seriesId:te.id,seriesIndex:q,seriesName:te.name,dataIndex:[]};I.selected.push(se);var re=a(te),xe=X[q],Oe=te.getData(),Me=z(q)?function(Qe){return P[Qe]?(se.dataIndex.push(Oe.getRawIndex(Qe)),"inBrush"):"outOfBrush"}:function(Qe){return r(re,xe,Oe,Qe)?(se.dataIndex.push(Oe.getRawIndex(Qe)),"inBrush"):"outOfBrush"};(z(q)?F:V(xe))&&v.applyVisual(u,K,Oe,Me)})}),e(S,_,T,C,E)});function e(b,S,E,C,_){if(!_)return;var T=b.getZr();if(T[i])return;T[s]||(T[s]=l);var w=p.createOrUpdate(T,s,E,S);w(b,C)}function l(b,S){if(!b.isDisposed()){var E=b.getZr();E[i]=!0,b.dispatchAction({type:"brushSelect",batch:S}),E[i]=!1}}function r(b,S,E,C){for(var _=0,T=S.length;_<T;_++){var w=S[_];if(b[w.brushType](C,E,w.selectors,w))return!0}}function a(b){var S=b.brushSelector;if(f.isString(S)){var E=[];return f.each(m,function(_,T){E[T]=function(w,O,I,k){var M=O.getItemLayout(w);return _[S](M,I,k)}}),E}else if(f.isFunction(S)){var C={};return f.each(m,function(_,T){C[T]=S}),C}return S}function c(b,S){var E=b.option.seriesIndex;return E!=null&&E!=="all"&&(f.isArray(E)?f.indexOf(E,S)<0:S!==E)}function h(b){var S=b.selectors={};return f.each(m[b.brushType],function(E,C){S[C]=function(_){return E(_,S,b)}}),b}var g={lineX:f.noop,lineY:f.noop,rect:function(b){return A(b.range)},polygon:function(b){for(var S,E=b.range,C=0,_=E.length;C<_;C++){S=S||[[Infinity,-Infinity],[Infinity,-Infinity]];var T=E[C];T[0]<S[0][0]&&(S[0][0]=T[0]),T[0]>S[0][1]&&(S[0][1]=T[0]),T[1]<S[1][0]&&(S[1][0]=T[1]),T[1]>S[1][1]&&(S[1][1]=T[1])}return S&&A(S)}};function A(b){return new x(b[0][0],b[1][0],b[0][1]-b[0][0],b[1][1]-b[1][0])}D.layoutCovers=o},ERHi:function(R,D,n){var y=n("ProS");n("Z6js"),n("R4Th");var f=n("f5Yq"),x=n("h8O9");y.registerVisual(f("effectScatter","circle")),y.registerLayout(x("effectScatter"))},ETIr:function(R,D,n){(function(y,f){R.exports=D=f(n("Ib8C"))})(this,function(y){return function(){var f=y,x=f.lib,v=x.WordArray,m=f.enc,p=m.Base64={stringify:function(s){var i=s.words,t=s.sigBytes,o=this._map;s.clamp();for(var e=[],l=0;l<t;l+=3)for(var r=i[l>>>2]>>>24-l%4*8&255,a=i[l+1>>>2]>>>24-(l+1)%4*8&255,c=i[l+2>>>2]>>>24-(l+2)%4*8&255,h=r<<16|a<<8|c,g=0;g<4&&l+g*.75<t;g++)e.push(o.charAt(h>>>6*(3-g)&63));var A=o.charAt(64);if(A)for(;e.length%4;)e.push(A);return e.join("")},parse:function(s){var i=s.length,t=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var e=0;e<t.length;e++)o[t.charCodeAt(e)]=e}var l=t.charAt(64);if(l){var r=s.indexOf(l);r!==-1&&(i=r)}return d(s,i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function d(u,s,i){for(var t=[],o=0,e=0;e<s;e++)if(e%4){var l=i[u.charCodeAt(e-1)]<<e%4*2,r=i[u.charCodeAt(e)]>>>6-e%4*2,a=l|r;t[o>>>2]|=a<<24-o%4*8,o++}return v.create(t,o)}}(),y.enc.Base64})},EXcs:function(R,D,n){"use strict";var y=function(){return{height:0,opacity:0}},f=function(d){return{height:d.scrollHeight,opacity:1}},x=function(d){return{height:d.offsetHeight}},v=function(d,u){return u.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:y,onEnterStart:y,onAppearActive:f,onEnterActive:f,onLeaveStart:x,onLeaveActive:y,onAppearEnd:v,onEnterEnd:v,onLeaveEnd:v,motionDeadline:500};D.a=m},EpBk:function(R,D){function n(y){var f=typeof y;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?y!=="__proto__":y===null}R.exports=n},Ez2D:function(R,D,n){var y=n("bYtY"),f=n("4NO4");function x(v,m){var p=[],d=v.seriesIndex,u;if(d==null||!(u=m.getSeriesByIndex(d)))return{point:[]};var s=u.getData(),i=f.queryDataIndex(s,v);if(i==null||i<0||y.isArray(i))return{point:[]};var t=s.getItemGraphicEl(i),o=u.coordinateSystem;if(u.getTooltipPosition)p=u.getTooltipPosition(i)||[];else if(o&&o.dataToPoint)p=o.dataToPoint(s.getValues(y.map(o.dimensions,function(l){return s.mapDimension(l)}),i,!0))||[];else if(t){var e=t.getBoundingRect().clone();e.applyTransform(t.transform),p=[e.x+e.width/2,e.y+e.height/2]}return{point:p,el:t}}R.exports=x},"F+F2":function(R,D,n){(function(y,f){R.exports=D=f(n("Ib8C"))})(this,function(y){return function(){if(typeof ArrayBuffer!="function")return;var f=y,x=f.lib,v=x.WordArray,m=v.init,p=v.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var u=d.byteLength,s=[],i=0;i<u;i++)s[i>>>2]|=d[i]<<24-i%4*8;m.call(this,s,u)}else m.apply(this,arguments)};p.prototype=v}(),y.lib.WordArray})},F0hE:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("ca2m"),v=n("Qxkt"),m=n("ICMv"),p=x.valueAxis;function d(i,t){return f.defaults({show:t},i)}var u=y.extendComponentModel({type:"radar",optionUpdated:function(){var i=this.get("boundaryGap"),t=this.get("splitNumber"),o=this.get("scale"),e=this.get("axisLine"),l=this.get("axisTick"),r=this.get("axisType"),a=this.get("axisLabel"),c=this.get("name"),h=this.get("name.show"),g=this.get("name.formatter"),A=this.get("nameGap"),b=this.get("triggerEvent"),S=f.map(this.get("indicator")||[],function(E){E.max!=null&&E.max>0&&!E.min?E.min=0:E.min!=null&&E.min<0&&!E.max&&(E.max=0);var C=c;if(E.color!=null&&(C=f.defaults({color:E.color},c)),E=f.merge(f.clone(E),{boundaryGap:i,splitNumber:t,scale:o,axisLine:e,axisTick:l,axisType:r,axisLabel:a,name:E.text,nameLocation:"end",nameGap:A,nameTextStyle:C,triggerEvent:b},!1),h||(E.name=""),typeof g=="string"){var _=E.name;E.name=g.replace("{value}",_!=null?_:"")}else typeof g=="function"&&(E.name=g(E.name,E));var T=f.extend(new v(E,null,this.ecModel),m);return T.mainType="radar",T.componentIndex=this.componentIndex,T},this);this.getIndicatorModels=function(){return S}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:f.merge({lineStyle:{color:"#bbb"}},p.axisLine),axisLabel:d(p.axisLabel,!1),axisTick:d(p.axisTick,!1),axisType:"interval",splitLine:d(p.splitLine,!0),splitArea:d(p.splitArea,!0),indicator:[]}}),s=u;R.exports=s},F5Ls:function(R,D){var n={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function y(f,x){if(f==="china"){var v=n[x.name];if(v){var m=x.center;m[0]+=v[0]/10.5,m[1]+=-v[1]/(10.5/.75)}}}R.exports=y},F7hV:function(R,D,n){var y=n("MBQ8"),f=y.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var x=this.get("progressiveThreshold"),v=this.get("largeThreshold");return v>x&&(x=v),x},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});R.exports=f},F9bG:function(R,D,n){var y=n("bYtY"),f=n("ItGF"),x=n("4NO4"),v=x.makeInner,m=v(),p=y.each;function d(l,r,a){if(f.node)return;var c=r.getZr();m(c).records||(m(c).records={}),u(c,r);var h=m(c).records[l]||(m(c).records[l]={});h.handler=a}function u(l,r){if(m(l).initialized)return;m(l).initialized=!0,a("click",y.curry(t,"click")),a("mousemove",y.curry(t,"mousemove")),a("globalout",i);function a(c,h){l.on(c,function(g){var A=o(r);p(m(l).records,function(b){b&&h(b,g,A.dispatchAction)}),s(A.pendings,r)})}}function s(l,r){var a=l.showTip.length,c=l.hideTip.length,h;a?h=l.showTip[a-1]:c&&(h=l.hideTip[c-1]),h&&(h.dispatchAction=null,r.dispatchAction(h))}function i(l,r,a){l.handler("leave",null,a)}function t(l,r,a,c){r.handler(l,a,c)}function o(l){var r={showTip:[],hideTip:[]},a=function(c){var h=r[c.type];h?h.push(c):(c.dispatchAction=a,l.dispatchAction(c))};return{dispatchAction:a,pendings:r}}function e(l,r){if(f.node)return;var a=r.getZr(),c=(m(a).records||{})[l];c&&(m(a).records[l]=null)}D.register=d,D.unregister=e},FBjb:function(R,D,n){var y=n("bYtY"),f=n("oVpE"),x=f.createSymbol,v=n("IwbS"),m=n("OELB"),p=m.parsePercent,d=n("x3X8"),u=d.getDefaultLabel;function s(A,b,S){v.Group.call(this),this.updateData(A,b,S)}var i=s.prototype,t=s.getSymbolSize=function(A,b){var S=A.getItemVisual(b,"symbolSize");return S instanceof Array?S.slice():[+S,+S]};function o(A){return[A[0]/2,A[1]/2]}function e(A,b){this.parent.drift(A,b)}i._createSymbol=function(A,b,S,E,C){this.removeAll();var _=b.getItemVisual(S,"color"),T=x(A,-1,-1,2,2,_,C);T.attr({z2:100,culling:!0,scale:o(E)}),T.drift=e,this._symbolType=A,this.add(T)},i.stopSymbolAnimation=function(A){this.childAt(0).stopAnimation(A)},i.getSymbolPath=function(){return this.childAt(0)},i.getScale=function(){return this.childAt(0).scale},i.highlight=function(){this.childAt(0).trigger("emphasis")},i.downplay=function(){this.childAt(0).trigger("normal")},i.setZ=function(A,b){var S=this.childAt(0);S.zlevel=A,S.z=b},i.setDraggable=function(A){var b=this.childAt(0);b.draggable=A,b.cursor=A?"move":b.cursor},i.updateData=function(A,b,S){this.silent=!1;var E=A.getItemVisual(b,"symbol")||"circle",C=A.hostModel,_=t(A,b),T=E!==this._symbolType;if(T){var w=A.getItemVisual(b,"symbolKeepAspect");this._createSymbol(E,A,b,_,w)}else{var O=this.childAt(0);O.silent=!1,v.updateProps(O,{scale:o(_)},C,b)}if(this._updateCommon(A,b,_,S),T){var O=this.childAt(0),I=S&&S.fadeIn,k={scale:O.scale.slice()};I&&(k.style={opacity:O.style.opacity}),O.scale=[0,0],I&&(O.style.opacity=0),v.initProps(O,k,C,b)}this._seriesModel=C};var l=["itemStyle"],r=["emphasis","itemStyle"],a=["label"],c=["emphasis","label"];i._updateCommon=function(A,b,S,E){var C=this.childAt(0),_=A.hostModel,T=A.getItemVisual(b,"color");C.type!=="image"?C.useStyle({strokeNoScale:!0}):C.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var w=E&&E.itemStyle,O=E&&E.hoverItemStyle,I=E&&E.symbolOffset,k=E&&E.labelModel,M=E&&E.hoverLabelModel,j=E&&E.hoverAnimation,P=E&&E.cursorStyle;if(!E||A.hasItemOption){var X=E&&E.itemModel?E.itemModel:A.getItemModel(b);w=X.getModel(l).getItemStyle(["color"]),O=X.getModel(r).getItemStyle(),I=X.getShallow("symbolOffset"),k=X.getModel(a),M=X.getModel(c),j=X.getShallow("hoverAnimation"),P=X.getShallow("cursor")}else O=y.extend({},O);var F=C.style,U=A.getItemVisual(b,"symbolRotate");C.attr("rotation",(U||0)*Math.PI/180||0),I&&C.attr("position",[p(I[0],S[0]),p(I[1],S[1])]),P&&C.attr("cursor",P),C.setColor(T,E&&E.symbolInnerColor),C.setStyle(w);var K=A.getItemVisual(b,"opacity");K!=null&&(F.opacity=K);var z=A.getItemVisual(b,"liftZ"),V=C.__z2Origin;z!=null?V==null&&(C.__z2Origin=C.z2,C.z2+=z):V!=null&&(C.z2=V,C.__z2Origin=null);var Q=E&&E.useNameLabel;v.setLabelStyle(F,O,k,M,{labelFetcher:_,labelDataIndex:b,defaultText:G,isRectText:!0,autoColor:T});function G(te,q){return Q?A.getName(te):u(A,te)}C.__symbolOriginalScale=o(S),C.hoverStyle=O,C.highDownOnUpdate=j&&_.isAnimationEnabled()?h:null,v.setHoverStyle(C)};function h(A,b){if(this.incremental||this.useHoverLayer)return;if(b==="emphasis"){var S=this.__symbolOriginalScale,E=S[1]/S[0],C={scale:[Math.max(S[0]*1.1,S[0]+3),Math.max(S[1]*1.1,S[1]+3*E)]};this.animateTo(C,400,"elasticOut")}else b==="normal"&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}i.fadeOut=function(A,b){var S=this.childAt(0);this.silent=S.silent=!0,!(b&&b.keepLabel)&&(S.style.text=null),v.updateProps(S,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,A)},y.inherits(s,v.Group);var g=s;R.exports=g},FGaS:function(R,D,n){var y=n("ProS"),f=n("IwbS"),x=n("bYtY"),v=n("oVpE");function m(d){return x.isArray(d)||(d=[+d,+d]),d}var p=y.extendChartView({type:"radar",render:function(d,u,s){var i=d.coordinateSystem,t=this.group,o=d.getData(),e=this._data;function l(c,h){var g=c.getItemVisual(h,"symbol")||"circle",A=c.getItemVisual(h,"color");if(g==="none")return;var b=m(c.getItemVisual(h,"symbolSize")),S=v.createSymbol(g,-1,-1,2,2,A);return S.attr({style:{strokeNoScale:!0},z2:100,scale:[b[0]/2,b[1]/2]}),S}function r(c,h,g,A,b,S){g.removeAll();for(var E=0;E<h.length-1;E++){var C=l(A,b);C&&(C.__dimIdx=E,c[E]?(C.attr("position",c[E]),f[S?"initProps":"updateProps"](C,{position:h[E]},d,b)):C.attr("position",h[E]),g.add(C))}}function a(c){return x.map(c,function(h){return[i.cx,i.cy]})}o.diff(e).add(function(c){var h=o.getItemLayout(c);if(!h)return;var g=new f.Polygon,A=new f.Polyline,b={shape:{points:h}};g.shape.points=a(h),A.shape.points=a(h),f.initProps(g,b,d,c),f.initProps(A,b,d,c);var S=new f.Group,E=new f.Group;S.add(A),S.add(g),S.add(E),r(A.shape.points,h,E,o,c,!0),o.setItemGraphicEl(c,S)}).update(function(c,h){var g=e.getItemGraphicEl(h),A=g.childAt(0),b=g.childAt(1),S=g.childAt(2),E={shape:{points:o.getItemLayout(c)}};if(!E.shape.points)return;r(A.shape.points,E.shape.points,S,o,c,!1),f.updateProps(A,E,d),f.updateProps(b,E,d),o.setItemGraphicEl(c,g)}).remove(function(c){t.remove(e.getItemGraphicEl(c))}).execute(),o.eachItemGraphicEl(function(c,h){var g=o.getItemModel(h),A=c.childAt(0),b=c.childAt(1),S=c.childAt(2),E=o.getItemVisual(h,"color");t.add(c),A.useStyle(x.defaults(g.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:E})),A.hoverStyle=g.getModel("emphasis.lineStyle").getLineStyle();var C=g.getModel("areaStyle"),_=g.getModel("emphasis.areaStyle"),T=C.isEmpty()&&C.parentModel.isEmpty(),w=_.isEmpty()&&_.parentModel.isEmpty();w=w&&T,b.ignore=T,b.useStyle(x.defaults(C.getAreaStyle(),{fill:E,opacity:.7})),b.hoverStyle=_.getAreaStyle();var O=g.getModel("itemStyle").getItemStyle(["color"]),I=g.getModel("emphasis.itemStyle").getItemStyle(),k=g.getModel("label"),M=g.getModel("emphasis.label");S.eachChild(function(j){j.setStyle(O),j.hoverStyle=x.clone(I);var P=o.get(o.dimensions[j.__dimIdx],h);(P==null||isNaN(P))&&(P=""),f.setLabelStyle(j.style,j.hoverStyle,k,M,{labelFetcher:o.hostModel,labelDataIndex:h,labelDimIndex:j.__dimIdx,defaultText:P,autoColor:E,isRectText:!0})}),c.highDownOnUpdate=function(j,P){b.attr("ignore",P==="emphasis"?w:T)},f.setHoverStyle(c)}),this._data=o},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});R.exports=p},FH2Y:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("ZMnZ"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},FJo9:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("8txm"),v=n.n(x),m=n("MXD1")},FMes:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("/thR"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},FNN5:function(R,D,n){var y=n("bYtY"),f=n("IwbS"),x=n("+rIm"),v=n("Znkb"),m=["axisLine","axisTickLabel","axisName"],p=["splitLine","splitArea","minorSplitLine"],d=v.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(s,i){if(this.group.removeAll(),!s.get("show"))return;var t=s.axis,o=t.polar,e=o.getAngleAxis(),l=t.getTicksCoords(),r=t.getMinorTicksCoords(),a=e.getExtent()[0],c=t.getExtent(),h=u(o,s,a),g=new x(s,h);y.each(m,g.add,g),this.group.add(g.getGroup()),y.each(p,function(A){s.get(A+".show")&&!t.scale.isBlank()&&this["_"+A](s,o,a,c,l,r)},this)},_splitLine:function(s,i,t,o,e){var l=s.getModel("splitLine"),r=l.getModel("lineStyle"),a=r.get("color"),c=0;a=a instanceof Array?a:[a];for(var h=[],g=0;g<e.length;g++){var A=c++%a.length;h[A]=h[A]||[],h[A].push(new f.Circle({shape:{cx:i.cx,cy:i.cy,r:e[g].coord}}))}for(var g=0;g<h.length;g++)this.group.add(f.mergePath(h[g],{style:y.defaults({stroke:a[g%a.length],fill:null},r.getLineStyle()),silent:!0}))},_minorSplitLine:function(s,i,t,o,e,l){if(!l.length)return;for(var r=s.getModel("minorSplitLine"),a=r.getModel("lineStyle"),c=[],h=0;h<l.length;h++)for(var g=0;g<l[h].length;g++)c.push(new f.Circle({shape:{cx:i.cx,cy:i.cy,r:l[h][g].coord}}));this.group.add(f.mergePath(c,{style:y.defaults({fill:null},a.getLineStyle()),silent:!0}))},_splitArea:function(s,i,t,o,e){if(!e.length)return;var l=s.getModel("splitArea"),r=l.getModel("areaStyle"),a=r.get("color"),c=0;a=a instanceof Array?a:[a];for(var h=[],g=e[0].coord,A=1;A<e.length;A++){var b=c++%a.length;h[b]=h[b]||[],h[b].push(new f.Sector({shape:{cx:i.cx,cy:i.cy,r0:g,r:e[A].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),g=e[A].coord}for(var A=0;A<h.length;A++)this.group.add(f.mergePath(h[A],{style:y.defaults({fill:a[A%a.length]},r.getAreaStyle()),silent:!0}))}});function u(s,i,t){return{position:[s.cx,s.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:i.getModel("axisLabel").get("rotate"),z2:1}}R.exports=d},FTAc:function(R,D,n){"use strict";n.d(D,"a",function(){return x});var y=n("q1tI"),f=n.n(y),x=y.createContext(null)},FUi9:function(R,D,n){var y=n("bYtY"),f=n("MwEJ"),x=n("aX7z"),v=n("ICMv"),m=n("Qxkt"),p=n("+TT/"),d=p.getLayoutRect;D.getLayoutRect=p.getLayoutRect;var u=n("7hqr"),s=u.enableDataStack,i=u.isDimensionStacked,t=u.getStackedDimension,o=n("hi0g");D.completeDimensions=o;var e=n("sdST");D.createDimensions=e;var l=n("oVpE");D.createSymbol=l.createSymbol;function r(g){return f(g.getSource(),g)}var a={isDimensionStacked:i,enableDataStack:s,getStackedDimension:t};function c(g,A){var b=A;m.isInstance(A)||(b=new m(A),y.mixin(b,v));var S=x.createScaleByModel(b);return S.setExtent(g[0],g[1]),x.niceScaleExtent(S,b),S}function h(g){y.mixin(g,v)}D.createList=r,D.dataStack=a,D.createScale=c,D.mixinAxisModelCommonMethods=h},"Fa/5":function(R,D,n){var y=n("ProS");n("y2l5"),n("q/+u");var f=n("f5Yq"),x=n("h8O9");n("Ae16"),y.registerVisual(f("scatter","circle")),y.registerLayout(x("scatter"))},FhB9:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};D.default=y},"Fm1+":function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("a7Wl")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="CaretUpOutlined";var i=v.forwardRef(s);D.default=i},Fofx:function(R,D){var n=typeof Float32Array=="undefined"?Array:Float32Array;function y(){var i=new n(6);return f(i),i}function f(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=1,i[4]=0,i[5]=0,i}function x(i,t){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4],i[5]=t[5],i}function v(i,t,o){var e=t[0]*o[0]+t[2]*o[1],l=t[1]*o[0]+t[3]*o[1],r=t[0]*o[2]+t[2]*o[3],a=t[1]*o[2]+t[3]*o[3],c=t[0]*o[4]+t[2]*o[5]+t[4],h=t[1]*o[4]+t[3]*o[5]+t[5];return i[0]=e,i[1]=l,i[2]=r,i[3]=a,i[4]=c,i[5]=h,i}function m(i,t,o){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4]+o[0],i[5]=t[5]+o[1],i}function p(i,t,o){var e=t[0],l=t[2],r=t[4],a=t[1],c=t[3],h=t[5],g=Math.sin(o),A=Math.cos(o);return i[0]=e*A+a*g,i[1]=-e*g+a*A,i[2]=l*A+c*g,i[3]=-l*g+A*c,i[4]=A*r+g*h,i[5]=A*h-g*r,i}function d(i,t,o){var e=o[0],l=o[1];return i[0]=t[0]*e,i[1]=t[1]*l,i[2]=t[2]*e,i[3]=t[3]*l,i[4]=t[4]*e,i[5]=t[5]*l,i}function u(i,t){var o=t[0],e=t[2],l=t[4],r=t[1],a=t[3],c=t[5],h=o*a-r*e;return h?(h=1/h,i[0]=a*h,i[1]=-r*h,i[2]=-e*h,i[3]=o*h,i[4]=(e*c-a*l)*h,i[5]=(r*l-o*c)*h,i):null}function s(i){var t=y();return x(t,i),t}D.create=y,D.identity=f,D.copy=x,D.mul=v,D.translate=m,D.rotate=p,D.scale=d,D.invert=u,D.clone=s},Fv0C:function(R,D,n){"use strict";function y(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(a){return typeof a}:y=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},y(l)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var f=s(n("Lo0S")),x=n("vewr"),v=s(n("8CQX")),m=d(n("mHUz")),p=s(n("GdRQ"));function d(l){return l&&l.__esModule?l:{default:l}}function u(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return u=function(){return l},l}function s(l){if(l&&l.__esModule)return l;if(l===null||y(l)!=="object"&&typeof l!="function")return{default:l};var r=u();if(r&&r.has(l))return r.get(l);var a={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in l)if(Object.prototype.hasOwnProperty.call(l,h)){var g=c?Object.getOwnPropertyDescriptor(l,h):null;g&&(g.get||g.set)?Object.defineProperty(a,h,g):a[h]=l[h]}return a.default=l,r&&r.set(l,a),a}function i(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function t(l,r){for(var a=0;a<r.length;a++){var c=r[a];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(l,c.key,c)}}function o(l,r,a){return r&&t(l.prototype,r),a&&t(l,a),l}var e=function(){function l(r){i(this,l),this._target=r||null,this._keyDownList={},this._pendingKey=null,this._altGrArmed=!1,this._eventHandlers={keyup:this._handleKeyUp.bind(this),keydown:this._handleKeyDown.bind(this),keypress:this._handleKeyPress.bind(this),blur:this._allKeysUp.bind(this),checkalt:this._checkAlt.bind(this)},this.onkeyevent=function(){}}return o(l,[{key:"_sendKeyEvent",value:function(a,c,h){if(h)this._keyDownList[c]=a;else{if(!(c in this._keyDownList))return;delete this._keyDownList[c]}f.Debug("onkeyevent "+(h?"down":"up")+", keysym: "+a,", code: "+c),this.onkeyevent(a,c,h)}},{key:"_getKeyCode",value:function(a){var c=v.getKeycode(a);if(c!=="Unidentified")return c;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 h=parseInt(a.keyIdentifier.substr(2),16),g=String.fromCharCode(h).toUpperCase();return"Platform"+g.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(a){var c=this._getKeyCode(a),h=v.getKeysym(a);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),c==="AltRight"&&a.timeStamp-this._altGrCtrlTime<50?h=m.default.XK_ISO_Level3_Shift:this._sendKeyEvent(m.default.XK_Control_L,"ControlLeft",!0)),c==="Unidentified"){h&&(this._sendKeyEvent(h,c,!0),this._sendKeyEvent(h,c,!1)),(0,x.stopEvent)(a);return}if(p.isMac()||p.isIOS())switch(h){case m.default.XK_Super_L:h=m.default.XK_Alt_L;break;case m.default.XK_Super_R:h=m.default.XK_Super_L;break;case m.default.XK_Alt_L:h=m.default.XK_Mode_switch;break;case m.default.XK_Alt_R:h=m.default.XK_ISO_Level3_Shift;break}if(c in this._keyDownList&&(h=this._keyDownList[c]),(p.isMac()||p.isIOS())&&c==="CapsLock"){this._sendKeyEvent(m.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(m.default.XK_Caps_Lock,"CapsLock",!1),(0,x.stopEvent)(a);return}if(!h&&(!a.key||p.isIE()||p.isEdge())){this._pendingKey=c,setTimeout(this._handleKeyPressTimeout.bind(this),10,a);return}if(this._pendingKey=null,(0,x.stopEvent)(a),c==="ControlLeft"&&p.isWindows()&&!("ControlLeft"in this._keyDownList)){this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),this._altGrCtrlTime=a.timeStamp;return}this._sendKeyEvent(h,c,!0)}},{key:"_handleKeyPress",value:function(a){if((0,x.stopEvent)(a),this._pendingKey===null)return;var c=this._getKeyCode(a),h=v.getKeysym(a);if(c!=="Unidentified"&&c!=this._pendingKey)return;if(c=this._pendingKey,this._pendingKey=null,!h){f.Info("keypress with no keysym:",a);return}this._sendKeyEvent(h,c,!0)}},{key:"_handleKeyPressTimeout",value:function(a){if(this._pendingKey===null)return;var c,h=this._pendingKey;if(this._pendingKey=null,a.keyCode>=48&&a.keyCode<=57)c=a.keyCode;else if(a.keyCode>=65&&a.keyCode<=90){var g=String.fromCharCode(a.keyCode);a.shiftKey?g=g.toUpperCase():g=g.toLowerCase(),c=g.charCodeAt()}else c=0;this._sendKeyEvent(c,h,!0)}},{key:"_handleKeyUp",value:function(a){(0,x.stopEvent)(a);var c=this._getKeyCode(a);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(m.default.XK_Control_L,"ControlLeft",!0)),(p.isMac()||p.isIOS())&&c==="CapsLock"){this._sendKeyEvent(m.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(m.default.XK_Caps_Lock,"CapsLock",!1);return}this._sendKeyEvent(this._keyDownList[c],c,!1),p.isWindows()&&(c==="ShiftLeft"||c==="ShiftRight")&&("ShiftRight"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftRight,"ShiftRight",!1),"ShiftLeft"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftLeft,"ShiftLeft",!1))}},{key:"_handleAltGrTimeout",value:function(){this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(m.default.XK_Control_L,"ControlLeft",!0)}},{key:"_allKeysUp",value:function(){f.Debug(">> Keyboard.allKeysUp");for(var a in this._keyDownList)this._sendKeyEvent(this._keyDownList[a],a,!1);f.Debug("<< Keyboard.allKeysUp")}},{key:"_checkAlt",value:function(a){if(a.skipCheckAlt)return;if(a.altKey)return;var c=this._target,h=this._keyDownList;["AltLeft","AltRight"].forEach(function(g){if(!(g in h))return;var A=new KeyboardEvent("keyup",{key:h[g],code:g});A.skipCheckAlt=!0,c.dispatchEvent(A)})}},{key:"grab",value:function(){if(this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),this._target.addEventListener("keypress",this._eventHandlers.keypress),window.addEventListener("blur",this._eventHandlers.blur),p.isWindows()&&p.isFirefox()){var a=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(c){return document.addEventListener(c,a,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(p.isWindows()&&p.isFirefox()){var a=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(c){return document.removeEventListener(c,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}();D.default=e},FxDU:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=n("QO+J"),f=n("j5sG"),x=typeof ResizeObserver!="undefined"?f.createSensor:y.createSensor;D.createSensor=x},GGyF:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("wgjA")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="LeftOutlined";var i=v.forwardRef(s);D.default=i},GIiI:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="PoweroffOutlined";var d=D.a=f.forwardRef(p)},GMDS:function(R,D,n){var y=n("bYtY"),f=n("4NgU"),x=n("jkPA"),v=f.prototype,m=f.extend({type:"ordinal",init:function(d,u){(!d||y.isArray(d))&&(d=new x({categories:d})),this._ordinalMeta=d,this._extent=u||[0,d.categories.length-1]},parse:function(d){return typeof d=="string"?this._ordinalMeta.getOrdinal(d):Math.round(d)},contain:function(d){return d=this.parse(d),v.contain.call(this,d)&&this._ordinalMeta.categories[d]!=null},normalize:function(d){return v.normalize.call(this,this.parse(d))},scale:function(d){return Math.round(v.scale.call(this,d))},getTicks:function(){for(var d=[],u=this._extent,s=u[0];s<=u[1];)d.push(s),s++;return d},getLabel:function(d){if(!this.isBlank())return this._ordinalMeta.categories[d]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(d,u){this.unionExtent(d.getApproximateExtent(u))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:y.noop,niceExtent:y.noop});m.create=function(){return new m};var p=m;R.exports=p},GQ8N:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.toUnsigned32bit=y,D.toSigned32bit=f;function y(x){return x>>>0}function f(x){return x|0}},GRuw:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("lPiR"))})(this,function(y){return function(){var f=y,x=f.lib,v=x.WordArray,m=f.algo,p=m.SHA256,d=m.SHA224=p.extend({_doReset:function(){this._hash=new v.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var s=p._doFinalize.call(this);return s.sigBytes-=4,s}});f.SHA224=p._createHelper(d),f.HmacSHA224=p._createHmacHelper(d)}(),y.SHA224})},GUcZ:function(R,D,n){"use strict";var y=n("fWQN"),f=n("mtLc"),x=function(){function $t(){Object(y.a)(this,$t)}return Object(f.a)($t,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(De,ke){return De.__proto__=ke,De},Object.assign=Object.assign||function(De){if(De==null)throw new TypeError("Cannot convert undefined or null to object");for(var ke=Object(De),Pe=1;Pe<arguments.length;Pe++){var tt=arguments[Pe];if(tt!=null)for(var yt in tt)tt.hasOwnProperty(yt)&&(ke[yt]=tt[yt])}return ke},typeof self.Promise!="function"&&n("E2g8").polyfill()}}]),$t}();x.install();var v=x,m=n("+qE3"),p=n.n(m),d=function(){function $t(){Object(y.a)(this,$t)}return Object(f.a)($t,null,[{key:"e",value:function(De,ke){(!De||$t.FORCE_GLOBAL_TAG)&&(De=$t.GLOBAL_TAG);var Pe="[".concat(De,"] > ").concat(ke);if($t.ENABLE_CALLBACK&&$t.emitter.emit("log","error",Pe),!$t.ENABLE_ERROR)return;console.error?console.error(Pe):console.warn?console.warn(Pe):console.log(Pe)}},{key:"i",value:function(De,ke){(!De||$t.FORCE_GLOBAL_TAG)&&(De=$t.GLOBAL_TAG);var Pe="[".concat(De,"] > ").concat(ke);if($t.ENABLE_CALLBACK&&$t.emitter.emit("log","info",Pe),!$t.ENABLE_INFO)return;console.info?console.info(Pe):console.log(Pe)}},{key:"w",value:function(De,ke){(!De||$t.FORCE_GLOBAL_TAG)&&(De=$t.GLOBAL_TAG);var Pe="[".concat(De,"] > ").concat(ke);if($t.ENABLE_CALLBACK&&$t.emitter.emit("log","warn",Pe),!$t.ENABLE_WARN)return;console.warn?console.warn(Pe):console.log(Pe)}},{key:"d",value:function(De,ke){(!De||$t.FORCE_GLOBAL_TAG)&&(De=$t.GLOBAL_TAG);var Pe="[".concat(De,"] > ").concat(ke);if($t.ENABLE_CALLBACK&&$t.emitter.emit("log","debug",Pe),!$t.ENABLE_DEBUG)return;console.debug?console.debug(Pe):console.log(Pe)}},{key:"v",value:function(De,ke){(!De||$t.FORCE_GLOBAL_TAG)&&(De=$t.GLOBAL_TAG);var Pe="[".concat(De,"] > ").concat(ke);if($t.ENABLE_CALLBACK&&$t.emitter.emit("log","verbose",Pe),!$t.ENABLE_VERBOSE)return;console.log(Pe)}}]),$t}();d.GLOBAL_TAG="flv.js",d.FORCE_GLOBAL_TAG=!1,d.ENABLE_ERROR=!0,d.ENABLE_INFO=!0,d.ENABLE_WARN=!0,d.ENABLE_DEBUG=!0,d.ENABLE_VERBOSE=!0,d.ENABLE_CALLBACK=!1,d.emitter=new p.a;var u=d,s=function(){function $t(){Object(y.a)(this,$t),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return Object(f.a)($t,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(De){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=De,this._totalBytes+=De):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=De,this._totalBytes+=De):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=De,this._totalBytes+=De,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var De=(this._now()-this._lastCheckpoint)/1e3;return De==0&&(De=1),this._intervalBytes/De/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var De=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/De/1024}}]),$t}(),i=s,t=n("yKVA"),o=n("879j"),e=function(){function $t(xt){Object(y.a)(this,$t),this._message=xt}return Object(f.a)($t,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),$t}(),l=function($t){Object(t.a)(De,$t);var xt=Object(o.a)(De);function De(ke){return Object(y.a)(this,De),xt.call(this,ke)}return Object(f.a)(De,[{key:"name",get:function(){return"IllegalStateException"}}]),De}(e),r=function($t){Object(t.a)(De,$t);var xt=Object(o.a)(De);function De(ke){return Object(y.a)(this,De),xt.call(this,ke)}return Object(f.a)(De,[{key:"name",get:function(){return"InvalidArgumentException"}}]),De}(e),a=function($t){Object(t.a)(De,$t);var xt=Object(o.a)(De);function De(ke){return Object(y.a)(this,De),xt.call(this,ke)}return Object(f.a)(De,[{key:"name",get:function(){return"NotImplementedException"}}]),De}(e),c={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},h={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},g=function(){function $t(xt){Object(y.a)(this,$t),this._type=xt||"undefined",this._status=c.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(f.a)($t,[{key:"destroy",value:function(){this._status=c.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===c.kConnecting||this._status===c.kBuffering}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(De){this._onContentLengthKnown=De}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(De){this._onURLRedirect=De}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(De){this._onDataArrival=De}},{key:"onError",get:function(){return this._onError},set:function(De){this._onError=De}},{key:"onComplete",get:function(){return this._onComplete},set:function(De){this._onComplete=De}},{key:"open",value:function(De,ke){throw new a("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new a("Unimplemented abstract function!")}}]),$t}(),A=n("w4Tj"),b=n("oZsa"),S={};function E(){var $t=self.navigator.userAgent.toLowerCase(),xt=/(edge)\/([\w.]+)/.exec($t)||/(opr)[\/]([\w.]+)/.exec($t)||/(chrome)[ \/]([\w.]+)/.exec($t)||/(iemobile)[\/]([\w.]+)/.exec($t)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec($t)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec($t)||/(webkit)[ \/]([\w.]+)/.exec($t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec($t)||/(msie) ([\w.]+)/.exec($t)||$t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec($t)||$t.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec($t)||[],De=/(ipad)/.exec($t)||/(ipod)/.exec($t)||/(windows phone)/.exec($t)||/(iphone)/.exec($t)||/(kindle)/.exec($t)||/(android)/.exec($t)||/(windows)/.exec($t)||/(mac)/.exec($t)||/(linux)/.exec($t)||/(cros)/.exec($t)||[],ke={browser:xt[5]||xt[3]||xt[1]||"",version:xt[2]||xt[4]||"0",majorVersion:xt[4]||xt[2]||"0",platform:De[0]||""},Pe={};if(ke.browser){Pe[ke.browser]=!0;var tt=ke.majorVersion.split(".");Pe.version={major:parseInt(ke.majorVersion,10),string:ke.version},tt.length>1&&(Pe.version.minor=parseInt(tt[1],10)),tt.length>2&&(Pe.version.build=parseInt(tt[2],10))}if(ke.platform&&(Pe[ke.platform]=!0),(Pe.chrome||Pe.opr||Pe.safari)&&(Pe.webkit=!0),Pe.rv||Pe.iemobile){Pe.rv&&delete Pe.rv;var yt="msie";ke.browser=yt,Pe[yt]=!0}if(Pe.edge){delete Pe.edge;var Et="msedge";ke.browser=Et,Pe[Et]=!0}if(Pe.opr){var Yt="opera";ke.browser=Yt,Pe[Yt]=!0}if(Pe.safari&&Pe.android){var Rr="android";ke.browser=Rr,Pe[Rr]=!0}Pe.name=ke.browser,Pe.platform=ke.platform;for(var zr in S)S.hasOwnProperty(zr)&&delete S[zr];Object.assign(S,Pe)}E();var C=S,_=function($t){Object(t.a)(De,$t);var xt=Object(o.a)(De);function De(ke,Pe){var tt;return Object(y.a)(this,De),tt=xt.call(this,"fetch-stream-loader"),tt.TAG="FetchStreamLoader",tt._seekHandler=ke,tt._config=Pe,tt._needStash=!0,tt._requestAbort=!1,tt._contentLength=null,tt._receivedLength=0,tt}return Object(f.a)(De,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Object(A.a)(Object(b.a)(De.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe,tt){var yt=this;this._dataSource=Pe,this._range=tt;var Et=Pe.url;this._config.reuseRedirectedURL&&Pe.redirectedURL!=null&&(Et=Pe.redirectedURL);var Yt=this._seekHandler.getConfig(Et,tt),Rr=new self.Headers;if(typeof Yt.headers=="object"){var zr=Yt.headers;for(var hn in zr)zr.hasOwnProperty(hn)&&Rr.append(hn,zr[hn])}var jt={method:"GET",headers:Rr,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var vt in this._config.headers)Rr.append(vt,this._config.headers[vt]);Pe.cors===!1&&(jt.mode="same-origin"),Pe.withCredentials&&(jt.credentials="include"),Pe.referrerPolicy&&(jt.referrerPolicy=Pe.referrerPolicy),this._status=c.kConnecting,self.fetch(Yt.url,jt).then(function(bt){if(yt._requestAbort){yt._requestAbort=!1,yt._status=c.kIdle;return}if(bt.ok&&bt.status>=200&&bt.status<=299){if(bt.url!==Yt.url&&yt._onURLRedirect){var cr=yt._seekHandler.removeURLParameters(bt.url);yt._onURLRedirect(cr)}var Qt=bt.headers.get("Content-Length");return Qt!=null&&(yt._contentLength=parseInt(Qt),yt._contentLength!==0&&(yt._onContentLengthKnown&&yt._onContentLengthKnown(yt._contentLength))),yt._pump.call(yt,bt.body.getReader())}else if(yt._status=c.kError,yt._onError)yt._onError(h.HTTP_STATUS_CODE_INVALID,{code:bt.status,msg:bt.statusText});else throw new e("FetchStreamLoader: Http code invalid, "+bt.status+" "+bt.statusText)}).catch(function(bt){if(yt._status=c.kError,yt._onError)yt._onError(h.EXCEPTION,{code:-1,msg:bt.message});else throw bt})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(Pe){var tt=this;return Pe.read().then(function(yt){if(yt.done)if(tt._contentLength!==null&&tt._receivedLength<tt._contentLength){tt._status=c.kError;var Et=h.EARLY_EOF,Yt={code:-1,msg:"Fetch stream meet Early-EOF"};if(tt._onError)tt._onError(Et,Yt);else throw new e(Yt.msg)}else tt._status=c.kComplete,tt._onComplete&&tt._onComplete(tt._range.from,tt._range.from+tt._receivedLength-1);else{if(tt._requestAbort===!0)return tt._requestAbort=!1,tt._status=c.kComplete,Pe.cancel();tt._status=c.kBuffering;var Rr=yt.value.buffer,zr=tt._range.from+tt._receivedLength;tt._receivedLength+=Rr.byteLength,tt._onDataArrival&&tt._onDataArrival(Rr,zr,tt._receivedLength),tt._pump(Pe)}}).catch(function(yt){if(yt.code===11&&C.msedge)return;tt._status=c.kError;var Et=0,Yt=null;if((yt.code===19||yt.message==="network error")&&(tt._contentLength===null||tt._contentLength!==null&&tt._receivedLength<tt._contentLength)?(Et=h.EARLY_EOF,Yt={code:yt.code,msg:"Fetch stream meet Early-EOF"}):(Et=h.EXCEPTION,Yt={code:yt.code,msg:yt.message}),tt._onError)tt._onError(Et,Yt);else throw new e(Yt.msg)})}}],[{key:"isSupported",value:function(){try{var Pe=C.msedge&&C.version.minor>=15048,tt=C.msedge?Pe:!0;return self.fetch&&self.ReadableStream&&tt}catch(yt){return!1}}}]),De}(g),T=_,w=function($t){Object(t.a)(De,$t);var xt=Object(o.a)(De);function De(ke,Pe){var tt;return Object(y.a)(this,De),tt=xt.call(this,"xhr-moz-chunked-loader"),tt.TAG="MozChunkedLoader",tt._seekHandler=ke,tt._config=Pe,tt._needStash=!0,tt._xhr=null,tt._requestAbort=!1,tt._contentLength=null,tt._receivedLength=0,tt}return Object(f.a)(De,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),Object(A.a)(Object(b.a)(De.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe,tt){this._dataSource=Pe,this._range=tt;var yt=Pe.url;this._config.reuseRedirectedURL&&Pe.redirectedURL!=null&&(yt=Pe.redirectedURL);var Et=this._seekHandler.getConfig(yt,tt);this._requestURL=Et.url;var Yt=this._xhr=new XMLHttpRequest;if(Yt.open("GET",Et.url,!0),Yt.responseType="moz-chunked-arraybuffer",Yt.onreadystatechange=this._onReadyStateChange.bind(this),Yt.onprogress=this._onProgress.bind(this),Yt.onloadend=this._onLoadEnd.bind(this),Yt.onerror=this._onXhrError.bind(this),Pe.withCredentials&&(Yt.withCredentials=!0),typeof Et.headers=="object"){var Rr=Et.headers;for(var zr in Rr)Rr.hasOwnProperty(zr)&&Yt.setRequestHeader(zr,Rr[zr])}if(typeof this._config.headers=="object"){var hn=this._config.headers;for(var jt in hn)hn.hasOwnProperty(jt)&&Yt.setRequestHeader(jt,hn[jt])}this._status=c.kConnecting,Yt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=c.kComplete}},{key:"_onReadyStateChange",value:function(Pe){var tt=Pe.target;if(tt.readyState===2){if(tt.responseURL!=null&&tt.responseURL!==this._requestURL&&this._onURLRedirect){var yt=this._seekHandler.removeURLParameters(tt.responseURL);this._onURLRedirect(yt)}if(tt.status!==0&&(tt.status<200||tt.status>299))if(this._status=c.kError,this._onError)this._onError(h.HTTP_STATUS_CODE_INVALID,{code:tt.status,msg:tt.statusText});else throw new e("MozChunkedLoader: Http code invalid, "+tt.status+" "+tt.statusText);else this._status=c.kBuffering}}},{key:"_onProgress",value:function(Pe){if(this._status===c.kError)return;this._contentLength===null&&(Pe.total!==null&&Pe.total!==0&&(this._contentLength=Pe.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var tt=Pe.target.response,yt=this._range.from+this._receivedLength;this._receivedLength+=tt.byteLength,this._onDataArrival&&this._onDataArrival(tt,yt,this._receivedLength)}},{key:"_onLoadEnd",value:function(Pe){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===c.kError)return;this._status=c.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(Pe){this._status=c.kError;var tt=0,yt=null;if(this._contentLength&&Pe.loaded<this._contentLength?(tt=h.EARLY_EOF,yt={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(tt=h.EXCEPTION,yt={code:-1,msg:Pe.constructor.name+" "+Pe.type}),this._onError)this._onError(tt,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(tt){return u.w("MozChunkedLoader",tt.message),!1}}}]),De}(g),O=w,I=function($t){Object(t.a)(De,$t);var xt=Object(o.a)(De);function De(ke,Pe){var tt;return Object(y.a)(this,De),tt=xt.call(this,"xhr-msstream-loader"),tt.TAG="MSStreamLoader",tt._seekHandler=ke,tt._config=Pe,tt._needStash=!0,tt._xhr=null,tt._reader=null,tt._totalRange=null,tt._currentRange=null,tt._currentRequestURL=null,tt._currentRedirectedURL=null,tt._contentLength=null,tt._receivedLength=0,tt._bufferLimit=16*1024*1024,tt._lastTimeBufferSize=0,tt._isReconnecting=!1,tt}return Object(f.a)(De,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),Object(A.a)(Object(b.a)(De.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe,tt){this._internalOpen(Pe,tt,!1)}},{key:"_internalOpen",value:function(Pe,tt,yt){this._dataSource=Pe,yt?this._currentRange=tt:this._totalRange=tt;var Et=Pe.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Et=this._currentRedirectedURL:Pe.redirectedURL!=null&&(Et=Pe.redirectedURL));var Yt=this._seekHandler.getConfig(Et,tt);this._currentRequestURL=Yt.url;var Rr=this._reader=new self.MSStreamReader;Rr.onprogress=this._msrOnProgress.bind(this),Rr.onload=this._msrOnLoad.bind(this),Rr.onerror=this._msrOnError.bind(this);var zr=this._xhr=new XMLHttpRequest;if(zr.open("GET",Yt.url,!0),zr.responseType="ms-stream",zr.onreadystatechange=this._xhrOnReadyStateChange.bind(this),zr.onerror=this._xhrOnError.bind(this),Pe.withCredentials&&(zr.withCredentials=!0),typeof Yt.headers=="object"){var hn=Yt.headers;for(var jt in hn)hn.hasOwnProperty(jt)&&zr.setRequestHeader(jt,hn[jt])}if(typeof this._config.headers=="object"){var vt=this._config.headers;for(var bt in vt)vt.hasOwnProperty(bt)&&zr.setRequestHeader(bt,vt[bt])}this._isReconnecting?this._isReconnecting=!1:this._status=c.kConnecting,zr.send()}},{key:"abort",value:function(){this._internalAbort(),this._status=c.kComplete}},{key:"_internalAbort",value:function(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}},{key:"_xhrOnReadyStateChange",value:function(Pe){var tt=Pe.target;if(tt.readyState===2)if(tt.status>=200&&tt.status<=299){if(this._status=c.kBuffering,tt.responseURL!=null){var yt=this._seekHandler.removeURLParameters(tt.responseURL);tt.responseURL!==this._currentRequestURL&&yt!==this._currentRedirectedURL&&(this._currentRedirectedURL=yt,this._onURLRedirect&&this._onURLRedirect(yt))}var Et=tt.getResponseHeader("Content-Length");if(Et!=null&&this._contentLength==null){var Yt=parseInt(Et);Yt>0&&(this._contentLength=Yt,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=c.kError,this._onError)this._onError(h.HTTP_STATUS_CODE_INVALID,{code:tt.status,msg:tt.statusText});else throw new e("MSStreamLoader: Http code invalid, "+tt.status+" "+tt.statusText);else if(tt.readyState===3&&(tt.status>=200&&tt.status<=299)){this._status=c.kBuffering;var Rr=tt.response;this._reader.readAsArrayBuffer(Rr)}}},{key:"_xhrOnError",value:function(Pe){this._status=c.kError;var tt=h.EXCEPTION,yt={code:-1,msg:Pe.constructor.name+" "+Pe.type};if(this._onError)this._onError(tt,yt);else throw new e(yt.msg)}},{key:"_msrOnProgress",value:function(Pe){var tt=Pe.target,yt=tt.result;if(yt==null){this._doReconnectIfNeeded();return}var Et=yt.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=yt.byteLength;var Yt=this._totalRange.from+this._receivedLength;this._receivedLength+=Et.byteLength,this._onDataArrival&&this._onDataArrival(Et,Yt,this._receivedLength),yt.byteLength>=this._bufferLimit&&(u.v(this.TAG,"MSStream buffer exceeded max size near ".concat(Yt+Et.byteLength,", reconnecting...")),this._doReconnectIfNeeded())}},{key:"_doReconnectIfNeeded",value:function(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();var Pe={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,Pe,!0)}}},{key:"_msrOnLoad",value:function(Pe){this._status=c.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(Pe){this._status=c.kError;var tt=0,yt=null;if(this._contentLength&&this._receivedLength<this._contentLength?(tt=h.EARLY_EOF,yt={code:-1,msg:"MSStream meet Early-Eof"}):(tt=h.EARLY_EOF,yt={code:-1,msg:Pe.constructor.name+" "+Pe.type}),this._onError)this._onError(tt,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(tt){return u.w("MSStreamLoader",tt.message),!1}}}]),De}(g),k=I,M=function($t){Object(t.a)(De,$t);var xt=Object(o.a)(De);function De(ke,Pe){var tt;return Object(y.a)(this,De),tt=xt.call(this,"xhr-range-loader"),tt.TAG="RangeLoader",tt._seekHandler=ke,tt._config=Pe,tt._needStash=!1,tt._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],tt._currentChunkSizeKB=384,tt._currentSpeedNormalized=0,tt._zeroSpeedChunkCount=0,tt._xhr=null,tt._speedSampler=new i,tt._requestAbort=!1,tt._waitForTotalLength=!1,tt._totalLengthReceived=!1,tt._currentRequestURL=null,tt._currentRedirectedURL=null,tt._currentRequestRange=null,tt._totalLength=null,tt._contentLength=null,tt._receivedLength=0,tt._lastTimeLoaded=0,tt}return Object(f.a)(De,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),Object(A.a)(Object(b.a)(De.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(Pe,tt){this._dataSource=Pe,this._range=tt,this._status=c.kConnecting;var 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,tt=this._range.from+this._receivedLength,yt=tt+Pe;this._contentLength!=null&&(yt-this._range.from>=this._contentLength&&(yt=this._range.from+this._contentLength-1)),this._currentRequestRange={from:tt,to:yt},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(Pe,tt){this._lastTimeLoaded=0;var yt=Pe.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?yt=this._currentRedirectedURL:Pe.redirectedURL!=null&&(yt=Pe.redirectedURL));var Et=this._seekHandler.getConfig(yt,tt);this._currentRequestURL=Et.url;var Yt=this._xhr=new XMLHttpRequest;if(Yt.open("GET",Et.url,!0),Yt.responseType="arraybuffer",Yt.onreadystatechange=this._onReadyStateChange.bind(this),Yt.onprogress=this._onProgress.bind(this),Yt.onload=this._onLoad.bind(this),Yt.onerror=this._onXhrError.bind(this),Pe.withCredentials&&(Yt.withCredentials=!0),typeof Et.headers=="object"){var Rr=Et.headers;for(var zr in Rr)Rr.hasOwnProperty(zr)&&Yt.setRequestHeader(zr,Rr[zr])}if(typeof this._config.headers=="object"){var hn=this._config.headers;for(var jt in hn)hn.hasOwnProperty(jt)&&Yt.setRequestHeader(jt,hn[jt])}Yt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=c.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(Pe){var tt=Pe.target;if(tt.readyState===2){if(tt.responseURL!=null){var yt=this._seekHandler.removeURLParameters(tt.responseURL);tt.responseURL!==this._currentRequestURL&&yt!==this._currentRedirectedURL&&(this._currentRedirectedURL=yt,this._onURLRedirect&&this._onURLRedirect(yt))}if(tt.status>=200&&tt.status<=299){if(this._waitForTotalLength)return;this._status=c.kBuffering}else if(this._status=c.kError,this._onError)this._onError(h.HTTP_STATUS_CODE_INVALID,{code:tt.status,msg:tt.statusText});else throw new e("RangeLoader: Http code invalid, "+tt.status+" "+tt.statusText)}}},{key:"_onProgress",value:function(Pe){if(this._status===c.kError)return;if(this._contentLength===null){var tt=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,tt=!0;var 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,tt){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var Et=Pe.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Pe.loaded,this._speedSampler.addBytes(Et)}},{key:"_normalizeSpeed",value:function(Pe){var tt=this._chunkSizeKBList,yt=tt.length-1,Et=0,Yt=0,Rr=yt;if(Pe<tt[0])return tt[0];for(;Yt<=Rr;){if(Et=Yt+Math.floor((Rr-Yt)/2),Et===yt||Pe>=tt[Et]&&Pe<tt[Et+1])return tt[Et];tt[Et]<Pe?Yt=Et+1:Rr=Et-1}}},{key:"_onLoad",value:function(Pe){if(this._status===c.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var tt=this._speedSampler.lastSecondKBps;if(tt===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(tt=this._speedSampler.currentKBps)),tt!==0){var yt=this._normalizeSpeed(tt);this._currentSpeedNormalized!==yt&&(this._currentSpeedNormalized=yt,this._currentChunkSizeKB=yt)}var Et=Pe.target.response,Yt=this._range.from+this._receivedLength;this._receivedLength+=Et.byteLength;var Rr=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Rr=!0,this._onDataArrival&&this._onDataArrival(Et,Yt,this._receivedLength),Rr&&(this._status=c.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(Pe){this._status=c.kError;var tt=0,yt=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(tt=h.EARLY_EOF,yt={code:-1,msg:"RangeLoader meet Early-Eof"}):(tt=h.EXCEPTION,yt={code:-1,msg:Pe.constructor.name+" "+Pe.type}),this._onError)this._onError(tt,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(tt){return u.w("RangeLoader",tt.message),!1}}}]),De}(g),j=M,P=function($t){Object(t.a)(De,$t);var xt=Object(o.a)(De);function De(){var ke;return Object(y.a)(this,De),ke=xt.call(this,"websocket-loader"),ke.TAG="WebSocketLoader",ke._needStash=!0,ke._ws=null,ke._requestAbort=!1,ke._receivedLength=0,ke}return Object(f.a)(De,[{key:"destroy",value:function(){this._ws&&this.abort(),Object(A.a)(Object(b.a)(De.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe){try{var tt=this._ws=new self.WebSocket(Pe.url);tt.binaryType="arraybuffer",tt.onopen=this._onWebSocketOpen.bind(this),tt.onclose=this._onWebSocketClose.bind(this),tt.onmessage=this._onWebSocketMessage.bind(this),tt.onerror=this._onWebSocketError.bind(this),this._status=c.kConnecting}catch(Et){this._status=c.kError;var yt={code:Et.code,msg:Et.message};if(this._onError)this._onError(h.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=c.kComplete}},{key:"_onWebSocketOpen",value:function(Pe){this._status=c.kBuffering}},{key:"_onWebSocketClose",value:function(Pe){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=c.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(Pe){var tt=this;if(Pe.data instanceof ArrayBuffer)this._dispatchArrayBuffer(Pe.data);else if(Pe.data instanceof Blob){var yt=new FileReader;yt.onload=function(){tt._dispatchArrayBuffer(yt.result)},yt.readAsArrayBuffer(Pe.data)}else{this._status=c.kError;var Et={code:-1,msg:"Unsupported WebSocket message type: "+Pe.data.constructor.name};if(this._onError)this._onError(h.EXCEPTION,Et);else throw new e(Et.msg)}}},{key:"_dispatchArrayBuffer",value:function(Pe){var tt=Pe,yt=this._receivedLength;this._receivedLength+=tt.byteLength,this._onDataArrival&&this._onDataArrival(tt,yt,this._receivedLength)}},{key:"_onWebSocketError",value:function(Pe){this._status=c.kError;var tt={code:Pe.code,msg:Pe.message};if(this._onError)this._onError(h.EXCEPTION,tt);else throw new e(tt.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(Pe){return!1}}}]),De}(g),X=P,F=function(){function $t(xt){Object(y.a)(this,$t),this._zeroStart=xt||!1}return Object(f.a)($t,[{key:"getConfig",value:function(De,ke){var Pe={};if(ke.from!==0||ke.to!==-1){var tt;ke.to!==-1?tt="bytes=".concat(ke.from.toString(),"-").concat(ke.to.toString()):tt="bytes=".concat(ke.from.toString(),"-"),Pe.Range=tt}else this._zeroStart&&(Pe.Range="bytes=0-");return{url:De,headers:Pe}}},{key:"removeURLParameters",value:function(De){return De}}]),$t}(),U=F,K=function(){function $t(xt,De){Object(y.a)(this,$t),this._startName=xt,this._endName=De}return Object(f.a)($t,[{key:"getConfig",value:function(De,ke){var Pe=De;if(ke.from!==0||ke.to!==-1){var tt=!0;Pe.indexOf("?")===-1&&(Pe+="?",tt=!1),tt&&(Pe+="&"),Pe+="".concat(this._startName,"=").concat(ke.from.toString()),ke.to!==-1&&(Pe+="&".concat(this._endName,"=").concat(ke.to.toString()))}return{url:Pe,headers:{}}}},{key:"removeURLParameters",value:function(De){var ke=De.split("?")[0],Pe=void 0,tt=De.indexOf("?");tt!==-1&&(Pe=De.substring(tt+1));var yt="";if(Pe!=null&&Pe.length>0)for(var Et=Pe.split("&"),Yt=0;Yt<Et.length;Yt++){var Rr=Et[Yt].split("="),zr=Yt>0;Rr[0]!==this._startName&&Rr[0]!==this._endName&&(zr&&(yt+="&"),yt+=Et[Yt])}return yt.length===0?ke:ke+"?"+yt}}]),$t}(),z=K,V=function(){function $t(xt,De,ke){Object(y.a)(this,$t),this.TAG="IOController",this._config=De,this._extraData=ke,this._stashInitialSize=1024*384,De.stashInitialSize!=null&&De.stashInitialSize>0&&(this._stashInitialSize=De.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,De.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=xt,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(xt.url),this._refTotalLength=xt.filesize?xt.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new i,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return Object(f.a)($t,[{key:"destroy",value:function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(De){this._extraData=De}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(De){this._onDataArrival=De}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(De){this._onSeeked=De}},{key:"onError",get:function(){return this._onError},set:function(De){this._onError=De}},{key:"onComplete",get:function(){return this._onComplete},set:function(De){this._onComplete=De}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(De){this._onRedirect=De}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(De){this._onRecoveredEarlyEof=De}},{key:"currentURL",get:function(){return this._dataSource.url}},{key:"hasRedirect",get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}},{key:"currentRedirectedURL",get:function(){return this._redirectedURL||this._dataSource.redirectedURL}},{key:"currentSpeed",get:function(){return this._loaderClass===j?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var De=this._config;if(De.seekType==="range")this._seekHandler=new U(this._config.rangeLoadZeroStart);else if(De.seekType==="param"){var ke=De.seekParamStart||"bstart",Pe=De.seekParamEnd||"bend";this._seekHandler=new z(ke,Pe)}else if(De.seekType==="custom"){if(typeof De.customSeekHandler!="function")throw new r("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new De.customSeekHandler}else throw new r("Invalid seekType in config: ".concat(De.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=X;else if(T.isSupported())this._loaderClass=T;else if(O.isSupported())this._loaderClass=O;else if(j.isSupported())this._loaderClass=j;else throw new e("Your browser doesn't support xhr with arraybuffer responseType!")}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(De){this._currentRange={from:0,to:-1},De&&(this._currentRange.from=De),this._speedSampler.reset(),De||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}},{key:"resume",value:function(){if(this._paused){this._paused=!1;var De=this._resumeFrom;this._resumeFrom=0,this._internalSeek(De,!0)}}},{key:"seek",value:function(De){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(De,!0)}},{key:"_internalSeek",value:function(De,ke){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(ke),this._loader.destroy(),this._loader=null;var Pe={from:De,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(De){if(!De||typeof De!="string"||De.length===0)throw new r("Url must be a non-empty string!");this._dataSource.url=De}},{key:"_expandBuffer",value:function(De){for(var ke=this._stashSize;ke+1024*1024*1<De;)ke*=2;if(ke+=1024*1024*1,ke===this._bufferSize)return;var Pe=new ArrayBuffer(ke);if(this._stashUsed>0){var tt=new Uint8Array(this._stashBuffer,0,this._stashUsed),yt=new Uint8Array(Pe,0,ke);yt.set(tt,0)}this._stashBuffer=Pe,this._bufferSize=ke}},{key:"_normalizeSpeed",value:function(De){var ke=this._speedNormalizeList,Pe=ke.length-1,tt=0,yt=0,Et=Pe;if(De<ke[0])return ke[0];for(;yt<=Et;){if(tt=yt+Math.floor((Et-yt)/2),tt===Pe||De>=ke[tt]&&De<ke[tt+1])return ke[tt];ke[tt]<De?yt=tt+1:Et=tt-1}}},{key:"_adjustStashSize",value:function(De){var ke=0;this._config.isLive||De<512?ke=De:De>=512&&De<=1024?ke=Math.floor(De*1.5):ke=De*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(De,ke){return this._currentRange.to=ke+De.byteLength-1,this._onDataArrival(De,ke)}},{key:"_onURLRedirect",value:function(De){this._redirectedURL=De,this._onRedirect&&this._onRedirect(De)}},{key:"_onContentLengthKnown",value:function(De){De&&this._fullRequestFlag&&(this._totalLength=De,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(De,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(De.byteLength);var tt=this._speedSampler.lastSecondKBps;if(tt!==0){var yt=this._normalizeSpeed(tt);this._speedNormalized!==yt&&(this._speedNormalized=yt,this._adjustStashSize(yt))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=ke),this._stashUsed+De.byteLength<=this._stashSize){var vt=new Uint8Array(this._stashBuffer,0,this._stashSize);vt.set(new Uint8Array(De),this._stashUsed),this._stashUsed+=De.byteLength}else{var bt=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var cr=this._stashBuffer.slice(0,this._stashUsed),Qt=this._dispatchChunks(cr,this._stashByteStart);if(Qt<cr.byteLength){if(Qt>0){var Mt=new Uint8Array(cr,Qt);bt.set(Mt,0),this._stashUsed=Mt.byteLength,this._stashByteStart+=Qt}}else this._stashUsed=0,this._stashByteStart+=Qt;this._stashUsed+De.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+De.byteLength),bt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),bt.set(new Uint8Array(De),this._stashUsed),this._stashUsed+=De.byteLength}else{var tr=this._dispatchChunks(De,ke);if(tr<De.byteLength){var Rt=De.byteLength-tr;Rt>this._bufferSize&&(this._expandBuffer(Rt),bt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),bt.set(new Uint8Array(De,tr),0),this._stashUsed+=Rt,this._stashByteStart=ke+tr}}}else if(this._stashUsed===0){var Et=this._dispatchChunks(De,ke);if(Et<De.byteLength){var Yt=De.byteLength-Et;Yt>this._bufferSize&&this._expandBuffer(Yt);var Rr=new Uint8Array(this._stashBuffer,0,this._bufferSize);Rr.set(new Uint8Array(De,Et),0),this._stashUsed+=Yt,this._stashByteStart=ke+Et}}else{this._stashUsed+De.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+De.byteLength);var zr=new Uint8Array(this._stashBuffer,0,this._bufferSize);zr.set(new Uint8Array(De),this._stashUsed),this._stashUsed+=De.byteLength;var hn=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(hn<this._stashUsed&&hn>0){var jt=new Uint8Array(this._stashBuffer,hn);zr.set(jt,0)}this._stashUsed-=hn,this._stashByteStart+=hn}}},{key:"_flushStashBuffer",value:function(De){if(this._stashUsed>0){var ke=this._stashBuffer.slice(0,this._stashUsed),Pe=this._dispatchChunks(ke,this._stashByteStart),tt=ke.byteLength-Pe;if(Pe<ke.byteLength)if(De)u.w(this.TAG,"".concat(tt," bytes unconsumed data remain when flush buffer, dropped"));else{if(Pe>0){var yt=new Uint8Array(this._stashBuffer,0,this._bufferSize),Et=new Uint8Array(ke,Pe);yt.set(Et,0),this._stashUsed=Et.byteLength,this._stashByteStart+=Pe}return 0}return this._stashUsed=0,this._stashByteStart=0,tt}return 0}},{key:"_onLoaderComplete",value:function(De,ke){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(De,ke){u.e(this.TAG,"Loader error, code = ".concat(ke.code,", msg = ").concat(ke.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,De=h.UNRECOVERABLE_EARLY_EOF);switch(De){case h.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var Pe=this._currentRange.to+1;Pe<this._totalLength&&(u.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Pe,!1));return}De=h.UNRECOVERABLE_EARLY_EOF;break}case h.UNRECOVERABLE_EARLY_EOF:case h.CONNECTING_TIMEOUT:case h.HTTP_STATUS_CODE_INVALID:case h.EXCEPTION:break}if(this._onError)this._onError(De,ke);else throw new e("IOException: "+ke.msg)}}]),$t}(),Q=V,G={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function te(){return Object.assign({},G)}var q=function(){function $t(){Object(y.a)(this,$t)}return Object(f.a)($t,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var De=new Q({},te()),ke=De.loaderType;return De.destroy(),ke=="fetch-stream-loader"||ke=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var De=new Q({},te()),ke=De.loaderType;return De.destroy(),ke}},{key:"supportNativeMediaPlayback",value:function(De){$t.videoElement==null&&($t.videoElement=window.document.createElement("video"));var ke=$t.videoElement.canPlayType(De);return ke==="probably"||ke=="maybe"}},{key:"getFeatureList",value:function(){var De={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return De.mseFlvPlayback=$t.supportMSEH264Playback(),De.networkStreamIO=$t.supportNetworkStreamIO(),De.networkLoaderName=$t.getNetworkLoaderTypeName(),De.mseLiveFlvPlayback=De.mseFlvPlayback&&De.networkStreamIO,De.nativeMP4H264Playback=$t.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),De.nativeWebmVP8Playback=$t.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),De.nativeWebmVP9Playback=$t.supportNativeMediaPlayback('video/webm; codecs="vp9"'),De}}]),$t}(),se=q,re={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"},xe=re,Oe=function(){function $t(){Object(y.a)(this,$t)}return Object(f.a)($t,null,[{key:"forceGlobalTag",get:function(){return u.FORCE_GLOBAL_TAG},set:function(De){u.FORCE_GLOBAL_TAG=De,$t._notifyChange()}},{key:"globalTag",get:function(){return u.GLOBAL_TAG},set:function(De){u.GLOBAL_TAG=De,$t._notifyChange()}},{key:"enableAll",get:function(){return u.ENABLE_VERBOSE&&u.ENABLE_DEBUG&&u.ENABLE_INFO&&u.ENABLE_WARN&&u.ENABLE_ERROR},set:function(De){u.ENABLE_VERBOSE=De,u.ENABLE_DEBUG=De,u.ENABLE_INFO=De,u.ENABLE_WARN=De,u.ENABLE_ERROR=De,$t._notifyChange()}},{key:"enableDebug",get:function(){return u.ENABLE_DEBUG},set:function(De){u.ENABLE_DEBUG=De,$t._notifyChange()}},{key:"enableVerbose",get:function(){return u.ENABLE_VERBOSE},set:function(De){u.ENABLE_VERBOSE=De,$t._notifyChange()}},{key:"enableInfo",get:function(){return u.ENABLE_INFO},set:function(De){u.ENABLE_INFO=De,$t._notifyChange()}},{key:"enableWarn",get:function(){return u.ENABLE_WARN},set:function(De){u.ENABLE_WARN=De,$t._notifyChange()}},{key:"enableError",get:function(){return u.ENABLE_ERROR},set:function(De){u.ENABLE_ERROR=De,$t._notifyChange()}},{key:"getConfig",value:function(){return{globalTag:u.GLOBAL_TAG,forceGlobalTag:u.FORCE_GLOBAL_TAG,enableVerbose:u.ENABLE_VERBOSE,enableDebug:u.ENABLE_DEBUG,enableInfo:u.ENABLE_INFO,enableWarn:u.ENABLE_WARN,enableError:u.ENABLE_ERROR,enableCallback:u.ENABLE_CALLBACK}}},{key:"applyConfig",value:function(De){u.GLOBAL_TAG=De.globalTag,u.FORCE_GLOBAL_TAG=De.forceGlobalTag,u.ENABLE_VERBOSE=De.enableVerbose,u.ENABLE_DEBUG=De.enableDebug,u.ENABLE_INFO=De.enableInfo,u.ENABLE_WARN=De.enableWarn,u.ENABLE_ERROR=De.enableError,u.ENABLE_CALLBACK=De.enableCallback}},{key:"_notifyChange",value:function(){var De=$t.emitter;if(De.listenerCount("change")>0){var ke=$t.getConfig();De.emit("change",ke)}}},{key:"registerListener",value:function(De){$t.emitter.addListener("change",De)}},{key:"removeListener",value:function(De){$t.emitter.removeListener("change",De)}},{key:"addLogListener",value:function(De){u.emitter.addListener("log",De),u.emitter.listenerCount("log")>0&&(u.ENABLE_CALLBACK=!0,$t._notifyChange())}},{key:"removeLogListener",value:function(De){u.emitter.removeListener("log",De),u.emitter.listenerCount("log")===0&&(u.ENABLE_CALLBACK=!1,$t._notifyChange())}}]),$t}();Oe.emitter=new p.a;var Me=Oe,Qe=function(){function $t(){Object(y.a)(this,$t),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return Object(f.a)($t,[{key:"isComplete",value:function(){var De=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&&De&&ke}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(De){if(this.keyframesIndex==null)return null;var ke=this.keyframesIndex,Pe=this._search(ke.times,De);return{index:Pe,milliseconds:ke.times[Pe],fileposition:ke.filepositions[Pe]}}},{key:"_search",value:function(De,ke){var Pe=0,tt=De.length-1,yt=0,Et=0,Yt=tt;for(ke<De[0]&&(Pe=0,Et=Yt+1);Et<=Yt;)if(yt=Et+Math.floor((Yt-Et)/2),yt===tt||ke>=De[yt]&&ke<De[yt+1]){Pe=yt;break}else De[yt]<ke?Et=yt+1:Yt=yt-1;return Pe}}]),$t}(),Ve=Qe;function ut($t,xt,De){var ke=$t;if(xt+De<ke.length){for(;De--;)if((ke[++xt]&192)!==128)return!1;return!0}else return!1}function Fe($t){for(var xt=[],De=$t,ke=0,Pe=$t.length;ke<Pe;){if(De[ke]<128){xt.push(String.fromCharCode(De[ke])),++ke;continue}else if(!(De[ke]<192)){if(De[ke]<224){if(ut(De,ke,1)){var tt=(De[ke]&31)<<6|De[ke+1]&63;if(tt>=128){xt.push(String.fromCharCode(tt&65535)),ke+=2;continue}}}else if(De[ke]<240){if(ut(De,ke,2)){var yt=(De[ke]&15)<<12|(De[ke+1]&63)<<6|De[ke+2]&63;if(yt>=2048&&(yt&63488)!==55296){xt.push(String.fromCharCode(yt&65535)),ke+=3;continue}}}else if(De[ke]<248&&ut(De,ke,3)){var Et=(De[ke]&7)<<18|(De[ke+1]&63)<<12|(De[ke+2]&63)<<6|De[ke+3]&63;if(Et>65536&&Et<1114112){Et-=65536,xt.push(String.fromCharCode(Et>>>10|55296)),xt.push(String.fromCharCode(Et&1023|56320)),ke+=4;continue}}}xt.push(String.fromCharCode(65533)),++ke}return xt.join("")}var ue=Fe,et=function(){var $t=new ArrayBuffer(2);return new DataView($t).setInt16(0,256,!0),new Int16Array($t)[0]===256}(),he=function(){function $t(){Object(y.a)(this,$t)}return Object(f.a)($t,null,[{key:"parseScriptData",value:function(De,ke,Pe){var tt={};try{var yt=$t.parseValue(De,ke,Pe),Et=$t.parseValue(De,ke+yt.size,Pe-yt.size);tt[yt.data]=Et.data}catch(Yt){u.e("AMF",Yt.toString())}return tt}},{key:"parseObject",value:function(De,ke,Pe){if(Pe<3)throw new l("Data not enough when parse ScriptDataObject");var tt=$t.parseString(De,ke,Pe),yt=$t.parseValue(De,ke+tt.size,Pe-tt.size),Et=yt.objectEnd;return{data:{name:tt.data,value:yt.data},size:tt.size+yt.size,objectEnd:Et}}},{key:"parseVariable",value:function(De,ke,Pe){return $t.parseObject(De,ke,Pe)}},{key:"parseString",value:function(De,ke,Pe){if(Pe<2)throw new l("Data not enough when parse String");var tt=new DataView(De,ke,Pe),yt=tt.getUint16(0,!et),Et;return yt>0?Et=ue(new Uint8Array(De,ke+2,yt)):Et="",{data:Et,size:2+yt}}},{key:"parseLongString",value:function(De,ke,Pe){if(Pe<4)throw new l("Data not enough when parse LongString");var tt=new DataView(De,ke,Pe),yt=tt.getUint32(0,!et),Et;return yt>0?Et=ue(new Uint8Array(De,ke+4,yt)):Et="",{data:Et,size:4+yt}}},{key:"parseDate",value:function(De,ke,Pe){if(Pe<10)throw new l("Data size invalid when parse Date");var tt=new DataView(De,ke,Pe),yt=tt.getFloat64(0,!et),Et=tt.getInt16(8,!et);return yt+=Et*60*1e3,{data:new Date(yt),size:8+2}}},{key:"parseValue",value:function(De,ke,Pe){if(Pe<1)throw new l("Data not enough when parse Value");var tt=new DataView(De,ke,Pe),yt=1,Et=tt.getUint8(0),Yt,Rr=!1;try{switch(Et){case 0:Yt=tt.getFloat64(1,!et),yt+=8;break;case 1:{var zr=tt.getUint8(1);Yt=!!zr,yt+=1;break}case 2:{var hn=$t.parseString(De,ke+1,Pe-1);Yt=hn.data,yt+=hn.size;break}case 3:{Yt={};var jt=0;for((tt.getUint32(Pe-4,!et)&16777215)===9&&(jt=3);yt<Pe-4;){var vt=$t.parseObject(De,ke+yt,Pe-yt-jt);if(vt.objectEnd)break;Yt[vt.data.name]=vt.data.value,yt+=vt.size}if(yt<=Pe-3){var bt=tt.getUint32(yt-1,!et)&16777215;bt===9&&(yt+=3)}break}case 8:{Yt={},yt+=4;var cr=0;for((tt.getUint32(Pe-4,!et)&16777215)===9&&(cr=3);yt<Pe-8;){var Qt=$t.parseVariable(De,ke+yt,Pe-yt-cr);if(Qt.objectEnd)break;Yt[Qt.data.name]=Qt.data.value,yt+=Qt.size}if(yt<=Pe-3){var Mt=tt.getUint32(yt-1,!et)&16777215;Mt===9&&(yt+=3)}break}case 9:Yt=void 0,yt=1,Rr=!0;break;case 10:{Yt=[];var tr=tt.getUint32(1,!et);yt+=4;for(var Rt=0;Rt<tr;Rt++){var qt=$t.parseValue(De,ke+yt,Pe-yt);Yt.push(qt.data),yt+=qt.size}break}case 11:{var Hr=$t.parseDate(De,ke+1,Pe-1);Yt=Hr.data,yt+=Hr.size;break}case 12:{var Nr=$t.parseString(De,ke+1,Pe-1);Yt=Nr.data,yt+=Nr.size;break}default:yt=Pe,u.w("AMF","Unsupported AMF value type "+Et)}}catch(Dr){u.e("AMF",Dr.toString())}return{data:Yt,size:yt,objectEnd:Rr}}}]),$t}(),J=he,Y=function(){function $t(xt){Object(y.a)(this,$t),this.TAG="ExpGolomb",this._buffer=xt,this._buffer_index=0,this._total_bytes=xt.byteLength,this._total_bits=xt.byteLength*8,this._current_word=0,this._current_word_bits_left=0}return Object(f.a)($t,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var De=this._total_bytes-this._buffer_index;if(De<=0)throw new l("ExpGolomb: _fillCurrentWord() but no bytes available");var ke=Math.min(4,De),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(De){if(De>32)throw new r("ExpGolomb: readBits() bits exceeded max 32bits!");if(De<=this._current_word_bits_left){var ke=this._current_word>>>32-De;return this._current_word<<=De,this._current_word_bits_left-=De,ke}var Pe=this._current_word_bits_left?this._current_word:0;Pe=Pe>>>32-this._current_word_bits_left;var tt=De-this._current_word_bits_left;this._fillCurrentWord();var yt=Math.min(tt,this._current_word_bits_left),Et=this._current_word>>>32-yt;return this._current_word<<=yt,this._current_word_bits_left-=yt,Pe=Pe<<yt|Et,Pe}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var De;for(De=0;De<this._current_word_bits_left;De++)if((this._current_word&2147483648>>>De)!==0)return this._current_word<<=De,this._current_word_bits_left-=De,De;return this._fillCurrentWord(),De+this._skipLeadingZero()}},{key:"readUEG",value:function(){var De=this._skipLeadingZero();return this.readBits(De+1)-1}},{key:"readSEG",value:function(){var De=this.readUEG();return De&1?De+1>>>1:-1*(De>>>1)}}]),$t}(),$=Y,de=function(){function $t(){Object(y.a)(this,$t)}return Object(f.a)($t,null,[{key:"_ebsp2rbsp",value:function(De){for(var ke=De,Pe=ke.byteLength,tt=new Uint8Array(Pe),yt=0,Et=0;Et<Pe;Et++){if(Et>=2&&(ke[Et]===3&&ke[Et-1]===0&&ke[Et-2]===0))continue;tt[yt]=ke[Et],yt++}return new Uint8Array(tt.buffer,0,yt)}},{key:"parseSPS",value:function(De){var ke=$t._ebsp2rbsp(De),Pe=new $(ke);Pe.readByte();var tt=Pe.readByte();Pe.readByte();var yt=Pe.readByte();Pe.readUEG();var Et=$t.getProfileString(tt),Yt=$t.getLevelString(yt),Rr=1,zr=420,hn=[0,420,422,444],jt=8;if((tt===100||tt===110||tt===122||tt===244||tt===44||tt===83||tt===86||tt===118||tt===128||tt===138||tt===144)&&(Rr=Pe.readUEG(),Rr===3&&Pe.readBits(1),Rr<=3&&(zr=hn[Rr]),jt=Pe.readUEG()+8,Pe.readUEG(),Pe.readBits(1),Pe.readBool()))for(var vt=Rr!==3?8:12,bt=0;bt<vt;bt++)Pe.readBool()&&(bt<6?$t._skipScalingList(Pe,16):$t._skipScalingList(Pe,64));Pe.readUEG();var cr=Pe.readUEG();if(cr===0)Pe.readUEG();else if(cr===1){Pe.readBits(1),Pe.readSEG(),Pe.readSEG();for(var Qt=Pe.readUEG(),Mt=0;Mt<Qt;Mt++)Pe.readSEG()}var tr=Pe.readUEG();Pe.readBits(1);var Rt=Pe.readUEG(),qt=Pe.readUEG(),Hr=Pe.readBits(1);Hr===0&&Pe.readBits(1),Pe.readBits(1);var Nr=0,Dr=0,cn=0,An=0,ri=Pe.readBool();ri&&(Nr=Pe.readUEG(),Dr=Pe.readUEG(),cn=Pe.readUEG(),An=Pe.readUEG());var $n=1,fi=1,_i=0,Di=!0,Wi=0,it=0,Le=Pe.readBool();if(Le){if(Pe.readBool()){var je=Pe.readByte(),Xe=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],nt=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];je>0&&je<16?($n=Xe[je-1],fi=nt[je-1]):je===255&&($n=Pe.readByte()<<8|Pe.readByte(),fi=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 Ze=Pe.readBits(32),ot=Pe.readBits(32);Di=Pe.readBool(),Wi=ot,it=Ze*2,_i=Wi/it}}var Ct=1;($n!==1||fi!==1)&&(Ct=$n/fi);var gt=0,pr=0;if(Rr===0)gt=1,pr=2-Hr;else{var $r=Rr===3?1:2,Yr=Rr===1?2:1;gt=$r,pr=Yr*(2-Hr)}var mn=(Rt+1)*16,Ar=(2-Hr)*((qt+1)*16);mn-=(Nr+Dr)*gt,Ar-=(cn+An)*pr;var zn=Math.ceil(mn*Ct);return Pe.destroy(),Pe=null,{profile_string:Et,level_string:Yt,bit_depth:jt,ref_frames:tr,chroma_format:zr,chroma_format_string:$t.getChromaFormatString(zr),frame_rate:{fixed:Di,fps:_i,fps_den:it,fps_num:Wi},sar_ratio:{width:$n,height:fi},codec_size:{width:mn,height:Ar},present_size:{width:zn,height:Ar}}}},{key:"_skipScalingList",value:function(De,ke){for(var Pe=8,tt=8,yt=0,Et=0;Et<ke;Et++)tt!==0&&(yt=De.readSEG(),tt=(Pe+yt+256)%256),Pe=tt===0?Pe:tt}},{key:"getProfileString",value:function(De){switch(De){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}},{key:"getLevelString",value:function(De){return(De/10).toFixed(1)}},{key:"getChromaFormatString",value:function(De){switch(De){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),$t}(),be=de,Ce={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},Be=Ce;function fe($t){return $t>>>8&255|($t&255)<<8}function we($t){return($t&4278190080)>>>24|($t&16711680)>>>8|($t&65280)<<8|($t&255)<<24}function Re($t,xt){return $t[xt]<<24|$t[xt+1]<<16|$t[xt+2]<<8|$t[xt+3]}var rt=function(){function $t(xt,De){Object(y.a)(this,$t),this.TAG="FLVDemuxer",this._config=De,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=xt.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=xt.hasAudioTrack,this._hasVideo=xt.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Ve,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(f.a)($t,[{key:"destroy",value:function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}},{key:"bindDataSource",value:function(De){return De.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(De){this._onTrackMetadata=De}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(De){this._onMediaInfo=De}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(De){this._onMetaDataArrived=De}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(De){this._onScriptDataArrived=De}},{key:"onError",get:function(){return this._onError},set:function(De){this._onError=De}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(De){this._onDataAvailable=De}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(De){this._timestampBase=De}},{key:"overridedDuration",get:function(){return this._duration},set:function(De){this._durationOverrided=!0,this._duration=De,this._mediaInfo.duration=De}},{key:"overridedHasAudio",set:function(De){this._hasAudioFlagOverrided=!0,this._hasAudio=De,this._mediaInfo.hasAudio=De}},{key:"overridedHasVideo",set:function(De){this._hasVideoFlagOverrided=!0,this._hasVideo=De,this._mediaInfo.hasVideo=De}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new Ve}},{key:"_isInitialMetadataDispatched",value:function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}},{key:"parseChunks",value:function(De,ke){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new l("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var Pe=0,tt=this._littleEndian;if(ke===0)if(De.byteLength>13){var yt=$t.probe(De);Pe=yt.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,ke+Pe!==this._dataOffset&&u.w(this.TAG,"First time parsing but chunk byteStart invalid!");var Et=new DataView(De,Pe),Yt=Et.getUint32(0,!tt);Yt!==0&&u.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Pe+=4}for(;Pe<De.byteLength;){this._dispatch=!0;var Rr=new DataView(De,Pe);if(Pe+11+4>De.byteLength)break;var zr=Rr.getUint8(0),hn=Rr.getUint32(0,!tt)&16777215;if(Pe+11+hn+4>De.byteLength)break;if(zr!==8&&zr!==9&&zr!==18){u.w(this.TAG,"Unsupported tag type ".concat(zr,", skipped")),Pe+=11+hn+4;continue}var jt=Rr.getUint8(4),vt=Rr.getUint8(5),bt=Rr.getUint8(6),cr=Rr.getUint8(7),Qt=bt|vt<<8|jt<<16|cr<<24,Mt=Rr.getUint32(7,!tt)&16777215;Mt!==0&&u.w(this.TAG,"Meet tag which has StreamID != 0!");var tr=Pe+11;switch(zr){case 8:this._parseAudioData(De,tr,hn,Qt);break;case 9:this._parseVideoData(De,tr,hn,Qt,ke+Pe);break;case 18:this._parseScriptData(De,tr,hn);break}var Rt=Rr.getUint32(11+hn,!tt);Rt!==11+hn&&u.w(this.TAG,"Invalid PrevTagSize ".concat(Rt)),Pe+=11+hn+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),Pe}},{key:"_parseScriptData",value:function(De,ke,Pe){var tt=J.parseScriptData(De,ke,Pe);if(tt.hasOwnProperty("onMetaData")){if(tt.onMetaData==null||typeof tt.onMetaData!="object"){u.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&u.w(this.TAG,"Found another onMetaData tag!"),this._metadata=tt;var 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 Et=Math.floor(yt.duration*this._timescale);this._duration=Et,this._mediaInfo.duration=Et}}else this._mediaInfo.duration=0;if(typeof yt.framerate=="number"){var Yt=Math.floor(yt.framerate*1e3);if(Yt>0){var Rr=Yt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=Rr,this._referenceFrameRate.fps_num=Yt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=Rr}}if(typeof yt.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var zr=yt.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(zr),yt.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=yt,u.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(tt).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},tt)))}},{key:"_parseKeyframesIndex",value:function(De){for(var ke=[],Pe=[],tt=1;tt<De.times.length;tt++){var yt=this._timestampBase+Math.floor(De.times[tt]*1e3);ke.push(yt),Pe.push(De.filepositions[tt])}return{times:ke,filepositions:Pe}}},{key:"_parseAudioData",value:function(De,ke,Pe,tt){if(Pe<=1){u.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var yt=this._littleEndian,Et=new DataView(De,ke,Pe),Yt=Et.getUint8(0),Rr=Yt>>>4;if(Rr!==2&&Rr!==10){this._onError(Be.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Rr);return}var zr=0,hn=(Yt&12)>>>2;if(hn>=0&&hn<=4)zr=this._flvSoundRateTable[hn];else{this._onError(Be.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+hn);return}var jt=(Yt&2)>>>1,vt=Yt&1,bt=this._audioMetadata,cr=this._audioTrack;if(bt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),bt=this._audioMetadata={},bt.type="audio",bt.id=cr.id,bt.timescale=this._timescale,bt.duration=this._duration,bt.audioSampleRate=zr,bt.channelCount=vt===0?1:2),Rr===10){var Qt=this._parseAACAudioData(De,ke+1,Pe-1);if(Qt==null)return;if(Qt.packetType===0){bt.config&&u.w(this.TAG,"Found another AudioSpecificConfig!");var Mt=Qt.data;bt.audioSampleRate=Mt.samplingRate,bt.channelCount=Mt.channelCount,bt.codec=Mt.codec,bt.originalCodec=Mt.originalCodec,bt.config=Mt.config,bt.refSampleDuration=1024/bt.audioSampleRate*bt.timescale,u.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",bt);var tr=this._mediaInfo;tr.audioCodec=bt.originalCodec,tr.audioSampleRate=bt.audioSampleRate,tr.audioChannelCount=bt.channelCount,tr.hasVideo?tr.videoCodec!=null&&(tr.mimeType='video/x-flv; codecs="'+tr.videoCodec+","+tr.audioCodec+'"'):tr.mimeType='video/x-flv; codecs="'+tr.audioCodec+'"',tr.isComplete()&&this._onMediaInfo(tr)}else if(Qt.packetType===1){var Rt=this._timestampBase+tt,qt={unit:Qt.data,length:Qt.data.byteLength,dts:Rt,pts:Rt};cr.samples.push(qt),cr.length+=Qt.data.length}else u.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Qt.packetType))}else if(Rr===2){if(!bt.codec){var Hr=this._parseMP3AudioData(De,ke+1,Pe-1,!0);if(Hr==null)return;bt.audioSampleRate=Hr.samplingRate,bt.channelCount=Hr.channelCount,bt.codec=Hr.codec,bt.originalCodec=Hr.originalCodec,bt.refSampleDuration=1152/bt.audioSampleRate*bt.timescale,u.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",bt);var Nr=this._mediaInfo;Nr.audioCodec=bt.codec,Nr.audioSampleRate=bt.audioSampleRate,Nr.audioChannelCount=bt.channelCount,Nr.audioDataRate=Hr.bitRate,Nr.hasVideo?Nr.videoCodec!=null&&(Nr.mimeType='video/x-flv; codecs="'+Nr.videoCodec+","+Nr.audioCodec+'"'):Nr.mimeType='video/x-flv; codecs="'+Nr.audioCodec+'"',Nr.isComplete()&&this._onMediaInfo(Nr)}var Dr=this._parseMP3AudioData(De,ke+1,Pe-1,!1);if(Dr==null)return;var cn=this._timestampBase+tt,An={unit:Dr,length:Dr.byteLength,dts:cn,pts:cn};cr.samples.push(An),cr.length+=Dr.length}}},{key:"_parseAACAudioData",value:function(De,ke,Pe){if(Pe<=1){u.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var tt={},yt=new Uint8Array(De,ke,Pe);return tt.packetType=yt[0],yt[0]===0?tt.data=this._parseAACAudioSpecificConfig(De,ke+1,Pe-1):tt.data=yt.subarray(1),tt}},{key:"_parseAACAudioSpecificConfig",value:function(De,ke,Pe){var tt=new Uint8Array(De,ke,Pe),yt=null,Et=0,Yt=0,Rr=null,zr=0,hn=null;if(Et=Yt=tt[0]>>>3,zr=(tt[0]&7)<<1|tt[1]>>>7,zr<0||zr>=this._mpegSamplingRates.length){this._onError(Be.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var jt=this._mpegSamplingRates[zr],vt=(tt[1]&120)>>>3;if(vt<0||vt>=8){this._onError(Be.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}Et===5&&(hn=(tt[1]&7)<<1|tt[2]>>>7,Rr=(tt[2]&124)>>>2);var bt=self.navigator.userAgent.toLowerCase();return bt.indexOf("firefox")!==-1?zr>=6?(Et=5,yt=new Array(4),hn=zr-3):(Et=2,yt=new Array(2),hn=zr):bt.indexOf("android")!==-1?(Et=2,yt=new Array(2),hn=zr):(Et=5,hn=zr,yt=new Array(4),zr>=6?hn=zr-3:vt===1&&(Et=2,yt=new Array(2),hn=zr)),yt[0]=Et<<3,yt[0]|=(zr&15)>>>1,yt[1]=(zr&15)<<7,yt[1]|=(vt&15)<<3,Et===5&&(yt[1]|=(hn&15)>>>1,yt[2]=(hn&1)<<7,yt[2]|=2<<2,yt[3]=0),{config:yt,samplingRate:jt,channelCount:vt,codec:"mp4a.40."+Et,originalCodec:"mp4a.40."+Yt}}},{key:"_parseMP3AudioData",value:function(De,ke,Pe,tt){if(Pe<4){u.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var yt=this._littleEndian,Et=new Uint8Array(De,ke,Pe),Yt=null;if(tt){if(Et[0]!==255)return;var Rr=Et[1]>>>3&3,zr=(Et[1]&6)>>1,hn=(Et[2]&240)>>>4,jt=(Et[2]&12)>>>2,vt=Et[3]>>>6&3,bt=vt!==3?2:1,cr=0,Qt=0,Mt=34,tr="mp3";switch(Rr){case 0:cr=this._mpegAudioV25SampleRateTable[jt];break;case 2:cr=this._mpegAudioV20SampleRateTable[jt];break;case 3:cr=this._mpegAudioV10SampleRateTable[jt];break}switch(zr){case 1:Mt=34,hn<this._mpegAudioL3BitRateTable.length&&(Qt=this._mpegAudioL3BitRateTable[hn]);break;case 2:Mt=33,hn<this._mpegAudioL2BitRateTable.length&&(Qt=this._mpegAudioL2BitRateTable[hn]);break;case 3:Mt=32,hn<this._mpegAudioL1BitRateTable.length&&(Qt=this._mpegAudioL1BitRateTable[hn]);break}Yt={bitRate:Qt,samplingRate:cr,channelCount:bt,codec:tr,originalCodec:tr}}else Yt=Et;return Yt}},{key:"_parseVideoData",value:function(De,ke,Pe,tt,yt){if(Pe<=1){u.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var Et=new Uint8Array(De,ke,Pe)[0],Yt=(Et&240)>>>4,Rr=Et&15;if(Rr!==7){this._onError(Be.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(Rr));return}this._parseAVCVideoPacket(De,ke+1,Pe-1,tt,yt,Yt)}},{key:"_parseAVCVideoPacket",value:function(De,ke,Pe,tt,yt,Et){if(Pe<4){u.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var Yt=this._littleEndian,Rr=new DataView(De,ke,Pe),zr=Rr.getUint8(0),hn=Rr.getUint32(0,!Yt)&16777215,jt=hn<<8>>8;if(zr===0)this._parseAVCDecoderConfigurationRecord(De,ke+4,Pe-4);else if(zr===1)this._parseAVCVideoData(De,ke+4,Pe-4,tt,yt,Et,jt);else if(!(zr===2)){this._onError(Be.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(zr));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(De,ke,Pe){if(Pe<7){u.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var tt=this._videoMetadata,yt=this._videoTrack,Et=this._littleEndian,Yt=new DataView(De,ke,Pe);tt?typeof tt.avcc!="undefined"&&u.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),tt=this._videoMetadata={},tt.type="video",tt.id=yt.id,tt.timescale=this._timescale,tt.duration=this._duration);var Rr=Yt.getUint8(0),zr=Yt.getUint8(1),hn=Yt.getUint8(2),jt=Yt.getUint8(3);if(Rr!==1||zr===0){this._onError(Be.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(Yt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Be.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var vt=Yt.getUint8(5)&31;if(vt===0){this._onError(Be.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else vt>1&&u.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(vt));for(var bt=6,cr=0;cr<vt;cr++){var Qt=Yt.getUint16(bt,!Et);if(bt+=2,Qt===0)continue;var Mt=new Uint8Array(De,ke+bt,Qt);bt+=Qt;var tr=be.parseSPS(Mt);if(cr!==0)continue;tt.codecWidth=tr.codec_size.width,tt.codecHeight=tr.codec_size.height,tt.presentWidth=tr.present_size.width,tt.presentHeight=tr.present_size.height,tt.profile=tr.profile_string,tt.level=tr.level_string,tt.bitDepth=tr.bit_depth,tt.chromaFormat=tr.chroma_format,tt.sarRatio=tr.sar_ratio,tt.frameRate=tr.frame_rate,(tr.frame_rate.fixed===!1||tr.frame_rate.fps_num===0||tr.frame_rate.fps_den===0)&&(tt.frameRate=this._referenceFrameRate);var Rt=tt.frameRate.fps_den,qt=tt.frameRate.fps_num;tt.refSampleDuration=tt.timescale*(Rt/qt);for(var Hr=Mt.subarray(1,4),Nr="avc1.",Dr=0;Dr<3;Dr++){var cn=Hr[Dr].toString(16);cn.length<2&&(cn="0"+cn),Nr+=cn}tt.codec=Nr;var An=this._mediaInfo;An.width=tt.codecWidth,An.height=tt.codecHeight,An.fps=tt.frameRate.fps,An.profile=tt.profile,An.level=tt.level,An.refFrames=tr.ref_frames,An.chromaFormat=tr.chroma_format_string,An.sarNum=tt.sarRatio.width,An.sarDen=tt.sarRatio.height,An.videoCodec=Nr,An.hasAudio?An.audioCodec!=null&&(An.mimeType='video/x-flv; codecs="'+An.videoCodec+","+An.audioCodec+'"'):An.mimeType='video/x-flv; codecs="'+An.videoCodec+'"',An.isComplete()&&this._onMediaInfo(An)}var ri=Yt.getUint8(bt);if(ri===0){this._onError(Be.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else ri>1&&u.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(ri));bt++;for(var $n=0;$n<ri;$n++){var fi=Yt.getUint16(bt,!Et);if(bt+=2,fi===0)continue;bt+=fi}tt.avcc=new Uint8Array(Pe),tt.avcc.set(new Uint8Array(De,ke,Pe),0),u.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",tt)}},{key:"_parseAVCVideoData",value:function(De,ke,Pe,tt,yt,Et,Yt){for(var Rr=this._littleEndian,zr=new DataView(De,ke,Pe),hn=[],jt=0,vt=0,bt=this._naluLengthSize,cr=this._timestampBase+tt,Qt=Et===1;vt<Pe;){if(vt+4>=Pe){u.w(this.TAG,"Malformed Nalu near timestamp ".concat(cr,", offset = ").concat(vt,", dataSize = ").concat(Pe));break}var Mt=zr.getUint32(vt,!Rr);if(bt===3&&(Mt>>>=8),Mt>Pe-bt){u.w(this.TAG,"Malformed Nalus near timestamp ".concat(cr,", NaluSize > DataSize!"));return}var tr=zr.getUint8(vt+bt)&31;tr===5&&(Qt=!0);var Rt=new Uint8Array(De,ke+vt,bt+Mt),qt={type:tr,data:Rt};hn.push(qt),jt+=Rt.byteLength,vt+=bt+Mt}if(hn.length){var Hr=this._videoTrack,Nr={units:hn,length:jt,isKeyframe:Qt,dts:cr,cts:Yt,pts:cr+Yt};Qt&&(Nr.fileposition=yt),Hr.samples.push(Nr),Hr.length+=jt}}}],[{key:"probe",value:function(De){var ke=new Uint8Array(De),Pe={match:!1};if(ke[0]!==70||ke[1]!==76||ke[2]!==86||ke[3]!==1)return Pe;var tt=(ke[4]&4)>>>2!==0,yt=(ke[4]&1)!==0,Et=Re(ke,5);return Et<9?Pe:{match:!0,consumed:Et,dataOffset:Et,hasAudioTrack:tt,hasVideoTrack:yt}}}]),$t}(),St=rt,ft=function(){function $t(){Object(y.a)(this,$t)}return Object(f.a)($t,null,[{key:"init",value:function(){$t.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(var De in $t.types)$t.types.hasOwnProperty(De)&&($t.types[De]=[De.charCodeAt(0),De.charCodeAt(1),De.charCodeAt(2),De.charCodeAt(3)]);var ke=$t.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(De){for(var ke=8,Pe=null,tt=Array.prototype.slice.call(arguments,1),yt=tt.length,Et=0;Et<yt;Et++)ke+=tt[Et].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(De,4);for(var Yt=8,Rr=0;Rr<yt;Rr++)Pe.set(tt[Rr],Yt),Yt+=tt[Rr].byteLength;return Pe}},{key:"generateInitSegment",value:function(De){var ke=$t.box($t.types.ftyp,$t.constants.FTYP),Pe=$t.moov(De),tt=new Uint8Array(ke.byteLength+Pe.byteLength);return tt.set(ke,0),tt.set(Pe,ke.byteLength),tt}},{key:"moov",value:function(De){var ke=$t.mvhd(De.timescale,De.duration),Pe=$t.trak(De),tt=$t.mvex(De);return $t.box($t.types.moov,ke,Pe,tt)}},{key:"mvhd",value:function(De,ke){return $t.box($t.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,De>>>24&255,De>>>16&255,De>>>8&255,De&255,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(De){return $t.box($t.types.trak,$t.tkhd(De),$t.mdia(De))}},{key:"tkhd",value:function(De){var ke=De.id,Pe=De.duration,tt=De.presentWidth,yt=De.presentHeight;return $t.box($t.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,ke>>>24&255,ke>>>16&255,ke>>>8&255,ke&255,0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,tt>>>8&255,tt&255,0,0,yt>>>8&255,yt&255,0,0]))}},{key:"mdia",value:function(De){return $t.box($t.types.mdia,$t.mdhd(De),$t.hdlr(De),$t.minf(De))}},{key:"mdhd",value:function(De){var ke=De.timescale,Pe=De.duration;return $t.box($t.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(De){var ke=null;return De.type==="audio"?ke=$t.constants.HDLR_AUDIO:ke=$t.constants.HDLR_VIDEO,$t.box($t.types.hdlr,ke)}},{key:"minf",value:function(De){var ke=null;return De.type==="audio"?ke=$t.box($t.types.smhd,$t.constants.SMHD):ke=$t.box($t.types.vmhd,$t.constants.VMHD),$t.box($t.types.minf,ke,$t.dinf(),$t.stbl(De))}},{key:"dinf",value:function(){var De=$t.box($t.types.dinf,$t.box($t.types.dref,$t.constants.DREF));return De}},{key:"stbl",value:function(De){var ke=$t.box($t.types.stbl,$t.stsd(De),$t.box($t.types.stts,$t.constants.STTS),$t.box($t.types.stsc,$t.constants.STSC),$t.box($t.types.stsz,$t.constants.STSZ),$t.box($t.types.stco,$t.constants.STCO));return ke}},{key:"stsd",value:function(De){return De.type==="audio"?De.codec==="mp3"?$t.box($t.types.stsd,$t.constants.STSD_PREFIX,$t.mp3(De)):$t.box($t.types.stsd,$t.constants.STSD_PREFIX,$t.mp4a(De)):$t.box($t.types.stsd,$t.constants.STSD_PREFIX,$t.avc1(De))}},{key:"mp3",value:function(De){var ke=De.channelCount,Pe=De.audioSampleRate,tt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ke,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return $t.box($t.types[".mp3"],tt)}},{key:"mp4a",value:function(De){var ke=De.channelCount,Pe=De.audioSampleRate,tt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ke,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return $t.box($t.types.mp4a,tt,$t.esds(De))}},{key:"esds",value:function(De){var ke=De.config||[],Pe=ke.length,tt=new Uint8Array([0,0,0,0,3,23+Pe,0,1,0,4,15+Pe,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Pe]).concat(ke).concat([6,1,2]));return $t.box($t.types.esds,tt)}},{key:"avc1",value:function(De){var ke=De.avcc,Pe=De.codecWidth,tt=De.codecHeight,yt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,Pe>>>8&255,Pe&255,tt>>>8&255,tt&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return $t.box($t.types.avc1,yt,$t.box($t.types.avcC,ke))}},{key:"mvex",value:function(De){return $t.box($t.types.mvex,$t.trex(De))}},{key:"trex",value:function(De){var ke=De.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 $t.box($t.types.trex,Pe)}},{key:"moof",value:function(De,ke){return $t.box($t.types.moof,$t.mfhd(De.sequenceNumber),$t.traf(De,ke))}},{key:"mfhd",value:function(De){var ke=new Uint8Array([0,0,0,0,De>>>24&255,De>>>16&255,De>>>8&255,De&255]);return $t.box($t.types.mfhd,ke)}},{key:"traf",value:function(De,ke){var Pe=De.id,tt=$t.box($t.types.tfhd,new Uint8Array([0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255])),yt=$t.box($t.types.tfdt,new Uint8Array([0,0,0,0,ke>>>24&255,ke>>>16&255,ke>>>8&255,ke&255])),Et=$t.sdtp(De),Yt=$t.trun(De,Et.byteLength+16+16+8+16+8+8);return $t.box($t.types.traf,tt,yt,Yt,Et)}},{key:"sdtp",value:function(De){for(var ke=De.samples||[],Pe=ke.length,tt=new Uint8Array(4+Pe),yt=0;yt<Pe;yt++){var Et=ke[yt].flags;tt[yt+4]=Et.isLeading<<6|Et.dependsOn<<4|Et.isDependedOn<<2|Et.hasRedundancy}return $t.box($t.types.sdtp,tt)}},{key:"trun",value:function(De,ke){var Pe=De.samples||[],tt=Pe.length,yt=12+16*tt,Et=new Uint8Array(yt);ke+=8+yt,Et.set([0,0,15,1,tt>>>24&255,tt>>>16&255,tt>>>8&255,tt&255,ke>>>24&255,ke>>>16&255,ke>>>8&255,ke&255],0);for(var Yt=0;Yt<tt;Yt++){var Rr=Pe[Yt].duration,zr=Pe[Yt].size,hn=Pe[Yt].flags,jt=Pe[Yt].cts;Et.set([Rr>>>24&255,Rr>>>16&255,Rr>>>8&255,Rr&255,zr>>>24&255,zr>>>16&255,zr>>>8&255,zr&255,hn.isLeading<<2|hn.dependsOn,hn.isDependedOn<<6|hn.hasRedundancy<<4|hn.isNonSync,0,0,jt>>>24&255,jt>>>16&255,jt>>>8&255,jt&255],12+16*Yt)}return $t.box($t.types.trun,Et)}},{key:"mdat",value:function(De){return $t.box($t.types.mdat,De)}}]),$t}();ft.init();var He=ft,er=function(){function $t(){Object(y.a)(this,$t)}return Object(f.a)($t,null,[{key:"getSilentFrame",value:function(De,ke){if(De==="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}}]),$t}(),ct=er,Kt=Object(f.a)(function $t(xt,De,ke,Pe,tt){Object(y.a)(this,$t),this.dts=xt,this.pts=De,this.duration=ke,this.originalDts=Pe,this.isSyncPoint=tt,this.fileposition=null}),fr=function(){function $t(){Object(y.a)(this,$t),this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return Object(f.a)($t,[{key:"appendSyncPoint",value:function(De){De.isSyncPoint=!0,this.syncPoints.push(De)}}]),$t}(),Gt=function(){function $t(){Object(y.a)(this,$t),this._list=[]}return Object(f.a)($t,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(De){var ke=this._list;if(De.length===0)return;ke.length>0&&De[0].originalDts<ke[ke.length-1].originalDts&&this.clear(),Array.prototype.push.apply(ke,De)}},{key:"getLastSyncPointBeforeDts",value:function(De){if(this._list.length==0)return null;var ke=this._list,Pe=0,tt=ke.length-1,yt=0,Et=0,Yt=tt;for(De<ke[0].dts&&(Pe=0,Et=Yt+1);Et<=Yt;)if(yt=Et+Math.floor((Yt-Et)/2),yt===tt||De>=ke[yt].dts&&De<ke[yt+1].dts){Pe=yt;break}else ke[yt].dts<De?Et=yt+1:Yt=yt-1;return this._list[Pe]}}]),$t}(),Pt=function(){function $t(xt){Object(y.a)(this,$t),this._type=xt,this._list=[],this._lastAppendLocation=-1}return Object(f.a)($t,[{key:"type",get:function(){return this._type}},{key:"length",get:function(){return this._list.length}},{key:"isEmpty",value:function(){return this._list.length===0}},{key:"clear",value:function(){this._list=[],this._lastAppendLocation=-1}},{key:"_searchNearestSegmentBefore",value:function(De){var ke=this._list;if(ke.length===0)return-2;var Pe=ke.length-1,tt=0,yt=0,Et=Pe,Yt=0;if(De<ke[0].originalBeginDts)return Yt=-1,Yt;for(;yt<=Et;)if(tt=yt+Math.floor((Et-yt)/2),tt===Pe||De>ke[tt].lastSample.originalDts&&De<ke[tt+1].originalBeginDts){Yt=tt;break}else ke[tt].originalBeginDts<De?yt=tt+1:Et=tt-1;return Yt}},{key:"_searchNearestSegmentAfter",value:function(De){return this._searchNearestSegmentBefore(De)+1}},{key:"append",value:function(De){var ke=this._list,Pe=De,tt=this._lastAppendLocation,yt=0;tt!==-1&&tt<ke.length&&Pe.originalBeginDts>=ke[tt].lastSample.originalDts&&(tt===ke.length-1||tt<ke.length-1&&Pe.originalBeginDts<ke[tt+1].originalBeginDts)?yt=tt+1:ke.length>0&&(yt=this._searchNearestSegmentBefore(Pe.originalBeginDts)+1),this._lastAppendLocation=yt,this._list.splice(yt,0,Pe)}},{key:"getLastSegmentBefore",value:function(De){var ke=this._searchNearestSegmentBefore(De);return ke>=0?this._list[ke]:null}},{key:"getLastSampleBefore",value:function(De){var ke=this.getLastSegmentBefore(De);return ke!=null?ke.lastSample:null}},{key:"getLastSyncPointBefore",value:function(De){for(var ke=this._searchNearestSegmentBefore(De),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}}]),$t}(),Xt=function(){function $t(xt){Object(y.a)(this,$t),this.TAG="MP4Remuxer",this._config=xt,this._isLive=xt.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=Infinity,this._videoDtsBase=Infinity,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Pt("audio"),this._videoSegmentInfoList=new Pt("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(C.chrome&&(C.version.major<50||C.version.major===50&&C.version.build<2661)),this._fillSilentAfterSeek=C.msedge||C.msie,this._mp3UseMpegAudio=!C.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(f.a)($t,[{key:"destroy",value:function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}},{key:"bindDataSource",value:function(De){return De.onDataAvailable=this.remux.bind(this),De.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(De){this._onInitSegment=De}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(De){this._onMediaSegment=De}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(De){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(De,ke){if(!this._onMediaSegment)throw new l("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(De,ke),this._remuxVideo(ke),this._remuxAudio(De)}},{key:"_onTrackMetadataReceived",value:function(De,ke){var Pe=null,tt="mp4",yt=ke.codec;if(De==="audio")this._audioMeta=ke,ke.codec==="mp3"&&this._mp3UseMpegAudio?(tt="mpeg",yt="",Pe=new Uint8Array):Pe=He.generateInitSegment(ke);else if(De==="video")this._videoMeta=ke,Pe=He.generateInitSegment(ke);else return;if(!this._onInitSegment)throw new l("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(De,{type:De,data:Pe.buffer,codec:yt,container:"".concat(De,"/").concat(tt),mediaDuration:ke.duration})}},{key:"_calculateDtsBase",value:function(De,ke){if(this._dtsBaseInited)return;De.samples&&De.samples.length&&(this._audioDtsBase=De.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 De=this._videoStashedLastSample,ke=this._audioStashedLastSample,Pe={type:"video",id:1,sequenceNumber:0,samples:[],length:0};De!=null&&(Pe.samples.push(De),Pe.length=De.length);var tt={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};ke!=null&&(tt.samples.push(ke),tt.length=ke.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Pe,!0),this._remuxAudio(tt,!0)}},{key:"_remuxAudio",value:function(De,ke){if(this._audioMeta==null)return;var Pe=De,tt=Pe.samples,yt=void 0,Et=-1,Yt=-1,Rr=-1,zr=this._audioMeta.refSampleDuration,hn=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,jt=this._dtsBaseInited&&this._audioNextDts===void 0,vt=!1;if(!tt||tt.length===0)return;if(tt.length===1&&!ke)return;var bt=0,cr=null,Qt=0;hn?(bt=0,Qt=Pe.length):(bt=8,Qt=8+Pe.length);var Mt=null;if(tt.length>1&&(Mt=tt.pop(),Qt-=Mt.length),this._audioStashedLastSample!=null){var tr=this._audioStashedLastSample;this._audioStashedLastSample=null,tt.unshift(tr),Qt+=tr.length}Mt!=null&&(this._audioStashedLastSample=Mt);var Rt=tt[0].dts-this._dtsBase;if(this._audioNextDts)yt=Rt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())yt=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(vt=!0));else{var qt=this._audioSegmentInfoList.getLastSampleBefore(Rt);if(qt!=null){var Hr=Rt-(qt.originalDts+qt.duration);Hr<=3&&(Hr=0);var Nr=qt.dts+qt.duration+Hr;yt=Rt-Nr}else yt=0}if(vt){var Dr=Rt-yt,cn=this._videoSegmentInfoList.getLastSegmentBefore(Rt);if(cn!=null&&cn.beginDts<Dr){var An=ct.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(An){var ri=cn.beginDts,$n=Dr-cn.beginDts;u.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(ri,", duration: ").concat($n)),tt.unshift({unit:An,dts:ri,pts:ri}),Qt+=An.byteLength}}else vt=!1}for(var fi=[],_i=0;_i<tt.length;_i++){var Di=tt[_i],Wi=Di.unit,it=Di.dts-this._dtsBase,Le=it-yt;Et===-1&&(Et=Le);var je=0;if(_i!==tt.length-1){var Xe=tt[_i+1].dts-this._dtsBase-yt;je=Xe-Le}else if(Mt!=null){var nt=Mt.dts-this._dtsBase-yt;je=nt-Le}else fi.length>=1?je=fi[fi.length-1].duration:je=Math.floor(zr);var Ze=!1,ot=null;if(je>zr*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!C.safari){Ze=!0;var Ct=Math.abs(je-zr),gt=Math.ceil(Ct/zr),pr=Le+zr;u.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
|
`+"dts: ".concat(Le+je," ms, expected: ").concat(Le+Math.round(zr)," ms, ")+"delta: ".concat(Math.round(Ct)," ms, generate: ").concat(gt," frames"));var $r=ct.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);$r==null&&(u.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),$r=Wi),ot=[];for(var Yr=0;Yr<gt;Yr++){var mn=Math.round(pr);if(ot.length>0){var Ar=ot[ot.length-1];Ar.duration=mn-Ar.dts}var zn={dts:mn,pts:mn,cts:0,unit:$r,size:$r.byteLength,duration:0,originalDts:it,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};ot.push(zn),Qt+=zn.size,pr+=zr}var Fr=ot[ot.length-1];Fr.duration=Le+je-Fr.dts,je=Math.round(zr)}fi.push({dts:Le,pts:Le,cts:0,unit:Di.unit,size:Di.unit.byteLength,duration:je,originalDts:it,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Ze&&fi.push.apply(fi,ot)}hn?cr=new Uint8Array(Qt):(cr=new Uint8Array(Qt),cr[0]=Qt>>>24&255,cr[1]=Qt>>>16&255,cr[2]=Qt>>>8&255,cr[3]=Qt&255,cr.set(He.types.mdat,4));for(var Bn=0;Bn<fi.length;Bn++){var bn=fi[Bn].unit;cr.set(bn,bt),bt+=bn.byteLength}var en=fi[fi.length-1];Yt=en.dts+en.duration,this._audioNextDts=Yt;var ti=new fr;ti.beginDts=Et,ti.endDts=Yt,ti.beginPts=Et,ti.endPts=Yt,ti.originalBeginDts=fi[0].originalDts,ti.originalEndDts=en.originalDts+en.duration,ti.firstSample=new Kt(fi[0].dts,fi[0].pts,fi[0].duration,fi[0].originalDts,!1),ti.lastSample=new Kt(en.dts,en.pts,en.duration,en.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(ti),Pe.samples=fi,Pe.sequenceNumber++;var pi=null;hn?pi=new Uint8Array:pi=He.moof(Pe,Et),Pe.samples=[],Pe.length=0;var Pi={type:"audio",data:this._mergeBoxes(pi,cr).buffer,sampleCount:fi.length,info:ti};hn&&jt&&(Pi.timestampOffset=Et),this._onMediaSegment("audio",Pi)}},{key:"_remuxVideo",value:function(De,ke){if(this._videoMeta==null)return;var Pe=De,tt=Pe.samples,yt=void 0,Et=-1,Yt=-1,Rr=-1,zr=-1;if(!tt||tt.length===0)return;if(tt.length===1&&!ke)return;var hn=8,jt=null,vt=8+De.length,bt=null;if(tt.length>1&&(bt=tt.pop(),vt-=bt.length),this._videoStashedLastSample!=null){var cr=this._videoStashedLastSample;this._videoStashedLastSample=null,tt.unshift(cr),vt+=cr.length}bt!=null&&(this._videoStashedLastSample=bt);var Qt=tt[0].dts-this._dtsBase;if(this._videoNextDts)yt=Qt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())yt=0;else{var Mt=this._videoSegmentInfoList.getLastSampleBefore(Qt);if(Mt!=null){var tr=Qt-(Mt.originalDts+Mt.duration);tr<=3&&(tr=0);var Rt=Mt.dts+Mt.duration+tr;yt=Qt-Rt}else yt=0}for(var qt=new fr,Hr=[],Nr=0;Nr<tt.length;Nr++){var Dr=tt[Nr],cn=Dr.dts-this._dtsBase,An=Dr.isKeyframe,ri=cn-yt,$n=Dr.cts,fi=ri+$n;Et===-1&&(Et=ri,Rr=fi);var _i=0;if(Nr!==tt.length-1){var Di=tt[Nr+1].dts-this._dtsBase-yt;_i=Di-ri}else if(bt!=null){var Wi=bt.dts-this._dtsBase-yt;_i=Wi-ri}else Hr.length>=1?_i=Hr[Hr.length-1].duration:_i=Math.floor(this._videoMeta.refSampleDuration);if(An){var it=new Kt(ri,fi,_i,Dr.dts,!0);it.fileposition=Dr.fileposition,qt.appendSyncPoint(it)}Hr.push({dts:ri,pts:fi,cts:$n,units:Dr.units,size:Dr.length,isKeyframe:An,duration:_i,originalDts:cn,flags:{isLeading:0,dependsOn:An?2:1,isDependedOn:An?1:0,hasRedundancy:0,isNonSync:An?0:1}})}jt=new Uint8Array(vt),jt[0]=vt>>>24&255,jt[1]=vt>>>16&255,jt[2]=vt>>>8&255,jt[3]=vt&255,jt.set(He.types.mdat,4);for(var Le=0;Le<Hr.length;Le++)for(var je=Hr[Le].units;je.length;){var Xe=je.shift(),nt=Xe.data;jt.set(nt,hn),hn+=nt.byteLength}var Ze=Hr[Hr.length-1];if(Yt=Ze.dts+Ze.duration,zr=Ze.pts+Ze.duration,this._videoNextDts=Yt,qt.beginDts=Et,qt.endDts=Yt,qt.beginPts=Rr,qt.endPts=zr,qt.originalBeginDts=Hr[0].originalDts,qt.originalEndDts=Ze.originalDts+Ze.duration,qt.firstSample=new Kt(Hr[0].dts,Hr[0].pts,Hr[0].duration,Hr[0].originalDts,Hr[0].isKeyframe),qt.lastSample=new Kt(Ze.dts,Ze.pts,Ze.duration,Ze.originalDts,Ze.isKeyframe),this._isLive||this._videoSegmentInfoList.append(qt),Pe.samples=Hr,Pe.sequenceNumber++,this._forceFirstIDR){var ot=Hr[0].flags;ot.dependsOn=2,ot.isNonSync=0}var Ct=He.moof(Pe,Et);Pe.samples=[],Pe.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Ct,jt).buffer,sampleCount:Hr.length,info:qt})}},{key:"_mergeBoxes",value:function(De,ke){var Pe=new Uint8Array(De.byteLength+ke.byteLength);return Pe.set(De,0),Pe.set(ke,De.byteLength),Pe}}]),$t}(),Ge=Xt,pe={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"},oe=pe,lt=function(){function $t(xt,De){Object(y.a)(this,$t),this.TAG="TransmuxingController",this._emitter=new p.a,this._config=De,xt.segments||(xt.segments=[{duration:xt.duration,filesize:xt.filesize,url:xt.url}]),typeof xt.cors!="boolean"&&(xt.cors=!0),typeof xt.withCredentials!="boolean"&&(xt.withCredentials=!1),this._mediaDataSource=xt,this._currentSegmentIndex=0;var ke=0;this._mediaDataSource.segments.forEach(function(Pe){Pe.timestampBase=ke,ke+=Pe.duration,Pe.cors=xt.cors,Pe.withCredentials=xt.withCredentials,De.referrerPolicy&&(Pe.referrerPolicy=De.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(f.a)($t,[{key:"destroy",value:function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(De,ke){this._emitter.addListener(De,ke)}},{key:"off",value:function(De,ke){this._emitter.removeListener(De,ke)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(De,ke){this._currentSegmentIndex=De;var Pe=this._mediaDataSource.segments[De],tt=this._ioctl=new Q(Pe,this._config,De);tt.onError=this._onIOException.bind(this),tt.onSeeked=this._onIOSeeked.bind(this),tt.onComplete=this._onIOComplete.bind(this),tt.onRedirect=this._onIORedirect.bind(this),tt.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),ke?this._demuxer.bindDataSource(this._ioctl):tt.onDataArrival=this._onInitChunkArrival.bind(this),tt.open(ke)}},{key:"stop",value:function(){this._internalAbort(),this._disableStatisticsReporter()}},{key:"_internalAbort",value:function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}},{key:"pause",value:function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}},{key:"resume",value:function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}},{key:"seek",value:function(De){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var ke=this._searchSegmentIndexContains(De);if(ke===this._currentSegmentIndex){var Pe=this._mediaInfo.segments[ke];if(Pe==null)this._pendingSeekTime=De;else{var tt=Pe.getNearestKeyframe(De);this._remuxer.seek(tt.milliseconds),this._ioctl.seek(tt.fileposition),this._pendingResolveSeekPoint=tt.milliseconds}}else{var yt=this._mediaInfo.segments[ke];if(yt==null)this._pendingSeekTime=De,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(ke);else{var Et=yt.getNearestKeyframe(De);this._internalAbort(),this._remuxer.seek(De),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[ke].timestampBase,this._loadSegment(ke,Et.fileposition),this._pendingResolveSeekPoint=Et.milliseconds,this._reportSegmentMediaInfo(ke)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(De){for(var ke=this._mediaDataSource.segments,Pe=ke.length-1,tt=0;tt<ke.length;tt++)if(De<ke[tt].timestampBase){Pe=tt-1;break}return Pe}},{key:"_onInitChunkArrival",value:function(De,ke){var Pe=this,tt=null,yt=0;if(ke>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,yt=this._demuxer.parseChunks(De,ke);else if((tt=St.probe(De)).match){this._demuxer=new St(tt,this._config),this._remuxer||(this._remuxer=new Ge(this._config));var Et=this._mediaDataSource;Et.duration!=null&&!isNaN(Et.duration)&&(this._demuxer.overridedDuration=Et.duration),typeof Et.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Et.hasAudio),typeof Et.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Et.hasVideo),this._demuxer.timestampBase=Et.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),yt=this._demuxer.parseChunks(De,ke)}else tt=null,u.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){Pe._internalAbort()}),this._emitter.emit(oe.DEMUX_ERROR,Be.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),yt=0;return yt}},{key:"_onMediaInfo",value:function(De){var ke=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},De),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Ve.prototype));var Pe=Object.assign({},De);Object.setPrototypeOf(Pe,Ve.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Pe,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var tt=ke._pendingSeekTime;ke._pendingSeekTime=null,ke.seek(tt)})}},{key:"_onMetaDataArrived",value:function(De){this._emitter.emit(oe.METADATA_ARRIVED,De)}},{key:"_onScriptDataArrived",value:function(De){this._emitter.emit(oe.SCRIPTDATA_ARRIVED,De)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(De){var ke=De,Pe=ke+1;Pe<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Pe)):(this._remuxer.flushStashedSamples(),this._emitter.emit(oe.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(De){var ke=this._ioctl.extraData;this._mediaDataSource.segments[ke].redirectedURL=De}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(oe.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(De,ke){u.e(this.TAG,"IOException: type = ".concat(De,", code = ").concat(ke.code,", msg = ").concat(ke.msg)),this._emitter.emit(oe.IO_ERROR,De,ke),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(De,ke){u.e(this.TAG,"DemuxException: type = ".concat(De,", info = ").concat(ke)),this._emitter.emit(oe.DEMUX_ERROR,De,ke)}},{key:"_onRemuxerInitSegmentArrival",value:function(De,ke){this._emitter.emit(oe.INIT_SEGMENT,De,ke)}},{key:"_onRemuxerMediaSegmentArrival",value:function(De,ke){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(oe.MEDIA_SEGMENT,De,ke),this._pendingResolveSeekPoint!=null&&De==="video"){var Pe=ke.info.syncPoints,tt=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,C.safari&&Pe.length>0&&Pe[0].originalDts===tt&&(tt=Pe[0].pts),this._emitter.emit(oe.RECOMMEND_SEEKPOINT,tt)}}},{key:"_enableStatisticsReporter",value:function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(De){var ke=this._mediaInfo.segments[De],Pe=Object.assign({},ke);Pe.duration=this._mediaInfo.duration,Pe.segmentCount=this._mediaInfo.segmentCount,delete Pe.segments,delete Pe.keyframesIndex,this._emitter.emit(oe.MEDIA_INFO,Pe)}},{key:"_reportStatisticsInfo",value:function(){var De={};De.url=this._ioctl.currentURL,De.hasRedirect=this._ioctl.hasRedirect,De.hasRedirect&&(De.redirectedURL=this._ioctl.currentRedirectedURL),De.speed=this._ioctl.currentSpeed,De.loaderType=this._ioctl.loaderType,De.currentSegmentIndex=this._currentSegmentIndex,De.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(oe.STATISTICS_INFO,De)}}]),$t}(),qe=lt,ge=function(xt){var De="TransmuxingWorker",ke=null,Pe=Qt.bind(this);v.install(),xt.addEventListener("message",function(Mt){switch(Mt.data.cmd){case"init":ke=new qe(Mt.data.param[0],Mt.data.param[1]),ke.on(oe.IO_ERROR,vt.bind(this)),ke.on(oe.DEMUX_ERROR,bt.bind(this)),ke.on(oe.INIT_SEGMENT,tt.bind(this)),ke.on(oe.MEDIA_SEGMENT,yt.bind(this)),ke.on(oe.LOADING_COMPLETE,Et.bind(this)),ke.on(oe.RECOVERED_EARLY_EOF,Yt.bind(this)),ke.on(oe.MEDIA_INFO,Rr.bind(this)),ke.on(oe.METADATA_ARRIVED,zr.bind(this)),ke.on(oe.SCRIPTDATA_ARRIVED,hn.bind(this)),ke.on(oe.STATISTICS_INFO,jt.bind(this)),ke.on(oe.RECOMMEND_SEEKPOINT,cr.bind(this));break;case"destroy":ke&&(ke.destroy(),ke=null),xt.postMessage({msg:"destroyed"});break;case"start":ke.start();break;case"stop":ke.stop();break;case"seek":ke.seek(Mt.data.param);break;case"pause":ke.pause();break;case"resume":ke.resume();break;case"logging_config":{var tr=Mt.data.param;Me.applyConfig(tr),tr.enableCallback===!0?Me.addLogListener(Pe):Me.removeLogListener(Pe);break}}});function tt(Mt,tr){var Rt={msg:oe.INIT_SEGMENT,data:{type:Mt,data:tr}};xt.postMessage(Rt,[tr.data])}function yt(Mt,tr){var Rt={msg:oe.MEDIA_SEGMENT,data:{type:Mt,data:tr}};xt.postMessage(Rt,[tr.data])}function Et(){var Mt={msg:oe.LOADING_COMPLETE};xt.postMessage(Mt)}function Yt(){var Mt={msg:oe.RECOVERED_EARLY_EOF};xt.postMessage(Mt)}function Rr(Mt){var tr={msg:oe.MEDIA_INFO,data:Mt};xt.postMessage(tr)}function zr(Mt){var tr={msg:oe.METADATA_ARRIVED,data:Mt};xt.postMessage(tr)}function hn(Mt){var tr={msg:oe.SCRIPTDATA_ARRIVED,data:Mt};xt.postMessage(tr)}function jt(Mt){var tr={msg:oe.STATISTICS_INFO,data:Mt};xt.postMessage(tr)}function vt(Mt,tr){xt.postMessage({msg:oe.IO_ERROR,data:{type:Mt,info:tr}})}function bt(Mt,tr){xt.postMessage({msg:oe.DEMUX_ERROR,data:{type:Mt,info:tr}})}function cr(Mt){xt.postMessage({msg:oe.RECOMMEND_SEEKPOINT,data:Mt})}function Qt(Mt,tr){xt.postMessage({msg:"logcat_callback",data:{type:Mt,logcat:tr}})}},Ht=ge,vr=function(){function $t(xt,De){if(Object(y.a)(this,$t),this.TAG="Transmuxer",this._emitter=new p.a,De.enableWorker&&typeof Worker!="undefined")try{var ke=n("0r65");this._worker=ke(Ht),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[xt,De]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},Me.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:Me.getConfig()})}catch(tt){u.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new qe(xt,De)}else this._controller=new qe(xt,De);if(this._controller){var Pe=this._controller;Pe.on(oe.IO_ERROR,this._onIOError.bind(this)),Pe.on(oe.DEMUX_ERROR,this._onDemuxError.bind(this)),Pe.on(oe.INIT_SEGMENT,this._onInitSegment.bind(this)),Pe.on(oe.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Pe.on(oe.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Pe.on(oe.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Pe.on(oe.MEDIA_INFO,this._onMediaInfo.bind(this)),Pe.on(oe.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Pe.on(oe.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Pe.on(oe.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Pe.on(oe.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(f.a)($t,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),Me.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(De,ke){this._emitter.addListener(De,ke)}},{key:"off",value:function(De,ke){this._emitter.removeListener(De,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(De){this._worker?this._worker.postMessage({cmd:"seek",param:De}):this._controller.seek(De)}},{key:"pause",value:function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}},{key:"resume",value:function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}},{key:"_onInitSegment",value:function(De,ke){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(oe.INIT_SEGMENT,De,ke)})}},{key:"_onMediaSegment",value:function(De,ke){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(oe.MEDIA_SEGMENT,De,ke)})}},{key:"_onLoadingComplete",value:function(){var De=this;Promise.resolve().then(function(){De._emitter.emit(oe.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var De=this;Promise.resolve().then(function(){De._emitter.emit(oe.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(De){var ke=this;Promise.resolve().then(function(){ke._emitter.emit(oe.MEDIA_INFO,De)})}},{key:"_onMetaDataArrived",value:function(De){var ke=this;Promise.resolve().then(function(){ke._emitter.emit(oe.METADATA_ARRIVED,De)})}},{key:"_onScriptDataArrived",value:function(De){var ke=this;Promise.resolve().then(function(){ke._emitter.emit(oe.SCRIPTDATA_ARRIVED,De)})}},{key:"_onStatisticsInfo",value:function(De){var ke=this;Promise.resolve().then(function(){ke._emitter.emit(oe.STATISTICS_INFO,De)})}},{key:"_onIOError",value:function(De,ke){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(oe.IO_ERROR,De,ke)})}},{key:"_onDemuxError",value:function(De,ke){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(oe.DEMUX_ERROR,De,ke)})}},{key:"_onRecommendSeekpoint",value:function(De){var ke=this;Promise.resolve().then(function(){ke._emitter.emit(oe.RECOMMEND_SEEKPOINT,De)})}},{key:"_onLoggingConfigChanged",value:function(De){this._worker&&this._worker.postMessage({cmd:"logging_config",param:De})}},{key:"_onWorkerMessage",value:function(De){var ke=De.data,Pe=ke.data;if(ke.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(ke.msg){case oe.INIT_SEGMENT:case oe.MEDIA_SEGMENT:this._emitter.emit(ke.msg,Pe.type,Pe.data);break;case oe.LOADING_COMPLETE:case oe.RECOVERED_EARLY_EOF:this._emitter.emit(ke.msg);break;case oe.MEDIA_INFO:Object.setPrototypeOf(Pe,Ve.prototype),this._emitter.emit(ke.msg,Pe);break;case oe.METADATA_ARRIVED:case oe.SCRIPTDATA_ARRIVED:case oe.STATISTICS_INFO:this._emitter.emit(ke.msg,Pe);break;case oe.IO_ERROR:case oe.DEMUX_ERROR:this._emitter.emit(ke.msg,Pe.type,Pe.info);break;case oe.RECOMMEND_SEEKPOINT:this._emitter.emit(ke.msg,Pe);break;case"logcat_callback":u.emitter.emit("log",Pe.type,Pe.logcat);break;default:break}}}]),$t}(),At=vr,ir={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},lr=ir,dn=function(){function $t(xt){Object(y.a)(this,$t),this.TAG="MSEController",this._config=xt,this._emitter=new p.a,this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new Gt}return Object(f.a)($t,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(De,ke){this._emitter.addListener(De,ke)}},{key:"off",value:function(De,ke){this._emitter.removeListener(De,ke)}},{key:"attachMediaElement",value:function(De){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=De,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),De.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var De=this._mediaSource;for(var ke in this._sourceBuffers){var Pe=this._pendingSegments[ke];Pe.splice(0,Pe.length),this._pendingSegments[ke]=null,this._pendingRemoveRanges[ke]=null,this._lastInitSegments[ke]=null;var tt=this._sourceBuffers[ke];if(tt){if(De.readyState!=="closed"){try{De.removeSourceBuffer(tt)}catch(yt){u.e(this.TAG,yt.message)}tt.removeEventListener("error",this.e.onSourceBufferError),tt.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[ke]=null,this._sourceBuffers[ke]=null}}if(De.readyState==="open")try{De.endOfStream()}catch(yt){u.e(this.TAG,yt.message)}De.removeEventListener("sourceopen",this.e.onSourceOpen),De.removeEventListener("sourceended",this.e.onSourceEnded),De.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}},{key:"appendInitSegment",value:function(De,ke){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(De),this._pendingSegments[De.type].push(De);return}var Pe=De,tt="".concat(Pe.container);Pe.codec&&Pe.codec.length>0&&(tt+=";codecs=".concat(Pe.codec));var yt=!1;if(u.v(this.TAG,"Received Initialization Segment, mimeType: "+tt),this._lastInitSegments[Pe.type]=Pe,tt!==this._mimeTypes[Pe.type]){if(this._mimeTypes[Pe.type])u.v(this.TAG,"Notice: ".concat(Pe.type," mimeType changed, origin: ").concat(this._mimeTypes[Pe.type],", target: ").concat(tt));else{yt=!0;try{var Et=this._sourceBuffers[Pe.type]=this._mediaSource.addSourceBuffer(tt);Et.addEventListener("error",this.e.onSourceBufferError),Et.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(Yt){u.e(this.TAG,Yt.message),this._emitter.emit(lr.ERROR,{code:Yt.code,msg:Yt.message});return}}this._mimeTypes[Pe.type]=tt}ke||this._pendingSegments[Pe.type].push(Pe),yt||this._sourceBuffers[Pe.type]&&!this._sourceBuffers[Pe.type].updating&&this._doAppendSegments(),C.safari&&Pe.container==="audio/mpeg"&&Pe.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Pe.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(De){var ke=De;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(De){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(zr){u.e(this.TAG,zr.message)}this._idrList.clear();var tt=this._pendingSegments[ke];if(tt.splice(0,tt.length),this._mediaSource.readyState==="closed")continue;for(var yt=0;yt<Pe.buffered.length;yt++){var Et=Pe.buffered.start(yt),Yt=Pe.buffered.end(yt);this._pendingRemoveRanges[ke].push({start:Et,end:Yt})}if(Pe.updating||this._doRemoveRanges(),C.safari){var Rr=this._lastInitSegments[ke];Rr&&(this._pendingSegments[ke].push(Rr),Pe.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var De=this._mediaSource,ke=this._sourceBuffers;if(!De||De.readyState!=="open"){De&&De.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}ke.video&&ke.video.updating||ke.audio&&ke.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,De.endOfStream())}},{key:"getNearestKeyframe",value:function(De){return this._idrList.getLastSyncPointBeforeDts(De)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var De=this._mediaElement.currentTime;for(var ke in this._sourceBuffers){var Pe=this._sourceBuffers[ke];if(Pe){var tt=Pe.buffered;if(tt.length>=1&&De-tt.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var De=this._mediaElement.currentTime;for(var ke in this._sourceBuffers){var Pe=this._sourceBuffers[ke];if(Pe){for(var tt=Pe.buffered,yt=!1,Et=0;Et<tt.length;Et++){var Yt=tt.start(Et),Rr=tt.end(Et);if(Yt<=De&&De<Rr+3){if(De-Yt>=this._config.autoCleanupMaxBackwardDuration){yt=!0;var zr=De-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[ke].push({start:Yt,end:zr})}}else Rr<De&&(yt=!0,this._pendingRemoveRanges[ke].push({start:Yt,end:Rr}))}yt&&!Pe.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var De=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(De.video&&De.video.updating||De.audio&&De.audio.updating)return;var ke=this._mediaSource.duration,Pe=this._pendingMediaDuration;Pe>0&&(isNaN(ke)||Pe>ke)&&(u.v(this.TAG,"Update MediaSource duration from ".concat(ke," to ").concat(Pe)),this._mediaSource.duration=Pe),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var De in this._pendingRemoveRanges){if(!this._sourceBuffers[De]||this._sourceBuffers[De].updating)continue;for(var ke=this._sourceBuffers[De],Pe=this._pendingRemoveRanges[De];Pe.length&&!ke.updating;){var tt=Pe.shift();ke.remove(tt.start,tt.end)}}}},{key:"_doAppendSegments",value:function(){var De=this._pendingSegments;for(var ke in De){if(!this._sourceBuffers[ke]||this._sourceBuffers[ke].updating)continue;if(De[ke].length>0){var Pe=De[ke].shift();if(Pe.timestampOffset){var tt=this._sourceBuffers[ke].timestampOffset,yt=Pe.timestampOffset/1e3,Et=Math.abs(tt-yt);Et>.1&&(u.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(tt," 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(Yt){this._pendingSegments[ke].unshift(Pe),Yt.code===22?(this._isBufferFull||this._emitter.emit(lr.BUFFER_FULL),this._isBufferFull=!0):(u.e(this.TAG,Yt.message),this._emitter.emit(lr.ERROR,{code:Yt.code,msg:Yt.message}))}}}}},{key:"_onSourceOpen",value:function(){if(u.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var De=this._pendingSourceBufferInit;De.length;){var ke=De.shift();this.appendInitSegment(ke,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(lr.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){u.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){u.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}},{key:"_hasPendingSegments",value:function(){var De=this._pendingSegments;return De.video.length>0||De.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var De=this._pendingRemoveRanges;return De.video.length>0||De.audio.length>0}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(lr.UPDATE_END)}},{key:"_onSourceBufferError",value:function(De){u.e(this.TAG,"SourceBuffer Error: ".concat(De))}}]),$t}(),Ft=dn,ur={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Jt={NETWORK_EXCEPTION:h.EXCEPTION,NETWORK_STATUS_CODE_INVALID:h.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:h.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:h.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:Be.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Be.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Be.CODEC_UNSUPPORTED},pt=function(){function $t(xt,De){if(Object(y.a)(this,$t),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new p.a,this._config=te(),typeof De=="object"&&Object.assign(this._config,De),xt.type.toLowerCase()!=="flv")throw new r("FlvPlayer requires an flv MediaDataSource input!");xt.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=xt,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var ke=C.chrome&&(C.version.major<50||C.version.major===50&&C.version.build<2661);this._alwaysSeekKeyframe=!!(ke||C.msedge||C.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(f.a)($t,[{key:"destroy",value:function(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(De,ke){var Pe=this;De===xe.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){Pe._emitter.emit(xe.MEDIA_INFO,Pe.mediaInfo)}):De===xe.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){Pe._emitter.emit(xe.STATISTICS_INFO,Pe.statisticsInfo)})),this._emitter.addListener(De,ke)}},{key:"off",value:function(De,ke){this._emitter.removeListener(De,ke)}},{key:"attachMediaElement",value:function(De){var ke=this;if(this._mediaElement=De,De.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),De.addEventListener("seeking",this.e.onvSeeking),De.addEventListener("canplay",this.e.onvCanPlay),De.addEventListener("stalled",this.e.onvStalled),De.addEventListener("progress",this.e.onvProgress),this._msectl=new Ft(this._config),this._msectl.on(lr.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(lr.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(lr.SOURCE_OPEN,function(){ke._mseSourceOpened=!0,ke._hasPendingLoad&&(ke._hasPendingLoad=!1,ke.load())}),this._msectl.on(lr.ERROR,function(Pe){ke._emitter.emit(xe.ERROR,ur.MEDIA_ERROR,Jt.MEDIA_MSE_ERROR,Pe)}),this._msectl.attachMediaElement(De),this._pendingSeekTime!=null)try{De.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 De=this;if(!this._mediaElement)throw new l("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new l("FlvPlayer.load() has been called, please call unload() first!");if(this._hasPendingLoad)return;if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new At(this._mediaDataSource,this._config),this._transmuxer.on(oe.INIT_SEGMENT,function(ke,Pe){De._msectl.appendInitSegment(Pe)}),this._transmuxer.on(oe.MEDIA_SEGMENT,function(ke,Pe){if(De._msectl.appendMediaSegment(Pe),De._config.lazyLoad&&!De._config.isLive){var tt=De._mediaElement.currentTime;Pe.info.endDts>=(tt+De._config.lazyLoadMaxDuration)*1e3&&(De._progressChecker==null&&(u.v(De.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),De._suspendTransmuxer()))}}),this._transmuxer.on(oe.LOADING_COMPLETE,function(){De._msectl.endOfStream(),De._emitter.emit(xe.LOADING_COMPLETE)}),this._transmuxer.on(oe.RECOVERED_EARLY_EOF,function(){De._emitter.emit(xe.RECOVERED_EARLY_EOF)}),this._transmuxer.on(oe.IO_ERROR,function(ke,Pe){De._emitter.emit(xe.ERROR,ur.NETWORK_ERROR,ke,Pe)}),this._transmuxer.on(oe.DEMUX_ERROR,function(ke,Pe){De._emitter.emit(xe.ERROR,ur.MEDIA_ERROR,ke,{code:-1,msg:Pe})}),this._transmuxer.on(oe.MEDIA_INFO,function(ke){De._mediaInfo=ke,De._emitter.emit(xe.MEDIA_INFO,Object.assign({},ke))}),this._transmuxer.on(oe.METADATA_ARRIVED,function(ke){De._emitter.emit(xe.METADATA_ARRIVED,ke)}),this._transmuxer.on(oe.SCRIPTDATA_ARRIVED,function(ke){De._emitter.emit(xe.SCRIPTDATA_ARRIVED,ke)}),this._transmuxer.on(oe.STATISTICS_INFO,function(ke){De._statisticsInfo=De._fillStatisticsInfo(ke),De._emitter.emit(xe.STATISTICS_INFO,Object.assign({},De._statisticsInfo))}),this._transmuxer.on(oe.RECOMMEND_SEEKPOINT,function(ke){De._mediaElement&&!De._config.accurateSeek&&(De._requestSetTime=!0,De._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(De){this._mediaElement.volume=De}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(De){this._mediaElement.muted=De}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(De){this._mediaElement?this._internalSeek(De):this._pendingSeekTime=De}},{key:"mediaInfo",get:function(){return Object.assign({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}},{key:"_fillStatisticsInfo",value:function(De){if(De.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return De;var ke=!0,Pe=0,tt=0;if(this._mediaElement.getVideoPlaybackQuality){var yt=this._mediaElement.getVideoPlaybackQuality();Pe=yt.totalVideoFrames,tt=yt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,tt=this._mediaElement.webkitDroppedFrameCount):ke=!1;return ke&&(De.decodedFrames=Pe,De.droppedFrames=tt),De}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var De=this._mediaElement.buffered,ke=this._mediaElement.currentTime,Pe=0,tt=0,yt=0;yt<De.length;yt++){var Et=De.start(yt),Yt=De.end(yt);if(Et<=ke&&ke<Yt){Pe=Et,tt=Yt;break}}tt>=ke+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(u.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},{key:"_onmseBufferFull",value:function(){u.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var De=this._mediaElement.currentTime,ke=this._mediaElement.buffered,Pe=!1,tt=0;tt<ke.length;tt++){var yt=ke.start(tt),Et=ke.end(tt);if(De>=yt&&De<Et){De>=Et-this._config.lazyLoadRecoverDuration&&(Pe=!0);break}}Pe&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Pe&&(u.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(De){for(var ke=this._mediaElement.buffered,Pe=0;Pe<ke.length;Pe++){var tt=ke.start(Pe),yt=ke.end(Pe);if(De>=tt&&De<yt)return!0}return!1}},{key:"_internalSeek",value:function(De){var ke=this._isTimepointBuffered(De),Pe=!1,tt=0;if(De<1&&this._mediaElement.buffered.length>0){var yt=this._mediaElement.buffered.start(0);(yt<1&&De<yt||C.safari)&&(Pe=!0,tt=C.safari?.1:yt)}if(Pe)this._requestSetTime=!0,this._mediaElement.currentTime=tt;else if(ke){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=De;else{var Et=this._msectl.getNearestKeyframe(Math.floor(De*1e3));this._requestSetTime=!0,Et!=null?this._mediaElement.currentTime=Et.dts/1e3:this._mediaElement.currentTime=De}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(De),this._transmuxer.seek(Math.floor(De*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=De)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var De=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(De)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(De),this._transmuxer.seek(Math.floor(De*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=De))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(De){var ke=this._mediaElement;if(De||!this._receivedCanPlay||ke.readyState<2){var Pe=ke.buffered;Pe.length>0&&ke.currentTime<Pe.start(0)&&(u.w(this.TAG,"Playback seems stuck at ".concat(ke.currentTime,", seek to ").concat(Pe.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=Pe.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(De){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(De){var ke=this._mediaElement.currentTime,Pe=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(ke<1&&Pe.length>0){var tt=Pe.start(0);if(tt<1&&ke<tt||C.safari){this._requestSetTime=!0,this._mediaElement.currentTime=C.safari?.1:tt;return}}if(this._isTimepointBuffered(ke)){if(this._alwaysSeekKeyframe){var 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(De){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(De){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(De){this._checkAndResumeStuckPlayback()}}]),$t}(),at=pt,Pr=function(){function $t(xt,De){if(Object(y.a)(this,$t),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new p.a,this._config=te(),typeof De=="object"&&Object.assign(this._config,De),xt.type.toLowerCase()==="flv")throw new r("NativePlayer does't support flv MediaDataSource input!");if(xt.hasOwnProperty("segments"))throw new r("NativePlayer(".concat(xt.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=xt,this._mediaElement=null}return Object(f.a)($t,[{key:"destroy",value:function(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(De,ke){var Pe=this;De===xe.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Pe._emitter.emit(xe.MEDIA_INFO,Pe.mediaInfo)}):De===xe.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Pe._emitter.emit(xe.STATISTICS_INFO,Pe.statisticsInfo)})),this._emitter.addListener(De,ke)}},{key:"off",value:function(De,ke){this._emitter.removeListener(De,ke)}},{key:"attachMediaElement",value:function(De){if(this._mediaElement=De,De.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{De.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(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(De){this._mediaElement.volume=De}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(De){this._mediaElement.muted=De}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(De){this._mediaElement?this._mediaElement.currentTime=De:this._pendingSeekTime=De}},{key:"mediaInfo",get:function(){var De=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",ke={mimeType:De+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 De={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return De;var ke=!0,Pe=0,tt=0;if(this._mediaElement.getVideoPlaybackQuality){var yt=this._mediaElement.getVideoPlaybackQuality();Pe=yt.totalVideoFrames,tt=yt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,tt=this._mediaElement.webkitDroppedFrameCount):ke=!1;return ke&&(De.decodedFrames=Pe,De.droppedFrames=tt),De}},{key:"_onvLoadedMetadata",value:function(De){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(xe.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(xe.STATISTICS_INFO,this.statisticsInfo)}}]),$t}(),un=Pr;v.install();function _n($t,xt){var De=$t;if(De==null||typeof De!="object")throw new r("MediaDataSource must be an javascript object!");if(!De.hasOwnProperty("type"))throw new r("MediaDataSource must has type field to indicate video file type!");switch(De.type){case"flv":return new at(De,xt);default:return new un(De,xt)}}function Xn(){return se.supportMSEH264Playback()}function xi(){return se.getFeatureList()}var Pn={};Pn.createPlayer=_n,Pn.isSupported=Xn,Pn.getFeatureList=xi,Pn.BaseLoader=g,Pn.LoaderStatus=c,Pn.LoaderErrors=h,Pn.Events=xe,Pn.ErrorTypes=ur,Pn.ErrorDetails=Jt,Pn.FlvPlayer=at,Pn.NativePlayer=un,Pn.LoggingControl=Me,Object.defineProperty(Pn,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Un=D.a=Pn},GVMX:function(R,D,n){var y=n("JEkh"),f=y.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});R.exports=f},GdRQ:function(R,D,n){"use strict";function y(C){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(T){return typeof T}:y=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},y(C)}Object.defineProperty(D,"__esModule",{value:!0}),D.isMac=c,D.isWindows=h,D.isIOS=g,D.isSafari=A,D.isIE=b,D.isEdge=S,D.isFirefox=E,D.hasScrollbarGutter=D.supportsImageMetadata=D.supportsCursorURIs=D.dragThreshold=D.isTouchDevice=void 0;var f=v(n("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var C=new WeakMap;return x=function(){return C},C}function v(C){if(C&&C.__esModule)return C;if(C===null||y(C)!=="object"&&typeof C!="function")return{default:C};var _=x();if(_&&_.has(C))return _.get(C);var T={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in C)if(Object.prototype.hasOwnProperty.call(C,O)){var I=w?Object.getOwnPropertyDescriptor(C,O):null;I&&(I.get||I.set)?Object.defineProperty(T,O,I):T[O]=C[O]}return T.default=C,_&&_.set(C,T),T}var m="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;D.isTouchDevice=m,window.addEventListener("touchstart",function C(){D.isTouchDevice=m=!0,window.removeEventListener("touchstart",C,!1)},!1);var p=10*(window.devicePixelRatio||1);D.dragThreshold=p;var d=!1;try{var u=document.createElement("canvas");u.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',u.style.cursor.indexOf("url")===0?(f.Info("Data URI scheme cursor supported"),d=!0):f.Warn("Data URI scheme cursor not supported")}catch(C){f.Error("Data URI scheme cursor test exception: "+C)}var s=d;D.supportsCursorURIs=s;var i=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),i=!0}catch(C){}var t=i;D.supportsImageMetadata=t;var o=!0;try{var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);var l=document.createElement("div");e.appendChild(l);var r=e.offsetWidth-l.offsetWidth;e.parentNode.removeChild(e),o=r!=0}catch(C){f.Error("Scrollbar test exception: "+C)}var a=o;D.hasScrollbarGutter=a;function c(){return navigator&&!!/mac/i.exec(navigator.platform)}function h(){return navigator&&!!/win/i.exec(navigator.platform)}function g(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function A(){return navigator&&navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}function b(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function S(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function E(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}},GeKi:function(R,D,n){var y=n("bYtY"),f=n("6Ic6"),x=n("IwbS"),v=n("y+Vt"),m=n("sK/D"),p=m.createClipPath,d=["itemStyle"],u=["emphasis","itemStyle"],s=["color","color0","borderColor","borderColor0"],i=f.extend({type:"candlestick",render:function(A,b,S){this.group.removeClipPath(),this._updateDrawMode(A),this._isLargeDraw?this._renderLarge(A):this._renderNormal(A)},incrementalPrepareRender:function(A,b,S){this._clear(),this._updateDrawMode(A)},incrementalRender:function(A,b,S,E){this._isLargeDraw?this._incrementalRenderLarge(A,b):this._incrementalRenderNormal(A,b)},_updateDrawMode:function(A){var b=A.pipelineContext.large;(this._isLargeDraw==null||b^this._isLargeDraw)&&(this._isLargeDraw=b,this._clear())},_renderNormal:function(A){var b=A.getData(),S=this._data,E=this.group,C=b.getLayout("isSimpleBox"),_=A.get("clip",!0),T=A.coordinateSystem,w=T.getArea&&T.getArea();this._data||E.removeAll(),b.diff(S).add(function(O){if(b.hasValue(O)){var I,k=b.getItemLayout(O);if(_&&e(w,k))return;I=o(k,O,!0),x.initProps(I,{shape:{points:k.ends}},A,O),l(I,b,O,C),E.add(I),b.setItemGraphicEl(O,I)}}).update(function(O,I){var k=S.getItemGraphicEl(I);if(!b.hasValue(O)){E.remove(k);return}var M=b.getItemLayout(O);if(_&&e(w,M)){E.remove(k);return}k?x.updateProps(k,{shape:{points:M.ends}},A,O):k=o(M,O),l(k,b,O,C),E.add(k),b.setItemGraphicEl(O,k)}).remove(function(O){var I=S.getItemGraphicEl(O);I&&E.remove(I)}).execute(),this._data=b},_renderLarge:function(A){this._clear(),c(A,this.group);var b=A.get("clip",!0)?p(A.coordinateSystem,!1,A):null;b?this.group.setClipPath(b):this.group.removeClipPath()},_incrementalRenderNormal:function(A,b){for(var S=b.getData(),E=S.getLayout("isSimpleBox"),C;(C=A.next())!=null;){var _,T=S.getItemLayout(C);_=o(T,C),l(_,S,C,E),_.incremental=!0,this.group.add(_)}},_incrementalRenderLarge:function(A,b){c(b,this.group,!0)},remove:function(A){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:y.noop}),t=v.extend({type:"normalCandlestickBox",shape:{},buildPath:function(A,b){var S=b.points;this.__simpleBox?(A.moveTo(S[4][0],S[4][1]),A.lineTo(S[6][0],S[6][1])):(A.moveTo(S[0][0],S[0][1]),A.lineTo(S[1][0],S[1][1]),A.lineTo(S[2][0],S[2][1]),A.lineTo(S[3][0],S[3][1]),A.closePath(),A.moveTo(S[4][0],S[4][1]),A.lineTo(S[5][0],S[5][1]),A.moveTo(S[6][0],S[6][1]),A.lineTo(S[7][0],S[7][1]))}});function o(A,b,S){var E=A.ends;return new t({shape:{points:S?r(E,A):E},z2:100})}function e(A,b){for(var S=!0,E=0;E<b.ends.length;E++)if(A.contain(b.ends[E][0],b.ends[E][1])){S=!1;break}return S}function l(A,b,S,E){var C=b.getItemModel(S),_=C.getModel(d),T=b.getItemVisual(S,"color"),w=b.getItemVisual(S,"borderColor")||T,O=_.getItemStyle(s);A.useStyle(O),A.style.strokeNoScale=!0,A.style.fill=T,A.style.stroke=w,A.__simpleBox=E;var I=C.getModel(u).getItemStyle();x.setHoverStyle(A,I)}function r(A,b){return y.map(A,function(S){return S=S.slice(),S[1]=b.initBaseline,S})}var a=v.extend({type:"largeCandlestickBox",shape:{},buildPath:function(A,b){for(var S=b.points,E=0;E<S.length;)if(this.__sign===S[E++]){var C=S[E++];A.moveTo(C,S[E++]),A.lineTo(C,S[E++])}else E+=3}});function c(A,b,S){var E=A.getData(),C=E.getLayout("largePoints"),_=new a({shape:{points:C},__sign:1});b.add(_);var T=new a({shape:{points:C},__sign:-1});b.add(T),h(1,_,A,E),h(-1,T,A,E),S&&(_.incremental=!0,T.incremental=!0)}function h(A,b,S,E){var C=A>0?"P":"N",_=E.getVisual("borderColor"+C)||E.getVisual("color"+C),T=S.getModel(d).getItemStyle(s);b.useStyle(T),b.style.fill=null,b.style.stroke=_}var g=i;R.exports=g},Gev7:function(R,D,n){var y=n("bYtY"),f=n("K2GJ"),x=n("1bdT"),v=n("ni6a");function m(d){d=d||{},x.call(this,d);for(var u in d)d.hasOwnProperty(u)&&u!=="style"&&(this[u]=d[u]);this.style=new f(d.style,this),this._rect=null,this.__clipPaths=null}m.prototype={constructor:m,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(u){},afterBrush:function(u){},brush:function(u,s){},getBoundingRect:function(){},contain:function(u,s){return this.rectContain(u,s)},traverse:function(u,s){u.call(s,this)},rectContain:function(u,s){var i=this.transformCoordToLocal(u,s),t=this.getBoundingRect();return t.contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(u){return this.animate("style",u)},attrKV:function(u,s){u!=="style"?x.prototype.attrKV.call(this,u,s):this.style.set(s)},setStyle:function(u,s){return this.style.set(u,s),this.dirty(!1),this},useStyle:function(u){return this.style=new f(u,this),this.dirty(!1),this},calculateTextPosition:null},y.inherits(m,x),y.mixin(m,v);var p=m;R.exports=p},GrNh:function(R,D,n){var y=n("bYtY"),f=n("IwbS"),x=n("6Ic6");function v(i,t,o,e){var l=t.getData(),r=this.dataIndex,a=l.getName(r),c=t.get("selectedOffset");e.dispatchAction({type:"pieToggleSelect",from:i,name:a,seriesId:t.id}),l.each(function(h){m(l.getItemGraphicEl(h),l.getItemLayout(h),t.isSelected(l.getName(h)),c,o)})}function m(i,t,o,e,l){var r=(t.startAngle+t.endAngle)/2,a=Math.cos(r),c=Math.sin(r),h=o?e:0,g=[a*h,c*h];l?i.animate().when(200,{position:g}).start("bounceOut"):i.attr("position",g)}function p(i,t){f.Group.call(this);var o=new f.Sector({z2:2}),e=new f.Polyline,l=new f.Text;this.add(o),this.add(e),this.add(l),this.updateData(i,t,!0)}var d=p.prototype;d.updateData=function(i,t,o){var e=this.childAt(0),l=this.childAt(1),r=this.childAt(2),a=i.hostModel,c=i.getItemModel(t),h=i.getItemLayout(t),g=y.extend({},h);g.label=null;var A=a.getShallow("animationTypeUpdate");if(o){e.setShape(g);var b=a.getShallow("animationType");b==="scale"?(e.shape.r=h.r0,f.initProps(e,{shape:{r:h.r}},a,t)):(e.shape.endAngle=h.startAngle,f.updateProps(e,{shape:{endAngle:h.endAngle}},a,t))}else A==="expansion"?e.setShape(g):f.updateProps(e,{shape:g},a,t);var S=i.getItemVisual(t,"color");e.useStyle(y.defaults({lineJoin:"bevel",fill:S},c.getModel("itemStyle").getItemStyle())),e.hoverStyle=c.getModel("emphasis.itemStyle").getItemStyle();var E=c.getShallow("cursor");E&&e.attr("cursor",E),m(this,i.getItemLayout(t),a.isSelected(i.getName(t)),a.get("selectedOffset"),a.get("animation"));var C=!o&&A==="transition";this._updateLabel(i,t,C),this.highDownOnUpdate=a.get("silent")?null:function(_,T){var w=a.isAnimationEnabled()&&c.get("hoverAnimation");T==="emphasis"?(l.ignore=l.hoverIgnore,r.ignore=r.hoverIgnore,w&&(e.stopAnimation(!0),e.animateTo({shape:{r:h.r+a.get("hoverOffset")}},300,"elasticOut"))):(l.ignore=l.normalIgnore,r.ignore=r.normalIgnore,w&&(e.stopAnimation(!0),e.animateTo({shape:{r:h.r}},300,"elasticOut")))},f.setHoverStyle(this)},d._updateLabel=function(i,t,o){var e=this.childAt(1),l=this.childAt(2),r=i.hostModel,a=i.getItemModel(t),c=i.getItemLayout(t),h=c.label,g=i.getItemVisual(t,"color");if(!h||isNaN(h.x)||isNaN(h.y)){l.ignore=l.normalIgnore=l.hoverIgnore=e.ignore=e.normalIgnore=e.hoverIgnore=!0;return}var A={points:h.linePoints||[[h.x,h.y],[h.x,h.y],[h.x,h.y]]},b={x:h.x,y:h.y};o?(f.updateProps(e,{shape:A},r,t),f.updateProps(l,{style:b},r,t)):(e.attr({shape:A}),l.attr({style:b})),l.attr({rotation:h.rotation,origin:[h.x,h.y],z2:10});var S=a.getModel("label"),E=a.getModel("emphasis.label"),C=a.getModel("labelLine"),_=a.getModel("emphasis.labelLine"),g=i.getItemVisual(t,"color");f.setLabelStyle(l.style,l.hoverStyle={},S,E,{labelFetcher:i.hostModel,labelDataIndex:t,defaultText:h.text,autoColor:g,useInsideStyle:!!h.inside},{textAlign:h.textAlign,textVerticalAlign:h.verticalAlign,opacity:i.getItemVisual(t,"opacity")}),l.ignore=l.normalIgnore=!S.get("show"),l.hoverIgnore=!E.get("show"),e.ignore=e.normalIgnore=!C.get("show"),e.hoverIgnore=!_.get("show"),e.setStyle({stroke:g,opacity:i.getItemVisual(t,"opacity")}),e.setStyle(C.getModel("lineStyle").getLineStyle()),e.hoverStyle=_.getModel("lineStyle").getLineStyle();var T=C.get("smooth");T&&T===!0&&(T=.4),e.setShape({smooth:T})},y.inherits(p,f.Group);var u=x.extend({type:"pie",init:function(){var i=new f.Group;this._sectorGroup=i},render:function(i,t,o,e){if(e&&e.from===this.uid)return;var l=i.getData(),r=this._data,a=this.group,c=t.get("animation"),h=!r,g=i.get("animationType"),A=i.get("animationTypeUpdate"),b=y.curry(v,this.uid,i,c,o),S=i.get("selectedMode");if(l.diff(r).add(function(w){var O=new p(l,w);h&&g!=="scale"&&O.eachChild(function(I){I.stopAnimation(!0)}),S&&O.on("click",b),l.setItemGraphicEl(w,O),a.add(O)}).update(function(w,O){var I=r.getItemGraphicEl(O);!h&&A!=="transition"&&I.eachChild(function(k){k.stopAnimation(!0)}),I.updateData(l,w),I.off("click"),S&&I.on("click",b),a.add(I),l.setItemGraphicEl(w,I)}).remove(function(w){var O=r.getItemGraphicEl(w);a.remove(O)}).execute(),c&&l.count()>0&&(h?g!=="scale":A!=="transition")){for(var E=l.getItemLayout(0),C=1;isNaN(E.startAngle)&&C<l.count();++C)E=l.getItemLayout(C);var _=Math.max(o.getWidth(),o.getHeight())/2,T=y.bind(a.removeClipPath,a);a.setClipPath(this._createClipPath(E.cx,E.cy,_,E.startAngle,E.clockwise,T,i,h))}else a.removeClipPath();this._data=l},dispose:function(){},_createClipPath:function(i,t,o,e,l,r,a,c){var h=new f.Sector({shape:{cx:i,cy:t,r0:0,r:o,startAngle:e,endAngle:e,clockwise:l}}),g=c?f.initProps:f.updateProps;return g(h,{shape:{endAngle:e+(l?1:-1)*Math.PI*2}},a,r),h},containPoint:function(i,t){var o=t.getData(),e=o.getItemLayout(0);if(e){var l=i[0]-e.cx,r=i[1]-e.cy,a=Math.sqrt(l*l+r*r);return a<=e.r&&a>=e.r0}}}),s=u;R.exports=s},Gytx:function(R,D){R.exports=function(y,f,x,v){var m=x?x.call(v,y,f):void 0;if(m!==void 0)return!!m;if(y===f)return!0;if(typeof y!="object"||!y||typeof f!="object"||!f)return!1;var p=Object.keys(y),d=Object.keys(f);if(p.length!==d.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(f),s=0;s<p.length;s++){var i=p[s];if(!u(i))return!1;var t=y[i],o=f[i];if(m=x?x.call(v,t,o,i):void 0,m===!1||m===void 0&&t!==o)return!1}return!0}},GzdX:function(R,D,n){"use strict";var y=n("pVnL"),f=n.n(y),x=n("q1tI"),v=n.n(x),m=n("rePB"),p=n("1OyB"),d=n("vuIU"),u=n("Ji7U"),s=n("md7G"),i=n("foSv"),t=n("m+aA"),o=n("TSYQ"),e=n.n(o),l=n("4IlW");function r(U){var K=U.pageXOffset,z="scrollLeft";if(typeof K!="number"){var V=U.document;K=V.documentElement[z],typeof K!="number"&&(K=V.body[z])}return K}function a(U){var K,z,V=U.ownerDocument,Q=V.body,G=V&&V.documentElement,te=U.getBoundingClientRect();return K=te.left,z=te.top,K-=G.clientLeft||Q.clientLeft||0,z-=G.clientTop||Q.clientTop||0,{left:K,top:z}}function c(U){var K=a(U),z=U.ownerDocument,V=z.defaultView||z.parentWindow;return K.left+=r(V),K.left}function h(U){var K=g();return function(){var V=Object(i.a)(U),Q;if(K){var G=Object(i.a)(this).constructor;Q=Reflect.construct(V,arguments,G)}else Q=V.apply(this,arguments);return Object(s.a)(this,Q)}}function g(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(U){return!1}}var A=function(U){Object(u.a)(z,U);var K=h(z);function z(){var V;return Object(p.a)(this,z),V=K.apply(this,arguments),V.onHover=function(Q){var G=V.props,te=G.onHover,q=G.index;te(Q,q)},V.onClick=function(Q){var G=V.props,te=G.onClick,q=G.index;te(Q,q)},V.onKeyDown=function(Q){var G=V.props,te=G.onClick,q=G.index;Q.keyCode===13&&te(Q,q)},V}return Object(d.a)(z,[{key:"getClassName",value:function(){var Q=this.props,G=Q.prefixCls,te=Q.index,q=Q.value,se=Q.allowHalf,re=Q.focused,xe=te+1,Oe=G;return q===0&&te===0&&re?Oe+=" ".concat(G,"-focused"):se&&q+.5>=xe&&q<xe?(Oe+=" ".concat(G,"-half ").concat(G,"-active"),re&&(Oe+=" ".concat(G,"-focused"))):(Oe+=xe<=q?" ".concat(G,"-full"):" ".concat(G,"-zero"),xe===q&&re&&(Oe+=" ".concat(G,"-focused"))),Oe}},{key:"render",value:function(){var Q=this.onHover,G=this.onClick,te=this.onKeyDown,q=this.props,se=q.disabled,re=q.prefixCls,xe=q.character,Oe=q.characterRender,Me=q.index,Qe=q.count,Ve=q.value,ut=typeof xe=="function"?xe(this.props):xe,Fe=v.a.createElement("li",{className:this.getClassName()},v.a.createElement("div",{onClick:se?null:G,onKeyDown:se?null:te,onMouseMove:se?null:Q,role:"radio","aria-checked":Ve>Me?"true":"false","aria-posinset":Me+1,"aria-setsize":Qe,tabIndex:se?-1:0},v.a.createElement("div",{className:"".concat(re,"-first")},ut),v.a.createElement("div",{className:"".concat(re,"-second")},ut)));return Oe&&(Fe=Oe(Fe,this.props)),Fe}}]),z}(v.a.Component);function b(U,K){var z=Object.keys(U);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(U);K&&(V=V.filter(function(Q){return Object.getOwnPropertyDescriptor(U,Q).enumerable})),z.push.apply(z,V)}return z}function S(U){for(var K=1;K<arguments.length;K++){var z=arguments[K]!=null?arguments[K]:{};K%2?b(Object(z),!0).forEach(function(V){Object(m.a)(U,V,z[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(z)):b(Object(z)).forEach(function(V){Object.defineProperty(U,V,Object.getOwnPropertyDescriptor(z,V))})}return U}function E(U){var K=C();return function(){var V=Object(i.a)(U),Q;if(K){var G=Object(i.a)(this).constructor;Q=Reflect.construct(V,arguments,G)}else Q=V.apply(this,arguments);return Object(s.a)(this,Q)}}function C(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(U){return!1}}function _(){}var T=function(U){Object(u.a)(z,U);var K=E(z);function z(V){var Q;Object(p.a)(this,z),Q=K.call(this,V),Q.onHover=function(te,q){var se=Q.props.onHoverChange,re=Q.getStarValue(q,te.pageX),xe=Q.state.cleanedValue;re!==xe&&Q.setState({hoverValue:re,cleanedValue:null}),se(re)},Q.onMouseLeave=function(){var te=Q.props.onHoverChange;Q.setState({hoverValue:void 0,cleanedValue:null}),te(void 0)},Q.onClick=function(te,q){var se=Q.props.allowClear,re=Q.state.value,xe=Q.getStarValue(q,te.pageX),Oe=!1;se&&(Oe=xe===re),Q.onMouseLeave(),Q.changeValue(Oe?0:xe),Q.setState({cleanedValue:Oe?xe:null})},Q.onFocus=function(){var te=Q.props.onFocus;Q.setState({focused:!0}),te&&te()},Q.onBlur=function(){var te=Q.props.onBlur;Q.setState({focused:!1}),te&&te()},Q.onKeyDown=function(te){var q=te.keyCode,se=Q.props,re=se.count,xe=se.allowHalf,Oe=se.onKeyDown,Me=se.direction,Qe=Me==="rtl",Ve=Q.state.value;q===l.a.RIGHT&&Ve<re&&!Qe?(xe?Ve+=.5:Ve+=1,Q.changeValue(Ve),te.preventDefault()):q===l.a.LEFT&&Ve>0&&!Qe||q===l.a.RIGHT&&Ve>0&&Qe?(xe?Ve-=.5:Ve-=1,Q.changeValue(Ve),te.preventDefault()):q===l.a.LEFT&&Ve<re&&Qe&&(xe?Ve+=.5:Ve+=1,Q.changeValue(Ve),te.preventDefault()),Oe&&Oe(te)},Q.saveRef=function(te){return function(q){Q.stars[te]=q}},Q.saveRate=function(te){Q.rate=te};var G=V.value;return G===void 0&&(G=V.defaultValue),Q.stars={},Q.state={value:G,focused:!1,cleanedValue:null},Q}return Object(d.a)(z,[{key:"componentDidMount",value:function(){var Q=this.props,G=Q.autoFocus,te=Q.disabled;G&&!te&&this.focus()}},{key:"getStarDOM",value:function(Q){return Object(t.a)(this.stars[Q])}},{key:"getStarValue",value:function(Q,G){var te=this.props,q=te.allowHalf,se=te.direction,re=se==="rtl",xe=Q+1;if(q){var Oe=this.getStarDOM(Q),Me=c(Oe),Qe=Oe.clientWidth;(re&&G-Me>Qe/2||!re&&G-Me<Qe/2)&&(xe-=.5)}return xe}},{key:"focus",value:function(){var Q=this.props.disabled;Q||this.rate.focus()}},{key:"blur",value:function(){var Q=this.props.disabled;Q||this.rate.blur()}},{key:"changeValue",value:function(Q){var G=this.props.onChange;"value"in this.props||this.setState({value:Q}),G(Q)}},{key:"render",value:function(){for(var Q=this.props,G=Q.count,te=Q.allowHalf,q=Q.style,se=Q.prefixCls,re=Q.disabled,xe=Q.className,Oe=Q.character,Me=Q.characterRender,Qe=Q.tabIndex,Ve=Q.direction,ut=this.state,Fe=ut.value,ue=ut.hoverValue,et=ut.focused,he=[],J=re?"".concat(se,"-disabled"):"",Y=0;Y<G;Y+=1)he.push(v.a.createElement(A,{ref:this.saveRef(Y),index:Y,count:G,disabled:re,prefixCls:"".concat(se,"-star"),allowHalf:te,value:ue===void 0?Fe:ue,onClick:this.onClick,onHover:this.onHover,key:Y,character:Oe,characterRender:Me,focused:et}));var $=e()(se,J,xe,Object(m.a)({},"".concat(se,"-rtl"),Ve==="rtl"));return v.a.createElement("ul",{className:$,style:q,onMouseLeave:re?null:this.onMouseLeave,tabIndex:re?-1:Qe,onFocus:re?null:this.onFocus,onBlur:re?null:this.onBlur,onKeyDown:re?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},he)}}],[{key:"getDerivedStateFromProps",value:function(Q,G){return"value"in Q&&Q.value!==void 0?S(S({},G),{},{value:Q.value}):G}}]),z}(v.a.Component);T.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:_,character:"\u2605",onHoverChange:_,tabIndex:0,direction:"ltr"};var w=T,O=w,I=n("Lerx"),k=n.n(I),M=n("3S7+"),j=n("H84U"),P=function(U,K){var z={};for(var V in U)Object.prototype.hasOwnProperty.call(U,V)&&K.indexOf(V)<0&&(z[V]=U[V]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(U);Q<V.length;Q++)K.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(U,V[Q])&&(z[V[Q]]=U[V[Q]]);return z},X=x.forwardRef(function(U,K){var z=U.prefixCls,V=U.tooltips,Q=P(U,["prefixCls","tooltips"]),G=function(Oe,Me){var Qe=Me.index;return V?x.createElement(M.a,{title:V[Qe]},Oe):Oe},te=x.useContext(j.b),q=te.getPrefixCls,se=te.direction,re=q("rate",z);return x.createElement(O,f()({ref:K,characterRender:G},Q,{prefixCls:re,direction:se}))});X.displayName="Rate",X.defaultProps={character:x.createElement(k.a,null)};var F=D.a=X},H6uX:function(R,D){var n=Array.prototype.slice,y=function(p){this._$handlers={},this._$eventProcessor=p};y.prototype={constructor:y,one:function(p,d,u,s){return x(this,p,d,u,s,!0)},on:function(p,d,u,s){return x(this,p,d,u,s,!1)},isSilent:function(p){var d=this._$handlers;return!d[p]||!d[p].length},off:function(p,d){var u=this._$handlers;if(!p)return this._$handlers={},this;if(d){if(u[p]){for(var s=[],i=0,t=u[p].length;i<t;i++)u[p][i].h!==d&&s.push(u[p][i]);u[p]=s}u[p]&&u[p].length===0&&delete u[p]}else delete u[p];return this},trigger:function(p){var d=this._$handlers[p],u=this._$eventProcessor;if(d){var s=arguments,i=s.length;i>3&&(s=n.call(s,1));for(var t=d.length,o=0;o<t;){var e=d[o];if(u&&u.filter&&e.query!=null&&!u.filter(p,e.query)){o++;continue}switch(i){case 1:e.h.call(e.ctx);break;case 2:e.h.call(e.ctx,s[1]);break;case 3:e.h.call(e.ctx,s[1],s[2]);break;default:e.h.apply(e.ctx,s);break}e.one?(d.splice(o,1),t--):o++}}return u&&u.afterTrigger&&u.afterTrigger(p),this},triggerWithContext:function(p){var d=this._$handlers[p],u=this._$eventProcessor;if(d){var s=arguments,i=s.length;i>4&&(s=n.call(s,1,s.length-1));for(var t=s[s.length-1],o=d.length,e=0;e<o;){var l=d[e];if(u&&u.filter&&l.query!=null&&!u.filter(p,l.query)){e++;continue}switch(i){case 1:l.h.call(t);break;case 2:l.h.call(t,s[1]);break;case 3:l.h.call(t,s[1],s[2]);break;default:l.h.apply(t,s);break}l.one?(d.splice(e,1),o--):e++}}return u&&u.afterTrigger&&u.afterTrigger(p),this}};function f(m,p){var d=m._$eventProcessor;return p!=null&&d&&d.normalizeQuery&&(p=d.normalizeQuery(p)),p}function x(m,p,d,u,s,i){var t=m._$handlers;if(typeof d=="function"&&(s=u,u=d,d=null),!u||!p)return m;d=f(m,d),t[p]||(t[p]=[]);for(var o=0;o<t[p].length;o++)if(t[p][o].h===u)return m;var e={h:u,one:i,query:d,ctx:s||m,callAtLast:u.zrEventfulCallAtLast},l=t[p].length-1,r=t[p][l];return r&&r.callAtLast?t[p].splice(l,0,e):t[p].push(e),m}var v=y;R.exports=v},H7XF:function(R,D,n){"use strict";D.byteLength=u,D.toByteArray=i,D.fromByteArray=e;for(var y=[],f=[],x=typeof Uint8Array!="undefined"?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,p=v.length;m<p;++m)y[m]=v[m],f[v.charCodeAt(m)]=m;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63;function d(l){var r=l.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=l.indexOf("=");a===-1&&(a=r);var c=a===r?0:4-a%4;return[a,c]}function u(l){var r=d(l),a=r[0],c=r[1];return(a+c)*3/4-c}function s(l,r,a){return(r+a)*3/4-a}function i(l){var r,a=d(l),c=a[0],h=a[1],g=new x(s(l,c,h)),A=0,b=h>0?c-4:c,S;for(S=0;S<b;S+=4)r=f[l.charCodeAt(S)]<<18|f[l.charCodeAt(S+1)]<<12|f[l.charCodeAt(S+2)]<<6|f[l.charCodeAt(S+3)],g[A++]=r>>16&255,g[A++]=r>>8&255,g[A++]=r&255;return h===2&&(r=f[l.charCodeAt(S)]<<2|f[l.charCodeAt(S+1)]>>4,g[A++]=r&255),h===1&&(r=f[l.charCodeAt(S)]<<10|f[l.charCodeAt(S+1)]<<4|f[l.charCodeAt(S+2)]>>2,g[A++]=r>>8&255,g[A++]=r&255),g}function t(l){return y[l>>18&63]+y[l>>12&63]+y[l>>6&63]+y[l&63]}function o(l,r,a){for(var c,h=[],g=r;g<a;g+=3)c=(l[g]<<16&16711680)+(l[g+1]<<8&65280)+(l[g+2]&255),h.push(t(c));return h.join("")}function e(l){for(var r,a=l.length,c=a%3,h=[],g=16383,A=0,b=a-c;A<b;A+=g)h.push(o(l,A,A+g>b?b:A+g));return c===1?(r=l[a-1],h.push(y[r>>2]+y[r<<4&63]+"==")):c===2&&(r=(l[a-2]<<8)+l[a-1],h.push(y[r>>10]+y[r>>4&63]+y[r<<2&63]+"=")),h.join("")}},H8j4:function(R,D,n){var y=n("QkVE");function f(x,v){var m=y(this,x),p=m.size;return m.set(x,v),this.size+=m.size==p?0:1,this}R.exports=f},HBhm:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};D.default=y},HDXh:function(R,D,n){"use strict";(function(y){/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/var f=n("H7XF"),x=n("kVK+"),v=n("49sm");D.Buffer=u,D.SlowBuffer=h,D.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=y.TYPED_ARRAY_SUPPORT!==void 0?y.TYPED_ARRAY_SUPPORT:m(),D.kMaxLength=p();function m(){try{var he=new Uint8Array(1);return he.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},he.foo()===42&&typeof he.subarray=="function"&&he.subarray(1,1).byteLength===0}catch(J){return!1}}function p(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(he,J){if(p()<J)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(he=new Uint8Array(J),he.__proto__=u.prototype):(he===null&&(he=new u(J)),he.length=J),he}function u(he,J,Y){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(he,J,Y);if(typeof he=="number"){if(typeof J=="string")throw new Error("If encoding is specified then the first argument must be a string");return o(this,he)}return s(this,he,J,Y)}u.poolSize=8192,u._augment=function(he){return he.__proto__=u.prototype,he};function s(he,J,Y,$){if(typeof J=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&J instanceof ArrayBuffer?r(he,J,Y,$):typeof J=="string"?e(he,J,Y):a(he,J)}u.from=function(he,J,Y){return s(null,he,J,Y)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0}));function i(he){if(typeof he!="number")throw new TypeError('"size" argument must be a number');if(he<0)throw new RangeError('"size" argument must not be negative')}function t(he,J,Y,$){return i(J),J<=0?d(he,J):Y!==void 0?typeof $=="string"?d(he,J).fill(Y,$):d(he,J).fill(Y):d(he,J)}u.alloc=function(he,J,Y){return t(null,he,J,Y)};function o(he,J){if(i(J),he=d(he,J<0?0:c(J)|0),!u.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<J;++Y)he[Y]=0;return he}u.allocUnsafe=function(he){return o(null,he)},u.allocUnsafeSlow=function(he){return o(null,he)};function e(he,J,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!u.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var $=g(J,Y)|0;he=d(he,$);var de=he.write(J,Y);return de!==$&&(he=he.slice(0,de)),he}function l(he,J){var Y=J.length<0?0:c(J.length)|0;he=d(he,Y);for(var $=0;$<Y;$+=1)he[$]=J[$]&255;return he}function r(he,J,Y,$){if(J.byteLength,Y<0||J.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(J.byteLength<Y+($||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&$===void 0?J=new Uint8Array(J):$===void 0?J=new Uint8Array(J,Y):J=new Uint8Array(J,Y,$),u.TYPED_ARRAY_SUPPORT?(he=J,he.__proto__=u.prototype):he=l(he,J),he}function a(he,J){if(u.isBuffer(J)){var Y=c(J.length)|0;return he=d(he,Y),he.length===0||J.copy(he,0,0,Y),he}if(J){if(typeof ArrayBuffer!="undefined"&&J.buffer instanceof ArrayBuffer||"length"in J)return typeof J.length!="number"||et(J.length)?d(he,0):l(he,J);if(J.type==="Buffer"&&v(J.data))return l(he,J.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(he){if(he>=p())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p().toString(16)+" bytes");return he|0}function h(he){return+he!=he&&(he=0),u.alloc(+he)}u.isBuffer=function(J){return!!(J!=null&&J._isBuffer)},u.compare=function(J,Y){if(!u.isBuffer(J)||!u.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(J===Y)return 0;for(var $=J.length,de=Y.length,be=0,Ce=Math.min($,de);be<Ce;++be)if(J[be]!==Y[be]){$=J[be],de=Y[be];break}return $<de?-1:de<$?1:0},u.isEncoding=function(J){switch(String(J).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(J,Y){if(!v(J))throw new TypeError('"list" argument must be an Array of Buffers');if(J.length===0)return u.alloc(0);var $;if(Y===void 0)for(Y=0,$=0;$<J.length;++$)Y+=J[$].length;var de=u.allocUnsafe(Y),be=0;for($=0;$<J.length;++$){var Ce=J[$];if(!u.isBuffer(Ce))throw new TypeError('"list" argument must be an Array of Buffers');Ce.copy(de,be),be+=Ce.length}return de};function g(he,J){if(u.isBuffer(he))return he.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(he)||he instanceof ArrayBuffer))return he.byteLength;typeof he!="string"&&(he=""+he);var Y=he.length;if(Y===0)return 0;for(var $=!1;;)switch(J){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return Qe(he).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Fe(he).length;default:if($)return Qe(he).length;J=(""+J).toLowerCase(),$=!0}}u.byteLength=g;function A(he,J,Y){var $=!1;if((J===void 0||J<0)&&(J=0),J>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,J>>>=0,Y<=J)return"";for(he||(he="utf8");;)switch(he){case"hex":return U(this,J,Y);case"utf8":case"utf-8":return M(this,J,Y);case"ascii":return X(this,J,Y);case"latin1":case"binary":return F(this,J,Y);case"base64":return k(this,J,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,J,Y);default:if($)throw new TypeError("Unknown encoding: "+he);he=(he+"").toLowerCase(),$=!0}}u.prototype._isBuffer=!0;function b(he,J,Y){var $=he[J];he[J]=he[Y],he[Y]=$}u.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<J;Y+=2)b(this,Y,Y+1);return this},u.prototype.swap32=function(){var J=this.length;if(J%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Y=0;Y<J;Y+=4)b(this,Y,Y+3),b(this,Y+1,Y+2);return this},u.prototype.swap64=function(){var J=this.length;if(J%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Y=0;Y<J;Y+=8)b(this,Y,Y+7),b(this,Y+1,Y+6),b(this,Y+2,Y+5),b(this,Y+3,Y+4);return this},u.prototype.toString=function(){var J=this.length|0;return J===0?"":arguments.length===0?M(this,0,J):A.apply(this,arguments)},u.prototype.equals=function(J){if(!u.isBuffer(J))throw new TypeError("Argument must be a Buffer");return this===J?!0:u.compare(this,J)===0},u.prototype.inspect=function(){var J="",Y=D.INSPECT_MAX_BYTES;return this.length>0&&(J=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(J+=" ... ")),"<Buffer "+J+">"},u.prototype.compare=function(J,Y,$,de,be){if(!u.isBuffer(J))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),$===void 0&&($=J?J.length:0),de===void 0&&(de=0),be===void 0&&(be=this.length),Y<0||$>J.length||de<0||be>this.length)throw new RangeError("out of range index");if(de>=be&&Y>=$)return 0;if(de>=be)return-1;if(Y>=$)return 1;if(Y>>>=0,$>>>=0,de>>>=0,be>>>=0,this===J)return 0;for(var Ce=be-de,Be=$-Y,fe=Math.min(Ce,Be),we=this.slice(de,be),Re=J.slice(Y,$),rt=0;rt<fe;++rt)if(we[rt]!==Re[rt]){Ce=we[rt],Be=Re[rt];break}return Ce<Be?-1:Be<Ce?1:0};function S(he,J,Y,$,de){if(he.length===0)return-1;if(typeof Y=="string"?($=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=de?0:he.length-1),Y<0&&(Y=he.length+Y),Y>=he.length){if(de)return-1;Y=he.length-1}else if(Y<0)if(de)Y=0;else return-1;if(typeof J=="string"&&(J=u.from(J,$)),u.isBuffer(J))return J.length===0?-1:E(he,J,Y,$,de);if(typeof J=="number")return J=J&255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?de?Uint8Array.prototype.indexOf.call(he,J,Y):Uint8Array.prototype.lastIndexOf.call(he,J,Y):E(he,[J],Y,$,de);throw new TypeError("val must be string, number or Buffer")}function E(he,J,Y,$,de){var be=1,Ce=he.length,Be=J.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(he.length<2||J.length<2)return-1;be=2,Ce/=2,Be/=2,Y/=2}function fe(ft,He){return be===1?ft[He]:ft.readUInt16BE(He*be)}var we;if(de){var Re=-1;for(we=Y;we<Ce;we++)if(fe(he,we)===fe(J,Re===-1?0:we-Re)){if(Re===-1&&(Re=we),we-Re+1===Be)return Re*be}else Re!==-1&&(we-=we-Re),Re=-1}else for(Y+Be>Ce&&(Y=Ce-Be),we=Y;we>=0;we--){for(var rt=!0,St=0;St<Be;St++)if(fe(he,we+St)!==fe(J,St)){rt=!1;break}if(rt)return we}return-1}u.prototype.includes=function(J,Y,$){return this.indexOf(J,Y,$)!==-1},u.prototype.indexOf=function(J,Y,$){return S(this,J,Y,$,!0)},u.prototype.lastIndexOf=function(J,Y,$){return S(this,J,Y,$,!1)};function C(he,J,Y,$){Y=Number(Y)||0;var de=he.length-Y;$?($=Number($),$>de&&($=de)):$=de;var be=J.length;if(be%2!==0)throw new TypeError("Invalid hex string");$>be/2&&($=be/2);for(var Ce=0;Ce<$;++Ce){var Be=parseInt(J.substr(Ce*2,2),16);if(isNaN(Be))return Ce;he[Y+Ce]=Be}return Ce}function _(he,J,Y,$){return ue(Qe(J,he.length-Y),he,Y,$)}function T(he,J,Y,$){return ue(Ve(J),he,Y,$)}function w(he,J,Y,$){return T(he,J,Y,$)}function O(he,J,Y,$){return ue(Fe(J),he,Y,$)}function I(he,J,Y,$){return ue(ut(J,he.length-Y),he,Y,$)}u.prototype.write=function(J,Y,$,de){if(Y===void 0)de="utf8",$=this.length,Y=0;else if($===void 0&&typeof Y=="string")de=Y,$=this.length,Y=0;else if(isFinite(Y))Y=Y|0,isFinite($)?($=$|0,de===void 0&&(de="utf8")):(de=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var be=this.length-Y;if(($===void 0||$>be)&&($=be),J.length>0&&($<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");for(var Ce=!1;;)switch(de){case"hex":return C(this,J,Y,$);case"utf8":case"utf-8":return _(this,J,Y,$);case"ascii":return T(this,J,Y,$);case"latin1":case"binary":return w(this,J,Y,$);case"base64":return O(this,J,Y,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,J,Y,$);default:if(Ce)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),Ce=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(he,J,Y){return J===0&&Y===he.length?f.fromByteArray(he):f.fromByteArray(he.slice(J,Y))}function M(he,J,Y){Y=Math.min(he.length,Y);for(var $=[],de=J;de<Y;){var be=he[de],Ce=null,Be=be>239?4:be>223?3:be>191?2:1;if(de+Be<=Y){var fe,we,Re,rt;switch(Be){case 1:be<128&&(Ce=be);break;case 2:fe=he[de+1],(fe&192)===128&&(rt=(be&31)<<6|fe&63,rt>127&&(Ce=rt));break;case 3:fe=he[de+1],we=he[de+2],(fe&192)===128&&(we&192)===128&&(rt=(be&15)<<12|(fe&63)<<6|we&63,rt>2047&&(rt<55296||rt>57343)&&(Ce=rt));break;case 4:fe=he[de+1],we=he[de+2],Re=he[de+3],(fe&192)===128&&(we&192)===128&&(Re&192)===128&&(rt=(be&15)<<18|(fe&63)<<12|(we&63)<<6|Re&63,rt>65535&&rt<1114112&&(Ce=rt))}}Ce===null?(Ce=65533,Be=1):Ce>65535&&(Ce-=65536,$.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),$.push(Ce),de+=Be}return P($)}var j=4096;function P(he){var J=he.length;if(J<=j)return String.fromCharCode.apply(String,he);for(var Y="",$=0;$<J;)Y+=String.fromCharCode.apply(String,he.slice($,$+=j));return Y}function X(he,J,Y){var $="";Y=Math.min(he.length,Y);for(var de=J;de<Y;++de)$+=String.fromCharCode(he[de]&127);return $}function F(he,J,Y){var $="";Y=Math.min(he.length,Y);for(var de=J;de<Y;++de)$+=String.fromCharCode(he[de]);return $}function U(he,J,Y){var $=he.length;(!J||J<0)&&(J=0),(!Y||Y<0||Y>$)&&(Y=$);for(var de="",be=J;be<Y;++be)de+=Me(he[be]);return de}function K(he,J,Y){for(var $=he.slice(J,Y),de="",be=0;be<$.length;be+=2)de+=String.fromCharCode($[be]+$[be+1]*256);return de}u.prototype.slice=function(J,Y){var $=this.length;J=~~J,Y=Y===void 0?$:~~Y,J<0?(J+=$,J<0&&(J=0)):J>$&&(J=$),Y<0?(Y+=$,Y<0&&(Y=0)):Y>$&&(Y=$),Y<J&&(Y=J);var de;if(u.TYPED_ARRAY_SUPPORT)de=this.subarray(J,Y),de.__proto__=u.prototype;else{var be=Y-J;de=new u(be,void 0);for(var Ce=0;Ce<be;++Ce)de[Ce]=this[Ce+J]}return de};function z(he,J,Y){if(he%1!==0||he<0)throw new RangeError("offset is not uint");if(he+J>Y)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J],be=1,Ce=0;++Ce<Y&&(be*=256);)de+=this[J+Ce]*be;return de},u.prototype.readUIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J+--Y],be=1;Y>0&&(be*=256);)de+=this[J+--Y]*be;return de},u.prototype.readUInt8=function(J,Y){return Y||z(J,1,this.length),this[J]},u.prototype.readUInt16LE=function(J,Y){return Y||z(J,2,this.length),this[J]|this[J+1]<<8},u.prototype.readUInt16BE=function(J,Y){return Y||z(J,2,this.length),this[J]<<8|this[J+1]},u.prototype.readUInt32LE=function(J,Y){return Y||z(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},u.prototype.readUInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},u.prototype.readIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J],be=1,Ce=0;++Ce<Y&&(be*=256);)de+=this[J+Ce]*be;return be*=128,de>=be&&(de-=Math.pow(2,8*Y)),de},u.prototype.readIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=Y,be=1,Ce=this[J+--de];de>0&&(be*=256);)Ce+=this[J+--de]*be;return be*=128,Ce>=be&&(Ce-=Math.pow(2,8*Y)),Ce},u.prototype.readInt8=function(J,Y){return Y||z(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},u.prototype.readInt16LE=function(J,Y){Y||z(J,2,this.length);var $=this[J]|this[J+1]<<8;return $&32768?$|4294901760:$},u.prototype.readInt16BE=function(J,Y){Y||z(J,2,this.length);var $=this[J+1]|this[J]<<8;return $&32768?$|4294901760:$},u.prototype.readInt32LE=function(J,Y){return Y||z(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},u.prototype.readInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},u.prototype.readFloatLE=function(J,Y){return Y||z(J,4,this.length),x.read(this,J,!0,23,4)},u.prototype.readFloatBE=function(J,Y){return Y||z(J,4,this.length),x.read(this,J,!1,23,4)},u.prototype.readDoubleLE=function(J,Y){return Y||z(J,8,this.length),x.read(this,J,!0,52,8)},u.prototype.readDoubleBE=function(J,Y){return Y||z(J,8,this.length),x.read(this,J,!1,52,8)};function V(he,J,Y,$,de,be){if(!u.isBuffer(he))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>de||J<be)throw new RangeError('"value" argument is out of bounds');if(Y+$>he.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function(J,Y,$,de){if(J=+J,Y=Y|0,$=$|0,!de){var be=Math.pow(2,8*$)-1;V(this,J,Y,$,be,0)}var Ce=1,Be=0;for(this[Y]=J&255;++Be<$&&(Ce*=256);)this[Y+Be]=J/Ce&255;return Y+$},u.prototype.writeUIntBE=function(J,Y,$,de){if(J=+J,Y=Y|0,$=$|0,!de){var be=Math.pow(2,8*$)-1;V(this,J,Y,$,be,0)}var Ce=$-1,Be=1;for(this[Y+Ce]=J&255;--Ce>=0&&(Be*=256);)this[Y+Ce]=J/Be&255;return Y+$},u.prototype.writeUInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,255,0),u.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),this[Y]=J&255,Y+1};function Q(he,J,Y,$){J<0&&(J=65535+J+1);for(var de=0,be=Math.min(he.length-Y,2);de<be;++de)he[Y+de]=(J&255<<8*($?de:1-de))>>>($?de:1-de)*8}u.prototype.writeUInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},u.prototype.writeUInt16BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2};function G(he,J,Y,$){J<0&&(J=4294967295+J+1);for(var de=0,be=Math.min(he.length-Y,4);de<be;++de)he[Y+de]=J>>>($?de:3-de)*8&255}u.prototype.writeUInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[Y+3]=J>>>24,this[Y+2]=J>>>16,this[Y+1]=J>>>8,this[Y]=J&255):G(this,J,Y,!0),Y+4},u.prototype.writeUInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4},u.prototype.writeIntLE=function(J,Y,$,de){if(J=+J,Y=Y|0,!de){var be=Math.pow(2,8*$-1);V(this,J,Y,$,be-1,-be)}var Ce=0,Be=1,fe=0;for(this[Y]=J&255;++Ce<$&&(Be*=256);)J<0&&fe===0&&this[Y+Ce-1]!==0&&(fe=1),this[Y+Ce]=(J/Be>>0)-fe&255;return Y+$},u.prototype.writeIntBE=function(J,Y,$,de){if(J=+J,Y=Y|0,!de){var be=Math.pow(2,8*$-1);V(this,J,Y,$,be-1,-be)}var Ce=$-1,Be=1,fe=0;for(this[Y+Ce]=J&255;--Ce>=0&&(Be*=256);)J<0&&fe===0&&this[Y+Ce+1]!==0&&(fe=1),this[Y+Ce]=(J/Be>>0)-fe&255;return Y+$},u.prototype.writeInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,127,-128),u.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),J<0&&(J=255+J+1),this[Y]=J&255,Y+1},u.prototype.writeInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},u.prototype.writeInt16BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2},u.prototype.writeInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8,this[Y+2]=J>>>16,this[Y+3]=J>>>24):G(this,J,Y,!0),Y+4},u.prototype.writeInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4};function te(he,J,Y,$,de,be){if(Y+$>he.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function q(he,J,Y,$,de){return de||te(he,J,Y,4,34028234663852886e22,-34028234663852886e22),x.write(he,J,Y,$,23,4),Y+4}u.prototype.writeFloatLE=function(J,Y,$){return q(this,J,Y,!0,$)},u.prototype.writeFloatBE=function(J,Y,$){return q(this,J,Y,!1,$)};function se(he,J,Y,$,de){return de||te(he,J,Y,8,17976931348623157e292,-17976931348623157e292),x.write(he,J,Y,$,52,8),Y+8}u.prototype.writeDoubleLE=function(J,Y,$){return se(this,J,Y,!0,$)},u.prototype.writeDoubleBE=function(J,Y,$){return se(this,J,Y,!1,$)},u.prototype.copy=function(J,Y,$,de){if($||($=0),!de&&de!==0&&(de=this.length),Y>=J.length&&(Y=J.length),Y||(Y=0),de>0&&de<$&&(de=$),de===$)return 0;if(J.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("sourceStart out of bounds");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),J.length-Y<de-$&&(de=J.length-Y+$);var be=de-$,Ce;if(this===J&&$<Y&&Y<de)for(Ce=be-1;Ce>=0;--Ce)J[Ce+Y]=this[Ce+$];else if(be<1e3||!u.TYPED_ARRAY_SUPPORT)for(Ce=0;Ce<be;++Ce)J[Ce+Y]=this[Ce+$];else Uint8Array.prototype.set.call(J,this.subarray($,$+be),Y);return be},u.prototype.fill=function(J,Y,$,de){if(typeof J=="string"){if(typeof Y=="string"?(de=Y,Y=0,$=this.length):typeof $=="string"&&(de=$,$=this.length),J.length===1){var be=J.charCodeAt(0);be<256&&(J=be)}if(de!==void 0&&typeof de!="string")throw new TypeError("encoding must be a string");if(typeof de=="string"&&!u.isEncoding(de))throw new TypeError("Unknown encoding: "+de)}else typeof J=="number"&&(J=J&255);if(Y<0||this.length<Y||this.length<$)throw new RangeError("Out of range index");if($<=Y)return this;Y=Y>>>0,$=$===void 0?this.length:$>>>0,J||(J=0);var Ce;if(typeof J=="number")for(Ce=Y;Ce<$;++Ce)this[Ce]=J;else{var Be=u.isBuffer(J)?J:Qe(new u(J,de).toString()),fe=Be.length;for(Ce=0;Ce<$-Y;++Ce)this[Ce+Y]=Be[Ce%fe]}return this};var re=/[^+\/0-9A-Za-z-_]/g;function xe(he){if(he=Oe(he).replace(re,""),he.length<2)return"";for(;he.length%4!==0;)he=he+"=";return he}function Oe(he){return he.trim?he.trim():he.replace(/^\s+|\s+$/g,"")}function Me(he){return he<16?"0"+he.toString(16):he.toString(16)}function Qe(he,J){J=J||Infinity;for(var Y,$=he.length,de=null,be=[],Ce=0;Ce<$;++Ce){if(Y=he.charCodeAt(Ce),Y>55295&&Y<57344){if(!de){if(Y>56319){(J-=3)>-1&&be.push(239,191,189);continue}else if(Ce+1===$){(J-=3)>-1&&be.push(239,191,189);continue}de=Y;continue}if(Y<56320){(J-=3)>-1&&be.push(239,191,189),de=Y;continue}Y=(de-55296<<10|Y-56320)+65536}else de&&((J-=3)>-1&&be.push(239,191,189));if(de=null,Y<128){if((J-=1)<0)break;be.push(Y)}else if(Y<2048){if((J-=2)<0)break;be.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((J-=3)<0)break;be.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((J-=4)<0)break;be.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return be}function Ve(he){for(var J=[],Y=0;Y<he.length;++Y)J.push(he.charCodeAt(Y)&255);return J}function ut(he,J){for(var Y,$,de,be=[],Ce=0;Ce<he.length&&!((J-=2)<0);++Ce)Y=he.charCodeAt(Ce),$=Y>>8,de=Y%256,be.push(de),be.push($);return be}function Fe(he){return f.toByteArray(xe(he))}function ue(he,J,Y,$){for(var de=0;de<$&&!(de+Y>=J.length||de>=he.length);++de)J[de+Y]=he[de];return de}function et(he){return he!==he}}).call(this,n("yLpj"))},HDyB:function(R,D,n){var y=n("nmnc"),f=n("JHRd"),x=n("ljhN"),v=n("or5M"),m=n("7fqy"),p=n("rEGp"),d=1,u=2,s="[object Boolean]",i="[object Date]",t="[object Error]",o="[object Map]",e="[object Number]",l="[object RegExp]",r="[object Set]",a="[object String]",c="[object Symbol]",h="[object ArrayBuffer]",g="[object DataView]",A=y?y.prototype:void 0,b=A?A.valueOf:void 0;function S(E,C,_,T,w,O,I){switch(_){case g:if(E.byteLength!=C.byteLength||E.byteOffset!=C.byteOffset)return!1;E=E.buffer,C=C.buffer;case h:return!(E.byteLength!=C.byteLength||!O(new f(E),new f(C)));case s:case i:case e:return x(+E,+C);case t:return E.name==C.name&&E.message==C.message;case l:case a:return E==C+"";case o:var k=m;case r:var M=T&d;if(k||(k=p),E.size!=C.size&&!M)return!1;var j=I.get(E);if(j)return j==C;T|=u,I.set(E,C);var P=v(k(E),k(C),T,w,O,I);return I.delete(E),P;case c:if(b)return b.call(E)==b.call(C)}return!1}R.exports=S},"HF/U":function(R,D,n){var y=n("QBsz");function f(v){var m=v.coordinateSystem;if(m&&m.type!=="view")return;var p=v.getGraph();p.eachNode(function(d){var u=d.getModel();d.setLayout([+u.get("x"),+u.get("y")])}),x(p)}function x(v){v.eachEdge(function(m){var p=m.getModel().get("lineStyle.curveness")||0,d=y.clone(m.node1.getLayout()),u=y.clone(m.node2.getLayout()),s=[d,u];+p&&s.push([(d[0]+u[0])/2-(d[1]-u[1])*p,(d[1]+u[1])/2-(u[0]-d[0])*p]),m.setLayout(s)})}D.simpleLayout=f,D.simpleLayoutEdge=x},"HM/N":function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("bYtY"),v=n("/SeX"),m=n("OELB"),p=m.parsePercent,d=n("aX7z"),u=d.createScaleByModel,s=d.niceScaleExtent,i=n("IDmD"),t=n("7hqr"),o=t.getStackedDimension;n("ePAk");function e(c,h,g){var A=h.get("center"),b=g.getWidth(),S=g.getHeight();c.cx=p(A[0],b),c.cy=p(A[1],S);var E=c.getRadiusAxis(),C=Math.min(b,S)/2,_=h.get("radius");_==null?_=[0,"100%"]:x.isArray(_)||(_=[0,_]),_=[p(_[0],C),p(_[1],C)],E.inverse?E.setExtent(_[1],_[0]):E.setExtent(_[0],_[1])}function l(c,h){var g=this,A=g.getAngleAxis(),b=g.getRadiusAxis();if(A.scale.setExtent(Infinity,-Infinity),b.scale.setExtent(Infinity,-Infinity),c.eachSeries(function(C){if(C.coordinateSystem===g){var _=C.getData();x.each(_.mapDimension("radius",!0),function(T){b.scale.unionExtentFromData(_,o(_,T))}),x.each(_.mapDimension("angle",!0),function(T){A.scale.unionExtentFromData(_,o(_,T))})}}),s(A.scale,A.model),s(b.scale,b.model),A.type==="category"&&!A.onBand){var S=A.getExtent(),E=360/A.scale.count();A.inverse?S[1]+=E:S[1]-=E,A.setExtent(S[0],S[1])}}function r(c,h){if(c.type=h.get("type"),c.scale=u(h),c.onBand=h.get("boundaryGap")&&c.type==="category",c.inverse=h.get("inverse"),h.mainType==="angleAxis"){c.inverse^=h.get("clockwise");var g=h.get("startAngle");c.setExtent(g,g+(c.inverse?-360:360))}h.axis=c,c.model=h}var a={dimensions:v.prototype.dimensions,create:function(c,h){var g=[];return c.eachComponent("polar",function(A,b){var S=new v(b);S.update=l;var E=S.getRadiusAxis(),C=S.getAngleAxis(),_=A.findAxisModel("radiusAxis"),T=A.findAxisModel("angleAxis");r(E,_),r(C,T),e(S,A,h),g.push(S),A.coordinateSystem=S,S.model=A}),c.eachSeries(function(A){if(A.get("coordinateSystem")==="polar"){var b=c.queryComponents({mainType:"polar",index:A.get("polarIndex"),id:A.get("polarId")})[0];A.coordinateSystem=b.coordinateSystem}}),g}};i.register("polar",a)},HOxn:function(R,D,n){var y=n("Cwc5"),f=n("Kz5y"),x=y(f,"Promise");R.exports=x},HQEm:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("Sj0X"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},HjIi:function(R,D,n){var y=n("bYtY"),f=n("OELB"),x=f.parsePercent,v=n("7hqr"),m=v.isDimensionStacked;function p(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function d(t,o){return o.dim+t.model.componentIndex}function u(t,o,e){var l={},r=s(y.filter(o.getSeriesByType(t),function(a){return!o.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));o.eachSeriesByType(t,function(a){if(a.coordinateSystem.type!=="polar")return;var c=a.getData(),h=a.coordinateSystem,g=h.getBaseAxis(),A=d(h,g),b=p(a),S=r[A][b],E=S.offset,C=S.width,_=h.getOtherAxis(g),T=a.coordinateSystem.cx,w=a.coordinateSystem.cy,O=a.get("barMinHeight")||0,I=a.get("barMinAngle")||0;l[b]=l[b]||[];for(var k=c.mapDimension(_.dim),M=c.mapDimension(g.dim),j=m(c,k),P=g.dim!=="radius"||!a.get("roundCap",!0),X=_.getExtent()[0],F=0,U=c.count();F<U;F++){var K=c.get(k,F),z=c.get(M,F),V=K>=0?"p":"n",Q=X;j&&(l[b][z]||(l[b][z]={p:X,n:X}),Q=l[b][z][V]);var G,te,q,se;if(_.dim==="radius"){var re=_.dataToRadius(K)-X,xe=g.dataToAngle(z);Math.abs(re)<O&&(re=(re<0?-1:1)*O),G=Q,te=Q+re,q=xe-E,se=q-C,j&&(l[b][z][V]=te)}else{var Oe=_.dataToAngle(K,P)-X,Me=g.dataToRadius(z);Math.abs(Oe)<I&&(Oe=(Oe<0?-1:1)*I),G=Me+E,te=G+C,q=Q,se=Q+Oe,j&&(l[b][z][V]=se)}c.setItemLayout(F,{cx:T,cy:w,r0:G,r:te,startAngle:-q*Math.PI/180,endAngle:-se*Math.PI/180})}},this)}function s(t,o){var e={};y.each(t,function(r,a){var c=r.getData(),h=r.coordinateSystem,g=h.getBaseAxis(),A=d(h,g),b=g.getExtent(),S=g.type==="category"?g.getBandWidth():Math.abs(b[1]-b[0])/c.count(),E=e[A]||{bandWidth:S,remainedWidth:S,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},C=E.stacks;e[A]=E;var _=p(r);C[_]||E.autoWidthCount++,C[_]=C[_]||{width:0,maxWidth:0};var T=x(r.get("barWidth"),S),w=x(r.get("barMaxWidth"),S),O=r.get("barGap"),I=r.get("barCategoryGap");T&&!C[_].width&&(T=Math.min(E.remainedWidth,T),C[_].width=T,E.remainedWidth-=T),w&&(C[_].maxWidth=w),O!=null&&(E.gap=O),I!=null&&(E.categoryGap=I)});var l={};return y.each(e,function(r,a){l[a]={};var c=r.stacks,h=r.bandWidth,g=x(r.categoryGap,h),A=x(r.gap,1),b=r.remainedWidth,S=r.autoWidthCount,E=(b-g)/(S+(S-1)*A);E=Math.max(E,0),y.each(c,function(w,O){var I=w.maxWidth;I&&I<E&&(I=Math.min(I,b),w.width&&(I=Math.min(I,w.width)),b-=I,w.width=I,S--)}),E=(b-g)/(S+(S-1)*A),E=Math.max(E,0);var C=0,_;y.each(c,function(w,O){w.width||(w.width=E),_=w,C+=w.width*(1+A)}),_&&(C-=_.width*A);var T=-C/2;y.each(c,function(w,O){l[a][O]=l[a][O]||{offset:T,width:w.width},T+=w.width*(1+A)})}),l}var i=u;R.exports=i},HjOm:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},f=y;D.default=f},Hvzi:function(R,D){function n(y){var f=this.has(y)&&delete this.__data__[y];return this.size-=f?1:0,f}R.exports=n},Hw7h:function(R,D,n){var y=n("y+Vt"),f=y.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(x,v){var m=Math.cos,p=Math.sin,d=v.r,u=v.width,s=v.angle,i=v.x-m(s)*u*(u>=d/3?1:2),t=v.y-p(s)*u*(u>=d/3?1:2);s=v.angle-Math.PI/2,x.moveTo(i,t),x.lineTo(v.x+m(s)*u,v.y+p(s)*u),x.lineTo(v.x+m(v.angle)*d,v.y+p(v.angle)*d),x.lineTo(v.x-m(s)*u,v.y-p(s)*u),x.lineTo(i,t);return}});R.exports=f},Hxpc:function(R,D,n){var y=n("bYtY"),f=n("4NO4"),x=n("bLfw"),v=n("Qxkt"),m=n("cCMj"),p=n("7uqq"),d=x.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(s){x.prototype.init.apply(this,arguments),f.defaultEmphasis(s,"label",["show"])},optionUpdated:function(){var s=this.option,i=this;s.regions=p.getFilledRegions(s.regions,s.map,s.nameMap),this._optionModelMap=y.reduce(s.regions||[],function(t,o){return o.name&&t.set(o.name,new v(o,i)),t},y.createHashMap()),this.updateSelectedMap(s.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(s){return this._optionModelMap.get(s)||new v(null,this,this.ecModel)},getFormattedLabel:function(s,i){var t=this.getRegionModel(s),o=t.get("label"+(i==="normal"?".":i+".")+"formatter"),e={name:s};if(typeof o=="function")return e.status=i,o(e);if(typeof o=="string")return o.replace("{a}",s!=null?s:"")},setZoom:function(s){this.option.zoom=s},setCenter:function(s){this.option.center=s}});y.mixin(d,m);var u=d;R.exports=u},"I+77":function(R,D,n){var y=n("ProS");n("h54F"),n("lwQL"),n("10cm");var f=n("Z1r0"),x=n("f5Yq"),v=n("KUOm"),m=n("3m61"),p=n("01d+"),d=n("rdor"),u=n("WGYa"),s=n("ewwo");y.registerProcessor(f),y.registerVisual(x("graph","circle",null)),y.registerVisual(v),y.registerVisual(m),y.registerLayout(p),y.registerLayout(y.PRIORITY.VISUAL.POST_CHART_LAYOUT,d),y.registerLayout(u),y.registerCoordinateSystem("graphView",{create:s})},"I+Bx":function(R,D,n){var y=n("bYtY"),f=n("eIcI"),x=n("ieMj"),v=n("OELB"),m=n("aX7z"),p=m.getScaleExtent,d=m.niceScaleExtent,u=n("IDmD"),s=n("jCoz");function i(o,e,l){this._model=o,this.dimensions=[],this._indicatorAxes=y.map(o.getIndicatorModels(),function(r,a){var c="indicator_"+a,h=new f(c,r.get("axisType")==="log"?new s:new x);return h.name=r.get("name"),h.model=r,r.axis=h,this.dimensions.push(c),h},this),this.resize(o,l),this.cx,this.cy,this.r,this.r0,this.startAngle}i.prototype.getIndicatorAxes=function(){return this._indicatorAxes},i.prototype.dataToPoint=function(o,e){var l=this._indicatorAxes[e];return this.coordToPoint(l.dataToCoord(o),e)},i.prototype.coordToPoint=function(o,e){var l=this._indicatorAxes[e],r=l.angle,a=this.cx+o*Math.cos(r),c=this.cy-o*Math.sin(r);return[a,c]},i.prototype.pointToData=function(o){var e=o[0]-this.cx,l=o[1]-this.cy,r=Math.sqrt(e*e+l*l);e/=r,l/=r;for(var a=Math.atan2(-l,e),c=Infinity,h,g=-1,A=0;A<this._indicatorAxes.length;A++){var b=this._indicatorAxes[A],S=Math.abs(a-b.angle);S<c&&(h=b,g=A,c=S)}return[g,+(h&&h.coordToData(r))]},i.prototype.resize=function(o,e){var l=o.get("center"),r=e.getWidth(),a=e.getHeight(),c=Math.min(r,a)/2;this.cx=v.parsePercent(l[0],r),this.cy=v.parsePercent(l[1],a),this.startAngle=o.get("startAngle")*Math.PI/180;var h=o.get("radius");(typeof h=="string"||typeof h=="number")&&(h=[0,h]),this.r0=v.parsePercent(h[0],c),this.r=v.parsePercent(h[1],c),y.each(this._indicatorAxes,function(g,A){g.setExtent(this.r0,this.r);var b=this.startAngle+A*Math.PI*2/this._indicatorAxes.length;b=Math.atan2(Math.sin(b),Math.cos(b)),g.angle=b},this)},i.prototype.update=function(o,e){var l=this._indicatorAxes,r=this._model;y.each(l,function(h){h.scale.setExtent(Infinity,-Infinity)}),o.eachSeriesByType("radar",function(h,g){if(h.get("coordinateSystem")!=="radar"||o.getComponent("radar",h.get("radarIndex"))!==r)return;var A=h.getData();y.each(l,function(b){b.scale.unionExtentFromData(A,A.mapDimension(b.dim))})},this);var a=r.get("splitNumber");function c(h){var g=Math.pow(10,Math.floor(Math.log(h)/Math.LN10)),A=h/g;return A===2?A=5:A*=2,A*g}y.each(l,function(h,g){var A=p(h.scale,h.model).extent;d(h.scale,h.model);var b=h.model,S=h.scale,E=b.getMin(),C=b.getMax(),_=S.getInterval();if(E!=null&&C!=null)S.setExtent(+E,+C),S.setInterval((C-E)/a);else if(E!=null){var T;do T=E+_*a,S.setExtent(+E,T),S.setInterval(_),_=c(_);while(T<A[1]&&isFinite(T)&&isFinite(A[1]))}else if(C!=null){var w;do w=C-_*a,S.setExtent(w,+C),S.setInterval(_),_=c(_);while(w>A[0]&&isFinite(w)&&isFinite(A[0]))}else{var O=S.getTicks().length-1;O>a&&(_=c(_));var T=Math.ceil(A[1]/_)*_,w=v.round(T-_*a);S.setExtent(w,T),S.setInterval(_)}})},i.dimensions=[],i.create=function(o,e){var l=[];return o.eachComponent("radar",function(r){var a=new i(r,o,e);l.push(a),r.coordinateSystem=a}),o.eachSeriesByType("radar",function(r){r.get("coordinateSystem")==="radar"&&(r.coordinateSystem=l[r.get("radarIndex")||0])}),l},u.register("radar",i);var t=i;R.exports=t},"I3/A":function(R,D,n){var y=n("bYtY"),f=n("YXkt"),x=n("c2i1"),v=n("Mdki"),m=n("sdST"),p=n("IDmD"),d=n("MwEJ");function u(s,i,t,o,e){for(var l=new x(o),r=0;r<s.length;r++)l.addNode(y.retrieve(s[r].id,s[r].name,r),r);for(var a=[],c=[],h=0,r=0;r<i.length;r++){var g=i[r],A=g.source,b=g.target;l.addEdge(A,b,h)&&(c.push(g),a.push(y.retrieve(g.id,A+" > "+b)),h++)}var S=t.get("coordinateSystem"),E;if(S==="cartesian2d"||S==="polar")E=d(s,t);else{var C=p.get(S),_=C&&C.type!=="view"?C.dimensions||[]:[];y.indexOf(_,"value")<0&&_.concat(["value"]);var T=m(s,{coordDimensions:_});E=new f(T,t),E.initData(s)}var w=new f(["value"],t);return w.initData(c,a),e&&e(E,w),v({mainData:E,struct:l,structAttr:"graph",datas:{node:E,edge:w},datasAttr:{node:"data",edge:"edgeData"}}),l.update(),l}R.exports=u},I8Z2:function(R,D,n){"use strict";n.d(D,"a",function(){return v}),n.d(D,"b",function(){return e}),n.d(D,"c",function(){return r});var y=n("q1tI"),f=function(){var a=function(h,g){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,b){A.__proto__=b}||function(A,b){for(var S in b)b.hasOwnProperty(S)&&(A[S]=b[S])},a(h,g)};return function(c,h){a(c,h);function g(){this.constructor=c}c.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}(),x=y.createContext(null),v=function(a){f(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.render=function(){return y.createElement(x.Provider,{value:this.props.store},this.props.children)},c}(y.Component),m=n("Gytx"),p=n.n(m),d=n("2mql"),u=n.n(d),s=function(){var a=function(h,g){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,b){A.__proto__=b}||function(A,b){for(var S in b)b.hasOwnProperty(S)&&(A[S]=b[S])},a(h,g)};return function(c,h){a(c,h);function g(){this.constructor=c}c.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}(),i=function(){return i=Object.assign||function(a){for(var c,h=1,g=arguments.length;h<g;h++){c=arguments[h];for(var A in c)Object.prototype.hasOwnProperty.call(c,A)&&(a[A]=c[A])}return a},i.apply(this,arguments)};function t(a){return a.displayName||a.name||"Component"}var o=function(){return{}};function e(a,c){c===void 0&&(c={});var h=!!a,g=a||o;return function(b){var S=function(C){s(_,C);function _(T,w){var O=C.call(this,T,w)||this;return O.unsubscribe=null,O.handleChange=function(){if(!O.unsubscribe)return;var I=g(O.store.getState(),O.props);O.setState({subscribed:I})},O.store=O.context,O.state={subscribed:g(O.store.getState(),T),store:O.store,props:T},O}return _.getDerivedStateFromProps=function(T,w){return a&&a.length===2&&T!==w.props?{subscribed:g(w.store.getState(),T),props:T}:{props:T}},_.prototype.componentDidMount=function(){this.trySubscribe()},_.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},_.prototype.shouldComponentUpdate=function(T,w){return!p()(this.props,T)||!p()(this.state.subscribed,w.subscribed)},_.prototype.trySubscribe=function(){h&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},_.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},_.prototype.render=function(){var T=i(i(i({},this.props),this.state.subscribed),{store:this.store});return y.createElement(b,i({},T,{ref:this.props.miniStoreForwardedRef}))},_.displayName="Connect("+t(b)+")",_.contextType=x,_}(y.Component);if(c.forwardRef){var E=y.forwardRef(function(C,_){return y.createElement(S,i({},C,{miniStoreForwardedRef:_}))});return u()(E,b)}return u()(S,b)}}var l=function(){return l=Object.assign||function(a){for(var c,h=1,g=arguments.length;h<g;h++){c=arguments[h];for(var A in c)Object.prototype.hasOwnProperty.call(c,A)&&(a[A]=c[A])}return a},l.apply(this,arguments)};function r(a){var c=a,h=[];function g(S){c=l(l({},c),S);for(var E=0;E<h.length;E++)h[E]()}function A(){return c}function b(S){return h.push(S),function(){var C=h.indexOf(S);h.splice(C,1)}}return{setState:g,getState:A,subscribe:b}}},"I9Y+":function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("4xFK")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="DoubleRightOutlined";var i=v.forwardRef(s);D.default=i},ICMv:function(R,D,n){var y=n("bYtY"),f={getMin:function(x){var v=this.option,m=!x&&v.rangeStart!=null?v.rangeStart:v.min;return this.axis&&m!=null&&m!=="dataMin"&&typeof m!="function"&&!y.eqNaN(m)&&(m=this.axis.scale.parse(m)),m},getMax:function(x){var v=this.option,m=!x&&v.rangeEnd!=null?v.rangeEnd:v.max;return this.axis&&m!=null&&m!=="dataMax"&&typeof m!="function"&&!y.eqNaN(m)&&(m=this.axis.scale.parse(m)),m},getNeedCrossZero:function(){var x=this.option;return x.rangeStart!=null||x.rangeEnd!=null?!1:!x.scale},getCoordSysModel:y.noop,setRange:function(x,v){this.option.rangeStart=x,this.option.rangeEnd=v},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};R.exports=f},"ID/q":function(R,D,n){"use strict";n.d(D,"a",function(){return v});var y=n("cDf5"),f=n.n(y);function x(m,p){typeof m=="function"?m(p):f()(m)==="object"&&m&&"current"in m&&(m.current=p)}function v(){for(var m=arguments.length,p=new Array(m),d=0;d<m;d++)p[d]=arguments[d];return function(u){p.forEach(function(s){x(s,u)})}}},IDmD:function(R,D,n){var y=n("bYtY"),f={};function x(){this._coordinateSystems=[]}x.prototype={constructor:x,create:function(m,p){var d=[];y.each(f,function(u,s){var i=u.create(m,p);d=d.concat(i||[])}),this._coordinateSystems=d},update:function(m,p){y.each(this._coordinateSystems,function(d){d.update&&d.update(m,p)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},x.register=function(m,p){f[m]=p},x.get=function(m){return f[m]};var v=x;R.exports=v},IMiH:function(R,D,n){var y=n("Sj9i"),f=n("QBsz"),x=n("4mN7"),v=n("mFDi"),m=n("LPTA"),p=m.devicePixelRatio,d={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],s=[],i=[],t=[],o=Math.min,e=Math.max,l=Math.cos,r=Math.sin,a=Math.sqrt,c=Math.abs,h=typeof Float32Array!="undefined",g=function(S){this._saveData=!(S||!1),this._saveData&&(this.data=[]),this._ctx=null};g.prototype={constructor:g,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(S,E,C){C=C||0,this._ux=c(C/p/S)||0,this._uy=c(C/p/E)||0},getContext:function(){return this._ctx},beginPath:function(S){return this._ctx=S,S&&S.beginPath(),S&&(this.dpr=S.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(S,E){return this.addData(d.M,S,E),this._ctx&&this._ctx.moveTo(S,E),this._x0=S,this._y0=E,this._xi=S,this._yi=E,this},lineTo:function(S,E){var C=c(S-this._xi)>this._ux||c(E-this._yi)>this._uy||this._len<5;return this.addData(d.L,S,E),this._ctx&&C&&(this._needsDash()?this._dashedLineTo(S,E):this._ctx.lineTo(S,E)),C&&(this._xi=S,this._yi=E),this},bezierCurveTo:function(S,E,C,_,T,w){return this.addData(d.C,S,E,C,_,T,w),this._ctx&&(this._needsDash()?this._dashedBezierTo(S,E,C,_,T,w):this._ctx.bezierCurveTo(S,E,C,_,T,w)),this._xi=T,this._yi=w,this},quadraticCurveTo:function(S,E,C,_){return this.addData(d.Q,S,E,C,_),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(S,E,C,_):this._ctx.quadraticCurveTo(S,E,C,_)),this._xi=C,this._yi=_,this},arc:function(S,E,C,_,T,w){return this.addData(d.A,S,E,C,C,_,T-_,0,w?0:1),this._ctx&&this._ctx.arc(S,E,C,_,T,w),this._xi=l(T)*C+S,this._yi=r(T)*C+E,this},arcTo:function(S,E,C,_,T){return this._ctx&&this._ctx.arcTo(S,E,C,_,T),this},rect:function(S,E,C,_){return this._ctx&&this._ctx.rect(S,E,C,_),this.addData(d.R,S,E,C,_),this},closePath:function(){this.addData(d.Z);var S=this._ctx,E=this._x0,C=this._y0;return S&&(this._needsDash()&&this._dashedLineTo(E,C),S.closePath()),this._xi=E,this._yi=C,this},fill:function(S){S&&S.fill(),this.toStatic()},stroke:function(S){S&&S.stroke(),this.toStatic()},setLineDash:function(S){if(S instanceof Array){this._lineDash=S,this._dashIdx=0;for(var E=0,C=0;C<S.length;C++)E+=S[C];this._dashSum=E}return this},setLineDashOffset:function(S){return this._dashOffset=S,this},len:function(){return this._len},setData:function(S){var E=S.length;!(this.data&&this.data.length===E)&&h&&(this.data=new Float32Array(E));for(var C=0;C<E;C++)this.data[C]=S[C];this._len=E},appendPath:function(S){S instanceof Array||(S=[S]);for(var E=S.length,C=0,_=this._len,T=0;T<E;T++)C+=S[T].len();h&&this.data instanceof Float32Array&&(this.data=new Float32Array(_+C));for(var T=0;T<E;T++)for(var w=S[T].data,O=0;O<w.length;O++)this.data[_++]=w[O];this._len=_},addData:function(S){if(!this._saveData)return;var E=this.data;this._len+arguments.length>E.length&&(this._expandData(),E=this.data);for(var C=0;C<arguments.length;C++)E[this._len++]=arguments[C];this._prevCmd=S},_expandData:function(){if(!(this.data instanceof Array)){for(var S=[],E=0;E<this._len;E++)S[E]=this.data[E];this.data=S}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(S,E){var C=this._dashSum,_=this._dashOffset,T=this._lineDash,w=this._ctx,O=this._xi,I=this._yi,k=S-O,M=E-I,j=a(k*k+M*M),P=O,X=I,F,U=T.length,K;for(k/=j,M/=j,_<0&&(_=C+_),_%=C,P-=_*k,X-=_*M;k>0&&P<=S||k<0&&P>=S||k===0&&(M>0&&X<=E||M<0&&X>=E);){if(K=this._dashIdx,F=T[K],P+=k*F,X+=M*F,this._dashIdx=(K+1)%U,k>0&&P<O||k<0&&P>O||M>0&&X<I||M<0&&X>I)continue;w[K%2?"moveTo":"lineTo"](k>=0?o(P,S):e(P,S),M>=0?o(X,E):e(X,E))}k=P-S,M=X-E,this._dashOffset=-a(k*k+M*M)},_dashedBezierTo:function(S,E,C,_,T,w){var O=this._dashSum,I=this._dashOffset,k=this._lineDash,M=this._ctx,j=this._xi,P=this._yi,X,F,U,K=y.cubicAt,z=0,V=this._dashIdx,Q=k.length,G,te,q=0;for(I<0&&(I=O+I),I%=O,X=0;X<1;X+=.1)F=K(j,S,C,T,X+.1)-K(j,S,C,T,X),U=K(P,E,_,w,X+.1)-K(P,E,_,w,X),z+=a(F*F+U*U);for(;V<Q&&!(q+=k[V],q>I);V++);for(X=(q-I)/z;X<=1;)G=K(j,S,C,T,X),te=K(P,E,_,w,X),V%2?M.moveTo(G,te):M.lineTo(G,te),X+=k[V]/z,V=(V+1)%Q;V%2!==0&&M.lineTo(T,w),F=T-G,U=w-te,this._dashOffset=-a(F*F+U*U)},_dashedQuadraticTo:function(S,E,C,_){var T=C,w=_;C=(C+2*S)/3,_=(_+2*E)/3,S=(this._xi+2*S)/3,E=(this._yi+2*E)/3,this._dashedBezierTo(S,E,C,_,T,w)},toStatic:function(){var S=this.data;S instanceof Array&&(S.length=this._len,h&&(this.data=new Float32Array(S)))},getBoundingRect:function(){u[0]=u[1]=i[0]=i[1]=Number.MAX_VALUE,s[0]=s[1]=t[0]=t[1]=-Number.MAX_VALUE;for(var S=this.data,E=0,C=0,_=0,T=0,w=0;w<S.length;){var O=S[w++];w===1&&(E=S[w],C=S[w+1],_=E,T=C);switch(O){case d.M:_=S[w++],T=S[w++],E=_,C=T,i[0]=_,i[1]=T,t[0]=_,t[1]=T;break;case d.L:x.fromLine(E,C,S[w],S[w+1],i,t),E=S[w++],C=S[w++];break;case d.C:x.fromCubic(E,C,S[w++],S[w++],S[w++],S[w++],S[w],S[w+1],i,t),E=S[w++],C=S[w++];break;case d.Q:x.fromQuadratic(E,C,S[w++],S[w++],S[w],S[w+1],i,t),E=S[w++],C=S[w++];break;case d.A:var I=S[w++],k=S[w++],M=S[w++],j=S[w++],P=S[w++],X=S[w++]+P;w+=1;var F=1-S[w++];w===1&&(_=l(P)*M+I,T=r(P)*j+k),x.fromArc(I,k,M,j,P,X,F,i,t),E=l(X)*M+I,C=r(X)*j+k;break;case d.R:_=E=S[w++],T=C=S[w++];var U=S[w++],K=S[w++];x.fromLine(_,T,_+U,T+K,i,t);break;case d.Z:E=_,C=T;break}f.min(u,u,i),f.max(s,s,t)}return w===0&&(u[0]=u[1]=s[0]=s[1]=0),new v(u[0],u[1],s[0]-u[0],s[1]-u[1])},rebuildPath:function(S){for(var E=this.data,C,_,T,w,O,I,k=this._ux,M=this._uy,j=this._len,P=0;P<j;){var X=E[P++];P===1&&(T=E[P],w=E[P+1],C=T,_=w);switch(X){case d.M:C=T=E[P++],_=w=E[P++],S.moveTo(T,w);break;case d.L:O=E[P++],I=E[P++],(c(O-T)>k||c(I-w)>M||P===j-1)&&(S.lineTo(O,I),T=O,w=I);break;case d.C:S.bezierCurveTo(E[P++],E[P++],E[P++],E[P++],E[P++],E[P++]),T=E[P-2],w=E[P-1];break;case d.Q:S.quadraticCurveTo(E[P++],E[P++],E[P++],E[P++]),T=E[P-2],w=E[P-1];break;case d.A:var F=E[P++],U=E[P++],K=E[P++],z=E[P++],V=E[P++],Q=E[P++],G=E[P++],te=E[P++],q=K>z?K:z,se=K>z?1:K/z,re=K>z?z/K:1,xe=Math.abs(K-z)>.001,Oe=V+Q;xe?(S.translate(F,U),S.rotate(G),S.scale(se,re),S.arc(0,0,q,V,Oe,1-te),S.scale(1/se,1/re),S.rotate(-G),S.translate(-F,-U)):S.arc(F,U,q,V,Oe,1-te),P===1&&(C=l(V)*K+F,_=r(V)*z+U),T=l(Oe)*K+F,w=r(Oe)*z+U;break;case d.R:C=T=E[P],_=w=E[P+1],S.rect(E[P++],E[P++],E[P++],E[P++]);break;case d.Z:S.closePath(),T=C,w=_}}}},g.CMD=d;var A=g;R.exports=A},IUWy:function(R,D){var n={};function y(x,v){n[x]=v}function f(x){return n[x]}D.register=y,D.get=f},IWNH:function(R,D,n){var y=n("T4UG"),f=n("Bsck"),x=n("7aKB"),v=x.encodeHTML,m=n("Qxkt"),p=y.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(d){var u={name:d.name,children:d.data},s=d.leaves||{},i=new m(s,this,this.ecModel),t=f.createTree(u,this,{},o);function o(a){a.wrapMethod("getItemModel",function(c,h){var g=t.getNodeByDataIndex(h);return(!g.children.length||!g.isExpand)&&(c.parentModel=i),c})}var e=0;t.eachNode("preorder",function(a){a.depth>e&&(e=a.depth)});var l=d.expandAndCollapse,r=l&&d.initialTreeDepth>=0?d.initialTreeDepth:e;return t.root.eachNode("preorder",function(a){var c=a.hostTree.data.getRawDataItem(a.dataIndex);a.isExpand=c&&c.collapsed!=null?!c.collapsed:a.depth<=r}),t.data},getOrient:function(){var d=this.get("orient");return d==="horizontal"?d="LR":d==="vertical"&&(d="TB"),d},setZoom:function(d){this.option.zoom=d},setCenter:function(d){this.option.center=d},formatTooltip:function(d){for(var u=this.getData().tree,s=u.root.children[0],i=u.getNodeByDataIndex(d),t=i.getValue(),o=i.name;i&&i!==s;)o=i.parentNode.name+"."+o,i=i.parentNode;return v(o+(isNaN(t)||t==null?"":" : "+t))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});R.exports=p},IWp7:function(R,D,n){var y=n("bYtY"),f=n("OELB"),x=n("7aKB"),v=n("lE7J"),m=n("ieMj"),p=m.prototype,d=Math.ceil,u=Math.floor,s=1e3,i=s*60,t=i*60,o=t*24,e=function(c,h,g,A){for(;g<A;){var b=g+A>>>1;c[b][1]<h?g=b+1:A=b}return g},l=m.extend({type:"time",getLabel:function(c){var h=this._stepLvl,g=new Date(c);return x.formatTime(h[0],g,this.getSetting("useUTC"))},niceExtent:function(c){var h=this._extent;if(h[0]===h[1]&&(h[0]-=o,h[1]+=o),h[1]===-Infinity&&h[0]===Infinity){var g=new Date;h[1]=+new Date(g.getFullYear(),g.getMonth(),g.getDate()),h[0]=h[1]-o}this.niceTicks(c.splitNumber,c.minInterval,c.maxInterval);var A=this._interval;c.fixMin||(h[0]=f.round(u(h[0]/A)*A)),c.fixMax||(h[1]=f.round(d(h[1]/A)*A))},niceTicks:function(c,h,g){c=c||10;var A=this._extent,b=A[1]-A[0],S=b/c;h!=null&&S<h&&(S=h),g!=null&&S>g&&(S=g);var E=r.length,C=e(r,S,0,E),_=r[Math.min(C,E-1)],T=_[1];if(_[0]==="year"){var w=b/T,O=f.nice(w/c,!0);T*=O}var I=this.getSetting("useUTC")?0:new Date(+A[0]||+A[1]).getTimezoneOffset()*60*1e3,k=[Math.round(d((A[0]-I)/T)*T+I),Math.round(u((A[1]-I)/T)*T+I)];v.fixExtent(k,A),this._stepLvl=_,this._interval=T,this._niceExtent=k},parse:function(c){return+f.parseDate(c)}});y.each(["contain","normalize"],function(c){l.prototype[c]=function(h){return p[c].call(this,this.parse(h))}});var r=[["hh:mm:ss",s],["hh:mm:ss",s*5],["hh:mm:ss",s*10],["hh:mm:ss",s*15],["hh:mm:ss",s*30],[`hh:mm
|
|
|
MM-dd`,i],[`hh:mm
|
|
|
MM-dd`,i*5],[`hh:mm
|
|
|
MM-dd`,i*10],[`hh:mm
|
|
|
MM-dd`,i*15],[`hh:mm
|
|
|
MM-dd`,i*30],[`hh:mm
|
|
|
MM-dd`,t],[`hh:mm
|
|
|
MM-dd`,t*2],[`hh:mm
|
|
|
MM-dd`,t*6],[`hh:mm
|
|
|
MM-dd`,t*12],[`MM-dd
|
|
|
yyyy`,o],[`MM-dd
|
|
|
yyyy`,o*2],[`MM-dd
|
|
|
yyyy`,o*3],[`MM-dd
|
|
|
yyyy`,o*4],[`MM-dd
|
|
|
yyyy`,o*5],[`MM-dd
|
|
|
yyyy`,o*6],["week",o*7],[`MM-dd
|
|
|
yyyy`,o*10],["week",o*14],["week",o*21],["month",o*31],["week",o*42],["month",o*62],["week",o*70],["quarter",o*95],["month",o*31*4],["month",o*31*5],["half-year",o*380/2],["month",o*31*8],["month",o*31*10],["year",o*380]];l.create=function(c){return new l({useUTC:c.ecModel.get("useUTC")})};var a=l;R.exports=a},IXuL:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("MwEJ"),v=n("T4UG"),m=v.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(p,d){return x(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:Infinity}});R.exports=m},IXyC:function(R,D,n){var y=n("bYtY"),f=n("bLfw");n("3zoK");var x=f.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){f.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(v){var m=this.option;v&&y.merge(m,v,!0),this._initDimensions()},contains:function(v,m){var p=v.get("parallelIndex");return p!=null&&m.getComponent("parallel",p)===this},setAxisExpand:function(v){y.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(m){v.hasOwnProperty(m)&&(this.option[m]=v[m])},this)},_initDimensions:function(){var v=this.dimensions=[],m=this.parallelAxisIndex=[],p=y.filter(this.dependentModels.parallelAxis,function(d){return(d.get("parallelIndex")||0)===this.componentIndex},this);y.each(p,function(d){v.push("dim"+d.get("dim")),m.push(d.componentIndex)})}});R.exports=x},Ib8C:function(R,D,n){(function(y){(function(f,x){R.exports=D=x()})(this,function(){var f=f||function(x,v){var m;if(typeof window!="undefined"&&window.crypto&&(m=window.crypto),typeof self!="undefined"&&self.crypto&&(m=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(m=globalThis.crypto),!m&&typeof window!="undefined"&&window.msCrypto&&(m=window.msCrypto),!m&&typeof y!="undefined"&&y.crypto&&(m=y.crypto),!m&&!0)try{m=n(4)}catch(g){}var p=function(){if(m){if(typeof m.getRandomValues=="function")try{return m.getRandomValues(new Uint32Array(1))[0]}catch(A){}if(typeof m.randomBytes=="function")try{return m.randomBytes(4).readInt32LE()}catch(A){}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||function(){function g(){}return function(A){var b;return g.prototype=A,b=new g,g.prototype=null,b}}(),u={},s=u.lib={},i=s.Base=function(){return{extend:function(A){var b=d(this);return A&&b.mixIn(A),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var A=this.extend();return A.init.apply(A,arguments),A},init:function(){},mixIn:function(A){for(var b in A)A.hasOwnProperty(b)&&(this[b]=A[b]);A.hasOwnProperty("toString")&&(this.toString=A.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),t=s.WordArray=i.extend({init:function(A,b){A=this.words=A||[],b!=v?this.sigBytes=b:this.sigBytes=A.length*4},toString:function(A){return(A||e).stringify(this)},concat:function(A){var b=this.words,S=A.words,E=this.sigBytes,C=A.sigBytes;if(this.clamp(),E%4)for(var _=0;_<C;_++){var T=S[_>>>2]>>>24-_%4*8&255;b[E+_>>>2]|=T<<24-(E+_)%4*8}else for(var w=0;w<C;w+=4)b[E+w>>>2]=S[w>>>2];return this.sigBytes+=C,this},clamp:function(){var A=this.words,b=this.sigBytes;A[b>>>2]&=4294967295<<32-b%4*8,A.length=x.ceil(b/4)},clone:function(){var A=i.clone.call(this);return A.words=this.words.slice(0),A},random:function(A){for(var b=[],S=0;S<A;S+=4)b.push(p());return new t.init(b,A)}}),o=u.enc={},e=o.Hex={stringify:function(A){for(var b=A.words,S=A.sigBytes,E=[],C=0;C<S;C++){var _=b[C>>>2]>>>24-C%4*8&255;E.push((_>>>4).toString(16)),E.push((_&15).toString(16))}return E.join("")},parse:function(A){for(var b=A.length,S=[],E=0;E<b;E+=2)S[E>>>3]|=parseInt(A.substr(E,2),16)<<24-E%8*4;return new t.init(S,b/2)}},l=o.Latin1={stringify:function(A){for(var b=A.words,S=A.sigBytes,E=[],C=0;C<S;C++){var _=b[C>>>2]>>>24-C%4*8&255;E.push(String.fromCharCode(_))}return E.join("")},parse:function(A){for(var b=A.length,S=[],E=0;E<b;E++)S[E>>>2]|=(A.charCodeAt(E)&255)<<24-E%4*8;return new t.init(S,b)}},r=o.Utf8={stringify:function(A){try{return decodeURIComponent(escape(l.stringify(A)))}catch(b){throw new Error("Malformed UTF-8 data")}},parse:function(A){return l.parse(unescape(encodeURIComponent(A)))}},a=s.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new t.init,this._nDataBytes=0},_append:function(A){typeof A=="string"&&(A=r.parse(A)),this._data.concat(A),this._nDataBytes+=A.sigBytes},_process:function(A){var b,S=this._data,E=S.words,C=S.sigBytes,_=this.blockSize,T=_*4,w=C/T;A?w=x.ceil(w):w=x.max((w|0)-this._minBufferSize,0);var O=w*_,I=x.min(O*4,C);if(O){for(var k=0;k<O;k+=_)this._doProcessBlock(E,k);b=E.splice(0,O),S.sigBytes-=I}return new t.init(b,I)},clone:function(){var A=i.clone.call(this);return A._data=this._data.clone(),A},_minBufferSize:0}),c=s.Hasher=a.extend({cfg:i.extend(),init:function(A){this.cfg=this.cfg.extend(A),this.reset()},reset:function(){a.reset.call(this),this._doReset()},update:function(A){return this._append(A),this._process(),this},finalize:function(A){A&&this._append(A);var b=this._doFinalize();return b},blockSize:512/32,_createHelper:function(A){return function(b,S){return new A.init(S).finalize(b)}},_createHmacHelper:function(A){return function(b,S){return new h.HMAC.init(A,S).finalize(b)}}}),h=u.algo={};return u}(Math);return f})}).call(this,n("yLpj"))},ItGF:function(R,D){var n={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?n={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?n={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?n={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:n=f(navigator.userAgent);var y=n;function f(x){var v={},m={},p=x.match(/Firefox\/([\d.]+)/),d=x.match(/MSIE\s([\d.]+)/)||x.match(/Trident\/.+?rv:(([\d.]+))/),u=x.match(/Edge\/([\d.]+)/),s=/micromessenger/i.test(x);return p&&(m.firefox=!0,m.version=p[1]),d&&(m.ie=!0,m.version=d[1]),u&&(m.edge=!0,m.version=u[1]),s&&(m.weChat=!0),{browser:m,os:v,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!m.ie&&!m.edge,pointerEventsSupported:"onpointerdown"in window&&(m.edge||m.ie&&m.version>=11),domSupported:typeof document!="undefined"}}R.exports=y},ItS6:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("eP3c"),f=x(n("1q3G"));function x(u){return u&&u.__esModule?u:{default:u}}function v(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function m(u,s){for(var i=0;i<s.length;i++){var t=s[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}function p(u,s,i){return s&&m(u.prototype,s),i&&m(u,i),u}var d=function(){function u(){v(this,u),this.strm=new f.default,this.chunkSize=1024*10*10,this.strm.output=new Uint8Array(this.chunkSize),this.windowBits=5,(0,y.inflateInit)(this.strm,this.windowBits)}return p(u,[{key:"setInput",value:function(i){i?(this.strm.input=i,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0):(this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0)}},{key:"inflate",value:function(i){i>this.chunkSize&&(this.chunkSize=i,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=i;var t=(0,y.inflate)(this.strm,0);if(t<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=i)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}},{key:"reset",value:function(){(0,y.inflateReset)(this.strm)}}]),u}();D.default=d},Itpr:function(R,D,n){var y=n("+TT/");function f(r){r.hierNode={defaultAncestor:null,ancestor:r,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var a=[r],c,h;c=a.pop();)if(h=c.children,c.isExpand&&h.length)for(var g=h.length,A=g-1;A>=0;A--){var b=h[A];b.hierNode={defaultAncestor:null,ancestor:b,prelim:0,modifier:0,change:0,shift:0,i:A,thread:null},a.push(b)}}function x(r,a){var c=r.isExpand?r.children:[],h=r.parentNode.children,g=r.hierNode.i?h[r.hierNode.i-1]:null;if(c.length){u(r);var A=(c[0].hierNode.prelim+c[c.length-1].hierNode.prelim)/2;g?(r.hierNode.prelim=g.hierNode.prelim+a(r,g),r.hierNode.modifier=r.hierNode.prelim-A):r.hierNode.prelim=A}else g&&(r.hierNode.prelim=g.hierNode.prelim+a(r,g));r.parentNode.hierNode.defaultAncestor=s(r,g,r.parentNode.hierNode.defaultAncestor||h[0],a)}function v(r){var a=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:a},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function m(r){return arguments.length?r:l}function p(r,a){var c={};return r-=Math.PI/2,c.x=a*Math.cos(r),c.y=a*Math.sin(r),c}function d(r,a){return y.getLayoutRect(r.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})}function u(r){for(var a=r.children,c=a.length,h=0,g=0;--c>=0;){var A=a[c];A.hierNode.prelim+=h,A.hierNode.modifier+=h,g+=A.hierNode.change,h+=A.hierNode.shift+g}}function s(r,a,c,h){if(a){for(var g=r,A=r,b=A.parentNode.children[0],S=a,E=g.hierNode.modifier,C=A.hierNode.modifier,_=b.hierNode.modifier,T=S.hierNode.modifier;S=i(S),A=t(A),S&&A;){g=i(g),b=t(b),g.hierNode.ancestor=r;var w=S.hierNode.prelim+T-A.hierNode.prelim-C+h(S,A);w>0&&(e(o(S,r,c),r,w),C+=w,E+=w),T+=S.hierNode.modifier,C+=A.hierNode.modifier,E+=g.hierNode.modifier,_+=b.hierNode.modifier}S&&!i(g)&&(g.hierNode.thread=S,g.hierNode.modifier+=T-E),A&&!t(b)&&(b.hierNode.thread=A,b.hierNode.modifier+=C-_,c=r)}return c}function i(r){var a=r.children;return a.length&&r.isExpand?a[a.length-1]:r.hierNode.thread}function t(r){var a=r.children;return a.length&&r.isExpand?a[0]:r.hierNode.thread}function o(r,a,c){return r.hierNode.ancestor.parentNode===a.parentNode?r.hierNode.ancestor:c}function e(r,a,c){var h=c/(a.hierNode.i-r.hierNode.i);a.hierNode.change-=h,a.hierNode.shift+=c,a.hierNode.modifier+=c,a.hierNode.prelim+=c,r.hierNode.change+=h}function l(r,a){return r.parentNode===a.parentNode?1:2}D.init=f,D.firstWalk=x,D.secondWalk=v,D.separation=m,D.radialCoordinate=p,D.getViewRect=d},IwbS:function(R,D,n){var y=n("bYtY"),f=n("NC18"),x=n("Qe9p"),v=n("Fofx"),m=n("QBsz"),p=n("y+Vt"),d=n("DN4a"),u=n("Dagg");D.Image=u;var s=n("4fz+");D.Group=s;var i=n("dqUG");D.Text=i;var t=n("2fw6");D.Circle=t;var o=n("SqI9");D.Sector=o;var e=n("RXMa");D.Ring=e;var l=n("h7HQ");D.Polygon=l;var r=n("1Jh7");D.Polyline=r;var a=n("x6Kt");D.Rect=a;var c=n("yxFR");D.Line=c;var h=n("rA99");D.BezierCurve=h;var g=n("jTL6");D.Arc=g;var A=n("1MYJ");D.CompoundPath=A;var b=n("SKnc");D.LinearGradient=b;var S=n("3e3G");D.RadialGradient=S;var E=n("mFDi");D.BoundingRect=E;var C=n("OS9S");D.IncrementalDisplayable=C;var _=n("nPnh"),T=Math.max,w=Math.min,O={},I=1,k={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},M="emphasis",j="normal",P=1,X={},F={};function U(pt){return p.extend(pt)}function K(pt,at){return f.extendFromString(pt,at)}function z(pt,at){F[pt]=at}function V(pt){if(F.hasOwnProperty(pt))return F[pt]}function Q(pt,at,Pr,un){var _n=f.createFromString(pt,at);return Pr&&(un==="center"&&(Pr=te(Pr,_n.getBoundingRect())),se(_n,Pr)),_n}function G(pt,at,Pr){var un=new u({style:{image:pt,x:at.x,y:at.y,width:at.width,height:at.height},onload:function(_n){if(Pr==="center"){var Xn={width:_n.width,height:_n.height};un.setStyle(te(at,Xn))}}});return un}function te(pt,at){var Pr=at.width/at.height,un=pt.height*Pr,_n;un<=pt.width?_n=pt.height:(un=pt.width,_n=un/Pr);var Xn=pt.x+pt.width/2,xi=pt.y+pt.height/2;return{x:Xn-un/2,y:xi-_n/2,width:un,height:_n}}var q=f.mergePath;function se(pt,at){if(!pt.applyTransform)return;var Pr=pt.getBoundingRect(),un=Pr.calculateTransform(at);pt.applyTransform(un)}function re(pt){return _.subPixelOptimizeLine(pt.shape,pt.shape,pt.style),pt}function xe(pt){return _.subPixelOptimizeRect(pt.shape,pt.shape,pt.style),pt}var Oe=_.subPixelOptimize;function Me(pt){return pt!=null&&pt!=="none"}var Qe=y.createHashMap(),Ve=0;function ut(pt){if(typeof pt!="string")return pt;var at=Qe.get(pt);return at||(at=x.lift(pt,-.1),Ve<1e4&&(Qe.set(pt,at),Ve++)),at}function Fe(pt){if(!pt.__hoverStlDirty)return;pt.__hoverStlDirty=!1;var at=pt.__hoverStl;if(!at){pt.__cachedNormalStl=pt.__cachedNormalZ2=null;return}var Pr=pt.__cachedNormalStl={};pt.__cachedNormalZ2=pt.z2;var un=pt.style;for(var _n in at)at[_n]!=null&&(Pr[_n]=un[_n]);Pr.fill=un.fill,Pr.stroke=un.stroke}function ue(pt){var at=pt.__hoverStl;if(!at||pt.__highlighted)return;var Pr=pt.__zr,un=pt.useHoverLayer&&Pr&&Pr.painter.type==="canvas";if(pt.__highlighted=un?"layer":"plain",pt.isGroup||!Pr&&pt.useHoverLayer)return;var _n=pt,Xn=pt.style;un&&(_n=Pr.addHover(pt),Xn=_n.style),Xt(Xn),un||Fe(_n),Xn.extendFrom(at),et(Xn,at,"fill"),et(Xn,at,"stroke"),Pt(Xn),un||(pt.dirty(!1),pt.z2+=I)}function et(pt,at,Pr){!Me(at[Pr])&&Me(pt[Pr])&&(pt[Pr]=ut(pt[Pr]))}function he(pt){var at=pt.__highlighted;if(!at)return;if(pt.__highlighted=!1,pt.isGroup)return;if(at==="layer")pt.__zr&&pt.__zr.removeHover(pt);else{var Pr=pt.style,un=pt.__cachedNormalStl;un&&(Xt(Pr),pt.setStyle(un),Pt(Pr));var _n=pt.__cachedNormalZ2;_n!=null&&pt.z2-_n===I&&(pt.z2=_n)}}function J(pt,at,Pr){var un=j,_n=j,Xn;pt.__highlighted&&(un=M,Xn=!0),at(pt,Pr),pt.__highlighted&&(_n=M,Xn=!0),pt.isGroup&&pt.traverse(function(xi){!xi.isGroup&&at(xi,Pr)}),Xn&&pt.__highDownOnUpdate&&pt.__highDownOnUpdate(un,_n)}function Y(pt,at){at=pt.__hoverStl=at!==!1&&(pt.hoverStyle||at||{}),pt.__hoverStlDirty=!0,pt.__highlighted&&(pt.__cachedNormalStl=null,he(pt),ue(pt))}function $(pt){!Be(this,pt)&&!this.__highByOuter&&J(this,ue)}function de(pt){!Be(this,pt)&&!this.__highByOuter&&J(this,he)}function be(pt){this.__highByOuter|=1<<(pt||0),J(this,ue)}function Ce(pt){!(this.__highByOuter&=~(1<<(pt||0)))&&J(this,he)}function Be(pt,at){return pt.__highDownSilentOnTouch&&at.zrByTouch}function fe(pt,at){we(pt,!0),J(pt,Y,at)}function we(pt,at){var Pr=at===!1;if(pt.__highDownSilentOnTouch=pt.highDownSilentOnTouch,pt.__highDownOnUpdate=pt.highDownOnUpdate,!Pr||pt.__highDownDispatcher){var un=Pr?"off":"on";pt[un]("mouseover",$)[un]("mouseout",de),pt[un]("emphasis",be)[un]("normal",Ce),pt.__highByOuter=pt.__highByOuter||0,pt.__highDownDispatcher=!Pr}}function Re(pt){return!!(pt&&pt.__highDownDispatcher)}function rt(pt){var at=X[pt];return at==null&&P<=32&&(at=X[pt]=P++),at}function St(pt,at,Pr,un,_n,Xn,xi){_n=_n||O;var Pn=_n.labelFetcher,Un=_n.labelDataIndex,$t=_n.labelDimIndex,xt=_n.labelProp,De=Pr.getShallow("show"),ke=un.getShallow("show"),Pe;(De||ke)&&(Pn&&(Pe=Pn.getFormattedLabel(Un,"normal",null,$t,xt)),Pe==null&&(Pe=y.isFunction(_n.defaultText)?_n.defaultText(Un,_n):_n.defaultText));var tt=De?Pe:null,yt=ke?y.retrieve2(Pn?Pn.getFormattedLabel(Un,"emphasis",null,$t,xt):null,Pe):null;(tt!=null||yt!=null)&&(He(pt,Pr,Xn,_n),He(at,un,xi,_n,!0)),pt.text=tt,at.text=yt}function ft(pt,at,Pr){var un=pt.style;at&&(Xt(un),pt.setStyle(at),Pt(un)),un=pt.__hoverStl,Pr&&un&&(Xt(un),y.extend(un,Pr),Pt(un))}function He(pt,at,Pr,un,_n){return ct(pt,at,un,_n),Pr&&y.extend(pt,Pr),pt}function er(pt,at,Pr){var un={isRectText:!0},_n;Pr===!1?_n=!0:un.autoColor=Pr,ct(pt,at,un,_n)}function ct(pt,at,Pr,un){if(Pr=Pr||O,Pr.isRectText){var _n;Pr.getTextPosition?_n=Pr.getTextPosition(at,un):(_n=at.getShallow("position")||(un?null:"inside"),_n==="outside"&&(_n="top")),pt.textPosition=_n,pt.textOffset=at.getShallow("offset");var Xn=at.getShallow("rotate");Xn!=null&&(Xn*=Math.PI/180),pt.textRotation=Xn,pt.textDistance=y.retrieve2(at.getShallow("distance"),un?null:5)}var xi=at.ecModel,Pn=xi&&xi.option.textStyle,Un=Kt(at),$t;if(Un){$t={};for(var xt in Un)if(Un.hasOwnProperty(xt)){var De=at.getModel(["rich",xt]);fr($t[xt]={},De,Pn,Pr,un)}}return pt.rich=$t,fr(pt,at,Pn,Pr,un,!0),Pr.forceRich&&!Pr.textStyle&&(Pr.textStyle={}),pt}function Kt(pt){for(var at;pt&&pt!==pt.ecModel;){var Pr=(pt.option||O).rich;if(Pr){at=at||{};for(var un in Pr)Pr.hasOwnProperty(un)&&(at[un]=1)}pt=pt.parentModel}return at}function fr(pt,at,Pr,un,_n,Xn){Pr=!_n&&Pr||O,pt.textFill=Gt(at.getShallow("color"),un)||Pr.color,pt.textStroke=Gt(at.getShallow("textBorderColor"),un)||Pr.textBorderColor,pt.textStrokeWidth=y.retrieve2(at.getShallow("textBorderWidth"),Pr.textBorderWidth),_n||(Xn&&(pt.insideRollbackOpt=un,Pt(pt)),pt.textFill==null&&(pt.textFill=un.autoColor)),pt.fontStyle=at.getShallow("fontStyle")||Pr.fontStyle,pt.fontWeight=at.getShallow("fontWeight")||Pr.fontWeight,pt.fontSize=at.getShallow("fontSize")||Pr.fontSize,pt.fontFamily=at.getShallow("fontFamily")||Pr.fontFamily,pt.textAlign=at.getShallow("align"),pt.textVerticalAlign=at.getShallow("verticalAlign")||at.getShallow("baseline"),pt.textLineHeight=at.getShallow("lineHeight"),pt.textWidth=at.getShallow("width"),pt.textHeight=at.getShallow("height"),pt.textTag=at.getShallow("tag"),(!Xn||!un.disableBox)&&(pt.textBackgroundColor=Gt(at.getShallow("backgroundColor"),un),pt.textPadding=at.getShallow("padding"),pt.textBorderColor=Gt(at.getShallow("borderColor"),un),pt.textBorderWidth=at.getShallow("borderWidth"),pt.textBorderRadius=at.getShallow("borderRadius"),pt.textBoxShadowColor=at.getShallow("shadowColor"),pt.textBoxShadowBlur=at.getShallow("shadowBlur"),pt.textBoxShadowOffsetX=at.getShallow("shadowOffsetX"),pt.textBoxShadowOffsetY=at.getShallow("shadowOffsetY")),pt.textShadowColor=at.getShallow("textShadowColor")||Pr.textShadowColor,pt.textShadowBlur=at.getShallow("textShadowBlur")||Pr.textShadowBlur,pt.textShadowOffsetX=at.getShallow("textShadowOffsetX")||Pr.textShadowOffsetX,pt.textShadowOffsetY=at.getShallow("textShadowOffsetY")||Pr.textShadowOffsetY}function Gt(pt,at){return pt!=="auto"?pt:at&&at.autoColor?at.autoColor:null}function Pt(pt){var at=pt.textPosition,Pr=pt.insideRollbackOpt,un;if(Pr&&pt.textFill==null){var _n=Pr.autoColor,Xn=Pr.isRectText,xi=Pr.useInsideStyle,Pn=xi!==!1&&(xi===!0||Xn&&at&&typeof at=="string"&&at.indexOf("inside")>=0),Un=!Pn&&_n!=null;(Pn||Un)&&(un={textFill:pt.textFill,textStroke:pt.textStroke,textStrokeWidth:pt.textStrokeWidth}),Pn&&(pt.textFill="#fff",pt.textStroke==null&&(pt.textStroke=_n,pt.textStrokeWidth==null&&(pt.textStrokeWidth=2))),Un&&(pt.textFill=_n)}pt.insideRollback=un}function Xt(pt){var at=pt.insideRollback;at&&(pt.textFill=at.textFill,pt.textStroke=at.textStroke,pt.textStrokeWidth=at.textStrokeWidth,pt.insideRollback=null)}function Ge(pt,at){var Pr=at&&at.getModel("textStyle");return y.trim([pt.fontStyle||Pr&&Pr.getShallow("fontStyle")||"",pt.fontWeight||Pr&&Pr.getShallow("fontWeight")||"",(pt.fontSize||Pr&&Pr.getShallow("fontSize")||12)+"px",pt.fontFamily||Pr&&Pr.getShallow("fontFamily")||"sans-serif"].join(" "))}function pe(pt,at,Pr,un,_n,Xn){typeof _n=="function"&&(Xn=_n,_n=null);var xi=un&&un.isAnimationEnabled();if(xi){var Pn=pt?"Update":"",Un=un.getShallow("animationDuration"+Pn),$t=un.getShallow("animationEasing"+Pn),xt=un.getShallow("animationDelay"+Pn);typeof xt=="function"&&(xt=xt(_n,un.getAnimationDelayParams?un.getAnimationDelayParams(at,_n):null)),typeof Un=="function"&&(Un=Un(_n)),Un>0?at.animateTo(Pr,Un,xt||0,$t,Xn,!!Xn):(at.stopAnimation(),at.attr(Pr),Xn&&Xn())}else at.stopAnimation(),at.attr(Pr),Xn&&Xn()}function oe(pt,at,Pr,un,_n){pe(!0,pt,at,Pr,un,_n)}function lt(pt,at,Pr,un,_n){pe(!1,pt,at,Pr,un,_n)}function qe(pt,at){for(var Pr=v.identity([]);pt&&pt!==at;)v.mul(Pr,pt.getLocalTransform(),Pr),pt=pt.parent;return Pr}function ge(pt,at,Pr){return at&&!y.isArrayLike(at)&&(at=d.getLocalTransform(at)),Pr&&(at=v.invert([],at)),m.applyTransform([],pt,at)}function Ht(pt,at,Pr){var un=at[4]===0||at[5]===0||at[0]===0?1:Math.abs(2*at[4]/at[0]),_n=at[4]===0||at[5]===0||at[2]===0?1:Math.abs(2*at[4]/at[2]),Xn=[pt==="left"?-un:pt==="right"?un:0,pt==="top"?-_n:pt==="bottom"?_n:0];return Xn=ge(Xn,at,Pr),Math.abs(Xn[0])>Math.abs(Xn[1])?Xn[0]>0?"right":"left":Xn[1]>0?"bottom":"top"}function vr(pt,at,Pr,un){if(!pt||!at)return;function _n(Pn){var Un={};return Pn.traverse(function($t){!$t.isGroup&&$t.anid&&(Un[$t.anid]=$t)}),Un}function Xn(Pn){var Un={position:m.clone(Pn.position),rotation:Pn.rotation};return Pn.shape&&(Un.shape=y.extend({},Pn.shape)),Un}var xi=_n(pt);at.traverse(function(Pn){if(!Pn.isGroup&&Pn.anid){var Un=xi[Pn.anid];if(Un){var $t=Xn(Pn);Pn.attr(Xn(Un)),oe(Pn,$t,Pr,Pn.dataIndex)}}})}function At(pt,at){return y.map(pt,function(Pr){var un=Pr[0];un=T(un,at.x),un=w(un,at.x+at.width);var _n=Pr[1];return _n=T(_n,at.y),_n=w(_n,at.y+at.height),[un,_n]})}function ir(pt,at){var Pr=T(pt.x,at.x),un=w(pt.x+pt.width,at.x+at.width),_n=T(pt.y,at.y),Xn=w(pt.y+pt.height,at.y+at.height);if(un>=Pr&&Xn>=_n)return{x:Pr,y:_n,width:un-Pr,height:Xn-_n}}function lr(pt,at,Pr){at=y.extend({rectHover:!0},at);var un=at.style={strokeNoScale:!0};if(Pr=Pr||{x:-1,y:-1,width:2,height:2},pt)return pt.indexOf("image://")===0?(un.image=pt.slice(8),y.defaults(un,Pr),new u(at)):Q(pt.replace("path://",""),at,Pr,"center")}function dn(pt,at,Pr,un,_n){for(var Xn=0,xi=_n[_n.length-1];Xn<_n.length;Xn++){var Pn=_n[Xn];if(Ft(pt,at,Pr,un,Pn[0],Pn[1],xi[0],xi[1]))return!0;xi=Pn}}function Ft(pt,at,Pr,un,_n,Xn,xi,Pn){var Un=Pr-pt,$t=un-at,xt=xi-_n,De=Pn-Xn,ke=ur(xt,De,Un,$t);if(Jt(ke))return!1;var Pe=pt-_n,tt=at-Xn,yt=ur(Pe,tt,Un,$t)/ke;if(yt<0||yt>1)return!1;var Et=ur(Pe,tt,xt,De)/ke;return!(Et<0||Et>1)}function ur(pt,at,Pr,un){return pt*un-Pr*at}function Jt(pt){return pt<=1e-6&&pt>=-1e-6}z("circle",t),z("sector",o),z("ring",e),z("polygon",l),z("polyline",r),z("rect",a),z("line",c),z("bezierCurve",h),z("arc",g),D.Z2_EMPHASIS_LIFT=I,D.CACHED_LABEL_STYLE_PROPERTIES=k,D.extendShape=U,D.extendPath=K,D.registerShape=z,D.getShapeClass=V,D.makePath=Q,D.makeImage=G,D.mergePath=q,D.resizePath=se,D.subPixelOptimizeLine=re,D.subPixelOptimizeRect=xe,D.subPixelOptimize=Oe,D.setElementHoverStyle=Y,D.setHoverStyle=fe,D.setAsHighDownDispatcher=we,D.isHighDownDispatcher=Re,D.getHighlightDigit=rt,D.setLabelStyle=St,D.modifyLabelStyle=ft,D.setTextStyle=He,D.setText=er,D.getFont=Ge,D.updateProps=oe,D.initProps=lt,D.getTransform=qe,D.applyTransform=ge,D.transformDirection=Ht,D.groupTransition=vr,D.clipPointsByRect=At,D.clipRectByRect=ir,D.createIcon=lr,D.linePolygonIntersect=dn,D.lineLineIntersect=Ft},IyUQ:function(R,D,n){var y=n("bYtY"),f=n("YH21"),x=n("IwbS"),v=n("iLNv"),m=n("fc+c"),p=n("OELB"),d=n("+TT/"),u=n("72pK"),s=x.Rect,i=p.linearMap,t=p.asc,o=y.bind,e=y.each,l=7,r=1,a=30,c="horizontal",h="vertical",g=5,A=["line","bar","candlestick","scatter"],b=m.extend({type:"dataZoom.slider",init:function(_,T){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=T},render:function(_,T,w,O){if(b.superApply(this,"render",arguments),v.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=_.get("orient"),this.dataZoomModel.get("show")===!1){this.group.removeAll();return}(!O||O.type!=="dataZoom"||O.from!==this.uid)&&this._buildView(),this._updateView()},remove:function(){b.superApply(this,"remove",arguments),v.clear(this,"_dispatchZoomAction")},dispose:function(){b.superApply(this,"dispose",arguments),v.clear(this,"_dispatchZoomAction")},_buildView:function(){var _=this.group;_.removeAll(),this._resetLocation(),this._resetInterval();var T=this._displayables.barGroup=new x.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),_.add(T),this._positionGroup()},_resetLocation:function(){var _=this.dataZoomModel,T=this.api,w=this._findCoordRect(),O={width:T.getWidth(),height:T.getHeight()},I=this._orient===c?{right:O.width-w.x-w.width,top:O.height-a-l,width:w.width,height:a}:{right:l,top:w.y,width:a,height:w.height},k=d.getLayoutParams(_.option);y.each(["right","top","width","height"],function(j){k[j]==="ph"&&(k[j]=I[j])});var M=d.getLayoutRect(k,O,_.padding);this._location={x:M.x,y:M.y},this._size=[M.width,M.height],this._orient===h&&this._size.reverse()},_positionGroup:function(){var _=this.group,T=this._location,w=this._orient,O=this.dataZoomModel.getFirstTargetAxisModel(),I=O&&O.get("inverse"),k=this._displayables.barGroup,M=(this._dataShadowInfo||{}).otherAxisInverse;k.attr(w===c&&!I?{scale:M?[1,1]:[1,-1]}:w===c&&I?{scale:M?[-1,1]:[-1,-1]}:w===h&&!I?{scale:M?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:M?[-1,-1]:[-1,1],rotation:Math.PI/2});var j=_.getBoundingRect([k]);_.attr("position",[T.x-j.x,T.y-j.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var _=this.dataZoomModel,T=this._size,w=this._displayables.barGroup;w.add(new s({silent:!0,shape:{x:0,y:0,width:T[0],height:T[1]},style:{fill:_.get("backgroundColor")},z2:-40})),w.add(new s({shape:{x:0,y:0,width:T[0],height:T[1]},style:{fill:"transparent"},z2:0,onclick:y.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var _=this._dataShadowInfo=this._prepareDataShadowInfo();if(!_)return;var T=this._size,w=_.series,O=w.getRawData(),I=w.getShadowDim?w.getShadowDim():_.otherDim;if(I==null)return;var k=O.getDataExtent(I),M=(k[1]-k[0])*.3;k=[k[0]-M,k[1]+M];var j=[0,T[1]],P=[0,T[0]],X=[[T[0],0],[0,0]],F=[],U=P[1]/(O.count()-1),K=0,z=Math.round(O.count()/T[0]),V;O.each([I],function(G,te){if(z>0&&te%z){K+=U;return}var q=G==null||isNaN(G)||G==="",se=q?0:i(G,k,j,!0);q&&!V&&te?(X.push([X[X.length-1][0],0]),F.push([F[F.length-1][0],0])):!q&&V&&(X.push([K,0]),F.push([K,0])),X.push([K,se]),F.push([K,se]),K+=U,V=q});var Q=this.dataZoomModel;this._displayables.barGroup.add(new x.Polygon({shape:{points:X},style:y.defaults({fill:Q.get("dataBackgroundColor")},Q.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new x.Polyline({shape:{points:F},style:Q.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))},_prepareDataShadowInfo:function(){var _=this.dataZoomModel,T=_.get("showDataShadow");if(T===!1)return;var w,O=this.ecModel;return _.eachTargetAxis(function(I,k){var M=_.getAxisProxy(I.name,k).getTargetSeriesModels();y.each(M,function(j){if(w)return;if(T!==!0&&y.indexOf(A,j.get("type"))<0)return;var P=O.getComponent(I.axis,k).axis,X=S(I.name),F,U=j.coordinateSystem;X!=null&&U.getOtherAxis&&(F=U.getOtherAxis(P).inverse),X=j.getData().mapDimension(X),w={thisAxis:P,series:j,thisDim:I.name,otherDim:X,otherAxisInverse:F}},this)},this),w},_renderHandle:function(){var _=this._displayables,T=_.handles=[],w=_.handleLabels=[],O=this._displayables.barGroup,I=this._size,k=this.dataZoomModel;O.add(_.filler=new s({draggable:!0,cursor:E(this._orient),drift:o(this._onDragMove,this,"all"),ondragstart:o(this._showDataInfo,this,!0),ondragend:o(this._onDragEnd,this),onmouseover:o(this._showDataInfo,this,!0),onmouseout:o(this._showDataInfo,this,!1),style:{fill:k.get("fillerColor"),textPosition:"inside"}})),O.add(new s({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:I[0],height:I[1]},style:{stroke:k.get("dataBackgroundColor")||k.get("borderColor"),lineWidth:r,fill:"rgba(0,0,0,0)"}})),e([0,1],function(M){var j=x.createIcon(k.get("handleIcon"),{cursor:E(this._orient),draggable:!0,drift:o(this._onDragMove,this,M),ondragend:o(this._onDragEnd,this),onmouseover:o(this._showDataInfo,this,!0),onmouseout:o(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),P=j.getBoundingRect();this._handleHeight=p.parsePercent(k.get("handleSize"),this._size[1]),this._handleWidth=P.width/P.height*this._handleHeight,j.setStyle(k.getModel("handleStyle").getItemStyle());var X=k.get("handleColor");X!=null&&(j.style.fill=X),O.add(T[M]=j);var F=k.textStyleModel;this.group.add(w[M]=new x.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:F.getTextColor(),textFont:F.getFont()},z2:10}))},this)},_resetInterval:function(){var _=this._range=this.dataZoomModel.getPercentRange(),T=this._getViewExtent();this._handleEnds=[i(_[0],[0,100],T,!0),i(_[1],[0,100],T,!0)]},_updateInterval:function(_,T){var w=this.dataZoomModel,O=this._handleEnds,I=this._getViewExtent(),k=w.findRepresentativeAxisProxy().getMinMaxSpan(),M=[0,100];u(T,O,I,w.get("zoomLock")?"all":_,k.minSpan!=null?i(k.minSpan,M,I,!0):null,k.maxSpan!=null?i(k.maxSpan,M,I,!0):null);var j=this._range,P=this._range=t([i(O[0],I,M,!0),i(O[1],I,M,!0)]);return!j||j[0]!==P[0]||j[1]!==P[1]},_updateView:function(_){var T=this._displayables,w=this._handleEnds,O=t(w.slice()),I=this._size;e([0,1],function(k){var M=T.handles[k],j=this._handleHeight;M.attr({scale:[j/2,j/2],position:[w[k],I[1]/2-j/2]})},this),T.filler.setShape({x:O[0],y:0,width:O[1]-O[0],height:I[1]}),this._updateDataInfo(_)},_updateDataInfo:function(_){var T=this.dataZoomModel,w=this._displayables,O=w.handleLabels,I=this._orient,k=["",""];if(T.get("showDetail")){var M=T.findRepresentativeAxisProxy();if(M){var j=M.getAxisModel().axis,P=this._range,X=_?M.calculateDataWindow({start:P[0],end:P[1]}).valueWindow:M.getDataValueWindow();k=[this._formatLabel(X[0],j),this._formatLabel(X[1],j)]}}var F=t(this._handleEnds.slice());U.call(this,0),U.call(this,1);function U(K){var z=x.getTransform(w.handles[K].parent,this.group),V=x.transformDirection(K===0?"right":"left",z),Q=this._handleWidth/2+g,G=x.applyTransform([F[K]+(K===0?-Q:Q),this._size[1]/2],z);O[K].setStyle({x:G[0],y:G[1],textVerticalAlign:I===c?"middle":V,textAlign:I===c?V:"center",text:k[K]})}},_formatLabel:function(_,T){var w=this.dataZoomModel,O=w.get("labelFormatter"),I=w.get("labelPrecision");(I==null||I==="auto")&&(I=T.getPixelPrecision());var k=_==null||isNaN(_)?"":T.type==="category"||T.type==="time"?T.scale.getLabel(Math.round(_)):_.toFixed(Math.min(I,20));return y.isFunction(O)?O(_,k):y.isString(O)?O.replace("{value}",k):k},_showDataInfo:function(_){_=this._dragging||_;var T=this._displayables.handleLabels;T[0].attr("invisible",!_),T[1].attr("invisible",!_)},_onDragMove:function(_,T,w,O){this._dragging=!0,f.stop(O.event);var I=this._displayables.barGroup.getLocalTransform(),k=x.applyTransform([T,w],I,!0),M=this._updateInterval(_,k[0]),j=this.dataZoomModel.get("realtime");this._updateView(!j),M&&j&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var _=this.dataZoomModel.get("realtime");!_&&this._dispatchZoomAction()},_onClickPanelClick:function(_){var T=this._size,w=this._displayables.barGroup.transformCoordToLocal(_.offsetX,_.offsetY);if(w[0]<0||w[0]>T[0]||w[1]<0||w[1]>T[1])return;var O=this._handleEnds,I=(O[0]+O[1])/2,k=this._updateInterval("all",w[0]-I);this._updateView(),k&&this._dispatchZoomAction()},_dispatchZoomAction:function(){var _=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:_[0],end:_[1]})},_findCoordRect:function(){var _;if(e(this.getTargetCoordInfo(),function(O){if(!_&&O.length){var I=O[0].model.coordinateSystem;_=I.getRect&&I.getRect()}}),!_){var T=this.api.getWidth(),w=this.api.getHeight();_={x:T*.2,y:w*.2,width:T*.6,height:w*.6}}return _}});function S(_){var T={x:"y",y:"x",radius:"angle",angle:"radius"};return T[_]}function E(_){return _==="vertical"?"ns-resize":"ew-resize"}var C=b;R.exports=C},IzEo:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("lnY3"),v=n.n(x),m=n("Znn+"),p=n("14J3"),d=n("jCWc")},J66h:function(R,D,n){(function(y){var f,x;(function(v,m){R.exports=m(v)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof y!="undefined"?y:this,function(v){"use strict";v=v||{};var m=v.Base64,p="2.6.4",d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=function(j){for(var P={},X=0,F=j.length;X<F;X++)P[j.charAt(X)]=X;return P}(d),s=String.fromCharCode,i=function(P){if(P.length<2){var X=P.charCodeAt(0);return X<128?P:X<2048?s(192|X>>>6)+s(128|X&63):s(224|X>>>12&15)+s(128|X>>>6&63)+s(128|X&63)}else{var X=65536+(P.charCodeAt(0)-55296)*1024+(P.charCodeAt(1)-56320);return s(240|X>>>18&7)+s(128|X>>>12&63)+s(128|X>>>6&63)+s(128|X&63)}},t=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,o=function(P){return P.replace(t,i)},e=function(P){var X=[0,2,1][P.length%3],F=P.charCodeAt(0)<<16|(P.length>1?P.charCodeAt(1):0)<<8|(P.length>2?P.charCodeAt(2):0),U=[d.charAt(F>>>18),d.charAt(F>>>12&63),X>=2?"=":d.charAt(F>>>6&63),X>=1?"=":d.charAt(F&63)];return U.join("")},l=v.btoa&&typeof v.btoa=="function"?function(j){return v.btoa(j)}:function(j){if(j.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return j.replace(/[\s\S]{1,3}/g,e)},r=function(P){return l(o(String(P)))},a=function(P){return P.replace(/[+\/]/g,function(X){return X=="+"?"-":"_"}).replace(/=/g,"")},c=function(P,X){return X?a(r(P)):r(P)},h=function(P){return c(P,!0)},g;v.Uint8Array&&(g=function(P,X){for(var F="",U=0,K=P.length;U<K;U+=3){var z=P[U],V=P[U+1],Q=P[U+2],G=z<<16|V<<8|Q;F+=d.charAt(G>>>18)+d.charAt(G>>>12&63)+(typeof V!="undefined"?d.charAt(G>>>6&63):"=")+(typeof Q!="undefined"?d.charAt(G&63):"=")}return X?a(F):F});var A=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(P){switch(P.length){case 4:var X=(7&P.charCodeAt(0))<<18|(63&P.charCodeAt(1))<<12|(63&P.charCodeAt(2))<<6|63&P.charCodeAt(3),F=X-65536;return s((F>>>10)+55296)+s((F&1023)+56320);case 3:return s((15&P.charCodeAt(0))<<12|(63&P.charCodeAt(1))<<6|63&P.charCodeAt(2));default:return s((31&P.charCodeAt(0))<<6|63&P.charCodeAt(1))}},S=function(P){return P.replace(A,b)},E=function(P){var X=P.length,F=X%4,U=(X>0?u[P.charAt(0)]<<18:0)|(X>1?u[P.charAt(1)]<<12:0)|(X>2?u[P.charAt(2)]<<6:0)|(X>3?u[P.charAt(3)]:0),K=[s(U>>>16),s(U>>>8&255),s(U&255)];return K.length-=[0,0,2,1][F],K.join("")},C=v.atob&&typeof v.atob=="function"?function(j){return v.atob(j)}:function(j){return j.replace(/\S{1,4}/g,E)},_=function(P){return C(String(P).replace(/[^A-Za-z0-9\+\/]/g,""))},T=function(P){return S(C(P))},w=function(P){return String(P).replace(/[-_]/g,function(X){return X=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},O=function(P){return T(w(P))},I;v.Uint8Array&&(I=function(P){return Uint8Array.from(_(w(P)),function(X){return X.charCodeAt(0)})});var k=function(){var P=v.Base64;return v.Base64=m,P};if(v.Base64={VERSION:p,atob:_,btoa:l,fromBase64:O,toBase64:c,utob:o,encode:c,encodeURI:h,btou:S,decode:O,noConflict:k,fromUint8Array:g,toUint8Array:I},typeof Object.defineProperty=="function"){var M=function(P){return{value:P,enumerable:!1,writable:!0,configurable:!0}};v.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",M(function(){return O(this)})),Object.defineProperty(String.prototype,"toBase64",M(function(j){return c(this,j)})),Object.defineProperty(String.prototype,"toBase64URI",M(function(){return c(this,!0)}))}}return v.Meteor&&(Base64=v.Base64),R.exports?R.exports.Base64=v.Base64:!(f=[],x=function(){return v.Base64}.apply(D,f),x!==void 0&&(R.exports=x)),{Base64:v.Base64}})}).call(this,n("yLpj"))},JEkh:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("ProS"),v=n("bYtY"),m=n("ItGF"),p=n("4NO4"),d=n("7aKB"),u=n("OKJ2"),s=d.addCommas,i=d.encodeHTML;function t(l){p.defaultEmphasis(l,"label",["show"])}var o=x.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(l,r,a){this.mergeDefaultAndTheme(l,a),this._mergeOption(l,a,!1,!0)},isAnimationEnabled:function(){if(m.node)return!1;var l=this.__hostSeries;return this.getShallow("animation")&&l&&l.isAnimationEnabled()},mergeOption:function(l,r){this._mergeOption(l,r,!1,!1)},_mergeOption:function(l,r,a,c){var h=this.constructor,g=this.mainType+"Model";a||r.eachSeries(function(A){var b=A.get(this.mainType,!0),S=A[g];if(!b||!b.data){A[g]=null;return}S?S._mergeOption(b,r,!0):(c&&t(b),v.each(b.data,function(E){E instanceof Array?(t(E[0]),t(E[1])):t(E)}),S=new h(b,this,r),v.extend(S,{mainType:this.mainType,seriesIndex:A.seriesIndex,name:A.name,createdBySelf:!0}),S.__hostSeries=A),A[g]=S},this)},formatTooltip:function(l){var r=this.getData(),a=this.getRawValue(l),c=v.isArray(a)?v.map(a,s).join(", "):s(a),h=r.getName(l),g=i(this.name);return(a!=null||h)&&(g+="<br />"),h&&(g+=i(h),a!=null&&(g+=" : ")),a!=null&&(g+=i(c)),g},getData:function(){return this._data},setData:function(l){this._data=l}});v.mixin(o,u);var e=o;R.exports=e},JGo8:function(R,D,n){},JHRd:function(R,D,n){var y=n("Kz5y"),f=y.Uint8Array;R.exports=f},JHgL:function(R,D,n){var y=n("QkVE");function f(x){return y(this,x).get(x)}R.exports=f},JLnu:function(R,D,n){var y=n("+TT/"),f=n("OELB"),x=f.parsePercent,v=f.linearMap;function m(s,i){return y.getLayoutRect(s.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}function p(s,i){for(var t=s.mapDimension("value"),o=s.mapArray(t,function(c){return c}),e=[],l=i==="ascending",r=0,a=s.count();r<a;r++)e[r]=r;return typeof i=="function"?e.sort(i):i!=="none"&&e.sort(function(c,h){return l?o[c]-o[h]:o[h]-o[c]}),e}function d(s){s.each(function(i){var t=s.getItemModel(i),o=t.getModel("label"),e=o.get("position"),l=t.getModel("labelLine"),r=s.getItemLayout(i),a=r.points,c=e==="inner"||e==="inside"||e==="center"||e==="insideLeft"||e==="insideRight",h,g,A,b;if(c)e==="insideLeft"?(g=(a[0][0]+a[3][0])/2+5,A=(a[0][1]+a[3][1])/2,h="left"):e==="insideRight"?(g=(a[1][0]+a[2][0])/2-5,A=(a[1][1]+a[2][1])/2,h="right"):(g=(a[0][0]+a[1][0]+a[2][0]+a[3][0])/4,A=(a[0][1]+a[1][1]+a[2][1]+a[3][1])/4,h="center"),b=[[g,A],[g,A]];else{var S,E,C,_=l.get("length");e==="left"?(S=(a[3][0]+a[0][0])/2,E=(a[3][1]+a[0][1])/2,C=S-_,g=C-5,h="right"):e==="right"?(S=(a[1][0]+a[2][0])/2,E=(a[1][1]+a[2][1])/2,C=S+_,g=C+5,h="left"):e==="rightTop"?(S=a[1][0],E=a[1][1],C=S+_,g=C+5,h="top"):e==="rightBottom"?(S=a[2][0],E=a[2][1],C=S+_,g=C+5,h="bottom"):e==="leftTop"?(S=a[0][0],E=a[1][1],C=S-_,g=C-5,h="right"):e==="leftBottom"?(S=a[3][0],E=a[2][1],C=S-_,g=C-5,h="right"):(S=(a[1][0]+a[2][0])/2,E=(a[1][1]+a[2][1])/2,C=S+_,g=C+5,h="left");var T=E;b=[[S,E],[C,T]],A=T}r.label={linePoints:b,x:g,y:A,verticalAlign:"middle",textAlign:h,inside:c}})}function u(s,i,t){s.eachSeriesByType("funnel",function(o){var e=o.getData(),l=e.mapDimension("value"),r=o.get("sort"),a=m(o,i),c=p(e,r),h=[x(o.get("minSize"),a.width),x(o.get("maxSize"),a.width)],g=e.getDataExtent(l),A=o.get("min"),b=o.get("max");A==null&&(A=Math.min(g[0],0)),b==null&&(b=g[1]);var S=o.get("funnelAlign"),E=o.get("gap"),C=(a.height-E*(e.count()-1))/e.count(),_=a.y,T=function(X,F){var U=e.get(l,X)||0,K=v(U,[A,b],h,!0),z;switch(S){case"left":z=a.x;break;case"center":z=a.x+(a.width-K)/2;break;case"right":z=a.x+a.width-K;break}return[[z,F],[z+K,F]]};r==="ascending"&&(C=-C,E=-E,_+=a.height,c=c.reverse());for(var w=0;w<c.length;w++){var O=c[w],I=c[w+1],k=e.getItemModel(O),M=k.get("itemStyle.height");M==null?M=C:(M=x(M,a.height),r==="ascending"&&(M=-M));var j=T(O,_),P=T(I,_+M);_+=M+E,e.setItemLayout(O,{points:j.concat(P.slice().reverse())})}d(e)})}R.exports=u},JSQU:function(R,D,n){var y=n("YESw"),f="__lodash_hash_undefined__";function x(v,m){var p=this.__data__;return this.size+=this.has(v)?0:1,p[v]=y&&m===void 0?f:m,this}R.exports=x},JSwD:function(R,D,n){"use strict";function y(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(h){return typeof h}:y=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},y(a)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=r;var f=v(n("6BzB"));function x(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return x=function(){return a},a}function v(a){if(a&&a.__esModule)return a;if(a===null||y(a)!=="object"&&typeof a!="function")return{default:a};var c=x();if(c&&c.has(a))return c.get(a);var h={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in a)if(Object.prototype.hasOwnProperty.call(a,A)){var b=g?Object.getOwnPropertyDescriptor(a,A):null;b&&(b.get||b.set)?Object.defineProperty(h,A,b):h[A]=a[A]}return h.default=a,c&&c.set(a,h),h}var m=15,p=852,d=592,u=0,s=1,i=2,t=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],e=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function r(a,c,h,g,A,b,S,E){var C=E.bits,_=0,T=0,w=0,O=0,I=0,k=0,M=0,j=0,P=0,X=0,F,U,K,z,V,Q=null,G=0,te,q=new f.Buf16(m+1),se=new f.Buf16(m+1),re=null,xe=0,Oe,Me,Qe;for(_=0;_<=m;_++)q[_]=0;for(T=0;T<g;T++)q[c[h+T]]++;for(I=C,O=m;O>=1&&!(q[O]!==0);O--);if(I>O&&(I=O),O===0)return A[b++]=1<<24|64<<16|0,A[b++]=1<<24|64<<16|0,E.bits=1,0;for(w=1;w<O&&!(q[w]!==0);w++);for(I<w&&(I=w),j=1,_=1;_<=m;_++)if(j<<=1,j-=q[_],j<0)return-1;if(j>0&&(a===u||O!==1))return-1;for(se[1]=0,_=1;_<m;_++)se[_+1]=se[_]+q[_];for(T=0;T<g;T++)c[h+T]!==0&&(S[se[c[h+T]]++]=T);if(a===u?(Q=re=S,te=19):a===s?(Q=t,G-=257,re=o,xe-=257,te=256):(Q=e,re=l,te=-1),X=0,T=0,_=w,V=b,k=I,M=0,K=-1,P=1<<I,z=P-1,a===s&&P>p||a===i&&P>d)return 1;for(;;){Oe=_-M,S[T]<te?(Me=0,Qe=S[T]):S[T]>te?(Me=re[xe+S[T]],Qe=Q[G+S[T]]):(Me=32+64,Qe=0),F=1<<_-M,U=1<<k,w=U;do U-=F,A[V+(X>>M)+U]=Oe<<24|Me<<16|Qe|0;while(U!==0);for(F=1<<_-1;X&F;)F>>=1;if(F!==0?(X&=F-1,X+=F):X=0,T++,--q[_]===0){if(_===O)break;_=c[h+S[T]]}if(_>I&&(X&z)!==K){for(M===0&&(M=I),V+=w,k=_-M,j=1<<k;k+M<O&&!(j-=q[k+M],j<=0);)k++,j<<=1;if(P+=1<<k,a===s&&P>p||a===i&&P>d)return 1;K=X&z,A[K]=I<<24|k<<16|V-b|0}}return X!==0&&(A[V+X]=_-M<<24|64<<16|0),E.bits=I,0}},JTzB:function(R,D,n){var y=n("NykK"),f=n("ExA7"),x="[object Arguments]";function v(m){return f(m)&&y(m)==x}R.exports=v},JVwQ:function(R,D,n){var y=n("ProS"),f=n("1NG9"),x=f.Polygon,v=n("IwbS"),m=n("bYtY"),p=m.bind,d=m.extend,u=n("gPAo"),s=y.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(t,o,e){var l=t.getData(),r=this.group,a=t.getLayerSeries(),c=l.getLayout("layoutInfo"),h=c.rect,g=c.boundaryGap;r.attr("position",[0,h.y+g[0]]);function A(C){return C.name}var b=new u(this._layersSeries||[],a,A,A),S={};b.add(p(E,this,"add")).update(p(E,this,"update")).remove(p(E,this,"remove")).execute();function E(C,_,T){var w=this._layers;if(C==="remove"){r.remove(w[_]);return}for(var O=[],I=[],k,M=a[_].indices,j=0;j<M.length;j++){var P=l.getItemLayout(M[j]),X=P.x,F=P.y0,U=P.y;O.push([X,F]),I.push([X,F+U]),k=l.getItemVisual(M[j],"color")}var K,z,V=l.getItemLayout(M[0]),Q=l.getItemModel(M[j-1]),G=Q.getModel("label"),te=G.get("margin");if(C==="add"){var q=S[_]=new v.Group;K=new x({shape:{points:O,stackedOnPoints:I,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),z=new v.Text({style:{x:V.x-te,y:V.y0+V.y/2}}),q.add(K),q.add(z),r.add(q),K.setClipPath(i(K.getBoundingRect(),t,function(){K.removeClipPath()}))}else{var q=w[T];K=q.childAt(0),z=q.childAt(1),r.add(q),S[_]=q,v.updateProps(K,{shape:{points:O,stackedOnPoints:I}},t),v.updateProps(z,{style:{x:V.x-te,y:V.y0+V.y/2}},t)}var se=Q.getModel("emphasis.itemStyle"),re=Q.getModel("itemStyle");v.setTextStyle(z.style,G,{text:G.get("show")?t.getFormattedLabel(M[j-1],"normal")||l.getName(M[j-1]):null,textVerticalAlign:"middle"}),K.setStyle(d({fill:k},re.getItemStyle(["color"]))),v.setHoverStyle(K,se.getItemStyle())}this._layersSeries=a,this._layers=S},dispose:function(){}});function i(t,o,e){var l=new v.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return v.initProps(l,{shape:{width:t.width+20,height:t.height+20}},o,e),l}R.exports=s},JgUQ:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};D.default=y},JsLm:function(R,D,n){"use strict";var y=n("pVnL"),f=n.n(y),x=n("lSNA"),v=n.n(x),m=n("lwsE"),p=n.n(m),d=n("W8MJ"),u=n.n(d),s=n("PJYZ"),i=n.n(s),t=n("7W2i"),o=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),a=n("i8i4"),c=n("TSYQ"),h=n.n(c),g=n("zT1h"),A=n("cDf5"),b=n.n(A),S=n("BGR+"),E=n("6ner"),C=n("H84U"),_=n("RIqP"),T=n.n(_),w=n("xEkU"),O=n.n(w);function I(he){var J,Y=function(be){return function(){J=null,he.apply(void 0,T()(be))}},$=function(){if(J==null){for(var be=arguments.length,Ce=new Array(be),Be=0;Be<be;Be++)Ce[Be]=arguments[Be];J=O()(Y(Ce))}};return $.cancel=function(){return O.a.cancel(J)},$}function k(){return function(he,J,Y){var $=Y.value,de=!1;return{configurable:!0,get:function(){if(de||this===he.prototype||this.hasOwnProperty(J))return $;var Ce=I($.bind(this));return de=!0,Object.defineProperty(this,J,{value:Ce,configurable:!0,writable:!0}),de=!1,Ce}}}}function M(he){return he!==window?he.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function j(he,J,Y){return Y!==void 0&&J.top>he.top-Y?Y+J.top:void 0}function P(he,J,Y){if(Y!==void 0&&J.bottom<he.bottom+Y){var $=window.innerHeight-J.bottom;return Y+$}return}var X=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],F=[];function U(){return F}function K(he,J){if(!he)return;var Y=F.find(function($){return $.target===he});Y?Y.affixList.push(J):(Y={target:he,affixList:[J],eventHandlers:{}},F.push(Y),X.forEach(function($){Y.eventHandlers[$]=Object(g.a)(he,$,function(){Y.affixList.forEach(function(de){de.lazyUpdatePosition()})})}))}function z(he){var J=F.find(function(Y){var $=Y.affixList.some(function(de){return de===he});return $&&(Y.affixList=Y.affixList.filter(function(de){return de!==he})),$});J&&J.affixList.length===0&&(F=F.filter(function(Y){return Y!==J}),X.forEach(function(Y){var $=J.eventHandlers[Y];$&&$.remove&&$.remove()}))}var V=function(he,J,Y,$){var de=arguments.length,be=de<3?J:$===null?$=Object.getOwnPropertyDescriptor(J,Y):$,Ce;if((typeof Reflect=="undefined"?"undefined":b()(Reflect))==="object"&&typeof Reflect.decorate=="function")be=Reflect.decorate(he,J,Y,$);else for(var Be=he.length-1;Be>=0;Be--)(Ce=he[Be])&&(be=(de<3?Ce(be):de>3?Ce(J,Y,be):Ce(J,Y))||be);return de>3&&be&&Object.defineProperty(J,Y,be),be};function Q(){return typeof window!="undefined"?window:null}var G;(function(he){he[he.None=0]="None",he[he.Prepare=1]="Prepare"})(G||(G={}));var te=function(he){o()(Y,he);var J=l()(Y);function Y(){var $;return p()(this,Y),$=J.apply(this,arguments),$.state={status:G.None,lastAffix:!1,prevTarget:null},$.getOffsetTop=function(){var de=$.props.offsetBottom,be=$.props.offsetTop;return de===void 0&&be===void 0&&(be=0),be},$.getOffsetBottom=function(){return $.props.offsetBottom},$.savePlaceholderNode=function(de){$.placeholderNode=de},$.saveFixedNode=function(de){$.fixedNode=de},$.measure=function(){var de=$.state,be=de.status,Ce=de.lastAffix,Be=$.props.onChange,fe=$.getTargetFunc();if(be!==G.Prepare||!$.fixedNode||!$.placeholderNode||!fe)return;var we=$.getOffsetTop(),Re=$.getOffsetBottom(),rt=fe();if(!rt)return;var St={status:G.None},ft=M(rt),He=M($.placeholderNode),er=j(He,ft,we),ct=P(He,ft,Re);er!==void 0?(St.affixStyle={position:"fixed",top:er,width:He.width,height:He.height},St.placeholderStyle={width:He.width,height:He.height}):ct!==void 0&&(St.affixStyle={position:"fixed",bottom:ct,width:He.width,height:He.height},St.placeholderStyle={width:He.width,height:He.height}),St.lastAffix=!!St.affixStyle,Be&&Ce!==St.lastAffix&&Be(St.lastAffix),$.setState(St)},$.prepareMeasure=function(){if($.setState({status:G.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var de},$.render=function(){var de=$.context.getPrefixCls,be=$.state,Ce=be.affixStyle,Be=be.placeholderStyle,fe=$.props,we=fe.prefixCls,Re=fe.children,rt=h()(v()({},de("affix",we),Ce)),St=Object(S.default)($.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return r.createElement(E.a,{onResize:function(){$.updatePosition()}},r.createElement("div",f()({},St,{ref:$.savePlaceholderNode}),Ce&&r.createElement("div",{style:Be,"aria-hidden":"true"}),r.createElement("div",{className:rt,ref:$.saveFixedNode,style:Ce},r.createElement(E.a,{onResize:function(){$.updatePosition()}},Re))))},$}return u()(Y,[{key:"getTargetFunc",value:function(){var de=this.context.getTargetContainer,be=this.props.target;return be!==void 0?be:de||Q}},{key:"componentDidMount",value:function(){var de=this,be=this.getTargetFunc();be&&(this.timeout=setTimeout(function(){K(be(),de),de.updatePosition()}))}},{key:"componentDidUpdate",value:function(de){var be=this.state.prevTarget,Ce=this.getTargetFunc(),Be=null;Ce&&(Be=Ce()||null),be!==Be&&(z(this),Be&&(K(Be,this),this.updatePosition()),this.setState({prevTarget:Be})),(de.offsetTop!==this.props.offsetTop||de.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),z(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var de=this.getTargetFunc(),be=this.state.affixStyle;if(de&&be){var Ce=this.getOffsetTop(),Be=this.getOffsetBottom(),fe=de();if(fe&&this.placeholderNode){var we=M(fe),Re=M(this.placeholderNode),rt=j(Re,we,Ce),St=P(Re,we,Be);if(rt!==void 0&&be.top===rt||St!==void 0&&be.bottom===St)return}}this.prepareMeasure()}}]),Y}(r.Component);te.contextType=C.b,V([k()],te.prototype,"updatePosition",null),V([k()],te.prototype,"lazyUpdatePosition",null);var q=te,se=n("zAh6"),re=n("i6bk"),xe=r.createContext(null),Oe=xe;function Me(){return window}function Qe(he,J){if(!he.getClientRects().length)return 0;var Y=he.getBoundingClientRect();return Y.width||Y.height?J===window?(J=he.ownerDocument.documentElement,Y.top-J.clientTop):Y.top-J.getBoundingClientRect().top:Y.top}var Ve=/#(\S+)$/,ut=function(he){o()(Y,he);var J=l()(Y);function Y(){var $;return p()(this,Y),$=J.apply(this,arguments),$.state={activeLink:null},$.links=[],$.registerLink=function(de){$.links.includes(de)||$.links.push(de)},$.unregisterLink=function(de){var be=$.links.indexOf(de);be!==-1&&$.links.splice(be,1)},$.getContainer=function(){var de=$.context.getTargetContainer,be=$.props.getContainer,Ce=be||de||Me;return Ce()},$.handleScrollTo=function(de){var be=$.props,Ce=be.offsetTop,Be=be.targetOffset;$.setCurrentActiveLink(de);var fe=$.getContainer(),we=Object(re.a)(fe,!0),Re=Ve.exec(de);if(!Re)return;var rt=document.getElementById(Re[1]);if(!rt)return;var St=Qe(rt,fe),ft=we+St;ft-=Be!==void 0?Be:Ce||0,$.animating=!0,Object(se.a)(ft,{callback:function(){$.animating=!1},getContainer:$.getContainer})},$.saveInkNode=function(de){$.inkNode=de},$.setCurrentActiveLink=function(de){var be=$.state.activeLink,Ce=$.props.onChange;be!==de&&($.setState({activeLink:de}),Ce&&Ce(de))},$.handleScroll=function(){if($.animating)return;var de=$.props,be=de.offsetTop,Ce=de.bounds,Be=de.targetOffset,fe=$.getCurrentAnchor(Be!==void 0?Be:be||0,Ce);$.setCurrentActiveLink(fe)},$.updateInk=function(){var de=i()($),be=de.prefixCls,Ce=a.findDOMNode(i()($)),Be=Ce.getElementsByClassName("".concat(be,"-link-title-active"))[0];Be&&($.inkNode.style.top="".concat(Be.offsetTop+Be.clientHeight/2-4.5,"px"))},$.render=function(){var de=$.context,be=de.getPrefixCls,Ce=de.direction,Be=$.props,fe=Be.prefixCls,we=Be.className,Re=we===void 0?"":we,rt=Be.style,St=Be.offsetTop,ft=Be.affix,He=Be.showInkInFixed,er=Be.children,ct=$.state.activeLink,Kt=be("anchor",fe);$.prefixCls=Kt;var fr=h()("".concat(Kt,"-ink-ball"),{visible:ct}),Gt=h()(Re,"".concat(Kt,"-wrapper"),v()({},"".concat(Kt,"-rtl"),Ce==="rtl")),Pt=h()(Kt,{fixed:!ft&&!He}),Xt=f()({maxHeight:St?"calc(100vh - ".concat(St,"px)"):"100vh"},rt),Ge=r.createElement("div",{className:Gt,style:Xt},r.createElement("div",{className:Pt},r.createElement("div",{className:"".concat(Kt,"-ink")},r.createElement("span",{className:fr,ref:$.saveInkNode})),er));return r.createElement(Oe.Provider,{value:{registerLink:$.registerLink,unregisterLink:$.unregisterLink,activeLink:$.state.activeLink,scrollTo:$.handleScrollTo,onClick:$.props.onClick}},ft?r.createElement(q,{offsetTop:St,target:$.getContainer},Ge):Ge)},$}return u()(Y,[{key:"componentDidMount",value:function(){this.scrollContainer=this.getContainer(),this.scrollEvent=Object(g.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll()}},{key:"componentDidUpdate",value:function(){if(this.scrollEvent){var de=this.getContainer();this.scrollContainer!==de&&(this.scrollContainer=de,this.scrollEvent.remove(),this.scrollEvent=Object(g.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll())}this.updateInk()}},{key:"componentWillUnmount",value:function(){this.scrollEvent&&this.scrollEvent.remove()}},{key:"getCurrentAnchor",value:function(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,Ce=this.props.getCurrentAnchor;if(typeof Ce=="function")return Ce();var Be=[],fe=this.getContainer();if(this.links.forEach(function(Re){var rt=Ve.exec(Re.toString());if(!rt)return;var St=document.getElementById(rt[1]);if(St){var ft=Qe(St,fe);ft<de+be&&Be.push({link:Re,top:ft})}}),Be.length){var we=Be.reduce(function(Re,rt){return rt.top>Re.top?rt:Re});return we.link}return""}}]),Y}(r.Component);ut.defaultProps={affix:!0,showInkInFixed:!1},ut.contextType=C.b;var Fe=function(he){o()(Y,he);var J=l()(Y);function Y(){var $;return p()(this,Y),$=J.apply(this,arguments),$.handleClick=function(de){var be=$.context,Ce=be.scrollTo,Be=be.onClick,fe=$.props,we=fe.href,Re=fe.title;Be&&Be(de,{title:Re,href:we}),Ce(we)},$.renderAnchorLink=function(de){var be=de.getPrefixCls,Ce=$.props,Be=Ce.prefixCls,fe=Ce.href,we=Ce.title,Re=Ce.children,rt=Ce.className,St=Ce.target,ft=be("anchor",Be),He=$.context.activeLink===fe,er=h()(rt,"".concat(ft,"-link"),v()({},"".concat(ft,"-link-active"),He)),ct=h()("".concat(ft,"-link-title"),v()({},"".concat(ft,"-link-title-active"),He));return r.createElement("div",{className:er},r.createElement("a",{className:ct,href:fe,title:typeof we=="string"?we:"",target:St,onClick:$.handleClick},we),Re)},$}return u()(Y,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(de){var be=de.href,Ce=this.props.href;be!==Ce&&(this.context.unregisterLink(be),this.context.registerLink(Ce))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return r.createElement(C.a,null,this.renderAnchorLink)}}]),Y}(r.Component);Fe.defaultProps={href:"#"},Fe.contextType=Oe;var ue=Fe;ut.Link=ue;var et=D.a=ut},JuEJ:function(R,D,n){var y=n("bYtY"),f=n("4NO4"),x=y.each,v=y.isObject,m=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function p(r){var a=r&&r.itemStyle;if(!a)return;for(var c=0,h=m.length;c<h;c++){var g=m[c],A=a.normal,b=a.emphasis;A&&A[g]&&(r[g]=r[g]||{},r[g].normal?y.merge(r[g].normal,A[g]):r[g].normal=A[g],A[g]=null),b&&b[g]&&(r[g]=r[g]||{},r[g].emphasis?y.merge(r[g].emphasis,b[g]):r[g].emphasis=b[g],b[g]=null)}}function d(r,a,c){if(r&&r[a]&&(r[a].normal||r[a].emphasis)){var h=r[a].normal,g=r[a].emphasis;h&&(c?(r[a].normal=r[a].emphasis=null,y.defaults(r[a],h)):r[a]=h),g&&(r.emphasis=r.emphasis||{},r.emphasis[a]=g)}}function u(r){d(r,"itemStyle"),d(r,"lineStyle"),d(r,"areaStyle"),d(r,"label"),d(r,"labelLine"),d(r,"upperLabel"),d(r,"edgeLabel")}function s(r,a){var c=v(r)&&r[a],h=v(c)&&c.textStyle;if(h)for(var g=0,A=f.TEXT_STYLE_OPTIONS.length;g<A;g++){var a=f.TEXT_STYLE_OPTIONS[g];h.hasOwnProperty(a)&&(c[a]=h[a])}}function i(r){r&&(u(r),s(r,"label"),r.emphasis&&s(r.emphasis,"label"))}function t(r){if(!v(r))return;p(r),u(r),s(r,"label"),s(r,"upperLabel"),s(r,"edgeLabel"),r.emphasis&&(s(r.emphasis,"label"),s(r.emphasis,"upperLabel"),s(r.emphasis,"edgeLabel"));var a=r.markPoint;a&&(p(a),i(a));var c=r.markLine;c&&(p(c),i(c));var h=r.markArea;h&&i(h);var g=r.data;if(r.type==="graph"){g=g||r.nodes;var A=r.links||r.edges;if(A&&!y.isTypedArray(A))for(var b=0;b<A.length;b++)i(A[b]);y.each(r.categories,function(C){u(C)})}if(g&&!y.isTypedArray(g))for(var b=0;b<g.length;b++)i(g[b]);var a=r.markPoint;if(a&&a.data)for(var S=a.data,b=0;b<S.length;b++)i(S[b]);var c=r.markLine;if(c&&c.data)for(var E=c.data,b=0;b<E.length;b++)y.isArray(E[b])?(i(E[b][0]),i(E[b][1])):i(E[b]);r.type==="gauge"?(s(r,"axisLabel"),s(r,"title"),s(r,"detail")):r.type==="treemap"?(d(r.breadcrumb,"itemStyle"),y.each(r.levels,function(C){u(C)})):r.type==="tree"&&u(r.leaves)}function o(r){return y.isArray(r)?r:r?[r]:[]}function e(r){return(y.isArray(r)?r[0]:r)||{}}function l(r,a){x(o(r.series),function(h){v(h)&&t(h)});var c=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];a&&c.push("valueAxis","categoryAxis","logAxis","timeAxis"),x(c,function(h){x(o(r[h]),function(g){g&&(s(g,"axisLabel"),s(g.axisPointer,"label"))})}),x(o(r.parallel),function(h){var g=h&&h.parallelAxisDefault;s(g,"axisLabel"),s(g&&g.axisPointer,"label")}),x(o(r.calendar),function(h){d(h,"itemStyle"),s(h,"dayLabel"),s(h,"monthLabel"),s(h,"yearLabel")}),x(o(r.radar),function(h){s(h,"name")}),x(o(r.geo),function(h){v(h)&&(i(h),x(o(h.regions),function(g){i(g)}))}),x(o(r.timeline),function(h){i(h),d(h,"label"),d(h,"itemStyle"),d(h,"controlStyle",!0);var g=h.data;y.isArray(g)&&y.each(g,function(A){y.isObject(A)&&(d(A,"label"),d(A,"itemStyle"))})}),x(o(r.toolbox),function(h){d(h,"iconStyle"),x(h.feature,function(g){d(g,"iconStyle")})}),s(e(r.axisPointer),"label"),s(e(r.tooltip).axisPointer,"label")}R.exports=l},K2GJ:function(R,D,n){var y=n("fW2E"),f=n("gut8"),x=f.ContextCachedBy,v=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],m=function(e){this.extendFrom(e,!1)};function p(o,e,l){var r=e.x==null?0:e.x,a=e.x2==null?1:e.x2,c=e.y==null?0:e.y,h=e.y2==null?0:e.y2;e.global||(r=r*l.width+l.x,a=a*l.width+l.x,c=c*l.height+l.y,h=h*l.height+l.y),r=isNaN(r)?0:r,a=isNaN(a)?1:a,c=isNaN(c)?0:c,h=isNaN(h)?0:h;var g=o.createLinearGradient(r,c,a,h);return g}function d(o,e,l){var r=l.width,a=l.height,c=Math.min(r,a),h=e.x==null?.5:e.x,g=e.y==null?.5:e.y,A=e.r==null?.5:e.r;e.global||(h=h*r+l.x,g=g*a+l.y,A=A*c);var b=o.createRadialGradient(h,g,0,h,g,A);return b}m.prototype={constructor:m,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,l,r){var a=this,c=r&&r.style,h=!c||e.__attrCachedBy!==x.STYLE_BIND;e.__attrCachedBy=x.STYLE_BIND;for(var g=0;g<v.length;g++){var A=v[g],b=A[0];(h||a[b]!==c[b])&&(e[b]=y(e,b,a[b]||A[1]))}if((h||a.fill!==c.fill)&&(e.fillStyle=a.fill),(h||a.stroke!==c.stroke)&&(e.strokeStyle=a.stroke),(h||a.opacity!==c.opacity)&&(e.globalAlpha=a.opacity==null?1:a.opacity),(h||a.blend!==c.blend)&&(e.globalCompositeOperation=a.blend||"source-over"),this.hasStroke()){var S=a.lineWidth;e.lineWidth=S/(this.strokeNoScale&&l&&l.getLineScale?l.getLineScale():1)}},hasFill:function(){var e=this.fill;return e!=null&&e!=="none"},hasStroke:function(){var e=this.stroke;return e!=null&&e!=="none"&&this.lineWidth>0},extendFrom:function(e,l){if(e)for(var r in e)e.hasOwnProperty(r)&&(l===!0||(l===!1?!this.hasOwnProperty(r):e[r]!=null))&&(this[r]=e[r])},set:function(e,l){typeof e=="string"?this[e]=l:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,l,r){for(var a=l.type==="radial"?d:p,c=a(e,l,r),h=l.colorStops,g=0;g<h.length;g++)c.addColorStop(h[g].offset,h[g].color);return c}};for(var u=m.prototype,s=0;s<v.length;s++){var i=v[s];i[0]in u||(u[i[0]]=i[1])}m.getGradient=u.getGradient;var t=m;R.exports=t},K3mO:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("3y9D"),n("WYAk"))})(this,function(y){return function(){var f=y,x=f.lib,v=x.Base,m=x.WordArray,p=f.algo,d=p.MD5,u=p.EvpKDF=v.extend({cfg:v.extend({keySize:128/32,hasher:d,iterations:1}),init:function(i){this.cfg=this.cfg.extend(i)},compute:function(i,t){for(var o,e=this.cfg,l=e.hasher.create(),r=m.create(),a=r.words,c=e.keySize,h=e.iterations;a.length<c;){o&&l.update(o),o=l.update(i).finalize(t),l.reset();for(var g=1;g<h;g++)o=l.finalize(o),l.reset();r.concat(o)}return r.sigBytes=c*4,r}});f.EvpKDF=function(s,i,t){return u.create(t).compute(s,i)}}(),y.EvpKDF})},K4ya:function(R,D,n){var y=n("bYtY"),f=n("XxSj"),x=y.each;function v(s){if(s){for(var i in s)if(s.hasOwnProperty(i))return!0}}function m(s,i,t){var o={};return x(i,function(l){var r=o[l]=e();x(s[l],function(a,c){if(!f.isValidType(c))return;var h={type:c,visual:a};t&&t(h,l),r[c]=new f(h),c==="opacity"&&(h=y.clone(h),h.type="colorAlpha",r.__hidden.__alphaForOpacity=new f(h))})}),o;function e(){var l=function(){};l.prototype.__hidden=l.prototype;var r=new l;return r}}function p(s,i,t){var o;y.each(t,function(e){i.hasOwnProperty(e)&&v(i[e])&&(o=!0)}),o&&y.each(t,function(e){i.hasOwnProperty(e)&&v(i[e])?s[e]=y.clone(i[e]):delete s[e]})}function d(s,i,t,o,e,l){var r={};y.each(s,function(A){var b=f.prepareVisualTypes(i[A]);r[A]=b});var a;function c(A){return t.getItemVisual(a,A)}function h(A,b){t.setItemVisual(a,A,b)}l==null?t.each(g):t.each([l],g);function g(A,b){a=l==null?A:b;var S=t.getRawDataItem(a);if(S&&S.visualMap===!1)return;for(var E=o.call(e,A),C=i[E],_=r[E],T=0,w=_.length;T<w;T++){var O=_[T];C[O]&&C[O].applyVisual(A,c,h)}}}function u(s,i,t,o){var e={};y.each(s,function(r){var a=f.prepareVisualTypes(i[r]);e[r]=a});function l(r,a){o!=null&&(o=a.getDimension(o));function c(O){return a.getItemVisual(g,O)}function h(O,I){a.setItemVisual(g,O,I)}for(var g;(g=r.next())!=null;){var A=a.getRawDataItem(g);if(A&&A.visualMap===!1)continue;for(var b=o!=null?a.get(o,g,!0):g,S=t(b),E=i[S],C=e[S],_=0,T=C.length;_<T;_++){var w=C[_];E[w]&&E[w].applyVisual(b,c,h)}}}return{progress:l}}D.createVisualMappings=m,D.replaceVisualOption=p,D.applyVisual=d,D.incrementalApplyVisual=u},KCsZ:function(R,D,n){var y=n("bYtY");function f(x){for(var v=0;v<x.length;v++)x[v][1]||(x[v][1]=x[v][0]);return function(m,p,d){for(var u={},s=0;s<x.length;s++){var i=x[s][1];if(p&&y.indexOf(p,i)>=0||d&&y.indexOf(d,i)<0)continue;var t=m.getShallow(i);t!=null&&(u[x[s][0]]=t)}return u}}R.exports=f},KMkd:function(R,D){function n(){this.__data__=[],this.size=0}R.exports=n},KPFz:function(R,D,n){},KQeH:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};D.default=y},KS52:function(R,D,n){var y=n("OELB"),f=y.parsePercent,x=y.linearMap,v=n("+TT/"),m=n("u3DP"),p=n("bYtY"),d=Math.PI*2,u=Math.PI/180;function s(t,o){return v.getLayoutRect(t.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()})}function i(t,o,e,l){o.eachSeriesByType(t,function(r){var a=r.getData(),c=a.mapDimension("value"),h=s(r,e),g=r.get("center"),A=r.get("radius");p.isArray(A)||(A=[0,A]),p.isArray(g)||(g=[g,g]);var b=f(h.width,e.getWidth()),S=f(h.height,e.getHeight()),E=Math.min(b,S),C=f(g[0],b)+h.x,_=f(g[1],S)+h.y,T=f(A[0],E/2),w=f(A[1],E/2),O=-r.get("startAngle")*u,I=r.get("minAngle")*u,k=0;a.each(c,function(te){!isNaN(te)&&k++});var M=a.getSum(c),j=Math.PI/(M||k)*2,P=r.get("clockwise"),X=r.get("roseType"),F=r.get("stillShowZeroSum"),U=a.getDataExtent(c);U[0]=0;var K=d,z=0,V=O,Q=P?1:-1;if(a.each(c,function(te,q){var se;if(isNaN(te)){a.setItemLayout(q,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:P,cx:C,cy:_,r0:T,r:X?NaN:w,viewRect:h});return}X!=="area"?se=M===0&&F?j:te*j:se=d/k,se<I?(se=I,K-=I):z+=te;var re=V+Q*se;a.setItemLayout(q,{angle:se,startAngle:V,endAngle:re,clockwise:P,cx:C,cy:_,r0:T,r:X?x(te,U,[T,w]):w,viewRect:h}),V=re}),K<d&&k)if(K<=.001){var G=d/k;a.each(c,function(te,q){if(!isNaN(te)){var se=a.getItemLayout(q);se.angle=G,se.startAngle=O+Q*q*G,se.endAngle=O+Q*(q+1)*G}})}else j=K/z,V=O,a.each(c,function(te,q){if(!isNaN(te)){var se=a.getItemLayout(q),re=se.angle===I?I:te*j;se.startAngle=V,se.endAngle=V+Q*re,V+=Q*re}});m(r,w,h.width,h.height,h.x,h.y)})}R.exports=i},KUOm:function(R,D){function n(y){var f={};y.eachSeriesByType("graph",function(x){var v=x.getCategoriesData(),m=x.getData(),p={};v.each(function(d){var u=v.getName(d);p["ec-"+u]=d;var s=v.getItemModel(d),i=s.get("itemStyle.color")||x.getColorFromPalette(u,f);v.setItemVisual(d,"color",i);for(var t=["opacity","symbol","symbolSize","symbolKeepAspect"],o=0;o<t.length;o++){var e=s.getShallow(t[o],!0);e!=null&&v.setItemVisual(d,t[o],e)}}),v.count()&&m.each(function(d){var u=m.getItemModel(d),s=u.getShallow("category");if(s!=null){typeof s=="string"&&(s=p["ec-"+s]);for(var i=["color","opacity","symbol","symbolSize","symbolKeepAspect"],t=0;t<i.length;t++)m.getItemVisual(d,i[t],!0)==null&&m.setItemVisual(d,i[t],v.getItemVisual(s,i[t]))}})})}R.exports=n},Kagy:function(R,D){var n={legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};R.exports=n},KamJ:function(R,D,n){var y=n("ProS"),f=n("szbU");n("vF/C"),n("qwVE"),n("BuqR"),n("AE9C"),n("1u/T"),y.registerPreprocessor(f)},KmBX:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("CP8R")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="FilterFilled";var i=v.forwardRef(s);D.default=i},KmYQ:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.ZeroPadding={pad:function(x,v){var m=v*4;x.clamp(),x.sigBytes+=m-(x.sigBytes%m||m)},unpad:function(x){for(var v=x.words,m=x.sigBytes-1,m=x.sigBytes-1;m>=0;m--)if(v[m>>>2]>>>24-m%4*8&255){x.sigBytes=m+1;break}}},y.pad.ZeroPadding})},"KpQ+":function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("E/ki")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="ClockCircleOutlined";var i=v.forwardRef(s);D.default=i},KrTs:function(R,D,n){"use strict";var y=n("lSNA"),f=n.n(y),x=n("cDf5"),v=n.n(x),m=n("pVnL"),p=n.n(m),d=n("q1tI"),u=n("UmKh"),s=n("TSYQ"),i=n.n(s),t=n("J4zp"),o=n.n(t),e=n("H84U"),l=n("0n0R"),r=function(w,O){var I={};for(var k in w)Object.prototype.hasOwnProperty.call(w,k)&&O.indexOf(k)<0&&(I[k]=w[k]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,k=Object.getOwnPropertySymbols(w);M<k.length;M++)O.indexOf(k[M])<0&&Object.prototype.propertyIsEnumerable.call(w,k[M])&&(I[k[M]]=w[k[M]]);return I};function a(w){return w?w.toString().split("").reverse().map(function(O){var I=Number(O);return isNaN(I)?O:I}):[]}function c(w,O){for(var I=[],k=0;k<30;k++)I.push(d.createElement("p",{key:k.toString(),className:i()(O,{current:w===k})},k%10));return I}var h=function(O){var I=O.prefixCls,k=O.count,M=O.className,j=O.style,P=O.title,X=O.component,F=X===void 0?"sup":X,U=O.displayComponent,K=O.onAnimated,z=K===void 0?function(){}:K,V=r(O,["prefixCls","count","className","style","title","component","displayComponent","onAnimated"]),Q=d.useState(!0),G=o()(Q,2),te=G[0],q=G[1],se=d.useState(k),re=o()(se,2),xe=re[0],Oe=re[1],Me=d.useState(k),Qe=o()(Me,2),Ve=Qe[0],ut=Qe[1],Fe=d.useState(k),ue=o()(Fe,2),et=ue[0],he=ue[1],J=d.useContext(e.b),Y=J.getPrefixCls,$=Y("scroll-number",I);Ve!==k&&(q(!0),ut(k)),d.useEffect(function(){he(xe);var fe;return te&&(fe=setTimeout(function(){q(!1),Oe(k),z()})),function(){fe&&clearTimeout(fe)}},[te,k,z]);var de=function(we,Re){var rt=Math.abs(Number(xe)),St=Math.abs(Number(et)),ft=Math.abs(a(xe)[Re]),He=Math.abs(a(St)[Re]);return te?10+we:rt>St?ft>=He?10+we:20+we:ft<=He?10+we:we},be=function(we,Re){if(typeof we=="number"){var rt=de(we,Re),St=te||a(et)[Re]===void 0;return d.createElement("span",{className:"".concat($,"-only"),style:{transition:St?"none":void 0,msTransform:"translateY(".concat(-rt*100,"%)"),WebkitTransform:"translateY(".concat(-rt*100,"%)"),transform:"translateY(".concat(-rt*100,"%)")},key:Re},c(rt,"".concat($,"-only-unit")))}return d.createElement("span",{key:"symbol",className:"".concat($,"-symbol")},we)},Ce=function(){return xe&&Number(xe)%1===0?a(xe).map(function(we,Re){return be(we,Re)}).reverse():xe},Be=p()(p()({},V),{style:j,className:i()($,M),title:P});return j&&j.borderColor&&(Be.style=p()(p()({},j),{boxShadow:"0 0 0 1px ".concat(j.borderColor," inset")})),U?Object(l.a)(U,{className:i()("".concat($,"-custom-component"),U.props&&U.props.className)}):d.createElement(F,Be,Ce())},g=h,A=n("09Wf");function b(w){return A.a.indexOf(w)!==-1}var S=function(O){var I,k=O.className,M=O.prefixCls,j=O.style,P=O.color,X=O.children,F=O.text,U=O.placement,K=U===void 0?"end":U,z=d.useContext(e.b),V=z.getPrefixCls,Q=z.direction,G=V("ribbon",M),te=b(P),q=i()(G,k,"".concat(G,"-placement-").concat(K),(I={},f()(I,"".concat(G,"-rtl"),Q==="rtl"),f()(I,"".concat(G,"-color-").concat(P),te),I)),se={},re={};return P&&!te&&(se.background=P,re.color=P),d.createElement("div",{className:"".concat(G,"-wrapper")},X,d.createElement("div",{className:q,style:p()(p()({},se),j)},F,d.createElement("div",{className:"".concat(G,"-corner"),style:re})))},E=S,C=function(w,O){var I={};for(var k in w)Object.prototype.hasOwnProperty.call(w,k)&&O.indexOf(k)<0&&(I[k]=w[k]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,k=Object.getOwnPropertySymbols(w);M<k.length;M++)O.indexOf(k[M])<0&&Object.prototype.propertyIsEnumerable.call(w,k[M])&&(I[k[M]]=w[k[M]]);return I},_=function(O){var I,k,M=O.prefixCls,j=O.scrollNumberPrefixCls,P=O.children,X=O.status,F=O.text,U=O.color,K=O.count,z=K===void 0?null:K,V=O.overflowCount,Q=V===void 0?99:V,G=O.dot,te=G===void 0?!1:G,q=O.size,se=q===void 0?"default":q,re=O.title,xe=O.offset,Oe=O.style,Me=O.className,Qe=O.showZero,Ve=Qe===void 0?!1:Qe,ut=C(O,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),Fe=d.useContext(e.b),ue=Fe.getPrefixCls,et=Fe.direction,he=ue("badge",M),J=function(){var fr=z>Q?"".concat(Q,"+"):z;return fr},Y=function(){return!!X||!!U},$=function(){var fr=J();return fr==="0"||fr===0},de=function(){return te&&!$()||Y()},be=function(){return de()?"":J()},Ce=function(){return re||(typeof z=="string"||typeof z=="number"?z:void 0)},Be=function(){return et==="rtl"?xe?p()({left:parseInt(xe[0],10),marginTop:xe[1]},Oe):Oe:xe?p()({right:-parseInt(xe[0],10),marginTop:xe[1]},Oe):Oe},fe=function(){var fr=be(),Gt=fr==null||fr==="";return(Gt||$()&&!Ve)&&!de()},we=function(){var fr=fe();return fr||!F?null:d.createElement("span",{className:"".concat(he,"-status-text")},F)},Re=function(){var fr=z;return!fr||v()(fr)!=="object"?void 0:Object(l.a)(fr,{style:p()(p()({},Be()),fr.props&&fr.props.style)})},rt=function(){var fr,Gt=ue("scroll-number",j),Pt=be(),Xt=de(),Ge=fe(),pe=i()((fr={},f()(fr,"".concat(he,"-dot"),Xt),f()(fr,"".concat(he,"-count"),!Xt),f()(fr,"".concat(he,"-count-sm"),se==="small"),f()(fr,"".concat(he,"-multiple-words"),!Xt&&z&&z.toString&&z.toString().length>1),f()(fr,"".concat(he,"-status-").concat(X),!!X),f()(fr,"".concat(he,"-status-").concat(U),b(U)),fr)),oe=Be();return U&&!b(U)&&(oe=oe||{},oe.background=U),Ge?null:d.createElement(g,{prefixCls:Gt,"data-show":!Ge,className:pe,count:Pt,displayComponent:Re(),title:Ce(),style:oe,key:"scrollNumber"})},St=i()((I={},f()(I,"".concat(he,"-status-dot"),Y()),f()(I,"".concat(he,"-status-").concat(X),!!X),f()(I,"".concat(he,"-status-").concat(U),b(U)),I)),ft={};U&&!b(U)&&(ft.background=U);var He=i()(Me,he,(k={},f()(k,"".concat(he,"-status"),Y()),f()(k,"".concat(he,"-not-a-wrapper"),!P),f()(k,"".concat(he,"-rtl"),et==="rtl"),k));if(!P&&Y()){var er=Be(),ct=er&&er.color;return d.createElement("span",p()({},ut,{className:He,style:er}),d.createElement("span",{className:St,style:ft}),d.createElement("span",{style:{color:ct},className:"".concat(he,"-status-text")},F))}return d.createElement("span",p()({},ut,{className:He}),P,d.createElement(u.a,{component:"",showProp:"data-show",transitionName:P?"".concat(he,"-zoom"):"",transitionAppear:!0},rt()),we())};_.Ribbon=E;var T=D.a=_},Kvyg:function(R,D,n){},KxFI:function(R,D,n){},KxfA:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("bYtY"),v=x.isTypedArray,m=x.extend,p=x.assert,d=x.each,u=x.isObject,s=n("4NO4"),i=s.getDataItemValue,t=s.isDataItemOption,o=n("OELB"),e=o.parseDate,l=n("7G+c"),r=n("k9D9"),a=r.SOURCE_FORMAT_TYPED_ARRAY,c=r.SOURCE_FORMAT_ARRAY_ROWS,h=r.SOURCE_FORMAT_ORIGINAL,g=r.SOURCE_FORMAT_OBJECT_ROWS;function A(P,X){l.isInstance(P)||(P=l.seriesDataToSource(P)),this._source=P;var F=this._data=P.data,U=P.sourceFormat;U===a&&(this._offset=0,this._dimSize=X,this._data=F);var K=S[U===c?U+"_"+P.seriesLayoutBy:U];m(this,K)}var b=A.prototype;b.pure=!1,b.persistent=!0,b.getSource=function(){return this._source};var S={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(P){return this._data[P+this._source.startIndex]},appendData:_},arrayRows_row:{pure:!0,count:function(){var P=this._data[0];return P?Math.max(0,P.length-this._source.startIndex):0},getItem:function(P){P+=this._source.startIndex;for(var X=[],F=this._data,U=0;U<F.length;U++){var K=F[U];X.push(K?K[P]:null)}return X},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:E,getItem:C,appendData:_},keyedColumns:{pure:!0,count:function(){var P=this._source.dimensionsDefine[0].name,X=this._data[P];return X?X.length:0},getItem:function(P){for(var X=[],F=this._source.dimensionsDefine,U=0;U<F.length;U++){var K=this._data[F[U].name];X.push(K?K[P]:null)}return X},appendData:function(P){var X=this._data;d(P,function(F,U){for(var K=X[U]||(X[U]=[]),z=0;z<(F||[]).length;z++)K.push(F[z])})}},original:{count:E,getItem:C,appendData:_},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(P,X){P=P-this._offset,X=X||[];for(var F=this._dimSize*P,U=0;U<this._dimSize;U++)X[U]=this._data[F+U];return X},appendData:function(P){this._data=P},clean:function(){this._offset+=this.count(),this._data=null}}};function E(){return this._data.length}function C(P){return this._data[P]}function _(P){for(var X=0;X<P.length;X++)this._data.push(P[X])}var T={arrayRows:w,objectRows:function(P,X,F,U){return F!=null?P[U]:P},keyedColumns:w,original:function(P,X,F,U){var K=i(P);return F==null||!(K instanceof Array)?K:K[F]},typedArray:w};function w(P,X,F,U){return F!=null?P[F]:P}var O={arrayRows:I,objectRows:function(P,X,F,U){return k(P[X],this._dimensionInfos[X])},keyedColumns:I,original:function(P,X,F,U){var K=P&&(P.value==null?P:P.value);return!this._rawData.pure&&t(P)&&(this.hasItemOption=!0),k(K instanceof Array?K[U]:K,this._dimensionInfos[X])},typedArray:function(P,X,F,U){return P[U]}};function I(P,X,F,U){return k(P[U],this._dimensionInfos[X])}function k(P,X){var F=X&&X.type;if(F==="ordinal"){var U=X&&X.ordinalMeta;return U?U.parseAndCollect(P):P}return F==="time"&&typeof P!="number"&&P!=null&&P!=="-"&&(P=+e(P)),P==null||P===""?NaN:+P}function M(P,X,F){if(!P)return;var U=P.getRawDataItem(X);if(U==null)return;var K=P.getProvider().getSource().sourceFormat,z,V,Q=P.getDimensionInfo(F);return Q&&(z=Q.name,V=Q.index),T[K](U,X,V,z)}function j(P,X,F){if(!P)return;var U=P.getProvider().getSource().sourceFormat;if(U!==h&&U!==g)return;var K=P.getRawDataItem(X);if(U===h&&!u(K)&&(K=null),K)return K[F]}D.DefaultDataProvider=A,D.defaultDimValueGetters=O,D.retrieveRawValue=M,D.retrieveRawAttr=j},L0Ub:function(R,D,n){var y=n("bYtY"),f=y.each,x=y.createHashMap,v=y.assert,m=n("Tghj"),p=m.__DEV__,d=x(["tooltip","label","itemName","itemId","seriesName"]);function u(o){var e={},l=e.encode={},r=x(),a=[],c=[],h=e.userOutput={dimensionNames:o.dimensions.slice(),encode:{}};f(o.dimensions,function(E){var C=o.getDimensionInfo(E),_=C.coordDim;if(_){var T=C.coordDimIndex;s(l,_)[T]=E,C.isExtraCoord||(r.set(_,1),t(C.type)&&(a[0]=E),s(h.encode,_)[T]=C.index),C.defaultTooltip&&c.push(E)}d.each(function(w,O){var I=s(l,O),k=C.otherDims[O];k!=null&&k!==!1&&(I[k]=C.name)})});var g=[],A={};r.each(function(E,C){var _=l[C];A[C]=_[0],g=g.concat(_)}),e.dataDimsOnCoord=g,e.encodeFirstDimNotExtra=A;var b=l.label;b&&b.length&&(a=b.slice());var S=l.tooltip;return S&&S.length?c=S.slice():c.length||(c=a.slice()),l.defaultedLabel=a,l.defaultedTooltip=c,e}function s(o,e){return o.hasOwnProperty(e)||(o[e]=[]),o[e]}function i(o){return o==="category"?"ordinal":o==="time"?"time":"float"}function t(o){return!(o==="ordinal"||o==="time")}D.OTHER_DIMENSIONS=d,D.summarizeDimensions=u,D.getDimensionTypeByAxis=i},L3Oj:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("HjIi");n("HM/N"),n("9eas"),n("eS4l"),n("y4/Y"),n("as94"),y.registerLayout(f.curry(x,"bar")),y.extendComponentView({type:"polar"})},L41K:function(R,D,n){"use strict";n.d(D,"a",function(){return z});var y=n("pVnL"),f=n.n(y),x=n("lSNA"),v=n.n(x),m=n("lwsE"),p=n.n(m),d=n("W8MJ"),u=n.n(d),s=n("7W2i"),i=n.n(s),t=n("LQ03"),o=n.n(t),e=n("q1tI"),l=n.n(e),r=n("BGR+"),a=n("VTBJ"),c=n("rePB"),h=n("Ff2n"),g=n("1OyB"),A=n("vuIU"),b=n("Ji7U"),S=n("LK+K"),E=n("Zm9Q"),C=n("TSYQ"),_=n.n(C),T=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function w(V){return typeof V=="string"}var O=function(V){Object(b.a)(G,V);var Q=Object(S.a)(G);function G(){var te;return Object(g.a)(this,G),te=Q.apply(this,arguments),te.onClick=function(){var q=te.props,se=q.onClick,re=q.onStepClick,xe=q.stepIndex;se&&se.apply(void 0,arguments),re(xe)},te}return Object(A.a)(G,[{key:"renderIconNode",value:function(){var q,se=this.props,re=se.prefixCls,xe=se.progressDot,Oe=se.stepIcon,Me=se.stepNumber,Qe=se.status,Ve=se.title,ut=se.description,Fe=se.icon,ue=se.iconPrefix,et=se.icons,he,J=_()("".concat(re,"-icon"),"".concat(ue,"icon"),(q={},Object(c.a)(q,"".concat(ue,"icon-").concat(Fe),Fe&&w(Fe)),Object(c.a)(q,"".concat(ue,"icon-check"),!Fe&&Qe==="finish"&&(et&&!et.finish||!et)),Object(c.a)(q,"".concat(ue,"icon-cross"),!Fe&&Qe==="error"&&(et&&!et.error||!et)),q)),Y=e.createElement("span",{className:"".concat(re,"-icon-dot")});return xe?typeof xe=="function"?he=e.createElement("span",{className:"".concat(re,"-icon")},xe(Y,{index:Me-1,status:Qe,title:Ve,description:ut})):he=e.createElement("span",{className:"".concat(re,"-icon")},Y):Fe&&!w(Fe)?he=e.createElement("span",{className:"".concat(re,"-icon")},Fe):et&&et.finish&&Qe==="finish"?he=e.createElement("span",{className:"".concat(re,"-icon")},et.finish):et&&et.error&&Qe==="error"?he=e.createElement("span",{className:"".concat(re,"-icon")},et.error):Fe||Qe==="finish"||Qe==="error"?he=e.createElement("span",{className:J}):he=e.createElement("span",{className:"".concat(re,"-icon")},Me),Oe&&(he=Oe({index:Me-1,status:Qe,title:Ve,description:ut,node:he})),he}},{key:"render",value:function(){var q,se=this.props,re=se.className,xe=se.prefixCls,Oe=se.style,Me=se.active,Qe=se.status,Ve=Qe===void 0?"wait":Qe,ut=se.iconPrefix,Fe=se.icon,ue=se.wrapperStyle,et=se.stepNumber,he=se.disabled,J=se.description,Y=se.title,$=se.subTitle,de=se.progressDot,be=se.stepIcon,Ce=se.tailContent,Be=se.icons,fe=se.stepIndex,we=se.onStepClick,Re=se.onClick,rt=Object(h.a)(se,T),St=_()("".concat(xe,"-item"),"".concat(xe,"-item-").concat(Ve),re,(q={},Object(c.a)(q,"".concat(xe,"-item-custom"),Fe),Object(c.a)(q,"".concat(xe,"-item-active"),Me),Object(c.a)(q,"".concat(xe,"-item-disabled"),he===!0),q)),ft=Object(a.a)({},Oe),He={};return we&&!he&&(He.role="button",He.tabIndex=0,He.onClick=this.onClick),e.createElement("div",Object.assign({},rt,{className:St,style:ft}),e.createElement("div",Object.assign({onClick:Re},He,{className:"".concat(xe,"-item-container")}),e.createElement("div",{className:"".concat(xe,"-item-tail")},Ce),e.createElement("div",{className:"".concat(xe,"-item-icon")},this.renderIconNode()),e.createElement("div",{className:"".concat(xe,"-item-content")},e.createElement("div",{className:"".concat(xe,"-item-title")},Y,$&&e.createElement("div",{title:typeof $=="string"?$:void 0,className:"".concat(xe,"-item-subtitle")},$)),J&&e.createElement("div",{className:"".concat(xe,"-item-description")},J))))}}]),G}(e.Component),I=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],k=function(V){Object(b.a)(G,V);var Q=Object(S.a)(G);function G(){var te;return Object(g.a)(this,G),te=Q.apply(this,arguments),te.onStepClick=function(q){var se=te.props,re=se.onChange,xe=se.current;re&&xe!==q&&re(q)},te}return Object(A.a)(G,[{key:"render",value:function(){var q,se=this,re=this.props,xe=re.prefixCls,Oe=re.style,Me=Oe===void 0?{}:Oe,Qe=re.className,Ve=re.children,ut=re.direction,Fe=re.type,ue=re.labelPlacement,et=re.iconPrefix,he=re.status,J=re.size,Y=re.current,$=re.progressDot,de=re.stepIcon,be=re.initial,Ce=re.icons,Be=re.onChange,fe=Object(h.a)(re,I),we=Fe==="navigation",Re=$?"vertical":ue,rt=_()(xe,"".concat(xe,"-").concat(ut),Qe,(q={},Object(c.a)(q,"".concat(xe,"-").concat(J),J),Object(c.a)(q,"".concat(xe,"-label-").concat(Re),ut==="horizontal"),Object(c.a)(q,"".concat(xe,"-dot"),!!$),Object(c.a)(q,"".concat(xe,"-navigation"),we),q));return l.a.createElement("div",Object.assign({className:rt,style:Me},fe),Object(E.a)(Ve).map(function(St,ft){var He=be+ft,er=Object(a.a)({stepNumber:"".concat(He+1),stepIndex:He,key:He,prefixCls:xe,iconPrefix:et,wrapperStyle:Me,progressDot:$,stepIcon:de,icons:Ce,onStepClick:Be&&se.onStepClick},St.props);return he==="error"&&ft===Y-1&&(er.className="".concat(xe,"-next-error")),St.props.status||(He===Y?er.status=he:He<Y?er.status="finish":er.status="wait"),er.active=He===Y,Object(e.cloneElement)(St,er)}))}}]),G}(l.a.Component);k.Step=O,k.defaultProps={type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1};var M=k,j=n("NAnI"),P=n.n(j),X=n("V/uB"),F=n.n(X),U=n("H84U"),K=n("CFYs"),z=function(V){i()(G,V);var Q=o()(G);function G(){var te;return p()(this,G),te=Q.apply(this,arguments),te.renderSteps=function(q){var se=q.getPrefixCls,re=q.direction,xe=se("steps",te.props.prefixCls),Oe=se("",te.props.iconPrefix),Me=te.props,Qe=Me.percent,Ve=Me.size,ut=_()(te.props.className,v()({},"".concat(xe,"-rtl"),re==="rtl")),Fe={finish:e.createElement(P.a,{className:"".concat(xe,"-finish-icon")}),error:e.createElement(F.a,{className:"".concat(xe,"-error-icon")})},ue=function(he){var J=he.node,Y=he.status;if(Y==="process"&&Qe!==void 0){var $=Ve==="small"?32:40,de=e.createElement("div",{className:"".concat(xe,"-progress-icon")},e.createElement(K.a,{type:"circle",percent:Qe,width:$,strokeWidth:4,format:function(){return null}}),J);return de}return J};return e.createElement(M,f()({icons:Fe},Object(r.default)(te.props,["progress"]),{stepIcon:ue,prefixCls:xe,iconPrefix:Oe,className:ut}))},te}return u()(G,[{key:"render",value:function(){return e.createElement(U.a,null,this.renderSteps)}}]),G}(e.Component);z.Step=M.Step,z.defaultProps={current:0}},L5E0:function(R,D){var n=["itemStyle","borderColor"];function y(f,x){var v=f.get("color");f.eachRawSeriesByType("boxplot",function(m){var p=v[m.seriesIndex%v.length],d=m.getData();d.setVisual({legendSymbol:"roundRect",color:m.get(n)||p}),f.isSeriesFiltered(m)||d.each(function(u){var s=d.getItemModel(u);d.setItemVisual(u,{color:s.get(n,!0)})})})}R.exports=y},L8xA:function(R,D){function n(y){var f=this.__data__,x=f.delete(y);return this.size=f.size,x}R.exports=n},LBfv:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=f.createHashMap,v=f.each;y.registerProcessor({getTargetSeries:function(m){var p=x();return m.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(u,s,i){var t=i.getAxisProxy(u.name,s);v(t.getTargetSeriesModels(),function(o){p.set(o.uid,o)})})}),p},modifyOutputEnd:!0,overallReset:function(m,p){m.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(u,s,i){i.getAxisProxy(u.name,s).reset(i,p)}),d.eachTargetAxis(function(u,s,i){i.getAxisProxy(u.name,s).filterData(i,p)})}),m.eachComponent("dataZoom",function(d){var u=d.findRepresentativeAxisProxy(),s=u.getDataPercentWindow(),i=u.getDataValueWindow();d.setCalculatedRange({start:s[0],end:s[1],startValue:i[0],endValue:i[1]})})}})},LCi9:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(A,b){if(!(A instanceof b))throw new TypeError("Cannot call a class as a function")}function f(A,b){for(var S=0;S<b.length;S++){var E=b[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(A,E.key,E)}}function x(A,b,S){return b&&f(A.prototype,b),S&&f(A,S),A}var v=0,m=1,p=2,d=4,u=8,s=16,i=32,t=64,o=127,e=50,l=90,r=250,a=1e3,c=1e3,h=50,g=function(){function A(){y(this,A),this._target=null,this._state=o,this._tracked=[],this._ignored=[],this._waitingRelease=!1,this._releaseStart=0,this._longpressTimeoutId=null,this._twoTouchTimeoutId=null,this._boundEventHandler=this._eventHandler.bind(this)}return x(A,[{key:"attach",value:function(S){this.detach(),this._target=S,this._target.addEventListener("touchstart",this._boundEventHandler),this._target.addEventListener("touchmove",this._boundEventHandler),this._target.addEventListener("touchend",this._boundEventHandler),this._target.addEventListener("touchcancel",this._boundEventHandler)}},{key:"detach",value:function(){if(!this._target)return;this._stopLongpressTimeout(),this._stopTwoTouchTimeout(),this._target.removeEventListener("touchstart",this._boundEventHandler),this._target.removeEventListener("touchmove",this._boundEventHandler),this._target.removeEventListener("touchend",this._boundEventHandler),this._target.removeEventListener("touchcancel",this._boundEventHandler),this._target=null}},{key:"_eventHandler",value:function(S){var E;S.stopPropagation(),S.preventDefault();switch(S.type){case"touchstart":E=this._touchStart;break;case"touchmove":E=this._touchMove;break;case"touchend":case"touchcancel":E=this._touchEnd;break}for(var C=0;C<S.changedTouches.length;C++){var _=S.changedTouches[C];E.call(this,_.identifier,_.clientX,_.clientY)}}},{key:"_touchStart",value:function(S,E,C){if(this._hasDetectedGesture()||this._state===v){this._ignored.push(S);return}if(this._tracked.length>0&&Date.now()-this._tracked[0].started>r){this._state=v,this._ignored.push(S);return}if(this._waitingRelease){this._state=v,this._ignored.push(S);return}this._tracked.push({id:S,started:Date.now(),active:!0,firstX:E,firstY:C,lastX:E,lastY:C,angle:0});switch(this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(m|u|s),this._stopLongpressTimeout();break;case 3:this._state&=~(p|i|t);break;default:this._state=v}}},{key:"_touchMove",value:function(S,E,C){var _=this._tracked.find(function(M){return M.id===S});if(_===void 0)return;_.lastX=E,_.lastY=C;var T=E-_.firstX,w=C-_.firstY;if((_.firstX!==_.lastX||_.firstY!==_.lastY)&&(_.angle=Math.atan2(w,T)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(T,w)<e)return;if(this._state&=~(m|p|d|s),this._stopLongpressTimeout(),this._tracked.length!==1&&(this._state&=~u),this._tracked.length!==2&&(this._state&=~(i|t)),this._tracked.length===2){var O=this._tracked.find(function(M){return M.id!==S}),I=Math.hypot(O.firstX-O.lastX,O.firstY-O.lastY);if(I>e){var k=Math.abs(_.angle-O.angle);k=Math.abs((k+180)%360-180),k>l?this._state&=~i:this._state&=~t,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}},{key:"_touchEnd",value:function(S,E,C){if(this._ignored.indexOf(S)!==-1){this._ignored.splice(this._ignored.indexOf(S),1),this._ignored.length===0&&this._tracked.length===0&&(this._state=o,this._waitingRelease=!1);return}if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=v),!this._hasDetectedGesture()&&(this._state&=~(u|i|t),this._state&=~s,this._stopLongpressTimeout(),!this._waitingRelease)){this._releaseStart=Date.now(),this._waitingRelease=!0;switch(this._tracked.length){case 1:this._state&=~(p|d);break;case 2:this._state&=~(m|d);break}}if(this._waitingRelease){Date.now()-this._releaseStart>r&&(this._state=v),this._tracked.some(function(w){return Date.now()-w.started>a})&&(this._state=v);var _=this._tracked.find(function(w){return w.id===S});if(_.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==v)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var T=0;T<this._tracked.length;T++)this._tracked[T].active&&this._ignored.push(this._tracked[T].id);this._tracked=[],this._state=v,this._ignored.indexOf(S)!==-1&&this._ignored.splice(this._ignored.indexOf(S),1),this._ignored.length===0&&(this._state=o,this._waitingRelease=!1)}},{key:"_hasDetectedGesture",value:function(){return this._state===v||this._state&this._state-1?!1:!(this._state&(m|p|d)&&this._tracked.some(function(S){return S.active}))}},{key:"_startLongpressTimeout",value:function(){var S=this;this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout(function(){return S._longpressTimeout()},c)}},{key:"_stopLongpressTimeout",value:function(){clearTimeout(this._longpressTimeoutId),this._longpressTimeoutId=null}},{key:"_longpressTimeout",value:function(){if(this._hasDetectedGesture())throw new Error("A longpress gesture failed, conflict with a different gesture");this._state=s,this._pushEvent("gesturestart")}},{key:"_startTwoTouchTimeout",value:function(){var S=this;this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout(function(){return S._twoTouchTimeout()},h)}},{key:"_stopTwoTouchTimeout",value:function(){clearTimeout(this._twoTouchTimeoutId),this._twoTouchTimeoutId=null}},{key:"_isTwoTouchTimeoutRunning",value:function(){return this._twoTouchTimeoutId!==null}},{key:"_twoTouchTimeout",value:function(){if(this._tracked.length===0)throw new Error("A pinch or two drag gesture failed, no tracked touches");var S=this._getAverageMovement(),E=Math.abs(S.x),C=Math.abs(S.y),_=this._getAverageDistance(),T=Math.abs(Math.hypot(_.first.x,_.first.y)-Math.hypot(_.last.x,_.last.y));C<T&&E<T?this._state=t:this._state=i,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}},{key:"_pushEvent",value:function(S){var E={type:this._stateToGesture(this._state)},C=this._getPosition(),_=C.last;S==="gesturestart"&&(_=C.first);switch(this._state){case i:case t:_=C.first;break}if(E.clientX=_.x,E.clientY=_.y,this._state===t){var T=this._getAverageDistance();S==="gesturestart"?(E.magnitudeX=T.first.x,E.magnitudeY=T.first.y):(E.magnitudeX=T.last.x,E.magnitudeY=T.last.y)}else if(this._state===i)if(S==="gesturestart")E.magnitudeX=0,E.magnitudeY=0;else{var w=this._getAverageMovement();E.magnitudeX=w.x,E.magnitudeY=w.y}var O=new CustomEvent(S,{detail:E});this._target.dispatchEvent(O)}},{key:"_stateToGesture",value:function(S){switch(S){case m:return"onetap";case p:return"twotap";case d:return"threetap";case u:return"drag";case s:return"longpress";case i:return"twodrag";case t:return"pinch"}throw new Error("Unknown gesture state: "+S)}},{key:"_getPosition",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture position, no tracked touches");for(var S=this._tracked.length,E=0,C=0,_=0,T=0,w=0;w<this._tracked.length;w++)E+=this._tracked[w].firstX,C+=this._tracked[w].firstY,_+=this._tracked[w].lastX,T+=this._tracked[w].lastY;return{first:{x:E/S,y:C/S},last:{x:_/S,y:T/S}}}},{key:"_getAverageMovement",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture movement, no tracked touches");var S,E;S=E=0;for(var C=this._tracked.length,_=0;_<this._tracked.length;_++)S+=this._tracked[_].lastX-this._tracked[_].firstX,E+=this._tracked[_].lastY-this._tracked[_].firstY;return{x:S/C,y:E/C}}},{key:"_getAverageDistance",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture distance, no tracked touches");var S=this._tracked[0],E=this._tracked[this._tracked.length-1],C=Math.abs(E.firstX-S.firstX),_=Math.abs(E.firstY-S.firstY),T=Math.abs(E.lastX-S.lastX),w=Math.abs(E.lastY-S.lastY);return{first:{x:C,y:_},last:{x:T,y:w}}}}]),A}();D.default=g},LPTA:function(R,D){var n=1;typeof window!="undefined"&&(n=Math.max(window.devicePixelRatio||1,1));var y=0,f=n;D.debugMode=y,D.devicePixelRatio=f},LPzL:function(R,D,n){var y=n("ProS");n("QzjZ"),n("vL6D"),n("xiyX"),n("y4/Y"),n("8Th4"),y.extendComponentView({type:"single"})},LSTS:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y=function(){function o(e,l){for(var r=0;r<l.length;r++){var a=l[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,l,r){return l&&o(e.prototype,l),r&&o(e,r),e}}(),f=n("q1tI"),x=p(f),v=n("17x9"),m=p(v);function p(o){return o&&o.__esModule?o:{default:o}}function d(o,e){var l={};for(var r in o){if(e.indexOf(r)>=0)continue;if(!Object.prototype.hasOwnProperty.call(o,r))continue;l[r]=o[r]}return l}function u(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function s(o,e){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function i(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}var t=function(o){i(e,o);function e(l){u(this,e);var r=s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,l));return r.scrollListener=r.scrollListener.bind(r),r.eventListenerOptions=r.eventListenerOptions.bind(r),r.mousewheelListener=r.mousewheelListener.bind(r),r}return y(e,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var r=this.getParentElement(this.scrollComponent);r.scrollTop=r.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var r=!1,a={get passive(){r=!0}};try{document.addEventListener("test",null,a),document.removeEventListener("test",null,a)}catch(c){}return r}},{key:"eventListenerOptions",value:function(){var r=this.props.useCapture;return this.isPassiveSupported()&&(r={useCapture:this.props.useCapture,passive:!0}),r}},{key:"setDefaultLoader",value:function(r){this.defaultLoader=r}},{key:"detachMousewheelListener",value:function(){var r=window;this.props.useWindow===!1&&(r=this.scrollComponent.parentNode),r.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var r=window;this.props.useWindow===!1&&(r=this.getParentElement(this.scrollComponent)),r.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),r.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(r){var a=this.props.getScrollParent&&this.props.getScrollParent();return a!=null?a:r&&r.parentNode}},{key:"filterProps",value:function(r){return r}},{key:"attachScrollListener",value:function(){var r=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!r)return;var a=window;this.props.useWindow===!1&&(a=r),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(r){r.deltaY===1&&!this.isPassiveSupported()&&r.preventDefault()}},{key:"scrollListener",value:function(){var r=this.scrollComponent,a=window,c=this.getParentElement(r),h=void 0;if(this.props.useWindow){var g=document.documentElement||document.body.parentNode||document.body,A=a.pageYOffset!==void 0?a.pageYOffset:g.scrollTop;this.props.isReverse?h=A:h=this.calculateOffset(r,A)}else this.props.isReverse?h=c.scrollTop:h=r.scrollHeight-c.scrollTop-c.clientHeight;h<Number(this.props.threshold)&&r&&r.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=c.scrollHeight,this.beforeScrollTop=c.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(r,a){return r?this.calculateTopPosition(r)+(r.offsetHeight-a-window.innerHeight):0}},{key:"calculateTopPosition",value:function(r){return r?r.offsetTop+this.calculateTopPosition(r.offsetParent):0}},{key:"render",value:function(){var r=this,a=this.filterProps(this.props),c=a.children,h=a.element,g=a.hasMore,A=a.initialLoad,b=a.isReverse,S=a.loader,E=a.loadMore,C=a.pageStart,_=a.ref,T=a.threshold,w=a.useCapture,O=a.useWindow,I=a.getScrollParent,k=d(a,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);k.ref=function(j){r.scrollComponent=j,_&&_(j)};var M=[c];return g&&(S?b?M.unshift(S):M.push(S):this.defaultLoader&&(b?M.unshift(this.defaultLoader):M.push(this.defaultLoader))),x.default.createElement(h,k,M)}}]),e}(f.Component);t.propTypes={children:m.default.node.isRequired,element:m.default.node,hasMore:m.default.bool,initialLoad:m.default.bool,isReverse:m.default.bool,loader:m.default.node,loadMore:m.default.func.isRequired,pageStart:m.default.number,ref:m.default.func,getScrollParent:m.default.func,threshold:m.default.number,useCapture:m.default.bool,useWindow:m.default.bool},t.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},D.default=t,R.exports=D.default},LXxW:function(R,D){function n(y,f){for(var x=-1,v=y==null?0:y.length,m=0,p=[];++x<v;){var d=y[x];f(d,x,y)&&(p[m++]=d)}return p}R.exports=n},Lerx:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("Mds0"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},LlR5:function(R,D,n){"use strict";n.d(D,"b",function(){return b});var y=n("lSNA"),f=n.n(y),x=n("lwsE"),v=n.n(x),m=n("W8MJ"),p=n.n(m),d=n("7W2i"),u=n.n(d),s=n("LQ03"),i=n.n(s),t=n("q1tI"),o=n.n(t),e=n("TSYQ"),l=n.n(e),r=n("kbBi"),a=n.n(r),c=n("CWQg"),h=n("mh/l"),g=n("0n0R"),A=Object(c.a)("text","input");function b(E){return!!(E.prefix||E.suffix||E.allowClear)}var S=function(E){u()(_,E);var C=i()(_);function _(){var T;return v()(this,_),T=C.apply(this,arguments),T.containerRef=t.createRef(),T.onInputMouseUp=function(w){var O;if((O=T.containerRef.current)===null||O===void 0?void 0:O.contains(w.target)){var I=T.props.triggerFocus;I()}},T}return p()(_,[{key:"renderClearIcon",value:function(w){var O=this.props,I=O.allowClear,k=O.value,M=O.disabled,j=O.readOnly,P=O.inputType,X=O.handleReset;if(!I)return null;var F=!M&&!j&&k,U=P===A[0]?"".concat(w,"-textarea-clear-icon"):"".concat(w,"-clear-icon");return t.createElement(a.a,{onClick:X,className:l()(U,f()({},"".concat(U,"-hidden"),!F)),role:"button"})}},{key:"renderSuffix",value:function(w){var O=this.props,I=O.suffix,k=O.allowClear;return I||k?t.createElement("span",{className:"".concat(w,"-suffix")},this.renderClearIcon(w),I):null}},{key:"renderLabeledIcon",value:function(w,O){var I,k=this.props,M=k.focused,j=k.value,P=k.prefix,X=k.className,F=k.size,U=k.suffix,K=k.disabled,z=k.allowClear,V=k.direction,Q=k.style,G=k.readOnly,te=k.bordered,q=this.renderSuffix(w);if(!b(this.props))return Object(g.a)(O,{value:j});var se=P?t.createElement("span",{className:"".concat(w,"-prefix")},P):null,re=l()(X,"".concat(w,"-affix-wrapper"),(I={},f()(I,"".concat(w,"-affix-wrapper-focused"),M),f()(I,"".concat(w,"-affix-wrapper-disabled"),K),f()(I,"".concat(w,"-affix-wrapper-sm"),F==="small"),f()(I,"".concat(w,"-affix-wrapper-lg"),F==="large"),f()(I,"".concat(w,"-affix-wrapper-input-with-clear-btn"),U&&z&&j),f()(I,"".concat(w,"-affix-wrapper-rtl"),V==="rtl"),f()(I,"".concat(w,"-affix-wrapper-readonly"),G),f()(I,"".concat(w,"-affix-wrapper-borderless"),!te),I));return t.createElement("span",{ref:this.containerRef,className:re,style:Q,onMouseUp:this.onInputMouseUp},se,Object(g.a)(O,{style:null,value:j,className:Object(h.c)(w,te,F,K)}),q)}},{key:"renderInputWithLabel",value:function(w,O){var I,k,M=this.props,j=M.addonBefore,P=M.addonAfter,X=M.style,F=M.size,U=M.className,K=M.direction;if(!j&&!P)return O;var z="".concat(w,"-group"),V="".concat(z,"-addon"),Q=j?t.createElement("span",{className:V},j):null,G=P?t.createElement("span",{className:V},P):null,te=l()("".concat(w,"-wrapper"),(I={},f()(I,z,j||P),f()(I,"".concat(z,"-rtl"),K==="rtl"),I)),q=l()(U,"".concat(w,"-group-wrapper"),(k={},f()(k,"".concat(w,"-group-wrapper-sm"),F==="small"),f()(k,"".concat(w,"-group-wrapper-lg"),F==="large"),f()(k,"".concat(w,"-group-wrapper-rtl"),K==="rtl"),k));return t.createElement("span",{className:q,style:X},t.createElement("span",{className:te},Q,Object(g.a)(O,{style:null}),G))}},{key:"renderTextAreaWithClearIcon",value:function(w,O){var I,k=this.props,M=k.value,j=k.allowClear,P=k.className,X=k.style,F=k.direction,U=k.bordered;if(!j)return Object(g.a)(O,{value:M});var K=l()(P,"".concat(w,"-affix-wrapper"),"".concat(w,"-affix-wrapper-textarea-with-clear-btn"),(I={},f()(I,"".concat(w,"-affix-wrapper-rtl"),F==="rtl"),f()(I,"".concat(w,"-affix-wrapper-borderless"),!U),I));return t.createElement("span",{className:K,style:X},Object(g.a)(O,{style:null,value:M}),this.renderClearIcon(w))}},{key:"render",value:function(){var w=this.props,O=w.prefixCls,I=w.inputType,k=w.element;return I===A[0]?this.renderTextAreaWithClearIcon(O,k):this.renderInputWithLabel(O,this.renderLabeledIcon(O,k))}}]),_}(t.Component);D.a=S},Llu2:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="DeliveredProcedureOutlined";var d=D.a=f.forwardRef(p)},Lo0S:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.initLogging=p,D.getLogging=d,D.Error=D.Warn=D.Info=D.Debug=void 0;var y="warn",f=function(){};D.Debug=f;var x=function(){};D.Info=x;var v=function(){};D.Warn=v;var m=function(){};D.Error=m;function p(u){if(typeof u=="undefined"?u=y:y=u,D.Debug=f=D.Info=x=D.Warn=v=D.Error=m=function(){},typeof window.console!="undefined")switch(u){case"debug":D.Debug=f=console.debug.bind(window.console);case"info":D.Info=x=console.info.bind(window.console);case"warn":D.Warn=v=console.warn.bind(window.console);case"error":D.Error=m=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+u+"'")}}function d(){return y}p()},LtfV:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="InboxOutlined";var d=D.a=f.forwardRef(p)},Lyp1:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="QuestionCircleOutlined";var d=D.a=f.forwardRef(p)},LzGr:function(R,D,n){var y=n("ProS"),f=n("rnVJ");n("EMyp"),n("8x+h"),n("wt3j"),n("uOyE"),n("/stD"),y.registerPreprocessor(f)},MBQ8:function(R,D,n){var y=n("T4UG"),f=n("MwEJ"),x=y.extend({type:"series.__base_bar__",getInitialData:function(v,m){return f(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(v){var m=this.coordinateSystem;if(m){var p=m.dataToPoint(m.clampData(v)),d=this.getData(),u=d.getLayout("offset"),s=d.getLayout("size"),i=m.getBaseAxis().isHorizontal()?0:1;return p[i]+=u+s/2,p}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});R.exports=x},MEGo:function(R,D,n){var y=n("4fz+"),f=n("Dagg"),x=n("dqUG"),v=n("2fw6"),m=n("x6Kt"),p=n("rmlV"),d=n("yxFR"),u=n("y+Vt"),s=n("h7HQ"),i=n("1Jh7"),t=n("SKnc"),o=n("K2GJ"),e=n("Fofx"),l=n("NC18"),r=l.createFromString,a=n("bYtY"),c=a.isString,h=a.extend,g=a.defaults,A=a.trim,b=a.each,S=/[\s,]+/;function E(Q){if(c(Q)){var G=new DOMParser;Q=G.parseFromString(Q,"text/xml")}for(Q.nodeType===9&&(Q=Q.firstChild);Q.nodeName.toLowerCase()!=="svg"||Q.nodeType!==1;)Q=Q.nextSibling;return Q}function C(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}C.prototype.parse=function(Q,G){G=G||{};var te=E(Q);if(!te)throw new Error("Illegal svg");var q=new y;this._root=q;var se=te.getAttribute("viewBox")||"",re=parseFloat(te.getAttribute("width")||G.width),xe=parseFloat(te.getAttribute("height")||G.height);isNaN(re)&&(re=null),isNaN(xe)&&(xe=null),M(te,q,null,!0);for(var Oe=te.firstChild;Oe;)this._parseNode(Oe,q),Oe=Oe.nextSibling;var Me,Qe;if(se){var Ve=A(se).split(S);Ve.length>=4&&(Me={x:parseFloat(Ve[0]||0),y:parseFloat(Ve[1]||0),width:parseFloat(Ve[2]),height:parseFloat(Ve[3])})}if(Me&&re!=null&&xe!=null&&(Qe=z(Me,re,xe),!G.ignoreViewBox)){var ut=q;q=new y,q.add(ut),ut.scale=Qe.scale.slice(),ut.position=Qe.position.slice()}return!G.ignoreRootClip&&re!=null&&xe!=null&&q.setClipPath(new m({shape:{x:0,y:0,width:re,height:xe}})),{root:q,width:re,height:xe,viewBoxRect:Me,viewBoxTransform:Qe}},C.prototype._parseNode=function(Q,G){var te=Q.nodeName.toLowerCase();te==="defs"?this._isDefine=!0:te==="text"&&(this._isText=!0);var q;if(this._isDefine){var se=T[te];if(se){var re=se.call(this,Q),xe=Q.getAttribute("id");xe&&(this._defs[xe]=re)}}else{var se=_[te];se&&(q=se.call(this,Q,G),G.add(q))}for(var Oe=Q.firstChild;Oe;)Oe.nodeType===1&&this._parseNode(Oe,q),Oe.nodeType===3&&this._isText&&this._parseText(Oe,q),Oe=Oe.nextSibling;te==="defs"?this._isDefine=!1:te==="text"&&(this._isText=!1)},C.prototype._parseText=function(Q,G){if(Q.nodeType===1){var te=Q.getAttribute("dx")||0,q=Q.getAttribute("dy")||0;this._textX+=parseFloat(te),this._textY+=parseFloat(q)}var se=new x({style:{text:Q.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});O(G,se),M(Q,se,this._defs);var re=se.style.fontSize;re&&re<9&&(se.style.fontSize=9,se.scale=se.scale||[1,1],se.scale[0]*=re/9,se.scale[1]*=re/9);var xe=se.getBoundingRect();return this._textX+=xe.width,G.add(se),se};var _={g:function(G,te){var q=new y;return O(te,q),M(G,q,this._defs),q},rect:function(G,te){var q=new m;return O(te,q),M(G,q,this._defs),q.setShape({x:parseFloat(G.getAttribute("x")||0),y:parseFloat(G.getAttribute("y")||0),width:parseFloat(G.getAttribute("width")||0),height:parseFloat(G.getAttribute("height")||0)}),q},circle:function(G,te){var q=new v;return O(te,q),M(G,q,this._defs),q.setShape({cx:parseFloat(G.getAttribute("cx")||0),cy:parseFloat(G.getAttribute("cy")||0),r:parseFloat(G.getAttribute("r")||0)}),q},line:function(G,te){var q=new d;return O(te,q),M(G,q,this._defs),q.setShape({x1:parseFloat(G.getAttribute("x1")||0),y1:parseFloat(G.getAttribute("y1")||0),x2:parseFloat(G.getAttribute("x2")||0),y2:parseFloat(G.getAttribute("y2")||0)}),q},ellipse:function(G,te){var q=new p;return O(te,q),M(G,q,this._defs),q.setShape({cx:parseFloat(G.getAttribute("cx")||0),cy:parseFloat(G.getAttribute("cy")||0),rx:parseFloat(G.getAttribute("rx")||0),ry:parseFloat(G.getAttribute("ry")||0)}),q},polygon:function(G,te){var q=G.getAttribute("points");q&&(q=I(q));var se=new s({shape:{points:q||[]}});return O(te,se),M(G,se,this._defs),se},polyline:function(G,te){var q=new u;O(te,q),M(G,q,this._defs);var se=G.getAttribute("points");se&&(se=I(se));var re=new i({shape:{points:se||[]}});return re},image:function(G,te){var q=new f;return O(te,q),M(G,q,this._defs),q.setStyle({image:G.getAttribute("xlink:href"),x:G.getAttribute("x"),y:G.getAttribute("y"),width:G.getAttribute("width"),height:G.getAttribute("height")}),q},text:function(G,te){var q=G.getAttribute("x")||0,se=G.getAttribute("y")||0,re=G.getAttribute("dx")||0,xe=G.getAttribute("dy")||0;this._textX=parseFloat(q)+parseFloat(re),this._textY=parseFloat(se)+parseFloat(xe);var Oe=new y;return O(te,Oe),M(G,Oe,this._defs),Oe},tspan:function(G,te){var q=G.getAttribute("x"),se=G.getAttribute("y");q!=null&&(this._textX=parseFloat(q)),se!=null&&(this._textY=parseFloat(se));var re=G.getAttribute("dx")||0,xe=G.getAttribute("dy")||0,Oe=new y;return O(te,Oe),M(G,Oe,this._defs),this._textX+=re,this._textY+=xe,Oe},path:function(G,te){var q=G.getAttribute("d")||"",se=r(q);return O(te,se),M(G,se,this._defs),se}},T={lineargradient:function(G){var te=parseInt(G.getAttribute("x1")||0,10),q=parseInt(G.getAttribute("y1")||0,10),se=parseInt(G.getAttribute("x2")||10,10),re=parseInt(G.getAttribute("y2")||0,10),xe=new t(te,q,se,re);return w(G,xe),xe},radialgradient:function(G){}};function w(Q,G){for(var te=Q.firstChild;te;){if(te.nodeType===1){var q=te.getAttribute("offset");q.indexOf("%")>0?q=parseInt(q,10)/100:q?q=parseFloat(q):q=0;var se=te.getAttribute("stop-color")||"#000000";G.addColorStop(q,se)}te=te.nextSibling}}function O(Q,G){Q&&Q.__inheritedStyle&&(G.__inheritedStyle||(G.__inheritedStyle={}),g(G.__inheritedStyle,Q.__inheritedStyle))}function I(Q){for(var G=A(Q).split(S),te=[],q=0;q<G.length;q+=2){var se=parseFloat(G[q]),re=parseFloat(G[q+1]);te.push([se,re])}return te}var k={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function M(Q,G,te,q){var se=G.__inheritedStyle||{},re=G.type==="text";if(Q.nodeType===1&&(F(Q,G),h(se,K(Q)),!q)){for(var xe in k)if(k.hasOwnProperty(xe)){var Oe=Q.getAttribute(xe);Oe!=null&&(se[k[xe]]=Oe)}}var Me=re?"textFill":"fill",Qe=re?"textStroke":"stroke";G.style=G.style||new o;var Ve=G.style;se.fill!=null&&Ve.set(Me,P(se.fill,te)),se.stroke!=null&&Ve.set(Qe,P(se.stroke,te)),b(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(ut){var Fe=ut==="lineWidth"&&re?"textStrokeWidth":ut;se[ut]!=null&&Ve.set(Fe,parseFloat(se[ut]))}),(!se.textBaseline||se.textBaseline==="auto")&&(se.textBaseline="alphabetic"),se.textBaseline==="alphabetic"&&(se.textBaseline="bottom"),se.textAlign==="start"&&(se.textAlign="left"),se.textAlign==="end"&&(se.textAlign="right"),b(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(ut){se[ut]!=null&&Ve.set(ut,se[ut])}),se.lineDash&&(G.style.lineDash=A(se.lineDash).split(S)),Ve[Qe]&&Ve[Qe]!=="none"&&(G[Qe]=!0),G.__inheritedStyle=se}var j=/url\(\s*#(.*?)\)/;function P(Q,G){var te=G&&Q&&Q.match(j);if(te){var q=A(te[1]),se=G[q];return se}return Q}var X=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function F(Q,G){var te=Q.getAttribute("transform");if(te){te=te.replace(/,/g," ");var q=null,se=[];te.replace(X,function(Me,Qe,Ve){se.push(Qe,Ve)});for(var re=se.length-1;re>0;re-=2){var xe=se[re],Oe=se[re-1];q=q||e.create();switch(Oe){case"translate":xe=A(xe).split(S),e.translate(q,q,[parseFloat(xe[0]),parseFloat(xe[1]||0)]);break;case"scale":xe=A(xe).split(S),e.scale(q,q,[parseFloat(xe[0]),parseFloat(xe[1]||xe[0])]);break;case"rotate":xe=A(xe).split(S),e.rotate(q,q,parseFloat(xe[0]));break;case"skew":xe=A(xe).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":var xe=A(xe).split(S);q[0]=parseFloat(xe[0]),q[1]=parseFloat(xe[1]),q[2]=parseFloat(xe[2]),q[3]=parseFloat(xe[3]),q[4]=parseFloat(xe[4]),q[5]=parseFloat(xe[5]);break}}G.setLocalTransform(q)}}var U=/([^\s:;]+)\s*:\s*([^:;]+)/g;function K(Q){var G=Q.getAttribute("style"),te={};if(!G)return te;var q={};U.lastIndex=0;for(var se;(se=U.exec(G))!=null;)q[se[1]]=se[2];for(var re in k)k.hasOwnProperty(re)&&q[re]!=null&&(te[k[re]]=q[re]);return te}function z(Q,G,te){var q=G/Q.width,se=te/Q.height,re=Math.min(q,se),xe=[re,re],Oe=[-(Q.x+Q.width/2)*re+G/2,-(Q.y+Q.height/2)*re+te/2];return{scale:xe,position:Oe}}function V(Q,G){var te=new C;return te.parse(Q,G)}D.parseXML=E,D.makeViewBoxTransform=z,D.parseSVG=V},MFOe:function(R,D,n){(function(y){var f=p(),x=d(),v=u(),m=typeof window!="undefined"?window:y;R.exports={assign:f,create:x,trim:v,bind:s,slice:i,each:t,map:o,pluck:e,isList:l,isFunction:r,isObject:a,Global:m};function p(){return Object.assign?Object.assign:function(h,g,A,b){for(var S=1;S<arguments.length;S++)t(Object(arguments[S]),function(E,C){h[C]=E});return h}}function d(){if(Object.create)return function(g,A,b,S){var E=i(arguments,1);return f.apply(this,[Object.create(g)].concat(E))};var c=function(){};return function(g,A,b,S){var E=i(arguments,1);return c.prototype=g,f.apply(this,[new c].concat(E))}}function u(){return String.prototype.trim?function(h){return String.prototype.trim.call(h)}:function(h){return h.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function s(c,h){return function(){return h.apply(c,Array.prototype.slice.call(arguments,0))}}function i(c,h){return Array.prototype.slice.call(c,h||0)}function t(c,h){e(c,function(g,A){return h(g,A),!1})}function o(c,h){var g=l(c)?[]:{};return e(c,function(A,b){return g[b]=h(A,b),!1}),g}function e(c,h){if(l(c)){for(var g=0;g<c.length;g++)if(h(c[g],g))return c[g]}else for(var A in c)if(c.hasOwnProperty(A)&&h(c[A],A))return c[A]}function l(c){return c!=null&&typeof c!="function"&&typeof c.length=="number"}function r(c){return c&&{}.toString.call(c)==="[object Function]"}function a(c){return c&&{}.toString.call(c)==="[object Object]"}}).call(this,n("yLpj"))},MH26:function(R,D,n){var y=n("bYtY"),f=n("YXkt"),x=n("OELB"),v=n("kj2x"),m=n("c8qY"),p=n("iPDy"),d=n("7hqr"),u=d.getStackedDimension,s=function(a,c,h,g){var A=a.getData(),b=g.type;if(!y.isArray(g)&&(b==="min"||b==="max"||b==="average"||b==="median"||g.xAxis!=null||g.yAxis!=null)){var S,E;if(g.yAxis!=null||g.xAxis!=null)S=c.getAxis(g.yAxis!=null?"y":"x"),E=y.retrieve(g.yAxis,g.xAxis);else{var C=v.getAxisInfo(g,A,c,a);S=C.valueAxis;var _=u(A,C.valueDataDim);E=v.numCalculate(A,_,b)}var T=S.dim==="x"?0:1,w=1-T,O=y.clone(g),I={};O.type=null,O.coord=[],I.coord=[],O.coord[w]=-Infinity,I.coord[w]=Infinity;var k=h.get("precision");k>=0&&typeof E=="number"&&(E=+E.toFixed(Math.min(k,20))),O.coord[T]=I.coord[T]=E,g=[O,I,{type:b,valueIndex:g.valueIndex,value:E}]}return g=[v.dataTransform(a,g[0]),v.dataTransform(a,g[1]),y.extend({},g[2])],g[2].type=g[2].type||"",y.merge(g[2],g[0]),y.merge(g[2],g[1]),g};function i(a){return!isNaN(a)&&!isFinite(a)}function t(a,c,h,g){var A=1-a,b=g.dimensions[a];return i(c[A])&&i(h[A])&&c[a]===h[a]&&g.getAxis(b).containData(c[a])}function o(a,c){if(a.type==="cartesian2d"){var h=c[0].coord,g=c[1].coord;if(h&&g&&(t(1,h,g,a)||t(0,h,g,a)))return!0}return v.dataFilter(a,c[0])&&v.dataFilter(a,c[1])}function e(a,c,h,g,A){var b=g.coordinateSystem,S=a.getItemModel(c),E,C=x.parsePercent(S.get("x"),A.getWidth()),_=x.parsePercent(S.get("y"),A.getHeight());if(!isNaN(C)&&!isNaN(_))E=[C,_];else{if(g.getMarkerPosition)E=g.getMarkerPosition(a.getValues(a.dimensions,c));else{var T=b.dimensions,w=a.get(T[0],c),O=a.get(T[1],c);E=b.dataToPoint([w,O])}if(b.type==="cartesian2d"){var I=b.getAxis("x"),k=b.getAxis("y"),T=b.dimensions;i(a.get(T[0],c))?E[0]=I.toGlobalCoord(I.getExtent()[h?0:1]):i(a.get(T[1],c))&&(E[1]=k.toGlobalCoord(k.getExtent()[h?0:1]))}isNaN(C)||(E[0]=C),isNaN(_)||(E[1]=_)}a.setItemLayout(c,E)}var l=p.extend({type:"markLine",updateTransform:function(a,c,h){c.eachSeries(function(g){var A=g.markLineModel;if(A){var b=A.getData(),S=A.__from,E=A.__to;S.each(function(C){e(S,C,!0,g,h),e(E,C,!1,g,h)}),b.each(function(C){b.setItemLayout(C,[S.getItemLayout(C),E.getItemLayout(C)])}),this.markerGroupMap.get(g.id).updateLayout()}},this)},renderSeries:function(a,c,h,g){var A=a.coordinateSystem,b=a.id,S=a.getData(),E=this.markerGroupMap,C=E.get(b)||E.set(b,new m);this.group.add(C.group);var _=r(A,a,c),T=_.from,w=_.to,O=_.line;c.__from=T,c.__to=w,c.setData(O);var I=c.get("symbol"),k=c.get("symbolSize");y.isArray(I)||(I=[I,I]),typeof k=="number"&&(k=[k,k]),_.from.each(function(j){M(T,j,!0),M(w,j,!1)}),O.each(function(j){var P=O.getItemModel(j).get("lineStyle.color");O.setItemVisual(j,{color:P||T.getItemVisual(j,"color")}),O.setItemLayout(j,[T.getItemLayout(j),w.getItemLayout(j)]),O.setItemVisual(j,{fromSymbolSize:T.getItemVisual(j,"symbolSize"),fromSymbol:T.getItemVisual(j,"symbol"),toSymbolSize:w.getItemVisual(j,"symbolSize"),toSymbol:w.getItemVisual(j,"symbol")})}),C.updateData(O),_.line.eachItemGraphicEl(function(j,P){j.traverse(function(X){X.dataModel=c})});function M(j,P,X){var F=j.getItemModel(P);e(j,P,X,a,g),j.setItemVisual(P,{symbolSize:F.get("symbolSize")||k[X?0:1],symbol:F.get("symbol",!0)||I[X?0:1],color:F.get("itemStyle.color")||S.getVisual("color")})}C.__keep=!0,C.group.silent=c.get("silent")||a.get("silent")}});function r(a,c,h){var g;a?g=y.map(a&&a.dimensions,function(_){var T=c.getData().getDimensionInfo(c.getData().mapDimension(_))||{};return y.defaults({name:_},T)}):g=[{name:"value",type:"float"}];var A=new f(g,h),b=new f(g,h),S=new f([],h),E=y.map(h.get("data"),y.curry(s,c,a,h));a&&(E=y.filter(E,y.curry(o,a)));var C=a?v.dimValueGetter:function(_){return _.value};return A.initData(y.map(E,function(_){return _[0]}),null,C),b.initData(y.map(E,function(_){return _[1]}),null,C),S.initData(y.map(E,function(_){return _[2]})),S.hasItemOption=!0,{from:A,to:b,line:S}}R.exports=l},MHoB:function(R,D,n){var y=n("bYtY"),f=n("6uqw"),x=n("OELB"),v=[20,140],m=f.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(u,s){m.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){m.superApply(this,"resetItemSize",arguments);var u=this.itemSize;this._orient==="horizontal"&&u.reverse(),(u[0]==null||isNaN(u[0]))&&(u[0]=v[0]),(u[1]==null||isNaN(u[1]))&&(u[1]=v[1])},_resetRange:function(){var u=this.getExtent(),s=this.option.range;!s||s.auto?(u.auto=1,this.option.range=u):y.isArray(s)&&(s[0]>s[1]&&s.reverse(),s[0]=Math.max(s[0],u[0]),s[1]=Math.min(s[1],u[1]))},completeVisualOption:function(){f.prototype.completeVisualOption.apply(this,arguments),y.each(this.stateList,function(u){var s=this.option.controller[u].symbolSize;s&&s[0]!==s[1]&&(s[0]=0)},this)},setSelected:function(u){this.option.range=u.slice(),this._resetRange()},getSelected:function(){var u=this.getExtent(),s=x.asc((this.get("range")||[]).slice());return s[0]>u[1]&&(s[0]=u[1]),s[1]>u[1]&&(s[1]=u[1]),s[0]<u[0]&&(s[0]=u[0]),s[1]<u[0]&&(s[1]=u[0]),s},getValueState:function(u){var s=this.option.range,i=this.getExtent();return(s[0]<=i[0]||s[0]<=u)&&(s[1]>=i[1]||u<=s[1])?"inRange":"outOfRange"},findTargetDataIndices:function(u){var s=[];return this.eachTargetSeries(function(i){var t=[],o=i.getData();o.each(this.getDataDimension(o),function(e,l){u[0]<=e&&e<=u[1]&&t.push(l)},this),s.push({seriesId:i.id,dataIndex:t})},this),s},getVisualMeta:function(u){var s=p(this,"outOfRange",this.getExtent()),i=p(this,"inRange",this.option.range.slice()),t=[];function o(g,A){t.push({value:g,color:u(g,A)})}for(var e=0,l=0,r=i.length,a=s.length;l<a&&(!i.length||s[l]<=i[0]);l++)s[l]<i[e]&&o(s[l],"outOfRange");for(var c=1;e<r;e++,c=0)c&&t.length&&o(i[e],"outOfRange"),o(i[e],"inRange");for(var c=1;l<a;l++)(!i.length||i[i.length-1]<s[l])&&(c&&(t.length&&o(t[t.length-1].value,"outOfRange"),c=0),o(s[l],"outOfRange"));var h=t.length;return{stops:t,outerColors:[h?t[0].color:"transparent",h?t[h-1].color:"transparent"]}}});function p(u,s,i){if(i[0]===i[1])return i.slice();for(var t=200,o=(i[1]-i[0])/t,e=i[0],l=[],r=0;r<=t&&e<i[1];r++)l.push(e),e+=o;return l.push(i[1]),l}var d=m;R.exports=d},MHtr:function(R,D,n){var y=n("bYtY");function f(v,m){var p=this.getAxis(),d=m instanceof Array?m[0]:m,u=(v instanceof Array?v[0]:v)/2;return p.type==="category"?p.getBandWidth():Math.abs(p.dataToCoord(d-u)-p.dataToCoord(d+u))}function x(v){var m=v.getRect();return{coordSys:{type:"singleAxis",x:m.x,y:m.y,width:m.width,height:m.height},api:{coord:function(p){return v.dataToPoint(p)},size:y.bind(f,v)}}}R.exports=x},MJZm:function(R,D,n){"use strict";var y=n("lSNA"),f=n.n(y),x=n("pVnL"),v=n.n(x),m=n("q1tI"),p=n("rePB"),d=n("VTBJ"),u=n("KQm4"),s=n("1OyB"),i=n("vuIU"),t=n("Ji7U"),o=n("LK+K"),e=n("4IlW"),l=n("Kwbf"),r=n("TSYQ"),a=n.n(r),c=n("FTAc"),h=n("wPhX"),g=n("c3jg"),A=n("ODXe"),b=n("Ff2n"),S=n("+nKL"),E=n("HTfv"),C=n("lr6o"),_=function(Pt,Xt){var Ge=Pt.className,pe=Pt.style,oe=Pt.motion,lt=Pt.motionNodes,qe=Pt.motionType,ge=Pt.onMotionStart,Ht=Pt.onMotionEnd,vr=Pt.active,At=Pt.treeNodeRequiredProps,ir=Object(b.a)(Pt,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),lr=m.useState(!0),dn=Object(A.a)(lr,2),Ft=dn[0],ur=dn[1],Jt=m.useContext(c.a),pt=Jt.prefixCls,at=m.useRef(!1),Pr=function(){at.current||Ht(),at.current=!0};return Object(m.useEffect)(function(){lt&&qe==="hide"&&Ft&&ur(!1)},[lt]),Object(m.useEffect)(function(){return lt&&ge(),function(){lt&&Pr()}},[]),lt?m.createElement(E.default,Object.assign({ref:Xt,visible:Ft},oe,{motionAppear:qe==="show",onAppearEnd:Pr,onLeaveEnd:Pr}),function(un,_n){var Xn=un.className,xi=un.style;return m.createElement("div",{ref:_n,className:a()("".concat(pt,"-treenode-motion"),Xn),style:xi},lt.map(function(Pn){var Un=Pn.data,$t=Un.key,xt=Object(b.a)(Un,["key"]),De=Pn.isStart,ke=Pn.isEnd;delete xt.children;var Pe=Object(g.f)($t,At);return m.createElement(C.a,Object.assign({},xt,Pe,{active:vr,data:Pn.data,key:$t,isStart:De,isEnd:ke}))}))}):m.createElement(C.a,Object.assign({domRef:Xt,className:Ge,style:pe},ir,{active:vr}))};_.displayName="MotionTreeNode";var T=m.forwardRef(_),w=T;function O(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Xt=Gt.length,Ge=Pt.length;if(Math.abs(Xt-Ge)!==1)return{add:!1,key:null};function pe(oe,lt){var qe=new Map;oe.forEach(function(Ht){qe.set(Ht,!0)});var ge=lt.filter(function(Ht){return!qe.has(Ht)});return ge.length===1?ge[0]:null}return Xt<Ge?{add:!0,key:pe(Gt,Pt)}:{add:!1,key:pe(Pt,Gt)}}function I(Gt,Pt,Xt){var Ge=Gt.findIndex(function(qe){var ge=qe.data;return ge.key===Xt}),pe=Gt[Ge+1],oe=Pt.findIndex(function(qe){var ge=qe.data;return ge.key===Xt});if(pe){var lt=Pt.findIndex(function(qe){var ge=qe.data;return ge.key===pe.data.key});return Pt.slice(oe+1,lt)}return Pt.slice(oe+1)}var k={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},M=function(){},j="RC_TREE_MOTION_".concat(Math.random()),P={key:j},X={key:j,level:0,index:0,pos:"0",node:P},F={parent:null,children:[],pos:X.pos,data:P,isStart:[],isEnd:[]};function U(Gt,Pt,Xt,Ge){return Pt===!1||!Xt?Gt:Gt.slice(0,Math.ceil(Xt/Ge)+1)}function K(Gt){var Pt=Gt.data.key,Xt=Gt.pos;return Object(g.e)(Pt,Xt)}function z(Gt){for(var Pt=String(Gt.data.key),Xt=Gt;Xt.parent;)Xt=Xt.parent,Pt="".concat(Xt.data.key," > ").concat(Pt);return Pt}var V=function(Pt,Xt){var Ge=Pt.prefixCls,pe=Pt.data,oe=Pt.selectable,lt=Pt.checkable,qe=Pt.expandedKeys,ge=Pt.selectedKeys,Ht=Pt.checkedKeys,vr=Pt.loadedKeys,At=Pt.loadingKeys,ir=Pt.halfCheckedKeys,lr=Pt.keyEntities,dn=Pt.disabled,Ft=Pt.dragging,ur=Pt.dragOverNodeKey,Jt=Pt.dropPosition,pt=Pt.motion,at=Pt.height,Pr=Pt.itemHeight,un=Pt.virtual,_n=Pt.focusable,Xn=Pt.activeItem,xi=Pt.focused,Pn=Pt.tabIndex,Un=Pt.onKeyDown,$t=Pt.onFocus,xt=Pt.onBlur,De=Pt.onActiveChange,ke=Pt.onListChangeStart,Pe=Pt.onListChangeEnd,tt=Object(b.a)(Pt,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),yt=m.useRef(null);m.useImperativeHandle(Xt,function(){return{scrollTo:function(Wi){yt.current.scrollTo(Wi)}}});var Et=m.useState(qe),Yt=Object(A.a)(Et,2),Rr=Yt[0],zr=Yt[1],hn=m.useState(pe),jt=Object(A.a)(hn,2),vt=jt[0],bt=jt[1],cr=m.useState(pe),Qt=Object(A.a)(cr,2),Mt=Qt[0],tr=Qt[1],Rt=m.useState([]),qt=Object(A.a)(Rt,2),Hr=qt[0],Nr=qt[1],Dr=m.useState(null),cn=Object(A.a)(Dr,2),An=cn[0],ri=cn[1];function $n(){bt(pe),tr(pe),Nr([]),ri(null),Pe()}m.useEffect(function(){zr(qe);var Di=O(Rr,qe);if(Di.key!==null)if(Di.add){var Wi=vt.findIndex(function(Ze){var ot=Ze.data.key;return ot===Di.key}),it=U(I(vt,pe,Di.key),un,at,Pr),Le=vt.slice();Le.splice(Wi+1,0,F),tr(Le),Nr(it),ri("show")}else{var je=pe.findIndex(function(Ze){var ot=Ze.data.key;return ot===Di.key}),Xe=U(I(pe,vt,Di.key),un,at,Pr),nt=pe.slice();nt.splice(je+1,0,F),tr(nt),Nr(Xe),ri("hide")}else vt!==pe&&(bt(pe),tr(pe))},[qe,pe]),m.useEffect(function(){Ft||$n()},[Ft]);var fi=pt?Mt:pe,_i={expandedKeys:qe,selectedKeys:ge,loadedKeys:vr,loadingKeys:At,checkedKeys:Ht,halfCheckedKeys:ir,dragOverNodeKey:ur,dropPosition:Jt,keyEntities:lr};return m.createElement(m.Fragment,null,xi&&Xn&&m.createElement("span",{style:k,"aria-live":"assertive"},z(Xn)),m.createElement("div",{role:"tree"},m.createElement("input",{style:k,disabled:_n===!1||dn,tabIndex:_n!==!1?Pn:null,onKeyDown:Un,onFocus:$t,onBlur:xt,value:"",onChange:M})),m.createElement(S.a,Object.assign({},tt,{data:fi,itemKey:K,height:at,fullHeight:!1,virtual:un,itemHeight:Pr,prefixCls:"".concat(Ge,"-list"),ref:yt}),function(Di){var Wi=Di.pos,it=Di.data,Le=it.key,je=Object(b.a)(it,["key"]),Xe=Di.isStart,nt=Di.isEnd,Ze=Object(g.e)(Le,Wi);delete je.children;var ot=Object(g.f)(Ze,_i);return m.createElement(w,Object.assign({},je,ot,{active:Xn&&Le===Xn.data.key,pos:Wi,data:Di.data,isStart:Xe,isEnd:nt,motion:pt,motionNodes:Le===j?Hr:null,motionType:An,onMotionStart:ke,onMotionEnd:$n,treeNodeRequiredProps:_i,onMouseMove:function(){De(null)}}))}))},Q=m.forwardRef(V);Q.displayName="NodeList";var G=Q,te=n("qOx5"),q=function(Gt){Object(t.a)(Xt,Gt);var Pt=Object(o.a)(Xt);function Xt(){var Ge;return Object(s.a)(this,Xt),Ge=Pt.apply(this,arguments),Ge.destroyed=!1,Ge.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},Ge.listRef=m.createRef(),Ge.onNodeDragStart=function(pe,oe){var lt=Ge.state,qe=lt.expandedKeys,ge=lt.keyEntities,Ht=Ge.props.onDragStart,vr=oe.props.eventKey;Ge.dragNode=oe;var At=Object(h.b)(qe,vr);Ge.setState({dragging:!0,dragNodesKeys:Object(h.g)(vr,ge)}),Ge.setExpandedKeys(At),Ht&&Ht({event:pe,node:Object(g.b)(oe.props)})},Ge.onNodeDragEnter=function(pe,oe){var lt=Ge.state,qe=lt.expandedKeys,ge=lt.keyEntities,Ht=lt.dragNodesKeys,vr=Ge.props.onDragEnter,At=oe.props,ir=At.pos,lr=At.eventKey;if(!Ge.dragNode||Ht.indexOf(lr)!==-1)return;var dn=Object(h.c)(pe,oe);if(Ge.dragNode.props.eventKey===lr&&dn===0){Ge.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){Ge.setState({dragOverNodeKey:lr,dropPosition:dn}),Ge.delayedDragEnterLogic||(Ge.delayedDragEnterLogic={}),Object.keys(Ge.delayedDragEnterLogic).forEach(function(Ft){clearTimeout(Ge.delayedDragEnterLogic[Ft])}),Ge.delayedDragEnterLogic[ir]=window.setTimeout(function(){if(!Ge.state.dragging)return;var Ft=Object(u.a)(qe),ur=ge[lr];ur&&(ur.children||[]).length&&(Ft=Object(h.a)(qe,lr)),"expandedKeys"in Ge.props||Ge.setExpandedKeys(Ft),vr&&vr({event:pe,node:Object(g.b)(oe.props),expandedKeys:Ft})},400)},0)},Ge.onNodeDragOver=function(pe,oe){var lt=Ge.state.dragNodesKeys,qe=Ge.props.onDragOver,ge=oe.props.eventKey;if(lt.indexOf(ge)!==-1)return;if(Ge.dragNode&&ge===Ge.state.dragOverNodeKey){var Ht=Object(h.c)(pe,oe);if(Ht===Ge.state.dropPosition)return;Ge.setState({dropPosition:Ht})}qe&&qe({event:pe,node:Object(g.b)(oe.props)})},Ge.onNodeDragLeave=function(pe,oe){var lt=Ge.props.onDragLeave;Ge.setState({dragOverNodeKey:""}),lt&<({event:pe,node:Object(g.b)(oe.props)})},Ge.onNodeDragEnd=function(pe,oe){var lt=Ge.props.onDragEnd;Ge.setState({dragOverNodeKey:""}),Ge.cleanDragState(),lt&<({event:pe,node:Object(g.b)(oe.props)}),Ge.dragNode=null},Ge.onNodeDrop=function(pe,oe){var lt=Ge.state,qe=lt.dragNodesKeys,ge=qe===void 0?[]:qe,Ht=lt.dropPosition,vr=Ge.props.onDrop,At=oe.props,ir=At.eventKey,lr=At.pos;if(Ge.setState({dragOverNodeKey:""}),Ge.cleanDragState(),ge.indexOf(ir)!==-1){Object(l.a)(!1,"Can not drop to dragNode(include it's children node)");return}var dn=Object(h.k)(lr),Ft={event:pe,node:Object(g.b)(oe.props),dragNode:Ge.dragNode?Object(g.b)(Ge.dragNode.props):null,dragNodesKeys:ge.slice(),dropPosition:Ht+Number(dn[dn.length-1]),dropToGap:!1};Ht!==0&&(Ft.dropToGap=!0),vr&&vr(Ft),Ge.dragNode=null},Ge.cleanDragState=function(){var pe=Ge.state.dragging;pe&&Ge.setState({dragging:!1})},Ge.onNodeClick=function(pe,oe){var lt=Ge.props.onClick;lt&<(pe,oe)},Ge.onNodeDoubleClick=function(pe,oe){var lt=Ge.props.onDoubleClick;lt&<(pe,oe)},Ge.onNodeSelect=function(pe,oe){var lt=Ge.state.selectedKeys,qe=Ge.state.keyEntities,ge=Ge.props,Ht=ge.onSelect,vr=ge.multiple,At=oe.selected,ir=oe.key,lr=!At;lr?vr?lt=Object(h.a)(lt,ir):lt=[ir]:lt=Object(h.b)(lt,ir);var dn=lt.map(function(Ft){var ur=qe[Ft];return ur?ur.node:null}).filter(function(Ft){return Ft});Ge.setUncontrolledState({selectedKeys:lt}),Ht&&Ht(lt,{event:"select",selected:lr,node:oe,selectedNodes:dn,nativeEvent:pe.nativeEvent})},Ge.onNodeCheck=function(pe,oe,lt){var qe=Ge.state,ge=qe.keyEntities,Ht=qe.checkedKeys,vr=qe.halfCheckedKeys,At=Ge.props,ir=At.checkStrictly,lr=At.onCheck,dn=oe.key,Ft,ur={event:"check",node:oe,checked:lt,nativeEvent:pe.nativeEvent};if(ir){var Jt=lt?Object(h.a)(Ht,dn):Object(h.b)(Ht,dn),pt=Object(h.b)(vr,dn);Ft={checked:Jt,halfChecked:pt},ur.checkedNodes=Jt.map(function(xi){return ge[xi]}).filter(function(xi){return xi}).map(function(xi){return xi.node}),Ge.setUncontrolledState({checkedKeys:Jt})}else{var at=Object(te.a)([].concat(Object(u.a)(Ht),[dn]),!0,ge),Pr=at.checkedKeys,un=at.halfCheckedKeys;if(!lt){var _n=new Set(Pr);_n.delete(dn);var Xn=Object(te.a)(Array.from(_n),{checked:!1,halfCheckedKeys:un},ge);Pr=Xn.checkedKeys,un=Xn.halfCheckedKeys}Ft=Pr,ur.checkedNodes=[],ur.checkedNodesPositions=[],ur.halfCheckedKeys=un,Pr.forEach(function(xi){var Pn=ge[xi];if(!Pn)return;var Un=Pn.node,$t=Pn.pos;ur.checkedNodes.push(Un),ur.checkedNodesPositions.push({node:Un,pos:$t})}),Ge.setUncontrolledState({checkedKeys:Pr},!1,{halfCheckedKeys:un})}lr&&lr(Ft,ur)},Ge.onNodeLoad=function(pe){return new Promise(function(oe){Ge.setState(function(lt){var qe=lt.loadedKeys,ge=qe===void 0?[]:qe,Ht=lt.loadingKeys,vr=Ht===void 0?[]:Ht,At=Ge.props,ir=At.loadData,lr=At.onLoad,dn=pe.key;if(!ir||ge.indexOf(dn)!==-1||vr.indexOf(dn)!==-1)return{};var Ft=ir(pe);return Ft.then(function(){var ur=Ge.state,Jt=ur.loadedKeys,pt=ur.loadingKeys,at=Object(h.a)(Jt,dn),Pr=Object(h.b)(pt,dn);lr&&lr(at,{event:"load",node:pe}),Ge.setUncontrolledState({loadedKeys:at}),Ge.setState({loadingKeys:Pr}),oe()}),{loadingKeys:Object(h.a)(vr,dn)}})})},Ge.onNodeMouseEnter=function(pe,oe){var lt=Ge.props.onMouseEnter;lt&<({event:pe,node:oe})},Ge.onNodeMouseLeave=function(pe,oe){var lt=Ge.props.onMouseLeave;lt&<({event:pe,node:oe})},Ge.onNodeContextMenu=function(pe,oe){var lt=Ge.props.onRightClick;lt&&(pe.preventDefault(),lt({event:pe,node:oe}))},Ge.onFocus=function(){var pe=Ge.props.onFocus;Ge.setState({focused:!0}),pe&&pe.apply(void 0,arguments)},Ge.onBlur=function(){var pe=Ge.props.onBlur;Ge.setState({focused:!1}),Ge.onActiveChange(null),pe&&pe.apply(void 0,arguments)},Ge.getTreeNodeRequiredProps=function(){var pe=Ge.state,oe=pe.expandedKeys,lt=pe.selectedKeys,qe=pe.loadedKeys,ge=pe.loadingKeys,Ht=pe.checkedKeys,vr=pe.halfCheckedKeys,At=pe.dragOverNodeKey,ir=pe.dropPosition,lr=pe.keyEntities;return{expandedKeys:oe||[],selectedKeys:lt||[],loadedKeys:qe||[],loadingKeys:ge||[],checkedKeys:Ht||[],halfCheckedKeys:vr||[],dragOverNodeKey:At,dropPosition:ir,keyEntities:lr}},Ge.setExpandedKeys=function(pe){var oe=Ge.state.treeData,lt=Object(g.d)(oe,pe);Ge.setUncontrolledState({expandedKeys:pe,flattenNodes:lt},!0)},Ge.onNodeExpand=function(pe,oe){var lt=Ge.state.expandedKeys,qe=Ge.state.listChanging,ge=Ge.props,Ht=ge.onExpand,vr=ge.loadData,At=oe.key,ir=oe.expanded;if(qe)return;var lr=lt.indexOf(At),dn=!ir;if(Object(l.a)(ir&&lr!==-1||!ir&&lr===-1,"Expand state not sync with index check"),dn?lt=Object(h.a)(lt,At):lt=Object(h.b)(lt,At),Ge.setExpandedKeys(lt),Ht&&Ht(lt,{node:oe,expanded:dn,nativeEvent:pe.nativeEvent}),dn&&vr){var Ft=Ge.onNodeLoad(oe);Ft&&Ft.then(function(){var ur=Object(g.d)(Ge.state.treeData,lt);Ge.setUncontrolledState({flattenNodes:ur})})}},Ge.onListChangeStart=function(){Ge.setUncontrolledState({listChanging:!0})},Ge.onListChangeEnd=function(){setTimeout(function(){Ge.setUncontrolledState({listChanging:!1})})},Ge.onActiveChange=function(pe){var oe=Ge.state.activeKey,lt=Ge.props.onActiveChange;if(oe===pe)return;Ge.setState({activeKey:pe}),pe!==null&&Ge.scrollTo({key:pe}),lt&<(pe)},Ge.getActiveItem=function(){var pe=Ge.state,oe=pe.activeKey,lt=pe.flattenNodes;return oe===null?null:lt.find(function(qe){var ge=qe.data.key;return ge===oe})||null},Ge.offsetActiveKey=function(pe){var oe=Ge.state,lt=oe.flattenNodes,qe=oe.activeKey,ge=lt.findIndex(function(At){var ir=At.data.key;return ir===qe});ge===-1&&pe<0&&(ge=lt.length),ge=(ge+pe+lt.length)%lt.length;var Ht=lt[ge];if(Ht){var vr=Ht.data.key;Ge.onActiveChange(vr)}else Ge.onActiveChange(null)},Ge.onKeyDown=function(pe){var oe=Ge.state,lt=oe.activeKey,qe=oe.expandedKeys,ge=oe.checkedKeys,Ht=Ge.props,vr=Ht.onKeyDown,At=Ht.checkable,ir=Ht.selectable;switch(pe.which){case e.a.UP:{Ge.offsetActiveKey(-1),pe.preventDefault();break}case e.a.DOWN:{Ge.offsetActiveKey(1),pe.preventDefault();break}}var lr=Ge.getActiveItem();if(lr&&lr.data){var dn=Ge.getTreeNodeRequiredProps(),Ft=lr.data.isLeaf===!1||!!(lr.data.children||[]).length,ur=Object(g.b)(Object(d.a)(Object(d.a)({},Object(g.f)(lt,dn)),{},{data:lr.data,active:!0}));switch(pe.which){case e.a.LEFT:{Ft&&qe.includes(lt)?Ge.onNodeExpand({},ur):lr.parent&&Ge.onActiveChange(lr.parent.data.key),pe.preventDefault();break}case e.a.RIGHT:{Ft&&!qe.includes(lt)?Ge.onNodeExpand({},ur):lr.children&&lr.children.length&&Ge.onActiveChange(lr.children[0].data.key),pe.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{At&&!ur.disabled&&ur.checkable!==!1&&!ur.disableCheckbox?Ge.onNodeCheck({},ur,!ge.includes(lt)):!At&&ir&&!ur.disabled&&ur.selectable!==!1&&Ge.onNodeSelect({},ur);break}}}vr&&vr(pe)},Ge.setUncontrolledState=function(pe){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(Ge.destroyed)return;var qe=!1,ge=!0,Ht={};Object.keys(pe).forEach(function(vr){if(vr in Ge.props){ge=!1;return}qe=!0,Ht[vr]=pe[vr]}),qe&&(!oe||ge)&&Ge.setState(Object(d.a)(Object(d.a)({},Ht),lt))},Ge.scrollTo=function(pe){Ge.listRef.current.scrollTo(pe)},Ge}return Object(i.a)(Xt,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var pe,oe=this.state,lt=oe.focused,qe=oe.flattenNodes,ge=oe.keyEntities,Ht=oe.dragging,vr=oe.activeKey,At=this.props,ir=At.prefixCls,lr=At.className,dn=At.style,Ft=At.showLine,ur=At.focusable,Jt=At.tabIndex,pt=Jt===void 0?0:Jt,at=At.selectable,Pr=At.showIcon,un=At.icon,_n=At.switcherIcon,Xn=At.draggable,xi=At.checkable,Pn=At.checkStrictly,Un=At.disabled,$t=At.motion,xt=At.loadData,De=At.filterTreeNode,ke=At.height,Pe=At.itemHeight,tt=At.virtual,yt=At.titleRender,Et=At.onContextMenu,Yt=Object(h.f)(this.props);return m.createElement(c.a.Provider,{value:{prefixCls:ir,selectable:at,showIcon:Pr,icon:un,switcherIcon:_n,draggable:Xn,checkable:xi,checkStrictly:Pn,disabled:Un,keyEntities:ge,loadData:xt,filterTreeNode:De,titleRender:yt,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},m.createElement("div",{className:a()(ir,lr,(pe={},Object(p.a)(pe,"".concat(ir,"-show-line"),Ft),Object(p.a)(pe,"".concat(ir,"-focused"),lt),Object(p.a)(pe,"".concat(ir,"-active-focused"),vr!==null),pe))},m.createElement(G,Object.assign({ref:this.listRef,prefixCls:ir,style:dn,data:qe,disabled:Un,selectable:at,checkable:!!xi,motion:$t,dragging:Ht,height:ke,itemHeight:Pe,virtual:tt,focusable:ur,focused:lt,tabIndex:pt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Et},this.getTreeNodeRequiredProps(),Yt))))}}],[{key:"getDerivedStateFromProps",value:function(pe,oe){var lt=oe.prevProps,qe={prevProps:pe};function ge(un){return!lt&&un in pe||lt&<[un]!==pe[un]}var Ht;if(ge("treeData")?Ht=pe.treeData:ge("children")&&(Object(l.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ht=Object(g.c)(pe.children)),Ht){qe.treeData=Ht;var vr=Object(g.a)(Ht);qe.keyEntities=Object(d.a)(Object(p.a)({},j,X),vr.keyEntities)}var At=qe.keyEntities||oe.keyEntities;if(ge("expandedKeys")||lt&&ge("autoExpandParent"))qe.expandedKeys=pe.autoExpandParent||!lt&&pe.defaultExpandParent?Object(h.e)(pe.expandedKeys,At):pe.expandedKeys;else if(!lt&&pe.defaultExpandAll){var ir=Object(d.a)({},At);delete ir[j],qe.expandedKeys=Object.keys(ir).map(function(un){return ir[un].key})}else!lt&&pe.defaultExpandedKeys&&(qe.expandedKeys=pe.autoExpandParent||pe.defaultExpandParent?Object(h.e)(pe.defaultExpandedKeys,At):pe.defaultExpandedKeys);if(qe.expandedKeys||delete qe.expandedKeys,Ht||qe.expandedKeys){var lr=Object(g.d)(Ht||oe.treeData,qe.expandedKeys||oe.expandedKeys);qe.flattenNodes=lr}if(pe.selectable&&(ge("selectedKeys")?qe.selectedKeys=Object(h.d)(pe.selectedKeys,pe):!lt&&pe.defaultSelectedKeys&&(qe.selectedKeys=Object(h.d)(pe.defaultSelectedKeys,pe))),pe.checkable){var dn;if(ge("checkedKeys")?dn=Object(h.j)(pe.checkedKeys)||{}:!lt&&pe.defaultCheckedKeys?dn=Object(h.j)(pe.defaultCheckedKeys)||{}:Ht&&(dn=Object(h.j)(pe.checkedKeys)||{checkedKeys:oe.checkedKeys,halfCheckedKeys:oe.halfCheckedKeys}),dn){var Ft=dn,ur=Ft.checkedKeys,Jt=ur===void 0?[]:ur,pt=Ft.halfCheckedKeys,at=pt===void 0?[]:pt;if(!pe.checkStrictly){var Pr=Object(te.a)(Jt,!0,At);Jt=Pr.checkedKeys,at=Pr.halfCheckedKeys}qe.checkedKeys=Jt,qe.halfCheckedKeys=at}}return ge("loadedKeys")&&(qe.loadedKeys=pe.loadedKeys),qe}}]),Xt}(m.Component);q.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},q.TreeNode=C.a;var se=q,re=se,xe=n("RIqP"),Oe=n.n(xe),Me=n("J4zp"),Qe=n.n(Me),Ve=n("sEfC"),ut=n.n(Ve),Fe=n("vk+C"),ue=n.n(Fe),et=n("Vy0f"),he=n.n(et),J=n("kGiB"),Y=n.n(J),$=n("H84U"),de;(function(Gt){Gt[Gt.None=0]="None",Gt[Gt.Start=1]="Start",Gt[Gt.End=2]="End"})(de||(de={}));function be(Gt,Pt){function Xt(Ge){var pe=Ge.key,oe=Ge.children;Pt(pe,Ge)!==!1&&be(oe||[],Pt)}Gt.forEach(Xt)}function Ce(Gt){var Pt=Gt.treeData,Xt=Gt.expandedKeys,Ge=Gt.startKey,pe=Gt.endKey,oe=[],lt=de.None;if(Ge&&Ge===pe)return[Ge];if(!Ge||!pe)return[];function qe(ge){return ge===Ge||ge===pe}return be(Pt,function(ge){if(lt===de.End)return!1;if(qe(ge)){if(oe.push(ge),lt===de.None)lt=de.Start;else if(lt===de.Start)return lt=de.End,!1}else lt===de.Start&&oe.push(ge);return!(Xt.indexOf(ge)===-1)}),oe}function Be(Gt,Pt){var Xt=Oe()(Pt),Ge=[];return be(Gt,function(pe,oe){var lt=Xt.indexOf(pe);return lt!==-1&&(Ge.push(oe),Xt.splice(lt,1)),!!Xt.length}),Ge}var fe=function(Gt,Pt){var Xt={};for(var Ge in Gt)Object.prototype.hasOwnProperty.call(Gt,Ge)&&Pt.indexOf(Ge)<0&&(Xt[Ge]=Gt[Ge]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Ge=Object.getOwnPropertySymbols(Gt);pe<Ge.length;pe++)Pt.indexOf(Ge[pe])<0&&Object.prototype.propertyIsEnumerable.call(Gt,Ge[pe])&&(Xt[Ge[pe]]=Gt[Ge[pe]]);return Xt};function we(Gt){var Pt=Gt.isLeaf,Xt=Gt.expanded;return Pt?m.createElement(ue.a,null):Xt?m.createElement(he.a,null):m.createElement(Y.a,null)}function Re(Gt){var Pt=Gt.treeData,Xt=Gt.children;return Pt||Object(g.c)(Xt)}var rt=function(Pt,Xt){var Ge=Pt.defaultExpandAll,pe=Pt.defaultExpandParent,oe=Pt.defaultExpandedKeys,lt=fe(Pt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),qe=m.useRef(),ge=m.useRef(),Ht=m.createRef();m.useImperativeHandle(Xt,function(){return Ht.current});var vr=function(){var Et=Object(g.a)(Re(lt)),Yt=Et.keyEntities,Rr;return Ge?Rr=Object.keys(Yt):pe?Rr=Object(h.e)(lt.expandedKeys||oe,Yt):Rr=lt.expandedKeys||oe,Rr},At=m.useState(lt.selectedKeys||lt.defaultSelectedKeys||[]),ir=Qe()(At,2),lr=ir[0],dn=ir[1],Ft=m.useState(vr()),ur=Qe()(Ft,2),Jt=ur[0],pt=ur[1];m.useEffect(function(){"selectedKeys"in lt&&dn(lt.selectedKeys)},[lt.selectedKeys]),m.useEffect(function(){"expandedKeys"in lt&&pt(lt.expandedKeys)},[lt.expandedKeys]);var at=function(Et,Yt){var Rr=Yt.isLeaf;if(Rr||Et.shiftKey||Et.metaKey||Et.ctrlKey)return;Ht.current.onNodeExpand(Et,Yt)},Pr=ut()(at,200,{leading:!0}),un=function(Et,Yt){return"expandedKeys"in lt||pt(Et),lt.onExpand?lt.onExpand(Et,Yt):void 0},_n=function(Et,Yt){var Rr=lt.expandAction;Rr==="click"&&Pr(Et,Yt),lt.onClick&<.onClick(Et,Yt)},Xn=function(Et,Yt){var Rr=lt.expandAction;Rr==="doubleClick"&&Pr(Et,Yt),lt.onDoubleClick&<.onDoubleClick(Et,Yt)},xi=function(Et,Yt){var Rr=lt.multiple,zr=Yt.node,hn=Yt.nativeEvent,jt=zr.key,vt=jt===void 0?"":jt,bt=Re(lt),cr=v()(v()({},Yt),{selected:!0}),Qt=hn.ctrlKey||hn.metaKey,Mt=hn.shiftKey,tr;Rr&&Qt?(tr=Et,qe.current=vt,ge.current=tr,cr.selectedNodes=Be(bt,tr)):Rr&&Mt?(tr=Array.from(new Set([].concat(Oe()(ge.current||[]),Oe()(Ce({treeData:bt,expandedKeys:Jt,startKey:vt,endKey:qe.current}))))),cr.selectedNodes=Be(bt,tr)):(tr=[vt],qe.current=vt,ge.current=tr,cr.selectedNodes=Be(bt,tr)),lt.onSelect&<.onSelect(tr,cr),"selectedKeys"in lt||dn(tr)},Pn=m.useContext($.b),Un=Pn.getPrefixCls,$t=Pn.direction,xt=lt.prefixCls,De=lt.className,ke=fe(lt,["prefixCls","className"]),Pe=Un("tree",xt),tt=a()("".concat(Pe,"-directory"),De,f()({},"".concat(Pe,"-directory-rtl"),$t==="rtl"));return m.createElement(Kt,v()({icon:we,ref:Ht,blockNode:!0},ke,{prefixCls:Pe,className:tt,expandedKeys:Jt,selectedKeys:lr,onSelect:xi,onClick:_n,onDoubleClick:Xn,onExpand:un}))},St=m.forwardRef(rt);St.displayName="DirectoryTree",St.defaultProps={showIcon:!0,expandAction:"click"};var ft=St,He=n("EXcs"),er=n("2jpz"),ct=m.forwardRef(function(Gt,Pt){var Xt,Ge=m.useContext($.b),pe=Ge.getPrefixCls,oe=Ge.direction,lt=Ge.virtual,qe=Gt.prefixCls,ge=Gt.className,Ht=Gt.showIcon,vr=Gt.showLine,At=Gt.switcherIcon,ir=Gt.blockNode,lr=Gt.children,dn=Gt.checkable,Ft=v()(v()({},Gt),{showLine:Boolean(vr)}),ur=pe("tree",qe);return m.createElement(re,v()({itemHeight:20,ref:Pt,virtual:lt},Ft,{prefixCls:ur,className:a()(ge,(Xt={},f()(Xt,"".concat(ur,"-icon-hide"),!Ht),f()(Xt,"".concat(ur,"-block-node"),ir),f()(Xt,"".concat(ur,"-rtl"),oe==="rtl"),Xt)),checkable:dn&&m.createElement("span",{className:"".concat(ur,"-checkbox-inner")}),switcherIcon:function(pt){return Object(er.a)(ur,At,vr,pt)}}),lr)});ct.TreeNode=C.a,ct.DirectoryTree=ft,ct.defaultProps={checkable:!1,showIcon:!1,motion:v()(v()({},He.a),{motionAppear:!1}),blockNode:!1};var Kt=ct,fr=D.a=Kt},MKOG:function(R,D,n){var y=n("bYtY"),f=n("YH21"),x=f.Dispatcher,v=n("mLcG"),m=n("Bq2U"),p=function(s){s=s||{},this.stage=s.stage||{},this.onframe=s.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,x.call(this)};p.prototype={constructor:p,addClip:function(s){this._clips.push(s)},addAnimator:function(s){s.animation=this;for(var i=s.getClips(),t=0;t<i.length;t++)this.addClip(i[t])},removeClip:function(s){var i=y.indexOf(this._clips,s);i>=0&&this._clips.splice(i,1)},removeAnimator:function(s){for(var i=s.getClips(),t=0;t<i.length;t++)this.removeClip(i[t]);s.animation=null},_update:function(){for(var s=new Date().getTime()-this._pausedTime,i=s-this._time,t=this._clips,o=t.length,e=[],l=[],r=0;r<o;r++){var a=t[r],c=a.step(s,i);c&&(e.push(c),l.push(a))}for(var r=0;r<o;)t[r]._needsRemove?(t[r]=t[o-1],t.pop(),o--):r++;o=e.length;for(var r=0;r<o;r++)l[r].fire(e[r]);this._time=s,this.onframe(i),this.trigger("frame",i),this.stage.update&&this.stage.update()},_startLoop:function(){var s=this;this._running=!0;function i(){s._running&&(v(i),!s._paused&&s._update())}v(i)},start:function(){this._time=new Date().getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(s,i){i=i||{};var t=new m(s,i.loop,i.getter,i.setter);return this.addAnimator(t),t}},y.mixin(p,x);var d=p;R.exports=d},MMmD:function(R,D,n){var y=n("lSCD"),f=n("shjB");function x(v){return v!=null&&f(v.length)&&!y(v)}R.exports=x},MRoa:function(R,D,n){var y=n("ProS");n("0Bwj"),n("W2nI"),n("vcCh");var f=n("gawk"),x=n("Dg8C");y.registerLayout(f),y.registerVisual(x)},MT78:function(R,D,n){var y=n("ProS");(function(){for(var x in y){if(y==null||!y.hasOwnProperty(x)||x==="default"||x==="__esModule")return;D[x]=y[x]}})();var f=n("txkQ");(function(){for(var x in f){if(f==null||!f.hasOwnProperty(x)||x==="default"||x==="__esModule")return;D[x]=f[x]}})(),n("A1Ka"),n("75ce"),n("lLGD"),n("wDdD"),n("Fa/5"),n("jett"),n("Z1wy"),n("75ev"),n("2uGb"),n("I+77"),n("B+YJ"),n("pLH3"),n("CBdT"),n("MRoa"),n("+lIL"),n("CF2D"),n("ERHi"),n("p+If"),n("XOKv"),n("qt/9"),n("bBL8"),n("1xaR"),n("4Feb"),n("zRKj"),n("L3Oj"),n("0HBW"),n("LPzL"),n("8waO"),n("k5C7"),n("f1nB"),n("sRwP"),n("AH3D"),n("y4/Y"),n("LzGr"),n("Ynxi"),n("7pVf"),n("2w7y"),n("laiN"),n("fjKi"),n("C0tN"),n("0o9m"),n("Cm0C"),n("f3JH"),n("5NHt"),n("VFCP"),n("dBmv"),n("KamJ"),n("8XDt"),n("juDX")},MUZu:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("ZxNd")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="EditOutlined";var i=v.forwardRef(s);D.default=i},MXD1:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("Kvyg"),v=n.n(x)},MZdM:function(R,D,n){"use strict";function y(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(r){return typeof r}:y=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},y(e)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var f=u(n("Lo0S")),x=p(n("N/zr")),v=n("GdRQ"),m=n("GQ8N");function p(e){return e&&e.__esModule?e:{default:e}}function d(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return d=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(e===null||y(e)!=="object"&&typeof e!="function")return{default:e};var l=d();if(l&&l.has(e))return l.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c)){var h=a?Object.getOwnPropertyDescriptor(e,c):null;h&&(h.get||h.set)?Object.defineProperty(r,c,h):r[c]=e[c]}return r.default=e,l&&l.set(e,r),r}function s(e,l){if(!(e instanceof l))throw new TypeError("Cannot call a class as a function")}function i(e,l){for(var r=0;r<l.length;r++){var a=l[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function t(e,l,r){return l&&i(e.prototype,l),r&&i(e,r),e}var o=function(){function e(l){if(s(this,e),this._drawCtx=null,this._renderQ=[],this._flushing=!1,this._fbWidth=0,this._fbHeight=0,this._prevDrawStyle="",this._tile=null,this._tile16x16=null,this._tileX=0,this._tileY=0,f.Debug(">> Display.constructor"),this._target=l,!this._target)throw new Error("Target must be set");if(typeof this._target=="string")throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},f.Debug("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),f.Debug("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=function(){}}return t(e,[{key:"viewportChangePos",value:function(r,a){var c=this._viewportLoc;r=Math.floor(r),a=Math.floor(a),this._clipViewport||(r=-c.w,a=-c.h);var h=c.x+c.w-1,g=c.y+c.h-1;if(r<0&&c.x+r<0&&(r=-c.x),h+r>=this._fbWidth&&(r-=h+r-this._fbWidth+1),c.y+a<0&&(a=-c.y),g+a>=this._fbHeight&&(a-=g+a-this._fbHeight+1),r===0&&a===0)return;f.Debug("viewportChange deltaX: "+r+", deltaY: "+a),c.x+=r,c.y+=a,this._damage(c.x,c.y,c.w,c.h),this.flip()}},{key:"viewportChangeSize",value:function(r,a){(!this._clipViewport||typeof r=="undefined"||typeof a=="undefined")&&(f.Debug("Setting viewport to full display region"),r=this._fbWidth,a=this._fbHeight),r=Math.floor(r),a=Math.floor(a),r>this._fbWidth&&(r=this._fbWidth),a>this._fbHeight&&(a=this._fbHeight);var c=this._viewportLoc;if(c.w!==r||c.h!==a){c.w=r,c.h=a;var h=this._target;h.width=r,h.height=a,this.viewportChangePos(0,0),this._damage(c.x,c.y,c.w,c.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(r){return this._scale===0?0:(0,m.toSigned32bit)(r/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(r){return this._scale===0?0:(0,m.toSigned32bit)(r/this._scale+this._viewportLoc.y)}},{key:"resize",value:function(r,a){this._prevDrawStyle="",this._fbWidth=r,this._fbHeight=a;var c=this._backbuffer;if(c.width!==r||c.height!==a){var h=null;c.width>0&&c.height>0&&(h=this._drawCtx.getImageData(0,0,c.width,c.height)),c.width!==r&&(c.width=r),c.height!==a&&(c.height=a),h&&this._drawCtx.putImageData(h,0,0)}var g=this._viewportLoc;this.viewportChangeSize(g.w,g.h),this.viewportChangePos(0,0)}},{key:"_damage",value:function(r,a,c,h){r<this._damageBounds.left&&(this._damageBounds.left=r),a<this._damageBounds.top&&(this._damageBounds.top=a),r+c>this._damageBounds.right&&(this._damageBounds.right=r+c),a+h>this._damageBounds.bottom&&(this._damageBounds.bottom=a+h)}},{key:"flip",value:function(r){if(this._renderQ.length!==0&&!r)this._renderQPush({type:"flip"});else{var a=this._damageBounds.left,c=this._damageBounds.top,h=this._damageBounds.right-a,g=this._damageBounds.bottom-c,A=a-this._viewportLoc.x,b=c-this._viewportLoc.y;A<0&&(h+=A,a-=A,A=0),b<0&&(g+=b,c-=b,b=0),A+h>this._viewportLoc.w&&(h=this._viewportLoc.w-A),b+g>this._viewportLoc.h&&(g=this._viewportLoc.h-b),h>0&&g>0&&this._targetCtx.drawImage(this._backbuffer,a,c,h,g,A,b,h,g),this._damageBounds.left=this._damageBounds.top=65535,this._damageBounds.right=this._damageBounds.bottom=0}}},{key:"pending",value:function(){return this._renderQ.length>0}},{key:"flush",value:function(){this._renderQ.length===0?this.onflush():this._flushing=!0}},{key:"fillRect",value:function(r,a,c,h,g,A){this._renderQ.length!==0&&!A?this._renderQPush({type:"fill",x:r,y:a,width:c,height:h,color:g}):(this._setFillColor(g),this._drawCtx.fillRect(r,a,c,h),this._damage(r,a,c,h))}},{key:"copyImage",value:function(r,a,c,h,g,A,b){this._renderQ.length!==0&&!b?this._renderQPush({type:"copy",oldX:r,oldY:a,x:c,y:h,width:g,height:A}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,r,a,g,A,c,h,g,A),this._damage(c,h,g,A))}},{key:"imageRect",value:function(r,a,c,h,g,A){if(c===0||h===0)return;var b=new Image;b.src="data: "+g+";base64,"+x.default.encode(A),this._renderQPush({type:"img",img:b,x:r,y:a,width:c,height:h})}},{key:"startTile",value:function(r,a,c,h,g){this._tileX=r,this._tileY=a,c===16&&h===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(c,h);for(var A=g[2],b=g[1],S=g[0],E=this._tile.data,C=0;C<c*h*4;C+=4)E[C]=A,E[C+1]=b,E[C+2]=S,E[C+3]=255}},{key:"subTile",value:function(r,a,c,h,g){for(var A=g[2],b=g[1],S=g[0],E=r+c,C=a+h,_=this._tile.data,T=this._tile.width,w=a;w<C;w++)for(var O=r;O<E;O++){var I=(O+w*T)*4;_[I]=A,_[I+1]=b,_[I+2]=S,_[I+3]=255}}},{key:"finishTile",value:function(){this._drawCtx.putImageData(this._tile,this._tileX,this._tileY),this._damage(this._tileX,this._tileY,this._tile.width,this._tile.height)}},{key:"blitImage",value:function(r,a,c,h,g,A,b){if(this._renderQ.length!==0&&!b){var S=new Uint8Array(c*h*4);S.set(new Uint8Array(g.buffer,0,S.length)),this._renderQPush({type:"blit",data:S,x:r,y:a,width:c,height:h})}else this._bgrxImageData(r,a,c,h,g,A)}},{key:"blitRgbImage",value:function(r,a,c,h,g,A,b){if(this._renderQ.length!==0&&!b){var S=new Uint8Array(c*h*3);S.set(new Uint8Array(g.buffer,0,S.length)),this._renderQPush({type:"blitRgb",data:S,x:r,y:a,width:c,height:h})}else this._rgbImageData(r,a,c,h,g,A)}},{key:"blitRgbxImage",value:function(r,a,c,h,g,A,b){if(this._renderQ.length!==0&&!b){var S=new Uint8Array(c*h*4);S.set(new Uint8Array(g.buffer,0,S.length)),this._renderQPush({type:"blitRgbx",data:S,x:r,y:a,width:c,height:h})}else this._rgbxImageData(r,a,c,h,g,A)}},{key:"drawImage",value:function(r,a,c){this._drawCtx.drawImage(r,a,c),this._damage(a,c,r.width,r.height)}},{key:"autoscale",value:function(r,a){var c;if(r===0||a===0)c=0;else{var h=this._viewportLoc,g=r/a,A=h.w/h.h;A>=g?c=r/h.w:c=a/h.h}this._rescale(c)}},{key:"_rescale",value:function(r){this._scale=r;var a=this._viewportLoc,c=r*a.w+"px",h=r*a.h+"px";(this._target.style.width!==c||this._target.style.height!==h)&&(this._target.style.width=c,this._target.style.height=h)}},{key:"_setFillColor",value:function(r){var a="rgb("+r[2]+","+r[1]+","+r[0]+")";a!==this._prevDrawStyle&&(this._drawCtx.fillStyle=a,this._prevDrawStyle=a)}},{key:"_rgbImageData",value:function(r,a,c,h,g,A){for(var b=this._drawCtx.createImageData(c,h),S=b.data,E=0,C=A;E<c*h*4;E+=4,C+=3)S[E]=g[C],S[E+1]=g[C+1],S[E+2]=g[C+2],S[E+3]=255;this._drawCtx.putImageData(b,r,a),this._damage(r,a,b.width,b.height)}},{key:"_bgrxImageData",value:function(r,a,c,h,g,A){for(var b=this._drawCtx.createImageData(c,h),S=b.data,E=0,C=A;E<c*h*4;E+=4,C+=4)S[E]=g[C+2],S[E+1]=g[C+1],S[E+2]=g[C],S[E+3]=255;this._drawCtx.putImageData(b,r,a),this._damage(r,a,b.width,b.height)}},{key:"_rgbxImageData",value:function(r,a,c,h,g,A){var b;v.supportsImageMetadata?b=new ImageData(new Uint8ClampedArray(g.buffer,g.byteOffset,c*h*4),c,h):(b=this._drawCtx.createImageData(c,h),b.data.set(new Uint8ClampedArray(g.buffer,g.byteOffset,c*h*4))),this._drawCtx.putImageData(b,r,a),this._damage(r,a,b.width,b.height)}},{key:"_renderQPush",value:function(r){this._renderQ.push(r),this._renderQ.length===1&&this._scanRenderQ()}},{key:"_resumeRenderQ",value:function(){this.removeEventListener("load",this._noVNCDisplay._resumeRenderQ),this._noVNCDisplay._scanRenderQ()}},{key:"_scanRenderQ",value:function(){for(var r=!0;r&&this._renderQ.length>0;){var 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){f.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),r=!1;break}r&&this._renderQ.shift()}this._renderQ.length===0&&this._flushing&&(this._flushing=!1,this.onflush())}},{key:"scale",get:function(){return this._scale},set:function(r){this._rescale(r)}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(r){this._clipViewport=r;var 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}();D.default=o},Mdki:function(R,D,n){var y=n("bYtY"),f=y.each,x="\0__link_datas",v="\0__link_mainData";function m(l){var r=l.mainData,a=l.datas;a||(a={main:r},l.datasAttr={main:"data"}),l.datas=l.mainData=null,t(r,a,l),f(a,function(c){f(r.TRANSFERABLE_METHODS,function(h){c.wrapMethod(h,y.curry(p,l))})}),r.wrapMethod("cloneShallow",y.curry(u,l)),f(r.CHANGABLE_METHODS,function(c){r.wrapMethod(c,y.curry(d,l))}),y.assert(a[r.dataType]===r)}function p(l,r){if(i(this)){var a=y.extend({},this[x]);a[this.dataType]=r,t(r,a,l)}else o(r,this.dataType,this[v],l);return r}function d(l,r){return l.struct&&l.struct.update(this),r}function u(l,r){return f(r[x],function(a,c){a!==r&&o(a.cloneShallow(),c,r,l)}),r}function s(l){var r=this[v];return l==null||r==null?r:r[x][l]}function i(l){return l[v]===l}function t(l,r,a){l[x]={},f(r,function(c,h){o(c,h,l,a)})}function o(l,r,a,c){a[x][r]=l,l[v]=a,l.dataType=r,c.struct&&(l[c.structAttr]=c.struct,c.struct[c.datasAttr[r]]=l),l.getLinkedData=s}var e=m;R.exports=e},Mds0:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("8IMR")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="StarFilled";var i=v.forwardRef(s);D.default=i},Mgri:function(R,D,n){for(var y=n("bYtY"),f=n("8nly"),x=[126,25],v=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],m=0;m<v.length;m++)for(var p=0;p<v[m].length;p++)v[m][p][0]/=10.5,v[m][p][1]/=-10.5/.75,v[m][p][0]+=x[0],v[m][p][1]+=x[1];function d(u,s){u==="china"&&s.push(new f("\u5357\u6D77\u8BF8\u5C9B",y.map(v,function(i){return{type:"polygon",exterior:i}}),x))}R.exports=d},MlIO:function(R,D,n){(function(y,f){R.exports=D=f(n("Ib8C"))})(this,function(y){return function(f){var x=y,v=x.lib,m=v.Base,p=v.WordArray,d=x.x64={},u=d.Word=m.extend({init:function(t,o){this.high=t,this.low=o}}),s=d.WordArray=m.extend({init:function(t,o){t=this.words=t||[],o!=f?this.sigBytes=o:this.sigBytes=t.length*8},toX32:function(){for(var t=this.words,o=t.length,e=[],l=0;l<o;l++){var r=t[l];e.push(r.high),e.push(r.low)}return p.create(e,this.sigBytes)},clone:function(){for(var t=m.clone.call(this),o=t.words=this.words.slice(0),e=o.length,l=0;l<e;l++)o[l]=o[l].clone();return t}})}(),y})},Mmt2:function(R,D,n){"use strict";function y(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(e){return typeof e}:y=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(t)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var f=v(n("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return x=function(){return t},t}function v(t){if(t&&t.__esModule)return t;if(t===null||y(t)!=="object"&&typeof t!="function")return{default:t};var o=x();if(o&&o.has(t))return o.get(t);var e={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=l?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(e,r,a):e[r]=t[r]}return e.default=t,o&&o.set(t,e),e}function m(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function p(t,o){for(var e=0;e<o.length;e++){var l=o[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}function d(t,o,e){return o&&p(t.prototype,o),e&&p(t,e),t}var u=!1,s=40*1024*1024,i=function(){function t(){m(this,t),this._websocket=null,this._rQi=0,this._rQlen=0,this._rQbufferSize=1024*1024*4,this._rQ=null,this._sQbufferSize=1024*10,this._sQlen=0,this._sQ=null,this._eventHandlers={message:function(){},open:function(){},close:function(){},error:function(){}}}return d(t,[{key:"rQpeek8",value:function(){return this._rQ[this._rQi]}},{key:"rQskipBytes",value:function(e){this._rQi+=e}},{key:"rQshift8",value:function(){return this._rQshift(1)}},{key:"rQshift16",value:function(){return this._rQshift(2)}},{key:"rQshift32",value:function(){return this._rQshift(4)}},{key:"_rQshift",value:function(e){for(var l=0,r=e-1;r>=0;r--)l+=this._rQ[this._rQi++]<<r*8;return l}},{key:"rQshiftStr",value:function(e){typeof e=="undefined"&&(e=this.rQlen);for(var l="",r=0;r<e;r+=4096){var a=this.rQshiftBytes(Math.min(4096,e-r));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,r){if(this.rQlen<l){if(r){if(this._rQi<r)throw new Error("rQwait cannot backup "+r+" bytes");this._rQi-=r}return!0}return!1}},{key:"flush",value:function(){this._sQlen>0&&this._websocket.readyState===WebSocket.OPEN&&(this._websocket.send(this._encodeMessage()),this._sQlen=0)}},{key:"send",value:function(e){this._sQ.set(e,this._sQlen),this._sQlen+=e.length,this.flush()}},{key:"sendString",value:function(e){this.send(e.split("").map(function(l){return l.charCodeAt(0)}))}},{key:"off",value:function(e){this._eventHandlers[e]=function(){}}},{key:"on",value:function(e,l){this._eventHandlers[e]=l}},{key:"_allocateBuffers",value:function(){this._rQ=new Uint8Array(this._rQbufferSize),this._sQ=new Uint8Array(this._sQbufferSize)}},{key:"init",value:function(){this._allocateBuffers(),this._rQi=0,this._websocket=null}},{key:"open",value:function(e,l){var r=this;this.init(),this._websocket=new WebSocket(e,l),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=function(){f.Debug(">> WebSock.onopen"),r._websocket.protocol&&f.Info("Server choose sub-protocol: "+r._websocket.protocol),r._eventHandlers.open(),f.Debug("<< WebSock.onopen")},this._websocket.onclose=function(a){f.Debug(">> WebSock.onclose"),r._eventHandlers.close(a),f.Debug("<< WebSock.onclose")},this._websocket.onerror=function(a){f.Debug(">> WebSock.onerror: "+a),r._eventHandlers.error(a),f.Debug("<< WebSock.onerror: "+a)}}},{key:"close",value:function(){this._websocket&&((this._websocket.readyState===WebSocket.OPEN||this._websocket.readyState===WebSocket.CONNECTING)&&(f.Info("Closing WebSocket connection"),this._websocket.close()),this._websocket.onmessage=function(){})}},{key:"_encodeMessage",value:function(){return new Uint8Array(this._sQ.buffer,0,this._sQlen)}},{key:"_expandCompactRQ",value:function(e){var l=(this._rQlen-this._rQi+e)*8,r=this._rQbufferSize<l;if(r&&(this._rQbufferSize=Math.max(this._rQbufferSize*2,l)),this._rQbufferSize>s&&(this._rQbufferSize=s,this._rQbufferSize-this.rQlen<e))throw new Error("Receive Queue buffer exceeded "+s+" bytes, and the new message could not fit");if(r){var a=this._rQ.buffer;this._rQ=new Uint8Array(this._rQbufferSize),this._rQ.set(new Uint8Array(a,this._rQi,this._rQlen-this._rQi))}else u?this._rQ.copyWithin(0,this._rQi,this._rQlen):this._rQ.set(new Uint8Array(this._rQ.buffer,this._rQi,this._rQlen-this._rQi));this._rQlen=this._rQlen-this._rQi,this._rQi=0}},{key:"_DecodeMessage",value:function(e){var l=new Uint8Array(e);l.length>this._rQbufferSize-this._rQlen&&this._expandCompactRQ(l.length),this._rQ.set(l,this._rQlen),this._rQlen+=l.length}},{key:"_recvMessage",value:function(e){this._DecodeMessage(e.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):f.Debug("Ignoring empty message")}},{key:"sQ",get:function(){return this._sQ}},{key:"rQ",get:function(){return this._rQ}},{key:"rQi",get:function(){return this._rQi},set:function(e){this._rQi=e}},{key:"rQlen",get:function(){return this._rQlen-this._rQi}}]),t}();D.default=i},MqEG:function(R,D,n){var y=n("bYtY"),f=n("fc+c"),x=n("72pK"),v=n("VXYp"),m=y.bind,p=f.extend({type:"dataZoom.inside",init:function(t,o){this._range},render:function(t,o,e,l){p.superApply(this,"render",arguments),this._range=t.getPercentRange(),y.each(this.getTargetCoordInfo(),function(r,a){var c=y.map(r,function(h){return v.generateCoordId(h.model)});y.each(r,function(h){var g=h.model,A={};y.each(["pan","zoom","scrollMove"],function(b){A[b]=m(d[b],this,h,a)},this),v.register(e,{coordId:v.generateCoordId(g),allCoordIds:c,containsPoint:function(b,S,E){return g.coordinateSystem.containPoint([S,E])},dataZoomId:t.id,dataZoomModel:t,getRange:A})},this)},this)},dispose:function(){v.unregister(this.api,this.dataZoomModel.id),p.superApply(this,"dispose",arguments),this._range=null}}),d={zoom:function(t,o,e,l){var r=this._range,a=r.slice(),c=t.axisModels[0];if(!c)return;var h=s[o](null,[l.originX,l.originY],c,e,t),g=(h.signal>0?h.pixelStart+h.pixelLength-h.pixel:h.pixel-h.pixelStart)/h.pixelLength*(a[1]-a[0])+a[0],A=Math.max(1/l.scale,0);a[0]=(a[0]-g)*A+g,a[1]=(a[1]-g)*A+g;var b=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(x(0,a,[0,100],0,b.minSpan,b.maxSpan),this._range=a,r[0]!==a[0]||r[1]!==a[1])return a},pan:u(function(t,o,e,l,r,a){var c=s[l]([a.oldX,a.oldY],[a.newX,a.newY],o,r,e);return c.signal*(t[1]-t[0])*c.pixel/c.pixelLength}),scrollMove:u(function(t,o,e,l,r,a){var c=s[l]([0,0],[a.scrollDelta,a.scrollDelta],o,r,e);return c.signal*(t[1]-t[0])*a.scrollDelta})};function u(t){return function(o,e,l,r){var a=this._range,c=a.slice(),h=o.axisModels[0];if(!h)return;var g=t(c,h,o,e,l,r);if(x(g,c,[0,100],"all"),this._range=c,a[0]!==c[0]||a[1]!==c[1])return c}}var s={grid:function(t,o,e,l,r){var a=e.axis,c={},h=r.model.coordinateSystem.getRect();return t=t||[0,0],a.dim==="x"?(c.pixel=o[0]-t[0],c.pixelLength=h.width,c.pixelStart=h.x,c.signal=a.inverse?1:-1):(c.pixel=o[1]-t[1],c.pixelLength=h.height,c.pixelStart=h.y,c.signal=a.inverse?-1:1),c},polar:function(t,o,e,l,r){var a=e.axis,c={},h=r.model.coordinateSystem,g=h.getRadiusAxis().getExtent(),A=h.getAngleAxis().getExtent();return t=t?h.pointToCoord(t):[0,0],o=h.pointToCoord(o),e.mainType==="radiusAxis"?(c.pixel=o[0]-t[0],c.pixelLength=g[1]-g[0],c.pixelStart=g[0],c.signal=a.inverse?1:-1):(c.pixel=o[1]-t[1],c.pixelLength=A[1]-A[0],c.pixelStart=A[0],c.signal=a.inverse?-1:1),c},singleAxis:function(t,o,e,l,r){var a=e.axis,c=r.model.coordinateSystem.getRect(),h={};return t=t||[0,0],a.orient==="horizontal"?(h.pixel=o[0]-t[0],h.pixelLength=c.width,h.pixelStart=c.x,h.signal=a.inverse?1:-1):(h.pixel=o[1]-t[1],h.pixelLength=c.height,h.pixelStart=c.y,h.signal=a.inverse?-1:1),h}},i=p;R.exports=i},MvSz:function(R,D,n){var y=n("LXxW"),f=n("0ycA"),x=Object.prototype,v=x.propertyIsEnumerable,m=Object.getOwnPropertySymbols,p=m?function(d){return d==null?[]:(d=Object(d),y(m(d),function(u){return v.call(d,u)}))}:f;R.exports=p},MwEJ:function(R,D,n){var y=n("bYtY"),f=n("YXkt"),x=n("sdST"),v=n("k9D9"),m=v.SOURCE_FORMAT_ORIGINAL,p=n("L0Ub"),d=p.getDimensionTypeByAxis,u=n("4NO4"),s=u.getDataItemValue,i=n("IDmD"),t=n("i38C"),o=t.getCoordSysInfoBySeries,e=n("7G+c"),l=n("7hqr"),r=l.enableDataStack,a=n("D5nY"),c=a.makeSeriesEncodeForAxisCoordSys;function h(S,E,C){C=C||{},e.isInstance(S)||(S=e.seriesDataToSource(S));var _=E.get("coordinateSystem"),T=i.get(_),w=o(E),O;w&&(O=y.map(w.coordSysDims,function(F){var U={name:F},K=w.axisMap.get(F);if(K){var z=K.get("type");U.type=d(z)}return U})),O||(O=T&&(T.getDimensionsInfo?T.getDimensionsInfo():T.dimensions.slice())||["x","y"]);var I=x(S,{coordDimensions:O,generateCoord:C.generateCoord,encodeDefaulter:C.useEncodeDefaulter?y.curry(c,O,E):null}),k,M;w&&y.each(I,function(F,U){var K=F.coordDim,z=w.categoryAxisMap.get(K);z&&(k==null&&(k=U),F.ordinalMeta=z.getOrdinalMeta()),F.otherDims.itemName!=null&&(M=!0)}),!M&&k!=null&&(I[k].otherDims.itemName=0);var j=r(E,I),P=new f(I,E);P.setCalculationInfo(j);var X=k!=null&&g(S)?function(F,U,K,z){return z===k?K:this.defaultDimValueGetter(F,U,K,z)}:null;return P.hasItemOption=!1,P.initData(S,null,X),P}function g(S){if(S.sourceFormat===m){var E=A(S.data||[]);return E!=null&&!y.isArray(s(E))}}function A(S){for(var E=0;E<S.length&&S[E]==null;)E++;return S[E]}var b=h;R.exports=b},Mylv:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("IwbS"),v=n("oVpE"),m=v.createSymbol,p=n("OELB"),d=p.parsePercent,u=p.isNumeric,s=n("56rv"),i=s.setLabel,t=["itemStyle","borderWidth"],o=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],e=new x.Circle,l=y.extendChartView({type:"pictorialBar",render:function(V,Q,G){var te=this.group,q=V.getData(),se=this._data,re=V.coordinateSystem,xe=re.getBaseAxis(),Oe=!!xe.isHorizontal(),Me=re.grid.getRect(),Qe={ecSize:{width:G.getWidth(),height:G.getHeight()},seriesModel:V,coordSys:re,coordSysExtent:[[Me.x,Me.x+Me.width],[Me.y,Me.y+Me.height]],isHorizontal:Oe,valueDim:o[+Oe],categoryDim:o[1-Oe]};return q.diff(se).add(function(Ve){if(!q.hasValue(Ve))return;var ut=T(q,Ve),Fe=r(q,Ve,ut,Qe),ue=k(q,Qe,Fe);q.setItemGraphicEl(Ve,ue),te.add(ue),U(ue,Qe,Fe)}).update(function(Ve,ut){var Fe=se.getItemGraphicEl(ut);if(!q.hasValue(Ve)){te.remove(Fe);return}var ue=T(q,Ve),et=r(q,Ve,ue,Qe),he=P(q,et);Fe&&he!==Fe.__pictorialShapeStr&&(te.remove(Fe),q.setItemGraphicEl(Ve,null),Fe=null),Fe?M(Fe,Qe,et):Fe=k(q,Qe,et,!0),q.setItemGraphicEl(Ve,Fe),Fe.__pictorialSymbolMeta=et,te.add(Fe),U(Fe,Qe,et)}).remove(function(Ve){var ut=se.getItemGraphicEl(Ve);ut&&j(se,Ve,ut.__pictorialSymbolMeta.animationModel,ut)}).execute(),this._data=q,this.group},dispose:f.noop,remove:function(V,Q){var G=this.group,te=this._data;V.get("animation")?te&&te.eachItemGraphicEl(function(q){j(te,q.dataIndex,V,q)}):G.removeAll()}});function r(V,Q,G,te){var q=V.getItemLayout(Q),se=G.get("symbolRepeat"),re=G.get("symbolClip"),xe=G.get("symbolPosition")||"start",Oe=G.get("symbolRotate"),Me=(Oe||0)*Math.PI/180||0,Qe=G.get("symbolPatternSize")||2,Ve=G.isAnimationEnabled(),ut={dataIndex:Q,layout:q,itemModel:G,symbolType:V.getItemVisual(Q,"symbol")||"circle",color:V.getItemVisual(Q,"color"),symbolClip:re,symbolRepeat:se,symbolRepeatDirection:G.get("symbolRepeatDirection"),symbolPatternSize:Qe,rotation:Me,animationModel:Ve?G:null,hoverAnimation:Ve&&G.get("hoverAnimation"),z2:G.getShallow("z",!0)||0};a(G,se,q,te,ut),h(V,Q,q,se,re,ut.boundingLength,ut.pxSign,Qe,te,ut),g(G,ut.symbolScale,Me,te,ut);var Fe=ut.symbolSize,ue=G.get("symbolOffset");return f.isArray(ue)&&(ue=[d(ue[0],Fe[0]),d(ue[1],Fe[1])]),A(G,Fe,q,se,re,ue,xe,ut.valueLineWidth,ut.boundingLength,ut.repeatCutLength,te,ut),ut}function a(V,Q,G,te,q){var se=te.valueDim,re=V.get("symbolBoundingData"),xe=te.coordSys.getOtherAxis(te.coordSys.getBaseAxis()),Oe=xe.toGlobalCoord(xe.dataToCoord(0)),Me=1-+(G[se.wh]<=0),Qe;if(f.isArray(re)){var Ve=[c(xe,re[0])-Oe,c(xe,re[1])-Oe];Ve[1]<Ve[0]&&Ve.reverse(),Qe=Ve[Me]}else re!=null?Qe=c(xe,re)-Oe:Q?Qe=te.coordSysExtent[se.index][Me]-Oe:Qe=G[se.wh];q.boundingLength=Qe,Q&&(q.repeatCutLength=G[se.wh]),q.pxSign=Qe>0?1:Qe<0?-1:0}function c(V,Q){return V.toGlobalCoord(V.dataToCoord(V.scale.parse(Q)))}function h(V,Q,G,te,q,se,re,xe,Oe,Me){var Qe=Oe.valueDim,Ve=Oe.categoryDim,ut=Math.abs(G[Ve.wh]),Fe=V.getItemVisual(Q,"symbolSize");f.isArray(Fe)?Fe=Fe.slice():(Fe==null&&(Fe="100%"),Fe=[Fe,Fe]),Fe[Ve.index]=d(Fe[Ve.index],ut),Fe[Qe.index]=d(Fe[Qe.index],te?ut:Math.abs(se)),Me.symbolSize=Fe;var ue=Me.symbolScale=[Fe[0]/xe,Fe[1]/xe];ue[Qe.index]*=(Oe.isHorizontal?-1:1)*re}function g(V,Q,G,te,q){var se=V.get(t)||0;se&&(e.attr({scale:Q.slice(),rotation:G}),e.updateTransform(),se/=e.getLineScale(),se*=Q[te.valueDim.index]),q.valueLineWidth=se}function A(V,Q,G,te,q,se,re,xe,Oe,Me,Qe,Ve){var ut=Qe.categoryDim,Fe=Qe.valueDim,ue=Ve.pxSign,et=Math.max(Q[Fe.index]+xe,0),he=et;if(te){var J=Math.abs(Oe),Y=f.retrieve(V.get("symbolMargin"),"15%")+"",$=!1;Y.lastIndexOf("!")===Y.length-1&&($=!0,Y=Y.slice(0,Y.length-1)),Y=d(Y,Q[Fe.index]);var de=Math.max(et+Y*2,0),be=$?0:Y*2,Ce=u(te),Be=Ce?te:K((J+be)/de),fe=J-Be*et;Y=fe/2/($?Be:Be-1),de=et+Y*2,be=$?0:Y*2,!Ce&&te!=="fixed"&&(Be=Me?K((Math.abs(Me)+be)/de):0),he=Be*de-be,Ve.repeatTimes=Be,Ve.symbolMargin=Y}var we=ue*(he/2),Re=Ve.pathPosition=[];Re[ut.index]=G[ut.wh]/2,Re[Fe.index]=re==="start"?we:re==="end"?Oe-we:Oe/2,se&&(Re[0]+=se[0],Re[1]+=se[1]);var rt=Ve.bundlePosition=[];rt[ut.index]=G[ut.xy],rt[Fe.index]=G[Fe.xy];var St=Ve.barRectShape=f.extend({},G);St[Fe.wh]=ue*Math.max(Math.abs(G[Fe.wh]),Math.abs(Re[Fe.index]+we)),St[ut.wh]=G[ut.wh];var ft=Ve.clipShape={};ft[ut.xy]=-G[ut.xy],ft[ut.wh]=Qe.ecSize[ut.wh],ft[Fe.xy]=0,ft[Fe.wh]=G[Fe.wh]}function b(V){var Q=V.symbolPatternSize,G=m(V.symbolType,-Q/2,-Q/2,Q,Q,V.color);return G.attr({culling:!0}),G.type!=="image"&&G.setStyle({strokeNoScale:!0}),G}function S(V,Q,G,te){var q=V.__pictorialBundle,se=G.symbolSize,re=G.valueLineWidth,xe=G.pathPosition,Oe=Q.valueDim,Me=G.repeatTimes||0,Qe=0,Ve=se[Q.valueDim.index]+re+G.symbolMargin*2;for(X(V,function(J){J.__pictorialAnimationIndex=Qe,J.__pictorialRepeatTimes=Me,Qe<Me?F(J,null,ue(Qe),G,te):F(J,null,{scale:[0,0]},G,te,function(){q.remove(J)}),I(J,G),Qe++});Qe<Me;Qe++){var ut=b(G);ut.__pictorialAnimationIndex=Qe,ut.__pictorialRepeatTimes=Me,q.add(ut);var Fe=ue(Qe);F(ut,{position:Fe.position,scale:[0,0]},{scale:Fe.scale,rotation:Fe.rotation},G,te),ut.on("mouseover",et).on("mouseout",he),I(ut,G)}function ue(J){var Y=xe.slice(),$=G.pxSign,de=J;return(G.symbolRepeatDirection==="start"?$>0:$<0)&&(de=Me-1-J),Y[Oe.index]=Ve*(de-Me/2+.5)+xe[Oe.index],{position:Y,scale:G.symbolScale.slice(),rotation:G.rotation}}function et(){X(V,function(J){J.trigger("emphasis")})}function he(){X(V,function(J){J.trigger("normal")})}}function E(V,Q,G,te){var q=V.__pictorialBundle,se=V.__pictorialMainPath;se?F(se,null,{position:G.pathPosition.slice(),scale:G.symbolScale.slice(),rotation:G.rotation},G,te):(se=V.__pictorialMainPath=b(G),q.add(se),F(se,{position:G.pathPosition.slice(),scale:[0,0],rotation:G.rotation},{scale:G.symbolScale.slice()},G,te),se.on("mouseover",re).on("mouseout",xe)),I(se,G);function re(){this.trigger("emphasis")}function xe(){this.trigger("normal")}}function C(V,Q,G){var te=f.extend({},Q.barRectShape),q=V.__pictorialBarRect;q?F(q,null,{shape:te},Q,G):(q=V.__pictorialBarRect=new x.Rect({z2:2,shape:te,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),V.add(q))}function _(V,Q,G,te){if(G.symbolClip){var q=V.__pictorialClipPath,se=f.extend({},G.clipShape),re=Q.valueDim,xe=G.animationModel,Oe=G.dataIndex;if(q)x.updateProps(q,{shape:se},xe,Oe);else{se[re.wh]=0,q=new x.Rect({shape:se}),V.__pictorialBundle.setClipPath(q),V.__pictorialClipPath=q;var Me={};Me[re.wh]=G.clipShape[re.wh],x[te?"updateProps":"initProps"](q,{shape:Me},xe,Oe)}}}function T(V,Q){var G=V.getItemModel(Q);return G.getAnimationDelayParams=w,G.isAnimationEnabled=O,G}function w(V){return{index:V.__pictorialAnimationIndex,count:V.__pictorialRepeatTimes}}function O(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function I(V,Q){V.off("emphasis").off("normal");var G=Q.symbolScale.slice();Q.hoverAnimation&&V.on("emphasis",function(){this.animateTo({scale:[G[0]*1.1,G[1]*1.1]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:G.slice()},400,"elasticOut")})}function k(V,Q,G,te){var q=new x.Group,se=new x.Group;return q.add(se),q.__pictorialBundle=se,se.attr("position",G.bundlePosition.slice()),G.symbolRepeat?S(q,Q,G):E(q,Q,G),C(q,G,te),_(q,Q,G,te),q.__pictorialShapeStr=P(V,G),q.__pictorialSymbolMeta=G,q}function M(V,Q,G){var te=G.animationModel,q=G.dataIndex,se=V.__pictorialBundle;x.updateProps(se,{position:G.bundlePosition.slice()},te,q),G.symbolRepeat?S(V,Q,G,!0):E(V,Q,G,!0),C(V,G,!0),_(V,Q,G,!0)}function j(V,Q,G,te){var q=te.__pictorialBarRect;q&&(q.style.text=null);var se=[];X(te,function(re){se.push(re)}),te.__pictorialMainPath&&se.push(te.__pictorialMainPath),te.__pictorialClipPath&&(G=null),f.each(se,function(re){x.updateProps(re,{scale:[0,0]},G,Q,function(){te.parent&&te.parent.remove(te)})}),V.setItemGraphicEl(Q,null)}function P(V,Q){return[V.getItemVisual(Q.dataIndex,"symbol")||"none",!!Q.symbolRepeat,!!Q.symbolClip].join(":")}function X(V,Q,G){f.each(V.__pictorialBundle.children(),function(te){te!==V.__pictorialBarRect&&Q.call(G,te)})}function F(V,Q,G,te,q,se){Q&&V.attr(Q),te.symbolClip&&!q?G&&V.attr(G):G&&x[q?"updateProps":"initProps"](V,G,te.animationModel,te.dataIndex,se)}function U(V,Q,G){var te=G.color,q=G.dataIndex,se=G.itemModel,re=se.getModel("itemStyle").getItemStyle(["color"]),xe=se.getModel("emphasis.itemStyle").getItemStyle(),Oe=se.getShallow("cursor");X(V,function(ut){ut.setColor(te),ut.setStyle(f.defaults({fill:te,opacity:G.opacity},re)),x.setHoverStyle(ut,xe),Oe&&(ut.cursor=Oe),ut.z2=G.z2});var Me={},Qe=Q.valueDim.posDesc[+(G.boundingLength>0)],Ve=V.__pictorialBarRect;i(Ve.style,Me,se,te,Q.seriesModel,q,Qe),x.setHoverStyle(Ve,Me)}function K(V){var Q=Math.round(V);return Math.abs(V-Q)<1e-4?Q:Math.ceil(V)}var z=l;R.exports=z},"N/zr":function(R,D,n){"use strict";function y(p){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(u){return typeof u}:y=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},y(p)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var f=v(n("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var p=new WeakMap;return x=function(){return p},p}function v(p){if(p&&p.__esModule)return p;if(p===null||y(p)!=="object"&&typeof p!="function")return{default:p};var d=x();if(d&&d.has(p))return d.get(p);var u={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in p)if(Object.prototype.hasOwnProperty.call(p,i)){var t=s?Object.getOwnPropertyDescriptor(p,i):null;t&&(t.get||t.set)?Object.defineProperty(u,i,t):u[i]=p[i]}return u.default=p,d&&d.set(p,u),u}var m={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(d){"use strict";for(var u="",s=d.length,i=s%3,t=0;t<s-2;t+=3)u+=this.toBase64Table[d[t]>>2],u+=this.toBase64Table[((d[t]&3)<<4)+(d[t+1]>>4)],u+=this.toBase64Table[((d[t+1]&15)<<2)+(d[t+2]>>6)],u+=this.toBase64Table[d[t+2]&63];var o=s-i;return i===2?(u+=this.toBase64Table[d[o]>>2],u+=this.toBase64Table[((d[o]&3)<<4)+(d[o+1]>>4)],u+=this.toBase64Table[(d[o+1]&15)<<2],u+=this.toBase64Table[64]):i===1&&(u+=this.toBase64Table[d[o]>>2],u+=this.toBase64Table[(d[o]&3)<<4],u+=this.toBase64Table[64],u+=this.toBase64Table[64]),u},toBinaryTable:[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1],decode:function(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=d.indexOf("=")-u;s<0&&(s=d.length-u);for(var i=(s>>2)*3+Math.floor(s%4/1.5),t=new Array(i),o=0,e=0,l=0,r=u;r<d.length;r++){var a=this.toBinaryTable[d.charCodeAt(r)&127],c=d.charAt(r)===this.base64Pad;if(a===-1){f.Error("Illegal character code "+d.charCodeAt(r)+" at position "+r);continue}e=e<<6|a,o+=6,o>=8&&(o-=8,c||(t[l++]=e>>o&255),e&=(1<<o)-1)}if(o){var h=new Error("Corrupted base64 string");throw h.name="Base64-Error",h}return t}};D.default=m},N5BQ:function(R,D,n){var y=n("OlYY"),f=y.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),x=f;R.exports=x},NA0q:function(R,D,n){var y=n("bYtY"),f=n("6Ic6"),x=n("TkdX"),v=n("gPAo"),m=n("7aKB"),p=m.windowOpen,d="sunburstRootToNode",u=f.extend({type:"sunburst",init:function(){},render:function(i,t,o,e){var l=this;this.seriesModel=i,this.api=o,this.ecModel=t;var r=i.getData(),a=r.tree.root,c=i.getViewRoot(),h=this.group,g=i.get("renderLabelForZeroData"),A=[];c.eachNode(function(O){A.push(O)});var b=this._oldChildren||[];if(C(A,b),w(a,c),e&&e.highlight&&e.highlight.piece){var S=i.getShallow("highlightPolicy");e.highlight.piece.onEmphasis(S)}else if(e&&e.unhighlight){var E=this.virtualPiece;!E&&a.children.length&&(E=a.children[0].piece),E&&E.onNormal()}this._initEvents(),this._oldChildren=A;function C(O,I){if(O.length===0&&I.length===0)return;new v(I,O,k,k).add(M).update(M).remove(y.curry(M,null)).execute();function k(j){return j.getId()}function M(j,P){var X=j==null?null:O[j],F=P==null?null:I[P];_(X,F)}}function _(O,I){if(!g&&O&&!O.getValue()&&(O=null),O!==a&&I!==a){if(I&&I.piece)O?(I.piece.updateData(!1,O,"normal",i,t),r.setItemGraphicEl(O.dataIndex,I.piece)):T(I);else if(O){var k=new x(O,i,t);h.add(k),r.setItemGraphicEl(O.dataIndex,k)}}}function T(O){if(!O)return;O.piece&&(h.remove(O.piece),O.piece=null)}function w(O,I){if(I.depth>0){l.virtualPiece?l.virtualPiece.updateData(!1,O,"normal",i,t):(l.virtualPiece=new x(O,i,t),h.add(l.virtualPiece)),I.piece._onclickEvent&&I.piece.off("click",I.piece._onclickEvent);var k=function(M){l._rootToNode(I.parentNode)};I.piece._onclickEvent=k,l.virtualPiece.on("click",k)}else l.virtualPiece&&(h.remove(l.virtualPiece),l.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var i=this,t=function(o){var e=!1,l=i.seriesModel.getViewRoot();l.eachNode(function(r){if(!e&&r.piece&&r.piece.childAt(0)===o.target){var a=r.getModel().get("nodeClick");if(a==="rootToNode")i._rootToNode(r);else if(a==="link"){var c=r.getModel(),h=c.get("link");if(h){var g=c.get("target",!0)||"_blank";p(h,g)}}e=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",t),this.group._onclickEvent=t},_rootToNode:function(i){i!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:d,from:this.uid,seriesId:this.seriesModel.id,targetNode:i})},containPoint:function(i,t){var o=t.getData(),e=o.getItemLayout(0);if(e){var l=i[0]-e.cx,r=i[1]-e.cy,a=Math.sqrt(l*l+r*r);return a<=e.r&&a>=e.r0}}}),s=u;R.exports=s},NAnI:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("wXyp"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},NBmB:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.encodingName=f,D.encodings=void 0;var y={encodingRaw:0,encodingCopyRect:1,encodingRRE:2,encodingHextile:5,encodingTight:7,encodingTightPNG:-260,pseudoEncodingQualityLevel9:-23,pseudoEncodingQualityLevel0:-32,pseudoEncodingDesktopSize:-223,pseudoEncodingLastRect:-224,pseudoEncodingCursor:-239,pseudoEncodingQEMUExtendedKeyEvent:-258,pseudoEncodingDesktopName:-307,pseudoEncodingExtendedDesktopSize:-308,pseudoEncodingXvp:-309,pseudoEncodingFence:-312,pseudoEncodingContinuousUpdates:-313,pseudoEncodingCompressLevel9:-247,pseudoEncodingCompressLevel0:-256,pseudoEncodingVMwareCursor:1464686180,pseudoEncodingExtendedClipboard:3231835598};D.encodings=y;function f(x){switch(x){case y.encodingRaw:return"Raw";case y.encodingCopyRect:return"CopyRect";case y.encodingRRE:return"RRE";case y.encodingHextile:return"Hextile";case y.encodingTight:return"Tight";case y.encodingTightPNG:return"TightPNG";default:return"[unknown encoding "+x+"]"}}},NC18:function(R,D,n){var y=n("y+Vt"),f=n("IMiH"),x=n("7oTu"),v=Math.sqrt,m=Math.sin,p=Math.cos,d=Math.PI,u=function(A){return Math.sqrt(A[0]*A[0]+A[1]*A[1])},s=function(A,b){return(A[0]*b[0]+A[1]*b[1])/(u(A)*u(b))},i=function(A,b){return(A[0]*b[1]<A[1]*b[0]?-1:1)*Math.acos(s(A,b))};function t(g,A,b,S,E,C,_,T,w,O,I){var k=w*(d/180),M=p(k)*(g-b)/2+m(k)*(A-S)/2,j=-1*m(k)*(g-b)/2+p(k)*(A-S)/2,P=M*M/(_*_)+j*j/(T*T);P>1&&(_*=v(P),T*=v(P));var X=(E===C?-1:1)*v((_*_*(T*T)-_*_*(j*j)-T*T*(M*M))/(_*_*(j*j)+T*T*(M*M)))||0,F=X*_*j/T,U=X*-T*M/_,K=(g+b)/2+p(k)*F-m(k)*U,z=(A+S)/2+m(k)*F+p(k)*U,V=i([1,0],[(M-F)/_,(j-U)/T]),Q=[(M-F)/_,(j-U)/T],G=[(-1*M-F)/_,(-1*j-U)/T],te=i(Q,G);s(Q,G)<=-1&&(te=d),s(Q,G)>=1&&(te=0),C===0&&te>0&&(te=te-2*d),C===1&&te<0&&(te=te+2*d),I.addData(O,K,z,_,T,V,te,k,C)}var o=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function l(g){if(!g)return new f;for(var A=0,b=0,S=A,E=b,C,_=new f,T=f.CMD,w=g.match(o),O=0;O<w.length;O++){for(var I=w[O],k=I.charAt(0),M,j=I.match(e)||[],P=j.length,X=0;X<P;X++)j[X]=parseFloat(j[X]);for(var F=0;F<P;){var U,K,z,V,Q,G,te,q=A,se=b;switch(k){case"l":A+=j[F++],b+=j[F++],M=T.L,_.addData(M,A,b);break;case"L":A=j[F++],b=j[F++],M=T.L,_.addData(M,A,b);break;case"m":A+=j[F++],b+=j[F++],M=T.M,_.addData(M,A,b),S=A,E=b,k="l";break;case"M":A=j[F++],b=j[F++],M=T.M,_.addData(M,A,b),S=A,E=b,k="L";break;case"h":A+=j[F++],M=T.L,_.addData(M,A,b);break;case"H":A=j[F++],M=T.L,_.addData(M,A,b);break;case"v":b+=j[F++],M=T.L,_.addData(M,A,b);break;case"V":b=j[F++],M=T.L,_.addData(M,A,b);break;case"C":M=T.C,_.addData(M,j[F++],j[F++],j[F++],j[F++],j[F++],j[F++]),A=j[F-2],b=j[F-1];break;case"c":M=T.C,_.addData(M,j[F++]+A,j[F++]+b,j[F++]+A,j[F++]+b,j[F++]+A,j[F++]+b),A+=j[F-2],b+=j[F-1];break;case"S":U=A,K=b;var re=_.len(),xe=_.data;C===T.C&&(U+=A-xe[re-4],K+=b-xe[re-3]),M=T.C,q=j[F++],se=j[F++],A=j[F++],b=j[F++],_.addData(M,U,K,q,se,A,b);break;case"s":U=A,K=b;var re=_.len(),xe=_.data;C===T.C&&(U+=A-xe[re-4],K+=b-xe[re-3]),M=T.C,q=A+j[F++],se=b+j[F++],A+=j[F++],b+=j[F++],_.addData(M,U,K,q,se,A,b);break;case"Q":q=j[F++],se=j[F++],A=j[F++],b=j[F++],M=T.Q,_.addData(M,q,se,A,b);break;case"q":q=j[F++]+A,se=j[F++]+b,A+=j[F++],b+=j[F++],M=T.Q,_.addData(M,q,se,A,b);break;case"T":U=A,K=b;var re=_.len(),xe=_.data;C===T.Q&&(U+=A-xe[re-4],K+=b-xe[re-3]),A=j[F++],b=j[F++],M=T.Q,_.addData(M,U,K,A,b);break;case"t":U=A,K=b;var re=_.len(),xe=_.data;C===T.Q&&(U+=A-xe[re-4],K+=b-xe[re-3]),A+=j[F++],b+=j[F++],M=T.Q,_.addData(M,U,K,A,b);break;case"A":z=j[F++],V=j[F++],Q=j[F++],G=j[F++],te=j[F++],q=A,se=b,A=j[F++],b=j[F++],M=T.A,t(q,se,A,b,G,te,z,V,Q,M,_);break;case"a":z=j[F++],V=j[F++],Q=j[F++],G=j[F++],te=j[F++],q=A,se=b,A+=j[F++],b+=j[F++],M=T.A,t(q,se,A,b,G,te,z,V,Q,M,_);break}}(k==="z"||k==="Z")&&(M=T.Z,_.addData(M),A=S,b=E),C=M}return _.toStatic(),_}function r(g,A){var b=l(g);return A=A||{},A.buildPath=function(S){if(S.setData){S.setData(b.data);var E=S.getContext();E&&S.rebuildPath(E)}else{var E=S;b.rebuildPath(E)}},A.applyTransform=function(S){x(b,S),this.dirty(!0)},A}function a(g,A){return new y(r(g,A))}function c(g,A){return y.extend(r(g,A))}function h(g,A){for(var b=[],S=g.length,E=0;E<S;E++){var C=g[E];C.path||C.createPathProxy(),C.__dirtyPath&&C.buildPath(C.path,C.shape,!0),b.push(C.path)}var _=new y(A);return _.createPathProxy(),_.buildPath=function(T){T.appendPath(b);var w=T.getContext();w&&T.rebuildPath(w)},_}D.createFromString=a,D.extendFromString=c,D.mergePath=h},NFKh:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("MlIO"),n("F+F2"),n("qM6L"),n("ETIr"),n("wbyO"),n("cv67"),n("3y9D"),n("lPiR"),n("GRuw"),n("1uat"),n("uGsb"),n("5hvy"),n("ELcG"),n("WYAk"),n("e7zE"),n("K3mO"),n("OLod"),n("ALsQ"),n("9OqN"),n("qu8F"),n("S6kV"),n("gb/T"),n("qBft"),n("oRuE"),n("jO9C"),n("KmYQ"),n("uGxW"),n("bQjk"),n("wZgz"),n("pA7S"),n("w7YG"),n("E4JC"),n("PVpz"))})(this,function(y){return y})},NH9N:function(R,D,n){var y=n("bYtY"),f=n("mFDi"),x=n("Fofx"),v=n("IwbS"),m=n("+TT/"),p=n("kzvK"),d=n("CMP+"),u=n("oVpE"),s=u.createSymbol,i=n("aX7z"),t=n("OELB"),o=n("7aKB"),e=o.encodeHTML,l=y.bind,r=y.each,a=Math.PI,c=p.extend({type:"timeline.slider",init:function(S,E){this.api=E,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(S,E,C,_){if(this.model=S,this.api=C,this.ecModel=E,this.group.removeAll(),S.get("show",!0)){var T=this._layout(S,C),w=this._createGroup("mainGroup"),O=this._createGroup("labelGroup"),I=this._axis=this._createAxis(T,S);S.formatTooltip=function(k){return e(I.scale.getLabel(k))},r(["AxisLine","AxisTick","Control","CurrentPointer"],function(k){this["_render"+k](T,w,I,S)},this),this._renderAxisLabel(T,O,I,S),this._position(T,S)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(S,E){var C=S.get("label.position"),_=S.get("orient"),T=h(S,E);C==null||C==="auto"?C=_==="horizontal"?T.y+T.height/2<E.getHeight()/2?"-":"+":T.x+T.width/2<E.getWidth()/2?"+":"-":isNaN(C)&&(C={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[_][C]);var w={horizontal:"center",vertical:C>=0||C==="+"?"left":"right"},O={horizontal:C>=0||C==="+"?"top":"bottom",vertical:"middle"},I={horizontal:0,vertical:a/2},k=_==="vertical"?T.height:T.width,M=S.getModel("controlStyle"),j=M.get("show",!0),P=j?M.get("itemSize"):0,X=j?M.get("itemGap"):0,F=P+X,U=S.get("label.rotate")||0;U=U*a/180;var K,z,V,Q,G=M.get("position",!0),te=j&&M.get("showPlayBtn",!0),q=j&&M.get("showPrevBtn",!0),se=j&&M.get("showNextBtn",!0),re=0,xe=k;return G==="left"||G==="bottom"?(te&&(K=[0,0],re+=F),q&&(z=[re,0],re+=F),se&&(V=[xe-P,0],xe-=F)):(te&&(K=[xe-P,0],xe-=F),q&&(z=[0,0],re+=F),se&&(V=[xe-P,0],xe-=F)),Q=[re,xe],S.get("inverse")&&Q.reverse(),{viewRect:T,mainLength:k,orient:_,rotation:I[_],labelRotation:U,labelPosOpt:C,labelAlign:S.get("label.align")||w[_],labelBaseline:S.get("label.verticalAlign")||S.get("label.baseline")||O[_],playPosition:K,prevBtnPosition:z,nextBtnPosition:V,axisExtent:Q,controlSize:P,controlGap:X}},_position:function(S,E){var C=this._mainGroup,_=this._labelGroup,T=S.viewRect;if(S.orient==="vertical"){var w=x.create(),O=T.x,I=T.y+T.height;x.translate(w,w,[-O,-I]),x.rotate(w,w,-a/2),x.translate(w,w,[O,I]),T=T.clone(),T.applyTransform(w)}var k=z(T),M=z(C.getBoundingRect()),j=z(_.getBoundingRect()),P=C.position,X=_.position;X[0]=P[0]=k[0][0];var F=S.labelPosOpt;if(isNaN(F)){var U=F==="+"?0:1;V(P,M,k,1,U),V(X,j,k,1,1-U)}else{var U=F>=0?0:1;V(P,M,k,1,U),X[1]=P[1]+F}C.attr("position",P),_.attr("position",X),C.rotation=_.rotation=S.rotation,K(C),K(_);function K(Q){var G=Q.position;Q.origin=[k[0][0]-G[0],k[1][0]-G[1]]}function z(Q){return[[Q.x,Q.x+Q.width],[Q.y,Q.y+Q.height]]}function V(Q,G,te,q,se){Q[q]+=te[q][se]-G[q][se]}},_createAxis:function(S,E){var C=E.getData(),_=E.get("axisType"),T=i.createScaleByModel(E,_);T.getTicks=function(){return C.mapArray(["value"],function(I){return I})};var w=C.getDataExtent("value");T.setExtent(w[0],w[1]),T.niceTicks();var O=new d("value",T,S.axisExtent,_);return O.model=E,O},_createGroup:function(S){var E=this["_"+S]=new v.Group;return this.group.add(E),E},_renderAxisLine:function(S,E,C,_){var T=C.getExtent();if(!_.get("lineStyle.show"))return;E.add(new v.Line({shape:{x1:T[0],y1:0,x2:T[1],y2:0},style:y.extend({lineCap:"round"},_.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(S,E,C,_){var T=_.getData(),w=C.scale.getTicks();r(w,function(O){var I=C.dataToCoord(O),k=T.getItemModel(O),M=k.getModel("itemStyle"),j=k.getModel("emphasis.itemStyle"),P={position:[I,0],onclick:l(this._changeTimeline,this,O)},X=A(k,M,E,P);v.setHoverStyle(X,j.getItemStyle()),k.get("tooltip")?(X.dataIndex=O,X.dataModel=_):X.dataIndex=X.dataModel=null},this)},_renderAxisLabel:function(S,E,C,_){var T=C.getLabelModel();if(!T.get("show"))return;var w=_.getData(),O=C.getViewLabels();r(O,function(I){var k=I.tickValue,M=w.getItemModel(k),j=M.getModel("label"),P=M.getModel("emphasis.label"),X=C.dataToCoord(I.tickValue),F=new v.Text({position:[X,0],rotation:S.labelRotation-S.rotation,onclick:l(this._changeTimeline,this,k),silent:!1});v.setTextStyle(F.style,j,{text:I.formattedLabel,textAlign:S.labelAlign,textVerticalAlign:S.labelBaseline}),E.add(F),v.setHoverStyle(F,v.setTextStyle({},P))},this)},_renderControl:function(S,E,C,_){var T=S.controlSize,w=S.rotation,O=_.getModel("controlStyle").getItemStyle(),I=_.getModel("emphasis.controlStyle").getItemStyle(),k=[0,-T/2,T,T],M=_.getPlayState(),j=_.get("inverse",!0);P(S.nextBtnPosition,"controlStyle.nextIcon",l(this._changeTimeline,this,j?"-":"+")),P(S.prevBtnPosition,"controlStyle.prevIcon",l(this._changeTimeline,this,j?"+":"-")),P(S.playPosition,"controlStyle."+(M?"stopIcon":"playIcon"),l(this._handlePlayClick,this,!M),!0);function P(X,F,U,K){if(!X)return;var z={position:X,origin:[T/2,0],rotation:K?-w:0,rectHover:!0,style:O,onclick:U},V=g(_,F,k,z);E.add(V),v.setHoverStyle(V,I)}},_renderCurrentPointer:function(S,E,C,_){var T=_.getData(),w=_.getCurrentIndex(),O=T.getItemModel(w).getModel("checkpointStyle"),I=this,k={onCreate:function(M){M.draggable=!0,M.drift=l(I._handlePointerDrag,I),M.ondragend=l(I._handlePointerDragend,I),b(M,w,C,_,!0)},onUpdate:function(M){b(M,w,C,_)}};this._currentPointer=A(O,O,this._mainGroup,{},this._currentPointer,k)},_handlePlayClick:function(S){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:S,from:this.uid})},_handlePointerDrag:function(S,E,C){this._clearTimer(),this._pointerChangeTimeline([C.offsetX,C.offsetY])},_handlePointerDragend:function(S){this._pointerChangeTimeline([S.offsetX,S.offsetY],!0)},_pointerChangeTimeline:function(S,E){var C=this._toAxisCoord(S)[0],_=this._axis,T=t.asc(_.getExtent().slice());C>T[1]&&(C=T[1]),C<T[0]&&(C=T[0]),this._currentPointer.position[0]=C,this._currentPointer.dirty();var w=this._findNearestTick(C),O=this.model;(E||w!==O.getCurrentIndex()&&O.get("realtime"))&&this._changeTimeline(w)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(l(S,this),this.model.get("playInterval")));function S(){var E=this.model;this._changeTimeline(E.getCurrentIndex()+(E.get("rewind",!0)?-1:1))}},_toAxisCoord:function(S){var E=this._mainGroup.getLocalTransform();return v.applyTransform(S,E,!0)},_findNearestTick:function(S){var E=this.model.getData(),C=Infinity,_,T=this._axis;return E.each(["value"],function(w,O){var I=T.dataToCoord(w),k=Math.abs(I-S);k<C&&(C=k,_=O)}),_},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(S){var E=this.model.getCurrentIndex();S==="+"?S=E+1:S==="-"&&(S=E-1),this.api.dispatchAction({type:"timelineChange",currentIndex:S,from:this.uid})}});function h(S,E){return m.getLayoutRect(S.getBoxLayoutParams(),{width:E.getWidth(),height:E.getHeight()},S.get("padding"))}function g(S,E,C,_){var T=v.makePath(S.get(E).replace(/^path:\/\//,""),y.clone(_||{}),new f(C[0],C[1],C[2],C[3]),"center");return T}function A(S,E,C,_,T,w){var O=E.get("color");if(T)T.setColor(O),C.add(T),w&&w.onUpdate(T);else{var I=S.get("symbol");T=s(I,-1,-1,2,2,O),T.setStyle("strokeNoScale",!0),C.add(T),w&&w.onCreate(T)}var k=E.getItemStyle(["color","symbol","symbolSize"]);T.setStyle(k),_=y.merge({rectHover:!0,z2:100},_,!0);var M=S.get("symbolSize");M=M instanceof Array?M.slice():[+M,+M],M[0]/=2,M[1]/=2,_.scale=M;var j=S.get("symbolOffset");if(j){var P=_.position=_.position||[0,0];P[0]+=t.parsePercent(j[0],M[0]),P[1]+=t.parsePercent(j[1],M[1])}var X=S.get("symbolRotate");return _.rotation=(X||0)*Math.PI/180||0,T.attr(_),T.updateTransform(),T}function b(S,E,C,_,T){if(S.dragging)return;var w=_.getModel("checkpointStyle"),O=C.dataToCoord(_.getData().get(["value"],E));T||!w.get("animation",!0)?S.attr({position:[O,0]}):(S.stopAnimation(!0),S.animateTo({position:[O,0]},w.get("animationDuration",!0),w.get("animationEasing",!0)))}R.exports=c},NJEC:function(R,D,n){"use strict";var y=n("pVnL"),f=n.n(y),x=n("J4zp"),v=n.n(x),m=n("q1tI"),p=n.n(m),d=n("TSYQ"),u=n.n(d),s=n("sKbD"),i=n.n(s),t=n("4IlW"),o=n("3S7+"),e=n("2/Rp"),l=n("zvFY"),r=n("YMnH"),a=n("ZvpZ"),c=n("H84U"),h=n("bogI"),g=n("0n0R"),A=void 0,b=function(E,C){var _={};for(var T in E)Object.prototype.hasOwnProperty.call(E,T)&&C.indexOf(T)<0&&(_[T]=E[T]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,T=Object.getOwnPropertySymbols(E);w<T.length;w++)C.indexOf(T[w])<0&&Object.prototype.propertyIsEnumerable.call(E,T[w])&&(_[T[w]]=E[T[w]]);return _},S=m.forwardRef(function(E,C){var _=m.useState(E.visible),T=v()(_,2),w=T[0],O=T[1];m.useEffect(function(){"visible"in E&&O(E.visible)},[E.visible]),m.useEffect(function(){"defaultVisible"in E&&O(E.defaultVisible)},[E.defaultVisible]);var I=function(Oe,Me){"visible"in E||O(Oe),E.onVisibleChange&&E.onVisibleChange(Oe,Me)},k=function(Oe){I(!1,Oe),E.onConfirm&&E.onConfirm.call(A,Oe)},M=function(Oe){I(!1,Oe),E.onCancel&&E.onCancel.call(A,Oe)},j=function(Oe){Oe.keyCode===t.a.ESC&&w&&I(!1,Oe)},P=function(Oe){var Me=E.disabled;if(Me)return;I(Oe)},X=function(Oe,Me){var Qe=E.okButtonProps,Ve=E.cancelButtonProps,ut=E.title,Fe=E.cancelText,ue=E.okText,et=E.okType,he=E.icon;return m.createElement("div",{className:"".concat(Oe,"-inner-content")},m.createElement("div",{className:"".concat(Oe,"-message")},he,m.createElement("div",{className:"".concat(Oe,"-message-title")},Object(h.a)(ut))),m.createElement("div",{className:"".concat(Oe,"-buttons")},m.createElement(e.a,f()({onClick:M,size:"small"},Ve),Fe||Me.cancelText),m.createElement(e.a,f()({onClick:k},Object(l.a)(et),{size:"small"},Qe),ue||Me.okText)))},F=m.useContext(c.b),U=F.getPrefixCls,K=E.prefixCls,z=E.placement,V=E.children,Q=E.overlayClassName,G=b(E,["prefixCls","placement","children","overlayClassName"]),te=U("popover",K),q=U("popconfirm",K),se=u()(q,Q),re=m.createElement(r.a,{componentName:"Popconfirm",defaultLocale:a.a.Popconfirm},function(xe){return X(te,xe)});return m.createElement(o.a,f()({},G,{prefixCls:te,placement:z,onVisibleChange:P,visible:w,overlay:re,overlayClassName:se,ref:C}),Object(g.a)(V,{onKeyDown:function(Oe){var Me,Qe;(Qe=V==null?void 0:(Me=V.props).onKeyDown)===null||Qe===void 0||Qe.call(Me,Oe),j(Oe)}}))});S.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:m.createElement(i.a,null),disabled:!1},D.a=S},NKxu:function(R,D,n){var y=n("lSCD"),f=n("E2jh"),x=n("GoyQ"),v=n("3Fdi"),m=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,d=Function.prototype,u=Object.prototype,s=d.toString,i=u.hasOwnProperty,t=RegExp("^"+s.call(i).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function o(e){if(!x(e)||f(e))return!1;var l=y(e)?t:p;return l.test(v(e))}R.exports=o},NUBc:function(R,D,n){"use strict";var y=n("lSNA"),f=n.n(y),x=n("pVnL"),v=n.n(x),m=n("q1tI"),p=n.n(m),d=n("wx14"),u=n("rePB"),s=n("VTBJ"),i=n("1OyB"),t=n("vuIU"),o=n("Ji7U"),e=n("LK+K"),l=n("TSYQ"),r=n.n(l),a=function(Me){var Qe,Ve="".concat(Me.rootPrefixCls,"-item"),ut=r()(Ve,"".concat(Ve,"-").concat(Me.page),(Qe={},Object(u.a)(Qe,"".concat(Ve,"-active"),Me.active),Object(u.a)(Qe,Me.className,!!Me.className),Object(u.a)(Qe,"".concat(Ve,"-disabled"),!Me.page),Qe)),Fe=function(){Me.onClick(Me.page)},ue=function(he){Me.onKeyPress(he,Me.onClick,Me.page)};return p.a.createElement("li",{title:Me.showTitle?Me.page:null,className:ut,onClick:Fe,onKeyPress:ue,tabIndex:"0"},Me.itemRender(Me.page,"page",p.a.createElement("a",{rel:"nofollow"},Me.page)))},c=a,h={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},g=function(Oe){Object(o.a)(Qe,Oe);var Me=Object(e.a)(Qe);function Qe(){var Ve;Object(i.a)(this,Qe);for(var ut=arguments.length,Fe=new Array(ut),ue=0;ue<ut;ue++)Fe[ue]=arguments[ue];return Ve=Me.call.apply(Me,[this].concat(Fe)),Ve.state={goInputText:""},Ve.buildOptionText=function(et){return"".concat(et," ").concat(Ve.props.locale.items_per_page)},Ve.changeSize=function(et){Ve.props.changeSize(Number(et))},Ve.handleChange=function(et){Ve.setState({goInputText:et.target.value})},Ve.handleBlur=function(et){var he=Ve.props,J=he.goButton,Y=he.quickGo,$=he.rootPrefixCls,de=Ve.state.goInputText;if(J||de==="")return;if(et.relatedTarget&&(et.relatedTarget.className.indexOf("".concat($,"-prev"))>=0||et.relatedTarget.className.indexOf("".concat($,"-next"))>=0))return;Ve.setState({goInputText:""}),Y(Ve.getValidValue())},Ve.go=function(et){var he=Ve.state.goInputText;if(he==="")return;(et.keyCode===h.ENTER||et.type==="click")&&(Ve.setState({goInputText:""}),Ve.props.quickGo(Ve.getValidValue()))},Ve}return Object(t.a)(Qe,[{key:"getValidValue",value:function(){var ut=this.state,Fe=ut.goInputText,ue=ut.current;return!Fe||isNaN(Fe)?ue:Number(Fe)}},{key:"getPageSizeOptions",value:function(){var ut=this.props,Fe=ut.pageSize,ue=ut.pageSizeOptions;return ue.some(function(et){return et.toString()===Fe.toString()})?ue:ue.concat([Fe.toString()]).sort(function(et,he){var J=isNaN(Number(et))?0:Number(et),Y=isNaN(Number(he))?0:Number(he);return J-Y})}},{key:"render",value:function(){var ut=this,Fe=this.props,ue=Fe.pageSize,et=Fe.locale,he=Fe.rootPrefixCls,J=Fe.changeSize,Y=Fe.quickGo,$=Fe.goButton,de=Fe.selectComponentClass,be=Fe.buildOptionText,Ce=Fe.selectPrefixCls,Be=Fe.disabled,fe=this.state.goInputText,we="".concat(he,"-options"),Re=de,rt=null,St=null,ft=null;if(!J&&!Y)return null;var He=this.getPageSizeOptions();if(J&&Re){var er=He.map(function(ct,Kt){return p.a.createElement(Re.Option,{key:Kt,value:ct.toString()},(be||ut.buildOptionText)(ct))});rt=p.a.createElement(Re,{disabled:Be,prefixCls:Ce,showSearch:!1,className:"".concat(we,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(ue||He[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Kt){return Kt.parentNode}},er)}return Y&&($&&(ft=typeof $=="boolean"?p.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Be,className:"".concat(we,"-quick-jumper-button")},et.jump_to_confirm):p.a.createElement("span",{onClick:this.go,onKeyUp:this.go},$)),St=p.a.createElement("div",{className:"".concat(we,"-quick-jumper")},et.jump_to,p.a.createElement("input",{disabled:Be,type:"text",value:fe,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),et.page,ft)),p.a.createElement("li",{className:"".concat(we)},rt,St)}}]),Qe}(p.a.Component);g.defaultProps={pageSizeOptions:["10","20","50","100"]};var A=g,b=n("N2Kk");function S(){}function E(Oe){return typeof Oe=="number"&&isFinite(Oe)&&Math.floor(Oe)===Oe}function C(Oe,Me,Qe){return Qe}function _(Oe,Me,Qe){var Ve=typeof Oe=="undefined"?Me.pageSize:Oe;return Math.floor((Qe.total-1)/Ve)+1}var T=function(Oe){Object(o.a)(Qe,Oe);var Me=Object(e.a)(Qe);function Qe(Ve){var ut;Object(i.a)(this,Qe),ut=Me.call(this,Ve),ut.getJumpPrevPage=function(){return Math.max(1,ut.state.current-(ut.props.showLessItems?3:5))},ut.getJumpNextPage=function(){return Math.min(_(void 0,ut.state,ut.props),ut.state.current+(ut.props.showLessItems?3:5))},ut.getItemIcon=function(J,Y){var $=ut.props.prefixCls,de=J||p.a.createElement("button",{type:"button","aria-label":Y,className:"".concat($,"-item-link")});return typeof J=="function"&&(de=p.a.createElement(J,Object(s.a)({},ut.props))),de},ut.savePaginationNode=function(J){ut.paginationNode=J},ut.isValid=function(J){return E(J)&&J!==ut.state.current},ut.shouldDisplayQuickJumper=function(){var J=ut.props,Y=J.showQuickJumper,$=J.pageSize,de=J.total;return de<=$?!1:Y},ut.handleKeyDown=function(J){(J.keyCode===h.ARROW_UP||J.keyCode===h.ARROW_DOWN)&&J.preventDefault()},ut.handleKeyUp=function(J){var Y=ut.getValidValue(J),$=ut.state.currentInputValue;Y!==$&&ut.setState({currentInputValue:Y}),J.keyCode===h.ENTER?ut.handleChange(Y):J.keyCode===h.ARROW_UP?ut.handleChange(Y-1):J.keyCode===h.ARROW_DOWN&&ut.handleChange(Y+1)},ut.changePageSize=function(J){var Y=ut.state.current,$=_(J,ut.state,ut.props);Y=Y>$?$:Y,$===0&&(Y=ut.state.current),typeof J=="number"&&("pageSize"in ut.props||ut.setState({pageSize:J}),"current"in ut.props||ut.setState({current:Y,currentInputValue:Y})),ut.props.onShowSizeChange(Y,J),"onChange"in ut.props&&ut.props.onChange&&ut.props.onChange(Y,J)},ut.handleChange=function(J){var Y=ut.props.disabled,$=J;if(ut.isValid($)&&!Y){var de=_(void 0,ut.state,ut.props);$>de?$=de:$<1&&($=1),"current"in ut.props||ut.setState({current:$,currentInputValue:$});var be=ut.state.pageSize;return ut.props.onChange($,be),$}return ut.state.current},ut.prev=function(){ut.hasPrev()&&ut.handleChange(ut.state.current-1)},ut.next=function(){ut.hasNext()&&ut.handleChange(ut.state.current+1)},ut.jumpPrev=function(){ut.handleChange(ut.getJumpPrevPage())},ut.jumpNext=function(){ut.handleChange(ut.getJumpNextPage())},ut.hasPrev=function(){return ut.state.current>1},ut.hasNext=function(){return ut.state.current<_(void 0,ut.state,ut.props)},ut.runIfEnter=function(J,Y){if(J.key==="Enter"||J.charCode===13){for(var $=arguments.length,de=new Array($>2?$-2:0),be=2;be<$;be++)de[be-2]=arguments[be];Y.apply(void 0,de)}},ut.runIfEnterPrev=function(J){ut.runIfEnter(J,ut.prev)},ut.runIfEnterNext=function(J){ut.runIfEnter(J,ut.next)},ut.runIfEnterJumpPrev=function(J){ut.runIfEnter(J,ut.jumpPrev)},ut.runIfEnterJumpNext=function(J){ut.runIfEnter(J,ut.jumpNext)},ut.handleGoTO=function(J){(J.keyCode===h.ENTER||J.type==="click")&&ut.handleChange(ut.state.currentInputValue)};var Fe=Ve.onChange!==S,ue="current"in Ve;ue&&!Fe&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var et=Ve.defaultCurrent;"current"in Ve&&(et=Ve.current);var he=Ve.defaultPageSize;return"pageSize"in Ve&&(he=Ve.pageSize),et=Math.min(et,_(he,void 0,Ve)),ut.state={current:et,currentInputValue:et,pageSize:he},ut}return Object(t.a)(Qe,[{key:"componentDidUpdate",value:function(ut,Fe){var ue=this.props.prefixCls;if(Fe.current!==this.state.current&&this.paginationNode){var et=this.paginationNode.querySelector(".".concat(ue,"-item-").concat(Fe.current));et&&document.activeElement===et&&et.blur()}}},{key:"getValidValue",value:function(ut){var Fe=ut.target.value,ue=_(void 0,this.state,this.props),et=this.state.currentInputValue,he;return Fe===""?he=Fe:isNaN(Number(Fe))?he=et:Fe>=ue?he=ue:he=Number(Fe),he}},{key:"getShowSizeChanger",value:function(){var ut=this.props,Fe=ut.showSizeChanger,ue=ut.total,et=ut.totalBoundaryShowSizeChanger;return typeof Fe!="undefined"?Fe:ue>et}},{key:"renderPrev",value:function(ut){var Fe=this.props,ue=Fe.prevIcon,et=Fe.itemRender,he=et(ut,"prev",this.getItemIcon(ue,"prev page")),J=!this.hasPrev();return Object(m.isValidElement)(he)?Object(m.cloneElement)(he,{disabled:J}):he}},{key:"renderNext",value:function(ut){var Fe=this.props,ue=Fe.nextIcon,et=Fe.itemRender,he=et(ut,"next",this.getItemIcon(ue,"next page")),J=!this.hasNext();return Object(m.isValidElement)(he)?Object(m.cloneElement)(he,{disabled:J}):he}},{key:"render",value:function(){var ut=this,Fe=this.props,ue=Fe.prefixCls,et=Fe.className,he=Fe.style,J=Fe.disabled,Y=Fe.hideOnSinglePage,$=Fe.total,de=Fe.locale,be=Fe.showQuickJumper,Ce=Fe.showLessItems,Be=Fe.showTitle,fe=Fe.showTotal,we=Fe.simple,Re=Fe.itemRender,rt=Fe.showPrevNextJumpers,St=Fe.jumpPrevIcon,ft=Fe.jumpNextIcon,He=Fe.selectComponentClass,er=Fe.selectPrefixCls,ct=Fe.pageSizeOptions,Kt=this.state,fr=Kt.current,Gt=Kt.pageSize,Pt=Kt.currentInputValue;if(Y===!0&&$<=Gt)return null;var Xt=_(void 0,this.state,this.props),Ge=[],pe=null,oe=null,lt=null,qe=null,ge=null,Ht=be&&be.goButton,vr=Ce?1:2,At=fr-1>0?fr-1:0,ir=fr+1<Xt?fr+1:Xt,lr=Object.keys(this.props).reduce(function(Un,$t){return($t.substr(0,5)==="data-"||$t.substr(0,5)==="aria-"||$t==="role")&&(Un[$t]=ut.props[$t]),Un},{});if(we)return Ht&&(typeof Ht=="boolean"?ge=p.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},de.jump_to_confirm):ge=p.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ht),ge=p.a.createElement("li",{title:Be?"".concat(de.jump_to).concat(fr,"/").concat(Xt):null,className:"".concat(ue,"-simple-pager")},ge)),p.a.createElement("ul",Object(d.a)({className:r()(ue,"".concat(ue,"-simple"),Object(u.a)({},"".concat(ue,"-disabled"),J),et),style:he,ref:this.savePaginationNode},lr),p.a.createElement("li",{title:Be?de.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:r()("".concat(ue,"-prev"),Object(u.a)({},"".concat(ue,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(At)),p.a.createElement("li",{title:Be?"".concat(fr,"/").concat(Xt):null,className:"".concat(ue,"-simple-pager")},p.a.createElement("input",{type:"text",value:Pt,disabled:J,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),p.a.createElement("span",{className:"".concat(ue,"-slash")},"/"),Xt),p.a.createElement("li",{title:Be?de.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:r()("".concat(ue,"-next"),Object(u.a)({},"".concat(ue,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ir)),ge);if(Xt<=3+vr*2){var dn={locale:de,rootPrefixCls:ue,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Be,itemRender:Re};Xt||Ge.push(p.a.createElement(c,Object(d.a)({},dn,{key:"noPager",page:Xt,className:"".concat(ue,"-disabled")})));for(var Ft=1;Ft<=Xt;Ft+=1){var ur=fr===Ft;Ge.push(p.a.createElement(c,Object(d.a)({},dn,{key:Ft,page:Ft,active:ur})))}}else{var Jt=Ce?de.prev_3:de.prev_5,pt=Ce?de.next_3:de.next_5;rt&&(pe=p.a.createElement("li",{title:Be?Jt:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:r()("".concat(ue,"-jump-prev"),Object(u.a)({},"".concat(ue,"-jump-prev-custom-icon"),!!St))},Re(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(St,"prev page"))),oe=p.a.createElement("li",{title:Be?pt:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:r()("".concat(ue,"-jump-next"),Object(u.a)({},"".concat(ue,"-jump-next-custom-icon"),!!ft))},Re(this.getJumpNextPage(),"jump-next",this.getItemIcon(ft,"next page")))),qe=p.a.createElement(c,{locale:de,last:!0,rootPrefixCls:ue,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Xt,page:Xt,active:!1,showTitle:Be,itemRender:Re}),lt=p.a.createElement(c,{locale:de,rootPrefixCls:ue,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Be,itemRender:Re});var at=Math.max(1,fr-vr),Pr=Math.min(fr+vr,Xt);fr-1<=vr&&(Pr=1+vr*2),Xt-fr<=vr&&(at=Xt-vr*2);for(var un=at;un<=Pr;un+=1){var _n=fr===un;Ge.push(p.a.createElement(c,{locale:de,rootPrefixCls:ue,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:un,page:un,active:_n,showTitle:Be,itemRender:Re}))}fr-1>=vr*2&&fr!==1+2&&(Ge[0]=Object(m.cloneElement)(Ge[0],{className:"".concat(ue,"-item-after-jump-prev")}),Ge.unshift(pe)),Xt-fr>=vr*2&&fr!==Xt-2&&(Ge[Ge.length-1]=Object(m.cloneElement)(Ge[Ge.length-1],{className:"".concat(ue,"-item-before-jump-next")}),Ge.push(oe)),at!==1&&Ge.unshift(lt),Pr!==Xt&&Ge.push(qe)}var Xn=null;fe&&(Xn=p.a.createElement("li",{className:"".concat(ue,"-total-text")},fe($,[$===0?0:(fr-1)*Gt+1,fr*Gt>$?$:fr*Gt])));var xi=!this.hasPrev()||!Xt,Pn=!this.hasNext()||!Xt;return p.a.createElement("ul",Object(d.a)({className:r()(ue,et,Object(u.a)({},"".concat(ue,"-disabled"),J)),style:he,unselectable:"unselectable",ref:this.savePaginationNode},lr),Xn,p.a.createElement("li",{title:Be?de.prev_page:null,onClick:this.prev,tabIndex:xi?null:0,onKeyPress:this.runIfEnterPrev,className:r()("".concat(ue,"-prev"),Object(u.a)({},"".concat(ue,"-disabled"),xi)),"aria-disabled":xi},this.renderPrev(At)),Ge,p.a.createElement("li",{title:Be?de.next_page:null,onClick:this.next,tabIndex:Pn?null:0,onKeyPress:this.runIfEnterNext,className:r()("".concat(ue,"-next"),Object(u.a)({},"".concat(ue,"-disabled"),Pn)),"aria-disabled":Pn},this.renderNext(ir)),p.a.createElement(A,{disabled:J,locale:de,rootPrefixCls:ue,selectComponentClass:He,selectPrefixCls:er,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:fr,pageSize:Gt,pageSizeOptions:ct,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ht}))}}],[{key:"getDerivedStateFromProps",value:function(ut,Fe){var ue={};if("current"in ut&&(ue.current=ut.current,ut.current!==Fe.current&&(ue.currentInputValue=ue.current)),"pageSize"in ut&&ut.pageSize!==Fe.pageSize){var et=Fe.current,he=_(ut.pageSize,Fe,ut);et=et>he?he:et,"current"in ut||(ue.current=et,ue.currentInputValue=et),ue.pageSize=ut.pageSize}return ue}}]),Qe}(p.a.Component);T.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:S,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:S,locale:b.a,style:{},itemRender:C,totalBoundaryShowSizeChanger:50};var w=T,O=n("H4fg"),I=n("DFhj"),k=n.n(I),M=n("fEPi"),j=n.n(M),P=n("u9fO"),X=n.n(P),F=n("mO/d"),U=n.n(F),K=n("2fM7"),z=function(Me){return m.createElement(K.a,v()({size:"small"},Me))};z.Option=K.a.Option;var V=z,Q=n("YMnH"),G=n("H84U"),te=n("5OYt"),q=function(Oe,Me){var Qe={};for(var Ve in Oe)Object.prototype.hasOwnProperty.call(Oe,Ve)&&Me.indexOf(Ve)<0&&(Qe[Ve]=Oe[Ve]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,Ve=Object.getOwnPropertySymbols(Oe);ut<Ve.length;ut++)Me.indexOf(Ve[ut])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Ve[ut])&&(Qe[Ve[ut]]=Oe[Ve[ut]]);return Qe},se=function(Me){var Qe=Me.prefixCls,Ve=Me.selectPrefixCls,ut=Me.className,Fe=Me.size,ue=Me.locale,et=q(Me,["prefixCls","selectPrefixCls","className","size","locale"]),he=Object(te.a)(),J=he.xs,Y=m.useContext(G.b),$=Y.getPrefixCls,de=Y.direction,be=$("pagination",Qe),Ce=function(){var we=m.createElement("span",{className:"".concat(be,"-item-ellipsis")},"\u2022\u2022\u2022"),Re=m.createElement("button",{className:"".concat(be,"-item-link"),type:"button",tabIndex:-1},m.createElement(k.a,null)),rt=m.createElement("button",{className:"".concat(be,"-item-link"),type:"button",tabIndex:-1},m.createElement(j.a,null)),St=m.createElement("a",{className:"".concat(be,"-item-link")},m.createElement("div",{className:"".concat(be,"-item-container")},m.createElement(X.a,{className:"".concat(be,"-item-link-icon")}),we)),ft=m.createElement("a",{className:"".concat(be,"-item-link")},m.createElement("div",{className:"".concat(be,"-item-container")},m.createElement(U.a,{className:"".concat(be,"-item-link-icon")}),we));if(de==="rtl"){var He=[rt,Re];Re=He[0],rt=He[1];var er=[ft,St];St=er[0],ft=er[1]}return{prevIcon:Re,nextIcon:rt,jumpPrevIcon:St,jumpNextIcon:ft}},Be=function(we){var Re=v()(v()({},we),ue),rt=Fe==="small"||!!(J&&!Fe&&et.responsive),St=$("select",Ve),ft=r()(ut,f()({mini:rt},"".concat(be,"-rtl"),de==="rtl"));return m.createElement(w,v()({},et,{prefixCls:be,selectPrefixCls:St},Ce(),{className:ft,selectComponentClass:rt?V:K.a,locale:Re}))};return m.createElement(Q.a,{componentName:"Pagination",defaultLocale:O.a},Be)},re=se,xe=D.a=re},NohK:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=function(x){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,m=null;return function(){for(var p=this,d=arguments.length,u=new Array(d),s=0;s<d;s++)u[s]=arguments[s];clearTimeout(m),m=setTimeout(function(){x.apply(p,u)},v)}};D.default=y},Npjl:function(R,D){function n(y,f){return y==null?void 0:y[f]}R.exports=n},Nu4q:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:function(x,v){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:x}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:v}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:v}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:v}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:x}}]}},name:"picture",theme:"twotone"};D.default=y},"O/iA":function(R,D,n){},O3gP:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("O/iA"),v=n.n(x),m=n("OaEy")},OELB:function(R,D,n){var y=n("bYtY"),f=1e-4;function x(E){return E.replace(/^\s+|\s+$/g,"")}function v(E,C,_,T){var w=C[1]-C[0],O=_[1]-_[0];if(w===0)return O===0?_[0]:(_[0]+_[1])/2;if(T)if(w>0){if(E<=C[0])return _[0];if(E>=C[1])return _[1]}else{if(E>=C[0])return _[0];if(E<=C[1])return _[1]}else{if(E===C[0])return _[0];if(E===C[1])return _[1]}return(E-C[0])/w*O+_[0]}function m(E,C){switch(E){case"center":case"middle":E="50%";break;case"left":case"top":E="0%";break;case"right":case"bottom":E="100%";break}return typeof E=="string"?x(E).match(/%$/)?parseFloat(E)/100*C:parseFloat(E):E==null?NaN:+E}function p(E,C,_){return C==null&&(C=10),C=Math.min(Math.max(0,C),20),E=(+E).toFixed(C),_?E:+E}function d(E){return E.sort(function(C,_){return C-_}),E}function u(E){if(E=+E,isNaN(E))return 0;for(var C=1,_=0;Math.round(E*C)/C!==E;)C*=10,_++;return _}function s(E){var C=E.toString(),_=C.indexOf("e");if(_>0){var T=+C.slice(_+1);return T<0?-T:0}else{var w=C.indexOf(".");return w<0?0:C.length-1-w}}function i(E,C){var _=Math.log,T=Math.LN10,w=Math.floor(_(E[1]-E[0])/T),O=Math.round(_(Math.abs(C[1]-C[0]))/T),I=Math.min(Math.max(-w+O,0),20);return isFinite(I)?I:20}function t(E,C,_){if(!E[C])return 0;var T=y.reduce(E,function(K,z){return K+(isNaN(z)?0:z)},0);if(T===0)return 0;for(var w=Math.pow(10,_),O=y.map(E,function(K){return(isNaN(K)?0:K)/T*w*100}),I=w*100,k=y.map(O,function(K){return Math.floor(K)}),M=y.reduce(k,function(K,z){return K+z},0),j=y.map(O,function(K,z){return K-k[z]});M<I;){for(var P=Number.NEGATIVE_INFINITY,X=null,F=0,U=j.length;F<U;++F)j[F]>P&&(P=j[F],X=F);++k[X],j[X]=0,++M}return k[C]/w}var o=9007199254740991;function e(E){var C=Math.PI*2;return(E%C+C)%C}function l(E){return E>-f&&E<f}var r=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function a(E){if(E instanceof Date)return E;if(typeof E=="string"){var C=r.exec(E);if(!C)return new Date(NaN);if(C[8]){var _=+C[4]||0;return C[8].toUpperCase()!=="Z"&&(_-=C[8].slice(0,3)),new Date(Date.UTC(+C[1],+(C[2]||1)-1,+C[3]||1,_,+(C[5]||0),+C[6]||0,+C[7]||0))}else return new Date(+C[1],+(C[2]||1)-1,+C[3]||1,+C[4]||0,+(C[5]||0),+C[6]||0,+C[7]||0)}else if(E==null)return new Date(NaN);return new Date(Math.round(E))}function c(E){return Math.pow(10,h(E))}function h(E){if(E===0)return 0;var C=Math.floor(Math.log(E)/Math.LN10);return E/Math.pow(10,C)>=10&&C++,C}function g(E,C){var _=h(E),T=Math.pow(10,_),w=E/T,O;return C?w<1.5?O=1:w<2.5?O=2:w<4?O=3:w<7?O=5:O=10:w<1?O=1:w<2?O=2:w<3?O=3:w<5?O=5:O=10,E=O*T,_>=-20?+E.toFixed(_<0?-_:0):E}function A(E,C){var _=(E.length-1)*C+1,T=Math.floor(_),w=+E[T-1],O=_-T;return O?w+O*(E[T]-w):w}function b(E){E.sort(function(M,j){return k(M,j,0)?-1:1});for(var C=-Infinity,_=1,T=0;T<E.length;){for(var w=E[T].interval,O=E[T].close,I=0;I<2;I++)w[I]<=C&&(w[I]=C,O[I]=I?1:1-_),C=w[I],_=O[I];w[0]===w[1]&&O[0]*O[1]!==1?E.splice(T,1):T++}return E;function k(M,j,P){return M.interval[P]<j.interval[P]||M.interval[P]===j.interval[P]&&(M.close[P]-j.close[P]===(P?-1:1)||!P&&k(M,j,1))}}function S(E){return E-parseFloat(E)>=0}D.linearMap=v,D.parsePercent=m,D.round=p,D.asc=d,D.getPrecision=u,D.getPrecisionSafe=s,D.getPixelPrecision=i,D.getPercentWithPrecision=t,D.MAX_SAFE_INTEGER=o,D.remRadian=e,D.isRadianAroundZero=l,D.parseDate=a,D.quantity=c,D.quantityExponent=h,D.nice=g,D.quantile=A,D.reformIntervals=b,D.isNumeric=S},OKJ2:function(R,D,n){var y=n("KxfA"),f=y.retrieveRawValue,x=n("7aKB"),v=x.getTooltipMarker,m=x.formatTpl,p=n("4NO4"),d=p.getTooltipRenderMode,u=/\{@(.+?)\}/g,s={getDataParams:function(i,t){var o=this.getData(t),e=this.getRawValue(i,t),l=o.getRawIndex(i),r=o.getName(i),a=o.getRawDataItem(i),c=o.getItemVisual(i,"color"),h=o.getItemVisual(i,"borderColor"),g=this.ecModel.getComponent("tooltip"),A=g&&g.get("renderMode"),b=d(A),S=this.mainType,E=S==="series",C=o.userOutput;return{componentType:S,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:E?this.subType:null,seriesIndex:this.seriesIndex,seriesId:E?this.id:null,seriesName:E?this.name:null,name:r,dataIndex:l,data:a,dataType:t,value:e,color:c,borderColor:h,dimensionNames:C?C.dimensionNames:null,encode:C?C.encode:null,marker:v({color:c,renderMode:b}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(i,t,o,e,l){t=t||"normal";var r=this.getData(o),a=r.getItemModel(i),c=this.getDataParams(i,o);e!=null&&c.value instanceof Array&&(c.value=c.value[e]);var h=a.get(t==="normal"?[l||"label","formatter"]:[t,l||"label","formatter"]);if(typeof h=="function")return c.status=t,c.dimensionIndex=e,h(c);if(typeof h=="string"){var g=m(h,c);return g.replace(u,function(A,b){var S=b.length;return b.charAt(0)==="["&&b.charAt(S-1)==="]"&&(b=+b.slice(1,S-1)),f(r,i,b)})}},getRawValue:function(i,t){return f(this.getData(t),i)},formatTooltip:function(){}};R.exports=s},OLod:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("K3mO"))})(this,function(y){y.lib.Cipher||function(f){var x=y,v=x.lib,m=v.Base,p=v.WordArray,d=v.BufferedBlockAlgorithm,u=x.enc,s=u.Utf8,i=u.Base64,t=x.algo,o=t.EvpKDF,e=v.Cipher=d.extend({cfg:m.extend(),createEncryptor:function(I,k){return this.create(this._ENC_XFORM_MODE,I,k)},createDecryptor:function(I,k){return this.create(this._DEC_XFORM_MODE,I,k)},init:function(I,k,M){this.cfg=this.cfg.extend(M),this._xformMode=I,this._key=k,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var k=this._doFinalize();return k},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function O(I){return typeof I=="string"?w:C}return function(I){return{encrypt:function(M,j,P){return O(j).encrypt(I,M,j,P)},decrypt:function(M,j,P){return O(j).decrypt(I,M,j,P)}}}}()}),l=v.StreamCipher=e.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1}),r=x.mode={},a=v.BlockCipherMode=m.extend({createEncryptor:function(I,k){return this.Encryptor.create(I,k)},createDecryptor:function(I,k){return this.Decryptor.create(I,k)},init:function(I,k){this._cipher=I,this._iv=k}}),c=r.CBC=function(){var O=a.extend();O.Encryptor=O.extend({processBlock:function(M,j){var P=this._cipher,X=P.blockSize;I.call(this,M,j,X),P.encryptBlock(M,j),this._prevBlock=M.slice(j,j+X)}}),O.Decryptor=O.extend({processBlock:function(M,j){var P=this._cipher,X=P.blockSize,F=M.slice(j,j+X);P.decryptBlock(M,j),I.call(this,M,j,X),this._prevBlock=F}});function I(k,M,j){var P,X=this._iv;X?(P=X,this._iv=f):P=this._prevBlock;for(var F=0;F<j;F++)k[M+F]^=P[F]}return O}(),h=x.pad={},g=h.Pkcs7={pad:function(I,k){for(var M=k*4,j=M-I.sigBytes%M,P=j<<24|j<<16|j<<8|j,X=[],F=0;F<j;F+=4)X.push(P);var U=p.create(X,j);I.concat(U)},unpad:function(I){var k=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=k}},A=v.BlockCipher=e.extend({cfg:e.cfg.extend({mode:c,padding:g}),reset:function(){var I;e.reset.call(this);var k=this.cfg,M=k.iv,j=k.mode;this._xformMode==this._ENC_XFORM_MODE?I=j.createEncryptor:(I=j.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,M&&M.words):(this._mode=I.call(j,this,M&&M.words),this._mode.__creator=I)},_doProcessBlock:function(I,k){this._mode.processBlock(I,k)},_doFinalize:function(){var I,k=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(k.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),k.unpad(I)),I},blockSize:128/32}),b=v.CipherParams=m.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),S=x.format={},E=S.OpenSSL={stringify:function(I){var k,M=I.ciphertext,j=I.salt;return j?k=p.create([1398893684,1701076831]).concat(j).concat(M):k=M,k.toString(i)},parse:function(I){var k,M=i.parse(I),j=M.words;return j[0]==1398893684&&j[1]==1701076831&&(k=p.create(j.slice(2,4)),j.splice(0,4),M.sigBytes-=16),b.create({ciphertext:M,salt:k})}},C=v.SerializableCipher=m.extend({cfg:m.extend({format:E}),encrypt:function(I,k,M,j){j=this.cfg.extend(j);var P=I.createEncryptor(M,j),X=P.finalize(k),F=P.cfg;return b.create({ciphertext:X,key:M,iv:F.iv,algorithm:I,mode:F.mode,padding:F.padding,blockSize:I.blockSize,formatter:j.format})},decrypt:function(I,k,M,j){j=this.cfg.extend(j),k=this._parse(k,j.format);var P=I.createDecryptor(M,j).finalize(k.ciphertext);return P},_parse:function(I,k){return typeof I=="string"?k.parse(I,this):I}}),_=x.kdf={},T=_.OpenSSL={execute:function(I,k,M,j){j||(j=p.random(64/8));var P=o.create({keySize:k+M}).compute(I,j),X=p.create(P.words.slice(k),M*4);return P.sigBytes=k*4,b.create({key:P,iv:X,salt:j})}},w=v.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:T}),encrypt:function(I,k,M,j){j=this.cfg.extend(j);var P=j.kdf.execute(M,I.keySize,I.ivSize);j.iv=P.iv;var X=C.encrypt.call(this,I,k,P.key,j);return X.mixIn(P),X},decrypt:function(I,k,M,j){j=this.cfg.extend(j),k=this._parse(k,j.format);var P=j.kdf.execute(M,I.keySize,I.ivSize,k.salt);j.iv=P.iv;var X=C.decrypt.call(this,I,k,P.key,j);return X}})}()})},OPEp:function(R,D,n){},OQFs:function(R,D,n){var y=n("KCsZ"),f=y([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),x={getLineStyle:function(v){var m=f(this,v);return m.lineDash=this.getLineDash(m.lineWidth),m},getLineDash:function(v){v==null&&(v=1);var m=this.get("type"),p=Math.max(v,2),d=v*4;return m==="solid"||m==null?!1:m==="dashed"?[d,d]:[p,p]}};R.exports=x},OS9S:function(R,D,n){var y=n("bYtY"),f=y.inherits,x=n("Gev7"),v=n("mFDi");function m(u){x.call(this,u),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}m.prototype.incremental=!0,m.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},m.prototype.addDisplayable=function(u,s){s?this._temporaryDisplayables.push(u):this._displayables.push(u),this.dirty()},m.prototype.addDisplayables=function(u,s){s=s||!1;for(var i=0;i<u.length;i++)this.addDisplayable(u[i],s)},m.prototype.eachPendingDisplayable=function(u){for(var s=this._cursor;s<this._displayables.length;s++)u&&u(this._displayables[s]);for(var s=0;s<this._temporaryDisplayables.length;s++)u&&u(this._temporaryDisplayables[s])},m.prototype.update=function(){this.updateTransform();for(var u=this._cursor;u<this._displayables.length;u++){var s=this._displayables[u];s.parent=this,s.update(),s.parent=null}for(var u=0;u<this._temporaryDisplayables.length;u++){var s=this._temporaryDisplayables[u];s.parent=this,s.update(),s.parent=null}},m.prototype.brush=function(u,s){for(var i=this._cursor;i<this._displayables.length;i++){var t=this._displayables[i];t.beforeBrush&&t.beforeBrush(u),t.brush(u,i===this._cursor?null:this._displayables[i-1]),t.afterBrush&&t.afterBrush(u)}this._cursor=i;for(var i=0;i<this._temporaryDisplayables.length;i++){var t=this._temporaryDisplayables[i];t.beforeBrush&&t.beforeBrush(u),t.brush(u,i===0?null:this._temporaryDisplayables[i-1]),t.afterBrush&&t.afterBrush(u)}this._temporaryDisplayables=[],this.notClear=!0};var p=[];m.prototype.getBoundingRect=function(){if(!this._rect){for(var u=new v(Infinity,Infinity,-Infinity,-Infinity),s=0;s<this._displayables.length;s++){var i=this._displayables[s],t=i.getBoundingRect().clone();i.needLocalTransform()&&t.applyTransform(i.getLocalTransform(p)),u.union(t)}this._rect=u}return this._rect},m.prototype.contain=function(u,s){var i=this.transformCoordToLocal(u,s),t=this.getBoundingRect();if(t.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var e=this._displayables[o];if(e.contain(u,s))return!0}return!1},f(m,x);var d=m;R.exports=d},OUJF:function(R,D,n){var y=n("ProS"),f=n("bYtY");y.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(x,v){var m=v.getComponent("timeline");return m&&x.currentIndex!=null&&(m.setCurrentIndex(x.currentIndex),!m.get("loop",!0)&&m.isIndexMax()&&m.setPlayState(!1)),v.resetOption("timeline"),f.defaults({currentIndex:m.option.currentIndex},x)}),y.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(x,v){var m=v.getComponent("timeline");m&&x.playState!=null&&m.setPlayState(x.playState)})},OXB0:function(R,D,n){var y=n("T4UG"),f=n("MwEJ"),x=n("IDmD"),v=y.extend({type:"series.heatmap",getInitialData:function(m,p){return f(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var m=x.get(this.get("coordinateSystem"));if(m&&m.dimensions)return m.dimensions[0]==="lng"&&m.dimensions[1]==="lat"},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});R.exports=v},OaEy:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("bKJz"),v=n.n(x),m=n("R9oj")},"Of+w":function(R,D,n){var y=n("Cwc5"),f=n("Kz5y"),x=y(f,"WeakMap");R.exports=x},Ol7k:function(R,D,n){"use strict";var y=n("PKem"),f=n("ZX9x");y.b.Sider=f.b,D.a=y.b},OlYY:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("ProS"),v=n("bYtY"),m=n("ItGF"),p=n("4NO4"),d=n("UOVi"),u=n("zDms"),s=v.each,i=d.eachAxisDim,t=x.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(r,a,c){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var h=o(r);this.settledOption=h,this.mergeDefaultAndTheme(r,c),this.doInit(h)},mergeOption:function(r){var a=o(r);v.merge(this.option,r,!0),v.merge(this.settledOption,a,!0),this.doInit(a)},doInit:function(r){var a=this.option;m.canvasSupported||(a.realtime=!1),this._setDefaultThrottle(r),e(this,r);var c=this.settledOption;s([["start","startValue"],["end","endValue"]],function(h,g){this._rangePropMode[g]==="value"&&(a[h[0]]=c[h[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var r=this._axisProxies;this.eachTargetAxis(function(a,c,h,g){var A=this.dependentModels[a.axis][c],b=A.__dzAxisProxy||(A.__dzAxisProxy=new u(a.name,c,this,g));r[a.name+"_"+c]=b},this)},_resetTarget:function(){var r=this.option,a=this._judgeAutoMode();i(function(c){var h=c.axisIndex;r[h]=p.normalizeToArray(r[h])},this),a==="axisIndex"?this._autoSetAxisIndex():a==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var r=this.option,a=!1;i(function(h){r[h.axisIndex]!=null&&(a=!0)},this);var c=r.orient;if(c==null&&a)return"orient";if(!a)return c==null&&(r.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var r=!0,a=this.get("orient",!0),c=this.option,h=this.dependentModels;if(r){var g=a==="vertical"?"y":"x";h[g+"Axis"].length?(c[g+"AxisIndex"]=[0],r=!1):s(h.singleAxis,function(A){r&&A.get("orient",!0)===a&&(c.singleAxisIndex=[A.componentIndex],r=!1)})}r&&i(function(A){if(!r)return;var b=[],S=this.dependentModels[A.axis];if(S.length&&!b.length)for(var E=0,C=S.length;E<C;E++)S[E].get("type")==="category"&&b.push(E);c[A.axisIndex]=b,b.length&&(r=!1)},this),r&&this.ecModel.eachSeries(function(A){this._isSeriesHasAllAxesTypeOf(A,"value")&&i(function(b){var S=c[b.axisIndex],E=A.get(b.axisIndex),C=A.get(b.axisId),_=A.ecModel.queryComponents({mainType:b.axis,index:E,id:C})[0];E=_.componentIndex,v.indexOf(S,E)<0&&S.push(E)})},this)},_autoSetOrient:function(){var r;this.eachTargetAxis(function(a){!r&&(r=a.name)},this),this.option.orient=r==="y"?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(r,a){var c=!0;return i(function(h){var g=r.get(h.axisIndex),A=this.dependentModels[h.axis][g];(!A||A.get("type")!==a)&&(c=!1)},this),c},_setDefaultThrottle:function(r){if(r.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 r;return i(function(a){if(r==null){var c=this.get(a.axisIndex);c.length&&(r=this.dependentModels[a.axis][c[0]])}},this),r},eachTargetAxis:function(r,a){var c=this.ecModel;i(function(h){s(this.get(h.axisIndex),function(g){r.call(a,h,g,this,c)},this)},this)},getAxisProxy:function(r,a){return this._axisProxies[r+"_"+a]},getAxisModel:function(r,a){var c=this.getAxisProxy(r,a);return c&&c.getAxisModel()},setRawRange:function(r){var a=this.option,c=this.settledOption;s([["start","startValue"],["end","endValue"]],function(h){(r[h[0]]!=null||r[h[1]]!=null)&&(a[h[0]]=c[h[0]]=r[h[0]],a[h[1]]=c[h[1]]=r[h[1]])},this),e(this,r)},setCalculatedRange:function(r){var a=this.option;s(["start","startValue","end","endValue"],function(c){a[c]=r[c]})},getPercentRange:function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},getValueRange:function(r,a){if(r==null&&a==null){var c=this.findRepresentativeAxisProxy();if(c)return c.getDataValueWindow()}else return this.getAxisProxy(r,a).getDataValueWindow()},findRepresentativeAxisProxy:function(r){if(r)return r.__dzAxisProxy;var a=this._axisProxies;for(var c in a)if(a.hasOwnProperty(c)&&a[c].hostedBy(this))return a[c];for(var c in a)if(a.hasOwnProperty(c)&&!a[c].hostedBy(this))return a[c]},getRangePropMode:function(){return this._rangePropMode.slice()}});function o(r){var a={};return s(["start","end","startValue","endValue","throttle"],function(c){r.hasOwnProperty(c)&&(a[c]=r[c])}),a}function e(r,a){var c=r._rangePropMode,h=r.get("rangeMode");s([["start","startValue"],["end","endValue"]],function(g,A){var b=a[g[0]]!=null,S=a[g[1]]!=null;b&&!S?c[A]="percent":!b&&S?c[A]="value":h?c[A]=h[A]:b&&(c[A]="percent")})}var l=t;R.exports=l},OnYD:function(R,D,n){},"Oy/b":function(R,D,n){(function(f,x){R.exports=x()})(typeof self!="undefined"?self:this,function(){return function(y){var f={};function x(v){if(f[v])return f[v].exports;var m=f[v]={i:v,l:!1,exports:{}};return y[v].call(m.exports,m,m.exports,x),m.l=!0,m.exports}return x.m=y,x.c=f,x.d=function(v,m,p){x.o(v,m)||Object.defineProperty(v,m,{enumerable:!0,get:p})},x.r=function(v){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},x.t=function(v,m){if(m&1&&(v=x(v)),m&8)return v;if(m&4&&typeof v=="object"&&v&&v.__esModule)return v;var p=Object.create(null);if(x.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:v}),m&2&&typeof v!="string")for(var d in v)x.d(p,d,function(u){return v[u]}.bind(null,d));return p},x.n=function(v){var m=v&&v.__esModule?function(){return v.default}:function(){return v};return x.d(m,"a",m),m},x.o=function(v,m){return Object.prototype.hasOwnProperty.call(v,m)},x.p="",x(x.s=1)}([function(y,f,x){},function(y,f,x){"use strict";x.r(f);var v=x(0),m=function(){function Nt(ce,Se,Ie){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=ce,this.start=Se,this.end=Ie}return Nt.range=function(Se,Ie){return Ie?!Se||!Se.loc||!Ie.loc||Se.loc.lexer!==Ie.loc.lexer?null:new Nt(Se.loc.lexer,Se.loc.start,Ie.loc.end):Se&&Se.loc},Nt}(),p=function(){function Nt(Se,Ie){this.text=void 0,this.loc=void 0,this.text=Se,this.loc=Ie}var ce=Nt.prototype;return ce.range=function(Ie,Je){return new Nt(Je,m.range(this,Ie))},Nt}(),d=function Nt(ce,Se){this.position=void 0;var Ie="KaTeX parse error: "+ce,Je,Dt=Se&&Se.loc;if(Dt&&Dt.start<=Dt.end){var sr=Dt.lexer.input;Je=Dt.start;var Jr=Dt.end;Je===sr.length?Ie+=" at end of input: ":Ie+=" at position "+(Je+1)+": ";var gn=sr.slice(Je,Jr).replace(/[^]/g,"$&\u0332"),Dn;Je>15?Dn="\u2026"+sr.slice(Je-15,Je):Dn=sr.slice(0,Je);var ui;Jr+15<sr.length?ui=sr.slice(Jr,Jr+15)+"\u2026":ui=sr.slice(Jr),Ie+=Dn+gn+ui}var Si=new Error(Ie);return Si.name="ParseError",Si.__proto__=Nt.prototype,Si.position=Je,Si};d.prototype.__proto__=Error.prototype;var u=d,s=function(ce,Se){return ce.indexOf(Se)!==-1},i=function(ce,Se){return ce===void 0?Se:ce},t=/([A-Z])/g,o=function(ce){return ce.replace(t,"-$1").toLowerCase()},e={"&":"&",">":">","<":"<",'"':""","'":"'"},l=/[&><"']/g;function r(Nt){return String(Nt).replace(l,function(ce){return e[ce]})}var a=function Nt(ce){return ce.type==="ordgroup"||ce.type==="color"?ce.body.length===1?Nt(ce.body[0]):ce:ce.type==="font"?Nt(ce.body):ce},c=function(ce){var Se=a(ce);return Se.type==="mathord"||Se.type==="textord"||Se.type==="atom"},h=function(ce){if(!ce)throw new Error("Expected non-null, but got "+String(ce));return ce},g=function(ce){var Se=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(ce);return Se!=null?Se[1]:"_relative"},A={contains:s,deflt:i,escape:r,hyphenate:o,getBaseElem:a,isCharacterBox:c,protocolFromUrl:g},b=function(){function Nt(Se){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,Se=Se||{},this.displayMode=A.deflt(Se.displayMode,!1),this.output=A.deflt(Se.output,"htmlAndMathml"),this.leqno=A.deflt(Se.leqno,!1),this.fleqn=A.deflt(Se.fleqn,!1),this.throwOnError=A.deflt(Se.throwOnError,!0),this.errorColor=A.deflt(Se.errorColor,"#cc0000"),this.macros=Se.macros||{},this.minRuleThickness=Math.max(0,A.deflt(Se.minRuleThickness,0)),this.colorIsTextColor=A.deflt(Se.colorIsTextColor,!1),this.strict=A.deflt(Se.strict,"warn"),this.trust=A.deflt(Se.trust,!1),this.maxSize=Math.max(0,A.deflt(Se.maxSize,Infinity)),this.maxExpand=Math.max(0,A.deflt(Se.maxExpand,1e3))}var ce=Nt.prototype;return ce.reportNonstrict=function(Ie,Je,Dt){var sr=this.strict;if(typeof sr=="function"&&(sr=sr(Ie,Je,Dt)),!sr||sr==="ignore")return;if(sr===!0||sr==="error")throw new u("LaTeX-incompatible input and strict mode is set to 'error': "+(Je+" ["+Ie+"]"),Dt);sr==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Je+" ["+Ie+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+sr+"': "+Je+" ["+Ie+"]"))},ce.useStrictBehavior=function(Ie,Je,Dt){var sr=this.strict;if(typeof sr=="function")try{sr=sr(Ie,Je,Dt)}catch(Jr){sr="error"}return!sr||sr==="ignore"?!1:sr===!0||sr==="error"?!0:sr==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Je+" ["+Ie+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+sr+"': "+Je+" ["+Ie+"]")),!1)},ce.isTrusted=function(Ie){Ie.url&&!Ie.protocol&&(Ie.protocol=A.protocolFromUrl(Ie.url));var Je=typeof this.trust=="function"?this.trust(Ie):this.trust;return Boolean(Je)},Nt}(),S=function(){function Nt(Se,Ie,Je){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=Se,this.size=Ie,this.cramped=Je}var ce=Nt.prototype;return ce.sup=function(){return M[j[this.id]]},ce.sub=function(){return M[P[this.id]]},ce.fracNum=function(){return M[X[this.id]]},ce.fracDen=function(){return M[F[this.id]]},ce.cramp=function(){return M[U[this.id]]},ce.text=function(){return M[K[this.id]]},ce.isTight=function(){return this.size>=2},Nt}(),E=0,C=1,_=2,T=3,w=4,O=5,I=6,k=7,M=[new S(E,0,!1),new S(C,0,!0),new S(_,1,!1),new S(T,1,!0),new S(w,2,!1),new S(O,2,!0),new S(I,3,!1),new S(k,3,!0)],j=[w,O,w,O,I,k,I,k],P=[O,O,O,O,k,k,k,k],X=[_,T,w,O,I,k,I,k],F=[T,T,O,O,k,k,k,k],U=[C,C,T,T,O,O,k,k],K=[E,C,_,T,_,T,_,T],z={DISPLAY:M[E],TEXT:M[_],SCRIPT:M[w],SCRIPTSCRIPT:M[I]},V=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Q(Nt){for(var ce=0;ce<V.length;ce++)for(var Se=V[ce],Ie=0;Ie<Se.blocks.length;Ie++){var Je=Se.blocks[Ie];if(Nt>=Je[0]&&Nt<=Je[1])return Se.name}return null}var G=[];V.forEach(function(Nt){return Nt.blocks.forEach(function(ce){return G.push.apply(G,ce)})});function te(Nt){for(var ce=0;ce<G.length;ce+=2)if(Nt>=G[ce]&&Nt<=G[ce+1])return!0;return!1}var q=80,se=function(ce,Se){return"M95,"+(622+ce+Se)+`
|
|
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
|
c69,-144,104.5,-217.7,106.5,-221
|
|
|
l`+ce/2.075+" -"+ce+`
|
|
|
c5.3,-9.3,12,-14,20,-14
|
|
|
H400000v`+(40+ce)+`H845.2724
|
|
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
|
M`+(834+ce)+" "+Se+"h400000v"+(40+ce)+"h-400000z"},re=function(ce,Se){return"M263,"+(601+ce+Se)+`c0.7,0,18,39.7,52,119
|
|
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
|
l`+ce/2.084+" -"+ce+`
|
|
|
c4.7,-7.3,11,-11,19,-11
|
|
|
H40000v`+(40+ce)+`H1012.3
|
|
|
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
|
M`+(1001+ce)+" "+Se+"h400000v"+(40+ce)+"h-400000z"},xe=function(ce,Se){return"M983 "+(10+ce+Se)+`
|
|
|
l`+ce/3.13+" -"+ce+`
|
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+ce)+`
|
|
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
|
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
|
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
|
M`+(1001+ce)+" "+Se+"h400000v"+(40+ce)+"h-400000z"},Oe=function(ce,Se){return"M424,"+(2398+ce+Se)+`
|
|
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
|
l`+ce/4.223+" -"+ce+`c4,-6.7,10,-10,18,-10 H400000
|
|
|
v`+(40+ce)+`H1014.6
|
|
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
|
c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+ce)+" "+Se+`
|
|
|
h400000v`+(40+ce)+"h-400000z"},Me=function(ce,Se){return"M473,"+(2713+ce+Se)+`
|
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+ce/5.298+" -"+ce+`
|
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+ce)+`H1017.7
|
|
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
|
606zM`+(1001+ce)+" "+Se+"h400000v"+(40+ce)+"H1017.7z"},Qe=function(ce,Se,Ie){var Je=Ie-54-Se-ce;return"M702 "+(ce+Se)+"H400000"+(40+ce)+`
|
|
|
H742v`+Je+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
219 661 l218 661zM702 `+Se+"H400000v"+(40+ce)+"H742z"},Ve=function(ce,Se,Ie){Se=1e3*Se;var Je="";switch(ce){case"sqrtMain":Je=se(Se,q);break;case"sqrtSize1":Je=re(Se,q);break;case"sqrtSize2":Je=xe(Se,q);break;case"sqrtSize3":Je=Oe(Se,q);break;case"sqrtSize4":Je=Me(Se,q);break;case"sqrtTall":Je=Qe(Se,q,Ie)}return Je},ut={doubleleftarrow:`M262 157
|
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
|
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
|
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Fe=function(){function Nt(Se){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=Se,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var ce=Nt.prototype;return ce.hasClass=function(Ie){return A.contains(this.classes,Ie)},ce.toNode=function(){for(var Ie=document.createDocumentFragment(),Je=0;Je<this.children.length;Je++)Ie.appendChild(this.children[Je].toNode());return Ie},ce.toMarkup=function(){for(var Ie="",Je=0;Je<this.children.length;Je++)Ie+=this.children[Je].toMarkup();return Ie},ce.toText=function(){var Ie=function(Dt){return Dt.toText()};return this.children.map(Ie).join("")},Nt}(),ue=function(ce){return ce.filter(function(Se){return Se}).join(" ")},et=function(ce,Se,Ie){if(this.classes=ce||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=Ie||{},Se){Se.style.isTight()&&this.classes.push("mtight");var Je=Se.getColor();Je&&(this.style.color=Je)}},he=function(ce){var Se=document.createElement(ce);Se.className=ue(this.classes);for(var Ie in this.style)this.style.hasOwnProperty(Ie)&&(Se.style[Ie]=this.style[Ie]);for(var Je in this.attributes)this.attributes.hasOwnProperty(Je)&&Se.setAttribute(Je,this.attributes[Je]);for(var Dt=0;Dt<this.children.length;Dt++)Se.appendChild(this.children[Dt].toNode());return Se},J=function(ce){var Se="<"+ce;this.classes.length&&(Se+=' class="'+A.escape(ue(this.classes))+'"');var Ie="";for(var Je in this.style)this.style.hasOwnProperty(Je)&&(Ie+=A.hyphenate(Je)+":"+this.style[Je]+";");Ie&&(Se+=' style="'+A.escape(Ie)+'"');for(var Dt in this.attributes)this.attributes.hasOwnProperty(Dt)&&(Se+=" "+Dt+'="'+A.escape(this.attributes[Dt])+'"');Se+=">";for(var sr=0;sr<this.children.length;sr++)Se+=this.children[sr].toMarkup();return Se+="</"+ce+">",Se},Y=function(){function Nt(Se,Ie,Je,Dt){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,et.call(this,Se,Je,Dt),this.children=Ie||[]}var ce=Nt.prototype;return ce.setAttribute=function(Ie,Je){this.attributes[Ie]=Je},ce.hasClass=function(Ie){return A.contains(this.classes,Ie)},ce.toNode=function(){return he.call(this,"span")},ce.toMarkup=function(){return J.call(this,"span")},Nt}(),$=function(){function Nt(Se,Ie,Je,Dt){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,et.call(this,Ie,Dt),this.children=Je||[],this.setAttribute("href",Se)}var ce=Nt.prototype;return ce.setAttribute=function(Ie,Je){this.attributes[Ie]=Je},ce.hasClass=function(Ie){return A.contains(this.classes,Ie)},ce.toNode=function(){return he.call(this,"a")},ce.toMarkup=function(){return J.call(this,"a")},Nt}(),de=function(){function Nt(Se,Ie,Je){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=Ie,this.src=Se,this.classes=["mord"],this.style=Je}var ce=Nt.prototype;return ce.hasClass=function(Ie){return A.contains(this.classes,Ie)},ce.toNode=function(){var Ie=document.createElement("img");Ie.src=this.src,Ie.alt=this.alt,Ie.className="mord";for(var Je in this.style)this.style.hasOwnProperty(Je)&&(Ie.style[Je]=this.style[Je]);return Ie},ce.toMarkup=function(){var Ie="<img src='"+this.src+" 'alt='"+this.alt+"' ",Je="";for(var Dt in this.style)this.style.hasOwnProperty(Dt)&&(Je+=A.hyphenate(Dt)+":"+this.style[Dt]+";");return Je&&(Ie+=' style="'+A.escape(Je)+'"'),Ie+="'/>",Ie},Nt}(),be={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Ce=function(){function Nt(Se,Ie,Je,Dt,sr,Jr,gn,Dn){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=Se,this.height=Ie||0,this.depth=Je||0,this.italic=Dt||0,this.skew=sr||0,this.width=Jr||0,this.classes=gn||[],this.style=Dn||{},this.maxFontSize=0;var ui=Q(this.text.charCodeAt(0));ui&&this.classes.push(ui+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=be[this.text])}var ce=Nt.prototype;return ce.hasClass=function(Ie){return A.contains(this.classes,Ie)},ce.toNode=function(){var Ie=document.createTextNode(this.text),Je=null;this.italic>0&&(Je=document.createElement("span"),Je.style.marginRight=this.italic+"em"),this.classes.length>0&&(Je=Je||document.createElement("span"),Je.className=ue(this.classes));for(var Dt in this.style)this.style.hasOwnProperty(Dt)&&(Je=Je||document.createElement("span"),Je.style[Dt]=this.style[Dt]);return Je?(Je.appendChild(Ie),Je):Ie},ce.toMarkup=function(){var Ie=!1,Je="<span";this.classes.length&&(Ie=!0,Je+=' class="',Je+=A.escape(ue(this.classes)),Je+='"');var Dt="";this.italic>0&&(Dt+="margin-right:"+this.italic+"em;");for(var sr in this.style)this.style.hasOwnProperty(sr)&&(Dt+=A.hyphenate(sr)+":"+this.style[sr]+";");Dt&&(Ie=!0,Je+=' style="'+A.escape(Dt)+'"');var Jr=A.escape(this.text);return Ie?(Je+=">",Je+=Jr,Je+="</span>",Je):Jr},Nt}(),Be=function(){function Nt(Se,Ie){this.children=void 0,this.attributes=void 0,this.children=Se||[],this.attributes=Ie||{}}var ce=Nt.prototype;return ce.toNode=function(){var Ie="http://www.w3.org/2000/svg",Je=document.createElementNS(Ie,"svg");for(var Dt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Dt)&&Je.setAttribute(Dt,this.attributes[Dt]);for(var sr=0;sr<this.children.length;sr++)Je.appendChild(this.children[sr].toNode());return Je},ce.toMarkup=function(){var Ie="<svg";for(var Je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Je)&&(Ie+=" "+Je+"='"+this.attributes[Je]+"'");Ie+=">";for(var Dt=0;Dt<this.children.length;Dt++)Ie+=this.children[Dt].toMarkup();return Ie+="</svg>",Ie},Nt}(),fe=function(){function Nt(Se,Ie){this.pathName=void 0,this.alternate=void 0,this.pathName=Se,this.alternate=Ie}var ce=Nt.prototype;return ce.toNode=function(){var Ie="http://www.w3.org/2000/svg",Je=document.createElementNS(Ie,"path");return this.alternate?Je.setAttribute("d",this.alternate):Je.setAttribute("d",ut[this.pathName]),Je},ce.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+ut[this.pathName]+"'/>"},Nt}(),we=function(){function Nt(Se){this.attributes=void 0,this.attributes=Se||{}}var ce=Nt.prototype;return ce.toNode=function(){var Ie="http://www.w3.org/2000/svg",Je=document.createElementNS(Ie,"line");for(var Dt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Dt)&&Je.setAttribute(Dt,this.attributes[Dt]);return Je},ce.toMarkup=function(){var Ie="<line";for(var Je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Je)&&(Ie+=" "+Je+"='"+this.attributes[Je]+"'");return Ie+="/>",Ie},Nt}();function Re(Nt){if(Nt instanceof Ce)return Nt;throw new Error("Expected symbolNode but got "+String(Nt)+".")}function rt(Nt){if(Nt instanceof Y)return Nt;throw new Error("Expected span<HtmlDomNode> but got "+String(Nt)+".")}var St={"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]}},ft={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]},He={\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 er(Nt,ce){St[Nt]=ce}function ct(Nt,ce,Se){if(!St[ce])throw new Error("Font metrics not found for font: "+ce+".");var Ie=Nt.charCodeAt(0),Je=St[ce][Ie];if(!Je&&Nt[0]in He&&(Ie=He[Nt[0]].charCodeAt(0),Je=St[ce][Ie]),!Je&&Se==="text"&&(te(Ie)&&(Je=St[ce][77])),Je)return{depth:Je[0],height:Je[1],italic:Je[2],skew:Je[3],width:Je[4]}}var Kt={};function fr(Nt){var ce;if(Nt>=5?ce=0:Nt>=3?ce=1:ce=2,!Kt[ce]){var Se=Kt[ce]={cssEmPerMu:ft.quad[ce]/18};for(var Ie in ft)ft.hasOwnProperty(Ie)&&(Se[Ie]=ft[Ie][ce])}return Kt[ce]}var Gt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Pt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Xt={math:{},text:{}},Ge=Xt;function pe(Nt,ce,Se,Ie,Je,Dt){Xt[Nt][Je]={font:ce,group:Se,replace:Ie},Dt&&Ie&&(Xt[Nt][Ie]=Xt[Nt][Je])}var oe="math",lt="text",qe="main",ge="ams",Ht="accent-token",vr="bin",At="close",ir="inner",lr="mathord",dn="op-token",Ft="open",ur="punct",Jt="rel",pt="spacing",at="textord";pe(oe,qe,Jt,"\u2261","\\equiv",!0),pe(oe,qe,Jt,"\u227A","\\prec",!0),pe(oe,qe,Jt,"\u227B","\\succ",!0),pe(oe,qe,Jt,"\u223C","\\sim",!0),pe(oe,qe,Jt,"\u22A5","\\perp"),pe(oe,qe,Jt,"\u2AAF","\\preceq",!0),pe(oe,qe,Jt,"\u2AB0","\\succeq",!0),pe(oe,qe,Jt,"\u2243","\\simeq",!0),pe(oe,qe,Jt,"\u2223","\\mid",!0),pe(oe,qe,Jt,"\u226A","\\ll",!0),pe(oe,qe,Jt,"\u226B","\\gg",!0),pe(oe,qe,Jt,"\u224D","\\asymp",!0),pe(oe,qe,Jt,"\u2225","\\parallel"),pe(oe,qe,Jt,"\u22C8","\\bowtie",!0),pe(oe,qe,Jt,"\u2323","\\smile",!0),pe(oe,qe,Jt,"\u2291","\\sqsubseteq",!0),pe(oe,qe,Jt,"\u2292","\\sqsupseteq",!0),pe(oe,qe,Jt,"\u2250","\\doteq",!0),pe(oe,qe,Jt,"\u2322","\\frown",!0),pe(oe,qe,Jt,"\u220B","\\ni",!0),pe(oe,qe,Jt,"\u221D","\\propto",!0),pe(oe,qe,Jt,"\u22A2","\\vdash",!0),pe(oe,qe,Jt,"\u22A3","\\dashv",!0),pe(oe,qe,Jt,"\u220B","\\owns"),pe(oe,qe,ur,".","\\ldotp"),pe(oe,qe,ur,"\u22C5","\\cdotp"),pe(oe,qe,at,"#","\\#"),pe(lt,qe,at,"#","\\#"),pe(oe,qe,at,"&","\\&"),pe(lt,qe,at,"&","\\&"),pe(oe,qe,at,"\u2135","\\aleph",!0),pe(oe,qe,at,"\u2200","\\forall",!0),pe(oe,qe,at,"\u210F","\\hbar",!0),pe(oe,qe,at,"\u2203","\\exists",!0),pe(oe,qe,at,"\u2207","\\nabla",!0),pe(oe,qe,at,"\u266D","\\flat",!0),pe(oe,qe,at,"\u2113","\\ell",!0),pe(oe,qe,at,"\u266E","\\natural",!0),pe(oe,qe,at,"\u2663","\\clubsuit",!0),pe(oe,qe,at,"\u2118","\\wp",!0),pe(oe,qe,at,"\u266F","\\sharp",!0),pe(oe,qe,at,"\u2662","\\diamondsuit",!0),pe(oe,qe,at,"\u211C","\\Re",!0),pe(oe,qe,at,"\u2661","\\heartsuit",!0),pe(oe,qe,at,"\u2111","\\Im",!0),pe(oe,qe,at,"\u2660","\\spadesuit",!0),pe(lt,qe,at,"\xA7","\\S",!0),pe(lt,qe,at,"\xB6","\\P",!0),pe(oe,qe,at,"\u2020","\\dag"),pe(lt,qe,at,"\u2020","\\dag"),pe(lt,qe,at,"\u2020","\\textdagger"),pe(oe,qe,at,"\u2021","\\ddag"),pe(lt,qe,at,"\u2021","\\ddag"),pe(lt,qe,at,"\u2021","\\textdaggerdbl"),pe(oe,qe,At,"\u23B1","\\rmoustache",!0),pe(oe,qe,Ft,"\u23B0","\\lmoustache",!0),pe(oe,qe,At,"\u27EF","\\rgroup",!0),pe(oe,qe,Ft,"\u27EE","\\lgroup",!0),pe(oe,qe,vr,"\u2213","\\mp",!0),pe(oe,qe,vr,"\u2296","\\ominus",!0),pe(oe,qe,vr,"\u228E","\\uplus",!0),pe(oe,qe,vr,"\u2293","\\sqcap",!0),pe(oe,qe,vr,"\u2217","\\ast"),pe(oe,qe,vr,"\u2294","\\sqcup",!0),pe(oe,qe,vr,"\u25EF","\\bigcirc"),pe(oe,qe,vr,"\u2219","\\bullet"),pe(oe,qe,vr,"\u2021","\\ddagger"),pe(oe,qe,vr,"\u2240","\\wr",!0),pe(oe,qe,vr,"\u2A3F","\\amalg"),pe(oe,qe,vr,"&","\\And"),pe(oe,qe,Jt,"\u27F5","\\longleftarrow",!0),pe(oe,qe,Jt,"\u21D0","\\Leftarrow",!0),pe(oe,qe,Jt,"\u27F8","\\Longleftarrow",!0),pe(oe,qe,Jt,"\u27F6","\\longrightarrow",!0),pe(oe,qe,Jt,"\u21D2","\\Rightarrow",!0),pe(oe,qe,Jt,"\u27F9","\\Longrightarrow",!0),pe(oe,qe,Jt,"\u2194","\\leftrightarrow",!0),pe(oe,qe,Jt,"\u27F7","\\longleftrightarrow",!0),pe(oe,qe,Jt,"\u21D4","\\Leftrightarrow",!0),pe(oe,qe,Jt,"\u27FA","\\Longleftrightarrow",!0),pe(oe,qe,Jt,"\u21A6","\\mapsto",!0),pe(oe,qe,Jt,"\u27FC","\\longmapsto",!0),pe(oe,qe,Jt,"\u2197","\\nearrow",!0),pe(oe,qe,Jt,"\u21A9","\\hookleftarrow",!0),pe(oe,qe,Jt,"\u21AA","\\hookrightarrow",!0),pe(oe,qe,Jt,"\u2198","\\searrow",!0),pe(oe,qe,Jt,"\u21BC","\\leftharpoonup",!0),pe(oe,qe,Jt,"\u21C0","\\rightharpoonup",!0),pe(oe,qe,Jt,"\u2199","\\swarrow",!0),pe(oe,qe,Jt,"\u21BD","\\leftharpoondown",!0),pe(oe,qe,Jt,"\u21C1","\\rightharpoondown",!0),pe(oe,qe,Jt,"\u2196","\\nwarrow",!0),pe(oe,qe,Jt,"\u21CC","\\rightleftharpoons",!0),pe(oe,ge,Jt,"\u226E","\\nless",!0),pe(oe,ge,Jt,"\uE010","\\@nleqslant"),pe(oe,ge,Jt,"\uE011","\\@nleqq"),pe(oe,ge,Jt,"\u2A87","\\lneq",!0),pe(oe,ge,Jt,"\u2268","\\lneqq",!0),pe(oe,ge,Jt,"\uE00C","\\@lvertneqq"),pe(oe,ge,Jt,"\u22E6","\\lnsim",!0),pe(oe,ge,Jt,"\u2A89","\\lnapprox",!0),pe(oe,ge,Jt,"\u2280","\\nprec",!0),pe(oe,ge,Jt,"\u22E0","\\npreceq",!0),pe(oe,ge,Jt,"\u22E8","\\precnsim",!0),pe(oe,ge,Jt,"\u2AB9","\\precnapprox",!0),pe(oe,ge,Jt,"\u2241","\\nsim",!0),pe(oe,ge,Jt,"\uE006","\\@nshortmid"),pe(oe,ge,Jt,"\u2224","\\nmid",!0),pe(oe,ge,Jt,"\u22AC","\\nvdash",!0),pe(oe,ge,Jt,"\u22AD","\\nvDash",!0),pe(oe,ge,Jt,"\u22EA","\\ntriangleleft"),pe(oe,ge,Jt,"\u22EC","\\ntrianglelefteq",!0),pe(oe,ge,Jt,"\u228A","\\subsetneq",!0),pe(oe,ge,Jt,"\uE01A","\\@varsubsetneq"),pe(oe,ge,Jt,"\u2ACB","\\subsetneqq",!0),pe(oe,ge,Jt,"\uE017","\\@varsubsetneqq"),pe(oe,ge,Jt,"\u226F","\\ngtr",!0),pe(oe,ge,Jt,"\uE00F","\\@ngeqslant"),pe(oe,ge,Jt,"\uE00E","\\@ngeqq"),pe(oe,ge,Jt,"\u2A88","\\gneq",!0),pe(oe,ge,Jt,"\u2269","\\gneqq",!0),pe(oe,ge,Jt,"\uE00D","\\@gvertneqq"),pe(oe,ge,Jt,"\u22E7","\\gnsim",!0),pe(oe,ge,Jt,"\u2A8A","\\gnapprox",!0),pe(oe,ge,Jt,"\u2281","\\nsucc",!0),pe(oe,ge,Jt,"\u22E1","\\nsucceq",!0),pe(oe,ge,Jt,"\u22E9","\\succnsim",!0),pe(oe,ge,Jt,"\u2ABA","\\succnapprox",!0),pe(oe,ge,Jt,"\u2246","\\ncong",!0),pe(oe,ge,Jt,"\uE007","\\@nshortparallel"),pe(oe,ge,Jt,"\u2226","\\nparallel",!0),pe(oe,ge,Jt,"\u22AF","\\nVDash",!0),pe(oe,ge,Jt,"\u22EB","\\ntriangleright"),pe(oe,ge,Jt,"\u22ED","\\ntrianglerighteq",!0),pe(oe,ge,Jt,"\uE018","\\@nsupseteqq"),pe(oe,ge,Jt,"\u228B","\\supsetneq",!0),pe(oe,ge,Jt,"\uE01B","\\@varsupsetneq"),pe(oe,ge,Jt,"\u2ACC","\\supsetneqq",!0),pe(oe,ge,Jt,"\uE019","\\@varsupsetneqq"),pe(oe,ge,Jt,"\u22AE","\\nVdash",!0),pe(oe,ge,Jt,"\u2AB5","\\precneqq",!0),pe(oe,ge,Jt,"\u2AB6","\\succneqq",!0),pe(oe,ge,Jt,"\uE016","\\@nsubseteqq"),pe(oe,ge,vr,"\u22B4","\\unlhd"),pe(oe,ge,vr,"\u22B5","\\unrhd"),pe(oe,ge,Jt,"\u219A","\\nleftarrow",!0),pe(oe,ge,Jt,"\u219B","\\nrightarrow",!0),pe(oe,ge,Jt,"\u21CD","\\nLeftarrow",!0),pe(oe,ge,Jt,"\u21CF","\\nRightarrow",!0),pe(oe,ge,Jt,"\u21AE","\\nleftrightarrow",!0),pe(oe,ge,Jt,"\u21CE","\\nLeftrightarrow",!0),pe(oe,ge,Jt,"\u25B3","\\vartriangle"),pe(oe,ge,at,"\u210F","\\hslash"),pe(oe,ge,at,"\u25BD","\\triangledown"),pe(oe,ge,at,"\u25CA","\\lozenge"),pe(oe,ge,at,"\u24C8","\\circledS"),pe(oe,ge,at,"\xAE","\\circledR"),pe(lt,ge,at,"\xAE","\\circledR"),pe(oe,ge,at,"\u2221","\\measuredangle",!0),pe(oe,ge,at,"\u2204","\\nexists"),pe(oe,ge,at,"\u2127","\\mho"),pe(oe,ge,at,"\u2132","\\Finv",!0),pe(oe,ge,at,"\u2141","\\Game",!0),pe(oe,ge,at,"\u2035","\\backprime"),pe(oe,ge,at,"\u25B2","\\blacktriangle"),pe(oe,ge,at,"\u25BC","\\blacktriangledown"),pe(oe,ge,at,"\u25A0","\\blacksquare"),pe(oe,ge,at,"\u29EB","\\blacklozenge"),pe(oe,ge,at,"\u2605","\\bigstar"),pe(oe,ge,at,"\u2222","\\sphericalangle",!0),pe(oe,ge,at,"\u2201","\\complement",!0),pe(oe,ge,at,"\xF0","\\eth",!0),pe(oe,ge,at,"\u2571","\\diagup"),pe(oe,ge,at,"\u2572","\\diagdown"),pe(oe,ge,at,"\u25A1","\\square"),pe(oe,ge,at,"\u25A1","\\Box"),pe(oe,ge,at,"\u25CA","\\Diamond"),pe(oe,ge,at,"\xA5","\\yen",!0),pe(lt,ge,at,"\xA5","\\yen",!0),pe(oe,ge,at,"\u2713","\\checkmark",!0),pe(lt,ge,at,"\u2713","\\checkmark"),pe(oe,ge,at,"\u2136","\\beth",!0),pe(oe,ge,at,"\u2138","\\daleth",!0),pe(oe,ge,at,"\u2137","\\gimel",!0),pe(oe,ge,at,"\u03DD","\\digamma",!0),pe(oe,ge,at,"\u03F0","\\varkappa"),pe(oe,ge,Ft,"\u250C","\\ulcorner",!0),pe(oe,ge,At,"\u2510","\\urcorner",!0),pe(oe,ge,Ft,"\u2514","\\llcorner",!0),pe(oe,ge,At,"\u2518","\\lrcorner",!0),pe(oe,ge,Jt,"\u2266","\\leqq",!0),pe(oe,ge,Jt,"\u2A7D","\\leqslant",!0),pe(oe,ge,Jt,"\u2A95","\\eqslantless",!0),pe(oe,ge,Jt,"\u2272","\\lesssim",!0),pe(oe,ge,Jt,"\u2A85","\\lessapprox",!0),pe(oe,ge,Jt,"\u224A","\\approxeq",!0),pe(oe,ge,vr,"\u22D6","\\lessdot"),pe(oe,ge,Jt,"\u22D8","\\lll",!0),pe(oe,ge,Jt,"\u2276","\\lessgtr",!0),pe(oe,ge,Jt,"\u22DA","\\lesseqgtr",!0),pe(oe,ge,Jt,"\u2A8B","\\lesseqqgtr",!0),pe(oe,ge,Jt,"\u2251","\\doteqdot"),pe(oe,ge,Jt,"\u2253","\\risingdotseq",!0),pe(oe,ge,Jt,"\u2252","\\fallingdotseq",!0),pe(oe,ge,Jt,"\u223D","\\backsim",!0),pe(oe,ge,Jt,"\u22CD","\\backsimeq",!0),pe(oe,ge,Jt,"\u2AC5","\\subseteqq",!0),pe(oe,ge,Jt,"\u22D0","\\Subset",!0),pe(oe,ge,Jt,"\u228F","\\sqsubset",!0),pe(oe,ge,Jt,"\u227C","\\preccurlyeq",!0),pe(oe,ge,Jt,"\u22DE","\\curlyeqprec",!0),pe(oe,ge,Jt,"\u227E","\\precsim",!0),pe(oe,ge,Jt,"\u2AB7","\\precapprox",!0),pe(oe,ge,Jt,"\u22B2","\\vartriangleleft"),pe(oe,ge,Jt,"\u22B4","\\trianglelefteq"),pe(oe,ge,Jt,"\u22A8","\\vDash",!0),pe(oe,ge,Jt,"\u22AA","\\Vvdash",!0),pe(oe,ge,Jt,"\u2323","\\smallsmile"),pe(oe,ge,Jt,"\u2322","\\smallfrown"),pe(oe,ge,Jt,"\u224F","\\bumpeq",!0),pe(oe,ge,Jt,"\u224E","\\Bumpeq",!0),pe(oe,ge,Jt,"\u2267","\\geqq",!0),pe(oe,ge,Jt,"\u2A7E","\\geqslant",!0),pe(oe,ge,Jt,"\u2A96","\\eqslantgtr",!0),pe(oe,ge,Jt,"\u2273","\\gtrsim",!0),pe(oe,ge,Jt,"\u2A86","\\gtrapprox",!0),pe(oe,ge,vr,"\u22D7","\\gtrdot"),pe(oe,ge,Jt,"\u22D9","\\ggg",!0),pe(oe,ge,Jt,"\u2277","\\gtrless",!0),pe(oe,ge,Jt,"\u22DB","\\gtreqless",!0),pe(oe,ge,Jt,"\u2A8C","\\gtreqqless",!0),pe(oe,ge,Jt,"\u2256","\\eqcirc",!0),pe(oe,ge,Jt,"\u2257","\\circeq",!0),pe(oe,ge,Jt,"\u225C","\\triangleq",!0),pe(oe,ge,Jt,"\u223C","\\thicksim"),pe(oe,ge,Jt,"\u2248","\\thickapprox"),pe(oe,ge,Jt,"\u2AC6","\\supseteqq",!0),pe(oe,ge,Jt,"\u22D1","\\Supset",!0),pe(oe,ge,Jt,"\u2290","\\sqsupset",!0),pe(oe,ge,Jt,"\u227D","\\succcurlyeq",!0),pe(oe,ge,Jt,"\u22DF","\\curlyeqsucc",!0),pe(oe,ge,Jt,"\u227F","\\succsim",!0),pe(oe,ge,Jt,"\u2AB8","\\succapprox",!0),pe(oe,ge,Jt,"\u22B3","\\vartriangleright"),pe(oe,ge,Jt,"\u22B5","\\trianglerighteq"),pe(oe,ge,Jt,"\u22A9","\\Vdash",!0),pe(oe,ge,Jt,"\u2223","\\shortmid"),pe(oe,ge,Jt,"\u2225","\\shortparallel"),pe(oe,ge,Jt,"\u226C","\\between",!0),pe(oe,ge,Jt,"\u22D4","\\pitchfork",!0),pe(oe,ge,Jt,"\u221D","\\varpropto"),pe(oe,ge,Jt,"\u25C0","\\blacktriangleleft"),pe(oe,ge,Jt,"\u2234","\\therefore",!0),pe(oe,ge,Jt,"\u220D","\\backepsilon"),pe(oe,ge,Jt,"\u25B6","\\blacktriangleright"),pe(oe,ge,Jt,"\u2235","\\because",!0),pe(oe,ge,Jt,"\u22D8","\\llless"),pe(oe,ge,Jt,"\u22D9","\\gggtr"),pe(oe,ge,vr,"\u22B2","\\lhd"),pe(oe,ge,vr,"\u22B3","\\rhd"),pe(oe,ge,Jt,"\u2242","\\eqsim",!0),pe(oe,qe,Jt,"\u22C8","\\Join"),pe(oe,ge,Jt,"\u2251","\\Doteq",!0),pe(oe,ge,vr,"\u2214","\\dotplus",!0),pe(oe,ge,vr,"\u2216","\\smallsetminus"),pe(oe,ge,vr,"\u22D2","\\Cap",!0),pe(oe,ge,vr,"\u22D3","\\Cup",!0),pe(oe,ge,vr,"\u2A5E","\\doublebarwedge",!0),pe(oe,ge,vr,"\u229F","\\boxminus",!0),pe(oe,ge,vr,"\u229E","\\boxplus",!0),pe(oe,ge,vr,"\u22C7","\\divideontimes",!0),pe(oe,ge,vr,"\u22C9","\\ltimes",!0),pe(oe,ge,vr,"\u22CA","\\rtimes",!0),pe(oe,ge,vr,"\u22CB","\\leftthreetimes",!0),pe(oe,ge,vr,"\u22CC","\\rightthreetimes",!0),pe(oe,ge,vr,"\u22CF","\\curlywedge",!0),pe(oe,ge,vr,"\u22CE","\\curlyvee",!0),pe(oe,ge,vr,"\u229D","\\circleddash",!0),pe(oe,ge,vr,"\u229B","\\circledast",!0),pe(oe,ge,vr,"\u22C5","\\centerdot"),pe(oe,ge,vr,"\u22BA","\\intercal",!0),pe(oe,ge,vr,"\u22D2","\\doublecap"),pe(oe,ge,vr,"\u22D3","\\doublecup"),pe(oe,ge,vr,"\u22A0","\\boxtimes",!0),pe(oe,ge,Jt,"\u21E2","\\dashrightarrow",!0),pe(oe,ge,Jt,"\u21E0","\\dashleftarrow",!0),pe(oe,ge,Jt,"\u21C7","\\leftleftarrows",!0),pe(oe,ge,Jt,"\u21C6","\\leftrightarrows",!0),pe(oe,ge,Jt,"\u21DA","\\Lleftarrow",!0),pe(oe,ge,Jt,"\u219E","\\twoheadleftarrow",!0),pe(oe,ge,Jt,"\u21A2","\\leftarrowtail",!0),pe(oe,ge,Jt,"\u21AB","\\looparrowleft",!0),pe(oe,ge,Jt,"\u21CB","\\leftrightharpoons",!0),pe(oe,ge,Jt,"\u21B6","\\curvearrowleft",!0),pe(oe,ge,Jt,"\u21BA","\\circlearrowleft",!0),pe(oe,ge,Jt,"\u21B0","\\Lsh",!0),pe(oe,ge,Jt,"\u21C8","\\upuparrows",!0),pe(oe,ge,Jt,"\u21BF","\\upharpoonleft",!0),pe(oe,ge,Jt,"\u21C3","\\downharpoonleft",!0),pe(oe,ge,Jt,"\u22B8","\\multimap",!0),pe(oe,ge,Jt,"\u21AD","\\leftrightsquigarrow",!0),pe(oe,ge,Jt,"\u21C9","\\rightrightarrows",!0),pe(oe,ge,Jt,"\u21C4","\\rightleftarrows",!0),pe(oe,ge,Jt,"\u21A0","\\twoheadrightarrow",!0),pe(oe,ge,Jt,"\u21A3","\\rightarrowtail",!0),pe(oe,ge,Jt,"\u21AC","\\looparrowright",!0),pe(oe,ge,Jt,"\u21B7","\\curvearrowright",!0),pe(oe,ge,Jt,"\u21BB","\\circlearrowright",!0),pe(oe,ge,Jt,"\u21B1","\\Rsh",!0),pe(oe,ge,Jt,"\u21CA","\\downdownarrows",!0),pe(oe,ge,Jt,"\u21BE","\\upharpoonright",!0),pe(oe,ge,Jt,"\u21C2","\\downharpoonright",!0),pe(oe,ge,Jt,"\u21DD","\\rightsquigarrow",!0),pe(oe,ge,Jt,"\u21DD","\\leadsto"),pe(oe,ge,Jt,"\u21DB","\\Rrightarrow",!0),pe(oe,ge,Jt,"\u21BE","\\restriction"),pe(oe,qe,at,"\u2018","`"),pe(oe,qe,at,"$","\\$"),pe(lt,qe,at,"$","\\$"),pe(lt,qe,at,"$","\\textdollar"),pe(oe,qe,at,"%","\\%"),pe(lt,qe,at,"%","\\%"),pe(oe,qe,at,"_","\\_"),pe(lt,qe,at,"_","\\_"),pe(lt,qe,at,"_","\\textunderscore"),pe(oe,qe,at,"\u2220","\\angle",!0),pe(oe,qe,at,"\u221E","\\infty",!0),pe(oe,qe,at,"\u2032","\\prime"),pe(oe,qe,at,"\u25B3","\\triangle"),pe(oe,qe,at,"\u0393","\\Gamma",!0),pe(oe,qe,at,"\u0394","\\Delta",!0),pe(oe,qe,at,"\u0398","\\Theta",!0),pe(oe,qe,at,"\u039B","\\Lambda",!0),pe(oe,qe,at,"\u039E","\\Xi",!0),pe(oe,qe,at,"\u03A0","\\Pi",!0),pe(oe,qe,at,"\u03A3","\\Sigma",!0),pe(oe,qe,at,"\u03A5","\\Upsilon",!0),pe(oe,qe,at,"\u03A6","\\Phi",!0),pe(oe,qe,at,"\u03A8","\\Psi",!0),pe(oe,qe,at,"\u03A9","\\Omega",!0),pe(oe,qe,at,"A","\u0391"),pe(oe,qe,at,"B","\u0392"),pe(oe,qe,at,"E","\u0395"),pe(oe,qe,at,"Z","\u0396"),pe(oe,qe,at,"H","\u0397"),pe(oe,qe,at,"I","\u0399"),pe(oe,qe,at,"K","\u039A"),pe(oe,qe,at,"M","\u039C"),pe(oe,qe,at,"N","\u039D"),pe(oe,qe,at,"O","\u039F"),pe(oe,qe,at,"P","\u03A1"),pe(oe,qe,at,"T","\u03A4"),pe(oe,qe,at,"X","\u03A7"),pe(oe,qe,at,"\xAC","\\neg",!0),pe(oe,qe,at,"\xAC","\\lnot"),pe(oe,qe,at,"\u22A4","\\top"),pe(oe,qe,at,"\u22A5","\\bot"),pe(oe,qe,at,"\u2205","\\emptyset"),pe(oe,ge,at,"\u2205","\\varnothing"),pe(oe,qe,lr,"\u03B1","\\alpha",!0),pe(oe,qe,lr,"\u03B2","\\beta",!0),pe(oe,qe,lr,"\u03B3","\\gamma",!0),pe(oe,qe,lr,"\u03B4","\\delta",!0),pe(oe,qe,lr,"\u03F5","\\epsilon",!0),pe(oe,qe,lr,"\u03B6","\\zeta",!0),pe(oe,qe,lr,"\u03B7","\\eta",!0),pe(oe,qe,lr,"\u03B8","\\theta",!0),pe(oe,qe,lr,"\u03B9","\\iota",!0),pe(oe,qe,lr,"\u03BA","\\kappa",!0),pe(oe,qe,lr,"\u03BB","\\lambda",!0),pe(oe,qe,lr,"\u03BC","\\mu",!0),pe(oe,qe,lr,"\u03BD","\\nu",!0),pe(oe,qe,lr,"\u03BE","\\xi",!0),pe(oe,qe,lr,"\u03BF","\\omicron",!0),pe(oe,qe,lr,"\u03C0","\\pi",!0),pe(oe,qe,lr,"\u03C1","\\rho",!0),pe(oe,qe,lr,"\u03C3","\\sigma",!0),pe(oe,qe,lr,"\u03C4","\\tau",!0),pe(oe,qe,lr,"\u03C5","\\upsilon",!0),pe(oe,qe,lr,"\u03D5","\\phi",!0),pe(oe,qe,lr,"\u03C7","\\chi",!0),pe(oe,qe,lr,"\u03C8","\\psi",!0),pe(oe,qe,lr,"\u03C9","\\omega",!0),pe(oe,qe,lr,"\u03B5","\\varepsilon",!0),pe(oe,qe,lr,"\u03D1","\\vartheta",!0),pe(oe,qe,lr,"\u03D6","\\varpi",!0),pe(oe,qe,lr,"\u03F1","\\varrho",!0),pe(oe,qe,lr,"\u03C2","\\varsigma",!0),pe(oe,qe,lr,"\u03C6","\\varphi",!0),pe(oe,qe,vr,"\u2217","*"),pe(oe,qe,vr,"+","+"),pe(oe,qe,vr,"\u2212","-"),pe(oe,qe,vr,"\u22C5","\\cdot",!0),pe(oe,qe,vr,"\u2218","\\circ"),pe(oe,qe,vr,"\xF7","\\div",!0),pe(oe,qe,vr,"\xB1","\\pm",!0),pe(oe,qe,vr,"\xD7","\\times",!0),pe(oe,qe,vr,"\u2229","\\cap",!0),pe(oe,qe,vr,"\u222A","\\cup",!0),pe(oe,qe,vr,"\u2216","\\setminus"),pe(oe,qe,vr,"\u2227","\\land"),pe(oe,qe,vr,"\u2228","\\lor"),pe(oe,qe,vr,"\u2227","\\wedge",!0),pe(oe,qe,vr,"\u2228","\\vee",!0),pe(oe,qe,at,"\u221A","\\surd"),pe(oe,qe,Ft,"(","("),pe(oe,qe,Ft,"[","["),pe(oe,qe,Ft,"\u27E8","\\langle",!0),pe(oe,qe,Ft,"\u2223","\\lvert"),pe(oe,qe,Ft,"\u2225","\\lVert"),pe(oe,qe,At,")",")"),pe(oe,qe,At,"]","]"),pe(oe,qe,At,"?","?"),pe(oe,qe,At,"!","!"),pe(oe,qe,At,"\u27E9","\\rangle",!0),pe(oe,qe,At,"\u2223","\\rvert"),pe(oe,qe,At,"\u2225","\\rVert"),pe(oe,qe,Jt,"=","="),pe(oe,qe,Jt,"<","<"),pe(oe,qe,Jt,">",">"),pe(oe,qe,Jt,":",":"),pe(oe,qe,Jt,"\u2248","\\approx",!0),pe(oe,qe,Jt,"\u2245","\\cong",!0),pe(oe,qe,Jt,"\u2265","\\ge"),pe(oe,qe,Jt,"\u2265","\\geq",!0),pe(oe,qe,Jt,"\u2190","\\gets"),pe(oe,qe,Jt,">","\\gt"),pe(oe,qe,Jt,"\u2208","\\in",!0),pe(oe,qe,Jt,"\uE020","\\@not"),pe(oe,qe,Jt,"\u2282","\\subset",!0),pe(oe,qe,Jt,"\u2283","\\supset",!0),pe(oe,qe,Jt,"\u2286","\\subseteq",!0),pe(oe,qe,Jt,"\u2287","\\supseteq",!0),pe(oe,ge,Jt,"\u2288","\\nsubseteq",!0),pe(oe,ge,Jt,"\u2289","\\nsupseteq",!0),pe(oe,qe,Jt,"\u22A8","\\models"),pe(oe,qe,Jt,"\u2190","\\leftarrow",!0),pe(oe,qe,Jt,"\u2264","\\le"),pe(oe,qe,Jt,"\u2264","\\leq",!0),pe(oe,qe,Jt,"<","\\lt"),pe(oe,qe,Jt,"\u2192","\\rightarrow",!0),pe(oe,qe,Jt,"\u2192","\\to"),pe(oe,ge,Jt,"\u2271","\\ngeq",!0),pe(oe,ge,Jt,"\u2270","\\nleq",!0),pe(oe,qe,pt,"\xA0","\\ "),pe(oe,qe,pt,"\xA0","~"),pe(oe,qe,pt,"\xA0","\\space"),pe(oe,qe,pt,"\xA0","\\nobreakspace"),pe(lt,qe,pt,"\xA0","\\ "),pe(lt,qe,pt,"\xA0","~"),pe(lt,qe,pt,"\xA0","\\space"),pe(lt,qe,pt,"\xA0","\\nobreakspace"),pe(oe,qe,pt,null,"\\nobreak"),pe(oe,qe,pt,null,"\\allowbreak"),pe(oe,qe,ur,",",","),pe(oe,qe,ur,";",";"),pe(oe,ge,vr,"\u22BC","\\barwedge",!0),pe(oe,ge,vr,"\u22BB","\\veebar",!0),pe(oe,qe,vr,"\u2299","\\odot",!0),pe(oe,qe,vr,"\u2295","\\oplus",!0),pe(oe,qe,vr,"\u2297","\\otimes",!0),pe(oe,qe,at,"\u2202","\\partial",!0),pe(oe,qe,vr,"\u2298","\\oslash",!0),pe(oe,ge,vr,"\u229A","\\circledcirc",!0),pe(oe,ge,vr,"\u22A1","\\boxdot",!0),pe(oe,qe,vr,"\u25B3","\\bigtriangleup"),pe(oe,qe,vr,"\u25BD","\\bigtriangledown"),pe(oe,qe,vr,"\u2020","\\dagger"),pe(oe,qe,vr,"\u22C4","\\diamond"),pe(oe,qe,vr,"\u22C6","\\star"),pe(oe,qe,vr,"\u25C3","\\triangleleft"),pe(oe,qe,vr,"\u25B9","\\triangleright"),pe(oe,qe,Ft,"{","\\{"),pe(lt,qe,at,"{","\\{"),pe(lt,qe,at,"{","\\textbraceleft"),pe(oe,qe,At,"}","\\}"),pe(lt,qe,at,"}","\\}"),pe(lt,qe,at,"}","\\textbraceright"),pe(oe,qe,Ft,"{","\\lbrace"),pe(oe,qe,At,"}","\\rbrace"),pe(oe,qe,Ft,"[","\\lbrack"),pe(lt,qe,at,"[","\\lbrack"),pe(oe,qe,At,"]","\\rbrack"),pe(lt,qe,at,"]","\\rbrack"),pe(oe,qe,Ft,"(","\\lparen"),pe(oe,qe,At,")","\\rparen"),pe(lt,qe,at,"<","\\textless"),pe(lt,qe,at,">","\\textgreater"),pe(oe,qe,Ft,"\u230A","\\lfloor",!0),pe(oe,qe,At,"\u230B","\\rfloor",!0),pe(oe,qe,Ft,"\u2308","\\lceil",!0),pe(oe,qe,At,"\u2309","\\rceil",!0),pe(oe,qe,at,"\\","\\backslash"),pe(oe,qe,at,"\u2223","|"),pe(oe,qe,at,"\u2223","\\vert"),pe(lt,qe,at,"|","\\textbar"),pe(oe,qe,at,"\u2225","\\|"),pe(oe,qe,at,"\u2225","\\Vert"),pe(lt,qe,at,"\u2225","\\textbardbl"),pe(lt,qe,at,"~","\\textasciitilde"),pe(lt,qe,at,"\\","\\textbackslash"),pe(lt,qe,at,"^","\\textasciicircum"),pe(oe,qe,Jt,"\u2191","\\uparrow",!0),pe(oe,qe,Jt,"\u21D1","\\Uparrow",!0),pe(oe,qe,Jt,"\u2193","\\downarrow",!0),pe(oe,qe,Jt,"\u21D3","\\Downarrow",!0),pe(oe,qe,Jt,"\u2195","\\updownarrow",!0),pe(oe,qe,Jt,"\u21D5","\\Updownarrow",!0),pe(oe,qe,dn,"\u2210","\\coprod"),pe(oe,qe,dn,"\u22C1","\\bigvee"),pe(oe,qe,dn,"\u22C0","\\bigwedge"),pe(oe,qe,dn,"\u2A04","\\biguplus"),pe(oe,qe,dn,"\u22C2","\\bigcap"),pe(oe,qe,dn,"\u22C3","\\bigcup"),pe(oe,qe,dn,"\u222B","\\int"),pe(oe,qe,dn,"\u222B","\\intop"),pe(oe,qe,dn,"\u222C","\\iint"),pe(oe,qe,dn,"\u222D","\\iiint"),pe(oe,qe,dn,"\u220F","\\prod"),pe(oe,qe,dn,"\u2211","\\sum"),pe(oe,qe,dn,"\u2A02","\\bigotimes"),pe(oe,qe,dn,"\u2A01","\\bigoplus"),pe(oe,qe,dn,"\u2A00","\\bigodot"),pe(oe,qe,dn,"\u222E","\\oint"),pe(oe,qe,dn,"\u222F","\\oiint"),pe(oe,qe,dn,"\u2230","\\oiiint"),pe(oe,qe,dn,"\u2A06","\\bigsqcup"),pe(oe,qe,dn,"\u222B","\\smallint"),pe(lt,qe,ir,"\u2026","\\textellipsis"),pe(oe,qe,ir,"\u2026","\\mathellipsis"),pe(lt,qe,ir,"\u2026","\\ldots",!0),pe(oe,qe,ir,"\u2026","\\ldots",!0),pe(oe,qe,ir,"\u22EF","\\@cdots",!0),pe(oe,qe,ir,"\u22F1","\\ddots",!0),pe(oe,qe,at,"\u22EE","\\varvdots"),pe(oe,qe,Ht,"\u02CA","\\acute"),pe(oe,qe,Ht,"\u02CB","\\grave"),pe(oe,qe,Ht,"\xA8","\\ddot"),pe(oe,qe,Ht,"~","\\tilde"),pe(oe,qe,Ht,"\u02C9","\\bar"),pe(oe,qe,Ht,"\u02D8","\\breve"),pe(oe,qe,Ht,"\u02C7","\\check"),pe(oe,qe,Ht,"^","\\hat"),pe(oe,qe,Ht,"\u20D7","\\vec"),pe(oe,qe,Ht,"\u02D9","\\dot"),pe(oe,qe,Ht,"\u02DA","\\mathring"),pe(oe,qe,lr,"\u0131","\\imath",!0),pe(oe,qe,lr,"\u0237","\\jmath",!0),pe(lt,qe,at,"\u0131","\\i",!0),pe(lt,qe,at,"\u0237","\\j",!0),pe(lt,qe,at,"\xDF","\\ss",!0),pe(lt,qe,at,"\xE6","\\ae",!0),pe(lt,qe,at,"\xE6","\\ae",!0),pe(lt,qe,at,"\u0153","\\oe",!0),pe(lt,qe,at,"\xF8","\\o",!0),pe(lt,qe,at,"\xC6","\\AE",!0),pe(lt,qe,at,"\u0152","\\OE",!0),pe(lt,qe,at,"\xD8","\\O",!0),pe(lt,qe,Ht,"\u02CA","\\'"),pe(lt,qe,Ht,"\u02CB","\\`"),pe(lt,qe,Ht,"\u02C6","\\^"),pe(lt,qe,Ht,"\u02DC","\\~"),pe(lt,qe,Ht,"\u02C9","\\="),pe(lt,qe,Ht,"\u02D8","\\u"),pe(lt,qe,Ht,"\u02D9","\\."),pe(lt,qe,Ht,"\u02DA","\\r"),pe(lt,qe,Ht,"\u02C7","\\v"),pe(lt,qe,Ht,"\xA8",'\\"'),pe(lt,qe,Ht,"\u02DD","\\H"),pe(lt,qe,Ht,"\u25EF","\\textcircled");var Pr={"--":!0,"---":!0,"``":!0,"''":!0};pe(lt,qe,at,"\u2013","--"),pe(lt,qe,at,"\u2013","\\textendash"),pe(lt,qe,at,"\u2014","---"),pe(lt,qe,at,"\u2014","\\textemdash"),pe(lt,qe,at,"\u2018","`"),pe(lt,qe,at,"\u2018","\\textquoteleft"),pe(lt,qe,at,"\u2019","'"),pe(lt,qe,at,"\u2019","\\textquoteright"),pe(lt,qe,at,"\u201C","``"),pe(lt,qe,at,"\u201C","\\textquotedblleft"),pe(lt,qe,at,"\u201D","''"),pe(lt,qe,at,"\u201D","\\textquotedblright"),pe(oe,qe,at,"\xB0","\\degree",!0),pe(lt,qe,at,"\xB0","\\degree"),pe(lt,qe,at,"\xB0","\\textdegree",!0),pe(oe,qe,lr,"\xA3","\\pounds"),pe(oe,qe,lr,"\xA3","\\mathsterling",!0),pe(lt,qe,lr,"\xA3","\\pounds"),pe(lt,qe,lr,"\xA3","\\textsterling",!0),pe(oe,ge,at,"\u2720","\\maltese"),pe(lt,ge,at,"\u2720","\\maltese"),pe(lt,qe,pt,"\xA0","\\ "),pe(lt,qe,pt,"\xA0"," "),pe(lt,qe,pt,"\xA0","~");for(var un='0123456789/@."',_n=0;_n<un.length;_n++){var Xn=un.charAt(_n);pe(oe,qe,at,Xn,Xn)}for(var xi='0123456789!@*()-=+[]<>|";:?/.,',Pn=0;Pn<xi.length;Pn++){var Un=xi.charAt(Pn);pe(lt,qe,at,Un,Un)}for(var $t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",xt=0;xt<$t.length;xt++){var De=$t.charAt(xt);pe(oe,qe,lr,De,De),pe(lt,qe,at,De,De)}pe(oe,ge,at,"C","\u2102"),pe(lt,ge,at,"C","\u2102"),pe(oe,ge,at,"H","\u210D"),pe(lt,ge,at,"H","\u210D"),pe(oe,ge,at,"N","\u2115"),pe(lt,ge,at,"N","\u2115"),pe(oe,ge,at,"P","\u2119"),pe(lt,ge,at,"P","\u2119"),pe(oe,ge,at,"Q","\u211A"),pe(lt,ge,at,"Q","\u211A"),pe(oe,ge,at,"R","\u211D"),pe(lt,ge,at,"R","\u211D"),pe(oe,ge,at,"Z","\u2124"),pe(lt,ge,at,"Z","\u2124"),pe(oe,qe,lr,"h","\u210E"),pe(lt,qe,lr,"h","\u210E");for(var ke="",Pe=0;Pe<$t.length;Pe++){var tt=$t.charAt(Pe);ke=String.fromCharCode(55349,56320+Pe),pe(oe,qe,lr,tt,ke),pe(lt,qe,at,tt,ke),ke=String.fromCharCode(55349,56372+Pe),pe(oe,qe,lr,tt,ke),pe(lt,qe,at,tt,ke),ke=String.fromCharCode(55349,56424+Pe),pe(oe,qe,lr,tt,ke),pe(lt,qe,at,tt,ke),ke=String.fromCharCode(55349,56580+Pe),pe(oe,qe,lr,tt,ke),pe(lt,qe,at,tt,ke),ke=String.fromCharCode(55349,56736+Pe),pe(oe,qe,lr,tt,ke),pe(lt,qe,at,tt,ke),ke=String.fromCharCode(55349,56788+Pe),pe(oe,qe,lr,tt,ke),pe(lt,qe,at,tt,ke),ke=String.fromCharCode(55349,56840+Pe),pe(oe,qe,lr,tt,ke),pe(lt,qe,at,tt,ke),ke=String.fromCharCode(55349,56944+Pe),pe(oe,qe,lr,tt,ke),pe(lt,qe,at,tt,ke),Pe<26&&(ke=String.fromCharCode(55349,56632+Pe),pe(oe,qe,lr,tt,ke),pe(lt,qe,at,tt,ke),ke=String.fromCharCode(55349,56476+Pe),pe(oe,qe,lr,tt,ke),pe(lt,qe,at,tt,ke))}ke=String.fromCharCode(55349,56668),pe(oe,qe,lr,"k",ke),pe(lt,qe,at,"k",ke);for(var yt=0;yt<10;yt++){var Et=yt.toString();ke=String.fromCharCode(55349,57294+yt),pe(oe,qe,lr,Et,ke),pe(lt,qe,at,Et,ke),ke=String.fromCharCode(55349,57314+yt),pe(oe,qe,lr,Et,ke),pe(lt,qe,at,Et,ke),ke=String.fromCharCode(55349,57324+yt),pe(oe,qe,lr,Et,ke),pe(lt,qe,at,Et,ke),ke=String.fromCharCode(55349,57334+yt),pe(oe,qe,lr,Et,ke),pe(lt,qe,at,Et,ke)}for(var Yt="\xC7\xD0\xDE\xE7\xFE",Rr=0;Rr<Yt.length;Rr++){var zr=Yt.charAt(Rr);pe(oe,qe,lr,zr,zr),pe(lt,qe,at,zr,zr)}pe(lt,qe,at,"\xF0","\xF0"),pe(lt,qe,at,"\u2013","\u2013"),pe(lt,qe,at,"\u2014","\u2014"),pe(lt,qe,at,"\u2018","\u2018"),pe(lt,qe,at,"\u2019","\u2019"),pe(lt,qe,at,"\u201C","\u201C"),pe(lt,qe,at,"\u201D","\u201D");var hn=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathdefault","textit","Math-Italic"],["mathdefault","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],jt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],vt=function(ce,Se){var Ie=ce.charCodeAt(0),Je=ce.charCodeAt(1),Dt=(Ie-55296)*1024+(Je-56320)+65536,sr=Se==="math"?0:1;if(119808<=Dt&&Dt<120484){var Jr=Math.floor((Dt-119808)/26);return[hn[Jr][2],hn[Jr][sr]]}else if(120782<=Dt&&Dt<=120831){var gn=Math.floor((Dt-120782)/10);return[jt[gn][2],jt[gn][sr]]}else{if(Dt===120485||Dt===120486)return[hn[0][2],hn[0][sr]];if(120486<Dt&&Dt<120782)return["",""];throw new u("Unsupported character: "+ce)}},bt=[[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]],cr=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Qt=function(ce,Se){return Se.size<2?ce:bt[ce-1][Se.size-1]},Mt=function(){function Nt(Se){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=Se.style,this.color=Se.color,this.size=Se.size||Nt.BASESIZE,this.textSize=Se.textSize||this.size,this.phantom=!!Se.phantom,this.font=Se.font||"",this.fontFamily=Se.fontFamily||"",this.fontWeight=Se.fontWeight||"",this.fontShape=Se.fontShape||"",this.sizeMultiplier=cr[this.size-1],this.maxSize=Se.maxSize,this.minRuleThickness=Se.minRuleThickness,this._fontMetrics=void 0}var ce=Nt.prototype;return ce.extend=function(Ie){var Je={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var Dt in Ie)Ie.hasOwnProperty(Dt)&&(Je[Dt]=Ie[Dt]);return new Nt(Je)},ce.havingStyle=function(Ie){return this.style===Ie?this:this.extend({style:Ie,size:Qt(this.textSize,Ie)})},ce.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},ce.havingSize=function(Ie){return this.size===Ie&&this.textSize===Ie?this:this.extend({style:this.style.text(),size:Ie,textSize:Ie,sizeMultiplier:cr[Ie-1]})},ce.havingBaseStyle=function(Ie){Ie=Ie||this.style.text();var Je=Qt(Nt.BASESIZE,Ie);return this.size===Je&&this.textSize===Nt.BASESIZE&&this.style===Ie?this:this.extend({style:Ie,size:Je})},ce.havingBaseSizing=function(){var Ie;switch(this.style.id){case 4:case 5:Ie=3;break;case 6:case 7:Ie=1;break;default:Ie=6}return this.extend({style:this.style.text(),size:Ie})},ce.withColor=function(Ie){return this.extend({color:Ie})},ce.withPhantom=function(){return this.extend({phantom:!0})},ce.withFont=function(Ie){return this.extend({font:Ie})},ce.withTextFontFamily=function(Ie){return this.extend({fontFamily:Ie,font:""})},ce.withTextFontWeight=function(Ie){return this.extend({fontWeight:Ie,font:""})},ce.withTextFontShape=function(Ie){return this.extend({fontShape:Ie,font:""})},ce.sizingClasses=function(Ie){return Ie.size!==this.size?["sizing","reset-size"+Ie.size,"size"+this.size]:[]},ce.baseSizingClasses=function(){return this.size!==Nt.BASESIZE?["sizing","reset-size"+this.size,"size"+Nt.BASESIZE]:[]},ce.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=fr(this.size)),this._fontMetrics},ce.getColor=function(){return this.phantom?"transparent":this.color},Nt}();Mt.BASESIZE=6;var tr=Mt,Rt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},qt={ex:!0,em:!0,mu:!0},Hr=function(ce){return typeof ce!="string"&&(ce=ce.unit),ce in Rt||ce in qt||ce==="ex"},Nr=function(ce,Se){var Ie;if(ce.unit in Rt)Ie=Rt[ce.unit]/Se.fontMetrics().ptPerEm/Se.sizeMultiplier;else if(ce.unit==="mu")Ie=Se.fontMetrics().cssEmPerMu;else{var Je;if(Se.style.isTight()?Je=Se.havingStyle(Se.style.text()):Je=Se,ce.unit==="ex")Ie=Je.fontMetrics().xHeight;else if(ce.unit==="em")Ie=Je.fontMetrics().quad;else throw new u("Invalid unit: '"+ce.unit+"'");Je!==Se&&(Ie*=Je.sizeMultiplier/Se.sizeMultiplier)}return Math.min(ce.number*Ie,Se.maxSize)},Dr=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],cn=function(ce,Se,Ie){return Ge[Ie][ce]&&Ge[Ie][ce].replace&&(ce=Ge[Ie][ce].replace),{value:ce,metrics:ct(ce,Se,Ie)}},An=function(ce,Se,Ie,Je,Dt){var sr=cn(ce,Se,Ie),Jr=sr.metrics;ce=sr.value;var gn;if(Jr){var Dn=Jr.italic;(Ie==="text"||Je&&Je.font==="mathit")&&(Dn=0),gn=new Ce(ce,Jr.height,Jr.depth,Dn,Jr.skew,Jr.width,Dt)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+ce+"' in style '"+Se+"' and mode '"+Ie+"'")),gn=new Ce(ce,0,0,0,0,0,Dt);if(Je){gn.maxFontSize=Je.sizeMultiplier,Je.style.isTight()&&gn.classes.push("mtight");var ui=Je.getColor();ui&&(gn.style.color=ui)}return gn},ri=function(ce,Se,Ie,Je){return Je===void 0&&(Je=[]),Ie.font==="boldsymbol"&&cn(ce,"Main-Bold",Se).metrics?An(ce,"Main-Bold",Se,Ie,Je.concat(["mathbf"])):ce==="\\"||Ge[Se][ce].font==="main"?An(ce,"Main-Regular",Se,Ie,Je):An(ce,"AMS-Regular",Se,Ie,Je.concat(["amsrm"]))},$n=function(ce,Se,Ie,Je){return/[0-9]/.test(ce.charAt(0))||A.contains(Dr,ce)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},fi=function(ce,Se,Ie,Je){return A.contains(Dr,ce)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(ce.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},_i=function(ce,Se,Ie,Je){return cn(ce,"Math-BoldItalic",Se).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Di=function(ce,Se,Ie){var Je=ce.mode,Dt=ce.text,sr=["mord"],Jr=Je==="math"||Je==="text"&&Se.font,gn=Jr?Se.font:Se.fontFamily;if(Dt.charCodeAt(0)===55349){var Dn=vt(Dt,Je),ui=Dn[0],Si=Dn[1];return An(Dt,ui,Je,Se,sr.concat(Si))}else if(gn){var vi,Qi;if(gn==="boldsymbol"||gn==="mathnormal"){var sa=gn==="boldsymbol"?_i(Dt,Je,Se,sr):fi(Dt,Je,Se,sr);vi=sa.fontName,Qi=[sa.fontClass]}else A.contains(Dr,Dt)?(vi="Main-Italic",Qi=["mathit"]):Jr?(vi=mn[gn].fontName,Qi=[gn]):(vi=Yr(gn,Se.fontWeight,Se.fontShape),Qi=[gn,Se.fontWeight,Se.fontShape]);if(cn(Dt,vi,Je).metrics)return An(Dt,vi,Je,Se,sr.concat(Qi));if(Pr.hasOwnProperty(Dt)&&vi.substr(0,10)==="Typewriter"){for(var Ua=[],no=0;no<Dt.length;no++)Ua.push(An(Dt[no],vi,Je,Se,sr.concat(Qi)));return ot(Ua)}}if(Ie==="mathord"){var Wo=$n(Dt,Je,Se,sr);return An(Dt,Wo.fontName,Je,Se,sr.concat([Wo.fontClass]))}else if(Ie==="textord"){var Zo=Ge[Je][Dt]&&Ge[Je][Dt].font;if(Zo==="ams"){var Bo=Yr("amsrm",Se.fontWeight,Se.fontShape);return An(Dt,Bo,Je,Se,sr.concat("amsrm",Se.fontWeight,Se.fontShape))}else if(Zo==="main"||!Zo){var Es=Yr("textrm",Se.fontWeight,Se.fontShape);return An(Dt,Es,Je,Se,sr.concat(Se.fontWeight,Se.fontShape))}else{var As=Yr(Zo,Se.fontWeight,Se.fontShape);return An(Dt,As,Je,Se,sr.concat(As,Se.fontWeight,Se.fontShape))}}else throw new Error("unexpected type: "+Ie+" in makeOrd")},Wi=function(ce,Se){if(ue(ce.classes)!==ue(Se.classes)||ce.skew!==Se.skew||ce.maxFontSize!==Se.maxFontSize)return!1;for(var Ie in ce.style)if(ce.style.hasOwnProperty(Ie)&&ce.style[Ie]!==Se.style[Ie])return!1;for(var Je in Se.style)if(Se.style.hasOwnProperty(Je)&&ce.style[Je]!==Se.style[Je])return!1;return!0},it=function(ce){for(var Se=0;Se<ce.length-1;Se++){var Ie=ce[Se],Je=ce[Se+1];Ie instanceof Ce&&Je instanceof Ce&&Wi(Ie,Je)&&(Ie.text+=Je.text,Ie.height=Math.max(Ie.height,Je.height),Ie.depth=Math.max(Ie.depth,Je.depth),Ie.italic=Je.italic,ce.splice(Se+1,1),Se--)}return ce},Le=function(ce){for(var Se=0,Ie=0,Je=0,Dt=0;Dt<ce.children.length;Dt++){var sr=ce.children[Dt];sr.height>Se&&(Se=sr.height),sr.depth>Ie&&(Ie=sr.depth),sr.maxFontSize>Je&&(Je=sr.maxFontSize)}ce.height=Se,ce.depth=Ie,ce.maxFontSize=Je},je=function(ce,Se,Ie,Je){var Dt=new Y(ce,Se,Ie,Je);return Le(Dt),Dt},Xe=function(ce,Se,Ie,Je){return new Y(ce,Se,Ie,Je)},nt=function(ce,Se,Ie){var Je=je([ce],[],Se);return Je.height=Math.max(Ie||Se.fontMetrics().defaultRuleThickness,Se.minRuleThickness),Je.style.borderBottomWidth=Je.height+"em",Je.maxFontSize=1,Je},Ze=function(ce,Se,Ie,Je){var Dt=new $(ce,Se,Ie,Je);return Le(Dt),Dt},ot=function(ce){var Se=new Fe(ce);return Le(Se),Se},Ct=function(ce,Se){return ce instanceof Fe?je([],[ce],Se):ce},gt=function(ce){if(ce.positionType==="individualShift"){for(var Se=ce.children,Ie=[Se[0]],Je=-Se[0].shift-Se[0].elem.depth,Dt=Je,sr=1;sr<Se.length;sr++){var Jr=-Se[sr].shift-Dt-Se[sr].elem.depth,gn=Jr-(Se[sr-1].elem.height+Se[sr-1].elem.depth);Dt=Dt+Jr,Ie.push({type:"kern",size:gn}),Ie.push(Se[sr])}return{children:Ie,depth:Je}}var Dn;if(ce.positionType==="top"){for(var ui=ce.positionData,Si=0;Si<ce.children.length;Si++){var vi=ce.children[Si];ui-=vi.type==="kern"?vi.size:vi.elem.height+vi.elem.depth}Dn=ui}else if(ce.positionType==="bottom")Dn=-ce.positionData;else{var Qi=ce.children[0];if(Qi.type!=="elem")throw new Error('First child must have type "elem".');if(ce.positionType==="shift")Dn=-Qi.elem.depth-ce.positionData;else if(ce.positionType==="firstBaseline")Dn=-Qi.elem.depth;else throw new Error("Invalid positionType "+ce.positionType+".")}return{children:ce.children,depth:Dn}},pr=function(ce,Se){for(var Ie=gt(ce),Je=Ie.children,Dt=Ie.depth,sr=0,Jr=0;Jr<Je.length;Jr++){var gn=Je[Jr];if(gn.type==="elem"){var Dn=gn.elem;sr=Math.max(sr,Dn.maxFontSize,Dn.height)}}sr+=2;var ui=je(["pstrut"],[]);ui.style.height=sr+"em";for(var Si=[],vi=Dt,Qi=Dt,sa=Dt,Ua=0;Ua<Je.length;Ua++){var no=Je[Ua];if(no.type==="kern")sa+=no.size;else{var Wo=no.elem,Zo=no.wrapperClasses||[],Bo=no.wrapperStyle||{},Es=je(Zo,[ui,Wo],void 0,Bo);Es.style.top=-sr-sa-Wo.depth+"em",no.marginLeft&&(Es.style.marginLeft=no.marginLeft),no.marginRight&&(Es.style.marginRight=no.marginRight),Si.push(Es),sa+=Wo.height+Wo.depth}vi=Math.min(vi,sa),Qi=Math.max(Qi,sa)}var As=je(["vlist"],Si);As.style.height=Qi+"em";var $o;if(vi<0){var Do=je([],[]),vo=je(["vlist"],[Do]);vo.style.height=-vi+"em";var Ms=je(["vlist-s"],[new Ce("\u200B")]);$o=[je(["vlist-r"],[As,Ms]),je(["vlist-r"],[vo])]}else $o=[je(["vlist-r"],[As])];var rl=je(["vlist-t"],$o);return $o.length===2&&rl.classes.push("vlist-t2"),rl.height=Qi,rl.depth=-vi,rl},$r=function(ce,Se){var Ie=je(["mspace"],[],Se),Je=Nr(ce,Se);return Ie.style.marginRight=Je+"em",Ie},Yr=function(ce,Se,Ie){var Je="";switch(ce){case"amsrm":Je="AMS";break;case"textrm":Je="Main";break;case"textsf":Je="SansSerif";break;case"texttt":Je="Typewriter";break;default:Je=ce}var Dt;return Se==="textbf"&&Ie==="textit"?Dt="BoldItalic":Se==="textbf"?Dt="Bold":Se==="textit"?Dt="Italic":Dt="Regular",Je+"-"+Dt},mn={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"}},Ar={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},zn=function(ce,Se){var Ie=Ar[ce],Je=Ie[0],Dt=Ie[1],sr=Ie[2],Jr=new fe(Je),gn=new Be([Jr],{width:Dt+"em",height:sr+"em",style:"width:"+Dt+"em",viewBox:"0 0 "+1e3*Dt+" "+1e3*sr,preserveAspectRatio:"xMinYMin"}),Dn=Xe(["overlay"],[gn],Se);return Dn.height=sr,Dn.style.height=sr+"em",Dn.style.width=Dt+"em",Dn},Fr={fontMap:mn,makeSymbol:An,mathsym:ri,makeSpan:je,makeSvgSpan:Xe,makeLineSpan:nt,makeAnchor:Ze,makeFragment:ot,wrapFragment:Ct,makeVList:pr,makeOrd:Di,makeGlue:$r,staticSvg:zn,svgData:Ar,tryCombineChars:it};function Bn(Nt,ce){var Se=bn(Nt,ce);if(!Se)throw new Error("Expected node of type "+ce+", but got "+(Nt?"node of type "+Nt.type:String(Nt)));return Se}function bn(Nt,ce){return Nt&&Nt.type===ce?Nt:null}function en(Nt,ce){var Se=ti(Nt,ce);if(!Se)throw new Error('Expected node of type "atom" and family "'+ce+'", but got '+(Nt?Nt.type==="atom"?"atom of family "+Nt.family:"node of type "+Nt.type:String(Nt)));return Se}function ti(Nt,ce){return Nt&&Nt.type==="atom"&&Nt.family===ce?Nt:null}function pi(Nt){var ce=Pi(Nt);if(!ce)throw new Error("Expected node of symbol group type, but got "+(Nt?"node of type "+Nt.type:String(Nt)));return ce}function Pi(Nt){return Nt&&(Nt.type==="atom"||Pt.hasOwnProperty(Nt.type))?Nt:null}var qr={number:3,unit:"mu"},En={number:4,unit:"mu"},Yn={number:5,unit:"mu"},zt={mord:{mop:qr,mbin:En,mrel:Yn,minner:qr},mop:{mord:qr,mop:qr,mrel:Yn,minner:qr},mbin:{mord:En,mop:En,mopen:En,minner:En},mrel:{mord:Yn,mop:Yn,mopen:Yn,minner:Yn},mopen:{},mclose:{mop:qr,mbin:En,mrel:Yn,minner:qr},mpunct:{mord:qr,mop:qr,mrel:Yn,mopen:qr,mclose:qr,mpunct:qr,minner:qr},minner:{mord:qr,mop:qr,mbin:En,mrel:Yn,mopen:qr,mpunct:qr,minner:qr}},Ot={mord:{mop:qr},mop:{mord:qr,mop:qr},mbin:{},mrel:{},mopen:{},mclose:{mop:qr},mpunct:{},minner:{mop:qr}},kt={},Bt={},Wt={};function Lt(Nt){for(var ce=Nt.type,Se=Nt.names,Ie=Nt.props,Je=Nt.handler,Dt=Nt.htmlBuilder,sr=Nt.mathmlBuilder,Jr={type:ce,numArgs:Ie.numArgs,argTypes:Ie.argTypes,greediness:Ie.greediness===void 0?1:Ie.greediness,allowedInText:!!Ie.allowedInText,allowedInMath:Ie.allowedInMath===void 0?!0:Ie.allowedInMath,numOptionalArgs:Ie.numOptionalArgs||0,infix:!!Ie.infix,handler:Je},gn=0;gn<Se.length;++gn)kt[Se[gn]]=Jr;ce&&(Dt&&(Bt[ce]=Dt),sr&&(Wt[ce]=sr))}function dr(Nt){var ce=Nt.type,Se=Nt.htmlBuilder,Ie=Nt.mathmlBuilder;Lt({type:ce,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:Se,mathmlBuilder:Ie})}var yr=function(ce){var Se=bn(ce,"ordgroup");return Se?Se.body:[ce]},br=Fr.makeSpan,Mr=["leftmost","mbin","mopen","mrel","mop","mpunct"],Gn=["rightmost","mrel","mclose","mpunct"],Mn={display:z.DISPLAY,text:z.TEXT,script:z.SCRIPT,scriptscript:z.SCRIPTSCRIPT},di={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},vn=function(ce,Se,Ie,Je){Je===void 0&&(Je=[null,null]);for(var Dt=[],sr=0;sr<ce.length;sr++){var Jr=Ti(ce[sr],Se);if(Jr instanceof Fe){var gn=Jr.children;Dt.push.apply(Dt,gn)}else Dt.push(Jr)}if(!Ie)return Dt;var Dn=Se;if(ce.length===1){var ui=bn(ce[0],"sizing")||bn(ce[0],"styling");ui&&(ui.type==="sizing"?Dn=Se.havingSize(ui.size):ui.type==="styling"&&(Dn=Se.havingStyle(Mn[ui.style])))}var Si=br([Je[0]||"leftmost"],[],Se),vi=br([Je[1]||"rightmost"],[],Se);return Ur(Dt,function(Qi,sa){var Ua=sa.classes[0],no=Qi.classes[0];Ua==="mbin"&&A.contains(Gn,no)?sa.classes[0]="mord":no==="mbin"&&A.contains(Mr,Ua)&&(Qi.classes[0]="mord")},{node:Si},vi),Ur(Dt,function(Qi,sa){var Ua=qn(sa),no=qn(Qi),Wo=Ua&&no?Qi.hasClass("mtight")?Ot[Ua][no]:zt[Ua][no]:null;if(Wo)return Fr.makeGlue(Wo,Dn)},{node:Si},vi),Dt},Ur=function Nt(ce,Se,Ie,Je){Je&&ce.push(Je);for(var Dt=0;Dt<ce.length;Dt++){var sr=ce[Dt],Jr=In(sr);if(Jr){Nt(Jr.children,Se,Ie);continue}if(sr.classes[0]==="mspace")continue;var gn=Se(sr,Ie.node);gn&&(Ie.insertAfter?Ie.insertAfter(gn):(ce.unshift(gn),Dt++)),Ie.node=sr,Ie.insertAfter=function(Dn){return function(ui){ce.splice(Dn+1,0,ui),Dt++}}(Dt)}Je&&ce.pop()},In=function(ce){return ce instanceof Fe||ce instanceof $?ce:null},Qn=function Nt(ce,Se){var Ie=In(ce);if(Ie){var Je=Ie.children;if(Je.length){if(Se==="right")return Nt(Je[Je.length-1],"right");if(Se==="left")return Nt(Je[0],"left")}}return ce},qn=function(ce,Se){return ce?(Se&&(ce=Qn(ce,Se)),di[ce.classes[0]]||null):null},oi=function(ce,Se){var Ie=["nulldelimiter"].concat(ce.baseSizingClasses());return br(Se.concat(Ie))},Ti=function(ce,Se,Ie){if(!ce)return br();if(Bt[ce.type]){var Je=Bt[ce.type](ce,Se);if(Ie&&Se.size!==Ie.size){Je=br(Se.sizingClasses(Ie),[Je],Se);var Dt=Se.sizeMultiplier/Ie.sizeMultiplier;Je.height*=Dt,Je.depth*=Dt}return Je}else throw new u("Got group of unknown type: '"+ce.type+"'")};function ki(Nt,ce){var Se=br(["base"],Nt,ce),Ie=br(["strut"]);return Ie.style.height=Se.height+Se.depth+"em",Ie.style.verticalAlign=-Se.depth+"em",Se.children.unshift(Ie),Se}function Ri(Nt,ce){var Se=null;Nt.length===1&&Nt[0].type==="tag"&&(Se=Nt[0].tag,Nt=Nt[0].body);for(var Ie=vn(Nt,ce,!0),Je=[],Dt=[],sr=0;sr<Ie.length;sr++)if(Dt.push(Ie[sr]),Ie[sr].hasClass("mbin")||Ie[sr].hasClass("mrel")||Ie[sr].hasClass("allowbreak")){for(var Jr=!1;sr<Ie.length-1&&Ie[sr+1].hasClass("mspace")&&!Ie[sr+1].hasClass("newline");)sr++,Dt.push(Ie[sr]),Ie[sr].hasClass("nobreak")&&(Jr=!0);Jr||(Je.push(ki(Dt,ce)),Dt=[])}else Ie[sr].hasClass("newline")&&(Dt.pop(),Dt.length>0&&(Je.push(ki(Dt,ce)),Dt=[]),Je.push(Ie[sr]));Dt.length>0&&Je.push(ki(Dt,ce));var gn;Se&&(gn=ki(vn(Se,ce,!0)),gn.classes=["tag"],Je.push(gn));var Dn=br(["katex-html"],Je);if(Dn.setAttribute("aria-hidden","true"),gn){var ui=gn.children[0];ui.style.height=Dn.height+Dn.depth+"em",ui.style.verticalAlign=-Dn.depth+"em"}return Dn}function oa(Nt){return new Fe(Nt)}var ma=function(){function Nt(Se,Ie){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=Se,this.attributes={},this.children=Ie||[]}var ce=Nt.prototype;return ce.setAttribute=function(Ie,Je){this.attributes[Ie]=Je},ce.getAttribute=function(Ie){return this.attributes[Ie]},ce.toNode=function(){var Ie=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var Je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Je)&&Ie.setAttribute(Je,this.attributes[Je]);for(var Dt=0;Dt<this.children.length;Dt++)Ie.appendChild(this.children[Dt].toNode());return Ie},ce.toMarkup=function(){var Ie="<"+this.type;for(var Je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Je)&&(Ie+=" "+Je+'="',Ie+=A.escape(this.attributes[Je]),Ie+='"');Ie+=">";for(var Dt=0;Dt<this.children.length;Dt++)Ie+=this.children[Dt].toMarkup();return Ie+="</"+this.type+">",Ie},ce.toText=function(){return this.children.map(function(Ie){return Ie.toText()}).join("")},Nt}(),aa=function(){function Nt(Se){this.text=void 0,this.text=Se}var ce=Nt.prototype;return ce.toNode=function(){return document.createTextNode(this.text)},ce.toMarkup=function(){return A.escape(this.toText())},ce.toText=function(){return this.text},Nt}(),ba=function(){function Nt(Se){this.width=void 0,this.character=void 0,this.width=Se,Se>=.05555&&Se<=.05556?this.character="\u200A":Se>=.1666&&Se<=.1667?this.character="\u2009":Se>=.2222&&Se<=.2223?this.character="\u2005":Se>=.2777&&Se<=.2778?this.character="\u2005\u200A":Se>=-.05556&&Se<=-.05555?this.character="\u200A\u2063":Se>=-.1667&&Se<=-.1666?this.character="\u2009\u2063":Se>=-.2223&&Se<=-.2222?this.character="\u205F\u2063":Se>=-.2778&&Se<=-.2777?this.character="\u2005\u2063":this.character=null}var ce=Nt.prototype;return ce.toNode=function(){if(this.character)return document.createTextNode(this.character);var Ie=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return Ie.setAttribute("width",this.width+"em"),Ie},ce.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},ce.toText=function(){return this.character?this.character:" "},Nt}(),yi={MathNode:ma,TextNode:aa,SpaceNode:ba,newDocumentFragment:oa},kn=function(ce,Se,Ie){return Ge[Se][ce]&&Ge[Se][ce].replace&&ce.charCodeAt(0)!==55349&&!(Pr.hasOwnProperty(ce)&&Ie&&(Ie.fontFamily&&Ie.fontFamily.substr(4,2)==="tt"||Ie.font&&Ie.font.substr(4,2)==="tt"))&&(ce=Ge[Se][ce].replace),new yi.TextNode(ce)},ji=function(ce){return ce.length===1?ce[0]:new yi.MathNode("mrow",ce)},ha=function(ce,Se){if(Se.fontFamily==="texttt")return"monospace";if(Se.fontFamily==="textsf")return Se.fontShape==="textit"&&Se.fontWeight==="textbf"?"sans-serif-bold-italic":Se.fontShape==="textit"?"sans-serif-italic":Se.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(Se.fontShape==="textit"&&Se.fontWeight==="textbf")return"bold-italic";if(Se.fontShape==="textit")return"italic";if(Se.fontWeight==="textbf")return"bold";var Ie=Se.font;if(!Ie||Ie==="mathnormal")return null;var Je=ce.mode;if(Ie==="mathit")return"italic";if(Ie==="boldsymbol")return"bold-italic";if(Ie==="mathbf")return"bold";if(Ie==="mathbb")return"double-struck";if(Ie==="mathfrak")return"fraktur";if(Ie==="mathscr"||Ie==="mathcal")return"script";if(Ie==="mathsf")return"sans-serif";if(Ie==="mathtt")return"monospace";var Dt=ce.text;if(A.contains(["\\imath","\\jmath"],Dt))return null;Ge[Je][Dt]&&Ge[Je][Dt].replace&&(Dt=Ge[Je][Dt].replace);var sr=Fr.fontMap[Ie].fontName;return ct(Dt,sr,Je)?Fr.fontMap[Ie].variant:null},ta=function(ce,Se,Ie){if(ce.length===1){var Je=Ir(ce[0],Se);return Ie&&Je instanceof ma&&Je.type==="mo"&&(Je.setAttribute("lspace","0em"),Je.setAttribute("rspace","0em")),[Je]}for(var Dt=[],sr,Jr=0;Jr<ce.length;Jr++){var gn=Ir(ce[Jr],Se);if(gn instanceof ma&&sr instanceof ma){if(gn.type==="mtext"&&sr.type==="mtext"&&gn.getAttribute("mathvariant")===sr.getAttribute("mathvariant")){var Dn;(Dn=sr.children).push.apply(Dn,gn.children);continue}else if(gn.type==="mn"&&sr.type==="mn"){var ui;(ui=sr.children).push.apply(ui,gn.children);continue}else if(gn.type==="mi"&&gn.children.length===1&&sr.type==="mn"){var Si=gn.children[0];if(Si instanceof aa&&Si.text==="."){var vi;(vi=sr.children).push.apply(vi,gn.children);continue}}else if(sr.type==="mi"&&sr.children.length===1){var Qi=sr.children[0];if(Qi instanceof aa&&Qi.text==="\u0338"&&(gn.type==="mo"||gn.type==="mi"||gn.type==="mn")){var sa=gn.children[0];sa instanceof aa&&sa.text.length>0&&(sa.text=sa.text.slice(0,1)+"\u0338"+sa.text.slice(1),Dt.pop())}}}Dt.push(gn),sr=gn}return Dt},ra=function(ce,Se,Ie){return ji(ta(ce,Se,Ie))},Ir=function(ce,Se){if(!ce)return new yi.MathNode("mrow");if(Wt[ce.type]){var Ie=Wt[ce.type](ce,Se);return Ie}else throw new u("Got group of unknown type: '"+ce.type+"'")};function xr(Nt,ce,Se,Ie){var Je=ta(Nt,Se),Dt;Je.length===1&&Je[0]instanceof ma&&A.contains(["mrow","mtable"],Je[0].type)?Dt=Je[0]:Dt=new yi.MathNode("mrow",Je);var sr=new yi.MathNode("annotation",[new yi.TextNode(ce)]);sr.setAttribute("encoding","application/x-tex");var Jr=new yi.MathNode("semantics",[Dt,sr]),gn=new yi.MathNode("math",[Jr]);gn.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var Dn=Ie?"katex":"katex-mathml";return Fr.makeSpan([Dn],[gn])}var Cn=function(ce){return new tr({style:ce.displayMode?z.DISPLAY:z.TEXT,maxSize:ce.maxSize,minRuleThickness:ce.minRuleThickness})},mr=function(ce,Se){if(Se.displayMode){var Ie=["katex-display"];Se.leqno&&Ie.push("leqno"),Se.fleqn&&Ie.push("fleqn"),ce=Fr.makeSpan(Ie,[ce])}return ce},kr=function(ce,Se,Ie){var Je=Cn(Ie),Dt;if(Ie.output==="mathml")return xr(ce,Se,Je,!0);if(Ie.output==="html"){var sr=Ri(ce,Je);Dt=Fr.makeSpan(["katex"],[sr])}else{var Jr=xr(ce,Se,Je,!1),gn=Ri(ce,Je);Dt=Fr.makeSpan(["katex"],[Jr,gn])}return mr(Dt,Ie)},Gr=function(ce,Se,Ie){var Je=Cn(Ie),Dt=Ri(ce,Je),sr=Fr.makeSpan(["katex"],[Dt]);return mr(sr,Ie)},ln=kr,Fn={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB"},_t=function(ce){var Se=new yi.MathNode("mo",[new yi.TextNode(Fn[ce.substr(1)])]);return Se.setAttribute("stretchy","true"),Se},Or={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Lr=function(ce){return ce.type==="ordgroup"?ce.body.length:1},rn=function(ce,Se){function Ie(){var gn=4e5,Dn=ce.label.substr(1);if(A.contains(["widehat","widecheck","widetilde","utilde"],Dn)){var ui=ce,Si=Lr(ui.base),vi,Qi,sa;if(Si>5)Dn==="widehat"||Dn==="widecheck"?(vi=420,gn=2364,sa=.42,Qi=Dn+"4"):(vi=312,gn=2340,sa=.34,Qi="tilde4");else{var Ua=[1,1,2,2,3,3][Si];Dn==="widehat"||Dn==="widecheck"?(gn=[0,1062,2364,2364,2364][Ua],vi=[0,239,300,360,420][Ua],sa=[0,.24,.3,.3,.36,.42][Ua],Qi=Dn+Ua):(gn=[0,600,1033,2339,2340][Ua],vi=[0,260,286,306,312][Ua],sa=[0,.26,.286,.3,.306,.34][Ua],Qi="tilde"+Ua)}var no=new fe(Qi),Wo=new Be([no],{width:"100%",height:sa+"em",viewBox:"0 0 "+gn+" "+vi,preserveAspectRatio:"none"});return{span:Fr.makeSvgSpan([],[Wo],Se),minWidth:0,height:sa}}else{var Zo=[],Bo=Or[Dn],Es=Bo[0],As=Bo[1],$o=Bo[2],Do=$o/1e3,vo=Es.length,Ms,rl;if(vo===1){var gs=Bo[3];Ms=["hide-tail"],rl=[gs]}else if(vo===2)Ms=["halfarrow-left","halfarrow-right"],rl=["xMinYMin","xMaxYMin"];else if(vo===3)Ms=["brace-left","brace-center","brace-right"],rl=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+vo+" children.");for(var Ra=0;Ra<vo;Ra++){var dl=new fe(Es[Ra]),fl=new Be([dl],{width:"400em",height:Do+"em",viewBox:"0 0 "+gn+" "+$o,preserveAspectRatio:rl[Ra]+" slice"}),Us=Fr.makeSvgSpan([Ms[Ra]],[fl],Se);if(vo===1)return{span:Us,minWidth:As,height:Do};Us.style.height=Do+"em",Zo.push(Us)}return{span:Fr.makeSpan(["stretchy"],Zo,Se),minWidth:As,height:Do}}}var Je=Ie(),Dt=Je.span,sr=Je.minWidth,Jr=Je.height;return Dt.height=Jr,Dt.style.height=Jr+"em",sr>0&&(Dt.style.minWidth=sr+"em"),Dt},xn=function(ce,Se,Ie,Je){var Dt,sr=ce.height+ce.depth+2*Ie;if(/fbox|color/.test(Se)){if(Dt=Fr.makeSpan(["stretchy",Se],[],Je),Se==="fbox"){var Jr=Je.color&&Je.getColor();Jr&&(Dt.style.borderColor=Jr)}}else{var gn=[];/^[bx]cancel$/.test(Se)&&gn.push(new we({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(Se)&&gn.push(new we({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Dn=new Be(gn,{width:"100%",height:sr+"em"});Dt=Fr.makeSvgSpan([],[Dn],Je)}return Dt.height=sr,Dt.style.height=sr+"em",Dt},Ln={encloseSpan:xn,mathMLnode:_t,svgSpan:rn},Sn=function(ce,Se){var Ie,Je,Dt=bn(ce,"supsub"),sr;Dt?(Je=Bn(Dt.base,"accent"),Ie=Je.base,Dt.base=Ie,sr=rt(Ti(Dt,Se)),Dt.base=Je):(Je=Bn(ce,"accent"),Ie=Je.base);var Jr=Ti(Ie,Se.havingCrampedStyle()),gn=Je.isShifty&&A.isCharacterBox(Ie),Dn=0;if(gn){var ui=A.getBaseElem(Ie),Si=Ti(ui,Se.havingCrampedStyle());Dn=Re(Si).skew}var vi=Math.min(Jr.height,Se.fontMetrics().xHeight),Qi;if(Je.isStretchy)Qi=Ln.svgSpan(Je,Se),Qi=Fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Jr},{type:"elem",elem:Qi,wrapperClasses:["svg-align"],wrapperStyle:Dn>0?{width:"calc(100% - "+2*Dn+"em)",marginLeft:2*Dn+"em"}:void 0}]},Se);else{var sa,Ua;Je.label==="\\vec"?(sa=Fr.staticSvg("vec",Se),Ua=Fr.svgData.vec[1]):(sa=Fr.makeOrd({mode:Je.mode,text:Je.label},Se,"textord"),sa=Re(sa),sa.italic=0,Ua=sa.width),Qi=Fr.makeSpan(["accent-body"],[sa]);var no=Je.label==="\\textcircled";no&&(Qi.classes.push("accent-full"),vi=Jr.height);var Wo=Dn;no||(Wo-=Ua/2),Qi.style.left=Wo+"em",Je.label==="\\textcircled"&&(Qi.style.top=".2em"),Qi=Fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Jr},{type:"kern",size:-vi},{type:"elem",elem:Qi}]},Se)}var Zo=Fr.makeSpan(["mord","accent"],[Qi],Se);return sr?(sr.children[0]=Zo,sr.height=Math.max(Zo.height,sr.height),sr.classes[0]="mord",sr):Zo},ei=function(ce,Se){var Ie=ce.isStretchy?Ln.mathMLnode(ce.label):new yi.MathNode("mo",[kn(ce.label,ce.mode)]),Je=new yi.MathNode("mover",[Ir(ce.base,Se),Ie]);return Je.setAttribute("accent","true"),Je},Kn=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(Nt){return"\\"+Nt}).join("|"));Lt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(ce,Se){var Ie=Se[0],Je=!Kn.test(ce.funcName),Dt=!Je||ce.funcName==="\\widehat"||ce.funcName==="\\widetilde"||ce.funcName==="\\widecheck";return{type:"accent",mode:ce.parser.mode,label:ce.funcName,isStretchy:Je,isShifty:Dt,base:Ie}},htmlBuilder:Sn,mathmlBuilder:ei}),Lt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(ce,Se){var Ie=Se[0];return{type:"accent",mode:ce.parser.mode,label:ce.funcName,isStretchy:!1,isShifty:!0,base:Ie}},htmlBuilder:Sn,mathmlBuilder:ei}),Lt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Dt=Se[0];return{type:"accentUnder",mode:Ie.mode,label:Je,base:Dt}},htmlBuilder:function(ce,Se){var Ie=Ti(ce.base,Se),Je=Ln.svgSpan(ce,Se),Dt=ce.label==="\\utilde"?.12:0,sr=Fr.makeVList({positionType:"bottom",positionData:Je.height+Dt,children:[{type:"elem",elem:Je,wrapperClasses:["svg-align"]},{type:"kern",size:Dt},{type:"elem",elem:Ie}]},Se);return Fr.makeSpan(["mord","accentunder"],[sr],Se)},mathmlBuilder:function(ce,Se){var Ie=Ln.mathMLnode(ce.label),Je=new yi.MathNode("munder",[Ir(ce.base,Se),Ie]);return Je.setAttribute("accentunder","true"),Je}});var mi=function(ce){var Se=new yi.MathNode("mpadded",ce?[ce]:[]);return Se.setAttribute("width","+0.6em"),Se.setAttribute("lspace","0.3em"),Se};Lt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(ce,Se,Ie){var Je=ce.parser,Dt=ce.funcName;return{type:"xArrow",mode:Je.mode,label:Dt,body:Se[0],below:Ie[0]}},htmlBuilder:function(ce,Se){var Ie=Se.style,Je=Se.havingStyle(Ie.sup()),Dt=Fr.wrapFragment(Ti(ce.body,Je,Se),Se);Dt.classes.push("x-arrow-pad");var sr;ce.below&&(Je=Se.havingStyle(Ie.sub()),sr=Fr.wrapFragment(Ti(ce.below,Je,Se),Se),sr.classes.push("x-arrow-pad"));var Jr=Ln.svgSpan(ce,Se),gn=-Se.fontMetrics().axisHeight+.5*Jr.height,Dn=-Se.fontMetrics().axisHeight-.5*Jr.height-.111;(Dt.depth>.25||ce.label==="\\xleftequilibrium")&&(Dn-=Dt.depth);var ui;if(sr){var Si=-Se.fontMetrics().axisHeight+sr.height+.5*Jr.height+.111;ui=Fr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Dt,shift:Dn},{type:"elem",elem:Jr,shift:gn},{type:"elem",elem:sr,shift:Si}]},Se)}else ui=Fr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Dt,shift:Dn},{type:"elem",elem:Jr,shift:gn}]},Se);return ui.children[0].children[0].children[1].classes.push("svg-align"),Fr.makeSpan(["mrel","x-arrow"],[ui],Se)},mathmlBuilder:function(ce,Se){var Ie=Ln.mathMLnode(ce.label),Je;if(ce.body){var Dt=mi(Ir(ce.body,Se));if(ce.below){var sr=mi(Ir(ce.below,Se));Je=new yi.MathNode("munderover",[Ie,sr,Dt])}else Je=new yi.MathNode("mover",[Ie,Dt])}else if(ce.below){var Jr=mi(Ir(ce.below,Se));Je=new yi.MathNode("munder",[Ie,Jr])}else Je=mi(),Je=new yi.MathNode("mover",[Ie,Je]);return Je}}),Lt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Se){for(var Ie=ce.parser,Je=Bn(Se[0],"ordgroup"),Dt=Je.body,sr="",Jr=0;Jr<Dt.length;Jr++){var gn=Bn(Dt[Jr],"textord");sr+=gn.text}var Dn=parseInt(sr);if(isNaN(Dn))throw new u("\\@char has non-numeric argument "+sr);return{type:"textord",mode:Ie.mode,text:String.fromCharCode(Dn)}}});var Fi=function(ce,Se){var Ie=vn(ce.body,Se.withColor(ce.color),!1);return Fr.makeFragment(Ie)},bi=function(ce,Se){var Ie=ta(ce.body,Se.withColor(ce.color)),Je=new yi.MathNode("mstyle",Ie);return Je.setAttribute("mathcolor",ce.color),Je};Lt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(ce,Se){var Ie=ce.parser,Je=Bn(Se[0],"color-token").color,Dt=Se[1];return{type:"color",mode:Ie.mode,color:Je,body:yr(Dt)}},htmlBuilder:Fi,mathmlBuilder:bi}),Lt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(ce,Se){var Ie=ce.parser,Je=ce.breakOnTokenText,Dt=Bn(Se[0],"color-token").color;Ie.gullet.macros.set("\\current@color",Dt);var sr=Ie.parseExpression(!0,Je);return{type:"color",mode:Ie.mode,color:Dt,body:sr}},htmlBuilder:Fi,mathmlBuilder:bi}),Lt({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ce,Se,Ie){var Je=ce.parser,Dt=ce.funcName,sr=Ie[0],Jr=Dt==="\\cr",gn=!1;return Jr||(Je.settings.displayMode&&Je.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?gn=!1:gn=!0),{type:"cr",mode:Je.mode,newLine:gn,newRow:Jr,size:sr&&Bn(sr,"size").value}},htmlBuilder:function(ce,Se){if(ce.newRow)throw new u("\\cr valid only within a tabular/array environment");var Ie=Fr.makeSpan(["mspace"],[],Se);return ce.newLine&&(Ie.classes.push("newline"),ce.size&&(Ie.style.marginTop=Nr(ce.size,Se)+"em")),Ie},mathmlBuilder:function(ce,Se){var Ie=new yi.MathNode("mspace");return ce.newLine&&(Ie.setAttribute("linebreak","newline"),ce.size&&Ie.setAttribute("height",Nr(ce.size,Se)+"em")),Ie}});var Ii=function(ce,Se,Ie){var Je=Ge.math[ce]&&Ge.math[ce].replace,Dt=ct(Je||ce,Se,Ie);if(!Dt)throw new Error("Unsupported symbol "+ce+" and font size "+Se+".");return Dt},Vi=function(ce,Se,Ie,Je){var Dt=Ie.havingBaseStyle(Se),sr=Fr.makeSpan(Je.concat(Dt.sizingClasses(Ie)),[ce],Ie),Jr=Dt.sizeMultiplier/Ie.sizeMultiplier;return sr.height*=Jr,sr.depth*=Jr,sr.maxFontSize=Dt.sizeMultiplier,sr},ea=function(ce,Se,Ie){var Je=Se.havingBaseStyle(Ie),Dt=(1-Se.sizeMultiplier/Je.sizeMultiplier)*Se.fontMetrics().axisHeight;ce.classes.push("delimcenter"),ce.style.top=Dt+"em",ce.height-=Dt,ce.depth+=Dt},Xi=function(ce,Se,Ie,Je,Dt,sr){var Jr=Fr.makeSymbol(ce,"Main-Regular",Dt,Je),gn=Vi(Jr,Se,Je,sr);return Ie&&ea(gn,Je,Se),gn},zi=function(ce,Se,Ie,Je){return Fr.makeSymbol(ce,"Size"+Se+"-Regular",Ie,Je)},Hi=function(ce,Se,Ie,Je,Dt,sr){var Jr=zi(ce,Se,Dt,Je),gn=Vi(Fr.makeSpan(["delimsizing","size"+Se],[Jr],Je),z.TEXT,Je,sr);return Ie&&ea(gn,Je,z.TEXT),gn},Ji=function(ce,Se,Ie){var Je;Se==="Size1-Regular"?Je="delim-size1":Je="delim-size4";var Dt=Fr.makeSpan(["delimsizinginner",Je],[Fr.makeSpan([],[Fr.makeSymbol(ce,Se,Ie)])]);return{type:"elem",elem:Dt}},ca={type:"kern",size:-.005},Ca=function(ce,Se,Ie,Je,Dt,sr){var Jr,gn,Dn,ui;Jr=Dn=ui=ce,gn=null;var Si="Size1-Regular";ce==="\\uparrow"?Dn=ui="\u23D0":ce==="\\Uparrow"?Dn=ui="\u2016":ce==="\\downarrow"?Jr=Dn="\u23D0":ce==="\\Downarrow"?Jr=Dn="\u2016":ce==="\\updownarrow"?(Jr="\\uparrow",Dn="\u23D0",ui="\\downarrow"):ce==="\\Updownarrow"?(Jr="\\Uparrow",Dn="\u2016",ui="\\Downarrow"):ce==="["||ce==="\\lbrack"?(Jr="\u23A1",Dn="\u23A2",ui="\u23A3",Si="Size4-Regular"):ce==="]"||ce==="\\rbrack"?(Jr="\u23A4",Dn="\u23A5",ui="\u23A6",Si="Size4-Regular"):ce==="\\lfloor"||ce==="\u230A"?(Dn=Jr="\u23A2",ui="\u23A3",Si="Size4-Regular"):ce==="\\lceil"||ce==="\u2308"?(Jr="\u23A1",Dn=ui="\u23A2",Si="Size4-Regular"):ce==="\\rfloor"||ce==="\u230B"?(Dn=Jr="\u23A5",ui="\u23A6",Si="Size4-Regular"):ce==="\\rceil"||ce==="\u2309"?(Jr="\u23A4",Dn=ui="\u23A5",Si="Size4-Regular"):ce==="("||ce==="\\lparen"?(Jr="\u239B",Dn="\u239C",ui="\u239D",Si="Size4-Regular"):ce===")"||ce==="\\rparen"?(Jr="\u239E",Dn="\u239F",ui="\u23A0",Si="Size4-Regular"):ce==="\\{"||ce==="\\lbrace"?(Jr="\u23A7",gn="\u23A8",ui="\u23A9",Dn="\u23AA",Si="Size4-Regular"):ce==="\\}"||ce==="\\rbrace"?(Jr="\u23AB",gn="\u23AC",ui="\u23AD",Dn="\u23AA",Si="Size4-Regular"):ce==="\\lgroup"||ce==="\u27EE"?(Jr="\u23A7",ui="\u23A9",Dn="\u23AA",Si="Size4-Regular"):ce==="\\rgroup"||ce==="\u27EF"?(Jr="\u23AB",ui="\u23AD",Dn="\u23AA",Si="Size4-Regular"):ce==="\\lmoustache"||ce==="\u23B0"?(Jr="\u23A7",ui="\u23AD",Dn="\u23AA",Si="Size4-Regular"):(ce==="\\rmoustache"||ce==="\u23B1")&&(Jr="\u23AB",ui="\u23A9",Dn="\u23AA",Si="Size4-Regular");var vi=Ii(Jr,Si,Dt),Qi=vi.height+vi.depth,sa=Ii(Dn,Si,Dt),Ua=sa.height+sa.depth,no=Ii(ui,Si,Dt),Wo=no.height+no.depth,Zo=0,Bo=1;if(gn!==null){var Es=Ii(gn,Si,Dt);Zo=Es.height+Es.depth,Bo=2}var As=Qi+Wo+Zo,$o=Math.max(0,Math.ceil((Se-As)/(Bo*Ua))),Do=As+$o*Bo*Ua,vo=Je.fontMetrics().axisHeight;Ie&&(vo*=Je.sizeMultiplier);var Ms=Do/2-vo,rl=($o+1)*.005-Ua,gs=[];if(gs.push(Ji(ui,Si,Dt)),gn===null)for(var Ra=0;Ra<$o;Ra++)gs.push(ca),gs.push(Ji(Dn,Si,Dt));else{for(var dl=0;dl<$o;dl++)gs.push(ca),gs.push(Ji(Dn,Si,Dt));gs.push({type:"kern",size:rl}),gs.push(Ji(Dn,Si,Dt)),gs.push(ca),gs.push(Ji(gn,Si,Dt));for(var fl=0;fl<$o;fl++)gs.push(ca),gs.push(Ji(Dn,Si,Dt))}gs.push({type:"kern",size:rl}),gs.push(Ji(Dn,Si,Dt)),gs.push(ca),gs.push(Ji(Jr,Si,Dt));var Us=Je.havingBaseStyle(z.TEXT),Os=Fr.makeVList({positionType:"bottom",positionData:Ms,children:gs},Us);return Vi(Fr.makeSpan(["delimsizing","mult"],[Os],Us),z.TEXT,Je,sr)},na=80,Pa=.08,La=function(ce,Se,Ie,Je,Dt){var sr=Ve(ce,Je,Ie),Jr=new fe(ce,sr),gn=new Be([Jr],{width:"400em",height:Se+"em",viewBox:"0 0 400000 "+Ie,preserveAspectRatio:"xMinYMin slice"});return Fr.makeSvgSpan(["hide-tail"],[gn],Dt)},va=function(ce,Se){var Ie=Se.havingBaseSizing(),Je=Qo("\\surd",ce*Ie.sizeMultiplier,io,Ie),Dt=Ie.sizeMultiplier,sr=Math.max(0,Se.minRuleThickness-Se.fontMetrics().sqrtRuleThickness),Jr,gn=0,Dn=0,ui=0,Si;return Je.type==="small"?(ui=1e3+1e3*sr+na,ce<1?Dt=1:ce<1.4&&(Dt=.7),gn=(1+sr+Pa)/Dt,Dn=(1+sr)/Dt,Jr=La("sqrtMain",gn,ui,sr,Se),Jr.style.minWidth="0.853em",Si=.833/Dt):Je.type==="large"?(ui=(1e3+na)*Xa[Je.size],Dn=(Xa[Je.size]+sr)/Dt,gn=(Xa[Je.size]+sr+Pa)/Dt,Jr=La("sqrtSize"+Je.size,gn,ui,sr,Se),Jr.style.minWidth="1.02em",Si=1/Dt):(gn=ce+sr+Pa,Dn=ce+sr,ui=Math.floor(1e3*ce+sr)+na,Jr=La("sqrtTall",gn,ui,sr,Se),Jr.style.minWidth="0.742em",Si=1.056),Jr.height=Dn,Jr.style.height=gn+"em",{span:Jr,advanceWidth:Si,ruleWidth:(Se.fontMetrics().sqrtRuleThickness+sr)*Dt}},ga=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Oa=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Aa=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Xa=[0,1.2,1.8,2.4,3],_a=function(ce,Se,Ie,Je,Dt){if(ce==="<"||ce==="\\lt"||ce==="\u27E8"?ce="\\langle":(ce===">"||ce==="\\gt"||ce==="\u27E9")&&(ce="\\rangle"),A.contains(ga,ce)||A.contains(Aa,ce))return Hi(ce,Se,!1,Ie,Je,Dt);if(A.contains(Oa,ce))return Ca(ce,Xa[Se],!1,Ie,Je,Dt);throw new u("Illegal delimiter: '"+ce+"'")},Va=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Bi=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"stack"}],io=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],oo=function(ce){if(ce.type==="small")return"Main-Regular";if(ce.type==="large")return"Size"+ce.size+"-Regular";if(ce.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+ce.type+"' here.")},Qo=function(ce,Se,Ie,Je){for(var Dt=Math.min(2,3-Je.style.size),sr=Dt;sr<Ie.length&&!(Ie[sr].type==="stack");sr++){var Jr=Ii(ce,oo(Ie[sr]),"math"),gn=Jr.height+Jr.depth;if(Ie[sr].type==="small"){var Dn=Je.havingBaseStyle(Ie[sr].style);gn*=Dn.sizeMultiplier}if(gn>Se)return Ie[sr]}return Ie[Ie.length-1]},mo=function(ce,Se,Ie,Je,Dt,sr){ce==="<"||ce==="\\lt"||ce==="\u27E8"?ce="\\langle":(ce===">"||ce==="\\gt"||ce==="\u27E9")&&(ce="\\rangle");var Jr;A.contains(Aa,ce)?Jr=Va:A.contains(ga,ce)?Jr=io:Jr=Bi;var gn=Qo(ce,Se,Jr,Je);return gn.type==="small"?Xi(ce,gn.style,Ie,Je,Dt,sr):gn.type==="large"?Hi(ce,gn.size,Ie,Je,Dt,sr):Ca(ce,Se,Ie,Je,Dt,sr)},To=function(ce,Se,Ie,Je,Dt,sr){var Jr=Je.fontMetrics().axisHeight*Je.sizeMultiplier,gn=901,Dn=5/Je.fontMetrics().ptPerEm,ui=Math.max(Se-Jr,Ie+Jr),Si=Math.max(ui/500*gn,2*ui-Dn);return mo(ce,Si,!0,Je,Dt,sr)},ao={sqrtImage:va,sizedDelim:_a,customSizedDelim:mo,leftRightDelim:To},So={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},bo=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function to(Nt,ce){var Se=Pi(Nt);if(Se&&A.contains(bo,Se.text))return Se;throw new u("Invalid delimiter: '"+(Se?Se.text:JSON.stringify(Nt))+"' after '"+ce.funcName+"'",Nt)}Lt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(ce,Se){var Ie=to(Se[0],ce);return{type:"delimsizing",mode:ce.parser.mode,size:So[ce.funcName].size,mclass:So[ce.funcName].mclass,delim:Ie.text}},htmlBuilder:function(ce,Se){return ce.delim==="."?Fr.makeSpan([ce.mclass]):ao.sizedDelim(ce.delim,ce.size,Se,ce.mode,[ce.mclass])},mathmlBuilder:function(ce){var Se=[];ce.delim!=="."&&Se.push(kn(ce.delim,ce.mode));var Ie=new yi.MathNode("mo",Se);return ce.mclass==="mopen"||ce.mclass==="mclose"?Ie.setAttribute("fence","true"):Ie.setAttribute("fence","false"),Ie}});function Jo(Nt){if(!Nt.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Lt({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(ce,Se){var Ie=ce.parser.gullet.macros.get("\\current@color");if(Ie&&typeof Ie!="string")throw new u("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:ce.parser.mode,delim:to(Se[0],ce).text,color:Ie}}}),Lt({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(ce,Se){var Ie=to(Se[0],ce),Je=ce.parser;++Je.leftrightDepth;var Dt=Je.parseExpression(!1);--Je.leftrightDepth,Je.expect("\\right",!1);var sr=Bn(Je.parseFunction(),"leftright-right");return{type:"leftright",mode:Je.mode,body:Dt,left:Ie.text,right:sr.delim,rightColor:sr.color}},htmlBuilder:function(ce,Se){Jo(ce);for(var Ie=vn(ce.body,Se,!0,["mopen","mclose"]),Je=0,Dt=0,sr=!1,Jr=0;Jr<Ie.length;Jr++)Ie[Jr].isMiddle?sr=!0:(Je=Math.max(Ie[Jr].height,Je),Dt=Math.max(Ie[Jr].depth,Dt));Je*=Se.sizeMultiplier,Dt*=Se.sizeMultiplier;var gn;if(ce.left==="."?gn=oi(Se,["mopen"]):gn=ao.leftRightDelim(ce.left,Je,Dt,Se,ce.mode,["mopen"]),Ie.unshift(gn),sr)for(var Dn=1;Dn<Ie.length;Dn++){var ui=Ie[Dn],Si=ui.isMiddle;Si&&(Ie[Dn]=ao.leftRightDelim(Si.delim,Je,Dt,Si.options,ce.mode,[]))}var vi;if(ce.right===".")vi=oi(Se,["mclose"]);else{var Qi=ce.rightColor?Se.withColor(ce.rightColor):Se;vi=ao.leftRightDelim(ce.right,Je,Dt,Qi,ce.mode,["mclose"])}return Ie.push(vi),Fr.makeSpan(["minner"],Ie,Se)},mathmlBuilder:function(ce,Se){Jo(ce);var Ie=ta(ce.body,Se);if(ce.left!=="."){var Je=new yi.MathNode("mo",[kn(ce.left,ce.mode)]);Je.setAttribute("fence","true"),Ie.unshift(Je)}if(ce.right!=="."){var Dt=new yi.MathNode("mo",[kn(ce.right,ce.mode)]);Dt.setAttribute("fence","true"),ce.rightColor&&Dt.setAttribute("mathcolor",ce.rightColor),Ie.push(Dt)}return ji(Ie)}}),Lt({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(ce,Se){var Ie=to(Se[0],ce);if(!ce.parser.leftrightDepth)throw new u("\\middle without preceding \\left",Ie);return{type:"middle",mode:ce.parser.mode,delim:Ie.text}},htmlBuilder:function(ce,Se){var Ie;if(ce.delim===".")Ie=oi(Se,[]);else{Ie=ao.sizedDelim(ce.delim,1,Se,ce.mode,[]);var Je={delim:ce.delim,options:Se};Ie.isMiddle=Je}return Ie},mathmlBuilder:function(ce,Se){var Ie=ce.delim==="\\vert"||ce.delim==="|"?kn("|","text"):kn(ce.delim,ce.mode),Je=new yi.MathNode("mo",[Ie]);return Je.setAttribute("fence","true"),Je.setAttribute("lspace","0.05em"),Je.setAttribute("rspace","0.05em"),Je}});var Uo=function(ce,Se){var Ie=Fr.wrapFragment(Ti(ce.body,Se),Se),Je=ce.label.substr(1),Dt=Se.sizeMultiplier,sr,Jr=0,gn=A.isCharacterBox(ce.body);if(Je==="sout")sr=Fr.makeSpan(["stretchy","sout"]),sr.height=Se.fontMetrics().defaultRuleThickness/Dt,Jr=-.5*Se.fontMetrics().xHeight;else{/cancel/.test(Je)?gn||Ie.classes.push("cancel-pad"):Ie.classes.push("boxpad");var Dn=0,ui=0;/box/.test(Je)?(ui=Math.max(Se.fontMetrics().fboxrule,Se.minRuleThickness),Dn=Se.fontMetrics().fboxsep+(Je==="colorbox"?0:ui)):Dn=gn?.2:0,sr=Ln.encloseSpan(Ie,Je,Dn,Se),/fbox|boxed|fcolorbox/.test(Je)&&(sr.style.borderStyle="solid",sr.style.borderWidth=ui+"em"),Jr=Ie.depth+Dn,ce.backgroundColor&&(sr.style.backgroundColor=ce.backgroundColor,ce.borderColor&&(sr.style.borderColor=ce.borderColor))}var Si;return ce.backgroundColor?Si=Fr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:sr,shift:Jr},{type:"elem",elem:Ie,shift:0}]},Se):Si=Fr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ie,shift:0},{type:"elem",elem:sr,shift:Jr,wrapperClasses:/cancel/.test(Je)?["svg-align"]:[]}]},Se),/cancel/.test(Je)&&(Si.height=Ie.height,Si.depth=Ie.depth),/cancel/.test(Je)&&!gn?Fr.makeSpan(["mord","cancel-lap"],[Si],Se):Fr.makeSpan(["mord"],[Si],Se)},wo=function(ce,Se){var Ie=0,Je=new yi.MathNode(ce.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ir(ce.body,Se)]);switch(ce.label){case"\\cancel":Je.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":Je.setAttribute("notation","downdiagonalstrike");break;case"\\sout":Je.setAttribute("notation","horizontalstrike");break;case"\\fbox":Je.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(Ie=Se.fontMetrics().fboxsep*Se.fontMetrics().ptPerEm,Je.setAttribute("width","+"+2*Ie+"pt"),Je.setAttribute("height","+"+2*Ie+"pt"),Je.setAttribute("lspace",Ie+"pt"),Je.setAttribute("voffset",Ie+"pt"),ce.label==="\\fcolorbox"){var Dt=Math.max(Se.fontMetrics().fboxrule,Se.minRuleThickness);Je.setAttribute("style","border: "+Dt+"em solid "+String(ce.borderColor))}break;case"\\xcancel":Je.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return ce.backgroundColor&&Je.setAttribute("mathbackground",ce.backgroundColor),Je};Lt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(ce,Se,Ie){var Je=ce.parser,Dt=ce.funcName,sr=Bn(Se[0],"color-token").color,Jr=Se[1];return{type:"enclose",mode:Je.mode,label:Dt,backgroundColor:sr,body:Jr}},htmlBuilder:Uo,mathmlBuilder:wo}),Lt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(ce,Se,Ie){var Je=ce.parser,Dt=ce.funcName,sr=Bn(Se[0],"color-token").color,Jr=Bn(Se[1],"color-token").color,gn=Se[2];return{type:"enclose",mode:Je.mode,label:Dt,backgroundColor:Jr,borderColor:sr,body:gn}},htmlBuilder:Uo,mathmlBuilder:wo}),Lt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser;return{type:"enclose",mode:Ie.mode,label:"\\fbox",body:Se[0]}}}),Lt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(ce,Se,Ie){var Je=ce.parser,Dt=ce.funcName,sr=Se[0];return{type:"enclose",mode:Je.mode,label:Dt,body:sr}},htmlBuilder:Uo,mathmlBuilder:wo});var ts={};function Ia(Nt){for(var ce=Nt.type,Se=Nt.names,Ie=Nt.props,Je=Nt.handler,Dt=Nt.htmlBuilder,sr=Nt.mathmlBuilder,Jr={type:ce,numArgs:Ie.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:Je},gn=0;gn<Se.length;++gn)ts[Se[gn]]=Jr;Dt&&(Bt[ce]=Dt),sr&&(Wt[ce]=sr)}function Oo(Nt){var ce=[];Nt.consumeSpaces();for(var Se=Nt.fetch().text;Se==="\\hline"||Se==="\\hdashline";)Nt.consume(),ce.push(Se==="\\hdashline"),Nt.consumeSpaces(),Se=Nt.fetch().text;return ce}function Io(Nt,ce,Se){var Ie=ce.hskipBeforeAndAfter,Je=ce.addJot,Dt=ce.cols,sr=ce.arraystretch,Jr=ce.colSeparationType;if(Nt.gullet.beginGroup(),Nt.gullet.macros.set("\\\\","\\cr"),!sr){var gn=Nt.gullet.expandMacroAsText("\\arraystretch");if(gn==null)sr=1;else if(sr=parseFloat(gn),!sr||sr<0)throw new u("Invalid \\arraystretch: "+gn)}Nt.gullet.beginGroup();var Dn=[],ui=[Dn],Si=[],vi=[];for(vi.push(Oo(Nt));;){var Qi=Nt.parseExpression(!1,"\\cr");Nt.gullet.endGroup(),Nt.gullet.beginGroup(),Qi={type:"ordgroup",mode:Nt.mode,body:Qi},Se&&(Qi={type:"styling",mode:Nt.mode,style:Se,body:[Qi]}),Dn.push(Qi);var sa=Nt.fetch().text;if(sa==="&")Nt.consume();else if(sa==="\\end"){Dn.length===1&&Qi.type==="styling"&&Qi.body[0].body.length===0&&ui.pop(),vi.length<ui.length+1&&vi.push([]);break}else if(sa==="\\cr"){var Ua=Bn(Nt.parseFunction(),"cr");Si.push(Ua.size),vi.push(Oo(Nt)),Dn=[],ui.push(Dn)}else throw new u("Expected & or \\\\ or \\cr or \\end",Nt.nextToken)}return Nt.gullet.endGroup(),Nt.gullet.endGroup(),{type:"array",mode:Nt.mode,addJot:Je,arraystretch:sr,body:ui,cols:Dt,rowGaps:Si,hskipBeforeAndAfter:Ie,hLinesBeforeRow:vi,colSeparationType:Jr}}function os(Nt){return Nt.substr(0,1)==="d"?"display":"text"}var xo=function(ce,Se){var Ie,Je,Dt=ce.body.length,sr=ce.hLinesBeforeRow,Jr=0,gn=new Array(Dt),Dn=[],ui=Math.max(Se.fontMetrics().arrayRuleWidth,Se.minRuleThickness),Si=1/Se.fontMetrics().ptPerEm,vi=5*Si;if(ce.colSeparationType&&ce.colSeparationType==="small"){var Qi=Se.havingStyle(z.SCRIPT).sizeMultiplier;vi=.2778*(Qi/Se.sizeMultiplier)}var sa=12*Si,Ua=3*Si,no=ce.arraystretch*sa,Wo=.7*no,Zo=.3*no,Bo=0;function Es(Ls){for(var Ps=0;Ps<Ls.length;++Ps)Ps>0&&(Bo+=.25),Dn.push({pos:Bo,isDashed:Ls[Ps]})}for(Es(sr[0]),Ie=0;Ie<ce.body.length;++Ie){var As=ce.body[Ie],$o=Wo,Do=Zo;Jr<As.length&&(Jr=As.length);var vo=new Array(As.length);for(Je=0;Je<As.length;++Je){var Ms=Ti(As[Je],Se);Do<Ms.depth&&(Do=Ms.depth),$o<Ms.height&&($o=Ms.height),vo[Je]=Ms}var rl=ce.rowGaps[Ie],gs=0;rl&&(gs=Nr(rl,Se),gs>0&&(gs+=Zo,Do<gs&&(Do=gs),gs=0)),ce.addJot&&(Do+=Ua),vo.height=$o,vo.depth=Do,Bo+=$o,vo.pos=Bo,Bo+=Do+gs,gn[Ie]=vo,Es(sr[Ie+1])}var Ra=Bo/2+Se.fontMetrics().axisHeight,dl=ce.cols||[],fl=[],Us,Os;for(Je=0,Os=0;Je<Jr||Os<dl.length;++Je,++Os){for(var Xs=dl[Os]||{},Ql=!0;Xs.type==="separator";){if(Ql||(Us=Fr.makeSpan(["arraycolsep"],[]),Us.style.width=Se.fontMetrics().doubleRuleSep+"em",fl.push(Us)),Xs.separator==="|"||Xs.separator===":"){var Ul=Xs.separator==="|"?"solid":"dashed",wl=Fr.makeSpan(["vertical-separator"],[],Se);wl.style.height=Bo+"em",wl.style.borderRightWidth=ui+"em",wl.style.borderRightStyle=Ul,wl.style.margin="0 -"+ui/2+"em",wl.style.verticalAlign=-(Bo-Ra)+"em",fl.push(wl)}else throw new u("Invalid separator type: "+Xs.separator);Os++,Xs=dl[Os]||{},Ql=!1}if(Je>=Jr)continue;var Ts=void 0;(Je>0||ce.hskipBeforeAndAfter)&&(Ts=A.deflt(Xs.pregap,vi),Ts!==0&&(Us=Fr.makeSpan(["arraycolsep"],[]),Us.style.width=Ts+"em",fl.push(Us)));var Ws=[];for(Ie=0;Ie<Dt;++Ie){var Tl=gn[Ie],pl=Tl[Je];if(!pl)continue;var jo=Tl.pos-Ra;pl.depth=Tl.depth,pl.height=Tl.height,Ws.push({type:"elem",elem:pl,shift:jo})}Ws=Fr.makeVList({positionType:"individualShift",children:Ws},Se),Ws=Fr.makeSpan(["col-align-"+(Xs.align||"c")],[Ws]),fl.push(Ws),(Je<Jr-1||ce.hskipBeforeAndAfter)&&(Ts=A.deflt(Xs.postgap,vi),Ts!==0&&(Us=Fr.makeSpan(["arraycolsep"],[]),Us.style.width=Ts+"em",fl.push(Us)))}if(gn=Fr.makeSpan(["mtable"],fl),Dn.length>0){for(var yo=Fr.makeLineSpan("hline",Se,ui),qo=Fr.makeLineSpan("hdashline",Se,ui),ps=[{type:"elem",elem:gn,shift:0}];Dn.length>0;){var Is=Dn.pop(),es=Is.pos-Ra;Is.isDashed?ps.push({type:"elem",elem:qo,shift:es}):ps.push({type:"elem",elem:yo,shift:es})}gn=Fr.makeVList({positionType:"individualShift",children:ps},Se)}return Fr.makeSpan(["mord"],[gn],Se)},rs={c:"center ",l:"left ",r:"right "},Ho=function(ce,Se){var Ie=new yi.MathNode("mtable",ce.body.map(function(Bo){return new yi.MathNode("mtr",Bo.map(function(Es){return new yi.MathNode("mtd",[Ir(Es,Se)])}))})),Je=ce.arraystretch===.5?.1:.16+ce.arraystretch-1+(ce.addJot?.09:0);Ie.setAttribute("rowspacing",Je+"em");var Dt="",sr="";if(ce.cols){var Jr=ce.cols,gn="",Dn=!1,ui=0,Si=Jr.length;Jr[0].type==="separator"&&(Dt+="top ",ui=1),Jr[Jr.length-1].type==="separator"&&(Dt+="bottom ",Si-=1);for(var vi=ui;vi<Si;vi++)Jr[vi].type==="align"?(sr+=rs[Jr[vi].align],Dn&&(gn+="none "),Dn=!0):Jr[vi].type==="separator"&&(Dn&&(gn+=Jr[vi].separator==="|"?"solid ":"dashed ",Dn=!1));Ie.setAttribute("columnalign",sr.trim()),/[sd]/.test(gn)&&Ie.setAttribute("columnlines",gn.trim())}if(ce.colSeparationType==="align"){for(var Qi=ce.cols||[],sa="",Ua=1;Ua<Qi.length;Ua++)sa+=Ua%2?"0em ":"1em ";Ie.setAttribute("columnspacing",sa.trim())}else ce.colSeparationType==="alignat"?Ie.setAttribute("columnspacing","0em"):ce.colSeparationType==="small"?Ie.setAttribute("columnspacing","0.2778em"):Ie.setAttribute("columnspacing","1em");var no="",Wo=ce.hLinesBeforeRow;Dt+=Wo[0].length>0?"left ":"",Dt+=Wo[Wo.length-1].length>0?"right ":"";for(var Zo=1;Zo<Wo.length-1;Zo++)no+=Wo[Zo].length===0?"none ":Wo[Zo][0]?"dashed ":"solid ";return/[sd]/.test(no)&&Ie.setAttribute("rowlines",no.trim()),Dt!==""&&(Ie=new yi.MathNode("menclose",[Ie]),Ie.setAttribute("notation",Dt.trim())),ce.arraystretch&&ce.arraystretch<1&&(Ie=new yi.MathNode("mstyle",[Ie]),Ie.setAttribute("scriptlevel","1")),Ie},_o=function(ce,Se){var Ie=[],Je=Io(ce.parser,{cols:Ie,addJot:!0},"display"),Dt,sr=0,Jr={type:"ordgroup",mode:ce.mode,body:[]},gn=bn(Se[0],"ordgroup");if(gn){for(var Dn="",ui=0;ui<gn.body.length;ui++){var Si=Bn(gn.body[ui],"textord");Dn+=Si.text}Dt=Number(Dn),sr=Dt*2}var vi=!sr;Je.body.forEach(function(no){for(var Wo=1;Wo<no.length;Wo+=2){var Zo=Bn(no[Wo],"styling"),Bo=Bn(Zo.body[0],"ordgroup");Bo.body.unshift(Jr)}if(vi)sr<no.length&&(sr=no.length);else{var Es=no.length/2;if(Dt<Es)throw new u("Too many math in a row: "+("expected "+Dt+", but got "+Es),no[0])}});for(var Qi=0;Qi<sr;++Qi){var sa="r",Ua=0;Qi%2===1?sa="l":Qi>0&&vi&&(Ua=1),Ie[Qi]={type:"align",align:sa,pregap:Ua,postgap:0}}return Je.colSeparationType=vi?"align":"alignat",Je};Ia({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(ce,Se){var Ie=Pi(Se[0]),Je=Ie?[Se[0]]:Bn(Se[0],"ordgroup").body,Dt=Je.map(function(Jr){var gn=pi(Jr),Dn=gn.text;if("lcr".indexOf(Dn)!==-1)return{type:"align",align:Dn};if(Dn==="|")return{type:"separator",separator:"|"};if(Dn===":")return{type:"separator",separator:":"};throw new u("Unknown column alignment: "+Dn,Jr)}),sr={cols:Dt,hskipBeforeAndAfter:!0};return Io(ce.parser,sr,os(ce.envName))},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(ce){var Se={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[ce.envName],Ie={hskipBeforeAndAfter:!1},Je=Io(ce.parser,Ie,os(ce.envName));return Se?{type:"leftright",mode:ce.mode,body:[Je],left:Se[0],right:Se[1],rightColor:void 0}:Je},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(ce){var Se={arraystretch:.5},Ie=Io(ce.parser,Se,"script");return Ie.colSeparationType="small",Ie},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["subarray"],props:{numArgs:1},handler:function(ce,Se){var Ie=Pi(Se[0]),Je=Ie?[Se[0]]:Bn(Se[0],"ordgroup").body,Dt=Je.map(function(Jr){var gn=pi(Jr),Dn=gn.text;if("lc".indexOf(Dn)!==-1)return{type:"align",align:Dn};throw new u("Unknown column alignment: "+Dn,Jr)});if(Dt.length>1)throw new u("{subarray} can contain only one column");var sr={cols:Dt,hskipBeforeAndAfter:!1,arraystretch:.5};if(sr=Io(ce.parser,sr,"script"),sr.body[0].length>1)throw new u("{subarray} can contain only one column");return sr},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(ce){var Se={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Ie=Io(ce.parser,Se,os(ce.envName));return{type:"leftright",mode:ce.mode,body:[Ie],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["aligned"],props:{numArgs:0},handler:_o,htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["gathered"],props:{numArgs:0},handler:function(ce){var Se={cols:[{type:"align",align:"c"}],addJot:!0};return Io(ce.parser,Se,"display")},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["alignedat"],props:{numArgs:1},handler:_o,htmlBuilder:xo,mathmlBuilder:Ho}),Lt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(ce,Se){throw new u(ce.funcName+" valid only within array environment")}});var uo=ts,Ha=uo;Lt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Dt=Se[0];if(Dt.type!=="ordgroup")throw new u("Invalid environment name",Dt);for(var sr="",Jr=0;Jr<Dt.body.length;++Jr)sr+=Bn(Dt.body[Jr],"textord").text;if(Je==="\\begin"){if(!Ha.hasOwnProperty(sr))throw new u("No such environment: "+sr,Dt);var gn=Ha[sr],Dn=Ie.parseArguments("\\begin{"+sr+"}",gn),ui=Dn.args,Si=Dn.optArgs,vi={mode:Ie.mode,envName:sr,parser:Ie},Qi=gn.handler(vi,ui,Si);Ie.expect("\\end",!1);var sa=Ie.nextToken,Ua=Bn(Ie.parseFunction(),"environment");if(Ua.name!==sr)throw new u("Mismatch: \\begin{"+sr+"} matched by \\end{"+Ua.name+"}",sa);return Qi}return{type:"environment",mode:Ie.mode,name:sr,nameGroup:Dt}}});var mt=Fr.makeSpan;function Tr(Nt,ce){var Se=vn(Nt.body,ce,!0);return mt([Nt.mclass],Se,ce)}function tn(Nt,ce){var Se,Ie=ta(Nt.body,ce);return Nt.mclass==="minner"?yi.newDocumentFragment(Ie):(Nt.mclass==="mord"?Nt.isCharacterBox?(Se=Ie[0],Se.type="mi"):Se=new yi.MathNode("mi",Ie):(Nt.isCharacterBox?(Se=Ie[0],Se.type="mo"):Se=new yi.MathNode("mo",Ie),Nt.mclass==="mbin"?(Se.attributes.lspace="0.22em",Se.attributes.rspace="0.22em"):Nt.mclass==="mpunct"?(Se.attributes.lspace="0em",Se.attributes.rspace="0.17em"):(Nt.mclass==="mopen"||Nt.mclass==="mclose")&&(Se.attributes.lspace="0em",Se.attributes.rspace="0em")),Se)}Lt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Dt=Se[0];return{type:"mclass",mode:Ie.mode,mclass:"m"+Je.substr(5),body:yr(Dt),isCharacterBox:A.isCharacterBox(Dt)}},htmlBuilder:Tr,mathmlBuilder:tn});var Qr=function(ce){var Se=ce.type==="ordgroup"&&ce.body.length?ce.body[0]:ce;return Se.type==="atom"&&(Se.family==="bin"||Se.family==="rel")?"m"+Se.family:"mord"};Lt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(ce,Se){var Ie=ce.parser;return{type:"mclass",mode:Ie.mode,mclass:Qr(Se[0]),body:[Se[1]],isCharacterBox:A.isCharacterBox(Se[1])}}}),Lt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Dt=Se[1],sr=Se[0],Jr;Je!=="\\stackrel"?Jr=Qr(Dt):Jr="mrel";var gn={type:"op",mode:Dt.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:Je!=="\\stackrel",body:yr(Dt)},Dn={type:"supsub",mode:sr.mode,base:gn,sup:Je==="\\underset"?null:sr,sub:Je==="\\underset"?sr:null};return{type:"mclass",mode:Ie.mode,mclass:Jr,body:[Dn],isCharacterBox:A.isCharacterBox(Dn)}},htmlBuilder:Tr,mathmlBuilder:tn});var Jn=function(ce,Se){var Ie=ce.font,Je=Se.withFont(Ie);return Ti(ce.body,Je)},fn=function(ce,Se){var Ie=ce.font,Je=Se.withFont(Ie);return Ir(ce.body,Je)},Xr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Lt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Dt=Se[0],sr=Je;return sr in Xr&&(sr=Xr[sr]),{type:"font",mode:Ie.mode,font:sr.slice(1),body:Dt}},htmlBuilder:Jn,mathmlBuilder:fn}),Lt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(ce,Se){var Ie=ce.parser,Je=Se[0],Dt=A.isCharacterBox(Je);return{type:"mclass",mode:Ie.mode,mclass:Qr(Je),body:[{type:"font",mode:Ie.mode,font:"boldsymbol",body:Je}],isCharacterBox:Dt}}}),Lt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Dt=ce.breakOnTokenText,sr=Ie.mode,Jr=Ie.parseExpression(!0,Dt),gn="math"+Je.slice(1);return{type:"font",mode:sr,font:gn,body:{type:"ordgroup",mode:Ie.mode,body:Jr}}},htmlBuilder:Jn,mathmlBuilder:fn});var ii=function(ce,Se){var Ie=Se;return ce==="display"?Ie=Ie.id>=z.SCRIPT.id?Ie.text():z.DISPLAY:ce==="text"&&Ie.size===z.DISPLAY.size?Ie=z.TEXT:ce==="script"?Ie=z.SCRIPT:ce==="scriptscript"&&(Ie=z.SCRIPTSCRIPT),Ie},nn=function(ce,Se){var Ie=ii(ce.size,Se.style),Je=Ie.fracNum(),Dt=Ie.fracDen(),sr;sr=Se.havingStyle(Je);var Jr=Ti(ce.numer,sr,Se);if(ce.continued){var gn=8.5/Se.fontMetrics().ptPerEm,Dn=3.5/Se.fontMetrics().ptPerEm;Jr.height=Jr.height<gn?gn:Jr.height,Jr.depth=Jr.depth<Dn?Dn:Jr.depth}sr=Se.havingStyle(Dt);var ui=Ti(ce.denom,sr,Se),Si,vi,Qi;ce.hasBarLine?(ce.barSize?(vi=Nr(ce.barSize,Se),Si=Fr.makeLineSpan("frac-line",Se,vi)):Si=Fr.makeLineSpan("frac-line",Se),vi=Si.height,Qi=Si.height):(Si=null,vi=0,Qi=Se.fontMetrics().defaultRuleThickness);var sa,Ua,no;Ie.size===z.DISPLAY.size||ce.size==="display"?(sa=Se.fontMetrics().num1,vi>0?Ua=3*Qi:Ua=7*Qi,no=Se.fontMetrics().denom1):(vi>0?(sa=Se.fontMetrics().num2,Ua=Qi):(sa=Se.fontMetrics().num3,Ua=3*Qi),no=Se.fontMetrics().denom2);var Wo;if(Si){var Bo=Se.fontMetrics().axisHeight;sa-Jr.depth-(Bo+.5*vi)<Ua&&(sa+=Ua-(sa-Jr.depth-(Bo+.5*vi))),Bo-.5*vi-(ui.height-no)<Ua&&(no+=Ua-(Bo-.5*vi-(ui.height-no)));var Es=-(Bo-.5*vi);Wo=Fr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ui,shift:no},{type:"elem",elem:Si,shift:Es},{type:"elem",elem:Jr,shift:-sa}]},Se)}else{var Zo=sa-Jr.depth-(ui.height-no);Zo<Ua&&(sa+=.5*(Ua-Zo),no+=.5*(Ua-Zo)),Wo=Fr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ui,shift:no},{type:"elem",elem:Jr,shift:-sa}]},Se)}sr=Se.havingStyle(Ie),Wo.height*=sr.sizeMultiplier/Se.sizeMultiplier,Wo.depth*=sr.sizeMultiplier/Se.sizeMultiplier;var As;Ie.size===z.DISPLAY.size?As=Se.fontMetrics().delim1:As=Se.fontMetrics().delim2;var $o,Do;return ce.leftDelim==null?$o=oi(Se,["mopen"]):$o=ao.customSizedDelim(ce.leftDelim,As,!0,Se.havingStyle(Ie),ce.mode,["mopen"]),ce.continued?Do=Fr.makeSpan([]):ce.rightDelim==null?Do=oi(Se,["mclose"]):Do=ao.customSizedDelim(ce.rightDelim,As,!0,Se.havingStyle(Ie),ce.mode,["mclose"]),Fr.makeSpan(["mord"].concat(sr.sizingClasses(Se)),[$o,Fr.makeSpan(["mfrac"],[Wo]),Do],Se)},Wn=function(ce,Se){var Ie=new yi.MathNode("mfrac",[Ir(ce.numer,Se),Ir(ce.denom,Se)]);if(!ce.hasBarLine)Ie.setAttribute("linethickness","0px");else if(ce.barSize){var Je=Nr(ce.barSize,Se);Ie.setAttribute("linethickness",Je+"em")}var Dt=ii(ce.size,Se.style);if(Dt.size!==Se.style.size){Ie=new yi.MathNode("mstyle",[Ie]);var sr=Dt.size===z.DISPLAY.size?"true":"false";Ie.setAttribute("displaystyle",sr),Ie.setAttribute("scriptlevel","0")}if(ce.leftDelim!=null||ce.rightDelim!=null){var Jr=[];if(ce.leftDelim!=null){var gn=new yi.MathNode("mo",[new yi.TextNode(ce.leftDelim.replace("\\",""))]);gn.setAttribute("fence","true"),Jr.push(gn)}if(Jr.push(Ie),ce.rightDelim!=null){var Dn=new yi.MathNode("mo",[new yi.TextNode(ce.rightDelim.replace("\\",""))]);Dn.setAttribute("fence","true"),Jr.push(Dn)}return ji(Jr)}return Ie};Lt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Dt=Se[0],sr=Se[1],Jr,gn=null,Dn=null,ui="auto";switch(Je){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Jr=!0;break;case"\\\\atopfrac":Jr=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Jr=!1,gn="(",Dn=")";break;case"\\\\bracefrac":Jr=!1,gn="\\{",Dn="\\}";break;case"\\\\brackfrac":Jr=!1,gn="[",Dn="]";break;default:throw new Error("Unrecognized genfrac command")}switch(Je){case"\\cfrac":case"\\dfrac":case"\\dbinom":ui="display";break;case"\\tfrac":case"\\tbinom":ui="text";break}return{type:"genfrac",mode:Ie.mode,continued:Je==="\\cfrac",numer:Dt,denom:sr,hasBarLine:Jr,leftDelim:gn,rightDelim:Dn,size:ui,barSize:null}},htmlBuilder:nn,mathmlBuilder:Wn}),Lt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(ce){var Se=ce.parser,Ie=ce.funcName,Je=ce.token,Dt;switch(Ie){case"\\over":Dt="\\frac";break;case"\\choose":Dt="\\binom";break;case"\\atop":Dt="\\\\atopfrac";break;case"\\brace":Dt="\\\\bracefrac";break;case"\\brack":Dt="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:Se.mode,replaceWith:Dt,token:Je}}});var li=["display","text","script","scriptscript"],ci=function(ce){var Se=null;return ce.length>0&&(Se=ce,Se=Se==="."?null:Se),Se};Lt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(ce,Se){var Ie=ce.parser,Je=Se[4],Dt=Se[5],sr=bn(Se[0],"atom");sr&&(sr=en(Se[0],"open"));var Jr=sr?ci(sr.text):null,gn=bn(Se[1],"atom");gn&&(gn=en(Se[1],"close"));var Dn=gn?ci(gn.text):null,ui=Bn(Se[2],"size"),Si,vi=null;ui.isBlank?Si=!0:(vi=ui.value,Si=vi.number>0);var Qi="auto",sa=bn(Se[3],"ordgroup");if(sa){if(sa.body.length>0){var Ua=Bn(sa.body[0],"textord");Qi=li[Number(Ua.text)]}}else sa=Bn(Se[3],"textord"),Qi=li[Number(sa.text)];return{type:"genfrac",mode:Ie.mode,numer:Je,denom:Dt,continued:!1,hasBarLine:Si,barSize:vi,leftDelim:Jr,rightDelim:Dn,size:Qi}},htmlBuilder:nn,mathmlBuilder:Wn}),Lt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Dt=ce.token;return{type:"infix",mode:Ie.mode,replaceWith:"\\\\abovefrac",size:Bn(Se[0],"size").value,token:Dt}}}),Lt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Dt=Se[0],sr=h(Bn(Se[1],"infix").size),Jr=Se[2],gn=sr.number>0;return{type:"genfrac",mode:Ie.mode,numer:Dt,denom:Jr,continued:!1,hasBarLine:gn,barSize:sr,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:nn,mathmlBuilder:Wn});var si=function(ce,Se){var Ie=Se.style,Je,Dt,sr=bn(ce,"supsub");sr?(Je=sr.sup?Ti(sr.sup,Se.havingStyle(Ie.sup()),Se):Ti(sr.sub,Se.havingStyle(Ie.sub()),Se),Dt=Bn(sr.base,"horizBrace")):Dt=Bn(ce,"horizBrace");var Jr=Ti(Dt.base,Se.havingBaseStyle(z.DISPLAY)),gn=Ln.svgSpan(Dt,Se),Dn;if(Dt.isOver?(Dn=Fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Jr},{type:"kern",size:.1},{type:"elem",elem:gn}]},Se),Dn.children[0].children[0].children[1].classes.push("svg-align")):(Dn=Fr.makeVList({positionType:"bottom",positionData:Jr.depth+.1+gn.height,children:[{type:"elem",elem:gn},{type:"kern",size:.1},{type:"elem",elem:Jr}]},Se),Dn.children[0].children[0].children[0].classes.push("svg-align")),Je){var ui=Fr.makeSpan(["mord",Dt.isOver?"mover":"munder"],[Dn],Se);Dt.isOver?Dn=Fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ui},{type:"kern",size:.2},{type:"elem",elem:Je}]},Se):Dn=Fr.makeVList({positionType:"bottom",positionData:ui.depth+.2+Je.height+Je.depth,children:[{type:"elem",elem:Je},{type:"kern",size:.2},{type:"elem",elem:ui}]},Se)}return Fr.makeSpan(["mord",Dt.isOver?"mover":"munder"],[Dn],Se)},Ci=function(ce,Se){var Ie=Ln.mathMLnode(ce.label);return new yi.MathNode(ce.isOver?"mover":"munder",[Ir(ce.base,Se),Ie])};Lt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName;return{type:"horizBrace",mode:Ie.mode,label:Je,isOver:/^\\over/.test(Je),base:Se[0]}},htmlBuilder:si,mathmlBuilder:Ci}),Lt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=Se[1],Dt=Bn(Se[0],"url").url;return Ie.settings.isTrusted({command:"\\href",url:Dt})?{type:"href",mode:Ie.mode,href:Dt,body:yr(Je)}:Ie.formatUnsupportedCmd("\\href")},htmlBuilder:function(ce,Se){var Ie=vn(ce.body,Se,!1);return Fr.makeAnchor(ce.href,[],Ie,Se)},mathmlBuilder:function(ce,Se){var Ie=ra(ce.body,Se);return Ie instanceof ma||(Ie=new ma("mrow",[Ie])),Ie.setAttribute("href",ce.href),Ie}}),Lt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=Bn(Se[0],"url").url;if(!Ie.settings.isTrusted({command:"\\url",url:Je}))return Ie.formatUnsupportedCmd("\\url");for(var Dt=[],sr=0;sr<Je.length;sr++){var Jr=Je[sr];Jr==="~"&&(Jr="\\textasciitilde"),Dt.push({type:"textord",mode:"text",text:Jr})}var gn={type:"text",mode:Ie.mode,font:"\\texttt",body:Dt};return{type:"href",mode:Ie.mode,href:Je,body:yr(gn)}}}),Lt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser;return{type:"htmlmathml",mode:Ie.mode,html:yr(Se[0]),mathml:yr(Se[1])}},htmlBuilder:function(ce,Se){var Ie=vn(ce.html,Se,!1);return Fr.makeFragment(Ie)},mathmlBuilder:function(ce,Se){return ra(ce.mathml,Se)}});var gi=function(ce){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(ce))return{number:+ce,unit:"bp"};var Se=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(ce);if(!Se)throw new u("Invalid size: '"+ce+"' in \\includegraphics");var Ie={number:+(Se[1]+Se[2]),unit:Se[3]};if(!Hr(Ie))throw new u("Invalid unit: '"+Ie.unit+"' in \\includegraphics.");return Ie};Lt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(ce,Se,Ie){var Je=ce.parser,Dt={number:0,unit:"em"},sr={number:.9,unit:"em"},Jr={number:0,unit:"em"},gn="";if(Ie[0])for(var Dn=Bn(Ie[0],"raw").string,ui=Dn.split(","),Si=0;Si<ui.length;Si++){var vi=ui[Si].split("=");if(vi.length===2){var Qi=vi[1].trim();switch(vi[0].trim()){case"alt":gn=Qi;break;case"width":Dt=gi(Qi);break;case"height":sr=gi(Qi);break;case"totalheight":Jr=gi(Qi);break;default:throw new u("Invalid key: '"+vi[0]+"' in \\includegraphics.")}}}var sa=Bn(Se[0],"url").url;return gn===""&&(gn=sa,gn=gn.replace(/^.*[\\/]/,""),gn=gn.substring(0,gn.lastIndexOf("."))),Je.settings.isTrusted({command:"\\includegraphics",url:sa})?{type:"includegraphics",mode:Je.mode,alt:gn,width:Dt,height:sr,totalheight:Jr,src:sa}:Je.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(ce,Se){var Ie=Nr(ce.height,Se),Je=0;ce.totalheight.number>0&&(Je=Nr(ce.totalheight,Se)-Ie,Je=Number(Je.toFixed(2)));var Dt=0;ce.width.number>0&&(Dt=Nr(ce.width,Se));var sr={height:Ie+Je+"em"};Dt>0&&(sr.width=Dt+"em"),Je>0&&(sr.verticalAlign=-Je+"em");var Jr=new de(ce.src,ce.alt,sr);return Jr.height=Ie,Jr.depth=Je,Jr},mathmlBuilder:function(ce,Se){var Ie=new yi.MathNode("mglyph",[]);Ie.setAttribute("alt",ce.alt);var Je=Nr(ce.height,Se),Dt=0;if(ce.totalheight.number>0&&(Dt=Nr(ce.totalheight,Se)-Je,Dt=Dt.toFixed(2),Ie.setAttribute("valign","-"+Dt+"em")),Ie.setAttribute("height",Je+Dt+"em"),ce.width.number>0){var sr=Nr(ce.width,Se);Ie.setAttribute("width",sr+"em")}return Ie.setAttribute("src",ce.src),Ie}}),Lt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Dt=Bn(Se[0],"size");if(Ie.settings.strict){var sr=Je[1]==="m",Jr=Dt.value.unit==="mu";sr?(Jr||Ie.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Je+" supports only mu units, "+("not "+Dt.value.unit+" units")),Ie.mode!=="math"&&Ie.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Je+" works only in math mode")):Jr&&Ie.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Je+" doesn't support mu units")}return{type:"kern",mode:Ie.mode,dimension:Dt.value}},htmlBuilder:function(ce,Se){return Fr.makeGlue(ce.dimension,Se)},mathmlBuilder:function(ce,Se){var Ie=Nr(ce.dimension,Se);return new yi.SpaceNode(Ie)}}),Lt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Dt=Se[0];return{type:"lap",mode:Ie.mode,alignment:Je.slice(5),body:Dt}},htmlBuilder:function(ce,Se){var Ie;ce.alignment==="clap"?(Ie=Fr.makeSpan([],[Ti(ce.body,Se)]),Ie=Fr.makeSpan(["inner"],[Ie],Se)):Ie=Fr.makeSpan(["inner"],[Ti(ce.body,Se)]);var Je=Fr.makeSpan(["fix"],[]),Dt=Fr.makeSpan([ce.alignment],[Ie,Je],Se),sr=Fr.makeSpan(["strut"]);return sr.style.height=Dt.height+Dt.depth+"em",sr.style.verticalAlign=-Dt.depth+"em",Dt.children.unshift(sr),Dt=Fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Dt}]},Se),Fr.makeSpan(["mord"],[Dt],Se)},mathmlBuilder:function(ce,Se){var Ie=new yi.MathNode("mpadded",[Ir(ce.body,Se)]);if(ce.alignment!=="rlap"){var Je=ce.alignment==="llap"?"-1":"-0.5";Ie.setAttribute("lspace",Je+"width")}return Ie.setAttribute("width","0px"),Ie}}),Lt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ce,Se){var Ie=ce.funcName,Je=ce.parser,Dt=Je.mode;Je.switchMode("math");var sr=Ie==="\\("?"\\)":"$",Jr=Je.parseExpression(!1,sr);return Je.expect(sr),Je.switchMode(Dt),{type:"styling",mode:Je.mode,style:"text",body:Jr}}}),Lt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ce,Se){throw new u("Mismatched "+ce.funcName)}});var Ai=function(ce,Se){switch(Se.style.size){case z.DISPLAY.size:return ce.display;case z.TEXT.size:return ce.text;case z.SCRIPT.size:return ce.script;case z.SCRIPTSCRIPT.size:return ce.scriptscript;default:return ce.text}};Lt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(ce,Se){var Ie=ce.parser;return{type:"mathchoice",mode:Ie.mode,display:yr(Se[0]),text:yr(Se[1]),script:yr(Se[2]),scriptscript:yr(Se[3])}},htmlBuilder:function(ce,Se){var Ie=Ai(ce,Se),Je=vn(Ie,Se,!1);return Fr.makeFragment(Je)},mathmlBuilder:function(ce,Se){var Ie=Ai(ce,Se);return ra(Ie,Se)}});var Ni=function(ce,Se,Ie,Je,Dt,sr,Jr){ce=Fr.makeSpan([],[ce]);var gn,Dn;if(Se){var ui=Ti(Se,Je.havingStyle(Dt.sup()),Je);Dn={elem:ui,kern:Math.max(Je.fontMetrics().bigOpSpacing1,Je.fontMetrics().bigOpSpacing3-ui.depth)}}if(Ie){var Si=Ti(Ie,Je.havingStyle(Dt.sub()),Je);gn={elem:Si,kern:Math.max(Je.fontMetrics().bigOpSpacing2,Je.fontMetrics().bigOpSpacing4-Si.height)}}var vi;if(Dn&&gn){var Qi=Je.fontMetrics().bigOpSpacing5+gn.elem.height+gn.elem.depth+gn.kern+ce.depth+Jr;vi=Fr.makeVList({positionType:"bottom",positionData:Qi,children:[{type:"kern",size:Je.fontMetrics().bigOpSpacing5},{type:"elem",elem:gn.elem,marginLeft:-sr+"em"},{type:"kern",size:gn.kern},{type:"elem",elem:ce},{type:"kern",size:Dn.kern},{type:"elem",elem:Dn.elem,marginLeft:sr+"em"},{type:"kern",size:Je.fontMetrics().bigOpSpacing5}]},Je)}else if(gn){var sa=ce.height-Jr;vi=Fr.makeVList({positionType:"top",positionData:sa,children:[{type:"kern",size:Je.fontMetrics().bigOpSpacing5},{type:"elem",elem:gn.elem,marginLeft:-sr+"em"},{type:"kern",size:gn.kern},{type:"elem",elem:ce}]},Je)}else if(Dn){var Ua=ce.depth+Jr;vi=Fr.makeVList({positionType:"bottom",positionData:Ua,children:[{type:"elem",elem:ce},{type:"kern",size:Dn.kern},{type:"elem",elem:Dn.elem,marginLeft:sr+"em"},{type:"kern",size:Je.fontMetrics().bigOpSpacing5}]},Je)}else return ce;return Fr.makeSpan(["mop","op-limits"],[vi],Je)},ia=["\\smallint"],Ki=function(ce,Se){var Ie,Je,Dt=!1,sr,Jr=bn(ce,"supsub");Jr?(Ie=Jr.sup,Je=Jr.sub,sr=Bn(Jr.base,"op"),Dt=!0):sr=Bn(ce,"op");var gn=Se.style,Dn=!1;gn.size===z.DISPLAY.size&&sr.symbol&&!A.contains(ia,sr.name)&&(Dn=!0);var ui;if(sr.symbol){var Si=Dn?"Size2-Regular":"Size1-Regular",vi="";if((sr.name==="\\oiint"||sr.name==="\\oiiint")&&(vi=sr.name.substr(1),sr.name=vi==="oiint"?"\\iint":"\\iiint"),ui=Fr.makeSymbol(sr.name,Si,"math",Se,["mop","op-symbol",Dn?"large-op":"small-op"]),vi.length>0){var Qi=ui.italic,sa=Fr.staticSvg(vi+"Size"+(Dn?"2":"1"),Se);ui=Fr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ui,shift:0},{type:"elem",elem:sa,shift:Dn?.08:0}]},Se),sr.name="\\"+vi,ui.classes.unshift("mop"),ui.italic=Qi}}else if(sr.body){var Ua=vn(sr.body,Se,!0);Ua.length===1&&Ua[0]instanceof Ce?(ui=Ua[0],ui.classes[0]="mop"):ui=Fr.makeSpan(["mop"],Fr.tryCombineChars(Ua),Se)}else{for(var no=[],Wo=1;Wo<sr.name.length;Wo++)no.push(Fr.mathsym(sr.name[Wo],sr.mode,Se));ui=Fr.makeSpan(["mop"],no,Se)}var Zo=0,Bo=0;return(ui instanceof Ce||sr.name==="\\oiint"||sr.name==="\\oiiint")&&!sr.suppressBaseShift&&(Zo=(ui.height-ui.depth)/2-Se.fontMetrics().axisHeight,Bo=ui.italic),Dt?Ni(ui,Ie,Je,Se,gn,Bo,Zo):(Zo&&(ui.style.position="relative",ui.style.top=Zo+"em"),ui)},fa=function(ce,Se){var Ie;if(ce.symbol)Ie=new ma("mo",[kn(ce.name,ce.mode)]),A.contains(ia,ce.name)&&Ie.setAttribute("largeop","false");else if(ce.body)Ie=new ma("mo",ta(ce.body,Se));else{Ie=new ma("mi",[new aa(ce.name.slice(1))]);var Je=new ma("mo",[kn("\u2061","text")]);ce.parentIsSupSub?Ie=new ma("mo",[Ie,Je]):Ie=oa([Ie,Je])}return Ie},Ya={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Lt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Dt=Je;return Dt.length===1&&(Dt=Ya[Dt]),{type:"op",mode:Ie.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:Dt}},htmlBuilder:Ki,mathmlBuilder:fa}),Lt({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(ce,Se){var Ie=ce.parser,Je=Se[0];return{type:"op",mode:Ie.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:yr(Je)}},htmlBuilder:Ki,mathmlBuilder:fa});var xa={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Lt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(ce){var Se=ce.parser,Ie=ce.funcName;return{type:"op",mode:Se.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:Ie}},htmlBuilder:Ki,mathmlBuilder:fa}),Lt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(ce){var Se=ce.parser,Ie=ce.funcName;return{type:"op",mode:Se.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:Ie}},htmlBuilder:Ki,mathmlBuilder:fa}),Lt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(ce){var Se=ce.parser,Ie=ce.funcName,Je=Ie;return Je.length===1&&(Je=xa[Je]),{type:"op",mode:Se.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:Je}},htmlBuilder:Ki,mathmlBuilder:fa});var wa=function(ce,Se){var Ie,Je,Dt=!1,sr,Jr=bn(ce,"supsub");Jr?(Ie=Jr.sup,Je=Jr.sub,sr=Bn(Jr.base,"operatorname"),Dt=!0):sr=Bn(ce,"operatorname");var gn;if(sr.body.length>0){for(var Dn=sr.body.map(function(Qi){var sa=Qi.text;return typeof sa=="string"?{type:"textord",mode:Qi.mode,text:sa}:Qi}),ui=vn(Dn,Se.withFont("mathrm"),!0),Si=0;Si<ui.length;Si++){var vi=ui[Si];vi instanceof Ce&&(vi.text=vi.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}gn=Fr.makeSpan(["mop"],ui,Se)}else gn=Fr.makeSpan(["mop"],[],Se);return Dt?Ni(gn,Ie,Je,Se,Se.style,0,0):gn},Da=function(ce,Se){for(var Ie=ta(ce.body,Se.withFont("mathrm")),Je=!0,Dt=0;Dt<Ie.length;Dt++){var sr=Ie[Dt];if(!(sr instanceof yi.SpaceNode))if(sr instanceof yi.MathNode)switch(sr.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Jr=sr.children[0];sr.children.length===1&&Jr instanceof yi.TextNode?Jr.text=Jr.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):Je=!1;break}default:Je=!1}else Je=!1}if(Je){var gn=Ie.map(function(Si){return Si.toText()}).join("");Ie=[new yi.TextNode(gn)]}var Dn=new yi.MathNode("mi",Ie);Dn.setAttribute("mathvariant","normal");var ui=new yi.MathNode("mo",[kn("\u2061","text")]);return ce.parentIsSupSub?new yi.MathNode("mo",[Dn,ui]):yi.newDocumentFragment([Dn,ui])};Lt({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Dt=Se[0];return{type:"operatorname",mode:Ie.mode,body:yr(Dt),alwaysHandleSupSub:Je==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:wa,mathmlBuilder:Da}),dr({type:"ordgroup",htmlBuilder:function(ce,Se){return ce.semisimple?Fr.makeFragment(vn(ce.body,Se,!1)):Fr.makeSpan(["mord"],vn(ce.body,Se,!0),Se)},mathmlBuilder:function(ce,Se){return ra(ce.body,Se,!0)}}),Lt({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(ce,Se){var Ie=ce.parser,Je=Se[0];return{type:"overline",mode:Ie.mode,body:Je}},htmlBuilder:function(ce,Se){var Ie=Ti(ce.body,Se.havingCrampedStyle()),Je=Fr.makeLineSpan("overline-line",Se),Dt=Se.fontMetrics().defaultRuleThickness,sr=Fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie},{type:"kern",size:3*Dt},{type:"elem",elem:Je},{type:"kern",size:Dt}]},Se);return Fr.makeSpan(["mord","overline"],[sr],Se)},mathmlBuilder:function(ce,Se){var Ie=new yi.MathNode("mo",[new yi.TextNode("\u203E")]);Ie.setAttribute("stretchy","true");var Je=new yi.MathNode("mover",[Ir(ce.body,Se),Ie]);return Je.setAttribute("accent","true"),Je}}),Lt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=Se[0];return{type:"phantom",mode:Ie.mode,body:yr(Je)}},htmlBuilder:function(ce,Se){var Ie=vn(ce.body,Se.withPhantom(),!1);return Fr.makeFragment(Ie)},mathmlBuilder:function(ce,Se){var Ie=ta(ce.body,Se);return new yi.MathNode("mphantom",Ie)}}),Lt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=Se[0];return{type:"hphantom",mode:Ie.mode,body:Je}},htmlBuilder:function(ce,Se){var Ie=Fr.makeSpan([],[Ti(ce.body,Se.withPhantom())]);if(Ie.height=0,Ie.depth=0,Ie.children)for(var Je=0;Je<Ie.children.length;Je++)Ie.children[Je].height=0,Ie.children[Je].depth=0;return Ie=Fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie}]},Se),Fr.makeSpan(["mord"],[Ie],Se)},mathmlBuilder:function(ce,Se){var Ie=ta(yr(ce.body),Se),Je=new yi.MathNode("mphantom",Ie),Dt=new yi.MathNode("mpadded",[Je]);return Dt.setAttribute("height","0px"),Dt.setAttribute("depth","0px"),Dt}}),Lt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=Se[0];return{type:"vphantom",mode:Ie.mode,body:Je}},htmlBuilder:function(ce,Se){var Ie=Fr.makeSpan(["inner"],[Ti(ce.body,Se.withPhantom())]),Je=Fr.makeSpan(["fix"],[]);return Fr.makeSpan(["mord","rlap"],[Ie,Je],Se)},mathmlBuilder:function(ce,Se){var Ie=ta(yr(ce.body),Se),Je=new yi.MathNode("mphantom",Ie),Dt=new yi.MathNode("mpadded",[Je]);return Dt.setAttribute("width","0px"),Dt}}),Lt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=Bn(Se[0],"size").value,Dt=Se[1];return{type:"raisebox",mode:Ie.mode,dy:Je,body:Dt}},htmlBuilder:function(ce,Se){var Ie=Ti(ce.body,Se),Je=Nr(ce.dy,Se);return Fr.makeVList({positionType:"shift",positionData:-Je,children:[{type:"elem",elem:Ie}]},Se)},mathmlBuilder:function(ce,Se){var Ie=new yi.MathNode("mpadded",[Ir(ce.body,Se)]),Je=ce.dy.number+ce.dy.unit;return Ie.setAttribute("voffset",Je),Ie}}),Lt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(ce,Se,Ie){var Je=ce.parser,Dt=Ie[0],sr=Bn(Se[0],"size"),Jr=Bn(Se[1],"size");return{type:"rule",mode:Je.mode,shift:Dt&&Bn(Dt,"size").value,width:sr.value,height:Jr.value}},htmlBuilder:function(ce,Se){var Ie=Fr.makeSpan(["mord","rule"],[],Se),Je=Nr(ce.width,Se),Dt=Nr(ce.height,Se),sr=ce.shift?Nr(ce.shift,Se):0;return Ie.style.borderRightWidth=Je+"em",Ie.style.borderTopWidth=Dt+"em",Ie.style.bottom=sr+"em",Ie.width=Je,Ie.height=Dt+sr,Ie.depth=-sr,Ie.maxFontSize=Dt*1.125*Se.sizeMultiplier,Ie},mathmlBuilder:function(ce,Se){var Ie=Nr(ce.width,Se),Je=Nr(ce.height,Se),Dt=ce.shift?Nr(ce.shift,Se):0,sr=Se.color&&Se.getColor()||"black",Jr=new yi.MathNode("mspace");Jr.setAttribute("mathbackground",sr),Jr.setAttribute("width",Ie+"em"),Jr.setAttribute("height",Je+"em");var gn=new yi.MathNode("mpadded",[Jr]);return Dt>=0?gn.setAttribute("height","+"+Dt+"em"):(gn.setAttribute("height",Dt+"em"),gn.setAttribute("depth","+"+-Dt+"em")),gn.setAttribute("voffset",Dt+"em"),gn}});function ja(Nt,ce,Se){for(var Ie=vn(Nt,ce,!1),Je=ce.sizeMultiplier/Se.sizeMultiplier,Dt=0;Dt<Ie.length;Dt++){var sr=Ie[Dt].classes.indexOf("sizing");sr<0?Array.prototype.push.apply(Ie[Dt].classes,ce.sizingClasses(Se)):Ie[Dt].classes[sr+1]==="reset-size"+ce.size&&(Ie[Dt].classes[sr+1]="reset-size"+Se.size),Ie[Dt].height*=Je,Ie[Dt].depth*=Je}return Fr.makeFragment(Ie)}var ko=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],ro=function(ce,Se){var Ie=Se.havingSize(ce.size);return ja(ce.body,Ie,Se)};Lt({type:"sizing",names:ko,props:{numArgs:0,allowedInText:!0},handler:function(ce,Se){var Ie=ce.breakOnTokenText,Je=ce.funcName,Dt=ce.parser,sr=Dt.parseExpression(!1,Ie);return{type:"sizing",mode:Dt.mode,size:ko.indexOf(Je)+1,body:sr}},htmlBuilder:ro,mathmlBuilder:function(ce,Se){var Ie=Se.havingSize(ce.size),Je=ta(ce.body,Ie),Dt=new yi.MathNode("mstyle",Je);return Dt.setAttribute("mathsize",Ie.sizeMultiplier+"em"),Dt}}),Lt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(ce,Se,Ie){var Je=ce.parser,Dt=!1,sr=!1,Jr=Ie[0]&&Bn(Ie[0],"ordgroup");if(Jr)for(var gn="",Dn=0;Dn<Jr.body.length;++Dn){var ui=Jr.body[Dn];if(gn=ui.text,gn==="t")Dt=!0;else if(gn==="b")sr=!0;else{Dt=!1,sr=!1;break}}else Dt=!0,sr=!0;var Si=Se[0];return{type:"smash",mode:Je.mode,body:Si,smashHeight:Dt,smashDepth:sr}},htmlBuilder:function(ce,Se){var Ie=Fr.makeSpan([],[Ti(ce.body,Se)]);if(!ce.smashHeight&&!ce.smashDepth)return Ie;if(ce.smashHeight&&(Ie.height=0,Ie.children))for(var Je=0;Je<Ie.children.length;Je++)Ie.children[Je].height=0;if(ce.smashDepth&&(Ie.depth=0,Ie.children))for(var Dt=0;Dt<Ie.children.length;Dt++)Ie.children[Dt].depth=0;var sr=Fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie}]},Se);return Fr.makeSpan(["mord"],[sr],Se)},mathmlBuilder:function(ce,Se){var Ie=new yi.MathNode("mpadded",[Ir(ce.body,Se)]);return ce.smashHeight&&Ie.setAttribute("height","0px"),ce.smashDepth&&Ie.setAttribute("depth","0px"),Ie}}),Lt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(ce,Se,Ie){var Je=ce.parser,Dt=Ie[0],sr=Se[0];return{type:"sqrt",mode:Je.mode,body:sr,index:Dt}},htmlBuilder:function(ce,Se){var Ie=Ti(ce.body,Se.havingCrampedStyle());Ie.height===0&&(Ie.height=Se.fontMetrics().xHeight),Ie=Fr.wrapFragment(Ie,Se);var Je=Se.fontMetrics(),Dt=Je.defaultRuleThickness,sr=Dt;Se.style.id<z.TEXT.id&&(sr=Se.fontMetrics().xHeight);var Jr=Dt+sr/4,gn=Ie.height+Ie.depth+Jr+Dt,Dn=ao.sqrtImage(gn,Se),ui=Dn.span,Si=Dn.ruleWidth,vi=Dn.advanceWidth,Qi=ui.height-Si;Qi>Ie.height+Ie.depth+Jr&&(Jr=(Jr+Qi-Ie.height-Ie.depth)/2);var sa=ui.height-Ie.height-Jr-Si;Ie.style.paddingLeft=vi+"em";var Ua=Fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie,wrapperClasses:["svg-align"]},{type:"kern",size:-(Ie.height+sa)},{type:"elem",elem:ui},{type:"kern",size:Si}]},Se);if(ce.index){var no=Se.havingStyle(z.SCRIPTSCRIPT),Wo=Ti(ce.index,no,Se),Zo=.6*(Ua.height-Ua.depth),Bo=Fr.makeVList({positionType:"shift",positionData:-Zo,children:[{type:"elem",elem:Wo}]},Se),Es=Fr.makeSpan(["root"],[Bo]);return Fr.makeSpan(["mord","sqrt"],[Es,Ua],Se)}else return Fr.makeSpan(["mord","sqrt"],[Ua],Se)},mathmlBuilder:function(ce,Se){var Ie=ce.body,Je=ce.index;return Je?new yi.MathNode("mroot",[Ir(Ie,Se),Ir(Je,Se)]):new yi.MathNode("msqrt",[Ir(Ie,Se)])}});var pa={display:z.DISPLAY,text:z.TEXT,script:z.SCRIPT,scriptscript:z.SCRIPTSCRIPT};Lt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(ce,Se){var Ie=ce.breakOnTokenText,Je=ce.funcName,Dt=ce.parser,sr=Dt.parseExpression(!0,Ie),Jr=Je.slice(1,Je.length-5);return{type:"styling",mode:Dt.mode,style:Jr,body:sr}},htmlBuilder:function(ce,Se){var Ie=pa[ce.style],Je=Se.havingStyle(Ie).withFont("");return ja(ce.body,Je,Se)},mathmlBuilder:function(ce,Se){var Ie=pa[ce.style],Je=Se.havingStyle(Ie),Dt=ta(ce.body,Je),sr=new yi.MathNode("mstyle",Dt),Jr={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},gn=Jr[ce.style];return sr.setAttribute("scriptlevel",gn[0]),sr.setAttribute("displaystyle",gn[1]),sr}});var Ea=function(ce,Se){var Ie=ce.base;if(Ie)if(Ie.type==="op"){var Je=Ie.limits&&(Se.style.size===z.DISPLAY.size||Ie.alwaysHandleSupSub);return Je?Ki:null}else if(Ie.type==="operatorname"){var Dt=Ie.alwaysHandleSupSub&&(Se.style.size===z.DISPLAY.size||Ie.limits);return Dt?wa:null}else{if(Ie.type==="accent")return A.isCharacterBox(Ie.base)?Sn:null;if(Ie.type==="horizBrace"){var sr=!ce.sub;return sr===Ie.isOver?si:null}else return null}else return null};dr({type:"supsub",htmlBuilder:function(ce,Se){var Ie=Ea(ce,Se);if(Ie)return Ie(ce,Se);var Je=ce.base,Dt=ce.sup,sr=ce.sub,Jr=Ti(Je,Se),gn,Dn,ui=Se.fontMetrics(),Si=0,vi=0,Qi=Je&&A.isCharacterBox(Je);if(Dt){var sa=Se.havingStyle(Se.style.sup());gn=Ti(Dt,sa,Se),Qi||(Si=Jr.height-sa.fontMetrics().supDrop*sa.sizeMultiplier/Se.sizeMultiplier)}if(sr){var Ua=Se.havingStyle(Se.style.sub());Dn=Ti(sr,Ua,Se),Qi||(vi=Jr.depth+Ua.fontMetrics().subDrop*Ua.sizeMultiplier/Se.sizeMultiplier)}var no;Se.style===z.DISPLAY?no=ui.sup1:Se.style.cramped?no=ui.sup3:no=ui.sup2;var Wo=Se.sizeMultiplier,Zo=.5/ui.ptPerEm/Wo+"em",Bo=null;if(Dn){var Es=ce.base&&ce.base.type==="op"&&ce.base.name&&(ce.base.name==="\\oiint"||ce.base.name==="\\oiiint");(Jr instanceof Ce||Es)&&(Bo=-Jr.italic+"em")}var As;if(gn&&Dn){Si=Math.max(Si,no,gn.depth+.25*ui.xHeight),vi=Math.max(vi,ui.sub2);var $o=ui.defaultRuleThickness,Do=4*$o;if(Si-gn.depth-(Dn.height-vi)<Do){vi=Do-(Si-gn.depth)+Dn.height;var vo=.8*ui.xHeight-(Si-gn.depth);vo>0&&(Si+=vo,vi-=vo)}var Ms=[{type:"elem",elem:Dn,shift:vi,marginRight:Zo,marginLeft:Bo},{type:"elem",elem:gn,shift:-Si,marginRight:Zo}];As=Fr.makeVList({positionType:"individualShift",children:Ms},Se)}else if(Dn){vi=Math.max(vi,ui.sub1,Dn.height-.8*ui.xHeight);var rl=[{type:"elem",elem:Dn,marginLeft:Bo,marginRight:Zo}];As=Fr.makeVList({positionType:"shift",positionData:vi,children:rl},Se)}else if(gn)Si=Math.max(Si,no,gn.depth+.25*ui.xHeight),As=Fr.makeVList({positionType:"shift",positionData:-Si,children:[{type:"elem",elem:gn,marginRight:Zo}]},Se);else throw new Error("supsub must have either sup or sub.");var gs=qn(Jr,"right")||"mord";return Fr.makeSpan([gs],[Jr,Fr.makeSpan(["msupsub"],[As])],Se)},mathmlBuilder:function(ce,Se){var Ie=!1,Je,Dt,sr=bn(ce.base,"horizBrace");sr&&(Dt=!!ce.sup,Dt===sr.isOver&&(Ie=!0,Je=sr.isOver)),ce.base&&(ce.base.type==="op"||ce.base.type==="operatorname")&&(ce.base.parentIsSupSub=!0);var Jr=[Ir(ce.base,Se)];ce.sub&&Jr.push(Ir(ce.sub,Se)),ce.sup&&Jr.push(Ir(ce.sup,Se));var gn;if(Ie)gn=Je?"mover":"munder";else if(ce.sub)if(ce.sup){var Si=ce.base;Si&&Si.type==="op"&&Si.limits&&Se.style===z.DISPLAY||Si&&Si.type==="operatorname"&&Si.alwaysHandleSupSub&&(Se.style===z.DISPLAY||Si.limits)?gn="munderover":gn="msubsup"}else{var ui=ce.base;ui&&ui.type==="op"&&ui.limits&&(Se.style===z.DISPLAY||ui.alwaysHandleSupSub)||ui&&ui.type==="operatorname"&&ui.alwaysHandleSupSub&&(ui.limits||Se.style===z.DISPLAY)?gn="munder":gn="msub"}else{var Dn=ce.base;Dn&&Dn.type==="op"&&Dn.limits&&(Se.style===z.DISPLAY||Dn.alwaysHandleSupSub)||Dn&&Dn.type==="operatorname"&&Dn.alwaysHandleSupSub&&(Dn.limits||Se.style===z.DISPLAY)?gn="mover":gn="msup"}var vi=new yi.MathNode(gn,Jr);return vi}}),dr({type:"atom",htmlBuilder:function(ce,Se){return Fr.mathsym(ce.text,ce.mode,Se,["m"+ce.family])},mathmlBuilder:function(ce,Se){var Ie=new yi.MathNode("mo",[kn(ce.text,ce.mode)]);if(ce.family==="bin"){var Je=ha(ce,Se);Je==="bold-italic"&&Ie.setAttribute("mathvariant",Je)}else ce.family==="punct"?Ie.setAttribute("separator","true"):(ce.family==="open"||ce.family==="close")&&Ie.setAttribute("stretchy","false");return Ie}});var Fa={mi:"italic",mn:"normal",mtext:"normal"};dr({type:"mathord",htmlBuilder:function(ce,Se){return Fr.makeOrd(ce,Se,"mathord")},mathmlBuilder:function(ce,Se){var Ie=new yi.MathNode("mi",[kn(ce.text,ce.mode,Se)]),Je=ha(ce,Se)||"italic";return Je!==Fa[Ie.type]&&Ie.setAttribute("mathvariant",Je),Ie}}),dr({type:"textord",htmlBuilder:function(ce,Se){return Fr.makeOrd(ce,Se,"textord")},mathmlBuilder:function(ce,Se){var Ie=kn(ce.text,ce.mode,Se),Je=ha(ce,Se)||"normal",Dt;return ce.mode==="text"?Dt=new yi.MathNode("mtext",[Ie]):/[0-9]/.test(ce.text)?Dt=new yi.MathNode("mn",[Ie]):ce.text==="\\prime"?Dt=new yi.MathNode("mo",[Ie]):Dt=new yi.MathNode("mi",[Ie]),Je!==Fa[Dt.type]&&Dt.setAttribute("mathvariant",Je),Dt}});var Ka={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},lo={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};dr({type:"spacing",htmlBuilder:function(ce,Se){if(lo.hasOwnProperty(ce.text)){var Ie=lo[ce.text].className||"";if(ce.mode==="text"){var Je=Fr.makeOrd(ce,Se,"textord");return Je.classes.push(Ie),Je}else return Fr.makeSpan(["mspace",Ie],[Fr.mathsym(ce.text,ce.mode,Se)],Se)}else{if(Ka.hasOwnProperty(ce.text))return Fr.makeSpan(["mspace",Ka[ce.text]],[],Se);throw new u('Unknown type of space "'+ce.text+'"')}},mathmlBuilder:function(ce,Se){var Ie;if(lo.hasOwnProperty(ce.text))Ie=new yi.MathNode("mtext",[new yi.TextNode("\xA0")]);else{if(Ka.hasOwnProperty(ce.text))return new yi.MathNode("mspace");throw new u('Unknown type of space "'+ce.text+'"')}return Ie}});var so=function(){var ce=new yi.MathNode("mtd",[]);return ce.setAttribute("width","50%"),ce};dr({type:"tag",mathmlBuilder:function(ce,Se){var Ie=new yi.MathNode("mtable",[new yi.MathNode("mtr",[so(),new yi.MathNode("mtd",[ra(ce.body,Se)]),so(),new yi.MathNode("mtd",[ra(ce.tag,Se)])])]);return Ie.setAttribute("width","100%"),Ie}});var Co={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Lo={"\\textbf":"textbf","\\textmd":"textmd"},is={"\\textit":"textit","\\textup":"textup"},cs=function(ce,Se){var Ie=ce.font;return Ie?Co[Ie]?Se.withTextFontFamily(Co[Ie]):Lo[Ie]?Se.withTextFontWeight(Lo[Ie]):Se.withTextFontShape(is[Ie]):Se};Lt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Dt=Se[0];return{type:"text",mode:Ie.mode,body:yr(Dt),font:Je}},htmlBuilder:function(ce,Se){var Ie=cs(ce,Se),Je=vn(ce.body,Ie,!0);return Fr.makeSpan(["mord","text"],Fr.tryCombineChars(Je),Ie)},mathmlBuilder:function(ce,Se){var Ie=cs(ce,Se);return ra(ce.body,Ie)}}),Lt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser;return{type:"underline",mode:Ie.mode,body:Se[0]}},htmlBuilder:function(ce,Se){var Ie=Ti(ce.body,Se),Je=Fr.makeLineSpan("underline-line",Se),Dt=Se.fontMetrics().defaultRuleThickness,sr=Fr.makeVList({positionType:"top",positionData:Ie.height,children:[{type:"kern",size:Dt},{type:"elem",elem:Je},{type:"kern",size:3*Dt},{type:"elem",elem:Ie}]},Se);return Fr.makeSpan(["mord","underline"],[sr],Se)},mathmlBuilder:function(ce,Se){var Ie=new yi.MathNode("mo",[new yi.TextNode("\u203E")]);Ie.setAttribute("stretchy","true");var Je=new yi.MathNode("munder",[Ir(ce.body,Se),Ie]);return Je.setAttribute("accentunder","true"),Je}}),Lt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(ce,Se,Ie){throw new u("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(ce,Se){for(var Ie=Rs(ce),Je=[],Dt=Se.havingStyle(Se.style.text()),sr=0;sr<Ie.length;sr++){var Jr=Ie[sr];Jr==="~"&&(Jr="\\textasciitilde"),Je.push(Fr.makeSymbol(Jr,"Typewriter-Regular",ce.mode,Dt,["mord","texttt"]))}return Fr.makeSpan(["mord","text"].concat(Dt.sizingClasses(Se)),Fr.tryCombineChars(Je),Dt)},mathmlBuilder:function(ce,Se){var Ie=new yi.TextNode(Rs(ce)),Je=new yi.MathNode("mtext",[Ie]);return Je.setAttribute("mathvariant","monospace"),Je}});var Rs=function(ce){return ce.body.replace(/ /g,ce.star?"\u2423":"\xA0")},Ko=kt,as=Ko,co=`[ \r
|
|
|
]`,Ao="\\\\[a-zA-Z@]+",$a="\\\\[^\uD800-\uDFFF]",ss=""+Ao+co+"*",_s=new RegExp("^("+Ao+")"+co+"*$"),Fo="[\u0300-\u036F]",il=new RegExp(Fo+"+$"),Eo="("+co+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(Fo+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Fo+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+ss)+("|"+$a+")"),zo=function(){function Nt(Se,Ie){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=Se,this.settings=Ie,this.tokenRegex=new RegExp(Eo,"g"),this.catcodes={"%":14}}var ce=Nt.prototype;return ce.setCatcode=function(Ie,Je){this.catcodes[Ie]=Je},ce.lex=function(){var Ie=this.input,Je=this.tokenRegex.lastIndex;if(Je===Ie.length)return new p("EOF",new m(this,Je,Je));var Dt=this.tokenRegex.exec(Ie);if(Dt===null||Dt.index!==Je)throw new u("Unexpected character: '"+Ie[Je]+"'",new p(Ie[Je],new m(this,Je,Je+1)));var sr=Dt[2]||" ";if(this.catcodes[sr]===14){var Jr=Ie.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return Jr===-1?(this.tokenRegex.lastIndex=Ie.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=Jr+1,this.lex()}var gn=sr.match(_s);return gn&&(sr=gn[1]),new p(sr,new m(this,Je,this.tokenRegex.lastIndex))},Nt}(),Fs=function(){function Nt(Se,Ie){Se===void 0&&(Se={}),Ie===void 0&&(Ie={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=Ie,this.builtins=Se,this.undefStack=[]}var ce=Nt.prototype;return ce.beginGroup=function(){this.undefStack.push({})},ce.endGroup=function(){if(this.undefStack.length===0)throw new u("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var Ie=this.undefStack.pop();for(var Je in Ie)Ie.hasOwnProperty(Je)&&(Ie[Je]===void 0?delete this.current[Je]:this.current[Je]=Ie[Je])},ce.has=function(Ie){return this.current.hasOwnProperty(Ie)||this.builtins.hasOwnProperty(Ie)},ce.get=function(Ie){return this.current.hasOwnProperty(Ie)?this.current[Ie]:this.builtins[Ie]},ce.set=function(Ie,Je,Dt){if(Dt===void 0&&(Dt=!1),Dt){for(var sr=0;sr<this.undefStack.length;sr++)delete this.undefStack[sr][Ie];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][Ie]=Je)}else{var Jr=this.undefStack[this.undefStack.length-1];Jr&&!Jr.hasOwnProperty(Ie)&&(Jr[Ie]=this.current[Ie])}this.current[Ie]=Je},Nt}(),ms={},hs=ms;function wn(Nt,ce){ms[Nt]=ce}wn("\\@firstoftwo",function(Nt){var ce=Nt.consumeArgs(2);return{tokens:ce[0],numArgs:0}}),wn("\\@secondoftwo",function(Nt){var ce=Nt.consumeArgs(2);return{tokens:ce[1],numArgs:0}}),wn("\\@ifnextchar",function(Nt){var ce=Nt.consumeArgs(3),Se=Nt.future();return ce[0].length===1&&ce[0][0].text===Se.text?{tokens:ce[1],numArgs:0}:{tokens:ce[2],numArgs:0}}),wn("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),wn("\\TextOrMath",function(Nt){var ce=Nt.consumeArgs(2);return Nt.mode==="text"?{tokens:ce[0],numArgs:0}:{tokens:ce[1],numArgs:0}});var Ns={"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};wn("\\char",function(Nt){var ce=Nt.popToken(),Se,Ie="";if(ce.text==="'")Se=8,ce=Nt.popToken();else if(ce.text==='"')Se=16,ce=Nt.popToken();else if(ce.text==="`")if(ce=Nt.popToken(),ce.text[0]==="\\")Ie=ce.text.charCodeAt(1);else{if(ce.text==="EOF")throw new u("\\char` missing argument");Ie=ce.text.charCodeAt(0)}else Se=10;if(Se){if(Ie=Ns[ce.text],Ie==null||Ie>=Se)throw new u("Invalid base-"+Se+" digit "+ce.text);for(var Je;(Je=Ns[Nt.future().text])!=null&&Je<Se;)Ie*=Se,Ie+=Je,Nt.popToken()}return"\\@char{"+Ie+"}"});var Ll=function(ce,Se){var Ie=ce.consumeArgs(1)[0];if(Ie.length!==1)throw new u("\\gdef's first argument must be a macro name");var Je=Ie[0].text,Dt=0;for(Ie=ce.consumeArgs(1)[0];Ie.length===1&&Ie[0].text==="#";){if(Ie=ce.consumeArgs(1)[0],Ie.length!==1)throw new u('Invalid argument number length "'+Ie.length+'"');if(!/^[1-9]$/.test(Ie[0].text))throw new u('Invalid argument number "'+Ie[0].text+'"');if(Dt++,parseInt(Ie[0].text)!==Dt)throw new u('Argument number "'+Ie[0].text+'" out of order');Ie=ce.consumeArgs(1)[0]}return ce.macros.set(Je,{tokens:Ie,numArgs:Dt},Se),""};wn("\\gdef",function(Nt){return Ll(Nt,!0)}),wn("\\def",function(Nt){return Ll(Nt,!1)}),wn("\\global",function(Nt){var ce=Nt.consumeArgs(1)[0];if(ce.length!==1)throw new u("Invalid command after \\global");var Se=ce[0].text;if(Se==="\\def")return Ll(Nt,!0);throw new u("Invalid command '"+Se+"' after \\global")});var el=function(ce,Se,Ie){var Je=ce.consumeArgs(1)[0];if(Je.length!==1)throw new u("\\newcommand's first argument must be a macro name");var Dt=Je[0].text,sr=ce.isDefined(Dt);if(sr&&!Se)throw new u("\\newcommand{"+Dt+"} attempting to redefine "+(Dt+"; use \\renewcommand"));if(!sr&&!Ie)throw new u("\\renewcommand{"+Dt+"} when command "+Dt+" does not yet exist; use \\newcommand");var Jr=0;if(Je=ce.consumeArgs(1)[0],Je.length===1&&Je[0].text==="["){for(var gn="",Dn=ce.expandNextToken();Dn.text!=="]"&&Dn.text!=="EOF";)gn+=Dn.text,Dn=ce.expandNextToken();if(!gn.match(/^\s*[0-9]+\s*$/))throw new u("Invalid number of arguments: "+gn);Jr=parseInt(gn),Je=ce.consumeArgs(1)[0]}return ce.macros.set(Dt,{tokens:Je,numArgs:Jr}),""};wn("\\newcommand",function(Nt){return el(Nt,!1,!0)}),wn("\\renewcommand",function(Nt){return el(Nt,!0,!1)}),wn("\\providecommand",function(Nt){return el(Nt,!0,!0)}),wn("\\bgroup","{"),wn("\\egroup","}"),wn("\\lq","`"),wn("\\rq","'"),wn("\\aa","\\r a"),wn("\\AA","\\r A"),wn("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),wn("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),wn("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),wn("\u212C","\\mathscr{B}"),wn("\u2130","\\mathscr{E}"),wn("\u2131","\\mathscr{F}"),wn("\u210B","\\mathscr{H}"),wn("\u2110","\\mathscr{I}"),wn("\u2112","\\mathscr{L}"),wn("\u2133","\\mathscr{M}"),wn("\u211B","\\mathscr{R}"),wn("\u212D","\\mathfrak{C}"),wn("\u210C","\\mathfrak{H}"),wn("\u2128","\\mathfrak{Z}"),wn("\\Bbbk","\\Bbb{k}"),wn("\xB7","\\cdotp"),wn("\\llap","\\mathllap{\\textrm{#1}}"),wn("\\rlap","\\mathrlap{\\textrm{#1}}"),wn("\\clap","\\mathclap{\\textrm{#1}}"),wn("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),wn("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),wn("\\ne","\\neq"),wn("\u2260","\\neq"),wn("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),wn("\u2209","\\notin"),wn("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),wn("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),wn("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),wn("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),wn("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),wn("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),wn("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),wn("\u27C2","\\perp"),wn("\u203C","\\mathclose{!\\mkern-0.8mu!}"),wn("\u220C","\\notni"),wn("\u231C","\\ulcorner"),wn("\u231D","\\urcorner"),wn("\u231E","\\llcorner"),wn("\u231F","\\lrcorner"),wn("\xA9","\\copyright"),wn("\xAE","\\textregistered"),wn("\uFE0F","\\textregistered"),wn("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),wn("\u22EE","\\vdots"),wn("\\varGamma","\\mathit{\\Gamma}"),wn("\\varDelta","\\mathit{\\Delta}"),wn("\\varTheta","\\mathit{\\Theta}"),wn("\\varLambda","\\mathit{\\Lambda}"),wn("\\varXi","\\mathit{\\Xi}"),wn("\\varPi","\\mathit{\\Pi}"),wn("\\varSigma","\\mathit{\\Sigma}"),wn("\\varUpsilon","\\mathit{\\Upsilon}"),wn("\\varPhi","\\mathit{\\Phi}"),wn("\\varPsi","\\mathit{\\Psi}"),wn("\\varOmega","\\mathit{\\Omega}"),wn("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),wn("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),wn("\\boxed","\\fbox{$\\displaystyle{#1}$}"),wn("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),wn("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),wn("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Gs={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};wn("\\dots",function(Nt){var ce="\\dotso",Se=Nt.expandAfterFuture().text;return Se in Gs?ce=Gs[Se]:Se.substr(0,4)==="\\not"?ce="\\dotsb":Se in Ge.math&&(A.contains(["bin","rel"],Ge.math[Se].group)&&(ce="\\dotsb")),ce});var ds={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};wn("\\dotso",function(Nt){var ce=Nt.future().text;return ce in ds?"\\ldots\\,":"\\ldots"}),wn("\\dotsc",function(Nt){var ce=Nt.future().text;return ce in ds&&ce!==","?"\\ldots\\,":"\\ldots"}),wn("\\cdots",function(Nt){var ce=Nt.future().text;return ce in ds?"\\@cdots\\,":"\\@cdots"}),wn("\\dotsb","\\cdots"),wn("\\dotsm","\\cdots"),wn("\\dotsi","\\!\\cdots"),wn("\\dotsx","\\ldots\\,"),wn("\\DOTSI","\\relax"),wn("\\DOTSB","\\relax"),wn("\\DOTSX","\\relax"),wn("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),wn("\\,","\\tmspace+{3mu}{.1667em}"),wn("\\thinspace","\\,"),wn("\\>","\\mskip{4mu}"),wn("\\:","\\tmspace+{4mu}{.2222em}"),wn("\\medspace","\\:"),wn("\\;","\\tmspace+{5mu}{.2777em}"),wn("\\thickspace","\\;"),wn("\\!","\\tmspace-{3mu}{.1667em}"),wn("\\negthinspace","\\!"),wn("\\negmedspace","\\tmspace-{4mu}{.2222em}"),wn("\\negthickspace","\\tmspace-{5mu}{.277em}"),wn("\\enspace","\\kern.5em "),wn("\\enskip","\\hskip.5em\\relax"),wn("\\quad","\\hskip1em\\relax"),wn("\\qquad","\\hskip2em\\relax"),wn("\\tag","\\@ifstar\\tag@literal\\tag@paren"),wn("\\tag@paren","\\tag@literal{({#1})}"),wn("\\tag@literal",function(Nt){if(Nt.macros.get("\\df@tag"))throw new u("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),wn("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),wn("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),wn("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),wn("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),wn("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),wn("\\\\","\\newline"),wn("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ks=St["Main-Regular"]["T".charCodeAt(0)][1]-.7*St["Main-Regular"]["A".charCodeAt(0)][1]+"em";wn("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ks+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),wn("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ks+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),wn("\\hspace","\\@ifstar\\@hspacer\\@hspace"),wn("\\@hspace","\\hskip #1\\relax"),wn("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),wn("\\ordinarycolon",":"),wn("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),wn("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),wn("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),wn("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),wn("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),wn("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),wn("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),wn("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),wn("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),wn("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),wn("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),wn("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),wn("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),wn("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),wn("\u2237","\\dblcolon"),wn("\u2239","\\eqcolon"),wn("\u2254","\\coloneqq"),wn("\u2255","\\eqqcolon"),wn("\u2A74","\\Coloneqq"),wn("\\ratio","\\vcentcolon"),wn("\\coloncolon","\\dblcolon"),wn("\\colonequals","\\coloneqq"),wn("\\coloncolonequals","\\Coloneqq"),wn("\\equalscolon","\\eqqcolon"),wn("\\equalscoloncolon","\\Eqqcolon"),wn("\\colonminus","\\coloneq"),wn("\\coloncolonminus","\\Coloneq"),wn("\\minuscolon","\\eqcolon"),wn("\\minuscoloncolon","\\Eqcolon"),wn("\\coloncolonapprox","\\Colonapprox"),wn("\\coloncolonsim","\\Colonsim"),wn("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),wn("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),wn("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),wn("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),wn("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),wn("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),wn("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),wn("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),wn("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),wn("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),wn("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),wn("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),wn("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),wn("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),wn("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),wn("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),wn("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),wn("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),wn("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),wn("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),wn("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),wn("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),wn("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),wn("\u27E6","\\llbracket"),wn("\u27E7","\\rrbracket"),wn("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),wn("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),wn("\u2983","\\lBrace"),wn("\u2984","\\rBrace"),wn("\\darr","\\downarrow"),wn("\\dArr","\\Downarrow"),wn("\\Darr","\\Downarrow"),wn("\\lang","\\langle"),wn("\\rang","\\rangle"),wn("\\uarr","\\uparrow"),wn("\\uArr","\\Uparrow"),wn("\\Uarr","\\Uparrow"),wn("\\N","\\mathbb{N}"),wn("\\R","\\mathbb{R}"),wn("\\Z","\\mathbb{Z}"),wn("\\alef","\\aleph"),wn("\\alefsym","\\aleph"),wn("\\Alpha","\\mathrm{A}"),wn("\\Beta","\\mathrm{B}"),wn("\\bull","\\bullet"),wn("\\Chi","\\mathrm{X}"),wn("\\clubs","\\clubsuit"),wn("\\cnums","\\mathbb{C}"),wn("\\Complex","\\mathbb{C}"),wn("\\Dagger","\\ddagger"),wn("\\diamonds","\\diamondsuit"),wn("\\empty","\\emptyset"),wn("\\Epsilon","\\mathrm{E}"),wn("\\Eta","\\mathrm{H}"),wn("\\exist","\\exists"),wn("\\harr","\\leftrightarrow"),wn("\\hArr","\\Leftrightarrow"),wn("\\Harr","\\Leftrightarrow"),wn("\\hearts","\\heartsuit"),wn("\\image","\\Im"),wn("\\infin","\\infty"),wn("\\Iota","\\mathrm{I}"),wn("\\isin","\\in"),wn("\\Kappa","\\mathrm{K}"),wn("\\larr","\\leftarrow"),wn("\\lArr","\\Leftarrow"),wn("\\Larr","\\Leftarrow"),wn("\\lrarr","\\leftrightarrow"),wn("\\lrArr","\\Leftrightarrow"),wn("\\Lrarr","\\Leftrightarrow"),wn("\\Mu","\\mathrm{M}"),wn("\\natnums","\\mathbb{N}"),wn("\\Nu","\\mathrm{N}"),wn("\\Omicron","\\mathrm{O}"),wn("\\plusmn","\\pm"),wn("\\rarr","\\rightarrow"),wn("\\rArr","\\Rightarrow"),wn("\\Rarr","\\Rightarrow"),wn("\\real","\\Re"),wn("\\reals","\\mathbb{R}"),wn("\\Reals","\\mathbb{R}"),wn("\\Rho","\\mathrm{P}"),wn("\\sdot","\\cdot"),wn("\\sect","\\S"),wn("\\spades","\\spadesuit"),wn("\\sub","\\subset"),wn("\\sube","\\subseteq"),wn("\\supe","\\supseteq"),wn("\\Tau","\\mathrm{T}"),wn("\\thetasym","\\vartheta"),wn("\\weierp","\\wp"),wn("\\Zeta","\\mathrm{Z}"),wn("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),wn("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),wn("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),wn("\\blue","\\textcolor{##6495ed}{#1}"),wn("\\orange","\\textcolor{##ffa500}{#1}"),wn("\\pink","\\textcolor{##ff00af}{#1}"),wn("\\red","\\textcolor{##df0030}{#1}"),wn("\\green","\\textcolor{##28ae7b}{#1}"),wn("\\gray","\\textcolor{gray}{#1}"),wn("\\purple","\\textcolor{##9d38bd}{#1}"),wn("\\blueA","\\textcolor{##ccfaff}{#1}"),wn("\\blueB","\\textcolor{##80f6ff}{#1}"),wn("\\blueC","\\textcolor{##63d9ea}{#1}"),wn("\\blueD","\\textcolor{##11accd}{#1}"),wn("\\blueE","\\textcolor{##0c7f99}{#1}"),wn("\\tealA","\\textcolor{##94fff5}{#1}"),wn("\\tealB","\\textcolor{##26edd5}{#1}"),wn("\\tealC","\\textcolor{##01d1c1}{#1}"),wn("\\tealD","\\textcolor{##01a995}{#1}"),wn("\\tealE","\\textcolor{##208170}{#1}"),wn("\\greenA","\\textcolor{##b6ffb0}{#1}"),wn("\\greenB","\\textcolor{##8af281}{#1}"),wn("\\greenC","\\textcolor{##74cf70}{#1}"),wn("\\greenD","\\textcolor{##1fab54}{#1}"),wn("\\greenE","\\textcolor{##0d923f}{#1}"),wn("\\goldA","\\textcolor{##ffd0a9}{#1}"),wn("\\goldB","\\textcolor{##ffbb71}{#1}"),wn("\\goldC","\\textcolor{##ff9c39}{#1}"),wn("\\goldD","\\textcolor{##e07d10}{#1}"),wn("\\goldE","\\textcolor{##a75a05}{#1}"),wn("\\redA","\\textcolor{##fca9a9}{#1}"),wn("\\redB","\\textcolor{##ff8482}{#1}"),wn("\\redC","\\textcolor{##f9685d}{#1}"),wn("\\redD","\\textcolor{##e84d39}{#1}"),wn("\\redE","\\textcolor{##bc2612}{#1}"),wn("\\maroonA","\\textcolor{##ffbde0}{#1}"),wn("\\maroonB","\\textcolor{##ff92c6}{#1}"),wn("\\maroonC","\\textcolor{##ed5fa6}{#1}"),wn("\\maroonD","\\textcolor{##ca337c}{#1}"),wn("\\maroonE","\\textcolor{##9e034e}{#1}"),wn("\\purpleA","\\textcolor{##ddd7ff}{#1}"),wn("\\purpleB","\\textcolor{##c6b9fc}{#1}"),wn("\\purpleC","\\textcolor{##aa87ff}{#1}"),wn("\\purpleD","\\textcolor{##7854ab}{#1}"),wn("\\purpleE","\\textcolor{##543b78}{#1}"),wn("\\mintA","\\textcolor{##f5f9e8}{#1}"),wn("\\mintB","\\textcolor{##edf2df}{#1}"),wn("\\mintC","\\textcolor{##e0e5cc}{#1}"),wn("\\grayA","\\textcolor{##f6f7f7}{#1}"),wn("\\grayB","\\textcolor{##f0f1f2}{#1}"),wn("\\grayC","\\textcolor{##e3e5e6}{#1}"),wn("\\grayD","\\textcolor{##d6d8da}{#1}"),wn("\\grayE","\\textcolor{##babec2}{#1}"),wn("\\grayF","\\textcolor{##888d93}{#1}"),wn("\\grayG","\\textcolor{##626569}{#1}"),wn("\\grayH","\\textcolor{##3b3e40}{#1}"),wn("\\grayI","\\textcolor{##21242c}{#1}"),wn("\\kaBlue","\\textcolor{##314453}{#1}"),wn("\\kaGreen","\\textcolor{##71B307}{#1}");var Qs={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},tl=function(){function Nt(Se,Ie,Je){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=Ie,this.expansionCount=0,this.feed(Se),this.macros=new Fs(hs,Ie.macros),this.mode=Je,this.stack=[]}var ce=Nt.prototype;return ce.feed=function(Ie){this.lexer=new zo(Ie,this.settings)},ce.switchMode=function(Ie){this.mode=Ie},ce.beginGroup=function(){this.macros.beginGroup()},ce.endGroup=function(){this.macros.endGroup()},ce.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},ce.popToken=function(){return this.future(),this.stack.pop()},ce.pushToken=function(Ie){this.stack.push(Ie)},ce.pushTokens=function(Ie){var Je;(Je=this.stack).push.apply(Je,Ie)},ce.consumeSpaces=function(){for(;;){var Ie=this.future();if(Ie.text===" ")this.stack.pop();else break}},ce.consumeArgs=function(Ie){for(var Je=[],Dt=0;Dt<Ie;++Dt){this.consumeSpaces();var sr=this.popToken();if(sr.text==="{"){for(var Jr=[],gn=1;gn!==0;){var Dn=this.popToken();if(Jr.push(Dn),Dn.text==="{")++gn;else if(Dn.text==="}")--gn;else if(Dn.text==="EOF")throw new u("End of input in macro argument",sr)}Jr.pop(),Jr.reverse(),Je[Dt]=Jr}else{if(sr.text==="EOF")throw new u("End of input expecting macro argument");Je[Dt]=[sr]}}return Je},ce.expandOnce=function(){var Ie=this.popToken(),Je=Ie.text,Dt=this._getExpansion(Je);if(Dt==null)return this.pushToken(Ie),Ie;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new u("Too many expansions: infinite loop or need to increase maxExpand setting");var sr=Dt.tokens;if(Dt.numArgs){var Jr=this.consumeArgs(Dt.numArgs);sr=sr.slice();for(var gn=sr.length-1;gn>=0;--gn){var Dn=sr[gn];if(Dn.text==="#"){if(gn===0)throw new u("Incomplete placeholder at end of macro body",Dn);if(Dn=sr[--gn],Dn.text==="#")sr.splice(gn+1,1);else if(/^[1-9]$/.test(Dn.text)){var ui;(ui=sr).splice.apply(ui,[gn,2].concat(Jr[+Dn.text-1]))}else throw new u("Not a valid argument number",Dn)}}}return this.pushTokens(sr),sr},ce.expandAfterFuture=function(){return this.expandOnce(),this.future()},ce.expandNextToken=function(){for(;;){var Ie=this.expandOnce();if(Ie instanceof p)if(Ie.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},ce.expandMacro=function(Ie){if(!this.macros.get(Ie))return;var Je=[],Dt=this.stack.length;for(this.pushToken(new p(Ie));this.stack.length>Dt;){var sr=this.expandOnce();sr instanceof p&&Je.push(this.stack.pop())}return Je},ce.expandMacroAsText=function(Ie){var Je=this.expandMacro(Ie);return Je&&Je.map(function(Dt){return Dt.text}).join("")},ce._getExpansion=function(Ie){var Je=this.macros.get(Ie);if(Je==null)return Je;var Dt=typeof Je=="function"?Je(this):Je;if(typeof Dt=="string"){var sr=0;if(Dt.indexOf("#")!==-1)for(var Jr=Dt.replace(/##/g,"");Jr.indexOf("#"+(sr+1))!==-1;)++sr;for(var gn=new zo(Dt,this.settings),Dn=[],ui=gn.lex();ui.text!=="EOF";)Dn.push(ui),ui=gn.lex();Dn.reverse();var Si={tokens:Dn,numArgs:sr};return Si}return Dt},ce.isDefined=function(Ie){return this.macros.has(Ie)||as.hasOwnProperty(Ie)||Ge.math.hasOwnProperty(Ie)||Ge.text.hasOwnProperty(Ie)||Qs.hasOwnProperty(Ie)},Nt}(),xs={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"}},Bs={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u010F:"d\u030C",\u1E0B:"d\u0307",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u013A:"l\u0301",\u013E:"l\u030C",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u010E:"D\u030C",\u1E0A:"D\u0307",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0139:"L\u0301",\u013D:"L\u030C",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u0164:"T\u030C",\u1E6A:"T\u0307",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},al=function(){function Nt(Se,Ie){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new tl(Se,Ie,this.mode),this.settings=Ie,this.leftrightDepth=0}var ce=Nt.prototype;return ce.expect=function(Ie,Je){if(Je===void 0&&(Je=!0),this.fetch().text!==Ie)throw new u("Expected '"+Ie+"', got '"+this.fetch().text+"'",this.fetch());Je&&this.consume()},ce.consume=function(){this.nextToken=null},ce.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},ce.switchMode=function(Ie){this.mode=Ie,this.gullet.switchMode(Ie)},ce.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var Ie=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),Ie},ce.parseExpression=function(Ie,Je){for(var Dt=[];;){this.mode==="math"&&this.consumeSpaces();var sr=this.fetch();if(Nt.endOfExpression.indexOf(sr.text)!==-1)break;if(Je&&sr.text===Je)break;if(Ie&&as[sr.text]&&as[sr.text].infix)break;var Jr=this.parseAtom(Je);if(!Jr)break;Dt.push(Jr)}return this.mode==="text"&&this.formLigatures(Dt),this.handleInfixNodes(Dt)},ce.handleInfixNodes=function(Ie){for(var Je=-1,Dt,sr=0;sr<Ie.length;sr++){var Jr=bn(Ie[sr],"infix");if(Jr){if(Je!==-1)throw new u("only one infix operator per group",Jr.token);Je=sr,Dt=Jr.replaceWith}}if(Je!==-1&&Dt){var gn,Dn,ui=Ie.slice(0,Je),Si=Ie.slice(Je+1);ui.length===1&&ui[0].type==="ordgroup"?gn=ui[0]:gn={type:"ordgroup",mode:this.mode,body:ui},Si.length===1&&Si[0].type==="ordgroup"?Dn=Si[0]:Dn={type:"ordgroup",mode:this.mode,body:Si};var vi;return Dt==="\\\\abovefrac"?vi=this.callFunction(Dt,[gn,Ie[Je],Dn],[]):vi=this.callFunction(Dt,[gn,Dn],[]),[vi]}else return Ie},ce.handleSupSubscript=function(Ie){var Je=this.fetch(),Dt=Je.text;this.consume();var sr=this.parseGroup(Ie,!1,Nt.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!sr)throw new u("Expected group after '"+Dt+"'",Je);return sr},ce.formatUnsupportedCmd=function(Ie){for(var Je=[],Dt=0;Dt<Ie.length;Dt++)Je.push({type:"textord",mode:"text",text:Ie[Dt]});var sr={type:"text",mode:this.mode,body:Je},Jr={type:"color",mode:this.mode,color:this.settings.errorColor,body:[sr]};return Jr},ce.parseAtom=function(Ie){var Je=this.parseGroup("atom",!1,null,Ie);if(this.mode==="text")return Je;for(var Dt,sr;;){this.consumeSpaces();var Jr=this.fetch();if(Jr.text==="\\limits"||Jr.text==="\\nolimits"){var gn=bn(Je,"op");if(gn){var Dn=Jr.text==="\\limits";gn.limits=Dn,gn.alwaysHandleSupSub=!0}else if(gn=bn(Je,"operatorname"),gn&&gn.alwaysHandleSupSub){var ui=Jr.text==="\\limits";gn.limits=ui}else throw new u("Limit controls must follow a math operator",Jr);this.consume()}else if(Jr.text==="^"){if(Dt)throw new u("Double superscript",Jr);Dt=this.handleSupSubscript("superscript")}else if(Jr.text==="_"){if(sr)throw new u("Double subscript",Jr);sr=this.handleSupSubscript("subscript")}else if(Jr.text==="'"){if(Dt)throw new u("Double superscript",Jr);var Si={type:"textord",mode:this.mode,text:"\\prime"},vi=[Si];for(this.consume();this.fetch().text==="'";)vi.push(Si),this.consume();this.fetch().text==="^"&&vi.push(this.handleSupSubscript("superscript")),Dt={type:"ordgroup",mode:this.mode,body:vi}}else break}return Dt||sr?{type:"supsub",mode:this.mode,base:Je,sup:Dt,sub:sr}:Je},ce.parseFunction=function(Ie,Je,Dt){var sr=this.fetch(),Jr=sr.text,gn=as[Jr];if(!gn)return null;if(this.consume(),Dt!=null&&gn.greediness<=Dt)throw new u("Got function '"+Jr+"' with no arguments"+(Je?" as "+Je:""),sr);if(this.mode==="text"&&!gn.allowedInText)throw new u("Can't use function '"+Jr+"' in text mode",sr);if(this.mode==="math"&&gn.allowedInMath===!1)throw new u("Can't use function '"+Jr+"' in math mode",sr);var Dn=this.parseArguments(Jr,gn),ui=Dn.args,Si=Dn.optArgs;return this.callFunction(Jr,ui,Si,sr,Ie)},ce.callFunction=function(Ie,Je,Dt,sr,Jr){var gn={funcName:Ie,parser:this,token:sr,breakOnTokenText:Jr},Dn=as[Ie];if(Dn&&Dn.handler)return Dn.handler(gn,Je,Dt);throw new u("No function handler for "+Ie)},ce.parseArguments=function(Ie,Je){var Dt=Je.numArgs+Je.numOptionalArgs;if(Dt===0)return{args:[],optArgs:[]};for(var sr=Je.greediness,Jr=[],gn=[],Dn=0;Dn<Dt;Dn++){var ui=Je.argTypes&&Je.argTypes[Dn],Si=Dn<Je.numOptionalArgs,vi=Dn>0&&!Si||Dn===0&&!Si&&this.mode==="math",Qi=this.parseGroupOfType("argument to '"+Ie+"'",ui,Si,sr,vi);if(!Qi){if(Si){gn.push(null);continue}throw new u("Expected group after '"+Ie+"'",this.fetch())}(Si?gn:Jr).push(Qi)}return{args:Jr,optArgs:gn}},ce.parseGroupOfType=function(Ie,Je,Dt,sr,Jr){switch(Je){case"color":return Jr&&this.consumeSpaces(),this.parseColorGroup(Dt);case"size":return Jr&&this.consumeSpaces(),this.parseSizeGroup(Dt);case"url":return this.parseUrlGroup(Dt,Jr);case"math":case"text":return this.parseGroup(Ie,Dt,sr,void 0,Je,Jr);case"hbox":{var gn=this.parseGroup(Ie,Dt,sr,void 0,"text",Jr);if(!gn)return gn;var Dn={type:"styling",mode:gn.mode,body:[gn],style:"text"};return Dn}case"raw":{if(Jr&&this.consumeSpaces(),Dt&&this.fetch().text==="{")return null;var ui=this.parseStringGroup("raw",Dt,!0);if(ui)return{type:"raw",mode:"text",string:ui.text};throw new u("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(Ie,Dt,sr,void 0,void 0,Jr);default:throw new u("Unknown group type as "+Ie,this.fetch())}},ce.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},ce.parseStringGroup=function(Ie,Je,Dt){var sr=Je?"[":"{",Jr=Je?"]":"}",gn=this.fetch();if(gn.text!==sr){if(Je)return null;if(Dt&&gn.text!=="EOF"&&/[^{}[\]]/.test(gn.text))return this.consume(),gn}var Dn=this.mode;this.mode="text",this.expect(sr);for(var ui="",Si=this.fetch(),vi=0,Qi=Si,sa;(sa=this.fetch()).text!==Jr||Dt&&vi>0;){switch(sa.text){case"EOF":throw new u("Unexpected end of input in "+Ie,Si.range(Qi,ui));case sr:vi++;break;case Jr:vi--;break}Qi=sa,ui+=Qi.text,this.consume()}return this.expect(Jr),this.mode=Dn,Si.range(Qi,ui)},ce.parseRegexGroup=function(Ie,Je){var Dt=this.mode;this.mode="text";for(var sr=this.fetch(),Jr=sr,gn="",Dn;(Dn=this.fetch()).text!=="EOF"&&Ie.test(gn+Dn.text);)Jr=Dn,gn+=Jr.text,this.consume();if(gn==="")throw new u("Invalid "+Je+": '"+sr.text+"'",sr);return this.mode=Dt,sr.range(Jr,gn)},ce.parseColorGroup=function(Ie){var Je=this.parseStringGroup("color",Ie);if(!Je)return null;var Dt=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(Je.text);if(!Dt)throw new u("Invalid color: '"+Je.text+"'",Je);var sr=Dt[0];return/^[0-9a-f]{6}$/i.test(sr)&&(sr="#"+sr),{type:"color-token",mode:this.mode,color:sr}},ce.parseSizeGroup=function(Ie){var Je,Dt=!1;if(!Ie&&this.fetch().text!=="{"?Je=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):Je=this.parseStringGroup("size",Ie),!Je)return null;!Ie&&Je.text.length===0&&(Je.text="0pt",Dt=!0);var sr=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(Je.text);if(!sr)throw new u("Invalid size: '"+Je.text+"'",Je);var Jr={number:+(sr[1]+sr[2]),unit:sr[3]};if(!Hr(Jr))throw new u("Invalid unit: '"+Jr.unit+"'",Je);return{type:"size",mode:this.mode,value:Jr,isBlank:Dt}},ce.parseUrlGroup=function(Ie,Je){this.gullet.lexer.setCatcode("%",13);var Dt=this.parseStringGroup("url",Ie,!0);if(this.gullet.lexer.setCatcode("%",14),!Dt)return null;var sr=Dt.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:sr}},ce.parseGroup=function(Ie,Je,Dt,sr,Jr,gn){var Dn=this.mode;Jr&&this.switchMode(Jr),gn&&this.consumeSpaces();var ui=this.fetch(),Si=ui.text,vi;if(Je?Si==="[":Si==="{"||Si==="\\begingroup"){this.consume();var Qi=Nt.endOfGroup[Si];this.gullet.beginGroup();var sa=this.parseExpression(!1,Qi),Ua=this.fetch();this.expect(Qi),this.gullet.endGroup(),vi={type:"ordgroup",mode:this.mode,loc:m.range(ui,Ua),body:sa,semisimple:Si==="\\begingroup"||void 0}}else if(Je)vi=null;else if(vi=this.parseFunction(sr,Ie,Dt)||this.parseSymbol(),vi==null&&Si[0]==="\\"&&!Qs.hasOwnProperty(Si)){if(this.settings.throwOnError)throw new u("Undefined control sequence: "+Si,ui);vi=this.formatUnsupportedCmd(Si),this.consume()}return Jr&&this.switchMode(Dn),vi},ce.formLigatures=function(Ie){for(var Je=Ie.length-1,Dt=0;Dt<Je;++Dt){var sr=Ie[Dt],Jr=sr.text;Jr==="-"&&Ie[Dt+1].text==="-"&&(Dt+1<Je&&Ie[Dt+2].text==="-"?(Ie.splice(Dt,3,{type:"textord",mode:"text",loc:m.range(sr,Ie[Dt+2]),text:"---"}),Je-=2):(Ie.splice(Dt,2,{type:"textord",mode:"text",loc:m.range(sr,Ie[Dt+1]),text:"--"}),Je-=1)),(Jr==="'"||Jr==="`")&&Ie[Dt+1].text===Jr&&(Ie.splice(Dt,2,{type:"textord",mode:"text",loc:m.range(sr,Ie[Dt+1]),text:Jr+Jr}),Je-=1)}},ce.parseSymbol=function(){var Ie=this.fetch(),Je=Ie.text;if(/^\\verb[^a-zA-Z]/.test(Je)){this.consume();var Dt=Je.slice(5),sr=Dt.charAt(0)==="*";if(sr&&(Dt=Dt.slice(1)),Dt.length<2||Dt.charAt(0)!==Dt.slice(-1))throw new u(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return Dt=Dt.slice(1,-1),{type:"verb",mode:"text",body:Dt,star:sr}}Bs.hasOwnProperty(Je[0])&&!Ge[this.mode][Je[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+Je[0]+'" used in math mode',Ie),Je=Bs[Je[0]]+Je.substr(1));var Jr=il.exec(Je);Jr&&(Je=Je.substring(0,Jr.index),Je==="i"?Je="\u0131":Je==="j"&&(Je="\u0237"));var gn;if(Ge[this.mode][Je]){this.settings.strict&&this.mode==="math"&&Yt.indexOf(Je)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+Je[0]+'" used in math mode',Ie);var Dn=Ge[this.mode][Je].group,ui=m.range(Ie),Si;if(Gt.hasOwnProperty(Dn)){var vi=Dn;Si={type:"atom",mode:this.mode,family:vi,loc:ui,text:Je}}else Si={type:Dn,mode:this.mode,loc:ui,text:Je};gn=Si}else if(Je.charCodeAt(0)>=128)this.settings.strict&&(te(Je.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+Je[0]+'" used in math mode',Ie):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+Je[0]+'"'+(" ("+Je.charCodeAt(0)+")"),Ie)),gn={type:"textord",mode:"text",loc:m.range(Ie),text:Je};else return null;if(this.consume(),Jr)for(var Qi=0;Qi<Jr[0].length;Qi++){var sa=Jr[0][Qi];if(!xs[sa])throw new u("Unknown accent ' "+sa+"'",Ie);var Ua=xs[sa][this.mode];if(!Ua)throw new u("Accent "+sa+" unsupported in "+this.mode+" mode",Ie);gn={type:"accent",mode:this.mode,loc:m.range(Ie),label:Ua,isStretchy:!1,isShifty:!0,base:gn}}return gn},Nt}();al.endOfExpression=["}","\\endgroup","\\end","\\right","&"],al.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},al.SUPSUB_GREEDINESS=1;var Js=function(ce,Se){if(!(typeof ce=="string"||ce instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var Ie=new al(ce,Se);delete Ie.gullet.macros.current["\\df@tag"];var Je=Ie.parse();if(Ie.gullet.macros.get("\\df@tag")){if(!Se.displayMode)throw new u("\\tag works only in display equations");Ie.gullet.feed("\\df@tag"),Je=[{type:"tag",mode:"text",body:Je,tag:Ie.parse()}]}return Je},Vo=Js,No=function(ce,Se,Ie){Se.textContent="";var Je=Ut(ce,Ie).toNode();Se.appendChild(Je)};typeof document!="undefined"&&(document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),No=function(){throw new u("KaTeX doesn't work in quirks mode.")}));var fs=function(ce,Se){var Ie=Ut(ce,Se).toMarkup();return Ie},Ds=function(ce,Se){var Ie=new b(Se);return Vo(ce,Ie)},go=function(ce,Se,Ie){if(Ie.throwOnError||!(ce instanceof u))throw ce;var Je=Fr.makeSpan(["katex-error"],[new Ce(Se)]);return Je.setAttribute("title",ce.toString()),Je.setAttribute("style","color:"+Ie.errorColor),Je},Ut=function(ce,Se){var Ie=new b(Se);try{var Je=Vo(ce,Ie);return kr(Je,ce,Ie)}catch(Dt){return go(Dt,ce,Ie)}},or=function(ce,Se){var Ie=new b(Se);try{var Je=Vo(ce,Ie);return Gr(Je,ce,Ie)}catch(Dt){return go(Dt,ce,Ie)}},Nn={version:"0.11.1",render:No,renderToString:fs,ParseError:u,__parse:Ds,__renderToDomTree:Ut,__renderToHTMLTree:or,__setFontMetrics:er,__defineSymbol:pe,__defineMacro:wn,__domTree:{Span:Y,Anchor:$,SymbolNode:Ce,SvgNode:Be,PathNode:fe,LineNode:we}},hi=f.default=Nn}]).default})},P2fV:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("Q9mQ"),v=n("+L6B"),m=n("sE09"),p=n.n(m)},P2ho:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={Again:57349,AltLeft:56,AltRight:57400,ArrowDown:57424,ArrowLeft:57419,ArrowRight:57421,ArrowUp:57416,AudioVolumeDown:57390,AudioVolumeMute:57376,AudioVolumeUp:57392,Backquote:41,Backslash:43,Backspace:14,BracketLeft:26,BracketRight:27,BrowserBack:57450,BrowserFavorites:57446,BrowserForward:57449,BrowserHome:57394,BrowserRefresh:57447,BrowserSearch:57445,BrowserStop:57448,CapsLock:58,Comma:51,ContextMenu:57437,ControlLeft:29,ControlRight:57373,Convert:121,Copy:57464,Cut:57404,Delete:57427,Digit0:11,Digit1:2,Digit2:3,Digit3:4,Digit4:5,Digit5:6,Digit6:7,Digit7:8,Digit8:9,Digit9:10,Eject:57469,End:57423,Enter:28,Equal:13,Escape:1,F1:59,F10:68,F11:87,F12:88,F13:93,F14:94,F15:95,F16:85,F17:57347,F18:57463,F19:57348,F2:60,F20:90,F21:116,F22:57465,F23:109,F24:111,F3:61,F4:62,F5:63,F6:64,F7:65,F8:66,F9:67,Find:57409,Help:57461,Hiragana:119,Home:57415,Insert:57426,IntlBackslash:86,IntlRo:115,IntlYen:125,KanaMode:112,Katakana:120,KeyA:30,KeyB:48,KeyC:46,KeyD:32,KeyE:18,KeyF:33,KeyG:34,KeyH:35,KeyI:23,KeyJ:36,KeyK:37,KeyL:38,KeyM:50,KeyN:49,KeyO:24,KeyP:25,KeyQ:16,KeyR:19,KeyS:31,KeyT:20,KeyU:22,KeyV:47,KeyW:17,KeyX:45,KeyY:21,KeyZ:44,Lang3:120,Lang4:119,Lang5:118,LaunchApp1:57451,LaunchApp2:57377,LaunchMail:57452,MediaPlayPause:57378,MediaSelect:57453,MediaStop:57380,MediaTrackNext:57369,MediaTrackPrevious:57360,MetaLeft:57435,MetaRight:57436,Minus:12,NonConvert:123,NumLock:69,Numpad0:82,Numpad1:79,Numpad2:80,Numpad3:81,Numpad4:75,Numpad5:76,Numpad6:77,Numpad7:71,Numpad8:72,Numpad9:73,NumpadAdd:78,NumpadComma:126,NumpadDecimal:83,NumpadDivide:57397,NumpadEnter:57372,NumpadEqual:89,NumpadMultiply:55,NumpadParenLeft:57462,NumpadParenRight:57467,NumpadSubtract:74,Open:100,PageDown:57425,PageUp:57417,Paste:101,Pause:57414,Period:52,Power:57438,PrintScreen:84,Props:57350,Quote:40,ScrollLock:70,Semicolon:39,ShiftLeft:42,ShiftRight:54,Slash:53,Sleep:57439,Space:57,Suspend:57381,Tab:15,Undo:57351,WakeUp:57443};D.default=y},P47w:function(R,D,n){var y=n("hydK"),f=y.createElement,x=n("IMiH"),v=n("mFDi"),m=n("Fofx"),p=n("6GrX"),d=n("pzxd"),u=n("dqUG"),s=x.CMD,i=Array.prototype.join,t="none",o=Math.round,e=Math.sin,l=Math.cos,r=Math.PI,a=Math.PI*2,c=180/r,h=1e-4;function g(Q){return o(Q*1e4)/1e4}function A(Q){return Q<h&&Q>-h}function b(Q,G){var te=G?Q.textFill:Q.fill;return te!=null&&te!==t}function S(Q,G){var te=G?Q.textStroke:Q.stroke;return te!=null&&te!==t}function E(Q,G){G&&C(Q,"transform","matrix("+i.call(G,",")+")")}function C(Q,G,te){(!te||te.type!=="linear"&&te.type!=="radial")&&Q.setAttribute(G,te)}function _(Q,G,te){Q.setAttributeNS("http://www.w3.org/1999/xlink",G,te)}function T(Q,G,te,q){if(b(G,te)){var se=te?G.textFill:G.fill;se=se==="transparent"?t:se,C(Q,"fill",se),C(Q,"fill-opacity",G.fillOpacity!=null?G.fillOpacity*G.opacity:G.opacity)}else C(Q,"fill",t);if(S(G,te)){var re=te?G.textStroke:G.stroke;re=re==="transparent"?t:re,C(Q,"stroke",re);var xe=te?G.textStrokeWidth:G.lineWidth,Oe=!te&&G.strokeNoScale?q.getLineScale():1;C(Q,"stroke-width",xe/Oe),C(Q,"paint-order",te?"stroke":"fill"),C(Q,"stroke-opacity",G.strokeOpacity!=null?G.strokeOpacity:G.opacity);var Me=G.lineDash;Me?(C(Q,"stroke-dasharray",G.lineDash.join(",")),C(Q,"stroke-dashoffset",o(G.lineDashOffset||0))):C(Q,"stroke-dasharray",""),G.lineCap&&C(Q,"stroke-linecap",G.lineCap),G.lineJoin&&C(Q,"stroke-linejoin",G.lineJoin),G.miterLimit&&C(Q,"stroke-miterlimit",G.miterLimit)}else C(Q,"stroke",t)}function w(Q){for(var G=[],te=Q.data,q=Q.len(),se=0;se<q;){var re=te[se++],xe="",Oe=0;switch(re){case s.M:xe="M",Oe=2;break;case s.L:xe="L",Oe=2;break;case s.Q:xe="Q",Oe=4;break;case s.C:xe="C",Oe=6;break;case s.A:var Me=te[se++],Qe=te[se++],Ve=te[se++],ut=te[se++],Fe=te[se++],ue=te[se++],et=te[se++],he=te[se++],J=Math.abs(ue),Y=A(J-a)||(he?ue>=a:-ue>=a),$=ue>0?ue%a:ue%a+a,de=!1;Y?de=!0:A(J)?de=!1:de=$>=r===!!he;var be=g(Me+Ve*l(Fe)),Ce=g(Qe+ut*e(Fe));Y&&(he?ue=a-1e-4:ue=-a+1e-4,de=!0,se===9&&G.push("M",be,Ce));var Be=g(Me+Ve*l(Fe+ue)),fe=g(Qe+ut*e(Fe+ue));G.push("A",g(Ve),g(ut),o(et*c),+de,+he,Be,fe);break;case s.Z:xe="Z";break;case s.R:var Be=g(te[se++]),fe=g(te[se++]),we=g(te[se++]),Re=g(te[se++]);G.push("M",Be,fe,"L",Be+we,fe,"L",Be+we,fe+Re,"L",Be,fe+Re,"L",Be,fe);break}xe&&G.push(xe);for(var rt=0;rt<Oe;rt++)G.push(g(te[se++]))}return G.join(" ")}var O={};O.brush=function(Q){var G=Q.style,te=Q.__svgEl;te||(te=f("path"),Q.__svgEl=te),Q.path||Q.createPathProxy();var q=Q.path;if(Q.__dirtyPath){q.beginPath(),q.subPixelOptimize=!1,Q.buildPath(q,Q.shape),Q.__dirtyPath=!1;var se=w(q);se.indexOf("NaN")<0&&C(te,"d",se)}T(te,G,!1,Q),E(te,Q.transform),G.text!=null?F(Q,Q.getBoundingRect()):V(Q)};var I={};I.brush=function(Q){var G=Q.style,te=G.image;if(te instanceof HTMLImageElement){var q=te.src;te=q}if(!te)return;var se=G.x||0,re=G.y||0,xe=G.width,Oe=G.height,Me=Q.__svgEl;Me||(Me=f("image"),Q.__svgEl=Me),te!==Q.__imageSrc&&(_(Me,"href",te),Q.__imageSrc=te),C(Me,"width",xe),C(Me,"height",Oe),C(Me,"x",se),C(Me,"y",re),E(Me,Q.transform),G.text!=null?F(Q,Q.getBoundingRect()):V(Q)};var k={},M=new v,j={},P=[],X={left:"start",right:"end",center:"middle",middle:"middle"},F=function(G,te){var q=G.style,se=G.transform,re=G instanceof u||q.transformText;G.__dirty&&d.normalizeTextStyle(q,!0);var xe=q.text;if(xe!=null&&(xe+=""),!d.needDrawText(xe,q))return;xe==null&&(xe=""),!re&&se&&(M.copy(te),M.applyTransform(se),te=M);var Oe=G.__textSvgEl;Oe||(Oe=f("text"),G.__textSvgEl=Oe);var Me=Oe.style,Qe=q.font||p.DEFAULT_FONT,Ve=Oe.__computedFont;Qe!==Oe.__styleFont&&(Me.font=Oe.__styleFont=Qe,Ve=Oe.__computedFont=Me.font);var ut=q.textPadding,Fe=q.textLineHeight,ue=G.__textCotentBlock;(!ue||G.__dirtyText)&&(ue=G.__textCotentBlock=p.parsePlainText(xe,Ve,ut,Fe,q.truncate));var et=ue.outerHeight,he=ue.lineHeight;d.getBoxPosition(j,G,q,te);var J=j.baseX,Y=j.baseY,$=j.textAlign||"left",de=j.textVerticalAlign;U(Oe,re,se,q,te,J,Y);var be=p.adjustTextY(Y,et,de),Ce=J,Be=be;ut&&(Ce=K(J,$,ut),Be+=ut[0]),Be+=he/2,T(Oe,q,!0,G);var fe=ue.canCacheByTextString,we=G.__tspanList||(G.__tspanList=[]),Re=we.length;if(fe&&G.__canCacheByTextString&&G.__text===xe){if(G.__dirtyText&&Re)for(var rt=0;rt<Re;++rt)z(we[rt],$,Ce,Be+rt*he)}else{G.__text=xe,G.__canCacheByTextString=fe;for(var St=ue.lines,ft=St.length,rt=0;rt<ft;rt++){var He=we[rt],er=St[rt];He?He.__zrText!==er&&(He.innerHTML="",He.appendChild(document.createTextNode(er))):(He=we[rt]=f("tspan"),Oe.appendChild(He),He.appendChild(document.createTextNode(er))),z(He,$,Ce,Be+rt*he)}if(Re>ft){for(;rt<Re;rt++)Oe.removeChild(we[rt]);we.length=ft}}};function U(Q,G,te,q,se,re,xe){m.identity(P),G&&te&&m.copy(P,te);var Oe=q.textRotation;if(se&&Oe){var Me=q.textOrigin;Me==="center"?(re=se.width/2+se.x,xe=se.height/2+se.y):Me&&(re=Me[0]+se.x,xe=Me[1]+se.y),P[4]-=re,P[5]-=xe,m.rotate(P,P,Oe),P[4]+=re,P[5]+=xe}E(Q,P)}function K(Q,G,te){return G==="right"?Q-te[1]:G==="center"?Q+te[3]/2-te[1]/2:Q+te[3]}function z(Q,G,te,q){C(Q,"dominant-baseline","middle"),C(Q,"text-anchor",X[G]),C(Q,"x",te),C(Q,"y",q)}function V(Q){Q&&Q.__textSvgEl&&(Q.__textSvgEl.parentNode&&Q.__textSvgEl.parentNode.removeChild(Q.__textSvgEl),Q.__textSvgEl=null,Q.__tspanList=[],Q.__text=null)}k.drawRectText=F,k.brush=function(Q){var G=Q.style;G.text!=null?F(Q,!1):V(Q)},D.path=O,D.image=I,D.text=k},P4Qj:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.removeSensor=D.getSensor=D.Sensors=void 0;var y=v(n("chpo")),f=n("FxDU"),x=n("24YM");function v(s){return s&&s.__esModule?s:{default:s}}var m={};D.Sensors=m;function p(s){s&&m[s]&&delete m[s]}var d=function(i){var t=i.getAttribute(x.SizeSensorId);if(t&&m[t])return m[t];var o=(0,y.default)();i.setAttribute(x.SizeSensorId,o);var e=(0,f.createSensor)(i,function(){return p(o)});return m[o]=e,e};D.getSensor=d;var u=function(i){var t=i.element.getAttribute(x.SizeSensorId);i.destroy(),p(t)};D.removeSensor=u},P5Jw:function(R,D,n){"use strict";var y=n("rHrb"),f=y.CopyToClipboard;f.CopyToClipboard=f,R.exports=f},PArb:function(R,D,n){"use strict";var y=n("pVnL"),f=n.n(y),x=n("lSNA"),v=n.n(x),m=n("q1tI"),p=n.n(m),d=n("TSYQ"),u=n.n(d),s=n("H84U"),i=function(o,e){var l={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(l[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(o);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(o,r[a])&&(l[r[a]]=o[r[a]]);return l},t=function(e){return m.createElement(s.a,null,function(l){var r,a=l.getPrefixCls,c=l.direction,h=e.prefixCls,g=e.type,A=g===void 0?"horizontal":g,b=e.orientation,S=b===void 0?"center":b,E=e.className,C=e.children,_=e.dashed,T=e.plain,w=i(e,["prefixCls","type","orientation","className","children","dashed","plain"]),O=a("divider",h),I=S.length>0?"-".concat(S):S,k=!!C,M=u()(E,O,"".concat(O,"-").concat(A),(r={},v()(r,"".concat(O,"-with-text"),k),v()(r,"".concat(O,"-with-text").concat(I),k),v()(r,"".concat(O,"-dashed"),!!_),v()(r,"".concat(O,"-plain"),!!T),v()(r,"".concat(O,"-rtl"),c==="rtl"),r));return m.createElement("div",f()({className:M},w,{role:"separator"}),C&&m.createElement("span",{className:"".concat(O,"-inner-text")},C))})};D.a=t},PD8m:function(R,D){R.exports={name:"memoryStorage",read:y,write:f,each:x,remove:v,clearAll:m};var n={};function y(p){return n[p]}function f(p,d){n[p]=d}function x(p){for(var d in n)n.hasOwnProperty(d)&&p(n[d],d)}function v(p){delete n[p]}function m(p){n={}}},PKem:function(R,D,n){"use strict";n.d(D,"a",function(){return b});var y=n("RIqP"),f=n.n(y),x=n("lSNA"),v=n.n(x),m=n("pVnL"),p=n.n(m),d=n("lwsE"),u=n.n(d),s=n("W8MJ"),i=n.n(s),t=n("7W2i"),o=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),a=n.n(r),c=n("TSYQ"),h=n.n(c),g=n("H84U"),A=function(I,k){var M={};for(var j in I)Object.prototype.hasOwnProperty.call(I,j)&&k.indexOf(j)<0&&(M[j]=I[j]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,j=Object.getOwnPropertySymbols(I);P<j.length;P++)k.indexOf(j[P])<0&&Object.prototype.propertyIsEnumerable.call(I,j[P])&&(M[j[P]]=I[j[P]]);return M},b=r.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function S(I){var k=I.suffixCls,M=I.tagName,j=I.displayName;return function(P){var X;return X=function(F){o()(K,F);var U=l()(K);function K(){var z;return u()(this,K),z=U.apply(this,arguments),z.renderComponent=function(V){var Q=V.getPrefixCls,G=z.props.prefixCls,te=Q(k,G);return r.createElement(P,p()({prefixCls:te,tagName:M},z.props))},z}return i()(K,[{key:"render",value:function(){return r.createElement(g.a,null,this.renderComponent)}}]),K}(r.Component),X.displayName=j,X}}var E=function(k){var M=k.prefixCls,j=k.className,P=k.children,X=k.tagName,F=A(k,["prefixCls","className","children","tagName"]),U=h()(M,j);return r.createElement(X,p()({className:U},F),P)},C=function(I){o()(M,I);var k=l()(M);function M(){var j;return u()(this,M),j=k.apply(this,arguments),j.state={siders:[]},j.renderComponent=function(P){var X,F=P.direction,U=j.props,K=U.prefixCls,z=U.className,V=U.children,Q=U.hasSider,G=U.tagName,te=A(U,["prefixCls","className","children","hasSider","tagName"]),q=h()(K,(X={},v()(X,"".concat(K,"-has-sider"),typeof Q=="boolean"?Q:j.state.siders.length>0),v()(X,"".concat(K,"-rtl"),F==="rtl"),X),z);return r.createElement(b.Provider,{value:{siderHook:j.getSiderHook()}},r.createElement(G,p()({className:q},te),V))},j}return i()(M,[{key:"getSiderHook",value:function(){var P=this;return{addSider:function(F){P.setState(function(U){return{siders:[].concat(f()(U.siders),[F])}})},removeSider:function(F){P.setState(function(U){return{siders:U.siders.filter(function(K){return K!==F})}})}}}},{key:"render",value:function(){return r.createElement(g.a,null,this.renderComponent)}}]),M}(r.Component),_=S({suffixCls:"layout",tagName:"section",displayName:"Layout"})(C),T=S({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(E),w=S({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(E),O=S({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(E);_.Header=T,_.Footer=w,_.Content=O,D.b=_},PNag:function(R,D,n){var y=n("bYtY"),f=n("SKnc"),x=n("YH21"),v=n("crZl"),m=n("IwbS"),p=n("OELB"),d=n("72pK"),u=n("y7Aq"),s=n("4NO4"),i=p.linearMap,t=y.each,o=Math.min,e=Math.max,l=12,r=6,a=v.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(C,_,T,w){(!w||w.type!=="selectDataRange"||w.from!==this.uid)&&this._buildView()},_buildView:function(){this.group.removeAll();var C=this.visualMapModel,_=this.group;this._orient=C.get("orient"),this._useHandle=C.get("calculable"),this._resetInterval(),this._renderBar(_);var T=C.get("text");this._renderEndsText(_,T,0),this._renderEndsText(_,T,1),this._updateView(!0),this.renderBackground(_),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(_)},_renderEndsText:function(C,_,T){if(!_)return;var w=_[1-T];w=w!=null?w+"":"";var O=this.visualMapModel,I=O.get("textGap"),k=O.itemSize,M=this._shapes.barGroup,j=this._applyTransform([k[0]/2,T===0?-I:k[1]+I],M),P=this._applyTransform(T===0?"bottom":"top",M),X=this._orient,F=this.visualMapModel.textStyleModel;this.group.add(new m.Text({style:{x:j[0],y:j[1],textVerticalAlign:X==="horizontal"?"middle":P,textAlign:X==="horizontal"?P:"center",text:w,textFont:F.getFont(),textFill:F.getTextColor()}}))},_renderBar:function(C){var _=this.visualMapModel,T=this._shapes,w=_.itemSize,O=this._orient,I=this._useHandle,k=u.getItemAlign(_,this.api,w),M=T.barGroup=this._createBarGroup(k);M.add(T.outOfRange=c()),M.add(T.inRange=c(null,I?S(this._orient):null,y.bind(this._dragHandle,this,"all",!1),y.bind(this._dragHandle,this,"all",!0)));var j=_.textStyleModel.getTextRect("\u56FD"),P=e(j.width,j.height);I&&(T.handleThumbs=[],T.handleLabels=[],T.handleLabelPoints=[],this._createHandle(M,0,w,P,O,k),this._createHandle(M,1,w,P,O,k)),this._createIndicator(M,w,P,O),C.add(M)},_createHandle:function(C,_,T,w,O){var I=y.bind(this._dragHandle,this,_,!1),k=y.bind(this._dragHandle,this,_,!0),M=c(h(_,w),S(this._orient),I,k);M.position[0]=T[0],C.add(M);var j=this.visualMapModel.textStyleModel,P=new m.Text({draggable:!0,drift:I,onmousemove:function(U){x.stop(U.event)},ondragend:k,style:{x:0,y:0,text:"",textFont:j.getFont(),textFill:j.getTextColor()}});this.group.add(P);var X=[O==="horizontal"?w/2:w*1.5,O==="horizontal"?_===0?-(w*1.5):w*1.5:_===0?-w/2:w/2],F=this._shapes;F.handleThumbs[_]=M,F.handleLabelPoints[_]=X,F.handleLabels[_]=P},_createIndicator:function(C,_,T,w){var O=c([[0,0]],"move");O.position[0]=_[0],O.attr({invisible:!0,silent:!0}),C.add(O);var I=this.visualMapModel.textStyleModel,k=new m.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:I.getFont(),textFill:I.getTextColor()}});this.group.add(k);var M=[w==="horizontal"?T/2:r+3,0],j=this._shapes;j.indicator=O,j.indicatorLabel=k,j.indicatorLabelPoint=M},_dragHandle:function(C,_,T,w){if(!this._useHandle)return;if(this._dragging=!_,!_){var O=this._applyTransform([T,w],this._shapes.barGroup,!0);this._updateInterval(C,O[1]),this._updateView()}_===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),_?!this._hovering&&this._clearHoverLinkToSeries():b(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[C],!1)},_resetInterval:function(){var C=this.visualMapModel,_=this._dataInterval=C.getSelected(),T=C.getExtent(),w=[0,C.itemSize[1]];this._handleEnds=[i(_[0],T,w,!0),i(_[1],T,w,!0)]},_updateInterval:function(C,_){_=_||0;var T=this.visualMapModel,w=this._handleEnds,O=[0,T.itemSize[1]];d(_,w,O,C,0);var I=T.getExtent();this._dataInterval=[i(w[0],O,I,!0),i(w[1],O,I,!0)]},_updateView:function(C){var _=this.visualMapModel,T=_.getExtent(),w=this._shapes,O=[0,_.itemSize[1]],I=C?O:this._handleEnds,k=this._createBarVisual(this._dataInterval,T,I,"inRange"),M=this._createBarVisual(T,T,O,"outOfRange");w.inRange.setStyle({fill:k.barColor,opacity:k.opacity}).setShape("points",k.barPoints),w.outOfRange.setStyle({fill:M.barColor,opacity:M.opacity}).setShape("points",M.barPoints),this._updateHandle(I,k)},_createBarVisual:function(C,_,T,w){var O={forceState:w,convertOpacityToAlpha:!0},I=this._makeColorGradient(C,O),k=[this.getControllerVisual(C[0],"symbolSize",O),this.getControllerVisual(C[1],"symbolSize",O)],M=this._createBarPoints(T,k);return{barColor:new f(0,0,0,1,I),barPoints:M,handlesColor:[I[0].color,I[I.length-1].color]}},_makeColorGradient:function(C,_){var T=100,w=[],O=(C[1]-C[0])/T;w.push({color:this.getControllerVisual(C[0],"color",_),offset:0});for(var I=1;I<T;I++){var k=C[0]+O*I;if(k>C[1])break;w.push({color:this.getControllerVisual(k,"color",_),offset:I/T})}return w.push({color:this.getControllerVisual(C[1],"color",_),offset:1}),w},_createBarPoints:function(C,_){var T=this.visualMapModel.itemSize;return[[T[0]-_[0],C[0]],[T[0],C[0]],[T[0],C[1]],[T[0]-_[1],C[1]]]},_createBarGroup:function(C){var _=this._orient,T=this.visualMapModel.get("inverse");return new m.Group(_==="horizontal"&&!T?{scale:C==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:_==="horizontal"&&T?{scale:C==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:_==="vertical"&&!T?{scale:C==="left"?[1,-1]:[-1,-1]}:{scale:C==="left"?[1,1]:[-1,1]})},_updateHandle:function(C,_){if(!this._useHandle)return;var T=this._shapes,w=this.visualMapModel,O=T.handleThumbs,I=T.handleLabels;t([0,1],function(k){var M=O[k];M.setStyle("fill",_.handlesColor[k]),M.position[1]=C[k];var j=m.applyTransform(T.handleLabelPoints[k],m.getTransform(M,this.group));I[k].setStyle({x:j[0],y:j[1],text:w.formatValueText(this._dataInterval[k]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?k===0?"bottom":"top":"left",T.barGroup)})},this)},_showIndicator:function(C,_,T,w){var O=this.visualMapModel,I=O.getExtent(),k=O.itemSize,M=[0,k[1]],j=i(C,I,M,!0),P=this._shapes,X=P.indicator;if(!X)return;X.position[1]=j,X.attr("invisible",!1),X.setShape("points",g(!!T,w,j,k[1]));var F={convertOpacityToAlpha:!0},U=this.getControllerVisual(C,"color",F);X.setStyle("fill",U);var K=m.applyTransform(P.indicatorLabelPoint,m.getTransform(X,this.group)),z=P.indicatorLabel;z.attr("invisible",!1);var V=this._applyTransform("left",P.barGroup),Q=this._orient;z.setStyle({text:(T||"")+O.formatValueText(_),textVerticalAlign:Q==="horizontal"?V:"middle",textAlign:Q==="horizontal"?"center":V,x:K[0],y:K[1]})},_enableHoverLinkToSeries:function(){var C=this;this._shapes.barGroup.on("mousemove",function(_){if(C._hovering=!0,!C._dragging){var T=C.visualMapModel.itemSize,w=C._applyTransform([_.offsetX,_.offsetY],C._shapes.barGroup,!0,!0);w[1]=o(e(0,w[1]),T[1]),C._doHoverLinkToSeries(w[1],0<=w[0]&&w[0]<=T[0])}}).on("mouseout",function(){C._hovering=!1,!C._dragging&&C._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var C=this.api.getZr();this.visualMapModel.option.hoverLink?(C.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),C.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(C,_){var T=this.visualMapModel,w=T.itemSize;if(!T.option.hoverLink)return;var O=[0,w[1]],I=T.getExtent();C=o(e(O[0],C),O[1]);var k=A(T,I,O),M=[C-k,C+k],j=i(C,O,I,!0),P=[i(M[0],O,I,!0),i(M[1],O,I,!0)];M[0]<O[0]&&(P[0]=-Infinity),M[1]>O[1]&&(P[1]=Infinity),_&&(P[0]===-Infinity?this._showIndicator(j,P[1],"< ",k):P[1]===Infinity?this._showIndicator(j,P[0],"> ",k):this._showIndicator(j,j,"\u2248 ",k));var X=this._hoverLinkDataIndices,F=[];(_||b(T))&&(F=this._hoverLinkDataIndices=T.findTargetDataIndices(P));var U=s.compressBatches(X,F);this._dispatchHighDown("downplay",u.makeHighDownBatch(U[0],T)),this._dispatchHighDown("highlight",u.makeHighDownBatch(U[1],T))},_hoverLinkFromSeriesMouseOver:function(C){var _=C.target,T=this.visualMapModel;if(!_||_.dataIndex==null)return;var w=this.ecModel.getSeriesByIndex(_.seriesIndex);if(!T.isTargetSeries(w))return;var O=w.getData(_.dataType),I=O.get(T.getDataDimension(O),_.dataIndex,!0);isNaN(I)||this._showIndicator(I,I)},_hideIndicator:function(){var C=this._shapes;C.indicator&&C.indicator.attr("invisible",!0),C.indicatorLabel&&C.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var C=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",u.makeHighDownBatch(C,this.visualMapModel)),C.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var C=this.api.getZr();C.off("mouseover",this._hoverLinkFromSeriesMouseOver),C.off("mouseout",this._hideIndicator)},_applyTransform:function(C,_,T,w){var O=m.getTransform(_,w?null:this.group);return m[y.isArray(C)?"applyTransform":"transformDirection"](C,O,T)},_dispatchHighDown:function(C,_){_&&_.length&&this.api.dispatchAction({type:C,batch:_})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function c(C,_,T,w){return new m.Polygon({shape:{points:C},draggable:!!T,cursor:_,drift:T,onmousemove:function(O){x.stop(O.event)},ondragend:w})}function h(C,_){return C===0?[[0,0],[_,0],[_,-_]]:[[0,0],[_,0],[_,_]]}function g(C,_,T,w){return C?[[0,-o(_,e(T,0))],[r,0],[0,o(_,e(w-T,0))]]:[[0,0],[5,-5],[5,5]]}function A(C,_,T){var w=l/2,O=C.get("hoverLinkDataSize");return O&&(w=i(O,_,T,!0)/2),w}function b(C){var _=C.get("hoverLinkOnHandle");return!!(_==null?C.get("realtime"):_)}function S(C){return C==="vertical"?"ns-resize":"ew-resize"}var E=a;R.exports=E},PQMj:function(R,D,n){},PSzr:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};D.default=y},PVpz:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var f=y,x=f.lib,v=x.StreamCipher,m=f.algo,p=[],d=[],u=[],s=m.RabbitLegacy=v.extend({_doReset:function(){var o=this._key.words,e=this.cfg.iv,l=this._X=[o[0],o[3]<<16|o[2]>>>16,o[1],o[0]<<16|o[3]>>>16,o[2],o[1]<<16|o[0]>>>16,o[3],o[2]<<16|o[1]>>>16],r=this._C=[o[2]<<16|o[2]>>>16,o[0]&4294901760|o[1]&65535,o[3]<<16|o[3]>>>16,o[1]&4294901760|o[2]&65535,o[0]<<16|o[0]>>>16,o[2]&4294901760|o[3]&65535,o[1]<<16|o[1]>>>16,o[3]&4294901760|o[0]&65535];this._b=0;for(var a=0;a<4;a++)i.call(this);for(var a=0;a<8;a++)r[a]^=l[a+4&7];if(e){var c=e.words,h=c[0],g=c[1],A=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,b=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,S=A>>>16|b&4294901760,E=b<<16|A&65535;r[0]^=A,r[1]^=S,r[2]^=b,r[3]^=E,r[4]^=A,r[5]^=S,r[6]^=b,r[7]^=E;for(var a=0;a<4;a++)i.call(this)}},_doProcessBlock:function(o,e){var l=this._X;i.call(this),p[0]=l[0]^l[5]>>>16^l[3]<<16,p[1]=l[2]^l[7]>>>16^l[5]<<16,p[2]=l[4]^l[1]>>>16^l[7]<<16,p[3]=l[6]^l[3]>>>16^l[1]<<16;for(var r=0;r<4;r++)p[r]=(p[r]<<8|p[r]>>>24)&16711935|(p[r]<<24|p[r]>>>8)&4278255360,o[e+r]^=p[r]},blockSize:128/32,ivSize:64/32});function i(){for(var t=this._X,o=this._C,e=0;e<8;e++)d[e]=o[e];o[0]=o[0]+1295307597+this._b|0,o[1]=o[1]+3545052371+(o[0]>>>0<d[0]>>>0?1:0)|0,o[2]=o[2]+886263092+(o[1]>>>0<d[1]>>>0?1:0)|0,o[3]=o[3]+1295307597+(o[2]>>>0<d[2]>>>0?1:0)|0,o[4]=o[4]+3545052371+(o[3]>>>0<d[3]>>>0?1:0)|0,o[5]=o[5]+886263092+(o[4]>>>0<d[4]>>>0?1:0)|0,o[6]=o[6]+1295307597+(o[5]>>>0<d[5]>>>0?1:0)|0,o[7]=o[7]+3545052371+(o[6]>>>0<d[6]>>>0?1:0)|0,this._b=o[7]>>>0<d[7]>>>0?1:0;for(var e=0;e<8;e++){var l=t[e]+o[e],r=l&65535,a=l>>>16,c=((r*r>>>17)+r*a>>>15)+a*a,h=((l&4294901760)*l|0)+((l&65535)*l|0);u[e]=c^h}t[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,t[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,t[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,t[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,t[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,t[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,t[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,t[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}f.RabbitLegacy=v._createHelper(s)}(),y.RabbitLegacy})},ProS:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("aX58"),v=n("bYtY"),m=n("Qe9p"),p=n("ItGF"),d=n("BPZU"),u=n("H6uX"),s=n("fmMI"),i=n("hD7B"),t=n("IDmD"),o=n("ypgQ"),e=n("+wW9"),l=n("0V0F"),r=n("bLfw"),a=n("T4UG"),c=n("sS/r"),h=n("6Ic6"),g=n("IwbS"),A=n("4NO4"),b=n("iLNv"),S=b.throttle,E=n("/WM3"),C=n("uAnK"),_=n("mYwL"),T=n("af/B"),w=n("xTNl"),O=n("8hn6");n("A1Ka");var I=n("7DRL"),k=v.assert,M=v.each,j=v.isFunction,P=v.isObject,X=r.parseClassType,F="4.8.0",U={zrender:"4.3.1"},K=1,z=1e3,V=800,Q=900,G=5e3,te=1e3,q=1100,se=2e3,re=3e3,xe=3500,Oe=4e3,Me=5e3,Qe={PROCESSOR:{FILTER:z,SERIES_FILTER:V,STATISTIC:G},VISUAL:{LAYOUT:te,PROGRESSIVE_LAYOUT:q,GLOBAL:se,CHART:re,POST_CHART_LAYOUT:xe,COMPONENT:Oe,BRUSH:Me}},Ve="__flagInMainProcess",ut="__optionUpdated",Fe=/^[a-zA-Z0-9_]+$/;function ue(Rt,qt){return function(Hr,Nr,Dr){if(!qt&&this._disposed){fr(this.id);return}Hr=Hr&&Hr.toLowerCase(),u.prototype[Rt].call(this,Hr,Nr,Dr)}}function et(){u.call(this)}et.prototype.on=ue("on",!0),et.prototype.off=ue("off",!0),et.prototype.one=ue("one",!0),v.mixin(et,u);function he(Rt,qt,Hr){Hr=Hr||{},typeof qt=="string"&&(qt=At[qt]),this.id,this.group,this._dom=Rt;var Nr="canvas",Dr=this._zr=x.init(Rt,{renderer:Hr.renderer||Nr,devicePixelRatio:Hr.devicePixelRatio,width:Hr.width,height:Hr.height});this._throttledZrFlush=S(v.bind(Dr.flush,Dr),17);var qt=v.clone(qt);qt&&e(qt,!0),this._theme=qt,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new t;var cn=this._api=Ge(this);function An(ri,$n){return ri.__prio-$n.__prio}d(vr,An),d(qe,An),this._scheduler=new T(this,cn,qe,vr),u.call(this,this._ecEventProcessor=new pe),this._messageCenter=new et,this._initEvents(),this.resize=v.bind(this.resize,this),this._pendingActions=[],Dr.animation.on("frame",this._onframe,this),Re(Dr,this),v.setAsPrimitive(this)}var J=he.prototype;J._onframe=function(){if(this._disposed)return;var Rt=this._scheduler;if(this[ut]){var qt=this[ut].silent;this[Ve]=!0,de(this),$.update.call(this),this[Ve]=!1,this[ut]=!1,fe.call(this,qt),we.call(this,qt)}else if(Rt.unfinished){var Hr=K,Nr=this._model,Dr=this._api;Rt.unfinished=!1;do{var cn=+new Date;Rt.performSeriesTasks(Nr),Rt.performDataProcessorTasks(Nr),Ce(this,Nr),Rt.performVisualTasks(Nr),er(this,this._model,Dr,"remain"),Hr-=+new Date-cn}while(Hr>0&&Rt.unfinished);Rt.unfinished||this._zr.flush()}},J.getDom=function(){return this._dom},J.getZr=function(){return this._zr},J.setOption=function(Rt,qt,Hr){if(this._disposed){fr(this.id);return}var Nr;if(P(qt)&&(Hr=qt.lazyUpdate,Nr=qt.silent,qt=qt.notMerge),this[Ve]=!0,!this._model||qt){var Dr=new o(this._api),cn=this._theme,An=this._model=new s;An.scheduler=this._scheduler,An.init(null,null,cn,Dr)}this._model.setOption(Rt,ge),Hr?(this[ut]={silent:Nr},this[Ve]=!1):(de(this),$.update.call(this),this._zr.flush(),this[ut]=!1,this[Ve]=!1,fe.call(this,Nr),we.call(this,Nr))},J.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},J.getModel=function(){return this._model},J.getOption=function(){return this._model&&this._model.getOption()},J.getWidth=function(){return this._zr.getWidth()},J.getHeight=function(){return this._zr.getHeight()},J.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},J.getRenderedCanvas=function(Rt){if(!p.canvasSupported)return;Rt=Rt||{},Rt.pixelRatio=Rt.pixelRatio||1,Rt.backgroundColor=Rt.backgroundColor||this._model.get("backgroundColor");var qt=this._zr;return qt.painter.getRenderedCanvas(Rt)},J.getSvgDataURL=function(){if(!p.svgSupported)return;var Rt=this._zr,qt=Rt.storage.getDisplayList();return v.each(qt,function(Hr){Hr.stopAnimation(!0)}),Rt.painter.toDataURL()},J.getDataURL=function(Rt){if(this._disposed){fr(this.id);return}Rt=Rt||{};var qt=Rt.excludeComponents,Hr=this._model,Nr=[],Dr=this;M(qt,function(An){Hr.eachComponent({mainType:An},function(ri){var $n=Dr._componentsMap[ri.__viewId];$n.group.ignore||(Nr.push($n),$n.group.ignore=!0)})});var cn=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(Rt).toDataURL("image/"+(Rt&&Rt.type||"png"));return M(Nr,function(An){An.group.ignore=!1}),cn},J.getConnectedDataURL=function(Rt){if(this._disposed){fr(this.id);return}if(!p.canvasSupported)return;var qt=Rt.type==="svg",Hr=this.group,Nr=Math.min,Dr=Math.max,cn=Infinity;if(dn[Hr]){var An=cn,ri=cn,$n=-cn,fi=-cn,_i=[],Di=Rt&&Rt.pixelRatio||1;v.each(lr,function(nt,Ze){if(nt.group===Hr){var ot=qt?nt.getZr().painter.getSvgDom().innerHTML:nt.getRenderedCanvas(v.clone(Rt)),Ct=nt.getDom().getBoundingClientRect();An=Nr(Ct.left,An),ri=Nr(Ct.top,ri),$n=Dr(Ct.right,$n),fi=Dr(Ct.bottom,fi),_i.push({dom:ot,left:Ct.left,top:Ct.top})}}),An*=Di,ri*=Di,$n*=Di,fi*=Di;var Wi=$n-An,it=fi-ri,Le=v.createCanvas(),je=x.init(Le,{renderer:qt?"svg":"canvas"});if(je.resize({width:Wi,height:it}),qt){var Xe="";return M(_i,function(nt){var Ze=nt.left-An,ot=nt.top-ri;Xe+='<g transform="translate('+Ze+","+ot+')">'+nt.dom+"</g>"}),je.painter.getSvgRoot().innerHTML=Xe,Rt.connectedBackgroundColor&&je.painter.setBackgroundColor(Rt.connectedBackgroundColor),je.refreshImmediately(),je.painter.toDataURL()}else return Rt.connectedBackgroundColor&&je.add(new g.Rect({shape:{x:0,y:0,width:Wi,height:it},style:{fill:Rt.connectedBackgroundColor}})),M(_i,function(nt){var Ze=new g.Image({style:{x:nt.left*Di-An,y:nt.top*Di-ri,image:nt.dom}});je.add(Ze)}),je.refreshImmediately(),Le.toDataURL("image/"+(Rt&&Rt.type||"png"))}else return this.getDataURL(Rt)},J.convertToPixel=v.curry(Y,"convertToPixel"),J.convertFromPixel=v.curry(Y,"convertFromPixel");function Y(Rt,qt,Hr){if(this._disposed){fr(this.id);return}var Nr=this._model,Dr=this._coordSysMgr.getCoordinateSystems(),cn;qt=A.parseFinder(Nr,qt);for(var An=0;An<Dr.length;An++){var ri=Dr[An];if(ri[Rt]&&(cn=ri[Rt](Nr,qt,Hr))!=null)return cn}}J.containPixel=function(Rt,qt){if(this._disposed){fr(this.id);return}var Hr=this._model,Nr;return Rt=A.parseFinder(Hr,Rt),v.each(Rt,function(Dr,cn){cn.indexOf("Models")>=0&&v.each(Dr,function(An){var ri=An.coordinateSystem;if(ri&&ri.containPoint)Nr|=!!ri.containPoint(qt);else if(cn==="seriesModels"){var $n=this._chartsMap[An.__viewId];$n&&$n.containPoint&&(Nr|=$n.containPoint(qt,An))}},this)},this),!!Nr},J.getVisual=function(Rt,qt){var Hr=this._model;Rt=A.parseFinder(Hr,Rt,{defaultMainType:"series"});var Nr=Rt.seriesModel,Dr=Nr.getData(),cn=Rt.hasOwnProperty("dataIndexInside")?Rt.dataIndexInside:Rt.hasOwnProperty("dataIndex")?Dr.indexOfRawIndex(Rt.dataIndex):null;return cn!=null?Dr.getItemVisual(cn,qt):Dr.getVisual(qt)},J.getViewOfComponentModel=function(Rt){return this._componentsMap[Rt.__viewId]},J.getViewOfSeriesModel=function(Rt){return this._chartsMap[Rt.__viewId]};var $={prepareAndUpdate:function(Rt){de(this),$.update.call(this,Rt)},update:function(Rt){var qt=this._model,Hr=this._api,Nr=this._zr,Dr=this._coordSysMgr,cn=this._scheduler;if(!qt)return;cn.restoreData(qt,Rt),cn.performSeriesTasks(qt),Dr.create(qt,Hr),cn.performDataProcessorTasks(qt,Rt),Ce(this,qt),Dr.update(qt,Hr),St(qt),cn.performVisualTasks(qt,Rt),ft(this,qt,Hr,Rt);var An=qt.get("backgroundColor")||"transparent";if(p.canvasSupported)Nr.setBackgroundColor(An);else{var ri=m.parse(An);An=m.stringify(ri,"rgb"),ri[3]===0&&(An="transparent")}ct(qt,Hr)},updateTransform:function(Rt){var qt=this._model,Hr=this,Nr=this._api;if(!qt)return;var Dr=[];qt.eachComponent(function(An,ri){var $n=Hr.getViewOfComponentModel(ri);if($n&&$n.__alive)if($n.updateTransform){var fi=$n.updateTransform(ri,qt,Nr,Rt);fi&&fi.update&&Dr.push($n)}else Dr.push($n)});var cn=v.createHashMap();qt.eachSeries(function(An){var ri=Hr._chartsMap[An.__viewId];if(ri.updateTransform){var $n=ri.updateTransform(An,qt,Nr,Rt);$n&&$n.update&&cn.set(An.uid,1)}else cn.set(An.uid,1)}),St(qt),this._scheduler.performVisualTasks(qt,Rt,{setDirty:!0,dirtyMap:cn}),er(Hr,qt,Nr,Rt,cn),ct(qt,this._api)},updateView:function(Rt){var qt=this._model;if(!qt)return;h.markUpdateMethod(Rt,"updateView"),St(qt),this._scheduler.performVisualTasks(qt,Rt,{setDirty:!0}),ft(this,this._model,this._api,Rt),ct(qt,this._api)},updateVisual:function(Rt){$.update.call(this,Rt)},updateLayout:function(Rt){$.update.call(this,Rt)}};function de(Rt){var qt=Rt._model,Hr=Rt._scheduler;Hr.restorePipelines(qt),Hr.prepareStageTasks(),rt(Rt,"component",qt,Hr),rt(Rt,"chart",qt,Hr),Hr.plan()}function be(Rt,qt,Hr,Nr,Dr){var cn=Rt._model;if(!Nr){M(Rt._componentsViews.concat(Rt._chartsViews),fi);return}var An={};An[Nr+"Id"]=Hr[Nr+"Id"],An[Nr+"Index"]=Hr[Nr+"Index"],An[Nr+"Name"]=Hr[Nr+"Name"];var ri={mainType:Nr,query:An};Dr&&(ri.subType=Dr);var $n=Hr.excludeSeriesId;$n!=null&&($n=v.createHashMap(A.normalizeToArray($n))),cn&&cn.eachComponent(ri,function(_i){(!$n||$n.get(_i.id)==null)&&fi(Rt[Nr==="series"?"_chartsMap":"_componentsMap"][_i.__viewId])},Rt);function fi(_i){_i&&_i.__alive&&_i[qt]&&_i[qt](_i.__model,cn,Rt._api,Hr)}}J.resize=function(Rt){if(this._disposed){fr(this.id);return}this._zr.resize(Rt);var qt=this._model;if(this._loadingFX&&this._loadingFX.resize(),!qt)return;var Hr=qt.resetOption("media"),Nr=Rt&&Rt.silent;this[Ve]=!0,Hr&&de(this),$.update.call(this),this[Ve]=!1,fe.call(this,Nr),we.call(this,Nr)};function Ce(Rt,qt){var Hr=Rt._chartsMap,Nr=Rt._scheduler;qt.eachSeries(function(Dr){Nr.updateStreamModes(Dr,Hr[Dr.__viewId])})}J.showLoading=function(Rt,qt){if(this._disposed){fr(this.id);return}if(P(Rt)&&(qt=Rt,Rt=""),Rt=Rt||"default",this.hideLoading(),!ir[Rt])return;var Hr=ir[Rt](this._api,qt),Nr=this._zr;this._loadingFX=Hr,Nr.add(Hr)},J.hideLoading=function(){if(this._disposed){fr(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},J.makeActionFromEvent=function(Rt){var qt=v.extend({},Rt);return qt.type=lt[Rt.type],qt},J.dispatchAction=function(Rt,qt){if(this._disposed){fr(this.id);return}if(P(qt)||(qt={silent:!!qt}),!oe[Rt.type])return;if(!this._model)return;if(this[Ve]){this._pendingActions.push(Rt);return}Be.call(this,Rt,qt.silent),qt.flush?this._zr.flush(!0):qt.flush!==!1&&p.browser.weChat&&this._throttledZrFlush(),fe.call(this,qt.silent),we.call(this,qt.silent)};function Be(Rt,qt){var Hr=Rt.type,Nr=Rt.escapeConnect,Dr=oe[Hr],cn=Dr.actionInfo,An=(cn.update||"update").split(":"),ri=An.pop();An=An[0]!=null&&X(An[0]),this[Ve]=!0;var $n=[Rt],fi=!1;Rt.batch&&(fi=!0,$n=v.map(Rt.batch,function(it){return it=v.defaults(v.extend({},it),Rt),it.batch=null,it}));var _i=[],Di,Wi=Hr==="highlight"||Hr==="downplay";M($n,function(it){Di=Dr.action(it,this._model,this._api),Di=Di||v.extend({},it),Di.type=cn.event||Di.type,_i.push(Di),Wi?be(this,ri,it,"series"):An&&be(this,ri,it,An.main,An.sub)},this),ri!=="none"&&!Wi&&!An&&(this[ut]?(de(this),$.update.call(this,Rt),this[ut]=!1):$[ri].call(this,Rt)),fi?Di={type:cn.event||Hr,escapeConnect:Nr,batch:_i}:Di=_i[0],this[Ve]=!1,!qt&&this._messageCenter.trigger(Di.type,Di)}function fe(Rt){for(var qt=this._pendingActions;qt.length;){var Hr=qt.shift();Be.call(this,Hr,Rt)}}function we(Rt){!Rt&&this.trigger("updated")}function Re(Rt,qt){Rt.on("rendered",function(){qt.trigger("rendered"),Rt.animation.isFinished()&&!qt[ut]&&!qt._scheduler.unfinished&&!qt._pendingActions.length&&qt.trigger("finished")})}J.appendData=function(Rt){if(this._disposed){fr(this.id);return}var qt=Rt.seriesIndex,Hr=this.getModel(),Nr=Hr.getSeriesByIndex(qt);Nr.appendData(Rt),this._scheduler.unfinished=!0},J.on=ue("on",!1),J.off=ue("off",!1),J.one=ue("one",!1);function rt(Rt,qt,Hr,Nr){for(var Dr=qt==="component",cn=Dr?Rt._componentsViews:Rt._chartsViews,An=Dr?Rt._componentsMap:Rt._chartsMap,ri=Rt._zr,$n=Rt._api,fi=0;fi<cn.length;fi++)cn[fi].__alive=!1;Dr?Hr.eachComponent(function(Wi,it){Wi!=="series"&&_i(it)}):Hr.eachSeries(_i);function _i(Wi){var it="_ec_"+Wi.id+"_"+Wi.type,Le=An[it];if(!Le){var je=X(Wi.type),Xe=Dr?c.getClass(je.main,je.sub):h.getClass(je.sub);Le=new Xe,Le.init(Hr,$n),An[it]=Le,cn.push(Le),ri.add(Le.group)}Wi.__viewId=Le.__id=it,Le.__alive=!0,Le.__model=Wi,Le.group.__ecComponentInfo={mainType:Wi.mainType,index:Wi.componentIndex},!Dr&&Nr.prepareView(Le,Wi,Hr,$n)}for(var fi=0;fi<cn.length;){var Di=cn[fi];Di.__alive?fi++:(!Dr&&Di.renderTask.dispose(),ri.remove(Di.group),Di.dispose(Hr,$n),cn.splice(fi,1),delete An[Di.__id],Di.__id=Di.group.__ecComponentInfo=null)}}function St(Rt){Rt.clearColorPalette(),Rt.eachSeries(function(qt){qt.clearColorPalette()})}function ft(Rt,qt,Hr,Nr){He(Rt,qt,Hr,Nr),M(Rt._chartsViews,function(Dr){Dr.__alive=!1}),er(Rt,qt,Hr,Nr),M(Rt._chartsViews,function(Dr){Dr.__alive||Dr.remove(qt,Hr)})}function He(Rt,qt,Hr,Nr,Dr){M(Dr||Rt._componentsViews,function(cn){var An=cn.__model;cn.render(An,qt,Hr,Nr),Xt(An,cn)})}function er(Rt,qt,Hr,Nr,Dr){var cn=Rt._scheduler,An;qt.eachSeries(function(ri){var $n=Rt._chartsMap[ri.__viewId];$n.__alive=!0;var fi=$n.renderTask;cn.updatePayload(fi,Nr),Dr&&Dr.get(ri.uid)&&fi.dirty(),An|=fi.perform(cn.getPerformArgs(fi)),$n.group.silent=!!ri.get("silent"),Xt(ri,$n),Pt(ri,$n)}),cn.unfinished|=An,Gt(Rt,qt),C(Rt._zr.dom,qt)}function ct(Rt,qt){M(Ht,function(Hr){Hr(Rt,qt)})}var Kt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];J._initEvents=function(){M(Kt,function(Rt){var qt=function(Hr){var Nr=this.getModel(),Dr=Hr.target,cn,An=Rt==="globalout";if(An)cn={};else if(Dr&&Dr.dataIndex!=null){var ri=Dr.dataModel||Nr.getSeriesByIndex(Dr.seriesIndex);cn=ri&&ri.getDataParams(Dr.dataIndex,Dr.dataType,Dr)||{}}else Dr&&Dr.eventData&&(cn=v.extend({},Dr.eventData));if(cn){var $n=cn.componentType,fi=cn.componentIndex;($n==="markLine"||$n==="markPoint"||$n==="markArea")&&($n="series",fi=cn.seriesIndex);var _i=$n&&fi!=null&&Nr.getComponent($n,fi),Di=_i&&this[_i.mainType==="series"?"_chartsMap":"_componentsMap"][_i.__viewId];cn.event=Hr,cn.type=Rt,this._ecEventProcessor.eventInfo={targetEl:Dr,packedEvent:cn,model:_i,view:Di},this.trigger(Rt,cn)}};qt.zrEventfulCallAtLast=!0,this._zr.on(Rt,qt,this)},this),M(lt,function(Rt,qt){this._messageCenter.on(qt,function(Hr){this.trigger(qt,Hr)},this)},this)},J.isDisposed=function(){return this._disposed},J.clear=function(){if(this._disposed){fr(this.id);return}this.setOption({series:[]},!0)},J.dispose=function(){if(this._disposed){fr(this.id);return}this._disposed=!0,A.setAttribute(this.getDom(),Jt,"");var Rt=this._api,qt=this._model;M(this._componentsViews,function(Hr){Hr.dispose(qt,Rt)}),M(this._chartsViews,function(Hr){Hr.dispose(qt,Rt)}),this._zr.dispose(),delete lr[this.id]},v.mixin(he,u);function fr(Rt){}function Gt(Rt,qt){var Hr=Rt._zr,Nr=Hr.storage,Dr=0;Nr.traverse(function(cn){Dr++}),Dr>qt.get("hoverLayerThreshold")&&!p.node&&qt.eachSeries(function(cn){if(cn.preventUsingHoverLayer)return;var An=Rt._chartsMap[cn.__viewId];An.__alive&&An.group.traverse(function(ri){ri.useHoverLayer=!0})})}function Pt(Rt,qt){var Hr=Rt.get("blendMode")||null;qt.group.traverse(function(Nr){Nr.isGroup||Nr.style.blend!==Hr&&Nr.setStyle("blend",Hr),Nr.eachPendingDisplayable&&Nr.eachPendingDisplayable(function(Dr){Dr.setStyle("blend",Hr)})})}function Xt(Rt,qt){var Hr=Rt.get("z"),Nr=Rt.get("zlevel");qt.group.traverse(function(Dr){Dr.type!=="group"&&(Hr!=null&&(Dr.z=Hr),Nr!=null&&(Dr.zlevel=Nr))})}function Ge(Rt){var qt=Rt._coordSysMgr;return v.extend(new i(Rt),{getCoordinateSystems:v.bind(qt.getCoordinateSystems,qt),getComponentByElement:function(Hr){for(;Hr;){var Nr=Hr.__ecComponentInfo;if(Nr!=null)return Rt._model.getComponent(Nr.mainType,Nr.index);Hr=Hr.parent}}})}function pe(){this.eventInfo}pe.prototype={constructor:pe,normalizeQuery:function(Rt){var qt={},Hr={},Nr={};if(v.isString(Rt)){var Dr=X(Rt);qt.mainType=Dr.main||null,qt.subType=Dr.sub||null}else{var cn=["Index","Name","Id"],An={name:1,dataIndex:1,dataType:1};v.each(Rt,function(ri,$n){for(var fi=!1,_i=0;_i<cn.length;_i++){var Di=cn[_i],Wi=$n.lastIndexOf(Di);if(Wi>0&&Wi===$n.length-Di.length){var it=$n.slice(0,Wi);it!=="data"&&(qt.mainType=it,qt[Di.toLowerCase()]=ri,fi=!0)}}An.hasOwnProperty($n)&&(Hr[$n]=ri,fi=!0),fi||(Nr[$n]=ri)})}return{cptQuery:qt,dataQuery:Hr,otherQuery:Nr}},filter:function(Rt,qt,Hr){var Nr=this.eventInfo;if(!Nr)return!0;var Dr=Nr.targetEl,cn=Nr.packedEvent,An=Nr.model,ri=Nr.view;if(!An||!ri)return!0;var $n=qt.cptQuery,fi=qt.dataQuery;return _i($n,An,"mainType")&&_i($n,An,"subType")&&_i($n,An,"index","componentIndex")&&_i($n,An,"name")&&_i($n,An,"id")&&_i(fi,cn,"name")&&_i(fi,cn,"dataIndex")&&_i(fi,cn,"dataType")&&(!ri.filterForExposedEvent||ri.filterForExposedEvent(Rt,qt.otherQuery,Dr,cn));function _i(Di,Wi,it,Le){return Di[it]==null||Wi[Le||it]===Di[it]}},afterTrigger:function(){this.eventInfo=null}};var oe={},lt={},qe=[],ge=[],Ht=[],vr=[],At={},ir={},lr={},dn={},Ft=new Date-0,ur=new Date-0,Jt="_echarts_instance_";function pt(Rt){var qt=0,Hr=1,Nr=2,Dr="__connectUpdateStatus";function cn(An,ri){for(var $n=0;$n<An.length;$n++){var fi=An[$n];fi[Dr]=ri}}M(lt,function(An,ri){Rt._messageCenter.on(ri,function($n){if(dn[Rt.group]&&Rt[Dr]!==qt){if($n&&$n.escapeConnect)return;var fi=Rt.makeActionFromEvent($n),_i=[];M(lr,function(Di){Di!==Rt&&Di.group===Rt.group&&_i.push(Di)}),cn(_i,qt),M(_i,function(Di){Di[Dr]!==Hr&&Di.dispatchAction(fi)}),cn(_i,Nr)}})})}function at(Rt,qt,Hr){var Nr=xi(Rt);if(Nr)return Nr;var Dr=new he(Rt,qt,Hr);return Dr.id="ec_"+Ft++,lr[Dr.id]=Dr,A.setAttribute(Rt,Jt,Dr.id),pt(Dr),Dr}function Pr(Rt){if(v.isArray(Rt)){var qt=Rt;Rt=null,M(qt,function(Hr){Hr.group!=null&&(Rt=Hr.group)}),Rt=Rt||"g_"+ur++,M(qt,function(Hr){Hr.group=Rt})}return dn[Rt]=!0,Rt}function un(Rt){dn[Rt]=!1}var _n=un;function Xn(Rt){typeof Rt=="string"?Rt=lr[Rt]:Rt instanceof he||(Rt=xi(Rt)),Rt instanceof he&&!Rt.isDisposed()&&Rt.dispose()}function xi(Rt){return lr[A.getAttribute(Rt,Jt)]}function Pn(Rt){return lr[Rt]}function Un(Rt,qt){At[Rt]=qt}function $t(Rt){ge.push(Rt)}function xt(Rt,qt){Yt(qe,Rt,qt,z)}function De(Rt){Ht.push(Rt)}function ke(Rt,qt,Hr){typeof qt=="function"&&(Hr=qt,qt="");var Nr=P(Rt)?Rt.type:[Rt,Rt={event:qt}][0];Rt.event=(Rt.event||Nr).toLowerCase(),qt=Rt.event,k(Fe.test(Nr)&&Fe.test(qt)),oe[Nr]||(oe[Nr]={action:Hr,actionInfo:Rt}),lt[qt]=Nr}function Pe(Rt,qt){t.register(Rt,qt)}function tt(Rt){var qt=t.get(Rt);if(qt)return qt.getDimensionsInfo?qt.getDimensionsInfo():qt.dimensions.slice()}function yt(Rt,qt){Yt(vr,Rt,qt,te,"layout")}function Et(Rt,qt){Yt(vr,Rt,qt,re,"visual")}function Yt(Rt,qt,Hr,Nr,Dr){(j(qt)||P(qt))&&(Hr=qt,qt=Nr);var cn=T.wrapStageHandler(Hr,Dr);return cn.__prio=qt,cn.__raw=Hr,Rt.push(cn),cn}function Rr(Rt,qt){ir[Rt]=qt}function zr(Rt){return r.extend(Rt)}function hn(Rt){return c.extend(Rt)}function jt(Rt){return a.extend(Rt)}function vt(Rt){return h.extend(Rt)}function bt(Rt){v.$override("createCanvas",Rt)}function cr(Rt,qt,Hr){I.registerMap(Rt,qt,Hr)}function Qt(Rt){var qt=I.retrieveMap(Rt);return qt&&qt[0]&&{geoJson:qt[0].geoJSON,specialAreas:qt[0].specialAreas}}Et(se,E),$t(e),xt(Q,l),Rr("default",_),ke({type:"highlight",event:"highlight",update:"highlight"},v.noop),ke({type:"downplay",event:"downplay",update:"downplay"},v.noop),Un("light",w),Un("dark",O);var Mt={};D.version=F,D.dependencies=U,D.PRIORITY=Qe,D.init=at,D.connect=Pr,D.disConnect=un,D.disconnect=_n,D.dispose=Xn,D.getInstanceByDom=xi,D.getInstanceById=Pn,D.registerTheme=Un,D.registerPreprocessor=$t,D.registerProcessor=xt,D.registerPostUpdate=De,D.registerAction=ke,D.registerCoordinateSystem=Pe,D.getCoordinateSystemDimensions=tt,D.registerLayout=yt,D.registerVisual=Et,D.registerLoading=Rr,D.extendComponentModel=zr,D.extendComponentView=hn,D.extendSeriesModel=jt,D.extendChartView=vt,D.setCanvasCreator=bt,D.registerMap=cr,D.getMap=Qt,D.dataTool=Mt;var tr=n("txkQ");(function(){for(var Rt in tr)tr.hasOwnProperty(Rt)&&(D[Rt]=tr[Rt])})()},Pw59:function(R,D,n){"use strict";var y=n("q1tI"),f=n.n(y),x=Object(y.createContext)({});D.a=x},Q7if:function(R,D,n){var y=n("JEkh"),f=y.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});R.exports=f},Q9mQ:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("UADf"),v=n.n(x)},"QB+1":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("Ywus"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},QBsz:function(R,D){var n=typeof Float32Array=="undefined"?Array:Float32Array;function y(T,w){var O=new n(2);return T==null&&(T=0),w==null&&(w=0),O[0]=T,O[1]=w,O}function f(T,w){return T[0]=w[0],T[1]=w[1],T}function x(T){var w=new n(2);return w[0]=T[0],w[1]=T[1],w}function v(T,w,O){return T[0]=w,T[1]=O,T}function m(T,w,O){return T[0]=w[0]+O[0],T[1]=w[1]+O[1],T}function p(T,w,O,I){return T[0]=w[0]+O[0]*I,T[1]=w[1]+O[1]*I,T}function d(T,w,O){return T[0]=w[0]-O[0],T[1]=w[1]-O[1],T}function u(T){return Math.sqrt(i(T))}var s=u;function i(T){return T[0]*T[0]+T[1]*T[1]}var t=i;function o(T,w,O){return T[0]=w[0]*O[0],T[1]=w[1]*O[1],T}function e(T,w,O){return T[0]=w[0]/O[0],T[1]=w[1]/O[1],T}function l(T,w){return T[0]*w[0]+T[1]*w[1]}function r(T,w,O){return T[0]=w[0]*O,T[1]=w[1]*O,T}function a(T,w){var O=u(w);return O===0?(T[0]=0,T[1]=0):(T[0]=w[0]/O,T[1]=w[1]/O),T}function c(T,w){return Math.sqrt((T[0]-w[0])*(T[0]-w[0])+(T[1]-w[1])*(T[1]-w[1]))}var h=c;function g(T,w){return(T[0]-w[0])*(T[0]-w[0])+(T[1]-w[1])*(T[1]-w[1])}var A=g;function b(T,w){return T[0]=-w[0],T[1]=-w[1],T}function S(T,w,O,I){return T[0]=w[0]+I*(O[0]-w[0]),T[1]=w[1]+I*(O[1]-w[1]),T}function E(T,w,O){var I=w[0],k=w[1];return T[0]=O[0]*I+O[2]*k+O[4],T[1]=O[1]*I+O[3]*k+O[5],T}function C(T,w,O){return T[0]=Math.min(w[0],O[0]),T[1]=Math.min(w[1],O[1]),T}function _(T,w,O){return T[0]=Math.max(w[0],O[0]),T[1]=Math.max(w[1],O[1]),T}D.create=y,D.copy=f,D.clone=x,D.set=v,D.add=m,D.scaleAndAdd=p,D.sub=d,D.len=u,D.length=s,D.lenSquare=i,D.lengthSquare=t,D.mul=o,D.div=e,D.dot=l,D.scale=r,D.normalize=a,D.distance=c,D.dist=h,D.distanceSquare=g,D.distSquare=A,D.negate=b,D.lerp=S,D.applyTransform=E,D.min=C,D.max=_},"QO+J":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=x(n("NohK")),f=n("24YM");function x(m){return m&&m.__esModule?m:{default:m}}var v=function(p,d){var u=void 0,s=[],i=function(){getComputedStyle(p).position==="static"&&(p.style.position="relative");var a=document.createElement("object");return a.onload=function(){a.contentDocument.defaultView.addEventListener("resize",t),t()},a.style.display="block",a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.height="100%",a.style.width="100%",a.style.overflow="hidden",a.style.pointerEvents="none",a.style.zIndex="-1",a.style.opacity="0",a.setAttribute("class",f.SensorClassName),a.setAttribute("tabindex",f.SensorTabIndex),a.type="text/html",p.appendChild(a),a.data="about:blank",a},t=(0,y.default)(function(){s.forEach(function(r){r(p)})}),o=function(a){u||(u=i()),s.indexOf(a)===-1&&s.push(a)},e=function(){u&&u.parentNode&&(u.contentDocument&&u.contentDocument.defaultView.removeEventListener("resize",t),u.parentNode.removeChild(u),p.removeAttribute(f.SizeSensorId),u=void 0,s=[],d&&d())},l=function(a){var c=s.indexOf(a);c!==-1&&s.splice(c,1),s.length===0&&u&&e()};return{element:p,bind:o,destroy:e,unbind:l}};D.createSensor=v},"QQZ/":function(R,D,n){var y=n("Sq3C"),f=n("Z1HP"),x=n("Sxd8"),v=n("dt0z");function m(p,d,u){p=v(p),d=x(d);var s=d?f(p):0;return d&&s<d?y(d-s,u)+p:p}R.exports=m},QUw5:function(R,D,n){var y=n("OlYY"),f=y.extend({type:"dataZoom.select"});R.exports=f},QV2g:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=y;function y(){for(var v,m=[],p=0;p<256;p++){v=p;for(var d=0;d<8;d++)v=v&1?3988292384^v>>>1:v>>>1;m[p]=v}return m}var f=y();function x(v,m,p,d){var u=f,s=d+p;v^=-1;for(var i=d;i<s;i++)v=v>>>8^u[(v^m[i])&255];return v^-1}},QbM5:function(R,D,n){},Qe9p:function(R,D,n){var y=n("1RvN"),f={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function x(w){return w=Math.round(w),w<0?0:w>255?255:w}function v(w){return w=Math.round(w),w<0?0:w>360?360:w}function m(w){return w<0?0:w>1?1:w}function p(w){return w.length&&w.charAt(w.length-1)==="%"?x(parseFloat(w)/100*255):x(parseInt(w,10))}function d(w){return w.length&&w.charAt(w.length-1)==="%"?m(parseFloat(w)/100):m(parseFloat(w))}function u(w,O,I){return I<0?I+=1:I>1&&(I-=1),I*6<1?w+(O-w)*I*6:I*2<1?O:I*3<2?w+(O-w)*(2/3-I)*6:w}function s(w,O,I){return w+(O-w)*I}function i(w,O,I,k,M){return w[0]=O,w[1]=I,w[2]=k,w[3]=M,w}function t(w,O){return w[0]=O[0],w[1]=O[1],w[2]=O[2],w[3]=O[3],w}var o=new y(20),e=null;function l(w,O){e&&t(e,O),e=o.put(w,e||O.slice())}function r(w,O){if(!w)return;O=O||[];var I=o.get(w);if(I)return t(O,I);w=w+"";var k=w.replace(/ /g,"").toLowerCase();if(k in f)return t(O,f[k]),l(w,O),O;if(k.charAt(0)==="#"){if(k.length===4){var M=parseInt(k.substr(1),16);if(!(M>=0&&M<=4095)){i(O,0,0,0,1);return}return i(O,(M&3840)>>4|(M&3840)>>8,M&240|(M&240)>>4,M&15|(M&15)<<4,1),l(w,O),O}else if(k.length===7){var M=parseInt(k.substr(1),16);if(!(M>=0&&M<=16777215)){i(O,0,0,0,1);return}return i(O,(M&16711680)>>16,(M&65280)>>8,M&255,1),l(w,O),O}return}var j=k.indexOf("("),P=k.indexOf(")");if(j!==-1&&P+1===k.length){var X=k.substr(0,j),F=k.substr(j+1,P-(j+1)).split(","),U=1;switch(X){case"rgba":if(F.length!==4){i(O,0,0,0,1);return}U=d(F.pop());case"rgb":if(F.length!==3){i(O,0,0,0,1);return}return i(O,p(F[0]),p(F[1]),p(F[2]),U),l(w,O),O;case"hsla":if(F.length!==4){i(O,0,0,0,1);return}return F[3]=d(F[3]),a(F,O),l(w,O),O;case"hsl":if(F.length!==3){i(O,0,0,0,1);return}return a(F,O),l(w,O),O;default:return}}i(O,0,0,0,1);return}function a(w,O){var I=(parseFloat(w[0])%360+360)%360/360,k=d(w[1]),M=d(w[2]),j=M<=.5?M*(k+1):M+k-M*k,P=M*2-j;return O=O||[],i(O,x(u(P,j,I+1/3)*255),x(u(P,j,I)*255),x(u(P,j,I-1/3)*255),1),w.length===4&&(O[3]=w[3]),O}function c(w){if(!w)return;var O=w[0]/255,I=w[1]/255,k=w[2]/255,M=Math.min(O,I,k),j=Math.max(O,I,k),P=j-M,X=(j+M)/2,F,U;if(P===0)F=0,U=0;else{X<.5?U=P/(j+M):U=P/(2-j-M);var K=((j-O)/6+P/2)/P,z=((j-I)/6+P/2)/P,V=((j-k)/6+P/2)/P;O===j?F=V-z:I===j?F=1/3+K-V:k===j&&(F=2/3+z-K),F<0&&(F+=1),F>1&&(F-=1)}var Q=[F*360,U,X];return w[3]!=null&&Q.push(w[3]),Q}function h(w,O){var I=r(w);if(I){for(var k=0;k<3;k++)O<0?I[k]=I[k]*(1-O)|0:I[k]=(255-I[k])*O+I[k]|0,I[k]>255?I[k]=255:w[k]<0&&(I[k]=0);return T(I,I.length===4?"rgba":"rgb")}}function g(w){var O=r(w);if(O)return((1<<24)+(O[0]<<16)+(O[1]<<8)+ +O[2]).toString(16).slice(1)}function A(w,O,I){if(!(O&&O.length)||!(w>=0&&w<=1))return;I=I||[];var k=w*(O.length-1),M=Math.floor(k),j=Math.ceil(k),P=O[M],X=O[j],F=k-M;return I[0]=x(s(P[0],X[0],F)),I[1]=x(s(P[1],X[1],F)),I[2]=x(s(P[2],X[2],F)),I[3]=m(s(P[3],X[3],F)),I}var b=A;function S(w,O,I){if(!(O&&O.length)||!(w>=0&&w<=1))return;var k=w*(O.length-1),M=Math.floor(k),j=Math.ceil(k),P=r(O[M]),X=r(O[j]),F=k-M,U=T([x(s(P[0],X[0],F)),x(s(P[1],X[1],F)),x(s(P[2],X[2],F)),m(s(P[3],X[3],F))],"rgba");return I?{color:U,leftIndex:M,rightIndex:j,value:k}:U}var E=S;function C(w,O,I,k){if(w=r(w),w)return w=c(w),O!=null&&(w[0]=v(O)),I!=null&&(w[1]=d(I)),k!=null&&(w[2]=d(k)),T(a(w),"rgba")}function _(w,O){if(w=r(w),w&&O!=null)return w[3]=m(O),T(w,"rgba")}function T(w,O){if(!w||!w.length)return;var I=w[0]+","+w[1]+","+w[2];return(O==="rgba"||O==="hsva"||O==="hsla")&&(I+=","+w[3]),O+"("+I+")"}D.parse=r,D.lift=h,D.toHex=g,D.fastLerp=A,D.fastMapToColor=b,D.lerp=S,D.mapToColor=E,D.modifyHSL=C,D.modifyAlpha=_,D.stringify=T},Qi1f:function(R,D,n){"use strict";n.d(D,"g",function(){return T}),n.d(D,"c",function(){return w}),n.d(D,"a",function(){return I}),n.d(D,"b",function(){return k}),n.d(D,"d",function(){return M}),n.d(D,"e",function(){return j}),n.d(D,"f",function(){return X});var y=n("VTBJ"),f=n("U8pU"),x=n("AJpP"),v=n("q1tI"),m=n.n(v),p=n("Kwbf"),d=n("MNnm"),u=n("l4aY"),s="data-rc-order",i="data-rc-priority",t="rc-util-key",o=new Map;function e(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},U=F.mark;return U?U.startsWith("data-")?U:"data-".concat(U):t}function l(F){if(F.attachTo)return F.attachTo;var U=document.querySelector("head");return U||document.body}function r(F){return F==="queue"?"prependQueue":F?"prepend":"append"}function a(F){return Array.from((o.get(F)||F).children).filter(function(U){return U.tagName==="STYLE"})}function c(F){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(d.a)())return null;var K=U.csp,z=U.prepend,V=U.priority,Q=V===void 0?0:V,G=r(z),te=G==="prependQueue",q=document.createElement("style");q.setAttribute(s,G),te&&Q&&q.setAttribute(i,"".concat(Q)),K!=null&&K.nonce&&(q.nonce=K==null?void 0:K.nonce),q.innerHTML=F;var se=l(U),re=se.firstChild;if(z){if(te){var xe=a(se).filter(function(Oe){if(!["prepend","prependQueue"].includes(Oe.getAttribute(s)))return!1;var Me=Number(Oe.getAttribute(i)||0);return Q>=Me});if(xe.length)return se.insertBefore(q,xe[xe.length-1].nextSibling),q}se.insertBefore(q,re)}else se.appendChild(q);return q}function h(F){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=l(U);return a(K).find(function(z){return z.getAttribute(e(U))===F})}function g(F){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=h(F,U);if(K){var z=l(U);z.removeChild(K)}}function A(F,U){var K=o.get(F);if(!K||!Object(u.a)(document,K)){var z=c("",U),V=z.parentNode;o.set(F,V),F.removeChild(z)}}function b(){o.clear()}function S(F,U){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=l(K);A(z,K);var V=h(U,K);if(V){var Q,G;if((Q=K.csp)!==null&&Q!==void 0&&Q.nonce&&V.nonce!==((G=K.csp)===null||G===void 0?void 0:G.nonce)){var te;V.nonce=(te=K.csp)===null||te===void 0?void 0:te.nonce}return V.innerHTML!==F&&(V.innerHTML=F),V}var q=c(F,K);return q.setAttribute(e(K),U),q}var E=n("Pw59"),C=n("u6S6"),_=n.n(C);function T(F,U){Object(p.a)(F,"[@ant-design/icons] ".concat(U))}function w(F){return Object(f.a)(F)==="object"&&typeof F.name=="string"&&typeof F.theme=="string"&&(Object(f.a)(F.icon)==="object"||typeof F.icon=="function")}function O(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(F).reduce(function(U,K){var z=F[K];switch(K){case"class":U.className=z,delete U.class;break;default:delete U[K],U[_()(K)]=z}return U},{})}function I(F,U,K){return K?m.a.createElement(F.tag,Object(y.a)(Object(y.a)({key:U},O(F.attrs)),K),(F.children||[]).map(function(z,V){return I(z,"".concat(U,"-").concat(F.tag,"-").concat(V))})):m.a.createElement(F.tag,Object(y.a)({key:U},O(F.attrs)),(F.children||[]).map(function(z,V){return I(z,"".concat(U,"-").concat(F.tag,"-").concat(V))}))}function k(F){return Object(x.generate)(F)[0]}function M(F){return F?Array.isArray(F)?F:[F]:[]}var j={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},P=`
|
|
|
.anticon {
|
|
|
display: inline-block;
|
|
|
color: inherit;
|
|
|
font-style: normal;
|
|
|
line-height: 0;
|
|
|
text-align: center;
|
|
|
text-transform: none;
|
|
|
vertical-align: -0.125em;
|
|
|
text-rendering: optimizeLegibility;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
}
|
|
|
|
|
|
.anticon > * {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.anticon svg {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.anticon::before {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
.anticon .anticon-icon {
|
|
|
display: block;
|
|
|
}
|
|
|
|
|
|
.anticon[tabindex] {
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
|
|
|
.anticon-spin::before,
|
|
|
.anticon-spin {
|
|
|
display: inline-block;
|
|
|
-webkit-animation: loadingCircle 1s infinite linear;
|
|
|
animation: loadingCircle 1s infinite linear;
|
|
|
}
|
|
|
|
|
|
@-webkit-keyframes loadingCircle {
|
|
|
100% {
|
|
|
-webkit-transform: rotate(360deg);
|
|
|
transform: rotate(360deg);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes loadingCircle {
|
|
|
100% {
|
|
|
-webkit-transform: rotate(360deg);
|
|
|
transform: rotate(360deg);
|
|
|
}
|
|
|
}
|
|
|
`,X=function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P,K=Object(v.useContext)(E.a),z=K.csp;Object(v.useEffect)(function(){S(U,"@ant-design-icons",{prepend:!0,csp:z})},[])}},QkVE:function(R,D,n){var y=n("EpBk");function f(x,v){var m=x.__data__;return y(v)?m[typeof v=="string"?"string":"hash"]:m.map}R.exports=f},QoRX:function(R,D){function n(y,f){for(var x=-1,v=y==null?0:y.length;++x<v;)if(f(y[x],x,y))return!0;return!1}R.exports=n},QqLw:function(R,D,n){var y=n("tadb"),f=n("ebwN"),x=n("HOxn"),v=n("yGk4"),m=n("Of+w"),p=n("NykK"),d=n("3Fdi"),u="[object Map]",s="[object Object]",i="[object Promise]",t="[object Set]",o="[object WeakMap]",e="[object DataView]",l=d(y),r=d(f),a=d(x),c=d(v),h=d(m),g=p;(y&&g(new y(new ArrayBuffer(1)))!=e||f&&g(new f)!=u||x&&g(x.resolve())!=i||v&&g(new v)!=t||m&&g(new m)!=o)&&(g=function(A){var b=p(A),S=b==s?A.constructor:void 0,E=S?d(S):"";if(E)switch(E){case l:return e;case r:return u;case a:return i;case c:return t;case h:return o}return b}),R.exports=g},Qs3X:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("X+im"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},Qs9O:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};D.default=y},QuXc:function(R,D){var n=function(x){this.colorStops=x||[]};n.prototype={constructor:n,addColorStop:function(x,v){this.colorStops.push({offset:x,color:v})}};var y=n;R.exports=y},Qvb6:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("ItGF"),v=n("B9fm"),m=n("gvm7"),p=n("7aKB"),d=n("OELB"),u=n("IwbS"),s=n("Ez2D"),i=n("+TT/"),t=n("Qxkt"),o=n("F9bG"),e=n("aX7z"),l=n("/y7N"),r=n("4NO4"),a=r.getTooltipRenderMode,c=f.bind,h=f.each,g=d.parsePercent,A=new u.Rect({shape:{x:-1,y:-1,width:2,height:2}}),b=y.extendComponentView({type:"tooltip",init:function(O,I){if(x.node)return;var k=O.getComponent("tooltip"),M=k.get("renderMode");this._renderMode=a(M);var j;this._renderMode==="html"?(j=new v(I.getDom(),I,{appendToBody:k.get("appendToBody",!0)}),this._newLine="<br/>"):(j=new m(I),this._newLine=`
|
|
|
`),this._tooltipContent=j},render:function(O,I,k){if(x.node)return;this.group.removeAll(),this._tooltipModel=O,this._ecModel=I,this._api=k,this._lastDataByCoordSys=null,this._alwaysShowContent=O.get("alwaysShowContent");var M=this._tooltipContent;M.update(),M.setEnterable(O.get("enterable")),this._initGlobalListener(),this._keepShow()},_initGlobalListener:function(){var O=this._tooltipModel,I=O.get("triggerOn");o.register("itemTooltip",this._api,c(function(k,M,j){I!=="none"&&(I.indexOf(k)>=0?this._tryShow(M,j):k==="leave"&&this._hide(j))},this))},_keepShow:function(){var O=this._tooltipModel,I=this._ecModel,k=this._api;if(this._lastX!=null&&this._lastY!=null&&O.get("triggerOn")!=="none"){var M=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!k.isDisposed()&&M.manuallyShowTip(O,I,k,{x:M._lastX,y:M._lastY})})}},manuallyShowTip:function(O,I,k,M){if(M.from===this.uid||x.node)return;var j=E(M,k);this._ticket="";var P=M.dataByCoordSys;if(M.tooltip&&M.x!=null&&M.y!=null){var X=A;X.position=[M.x,M.y],X.update(),X.tooltip=M.tooltip,this._tryShow({offsetX:M.x,offsetY:M.y,target:X},j)}else if(P)this._tryShow({offsetX:M.x,offsetY:M.y,position:M.position,dataByCoordSys:M.dataByCoordSys,tooltipOption:M.tooltipOption},j);else if(M.seriesIndex!=null){if(this._manuallyAxisShowTip(O,I,k,M))return;var F=s(M,I),U=F.point[0],K=F.point[1];U!=null&&K!=null&&this._tryShow({offsetX:U,offsetY:K,position:M.position,target:F.el},j)}else M.x!=null&&M.y!=null&&(k.dispatchAction({type:"updateAxisPointer",x:M.x,y:M.y}),this._tryShow({offsetX:M.x,offsetY:M.y,position:M.position,target:k.getZr().findHover(M.x,M.y).target},j))},manuallyHideTip:function(O,I,k,M){var j=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&j.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,M.from!==this.uid&&this._hide(E(M,k))},_manuallyAxisShowTip:function(O,I,k,M){var j=M.seriesIndex,P=M.dataIndex,X=I.getComponent("axisPointer").coordSysAxesInfo;if(j==null||P==null||X==null)return;var F=I.getSeriesByIndex(j);if(!F)return;var U=F.getData(),O=S([U.getItemModel(P),F,(F.coordinateSystem||{}).model,O]);return O.get("trigger")!=="axis"?void 0:(k.dispatchAction({type:"updateAxisPointer",seriesIndex:j,dataIndex:P,position:M.position}),!0)},_tryShow:function(O,I){var k=O.target,M=this._tooltipModel;if(!M)return;this._lastX=O.offsetX,this._lastY=O.offsetY;var j=O.dataByCoordSys;j&&j.length?this._showAxisTooltip(j,O):k&&k.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(O,k,I)):k&&k.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(O,k,I)):(this._lastDataByCoordSys=null,this._hide(I))},_showOrMove:function(O,I){var k=O.get("showDelay");I=f.bind(I,this),clearTimeout(this._showTimout),k>0?this._showTimout=setTimeout(I,k):I()},_showAxisTooltip:function(O,I){var k=this._ecModel,M=this._tooltipModel,j=[I.offsetX,I.offsetY],P=[],X=[],F=S([I.tooltipOption,M]),U=this._renderMode,K=this._newLine,z={};h(O,function(Q){h(Q.dataByAxis,function(G){var te=k.getComponent(G.axisDim+"Axis",G.axisIndex),q=G.value,se=[];if(!te||q==null)return;var re=l.getValueLabel(q,te.axis,k,G.seriesDataIndices,G.valueLabelOpt);f.each(G.seriesDataIndices,function(Oe){var Me=k.getSeriesByIndex(Oe.seriesIndex),Qe=Oe.dataIndexInside,Ve=Me&&Me.getDataParams(Qe);if(Ve.axisDim=G.axisDim,Ve.axisIndex=G.axisIndex,Ve.axisType=G.axisType,Ve.axisId=G.axisId,Ve.axisValue=e.getAxisRawValue(te.axis,q),Ve.axisValueLabel=re,Ve){X.push(Ve);var ut=Me.formatTooltip(Qe,!0,null,U),Fe;if(f.isObject(ut)){Fe=ut.html;var ue=ut.markers;f.merge(z,ue)}else Fe=ut;se.push(Fe)}});var xe=re;U!=="html"?P.push(se.join(K)):P.push((xe?p.encodeHTML(xe)+K:"")+se.join(K))})},this),P.reverse(),P=P.join(this._newLine+this._newLine);var V=I.position;this._showOrMove(F,function(){this._updateContentNotChangedOnAxis(O)?this._updatePosition(F,V,j[0],j[1],this._tooltipContent,X):this._showTooltipContent(F,P,X,Math.random(),j[0],j[1],V,void 0,z)})},_showSeriesItemTooltip:function(O,I,k){var M=this._ecModel,j=I.seriesIndex,P=M.getSeriesByIndex(j),X=I.dataModel||P,F=I.dataIndex,U=I.dataType,K=X.getData(U),z=S([K.getItemModel(F),X,P&&(P.coordinateSystem||{}).model,this._tooltipModel]),V=z.get("trigger");if(V!=null&&V!=="item")return;var Q=X.getDataParams(F,U),G=X.formatTooltip(F,!1,U,this._renderMode),te,q;f.isObject(G)?(te=G.html,q=G.markers):(te=G,q=null);var se="item_"+X.name+"_"+F;this._showOrMove(z,function(){this._showTooltipContent(z,te,Q,se,O.offsetX,O.offsetY,O.position,O.target,q)}),k({type:"showTip",dataIndexInside:F,dataIndex:K.getRawIndex(F),seriesIndex:j,from:this.uid})},_showComponentItemTooltip:function(O,I,k){var M=I.tooltip;if(typeof M=="string"){var j=M;M={content:j,formatter:j}}var P=new t(M,this._tooltipModel,this._ecModel),X=P.get("content"),F=Math.random();this._showOrMove(P,function(){this._showTooltipContent(P,X,P.get("formatterParams")||{},F,O.offsetX,O.offsetY,O.position,I)}),k({type:"showTip",from:this.uid})},_showTooltipContent:function(O,I,k,M,j,P,X,F,U){if(this._ticket="",!O.get("showContent")||!O.get("show"))return;var K=this._tooltipContent,z=O.get("formatter");X=X||O.get("position");var V=I;if(z&&typeof z=="string")V=p.formatTpl(z,k,!0);else if(typeof z=="function"){var Q=c(function(G,te){G===this._ticket&&(K.setContent(te,U,O),this._updatePosition(O,X,j,P,K,k,F))},this);this._ticket=M,V=z(k,M,Q)}K.setContent(V,U,O),K.show(O),this._updatePosition(O,X,j,P,K,k,F)},_updatePosition:function(O,I,k,M,j,P,X){var F=this._api.getWidth(),U=this._api.getHeight();I=I||O.get("position");var K=j.getSize(),z=O.get("align"),V=O.get("verticalAlign"),Q=X&&X.getBoundingRect().clone();if(X&&Q.applyTransform(X.transform),typeof I=="function"&&(I=I([k,M],P,j.el,Q,{viewSize:[F,U],contentSize:K.slice()})),f.isArray(I))k=g(I[0],F),M=g(I[1],U);else if(f.isObject(I)){I.width=K[0],I.height=K[1];var G=i.getLayoutRect(I,{width:F,height:U});k=G.x,M=G.y,z=null,V=null}else if(typeof I=="string"&&X){var te=T(I,Q,K);k=te[0],M=te[1]}else{var te=C(k,M,j,F,U,z?null:20,V?null:20);k=te[0],M=te[1]}if(z&&(k-=w(z)?K[0]/2:z==="right"?K[0]:0),V&&(M-=w(V)?K[1]/2:V==="bottom"?K[1]:0),O.get("confine")){var te=_(k,M,j,F,U);k=te[0],M=te[1]}j.moveTo(k,M)},_updateContentNotChangedOnAxis:function(O){var I=this._lastDataByCoordSys,k=!!I&&I.length===O.length;return k&&h(I,function(M,j){var P=M.dataByAxis||{},X=O[j]||{},F=X.dataByAxis||[];k&=P.length===F.length,k&&h(P,function(U,K){var z=F[K]||{},V=U.seriesDataIndices||[],Q=z.seriesDataIndices||[];k&=U.value===z.value&&U.axisType===z.axisType&&U.axisId===z.axisId&&V.length===Q.length,k&&h(V,function(G,te){var q=Q[te];k&=G.seriesIndex===q.seriesIndex&&G.dataIndex===q.dataIndex})})}),this._lastDataByCoordSys=O,!!k},_hide:function(O){this._lastDataByCoordSys=null,O({type:"hideTip",from:this.uid})},dispose:function(O,I){if(x.node)return;this._tooltipContent.dispose(),o.unregister("itemTooltip",I)}});function S(O){for(var I=O.pop();O.length;){var k=O.pop();k&&(t.isInstance(k)&&(k=k.get("tooltip",!0)),typeof k=="string"&&(k={formatter:k}),I=new t(k,I,I.ecModel))}return I}function E(O,I){return O.dispatchAction||f.bind(I.dispatchAction,I)}function C(O,I,k,M,j,P,X){var F=k.getOuterSize(),U=F.width,K=F.height;return P!=null&&(O+U+P>M?O-=U+P:O+=P),X!=null&&(I+K+X>j?I-=K+X:I+=X),[O,I]}function _(O,I,k,M,j){var P=k.getOuterSize(),X=P.width,F=P.height;return O=Math.min(O+X,M)-X,I=Math.min(I+F,j)-F,O=Math.max(O,0),I=Math.max(I,0),[O,I]}function T(O,I,k){var M=k[0],j=k[1],P=5,X=0,F=0,U=I.width,K=I.height;switch(O){case"inside":X=I.x+U/2-M/2,F=I.y+K/2-j/2;break;case"top":X=I.x+U/2-M/2,F=I.y-j-P;break;case"bottom":X=I.x+U/2-M/2,F=I.y+K+P;break;case"left":X=I.x-M-P,F=I.y+K/2-j/2;break;case"right":X=I.x+U+P,F=I.y+K/2-j/2}return[X,F]}function w(O){return O==="center"||O==="middle"}R.exports=b},Qxkt:function(R,D,n){var y=n("bYtY"),f=n("ItGF"),x=n("4NO4"),v=x.makeInner,m=n("Yl7c"),p=m.enableClassExtend,d=m.enableClassCheck,u=n("OQFs"),s=n("m9t5"),i=n("/iHx"),t=n("VR9l"),o=y.mixin,e=v();function l(h,g,A){this.parentModel=g,this.ecModel=A,this.option=h}l.prototype={constructor:l,init:null,mergeOption:function(h){y.merge(this.option,h,!0)},get:function(h,g){return h==null?this.option:r(this.option,this.parsePath(h),!g&&a(this,h))},getShallow:function(h,g){var A=this.option,b=A==null?A:A[h],S=!g&&a(this,h);return b==null&&S&&(b=S.getShallow(h)),b},getModel:function(h,g){var A=h==null?this.option:r(this.option,h=this.parsePath(h)),b;return g=g||(b=a(this,h))&&b.getModel(h),new l(A,g,this.ecModel)},isEmpty:function(){return this.option==null},restoreData:function(){},clone:function(){var h=this.constructor;return new h(y.clone(this.option))},setReadOnly:function(h){},parsePath:function(h){return typeof h=="string"&&(h=h.split(".")),h},customizeGetParent:function(h){e(this).getParent=h},isAnimationEnabled:function(){if(!f.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}};function r(h,g,A){for(var b=0;b<g.length;b++){if(!g[b])continue;if(h=h&&typeof h=="object"?h[g[b]]:null,h==null)break}return h==null&&A&&(h=A.get(g)),h}function a(h,g){var A=e(h).getParent;return A?A.call(h,g):h.parentModel}p(l),d(l),o(l,u),o(l,s),o(l,i),o(l,t);var c=l;R.exports=c},QyFq:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};D.default=y},QzjZ:function(R,D,n){var y=n("S/Yl"),f=n("IDmD");function x(v,m){var p=[];return v.eachComponent("singleAxis",function(d,u){var s=new y(d,v,m);s.name="single_"+u,s.resize(d,m),d.coordinateSystem=s,p.push(s)}),v.eachSeries(function(d){if(d.get("coordinateSystem")==="singleAxis"){var u=v.queryComponents({mainType:"singleAxis",index:d.get("singleAxisIndex"),id:d.get("singleAxisId")})[0];d.coordinateSystem=u&&u.coordinateSystem}}),p}f.register("single",{create:x,dimensions:y.prototype.dimensions})},R4Th:function(R,D,n){var y=n("ProS"),f=n("9wZj"),x=n("yO87"),v=n("Fofx"),m=n("h8O9"),p=y.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new f(x)},render:function(d,u,s){var i=d.getData(),t=this._symbolDraw;t.updateData(i),this.group.add(t.group)},updateTransform:function(d,u,s){var i=d.getData();this.group.dirty();var t=m().reset(d);t.progress&&t.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateGroupTransform:function(d){var u=d.coordinateSystem;u&&u.getRoamTransform&&(this.group.transform=v.clone(u.getRoamTransform()),this.group.decomposeTransform())},remove:function(d,u){this._symbolDraw&&this._symbolDraw.remove(u)},dispose:function(){}});R.exports=p},R9oj:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("pwpV"),v=n.n(x)},RBEP:function(R,D,n){for(var y=n("ProS"),f=n("VaxA"),x=function(){},v=["treemapZoomToNode","treemapRender","treemapMove"],m=0;m<v.length;m++)y.registerAction({type:v[m],update:"updateView"},x);y.registerAction({type:"treemapRootToNode",update:"updateView"},function(p,d){d.eachComponent({mainType:"series",subType:"treemap",query:p},u);function u(s,i){var t=["treemapZoomToNode","treemapRootToNode"],o=f.retrieveTargetInfo(p,t,s);if(o){var e=s.getViewRoot();e&&(p.direction=f.aboveViewRoot(e,o.node)?"rollUp":"drillDown"),s.resetViewRoot(o.node)}}})},RCxd:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="ExclamationCircleOutlined";var d=D.a=f.forwardRef(p)},RDYZ:function(R,D,n){var y=n("dMvE");function f(v){this._target=v.target,this._life=v.life||1e3,this._delay=v.delay||0,this._initialized=!1,this.loop=v.loop==null?!1:v.loop,this.gap=v.gap||0,this.easing=v.easing||"Linear",this.onframe=v.onframe,this.ondestroy=v.ondestroy,this.onrestart=v.onrestart,this._pausedTime=0,this._paused=!1}f.prototype={constructor:f,step:function(m,p){if(this._initialized||(this._startTime=m+this._delay,this._initialized=!0),this._paused){this._pausedTime+=p;return}var d=(m-this._startTime-this._pausedTime)/this._life;if(d<0)return;d=Math.min(d,1);var u=this.easing,s=typeof u=="string"?y[u]:u,i=typeof s=="function"?s(d):d;return this.fire("frame",i),d===1?this.loop?(this.restart(m),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(m){var p=(m-this._startTime-this._pausedTime)%this._life;this._startTime=m-p+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(m,p){m="on"+m,this[m]&&this[m](this._target,p)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var x=f;R.exports=x},RELg:function(R,D,n){var y=n("MFOe"),f=y.Global;R.exports={name:"oldIE-userDataStorage",write:d,read:u,each:s,remove:i,clearAll:t};var x="storejs",v=f.document,m=l(),p=(f.navigator?f.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function d(r,a){if(p)return;var c=e(r);m(function(h){h.setAttribute(c,a),h.save(x)})}function u(r){if(p)return;var a=e(r),c=null;return m(function(h){c=h.getAttribute(a)}),c}function s(r){m(function(a){for(var c=a.XMLDocument.documentElement.attributes,h=c.length-1;h>=0;h--){var g=c[h];r(a.getAttribute(g.name),g.name)}})}function i(r){var a=e(r);m(function(c){c.removeAttribute(a),c.save(x)})}function t(){m(function(r){var a=r.XMLDocument.documentElement.attributes;r.load(x);for(var c=a.length-1;c>=0;c--)r.removeAttribute(a[c].name);r.save(x)})}var o=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function e(r){return r.replace(/^\d/,"___$&").replace(o,"___")}function l(){if(!v||!v.documentElement||!v.documentElement.addBehavior)return null;var r="script",a,c,h;try{c=new ActiveXObject("htmlfile"),c.open(),c.write("<"+r+">document.w=window</"+r+'><iframe src="/favicon.ico"></iframe>'),c.close(),a=c.w.frames[0].document,h=a.createElement("div")}catch(g){h=v.createElement("div"),a=v.body}return function(g){var A=[].slice.call(arguments,0);A.unshift(h),a.appendChild(h),h.addBehavior("#default#userData"),h.load(x),g.apply(this,A),a.removeChild(h);return}}},RPvy:function(R,D,n){var y=n("ProS"),f=n("VaxA"),x="sunburstRootToNode";y.registerAction({type:x,update:"updateView"},function(p,d){d.eachComponent({mainType:"series",subType:"sunburst",query:p},u);function u(s,i){var t=f.retrieveTargetInfo(p,[x],s);if(t){var o=s.getViewRoot();o&&(p.direction=f.aboveViewRoot(o,t.node)?"rollUp":"drillDown"),s.resetViewRoot(t.node)}}});var v="sunburstHighlight";y.registerAction({type:v,update:"updateView"},function(p,d){d.eachComponent({mainType:"series",subType:"sunburst",query:p},u);function u(s,i){var t=f.retrieveTargetInfo(p,[v],s);t&&(p.highlight=t.node)}});var m="sunburstUnhighlight";y.registerAction({type:m,update:"updateView"},function(p,d){d.eachComponent({mainType:"series",subType:"sunburst",query:p},u);function u(s,i){p.unhighlight=!0}})},RSch:function(R,D,n){var y=n("IwbS"),f=n("bYtY");function x(p,d,u){y.Group.call(this),this._createPolyline(p,d,u)}var v=x.prototype;v._createPolyline=function(p,d,u){var s=p.getItemLayout(d),i=new y.Polyline({shape:{points:s}});this.add(i),this._updateCommonStl(p,d,u)},v.updateData=function(p,d,u){var s=p.hostModel,i=this.childAt(0),t={shape:{points:p.getItemLayout(d)}};y.updateProps(i,t,s,d),this._updateCommonStl(p,d,u)},v._updateCommonStl=function(p,d,u){var s=this.childAt(0),i=p.getItemModel(d),t=p.getItemVisual(d,"color"),o=u&&u.lineStyle,e=u&&u.hoverLineStyle;(!u||p.hasItemOption)&&(o=i.getModel("lineStyle").getLineStyle(),e=i.getModel("emphasis.lineStyle").getLineStyle()),s.useStyle(f.defaults({strokeNoScale:!0,fill:"none",stroke:t},o)),s.hoverStyle=e,y.setHoverStyle(this)},v.updateLayout=function(p,d){var u=this.childAt(0);u.setShape("points",p.getItemLayout(d))},f.inherits(x,y.Group);var m=x;R.exports=m},RXMa:function(R,D,n){var y=n("y+Vt"),f=y.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(v,m){var p=m.cx,d=m.cy,u=Math.PI*2;v.moveTo(p+m.r,d),v.arc(p,d,m.r,0,u,!1),v.moveTo(p+m.r0,d),v.arc(p,d,m.r0,0,u,!0)}});R.exports=f},RZPm:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("JgUQ")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="FileOutlined";var i=v.forwardRef(s);D.default=i},RlCK:function(R,D,n){var y=n("ProS"),f=n("bYtY");function x(v,m,p){var d={},u=v==="toggleSelected",s;return p.eachComponent("legend",function(i){u&&s!=null?i[s?"select":"unSelect"](m.name):v==="allSelect"||v==="inverseSelect"?i[v]():(i[v](m.name),s=i.isSelected(m.name));var t=i.getData();f.each(t,function(o){var e=o.get("name");if(e===`
|
|
|
`||e==="")return;var l=i.isSelected(e);d.hasOwnProperty(e)?d[e]=d[e]&&l:d[e]=l})}),v==="allSelect"||v==="inverseSelect"?{selected:d}:{name:m.name,selected:d}}y.registerAction("legendToggleSelect","legendselectchanged",f.curry(x,"toggleSelected")),y.registerAction("legendAllSelect","legendselectall",f.curry(x,"allSelect")),y.registerAction("legendInverseSelect","legendinverseselect",f.curry(x,"inverseSelect")),y.registerAction("legendSelect","legendselected",f.curry(x,"select")),y.registerAction("legendUnSelect","legendunselected",f.curry(x,"unSelect"))},RotF:function(R,D,n){R.exports=n("LSTS")},Rx6q:function(R,D){function n(y){var f=y.getRect(),x=y.getRangeInfo();return{coordSys:{type:"calendar",x:f.x,y:f.y,width:f.width,height:f.height,cellWidth:y.getCellWidth(),cellHeight:y.getCellHeight(),rangeInfo:{start:x.start,end:x.end,weeks:x.weeks,dayCount:x.allDay}},api:{coord:function(v,m){return y.dataToPoint(v,m)}}}}R.exports=n},"S/Yl":function(R,D,n){var y=n("Zvw2"),f=n("aX7z"),x=n("+TT/"),v=x.getLayoutRect,m=n("bYtY"),p=m.each;function d(s,i,t){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(s,i,t),this.model=s}d.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:d,_init:function(s,i,t){var o=this.dimension,e=new y(o,f.createScaleByModel(s),[0,0],s.get("type"),s.get("position")),l=e.type==="category";e.onBand=l&&s.get("boundaryGap"),e.inverse=s.get("inverse"),e.orient=s.get("orient"),s.axis=e,e.model=s,e.coordinateSystem=this,this._axis=e},update:function(s,i){s.eachSeries(function(t){if(t.coordinateSystem===this){var o=t.getData();p(o.mapDimension(this.dimension,!0),function(e){this._axis.scale.unionExtentFromData(o,e)},this),f.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(s,i){this._rect=v({left:s.get("left"),top:s.get("top"),right:s.get("right"),bottom:s.get("bottom"),width:s.get("width"),height:s.get("height")},{width:i.getWidth(),height:i.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var s=this._rect,i=this._axis,t=i.isHorizontal(),o=t?[0,s.width]:[0,s.height],e=i.reverse?1:0;i.setExtent(o[e],o[1-e]),this._updateAxisTransform(i,t?s.x:s.y)},_updateAxisTransform:function(s,i){var t=s.getExtent(),o=t[0]+t[1],e=s.isHorizontal();s.toGlobalCoord=e?function(l){return l+i}:function(l){return o-l+i},s.toLocalCoord=e?function(l){return l-i}:function(l){return o-l+i}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(s){var i=this.getRect(),t=this.getAxis(),o=t.orient;return o==="horizontal"?t.contain(t.toLocalCoord(s[0]))&&s[1]>=i.y&&s[1]<=i.y+i.height:t.contain(t.toLocalCoord(s[1]))&&s[0]>=i.y&&s[0]<=i.y+i.height},pointToData:function(s){var i=this.getAxis();return[i.coordToData(i.toLocalCoord(s[i.orient==="horizontal"?0:1]))]},dataToPoint:function(s){var i=this.getAxis(),t=this.getRect(),o=[],e=i.orient==="horizontal"?0:1;return s instanceof Array&&(s=s[0]),o[e]=i.toGlobalCoord(i.dataToCoord(+s)),o[1-e]=e===0?t.y+t.height/2:t.x+t.width/2,o}};var u=d;R.exports=u},S6kV:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("OLod"))})(this,function(y){return y.mode.OFB=function(){var f=y.lib.BlockCipherMode.extend(),x=f.Encryptor=f.extend({processBlock:function(m,p){var d=this._cipher,u=d.blockSize,s=this._iv,i=this._keystream;s&&(i=this._keystream=s.slice(0),this._iv=void 0),d.encryptBlock(i,0);for(var t=0;t<u;t++)m[p+t]^=i[t]}});return f.Decryptor=x,f}(),y.mode.OFB})},"SA+Z":function(R,D,n){var y=n("wTVA"),f=n("EbDI"),x=n("ZhPi"),v=n("wkBT");function m(p){return y(p)||f(p)||x(p)||v()}R.exports=m,R.exports.__esModule=!0,R.exports.default=R.exports},"SA4+":function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("ProS"),v=n("IwbS"),m=n("zYTA"),p=n("bYtY");function d(t,o,e){var l=t[1]-t[0];o=p.map(o,function(c){return{interval:[(c.interval[0]-t[0])/l,(c.interval[1]-t[0])/l]}});var r=o.length,a=0;return function(c){for(var h=a;h<r;h++){var g=o[h].interval;if(g[0]<=c&&c<=g[1]){a=h;break}}if(h===r)for(var h=a-1;h>=0;h--){var g=o[h].interval;if(g[0]<=c&&c<=g[1]){a=h;break}}return h>=0&&h<r&&e[h]}}function u(t,o){var e=t[1]-t[0];return o=[(o[0]-t[0])/e,(o[1]-t[0])/e],function(l){return l>=o[0]&&l<=o[1]}}function s(t){var o=t.dimensions;return o[0]==="lng"&&o[1]==="lat"}var i=x.extendChartView({type:"heatmap",render:function(t,o,e){var l;o.eachComponent("visualMap",function(a){a.eachTargetSeries(function(c){c===t&&(l=a)})}),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;r.type==="cartesian2d"||r.type==="calendar"?this._renderOnCartesianAndCalendar(t,e,0,t.getData().count()):s(r)&&this._renderOnGeo(r,t,l,e)},incrementalPrepareRender:function(t,o,e){this.group.removeAll()},incrementalRender:function(t,o,e,l){var r=o.coordinateSystem;r&&this._renderOnCartesianAndCalendar(o,l,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,o,e,l,r){var a=t.coordinateSystem,c,h;if(a.type==="cartesian2d"){var g=a.getAxis("x"),A=a.getAxis("y");c=g.getBandWidth(),h=A.getBandWidth()}for(var b=this.group,S=t.getData(),E="itemStyle",C="emphasis.itemStyle",_="label",T="emphasis.label",w=t.getModel(E).getItemStyle(["color"]),O=t.getModel(C).getItemStyle(),I=t.getModel(_),k=t.getModel(T),M=a.type,j=M==="cartesian2d"?[S.mapDimension("x"),S.mapDimension("y"),S.mapDimension("value")]:[S.mapDimension("time"),S.mapDimension("value")],P=e;P<l;P++){var X;if(M==="cartesian2d"){if(isNaN(S.get(j[2],P)))continue;var F=a.dataToPoint([S.get(j[0],P),S.get(j[1],P)]);X=new v.Rect({shape:{x:Math.floor(Math.round(F[0])-c/2),y:Math.floor(Math.round(F[1])-h/2),width:Math.ceil(c),height:Math.ceil(h)},style:{fill:S.getItemVisual(P,"color"),opacity:S.getItemVisual(P,"opacity")}})}else{if(isNaN(S.get(j[1],P)))continue;X=new v.Rect({z2:1,shape:a.dataToRect([S.get(j[0],P)]).contentShape,style:{fill:S.getItemVisual(P,"color"),opacity:S.getItemVisual(P,"opacity")}})}var U=S.getItemModel(P);S.hasItemOption&&(w=U.getModel(E).getItemStyle(["color"]),O=U.getModel(C).getItemStyle(),I=U.getModel(_),k=U.getModel(T));var K=t.getRawValue(P),z="-";K&&K[2]!=null&&(z=K[2]),v.setLabelStyle(w,O,I,k,{labelFetcher:t,labelDataIndex:P,defaultText:z,isRectText:!0}),X.setStyle(w),v.setHoverStyle(X,S.hasItemOption?O:p.extend({},O)),X.incremental=r,r&&(X.useHoverLayer=!0),b.add(X),S.setItemGraphicEl(P,X)}},_renderOnGeo:function(t,o,e,l){var r=e.targetVisuals.inRange,a=e.targetVisuals.outOfRange,c=o.getData(),h=this._hmLayer||this._hmLayer||new m;h.blurSize=o.get("blurSize"),h.pointSize=o.get("pointSize"),h.minOpacity=o.get("minOpacity"),h.maxOpacity=o.get("maxOpacity");var g=t.getViewRect().clone(),A=t.getRoamTransform();g.applyTransform(A);var b=Math.max(g.x,0),S=Math.max(g.y,0),E=Math.min(g.width+g.x,l.getWidth()),C=Math.min(g.height+g.y,l.getHeight()),_=E-b,T=C-S,w=[c.mapDimension("lng"),c.mapDimension("lat"),c.mapDimension("value")],O=c.mapArray(w,function(j,P,X){var F=t.dataToPoint([j,P]);return F[0]-=b,F[1]-=S,F.push(X),F}),I=e.getExtent(),k=e.type==="visualMap.continuous"?u(I,e.option.range):d(I,e.getPieceList(),e.option.selected);h.update(O,_,T,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:a.color.getColorMapper()},k);var M=new v.Image({style:{width:_,height:T,x:b,y:S,image:h.canvas},silent:!0});this.group.add(M)},dispose:function(){}});R.exports=i},SA8n:function(R,D,n){var y=n("Sj9i"),f=n("QBsz"),x=n("U/Mo"),v=x.getSymbolSize,m=[],p=[],d=[],u=y.quadraticAt,s=f.distSquare,i=Math.abs;function t(e,l,r){for(var a=e[0],c=e[1],h=e[2],g=Infinity,A,b=r*r,S=.1,E=.1;E<=.9;E+=.1){m[0]=u(a[0],c[0],h[0],E),m[1]=u(a[1],c[1],h[1],E);var C=i(s(m,l)-b);C<g&&(g=C,A=E)}for(var _=0;_<32;_++){var T=A+S;p[0]=u(a[0],c[0],h[0],A),p[1]=u(a[1],c[1],h[1],A),d[0]=u(a[0],c[0],h[0],T),d[1]=u(a[1],c[1],h[1],T);var C=s(p,l)-b;if(i(C)<.01)break;var w=s(d,l)-b;S/=2,C<0?w>=0?A=A+S:A=A-S:w>=0?A=A-S:A=A+S}return A}function o(e,l){var r=[],a=y.quadraticSubdivide,c=[[],[],[]],h=[[],[]],g=[];l/=2,e.eachEdge(function(A,b){var S=A.getLayout(),E=A.getVisual("fromSymbol"),C=A.getVisual("toSymbol");S.__original||(S.__original=[f.clone(S[0]),f.clone(S[1])],S[2]&&S.__original.push(f.clone(S[2])));var _=S.__original;if(S[2]!=null){if(f.copy(c[0],_[0]),f.copy(c[1],_[2]),f.copy(c[2],_[1]),E&&E!=="none"){var T=v(A.node1),w=t(c,_[0],T*l);a(c[0][0],c[1][0],c[2][0],w,r),c[0][0]=r[3],c[1][0]=r[4],a(c[0][1],c[1][1],c[2][1],w,r),c[0][1]=r[3],c[1][1]=r[4]}if(C&&C!=="none"){var T=v(A.node2),w=t(c,_[1],T*l);a(c[0][0],c[1][0],c[2][0],w,r),c[1][0]=r[1],c[2][0]=r[2],a(c[0][1],c[1][1],c[2][1],w,r),c[1][1]=r[1],c[2][1]=r[2]}f.copy(S[0],c[0]),f.copy(S[1],c[2]),f.copy(S[2],c[1])}else{if(f.copy(h[0],_[0]),f.copy(h[1],_[1]),f.sub(g,h[1],h[0]),f.normalize(g,g),E&&E!=="none"){var T=v(A.node1);f.scaleAndAdd(h[0],h[0],g,T*l)}if(C&&C!=="none"){var T=v(A.node2);f.scaleAndAdd(h[1],h[1],g,-T*l)}f.copy(S[0],h[0]),f.copy(S[1],h[1])}})}R.exports=o},SJMd:function(R,D){/**
|
|
|
* @license
|
|
|
* Copyright (C) 2006 Google Inc.
|
|
|
*
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
* You may obtain a copy of the License at
|
|
|
*
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
*
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
* See the License for the specific language governing permissions and
|
|
|
* limitations under the License.
|
|
|
*/var n,y,f,x=!1,v,m;window.PR_SHOULD_USE_CONTINUATION=!0;var p,d;(function(){var u=window,s=["break,continue,do,else,for,if,return,while"],i=[s,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],t=[i,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],o=[t,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],e=[t,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],l=[t,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",a=[t,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],c="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",h=[s,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],g=[s,"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"],A=[s,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],b=[o,l,e,a,c,h,g,A],S=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,E="str",C="kwd",_="com",T="typ",w="lit",O="pun",I="pln",k="tag",M="dec",j="src",P="atn",X="atv",F="nocode",U="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function K(he){for(var J=0,Y=!1,$=!1,de=0,be=he.length;de<be;++de){var Ce=he[de];if(Ce.ignoreCase)$=!0;else if(/[a-z]/i.test(Ce.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Y=!0,$=!1;break}}var Be={b:8,t:9,n:10,v:11,f:12,r:13};function fe(ft){var He=ft.charCodeAt(0);if(He!==92)return He;var er=ft.charAt(1);return He=Be[er],He||("0"<=er&&er<="7"?parseInt(ft.substring(1),8):er==="u"||er==="x"?parseInt(ft.substring(2),16):ft.charCodeAt(1))}function we(ft){if(ft<32)return(ft<16?"\\x0":"\\x")+ft.toString(16);var He=String.fromCharCode(ft);return He==="\\"||He==="-"||He==="]"||He==="^"?"\\"+He:He}function Re(ft){var He=ft.substring(1,ft.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")),er=[],ct=He[0]==="^",Kt=["["];ct&&Kt.push("^");for(var fr=ct?1:0,Gt=He.length;fr<Gt;++fr){var Pt=He[fr];if(/\\[bdsw]/i.test(Pt))Kt.push(Pt);else{var Xt=fe(Pt),Ge;fr+2<Gt&&He[fr+1]==="-"?(Ge=fe(He[fr+2]),fr+=2):Ge=Xt,er.push([Xt,Ge]),Ge<65||Xt>122||(Ge<65||Xt>90||er.push([Math.max(65,Xt)|32,Math.min(Ge,90)|32]),Ge<97||Xt>122||er.push([Math.max(97,Xt)&~32,Math.min(Ge,122)&~32]))}}er.sort(function(qe,ge){return qe[0]-ge[0]||ge[1]-qe[1]});for(var pe=[],oe=[],fr=0;fr<er.length;++fr){var lt=er[fr];lt[0]<=oe[1]+1?oe[1]=Math.max(oe[1],lt[1]):pe.push(oe=lt)}for(var fr=0;fr<pe.length;++fr){var lt=pe[fr];Kt.push(we(lt[0])),lt[1]>lt[0]&&(lt[1]+1>lt[0]&&Kt.push("-"),Kt.push(we(lt[1])))}return Kt.push("]"),Kt.join("")}function rt(ft){for(var He=ft.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")),er=He.length,ct=[],Kt=0,fr=0;Kt<er;++Kt){var Gt=He[Kt];if(Gt==="(")++fr;else if(Gt.charAt(0)==="\\"){var Pt=+Gt.substring(1);Pt&&(Pt<=fr?ct[Pt]=-1:He[Kt]=we(Pt))}}for(var Kt=1;Kt<ct.length;++Kt)ct[Kt]===-1&&(ct[Kt]=++J);for(var Kt=0,fr=0;Kt<er;++Kt){var Gt=He[Kt];if(Gt==="(")++fr,ct[fr]||(He[Kt]="(?:");else if(Gt.charAt(0)==="\\"){var Pt=+Gt.substring(1);Pt&&Pt<=fr&&(He[Kt]="\\"+ct[Pt])}}for(var Kt=0;Kt<er;++Kt)He[Kt]==="^"&&He[Kt+1]!=="^"&&(He[Kt]="");if(ft.ignoreCase&&Y)for(var Kt=0;Kt<er;++Kt){var Gt=He[Kt],Xt=Gt.charAt(0);Gt.length>=2&&Xt==="["?He[Kt]=Re(Gt):Xt!=="\\"&&(He[Kt]=Gt.replace(/[a-zA-Z]/g,function(oe){var lt=oe.charCodeAt(0);return"["+String.fromCharCode(lt&~32,lt|32)+"]"}))}return He.join("")}for(var St=[],de=0,be=he.length;de<be;++de){var Ce=he[de];if(Ce.global||Ce.multiline)throw new Error(""+Ce);St.push("(?:"+rt(Ce)+")")}return new RegExp(St.join("|"),$?"gi":"g")}function z(he,J){var Y=/(?:^|\s)nocode(?:\s|$)/,$=[],de=0,be=[],Ce=0;function Be(fe){var we=fe.nodeType;if(we==1){if(Y.test(fe.className))return;for(var Re=fe.firstChild;Re;Re=Re.nextSibling)Be(Re);var rt=fe.nodeName.toLowerCase();(rt==="br"||rt==="li")&&($[Ce]=`
|
|
|
`,be[Ce<<1]=de++,be[Ce++<<1|1]=fe)}else if(we==3||we==4){var St=fe.nodeValue;St.length&&(J?St=St.replace(/\r\n?/g,`
|
|
|
`):St=St.replace(/[ \t\r\n]+/g," "),$[Ce]=St,be[Ce<<1]=de,de+=St.length,be[Ce++<<1|1]=fe)}}return Be(he),{sourceCode:$.join("").replace(/\n$/,""),spans:be}}function V(he,J,Y,$,de){if(!Y)return;var be={sourceNode:he,pre:1,langExtension:null,numberLines:null,sourceCode:Y,spans:null,basePos:J,decorations:null};$(be),de.push.apply(de,be.decorations)}var Q=/\S/;function G(he){for(var J=void 0,Y=he.firstChild;Y;Y=Y.nextSibling){var $=Y.nodeType;J=$===1?J?he:Y:$===3&&Q.test(Y.nodeValue)?he:J}return J===he?void 0:J}function te(he,J){var Y={},$;(function(){for(var Ce=he.concat(J),Be=[],fe={},we=0,Re=Ce.length;we<Re;++we){var rt=Ce[we],St=rt[3];if(St)for(var ft=St.length;--ft>=0;)Y[St.charAt(ft)]=rt;var He=rt[1],er=""+He;fe.hasOwnProperty(er)||(Be.push(He),fe[er]=null)}Be.push(/[\0-\uffff]/),$=K(Be)})();var de=J.length,be=function Ce(Be){for(var fe=Be.sourceCode,we=Be.basePos,Re=Be.sourceNode,rt=[we,I],St=0,ft=fe.match($)||[],He={},er=0,ct=ft.length;er<ct;++er){var Kt=ft[er],fr=He[Kt],Gt=void 0,Pt;if(typeof fr=="string")Pt=!1;else{var Xt=Y[Kt.charAt(0)];if(Xt)Gt=Kt.match(Xt[1]),fr=Xt[0];else{for(var Ge=0;Ge<de;++Ge)if(Xt=J[Ge],Gt=Kt.match(Xt[1]),Gt){fr=Xt[0];break}Gt||(fr=I)}Pt=fr.length>=5&&fr.substring(0,5)==="lang-",Pt&&!(Gt&&typeof Gt[1]=="string")&&(Pt=!1,fr=j),Pt||(He[Kt]=fr)}var pe=St;if(St+=Kt.length,!Pt)rt.push(we+pe,fr);else{var oe=Gt[1],lt=Kt.indexOf(oe),qe=lt+oe.length;Gt[2]&&(qe=Kt.length-Gt[2].length,lt=qe-oe.length);var ge=fr.substring(5);V(Re,we+pe,Kt.substring(0,lt),Ce,rt),V(Re,we+pe+lt,oe,Qe(ge,oe),rt),V(Re,we+pe+qe,Kt.substring(qe),Ce,rt)}}Be.decorations=rt};return be}function q(he){var J=[],Y=[];he.tripleQuotedStrings?J.push([E,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):he.multiLineStrings?J.push([E,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):J.push([E,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),he.verbatimStrings&&Y.push([E,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var $=he.hashComments;$&&(he.cStyleComments?($>1?J.push([_,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):J.push([_,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Y.push([E,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):J.push([_,/^#[^\r\n]*/,null,"#"])),he.cStyleComments&&(Y.push([_,/^\/\/[^\r\n]*/,null]),Y.push([_,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var de=he.regexLiterals;if(de){var be=de>1?"":`
|
|
|
\r`,Ce=be?".":"[\\S\\s]",Be="/(?=[^/*"+be+"])(?:[^/\\x5B\\x5C"+be+"]|\\x5C"+Ce+"|\\x5B(?:[^\\x5C\\x5D"+be+"]|\\x5C"+Ce+")*(?:\\x5D|$))+/";Y.push(["lang-regex",RegExp("^"+U+"("+Be+")")])}var fe=he.types;fe&&Y.push([T,fe]);var we=(""+he.keywords).replace(/^ | $/g,"");we.length&&Y.push([C,new RegExp("^(?:"+we.replace(/[\s,]+/g,"|")+")\\b"),null]),J.push([I,/^\s+/,null,` \r
|
|
|
\xA0`]);var Re="^.[^\\s\\w.$@'\"`/\\\\]*";return he.regexLiterals&&(Re+="(?!s*/)"),Y.push([w,/^@[a-z_$][a-z_$@0-9]*/i,null],[T,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[I,/^[a-z_$][a-z_$@0-9]*/i,null],[w,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[I,/^\\[\s\S]?/,null],[O,new RegExp(Re),null]),te(J,Y)}var se=q({keywords:b,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function re(he,J,Y){for(var $=/(?:^|\s)nocode(?:\s|$)/,de=/\r\n?|\n/,be=he.ownerDocument,Ce=be.createElement("li");he.firstChild;)Ce.appendChild(he.firstChild);var Be=[Ce];function fe(He){var er=He.nodeType;if(er==1&&!$.test(He.className))if(He.nodeName==="br")we(He),He.parentNode&&He.parentNode.removeChild(He);else for(var ct=He.firstChild;ct;ct=ct.nextSibling)fe(ct);else if((er==3||er==4)&&Y){var Kt=He.nodeValue,fr=Kt.match(de);if(fr){var Gt=Kt.substring(0,fr.index);He.nodeValue=Gt;var Pt=Kt.substring(fr.index+fr[0].length);if(Pt){var Xt=He.parentNode;Xt.insertBefore(be.createTextNode(Pt),He.nextSibling)}we(He),Gt||He.parentNode.removeChild(He)}}}function we(He){for(;!He.nextSibling;)if(He=He.parentNode,!He)return;function er(fr,Gt){var Pt=Gt?fr.cloneNode(!1):fr,Xt=fr.parentNode;if(Xt){var Ge=er(Xt,1),pe=fr.nextSibling;Ge.appendChild(Pt);for(var oe=pe;oe;oe=pe)pe=oe.nextSibling,Ge.appendChild(oe)}return Pt}for(var ct=er(He.nextSibling,0),Kt;(Kt=ct.parentNode)&&Kt.nodeType===1;)ct=Kt;Be.push(ct)}for(var Re=0;Re<Be.length;++Re)fe(Be[Re]);J===(J|0)&&Be[0].setAttribute("value",J);var rt=be.createElement("ol");rt.className="linenums";for(var St=Math.max(0,J-1|0)||0,Re=0,ft=Be.length;Re<ft;++Re)Ce=Be[Re],Ce.className="L"+(Re+St)%10,Ce.firstChild||Ce.appendChild(be.createTextNode("\xA0")),rt.appendChild(Ce);he.appendChild(rt)}function xe(he){var J=/\bMSIE\s(\d+)/.exec(navigator.userAgent);J=J&&+J[1]<=8;var Y=/\n/g,$=he.sourceCode,de=$.length,be=0,Ce=he.spans,Be=Ce.length,fe=0,we=he.decorations,Re=we.length,rt=0;we[Re]=de;var St,ft;for(ft=St=0;ft<Re;)we[ft]!==we[ft+2]?(we[St++]=we[ft++],we[St++]=we[ft++]):ft+=2;for(Re=St,ft=St=0;ft<Re;){for(var He=we[ft],er=we[ft+1],ct=ft+2;ct+2<=Re&&we[ct+1]===er;)ct+=2;we[St++]=He,we[St++]=er,ft=ct}Re=we.length=St;var Kt=he.sourceNode,fr="";Kt&&(fr=Kt.style.display,Kt.style.display="none");try{for(var Gt=null;fe<Be;){var Pt=Ce[fe],Xt=Ce[fe+2]||de,Ge=we[rt+2]||de,ct=Math.min(Xt,Ge),pe=Ce[fe+1],oe;if(pe.nodeType!==1&&(oe=$.substring(be,ct))){J&&(oe=oe.replace(Y,"\r")),pe.nodeValue=oe;var lt=pe.ownerDocument,qe=lt.createElement("span");qe.className=we[rt+1];var ge=pe.parentNode;ge.replaceChild(qe,pe),qe.appendChild(pe),be<Xt&&(Ce[fe+1]=pe=lt.createTextNode($.substring(ct,Xt)),ge.insertBefore(pe,qe.nextSibling))}be=ct,be>=Xt&&(fe+=2),be>=Ge&&(rt+=2)}}finally{Kt&&(Kt.style.display=fr)}}var Oe={};function Me(he,J){for(var Y=J.length;--Y>=0;){var $=J[Y];Oe.hasOwnProperty($)?u.console&&console.warn("cannot override language handler %s",$):Oe[$]=he}}function Qe(he,J){return he&&Oe.hasOwnProperty(he)||(he=/^\s*</.test(J)?"default-markup":"default-code"),Oe[he]}Me(se,["default-code"]),Me(te([],[[I,/^[^<?]+/],[M,/^<!\w[^>]*(?:>|$)/],[_,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[O,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Me(te([[I,/^[\s]+/,null,` \r
|
|
|
`],[X,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[k,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[O,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),Me(te([],[[X,/^[\s\S]+/]]),["uq.val"]),Me(q({keywords:o,hashComments:!0,cStyleComments:!0,types:S}),["c","cc","cpp","cxx","cyc","m"]),Me(q({keywords:"null,true,false"}),["json"]),Me(q({keywords:l,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:S}),["cs"]),Me(q({keywords:e,cStyleComments:!0}),["java"]),Me(q({keywords:A,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Me(q({keywords:h,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Me(q({keywords:c,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Me(q({keywords:g,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Me(q({keywords:a,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Me(q({keywords:r,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Me(te([],[[E,/^[\s\S]+/]]),["regex"]);function Ve(he){var J=he.langExtension;try{var Y=z(he.sourceNode,he.pre),$=Y.sourceCode;he.sourceCode=$,he.spans=Y.spans,he.basePos=0,Qe(J,$)(he),xe(he)}catch(de){u.console&&console.log(de&&de.stack||de)}}function ut(he,J,Y){var $=Y||!1,de=J||null,be=document.createElement("div");be.innerHTML="<pre>"+he+"</pre>",be=be.firstChild,$&&re(be,$,!0);var Ce={langExtension:de,numberLines:$,sourceNode:be,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Ve(Ce),be.innerHTML}function Fe(he,J){var Y=J||document.body,$=Y.ownerDocument||document;function de(Pt){return Y.getElementsByTagName(Pt)}for(var be=[de("pre"),de("code"),de("xmp")],Ce=[],Be=0;Be<be.length;++Be)for(var fe=0,we=be[Be].length;fe<we;++fe)Ce.push(be[Be][fe]);be=null;var Re=Date;Re.now||(Re={now:function(){return+new Date}});var rt=0,St=/\blang(?:uage)?-([\w.]+)(?!\S)/,ft=/\bprettyprint\b/,He=/\bprettyprinted\b/,er=/pre|xmp/i,ct=/^code$/i,Kt=/^(?:pre|code|xmp)$/i,fr={};function Gt(){for(var Pt=u.PR_SHOULD_USE_CONTINUATION?Re.now()+250:Infinity;rt<Ce.length&&Re.now()<Pt;rt++){for(var Xt=Ce[rt],Ge=fr,pe=Xt;pe=pe.previousSibling;){var oe=pe.nodeType,lt=(oe===7||oe===8)&&pe.nodeValue;if(lt?!/^\??prettify\b/.test(lt):oe!==3||/\S/.test(pe.nodeValue))break;if(lt){Ge={},lt.replace(/\b(\w+)=([\w:.%+-]+)/g,function(at,Pr,un){Ge[Pr]=un});break}}var qe=Xt.className;if((Ge!==fr||ft.test(qe))&&!He.test(qe)){for(var ge=!1,Ht=Xt.parentNode;Ht;Ht=Ht.parentNode){var vr=Ht.tagName;if(Kt.test(vr)&&Ht.className&&ft.test(Ht.className)){ge=!0;break}}if(!ge){Xt.className+=" prettyprinted";var At=Ge.lang;if(!At){At=qe.match(St);var ir;!At&&(ir=G(Xt))&&ct.test(ir.tagName)&&(At=ir.className.match(St)),At&&(At=At[1])}var lr;if(er.test(Xt.tagName))lr=1;else{var dn=Xt.currentStyle,Ft=$.defaultView,ur=dn?dn.whiteSpace:Ft&&Ft.getComputedStyle?Ft.getComputedStyle(Xt,null).getPropertyValue("white-space"):0;lr=ur&&ur.substring(0,3)==="pre"}var Jt=Ge.linenums;(Jt=Jt==="true"||+Jt)||(Jt=qe.match(/\blinenums\b(?::(\d+))?/),Jt=Jt?Jt[1]&&Jt[1].length?+Jt[1]:!0:!1),Jt&&re(Xt,Jt,lr);var pt={langExtension:At,sourceNode:Xt,numberLines:Jt,pre:lr,sourceCode:null,basePos:null,spans:null,decorations:null};Ve(pt)}}}rt<Ce.length?u.setTimeout(Gt,250):typeof he=="function"&&he()}Gt()}var ue=u.PR={createSimpleLexer:te,registerLangHandler:Me,sourceDecorator:q,PR_ATTRIB_NAME:P,PR_ATTRIB_VALUE:X,PR_COMMENT:_,PR_DECLARATION:M,PR_KEYWORD:C,PR_LITERAL:w,PR_NOCODE:F,PR_PLAIN:I,PR_PUNCTUATION:O,PR_SOURCE:j,PR_STRING:E,PR_TAG:k,PR_TYPE:T,prettyPrintOne:x?u.prettyPrintOne=ut:p=ut,prettyPrint:d=x?u.prettyPrint=Fe:d=Fe},et=u.define;typeof et=="function"&&et.amd&&et("google-code-prettify",[],function(){return ue})})()},SKnc:function(R,D,n){var y=n("bYtY"),f=n("QuXc"),x=function(p,d,u,s,i,t){this.x=p==null?0:p,this.y=d==null?0:d,this.x2=u==null?1:u,this.y2=s==null?0:s,this.type="linear",this.global=t||!1,f.call(this,i)};x.prototype={constructor:x},y.inherits(x,f);var v=x;R.exports=v},"SKx+":function(R,D,n){var y=n("ProS"),f=y.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),x=f;R.exports=x},SMc4:function(R,D,n){var y=n("bYtY"),f=n("bLfw"),x=n("nkfE"),v=n("ICMv"),m=f.extend({type:"cartesian2dAxis",axis:null,init:function(){m.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){m.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){m.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function p(s,i){return i.type||(i.data?"category":"value")}y.merge(m.prototype,v);var d={offset:0};x("x",m,p,d),x("y",m,p,d);var u=m;R.exports=u},SRve:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};D.default=y},SUKs:function(R,D,n){var y=n("LPTA"),f=y.debugMode,x=function(){};f===1&&(x=console.error);var v=x;R.exports=v},SZEN:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.clientToElement=y;function y(f,x,v){var m=v.getBoundingClientRect(),p={x:0,y:0};return f<m.left?p.x=0:f>=m.right?p.x=m.width-1:p.x=f-m.left,x<m.top?p.y=0:x>=m.bottom?p.y=m.height-1:p.y=x-m.top,p}},Sdc0:function(R,D,n){"use strict";var y=n("pVnL"),f=n.n(y),x=n("lSNA"),v=n.n(x),m=n("q1tI"),p=n("rePB"),d=n("ODXe"),u=n("Ff2n"),s=n("TSYQ"),i=n.n(s),t=n("6cGi"),o=n("4IlW"),e=m.forwardRef(function(C,_){var T,w=C.prefixCls,O=w===void 0?"rc-switch":w,I=C.className,k=C.checked,M=C.defaultChecked,j=C.disabled,P=C.loadingIcon,X=C.checkedChildren,F=C.unCheckedChildren,U=C.onClick,K=C.onChange,z=C.onKeyDown,V=Object(u.a)(C,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),Q=Object(t.a)(!1,{value:k,defaultValue:M}),G=Object(d.a)(Q,2),te=G[0],q=G[1];function se(Me,Qe){var Ve=te;return j||(Ve=Me,q(Ve),K==null||K(Ve,Qe)),Ve}function re(Me){Me.which===o.a.LEFT?se(!1,Me):Me.which===o.a.RIGHT&&se(!0,Me),z==null||z(Me)}function xe(Me){var Qe=se(!te,Me);U==null||U(Qe,Me)}var Oe=i()(O,I,(T={},Object(p.a)(T,"".concat(O,"-checked"),te),Object(p.a)(T,"".concat(O,"-disabled"),j),T));return m.createElement("button",Object.assign({},V,{type:"button",role:"switch","aria-checked":te,disabled:j,className:Oe,ref:_,onKeyDown:re,onClick:xe}),P,m.createElement("span",{className:"".concat(O,"-inner")},te?X:F))});e.displayName="Switch";var l=e,r=n("gZBC"),a=n.n(r),c=n("g0mS"),h=n("H84U"),g=n("3Nzz"),A=n("uaoM"),b=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T},S=m.forwardRef(function(C,_){var T,w=C.prefixCls,O=C.size,I=C.loading,k=C.className,M=k===void 0?"":k,j=C.disabled,P=b(C,["prefixCls","size","loading","className","disabled"]);Object(A.a)("checked"in P||!("value"in P),"Switch","`value` is not a valid prop, do you mean `checked`?");var X=m.useContext(h.b),F=X.getPrefixCls,U=X.direction,K=m.useContext(g.b),z=F("switch",w),V=m.createElement("div",{className:"".concat(z,"-handle")},I&&m.createElement(a.a,{className:"".concat(z,"-loading-icon")})),Q=i()(M,(T={},v()(T,"".concat(z,"-small"),(O||K)==="small"),v()(T,"".concat(z,"-loading"),I),v()(T,"".concat(z,"-rtl"),U==="rtl"),T));return m.createElement(c.a,{insertExtraNode:!0},m.createElement(l,f()({},P,{prefixCls:z,className:Q,disabled:j||I,ref:_,loadingIcon:V})))});S.__ANT_SWITCH=!0,S.displayName="Switch";var E=D.a=S},SehX:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("2B6p"),v=x.updateCenterAndZoom;y.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(m,p){var d=m.componentType||"series";p.eachComponent({mainType:d,query:m},function(u){var s=u.coordinateSystem;if(s.type!=="geo")return;var i=v(s,m,u.get("scaleLimit"));u.setCenter&&u.setCenter(i.center),u.setZoom&&u.setZoom(i.zoom),d==="series"&&f.each(u.seriesGroup,function(t){t.setCenter(i.center),t.setZoom(i.zoom)})})})},SfRM:function(R,D,n){var y=n("YESw");function f(){this.__data__=y?y(null):{},this.size=0}R.exports=f},SgGq:function(R,D,n){var y=n("bYtY"),f=n("H6uX"),x=n("YH21"),v=n("pP6R");function m(r){this.pointerChecker,this._zr=r,this._opt={};var a=y.bind,c=a(p,this),h=a(d,this),g=a(u,this),A=a(s,this),b=a(i,this);f.call(this),this.setPointerChecker=function(S){this.pointerChecker=S},this.enable=function(S,E){this.disable(),this._opt=y.defaults(y.clone(E)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),S==null&&(S=!0),(S===!0||S==="move"||S==="pan")&&(r.on("mousedown",c),r.on("mousemove",h),r.on("mouseup",g)),(S===!0||S==="scale"||S==="zoom")&&(r.on("mousewheel",A),r.on("pinch",b))},this.disable=function(){r.off("mousedown",c),r.off("mousemove",h),r.off("mouseup",g),r.off("mousewheel",A),r.off("pinch",b)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}y.mixin(m,f);function p(r){if(x.isMiddleOrRightButtonOnMouseUpDown(r)||r.target&&r.target.draggable)return;var a=r.offsetX,c=r.offsetY;this.pointerChecker&&this.pointerChecker(r,a,c)&&(this._x=a,this._y=c,this._dragging=!0)}function d(r){if(!this._dragging||!e("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||v.isTaken(this._zr,"globalPan"))return;var a=r.offsetX,c=r.offsetY,h=this._x,g=this._y,A=a-h,b=c-g;this._x=a,this._y=c,this._opt.preventDefaultMouseMove&&x.stop(r.event),o(this,"pan","moveOnMouseMove",r,{dx:A,dy:b,oldX:h,oldY:g,newX:a,newY:c})}function u(r){x.isMiddleOrRightButtonOnMouseUpDown(r)||(this._dragging=!1)}function s(r){var a=e("zoomOnMouseWheel",r,this._opt),c=e("moveOnMouseWheel",r,this._opt),h=r.wheelDelta,g=Math.abs(h),A=r.offsetX,b=r.offsetY;if(h===0||!a&&!c)return;if(a){var S=g>3?1.4:g>1?1.2:1.1,E=h>0?S:1/S;t(this,"zoom","zoomOnMouseWheel",r,{scale:E,originX:A,originY:b})}if(c){var C=Math.abs(h),_=(h>0?1:-1)*(C>3?.4:C>1?.15:.05);t(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:_,originX:A,originY:b})}}function i(r){if(v.isTaken(this._zr,"globalPan"))return;var a=r.pinchScale>1?1.1:1/1.1;t(this,"zoom",null,r,{scale:a,originX:r.pinchX,originY:r.pinchY})}function t(r,a,c,h,g){r.pointerChecker&&r.pointerChecker(h,g.originX,g.originY)&&(x.stop(h.event),o(r,a,c,h,g))}function o(r,a,c,h,g){g.isAvailableBehavior=y.bind(e,null,c,h),r.trigger(a,g)}function e(r,a,c){var h=c[r];return!r||h&&(!y.isString(h)||a.event[h+"Key"])}var l=m;R.exports=l},SgaC:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function f(m,p){for(var d=0;d<p.length;d++){var u=p[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function x(m,p,d){return p&&f(m.prototype,p),d&&f(m,d),m}var v=function(){function m(){y(this,m),this._subrects=0}return x(m,[{key:"decodeRect",value:function(d,u,s,i,t,o,e){if(this._subrects===0){if(t.rQwait("RRE",4+4))return!1;this._subrects=t.rQshift32();var l=t.rQshiftBytes(4);o.fillRect(d,u,s,i,l)}for(;this._subrects>0;){if(t.rQwait("RRE",4+8))return!1;var r=t.rQshiftBytes(4),a=t.rQshift16(),c=t.rQshift16(),h=t.rQshift16(),g=t.rQshift16();o.fillRect(d+a,u+c,h,g,r),this._subrects--}return!0}}]),m}();D.default=v},Sj0X:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("XuBP")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="DownOutlined";var i=v.forwardRef(s);D.default=i},Sj9i:function(R,D,n){var y=n("QBsz"),f=y.create,x=y.distSquare,v=Math.pow,m=Math.sqrt,p=1e-8,d=1e-4,u=m(3),s=1/3,i=f(),t=f(),o=f();function e(w){return w>-p&&w<p}function l(w){return w>p||w<-p}function r(w,O,I,k,M){var j=1-M;return j*j*(j*w+3*M*O)+M*M*(M*k+3*j*I)}function a(w,O,I,k,M){var j=1-M;return 3*(((O-w)*j+2*(I-O)*M)*j+(k-I)*M*M)}function c(w,O,I,k,M,j){var P=k+3*(O-I)-w,X=3*(I-O*2+w),F=3*(O-w),U=w-M,K=X*X-3*P*F,z=X*F-9*P*U,V=F*F-3*X*U,Q=0;if(e(K)&&e(z))if(e(X))j[0]=0;else{var G=-F/X;G>=0&&G<=1&&(j[Q++]=G)}else{var te=z*z-4*K*V;if(e(te)){var q=z/K,G=-X/P+q,se=-q/2;G>=0&&G<=1&&(j[Q++]=G),se>=0&&se<=1&&(j[Q++]=se)}else if(te>0){var re=m(te),xe=K*X+1.5*P*(-z+re),Oe=K*X+1.5*P*(-z-re);xe<0?xe=-v(-xe,s):xe=v(xe,s),Oe<0?Oe=-v(-Oe,s):Oe=v(Oe,s);var G=(-X-(xe+Oe))/(3*P);G>=0&&G<=1&&(j[Q++]=G)}else{var Me=(2*K*X-3*P*z)/(2*m(K*K*K)),Qe=Math.acos(Me)/3,Ve=m(K),ut=Math.cos(Qe),G=(-X-2*Ve*ut)/(3*P),se=(-X+Ve*(ut+u*Math.sin(Qe)))/(3*P),Fe=(-X+Ve*(ut-u*Math.sin(Qe)))/(3*P);G>=0&&G<=1&&(j[Q++]=G),se>=0&&se<=1&&(j[Q++]=se),Fe>=0&&Fe<=1&&(j[Q++]=Fe)}}return Q}function h(w,O,I,k,M){var j=6*I-12*O+6*w,P=9*O+3*k-3*w-9*I,X=3*O-3*w,F=0;if(e(P)){if(l(j)){var U=-X/j;U>=0&&U<=1&&(M[F++]=U)}}else{var K=j*j-4*P*X;if(e(K))M[0]=-j/(2*P);else if(K>0){var z=m(K),U=(-j+z)/(2*P),V=(-j-z)/(2*P);U>=0&&U<=1&&(M[F++]=U),V>=0&&V<=1&&(M[F++]=V)}}return F}function g(w,O,I,k,M,j){var P=(O-w)*M+w,X=(I-O)*M+O,F=(k-I)*M+I,U=(X-P)*M+P,K=(F-X)*M+X,z=(K-U)*M+U;j[0]=w,j[1]=P,j[2]=U,j[3]=z,j[4]=z,j[5]=K,j[6]=F,j[7]=k}function A(w,O,I,k,M,j,P,X,F,U,K){var z,V=.005,Q=Infinity,G,te,q,se;i[0]=F,i[1]=U;for(var re=0;re<1;re+=.05)t[0]=r(w,I,M,P,re),t[1]=r(O,k,j,X,re),q=x(i,t),q<Q&&(z=re,Q=q);Q=Infinity;for(var xe=0;xe<32&&!(V<d);xe++)G=z-V,te=z+V,t[0]=r(w,I,M,P,G),t[1]=r(O,k,j,X,G),q=x(t,i),G>=0&&q<Q?(z=G,Q=q):(o[0]=r(w,I,M,P,te),o[1]=r(O,k,j,X,te),se=x(o,i),te<=1&&se<Q?(z=te,Q=se):V*=.5);return K&&(K[0]=r(w,I,M,P,z),K[1]=r(O,k,j,X,z)),m(Q)}function b(w,O,I,k){var M=1-k;return M*(M*w+2*k*O)+k*k*I}function S(w,O,I,k){return 2*((1-k)*(O-w)+k*(I-O))}function E(w,O,I,k,M){var j=w-2*O+I,P=2*(O-w),X=w-k,F=0;if(e(j)){if(l(P)){var U=-X/P;U>=0&&U<=1&&(M[F++]=U)}}else{var K=P*P-4*j*X;if(e(K)){var U=-P/(2*j);U>=0&&U<=1&&(M[F++]=U)}else if(K>0){var z=m(K),U=(-P+z)/(2*j),V=(-P-z)/(2*j);U>=0&&U<=1&&(M[F++]=U),V>=0&&V<=1&&(M[F++]=V)}}return F}function C(w,O,I){var k=w+I-2*O;return k===0?.5:(w-O)/k}function _(w,O,I,k,M){var j=(O-w)*k+w,P=(I-O)*k+O,X=(P-j)*k+j;M[0]=w,M[1]=j,M[2]=X,M[3]=X,M[4]=P,M[5]=I}function T(w,O,I,k,M,j,P,X,F){var U,K=.005,z=Infinity;i[0]=P,i[1]=X;for(var V=0;V<1;V+=.05){t[0]=b(w,I,M,V),t[1]=b(O,k,j,V);var Q=x(i,t);Q<z&&(U=V,z=Q)}z=Infinity;for(var G=0;G<32&&!(K<d);G++){var te=U-K,q=U+K;t[0]=b(w,I,M,te),t[1]=b(O,k,j,te);var Q=x(t,i);if(te>=0&&Q<z)U=te,z=Q;else{o[0]=b(w,I,M,q),o[1]=b(O,k,j,q);var se=x(o,i);q<=1&&se<z?(U=q,z=se):K*=.5}}return F&&(F[0]=b(w,I,M,U),F[1]=b(O,k,j,U)),m(z)}D.cubicAt=r,D.cubicDerivativeAt=a,D.cubicRootAt=c,D.cubicExtrema=h,D.cubicSubdivide=g,D.cubicProjectPoint=A,D.quadraticAt=b,D.quadraticDerivativeAt=S,D.quadraticRootAt=E,D.quadraticExtremum=C,D.quadraticSubdivide=_,D.quadraticProjectPoint=T},Sp2Z:function(R,D,n){var y=n("3LNs"),f=n("/y7N"),x=n("AVZG"),v=n("Znkb"),m=y.extend({makeElOption:function(i,t,o,e,l){var r=o.axis,a=r.grid,c=e.get("type"),h=p(a,r).getOtherAxis(r).getGlobalExtent(),g=r.toGlobalCoord(r.dataToCoord(t,!0));if(c&&c!=="none"){var A=f.buildElStyle(e),b=d[c](r,g,h);b.style=A,i.graphicKey=b.type,i.pointer=b}var S=x.layout(a.model,o);f.buildCartesianSingleLabelElOption(t,i,S,o,e,l)},getHandleTransform:function(i,t,o){var e=x.layout(t.axis.grid.model,t,{labelInside:!1});return e.labelMargin=o.get("handle.margin"),{position:f.getTransformedPosition(t.axis,i,e),rotation:e.rotation+(e.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(i,t,o,e){var l=o.axis,r=l.grid,a=l.getGlobalExtent(!0),c=p(r,l).getOtherAxis(l).getGlobalExtent(),h=l.dim==="x"?0:1,g=i.position;g[h]+=t[h],g[h]=Math.min(a[1],g[h]),g[h]=Math.max(a[0],g[h]);var A=(c[1]+c[0])/2,b=[A,A];b[h]=g[h];var S=[{verticalAlign:"middle"},{align:"center"}];return{position:g,rotation:i.rotation,cursorPoint:b,tooltipOption:S[h]}}});function p(i,t){var o={};return o[t.dim+"AxisIndex"]=t.index,i.getCartesian(o)}var d={line:function(i,t,o){var e=f.makeLineShape([t,o[0]],[t,o[1]],u(i));return{type:"Line",subPixelOptimize:!0,shape:e}},shadow:function(i,t,o){var e=Math.max(1,i.getBandWidth()),l=o[1]-o[0];return{type:"Rect",shape:f.makeRectShape([t-e/2,o[0]],[e,l],u(i))}}};function u(i){return i.dim==="x"?0:1}v.registerAxisPointerClass("CartesianAxisPointer",m);var s=m;R.exports=s},Sq3C:function(R,D,n){var y=n("sKgW"),f=n("zoYe"),x=n("wy8a"),v=n("quyA"),m=n("Z1HP"),p=n("Em2t"),d=Math.ceil;function u(s,i){i=i===void 0?" ":f(i);var t=i.length;if(t<2)return t?y(i,s):i;var o=y(i,d(s/m(i)));return v(i)?x(p(o),0,s).join(""):o.slice(0,s)}R.exports=u},SqI9:function(R,D,n){var y=n("y+Vt"),f=n("iXp4"),x=y.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:f(y.prototype.brush),buildPath:function(m,p){var d=p.cx,u=p.cy,s=Math.max(p.r0||0,0),i=Math.max(p.r,0),t=p.startAngle,o=p.endAngle,e=p.clockwise,l=Math.cos(t),r=Math.sin(t);m.moveTo(l*s+d,r*s+u),m.lineTo(l*i+d,r*i+u),m.arc(d,u,i,t,o,!e),m.lineTo(Math.cos(o)*s+d,Math.sin(o)*s+u),s!==0&&m.arc(d,u,s,o,t,e),m.closePath()}});R.exports=x},SrGk:function(R,D,n){var y=n("hydK"),f=y.createElement,x=n("bYtY"),v=n("y+Vt"),m=n("Dagg"),p=n("dqUG"),d=n("P47w"),u=d.path,s=d.image,i=d.text,t="0",o="1";function e(r,a,c,h,g){this._zrId=r,this._svgRoot=a,this._tagNames=typeof c=="string"?[c]:c,this._markLabel=h,this._domName=g||"_dom",this.nextId=0}e.prototype.createElement=f,e.prototype.getDefs=function(r){var a=this._svgRoot,c=this._svgRoot.getElementsByTagName("defs");return c.length===0?r?(c=a.insertBefore(this.createElement("defs"),a.firstChild),c.contains||(c.contains=function(h){var g=c.children;if(!g)return!1;for(var A=g.length-1;A>=0;--A)if(g[A]===h)return!0;return!1}),c):null:c[0]},e.prototype.update=function(r,a){if(!r)return;var c=this.getDefs(!1);if(r[this._domName]&&c.contains(r[this._domName]))typeof a=="function"&&a(r);else{var h=this.add(r);h&&(r[this._domName]=h)}},e.prototype.addDom=function(r){var a=this.getDefs(!0);a.appendChild(r)},e.prototype.removeDom=function(r){var a=this.getDefs(!1);a&&r[this._domName]&&(a.removeChild(r[this._domName]),r[this._domName]=null)},e.prototype.getDoms=function(){var r=this.getDefs(!1);if(!r)return[];var a=[];return x.each(this._tagNames,function(c){var h=r.getElementsByTagName(c);a=a.concat([].slice.call(h))}),a},e.prototype.markAllUnused=function(){var r=this.getDoms(),a=this;x.each(r,function(c){c[a._markLabel]=t})},e.prototype.markUsed=function(r){r&&(r[this._markLabel]=o)},e.prototype.removeUnused=function(){var r=this.getDefs(!1);if(!r)return;var a=this.getDoms(),c=this;x.each(a,function(h){h[c._markLabel]!==o&&r.removeChild(h)})},e.prototype.getSvgProxy=function(r){return r instanceof v?u:r instanceof m?s:r instanceof p?i:u},e.prototype.getTextSvgElement=function(r){return r.__textSvgEl},e.prototype.getSvgElement=function(r){return r.__svgEl};var l=e;R.exports=l},Swgg:function(R,D,n){var y=n("fc+c"),f=y.extend({type:"dataZoom.select"});R.exports=f},Sxd8:function(R,D,n){var y=n("ZCgT");function f(x){var v=y(x),m=v%1;return v===v?m?v-m:v:0}R.exports=f},T1rO:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("zdCA"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},T4UG:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("bYtY"),v=n("ItGF"),m=n("7aKB"),p=m.formatTime,d=m.encodeHTML,u=m.addCommas,s=m.getTooltipMarker,i=n("4NO4"),t=n("bLfw"),o=n("5Hur"),e=n("OKJ2"),l=n("+TT/"),r=l.getLayoutParams,a=l.mergeLayoutParam,c=n("9H2F"),h=c.createTask,g=n("D5nY"),A=g.prepareSource,b=g.getSource,S=n("KxfA"),E=S.retrieveRawValue,C=i.makeInner(),_=t.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(F,U,K,z){this.seriesIndex=this.componentIndex,this.dataTask=h({count:O,reset:I}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(F,K),A(this);var V=this.getInitialData(F,K);M(V,this),this.dataTask.context.data=V,C(this).dataBeforeProcessed=V,T(this)},mergeDefaultAndTheme:function(F,U){var K=this.layoutMode,z=K?r(F):{},V=this.subType;t.hasClass(V)&&(V+="Series"),x.merge(F,U.getTheme().get(this.subType)),x.merge(F,this.getDefaultOption()),i.defaultEmphasis(F,"label",["show"]),this.fillDataTextStyle(F.data),K&&a(F,z,K)},mergeOption:function(F,U){F=x.merge(this.option,F,!0),this.fillDataTextStyle(F.data);var K=this.layoutMode;K&&a(this.option,F,K),A(this);var z=this.getInitialData(F,U);M(z,this),this.dataTask.dirty(),this.dataTask.context.data=z,C(this).dataBeforeProcessed=z,T(this)},fillDataTextStyle:function(F){if(F&&!x.isTypedArray(F))for(var U=["show"],K=0;K<F.length;K++)F[K]&&F[K].label&&i.defaultEmphasis(F[K],"label",U)},getInitialData:function(){},appendData:function(F){var U=this.getRawData();U.appendData(F.data)},getData:function(F){var U=P(this);if(U){var K=U.context.data;return F==null?K:K.getLinkedData(F)}else return C(this).data},setData:function(F){var U=P(this);if(U){var K=U.context;K.data!==F&&U.modifyOutputEnd&&U.setOutputEnd(F.count()),K.outputData=F,U!==this.dataTask&&(K.data=F)}C(this).data=F},getSource:function(){return b(this)},getRawData:function(){return C(this).dataBeforeProcessed},getBaseAxis:function(){var F=this.coordinateSystem;return F&&F.getBaseAxis&&F.getBaseAxis()},formatTooltip:function(F,U,K,z){var V=this;z=z||"html";var Q=z==="html"?"<br/>":`
|
|
|
`,G=z==="richText",te={},q=0;function se(be){var Ce=x.reduce(be,function(rt,St,ft){var He=xe.getDimensionInfo(ft);return rt|=He&&He.tooltip!==!1&&He.displayName!=null},0),Be=[];Oe.length?x.each(Oe,function(rt){fe(E(xe,F,rt),rt)}):x.each(be,fe);function fe(rt,St){var ft=xe.getDimensionInfo(St);if(!ft||ft.otherDims.tooltip===!1)return;var He=ft.type,er="sub"+V.seriesIndex+"at"+q,ct=s({color:ut,type:"subItem",renderMode:z,markerId:er}),Kt=typeof ct=="string"?ct:ct.content,fr=(Ce?Kt+d(ft.displayName||"-")+": ":"")+d(He==="ordinal"?rt+"":He==="time"?U?"":p("yyyy/MM/dd hh:mm:ss",rt):u(rt));fr&&Be.push(fr),G&&(te[er]=ut,++q)}var we=Ce?G?`
|
|
|
`:"<br/>":"",Re=we+Be.join(we||", ");return{renderMode:z,content:Re,style:te}}function re(be){return{renderMode:z,content:d(u(be)),style:te}}var xe=this.getData(),Oe=xe.mapDimension("defaultedTooltip",!0),Me=Oe.length,Qe=this.getRawValue(F),Ve=x.isArray(Qe),ut=xe.getItemVisual(F,"color");x.isObject(ut)&&ut.colorStops&&(ut=(ut.colorStops[0]||{}).color),ut=ut||"transparent";var Fe=Me>1||Ve&&!Me?se(Qe):re(Me?E(xe,F,Oe[0]):Ve?Qe[0]:Qe),ue=Fe.content,et=V.seriesIndex+"at"+q,he=s({color:ut,type:"item",renderMode:z,markerId:et});te[et]=ut,++q;var J=xe.getName(F),Y=this.name;i.isNameSpecified(this)||(Y=""),Y=Y?d(Y)+(U?": ":Q):"";var $=typeof he=="string"?he:he.content,de=U?$+Y+ue:Y+$+(J?d(J)+": "+ue:ue);return{html:de,markers:te}},isAnimationEnabled:function(){if(v.node)return!1;var F=this.getShallow("animation");return F&&(this.getData().count()>this.getShallow("animationThreshold")&&(F=!1)),F},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(F,U,K){var z=this.ecModel,V=o.getColorFromPalette.call(this,F,U,K);return V||(V=z.getColorFromPalette(F,U,K)),V},coordDimToDataDim:function(F){return this.getRawData().mapDimension(F,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});x.mixin(_,e),x.mixin(_,o);function T(F){var U=F.name;i.isNameSpecified(F)||(F.name=w(F)||U)}function w(F){var U=F.getRawData(),K=U.mapDimension("seriesName",!0),z=[];return x.each(K,function(V){var Q=U.getDimensionInfo(V);Q.displayName&&z.push(Q.displayName)}),z.join(" ")}function O(F){return F.model.getRawData().count()}function I(F){var U=F.model;return U.setData(U.getRawData().cloneShallow()),k}function k(F,U){U.outputData&&F.end>U.outputData.count()&&U.model.getRawData().cloneShallow(U.outputData)}function M(F,U){x.each(F.CHANGABLE_METHODS,function(K){F.wrapMethod(K,x.curry(j,U))})}function j(F){var U=P(F);U&&U.setOutputEnd(this.count())}function P(F){var U=(F.ecModel||{}).scheduler,K=U&&U.getPipeline(F.uid);if(K){var z=K.currentTask;if(z){var V=z.agentStubMap;V&&(z=V.get(F.uid))}return z}}var X=_;R.exports=X},T6xi:function(R,D,n){var y=n("YgsL"),f=n("nCxF");function x(v,m,p){var d=m.points,u=m.smooth;if(d&&d.length>=2){if(u&&u!=="spline"){var s=f(d,u,p,m.smoothConstraint);v.moveTo(d[0][0],d[0][1]);for(var i=d.length,t=0;t<(p?i:i-1);t++){var o=s[t*2],e=s[t*2+1],l=d[(t+1)%i];v.bezierCurveTo(o[0],o[1],e[0],e[1],l[0],l[1])}}else{u==="spline"&&(d=y(d,p)),v.moveTo(d[0][0],d[0][1]);for(var t=1,r=d.length;t<r;t++)v.lineTo(d[t][0],d[t][1])}p&&v.closePath()}}D.buildPath=x},TIY9:function(R,D,n){var y=n("bYtY"),f=y.each,x=n("vafp"),v=n("4NO4"),m=v.makeInner,p=n("Mgri"),d=n("F5Ls"),u=n("a9QJ"),s=n("p/La"),i=m(),t={load:function(e,l,r){var a=i(l).parsed;if(a)return a;var c=l.specialAreas||{},h=l.geoJSON,g;try{g=h?x(h,r):[]}catch(A){throw new Error(`Invalid geoJson format
|
|
|
`+A.message)}return p(e,g),f(g,function(A){var b=A.name;d(e,A),u(e,A),s(e,A);var S=c[b];S&&A.transformTo(S.left,S.top,S.width,S.height)}),i(l).parsed={regions:g,boundingRect:o(g)}}};function o(e){for(var l,r=0;r<e.length;r++){var a=e[r].getBoundingRect();l=l||a.clone(),l.union(a)}return l}R.exports=t},TJmX:function(R,D,n){var y=n("zM3Q"),f=["itemStyle","borderColor"],x=["itemStyle","borderColor0"],v=["itemStyle","color"],m=["itemStyle","color0"],p={seriesType:"candlestick",plan:y(),performRawSeries:!0,reset:function(d,u){var s=d.getData();if(s.setVisual({legendSymbol:"roundRect",colorP:o(1,d),colorN:o(-1,d),borderColorP:e(1,d),borderColorN:e(-1,d)}),u.isSeriesFiltered(d))return;var i=d.pipelineContext.large;return!i&&{progress:t};function t(l,r){for(var a;(a=l.next())!=null;){var c=r.getItemModel(a),h=r.getItemLayout(a).sign;r.setItemVisual(a,{color:o(h,c),borderColor:e(h,c)})}}function o(l,r){return r.get(l>0?v:m)}function e(l,r){return r.get(l>0?f:x)}}};R.exports=p},TWL2:function(R,D,n){var y=n("IwbS"),f=n("bYtY"),x=n("6Ic6");function v(s,i){y.Group.call(this);var t=new y.Polygon,o=new y.Polyline,e=new y.Text;this.add(t),this.add(o),this.add(e),this.highDownOnUpdate=function(l,r){r==="emphasis"?(o.ignore=o.hoverIgnore,e.ignore=e.hoverIgnore):(o.ignore=o.normalIgnore,e.ignore=e.normalIgnore)},this.updateData(s,i,!0)}var m=v.prototype,p=["itemStyle","opacity"];m.updateData=function(s,i,t){var o=this.childAt(0),e=s.hostModel,l=s.getItemModel(i),r=s.getItemLayout(i),a=s.getItemModel(i).get(p);a=a==null?1:a,o.useStyle({}),t?(o.setShape({points:r.points}),o.setStyle({opacity:0}),y.initProps(o,{style:{opacity:a}},e,i)):y.updateProps(o,{style:{opacity:a},shape:{points:r.points}},e,i);var c=l.getModel("itemStyle"),h=s.getItemVisual(i,"color");o.setStyle(f.defaults({lineJoin:"round",fill:h},c.getItemStyle(["opacity"]))),o.hoverStyle=c.getModel("emphasis").getItemStyle(),this._updateLabel(s,i),y.setHoverStyle(this)},m._updateLabel=function(s,i){var t=this.childAt(1),o=this.childAt(2),e=s.hostModel,l=s.getItemModel(i),r=s.getItemLayout(i),a=r.label,c=s.getItemVisual(i,"color");y.updateProps(t,{shape:{points:a.linePoints||a.linePoints}},e,i),y.updateProps(o,{style:{x:a.x,y:a.y}},e,i),o.attr({rotation:a.rotation,origin:[a.x,a.y],z2:10});var h=l.getModel("label"),g=l.getModel("emphasis.label"),A=l.getModel("labelLine"),b=l.getModel("emphasis.labelLine"),c=s.getItemVisual(i,"color");y.setLabelStyle(o.style,o.hoverStyle={},h,g,{labelFetcher:s.hostModel,labelDataIndex:i,defaultText:s.getName(i),autoColor:c,useInsideStyle:!!a.inside},{textAlign:a.textAlign,textVerticalAlign:a.verticalAlign}),o.ignore=o.normalIgnore=!h.get("show"),o.hoverIgnore=!g.get("show"),t.ignore=t.normalIgnore=!A.get("show"),t.hoverIgnore=!b.get("show"),t.setStyle({stroke:c}),t.setStyle(A.getModel("lineStyle").getLineStyle()),t.hoverStyle=b.getModel("lineStyle").getLineStyle()},f.inherits(v,y.Group);var d=x.extend({type:"funnel",render:function(s,i,t){var o=s.getData(),e=this._data,l=this.group;o.diff(e).add(function(r){var a=new v(o,r);o.setItemGraphicEl(r,a),l.add(a)}).update(function(r,a){var c=e.getItemGraphicEl(a);c.updateData(o,r),l.add(c),o.setItemGraphicEl(r,c)}).remove(function(r){var a=e.getItemGraphicEl(r);l.remove(a)}).execute(),this._data=o},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),u=d;R.exports=u},TYVI:function(R,D,n){var y=n("5GtS"),f=n("T4UG"),x=f.extend({type:"series.gauge",getInitialData:function(m,p){return y(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),v=x;R.exports=v},TdNH:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("m546")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="CopyOutlined";var i=v.forwardRef(s);D.default=i},Tghj:function(R,D,n){(function(y){var f;typeof window!="undefined"?f=window.__DEV__:typeof y!="undefined"&&(f=y.__DEV__),typeof f=="undefined"&&(f=!0);var x=f;D.__DEV__=x}).call(this,n("yLpj"))},ThAp:function(R,D,n){var y=n("bYtY"),f=n("5GtS"),x=n("T4UG"),v=n("7aKB"),m=v.encodeHTML,p=v.addCommas,d=n("cCMj"),u=n("KxfA"),s=u.retrieveRawAttr,i=n("W4dC"),t=n("D5nY"),o=t.makeSeriesEncodeForNameBased,e=x.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(r){for(var a=f(this,{coordDimensions:["value"],encodeDefaulter:y.curry(o,this)}),c=a.mapDimension("value"),h=y.createHashMap(),g=[],A=[],b=0,S=a.count();b<S;b++){var E=a.getName(b);h.set(E,!0),g.push({name:E,value:a.get(c,b),selected:s(a,b,"selected")})}var C=i.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return y.each(C.regions,function(_){var T=_.name;h.get(T)||(g.push({name:T}),A.push(T))}),this.updateSelectedMap(g),a.appendValues([],A),a},getHostGeoModel:function(){var r=this.option.geoIndex;return r!=null?this.dependentModels.geo[r]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(r){var a=this.getData();return a.get(a.mapDimension("value"),r)},getRegionModel:function(r){var a=this.getData();return a.getItemModel(a.indexOfName(r))},formatTooltip:function(r){for(var a=this.getData(),c=p(this.getRawValue(r)),h=a.getName(r),g=this.seriesGroup,A=[],b=0;b<g.length;b++){var S=g[b].originalData.indexOfName(h),E=a.mapDimension("value");isNaN(g[b].originalData.get(E,S))||A.push(m(g[b].name))}return A.join(", ")+"<br />"+m(h+" : "+c)},getTooltipPosition:function(r){if(r!=null){var a=this.getData().getName(r),c=this.coordinateSystem,h=c.getRegion(a);return h&&c.dataToPoint(h.center)}},setZoom:function(r){this.option.zoom=r},setCenter:function(r){this.option.center=r},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});y.mixin(e,d);var l=e;R.exports=l},TkdX:function(R,D,n){var y=n("bYtY"),f=n("IwbS"),x={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},v=2,m=4;function p(e,l,r){f.Group.call(this);var a=new f.Sector({z2:v});a.seriesIndex=l.seriesIndex;var c=new f.Text({z2:m,silent:e.getModel("label").get("silent")});this.add(a),this.add(c),this.updateData(!0,e,"normal",l,r);function h(){c.ignore=c.hoverIgnore}function g(){c.ignore=c.normalIgnore}this.on("emphasis",h).on("normal",g).on("mouseover",h).on("mouseout",g)}var d=p.prototype;d.updateData=function(e,l,r,a,c){this.node=l,l.piece=this,a=a||this._seriesModel,c=c||this._ecModel;var h=this.childAt(0);h.dataIndex=l.dataIndex;var g=l.getModel(),A=l.getLayout(),b=y.extend({},A);b.label=null;var S=s(l,a,c);o(l,a,S);var E=g.getModel("itemStyle").getItemStyle(),C;if(r==="normal")C=E;else{var _=g.getModel(r+".itemStyle").getItemStyle();C=y.merge(_,E)}C=y.defaults({lineJoin:"bevel",fill:C.fill||S},C),e?(h.setShape(b),h.shape.r=A.r0,f.updateProps(h,{shape:{r:A.r}},a,l.dataIndex),h.useStyle(C)):typeof C.fill=="object"&&C.fill.type||typeof h.style.fill=="object"&&h.style.fill.type?(f.updateProps(h,{shape:b},a),h.useStyle(C)):f.updateProps(h,{shape:b,style:C},a),this._updateLabel(a,S,r);var T=g.getShallow("cursor");if(T&&h.attr("cursor",T),e){var w=a.getShallow("highlightPolicy");this._initEvents(h,l,a,w)}this._seriesModel=a||this._seriesModel,this._ecModel=c||this._ecModel,f.setHoverStyle(this)},d.onEmphasis=function(e){var l=this;this.node.hostTree.root.eachNode(function(r){r.piece&&(l.node===r?r.piece.updateData(!1,r,"emphasis"):t(r,l.node,e)?r.piece.childAt(0).trigger("highlight"):e!==x.NONE&&r.piece.childAt(0).trigger("downplay"))})},d.onNormal=function(){this.node.hostTree.root.eachNode(function(e){e.piece&&e.piece.updateData(!1,e,"normal")})},d.onHighlight=function(){this.updateData(!1,this.node,"highlight")},d.onDownplay=function(){this.updateData(!1,this.node,"downplay")},d._updateLabel=function(e,l,r){var a=this.node.getModel(),c=a.getModel("label"),h=r==="normal"||r==="emphasis"?c:a.getModel(r+".label"),g=a.getModel("emphasis.label"),A=y.retrieve(e.getFormattedLabel(this.node.dataIndex,r,null,null,"label"),this.node.name);U("show")===!1&&(A="");var b=this.node.getLayout(),S=h.get("minAngle");S==null&&(S=c.get("minAngle")),S=S/180*Math.PI;var E=b.endAngle-b.startAngle;S!=null&&Math.abs(E)<S&&(A="");var C=this.childAt(1);f.setLabelStyle(C.style,C.hoverStyle||{},c,g,{defaultText:h.getShallow("show")?A:null,autoColor:l,useInsideStyle:!0});var _=(b.startAngle+b.endAngle)/2,T=Math.cos(_),w=Math.sin(_),O,I=U("position"),k=U("distance")||0,M=U("align");I==="outside"?(O=b.r+k,M=_>Math.PI/2?"right":"left"):!M||M==="center"?(O=(b.r+b.r0)/2,M="center"):M==="left"?(O=b.r0+k,_>Math.PI/2&&(M="right")):M==="right"&&(O=b.r-k,_>Math.PI/2&&(M="left")),C.attr("style",{text:A,textAlign:M,textVerticalAlign:U("verticalAlign")||"middle",opacity:U("opacity")});var j=O*T+b.cx,P=O*w+b.cy;C.attr("position",[j,P]);var X=U("rotate"),F=0;X==="radial"?(F=-_,F<-Math.PI/2&&(F+=Math.PI)):X==="tangential"?(F=Math.PI/2-_,F>Math.PI/2?F-=Math.PI:F<-Math.PI/2&&(F+=Math.PI)):typeof X=="number"&&(F=X*Math.PI/180),C.attr("rotation",F);function U(K){var z=h.get(K);return z==null?c.get(K):z}},d._initEvents=function(e,l,r,a){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var c=this,h=function(){c.onEmphasis(a)},g=function(){c.onNormal()},A=function(){c.onDownplay()},b=function(){c.onHighlight()};r.isAnimationEnabled()&&e.on("mouseover",h).on("mouseout",g).on("emphasis",h).on("normal",g).on("downplay",A).on("highlight",b)},y.inherits(p,f.Group);var u=p;function s(e,l,r){var a=e.getVisual("color"),c=e.getVisual("visualMeta");(!c||c.length===0)&&(a=null);var h=e.getModel("itemStyle").get("color");if(h)return h;if(a)return a;if(e.depth===0)return r.option.color[0];var g=r.option.color.length;return h=r.option.color[i(e)%g],h}function i(e){for(var l=e;l.depth>1;)l=l.parentNode;var r=e.getAncestors()[0];return y.indexOf(r.children,l)}function t(e,l,r){return r===x.NONE?!1:r===x.SELF?e===l:r===x.ANCESTOR?e===l||e.isAncestorOf(l):e===l||e.isDescendantOf(l)}function o(e,l,r){var a=l.getData();a.setItemVisual(e.dataIndex,"color",r)}R.exports=u},Tp9H:function(R,D,n){var y=n("ItGF"),f=n("Kagy"),x=n("IUWy"),v=f.toolbox.saveAsImage;function m(u){this.model=u}m.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:v.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:v.lang.slice()},m.prototype.unusable=!y.canvasSupported;var p=m.prototype;p.onclick=function(u,s){var i=this.model,t=i.get("name")||u.get("title.0.text")||"echarts",o=s.getZr().painter.getType()==="svg",e=o?"svg":i.get("type",!0)||"png",l=s.getConnectedDataURL({type:e,backgroundColor:i.get("backgroundColor",!0)||u.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(typeof MouseEvent=="function"&&!y.browser.ie&&!y.browser.edge){var r=document.createElement("a");r.download=t+"."+e,r.target="_blank",r.href=l;var a=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(a)}else if(window.navigator.msSaveOrOpenBlob){for(var c=atob(l.split(",")[1]),h=c.length,g=new Uint8Array(h);h--;)g[h]=c.charCodeAt(h);var A=new Blob([g]);window.navigator.msSaveOrOpenBlob(A,t+"."+e)}else{var b=i.get("lang"),S='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',E=window.open();E.document.write(S)}},x.register("saveAsImage",m);var d=m;R.exports=d},"U/Mo":function(R,D){function n(f){var x=f.coordinateSystem;if(x.type!=="view")return 1;var v=f.option.nodeScaleRatio,m=x.scale,p=m&&m[0]||1,d=x.getZoom(),u=(d-1)*v+1;return u/p}function y(f){var x=f.getVisual("symbolSize");return x instanceof Array&&(x=(x[0]+x[1])/2),+x}D.getNodeGlobalScale=n,D.getSymbolSize=y},UADf:function(R,D,n){},UESt:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="RightOutlined";var d=D.a=f.forwardRef(p)},"UNi/":function(R,D){function n(y,f){for(var x=-1,v=Array(y);++x<y;)v[x]=f(x);return v}R.exports=n},UOVi:function(R,D,n){var y=n("bYtY"),f=n("7aKB"),x=["x","y","z","radius","angle","single"],v=["cartesian2d","polar","singleAxis"];function m(s){return y.indexOf(v,s)>=0}function p(s,i){s=s.slice();var t=y.map(s,f.capitalFirst);i=(i||[]).slice();var o=y.map(i,f.capitalFirst);return function(e,l){y.each(s,function(r,a){for(var c={name:r,capital:t[a]},h=0;h<i.length;h++)c[i[h]]=r+o[h];e.call(l,c)})}}var d=p(x,["axisIndex","axis","index","id"]);function u(s,i,t){return function(r){var a={nodes:[],records:{}};if(i(function(g){a.records[g.name]={}}),!r)return a;l(r,a);var c;do c=!1,s(h);while(c);function h(g){!o(g,a)&&e(g,a)&&(l(g,a),c=!0)}return a};function o(r,a){return y.indexOf(a.nodes,r)>=0}function e(r,a){var c=!1;return i(function(h){y.each(t(r,h)||[],function(g){a.records[h.name][g]&&(c=!0)})}),c}function l(r,a){a.nodes.push(r),i(function(c){y.each(t(r,c)||[],function(h){a.records[c.name][h]=!0})})}}D.isCoordSupported=m,D.createNameEach=p,D.eachAxisDim=d,D.createLinkedNodesFinder=u},Uc92:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};D.default=y},UnoB:function(R,D,n){var y=n("bYtY"),f=n("OELB");function x(p,d){p.eachSeriesByType("themeRiver",function(u){var s=u.getData(),i=u.coordinateSystem,t={},o=i.getRect();t.rect=o;var e=u.get("boundaryGap"),l=i.getAxis();if(t.boundaryGap=e,l.orient==="horizontal"){e[0]=f.parsePercent(e[0],o.height),e[1]=f.parsePercent(e[1],o.height);var r=o.height-e[0]-e[1];v(s,u,r)}else{e[0]=f.parsePercent(e[0],o.width),e[1]=f.parsePercent(e[1],o.width);var a=o.width-e[0]-e[1];v(s,u,a)}s.setLayout("layoutInfo",t)})}function v(p,d,u){if(!p.count())return;for(var s=d.coordinateSystem,i=d.getLayerSeries(),t=p.mapDimension("single"),o=p.mapDimension("value"),e=y.map(i,function(S){return y.map(S.indices,function(E){var C=s.dataToPoint(p.get(t,E));return C[1]=p.get(o,E),C})}),l=m(e),r=l.y0,a=u/l.max,c=i.length,h=i[0].indices.length,g,A=0;A<h;++A){g=r[A]*a,p.setItemLayout(i[0].indices[A],{layerIndex:0,x:e[0][A][0],y0:g,y:e[0][A][1]*a});for(var b=1;b<c;++b)g+=e[b-1][A][1]*a,p.setItemLayout(i[b].indices[A],{layerIndex:b,x:e[b][A][0],y0:g,y:e[b][A][1]*a})}}function m(p){for(var d=p.length,u=p[0].length,s=[],i=[],t=0,o,e={},l=0;l<u;++l){for(var r=0,o=0;r<d;++r)o+=p[r][l][1];o>t&&(t=o),s.push(o)}for(var a=0;a<u;++a)i[a]=(t-s[a])/2;t=0;for(var c=0;c<u;++c){var h=s[c]+i[c];h>t&&(t=h)}return e.y0=i,e.max=t,e}R.exports=x},Urep:function(R,D,n){},V6Ve:function(R,D,n){var y=n("kekF"),f=y(Object.keys,Object);R.exports=f},V7ic:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("digP")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="FileTwoTone";var i=v.forwardRef(s);D.default=i},VFCP:function(R,D,n){n("dBmv"),n("KamJ")},VPsl:function(R,D){function n(y){y.eachSeriesByType("map",function(f){var x=f.get("color"),v=f.getModel("itemStyle"),m=v.get("areaColor"),p=v.get("color")||x[f.seriesIndex%x.length];f.getData().setVisual({areaColor:m,color:p})})}R.exports=n},VR9l:function(R,D,n){var y=n("KCsZ"),f=y([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),x={getItemStyle:function(v,m){var p=f(this,v,m),d=this.getBorderLineDash();return d&&(p.lineDash=d),p},getBorderLineDash:function(){var v=this.get("borderType");return v==="solid"||v==null?null:v==="dashed"?[5,5]:[1,1]}};R.exports=x},VSLf:function(R,D,n){n("I+Bx"),n("F0hE"),n("bBKM")},VSMT:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.decodeUTF8=y,D.encodeUTF8=f;function y(x){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(x))}catch(m){if(m instanceof URIError&&v)return x;throw m}}function f(x){return unescape(encodeURIComponent(x))}},VXYp:function(R,D,n){var y=n("bYtY"),f=n("SgGq"),x=n("iLNv"),v="\0_ec_dataZoom_roams";function m(e,l){var r=u(e),a=l.dataZoomId,c=l.coordId;y.each(r,function(A,b){var S=A.dataZoomInfos;S[a]&&y.indexOf(l.allCoordIds,c)<0&&(delete S[a],A.count--)}),i(r);var h=r[c];h||(h=r[c]={coordId:c,dataZoomInfos:{},count:0},h.controller=s(e,h),h.dispatchAction=y.curry(t,e)),!h.dataZoomInfos[a]&&h.count++,h.dataZoomInfos[a]=l;var g=o(h.dataZoomInfos);h.controller.enable(g.controlType,g.opt),h.controller.setPointerChecker(l.containsPoint),x.createOrUpdate(h,"dispatchAction",l.dataZoomModel.get("throttle",!0),"fixRate")}function p(e,l){var r=u(e);y.each(r,function(a){a.controller.dispose();var c=a.dataZoomInfos;c[l]&&(delete c[l],a.count--)}),i(r)}function d(e){return e.type+"\0_"+e.id}function u(e){var l=e.getZr();return l[v]||(l[v]={})}function s(e,l){var r=new f(e.getZr());return y.each(["pan","zoom","scrollMove"],function(a){r.on(a,function(c){var h=[];y.each(l.dataZoomInfos,function(g){if(!c.isAvailableBehavior(g.dataZoomModel.option))return;var A=(g.getRange||{})[a],b=A&&A(l.controller,c);!g.dataZoomModel.get("disabled",!0)&&b&&h.push({dataZoomId:g.dataZoomId,start:b[0],end:b[1]})}),h.length&&l.dispatchAction(h)})}),r}function i(e){y.each(e,function(l,r){l.count||(l.controller.dispose(),delete e[r])})}function t(e,l){e.dispatchAction({type:"dataZoom",batch:l})}function o(e){var l,r="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},c=!0;return y.each(e,function(h){var g=h.dataZoomModel,A=g.get("disabled",!0)?!1:g.get("zoomLock",!0)?"move":!0;a[r+A]>a[r+l]&&(l=A),c&=g.get("preventDefaultMouseMove",!0)}),{controlType:l,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!c}}}D.register=m,D.unregister=p,D.generateCoordId=d},VaNO:function(R,D){function n(y){return this.__data__.has(y)}R.exports=n},VaxA:function(R,D,n){var y=n("bYtY");function f(p,d,u){if(p&&y.indexOf(d,p.type)>=0){var s=u.getData().tree.root,i=p.targetNode;if(typeof i=="string"&&(i=s.getNodeById(i)),i&&s.contains(i))return{node:i};var t=p.targetNodeId;if(t!=null&&(i=s.getNodeById(t)))return{node:i}}}function x(p){for(var d=[];p;)p=p.parentNode,p&&d.push(p);return d.reverse()}function v(p,d){var u=x(p);return y.indexOf(u,d)>=0}function m(p,d){for(var u=[];p;){var s=p.dataIndex;u.push({name:p.name,dataIndex:s,value:d.getRawValue(s)}),p=p.parentNode}return u.reverse(),u}D.retrieveTargetInfo=f,D.getPathToRoot=x,D.aboveViewRoot=v,D.wrapTreePathInfo=m},Vi4m:function(R,D,n){var y=n("bYtY");function f(v){v!=null&&y.extend(this,v),this.otherDims={}}var x=f;R.exports=x},Vl3Y:function(R,D,n){"use strict";var y=n("pVnL"),f=n.n(y),x=n("J4zp"),v=n.n(x),m=n("lSNA"),p=n.n(m),d=n("q1tI"),u=n("TSYQ"),s=n.n(u),i=n("85Yc"),t=n("H84U"),o=n("BGR+"),e=d.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),l=d.createContext({updateItemErrors:function(){}}),r=function(Ht){var vr=Object(o.default)(Ht,["prefixCls"]);return d.createElement(i.FormProvider,vr)};function a(ge){return typeof ge=="object"&&ge!=null&&ge.nodeType===1}function c(ge,Ht){return(!Ht||ge!=="hidden")&&ge!=="visible"&&ge!=="clip"}function h(ge,Ht){if(ge.clientHeight<ge.scrollHeight||ge.clientWidth<ge.scrollWidth){var vr=getComputedStyle(ge,null);return c(vr.overflowY,Ht)||c(vr.overflowX,Ht)||function(At){var ir=function(lr){if(!lr.ownerDocument||!lr.ownerDocument.defaultView)return null;try{return lr.ownerDocument.defaultView.frameElement}catch(dn){return null}}(At);return!!ir&&(ir.clientHeight<At.scrollHeight||ir.clientWidth<At.scrollWidth)}(ge)}return!1}function g(ge,Ht,vr,At,ir,lr,dn,Ft){return lr<ge&&dn>Ht||lr>ge&&dn<Ht?0:lr<=ge&&Ft<=vr||dn>=Ht&&Ft>=vr?lr-ge-At:dn>Ht&&Ft<vr||lr<ge&&Ft>vr?dn-Ht+ir:0}var A=function(Ht,vr){var At=window,ir=vr.scrollMode,lr=vr.block,dn=vr.inline,Ft=vr.boundary,ur=vr.skipOverflowHiddenElements,Jt=typeof Ft=="function"?Ft:function(it){return it!==Ft};if(!a(Ht))throw new TypeError("Invalid target");for(var pt,at,Pr=document.scrollingElement||document.documentElement,un=[],_n=Ht;a(_n)&&Jt(_n);){if((_n=(at=(pt=_n).parentElement)==null?pt.getRootNode().host||null:at)===Pr){un.push(_n);break}_n!=null&&_n===document.body&&h(_n)&&!h(document.documentElement)||_n!=null&&h(_n,ur)&&un.push(_n)}for(var Xn=At.visualViewport?At.visualViewport.width:innerWidth,xi=At.visualViewport?At.visualViewport.height:innerHeight,Pn=window.scrollX||pageXOffset,Un=window.scrollY||pageYOffset,$t=Ht.getBoundingClientRect(),xt=$t.height,De=$t.width,ke=$t.top,Pe=$t.right,tt=$t.bottom,yt=$t.left,Et=lr==="start"||lr==="nearest"?ke:lr==="end"?tt:ke+xt/2,Yt=dn==="center"?yt+De/2:dn==="end"?Pe:yt,Rr=[],zr=0;zr<un.length;zr++){var hn=un[zr],jt=hn.getBoundingClientRect(),vt=jt.height,bt=jt.width,cr=jt.top,Qt=jt.right,Mt=jt.bottom,tr=jt.left;if(ir==="if-needed"&&ke>=0&&yt>=0&&tt<=xi&&Pe<=Xn&&ke>=cr&&tt<=Mt&&yt>=tr&&Pe<=Qt)return Rr;var Rt=getComputedStyle(hn),qt=parseInt(Rt.borderLeftWidth,10),Hr=parseInt(Rt.borderTopWidth,10),Nr=parseInt(Rt.borderRightWidth,10),Dr=parseInt(Rt.borderBottomWidth,10),cn=0,An=0,ri="offsetWidth"in hn?hn.offsetWidth-hn.clientWidth-qt-Nr:0,$n="offsetHeight"in hn?hn.offsetHeight-hn.clientHeight-Hr-Dr:0,fi="offsetWidth"in hn?hn.offsetWidth===0?0:bt/hn.offsetWidth:0,_i="offsetHeight"in hn?hn.offsetHeight===0?0:vt/hn.offsetHeight:0;if(Pr===hn)cn=lr==="start"?Et:lr==="end"?Et-xi:lr==="nearest"?g(Un,Un+xi,xi,Hr,Dr,Un+Et,Un+Et+xt,xt):Et-xi/2,An=dn==="start"?Yt:dn==="center"?Yt-Xn/2:dn==="end"?Yt-Xn:g(Pn,Pn+Xn,Xn,qt,Nr,Pn+Yt,Pn+Yt+De,De),cn=Math.max(0,cn+Un),An=Math.max(0,An+Pn);else{cn=lr==="start"?Et-cr-Hr:lr==="end"?Et-Mt+Dr+$n:lr==="nearest"?g(cr,Mt,vt,Hr,Dr+$n,Et,Et+xt,xt):Et-(cr+vt/2)+$n/2,An=dn==="start"?Yt-tr-qt:dn==="center"?Yt-(tr+bt/2)+ri/2:dn==="end"?Yt-Qt+Nr+ri:g(tr,Qt,bt,qt,Nr+ri,Yt,Yt+De,De);var Di=hn.scrollLeft,Wi=hn.scrollTop;Et+=Wi-(cn=Math.max(0,Math.min(Wi+cn/_i,hn.scrollHeight-vt/_i+$n))),Yt+=Di-(An=Math.max(0,Math.min(Di+An/fi,hn.scrollWidth-bt/fi+ri)))}Rr.push({el:hn,top:cn,left:An})}return Rr};function b(ge){return ge===Object(ge)&&Object.keys(ge).length!==0}function S(ge,Ht){Ht===void 0&&(Ht="auto");var vr="scrollBehavior"in document.body.style;ge.forEach(function(At){var ir=At.el,lr=At.top,dn=At.left;ir.scroll&&vr?ir.scroll({top:lr,left:dn,behavior:Ht}):(ir.scrollTop=lr,ir.scrollLeft=dn)})}function E(ge){return ge===!1?{block:"end",inline:"nearest"}:b(ge)?ge:{block:"start",inline:"nearest"}}function C(ge,Ht){var vr=ge.isConnected||ge.ownerDocument.documentElement.contains(ge);if(b(Ht)&&typeof Ht.behavior=="function")return Ht.behavior(vr?A(ge,Ht):[]);if(!vr)return;var At=E(Ht);return S(A(ge,At),At.behavior)}var _=C;function T(ge){return ge===void 0||ge===!1?[]:Array.isArray(ge)?ge:[ge]}function w(ge,Ht){if(!ge.length)return;var vr=ge.join("_");return Ht?"".concat(Ht,"_").concat(vr):vr}function O(ge){var Ht=T(ge);return Ht.join("_")}function I(ge){var Ht=Object(i.useForm)(),vr=v()(Ht,1),At=vr[0],ir=Object(d.useRef)({}),lr=Object(d.useMemo)(function(){return ge||f()(f()({},At),{__INTERNAL__:{itemRef:function(Ft){return function(ur){var Jt=O(Ft);ur?ir.current[Jt]=ur:delete ir.current[Jt]}}},scrollToField:function(Ft){var ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Jt=T(Ft),pt=w(Jt,lr.__INTERNAL__.name),at=pt?document.getElementById(pt):null;at&&_(at,f()({scrollMode:"if-needed",block:"nearest"},ur))},getFieldInstance:function(Ft){var ur=O(Ft);return ir.current[ur]}})},[ge,At]);return[lr]}var k=n("3Nzz"),M=function(ge,Ht){var vr={};for(var At in ge)Object.prototype.hasOwnProperty.call(ge,At)&&Ht.indexOf(At)<0&&(vr[At]=ge[At]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ir=0,At=Object.getOwnPropertySymbols(ge);ir<At.length;ir++)Ht.indexOf(At[ir])<0&&Object.prototype.propertyIsEnumerable.call(ge,At[ir])&&(vr[At[ir]]=ge[At[ir]]);return vr},j=function(Ht,vr){var At,ir=d.useContext(k.b),lr=d.useContext(t.b),dn=lr.getPrefixCls,Ft=lr.direction,ur=Ht.name,Jt=Ht.prefixCls,pt=Ht.className,at=pt===void 0?"":pt,Pr=Ht.size,un=Pr===void 0?ir:Pr,_n=Ht.form,Xn=Ht.colon,xi=Ht.labelAlign,Pn=Ht.labelCol,Un=Ht.wrapperCol,$t=Ht.hideRequiredMark,xt=Ht.layout,De=xt===void 0?"horizontal":xt,ke=Ht.scrollToFirstError,Pe=Ht.requiredMark,tt=Ht.onFinishFailed,yt=M(Ht,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed"]),Et=Object(d.useMemo)(function(){return Pe!==void 0?Pe:!$t},[$t,Pe]),Yt=dn("form",Jt),Rr=s()(Yt,(At={},p()(At,"".concat(Yt,"-").concat(De),!0),p()(At,"".concat(Yt,"-hide-required-mark"),Et===!1),p()(At,"".concat(Yt,"-rtl"),Ft==="rtl"),p()(At,"".concat(Yt,"-").concat(un),un),At),at),zr=I(_n),hn=v()(zr,1),jt=hn[0],vt=jt.__INTERNAL__;vt.name=ur;var bt=Object(d.useMemo)(function(){return{name:ur,labelAlign:xi,labelCol:Pn,wrapperCol:Un,vertical:De==="vertical",colon:Xn,requiredMark:Et,itemRef:vt.itemRef}},[ur,xi,Pn,Un,De,Xn,Et]);d.useImperativeHandle(vr,function(){return jt});var cr=function(Mt){tt&&tt(Mt),ke&&Mt.errorFields.length&&jt.scrollToField(Mt.errorFields[0].name)};return d.createElement(k.a,{size:un},d.createElement(e.Provider,{value:bt},d.createElement(i.default,f()({id:ur},yt,{onFinishFailed:cr,form:jt,className:Rr}))))},P=d.forwardRef(j),X=P,F=n("cDf5"),U=n.n(F),K=n("RIqP"),z=n.n(K),V=n("Y+p1"),Q=n.n(V),G=n("KW7l"),te=n("c+Xe"),q=n("qrJ5"),se=n("CWQg"),re=n("uaoM"),xe=n("/kpp"),Oe=n("YMnH"),Me=n("ZvpZ"),Qe=function(Ht){var vr=Ht.prefixCls,At=Ht.label,ir=Ht.htmlFor,lr=Ht.labelCol,dn=Ht.labelAlign,Ft=Ht.colon,ur=Ht.required,Jt=Ht.requiredMark,pt=Object(Oe.b)("Form"),at=v()(pt,1),Pr=at[0];return At?d.createElement(e.Consumer,{key:"label"},function(un){var _n,Xn=un.vertical,xi=un.labelAlign,Pn=un.labelCol,Un=un.colon,$t,xt=lr||Pn||{},De=dn||xi,ke="".concat(vr,"-item-label"),Pe=s()(ke,De==="left"&&"".concat(ke,"-left"),xt.className),tt=At,yt=Ft===!0||Un!==!1&&Ft!==!1,Et=yt&&!Xn;Et&&typeof At=="string"&&At.trim()!==""&&(tt=At.replace(/[:|:]\s*$/,"")),Jt==="optional"&&!ur&&(tt=d.createElement(d.Fragment,null,tt,d.createElement("span",{className:"".concat(vr,"-item-optional")},(Pr==null?void 0:Pr.optional)||(($t=Me.a.Form)===null||$t===void 0?void 0:$t.optional))));var Yt=s()((_n={},p()(_n,"".concat(vr,"-item-required"),ur),p()(_n,"".concat(vr,"-item-required-mark-optional"),Jt==="optional"),p()(_n,"".concat(vr,"-item-no-colon"),!yt),_n));return d.createElement(xe.a,f()({},xt,{className:Pe}),d.createElement("label",{htmlFor:ir,className:Yt,title:typeof At=="string"?At:""},tt))}):null},Ve=Qe,ut=n("gZBC"),Fe=n.n(ut),ue=n("kbBi"),et=n.n(ue),he=n("J84W"),J=n.n(he),Y=n("sKbD"),$=n.n(Y),de=n("YrtM"),be=n("HTfv"),Ce=n("hkKa");function Be(ge,Ht,vr){var At=d.useRef({errors:ge,visible:!!ge.length}),ir=Object(Ce.a)(),lr=function(){var Ft=At.current.visible,ur=!!ge.length,Jt=At.current.errors;At.current.errors=ge,At.current.visible=ur,Ft!==ur?Ht(ur):(Jt.length!==ge.length||Jt.some(function(pt,at){return pt!==ge[at]}))&&ir()};return d.useEffect(function(){if(!vr){var dn=setTimeout(lr,10);return function(){return clearTimeout(dn)}}},[ge]),vr&&lr(),[At.current.visible,At.current.errors]}var fe={success:J.a,warning:$.a,error:et.a,validating:Fe.a},we=function(Ht){var vr=Ht.prefixCls,At=Ht.wrapperCol,ir=Ht.children,lr=Ht.help,dn=Ht.errors,Ft=Ht.onDomErrorVisibleChange,ur=Ht.hasFeedback,Jt=Ht.validateStatus,pt=Ht.extra,at=Object(Ce.a)(),Pr="".concat(vr,"-item"),un=d.useContext(e),_n=At||un.wrapperCol||{},Xn=s()("".concat(Pr,"-control"),_n.className),xi=Be(dn,function(tt){tt&&Promise.resolve().then(function(){Ft(!0)}),at()},!!lr),Pn=v()(xi,2),Un=Pn[0],$t=Pn[1];d.useEffect(function(){return function(){Ft(!1)}},[]);var xt=Object(de.a)(function(){return $t},Un,function(tt,yt){return yt}),De=Jt&&fe[Jt],ke=ur&&De?d.createElement("span",{className:"".concat(Pr,"-children-icon")},d.createElement(De,null)):null,Pe=f()({},un);return delete Pe.labelCol,delete Pe.wrapperCol,d.createElement(e.Provider,{value:Pe},d.createElement(xe.a,f()({},_n,{className:Xn}),d.createElement("div",{className:"".concat(Pr,"-control-input")},d.createElement("div",{className:"".concat(Pr,"-control-input-content")},ir),ke),d.createElement(be.default,{motionDeadline:500,visible:Un,motionName:"show-help",onLeaveEnd:function(){Ft(!1)},motionAppear:!0,removeOnLeave:!0},function(tt){var yt=tt.className;return d.createElement("div",{className:s()("".concat(Pr,"-explain"),yt),key:"help"},xt.map(function(Et,Yt){return d.createElement("div",{key:Yt,role:"alert"},Et)}))}),pt&&d.createElement("div",{className:"".concat(Pr,"-extra")},pt)))},Re=we,rt=n("0n0R"),St=n("xEkU"),ft=n.n(St);function He(ge){var Ht=d.useState(ge),vr=v()(Ht,2),At=vr[0],ir=vr[1],lr=Object(d.useRef)(null),dn=Object(d.useRef)([]),Ft=Object(d.useRef)(!1);d.useEffect(function(){return function(){Ft.current=!0,ft.a.cancel(lr.current)}},[]);function ur(Jt){if(Ft.current)return;lr.current===null&&(dn.current=[],lr.current=ft()(function(){lr.current=null,ir(function(pt){var at=pt;return dn.current.forEach(function(Pr){at=Pr(at)}),at})})),dn.current.push(Jt)}return[At,ur]}function er(){var ge=d.useContext(e),Ht=ge.itemRef,vr=d.useRef({});function At(ir,lr){var dn=lr&&U()(lr)==="object"&&lr.ref,Ft=ir.join("_");return(vr.current.name!==Ft||vr.current.originRef!==dn)&&(vr.current.name=Ft,vr.current.originRef=dn,vr.current.ref=Object(te.a)(Ht(ir),dn)),vr.current.ref}return At}var ct=function(ge,Ht){var vr={};for(var At in ge)Object.prototype.hasOwnProperty.call(ge,At)&&Ht.indexOf(At)<0&&(vr[At]=ge[At]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ir=0,At=Object.getOwnPropertySymbols(ge);ir<At.length;ir++)Ht.indexOf(At[ir])<0&&Object.prototype.propertyIsEnumerable.call(ge,At[ir])&&(vr[At[ir]]=ge[At[ir]]);return vr},Kt=Object(se.a)("success","warning","error","validating",""),fr=d.memo(function(ge){var Ht=ge.children;return Ht},function(ge,Ht){return ge.value===Ht.value&&ge.update===Ht.update});function Gt(ge){return ge===null&&Object(re.a)(!1,"Form.Item","`null` is passed as `name` property"),!(ge==null)}function Pt(ge){var Ht=ge.name,vr=ge.fieldKey,At=ge.noStyle,ir=ge.dependencies,lr=ge.prefixCls,dn=ge.style,Ft=ge.className,ur=ge.shouldUpdate,Jt=ge.hasFeedback,pt=ge.help,at=ge.rules,Pr=ge.validateStatus,un=ge.children,_n=ge.required,Xn=ge.label,xi=ge.trigger,Pn=xi===void 0?"onChange":xi,Un=ge.validateTrigger,$t=ge.hidden,xt=ct(ge,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),De=d.useRef(!1),ke=d.useContext(t.b),Pe=ke.getPrefixCls,tt=d.useContext(e),yt=tt.name,Et=tt.requiredMark,Yt=d.useContext(l),Rr=Yt.updateItemErrors,zr=d.useState(!!pt),hn=v()(zr,2),jt=hn[0],vt=hn[1],bt=d.useRef(Pr),cr=He({}),Qt=v()(cr,2),Mt=Qt[0],tr=Qt[1],Rt=d.useContext(G.b),qt=Rt.validateTrigger,Hr=Un!==void 0?Un:qt;function Nr(it){De.current||vt(it)}var Dr=Gt(Ht),cn=d.useRef([]);d.useEffect(function(){return function(){De.current=!0,Rr(cn.current.join("__SPLIT__"),[])}},[]);var An=Pe("form",lr),ri=At?Rr:function(it,Le){tr(function(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Q()(je[it],Le)?je:f()(f()({},je),p()({},it,Le))})},$n=er();function fi(it,Le,je,Xe){var nt,Ze;if(At&&!$t)return it;var ot=[];Object.keys(Mt).forEach(function($r){ot=[].concat(z()(ot),z()(Mt[$r]||[]))});var Ct;pt!=null?Ct=T(pt):(Ct=je?je.errors:[],Ct=[].concat(z()(Ct),z()(ot)));var gt="";Pr!==void 0?gt=Pr:(je==null?void 0:je.validating)?gt="validating":((Ze=je==null?void 0:je.errors)===null||Ze===void 0?void 0:Ze.length)||ot.length?gt="error":(je==null?void 0:je.touched)&&(gt="success"),jt&&pt&&(bt.current=gt);var pr=(nt={},p()(nt,"".concat(An,"-item"),!0),p()(nt,"".concat(An,"-item-with-help"),jt||pt),p()(nt,"".concat(Ft),!!Ft),p()(nt,"".concat(An,"-item-has-feedback"),gt&&Jt),p()(nt,"".concat(An,"-item-has-success"),gt==="success"),p()(nt,"".concat(An,"-item-has-warning"),gt==="warning"),p()(nt,"".concat(An,"-item-has-error"),gt==="error"),p()(nt,"".concat(An,"-item-has-error-leave"),!pt&&jt&&bt.current==="error"),p()(nt,"".concat(An,"-item-is-validating"),gt==="validating"),p()(nt,"".concat(An,"-item-hidden"),$t),nt);return d.createElement(q.a,f()({className:s()(pr),style:dn,key:"row"},Object(o.default)(xt,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),d.createElement(Ve,f()({htmlFor:Le,required:Xe,requiredMark:Et},ge,{prefixCls:An})),d.createElement(Re,f()({},ge,je,{errors:Ct,prefixCls:An,onDomErrorVisibleChange:Nr,validateStatus:gt}),d.createElement(l.Provider,{value:{updateItemErrors:ri}},it)))}var _i=typeof un=="function",Di=d.useRef(0);if(Di.current+=1,!Dr&&!_i&&!ir)return fi(un);var Wi={};return typeof Xn=="string"&&(Wi.label=Xn),d.createElement(i.Field,f()({},ge,{messageVariables:Wi,trigger:Pn,validateTrigger:Hr,onReset:function(){Nr(!1)}}),function(it,Le,je){var Xe=Le.errors,nt=T(Ht).length&&Le?Le.name:[],Ze=w(nt,yt);if(At){if(cn.current=z()(nt),vr){var ot=Array.isArray(vr)?vr:[vr];cn.current=[].concat(z()(nt.slice(0,-1)),z()(ot))}Rr(cn.current.join("__SPLIT__"),Xe)}var Ct=_n!==void 0?_n:!!(at&&at.some(function(mn){if(mn&&U()(mn)==="object"&&mn.required)return!0;if(typeof mn=="function"){var Ar=mn(je);return Ar&&Ar.required}return!1})),gt=f()({},it),pr=null;if(Object(re.a)(!(ur&&ir),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(un)&&Dr)Object(re.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),pr=un;else if(_i&&(!(ur||ir)||Dr))Object(re.a)(!!(ur||ir),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object(re.a)(!Dr,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(ir&&!_i&&!Dr)Object(re.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object(rt.b)(un)){Object(re.a)(un.props.defaultValue===void 0,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var $r=f()(f()({},un.props),gt);$r.id||($r.id=Ze),Object(te.c)(un)&&($r.ref=$n(nt,un));var Yr=new Set([].concat(z()(T(Pn)),z()(T(Hr))));Yr.forEach(function(mn){$r[mn]=function(){for(var Ar,zn,Fr,Bn,bn,en=arguments.length,ti=new Array(en),pi=0;pi<en;pi++)ti[pi]=arguments[pi];(Fr=gt[mn])===null||Fr===void 0||(Ar=Fr).call.apply(Ar,[gt].concat(ti)),(bn=(Bn=un.props)[mn])===null||bn===void 0||(zn=bn).call.apply(zn,[Bn].concat(ti))}}),pr=d.createElement(fr,{value:gt[ge.valuePropName||"value"],update:Di.current},Object(rt.a)(un,$r))}else _i&&(ur||ir)&&!Dr?pr=un(je):(Object(re.a)(!nt.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),pr=un);return fi(pr,Ze,Le,Ct)})}var Xt=Pt,Ge=function(ge,Ht){var vr={};for(var At in ge)Object.prototype.hasOwnProperty.call(ge,At)&&Ht.indexOf(At)<0&&(vr[At]=ge[At]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ir=0,At=Object.getOwnPropertySymbols(ge);ir<At.length;ir++)Ht.indexOf(At[ir])<0&&Object.prototype.propertyIsEnumerable.call(ge,At[ir])&&(vr[At[ir]]=ge[At[ir]]);return vr},pe=function(Ht){var vr=Ht.children,At=Ge(Ht,["children"]);return Object(re.a)(!!At.name,"Form.List","Miss `name` prop."),d.createElement(i.List,At,function(ir,lr){return vr(ir.map(function(dn){return f()(f()({},dn),{fieldKey:dn.key})}),lr)})},oe=pe,lt=X;lt.Item=Xt,lt.List=oe,lt.useForm=I,lt.Provider=r,lt.create=function(){Object(re.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var qe=D.a=lt},VpOo:function(R,D){function n(y,f){var x=f.x,v=f.y,m=f.width,p=f.height,d=f.r,u,s,i,t;m<0&&(x=x+m,m=-m),p<0&&(v=v+p,p=-p),typeof d=="number"?u=s=i=t=d:d instanceof Array?d.length===1?u=s=i=t=d[0]:d.length===2?(u=i=d[0],s=t=d[1]):d.length===3?(u=d[0],s=t=d[1],i=d[2]):(u=d[0],s=d[1],i=d[2],t=d[3]):u=s=i=t=0;var o;u+s>m&&(o=u+s,u*=m/o,s*=m/o),i+t>m&&(o=i+t,i*=m/o,t*=m/o),s+i>p&&(o=s+i,s*=p/o,i*=p/o),u+t>p&&(o=u+t,u*=p/o,t*=p/o),y.moveTo(x+u,v),y.lineTo(x+m-s,v),s!==0&&y.arc(x+m-s,v+s,s,-Math.PI/2,0),y.lineTo(x+m,v+p-i),i!==0&&y.arc(x+m-i,v+p-i,i,0,Math.PI/2),y.lineTo(x+t,v+p),t!==0&&y.arc(x+t,v+p-t,t,Math.PI/2,Math.PI),y.lineTo(x,v+u),u!==0&&y.arc(x+u,v+u,u,Math.PI,Math.PI*1.5)}D.buildPath=n},"VrN/":function(R,D,n){(function(y,f){R.exports=f()})(this,function(){"use strict";var y=navigator.userAgent,f=navigator.platform,x=/gecko\/\d/i.test(y),v=/MSIE \d/.test(y),m=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(y),p=/Edge\/(\d+)/.exec(y),d=v||m||p,u=d&&(v?document.documentMode||6:+(p||m)[1]),s=!p&&/WebKit\//.test(y),i=s&&/Qt\/\d+\.\d+/.test(y),t=!p&&/Chrome\//.test(y),o=/Opera\//.test(y),e=/Apple Computer/.test(navigator.vendor),l=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(y),r=/PhantomJS/.test(y),a=!p&&/AppleWebKit/.test(y)&&/Mobile\/\w+/.test(y),c=/Android/.test(y),h=a||c||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(y),g=a||/Mac/.test(f),A=/\bCrOS\b/.test(y),b=/win/i.test(f),S=o&&y.match(/Version\/(\d*\.\d*)/);S&&(S=Number(S[1])),S&&S>=15&&(o=!1,s=!0);var E=g&&(i||o&&(S==null||S<12.11)),C=x||d&&u>=9;function _(N){return new RegExp("(^|\\s)"+N+"(?:$|\\s)\\s*")}var T=function(B,ie){var le=B.className,me=_(ie).exec(le);if(me){var Ke=le.slice(me.index+me[0].length);B.className=le.slice(0,me.index)+(Ke?me[1]+Ke:"")}};function w(N){for(var B=N.childNodes.length;B>0;--B)N.removeChild(N.firstChild);return N}function O(N,B){return w(N).appendChild(B)}function I(N,B,ie,le){var me=document.createElement(N);if(ie&&(me.className=ie),le&&(me.style.cssText=le),typeof B=="string")me.appendChild(document.createTextNode(B));else if(B)for(var Ke=0;Ke<B.length;++Ke)me.appendChild(B[Ke]);return me}function k(N,B,ie,le){var me=I(N,B,ie,le);return me.setAttribute("role","presentation"),me}var M;document.createRange?M=function(B,ie,le,me){var Ke=document.createRange();return Ke.setEnd(me||B,le),Ke.setStart(B,ie),Ke}:M=function(B,ie,le){var me=document.body.createTextRange();try{me.moveToElementText(B.parentNode)}catch(Ke){return me}return me.collapse(!0),me.moveEnd("character",le),me.moveStart("character",ie),me};function j(N,B){if(B.nodeType==3&&(B=B.parentNode),N.contains)return N.contains(B);do if(B.nodeType==11&&(B=B.host),B==N)return!0;while(B=B.parentNode)}function P(){var N;try{N=document.activeElement}catch(B){N=document.body||null}for(;N&&N.shadowRoot&&N.shadowRoot.activeElement;)N=N.shadowRoot.activeElement;return N}function X(N,B){var ie=N.className;_(B).test(ie)||(N.className+=(ie?" ":"")+B)}function F(N,B){for(var ie=N.split(" "),le=0;le<ie.length;le++)ie[le]&&!_(ie[le]).test(B)&&(B+=" "+ie[le]);return B}var U=function(B){B.select()};a?U=function(B){B.selectionStart=0,B.selectionEnd=B.value.length}:d&&(U=function(B){try{B.select()}catch(ie){}});function K(N){var B=Array.prototype.slice.call(arguments,1);return function(){return N.apply(null,B)}}function z(N,B,ie){B||(B={});for(var le in N)N.hasOwnProperty(le)&&(ie!==!1||!B.hasOwnProperty(le))&&(B[le]=N[le]);return B}function V(N,B,ie,le,me){B==null&&(B=N.search(/[^\s\u00a0]/),B==-1&&(B=N.length));for(var Ke=le||0,It=me||0;;){var nr=N.indexOf(" ",Ke);if(nr<0||nr>=B)return It+(B-Ke);It+=nr-Ke,It+=ie-It%ie,Ke=nr+1}}var Q=function(){this.id=null,this.f=null,this.time=0,this.handler=K(this.onTimeout,this)};Q.prototype.onTimeout=function(N){N.id=0,N.time<=+new Date?N.f():setTimeout(N.handler,N.time-+new Date)},Q.prototype.set=function(N,B){this.f=B;var ie=+new Date+N;(!this.id||ie<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,N),this.time=ie)};function G(N,B){for(var ie=0;ie<N.length;++ie)if(N[ie]==B)return ie;return-1}var te=50,q={toString:function(){return"CodeMirror.Pass"}},se={scroll:!1},re={origin:"*mouse"},xe={origin:"+move"};function Oe(N,B,ie){for(var le=0,me=0;;){var Ke=N.indexOf(" ",le);Ke==-1&&(Ke=N.length);var It=Ke-le;if(Ke==N.length||me+It>=B)return le+Math.min(It,B-me);if(me+=Ke-le,me+=ie-me%ie,le=Ke+1,me>=B)return le}}var Me=[""];function Qe(N){for(;Me.length<=N;)Me.push(Ve(Me)+" ");return Me[N]}function Ve(N){return N[N.length-1]}function ut(N,B){for(var ie=[],le=0;le<N.length;le++)ie[le]=B(N[le],le);return ie}function Fe(N,B,ie){for(var le=0,me=ie(B);le<N.length&&ie(N[le])<=me;)le++;N.splice(le,0,B)}function ue(){}function et(N,B){var ie;return Object.create?ie=Object.create(N):(ue.prototype=N,ie=new ue),B&&z(B,ie),ie}var he=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function J(N){return/\w/.test(N)||N>"\x80"&&(N.toUpperCase()!=N.toLowerCase()||he.test(N))}function Y(N,B){return B?B.source.indexOf("\\w")>-1&&J(N)?!0:B.test(N):J(N)}function $(N){for(var B in N)if(N.hasOwnProperty(B)&&N[B])return!1;return!0}var de=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function be(N){return N.charCodeAt(0)>=768&&de.test(N)}function Ce(N,B,ie){for(;(ie<0?B>0:B<N.length)&&be(N.charAt(B));)B+=ie;return B}function Be(N,B,ie){for(var le=B>ie?-1:1;;){if(B==ie)return B;var me=(B+ie)/2,Ke=le<0?Math.ceil(me):Math.floor(me);if(Ke==B)return N(Ke)?B:ie;N(Ke)?ie=Ke:B=Ke+le}}function fe(N,B,ie,le){if(!N)return le(B,ie,"ltr",0);for(var me=!1,Ke=0;Ke<N.length;++Ke){var It=N[Ke];(It.from<ie&&It.to>B||B==ie&&It.to==B)&&(le(Math.max(It.from,B),Math.min(It.to,ie),It.level==1?"rtl":"ltr",Ke),me=!0)}me||le(B,ie,"ltr")}var we=null;function Re(N,B,ie){var le;we=null;for(var me=0;me<N.length;++me){var Ke=N[me];if(Ke.from<B&&Ke.to>B)return me;Ke.to==B&&(Ke.from!=Ke.to&&ie=="before"?le=me:we=me),Ke.from==B&&(Ke.from!=Ke.to&&ie!="before"?le=me:we=me)}return le!=null?le:we}var rt=function(){var N="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",B="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ie(_r){return _r<=247?N.charAt(_r):1424<=_r&&_r<=1524?"R":1536<=_r&&_r<=1785?B.charAt(_r-1536):1774<=_r&&_r<=2220?"r":8192<=_r&&_r<=8203?"w":_r==8204?"b":"L"}var le=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,me=/[stwN]/,Ke=/[LRr]/,It=/[Lb1n]/,nr=/[1n]/;function wr(_r,Hn,ni){this.level=_r,this.from=Hn,this.to=ni}return function(_r,Hn){var ni=Hn=="ltr"?"L":"R";if(_r.length==0||Hn=="ltr"&&!le.test(_r))return!1;for(var Ei=_r.length,Oi=[],la=0;la<Ei;++la)Oi.push(ie(_r.charCodeAt(la)));for(var Ta=0,Wa=ni;Ta<Ei;++Ta){var Ma=Oi[Ta];Ma=="m"?Oi[Ta]=Wa:Wa=Ma}for(var Na=0,qa=ni;Na<Ei;++Na){var ho=Oi[Na];ho=="1"&&qa=="r"?Oi[Na]="n":Ke.test(ho)&&(qa=ho,ho=="r"&&(Oi[Na]="R"))}for(var ns=1,Mo=Oi[0];ns<Ei-1;++ns){var Ss=Oi[ns];Ss=="+"&&Mo=="1"&&Oi[ns+1]=="1"?Oi[ns]="1":Ss==","&&Mo==Oi[ns+1]&&(Mo=="1"||Mo=="n")&&(Oi[ns]=Mo),Mo=Ss}for(var Zs=0;Zs<Ei;++Zs){var yl=Oi[Zs];if(yl==",")Oi[Zs]="N";else if(yl=="%"){var ul=void 0;for(ul=Zs+1;ul<Ei&&Oi[ul]=="%";++ul);for(var Pl=Zs&&Oi[Zs-1]=="!"||ul<Ei&&Oi[ul]=="1"?"1":"N",Vl=Zs;Vl<ul;++Vl)Oi[Vl]=Pl;Zs=ul-1}}for(var Il=0,Gl=ni;Il<Ei;++Il){var Fl=Oi[Il];Gl=="L"&&Fl=="1"?Oi[Il]="L":Ke.test(Fl)&&(Gl=Fl)}for(var Ja=0;Ja<Ei;++Ja)if(me.test(Oi[Ja])){var vl=void 0;for(vl=Ja+1;vl<Ei&&me.test(Oi[vl]);++vl);for(var gl=(Ja?Oi[Ja-1]:ni)=="L",El=(vl<Ei?Oi[vl]:ni)=="L",Bu=gl==El?gl?"L":"R":ni,Ks=Ja;Ks<vl;++Ks)Oi[Ks]=Bu;Ja=vl-1}for(var vs=[],lu,Kl=0;Kl<Ei;)if(It.test(Oi[Kl])){var Uu=Kl;for(++Kl;Kl<Ei&&It.test(Oi[Kl]);++Kl);vs.push(new wr(0,Uu,Kl))}else{var Eu=Kl,uu=vs.length,ku=Hn=="rtl"?1:0;for(++Kl;Kl<Ei&&Oi[Kl]!="L";++Kl);for(var Yl=Eu;Yl<Kl;)if(nr.test(Oi[Yl])){Eu<Yl&&(vs.splice(uu,0,new wr(1,Eu,Yl)),uu+=ku);var Tu=Yl;for(++Yl;Yl<Kl&&nr.test(Oi[Yl]);++Yl);vs.splice(uu,0,new wr(2,Tu,Yl)),uu+=ku,Eu=Yl}else++Yl;Eu<Kl&&vs.splice(uu,0,new wr(1,Eu,Kl))}return Hn=="ltr"&&(vs[0].level==1&&(lu=_r.match(/^\s+/))&&(vs[0].from=lu[0].length,vs.unshift(new wr(0,0,lu[0].length))),Ve(vs).level==1&&(lu=_r.match(/\s+$/))&&(Ve(vs).to-=lu[0].length,vs.push(new wr(0,Ei-lu[0].length,Ei)))),Hn=="rtl"?vs.reverse():vs}}();function St(N,B){var ie=N.order;return ie==null&&(ie=N.order=rt(N.text,B)),ie}var ft=[],He=function(B,ie,le){if(B.addEventListener)B.addEventListener(ie,le,!1);else if(B.attachEvent)B.attachEvent("on"+ie,le);else{var me=B._handlers||(B._handlers={});me[ie]=(me[ie]||ft).concat(le)}};function er(N,B){return N._handlers&&N._handlers[B]||ft}function ct(N,B,ie){if(N.removeEventListener)N.removeEventListener(B,ie,!1);else if(N.detachEvent)N.detachEvent("on"+B,ie);else{var le=N._handlers,me=le&&le[B];if(me){var Ke=G(me,ie);Ke>-1&&(le[B]=me.slice(0,Ke).concat(me.slice(Ke+1)))}}}function Kt(N,B){var ie=er(N,B);if(!ie.length)return;for(var le=Array.prototype.slice.call(arguments,2),me=0;me<ie.length;++me)ie[me].apply(null,le)}function fr(N,B,ie){return typeof B=="string"&&(B={type:B,preventDefault:function(){this.defaultPrevented=!0}}),Kt(N,ie||B.type,N,B),oe(B)||B.codemirrorIgnore}function Gt(N){var B=N._handlers&&N._handlers.cursorActivity;if(!B)return;for(var ie=N.curOp.cursorActivityHandlers||(N.curOp.cursorActivityHandlers=[]),le=0;le<B.length;++le)G(ie,B[le])==-1&&ie.push(B[le])}function Pt(N,B){return er(N,B).length>0}function Xt(N){N.prototype.on=function(B,ie){He(this,B,ie)},N.prototype.off=function(B,ie){ct(this,B,ie)}}function Ge(N){N.preventDefault?N.preventDefault():N.returnValue=!1}function pe(N){N.stopPropagation?N.stopPropagation():N.cancelBubble=!0}function oe(N){return N.defaultPrevented!=null?N.defaultPrevented:N.returnValue==!1}function lt(N){Ge(N),pe(N)}function qe(N){return N.target||N.srcElement}function ge(N){var B=N.which;return B==null&&(N.button&1?B=1:N.button&2?B=3:N.button&4&&(B=2)),g&&N.ctrlKey&&B==1&&(B=3),B}var Ht=function(){if(d&&u<9)return!1;var N=I("div");return"draggable"in N||"dragDrop"in N}(),vr;function At(N){if(vr==null){var B=I("span","\u200B");O(N,I("span",[B,document.createTextNode("x")])),N.firstChild.offsetHeight!=0&&(vr=B.offsetWidth<=1&&B.offsetHeight>2&&!(d&&u<8))}var ie=vr?I("span","\u200B"):I("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ie.setAttribute("cm-text",""),ie}var ir;function lr(N){if(ir!=null)return ir;var B=O(N,document.createTextNode("A\u062EA")),ie=M(B,0,1).getBoundingClientRect(),le=M(B,1,2).getBoundingClientRect();return w(N),!ie||ie.left==ie.right?!1:ir=le.right-ie.right<3}var dn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(N){for(var B=0,ie=[],le=N.length;B<=le;){var me=N.indexOf(`
|
|
|
`,B);me==-1&&(me=N.length);var Ke=N.slice(B,N.charAt(me-1)=="\r"?me-1:me),It=Ke.indexOf("\r");It!=-1?(ie.push(Ke.slice(0,It)),B+=It+1):(ie.push(Ke),B=me+1)}return ie}:function(N){return N.split(/\r\n?|\n/)},Ft=window.getSelection?function(N){try{return N.selectionStart!=N.selectionEnd}catch(B){return!1}}:function(N){var B;try{B=N.ownerDocument.selection.createRange()}catch(ie){}return!B||B.parentElement()!=N?!1:B.compareEndPoints("StartToEnd",B)!=0},ur=function(){var N=I("div");return"oncopy"in N?!0:(N.setAttribute("oncopy","return;"),typeof N.oncopy=="function")}(),Jt=null;function pt(N){if(Jt!=null)return Jt;var B=O(N,I("span","x")),ie=B.getBoundingClientRect(),le=M(B,0,1).getBoundingClientRect();return Jt=Math.abs(ie.left-le.left)>1}var at={},Pr={};function un(N,B){arguments.length>2&&(B.dependencies=Array.prototype.slice.call(arguments,2)),at[N]=B}function _n(N,B){Pr[N]=B}function Xn(N){if(typeof N=="string"&&Pr.hasOwnProperty(N))N=Pr[N];else if(N&&typeof N.name=="string"&&Pr.hasOwnProperty(N.name)){var B=Pr[N.name];typeof B=="string"&&(B={name:B}),N=et(B,N),N.name=B.name}else{if(typeof N=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(N))return Xn("application/xml");if(typeof N=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(N))return Xn("application/json")}return typeof N=="string"?{name:N}:N||{name:"null"}}function xi(N,B){B=Xn(B);var ie=at[B.name];if(!ie)return xi(N,"text/plain");var le=ie(N,B);if(Pn.hasOwnProperty(B.name)){var me=Pn[B.name];for(var Ke in me){if(!me.hasOwnProperty(Ke))continue;le.hasOwnProperty(Ke)&&(le["_"+Ke]=le[Ke]),le[Ke]=me[Ke]}}if(le.name=B.name,B.helperType&&(le.helperType=B.helperType),B.modeProps)for(var It in B.modeProps)le[It]=B.modeProps[It];return le}var Pn={};function Un(N,B){var ie=Pn.hasOwnProperty(N)?Pn[N]:Pn[N]={};z(B,ie)}function $t(N,B){if(B===!0)return B;if(N.copyState)return N.copyState(B);var ie={};for(var le in B){var me=B[le];me instanceof Array&&(me=me.concat([])),ie[le]=me}return ie}function xt(N,B){for(var ie;N.innerMode&&!(ie=N.innerMode(B),!ie||ie.mode==N);)B=ie.state,N=ie.mode;return ie||{mode:N,state:B}}function De(N,B,ie){return N.startState?N.startState(B,ie):!0}var ke=function(B,ie,le){this.pos=this.start=0,this.string=B,this.tabSize=ie||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=le};ke.prototype.eol=function(){return this.pos>=this.string.length},ke.prototype.sol=function(){return this.pos==this.lineStart},ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ke.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ke.prototype.eat=function(N){var B=this.string.charAt(this.pos),ie;if(typeof N=="string"?ie=B==N:ie=B&&(N.test?N.test(B):N(B)),ie)return++this.pos,B},ke.prototype.eatWhile=function(N){for(var B=this.pos;this.eat(N););return this.pos>B},ke.prototype.eatSpace=function(){for(var N=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>N},ke.prototype.skipToEnd=function(){this.pos=this.string.length},ke.prototype.skipTo=function(N){var B=this.string.indexOf(N,this.pos);if(B>-1)return this.pos=B,!0},ke.prototype.backUp=function(N){this.pos-=N},ke.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},ke.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},ke.prototype.match=function(N,B,ie){if(typeof N=="string"){var le=function(nr){return ie?nr.toLowerCase():nr},me=this.string.substr(this.pos,N.length);if(le(me)==le(N))return B!==!1&&(this.pos+=N.length),!0}else{var Ke=this.string.slice(this.pos).match(N);return Ke&&Ke.index>0?null:(Ke&&B!==!1&&(this.pos+=Ke[0].length),Ke)}},ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},ke.prototype.hideFirstChars=function(N,B){this.lineStart+=N;try{return B()}finally{this.lineStart-=N}},ke.prototype.lookAhead=function(N){var B=this.lineOracle;return B&&B.lookAhead(N)},ke.prototype.baseToken=function(){var N=this.lineOracle;return N&&N.baseToken(this.pos)};function Pe(N,B){if(B-=N.first,B<0||B>=N.size)throw new Error("There is no line "+(B+N.first)+" in the document.");for(var ie=N;!ie.lines;)for(var le=0;;++le){var me=ie.children[le],Ke=me.chunkSize();if(B<Ke){ie=me;break}B-=Ke}return ie.lines[B]}function tt(N,B,ie){var le=[],me=B.line;return N.iter(B.line,ie.line+1,function(Ke){var It=Ke.text;me==ie.line&&(It=It.slice(0,ie.ch)),me==B.line&&(It=It.slice(B.ch)),le.push(It),++me}),le}function yt(N,B,ie){var le=[];return N.iter(B,ie,function(me){le.push(me.text)}),le}function Et(N,B){var ie=B-N.height;if(ie)for(var le=N;le;le=le.parent)le.height+=ie}function Yt(N){if(N.parent==null)return null;for(var B=N.parent,ie=G(B.lines,N),le=B.parent;le;B=le,le=le.parent)for(var me=0;!(le.children[me]==B);++me)ie+=le.children[me].chunkSize();return ie+B.first}function Rr(N,B){var ie=N.first;e:do{for(var le=0;le<N.children.length;++le){var me=N.children[le],Ke=me.height;if(B<Ke){N=me;continue e}B-=Ke,ie+=me.chunkSize()}return ie}while(!N.lines);for(var It=0;It<N.lines.length;++It){var nr=N.lines[It],wr=nr.height;if(B<wr)break;B-=wr}return ie+It}function zr(N,B){return B>=N.first&&B<N.first+N.size}function hn(N,B){return String(N.lineNumberFormatter(B+N.firstLineNumber))}function jt(N,B,ie){if(ie===void 0&&(ie=null),!(this instanceof jt))return new jt(N,B,ie);this.line=N,this.ch=B,this.sticky=ie}function vt(N,B){return N.line-B.line||N.ch-B.ch}function bt(N,B){return N.sticky==B.sticky&&vt(N,B)==0}function cr(N){return jt(N.line,N.ch)}function Qt(N,B){return vt(N,B)<0?B:N}function Mt(N,B){return vt(N,B)<0?N:B}function tr(N,B){return Math.max(N.first,Math.min(B,N.first+N.size-1))}function Rt(N,B){if(B.line<N.first)return jt(N.first,0);var ie=N.first+N.size-1;return B.line>ie?jt(ie,Pe(N,ie).text.length):qt(B,Pe(N,B.line).text.length)}function qt(N,B){var ie=N.ch;return ie==null||ie>B?jt(N.line,B):ie<0?jt(N.line,0):N}function Hr(N,B){for(var ie=[],le=0;le<B.length;le++)ie[le]=Rt(N,B[le]);return ie}var Nr=function(B,ie){this.state=B,this.lookAhead=ie},Dr=function(B,ie,le,me){this.state=ie,this.doc=B,this.line=le,this.maxLookAhead=me||0,this.baseTokens=null,this.baseTokenPos=1};Dr.prototype.lookAhead=function(N){var B=this.doc.getLine(this.line+N);return B!=null&&N>this.maxLookAhead&&(this.maxLookAhead=N),B},Dr.prototype.baseToken=function(N){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=N;)this.baseTokenPos+=2;var B=this.baseTokens[this.baseTokenPos+1];return{type:B&&B.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-N}},Dr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Dr.fromSaved=function(N,B,ie){return B instanceof Nr?new Dr(N,$t(N.mode,B.state),ie,B.lookAhead):new Dr(N,$t(N.mode,B),ie)},Dr.prototype.save=function(N){var B=N!==!1?$t(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Nr(B,this.maxLookAhead):B};function cn(N,B,ie,le){var me=[N.state.modeGen],Ke={};Le(N,B.text,N.doc.mode,ie,function(_r,Hn){return me.push(_r,Hn)},Ke,le);for(var It=ie.state,nr=function(Hn){ie.baseTokens=me;var ni=N.state.overlays[Hn],Ei=1,Oi=0;ie.state=!0,Le(N,B.text,ni.mode,ie,function(la,Ta){for(var Wa=Ei;Oi<la;){var Ma=me[Ei];Ma>la&&me.splice(Ei,1,la,me[Ei+1],Ma),Ei+=2,Oi=Math.min(la,Ma)}if(!Ta)return;if(ni.opaque)me.splice(Wa,Ei-Wa,la,"overlay "+Ta),Ei=Wa+2;else for(;Wa<Ei;Wa+=2){var Na=me[Wa+1];me[Wa+1]=(Na?Na+" ":"")+"overlay "+Ta}},Ke),ie.state=It,ie.baseTokens=null,ie.baseTokenPos=1},wr=0;wr<N.state.overlays.length;++wr)nr(wr);return{styles:me,classes:Ke.bgClass||Ke.textClass?Ke:null}}function An(N,B,ie){if(!B.styles||B.styles[0]!=N.state.modeGen){var le=ri(N,Yt(B)),me=B.text.length>N.options.maxHighlightLength&&$t(N.doc.mode,le.state),Ke=cn(N,B,le);me&&(le.state=me),B.stateAfter=le.save(!me),B.styles=Ke.styles,Ke.classes?B.styleClasses=Ke.classes:B.styleClasses&&(B.styleClasses=null),ie===N.doc.highlightFrontier&&(N.doc.modeFrontier=Math.max(N.doc.modeFrontier,++N.doc.highlightFrontier))}return B.styles}function ri(N,B,ie){var le=N.doc,me=N.display;if(!le.mode.startState)return new Dr(le,!0,B);var Ke=je(N,B,ie),It=Ke>le.first&&Pe(le,Ke-1).stateAfter,nr=It?Dr.fromSaved(le,It,Ke):new Dr(le,De(le.mode),Ke);return le.iter(Ke,B,function(wr){$n(N,wr.text,nr);var _r=nr.line;wr.stateAfter=_r==B-1||_r%5==0||_r>=me.viewFrom&&_r<me.viewTo?nr.save():null,nr.nextLine()}),ie&&(le.modeFrontier=nr.line),nr}function $n(N,B,ie,le){var me=N.doc.mode,Ke=new ke(B,N.options.tabSize,ie);for(Ke.start=Ke.pos=le||0,B==""&&fi(me,ie.state);!Ke.eol();)_i(me,Ke,ie.state),Ke.start=Ke.pos}function fi(N,B){if(N.blankLine)return N.blankLine(B);if(!N.innerMode)return;var ie=xt(N,B);if(ie.mode.blankLine)return ie.mode.blankLine(ie.state)}function _i(N,B,ie,le){for(var me=0;me<10;me++){le&&(le[0]=xt(N,ie).mode);var Ke=N.token(B,ie);if(B.pos>B.start)return Ke}throw new Error("Mode "+N.name+" failed to advance stream.")}var Di=function(B,ie,le){this.start=B.start,this.end=B.pos,this.string=B.current(),this.type=ie||null,this.state=le};function Wi(N,B,ie,le){var me=N.doc,Ke=me.mode,It;B=Rt(me,B);var nr=Pe(me,B.line),wr=ri(N,B.line,ie),_r=new ke(nr.text,N.options.tabSize,wr),Hn;for(le&&(Hn=[]);(le||_r.pos<B.ch)&&!_r.eol();)_r.start=_r.pos,It=_i(Ke,_r,wr.state),le&&Hn.push(new Di(_r,It,$t(me.mode,wr.state)));return le?Hn:new Di(_r,It,wr.state)}function it(N,B){if(N)for(;;){var ie=N.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ie)break;N=N.slice(0,ie.index)+N.slice(ie.index+ie[0].length);var le=ie[1]?"bgClass":"textClass";B[le]==null?B[le]=ie[2]:new RegExp("(?:^|\\s)"+ie[2]+"(?:$|\\s)").test(B[le])||(B[le]+=" "+ie[2])}return N}function Le(N,B,ie,le,me,Ke,It){var nr=ie.flattenSpans;nr==null&&(nr=N.options.flattenSpans);var wr=0,_r=null,Hn=new ke(B,N.options.tabSize,le),ni,Ei=N.options.addModeClass&&[null];for(B==""&&it(fi(ie,le.state),Ke);!Hn.eol();){if(Hn.pos>N.options.maxHighlightLength?(nr=!1,It&&$n(N,B,le,Hn.pos),Hn.pos=B.length,ni=null):ni=it(_i(ie,Hn,le.state,Ei),Ke),Ei){var Oi=Ei[0].name;Oi&&(ni="m-"+(ni?Oi+" "+ni:Oi))}if(!nr||_r!=ni){for(;wr<Hn.start;)wr=Math.min(Hn.start,wr+5e3),me(wr,_r);_r=ni}Hn.start=Hn.pos}for(;wr<Hn.pos;){var la=Math.min(Hn.pos,wr+5e3);me(la,_r),wr=la}}function je(N,B,ie){for(var le,me,Ke=N.doc,It=ie?-1:B-(N.doc.mode.innerMode?1e3:100),nr=B;nr>It;--nr){if(nr<=Ke.first)return Ke.first;var wr=Pe(Ke,nr-1),_r=wr.stateAfter;if(_r&&(!ie||nr+(_r instanceof Nr?_r.lookAhead:0)<=Ke.modeFrontier))return nr;var Hn=V(wr.text,null,N.options.tabSize);(me==null||le>Hn)&&(me=nr-1,le=Hn)}return me}function Xe(N,B){if(N.modeFrontier=Math.min(N.modeFrontier,B),N.highlightFrontier<B-10)return;for(var ie=N.first,le=B-1;le>ie;le--){var me=Pe(N,le).stateAfter;if(me&&(!(me instanceof Nr)||le+me.lookAhead<B)){ie=le+1;break}}N.highlightFrontier=Math.min(N.highlightFrontier,ie)}var nt=!1,Ze=!1;function ot(){nt=!0}function Ct(){Ze=!0}function gt(N,B,ie){this.marker=N,this.from=B,this.to=ie}function pr(N,B){if(N)for(var ie=0;ie<N.length;++ie){var le=N[ie];if(le.marker==B)return le}}function $r(N,B){for(var ie,le=0;le<N.length;++le)N[le]!=B&&(ie||(ie=[])).push(N[le]);return ie}function Yr(N,B){N.markedSpans=N.markedSpans?N.markedSpans.concat([B]):[B],B.marker.attachLine(N)}function mn(N,B,ie){var le;if(N)for(var me=0;me<N.length;++me){var Ke=N[me],It=Ke.marker,nr=Ke.from==null||(It.inclusiveLeft?Ke.from<=B:Ke.from<B);if(nr||Ke.from==B&&It.type=="bookmark"&&(!ie||!Ke.marker.insertLeft)){var wr=Ke.to==null||(It.inclusiveRight?Ke.to>=B:Ke.to>B);(le||(le=[])).push(new gt(It,Ke.from,wr?null:Ke.to))}}return le}function Ar(N,B,ie){var le;if(N)for(var me=0;me<N.length;++me){var Ke=N[me],It=Ke.marker,nr=Ke.to==null||(It.inclusiveRight?Ke.to>=B:Ke.to>B);if(nr||Ke.from==B&&It.type=="bookmark"&&(!ie||Ke.marker.insertLeft)){var wr=Ke.from==null||(It.inclusiveLeft?Ke.from<=B:Ke.from<B);(le||(le=[])).push(new gt(It,wr?null:Ke.from-B,Ke.to==null?null:Ke.to-B))}}return le}function zn(N,B){if(B.full)return null;var ie=zr(N,B.from.line)&&Pe(N,B.from.line).markedSpans,le=zr(N,B.to.line)&&Pe(N,B.to.line).markedSpans;if(!ie&&!le)return null;var me=B.from.ch,Ke=B.to.ch,It=vt(B.from,B.to)==0,nr=mn(ie,me,It),wr=Ar(le,Ke,It),_r=B.text.length==1,Hn=Ve(B.text).length+(_r?me:0);if(nr)for(var ni=0;ni<nr.length;++ni){var Ei=nr[ni];if(Ei.to==null){var Oi=pr(wr,Ei.marker);Oi?_r&&(Ei.to=Oi.to==null?null:Oi.to+Hn):Ei.to=me}}if(wr)for(var la=0;la<wr.length;++la){var Ta=wr[la];if(Ta.to!=null&&(Ta.to+=Hn),Ta.from==null){var Wa=pr(nr,Ta.marker);Wa||(Ta.from=Hn,_r&&(nr||(nr=[])).push(Ta))}else Ta.from+=Hn,_r&&(nr||(nr=[])).push(Ta)}nr&&(nr=Fr(nr)),wr&&wr!=nr&&(wr=Fr(wr));var Ma=[nr];if(!_r){var Na=B.text.length-2,qa;if(Na>0&&nr)for(var ho=0;ho<nr.length;++ho)nr[ho].to==null&&(qa||(qa=[])).push(new gt(nr[ho].marker,null,null));for(var ns=0;ns<Na;++ns)Ma.push(qa);Ma.push(wr)}return Ma}function Fr(N){for(var B=0;B<N.length;++B){var ie=N[B];ie.from!=null&&ie.from==ie.to&&ie.marker.clearWhenEmpty!==!1&&N.splice(B--,1)}return N.length?N:null}function Bn(N,B,ie){var le=null;if(N.iter(B.line,ie.line+1,function(Oi){if(Oi.markedSpans)for(var la=0;la<Oi.markedSpans.length;++la){var Ta=Oi.markedSpans[la].marker;Ta.readOnly&&(!le||G(le,Ta)==-1)&&(le||(le=[])).push(Ta)}}),!le)return null;for(var me=[{from:B,to:ie}],Ke=0;Ke<le.length;++Ke)for(var It=le[Ke],nr=It.find(0),wr=0;wr<me.length;++wr){var _r=me[wr];if(vt(_r.to,nr.from)<0||vt(_r.from,nr.to)>0)continue;var Hn=[wr,1],ni=vt(_r.from,nr.from),Ei=vt(_r.to,nr.to);(ni<0||!It.inclusiveLeft&&!ni)&&Hn.push({from:_r.from,to:nr.from}),(Ei>0||!It.inclusiveRight&&!Ei)&&Hn.push({from:nr.to,to:_r.to}),me.splice.apply(me,Hn),wr+=Hn.length-3}return me}function bn(N){var B=N.markedSpans;if(!B)return;for(var ie=0;ie<B.length;++ie)B[ie].marker.detachLine(N);N.markedSpans=null}function en(N,B){if(!B)return;for(var ie=0;ie<B.length;++ie)B[ie].marker.attachLine(N);N.markedSpans=B}function ti(N){return N.inclusiveLeft?-1:0}function pi(N){return N.inclusiveRight?1:0}function Pi(N,B){var ie=N.lines.length-B.lines.length;if(ie!=0)return ie;var le=N.find(),me=B.find(),Ke=vt(le.from,me.from)||ti(N)-ti(B);if(Ke)return-Ke;var It=vt(le.to,me.to)||pi(N)-pi(B);return It||B.id-N.id}function qr(N,B){var ie=Ze&&N.markedSpans,le;if(ie)for(var me=void 0,Ke=0;Ke<ie.length;++Ke)me=ie[Ke],me.marker.collapsed&&(B?me.from:me.to)==null&&(!le||Pi(le,me.marker)<0)&&(le=me.marker);return le}function En(N){return qr(N,!0)}function Yn(N){return qr(N,!1)}function zt(N,B){var ie=Ze&&N.markedSpans,le;if(ie)for(var me=0;me<ie.length;++me){var Ke=ie[me];Ke.marker.collapsed&&(Ke.from==null||Ke.from<B)&&(Ke.to==null||Ke.to>B)&&(!le||Pi(le,Ke.marker)<0)&&(le=Ke.marker)}return le}function Ot(N,B,ie,le,me){var Ke=Pe(N,B),It=Ze&&Ke.markedSpans;if(It)for(var nr=0;nr<It.length;++nr){var wr=It[nr];if(!wr.marker.collapsed)continue;var _r=wr.marker.find(0),Hn=vt(_r.from,ie)||ti(wr.marker)-ti(me),ni=vt(_r.to,le)||pi(wr.marker)-pi(me);if(Hn>=0&&ni<=0||Hn<=0&&ni>=0)continue;if(Hn<=0&&(wr.marker.inclusiveRight&&me.inclusiveLeft?vt(_r.to,ie)>=0:vt(_r.to,ie)>0)||Hn>=0&&(wr.marker.inclusiveRight&&me.inclusiveLeft?vt(_r.from,le)<=0:vt(_r.from,le)<0))return!0}}function kt(N){for(var B;B=En(N);)N=B.find(-1,!0).line;return N}function Bt(N){for(var B;B=Yn(N);)N=B.find(1,!0).line;return N}function Wt(N){for(var B,ie;B=Yn(N);)N=B.find(1,!0).line,(ie||(ie=[])).push(N);return ie}function Lt(N,B){var ie=Pe(N,B),le=kt(ie);return ie==le?B:Yt(le)}function dr(N,B){if(B>N.lastLine())return B;var ie=Pe(N,B),le;if(!yr(N,ie))return B;for(;le=Yn(ie);)ie=le.find(1,!0).line;return Yt(ie)+1}function yr(N,B){var ie=Ze&&B.markedSpans;if(ie)for(var le=void 0,me=0;me<ie.length;++me){if(le=ie[me],!le.marker.collapsed)continue;if(le.from==null)return!0;if(le.marker.widgetNode)continue;if(le.from==0&&le.marker.inclusiveLeft&&br(N,B,le))return!0}}function br(N,B,ie){if(ie.to==null){var le=ie.marker.find(1,!0);return br(N,le.line,pr(le.line.markedSpans,ie.marker))}if(ie.marker.inclusiveRight&&ie.to==B.text.length)return!0;for(var me=void 0,Ke=0;Ke<B.markedSpans.length;++Ke)if(me=B.markedSpans[Ke],me.marker.collapsed&&!me.marker.widgetNode&&me.from==ie.to&&(me.to==null||me.to!=ie.from)&&(me.marker.inclusiveLeft||ie.marker.inclusiveRight)&&br(N,B,me))return!0}function Mr(N){N=kt(N);for(var B=0,ie=N.parent,le=0;le<ie.lines.length;++le){var me=ie.lines[le];if(me==N)break;B+=me.height}for(var Ke=ie.parent;Ke;ie=Ke,Ke=ie.parent)for(var It=0;It<Ke.children.length;++It){var nr=Ke.children[It];if(nr==ie)break;B+=nr.height}return B}function Gn(N){if(N.height==0)return 0;for(var B=N.text.length,ie,le=N;ie=En(le);){var me=ie.find(0,!0);le=me.from.line,B+=me.from.ch-me.to.ch}for(le=N;ie=Yn(le);){var Ke=ie.find(0,!0);B-=le.text.length-Ke.from.ch,le=Ke.to.line,B+=le.text.length-Ke.to.ch}return B}function Mn(N){var B=N.display,ie=N.doc;B.maxLine=Pe(ie,ie.first),B.maxLineLength=Gn(B.maxLine),B.maxLineChanged=!0,ie.iter(function(le){var me=Gn(le);me>B.maxLineLength&&(B.maxLineLength=me,B.maxLine=le)})}var di=function(B,ie,le){this.text=B,en(this,ie),this.height=le?le(this):1};di.prototype.lineNo=function(){return Yt(this)},Xt(di);function vn(N,B,ie,le){N.text=B,N.stateAfter&&(N.stateAfter=null),N.styles&&(N.styles=null),N.order!=null&&(N.order=null),bn(N),en(N,ie);var me=le?le(N):1;me!=N.height&&Et(N,me)}function Ur(N){N.parent=null,bn(N)}var In={},Qn={};function qn(N,B){if(!N||/^\s*$/.test(N))return null;var ie=B.addModeClass?Qn:In;return ie[N]||(ie[N]=N.replace(/\S+/g,"cm-$&"))}function oi(N,B){var ie=k("span",null,null,s?"padding-right: .1px":null),le={pre:k("pre",[ie],"CodeMirror-line"),content:ie,col:0,pos:0,cm:N,trailingSpace:!1,splitSpaces:N.getOption("lineWrapping")};B.measure={};for(var me=0;me<=(B.rest?B.rest.length:0);me++){var Ke=me?B.rest[me-1]:B.line,It=void 0;le.pos=0,le.addToken=ki,lr(N.display.measure)&&(It=St(Ke,N.doc.direction))&&(le.addToken=oa(le.addToken,It)),le.map=[];var nr=B!=N.display.externalMeasured&&Yt(Ke);aa(Ke,le,An(N,Ke,nr)),Ke.styleClasses&&(Ke.styleClasses.bgClass&&(le.bgClass=F(Ke.styleClasses.bgClass,le.bgClass||"")),Ke.styleClasses.textClass&&(le.textClass=F(Ke.styleClasses.textClass,le.textClass||""))),le.map.length==0&&le.map.push(0,0,le.content.appendChild(At(N.display.measure))),me==0?(B.measure.map=le.map,B.measure.cache={}):((B.measure.maps||(B.measure.maps=[])).push(le.map),(B.measure.caches||(B.measure.caches=[])).push({}))}if(s){var wr=le.content.lastChild;(/\bcm-tab\b/.test(wr.className)||wr.querySelector&&wr.querySelector(".cm-tab"))&&(le.content.className="cm-tab-wrap-hack")}return Kt(N,"renderLine",N,B.line,le.pre),le.pre.className&&(le.textClass=F(le.pre.className,le.textClass||"")),le}function Ti(N){var B=I("span","\u2022","cm-invalidchar");return B.title="\\u"+N.charCodeAt(0).toString(16),B.setAttribute("aria-label",B.title),B}function ki(N,B,ie,le,me,Ke,It){if(!B)return;var nr=N.splitSpaces?Ri(B,N.trailingSpace):B,wr=N.cm.state.specialChars,_r=!1,Hn;if(!wr.test(B))N.col+=B.length,Hn=document.createTextNode(nr),N.map.push(N.pos,N.pos+B.length,Hn),d&&u<9&&(_r=!0),N.pos+=B.length;else{Hn=document.createDocumentFragment();for(var ni=0;;){wr.lastIndex=ni;var Ei=wr.exec(B),Oi=Ei?Ei.index-ni:B.length-ni;if(Oi){var la=document.createTextNode(nr.slice(ni,ni+Oi));d&&u<9?Hn.appendChild(I("span",[la])):Hn.appendChild(la),N.map.push(N.pos,N.pos+Oi,la),N.col+=Oi,N.pos+=Oi}if(!Ei)break;ni+=Oi+1;var Ta=void 0;if(Ei[0]==" "){var Wa=N.cm.options.tabSize,Ma=Wa-N.col%Wa;Ta=Hn.appendChild(I("span",Qe(Ma),"cm-tab")),Ta.setAttribute("role","presentation"),Ta.setAttribute("cm-text"," "),N.col+=Ma}else Ei[0]=="\r"||Ei[0]==`
|
|
|
`?(Ta=Hn.appendChild(I("span",Ei[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ta.setAttribute("cm-text",Ei[0]),N.col+=1):(Ta=N.cm.options.specialCharPlaceholder(Ei[0]),Ta.setAttribute("cm-text",Ei[0]),d&&u<9?Hn.appendChild(I("span",[Ta])):Hn.appendChild(Ta),N.col+=1);N.map.push(N.pos,N.pos+1,Ta),N.pos++}}if(N.trailingSpace=nr.charCodeAt(B.length-1)==32,ie||le||me||_r||Ke||It){var Na=ie||"";le&&(Na+=le),me&&(Na+=me);var qa=I("span",[Hn],Na,Ke);if(It)for(var ho in It)It.hasOwnProperty(ho)&&ho!="style"&&ho!="class"&&qa.setAttribute(ho,It[ho]);return N.content.appendChild(qa)}N.content.appendChild(Hn)}function Ri(N,B){if(N.length>1&&!/ /.test(N))return N;for(var ie=B,le="",me=0;me<N.length;me++){var Ke=N.charAt(me);Ke==" "&&ie&&(me==N.length-1||N.charCodeAt(me+1)==32)&&(Ke="\xA0"),le+=Ke,ie=Ke==" "}return le}function oa(N,B){return function(ie,le,me,Ke,It,nr,wr){me=me?me+" cm-force-border":"cm-force-border";for(var _r=ie.pos,Hn=_r+le.length;;){for(var ni=void 0,Ei=0;Ei<B.length&&!(ni=B[Ei],ni.to>_r&&ni.from<=_r);Ei++);if(ni.to>=Hn)return N(ie,le,me,Ke,It,nr,wr);N(ie,le.slice(0,ni.to-_r),me,Ke,null,nr,wr),Ke=null,le=le.slice(ni.to-_r),_r=ni.to}}}function ma(N,B,ie,le){var me=!le&&ie.widgetNode;me&&N.map.push(N.pos,N.pos+B,me),!le&&N.cm.display.input.needsContentAttribute&&(me||(me=N.content.appendChild(document.createElement("span"))),me.setAttribute("cm-marker",ie.id)),me&&(N.cm.display.input.setUneditable(me),N.content.appendChild(me)),N.pos+=B,N.trailingSpace=!1}function aa(N,B,ie){var le=N.markedSpans,me=N.text,Ke=0;if(!le){for(var It=1;It<ie.length;It+=2)B.addToken(B,me.slice(Ke,Ke=ie[It]),qn(ie[It+1],B.cm.options));return}for(var nr=me.length,wr=0,_r=1,Hn="",ni,Ei,Oi=0,la,Ta,Wa,Ma,Na;;){if(Oi==wr){la=Ta=Wa=Ei="",Na=null,Ma=null,Oi=Infinity;for(var qa=[],ho=void 0,ns=0;ns<le.length;++ns){var Mo=le[ns],Ss=Mo.marker;if(Ss.type=="bookmark"&&Mo.from==wr&&Ss.widgetNode)qa.push(Ss);else if(Mo.from<=wr&&(Mo.to==null||Mo.to>wr||Ss.collapsed&&Mo.to==wr&&Mo.from==wr)){if(Mo.to!=null&&Mo.to!=wr&&Oi>Mo.to&&(Oi=Mo.to,Ta=""),Ss.className&&(la+=" "+Ss.className),Ss.css&&(Ei=(Ei?Ei+";":"")+Ss.css),Ss.startStyle&&Mo.from==wr&&(Wa+=" "+Ss.startStyle),Ss.endStyle&&Mo.to==Oi&&(ho||(ho=[])).push(Ss.endStyle,Mo.to),Ss.title&&((Na||(Na={})).title=Ss.title),Ss.attributes)for(var Zs in Ss.attributes)(Na||(Na={}))[Zs]=Ss.attributes[Zs];Ss.collapsed&&(!Ma||Pi(Ma.marker,Ss)<0)&&(Ma=Mo)}else Mo.from>wr&&Oi>Mo.from&&(Oi=Mo.from)}if(ho)for(var yl=0;yl<ho.length;yl+=2)ho[yl+1]==Oi&&(Ta+=" "+ho[yl]);if(!Ma||Ma.from==wr)for(var ul=0;ul<qa.length;++ul)ma(B,0,qa[ul]);if(Ma&&(Ma.from||0)==wr){if(ma(B,(Ma.to==null?nr+1:Ma.to)-wr,Ma.marker,Ma.from==null),Ma.to==null)return;Ma.to==wr&&(Ma=!1)}}if(wr>=nr)break;for(var Pl=Math.min(nr,Oi);;){if(Hn){var Vl=wr+Hn.length;if(!Ma){var Il=Vl>Pl?Hn.slice(0,Pl-wr):Hn;B.addToken(B,Il,ni?ni+la:la,Wa,wr+Il.length==Oi?Ta:"",Ei,Na)}if(Vl>=Pl){Hn=Hn.slice(Pl-wr),wr=Pl;break}wr=Vl,Wa=""}Hn=me.slice(Ke,Ke=ie[_r++]),ni=qn(ie[_r++],B.cm.options)}}}function ba(N,B,ie){this.line=B,this.rest=Wt(B),this.size=this.rest?Yt(Ve(this.rest))-ie+1:1,this.node=this.text=null,this.hidden=yr(N,B)}function yi(N,B,ie){for(var le=[],me,Ke=B;Ke<ie;Ke=me){var It=new ba(N.doc,Pe(N.doc,Ke),Ke);me=Ke+It.size,le.push(It)}return le}var kn=null;function ji(N){kn?kn.ops.push(N):N.ownsGroup=kn={ops:[N],delayedCallbacks:[]}}function ha(N){var B=N.delayedCallbacks,ie=0;do{for(;ie<B.length;ie++)B[ie].call(null);for(var le=0;le<N.ops.length;le++){var me=N.ops[le];if(me.cursorActivityHandlers)for(;me.cursorActivityCalled<me.cursorActivityHandlers.length;)me.cursorActivityHandlers[me.cursorActivityCalled++].call(null,me.cm)}}while(ie<B.length)}function ta(N,B){var ie=N.ownsGroup;if(!ie)return;try{ha(ie)}finally{kn=null,B(ie)}}var ra=null;function Ir(N,B){var ie=er(N,B);if(!ie.length)return;var le=Array.prototype.slice.call(arguments,2),me;kn?me=kn.delayedCallbacks:ra?me=ra:(me=ra=[],setTimeout(xr,0));for(var Ke=function(wr){me.push(function(){return ie[wr].apply(null,le)})},It=0;It<ie.length;++It)Ke(It)}function xr(){var N=ra;ra=null;for(var B=0;B<N.length;++B)N[B]()}function Cn(N,B,ie,le){for(var me=0;me<B.changes.length;me++){var Ke=B.changes[me];Ke=="text"?ln(N,B):Ke=="gutter"?_t(N,B,ie,le):Ke=="class"?Fn(N,B):Ke=="widget"&&Or(N,B,le)}B.changes=null}function mr(N){return N.node==N.text&&(N.node=I("div",null,null,"position: relative"),N.text.parentNode&&N.text.parentNode.replaceChild(N.node,N.text),N.node.appendChild(N.text),d&&u<8&&(N.node.style.zIndex=2)),N.node}function kr(N,B){var ie=B.bgClass?B.bgClass+" "+(B.line.bgClass||""):B.line.bgClass;if(ie&&(ie+=" CodeMirror-linebackground"),B.background)ie?B.background.className=ie:(B.background.parentNode.removeChild(B.background),B.background=null);else if(ie){var le=mr(B);B.background=le.insertBefore(I("div",null,ie),le.firstChild),N.display.input.setUneditable(B.background)}}function Gr(N,B){var ie=N.display.externalMeasured;return ie&&ie.line==B.line?(N.display.externalMeasured=null,B.measure=ie.measure,ie.built):oi(N,B)}function ln(N,B){var ie=B.text.className,le=Gr(N,B);B.text==B.node&&(B.node=le.pre),B.text.parentNode.replaceChild(le.pre,B.text),B.text=le.pre,le.bgClass!=B.bgClass||le.textClass!=B.textClass?(B.bgClass=le.bgClass,B.textClass=le.textClass,Fn(N,B)):ie&&(B.text.className=ie)}function Fn(N,B){kr(N,B),B.line.wrapClass?mr(B).className=B.line.wrapClass:B.node!=B.text&&(B.node.className="");var ie=B.textClass?B.textClass+" "+(B.line.textClass||""):B.line.textClass;B.text.className=ie||""}function _t(N,B,ie,le){if(B.gutter&&(B.node.removeChild(B.gutter),B.gutter=null),B.gutterBackground&&(B.node.removeChild(B.gutterBackground),B.gutterBackground=null),B.line.gutterClass){var me=mr(B);B.gutterBackground=I("div",null,"CodeMirror-gutter-background "+B.line.gutterClass,"left: "+(N.options.fixedGutter?le.fixedPos:-le.gutterTotalWidth)+"px; width: "+le.gutterTotalWidth+"px"),N.display.input.setUneditable(B.gutterBackground),me.insertBefore(B.gutterBackground,B.text)}var Ke=B.line.gutterMarkers;if(N.options.lineNumbers||Ke){var It=mr(B),nr=B.gutter=I("div",null,"CodeMirror-gutter-wrapper","left: "+(N.options.fixedGutter?le.fixedPos:-le.gutterTotalWidth)+"px");if(N.display.input.setUneditable(nr),It.insertBefore(nr,B.text),B.line.gutterClass&&(nr.className+=" "+B.line.gutterClass),N.options.lineNumbers&&(!Ke||!Ke["CodeMirror-linenumbers"])&&(B.lineNumber=nr.appendChild(I("div",hn(N.options,ie),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+le.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+N.display.lineNumInnerWidth+"px"))),Ke)for(var wr=0;wr<N.display.gutterSpecs.length;++wr){var _r=N.display.gutterSpecs[wr].className,Hn=Ke.hasOwnProperty(_r)&&Ke[_r];Hn&&nr.appendChild(I("div",[Hn],"CodeMirror-gutter-elt","left: "+le.gutterLeft[_r]+"px; width: "+le.gutterWidth[_r]+"px"))}}}function Or(N,B,ie){B.alignable&&(B.alignable=null);for(var le=_("CodeMirror-linewidget"),me=B.node.firstChild,Ke=void 0;me;me=Ke)Ke=me.nextSibling,le.test(me.className)&&B.node.removeChild(me);rn(N,B,ie)}function Lr(N,B,ie,le){var me=Gr(N,B);return B.text=B.node=me.pre,me.bgClass&&(B.bgClass=me.bgClass),me.textClass&&(B.textClass=me.textClass),Fn(N,B),_t(N,B,ie,le),rn(N,B,le),B.node}function rn(N,B,ie){if(xn(N,B.line,B,ie,!0),B.rest)for(var le=0;le<B.rest.length;le++)xn(N,B.rest[le],B,ie,!1)}function xn(N,B,ie,le,me){if(!B.widgets)return;for(var Ke=mr(ie),It=0,nr=B.widgets;It<nr.length;++It){var wr=nr[It],_r=I("div",[wr.node],"CodeMirror-linewidget"+(wr.className?" "+wr.className:""));wr.handleMouseEvents||_r.setAttribute("cm-ignore-events","true"),Ln(wr,_r,ie,le),N.display.input.setUneditable(_r),me&&wr.above?Ke.insertBefore(_r,ie.gutter||ie.text):Ke.appendChild(_r),Ir(wr,"redraw")}}function Ln(N,B,ie,le){if(N.noHScroll){(ie.alignable||(ie.alignable=[])).push(B);var me=le.wrapperWidth;B.style.left=le.fixedPos+"px",N.coverGutter||(me-=le.gutterTotalWidth,B.style.paddingLeft=le.gutterTotalWidth+"px"),B.style.width=me+"px"}N.coverGutter&&(B.style.zIndex=5,B.style.position="relative",N.noHScroll||(B.style.marginLeft=-le.gutterTotalWidth+"px"))}function Sn(N){if(N.height!=null)return N.height;var B=N.doc.cm;if(!B)return 0;if(!j(document.body,N.node)){var ie="position: relative;";N.coverGutter&&(ie+="margin-left: -"+B.display.gutters.offsetWidth+"px;"),N.noHScroll&&(ie+="width: "+B.display.wrapper.clientWidth+"px;"),O(B.display.measure,I("div",[N.node],null,ie))}return N.height=N.node.parentNode.offsetHeight}function ei(N,B){for(var ie=qe(B);ie!=N.wrapper;ie=ie.parentNode)if(!ie||ie.nodeType==1&&ie.getAttribute("cm-ignore-events")=="true"||ie.parentNode==N.sizer&&ie!=N.mover)return!0}function Kn(N){return N.lineSpace.offsetTop}function mi(N){return N.mover.offsetHeight-N.lineSpace.offsetHeight}function Fi(N){if(N.cachedPaddingH)return N.cachedPaddingH;var B=O(N.measure,I("pre","x","CodeMirror-line-like")),ie=window.getComputedStyle?window.getComputedStyle(B):B.currentStyle,le={left:parseInt(ie.paddingLeft),right:parseInt(ie.paddingRight)};return!isNaN(le.left)&&!isNaN(le.right)&&(N.cachedPaddingH=le),le}function bi(N){return te-N.display.nativeBarWidth}function Ii(N){return N.display.scroller.clientWidth-bi(N)-N.display.barWidth}function Vi(N){return N.display.scroller.clientHeight-bi(N)-N.display.barHeight}function ea(N,B,ie){var le=N.options.lineWrapping,me=le&&Ii(N);if(!B.measure.heights||le&&B.measure.width!=me){var Ke=B.measure.heights=[];if(le){B.measure.width=me;for(var It=B.text.firstChild.getClientRects(),nr=0;nr<It.length-1;nr++){var wr=It[nr],_r=It[nr+1];Math.abs(wr.bottom-_r.bottom)>2&&Ke.push((wr.bottom+_r.top)/2-ie.top)}}Ke.push(ie.bottom-ie.top)}}function Xi(N,B,ie){if(N.line==B)return{map:N.measure.map,cache:N.measure.cache};for(var le=0;le<N.rest.length;le++)if(N.rest[le]==B)return{map:N.measure.maps[le],cache:N.measure.caches[le]};for(var me=0;me<N.rest.length;me++)if(Yt(N.rest[me])>ie)return{map:N.measure.maps[me],cache:N.measure.caches[me],before:!0}}function zi(N,B){B=kt(B);var ie=Yt(B),le=N.display.externalMeasured=new ba(N.doc,B,ie);le.lineN=ie;var me=le.built=oi(N,le);return le.text=me.pre,O(N.display.lineMeasure,me.pre),le}function Hi(N,B,ie,le){return Ca(N,ca(N,B),ie,le)}function Ji(N,B){if(B>=N.display.viewFrom&&B<N.display.viewTo)return N.display.view[uo(N,B)];var ie=N.display.externalMeasured;if(ie&&B>=ie.lineN&&B<ie.lineN+ie.size)return ie}function ca(N,B){var ie=Yt(B),le=Ji(N,ie);le&&!le.text?le=null:le&&le.changes&&(Cn(N,le,ie,os(N)),N.curOp.forceUpdate=!0),le||(le=zi(N,B));var me=Xi(le,B,ie);return{line:B,view:le,rect:null,map:me.map,cache:me.cache,before:me.before,hasHeights:!1}}function Ca(N,B,ie,le,me){B.before&&(ie=-1);var Ke=ie+(le||""),It;return B.cache.hasOwnProperty(Ke)?It=B.cache[Ke]:(B.rect||(B.rect=B.view.text.getBoundingClientRect()),B.hasHeights||(ea(N,B.view,B.rect),B.hasHeights=!0),It=va(N,B,ie,le),It.bogus||(B.cache[Ke]=It)),{left:It.left,right:It.right,top:me?It.rtop:It.top,bottom:me?It.rbottom:It.bottom}}var na={left:0,right:0,top:0,bottom:0};function Pa(N,B,ie){for(var le,me,Ke,It,nr,wr,_r=0;_r<N.length;_r+=3)if(nr=N[_r],wr=N[_r+1],B<nr?(me=0,Ke=1,It="left"):B<wr?(me=B-nr,Ke=me+1):(_r==N.length-3||B==wr&&N[_r+3]>B)&&(Ke=wr-nr,me=Ke-1,B>=wr&&(It="right")),me!=null){if(le=N[_r+2],nr==wr&&ie==(le.insertLeft?"left":"right")&&(It=ie),ie=="left"&&me==0)for(;_r&&N[_r-2]==N[_r-3]&&N[_r-1].insertLeft;)le=N[(_r-=3)+2],It="left";if(ie=="right"&&me==wr-nr)for(;_r<N.length-3&&N[_r+3]==N[_r+4]&&!N[_r+5].insertLeft;)le=N[(_r+=3)+2],It="right";break}return{node:le,start:me,end:Ke,collapse:It,coverStart:nr,coverEnd:wr}}function La(N,B){var ie=na;if(B=="left")for(var le=0;le<N.length&&!((ie=N[le]).left!=ie.right);le++);else for(var me=N.length-1;me>=0&&!((ie=N[me]).left!=ie.right);me--);return ie}function va(N,B,ie,le){var me=Pa(B.map,ie,le),Ke=me.node,It=me.start,nr=me.end,wr=me.collapse,_r;if(Ke.nodeType==3){for(var Hn=0;Hn<4;Hn++){for(;It&&be(B.line.text.charAt(me.coverStart+It));)--It;for(;me.coverStart+nr<me.coverEnd&&be(B.line.text.charAt(me.coverStart+nr));)++nr;if(d&&u<9&&It==0&&nr==me.coverEnd-me.coverStart?_r=Ke.parentNode.getBoundingClientRect():_r=La(M(Ke,It,nr).getClientRects(),le),_r.left||_r.right||It==0)break;nr=It,It=It-1,wr="right"}d&&u<11&&(_r=ga(N.display.measure,_r))}else{It>0&&(wr=le="right");var ni;N.options.lineWrapping&&(ni=Ke.getClientRects()).length>1?_r=ni[le=="right"?ni.length-1:0]:_r=Ke.getBoundingClientRect()}if(d&&u<9&&!It&&(!_r||!_r.left&&!_r.right)){var Ei=Ke.parentNode.getClientRects()[0];Ei?_r={left:Ei.left,right:Ei.left+Io(N.display),top:Ei.top,bottom:Ei.bottom}:_r=na}for(var Oi=_r.top-B.rect.top,la=_r.bottom-B.rect.top,Ta=(Oi+la)/2,Wa=B.view.measure.heights,Ma=0;Ma<Wa.length-1&&!(Ta<Wa[Ma]);Ma++);var Na=Ma?Wa[Ma-1]:0,qa=Wa[Ma],ho={left:(wr=="right"?_r.right:_r.left)-B.rect.left,right:(wr=="left"?_r.left:_r.right)-B.rect.left,top:Na,bottom:qa};return!_r.left&&!_r.right&&(ho.bogus=!0),N.options.singleCursorHeightPerLine||(ho.rtop=Oi,ho.rbottom=la),ho}function ga(N,B){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!pt(N))return B;var ie=screen.logicalXDPI/screen.deviceXDPI,le=screen.logicalYDPI/screen.deviceYDPI;return{left:B.left*ie,right:B.right*ie,top:B.top*le,bottom:B.bottom*le}}function Oa(N){if(N.measure&&(N.measure.cache={},N.measure.heights=null,N.rest))for(var B=0;B<N.rest.length;B++)N.measure.caches[B]={}}function Aa(N){N.display.externalMeasure=null,w(N.display.lineMeasure);for(var B=0;B<N.display.view.length;B++)Oa(N.display.view[B])}function Xa(N){Aa(N),N.display.cachedCharWidth=N.display.cachedTextHeight=N.display.cachedPaddingH=null,N.options.lineWrapping||(N.display.maxLineChanged=!0),N.display.lineNumChars=null}function _a(){return t&&c?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Va(){return t&&c?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Bi(N){var B=0;if(N.widgets)for(var ie=0;ie<N.widgets.length;++ie)N.widgets[ie].above&&(B+=Sn(N.widgets[ie]));return B}function io(N,B,ie,le,me){if(!me){var Ke=Bi(B);ie.top+=Ke,ie.bottom+=Ke}if(le=="line")return ie;le||(le="local");var It=Mr(B);if(le=="local"?It+=Kn(N.display):It-=N.display.viewOffset,le=="page"||le=="window"){var nr=N.display.lineSpace.getBoundingClientRect();It+=nr.top+(le=="window"?0:Va());var wr=nr.left+(le=="window"?0:_a());ie.left+=wr,ie.right+=wr}return ie.top+=It,ie.bottom+=It,ie}function oo(N,B,ie){if(ie=="div")return B;var le=B.left,me=B.top;if(ie=="page")le-=_a(),me-=Va();else if(ie=="local"||!ie){var Ke=N.display.sizer.getBoundingClientRect();le+=Ke.left,me+=Ke.top}var It=N.display.lineSpace.getBoundingClientRect();return{left:le-It.left,top:me-It.top}}function Qo(N,B,ie,le,me){return le||(le=Pe(N.doc,B.line)),io(N,le,Hi(N,le,B.ch,me),ie)}function mo(N,B,ie,le,me,Ke){le=le||Pe(N.doc,B.line),me||(me=ca(N,le));function It(la,Ta){var Wa=Ca(N,me,la,Ta?"right":"left",Ke);return Ta?Wa.left=Wa.right:Wa.right=Wa.left,io(N,le,Wa,ie)}var nr=St(le,N.doc.direction),wr=B.ch,_r=B.sticky;if(wr>=le.text.length?(wr=le.text.length,_r="before"):wr<=0&&(wr=0,_r="after"),!nr)return It(_r=="before"?wr-1:wr,_r=="before");function Hn(la,Ta,Wa){var Ma=nr[Ta],Na=Ma.level==1;return It(Wa?la-1:la,Na!=Wa)}var ni=Re(nr,wr,_r),Ei=we,Oi=Hn(wr,ni,_r=="before");return Ei!=null&&(Oi.other=Hn(wr,Ei,_r!="before")),Oi}function To(N,B){var ie=0;B=Rt(N.doc,B),N.options.lineWrapping||(ie=Io(N.display)*B.ch);var le=Pe(N.doc,B.line),me=Mr(le)+Kn(N.display);return{left:ie,right:ie,top:me,bottom:me+le.height}}function ao(N,B,ie,le,me){var Ke=jt(N,B,ie);return Ke.xRel=me,le&&(Ke.outside=le),Ke}function So(N,B,ie){var le=N.doc;if(ie+=N.display.viewOffset,ie<0)return ao(le.first,0,null,-1,-1);var me=Rr(le,ie),Ke=le.first+le.size-1;if(me>Ke)return ao(le.first+le.size-1,Pe(le,Ke).text.length,null,1,1);B<0&&(B=0);for(var It=Pe(le,me);;){var nr=Uo(N,It,me,B,ie),wr=zt(It,nr.ch+(nr.xRel>0||nr.outside>0?1:0));if(!wr)return nr;var _r=wr.find(1);if(_r.line==me)return _r;It=Pe(le,me=_r.line)}}function bo(N,B,ie,le){le-=Bi(B);var me=B.text.length,Ke=Be(function(It){return Ca(N,ie,It-1).bottom<=le},me,0);return me=Be(function(It){return Ca(N,ie,It).top>le},Ke,me),{begin:Ke,end:me}}function to(N,B,ie,le){ie||(ie=ca(N,B));var me=io(N,B,Ca(N,ie,le),"line").top;return bo(N,B,ie,me)}function Jo(N,B,ie,le){return N.bottom<=ie?!1:N.top>ie?!0:(le?N.left:N.right)>B}function Uo(N,B,ie,le,me){me-=Mr(B);var Ke=ca(N,B),It=Bi(B),nr=0,wr=B.text.length,_r=!0,Hn=St(B,N.doc.direction);if(Hn){var ni=(N.options.lineWrapping?ts:wo)(N,B,ie,Ke,Hn,le,me);_r=ni.level!=1,nr=_r?ni.from:ni.to-1,wr=_r?ni.to:ni.from-1}var Ei=null,Oi=null,la=Be(function(ns){var Mo=Ca(N,Ke,ns);return Mo.top+=It,Mo.bottom+=It,Jo(Mo,le,me,!1)?(Mo.top<=me&&Mo.left<=le&&(Ei=ns,Oi=Mo),!0):!1},nr,wr),Ta,Wa,Ma=!1;if(Oi){var Na=le-Oi.left<Oi.right-le,qa=Na==_r;la=Ei+(qa?0:1),Wa=qa?"after":"before",Ta=Na?Oi.left:Oi.right}else{!_r&&(la==wr||la==nr)&&la++,Wa=la==0?"after":la==B.text.length?"before":Ca(N,Ke,la-(_r?1:0)).bottom+It<=me==_r?"after":"before";var ho=mo(N,jt(ie,la,Wa),"line",B,Ke);Ta=ho.left,Ma=me<ho.top?-1:me>=ho.bottom?1:0}return la=Ce(B.text,la,1),ao(ie,la,Wa,Ma,le-Ta)}function wo(N,B,ie,le,me,Ke,It){var nr=Be(function(ni){var Ei=me[ni],Oi=Ei.level!=1;return Jo(mo(N,jt(ie,Oi?Ei.to:Ei.from,Oi?"before":"after"),"line",B,le),Ke,It,!0)},0,me.length-1),wr=me[nr];if(nr>0){var _r=wr.level!=1,Hn=mo(N,jt(ie,_r?wr.from:wr.to,_r?"after":"before"),"line",B,le);Jo(Hn,Ke,It,!0)&&Hn.top>It&&(wr=me[nr-1])}return wr}function ts(N,B,ie,le,me,Ke,It){var nr=bo(N,B,le,It),wr=nr.begin,_r=nr.end;/\s/.test(B.text.charAt(_r-1))&&_r--;for(var Hn=null,ni=null,Ei=0;Ei<me.length;Ei++){var Oi=me[Ei];if(Oi.from>=_r||Oi.to<=wr)continue;var la=Oi.level!=1,Ta=Ca(N,le,la?Math.min(_r,Oi.to)-1:Math.max(wr,Oi.from)).right,Wa=Ta<Ke?Ke-Ta+1e9:Ta-Ke;(!Hn||ni>Wa)&&(Hn=Oi,ni=Wa)}return Hn||(Hn=me[me.length-1]),Hn.from<wr&&(Hn={from:wr,to:Hn.to,level:Hn.level}),Hn.to>_r&&(Hn={from:Hn.from,to:_r,level:Hn.level}),Hn}var Ia;function Oo(N){if(N.cachedTextHeight!=null)return N.cachedTextHeight;if(Ia==null){Ia=I("pre",null,"CodeMirror-line-like");for(var B=0;B<49;++B)Ia.appendChild(document.createTextNode("x")),Ia.appendChild(I("br"));Ia.appendChild(document.createTextNode("x"))}O(N.measure,Ia);var ie=Ia.offsetHeight/50;return ie>3&&(N.cachedTextHeight=ie),w(N.measure),ie||1}function Io(N){if(N.cachedCharWidth!=null)return N.cachedCharWidth;var B=I("span","xxxxxxxxxx"),ie=I("pre",[B],"CodeMirror-line-like");O(N.measure,ie);var le=B.getBoundingClientRect(),me=(le.right-le.left)/10;return me>2&&(N.cachedCharWidth=me),me||10}function os(N){for(var B=N.display,ie={},le={},me=B.gutters.clientLeft,Ke=B.gutters.firstChild,It=0;Ke;Ke=Ke.nextSibling,++It){var nr=N.display.gutterSpecs[It].className;ie[nr]=Ke.offsetLeft+Ke.clientLeft+me,le[nr]=Ke.clientWidth}return{fixedPos:xo(B),gutterTotalWidth:B.gutters.offsetWidth,gutterLeft:ie,gutterWidth:le,wrapperWidth:B.wrapper.clientWidth}}function xo(N){return N.scroller.getBoundingClientRect().left-N.sizer.getBoundingClientRect().left}function rs(N){var B=Oo(N.display),ie=N.options.lineWrapping,le=ie&&Math.max(5,N.display.scroller.clientWidth/Io(N.display)-3);return function(me){if(yr(N.doc,me))return 0;var Ke=0;if(me.widgets)for(var It=0;It<me.widgets.length;It++)me.widgets[It].height&&(Ke+=me.widgets[It].height);return ie?Ke+(Math.ceil(me.text.length/le)||1)*B:Ke+B}}function Ho(N){var B=N.doc,ie=rs(N);B.iter(function(le){var me=ie(le);me!=le.height&&Et(le,me)})}function _o(N,B,ie,le){var me=N.display;if(!ie&&qe(B).getAttribute("cm-not-content")=="true")return null;var Ke,It,nr=me.lineSpace.getBoundingClientRect();try{Ke=B.clientX-nr.left,It=B.clientY-nr.top}catch(ni){return null}var wr=So(N,Ke,It),_r;if(le&&wr.xRel>0&&(_r=Pe(N.doc,wr.line).text).length==wr.ch){var Hn=V(_r,_r.length,N.options.tabSize)-_r.length;wr=jt(wr.line,Math.max(0,Math.round((Ke-Fi(N.display).left)/Io(N.display))-Hn))}return wr}function uo(N,B){if(B>=N.display.viewTo)return null;if(B-=N.display.viewFrom,B<0)return null;for(var ie=N.display.view,le=0;le<ie.length;le++)if(B-=ie[le].size,B<0)return le}function Ha(N,B,ie,le){B==null&&(B=N.doc.first),ie==null&&(ie=N.doc.first+N.doc.size),le||(le=0);var me=N.display;if(le&&ie<me.viewTo&&(me.updateLineNumbers==null||me.updateLineNumbers>B)&&(me.updateLineNumbers=B),N.curOp.viewChanged=!0,B>=me.viewTo)Ze&&Lt(N.doc,B)<me.viewTo&&Tr(N);else if(ie<=me.viewFrom)Ze&&dr(N.doc,ie+le)>me.viewFrom?Tr(N):(me.viewFrom+=le,me.viewTo+=le);else if(B<=me.viewFrom&&ie>=me.viewTo)Tr(N);else if(B<=me.viewFrom){var Ke=tn(N,ie,ie+le,1);Ke?(me.view=me.view.slice(Ke.index),me.viewFrom=Ke.lineN,me.viewTo+=le):Tr(N)}else if(ie>=me.viewTo){var It=tn(N,B,B,-1);It?(me.view=me.view.slice(0,It.index),me.viewTo=It.lineN):Tr(N)}else{var nr=tn(N,B,B,-1),wr=tn(N,ie,ie+le,1);nr&&wr?(me.view=me.view.slice(0,nr.index).concat(yi(N,nr.lineN,wr.lineN)).concat(me.view.slice(wr.index)),me.viewTo+=le):Tr(N)}var _r=me.externalMeasured;_r&&(ie<_r.lineN?_r.lineN+=le:B<_r.lineN+_r.size&&(me.externalMeasured=null))}function mt(N,B,ie){N.curOp.viewChanged=!0;var le=N.display,me=N.display.externalMeasured;if(me&&B>=me.lineN&&B<me.lineN+me.size&&(le.externalMeasured=null),B<le.viewFrom||B>=le.viewTo)return;var Ke=le.view[uo(N,B)];if(Ke.node==null)return;var It=Ke.changes||(Ke.changes=[]);G(It,ie)==-1&&It.push(ie)}function Tr(N){N.display.viewFrom=N.display.viewTo=N.doc.first,N.display.view=[],N.display.viewOffset=0}function tn(N,B,ie,le){var me=uo(N,B),Ke,It=N.display.view;if(!Ze||ie==N.doc.first+N.doc.size)return{index:me,lineN:ie};for(var nr=N.display.viewFrom,wr=0;wr<me;wr++)nr+=It[wr].size;if(nr!=B){if(le>0){if(me==It.length-1)return null;Ke=nr+It[me].size-B,me++}else Ke=nr-B;B+=Ke,ie+=Ke}for(;Lt(N.doc,ie)!=ie;){if(me==(le<0?0:It.length-1))return null;ie+=le*It[me-(le<0?1:0)].size,me+=le}return{index:me,lineN:ie}}function Qr(N,B,ie){var le=N.display,me=le.view;me.length==0||B>=le.viewTo||ie<=le.viewFrom?(le.view=yi(N,B,ie),le.viewFrom=B):(le.viewFrom>B?le.view=yi(N,B,le.viewFrom).concat(le.view):le.viewFrom<B&&(le.view=le.view.slice(uo(N,B))),le.viewFrom=B,le.viewTo<ie?le.view=le.view.concat(yi(N,le.viewTo,ie)):le.viewTo>ie&&(le.view=le.view.slice(0,uo(N,ie)))),le.viewTo=ie}function Jn(N){for(var B=N.display.view,ie=0,le=0;le<B.length;le++){var me=B[le];!me.hidden&&(!me.node||me.changes)&&++ie}return ie}function fn(N){N.display.input.showSelection(N.display.input.prepareSelection())}function Xr(N,B){B===void 0&&(B=!0);for(var ie=N.doc,le={},me=le.cursors=document.createDocumentFragment(),Ke=le.selection=document.createDocumentFragment(),It=0;It<ie.sel.ranges.length;It++){if(!B&&It==ie.sel.primIndex)continue;var nr=ie.sel.ranges[It];if(nr.from().line>=N.display.viewTo||nr.to().line<N.display.viewFrom)continue;var wr=nr.empty();(wr||N.options.showCursorWhenSelecting)&&ii(N,nr.head,me),wr||Wn(N,nr,Ke)}return le}function ii(N,B,ie){var le=mo(N,B,"div",null,null,!N.options.singleCursorHeightPerLine),me=ie.appendChild(I("div","\xA0","CodeMirror-cursor"));if(me.style.left=le.left+"px",me.style.top=le.top+"px",me.style.height=Math.max(0,le.bottom-le.top)*N.options.cursorHeight+"px",le.other){var Ke=ie.appendChild(I("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ke.style.display="",Ke.style.left=le.other.left+"px",Ke.style.top=le.other.top+"px",Ke.style.height=(le.other.bottom-le.other.top)*.85+"px"}}function nn(N,B){return N.top-B.top||N.left-B.left}function Wn(N,B,ie){var le=N.display,me=N.doc,Ke=document.createDocumentFragment(),It=Fi(N.display),nr=It.left,wr=Math.max(le.sizerWidth,Ii(N)-le.sizer.offsetLeft)-It.right,_r=me.direction=="ltr";function Hn(qa,ho,ns,Mo){ho<0&&(ho=0),ho=Math.round(ho),Mo=Math.round(Mo),Ke.appendChild(I("div",null,"CodeMirror-selected","position: absolute; left: "+qa+`px;
|
|
|
top: `+ho+"px; width: "+(ns==null?wr-qa:ns)+`px;
|
|
|
height: `+(Mo-ho)+"px"))}function ni(qa,ho,ns){var Mo=Pe(me,qa),Ss=Mo.text.length,Zs,yl;function ul(Il,Gl){return Qo(N,jt(qa,Il),"div",Mo,Gl)}function Pl(Il,Gl,Fl){var Ja=to(N,Mo,null,Il),vl=Gl=="ltr"==(Fl=="after")?"left":"right",gl=Fl=="after"?Ja.begin:Ja.end-(/\s/.test(Mo.text.charAt(Ja.end-1))?2:1);return ul(gl,vl)[vl]}var Vl=St(Mo,me.direction);return fe(Vl,ho||0,ns==null?Ss:ns,function(Il,Gl,Fl,Ja){var vl=Fl=="ltr",gl=ul(Il,vl?"left":"right"),El=ul(Gl-1,vl?"right":"left"),Bu=ho==null&&Il==0,Ks=ns==null&&Gl==Ss,vs=Ja==0,lu=!Vl||Ja==Vl.length-1;if(El.top-gl.top<=3){var Kl=(_r?Bu:Ks)&&vs,Uu=(_r?Ks:Bu)&&lu,Eu=Kl?nr:(vl?gl:El).left,uu=Uu?wr:(vl?El:gl).right;Hn(Eu,gl.top,uu-Eu,gl.bottom)}else{var ku,Yl,Tu,Vu;vl?(ku=_r&&Bu&&vs?nr:gl.left,Yl=_r?wr:Pl(Il,Fl,"before"),Tu=_r?nr:Pl(Gl,Fl,"after"),Vu=_r&&Ks&&lu?wr:El.right):(ku=_r?Pl(Il,Fl,"before"):nr,Yl=!_r&&Bu&&vs?wr:gl.right,Tu=!_r&&Ks&&lu?nr:El.left,Vu=_r?Pl(Gl,Fl,"after"):wr),Hn(ku,gl.top,Yl-ku,gl.bottom),gl.bottom<El.top&&Hn(nr,gl.bottom,null,El.top),Hn(Tu,El.top,Vu-Tu,El.bottom)}(!Zs||nn(gl,Zs)<0)&&(Zs=gl),nn(El,Zs)<0&&(Zs=El),(!yl||nn(gl,yl)<0)&&(yl=gl),nn(El,yl)<0&&(yl=El)}),{start:Zs,end:yl}}var Ei=B.from(),Oi=B.to();if(Ei.line==Oi.line)ni(Ei.line,Ei.ch,Oi.ch);else{var la=Pe(me,Ei.line),Ta=Pe(me,Oi.line),Wa=kt(la)==kt(Ta),Ma=ni(Ei.line,Ei.ch,Wa?la.text.length+1:null).end,Na=ni(Oi.line,Wa?0:null,Oi.ch).start;Wa&&(Ma.top<Na.top-2?(Hn(Ma.right,Ma.top,null,Ma.bottom),Hn(nr,Na.top,Na.left,Na.bottom)):Hn(Ma.right,Ma.top,Na.left-Ma.right,Ma.bottom)),Ma.bottom<Na.top&&Hn(nr,Ma.bottom,null,Na.top)}ie.appendChild(Ke)}function li(N){if(!N.state.focused)return;var B=N.display;clearInterval(B.blinker);var ie=!0;B.cursorDiv.style.visibility="",N.options.cursorBlinkRate>0?B.blinker=setInterval(function(){N.hasFocus()||gi(N),B.cursorDiv.style.visibility=(ie=!ie)?"":"hidden"},N.options.cursorBlinkRate):N.options.cursorBlinkRate<0&&(B.cursorDiv.style.visibility="hidden")}function ci(N){N.state.focused||(N.display.input.focus(),Ci(N))}function si(N){N.state.delayingBlurEvent=!0,setTimeout(function(){N.state.delayingBlurEvent&&(N.state.delayingBlurEvent=!1,gi(N))},100)}function Ci(N,B){if(N.state.delayingBlurEvent&&(N.state.delayingBlurEvent=!1),N.options.readOnly=="nocursor")return;N.state.focused||(Kt(N,"focus",N,B),N.state.focused=!0,X(N.display.wrapper,"CodeMirror-focused"),!N.curOp&&N.display.selForContextMenu!=N.doc.sel&&(N.display.input.reset(),s&&setTimeout(function(){return N.display.input.reset(!0)},20)),N.display.input.receivedFocus()),li(N)}function gi(N,B){if(N.state.delayingBlurEvent)return;N.state.focused&&(Kt(N,"blur",N,B),N.state.focused=!1,T(N.display.wrapper,"CodeMirror-focused")),clearInterval(N.display.blinker),setTimeout(function(){N.state.focused||(N.display.shift=!1)},150)}function Ai(N){for(var B=N.display,ie=B.lineDiv.offsetTop,le=0;le<B.view.length;le++){var me=B.view[le],Ke=N.options.lineWrapping,It=void 0,nr=0;if(me.hidden)continue;if(d&&u<8){var wr=me.node.offsetTop+me.node.offsetHeight;It=wr-ie,ie=wr}else{var _r=me.node.getBoundingClientRect();It=_r.bottom-_r.top,!Ke&&me.text.firstChild&&(nr=me.text.firstChild.getBoundingClientRect().right-_r.left-1)}var Hn=me.line.height-It;if((Hn>.005||Hn<-.005)&&(Et(me.line,It),Ni(me.line),me.rest))for(var ni=0;ni<me.rest.length;ni++)Ni(me.rest[ni]);if(nr>N.display.sizerWidth){var Ei=Math.ceil(nr/Io(N.display));Ei>N.display.maxLineLength&&(N.display.maxLineLength=Ei,N.display.maxLine=me.line,N.display.maxLineChanged=!0)}}}function Ni(N){if(N.widgets)for(var B=0;B<N.widgets.length;++B){var ie=N.widgets[B],le=ie.node.parentNode;le&&(ie.height=le.offsetHeight)}}function ia(N,B,ie){var le=ie&&ie.top!=null?Math.max(0,ie.top):N.scroller.scrollTop;le=Math.floor(le-Kn(N));var me=ie&&ie.bottom!=null?ie.bottom:le+N.wrapper.clientHeight,Ke=Rr(B,le),It=Rr(B,me);if(ie&&ie.ensure){var nr=ie.ensure.from.line,wr=ie.ensure.to.line;nr<Ke?(Ke=nr,It=Rr(B,Mr(Pe(B,nr))+N.wrapper.clientHeight)):Math.min(wr,B.lastLine())>=It&&(Ke=Rr(B,Mr(Pe(B,wr))-N.wrapper.clientHeight),It=wr)}return{from:Ke,to:Math.max(It,Ke+1)}}function Ki(N,B){if(fr(N,"scrollCursorIntoView"))return;var ie=N.display,le=ie.sizer.getBoundingClientRect(),me=null;if(B.top+le.top<0?me=!0:B.bottom+le.top>(window.innerHeight||document.documentElement.clientHeight)&&(me=!1),me!=null&&!r){var Ke=I("div","\u200B",null,`position: absolute;
|
|
|
top: `+(B.top-ie.viewOffset-Kn(N.display))+`px;
|
|
|
height: `+(B.bottom-B.top+bi(N)+ie.barHeight)+`px;
|
|
|
left: `+B.left+"px; width: "+Math.max(2,B.right-B.left)+"px;");N.display.lineSpace.appendChild(Ke),Ke.scrollIntoView(me),N.display.lineSpace.removeChild(Ke)}}function fa(N,B,ie,le){le==null&&(le=0);var me;!N.options.lineWrapping&&B==ie&&(B=B.ch?jt(B.line,B.sticky=="before"?B.ch-1:B.ch,"after"):B,ie=B.sticky=="before"?jt(B.line,B.ch+1,"before"):B);for(var Ke=0;Ke<5;Ke++){var It=!1,nr=mo(N,B),wr=!ie||ie==B?nr:mo(N,ie);me={left:Math.min(nr.left,wr.left),top:Math.min(nr.top,wr.top)-le,right:Math.max(nr.left,wr.left),bottom:Math.max(nr.bottom,wr.bottom)+le};var _r=xa(N,me),Hn=N.doc.scrollTop,ni=N.doc.scrollLeft;if(_r.scrollTop!=null&&(Ea(N,_r.scrollTop),Math.abs(N.doc.scrollTop-Hn)>1&&(It=!0)),_r.scrollLeft!=null&&(Ka(N,_r.scrollLeft),Math.abs(N.doc.scrollLeft-ni)>1&&(It=!0)),!It)break}return me}function Ya(N,B){var ie=xa(N,B);ie.scrollTop!=null&&Ea(N,ie.scrollTop),ie.scrollLeft!=null&&Ka(N,ie.scrollLeft)}function xa(N,B){var ie=N.display,le=Oo(N.display);B.top<0&&(B.top=0);var me=N.curOp&&N.curOp.scrollTop!=null?N.curOp.scrollTop:ie.scroller.scrollTop,Ke=Vi(N),It={};B.bottom-B.top>Ke&&(B.bottom=B.top+Ke);var nr=N.doc.height+mi(ie),wr=B.top<le,_r=B.bottom>nr-le;if(B.top<me)It.scrollTop=wr?0:B.top;else if(B.bottom>me+Ke){var Hn=Math.min(B.top,(_r?nr:B.bottom)-Ke);Hn!=me&&(It.scrollTop=Hn)}var ni=N.options.fixedGutter?0:ie.gutters.offsetWidth,Ei=N.curOp&&N.curOp.scrollLeft!=null?N.curOp.scrollLeft:ie.scroller.scrollLeft-ni,Oi=Ii(N)-ie.gutters.offsetWidth,la=B.right-B.left>Oi;return la&&(B.right=B.left+Oi),B.left<10?It.scrollLeft=0:B.left<Ei?It.scrollLeft=Math.max(0,B.left+ni-(la?0:10)):B.right>Oi+Ei-3&&(It.scrollLeft=B.right+(la?0:10)-Oi),It}function wa(N,B){if(B==null)return;ro(N),N.curOp.scrollTop=(N.curOp.scrollTop==null?N.doc.scrollTop:N.curOp.scrollTop)+B}function Da(N){ro(N);var B=N.getCursor();N.curOp.scrollToPos={from:B,to:B,margin:N.options.cursorScrollMargin}}function ja(N,B,ie){(B!=null||ie!=null)&&ro(N),B!=null&&(N.curOp.scrollLeft=B),ie!=null&&(N.curOp.scrollTop=ie)}function ko(N,B){ro(N),N.curOp.scrollToPos=B}function ro(N){var B=N.curOp.scrollToPos;if(B){N.curOp.scrollToPos=null;var ie=To(N,B.from),le=To(N,B.to);pa(N,ie,le,B.margin)}}function pa(N,B,ie,le){var me=xa(N,{left:Math.min(B.left,ie.left),top:Math.min(B.top,ie.top)-le,right:Math.max(B.right,ie.right),bottom:Math.max(B.bottom,ie.bottom)+le});ja(N,me.scrollLeft,me.scrollTop)}function Ea(N,B){if(Math.abs(N.doc.scrollTop-B)<2)return;x||Qs(N,{top:B}),Fa(N,B,!0),x&&Qs(N),hs(N,100)}function Fa(N,B,ie){if(B=Math.max(0,Math.min(N.display.scroller.scrollHeight-N.display.scroller.clientHeight,B)),N.display.scroller.scrollTop==B&&!ie)return;N.doc.scrollTop=B,N.display.scrollbars.setScrollTop(B),N.display.scroller.scrollTop!=B&&(N.display.scroller.scrollTop=B)}function Ka(N,B,ie,le){if(B=Math.max(0,Math.min(B,N.display.scroller.scrollWidth-N.display.scroller.clientWidth)),(ie?B==N.doc.scrollLeft:Math.abs(N.doc.scrollLeft-B)<2)&&!le)return;N.doc.scrollLeft=B,al(N),N.display.scroller.scrollLeft!=B&&(N.display.scroller.scrollLeft=B),N.display.scrollbars.setScrollLeft(B)}function lo(N){var B=N.display,ie=B.gutters.offsetWidth,le=Math.round(N.doc.height+mi(N.display));return{clientHeight:B.scroller.clientHeight,viewHeight:B.wrapper.clientHeight,scrollWidth:B.scroller.scrollWidth,clientWidth:B.scroller.clientWidth,viewWidth:B.wrapper.clientWidth,barLeft:N.options.fixedGutter?ie:0,docHeight:le,scrollHeight:le+bi(N)+B.barHeight,nativeBarWidth:B.nativeBarWidth,gutterWidth:ie}}var so=function(B,ie,le){this.cm=le;var me=this.vert=I("div",[I("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Ke=this.horiz=I("div",[I("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");me.tabIndex=Ke.tabIndex=-1,B(me),B(Ke),He(me,"scroll",function(){me.clientHeight&&ie(me.scrollTop,"vertical")}),He(Ke,"scroll",function(){Ke.clientWidth&&ie(Ke.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&u<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};so.prototype.update=function(N){var B=N.scrollWidth>N.clientWidth+1,ie=N.scrollHeight>N.clientHeight+1,le=N.nativeBarWidth;if(ie){this.vert.style.display="block",this.vert.style.bottom=B?le+"px":"0";var me=N.viewHeight-(B?le:0);this.vert.firstChild.style.height=Math.max(0,N.scrollHeight-N.clientHeight+me)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(B){this.horiz.style.display="block",this.horiz.style.right=ie?le+"px":"0",this.horiz.style.left=N.barLeft+"px";var Ke=N.viewWidth-N.barLeft-(ie?le:0);this.horiz.firstChild.style.width=Math.max(0,N.scrollWidth-N.clientWidth+Ke)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&N.clientHeight>0&&(le==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ie?le:0,bottom:B?le:0}},so.prototype.setScrollLeft=function(N){this.horiz.scrollLeft!=N&&(this.horiz.scrollLeft=N),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},so.prototype.setScrollTop=function(N){this.vert.scrollTop!=N&&(this.vert.scrollTop=N),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},so.prototype.zeroWidthHack=function(){var N=g&&!l?"12px":"18px";this.horiz.style.height=this.vert.style.width=N,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Q,this.disableVert=new Q},so.prototype.enableZeroWidthBar=function(N,B,ie){N.style.pointerEvents="auto";function le(){var me=N.getBoundingClientRect(),Ke=ie=="vert"?document.elementFromPoint(me.right-1,(me.top+me.bottom)/2):document.elementFromPoint((me.right+me.left)/2,me.bottom-1);Ke!=N?N.style.pointerEvents="none":B.set(1e3,le)}B.set(1e3,le)},so.prototype.clear=function(){var N=this.horiz.parentNode;N.removeChild(this.horiz),N.removeChild(this.vert)};var Co=function(){};Co.prototype.update=function(){return{bottom:0,right:0}},Co.prototype.setScrollLeft=function(){},Co.prototype.setScrollTop=function(){},Co.prototype.clear=function(){};function Lo(N,B){B||(B=lo(N));var ie=N.display.barWidth,le=N.display.barHeight;is(N,B);for(var me=0;me<4&&ie!=N.display.barWidth||le!=N.display.barHeight;me++)ie!=N.display.barWidth&&N.options.lineWrapping&&Ai(N),is(N,lo(N)),ie=N.display.barWidth,le=N.display.barHeight}function is(N,B){var ie=N.display,le=ie.scrollbars.update(B);ie.sizer.style.paddingRight=(ie.barWidth=le.right)+"px",ie.sizer.style.paddingBottom=(ie.barHeight=le.bottom)+"px",ie.heightForcer.style.borderBottom=le.bottom+"px solid transparent",le.right&&le.bottom?(ie.scrollbarFiller.style.display="block",ie.scrollbarFiller.style.height=le.bottom+"px",ie.scrollbarFiller.style.width=le.right+"px"):ie.scrollbarFiller.style.display="",le.bottom&&N.options.coverGutterNextToScrollbar&&N.options.fixedGutter?(ie.gutterFiller.style.display="block",ie.gutterFiller.style.height=le.bottom+"px",ie.gutterFiller.style.width=B.gutterWidth+"px"):ie.gutterFiller.style.display=""}var cs={native:so,null:Co};function Rs(N){N.display.scrollbars&&(N.display.scrollbars.clear(),N.display.scrollbars.addClass&&T(N.display.wrapper,N.display.scrollbars.addClass)),N.display.scrollbars=new cs[N.options.scrollbarStyle](function(B){N.display.wrapper.insertBefore(B,N.display.scrollbarFiller),He(B,"mousedown",function(){N.state.focused&&setTimeout(function(){return N.display.input.focus()},0)}),B.setAttribute("cm-not-content","true")},function(B,ie){ie=="horizontal"?Ka(N,B):Ea(N,B)},N),N.display.scrollbars.addClass&&X(N.display.wrapper,N.display.scrollbars.addClass)}var Ko=0;function as(N){N.curOp={cm:N,viewChanged:!1,startHeight:N.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ko},ji(N.curOp)}function co(N){var B=N.curOp;B&&ta(B,function(ie){for(var le=0;le<ie.ops.length;le++)ie.ops[le].cm.curOp=null;Ao(ie)})}function Ao(N){for(var B=N.ops,ie=0;ie<B.length;ie++)$a(B[ie]);for(var le=0;le<B.length;le++)ss(B[le]);for(var me=0;me<B.length;me++)_s(B[me]);for(var Ke=0;Ke<B.length;Ke++)Fo(B[Ke]);for(var It=0;It<B.length;It++)il(B[It])}function $a(N){var B=N.cm,ie=B.display;Ll(B),N.updateMaxLine&&Mn(B),N.mustUpdate=N.viewChanged||N.forceUpdate||N.scrollTop!=null||N.scrollToPos&&(N.scrollToPos.from.line<ie.viewFrom||N.scrollToPos.to.line>=ie.viewTo)||ie.maxLineChanged&&B.options.lineWrapping,N.update=N.mustUpdate&&new Ns(B,N.mustUpdate&&{top:N.scrollTop,ensure:N.scrollToPos},N.forceUpdate)}function ss(N){N.updatedDisplay=N.mustUpdate&&ds(N.cm,N.update)}function _s(N){var B=N.cm,ie=B.display;N.updatedDisplay&&Ai(B),N.barMeasure=lo(B),ie.maxLineChanged&&!B.options.lineWrapping&&(N.adjustWidthTo=Hi(B,ie.maxLine,ie.maxLine.text.length).left+3,B.display.sizerWidth=N.adjustWidthTo,N.barMeasure.scrollWidth=Math.max(ie.scroller.clientWidth,ie.sizer.offsetLeft+N.adjustWidthTo+bi(B)+B.display.barWidth),N.maxScrollLeft=Math.max(0,ie.sizer.offsetLeft+N.adjustWidthTo-Ii(B))),(N.updatedDisplay||N.selectionChanged)&&(N.preparedSelection=ie.input.prepareSelection())}function Fo(N){var B=N.cm;N.adjustWidthTo!=null&&(B.display.sizer.style.minWidth=N.adjustWidthTo+"px",N.maxScrollLeft<B.doc.scrollLeft&&Ka(B,Math.min(B.display.scroller.scrollLeft,N.maxScrollLeft),!0),B.display.maxLineChanged=!1);var ie=N.focus&&N.focus==P();N.preparedSelection&&B.display.input.showSelection(N.preparedSelection,ie),(N.updatedDisplay||N.startHeight!=B.doc.height)&&Lo(B,N.barMeasure),N.updatedDisplay&&Bs(B,N.barMeasure),N.selectionChanged&&li(B),B.state.focused&&N.updateInput&&B.display.input.reset(N.typing),ie&&ci(N.cm)}function il(N){var B=N.cm,ie=B.display,le=B.doc;if(N.updatedDisplay&&ks(B,N.update),ie.wheelStartX!=null&&(N.scrollTop!=null||N.scrollLeft!=null||N.scrollToPos)&&(ie.wheelStartX=ie.wheelStartY=null),N.scrollTop!=null&&Fa(B,N.scrollTop,N.forceScroll),N.scrollLeft!=null&&Ka(B,N.scrollLeft,!0,!0),N.scrollToPos){var me=fa(B,Rt(le,N.scrollToPos.from),Rt(le,N.scrollToPos.to),N.scrollToPos.margin);Ki(B,me)}var Ke=N.maybeHiddenMarkers,It=N.maybeUnhiddenMarkers;if(Ke)for(var nr=0;nr<Ke.length;++nr)Ke[nr].lines.length||Kt(Ke[nr],"hide");if(It)for(var wr=0;wr<It.length;++wr)It[wr].lines.length&&Kt(It[wr],"unhide");ie.wrapper.offsetHeight&&(le.scrollTop=B.display.scroller.scrollTop),N.changeObjs&&Kt(B,"changes",B,N.changeObjs),N.update&&N.update.finish()}function Eo(N,B){if(N.curOp)return B();as(N);try{return B()}finally{co(N)}}function zo(N,B){return function(){if(N.curOp)return B.apply(N,arguments);as(N);try{return B.apply(N,arguments)}finally{co(N)}}}function Fs(N){return function(){if(this.curOp)return N.apply(this,arguments);as(this);try{return N.apply(this,arguments)}finally{co(this)}}}function ms(N){return function(){var B=this.cm;if(!B||B.curOp)return N.apply(this,arguments);as(B);try{return N.apply(this,arguments)}finally{co(B)}}}function hs(N,B){N.doc.highlightFrontier<N.display.viewTo&&N.state.highlight.set(B,K(wn,N))}function wn(N){var B=N.doc;if(B.highlightFrontier>=N.display.viewTo)return;var ie=+new Date+N.options.workTime,le=ri(N,B.highlightFrontier),me=[];B.iter(le.line,Math.min(B.first+B.size,N.display.viewTo+500),function(Ke){if(le.line>=N.display.viewFrom){var It=Ke.styles,nr=Ke.text.length>N.options.maxHighlightLength?$t(B.mode,le.state):null,wr=cn(N,Ke,le,!0);nr&&(le.state=nr),Ke.styles=wr.styles;var _r=Ke.styleClasses,Hn=wr.classes;Hn?Ke.styleClasses=Hn:_r&&(Ke.styleClasses=null);for(var ni=!It||It.length!=Ke.styles.length||_r!=Hn&&(!_r||!Hn||_r.bgClass!=Hn.bgClass||_r.textClass!=Hn.textClass),Ei=0;!ni&&Ei<It.length;++Ei)ni=It[Ei]!=Ke.styles[Ei];ni&&me.push(le.line),Ke.stateAfter=le.save(),le.nextLine()}else Ke.text.length<=N.options.maxHighlightLength&&$n(N,Ke.text,le),Ke.stateAfter=le.line%5==0?le.save():null,le.nextLine();if(+new Date>ie)return hs(N,N.options.workDelay),!0}),B.highlightFrontier=le.line,B.modeFrontier=Math.max(B.modeFrontier,le.line),me.length&&Eo(N,function(){for(var Ke=0;Ke<me.length;Ke++)mt(N,me[Ke],"text")})}var Ns=function(B,ie,le){var me=B.display;this.viewport=ie,this.visible=ia(me,B.doc,ie),this.editorIsHidden=!me.wrapper.offsetWidth,this.wrapperHeight=me.wrapper.clientHeight,this.wrapperWidth=me.wrapper.clientWidth,this.oldDisplayWidth=Ii(B),this.force=le,this.dims=os(B),this.events=[]};Ns.prototype.signal=function(N,B){Pt(N,B)&&this.events.push(arguments)},Ns.prototype.finish=function(){for(var N=0;N<this.events.length;N++)Kt.apply(null,this.events[N])};function Ll(N){var B=N.display;!B.scrollbarsClipped&&B.scroller.offsetWidth&&(B.nativeBarWidth=B.scroller.offsetWidth-B.scroller.clientWidth,B.heightForcer.style.height=bi(N)+"px",B.sizer.style.marginBottom=-B.nativeBarWidth+"px",B.sizer.style.borderRightWidth=bi(N)+"px",B.scrollbarsClipped=!0)}function el(N){if(N.hasFocus())return null;var B=P();if(!B||!j(N.display.lineDiv,B))return null;var ie={activeElt:B};if(window.getSelection){var le=window.getSelection();le.anchorNode&&le.extend&&j(N.display.lineDiv,le.anchorNode)&&(ie.anchorNode=le.anchorNode,ie.anchorOffset=le.anchorOffset,ie.focusNode=le.focusNode,ie.focusOffset=le.focusOffset)}return ie}function Gs(N){if(!N||!N.activeElt||N.activeElt==P())return;if(N.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(N.activeElt.nodeName)&&N.anchorNode&&j(document.body,N.anchorNode)&&j(document.body,N.focusNode)){var B=window.getSelection(),ie=document.createRange();ie.setEnd(N.anchorNode,N.anchorOffset),ie.collapse(!1),B.removeAllRanges(),B.addRange(ie),B.extend(N.focusNode,N.focusOffset)}}function ds(N,B){var ie=N.display,le=N.doc;if(B.editorIsHidden)return Tr(N),!1;if(!B.force&&B.visible.from>=ie.viewFrom&&B.visible.to<=ie.viewTo&&(ie.updateLineNumbers==null||ie.updateLineNumbers>=ie.viewTo)&&ie.renderedView==ie.view&&Jn(N)==0)return!1;Js(N)&&(Tr(N),B.dims=os(N));var me=le.first+le.size,Ke=Math.max(B.visible.from-N.options.viewportMargin,le.first),It=Math.min(me,B.visible.to+N.options.viewportMargin);ie.viewFrom<Ke&&Ke-ie.viewFrom<20&&(Ke=Math.max(le.first,ie.viewFrom)),ie.viewTo>It&&ie.viewTo-It<20&&(It=Math.min(me,ie.viewTo)),Ze&&(Ke=Lt(N.doc,Ke),It=dr(N.doc,It));var nr=Ke!=ie.viewFrom||It!=ie.viewTo||ie.lastWrapHeight!=B.wrapperHeight||ie.lastWrapWidth!=B.wrapperWidth;Qr(N,Ke,It),ie.viewOffset=Mr(Pe(N.doc,ie.viewFrom)),N.display.mover.style.top=ie.viewOffset+"px";var wr=Jn(N);if(!nr&&wr==0&&!B.force&&ie.renderedView==ie.view&&(ie.updateLineNumbers==null||ie.updateLineNumbers>=ie.viewTo))return!1;var _r=el(N);return wr>4&&(ie.lineDiv.style.display="none"),tl(N,ie.updateLineNumbers,B.dims),wr>4&&(ie.lineDiv.style.display=""),ie.renderedView=ie.view,Gs(_r),w(ie.cursorDiv),w(ie.selectionDiv),ie.gutters.style.height=ie.sizer.style.minHeight=0,nr&&(ie.lastWrapHeight=B.wrapperHeight,ie.lastWrapWidth=B.wrapperWidth,hs(N,400)),ie.updateLineNumbers=null,!0}function ks(N,B){for(var ie=B.viewport,le=!0;;le=!1){if(!le||!N.options.lineWrapping||B.oldDisplayWidth==Ii(N)){if(ie&&ie.top!=null&&(ie={top:Math.min(N.doc.height+mi(N.display)-Vi(N),ie.top)}),B.visible=ia(N.display,N.doc,ie),B.visible.from>=N.display.viewFrom&&B.visible.to<=N.display.viewTo)break}else le&&(B.visible=ia(N.display,N.doc,ie));if(!ds(N,B))break;Ai(N);var me=lo(N);fn(N),Lo(N,me),Bs(N,me),B.force=!1}B.signal(N,"update",N),(N.display.viewFrom!=N.display.reportedViewFrom||N.display.viewTo!=N.display.reportedViewTo)&&(B.signal(N,"viewportChange",N,N.display.viewFrom,N.display.viewTo),N.display.reportedViewFrom=N.display.viewFrom,N.display.reportedViewTo=N.display.viewTo)}function Qs(N,B){var ie=new Ns(N,B);if(ds(N,ie)){Ai(N),ks(N,ie);var le=lo(N);fn(N),Lo(N,le),Bs(N,le),ie.finish()}}function tl(N,B,ie){var le=N.display,me=N.options.lineNumbers,Ke=le.lineDiv,It=Ke.firstChild;function nr(la){var Ta=la.nextSibling;return s&&g&&N.display.currentWheelTarget==la?la.style.display="none":la.parentNode.removeChild(la),Ta}for(var wr=le.view,_r=le.viewFrom,Hn=0;Hn<wr.length;Hn++){var ni=wr[Hn];if(!ni.hidden)if(!ni.node||ni.node.parentNode!=Ke){var Ei=Lr(N,ni,_r,ie);Ke.insertBefore(Ei,It)}else{for(;It!=ni.node;)It=nr(It);var Oi=me&&B!=null&&B<=_r&&ni.lineNumber;ni.changes&&(G(ni.changes,"gutter")>-1&&(Oi=!1),Cn(N,ni,_r,ie)),Oi&&(w(ni.lineNumber),ni.lineNumber.appendChild(document.createTextNode(hn(N.options,_r)))),It=ni.node.nextSibling}_r+=ni.size}for(;It;)It=nr(It)}function xs(N){var B=N.gutters.offsetWidth;N.sizer.style.marginLeft=B+"px"}function Bs(N,B){N.display.sizer.style.minHeight=B.docHeight+"px",N.display.heightForcer.style.top=B.docHeight+"px",N.display.gutters.style.height=B.docHeight+N.display.barHeight+bi(N)+"px"}function al(N){var B=N.display,ie=B.view;if(!B.alignWidgets&&(!B.gutters.firstChild||!N.options.fixedGutter))return;for(var le=xo(B)-B.scroller.scrollLeft+N.doc.scrollLeft,me=B.gutters.offsetWidth,Ke=le+"px",It=0;It<ie.length;It++)if(!ie[It].hidden){N.options.fixedGutter&&(ie[It].gutter&&(ie[It].gutter.style.left=Ke),ie[It].gutterBackground&&(ie[It].gutterBackground.style.left=Ke));var nr=ie[It].alignable;if(nr)for(var wr=0;wr<nr.length;wr++)nr[wr].style.left=Ke}N.options.fixedGutter&&(B.gutters.style.left=le+me+"px")}function Js(N){if(!N.options.lineNumbers)return!1;var B=N.doc,ie=hn(N.options,B.first+B.size-1),le=N.display;if(ie.length!=le.lineNumChars){var me=le.measure.appendChild(I("div",[I("div",ie)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ke=me.firstChild.offsetWidth,It=me.offsetWidth-Ke;return le.lineGutter.style.width="",le.lineNumInnerWidth=Math.max(Ke,le.lineGutter.offsetWidth-It)+1,le.lineNumWidth=le.lineNumInnerWidth+It,le.lineNumChars=le.lineNumInnerWidth?ie.length:-1,le.lineGutter.style.width=le.lineNumWidth+"px",xs(N.display),!0}return!1}function Vo(N,B){for(var ie=[],le=!1,me=0;me<N.length;me++){var Ke=N[me],It=null;if(typeof Ke!="string"&&(It=Ke.style,Ke=Ke.className),Ke=="CodeMirror-linenumbers")if(B)le=!0;else continue;ie.push({className:Ke,style:It})}return B&&!le&&ie.push({className:"CodeMirror-linenumbers",style:null}),ie}function No(N){var B=N.gutters,ie=N.gutterSpecs;w(B),N.lineGutter=null;for(var le=0;le<ie.length;++le){var me=ie[le],Ke=me.className,It=me.style,nr=B.appendChild(I("div",null,"CodeMirror-gutter "+Ke));It&&(nr.style.cssText=It),Ke=="CodeMirror-linenumbers"&&(N.lineGutter=nr,nr.style.width=(N.lineNumWidth||1)+"px")}B.style.display=ie.length?"":"none",xs(N)}function fs(N){No(N.display),Ha(N),al(N)}function Ds(N,B,ie,le){var me=this;this.input=ie,me.scrollbarFiller=I("div",null,"CodeMirror-scrollbar-filler"),me.scrollbarFiller.setAttribute("cm-not-content","true"),me.gutterFiller=I("div",null,"CodeMirror-gutter-filler"),me.gutterFiller.setAttribute("cm-not-content","true"),me.lineDiv=k("div",null,"CodeMirror-code"),me.selectionDiv=I("div",null,null,"position: relative; z-index: 1"),me.cursorDiv=I("div",null,"CodeMirror-cursors"),me.measure=I("div",null,"CodeMirror-measure"),me.lineMeasure=I("div",null,"CodeMirror-measure"),me.lineSpace=k("div",[me.measure,me.lineMeasure,me.selectionDiv,me.cursorDiv,me.lineDiv],null,"position: relative; outline: none");var Ke=k("div",[me.lineSpace],"CodeMirror-lines");me.mover=I("div",[Ke],null,"position: relative"),me.sizer=I("div",[me.mover],"CodeMirror-sizer"),me.sizerWidth=null,me.heightForcer=I("div",null,null,"position: absolute; height: "+te+"px; width: 1px;"),me.gutters=I("div",null,"CodeMirror-gutters"),me.lineGutter=null,me.scroller=I("div",[me.sizer,me.heightForcer,me.gutters],"CodeMirror-scroll"),me.scroller.setAttribute("tabIndex","-1"),me.wrapper=I("div",[me.scrollbarFiller,me.gutterFiller,me.scroller],"CodeMirror"),d&&u<8&&(me.gutters.style.zIndex=-1,me.scroller.style.paddingRight=0),!s&&!(x&&h)&&(me.scroller.draggable=!0),N&&(N.appendChild?N.appendChild(me.wrapper):N(me.wrapper)),me.viewFrom=me.viewTo=B.first,me.reportedViewFrom=me.reportedViewTo=B.first,me.view=[],me.renderedView=null,me.externalMeasured=null,me.viewOffset=0,me.lastWrapHeight=me.lastWrapWidth=0,me.updateLineNumbers=null,me.nativeBarWidth=me.barHeight=me.barWidth=0,me.scrollbarsClipped=!1,me.lineNumWidth=me.lineNumInnerWidth=me.lineNumChars=null,me.alignWidgets=!1,me.cachedCharWidth=me.cachedTextHeight=me.cachedPaddingH=null,me.maxLine=null,me.maxLineLength=0,me.maxLineChanged=!1,me.wheelDX=me.wheelDY=me.wheelStartX=me.wheelStartY=null,me.shift=!1,me.selForContextMenu=null,me.activeTouch=null,me.gutterSpecs=Vo(le.gutters,le.lineNumbers),No(me),ie.init(me)}var go=0,Ut=null;d?Ut=-.53:x?Ut=15:t?Ut=-.7:e&&(Ut=-1/3);function or(N){var B=N.wheelDeltaX,ie=N.wheelDeltaY;return B==null&&N.detail&&N.axis==N.HORIZONTAL_AXIS&&(B=N.detail),ie==null&&N.detail&&N.axis==N.VERTICAL_AXIS?ie=N.detail:ie==null&&(ie=N.wheelDelta),{x:B,y:ie}}function Nn(N){var B=or(N);return B.x*=Ut,B.y*=Ut,B}function hi(N,B){var ie=or(B),le=ie.x,me=ie.y,Ke=N.display,It=Ke.scroller,nr=It.scrollWidth>It.clientWidth,wr=It.scrollHeight>It.clientHeight;if(!(le&&nr||me&&wr))return;if(me&&g&&s){e:for(var _r=B.target,Hn=Ke.view;_r!=It;_r=_r.parentNode)for(var ni=0;ni<Hn.length;ni++)if(Hn[ni].node==_r){N.display.currentWheelTarget=_r;break e}}if(le&&!x&&!o&&Ut!=null){me&&wr&&Ea(N,Math.max(0,It.scrollTop+me*Ut)),Ka(N,Math.max(0,It.scrollLeft+le*Ut)),(!me||me&&wr)&&Ge(B),Ke.wheelStartX=null;return}if(me&&Ut!=null){var Ei=me*Ut,Oi=N.doc.scrollTop,la=Oi+Ke.wrapper.clientHeight;Ei<0?Oi=Math.max(0,Oi+Ei-50):la=Math.min(N.doc.height,la+Ei+50),Qs(N,{top:Oi,bottom:la})}go<20&&(Ke.wheelStartX==null?(Ke.wheelStartX=It.scrollLeft,Ke.wheelStartY=It.scrollTop,Ke.wheelDX=le,Ke.wheelDY=me,setTimeout(function(){if(Ke.wheelStartX==null)return;var Ta=It.scrollLeft-Ke.wheelStartX,Wa=It.scrollTop-Ke.wheelStartY,Ma=Wa&&Ke.wheelDY&&Wa/Ke.wheelDY||Ta&&Ke.wheelDX&&Ta/Ke.wheelDX;if(Ke.wheelStartX=Ke.wheelStartY=null,!Ma)return;Ut=(Ut*go+Ma)/(go+1),++go},200)):(Ke.wheelDX+=le,Ke.wheelDY+=me))}var Nt=function(B,ie){this.ranges=B,this.primIndex=ie};Nt.prototype.primary=function(){return this.ranges[this.primIndex]},Nt.prototype.equals=function(N){if(N==this)return!0;if(N.primIndex!=this.primIndex||N.ranges.length!=this.ranges.length)return!1;for(var B=0;B<this.ranges.length;B++){var ie=this.ranges[B],le=N.ranges[B];if(!bt(ie.anchor,le.anchor)||!bt(ie.head,le.head))return!1}return!0},Nt.prototype.deepCopy=function(){for(var N=[],B=0;B<this.ranges.length;B++)N[B]=new ce(cr(this.ranges[B].anchor),cr(this.ranges[B].head));return new Nt(N,this.primIndex)},Nt.prototype.somethingSelected=function(){for(var N=0;N<this.ranges.length;N++)if(!this.ranges[N].empty())return!0;return!1},Nt.prototype.contains=function(N,B){B||(B=N);for(var ie=0;ie<this.ranges.length;ie++){var le=this.ranges[ie];if(vt(B,le.from())>=0&&vt(N,le.to())<=0)return ie}return-1};var ce=function(B,ie){this.anchor=B,this.head=ie};ce.prototype.from=function(){return Mt(this.anchor,this.head)},ce.prototype.to=function(){return Qt(this.anchor,this.head)},ce.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Se(N,B,ie){var le=N&&N.options.selectionsMayTouch,me=B[ie];B.sort(function(Ei,Oi){return vt(Ei.from(),Oi.from())}),ie=G(B,me);for(var Ke=1;Ke<B.length;Ke++){var It=B[Ke],nr=B[Ke-1],wr=vt(nr.to(),It.from());if(le&&!It.empty()?wr>0:wr>=0){var _r=Mt(nr.from(),It.from()),Hn=Qt(nr.to(),It.to()),ni=nr.empty()?It.from()==It.head:nr.from()==nr.head;Ke<=ie&&--ie,B.splice(--Ke,2,new ce(ni?Hn:_r,ni?_r:Hn))}}return new Nt(B,ie)}function Ie(N,B){return new Nt([new ce(N,B||N)],0)}function Je(N){return N.text?jt(N.from.line+N.text.length-1,Ve(N.text).length+(N.text.length==1?N.from.ch:0)):N.to}function Dt(N,B){if(vt(N,B.from)<0)return N;if(vt(N,B.to)<=0)return Je(B);var ie=N.line+B.text.length-(B.to.line-B.from.line)-1,le=N.ch;return N.line==B.to.line&&(le+=Je(B).ch-B.to.ch),jt(ie,le)}function sr(N,B){for(var ie=[],le=0;le<N.sel.ranges.length;le++){var me=N.sel.ranges[le];ie.push(new ce(Dt(me.anchor,B),Dt(me.head,B)))}return Se(N.cm,ie,N.sel.primIndex)}function Jr(N,B,ie){return N.line==B.line?jt(ie.line,N.ch-B.ch+ie.ch):jt(ie.line+(N.line-B.line),N.ch)}function gn(N,B,ie){for(var le=[],me=jt(N.first,0),Ke=me,It=0;It<B.length;It++){var nr=B[It],wr=Jr(nr.from,me,Ke),_r=Jr(Je(nr),me,Ke);if(me=nr.to,Ke=_r,ie=="around"){var Hn=N.sel.ranges[It],ni=vt(Hn.head,Hn.anchor)<0;le[It]=new ce(ni?_r:wr,ni?wr:_r)}else le[It]=new ce(wr,wr)}return new Nt(le,N.sel.primIndex)}function Dn(N){N.doc.mode=xi(N.options,N.doc.modeOption),ui(N)}function ui(N){N.doc.iter(function(B){B.stateAfter&&(B.stateAfter=null),B.styles&&(B.styles=null)}),N.doc.modeFrontier=N.doc.highlightFrontier=N.doc.first,hs(N,100),N.state.modeGen++,N.curOp&&Ha(N)}function Si(N,B){return B.from.ch==0&&B.to.ch==0&&Ve(B.text)==""&&(!N.cm||N.cm.options.wholeLineUpdateBefore)}function vi(N,B,ie,le){function me(Na){return ie?ie[Na]:null}function Ke(Na,qa,ho){vn(Na,qa,ho,le),Ir(Na,"change",Na,B)}function It(Na,qa){for(var ho=[],ns=Na;ns<qa;++ns)ho.push(new di(_r[ns],me(ns),le));return ho}var nr=B.from,wr=B.to,_r=B.text,Hn=Pe(N,nr.line),ni=Pe(N,wr.line),Ei=Ve(_r),Oi=me(_r.length-1),la=wr.line-nr.line;if(B.full)N.insert(0,It(0,_r.length)),N.remove(_r.length,N.size-_r.length);else if(Si(N,B)){var Ta=It(0,_r.length-1);Ke(ni,ni.text,Oi),la&&N.remove(nr.line,la),Ta.length&&N.insert(nr.line,Ta)}else if(Hn==ni)if(_r.length==1)Ke(Hn,Hn.text.slice(0,nr.ch)+Ei+Hn.text.slice(wr.ch),Oi);else{var Wa=It(1,_r.length-1);Wa.push(new di(Ei+Hn.text.slice(wr.ch),Oi,le)),Ke(Hn,Hn.text.slice(0,nr.ch)+_r[0],me(0)),N.insert(nr.line+1,Wa)}else if(_r.length==1)Ke(Hn,Hn.text.slice(0,nr.ch)+_r[0]+ni.text.slice(wr.ch),me(0)),N.remove(nr.line+1,la);else{Ke(Hn,Hn.text.slice(0,nr.ch)+_r[0],me(0)),Ke(ni,Ei+ni.text.slice(wr.ch),Oi);var Ma=It(1,_r.length-1);la>1&&N.remove(nr.line+1,la-1),N.insert(nr.line+1,Ma)}Ir(N,"change",N,B)}function Qi(N,B,ie){function le(me,Ke,It){if(me.linked)for(var nr=0;nr<me.linked.length;++nr){var wr=me.linked[nr];if(wr.doc==Ke)continue;var _r=It&&wr.sharedHist;if(ie&&!_r)continue;B(wr.doc,_r),le(wr.doc,me,_r)}}le(N,null,!0)}function sa(N,B){if(B.cm)throw new Error("This document is already in use.");N.doc=B,B.cm=N,Ho(N),Dn(N),Ua(N),N.options.lineWrapping||Mn(N),N.options.mode=B.modeOption,Ha(N)}function Ua(N){(N.doc.direction=="rtl"?X:T)(N.display.lineDiv,"CodeMirror-rtl")}function no(N){Eo(N,function(){Ua(N),Ha(N)})}function Wo(N){this.done=[],this.undone=[],this.undoDepth=Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=N||1}function Zo(N,B){var ie={from:cr(B.from),to:Je(B),text:tt(N,B.from,B.to)};return Ms(N,ie,B.from.line,B.to.line+1),Qi(N,function(le){return Ms(le,ie,B.from.line,B.to.line+1)},!0),ie}function Bo(N){for(;N.length;){var B=Ve(N);if(B.ranges)N.pop();else break}}function Es(N,B){if(B)return Bo(N.done),Ve(N.done);if(N.done.length&&!Ve(N.done).ranges)return Ve(N.done);if(N.done.length>1&&!N.done[N.done.length-2].ranges)return N.done.pop(),Ve(N.done)}function As(N,B,ie,le){var me=N.history;me.undone.length=0;var Ke=+new Date,It,nr;if((me.lastOp==le||me.lastOrigin==B.origin&&B.origin&&(B.origin.charAt(0)=="+"&&me.lastModTime>Ke-(N.cm?N.cm.options.historyEventDelay:500)||B.origin.charAt(0)=="*"))&&(It=Es(me,me.lastOp==le)))nr=Ve(It.changes),vt(B.from,B.to)==0&&vt(B.from,nr.to)==0?nr.to=Je(B):It.changes.push(Zo(N,B));else{var wr=Ve(me.done);for((!wr||!wr.ranges)&&vo(N.sel,me.done),It={changes:[Zo(N,B)],generation:me.generation},me.done.push(It);me.done.length>me.undoDepth;)me.done.shift(),me.done[0].ranges||me.done.shift()}me.done.push(ie),me.generation=++me.maxGeneration,me.lastModTime=me.lastSelTime=Ke,me.lastOp=me.lastSelOp=le,me.lastOrigin=me.lastSelOrigin=B.origin,nr||Kt(N,"historyAdded")}function $o(N,B,ie,le){var me=B.charAt(0);return me=="*"||me=="+"&&ie.ranges.length==le.ranges.length&&ie.somethingSelected()==le.somethingSelected()&&new Date-N.history.lastSelTime<=(N.cm?N.cm.options.historyEventDelay:500)}function Do(N,B,ie,le){var me=N.history,Ke=le&&le.origin;ie==me.lastSelOp||Ke&&me.lastSelOrigin==Ke&&(me.lastModTime==me.lastSelTime&&me.lastOrigin==Ke||$o(N,Ke,Ve(me.done),B))?me.done[me.done.length-1]=B:vo(B,me.done),me.lastSelTime=+new Date,me.lastSelOrigin=Ke,me.lastSelOp=ie,le&&le.clearRedo!==!1&&Bo(me.undone)}function vo(N,B){var ie=Ve(B);ie&&ie.ranges&&ie.equals(N)||B.push(N)}function Ms(N,B,ie,le){var me=B["spans_"+N.id],Ke=0;N.iter(Math.max(N.first,ie),Math.min(N.first+N.size,le),function(It){It.markedSpans&&((me||(me=B["spans_"+N.id]={}))[Ke]=It.markedSpans),++Ke})}function rl(N){if(!N)return null;for(var B,ie=0;ie<N.length;++ie)N[ie].marker.explicitlyCleared?B||(B=N.slice(0,ie)):B&&B.push(N[ie]);return B?B.length?B:null:N}function gs(N,B){var ie=B["spans_"+N.id];if(!ie)return null;for(var le=[],me=0;me<B.text.length;++me)le.push(rl(ie[me]));return le}function Ra(N,B){var ie=gs(N,B),le=zn(N,B);if(!ie)return le;if(!le)return ie;for(var me=0;me<ie.length;++me){var Ke=ie[me],It=le[me];if(Ke&&It){e:for(var nr=0;nr<It.length;++nr){for(var wr=It[nr],_r=0;_r<Ke.length;++_r)if(Ke[_r].marker==wr.marker)continue e;Ke.push(wr)}}else It&&(ie[me]=It)}return ie}function dl(N,B,ie){for(var le=[],me=0;me<N.length;++me){var Ke=N[me];if(Ke.ranges){le.push(ie?Nt.prototype.deepCopy.call(Ke):Ke);continue}var It=Ke.changes,nr=[];le.push({changes:nr});for(var wr=0;wr<It.length;++wr){var _r=It[wr],Hn=void 0;if(nr.push({from:_r.from,to:_r.to,text:_r.text}),B)for(var ni in _r)(Hn=ni.match(/^spans_(\d+)$/))&&(G(B,Number(Hn[1]))>-1&&(Ve(nr)[ni]=_r[ni],delete _r[ni]))}}return le}function fl(N,B,ie,le){if(le){var me=N.anchor;if(ie){var Ke=vt(B,me)<0;Ke!=vt(ie,me)<0?(me=B,B=ie):Ke!=vt(B,ie)<0&&(B=ie)}return new ce(me,B)}else return new ce(ie||B,B)}function Us(N,B,ie,le,me){me==null&&(me=N.cm&&(N.cm.display.shift||N.extend)),Ts(N,new Nt([fl(N.sel.primary(),B,ie,me)],0),le)}function Os(N,B,ie){for(var le=[],me=N.cm&&(N.cm.display.shift||N.extend),Ke=0;Ke<N.sel.ranges.length;Ke++)le[Ke]=fl(N.sel.ranges[Ke],B[Ke],null,me);var It=Se(N.cm,le,N.sel.primIndex);Ts(N,It,ie)}function Xs(N,B,ie,le){var me=N.sel.ranges.slice(0);me[B]=ie,Ts(N,Se(N.cm,me,N.sel.primIndex),le)}function Ql(N,B,ie,le){Ts(N,Ie(B,ie),le)}function Ul(N,B,ie){var le={ranges:B.ranges,update:function(Ke){this.ranges=[];for(var It=0;It<Ke.length;It++)this.ranges[It]=new ce(Rt(N,Ke[It].anchor),Rt(N,Ke[It].head))},origin:ie&&ie.origin};return Kt(N,"beforeSelectionChange",N,le),N.cm&&Kt(N.cm,"beforeSelectionChange",N.cm,le),le.ranges!=B.ranges?Se(N.cm,le.ranges,le.ranges.length-1):B}function wl(N,B,ie){var le=N.history.done,me=Ve(le);me&&me.ranges?(le[le.length-1]=B,Ws(N,B,ie)):Ts(N,B,ie)}function Ts(N,B,ie){Ws(N,B,ie),Do(N,N.sel,N.cm?N.cm.curOp.id:NaN,ie)}function Ws(N,B,ie){(Pt(N,"beforeSelectionChange")||N.cm&&Pt(N.cm,"beforeSelectionChange"))&&(B=Ul(N,B,ie));var le=ie&&ie.bias||(vt(B.primary().head,N.sel.primary().head)<0?-1:1);Tl(N,jo(N,B,le,!0)),!(ie&&ie.scroll===!1)&&N.cm&&Da(N.cm)}function Tl(N,B){if(B.equals(N.sel))return;N.sel=B,N.cm&&(N.cm.curOp.updateInput=1,N.cm.curOp.selectionChanged=!0,Gt(N.cm)),Ir(N,"cursorActivity",N)}function pl(N){Tl(N,jo(N,N.sel,null,!1))}function jo(N,B,ie,le){for(var me,Ke=0;Ke<B.ranges.length;Ke++){var It=B.ranges[Ke],nr=B.ranges.length==N.sel.ranges.length&&N.sel.ranges[Ke],wr=qo(N,It.anchor,nr&&nr.anchor,ie,le),_r=qo(N,It.head,nr&&nr.head,ie,le);(me||wr!=It.anchor||_r!=It.head)&&(me||(me=B.ranges.slice(0,Ke)),me[Ke]=new ce(wr,_r))}return me?Se(N.cm,me,B.primIndex):B}function yo(N,B,ie,le,me){var Ke=Pe(N,B.line);if(Ke.markedSpans)for(var It=0;It<Ke.markedSpans.length;++It){var nr=Ke.markedSpans[It],wr=nr.marker,_r="selectLeft"in wr?!wr.selectLeft:wr.inclusiveLeft,Hn="selectRight"in wr?!wr.selectRight:wr.inclusiveRight;if((nr.from==null||(_r?nr.from<=B.ch:nr.from<B.ch))&&(nr.to==null||(Hn?nr.to>=B.ch:nr.to>B.ch))){if(me&&(Kt(wr,"beforeCursorEnter"),wr.explicitlyCleared))if(Ke.markedSpans){--It;continue}else break;if(!wr.atomic)continue;if(ie){var ni=wr.find(le<0?1:-1),Ei=void 0;if((le<0?Hn:_r)&&(ni=ps(N,ni,-le,ni&&ni.line==B.line?Ke:null)),ni&&ni.line==B.line&&(Ei=vt(ni,ie))&&(le<0?Ei<0:Ei>0))return yo(N,ni,B,le,me)}var Oi=wr.find(le<0?-1:1);return(le<0?_r:Hn)&&(Oi=ps(N,Oi,le,Oi.line==B.line?Ke:null)),Oi?yo(N,Oi,B,le,me):null}}return B}function qo(N,B,ie,le,me){var Ke=le||1,It=yo(N,B,ie,Ke,me)||!me&&yo(N,B,ie,Ke,!0)||yo(N,B,ie,-Ke,me)||!me&&yo(N,B,ie,-Ke,!0);return It||(N.cantEdit=!0,jt(N.first,0))}function ps(N,B,ie,le){return ie<0&&B.ch==0?B.line>N.first?Rt(N,jt(B.line-1)):null:ie>0&&B.ch==(le||Pe(N,B.line)).text.length?B.line<N.first+N.size-1?jt(B.line+1,0):null:new jt(B.line,B.ch+ie)}function Is(N){N.setSelection(jt(N.firstLine(),0),jt(N.lastLine()),se)}function es(N,B,ie){var le={canceled:!1,from:B.from,to:B.to,text:B.text,origin:B.origin,cancel:function(){return le.canceled=!0}};return ie&&(le.update=function(me,Ke,It,nr){me&&(le.from=Rt(N,me)),Ke&&(le.to=Rt(N,Ke)),It&&(le.text=It),nr!==void 0&&(le.origin=nr)}),Kt(N,"beforeChange",N,le),N.cm&&Kt(N.cm,"beforeChange",N.cm,le),le.canceled?(N.cm&&(N.cm.curOp.updateInput=2),null):{from:le.from,to:le.to,text:le.text,origin:le.origin}}function Ls(N,B,ie){if(N.cm){if(!N.cm.curOp)return zo(N.cm,Ls)(N,B,ie);if(N.cm.state.suppressEdits)return}if((Pt(N,"beforeChange")||N.cm&&Pt(N.cm,"beforeChange"))&&(B=es(N,B,!0),!B))return;var le=nt&&!ie&&Bn(N,B.from,B.to);if(le)for(var me=le.length-1;me>=0;--me)Ps(N,{from:le[me].from,to:le[me].to,text:me?[""]:B.text,origin:B.origin});else Ps(N,B)}function Ps(N,B){if(B.text.length==1&&B.text[0]==""&&vt(B.from,B.to)==0)return;var ie=sr(N,B);As(N,B,ie,N.cm?N.cm.curOp.id:NaN),_l(N,B,ie,zn(N,B));var le=[];Qi(N,function(me,Ke){!Ke&&G(le,me.history)==-1&&(ol(me.history,B),le.push(me.history)),_l(me,B,null,zn(me,B))})}function ml(N,B,ie){var le=N.cm&&N.cm.state.suppressEdits;if(le&&!ie)return;for(var me=N.history,Ke,It=N.sel,nr=B=="undo"?me.done:me.undone,wr=B=="undo"?me.undone:me.done,_r=0;_r<nr.length&&!(Ke=nr[_r],ie?Ke.ranges&&!Ke.equals(N.sel):!Ke.ranges);_r++);if(_r==nr.length)return;for(me.lastOrigin=me.lastSelOrigin=null;;)if(Ke=nr.pop(),Ke.ranges){if(vo(Ke,wr),ie&&!Ke.equals(N.sel)){Ts(N,Ke,{clearRedo:!1});return}It=Ke}else if(le){nr.push(Ke);return}else break;var Hn=[];vo(It,wr),wr.push({changes:Hn,generation:me.generation}),me.generation=Ke.generation||++me.maxGeneration;for(var ni=Pt(N,"beforeChange")||N.cm&&Pt(N.cm,"beforeChange"),Ei=function(Wa){var Ma=Ke.changes[Wa];if(Ma.origin=B,ni&&!es(N,Ma,!1))return nr.length=0,{};Hn.push(Zo(N,Ma));var Na=Wa?sr(N,Ma):Ve(nr);_l(N,Ma,Na,Ra(N,Ma)),!Wa&&N.cm&&N.cm.scrollIntoView({from:Ma.from,to:Je(Ma)});var qa=[];Qi(N,function(ho,ns){!ns&&G(qa,ho.history)==-1&&(ol(ho.history,Ma),qa.push(ho.history)),_l(ho,Ma,null,Ra(ho,Ma))})},Oi=Ke.changes.length-1;Oi>=0;--Oi){var la=Ei(Oi);if(la)return la.v}}function Rl(N,B){if(B==0)return;if(N.first+=B,N.sel=new Nt(ut(N.sel.ranges,function(me){return new ce(jt(me.anchor.line+B,me.anchor.ch),jt(me.head.line+B,me.head.ch))}),N.sel.primIndex),N.cm){Ha(N.cm,N.first,N.first-B,B);for(var ie=N.cm.display,le=ie.viewFrom;le<ie.viewTo;le++)mt(N.cm,le,"gutter")}}function _l(N,B,ie,le){if(N.cm&&!N.cm.curOp)return zo(N.cm,_l)(N,B,ie,le);if(B.to.line<N.first){Rl(N,B.text.length-1-(B.to.line-B.from.line));return}if(B.from.line>N.lastLine())return;if(B.from.line<N.first){var me=B.text.length-1-(N.first-B.from.line);Rl(N,me),B={from:jt(N.first,0),to:jt(B.to.line+me,B.to.ch),text:[Ve(B.text)],origin:B.origin}}var Ke=N.lastLine();B.to.line>Ke&&(B={from:B.from,to:jt(Ke,Pe(N,Ke).text.length),text:[B.text[0]],origin:B.origin}),B.removed=tt(N,B.from,B.to),ie||(ie=sr(N,B)),N.cm?Bl(N.cm,B,le):vi(N,B,le),Ws(N,ie,se),N.cantEdit&&qo(N,jt(N.firstLine(),0))&&(N.cantEdit=!1)}function Bl(N,B,ie){var le=N.doc,me=N.display,Ke=B.from,It=B.to,nr=!1,wr=Ke.line;N.options.lineWrapping||(wr=Yt(kt(Pe(le,Ke.line))),le.iter(wr,It.line+1,function(Oi){if(Oi==me.maxLine)return nr=!0,!0})),le.sel.contains(B.from,B.to)>-1&&Gt(N),vi(le,B,ie,rs(N)),N.options.lineWrapping||(le.iter(wr,Ke.line+B.text.length,function(Oi){var la=Gn(Oi);la>me.maxLineLength&&(me.maxLine=Oi,me.maxLineLength=la,me.maxLineChanged=!0,nr=!1)}),nr&&(N.curOp.updateMaxLine=!0)),Xe(le,Ke.line),hs(N,400);var _r=B.text.length-(It.line-Ke.line)-1;B.full?Ha(N):Ke.line==It.line&&B.text.length==1&&!Si(N.doc,B)?mt(N,Ke.line,"text"):Ha(N,Ke.line,It.line+1,_r);var Hn=Pt(N,"changes"),ni=Pt(N,"change");if(ni||Hn){var Ei={from:Ke,to:It,text:B.text,removed:B.removed,origin:B.origin};ni&&Ir(N,"change",N,Ei),Hn&&(N.curOp.changeObjs||(N.curOp.changeObjs=[])).push(Ei)}N.display.selForContextMenu=null}function jl(N,B,ie,le,me){var Ke;le||(le=ie),vt(le,ie)<0&&(Ke=[le,ie],ie=Ke[0],le=Ke[1]),typeof B=="string"&&(B=N.splitLines(B)),Ls(N,{from:ie,to:le,text:B,origin:me})}function kl(N,B,ie,le){ie<N.line?N.line+=le:B<N.line&&(N.line=B,N.ch=0)}function Xl(N,B,ie,le){for(var me=0;me<N.length;++me){var Ke=N[me],It=!0;if(Ke.ranges){Ke.copied||(Ke=N[me]=Ke.deepCopy(),Ke.copied=!0);for(var nr=0;nr<Ke.ranges.length;nr++)kl(Ke.ranges[nr].anchor,B,ie,le),kl(Ke.ranges[nr].head,B,ie,le);continue}for(var wr=0;wr<Ke.changes.length;++wr){var _r=Ke.changes[wr];if(ie<_r.from.line)_r.from=jt(_r.from.line+le,_r.from.ch),_r.to=jt(_r.to.line+le,_r.to.ch);else if(B<=_r.to.line){It=!1;break}}It||(N.splice(0,me+1),me=0)}}function ol(N,B){var ie=B.from.line,le=B.to.line,me=B.text.length-(le-ie)-1;Xl(N.done,ie,le,me),Xl(N.undone,ie,le,me)}function Ys(N,B,ie,le){var me=B,Ke=B;return typeof B=="number"?Ke=Pe(N,tr(N,B)):me=Yt(B),me==null?null:(le(Ke,me)&&N.cm&&mt(N.cm,me,ie),Ke)}function sl(N){this.lines=N,this.parent=null;for(var B=0,ie=0;ie<N.length;++ie)N[ie].parent=this,B+=N[ie].height;this.height=B}sl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(B,ie){for(var le=B,me=B+ie;le<me;++le){var Ke=this.lines[le];this.height-=Ke.height,Ur(Ke),Ir(Ke,"delete")}this.lines.splice(B,ie)},collapse:function(B){B.push.apply(B,this.lines)},insertInner:function(B,ie,le){this.height+=le,this.lines=this.lines.slice(0,B).concat(ie).concat(this.lines.slice(B));for(var me=0;me<ie.length;++me)ie[me].parent=this},iterN:function(B,ie,le){for(var me=B+ie;B<me;++B)if(le(this.lines[B]))return!0}};function nl(N){this.children=N;for(var B=0,ie=0,le=0;le<N.length;++le){var me=N[le];B+=me.chunkSize(),ie+=me.height,me.parent=this}this.size=B,this.height=ie,this.parent=null}nl.prototype={chunkSize:function(){return this.size},removeInner:function(B,ie){this.size-=ie;for(var le=0;le<this.children.length;++le){var me=this.children[le],Ke=me.chunkSize();if(B<Ke){var It=Math.min(ie,Ke-B),nr=me.height;if(me.removeInner(B,It),this.height-=nr-me.height,Ke==It&&(this.children.splice(le--,1),me.parent=null),(ie-=It)==0)break;B=0}else B-=Ke}if(this.size-ie<25&&(this.children.length>1||!(this.children[0]instanceof sl))){var wr=[];this.collapse(wr),this.children=[new sl(wr)],this.children[0].parent=this}},collapse:function(B){for(var ie=0;ie<this.children.length;++ie)this.children[ie].collapse(B)},insertInner:function(B,ie,le){this.size+=ie.length,this.height+=le;for(var me=0;me<this.children.length;++me){var Ke=this.children[me],It=Ke.chunkSize();if(B<=It){if(Ke.insertInner(B,ie,le),Ke.lines&&Ke.lines.length>50){for(var nr=Ke.lines.length%25+25,wr=nr;wr<Ke.lines.length;){var _r=new sl(Ke.lines.slice(wr,wr+=25));Ke.height-=_r.height,this.children.splice(++me,0,_r),_r.parent=this}Ke.lines=Ke.lines.slice(0,nr),this.maybeSpill()}break}B-=It}},maybeSpill:function(){if(this.children.length<=10)return;var B=this;do{var ie=B.children.splice(B.children.length-5,5),le=new nl(ie);if(B.parent){B.size-=le.size,B.height-=le.height;var Ke=G(B.parent.children,B);B.parent.children.splice(Ke+1,0,le)}else{var me=new nl(B.children);me.parent=B,B.children=[me,le],B=me}le.parent=B.parent}while(B.children.length>10);B.parent.maybeSpill()},iterN:function(B,ie,le){for(var me=0;me<this.children.length;++me){var Ke=this.children[me],It=Ke.chunkSize();if(B<It){var nr=Math.min(ie,It-B);if(Ke.iterN(B,nr,le))return!0;if((ie-=nr)==0)break;B=0}else B-=It}}};var xl=function(B,ie,le){if(le)for(var me in le)le.hasOwnProperty(me)&&(this[me]=le[me]);this.doc=B,this.node=ie};xl.prototype.clear=function(){var N=this.doc.cm,B=this.line.widgets,ie=this.line,le=Yt(ie);if(le==null||!B)return;for(var me=0;me<B.length;++me)B[me]==this&&B.splice(me--,1);B.length||(ie.widgets=null);var Ke=Sn(this);Et(ie,Math.max(0,ie.height-Ke)),N&&(Eo(N,function(){Ml(N,ie,-Ke),mt(N,le,"widget")}),Ir(N,"lineWidgetCleared",N,this,le))},xl.prototype.changed=function(){var N=this,B=this.height,ie=this.doc.cm,le=this.line;this.height=null;var me=Sn(this)-B;if(!me)return;yr(this.doc,le)||Et(le,le.height+me),ie&&Eo(ie,function(){ie.curOp.forceUpdate=!0,Ml(ie,le,me),Ir(ie,"lineWidgetChanged",ie,N,Yt(le))})},Xt(xl);function Ml(N,B,ie){Mr(B)<(N.curOp&&N.curOp.scrollTop||N.doc.scrollTop)&&wa(N,ie)}function Wl(N,B,ie,le){var me=new xl(N,ie,le),Ke=N.cm;return Ke&&me.noHScroll&&(Ke.display.alignWidgets=!0),Ys(N,B,"widget",function(It){var nr=It.widgets||(It.widgets=[]);if(me.insertAt==null?nr.push(me):nr.splice(Math.min(nr.length-1,Math.max(0,me.insertAt)),0,me),me.line=It,Ke&&!yr(N,It)){var wr=Mr(It)<N.scrollTop;Et(It,It.height+Sn(me)),wr&&wa(Ke,me.height),Ke.curOp.forceUpdate=!0}return!0}),Ke&&Ir(Ke,"lineWidgetAdded",Ke,me,typeof B=="number"?B:Yt(B)),me}var au=0,Nl=function(B,ie){this.lines=[],this.type=ie,this.doc=B,this.id=++au};Nl.prototype.clear=function(){if(this.explicitlyCleared)return;var N=this.doc.cm,B=N&&!N.curOp;if(B&&as(N),Pt(this,"clear")){var ie=this.find();ie&&Ir(this,"clear",ie.from,ie.to)}for(var le=null,me=null,Ke=0;Ke<this.lines.length;++Ke){var It=this.lines[Ke],nr=pr(It.markedSpans,this);N&&!this.collapsed?mt(N,Yt(It),"text"):N&&(nr.to!=null&&(me=Yt(It)),nr.from!=null&&(le=Yt(It))),It.markedSpans=$r(It.markedSpans,nr),nr.from==null&&this.collapsed&&!yr(this.doc,It)&&N&&Et(It,Oo(N.display))}if(N&&this.collapsed&&!N.options.lineWrapping)for(var wr=0;wr<this.lines.length;++wr){var _r=kt(this.lines[wr]),Hn=Gn(_r);Hn>N.display.maxLineLength&&(N.display.maxLine=_r,N.display.maxLineLength=Hn,N.display.maxLineChanged=!0)}le!=null&&N&&this.collapsed&&Ha(N,le,me+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,N&&pl(N.doc)),N&&Ir(N,"markerCleared",N,this,le,me),B&&co(N),this.parent&&this.parent.clear()},Nl.prototype.find=function(N,B){N==null&&this.type=="bookmark"&&(N=1);for(var ie,le,me=0;me<this.lines.length;++me){var Ke=this.lines[me],It=pr(Ke.markedSpans,this);if(It.from!=null&&(ie=jt(B?Ke:Yt(Ke),It.from),N==-1))return ie;if(It.to!=null&&(le=jt(B?Ke:Yt(Ke),It.to),N==1))return le}return ie&&{from:ie,to:le}},Nl.prototype.changed=function(){var N=this,B=this.find(-1,!0),ie=this,le=this.doc.cm;if(!B||!le)return;Eo(le,function(){var me=B.line,Ke=Yt(B.line),It=Ji(le,Ke);if(It&&(Oa(It),le.curOp.selectionChanged=le.curOp.forceUpdate=!0),le.curOp.updateMaxLine=!0,!yr(ie.doc,me)&&ie.height!=null){var nr=ie.height;ie.height=null;var wr=Sn(ie)-nr;wr&&Et(me,me.height+wr)}Ir(le,"markerChanged",le,N)})},Nl.prototype.attachLine=function(N){if(!this.lines.length&&this.doc.cm){var B=this.doc.cm.curOp;(!B.maybeHiddenMarkers||G(B.maybeHiddenMarkers,this)==-1)&&(B.maybeUnhiddenMarkers||(B.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(N)},Nl.prototype.detachLine=function(N){if(this.lines.splice(G(this.lines,N),1),!this.lines.length&&this.doc.cm){var B=this.doc.cm.curOp;(B.maybeHiddenMarkers||(B.maybeHiddenMarkers=[])).push(this)}},Xt(Nl);function $l(N,B,ie,le,me){if(le&&le.shared)return Iu(N,B,ie,le,me);if(N.cm&&!N.cm.curOp)return zo(N.cm,$l)(N,B,ie,le,me);var Ke=new Nl(N,me),It=vt(B,ie);if(le&&z(le,Ke,!1),It>0||It==0&&Ke.clearWhenEmpty!==!1)return Ke;if(Ke.replacedWith&&(Ke.collapsed=!0,Ke.widgetNode=k("span",[Ke.replacedWith],"CodeMirror-widget"),le.handleMouseEvents||Ke.widgetNode.setAttribute("cm-ignore-events","true"),le.insertLeft&&(Ke.widgetNode.insertLeft=!0)),Ke.collapsed){if(Ot(N,B.line,B,ie,Ke)||B.line!=ie.line&&Ot(N,ie.line,B,ie,Ke))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ct()}Ke.addToHistory&&As(N,{from:B,to:ie,origin:"markText"},N.sel,NaN);var nr=B.line,wr=N.cm,_r;if(N.iter(nr,ie.line+1,function(ni){wr&&Ke.collapsed&&!wr.options.lineWrapping&&kt(ni)==wr.display.maxLine&&(_r=!0),Ke.collapsed&&nr!=B.line&&Et(ni,0),Yr(ni,new gt(Ke,nr==B.line?B.ch:null,nr==ie.line?ie.ch:null)),++nr}),Ke.collapsed&&N.iter(B.line,ie.line+1,function(ni){yr(N,ni)&&Et(ni,0)}),Ke.clearOnEnter&&He(Ke,"beforeCursorEnter",function(){return Ke.clear()}),Ke.readOnly&&(ot(),(N.history.done.length||N.history.undone.length)&&N.clearHistory()),Ke.collapsed&&(Ke.id=++au,Ke.atomic=!0),wr){if(_r&&(wr.curOp.updateMaxLine=!0),Ke.collapsed)Ha(wr,B.line,ie.line+1);else if(Ke.className||Ke.startStyle||Ke.endStyle||Ke.css||Ke.attributes||Ke.title)for(var Hn=B.line;Hn<=ie.line;Hn++)mt(wr,Hn,"text");Ke.atomic&&pl(wr.doc),Ir(wr,"markerAdded",wr,Ke)}return Ke}var tu=function(B,ie){this.markers=B,this.primary=ie;for(var le=0;le<B.length;++le)B[le].parent=this};tu.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var N=0;N<this.markers.length;++N)this.markers[N].clear();Ir(this,"clear")},tu.prototype.find=function(N,B){return this.primary.find(N,B)},Xt(tu);function Iu(N,B,ie,le,me){le=z(le),le.shared=!1;var Ke=[$l(N,B,ie,le,me)],It=Ke[0],nr=le.widgetNode;return Qi(N,function(wr){nr&&(le.widgetNode=nr.cloneNode(!0)),Ke.push($l(wr,Rt(wr,B),Rt(wr,ie),le,me));for(var _r=0;_r<wr.linked.length;++_r)if(wr.linked[_r].isParent)return;It=Ve(Ke)}),new tu(Ke,It)}function pu(N){return N.findMarks(jt(N.first,0),N.clipPos(jt(N.lastLine())),function(B){return B.parent})}function mu(N,B){for(var ie=0;ie<B.length;ie++){var le=B[ie],me=le.find(),Ke=N.clipPos(me.from),It=N.clipPos(me.to);if(vt(Ke,It)){var nr=$l(N,Ke,It,le.primary,le.primary.type);le.markers.push(nr),nr.parent=le}}}function gu(N){for(var B=function(me){var Ke=N[me],It=[Ke.primary.doc];Qi(Ke.primary.doc,function(_r){return It.push(_r)});for(var nr=0;nr<Ke.markers.length;nr++){var wr=Ke.markers[nr];G(It,wr.doc)==-1&&(wr.parent=null,Ke.markers.splice(nr--,1))}},ie=0;ie<N.length;ie++)B(ie)}var ql=0,Cl=function N(B,ie,le,me,Ke){if(!(this instanceof N))return new N(B,ie,le,me,Ke);le==null&&(le=0),nl.call(this,[new sl([new di("",null)])]),this.first=le,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=le;var It=jt(le,0);this.sel=Ie(It),this.history=new Wo(null),this.id=++ql,this.modeOption=ie,this.lineSep=me,this.direction=Ke=="rtl"?"rtl":"ltr",this.extend=!1,typeof B=="string"&&(B=this.splitLines(B)),vi(this,{from:It,to:It,text:B}),Ts(this,Ie(It),se)};Cl.prototype=et(nl.prototype,{constructor:Cl,iter:function(B,ie,le){le?this.iterN(B-this.first,ie-B,le):this.iterN(this.first,this.first+this.size,B)},insert:function(B,ie){for(var le=0,me=0;me<ie.length;++me)le+=ie[me].height;this.insertInner(B-this.first,ie,le)},remove:function(B,ie){this.removeInner(B-this.first,ie)},getValue:function(B){var ie=yt(this,this.first,this.first+this.size);return B===!1?ie:ie.join(B||this.lineSeparator())},setValue:ms(function(N){var B=jt(this.first,0),ie=this.first+this.size-1;Ls(this,{from:B,to:jt(ie,Pe(this,ie).text.length),text:this.splitLines(N),origin:"setValue",full:!0},!0),this.cm&&ja(this.cm,0,0),Ts(this,Ie(B),se)}),replaceRange:function(B,ie,le,me){ie=Rt(this,ie),le=le?Rt(this,le):ie,jl(this,B,ie,le,me)},getRange:function(B,ie,le){var me=tt(this,Rt(this,B),Rt(this,ie));return le===!1?me:me.join(le||this.lineSeparator())},getLine:function(B){var ie=this.getLineHandle(B);return ie&&ie.text},getLineHandle:function(B){if(zr(this,B))return Pe(this,B)},getLineNumber:function(B){return Yt(B)},getLineHandleVisualStart:function(B){return typeof B=="number"&&(B=Pe(this,B)),kt(B)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(B){return Rt(this,B)},getCursor:function(B){var ie=this.sel.primary(),le;return B==null||B=="head"?le=ie.head:B=="anchor"?le=ie.anchor:B=="end"||B=="to"||B===!1?le=ie.to():le=ie.from(),le},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ms(function(N,B,ie){Ql(this,Rt(this,typeof N=="number"?jt(N,B||0):N),null,ie)}),setSelection:ms(function(N,B,ie){Ql(this,Rt(this,N),Rt(this,B||N),ie)}),extendSelection:ms(function(N,B,ie){Us(this,Rt(this,N),B&&Rt(this,B),ie)}),extendSelections:ms(function(N,B){Os(this,Hr(this,N),B)}),extendSelectionsBy:ms(function(N,B){var ie=ut(this.sel.ranges,N);Os(this,Hr(this,ie),B)}),setSelections:ms(function(N,B,ie){if(!N.length)return;for(var le=[],me=0;me<N.length;me++)le[me]=new ce(Rt(this,N[me].anchor),Rt(this,N[me].head));B==null&&(B=Math.min(N.length-1,this.sel.primIndex)),Ts(this,Se(this.cm,le,B),ie)}),addSelection:ms(function(N,B,ie){var le=this.sel.ranges.slice(0);le.push(new ce(Rt(this,N),Rt(this,B||N))),Ts(this,Se(this.cm,le,le.length-1),ie)}),getSelection:function(B){for(var ie=this.sel.ranges,le,me=0;me<ie.length;me++){var Ke=tt(this,ie[me].from(),ie[me].to());le=le?le.concat(Ke):Ke}return B===!1?le:le.join(B||this.lineSeparator())},getSelections:function(B){for(var ie=[],le=this.sel.ranges,me=0;me<le.length;me++){var Ke=tt(this,le[me].from(),le[me].to());B!==!1&&(Ke=Ke.join(B||this.lineSeparator())),ie[me]=Ke}return ie},replaceSelection:function(B,ie,le){for(var me=[],Ke=0;Ke<this.sel.ranges.length;Ke++)me[Ke]=B;this.replaceSelections(me,ie,le||"+input")},replaceSelections:ms(function(N,B,ie){for(var le=[],me=this.sel,Ke=0;Ke<me.ranges.length;Ke++){var It=me.ranges[Ke];le[Ke]={from:It.from(),to:It.to(),text:this.splitLines(N[Ke]),origin:ie}}for(var nr=B&&B!="end"&&gn(this,le,B),wr=le.length-1;wr>=0;wr--)Ls(this,le[wr]);nr?wl(this,nr):this.cm&&Da(this.cm)}),undo:ms(function(){ml(this,"undo")}),redo:ms(function(){ml(this,"redo")}),undoSelection:ms(function(){ml(this,"undo",!0)}),redoSelection:ms(function(){ml(this,"redo",!0)}),setExtending:function(B){this.extend=B},getExtending:function(){return this.extend},historySize:function(){for(var B=this.history,ie=0,le=0,me=0;me<B.done.length;me++)B.done[me].ranges||++ie;for(var Ke=0;Ke<B.undone.length;Ke++)B.undone[Ke].ranges||++le;return{undo:ie,redo:le}},clearHistory:function(){var B=this;this.history=new Wo(this.history.maxGeneration),Qi(this,function(ie){return ie.history=B.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(B){return B&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(B){return this.history.generation==(B||this.cleanGeneration)},getHistory:function(){return{done:dl(this.history.done),undone:dl(this.history.undone)}},setHistory:function(B){var ie=this.history=new Wo(this.history.maxGeneration);ie.done=dl(B.done.slice(0),null,!0),ie.undone=dl(B.undone.slice(0),null,!0)},setGutterMarker:ms(function(N,B,ie){return Ys(this,N,"gutter",function(le){var me=le.gutterMarkers||(le.gutterMarkers={});return me[B]=ie,!ie&&$(me)&&(le.gutterMarkers=null),!0})}),clearGutter:ms(function(N){var B=this;this.iter(function(ie){ie.gutterMarkers&&ie.gutterMarkers[N]&&Ys(B,ie,"gutter",function(){return ie.gutterMarkers[N]=null,$(ie.gutterMarkers)&&(ie.gutterMarkers=null),!0})})}),lineInfo:function(B){var ie;if(typeof B=="number"){if(!zr(this,B))return null;if(ie=B,B=Pe(this,B),!B)return null}else if(ie=Yt(B),ie==null)return null;return{line:ie,handle:B,text:B.text,gutterMarkers:B.gutterMarkers,textClass:B.textClass,bgClass:B.bgClass,wrapClass:B.wrapClass,widgets:B.widgets}},addLineClass:ms(function(N,B,ie){return Ys(this,N,B=="gutter"?"gutter":"class",function(le){var me=B=="text"?"textClass":B=="background"?"bgClass":B=="gutter"?"gutterClass":"wrapClass";if(!le[me])le[me]=ie;else{if(_(ie).test(le[me]))return!1;le[me]+=" "+ie}return!0})}),removeLineClass:ms(function(N,B,ie){return Ys(this,N,B=="gutter"?"gutter":"class",function(le){var me=B=="text"?"textClass":B=="background"?"bgClass":B=="gutter"?"gutterClass":"wrapClass",Ke=le[me];if(Ke)if(ie==null)le[me]=null;else{var It=Ke.match(_(ie));if(!It)return!1;var nr=It.index+It[0].length;le[me]=Ke.slice(0,It.index)+(!It.index||nr==Ke.length?"":" ")+Ke.slice(nr)||null}else return!1;return!0})}),addLineWidget:ms(function(N,B,ie){return Wl(this,N,B,ie)}),removeLineWidget:function(B){B.clear()},markText:function(B,ie,le){return $l(this,Rt(this,B),Rt(this,ie),le,le&&le.type||"range")},setBookmark:function(B,ie){var le={replacedWith:ie&&(ie.nodeType==null?ie.widget:ie),insertLeft:ie&&ie.insertLeft,clearWhenEmpty:!1,shared:ie&&ie.shared,handleMouseEvents:ie&&ie.handleMouseEvents};return B=Rt(this,B),$l(this,B,B,le,"bookmark")},findMarksAt:function(B){B=Rt(this,B);var ie=[],le=Pe(this,B.line).markedSpans;if(le)for(var me=0;me<le.length;++me){var Ke=le[me];(Ke.from==null||Ke.from<=B.ch)&&(Ke.to==null||Ke.to>=B.ch)&&ie.push(Ke.marker.parent||Ke.marker)}return ie},findMarks:function(B,ie,le){B=Rt(this,B),ie=Rt(this,ie);var me=[],Ke=B.line;return this.iter(B.line,ie.line+1,function(It){var nr=It.markedSpans;if(nr)for(var wr=0;wr<nr.length;wr++){var _r=nr[wr];!(_r.to!=null&&Ke==B.line&&B.ch>=_r.to||_r.from==null&&Ke!=B.line||_r.from!=null&&Ke==ie.line&&_r.from>=ie.ch)&&(!le||le(_r.marker))&&me.push(_r.marker.parent||_r.marker)}++Ke}),me},getAllMarks:function(){var B=[];return this.iter(function(ie){var le=ie.markedSpans;if(le)for(var me=0;me<le.length;++me)le[me].from!=null&&B.push(le[me].marker)}),B},posFromIndex:function(B){var ie,le=this.first,me=this.lineSeparator().length;return this.iter(function(Ke){var It=Ke.text.length+me;if(It>B)return ie=B,!0;B-=It,++le}),Rt(this,jt(le,ie))},indexFromPos:function(B){B=Rt(this,B);var ie=B.ch;if(B.line<this.first||B.ch<0)return 0;var le=this.lineSeparator().length;return this.iter(this.first,B.line,function(me){ie+=me.text.length+le}),ie},copy:function(B){var ie=new Cl(yt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ie.scrollTop=this.scrollTop,ie.scrollLeft=this.scrollLeft,ie.sel=this.sel,ie.extend=!1,B&&(ie.history.undoDepth=this.history.undoDepth,ie.setHistory(this.getHistory())),ie},linkedDoc:function(B){B||(B={});var ie=this.first,le=this.first+this.size;B.from!=null&&B.from>ie&&(ie=B.from),B.to!=null&&B.to<le&&(le=B.to);var me=new Cl(yt(this,ie,le),B.mode||this.modeOption,ie,this.lineSep,this.direction);return B.sharedHist&&(me.history=this.history),(this.linked||(this.linked=[])).push({doc:me,sharedHist:B.sharedHist}),me.linked=[{doc:this,isParent:!0,sharedHist:B.sharedHist}],mu(me,pu(this)),me},unlinkDoc:function(B){if(B instanceof Br&&(B=B.doc),this.linked)for(var ie=0;ie<this.linked.length;++ie){var le=this.linked[ie];if(le.doc!=B)continue;this.linked.splice(ie,1),B.unlinkDoc(this),gu(pu(this));break}if(B.history==this.history){var me=[B.id];Qi(B,function(Ke){return me.push(Ke.id)},!0),B.history=new Wo(null),B.history.done=dl(this.history.done,me),B.history.undone=dl(this.history.undone,me)}},iterLinkedDocs:function(B){Qi(this,B)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(B){return this.lineSep?B.split(this.lineSep):dn(B)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:ms(function(N){if(N!="rtl"&&(N="ltr"),N==this.direction)return;this.direction=N,this.iter(function(B){return B.order=null}),this.cm&&no(this.cm)})}),Cl.prototype.eachLine=Cl.prototype.iter;var ll=0;function Hl(N){var B=this;if(vu(B),fr(B,N)||ei(B.display,N))return;Ge(N),d&&(ll=+new Date);var ie=_o(B,N,!0),le=N.dataTransfer.files;if(!ie||B.isReadOnly())return;if(le&&le.length&&window.FileReader&&window.File)for(var me=le.length,Ke=Array(me),It=0,nr=function(){++It==me&&zo(B,function(){ie=Rt(B.doc,ie);var la={from:ie,to:ie,text:B.doc.splitLines(Ke.filter(function(Ta){return Ta!=null}).join(B.doc.lineSeparator())),origin:"paste"};Ls(B.doc,la),wl(B.doc,Ie(Rt(B.doc,ie),Rt(B.doc,Je(la))))})()},wr=function(la,Ta){if(B.options.allowDropFileTypes&&G(B.options.allowDropFileTypes,la.type)==-1){nr();return}var Wa=new FileReader;Wa.onerror=function(){return nr()},Wa.onload=function(){var Ma=Wa.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ma)){nr();return}Ke[Ta]=Ma,nr()},Wa.readAsText(la)},_r=0;_r<le.length;_r++)wr(le[_r],_r);else{if(B.state.draggingText&&B.doc.sel.contains(ie)>-1){B.state.draggingText(N),setTimeout(function(){return B.display.input.focus()},20);return}try{var Hn=N.dataTransfer.getData("Text");if(Hn){var ni;if(B.state.draggingText&&!B.state.draggingText.copy&&(ni=B.listSelections()),Ws(B.doc,Ie(ie,ie)),ni)for(var Ei=0;Ei<ni.length;++Ei)jl(B.doc,"",ni[Ei].anchor,ni[Ei].head,"drag");B.replaceSelection(Hn,"around","paste"),B.display.input.focus()}}catch(Oi){}}}function Sl(N,B){if(d&&(!N.state.draggingText||+new Date-ll<100)){lt(B);return}if(fr(N,B)||ei(N.display,B))return;if(B.dataTransfer.setData("Text",N.getSelection()),B.dataTransfer.effectAllowed="copyMove",B.dataTransfer.setDragImage&&!e){var ie=I("img",null,null,"position: fixed; left: 0; top: 0;");ie.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",o&&(ie.width=ie.height=1,N.display.wrapper.appendChild(ie),ie._top=ie.offsetTop),B.dataTransfer.setDragImage(ie,0,0),o&&ie.parentNode.removeChild(ie)}}function Su(N,B){var ie=_o(N,B);if(!ie)return;var le=document.createDocumentFragment();ii(N,ie,le),N.display.dragCursor||(N.display.dragCursor=I("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),N.display.lineSpace.insertBefore(N.display.dragCursor,N.display.cursorDiv)),O(N.display.dragCursor,le)}function vu(N){N.display.dragCursor&&(N.display.lineSpace.removeChild(N.display.dragCursor),N.display.dragCursor=null)}function Au(N){if(!document.getElementsByClassName)return;for(var B=document.getElementsByClassName("CodeMirror"),ie=[],le=0;le<B.length;le++){var me=B[le].CodeMirror;me&&ie.push(me)}ie.length&&ie[0].operation(function(){for(var Ke=0;Ke<ie.length;Ke++)N(ie[Ke])})}var Ol=!1;function cu(){if(Ol)return;du(),Ol=!0}function du(){var N;He(window,"resize",function(){N==null&&(N=setTimeout(function(){N=null,Au(Lu)},100))}),He(window,"blur",function(){return Au(gi)})}function Lu(N){var B=N.display;B.cachedCharWidth=B.cachedTextHeight=B.cachedPaddingH=null,B.scrollbarsClipped=!1,N.setSize()}for(var zl={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ru=0;ru<10;ru++)zl[ru+48]=zl[ru+96]=String(ru);for(var ou=65;ou<=90;ou++)zl[ou]=String.fromCharCode(ou);for(var su=1;su<=12;su++)zl[su+111]=zl[su+63235]="F"+su;var Jl={};Jl.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Jl.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Jl.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Jl.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Jl.default=g?Jl.macDefault:Jl.pcDefault;function Du(N){var B=N.split(/-(?!$)/);N=B[B.length-1];for(var ie,le,me,Ke,It=0;It<B.length-1;It++){var nr=B[It];if(/^(cmd|meta|m)$/i.test(nr))Ke=!0;else if(/^a(lt)?$/i.test(nr))ie=!0;else if(/^(c|ctrl|control)$/i.test(nr))le=!0;else if(/^s(hift)?$/i.test(nr))me=!0;else throw new Error("Unrecognized modifier name: "+nr)}return ie&&(N="Alt-"+N),le&&(N="Ctrl-"+N),Ke&&(N="Cmd-"+N),me&&(N="Shift-"+N),N}function Ru(N){var B={};for(var ie in N)if(N.hasOwnProperty(ie)){var le=N[ie];if(/^(name|fallthrough|(de|at)tach)$/.test(ie))continue;if(le=="..."){delete N[ie];continue}for(var me=ut(ie.split(" "),Du),Ke=0;Ke<me.length;Ke++){var It=void 0,nr=void 0;Ke==me.length-1?(nr=me.join(" "),It=le):(nr=me.slice(0,Ke+1).join(" "),It="...");var wr=B[nr];if(!wr)B[nr]=It;else if(wr!=It)throw new Error("Inconsistent bindings for "+nr)}delete N[ie]}for(var _r in B)N[_r]=B[_r];return N}function Zl(N,B,ie,le){B=hl(B);var me=B.call?B.call(N,le):B[N];if(me===!1)return"nothing";if(me==="...")return"multi";if(me!=null&&ie(me))return"handled";if(B.fallthrough){if(Object.prototype.toString.call(B.fallthrough)!="[object Array]")return Zl(N,B.fallthrough,ie,le);for(var Ke=0;Ke<B.fallthrough.length;Ke++){var It=Zl(N,B.fallthrough[Ke],ie,le);if(It)return It}}}function yu(N){var B=typeof N=="string"?N:zl[N.keyCode];return B=="Ctrl"||B=="Alt"||B=="Shift"||B=="Mod"}function xu(N,B,ie){var le=N;return B.altKey&&le!="Alt"&&(N="Alt-"+N),(E?B.metaKey:B.ctrlKey)&&le!="Ctrl"&&(N="Ctrl-"+N),(E?B.ctrlKey:B.metaKey)&&le!="Mod"&&(N="Cmd-"+N),!ie&&B.shiftKey&&le!="Shift"&&(N="Shift-"+N),N}function bu(N,B){if(o&&N.keyCode==34&&N.char)return!1;var ie=zl[N.keyCode];return ie==null||N.altGraphKey?!1:(N.keyCode==3&&N.code&&(ie=N.code),xu(ie,N,B))}function hl(N){return typeof N=="string"?Jl[N]:N}function Dl(N,B){for(var ie=N.doc.sel.ranges,le=[],me=0;me<ie.length;me++){for(var Ke=B(ie[me]);le.length&&vt(Ke.from,Ve(le).to)<=0;){var It=le.pop();if(vt(It.from,Ke.from)<0){Ke.from=It.from;break}}le.push(Ke)}Eo(N,function(){for(var nr=le.length-1;nr>=0;nr--)jl(N.doc,"",le[nr].from,le[nr].to,"+delete");Da(N)})}function nu(N,B,ie){var le=Ce(N.text,B+ie,ie);return le<0||le>N.text.length?null:le}function Nu(N,B,ie){var le=nu(N,B.ch,ie);return le==null?null:new jt(B.line,le,ie<0?"after":"before")}function hu(N,B,ie,le,me){if(N){B.doc.direction=="rtl"&&(me=-me);var Ke=St(ie,B.doc.direction);if(Ke){var It=me<0?Ve(Ke):Ke[0],nr=me<0==(It.level==1),wr=nr?"after":"before",_r;if(It.level>0||B.doc.direction=="rtl"){var Hn=ca(B,ie);_r=me<0?ie.text.length-1:0;var ni=Ca(B,Hn,_r).top;_r=Be(function(Ei){return Ca(B,Hn,Ei).top==ni},me<0==(It.level==1)?It.from:It.to-1,_r),wr=="before"&&(_r=nu(ie,_r,1))}else _r=me<0?It.to:It.from;return new jt(le,_r,wr)}}return new jt(le,me<0?ie.text.length:0,me<0?"before":"after")}function fu(N,B,ie,le){var me=St(B,N.doc.direction);if(!me)return Nu(B,ie,le);ie.ch>=B.text.length?(ie.ch=B.text.length,ie.sticky="before"):ie.ch<=0&&(ie.ch=0,ie.sticky="after");var Ke=Re(me,ie.ch,ie.sticky),It=me[Ke];if(N.doc.direction=="ltr"&&It.level%2==0&&(le>0?It.to>ie.ch:It.from<ie.ch))return Nu(B,ie,le);var nr=function(Na,qa){return nu(B,Na instanceof jt?Na.ch:Na,qa)},wr,_r=function(Na){return N.options.lineWrapping?(wr=wr||ca(N,B),to(N,B,wr,Na)):{begin:0,end:B.text.length}},Hn=_r(ie.sticky=="before"?nr(ie,-1):ie.ch);if(N.doc.direction=="rtl"||It.level==1){var ni=It.level==1==le<0,Ei=nr(ie,ni?1:-1);if(Ei!=null&&(ni?Ei<=It.to&&Ei<=Hn.end:Ei>=It.from&&Ei>=Hn.begin)){var Oi=ni?"before":"after";return new jt(ie.line,Ei,Oi)}}var la=function(Na,qa,ho){for(var ns=function(ul,Pl){return Pl?new jt(ie.line,nr(ul,1),"before"):new jt(ie.line,ul,"after")};Na>=0&&Na<me.length;Na+=qa){var Mo=me[Na],Ss=qa>0==(Mo.level!=1),Zs=Ss?ho.begin:nr(ho.end,-1);if(Mo.from<=Zs&&Zs<Mo.to)return ns(Zs,Ss);if(Zs=Ss?Mo.from:nr(Mo.to,-1),ho.begin<=Zs&&Zs<ho.end)return ns(Zs,Ss)}},Ta=la(Ke+le,le,Hn);if(Ta)return Ta;var Wa=le>0?Hn.end:nr(Hn.begin,-1);return Wa!=null&&!(le>0&&Wa==B.text.length)&&(Ta=la(le>0?0:me.length-1,le,_r(Wa)),Ta)?Ta:null}var iu={selectAll:Is,singleSelection:function(B){return B.setSelection(B.getCursor("anchor"),B.getCursor("head"),se)},killLine:function(B){return Dl(B,function(ie){if(ie.empty()){var le=Pe(B.doc,ie.head.line).text.length;return ie.head.ch==le&&ie.head.line<B.lastLine()?{from:ie.head,to:jt(ie.head.line+1,0)}:{from:ie.head,to:jt(ie.head.line,le)}}else return{from:ie.from(),to:ie.to()}})},deleteLine:function(B){return Dl(B,function(ie){return{from:jt(ie.from().line,0),to:Rt(B.doc,jt(ie.to().line+1,0))}})},delLineLeft:function(B){return Dl(B,function(ie){return{from:jt(ie.from().line,0),to:ie.from()}})},delWrappedLineLeft:function(B){return Dl(B,function(ie){var le=B.charCoords(ie.head,"div").top+5,me=B.coordsChar({left:0,top:le},"div");return{from:me,to:ie.from()}})},delWrappedLineRight:function(B){return Dl(B,function(ie){var le=B.charCoords(ie.head,"div").top+5,me=B.coordsChar({left:B.display.lineDiv.offsetWidth+100,top:le},"div");return{from:ie.from(),to:me}})},undo:function(B){return B.undo()},redo:function(B){return B.redo()},undoSelection:function(B){return B.undoSelection()},redoSelection:function(B){return B.redoSelection()},goDocStart:function(B){return B.extendSelection(jt(B.firstLine(),0))},goDocEnd:function(B){return B.extendSelection(jt(B.lastLine()))},goLineStart:function(B){return B.extendSelectionsBy(function(ie){return Ae(B,ie.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(B){return B.extendSelectionsBy(function(ie){return L(B,ie.head)},{origin:"+move",bias:1})},goLineEnd:function(B){return B.extendSelectionsBy(function(ie){return ee(B,ie.head.line)},{origin:"+move",bias:-1})},goLineRight:function(B){return B.extendSelectionsBy(function(ie){var le=B.cursorCoords(ie.head,"div").top+5;return B.coordsChar({left:B.display.lineDiv.offsetWidth+100,top:le},"div")},xe)},goLineLeft:function(B){return B.extendSelectionsBy(function(ie){var le=B.cursorCoords(ie.head,"div").top+5;return B.coordsChar({left:0,top:le},"div")},xe)},goLineLeftSmart:function(B){return B.extendSelectionsBy(function(ie){var le=B.cursorCoords(ie.head,"div").top+5,me=B.coordsChar({left:0,top:le},"div");return me.ch<B.getLine(me.line).search(/\S/)?L(B,ie.head):me},xe)},goLineUp:function(B){return B.moveV(-1,"line")},goLineDown:function(B){return B.moveV(1,"line")},goPageUp:function(B){return B.moveV(-1,"page")},goPageDown:function(B){return B.moveV(1,"page")},goCharLeft:function(B){return B.moveH(-1,"char")},goCharRight:function(B){return B.moveH(1,"char")},goColumnLeft:function(B){return B.moveH(-1,"column")},goColumnRight:function(B){return B.moveH(1,"column")},goWordLeft:function(B){return B.moveH(-1,"word")},goGroupRight:function(B){return B.moveH(1,"group")},goGroupLeft:function(B){return B.moveH(-1,"group")},goWordRight:function(B){return B.moveH(1,"word")},delCharBefore:function(B){return B.deleteH(-1,"codepoint")},delCharAfter:function(B){return B.deleteH(1,"char")},delWordBefore:function(B){return B.deleteH(-1,"word")},delWordAfter:function(B){return B.deleteH(1,"word")},delGroupBefore:function(B){return B.deleteH(-1,"group")},delGroupAfter:function(B){return B.deleteH(1,"group")},indentAuto:function(B){return B.indentSelection("smart")},indentMore:function(B){return B.indentSelection("add")},indentLess:function(B){return B.indentSelection("subtract")},insertTab:function(B){return B.replaceSelection(" ")},insertSoftTab:function(B){for(var ie=[],le=B.listSelections(),me=B.options.tabSize,Ke=0;Ke<le.length;Ke++){var It=le[Ke].from(),nr=V(B.getLine(It.line),It.ch,me);ie.push(Qe(me-nr%me))}B.replaceSelections(ie)},defaultTab:function(B){B.somethingSelected()?B.indentSelection("add"):B.execCommand("insertTab")},transposeChars:function(B){return Eo(B,function(){for(var ie=B.listSelections(),le=[],me=0;me<ie.length;me++){if(!ie[me].empty())continue;var Ke=ie[me].head,It=Pe(B.doc,Ke.line).text;if(It){if(Ke.ch==It.length&&(Ke=new jt(Ke.line,Ke.ch-1)),Ke.ch>0)Ke=new jt(Ke.line,Ke.ch+1),B.replaceRange(It.charAt(Ke.ch-1)+It.charAt(Ke.ch-2),jt(Ke.line,Ke.ch-2),Ke,"+transpose");else if(Ke.line>B.doc.first){var nr=Pe(B.doc,Ke.line-1).text;nr&&(Ke=new jt(Ke.line,1),B.replaceRange(It.charAt(0)+B.doc.lineSeparator()+nr.charAt(nr.length-1),jt(Ke.line-1,nr.length-1),Ke,"+transpose"))}}le.push(new ce(Ke,Ke))}B.setSelections(le)})},newlineAndIndent:function(B){return Eo(B,function(){for(var ie=B.listSelections(),le=ie.length-1;le>=0;le--)B.replaceRange(B.doc.lineSeparator(),ie[le].anchor,ie[le].head,"+input");ie=B.listSelections();for(var me=0;me<ie.length;me++)B.indentLine(ie[me].from().line,null,!0);Da(B)})},openLine:function(B){return B.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(B){return B.toggleOverwrite()}};function Ae(N,B){var ie=Pe(N.doc,B),le=kt(ie);return le!=ie&&(B=Yt(le)),hu(!0,N,le,B,1)}function ee(N,B){var ie=Pe(N.doc,B),le=Bt(ie);return le!=ie&&(B=Yt(le)),hu(!0,N,ie,B,-1)}function L(N,B){var ie=Ae(N,B.line),le=Pe(N.doc,ie.line),me=St(le,N.doc.direction);if(!me||me[0].level==0){var Ke=Math.max(ie.ch,le.text.search(/\S/)),It=B.line==ie.line&&B.ch<=Ke&&B.ch;return jt(ie.line,It?0:Ke,ie.sticky)}return ie}function W(N,B,ie){if(typeof B=="string"&&(B=iu[B],!B))return!1;N.display.input.ensurePolled();var le=N.display.shift,me=!1;try{N.isReadOnly()&&(N.state.suppressEdits=!0),ie&&(N.display.shift=!1),me=B(N)!=q}finally{N.display.shift=le,N.state.suppressEdits=!1}return me}function H(N,B,ie){for(var le=0;le<N.state.keyMaps.length;le++){var me=Zl(B,N.state.keyMaps[le],ie,N);if(me)return me}return N.options.extraKeys&&Zl(B,N.options.extraKeys,ie,N)||Zl(B,N.options.keyMap,ie,N)}var Z=new Q;function ne(N,B,ie,le){var me=N.state.keySeq;if(me){if(yu(B))return"handled";if(/\'$/.test(B)?N.state.keySeq=null:Z.set(50,function(){N.state.keySeq==me&&(N.state.keySeq=null,N.display.input.reset())}),ve(N,me+" "+B,ie,le))return!0}return ve(N,B,ie,le)}function ve(N,B,ie,le){var me=H(N,B,le);return me=="multi"&&(N.state.keySeq=B),me=="handled"&&Ir(N,"keyHandled",N,B,ie),(me=="handled"||me=="multi")&&(Ge(ie),li(N)),!!me}function Te(N,B){var ie=bu(B,!0);return ie?B.shiftKey&&!N.state.keySeq?ne(N,"Shift-"+ie,B,function(le){return W(N,le,!0)})||ne(N,ie,B,function(le){if(typeof le=="string"?/^go[A-Z]/.test(le):le.motion)return W(N,le)}):ne(N,ie,B,function(le){return W(N,le)}):!1}function ze(N,B,ie){return ne(N,"'"+ie+"'",B,function(le){return W(N,le,!0)})}var st=null;function ht(N){var B=this;if(N.target&&N.target!=B.display.input.getField())return;if(B.curOp.focus=P(),fr(B,N))return;d&&u<11&&N.keyCode==27&&(N.returnValue=!1);var ie=N.keyCode;B.display.shift=ie==16||N.shiftKey;var le=Te(B,N);o&&(st=le?ie:null,!le&&ie==88&&!ur&&(g?N.metaKey:N.ctrlKey)&&B.replaceSelection("",null,"cut")),x&&!g&&!le&&ie==46&&N.shiftKey&&!N.ctrlKey&&document.execCommand&&document.execCommand("cut"),ie==18&&!/\bCodeMirror-crosshair\b/.test(B.display.lineDiv.className)&&Zt(B)}function Zt(N){var B=N.display.lineDiv;X(B,"CodeMirror-crosshair");function ie(le){(le.keyCode==18||!le.altKey)&&(T(B,"CodeMirror-crosshair"),ct(document,"keyup",ie),ct(document,"mouseover",ie))}He(document,"keyup",ie),He(document,"mouseover",ie)}function Cr(N){N.keyCode==16&&(this.doc.sel.shift=!1),fr(this,N)}function Sr(N){var B=this;if(N.target&&N.target!=B.display.input.getField())return;if(ei(B.display,N)||fr(B,N)||N.ctrlKey&&!N.altKey||g&&N.metaKey)return;var ie=N.keyCode,le=N.charCode;if(o&&ie==st){st=null,Ge(N);return}if(o&&(!N.which||N.which<10)&&Te(B,N))return;var me=String.fromCharCode(le==null?ie:le);if(me=="\b")return;if(ze(B,N,me))return;B.display.input.onKeyPress(N)}var Kr=400,Zr=function(B,ie,le){this.time=B,this.pos=ie,this.button=le};Zr.prototype.compare=function(N,B,ie){return this.time+Kr>N&&vt(B,this.pos)==0&&ie==this.button};var On,Rn;function Zn(N,B){var ie=+new Date;return Rn&&Rn.compare(ie,N,B)?(On=Rn=null,"triple"):On&&On.compare(ie,N,B)?(Rn=new Zr(ie,N,B),On=null,"double"):(On=new Zr(ie,N,B),Rn=null,"single")}function wi(N){var B=this,ie=B.display;if(fr(B,N)||ie.activeTouch&&ie.input.supportsTouch())return;if(ie.input.ensurePolled(),ie.shift=N.shiftKey,ei(ie,N)){s||(ie.scroller.draggable=!1,setTimeout(function(){return ie.scroller.draggable=!0},100));return}if(bs(B,N))return;var le=_o(B,N),me=ge(N),Ke=le?Zn(le,me):"single";if(window.focus(),me==1&&B.state.selectingText&&B.state.selectingText(N),le&&ua(B,me,le,Ke,N))return;me==1?le?Zi(B,le,Ke,N):qe(N)==ie.scroller&&Ge(N):me==2?(le&&Us(B.doc,le),setTimeout(function(){return ie.input.focus()},20)):me==3&&(C?B.display.input.onContextMenu(N):si(B))}function ua(N,B,ie,le,me){var Ke="Click";return le=="double"?Ke="Double"+Ke:le=="triple"&&(Ke="Triple"+Ke),Ke=(B==1?"Left":B==2?"Middle":"Right")+Ke,ne(N,xu(Ke,me),me,function(It){if(typeof It=="string"&&(It=iu[It]),!It)return!1;var nr=!1;try{N.isReadOnly()&&(N.state.suppressEdits=!0),nr=It(N,ie)!=q}finally{N.state.suppressEdits=!1}return nr})}function Gi(N,B,ie){var le=N.getOption("configureMouse"),me=le?le(N,B,ie):{};if(me.unit==null){var Ke=A?ie.shiftKey&&ie.metaKey:ie.altKey;me.unit=Ke?"rectangle":B=="single"?"char":B=="double"?"word":"line"}return(me.extend==null||N.doc.extend)&&(me.extend=N.doc.extend||ie.shiftKey),me.addNew==null&&(me.addNew=g?ie.metaKey:ie.ctrlKey),me.moveOnDrag==null&&(me.moveOnDrag=!(g?ie.altKey:ie.ctrlKey)),me}function Zi(N,B,ie,le){d?setTimeout(K(ci,N),0):N.curOp.focus=P();var me=Gi(N,ie,le),Ke=N.doc.sel,It;N.options.dragDrop&&Ht&&!N.isReadOnly()&&ie=="single"&&(It=Ke.contains(B))>-1&&(vt((It=Ke.ranges[It]).from(),B)<0||B.xRel>0)&&(vt(It.to(),B)>0||B.xRel<0)?ka(N,le,B,me):Ba(N,le,B,me)}function ka(N,B,ie,le){var me=N.display,Ke=!1,It=zo(N,function(_r){s&&(me.scroller.draggable=!1),N.state.draggingText=!1,ct(me.wrapper.ownerDocument,"mouseup",It),ct(me.wrapper.ownerDocument,"mousemove",nr),ct(me.scroller,"dragstart",wr),ct(me.scroller,"drop",It),Ke||(Ge(_r),le.addNew||Us(N.doc,ie,null,null,le.extend),s&&!e||d&&u==9?setTimeout(function(){me.wrapper.ownerDocument.body.focus({preventScroll:!0}),me.input.focus()},20):me.input.focus())}),nr=function(Hn){Ke=Ke||Math.abs(B.clientX-Hn.clientX)+Math.abs(B.clientY-Hn.clientY)>=10},wr=function(){return Ke=!0};s&&(me.scroller.draggable=!0),N.state.draggingText=It,It.copy=!le.moveOnDrag,me.scroller.dragDrop&&me.scroller.dragDrop(),He(me.wrapper.ownerDocument,"mouseup",It),He(me.wrapper.ownerDocument,"mousemove",nr),He(me.scroller,"dragstart",wr),He(me.scroller,"drop",It),si(N),setTimeout(function(){return me.input.focus()},20)}function Ga(N,B,ie){if(ie=="char")return new ce(B,B);if(ie=="word")return N.findWordAt(B);if(ie=="line")return new ce(jt(B.line,0),Rt(N.doc,jt(B.line+1,0)));var le=ie(N,B);return new ce(le.from,le.to)}function Ba(N,B,ie,le){var me=N.display,Ke=N.doc;Ge(B);var It,nr,wr=Ke.sel,_r=wr.ranges;if(le.addNew&&!le.extend?(nr=Ke.sel.contains(ie),nr>-1?It=_r[nr]:It=new ce(ie,ie)):(It=Ke.sel.primary(),nr=Ke.sel.primIndex),le.unit=="rectangle")le.addNew||(It=new ce(ie,ie)),ie=_o(N,B,!0,!0),nr=-1;else{var Hn=Ga(N,ie,le.unit);le.extend?It=fl(It,Hn.anchor,Hn.head,le.extend):It=Hn}le.addNew?nr==-1?(nr=_r.length,Ts(Ke,Se(N,_r.concat([It]),nr),{scroll:!1,origin:"*mouse"})):_r.length>1&&_r[nr].empty()&&le.unit=="char"&&!le.extend?(Ts(Ke,Se(N,_r.slice(0,nr).concat(_r.slice(nr+1)),0),{scroll:!1,origin:"*mouse"}),wr=Ke.sel):Xs(Ke,nr,It,re):(nr=0,Ts(Ke,new Nt([It],0),re),wr=Ke.sel);var ni=ie;function Ei(qa){if(vt(ni,qa)==0)return;if(ni=qa,le.unit=="rectangle"){for(var ho=[],ns=N.options.tabSize,Mo=V(Pe(Ke,ie.line).text,ie.ch,ns),Ss=V(Pe(Ke,qa.line).text,qa.ch,ns),Zs=Math.min(Mo,Ss),yl=Math.max(Mo,Ss),ul=Math.min(ie.line,qa.line),Pl=Math.min(N.lastLine(),Math.max(ie.line,qa.line));ul<=Pl;ul++){var Vl=Pe(Ke,ul).text,Il=Oe(Vl,Zs,ns);Zs==yl?ho.push(new ce(jt(ul,Il),jt(ul,Il))):Vl.length>Il&&ho.push(new ce(jt(ul,Il),jt(ul,Oe(Vl,yl,ns))))}ho.length||ho.push(new ce(ie,ie)),Ts(Ke,Se(N,wr.ranges.slice(0,nr).concat(ho),nr),{origin:"*mouse",scroll:!1}),N.scrollIntoView(qa)}else{var Gl=It,Fl=Ga(N,qa,le.unit),Ja=Gl.anchor,vl;vt(Fl.anchor,Ja)>0?(vl=Fl.head,Ja=Mt(Gl.from(),Fl.anchor)):(vl=Fl.anchor,Ja=Qt(Gl.to(),Fl.head));var gl=wr.ranges.slice(0);gl[nr]=Sa(N,new ce(Rt(Ke,Ja),vl)),Ts(Ke,Se(N,gl,nr),re)}}var Oi=me.wrapper.getBoundingClientRect(),la=0;function Ta(qa){var ho=++la,ns=_o(N,qa,!0,le.unit=="rectangle");if(!ns)return;if(vt(ns,ni)!=0){N.curOp.focus=P(),Ei(ns);var Mo=ia(me,Ke);(ns.line>=Mo.to||ns.line<Mo.from)&&setTimeout(zo(N,function(){la==ho&&Ta(qa)}),150)}else{var Ss=qa.clientY<Oi.top?-20:qa.clientY>Oi.bottom?20:0;Ss&&setTimeout(zo(N,function(){if(la!=ho)return;me.scroller.scrollTop+=Ss,Ta(qa)}),50)}}function Wa(qa){N.state.selectingText=!1,la=Infinity,qa&&(Ge(qa),me.input.focus()),ct(me.wrapper.ownerDocument,"mousemove",Ma),ct(me.wrapper.ownerDocument,"mouseup",Na),Ke.history.lastSelOrigin=null}var Ma=zo(N,function(qa){qa.buttons===0||!ge(qa)?Wa(qa):Ta(qa)}),Na=zo(N,Wa);N.state.selectingText=Na,He(me.wrapper.ownerDocument,"mousemove",Ma),He(me.wrapper.ownerDocument,"mouseup",Na)}function Sa(N,B){var ie=B.anchor,le=B.head,me=Pe(N.doc,ie.line);if(vt(ie,le)==0&&ie.sticky==le.sticky)return B;var Ke=St(me);if(!Ke)return B;var It=Re(Ke,ie.ch,ie.sticky),nr=Ke[It];if(nr.from!=ie.ch&&nr.to!=ie.ch)return B;var wr=It+(nr.from==ie.ch==(nr.level!=1)?0:1);if(wr==0||wr==Ke.length)return B;var _r;if(le.line!=ie.line)_r=(le.line-ie.line)*(N.doc.direction=="ltr"?1:-1)>0;else{var Hn=Re(Ke,le.ch,le.sticky),ni=Hn-It||(le.ch-ie.ch)*(nr.level==1?-1:1);Hn==wr-1||Hn==wr?_r=ni<0:_r=ni>0}var Ei=Ke[wr+(_r?-1:0)],Oi=_r==(Ei.level==1),la=Oi?Ei.from:Ei.to,Ta=Oi?"after":"before";return ie.ch==la&&ie.sticky==Ta?B:new ce(new jt(ie.line,la,Ta),le)}function Go(N,B,ie,le){var me,Ke;if(B.touches)me=B.touches[0].clientX,Ke=B.touches[0].clientY;else try{me=B.clientX,Ke=B.clientY}catch(Ei){return!1}if(me>=Math.floor(N.display.gutters.getBoundingClientRect().right))return!1;le&&Ge(B);var It=N.display,nr=It.lineDiv.getBoundingClientRect();if(Ke>nr.bottom||!Pt(N,ie))return oe(B);Ke-=nr.top-It.viewOffset;for(var wr=0;wr<N.display.gutterSpecs.length;++wr){var _r=It.gutters.childNodes[wr];if(_r&&_r.getBoundingClientRect().right>=me){var Hn=Rr(N.doc,Ke),ni=N.display.gutterSpecs[wr];return Kt(N,ie,N,Hn,ni.className,B),oe(B)}}}function bs(N,B){return Go(N,B,"gutterClick",!0)}function ys(N,B){if(ei(N.display,B)||Cs(N,B))return;if(fr(N,B,"contextmenu"))return;C||N.display.input.onContextMenu(B)}function Cs(N,B){return Pt(N,"gutterContextMenu")?Go(N,B,"gutterContextMenu",!1):!1}function js(N){N.display.wrapper.className=N.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+N.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Xa(N)}var ws={toString:function(){return"CodeMirror.Init"}},Hs={},Ee={};function Ye(N){var B=N.optionHandlers;function ie(le,me,Ke,It){N.defaults[le]=me,Ke&&(B[le]=It?function(nr,wr,_r){_r!=ws&&Ke(nr,wr,_r)}:Ke)}N.defineOption=ie,N.Init=ws,ie("value","",function(le,me){return le.setValue(me)},!0),ie("mode",null,function(le,me){le.doc.modeOption=me,Dn(le)},!0),ie("indentUnit",2,Dn,!0),ie("indentWithTabs",!1),ie("smartIndent",!0),ie("tabSize",4,function(le){ui(le),Xa(le),Ha(le)},!0),ie("lineSeparator",null,function(le,me){if(le.doc.lineSep=me,!me)return;var Ke=[],It=le.doc.first;le.doc.iter(function(wr){for(var _r=0;;){var Hn=wr.text.indexOf(me,_r);if(Hn==-1)break;_r=Hn+me.length,Ke.push(jt(It,Hn))}It++});for(var nr=Ke.length-1;nr>=0;nr--)jl(le.doc,me,Ke[nr],jt(Ke[nr].line,Ke[nr].ch+me.length))}),ie("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(le,me,Ke){le.state.specialChars=new RegExp(me.source+(me.test(" ")?"":"| "),"g"),Ke!=ws&&le.refresh()}),ie("specialCharPlaceholder",Ti,function(le){return le.refresh()},!0),ie("electricChars",!0),ie("inputStyle",h?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ie("spellcheck",!1,function(le,me){return le.getInputField().spellcheck=me},!0),ie("autocorrect",!1,function(le,me){return le.getInputField().autocorrect=me},!0),ie("autocapitalize",!1,function(le,me){return le.getInputField().autocapitalize=me},!0),ie("rtlMoveVisually",!b),ie("wholeLineUpdateBefore",!0),ie("theme","default",function(le){js(le),fs(le)},!0),ie("keyMap","default",function(le,me,Ke){var It=hl(me),nr=Ke!=ws&&hl(Ke);nr&&nr.detach&&nr.detach(le,It),It.attach&&It.attach(le,nr||null)}),ie("extraKeys",null),ie("configureMouse",null),ie("lineWrapping",!1,hr,!0),ie("gutters",[],function(le,me){le.display.gutterSpecs=Vo(me,le.options.lineNumbers),fs(le)},!0),ie("fixedGutter",!0,function(le,me){le.display.gutters.style.left=me?xo(le.display)+"px":"0",le.refresh()},!0),ie("coverGutterNextToScrollbar",!1,function(le){return Lo(le)},!0),ie("scrollbarStyle","native",function(le){Rs(le),Lo(le),le.display.scrollbars.setScrollTop(le.doc.scrollTop),le.display.scrollbars.setScrollLeft(le.doc.scrollLeft)},!0),ie("lineNumbers",!1,function(le,me){le.display.gutterSpecs=Vo(le.options.gutters,me),fs(le)},!0),ie("firstLineNumber",1,fs,!0),ie("lineNumberFormatter",function(le){return le},fs,!0),ie("showCursorWhenSelecting",!1,fn,!0),ie("resetSelectionOnContextMenu",!0),ie("lineWiseCopyCut",!0),ie("pasteLinesPerSelection",!0),ie("selectionsMayTouch",!1),ie("readOnly",!1,function(le,me){me=="nocursor"&&(gi(le),le.display.input.blur()),le.display.input.readOnlyChanged(me)}),ie("screenReaderLabel",null,function(le,me){me=me===""?null:me,le.display.input.screenReaderLabelChanged(me)}),ie("disableInput",!1,function(le,me){me||le.display.input.reset()},!0),ie("dragDrop",!0,Tt),ie("allowDropFileTypes",null),ie("cursorBlinkRate",530),ie("cursorScrollMargin",0),ie("cursorHeight",1,fn,!0),ie("singleCursorHeightPerLine",!0,fn,!0),ie("workTime",100),ie("workDelay",100),ie("flattenSpans",!0,ui,!0),ie("addModeClass",!1,ui,!0),ie("pollInterval",100),ie("undoDepth",200,function(le,me){return le.doc.history.undoDepth=me}),ie("historyEventDelay",1250),ie("viewportMargin",10,function(le){return le.refresh()},!0),ie("maxHighlightLength",1e4,ui,!0),ie("moveInputWithCursor",!0,function(le,me){me||le.display.input.resetPosition()}),ie("tabindex",null,function(le,me){return le.display.input.getField().tabIndex=me||""}),ie("autofocus",null),ie("direction","ltr",function(le,me){return le.doc.setDirection(me)},!0),ie("phrases",null)}function Tt(N,B,ie){var le=ie&&ie!=ws;if(!B!=!le){var me=N.display.dragFunctions,Ke=B?He:ct;Ke(N.display.scroller,"dragstart",me.start),Ke(N.display.scroller,"dragenter",me.enter),Ke(N.display.scroller,"dragover",me.over),Ke(N.display.scroller,"dragleave",me.leave),Ke(N.display.scroller,"drop",me.drop)}}function hr(N){N.options.lineWrapping?(X(N.display.wrapper,"CodeMirror-wrap"),N.display.sizer.style.minWidth="",N.display.sizerWidth=null):(T(N.display.wrapper,"CodeMirror-wrap"),Mn(N)),Ho(N),Ha(N),Xa(N),setTimeout(function(){return Lo(N)},100)}function Br(N,B){var ie=this;if(!(this instanceof Br))return new Br(N,B);this.options=B=B?z(B):{},z(Hs,B,!1);var le=B.value;typeof le=="string"?le=new Cl(le,B.mode,null,B.lineSeparator,B.direction):B.mode&&(le.modeOption=B.mode),this.doc=le;var me=new Br.inputStyles[B.inputStyle](this),Ke=this.display=new Ds(N,le,me,B);Ke.wrapper.CodeMirror=this,js(this),B.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Rs(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Q,keySeq:null,specialChars:null},B.autofocus&&!h&&Ke.input.focus(),d&&u<11&&setTimeout(function(){return ie.display.input.reset(!0)},20),on(this),cu(),as(this),this.curOp.forceUpdate=!0,sa(this,le),B.autofocus&&!h||this.hasFocus()?setTimeout(function(){ie.hasFocus()&&!ie.state.focused&&Ci(ie)},20):gi(this);for(var It in Ee)Ee.hasOwnProperty(It)&&Ee[It](this,B[It],ws);Js(this),B.finishInit&&B.finishInit(this);for(var nr=0;nr<Ue.length;++nr)Ue[nr](this);co(this),s&&B.lineWrapping&&getComputedStyle(Ke.lineDiv).textRendering=="optimizelegibility"&&(Ke.lineDiv.style.textRendering="auto")}Br.defaults=Hs,Br.optionHandlers=Ee;function on(N){var B=N.display;He(B.scroller,"mousedown",zo(N,wi)),d&&u<11?He(B.scroller,"dblclick",zo(N,function(wr){if(fr(N,wr))return;var _r=_o(N,wr);if(!_r||bs(N,wr)||ei(N.display,wr))return;Ge(wr);var Hn=N.findWordAt(_r);Us(N.doc,Hn.anchor,Hn.head)})):He(B.scroller,"dblclick",function(wr){return fr(N,wr)||Ge(wr)}),He(B.scroller,"contextmenu",function(wr){return ys(N,wr)}),He(B.input.getField(),"contextmenu",function(wr){B.scroller.contains(wr.target)||ys(N,wr)});var ie,le={end:0};function me(){B.activeTouch&&(ie=setTimeout(function(){return B.activeTouch=null},1e3),le=B.activeTouch,le.end=+new Date)}function Ke(wr){if(wr.touches.length!=1)return!1;var _r=wr.touches[0];return _r.radiusX<=1&&_r.radiusY<=1}function It(wr,_r){if(_r.left==null)return!0;var Hn=_r.left-wr.left,ni=_r.top-wr.top;return Hn*Hn+ni*ni>20*20}He(B.scroller,"touchstart",function(wr){if(!fr(N,wr)&&!Ke(wr)&&!bs(N,wr)){B.input.ensurePolled(),clearTimeout(ie);var _r=+new Date;B.activeTouch={start:_r,moved:!1,prev:_r-le.end<=300?le:null},wr.touches.length==1&&(B.activeTouch.left=wr.touches[0].pageX,B.activeTouch.top=wr.touches[0].pageY)}}),He(B.scroller,"touchmove",function(){B.activeTouch&&(B.activeTouch.moved=!0)}),He(B.scroller,"touchend",function(wr){var _r=B.activeTouch;if(_r&&!ei(B,wr)&&_r.left!=null&&!_r.moved&&new Date-_r.start<300){var Hn=N.coordsChar(B.activeTouch,"page"),ni;!_r.prev||It(_r,_r.prev)?ni=new ce(Hn,Hn):!_r.prev.prev||It(_r,_r.prev.prev)?ni=N.findWordAt(Hn):ni=new ce(jt(Hn.line,0),Rt(N.doc,jt(Hn.line+1,0))),N.setSelection(ni.anchor,ni.head),N.focus(),Ge(wr)}me()}),He(B.scroller,"touchcancel",me),He(B.scroller,"scroll",function(){B.scroller.clientHeight&&(Ea(N,B.scroller.scrollTop),Ka(N,B.scroller.scrollLeft,!0),Kt(N,"scroll",N))}),He(B.scroller,"mousewheel",function(wr){return hi(N,wr)}),He(B.scroller,"DOMMouseScroll",function(wr){return hi(N,wr)}),He(B.wrapper,"scroll",function(){return B.wrapper.scrollTop=B.wrapper.scrollLeft=0}),B.dragFunctions={enter:function(_r){fr(N,_r)||lt(_r)},over:function(_r){fr(N,_r)||(Su(N,_r),lt(_r))},start:function(_r){return Sl(N,_r)},drop:zo(N,Hl),leave:function(_r){fr(N,_r)||vu(N)}};var nr=B.input.getField();He(nr,"keyup",function(wr){return Cr.call(N,wr)}),He(nr,"keydown",zo(N,ht)),He(nr,"keypress",zo(N,Sr)),He(nr,"focus",function(wr){return Ci(N,wr)}),He(nr,"blur",function(wr){return gi(N,wr)})}var Ue=[];Br.defineInitHook=function(N){return Ue.push(N)};function ae(N,B,ie,le){var me=N.doc,Ke;ie==null&&(ie="add"),ie=="smart"&&(me.mode.indent?Ke=ri(N,B).state:ie="prev");var It=N.options.tabSize,nr=Pe(me,B),wr=V(nr.text,null,It);nr.stateAfter&&(nr.stateAfter=null);var _r=nr.text.match(/^\s*/)[0],Hn;if(!le&&!/\S/.test(nr.text))Hn=0,ie="not";else if(ie=="smart"&&(Hn=me.mode.indent(Ke,nr.text.slice(_r.length),nr.text),Hn==q||Hn>150)){if(!le)return;ie="prev"}ie=="prev"?B>me.first?Hn=V(Pe(me,B-1).text,null,It):Hn=0:ie=="add"?Hn=wr+N.options.indentUnit:ie=="subtract"?Hn=wr-N.options.indentUnit:typeof ie=="number"&&(Hn=wr+ie),Hn=Math.max(0,Hn);var ni="",Ei=0;if(N.options.indentWithTabs)for(var Oi=Math.floor(Hn/It);Oi;--Oi)Ei+=It,ni+=" ";if(Ei<Hn&&(ni+=Qe(Hn-Ei)),ni!=_r)return jl(me,ni,jt(B,0),jt(B,_r.length),"+input"),nr.stateAfter=null,!0;for(var la=0;la<me.sel.ranges.length;la++){var Ta=me.sel.ranges[la];if(Ta.head.line==B&&Ta.head.ch<_r.length){var Wa=jt(B,_r.length);Xs(me,la,new ce(Wa,Wa));break}}}var _e=null;function $e(N){_e=N}function wt(N,B,ie,le,me){var Ke=N.doc;N.display.shift=!1,le||(le=Ke.sel);var It=+new Date-200,nr=me=="paste"||N.state.pasteIncoming>It,wr=dn(B),_r=null;if(nr&&le.ranges.length>1)if(_e&&_e.text.join(`
|
|
|
`)==B){if(le.ranges.length%_e.text.length==0){_r=[];for(var Hn=0;Hn<_e.text.length;Hn++)_r.push(Ke.splitLines(_e.text[Hn]))}}else wr.length==le.ranges.length&&N.options.pasteLinesPerSelection&&(_r=ut(wr,function(Ma){return[Ma]}));for(var ni=N.curOp.updateInput,Ei=le.ranges.length-1;Ei>=0;Ei--){var Oi=le.ranges[Ei],la=Oi.from(),Ta=Oi.to();Oi.empty()&&(ie&&ie>0?la=jt(la.line,la.ch-ie):N.state.overwrite&&!nr?Ta=jt(Ta.line,Math.min(Pe(Ke,Ta.line).text.length,Ta.ch+Ve(wr).length)):nr&&_e&&_e.lineWise&&_e.text.join(`
|
|
|
`)==wr.join(`
|
|
|
`)&&(la=Ta=jt(la.line,0)));var Wa={from:la,to:Ta,text:_r?_r[Ei%_r.length]:wr,origin:me||(nr?"paste":N.state.cutIncoming>It?"cut":"+input")};Ls(N.doc,Wa),Ir(N,"inputRead",N,Wa)}B&&!nr&&rr(N,B),Da(N),N.curOp.updateInput<2&&(N.curOp.updateInput=ni),N.curOp.typing=!0,N.state.pasteIncoming=N.state.cutIncoming=-1}function Vt(N,B){var ie=N.clipboardData&&N.clipboardData.getData("Text");if(ie)return N.preventDefault(),!B.isReadOnly()&&!B.options.disableInput&&Eo(B,function(){return wt(B,ie,0,null,"paste")}),!0}function rr(N,B){if(!N.options.electricChars||!N.options.smartIndent)return;for(var ie=N.doc.sel,le=ie.ranges.length-1;le>=0;le--){var me=ie.ranges[le];if(me.head.ch>100||le&&ie.ranges[le-1].head.line==me.head.line)continue;var Ke=N.getModeAt(me.head),It=!1;if(Ke.electricChars){for(var nr=0;nr<Ke.electricChars.length;nr++)if(B.indexOf(Ke.electricChars.charAt(nr))>-1){It=ae(N,me.head.line,"smart");break}}else Ke.electricInput&&(Ke.electricInput.test(Pe(N.doc,me.head.line).text.slice(0,me.head.ch))&&(It=ae(N,me.head.line,"smart")));It&&Ir(N,"electricInput",N,me.head.line)}}function ar(N){for(var B=[],ie=[],le=0;le<N.doc.sel.ranges.length;le++){var me=N.doc.sel.ranges[le].head.line,Ke={anchor:jt(me,0),head:jt(me+1,0)};ie.push(Ke),B.push(N.getRange(Ke.anchor,Ke.head))}return{text:B,ranges:ie}}function Vr(N,B,ie,le){N.setAttribute("autocorrect",ie?"":"off"),N.setAttribute("autocapitalize",le?"":"off"),N.setAttribute("spellcheck",!!B)}function pn(){var N=I("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),B=I("div",[N],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return s?N.style.width="1000px":N.setAttribute("wrap","off"),a&&(N.style.border="1px solid black"),Vr(N),B}function Wr(N){var B=N.optionHandlers,ie=N.helpers={};N.prototype={constructor:N,focus:function(){window.focus(),this.display.input.focus()},setOption:function(me,Ke){var It=this.options,nr=It[me];if(It[me]==Ke&&me!="mode")return;It[me]=Ke,B.hasOwnProperty(me)&&zo(this,B[me])(this,Ke,nr),Kt(this,"optionChange",this,me)},getOption:function(me){return this.options[me]},getDoc:function(){return this.doc},addKeyMap:function(me,Ke){this.state.keyMaps[Ke?"push":"unshift"](hl(me))},removeKeyMap:function(me){for(var Ke=this.state.keyMaps,It=0;It<Ke.length;++It)if(Ke[It]==me||Ke[It].name==me)return Ke.splice(It,1),!0},addOverlay:Fs(function(le,me){var Ke=le.token?le:N.getMode(this.options,le);if(Ke.startState)throw new Error("Overlays may not be stateful.");Fe(this.state.overlays,{mode:Ke,modeSpec:le,opaque:me&&me.opaque,priority:me&&me.priority||0},function(It){return It.priority}),this.state.modeGen++,Ha(this)}),removeOverlay:Fs(function(le){for(var me=this.state.overlays,Ke=0;Ke<me.length;++Ke){var It=me[Ke].modeSpec;if(It==le||typeof le=="string"&&It.name==le){me.splice(Ke,1),this.state.modeGen++,Ha(this);return}}}),indentLine:Fs(function(le,me,Ke){typeof me!="string"&&typeof me!="number"&&(me==null?me=this.options.smartIndent?"smart":"prev":me=me?"add":"subtract"),zr(this.doc,le)&&ae(this,le,me,Ke)}),indentSelection:Fs(function(le){for(var me=this.doc.sel.ranges,Ke=-1,It=0;It<me.length;It++){var nr=me[It];if(nr.empty())nr.head.line>Ke&&(ae(this,nr.head.line,le,!0),Ke=nr.head.line,It==this.doc.sel.primIndex&&Da(this));else{var wr=nr.from(),_r=nr.to(),Hn=Math.max(Ke,wr.line);Ke=Math.min(this.lastLine(),_r.line-(_r.ch?0:1))+1;for(var ni=Hn;ni<Ke;++ni)ae(this,ni,le);var Ei=this.doc.sel.ranges;wr.ch==0&&me.length==Ei.length&&Ei[It].from().ch>0&&Xs(this.doc,It,new ce(wr,Ei[It].to()),se)}}}),getTokenAt:function(me,Ke){return Wi(this,me,Ke)},getLineTokens:function(me,Ke){return Wi(this,jt(me),Ke,!0)},getTokenTypeAt:function(me){me=Rt(this.doc,me);var Ke=An(this,Pe(this.doc,me.line)),It=0,nr=(Ke.length-1)/2,wr=me.ch,_r;if(wr==0)_r=Ke[2];else for(;;){var Hn=It+nr>>1;if((Hn?Ke[Hn*2-1]:0)>=wr)nr=Hn;else if(Ke[Hn*2+1]<wr)It=Hn+1;else{_r=Ke[Hn*2+2];break}}var ni=_r?_r.indexOf("overlay "):-1;return ni<0?_r:ni==0?null:_r.slice(0,ni-1)},getModeAt:function(me){var Ke=this.doc.mode;return Ke.innerMode?N.innerMode(Ke,this.getTokenAt(me).state).mode:Ke},getHelper:function(me,Ke){return this.getHelpers(me,Ke)[0]},getHelpers:function(me,Ke){var It=[];if(!ie.hasOwnProperty(Ke))return It;var nr=ie[Ke],wr=this.getModeAt(me);if(typeof wr[Ke]=="string")nr[wr[Ke]]&&It.push(nr[wr[Ke]]);else if(wr[Ke])for(var _r=0;_r<wr[Ke].length;_r++){var Hn=nr[wr[Ke][_r]];Hn&&It.push(Hn)}else wr.helperType&&nr[wr.helperType]?It.push(nr[wr.helperType]):nr[wr.name]&&It.push(nr[wr.name]);for(var ni=0;ni<nr._global.length;ni++){var Ei=nr._global[ni];Ei.pred(wr,this)&&G(It,Ei.val)==-1&&It.push(Ei.val)}return It},getStateAfter:function(me,Ke){var It=this.doc;return me=tr(It,me==null?It.first+It.size-1:me),ri(this,me+1,Ke).state},cursorCoords:function(me,Ke){var It,nr=this.doc.sel.primary();return me==null?It=nr.head:typeof me=="object"?It=Rt(this.doc,me):It=me?nr.from():nr.to(),mo(this,It,Ke||"page")},charCoords:function(me,Ke){return Qo(this,Rt(this.doc,me),Ke||"page")},coordsChar:function(me,Ke){return me=oo(this,me,Ke||"page"),So(this,me.left,me.top)},lineAtHeight:function(me,Ke){return me=oo(this,{top:me,left:0},Ke||"page").top,Rr(this.doc,me+this.display.viewOffset)},heightAtLine:function(me,Ke,It){var nr=!1,wr;if(typeof me=="number"){var _r=this.doc.first+this.doc.size-1;me<this.doc.first?me=this.doc.first:me>_r&&(me=_r,nr=!0),wr=Pe(this.doc,me)}else wr=me;return io(this,wr,{top:0,left:0},Ke||"page",It||nr).top+(nr?this.doc.height-Mr(wr):0)},defaultTextHeight:function(){return Oo(this.display)},defaultCharWidth:function(){return Io(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(me,Ke,It,nr,wr){var _r=this.display;me=mo(this,Rt(this.doc,me));var Hn=me.bottom,ni=me.left;if(Ke.style.position="absolute",Ke.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Ke),_r.sizer.appendChild(Ke),nr=="over")Hn=me.top;else if(nr=="above"||nr=="near"){var Ei=Math.max(_r.wrapper.clientHeight,this.doc.height),Oi=Math.max(_r.sizer.clientWidth,_r.lineSpace.clientWidth);(nr=="above"||me.bottom+Ke.offsetHeight>Ei)&&me.top>Ke.offsetHeight?Hn=me.top-Ke.offsetHeight:me.bottom+Ke.offsetHeight<=Ei&&(Hn=me.bottom),ni+Ke.offsetWidth>Oi&&(ni=Oi-Ke.offsetWidth)}Ke.style.top=Hn+"px",Ke.style.left=Ke.style.right="",wr=="right"?(ni=_r.sizer.clientWidth-Ke.offsetWidth,Ke.style.right="0px"):(wr=="left"?ni=0:wr=="middle"&&(ni=(_r.sizer.clientWidth-Ke.offsetWidth)/2),Ke.style.left=ni+"px"),It&&Ya(this,{left:ni,top:Hn,right:ni+Ke.offsetWidth,bottom:Hn+Ke.offsetHeight})},triggerOnKeyDown:Fs(ht),triggerOnKeyPress:Fs(Sr),triggerOnKeyUp:Cr,triggerOnMouseDown:Fs(wi),execCommand:function(me){if(iu.hasOwnProperty(me))return iu[me].call(null,this)},triggerElectric:Fs(function(le){rr(this,le)}),findPosH:function(me,Ke,It,nr){var wr=1;Ke<0&&(wr=-1,Ke=-Ke);for(var _r=Rt(this.doc,me),Hn=0;Hn<Ke&&!(_r=jr(this.doc,_r,wr,It,nr),_r.hitSide);++Hn);return _r},moveH:Fs(function(le,me){var Ke=this;this.extendSelectionsBy(function(It){return Ke.display.shift||Ke.doc.extend||It.empty()?jr(Ke.doc,It.head,le,me,Ke.options.rtlMoveVisually):le<0?It.from():It.to()},xe)}),deleteH:Fs(function(le,me){var Ke=this.doc.sel,It=this.doc;Ke.somethingSelected()?It.replaceSelection("",null,"+delete"):Dl(this,function(nr){var wr=jr(It,nr.head,le,me,!1);return le<0?{from:wr,to:nr.head}:{from:nr.head,to:wr}})}),findPosV:function(me,Ke,It,nr){var wr=1,_r=nr;Ke<0&&(wr=-1,Ke=-Ke);for(var Hn=Rt(this.doc,me),ni=0;ni<Ke;++ni){var Ei=mo(this,Hn,"div");if(_r==null?_r=Ei.left:Ei.left=_r,Hn=sn(this,Ei,wr,It),Hn.hitSide)break}return Hn},moveV:Fs(function(le,me){var Ke=this,It=this.doc,nr=[],wr=!this.display.shift&&!It.extend&&It.sel.somethingSelected();if(It.extendSelectionsBy(function(Hn){if(wr)return le<0?Hn.from():Hn.to();var ni=mo(Ke,Hn.head,"div");Hn.goalColumn!=null&&(ni.left=Hn.goalColumn),nr.push(ni.left);var Ei=sn(Ke,ni,le,me);return me=="page"&&Hn==It.sel.primary()&&wa(Ke,Qo(Ke,Ei,"div").top-ni.top),Ei},xe),nr.length)for(var _r=0;_r<It.sel.ranges.length;_r++)It.sel.ranges[_r].goalColumn=nr[_r]}),findWordAt:function(me){var Ke=this.doc,It=Pe(Ke,me.line).text,nr=me.ch,wr=me.ch;if(It){var _r=this.getHelper(me,"wordChars");(me.sticky=="before"||wr==It.length)&&nr?--nr:++wr;for(var Hn=It.charAt(nr),ni=Y(Hn,_r)?function(Ei){return Y(Ei,_r)}:/\s/.test(Hn)?function(Ei){return/\s/.test(Ei)}:function(Ei){return!/\s/.test(Ei)&&!Y(Ei)};nr>0&&ni(It.charAt(nr-1));)--nr;for(;wr<It.length&&ni(It.charAt(wr));)++wr}return new ce(jt(me.line,nr),jt(me.line,wr))},toggleOverwrite:function(me){if(me!=null&&me==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?X(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),Kt(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==P()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Fs(function(le,me){ja(this,le,me)}),getScrollInfo:function(){var me=this.display.scroller;return{left:me.scrollLeft,top:me.scrollTop,height:me.scrollHeight-bi(this)-this.display.barHeight,width:me.scrollWidth-bi(this)-this.display.barWidth,clientHeight:Vi(this),clientWidth:Ii(this)}},scrollIntoView:Fs(function(le,me){le==null?(le={from:this.doc.sel.primary().head,to:null},me==null&&(me=this.options.cursorScrollMargin)):typeof le=="number"?le={from:jt(le,0),to:null}:le.from==null&&(le={from:le,to:null}),le.to||(le.to=le.from),le.margin=me||0,le.from.line!=null?ko(this,le):pa(this,le.from,le.to,le.margin)}),setSize:Fs(function(le,me){var Ke=this,It=function(_r){return typeof _r=="number"||/^\d+$/.test(String(_r))?_r+"px":_r};le!=null&&(this.display.wrapper.style.width=It(le)),me!=null&&(this.display.wrapper.style.height=It(me)),this.options.lineWrapping&&Aa(this);var nr=this.display.viewFrom;this.doc.iter(nr,this.display.viewTo,function(wr){if(wr.widgets){for(var _r=0;_r<wr.widgets.length;_r++)if(wr.widgets[_r].noHScroll){mt(Ke,nr,"widget");break}}++nr}),this.curOp.forceUpdate=!0,Kt(this,"refresh",this)}),operation:function(me){return Eo(this,me)},startOperation:function(){return as(this)},endOperation:function(){return co(this)},refresh:Fs(function(){var le=this.display.cachedTextHeight;Ha(this),this.curOp.forceUpdate=!0,Xa(this),ja(this,this.doc.scrollLeft,this.doc.scrollTop),xs(this.display),(le==null||Math.abs(le-Oo(this.display))>.5||this.options.lineWrapping)&&Ho(this),Kt(this,"refresh",this)}),swapDoc:Fs(function(le){var me=this.doc;return me.cm=null,this.state.selectingText&&this.state.selectingText(),sa(this,le),Xa(this),this.display.input.reset(),ja(this,le.scrollLeft,le.scrollTop),this.curOp.forceScroll=!0,Ir(this,"swapDoc",this,me),me}),phrase:function(me){var Ke=this.options.phrases;return Ke&&Object.prototype.hasOwnProperty.call(Ke,me)?Ke[me]:me},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Xt(N),N.registerHelper=function(le,me,Ke){ie.hasOwnProperty(le)||(ie[le]=N[le]={_global:[]}),ie[le][me]=Ke},N.registerGlobalHelper=function(le,me,Ke,It){N.registerHelper(le,me,It),ie[le]._global.push({pred:Ke,val:It})}}function jr(N,B,ie,le,me){var Ke=B,It=ie,nr=Pe(N,B.line),wr=me&&N.direction=="rtl"?-ie:ie;function _r(){var Na=B.line+wr;return Na<N.first||Na>=N.first+N.size?!1:(B=new jt(Na,B.ch,B.sticky),nr=Pe(N,Na))}function Hn(Na){var qa;if(le=="codepoint"){var ho=nr.text.charCodeAt(B.ch+(le>0?0:-1));isNaN(ho)?qa=null:qa=new jt(B.line,Math.max(0,Math.min(nr.text.length,B.ch+ie*(ho>=55296&&ho<56320?2:1))),-ie)}else me?qa=fu(N.cm,nr,B,ie):qa=Nu(nr,B,ie);if(qa==null)if(!Na&&_r())B=hu(me,N.cm,nr,B.line,wr);else return!1;else B=qa;return!0}if(le=="char"||le=="codepoint")Hn();else if(le=="column")Hn(!0);else if(le=="word"||le=="group")for(var ni=null,Ei=le=="group",Oi=N.cm&&N.cm.getHelper(B,"wordChars"),la=!0;!(ie<0&&!Hn(!la));la=!1){var Ta=nr.text.charAt(B.ch)||`
|
|
|
`,Wa=Y(Ta,Oi)?"w":Ei&&Ta==`
|
|
|
`?"n":!Ei||/\s/.test(Ta)?null:"p";if(Ei&&!la&&!Wa&&(Wa="s"),ni&&ni!=Wa){ie<0&&(ie=1,Hn(),B.sticky="after");break}if(Wa&&(ni=Wa),ie>0&&!Hn(!la))break}var Ma=qo(N,B,Ke,It,!0);return bt(Ke,Ma)&&(Ma.hitSide=!0),Ma}function sn(N,B,ie,le){var me=N.doc,Ke=B.left,It;if(le=="page"){var nr=Math.min(N.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),wr=Math.max(nr-.5*Oo(N.display),3);It=(ie>0?B.bottom:B.top)+ie*wr}else le=="line"&&(It=ie>0?B.bottom+3:B.top-3);for(var _r;!(_r=So(N,Ke,It),!_r.outside);){if(ie<0?It<=0:It>=me.height){_r.hitSide=!0;break}It+=ie*5}return _r}var yn=function(B){this.cm=B,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yn.prototype.init=function(N){var B=this,ie=this,le=ie.cm,me=ie.div=N.lineDiv;Vr(me,le.options.spellcheck,le.options.autocorrect,le.options.autocapitalize);function Ke(nr){for(var wr=nr.target;wr;wr=wr.parentNode){if(wr==me)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(wr.className))break}return!1}He(me,"paste",function(nr){if(!Ke(nr)||fr(le,nr)||Vt(nr,le))return;u<=11&&setTimeout(zo(le,function(){return B.updateFromDOM()}),20)}),He(me,"compositionstart",function(nr){B.composing={data:nr.data,done:!1}}),He(me,"compositionupdate",function(nr){B.composing||(B.composing={data:nr.data,done:!1})}),He(me,"compositionend",function(nr){B.composing&&(nr.data!=B.composing.data&&B.readFromDOMSoon(),B.composing.done=!0)}),He(me,"touchstart",function(){return ie.forceCompositionEnd()}),He(me,"input",function(){B.composing||B.readFromDOMSoon()});function It(nr){if(!Ke(nr)||fr(le,nr))return;if(le.somethingSelected())$e({lineWise:!1,text:le.getSelections()}),nr.type=="cut"&&le.replaceSelection("",null,"cut");else if(le.options.lineWiseCopyCut){var wr=ar(le);$e({lineWise:!0,text:wr.text}),nr.type=="cut"&&le.operation(function(){le.setSelections(wr.ranges,0,se),le.replaceSelection("",null,"cut")})}else return;if(nr.clipboardData){nr.clipboardData.clearData();var _r=_e.text.join(`
|
|
|
`);if(nr.clipboardData.setData("Text",_r),nr.clipboardData.getData("Text")==_r){nr.preventDefault();return}}var Hn=pn(),ni=Hn.firstChild;le.display.lineSpace.insertBefore(Hn,le.display.lineSpace.firstChild),ni.value=_e.text.join(`
|
|
|
`);var Ei=document.activeElement;U(ni),setTimeout(function(){le.display.lineSpace.removeChild(Hn),Ei.focus(),Ei==me&&ie.showPrimarySelection()},50)}He(me,"copy",It),He(me,"cut",It)},yn.prototype.screenReaderLabelChanged=function(N){N?this.div.setAttribute("aria-label",N):this.div.removeAttribute("aria-label")},yn.prototype.prepareSelection=function(){var N=Xr(this.cm,!1);return N.focus=document.activeElement==this.div,N},yn.prototype.showSelection=function(N,B){if(!N||!this.cm.display.view.length)return;(N.focus||B)&&this.showPrimarySelection(),this.showMultipleSelections(N)},yn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yn.prototype.showPrimarySelection=function(){var N=this.getSelection(),B=this.cm,ie=B.doc.sel.primary(),le=ie.from(),me=ie.to();if(B.display.viewTo==B.display.viewFrom||le.line>=B.display.viewTo||me.line<B.display.viewFrom){N.removeAllRanges();return}var Ke=$i(B,N.anchorNode,N.anchorOffset),It=$i(B,N.focusNode,N.focusOffset);if(Ke&&!Ke.bad&&It&&!It.bad&&vt(Mt(Ke,It),le)==0&&vt(Qt(Ke,It),me)==0)return;var nr=B.display.view,wr=le.line>=B.display.viewFrom&&Vn(B,le)||{node:nr[0].measure.map[2],offset:0},_r=me.line<B.display.viewTo&&Vn(B,me);if(!_r){var Hn=nr[nr.length-1].measure,ni=Hn.maps?Hn.maps[Hn.maps.length-1]:Hn.map;_r={node:ni[ni.length-1],offset:ni[ni.length-2]-ni[ni.length-3]}}if(!wr||!_r){N.removeAllRanges();return}var Ei=N.rangeCount&&N.getRangeAt(0),Oi;try{Oi=M(wr.node,wr.offset,_r.offset,_r.node)}catch(la){}Oi&&(!x&&B.state.focused?(N.collapse(wr.node,wr.offset),Oi.collapsed||(N.removeAllRanges(),N.addRange(Oi))):(N.removeAllRanges(),N.addRange(Oi)),Ei&&N.anchorNode==null?N.addRange(Ei):x&&this.startGracePeriod()),this.rememberSelection()},yn.prototype.startGracePeriod=function(){var N=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){N.gracePeriod=!1,N.selectionChanged()&&N.cm.operation(function(){return N.cm.curOp.selectionChanged=!0})},20)},yn.prototype.showMultipleSelections=function(N){O(this.cm.display.cursorDiv,N.cursors),O(this.cm.display.selectionDiv,N.selection)},yn.prototype.rememberSelection=function(){var N=this.getSelection();this.lastAnchorNode=N.anchorNode,this.lastAnchorOffset=N.anchorOffset,this.lastFocusNode=N.focusNode,this.lastFocusOffset=N.focusOffset},yn.prototype.selectionInEditor=function(){var N=this.getSelection();if(!N.rangeCount)return!1;var B=N.getRangeAt(0).commonAncestorContainer;return j(this.div,B)},yn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yn.prototype.blur=function(){this.div.blur()},yn.prototype.getField=function(){return this.div},yn.prototype.supportsTouch=function(){return!0},yn.prototype.receivedFocus=function(){var N=this;this.selectionInEditor()?this.pollSelection():Eo(this.cm,function(){return N.cm.curOp.selectionChanged=!0});function B(){N.cm.state.focused&&(N.pollSelection(),N.polling.set(N.cm.options.pollInterval,B))}this.polling.set(this.cm.options.pollInterval,B)},yn.prototype.selectionChanged=function(){var N=this.getSelection();return N.anchorNode!=this.lastAnchorNode||N.anchorOffset!=this.lastAnchorOffset||N.focusNode!=this.lastFocusNode||N.focusOffset!=this.lastFocusOffset},yn.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var N=this.getSelection(),B=this.cm;if(c&&t&&this.cm.display.gutterSpecs.length&&Li(N.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var ie=$i(B,N.anchorNode,N.anchorOffset),le=$i(B,N.focusNode,N.focusOffset);ie&&le&&Eo(B,function(){Ts(B.doc,Ie(ie,le),se),(ie.bad||le.bad)&&(B.curOp.selectionChanged=!0)})},yn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var N=this.cm,B=N.display,ie=N.doc.sel.primary(),le=ie.from(),me=ie.to();if(le.ch==0&&le.line>N.firstLine()&&(le=jt(le.line-1,Pe(N.doc,le.line-1).length)),me.ch==Pe(N.doc,me.line).text.length&&me.line<N.lastLine()&&(me=jt(me.line+1,0)),le.line<B.viewFrom||me.line>B.viewTo-1)return!1;var Ke,It,nr;le.line==B.viewFrom||(Ke=uo(N,le.line))==0?(It=Yt(B.view[0].line),nr=B.view[0].node):(It=Yt(B.view[Ke].line),nr=B.view[Ke-1].node.nextSibling);var wr=uo(N,me.line),_r,Hn;if(wr==B.view.length-1?(_r=B.viewTo-1,Hn=B.lineDiv.lastChild):(_r=Yt(B.view[wr+1].line)-1,Hn=B.view[wr+1].node.previousSibling),!nr)return!1;for(var ni=N.doc.splitLines(da(N,nr,Hn,It,_r)),Ei=tt(N.doc,jt(It,0),jt(_r,Pe(N.doc,_r).text.length));ni.length>1&&Ei.length>1;)if(Ve(ni)==Ve(Ei))ni.pop(),Ei.pop(),_r--;else if(ni[0]==Ei[0])ni.shift(),Ei.shift(),It++;else break;for(var Oi=0,la=0,Ta=ni[0],Wa=Ei[0],Ma=Math.min(Ta.length,Wa.length);Oi<Ma&&Ta.charCodeAt(Oi)==Wa.charCodeAt(Oi);)++Oi;for(var Na=Ve(ni),qa=Ve(Ei),ho=Math.min(Na.length-(ni.length==1?Oi:0),qa.length-(Ei.length==1?Oi:0));la<ho&&Na.charCodeAt(Na.length-la-1)==qa.charCodeAt(qa.length-la-1);)++la;if(ni.length==1&&Ei.length==1&&It==le.line)for(;Oi&&Oi>le.ch&&Na.charCodeAt(Na.length-la-1)==qa.charCodeAt(qa.length-la-1);)Oi--,la++;ni[ni.length-1]=Na.slice(0,Na.length-la).replace(/^\u200b+/,""),ni[0]=ni[0].slice(Oi).replace(/\u200b+$/,"");var ns=jt(It,Oi),Mo=jt(_r,Ei.length?Ve(Ei).length-la:0);if(ni.length>1||ni[0]||vt(ns,Mo))return jl(N.doc,ni,ns,Mo,"+input"),!0},yn.prototype.ensurePolled=function(){this.forceCompositionEnd()},yn.prototype.reset=function(){this.forceCompositionEnd()},yn.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},yn.prototype.readFromDOMSoon=function(){var N=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(N.readDOMTimeout=null,N.composing)if(N.composing.done)N.composing=null;else return;N.updateFromDOM()},80)},yn.prototype.updateFromDOM=function(){var N=this;(this.cm.isReadOnly()||!this.pollContent())&&Eo(this.cm,function(){return Ha(N.cm)})},yn.prototype.setUneditable=function(N){N.contentEditable="false"},yn.prototype.onKeyPress=function(N){if(N.charCode==0||this.composing)return;N.preventDefault(),this.cm.isReadOnly()||zo(this.cm,wt)(this.cm,String.fromCharCode(N.charCode==null?N.keyCode:N.charCode),0)},yn.prototype.readOnlyChanged=function(N){this.div.contentEditable=String(N!="nocursor")},yn.prototype.onContextMenu=function(){},yn.prototype.resetPosition=function(){},yn.prototype.needsContentAttribute=!0;function Vn(N,B){var ie=Ji(N,B.line);if(!ie||ie.hidden)return null;var le=Pe(N.doc,B.line),me=Xi(ie,le,B.line),Ke=St(le,N.doc.direction),It="left";if(Ke){var nr=Re(Ke,B.ch);It=nr%2?"right":"left"}var wr=Pa(me.map,B.ch,It);return wr.offset=wr.collapse=="right"?wr.end:wr.start,wr}function Li(N){for(var B=N;B;B=B.parentNode)if(/CodeMirror-gutter-wrapper/.test(B.className))return!0;return!1}function Mi(N,B){return B&&(N.bad=!0),N}function da(N,B,ie,le,me){var Ke="",It=!1,nr=N.doc.lineSeparator(),wr=!1;function _r(Oi){return function(la){return la.id==Oi}}function Hn(){It&&(Ke+=nr,wr&&(Ke+=nr),It=wr=!1)}function ni(Oi){Oi&&(Hn(),Ke+=Oi)}function Ei(Oi){if(Oi.nodeType==1){var la=Oi.getAttribute("cm-text");if(la){ni(la);return}var Ta=Oi.getAttribute("cm-marker"),Wa;if(Ta){var Ma=N.findMarks(jt(le,0),jt(me+1,0),_r(+Ta));Ma.length&&(Wa=Ma[0].find(0))&&ni(tt(N.doc,Wa.from,Wa.to).join(nr));return}if(Oi.getAttribute("contenteditable")=="false")return;var Na=/^(pre|div|p|li|table|br)$/i.test(Oi.nodeName);if(!/^br$/i.test(Oi.nodeName)&&Oi.textContent.length==0)return;Na&&Hn();for(var qa=0;qa<Oi.childNodes.length;qa++)Ei(Oi.childNodes[qa]);/^(pre|p)$/i.test(Oi.nodeName)&&(wr=!0),Na&&(It=!0)}else Oi.nodeType==3&&ni(Oi.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Ei(B),B==ie);)B=B.nextSibling,wr=!1;return Ke}function $i(N,B,ie){var le;if(B==N.display.lineDiv){if(le=N.display.lineDiv.childNodes[ie],!le)return Mi(N.clipPos(jt(N.display.viewTo-1)),!0);B=null,ie=0}else for(le=B;;le=le.parentNode){if(!le||le==N.display.lineDiv)return null;if(le.parentNode&&le.parentNode==N.display.lineDiv)break}for(var me=0;me<N.display.view.length;me++){var Ke=N.display.view[me];if(Ke.node==le)return Qa(Ke,B,ie)}}function Qa(N,B,ie){var le=N.text.firstChild,me=!1;if(!B||!j(le,B))return Mi(jt(Yt(N.line),0),!0);if(B==le&&(me=!0,B=le.childNodes[ie],ie=0,!B)){var Ke=N.rest?Ve(N.rest):N.line;return Mi(jt(Yt(Ke),Ke.text.length),me)}var It=B.nodeType==3?B:null,nr=B;for(!It&&B.childNodes.length==1&&B.firstChild.nodeType==3&&(It=B.firstChild,ie&&(ie=It.nodeValue.length));nr.parentNode!=le;)nr=nr.parentNode;var wr=N.measure,_r=wr.maps;function Hn(Wa,Ma,Na){for(var qa=-1;qa<(_r?_r.length:0);qa++)for(var ho=qa<0?wr.map:_r[qa],ns=0;ns<ho.length;ns+=3){var Mo=ho[ns+2];if(Mo==Wa||Mo==Ma){var Ss=Yt(qa<0?N.line:N.rest[qa]),Zs=ho[ns]+Na;return(Na<0||Mo!=Wa)&&(Zs=ho[ns+(Na?1:0)]),jt(Ss,Zs)}}}var ni=Hn(It,nr,ie);if(ni)return Mi(ni,me);for(var Ei=nr.nextSibling,Oi=It?It.nodeValue.length-ie:0;Ei;Ei=Ei.nextSibling){if(ni=Hn(Ei,Ei.firstChild,0),ni)return Mi(jt(ni.line,ni.ch-Oi),me);Oi+=Ei.textContent.length}for(var la=nr.previousSibling,Ta=ie;la;la=la.previousSibling){if(ni=Hn(la,la.firstChild,-1),ni)return Mi(jt(ni.line,ni.ch+Ta),me);Ta+=la.textContent.length}}var ya=function(B){this.cm=B,this.prevInput="",this.pollingFast=!1,this.polling=new Q,this.hasSelection=!1,this.composing=null};ya.prototype.init=function(N){var B=this,ie=this,le=this.cm;this.createField(N);var me=this.textarea;N.wrapper.insertBefore(this.wrapper,N.wrapper.firstChild),a&&(me.style.width="0px"),He(me,"input",function(){d&&u>=9&&B.hasSelection&&(B.hasSelection=null),ie.poll()}),He(me,"paste",function(It){if(fr(le,It)||Vt(It,le))return;le.state.pasteIncoming=+new Date,ie.fastPoll()});function Ke(It){if(fr(le,It))return;if(le.somethingSelected())$e({lineWise:!1,text:le.getSelections()});else if(le.options.lineWiseCopyCut){var nr=ar(le);$e({lineWise:!0,text:nr.text}),It.type=="cut"?le.setSelections(nr.ranges,null,se):(ie.prevInput="",me.value=nr.text.join(`
|
|
|
`),U(me))}else return;It.type=="cut"&&(le.state.cutIncoming=+new Date)}He(me,"cut",Ke),He(me,"copy",Ke),He(N.scroller,"paste",function(It){if(ei(N,It)||fr(le,It))return;if(!me.dispatchEvent){le.state.pasteIncoming=+new Date,ie.focus();return}var nr=new Event("paste");nr.clipboardData=It.clipboardData,me.dispatchEvent(nr)}),He(N.lineSpace,"selectstart",function(It){ei(N,It)||Ge(It)}),He(me,"compositionstart",function(){var It=le.getCursor("from");ie.composing&&ie.composing.range.clear(),ie.composing={start:It,range:le.markText(It,le.getCursor("to"),{className:"CodeMirror-composing"})}}),He(me,"compositionend",function(){ie.composing&&(ie.poll(),ie.composing.range.clear(),ie.composing=null)})},ya.prototype.createField=function(N){this.wrapper=pn(),this.textarea=this.wrapper.firstChild},ya.prototype.screenReaderLabelChanged=function(N){N?this.textarea.setAttribute("aria-label",N):this.textarea.removeAttribute("aria-label")},ya.prototype.prepareSelection=function(){var N=this.cm,B=N.display,ie=N.doc,le=Xr(N);if(N.options.moveInputWithCursor){var me=mo(N,ie.sel.primary().head,"div"),Ke=B.wrapper.getBoundingClientRect(),It=B.lineDiv.getBoundingClientRect();le.teTop=Math.max(0,Math.min(B.wrapper.clientHeight-10,me.top+It.top-Ke.top)),le.teLeft=Math.max(0,Math.min(B.wrapper.clientWidth-10,me.left+It.left-Ke.left))}return le},ya.prototype.showSelection=function(N){var B=this.cm,ie=B.display;O(ie.cursorDiv,N.cursors),O(ie.selectionDiv,N.selection),N.teTop!=null&&(this.wrapper.style.top=N.teTop+"px",this.wrapper.style.left=N.teLeft+"px")},ya.prototype.reset=function(N){if(this.contextMenuPending||this.composing)return;var B=this.cm;if(B.somethingSelected()){this.prevInput="";var ie=B.getSelection();this.textarea.value=ie,B.state.focused&&U(this.textarea),d&&u>=9&&(this.hasSelection=ie)}else N||(this.prevInput=this.textarea.value="",d&&u>=9&&(this.hasSelection=null))},ya.prototype.getField=function(){return this.textarea},ya.prototype.supportsTouch=function(){return!1},ya.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!h||P()!=this.textarea))try{this.textarea.focus()}catch(N){}},ya.prototype.blur=function(){this.textarea.blur()},ya.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ya.prototype.receivedFocus=function(){this.slowPoll()},ya.prototype.slowPoll=function(){var N=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){N.poll(),N.cm.state.focused&&N.slowPoll()})},ya.prototype.fastPoll=function(){var N=!1,B=this;B.pollingFast=!0;function ie(){var le=B.poll();!le&&!N?(N=!0,B.polling.set(60,ie)):(B.pollingFast=!1,B.slowPoll())}B.polling.set(20,ie)},ya.prototype.poll=function(){var N=this,B=this.cm,ie=this.textarea,le=this.prevInput;if(this.contextMenuPending||!B.state.focused||Ft(ie)&&!le&&!this.composing||B.isReadOnly()||B.options.disableInput||B.state.keySeq)return!1;var me=ie.value;if(me==le&&!B.somethingSelected())return!1;if(d&&u>=9&&this.hasSelection===me||g&&/[\uf700-\uf7ff]/.test(me))return B.display.input.reset(),!1;if(B.doc.sel==B.display.selForContextMenu){var Ke=me.charCodeAt(0);if(Ke==8203&&!le&&(le="\u200B"),Ke==8666)return this.reset(),this.cm.execCommand("undo")}for(var It=0,nr=Math.min(le.length,me.length);It<nr&&le.charCodeAt(It)==me.charCodeAt(It);)++It;return Eo(B,function(){wt(B,me.slice(It),le.length-It,null,N.composing?"*compose":null),me.length>1e3||me.indexOf(`
|
|
|
`)>-1?ie.value=N.prevInput="":N.prevInput=me,N.composing&&(N.composing.range.clear(),N.composing.range=B.markText(N.composing.start,B.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ya.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ya.prototype.onKeyPress=function(){d&&u>=9&&(this.hasSelection=null),this.fastPoll()},ya.prototype.onContextMenu=function(N){var B=this,ie=B.cm,le=ie.display,me=B.textarea;B.contextMenuPending&&B.contextMenuPending();var Ke=_o(ie,N),It=le.scroller.scrollTop;if(!Ke||o)return;var nr=ie.options.resetSelectionOnContextMenu;nr&&ie.doc.sel.contains(Ke)==-1&&zo(ie,Ts)(ie.doc,Ie(Ke),se);var wr=me.style.cssText,_r=B.wrapper.style.cssText,Hn=B.wrapper.offsetParent.getBoundingClientRect();B.wrapper.style.cssText="position: static",me.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(N.clientY-Hn.top-5)+"px; left: "+(N.clientX-Hn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ni;s&&(ni=window.scrollY),le.input.focus(),s&&window.scrollTo(null,ni),le.input.reset(),ie.somethingSelected()||(me.value=B.prevInput=" "),B.contextMenuPending=Oi,le.selForContextMenu=ie.doc.sel,clearTimeout(le.detectingSelectAll);function Ei(){if(me.selectionStart!=null){var Ta=ie.somethingSelected(),Wa="\u200B"+(Ta?me.value:"");me.value="\u21DA",me.value=Wa,B.prevInput=Ta?"":"\u200B",me.selectionStart=1,me.selectionEnd=Wa.length,le.selForContextMenu=ie.doc.sel}}function Oi(){if(B.contextMenuPending!=Oi)return;if(B.contextMenuPending=!1,B.wrapper.style.cssText=_r,me.style.cssText=wr,d&&u<9&&le.scrollbars.setScrollTop(le.scroller.scrollTop=It),me.selectionStart!=null){(!d||d&&u<9)&&Ei();var Ta=0,Wa=function Ma(){le.selForContextMenu==ie.doc.sel&&me.selectionStart==0&&me.selectionEnd>0&&B.prevInput=="\u200B"?zo(ie,Is)(ie):Ta++<10?le.detectingSelectAll=setTimeout(Ma,500):(le.selForContextMenu=null,le.input.reset())};le.detectingSelectAll=setTimeout(Wa,200)}}if(d&&u>=9&&Ei(),C){lt(N);var la=function Ta(){ct(window,"mouseup",Ta),setTimeout(Oi,20)};He(window,"mouseup",la)}else setTimeout(Oi,50)},ya.prototype.readOnlyChanged=function(N){N||this.reset(),this.textarea.disabled=N=="nocursor",this.textarea.readOnly=!!N},ya.prototype.setUneditable=function(){},ya.prototype.needsContentAttribute=!1;function fo(N,B){if(B=B?z(B):{},B.value=N.value,!B.tabindex&&N.tabIndex&&(B.tabindex=N.tabIndex),!B.placeholder&&N.placeholder&&(B.placeholder=N.placeholder),B.autofocus==null){var ie=P();B.autofocus=ie==N||N.getAttribute("autofocus")!=null&&ie==document.body}function le(){N.value=nr.getValue()}var me;if(N.form&&(He(N.form,"submit",le),!B.leaveSubmitMethodAlone)){var Ke=N.form;me=Ke.submit;try{var It=Ke.submit=function(){le(),Ke.submit=me,Ke.submit(),Ke.submit=It}}catch(wr){}}B.finishInit=function(wr){wr.save=le,wr.getTextArea=function(){return N},wr.toTextArea=function(){wr.toTextArea=isNaN,le(),N.parentNode.removeChild(wr.getWrapperElement()),N.style.display="",N.form&&(ct(N.form,"submit",le),!B.leaveSubmitMethodAlone&&typeof N.form.submit=="function"&&(N.form.submit=me))}},N.style.display="none";var nr=Br(function(wr){return N.parentNode.insertBefore(wr,N.nextSibling)},B);return nr}function za(N){N.off=ct,N.on=He,N.wheelEventPixels=Nn,N.Doc=Cl,N.splitLines=dn,N.countColumn=V,N.findColumn=Oe,N.isWordChar=J,N.Pass=q,N.signal=Kt,N.Line=di,N.changeEnd=Je,N.scrollbarModel=cs,N.Pos=jt,N.cmpPos=vt,N.modes=at,N.mimeModes=Pr,N.resolveMode=Xn,N.getMode=xi,N.modeExtensions=Pn,N.extendMode=Un,N.copyState=$t,N.startState=De,N.innerMode=xt,N.commands=iu,N.keyMap=Jl,N.keyName=bu,N.isModifierKey=yu,N.lookupKey=Zl,N.normalizeKeyMap=Ru,N.StringStream=ke,N.SharedTextMarker=tu,N.TextMarker=Nl,N.LineWidget=xl,N.e_preventDefault=Ge,N.e_stopPropagation=pe,N.e_stop=lt,N.addClass=X,N.contains=j,N.rmClass=T,N.keyNames=zl}Ye(Br),Wr(Br);var Xo="iter insert remove copy getEditor constructor".split(" ");for(var ls in Cl.prototype)Cl.prototype.hasOwnProperty(ls)&&G(Xo,ls)<0&&(Br.prototype[ls]=function(N){return function(){return N.apply(this.doc,arguments)}}(Cl.prototype[ls]));return Xt(Cl),Br.inputStyles={textarea:ya,contenteditable:yn},Br.defineMode=function(N){!Br.defaults.mode&&N!="null"&&(Br.defaults.mode=N),un.apply(this,arguments)},Br.defineMIME=_n,Br.defineMode("null",function(){return{token:function(B){return B.skipToEnd()}}}),Br.defineMIME("text/plain","null"),Br.defineExtension=function(N,B){Br.prototype[N]=B},Br.defineDocExtension=function(N,B){Cl.prototype[N]=B},Br.fromTextArea=fo,za(Br),Br.version="5.58.2",Br})},Vy0f:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("iYpf"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},W2nI:function(R,D,n){var y=n("IwbS"),f=n("ProS"),x=n("bYtY"),v=["itemStyle","opacity"],m=["emphasis","itemStyle","opacity"],p=["lineStyle","opacity"],d=["emphasis","lineStyle","opacity"];function u(l,r){return l.getVisual("opacity")||l.getModel().get(r)}function s(l,r,a){var c=l.getGraphicEl(),h=u(l,r);a!=null&&(h==null&&(h=1),h*=a),c.downplay&&c.downplay(),c.traverse(function(g){g.type!=="group"&&g.setStyle("opacity",h)})}function i(l,r){var a=u(l,r),c=l.getGraphicEl();c.traverse(function(h){h.type!=="group"&&h.setStyle("opacity",a)}),c.highlight&&c.highlight()}var t=y.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(l,r){var a=r.extent;l.moveTo(r.x1,r.y1),l.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(l.lineTo(r.x2+a,r.y2),l.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(l.lineTo(r.x2,r.y2+a),l.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),l.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),o=f.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(l,r,a){var c=this,h=l.getGraph(),g=this.group,A=l.layoutInfo,b=A.width,S=A.height,E=l.getData(),C=l.getData("edge"),_=l.get("orient");this._model=l,g.removeAll(),g.attr("position",[A.x,A.y]),h.eachEdge(function(T){var w=new t;w.dataIndex=T.dataIndex,w.seriesIndex=l.seriesIndex,w.dataType="edge";var O=T.getModel("lineStyle"),I=O.get("curveness"),k=T.node1.getLayout(),M=T.node1.getModel(),j=M.get("localX"),P=M.get("localY"),X=T.node2.getLayout(),F=T.node2.getModel(),U=F.get("localX"),K=F.get("localY"),z=T.getLayout(),V,Q,G,te,q,se,re,xe;w.shape.extent=Math.max(1,z.dy),w.shape.orient=_,_==="vertical"?(V=(j!=null?j*b:k.x)+z.sy,Q=(P!=null?P*S:k.y)+k.dy,G=(U!=null?U*b:X.x)+z.ty,te=K!=null?K*S:X.y,q=V,se=Q*(1-I)+te*I,re=G,xe=Q*I+te*(1-I)):(V=(j!=null?j*b:k.x)+k.dx,Q=(P!=null?P*S:k.y)+z.sy,G=U!=null?U*b:X.x,te=(K!=null?K*S:X.y)+z.ty,q=V*(1-I)+G*I,se=Q,re=V*I+G*(1-I),xe=te),w.setShape({x1:V,y1:Q,x2:G,y2:te,cpx1:q,cpy1:se,cpx2:re,cpy2:xe}),w.setStyle(O.getItemStyle());switch(w.style.fill){case"source":w.style.fill=T.node1.getVisual("color");break;case"target":w.style.fill=T.node2.getVisual("color");break}y.setHoverStyle(w,T.getModel("emphasis.lineStyle").getItemStyle()),g.add(w),C.setItemGraphicEl(T.dataIndex,w)}),h.eachNode(function(T){var w=T.getLayout(),O=T.getModel(),I=O.get("localX"),k=O.get("localY"),M=O.getModel("label"),j=O.getModel("emphasis.label"),P=new y.Rect({shape:{x:I!=null?I*b:w.x,y:k!=null?k*S:w.y,width:w.dx,height:w.dy},style:O.getModel("itemStyle").getItemStyle()}),X=T.getModel("emphasis.itemStyle").getItemStyle();y.setLabelStyle(P.style,X,M,j,{labelFetcher:l,labelDataIndex:T.dataIndex,defaultText:T.id,isRectText:!0}),P.setStyle("fill",T.getVisual("color")),y.setHoverStyle(P,X),g.add(P),E.setItemGraphicEl(T.dataIndex,P),P.dataType="node"}),E.eachItemGraphicEl(function(T,w){var O=E.getItemModel(w);O.get("draggable")&&(T.drift=function(I,k){c._focusAdjacencyDisabled=!0,this.shape.x+=I,this.shape.y+=k,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:l.id,dataIndex:E.getRawIndex(w),localX:this.shape.x/b,localY:this.shape.y/S})},T.ondragend=function(){c._focusAdjacencyDisabled=!1},T.draggable=!0,T.cursor="move"),T.highlight=function(){this.trigger("emphasis")},T.downplay=function(){this.trigger("normal")},T.focusNodeAdjHandler&&T.off("mouseover",T.focusNodeAdjHandler),T.unfocusNodeAdjHandler&&T.off("mouseout",T.unfocusNodeAdjHandler),O.get("focusNodeAdjacency")&&(T.on("mouseover",T.focusNodeAdjHandler=function(){c._focusAdjacencyDisabled||(c._clearTimer(),a.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,dataIndex:T.dataIndex}))}),T.on("mouseout",T.unfocusNodeAdjHandler=function(){c._focusAdjacencyDisabled||c._dispatchUnfocus(a)}))}),C.eachItemGraphicEl(function(T,w){var O=C.getItemModel(w);T.focusNodeAdjHandler&&T.off("mouseover",T.focusNodeAdjHandler),T.unfocusNodeAdjHandler&&T.off("mouseout",T.unfocusNodeAdjHandler),O.get("focusNodeAdjacency")&&(T.on("mouseover",T.focusNodeAdjHandler=function(){c._focusAdjacencyDisabled||(c._clearTimer(),a.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,edgeDataIndex:T.dataIndex}))}),T.on("mouseout",T.unfocusNodeAdjHandler=function(){c._focusAdjacencyDisabled||c._dispatchUnfocus(a)}))}),!this._data&&l.get("animation")&&g.setClipPath(e(g.getBoundingRect(),l,function(){g.removeClipPath()})),this._data=l.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(l){var r=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){r._unfocusDelayTimer=null,l.dispatchAction({type:"unfocusNodeAdjacency",seriesId:r._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(l,r,a,c){var h=l.getData(),g=h.graph,A=c.dataIndex,b=h.getItemModel(A),S=c.edgeDataIndex;if(A==null&&S==null)return;var E=g.getNodeByIndex(A),C=g.getEdgeByIndex(S);if(g.eachNode(function(T){s(T,v,.1)}),g.eachEdge(function(T){s(T,p,.1)}),E){i(E,m);var _=b.get("focusNodeAdjacency");_==="outEdges"?x.each(E.outEdges,function(T){if(T.dataIndex<0)return;i(T,d),i(T.node2,m)}):_==="inEdges"?x.each(E.inEdges,function(T){if(T.dataIndex<0)return;i(T,d),i(T.node1,m)}):_==="allEdges"&&x.each(E.edges,function(T){if(T.dataIndex<0)return;i(T,d),T.node1!==E&&i(T.node1,m),T.node2!==E&&i(T.node2,m)})}C&&(i(C,d),i(C.node1,m),i(C.node2,m))},unfocusNodeAdjacency:function(l,r,a,c){var h=l.getGraph();h.eachNode(function(g){s(g,v)}),h.eachEdge(function(g){s(g,p)})}});function e(l,r,a){var c=new y.Rect({shape:{x:l.x-10,y:l.y-10,width:0,height:l.height+20}});return y.initProps(c,{shape:{width:l.width+20}},r,a),c}R.exports=o},W4dC:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("bYtY"),v=x.each,m=x.createHashMap,p=n("7DRL"),d=n("TIY9"),u=n("yS9w"),s=n("mFDi"),i={geoJSON:d,svg:u},t={load:function(r,a,c){var h=[],g=m(),A=m(),b,S=l(r);return v(S,function(E){var C=i[E.type].load(r,E,c);v(C.regions,function(T){var w=T.name;a&&a.hasOwnProperty(w)&&(T=T.cloneShallow(w=a[w])),h.push(T),g.set(w,T),A.set(w,T.center)});var _=C.boundingRect;_&&(b?b.union(_):b=_.clone())}),{regions:h,regionsMap:g,nameCoordMap:A,boundingRect:b||new s(0,0,0,0)}},makeGraphic:o("makeGraphic"),removeGraphic:o("removeGraphic")};function o(r){return function(a,c){var h=l(a),g=[];return v(h,function(A){var b=i[A.type][r];b&&g.push(b(a,A,c))}),g}}function e(r){}function l(r){var a=p.retrieveMap(r)||[];return a}R.exports=t},WGYa:function(R,D,n){var y=n("7yuC"),f=y.forceLayout,x=n("HF/U"),v=x.simpleLayout,m=n("lOQZ"),p=m.circularLayout,d=n("OELB"),u=d.linearMap,s=n("QBsz"),i=n("bYtY");function t(o){o.eachSeriesByType("graph",function(e){var l=e.coordinateSystem;if(l&&l.type!=="view")return;if(e.get("layout")==="force"){var r=e.preservedPoints||{},a=e.getGraph(),c=a.data,h=a.edgeData,g=e.getModel("force"),A=g.get("initLayout");e.preservedPoints?c.each(function(M){var j=c.getId(M);c.setItemLayout(M,r[j]||[NaN,NaN])}):!A||A==="none"?v(e):A==="circular"&&p(e,"value");var b=c.getDataExtent("value"),S=h.getDataExtent("value"),E=g.get("repulsion"),C=g.get("edgeLength");i.isArray(E)||(E=[E,E]),i.isArray(C)||(C=[C,C]),C=[C[1],C[0]];var _=c.mapArray("value",function(M,j){var P=c.getItemLayout(j),X=u(M,b,E);return isNaN(X)&&(X=(E[0]+E[1])/2),{w:X,rep:X,fixed:c.getItemModel(j).get("fixed"),p:!P||isNaN(P[0])||isNaN(P[1])?null:P}}),T=h.mapArray("value",function(M,j){var P=a.getEdgeByIndex(j),X=u(M,S,C);isNaN(X)&&(X=(C[0]+C[1])/2);var F=P.getModel();return{n1:_[P.node1.dataIndex],n2:_[P.node2.dataIndex],d:X,curveness:F.get("lineStyle.curveness")||0,ignoreForceLayout:F.get("ignoreForceLayout")}}),l=e.coordinateSystem,w=l.getBoundingRect(),O=f(_,T,{rect:w,gravity:g.get("gravity"),friction:g.get("friction")}),I=O.step;O.step=function(M){for(var j=0,P=_.length;j<P;j++)_[j].fixed&&s.copy(_[j].p,a.getNodeByIndex(j).getLayout());I(function(X,F,U){for(var K=0,z=X.length;K<z;K++)X[K].fixed||a.getNodeByIndex(K).setLayout(X[K].p),r[c.getId(K)]=X[K].p;for(var K=0,z=F.length;K<z;K++){var V=F[K],Q=a.getEdgeByIndex(K),G=V.n1.p,te=V.n2.p,q=Q.getLayout();q=q?q.slice():[],q[0]=q[0]||[],q[1]=q[1]||[],s.copy(q[0],G),s.copy(q[1],te),+V.curveness&&(q[2]=[(G[0]+te[0])/2-(G[1]-te[1])*V.curveness,(G[1]+te[1])/2-(te[0]-G[0])*V.curveness]),Q.setLayout(q)}M&&M(U)})},e.forceLayout=O,e.preservedPoints=r,O.step()}else e.forceLayout=null})}R.exports=t},"WN+l":function(R,D,n){var y=n("bYtY"),f=n("IwbS");function x(m,p,d,u){var s=d.axis;if(s.scale.isBlank())return;var i=d.getModel("splitArea"),t=i.getModel("areaStyle"),o=t.get("color"),e=u.coordinateSystem.getRect(),l=s.getTicksCoords({tickModel:i,clamp:!0});if(!l.length)return;var r=o.length,a=m.__splitAreaColors,c=y.createHashMap(),h=0;if(a)for(var g=0;g<l.length;g++){var A=a.get(l[g].tickValue);if(A!=null){h=(A+(r-1)*g)%r;break}}var b=s.toGlobalCoord(l[0].coord),S=t.getAreaStyle();o=y.isArray(o)?o:[o];for(var g=1;g<l.length;g++){var E=s.toGlobalCoord(l[g].coord),C,_,T,w;s.isHorizontal()?(C=b,_=e.y,T=E-C,w=e.height,b=C+T):(C=e.x,_=b,T=e.width,w=E-_,b=_+w);var O=l[g-1].tickValue;O!=null&&c.set(O,h),p.add(new f.Rect({anid:O!=null?"area_"+O:null,shape:{x:C,y:_,width:T,height:w},style:y.defaults({fill:o[h]},S),silent:!0})),h=(h+1)%r}m.__splitAreaColors=c}function v(m){m.__splitAreaColors=null}D.rectCoordAxisBuildSplitArea=x,D.rectCoordAxisHandleRemove=v},WXVj:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("Bqw1")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="MinusSquareOutlined";var i=v.forwardRef(s);D.default=i},WYAk:function(R,D,n){(function(y,f){R.exports=D=f(n("Ib8C"))})(this,function(y){(function(){var f=y,x=f.lib,v=x.Base,m=f.enc,p=m.Utf8,d=f.algo,u=d.HMAC=v.extend({init:function(i,t){i=this._hasher=new i.init,typeof t=="string"&&(t=p.parse(t));var o=i.blockSize,e=o*4;t.sigBytes>e&&(t=i.finalize(t)),t.clamp();for(var l=this._oKey=t.clone(),r=this._iKey=t.clone(),a=l.words,c=r.words,h=0;h<o;h++)a[h]^=1549556828,c[h]^=909522486;l.sigBytes=r.sigBytes=e,this.reset()},reset:function(){var i=this._hasher;i.reset(),i.update(this._iKey)},update:function(i){return this._hasher.update(i),this},finalize:function(i){var t=this._hasher,o=t.finalize(i);t.reset();var e=t.finalize(this._oKey.clone().concat(o));return e}})})()})},Wqna:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("bYtY"),v=x.isObject,m=x.each,p=x.map,d=x.indexOf,u=x.retrieve,s=n("+TT/"),i=s.getLayoutRect,t=n("aX7z"),o=t.createScaleByModel,e=t.ifAxisCrossZero,l=t.niceScaleExtent,r=t.estimateLabelUnionRect,a=n("y+lR"),c=n("7AJT"),h=n("IDmD"),g=n("7hqr"),A=g.getStackedDimension;n("jtI2");function b(M,j,P){return M.getCoordSysModel()===j}function S(M,j,P){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(M,j,P),this.model=M}var E=S.prototype;E.type="grid",E.axisPointerEnabled=!0,E.getRect=function(){return this._rect},E.update=function(M,j){var P=this._axesMap;this._updateScale(M,this.model),m(P.x,function(F){l(F.scale,F.model)}),m(P.y,function(F){l(F.scale,F.model)});var X={};m(P.x,function(F){C(P,"y",F,X)}),m(P.y,function(F){C(P,"x",F,X)}),this.resize(this.model,j)};function C(M,j,P,X){P.getAxesOnZeroOf=function(){return U?[U]:[]};var F=M[j],U,K=P.model,z=K.get("axisLine.onZero"),V=K.get("axisLine.onZeroAxisIndex");if(!z)return;if(V!=null)_(F[V])&&(U=F[V]);else for(var Q in F)if(F.hasOwnProperty(Q)&&_(F[Q])&&!X[G(F[Q])]){U=F[Q];break}U&&(X[G(U)]=!0);function G(te){return te.dim+"_"+te.index}}function _(M){return M&&M.type!=="category"&&M.type!=="time"&&e(M)}E.resize=function(M,j,P){var X=i(M.getBoxLayoutParams(),{width:j.getWidth(),height:j.getHeight()});this._rect=X;var F=this._axesList;U(),!P&&M.get("containLabel")&&(m(F,function(K){if(!K.model.get("axisLabel.inside")){var z=r(K);if(z){var V=K.isHorizontal()?"height":"width",Q=K.model.get("axisLabel.margin");X[V]-=z[V]+Q,K.position==="top"?X.y+=z.height+Q:K.position==="left"&&(X.x+=z.width+Q)}}}),U());function U(){m(F,function(K){var z=K.isHorizontal(),V=z?[0,X.width]:[0,X.height],Q=K.inverse?1:0;K.setExtent(V[Q],V[1-Q]),T(K,z?X.x:X.y)})}},E.getAxis=function(M,j){var P=this._axesMap[M];if(P!=null){if(j==null){for(var X in P)if(P.hasOwnProperty(X))return P[X]}return P[j]}},E.getAxes=function(){return this._axesList.slice()},E.getCartesian=function(M,j){if(M!=null&&j!=null){var P="x"+M+"y"+j;return this._coordsMap[P]}v(M)&&(j=M.yAxisIndex,M=M.xAxisIndex);for(var X=0,F=this._coordsList;X<F.length;X++)if(F[X].getAxis("x").index===M||F[X].getAxis("y").index===j)return F[X]},E.getCartesians=function(){return this._coordsList.slice()},E.convertToPixel=function(M,j,P){var X=this._findConvertTarget(M,j);return X.cartesian?X.cartesian.dataToPoint(P):X.axis?X.axis.toGlobalCoord(X.axis.dataToCoord(P)):null},E.convertFromPixel=function(M,j,P){var X=this._findConvertTarget(M,j);return X.cartesian?X.cartesian.pointToData(P):X.axis?X.axis.coordToData(X.axis.toLocalCoord(P)):null},E._findConvertTarget=function(M,j){var P=j.seriesModel,X=j.xAxisModel||P&&P.getReferringComponents("xAxis")[0],F=j.yAxisModel||P&&P.getReferringComponents("yAxis")[0],U=j.gridModel,K=this._coordsList,z,V;if(P)z=P.coordinateSystem,d(K,z)<0&&(z=null);else if(X&&F)z=this.getCartesian(X.componentIndex,F.componentIndex);else if(X)V=this.getAxis("x",X.componentIndex);else if(F)V=this.getAxis("y",F.componentIndex);else if(U){var Q=U.coordinateSystem;Q===this&&(z=this._coordsList[0])}return{cartesian:z,axis:V}},E.containPoint=function(M){var j=this._coordsList[0];if(j)return j.containPoint(M)},E._initCartesian=function(M,j,P){var X={left:!1,right:!1,top:!1,bottom:!1},F={x:{},y:{}},U={x:0,y:0};if(j.eachComponent("xAxis",K("x"),this),j.eachComponent("yAxis",K("y"),this),!U.x||!U.y){this._axesMap={},this._axesList=[];return}this._axesMap=F,m(F.x,function(z,V){m(F.y,function(Q,G){var te="x"+V+"y"+G,q=new a(te);q.grid=this,q.model=M,this._coordsMap[te]=q,this._coordsList.push(q),q.addAxis(z),q.addAxis(Q)},this)},this);function K(z){return function(V,Q){if(!b(V,M,j))return;var G=V.get("position");z==="x"?G!=="top"&&G!=="bottom"&&(G=X.bottom?"top":"bottom"):G!=="left"&&G!=="right"&&(G=X.left?"right":"left"),X[G]=!0;var te=new c(z,o(V),[0,0],V.get("type"),G),q=te.type==="category";te.onBand=q&&V.get("boundaryGap"),te.inverse=V.get("inverse"),V.axis=te,te.model=V,te.grid=this,te.index=Q,this._axesList.push(te),F[z][Q]=te,U[z]++}}},E._updateScale=function(M,j){m(this._axesList,function(X){X.scale.setExtent(Infinity,-Infinity)}),M.eachSeries(function(X){if(I(X)){var F=O(X,M),U=F[0],K=F[1];if(!b(U,j,M)||!b(K,j,M))return;var z=this.getCartesian(U.componentIndex,K.componentIndex),V=X.getData(),Q=z.getAxis("x"),G=z.getAxis("y");V.type==="list"&&(P(V,Q,X),P(V,G,X))}},this);function P(X,F,U){m(X.mapDimension(F.dim,!0),function(K){F.scale.unionExtentFromData(X,A(X,K))})}},E.getTooltipAxes=function(M){var j=[],P=[];return m(this.getCartesians(),function(X){var F=M!=null&&M!=="auto"?X.getAxis(M):X.getBaseAxis(),U=X.getOtherAxis(F);d(j,F)<0&&j.push(F),d(P,U)<0&&P.push(U)}),{baseAxes:j,otherAxes:P}};function T(M,j){var P=M.getExtent(),X=P[0]+P[1];M.toGlobalCoord=M.dim==="x"?function(F){return F+j}:function(F){return X-F+j},M.toLocalCoord=M.dim==="x"?function(F){return F-j}:function(F){return X-F+j}}var w=["xAxis","yAxis"];function O(M,j){return p(w,function(P){var X=M.getReferringComponents(P)[0];return X})}function I(M){return M.get("coordinateSystem")==="cartesian2d"}S.create=function(M,j){var P=[];return M.eachComponent("grid",function(X,F){var U=new S(X,M,j);U.name="grid_"+F,U.resize(X,j,!0),X.coordinateSystem=U,P.push(U)}),M.eachSeries(function(X){if(!I(X))return;var F=O(X,M),U=F[0],K=F[1],z=U.getCoordSysModel(),V=z.coordinateSystem;X.coordinateSystem=V.getCartesian(U.componentIndex,K.componentIndex)}),P},S.dimensions=S.prototype.dimensions=a.prototype.dimensions,h.register("cartesian2d",S);var k=S;R.exports=k},"X+im":function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("KQeH")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="DownloadOutlined";var i=v.forwardRef(s);D.default=i},"X2/X":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};D.default=y},XAae:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("hwYd"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},XOKv:function(R,D,n){n("OXB0"),n("SA4+")},Xi7e:function(R,D,n){var y=n("KMkd"),f=n("adU4"),x=n("tMB7"),v=n("+6XX"),m=n("Z8oC");function p(d){var u=-1,s=d==null?0:d.length;for(this.clear();++u<s;){var i=d[u];this.set(i[0],i[1])}}p.prototype.clear=y,p.prototype.delete=f,p.prototype.get=x,p.prototype.has=v,p.prototype.set=m,R.exports=p},Xmg4:function(R,D,n){var y=n("bYtY"),f=n("LPTA"),x=f.devicePixelRatio,v=n("K2GJ"),m=n("3C/r");function p(){return!1}function d(i,t,o){var e=y.createCanvas(),l=t.getWidth(),r=t.getHeight(),a=e.style;return a&&(a.position="absolute",a.left=0,a.top=0,a.width=l+"px",a.height=r+"px",e.setAttribute("data-zr-dom-id",i)),e.width=l*o,e.height=r*o,e}var u=function(t,o,e){var l;e=e||x,typeof t=="string"?l=d(t,o,e):y.isObject(t)&&(l=t,t=l.id),this.id=t,this.dom=l;var r=l.style;r&&(l.onselectstart=p,r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",r["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",r.padding=0,r.margin=0,r["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=o,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=e};u.prototype={constructor:u,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=d("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},resize:function(t,o){var e=this.dpr,l=this.dom,r=l.style,a=this.domBack;r&&(r.width=t+"px",r.height=o+"px"),l.width=t*e,l.height=o*e,a&&(a.width=t*e,a.height=o*e,e!==1&&this.ctxBack.scale(e,e))},clear:function(t,o){var e=this.dom,l=this.ctx,r=e.width,a=e.height,o=o||this.clearColor,c=this.motionBlur&&!t,h=this.lastFrameAlpha,g=this.dpr;if(c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,r/g,a/g)),l.clearRect(0,0,r,a),o&&o!=="transparent"){var A;o.colorStops?(A=o.__canvasGradient||v.getGradient(l,o,{x:0,y:0,width:r,height:a}),o.__canvasGradient=A):o.image&&(A=m.prototype.getCanvasPattern.call(o,l)),l.save(),l.fillStyle=A||o,l.fillRect(0,0,r,a),l.restore()}if(c){var b=this.domBack;l.save(),l.globalAlpha=h,l.drawImage(b,0,0,r,a),l.restore()}}};var s=u;R.exports=s},Xnb7:function(R,D,n){var y=n("1RvN"),f=new y(50);function x(d){if(typeof d=="string"){var u=f.get(d);return u&&u.image}else return d}function v(d,u,s,i,t){if(d)if(typeof d=="string"){if(u&&u.__zrImageSrc===d||!s)return u;var o=f.get(d),e={hostEl:s,cb:i,cbPayload:t};return o?(u=o.image,!p(u)&&o.pending.push(e)):(u=new Image,u.onload=u.onerror=m,f.put(d,u.__cachedImgObj={image:u,pending:[e]}),u.src=u.__zrImageSrc=d),u}else return d;else return u}function m(){var d=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var u=0;u<d.pending.length;u++){var s=d.pending[u],i=s.cb;i&&i(this,s.cbPayload),s.hostEl.dirty()}d.pending.length=0}function p(d){return d&&d.width&&d.height}D.findExistImage=x,D.createOrUpdateImage=v,D.isImageReady=p},XpcN:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("ProS"),v=n("bYtY"),m=n("oVpE"),p=m.createSymbol,d=n("IwbS"),u=n("eRkO"),s=u.makeBackground,i=n("+TT/"),t=v.curry,o=v.each,e=d.Group,l=x.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new e),this._backgroundEl,this.group.add(this._selectorGroup=new e),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(g,A,b){var S=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!g.get("show",!0))return;var E=g.get("align"),C=g.get("orient");(!E||E==="auto")&&(E=g.get("left")==="right"&&C==="vertical"?"right":"left");var _=g.get("selector",!0),T=g.get("selectorPosition",!0);_&&(!T||T==="auto")&&(T=C==="horizontal"?"end":"start"),this.renderInner(E,g,A,b,_,C,T);var w=g.getBoxLayoutParams(),O={width:b.getWidth(),height:b.getHeight()},I=g.get("padding"),k=i.getLayoutRect(w,O,I),M=this.layoutInner(g,E,k,S,_,T),j=i.getLayoutRect(v.defaults({width:M.width,height:M.height},w),O,I);this.group.attr("position",[j.x-M.x,j.y-M.y]),this.group.add(this._backgroundEl=s(M,g))},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(g,A,b,S,E,C,_){var T=this.getContentGroup(),w=v.createHashMap(),O=A.get("selectedMode"),I=[];b.eachRawSeries(function(k){!k.get("legendHoverLink")&&I.push(k.id)}),o(A.getData(),function(k,M){var j=k.get("name");if(!this.newlineDisabled&&(j===""||j===`
|
|
|
`)){T.add(new e({newline:!0}));return}var P=b.getSeriesByName(j)[0];if(w.get(j))return;if(P){var X=P.getData(),F=X.getVisual("color"),U=X.getVisual("borderColor");typeof F=="function"&&(F=F(P.getDataParams(0))),typeof U=="function"&&(U=U(P.getDataParams(0)));var K=X.getVisual("legendSymbol")||"roundRect",z=X.getVisual("symbol"),V=this._createItem(j,M,k,A,K,z,g,F,U,O);V.on("click",t(a,j,null,S,I)).on("mouseover",t(c,P.name,null,S,I)).on("mouseout",t(h,P.name,null,S,I)),w.set(j,!0)}else b.eachRawSeries(function(Q){if(w.get(j))return;if(Q.legendVisualProvider){var G=Q.legendVisualProvider;if(!G.containName(j))return;var te=G.indexOfName(j),q=G.getItemVisual(te,"color"),se=G.getItemVisual(te,"borderColor"),re="roundRect",xe=this._createItem(j,M,k,A,re,null,g,q,se,O);xe.on("click",t(a,null,j,S,I)).on("mouseover",t(c,null,j,S,I)).on("mouseout",t(h,null,j,S,I)),w.set(j,!0)}},this)},this),E&&this._createSelector(E,A,S,C,_)},_createSelector:function(g,A,b,S,E){var C=this.getSelectorGroup();o(g,function(T){_(T)});function _(T){var w=T.type,O=new d.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){b.dispatchAction({type:w==="all"?"legendAllSelect":"legendInverseSelect"})}});C.add(O);var I=A.getModel("selectorLabel"),k=A.getModel("emphasis.selectorLabel");d.setLabelStyle(O.style,O.hoverStyle={},I,k,{defaultText:T.title,isRectText:!1}),d.setHoverStyle(O)}},_createItem:function(g,A,b,S,E,C,_,T,w,O){var I=S.get("itemWidth"),k=S.get("itemHeight"),M=S.get("inactiveColor"),j=S.get("inactiveBorderColor"),P=S.get("symbolKeepAspect"),X=S.getModel("itemStyle"),F=S.isSelected(g),U=new e,K=b.getModel("textStyle"),z=b.get("icon"),V=b.getModel("tooltip"),Q=V.parentModel;E=z||E;var G=p(E,0,0,I,k,F?T:M,P==null?!0:P);if(U.add(r(G,E,X,w,j,F)),!z&&C&&(C!==E||C==="none")){var te=k*.8;C==="none"&&(C="circle");var q=p(C,(I-te)/2,(k-te)/2,te,te,F?T:M,P==null?!0:P);U.add(r(q,C,X,w,j,F))}var se=_==="left"?I+5:-5,re=_,xe=S.get("formatter"),Oe=g;typeof xe=="string"&&xe?Oe=xe.replace("{name}",g!=null?g:""):typeof xe=="function"&&(Oe=xe(g)),U.add(new d.Text({style:d.setTextStyle({},K,{text:Oe,x:se,y:k/2,textFill:F?K.getTextColor():M,textAlign:re,textVerticalAlign:"middle"})}));var Me=new d.Rect({shape:U.getBoundingRect(),invisible:!0,tooltip:V.get("show")?v.extend({content:g,formatter:Q.get("formatter",!0)||function(){return g},formatterParams:{componentType:"legend",legendIndex:S.componentIndex,name:g,$vars:["name"]}},V.option):null});return U.add(Me),U.eachChild(function(Qe){Qe.silent=!0}),Me.silent=!O,this.getContentGroup().add(U),d.setHoverStyle(U),U.__legendDataIndex=A,U},layoutInner:function(g,A,b,S,E,C){var _=this.getContentGroup(),T=this.getSelectorGroup();i.box(g.get("orient"),_,g.get("itemGap"),b.width,b.height);var w=_.getBoundingRect(),O=[-w.x,-w.y];if(E){i.box("horizontal",T,g.get("selectorItemGap",!0));var I=T.getBoundingRect(),k=[-I.x,-I.y],M=g.get("selectorButtonGap",!0),j=g.getOrient().index,P=j===0?"width":"height",X=j===0?"height":"width",F=j===0?"y":"x";C==="end"?k[j]+=w[P]+M:O[j]+=I[P]+M,k[1-j]+=w[X]/2-I[X]/2,T.attr("position",k),_.attr("position",O);var U={x:0,y:0};return U[P]=w[P]+M+I[P],U[X]=Math.max(w[X],I[X]),U[F]=Math.min(0,I[F]+k[1-j]),U}else return _.attr("position",O),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function r(g,A,b,S,E,C){var _;return A!=="line"&&A.indexOf("empty")<0?(_=b.getItemStyle(),g.style.stroke=S,C||(_.stroke=E)):_=b.getItemStyle(["borderWidth","borderColor"]),g.setStyle(_)}function a(g,A,b,S){h(g,A,b,S),b.dispatchAction({type:"legendToggleSelect",name:g!=null?g:A}),c(g,A,b,S)}function c(g,A,b,S){var E=b.getZr().storage.getDisplayList()[0];E&&E.useHoverLayer||b.dispatchAction({type:"highlight",seriesName:g,name:A,excludeSeriesId:S})}function h(g,A,b,S){var E=b.getZr().storage.getDisplayList()[0];E&&E.useHoverLayer||b.dispatchAction({type:"downplay",seriesName:g,name:A,excludeSeriesId:S})}R.exports=l},XuBP:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};D.default=y},XxSj:function(R,D,n){var y=n("bYtY"),f=n("Qe9p"),x=n("OELB"),v=x.linearMap,m=y.each,p=y.isObject,d=-1,u=function(C){var _=C.mappingMethod,T=C.type,w=this.option=y.clone(C);this.type=T,this.mappingMethod=_,this._normalizeData=b[_];var O=s[T];this.applyVisual=O.applyVisual,this.getColorMapper=O.getColorMapper,this._doMap=O._doMap[_],_==="piecewise"?(o(w),i(w)):_==="category"?w.categories?t(w):o(w,!0):(y.assert(_!=="linear"||w.dataExtent),o(w))};u.prototype={constructor:u,mapValueToVisual:function(C){var _=this._normalizeData(C);return this._doMap(_,C)},getNormalizer:function(){return y.bind(this._normalizeData,this)}};var s=u.visualHandlers={color:{applyVisual:r("color"),getColorMapper:function(){var C=this.option;return y.bind(C.mappingMethod==="category"?function(_,T){return!T&&(_=this._normalizeData(_)),a.call(this,_)}:function(_,T,w){var O=!!w;return!T&&(_=this._normalizeData(_)),w=f.fastLerp(_,C.parsedVisual,w),O?w:f.stringify(w,"rgba")},this)},_doMap:{linear:function(C){return f.stringify(f.fastLerp(C,this.option.parsedVisual),"rgba")},category:a,piecewise:function(C,_){var T=g.call(this,_);return T==null&&(T=f.stringify(f.fastLerp(C,this.option.parsedVisual),"rgba")),T},fixed:c}},colorHue:e(function(C,_){return f.modifyHSL(C,_)}),colorSaturation:e(function(C,_){return f.modifyHSL(C,null,_)}),colorLightness:e(function(C,_){return f.modifyHSL(C,null,null,_)}),colorAlpha:e(function(C,_){return f.modifyAlpha(C,_)}),opacity:{applyVisual:r("opacity"),_doMap:h([0,1])},liftZ:{applyVisual:r("liftZ"),_doMap:{linear:c,category:c,piecewise:c,fixed:c}},symbol:{applyVisual:function(C,_,T){var w=this.mapValueToVisual(C);if(y.isString(w))T("symbol",w);else if(p(w))for(var O in w)w.hasOwnProperty(O)&&T(O,w[O])},_doMap:{linear:l,category:a,piecewise:function(C,_){var T=g.call(this,_);return T==null&&(T=l.call(this,C)),T},fixed:c}},symbolSize:{applyVisual:r("symbolSize"),_doMap:h([0,1])}};function i(C){var _=C.pieceList;C.hasSpecialVisual=!1,y.each(_,function(T,w){T.originIndex=w,T.visual!=null&&(C.hasSpecialVisual=!0)})}function t(C){var _=C.categories,T=C.visual,w=C.categoryMap={};if(m(_,function(k,M){w[k]=M}),!y.isArray(T)){var O=[];y.isObject(T)?m(T,function(k,M){var j=w[M];O[j!=null?j:d]=k}):O[d]=T,T=A(C,O)}for(var I=_.length-1;I>=0;I--)T[I]==null&&(delete w[_[I]],_.pop())}function o(C,_){var T=C.visual,w=[];y.isObject(T)?m(T,function(I){w.push(I)}):T!=null&&w.push(T);var O={color:1,symbol:1};!_&&w.length===1&&!O.hasOwnProperty(C.type)&&(w[1]=w[0]),A(C,w)}function e(C){return{applyVisual:function(_,T,w){_=this.mapValueToVisual(_),w("color",C(T("color"),_))},_doMap:h([0,1])}}function l(C){var _=this.option.visual;return _[Math.round(v(C,[0,1],[0,_.length-1],!0))]||{}}function r(C){return function(_,T,w){w(C,this.mapValueToVisual(_))}}function a(C){var _=this.option.visual;return _[this.option.loop&&C!==d?C%_.length:C]}function c(){return this.option.visual[0]}function h(C){return{linear:function(_){return v(_,C,this.option.visual,!0)},category:a,piecewise:function(_,T){var w=g.call(this,T);return w==null&&(w=v(_,C,this.option.visual,!0)),w},fixed:c}}function g(C){var _=this.option,T=_.pieceList;if(_.hasSpecialVisual){var w=u.findPieceIndex(C,T),O=T[w];if(O&&O.visual)return O.visual[this.type]}}function A(C,_){return C.visual=_,C.type==="color"&&(C.parsedVisual=y.map(_,function(T){return f.parse(T)})),_}var b={linear:function(C){return v(C,this.option.dataExtent,[0,1],!0)},piecewise:function(C){var _=this.option.pieceList,T=u.findPieceIndex(C,_,!0);if(T!=null)return v(T,[0,_.length-1],[0,1],!0)},category:function(C){var _=this.option.categories?this.option.categoryMap[C]:C;return _==null?d:_},fixed:y.noop};u.listVisualTypes=function(){var C=[];return y.each(s,function(_,T){C.push(T)}),C},u.addVisualHandler=function(C,_){s[C]=_},u.isValidType=function(C){return s.hasOwnProperty(C)},u.eachVisual=function(C,_,T){y.isObject(C)?y.each(C,_,T):_.call(T,C)},u.mapVisual=function(C,_,T){var w,O=y.isArray(C)?[]:y.isObject(C)?{}:(w=!0,null);return u.eachVisual(C,function(I,k){var M=_.call(T,I,k);w?O=M:O[k]=M}),O},u.retrieveVisuals=function(C){var _={},T;return C&&m(s,function(w,O){C.hasOwnProperty(O)&&(_[O]=C[O],T=!0)}),T?_:null},u.prepareVisualTypes=function(C){if(p(C)){var _=[];m(C,function(T,w){_.push(w)}),C=_}else if(y.isArray(C))C=C.slice();else return[];return C.sort(function(T,w){return w==="color"&&T!=="color"&&T.indexOf("color")===0?1:-1}),C},u.dependsOn=function(C,_){return _==="color"?!!(C&&C.indexOf(_)===0):C===_},u.findPieceIndex=function(C,_,T){for(var w,O=Infinity,I=0,k=_.length;I<k;I++){var M=_[I].value;if(M!=null){if(M===C||typeof M=="string"&&M===C+"")return I;T&&F(M,I)}}for(var I=0,k=_.length;I<k;I++){var j=_[I],P=j.interval,X=j.close;if(P){if(P[0]===-Infinity){if(S(X[1],C,P[1]))return I}else if(P[1]===Infinity){if(S(X[0],P[0],C))return I}else if(S(X[0],P[0],C)&&S(X[1],C,P[1]))return I;T&&F(P[0],I),T&&F(P[1],I)}}if(T)return C===Infinity?_.length-1:C===-Infinity?0:w;function F(U,K){var z=Math.abs(U-C);z<O&&(O=z,w=K)}};function S(C,_,T){return C?_<=T:_<T}var E=u;R.exports=E},XzQk:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("KpQ+"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},"Y+p1":function(R,D,n){var y=n("wF/u");function f(x,v){return y(x,v)}R.exports=f},Y1PL:function(R,D,n){"use strict";n.r(D),n.d(D,"ResizableTextArea",function(){return E});var y=n("wx14"),f=n("1OyB"),x=n("vuIU"),v=n("Ji7U"),m=n("LK+K"),p=n("q1tI"),d=n("VTBJ"),u=n("rePB"),s=n("t23M"),i=n("bT9E"),t=n("TSYQ"),o=n.n(t),e=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important
|
|
|
`,l=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],r={},a;function c(T){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=T.getAttribute("id")||T.getAttribute("data-reactid")||T.getAttribute("name");if(w&&r[O])return r[O];var I=window.getComputedStyle(T),k=I.getPropertyValue("box-sizing")||I.getPropertyValue("-moz-box-sizing")||I.getPropertyValue("-webkit-box-sizing"),M=parseFloat(I.getPropertyValue("padding-bottom"))+parseFloat(I.getPropertyValue("padding-top")),j=parseFloat(I.getPropertyValue("border-bottom-width"))+parseFloat(I.getPropertyValue("border-top-width")),P=l.map(function(F){return"".concat(F,":").concat(I.getPropertyValue(F))}).join(";"),X={sizingStyle:P,paddingSize:M,borderSize:j,boxSizing:k};return w&&O&&(r[O]=X),X}function h(T){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;a||(a=document.createElement("textarea"),a.setAttribute("tab-index","-1"),a.setAttribute("aria-hidden","true"),document.body.appendChild(a)),T.getAttribute("wrap")?a.setAttribute("wrap",T.getAttribute("wrap")):a.removeAttribute("wrap");var k=c(T,w),M=k.paddingSize,j=k.borderSize,P=k.boxSizing,X=k.sizingStyle;a.setAttribute("style","".concat(X,";").concat(e)),a.value=T.value||T.placeholder||"";var F=Number.MIN_SAFE_INTEGER,U=Number.MAX_SAFE_INTEGER,K=a.scrollHeight,z;if(P==="border-box"?K+=j:P==="content-box"&&(K-=M),O!==null||I!==null){a.value=" ";var V=a.scrollHeight-M;O!==null&&(F=V*O,P==="border-box"&&(F=F+M+j),K=Math.max(F,K)),I!==null&&(U=V*I,P==="border-box"&&(U=U+M+j),z=K>U?"":"hidden",K=Math.min(U,K))}return{height:K,minHeight:F,maxHeight:U,overflowY:z,resize:"none"}}var g=n("Gytx"),A=n.n(g),b;(function(T){T[T.NONE=0]="NONE",T[T.RESIZING=1]="RESIZING",T[T.RESIZED=2]="RESIZED"})(b||(b={}));var S=function(T){Object(v.a)(O,T);var w=Object(m.a)(O);function O(I){var k;return Object(f.a)(this,O),k=w.call(this,I),k.nextFrameActionId=void 0,k.resizeFrameId=void 0,k.textArea=void 0,k.saveTextArea=function(M){k.textArea=M},k.handleResize=function(M){var j=k.state.resizeStatus,P=k.props,X=P.autoSize,F=P.onResize;if(j!==b.NONE)return;typeof F=="function"&&F(M),X&&k.resizeOnNextFrame()},k.resizeOnNextFrame=function(){cancelAnimationFrame(k.nextFrameActionId),k.nextFrameActionId=requestAnimationFrame(k.resizeTextarea)},k.resizeTextarea=function(){var M=k.props.autoSize;if(!M||!k.textArea)return;var j=M.minRows,P=M.maxRows,X=h(k.textArea,!1,j,P);k.setState({textareaStyles:X,resizeStatus:b.RESIZING},function(){cancelAnimationFrame(k.resizeFrameId),k.resizeFrameId=requestAnimationFrame(function(){k.setState({resizeStatus:b.RESIZED},function(){k.resizeFrameId=requestAnimationFrame(function(){k.setState({resizeStatus:b.NONE}),k.fixFirefoxAutoScroll()})})})})},k.renderTextArea=function(){var M=k.props,j=M.prefixCls,P=j===void 0?"rc-textarea":j,X=M.autoSize,F=M.onResize,U=M.className,K=M.disabled,z=k.state,V=z.textareaStyles,Q=z.resizeStatus,G=Object(i.a)(k.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),te=o()(P,U,Object(u.a)({},"".concat(P,"-disabled"),K));"value"in G&&(G.value=G.value||"");var q=Object(d.a)(Object(d.a)(Object(d.a)({},k.props.style),V),Q===b.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return p.createElement(s.a,{onResize:k.handleResize,disabled:!(X||F)},p.createElement("textarea",Object(y.a)({},G,{className:te,style:q,ref:k.saveTextArea})))},k.state={textareaStyles:{},resizeStatus:b.NONE},k}return Object(x.a)(O,[{key:"componentDidUpdate",value:function(k){(k.value!==this.props.value||!A()(k.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var k=this.textArea.selectionStart,M=this.textArea.selectionEnd;this.textArea.setSelectionRange(k,M)}}catch(j){}}},{key:"render",value:function(){return this.renderTextArea()}}]),O}(p.Component),E=S,C=function(T){Object(v.a)(O,T);var w=Object(m.a)(O);function O(I){var k;Object(f.a)(this,O),k=w.call(this,I),k.resizableTextArea=void 0,k.focus=function(){k.resizableTextArea.textArea.focus()},k.saveTextArea=function(j){k.resizableTextArea=j},k.handleChange=function(j){var P=k.props.onChange;k.setValue(j.target.value,function(){k.resizableTextArea.resizeTextarea()}),P&&P(j)},k.handleKeyDown=function(j){var P=k.props,X=P.onPressEnter,F=P.onKeyDown;j.keyCode===13&&X&&X(j),F&&F(j)};var M=typeof I.value=="undefined"||I.value===null?I.defaultValue:I.value;return k.state={value:M},k}return Object(x.a)(O,[{key:"setValue",value:function(k,M){"value"in this.props||this.setState({value:k},M)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return p.createElement(E,Object(y.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(k){return"value"in k?{value:k.value}:null}}]),O}(p.Component),_=D.default=C},YCuv:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};D.default=y},YESw:function(R,D,n){var y=n("Cwc5"),f=y(Object,"create");R.exports=f},YH21:function(R,D,n){var y=n("H6uX");D.Dispatcher=y;var f=n("ItGF"),x=n("Ze12"),v=x.isCanvasEl,m=x.transformCoordWithViewport,p=typeof window!="undefined"&&!!window.addEventListener,d=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,u=[];function s(h,g,A,b){return A=A||{},b||!f.canvasSupported?i(h,g,A):f.browser.firefox&&g.layerX!=null&&g.layerX!==g.offsetX?(A.zrX=g.layerX,A.zrY=g.layerY):g.offsetX!=null?(A.zrX=g.offsetX,A.zrY=g.offsetY):i(h,g,A),A}function i(h,g,A){if(f.domSupported&&h.getBoundingClientRect){var b=g.clientX,S=g.clientY;if(v(h)){var E=h.getBoundingClientRect();A.zrX=b-E.left,A.zrY=S-E.top;return}else if(m(u,h,b,S)){A.zrX=u[0],A.zrY=u[1];return}}A.zrX=A.zrY=0}function t(h){return h||window.event}function o(h,g,A){if(g=t(g),g.zrX!=null)return g;var b=g.type,S=b&&b.indexOf("touch")>=0;if(!S)s(h,g,g,A),g.zrDelta=g.wheelDelta?g.wheelDelta/120:-(g.detail||0)/3;else{var E=b!=="touchend"?g.targetTouches[0]:g.changedTouches[0];E&&s(h,E,g,A)}var C=g.button;return g.which==null&&C!==void 0&&d.test(g.type)&&(g.which=C&1?1:C&2?3:C&4?2:0),g}function e(h,g,A,b){p?h.addEventListener(g,A,b):h.attachEvent("on"+g,A)}function l(h,g,A,b){p?h.removeEventListener(g,A,b):h.detachEvent("on"+g,A)}var r=p?function(h){h.preventDefault(),h.stopPropagation(),h.cancelBubble=!0}:function(h){h.returnValue=!1,h.cancelBubble=!0};function a(h){return h.which===2||h.which===3}function c(h){return h.which>1}D.clientToLocal=s,D.getNativeEvent=t,D.normalizeEvent=o,D.addEventListener=e,D.removeEventListener=l,D.stop=r,D.isMiddleOrRightButtonOnMouseUpDown=a,D.notLeftMouse=c},YJ9k:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function f(m,p){for(var d=0;d<p.length;d++){var u=p[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function x(m,p,d){return p&&f(m.prototype,p),d&&f(m,d),m}var v=function(){function m(){y(this,m),this._listeners=new Map}return x(m,[{key:"addEventListener",value:function(d,u){this._listeners.has(d)||this._listeners.set(d,new Set),this._listeners.get(d).add(u)}},{key:"removeEventListener",value:function(d,u){this._listeners.has(d)&&this._listeners.get(d).delete(u)}},{key:"dispatchEvent",value:function(d){var u=this;return this._listeners.has(d.type)?(this._listeners.get(d.type).forEach(function(s){return s.call(u,d)}),!d.defaultPrevented):!0}}]),m}();D.default=v},YJCA:function(R,D,n){"use strict";n.d(D,"a",function(){return $}),n.d(D,"b",function(){return Ce});var y=n("wx14"),f=n("ODXe"),x=n("vpQ4"),v=n("1OyB"),m=n("vuIU"),p=n("md7G"),d=n("foSv"),u=n("Ji7U"),s=n("JX7q"),i=n("rePB"),t=n("q1tI"),o=n.n(t),e=n("17x9"),l=n.n(e),r=n("i8i4"),a=n.n(r),c=n("QLaP"),h=n.n(c),g=n("KQm4"),A=function(){function Be(){Object(v.a)(this,Be),Object(i.a)(this,"refs",{})}return Object(m.a)(Be,[{key:"add",value:function(we,Re){this.refs[we]||(this.refs[we]=[]),this.refs[we].push(Re)}},{key:"remove",value:function(we,Re){var rt=this.getIndex(we,Re);rt!==-1&&this.refs[we].splice(rt,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var we=this;return this.refs[this.active.collection].find(function(Re){var rt=Re.node;return rt.sortableInfo.index==we.active.index})}},{key:"getIndex",value:function(we,Re){return this.refs[we].indexOf(Re)}},{key:"getOrderedRefs",value:function(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[we].sort(b)}}]),Be}();function b(Be,fe){var we=Be.node.sortableInfo.index,Re=fe.node.sortableInfo.index;return we-Re}function S(Be,fe,we){return Be=Be.slice(),Be.splice(we<0?Be.length+we:we,0,Be.splice(fe,1)[0]),Be}function E(Be,fe){return Object.keys(Be).reduce(function(we,Re){return fe.indexOf(Re)===-1&&(we[Re]=Be[Re]),we},{})}var C={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},_=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var Be=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],fe=(Array.prototype.slice.call(Be).join("").match(/-(moz|webkit|ms)-/)||Be.OLink===""&&["","o"])[1];switch(fe){case"ms":return"ms";default:return fe&&fe.length?fe[0].toUpperCase()+fe.substr(1):""}}();function T(Be,fe){Object.keys(fe).forEach(function(we){Be.style[we]=fe[we]})}function w(Be,fe){Be.style["".concat(_,"Transform")]=fe==null?"":"translate3d(".concat(fe.x,"px,").concat(fe.y,"px,0)")}function O(Be,fe){Be.style["".concat(_,"TransitionDuration")]=fe==null?"":"".concat(fe,"ms")}function I(Be,fe){for(;Be;){if(fe(Be))return Be;Be=Be.parentNode}return null}function k(Be,fe,we){return Math.max(Be,Math.min(we,fe))}function M(Be){return Be.substr(-2)==="px"?parseFloat(Be):0}function j(Be){var fe=window.getComputedStyle(Be);return{bottom:M(fe.marginBottom),left:M(fe.marginLeft),right:M(fe.marginRight),top:M(fe.marginTop)}}function P(Be,fe){var we=fe.displayName||fe.name;return we?"".concat(Be,"(").concat(we,")"):Be}function X(Be,fe){var we=Be.getBoundingClientRect();return{top:we.top+fe.top,left:we.left+fe.left}}function F(Be){return Be.touches&&Be.touches.length?{x:Be.touches[0].pageX,y:Be.touches[0].pageY}:Be.changedTouches&&Be.changedTouches.length?{x:Be.changedTouches[0].pageX,y:Be.changedTouches[0].pageY}:{x:Be.pageX,y:Be.pageY}}function U(Be){return Be.touches&&Be.touches.length||Be.changedTouches&&Be.changedTouches.length}function K(Be,fe){var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!Be)return;var Re={left:we.left+Be.offsetLeft,top:we.top+Be.offsetTop};return Be.parentNode===fe?Re:K(Be.parentNode,fe,Re)}function z(Be,fe,we){return Be<we&&Be>fe?Be-1:Be>we&&Be<fe?Be+1:Be}function V(Be){var fe=Be.lockOffset,we=Be.width,Re=Be.height,rt=fe,St=fe,ft="px";if(typeof fe=="string"){var He=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(fe);h()(He!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',fe),rt=parseFloat(fe),St=parseFloat(fe),ft=He[1]}return h()(isFinite(rt)&&isFinite(St),"lockOffset value should be a finite. Given %s",fe),ft==="%"&&(rt=rt*we/100,St=St*Re/100),{x:rt,y:St}}function Q(Be){var fe=Be.height,we=Be.width,Re=Be.lockOffset,rt=Array.isArray(Re)?Re:[Re,Re];h()(rt.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",Re);var St=Object(f.a)(rt,2),ft=St[0],He=St[1];return[V({height:fe,lockOffset:ft,width:we}),V({height:fe,lockOffset:He,width:we})]}function G(Be){var fe=window.getComputedStyle(Be),we=/(auto|scroll)/,Re=["overflow","overflowX","overflowY"];return Re.find(function(rt){return we.test(fe[rt])})}function te(Be){return Be instanceof HTMLElement?G(Be)?Be:te(Be.parentNode):null}function q(Be){var fe=window.getComputedStyle(Be);return fe.display==="grid"?{x:M(fe.gridColumnGap),y:M(fe.gridRowGap)}:{x:0,y:0}}var se={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},re={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function xe(Be){var fe="input, textarea, select, canvas, [contenteditable]",we=Be.querySelectorAll(fe),Re=Be.cloneNode(!0),rt=Object(g.a)(Re.querySelectorAll(fe));return rt.forEach(function(St,ft){if(St.type!=="file"&&(St.value=we[ft].value),St.type==="radio"&&St.name&&(St.name="__sortableClone__".concat(St.name)),St.tagName===re.Canvas&&we[ft].width>0&&we[ft].height>0){var He=St.getContext("2d");He.drawImage(we[ft],0,0)}}),Re}function Oe(Be){var fe,we,Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return we=fe=function(rt){Object(u.a)(St,rt);function St(){return Object(v.a)(this,St),Object(p.a)(this,Object(d.a)(St).apply(this,arguments))}return Object(m.a)(St,[{key:"componentDidMount",value:function(){var He=Object(r.findDOMNode)(this);He.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return h()(Re.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 He=Re.withRef?"wrappedInstance":null;return Object(t.createElement)(Be,Object(y.a)({ref:He},this.props))}}]),St}(t.Component),Object(i.a)(fe,"displayName",P("sortableHandle",Be)),we}function Me(Be){return Be.sortableHandle!=null}var Qe=function(){function Be(fe,we){Object(v.a)(this,Be),this.container=fe,this.onScrollCallback=we}return Object(m.a)(Be,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(we){var Re=this,rt=we.translate,St=we.minTranslate,ft=we.maxTranslate,He=we.width,er=we.height,ct={x:0,y:0},Kt={x:1,y:1},fr={x:10,y:10},Gt=this.container,Pt=Gt.scrollTop,Xt=Gt.scrollLeft,Ge=Gt.scrollHeight,pe=Gt.scrollWidth,oe=Gt.clientHeight,lt=Gt.clientWidth,qe=Pt===0,ge=Ge-Pt-oe===0,Ht=Xt===0,vr=pe-Xt-lt===0;rt.y>=ft.y-er/2&&!ge?(ct.y=1,Kt.y=fr.y*Math.abs((ft.y-er/2-rt.y)/er)):rt.x>=ft.x-He/2&&!vr?(ct.x=1,Kt.x=fr.x*Math.abs((ft.x-He/2-rt.x)/He)):rt.y<=St.y+er/2&&!qe?(ct.y=-1,Kt.y=fr.y*Math.abs((rt.y-er/2-St.y)/er)):rt.x<=St.x+He/2&&!Ht&&(ct.x=-1,Kt.x=fr.x*Math.abs((rt.x-He/2-St.x)/He)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(ct.x!==0||ct.y!==0)&&(this.interval=setInterval(function(){Re.isAutoScrolling=!0;var At={left:Kt.x*ct.x,top:Kt.y*ct.y};Re.container.scrollTop+=At.top,Re.container.scrollLeft+=At.left,Re.onScrollCallback(At)},5))}}]),Be}();function Ve(Be){var fe=Be.node;return{height:fe.offsetHeight,width:fe.offsetWidth}}function ut(Be){var fe=[re.Input,re.Textarea,re.Select,re.Option,re.Button];return fe.indexOf(Be.target.tagName)!==-1?!0:!!I(Be.target,function(we){return we.contentEditable==="true"})}var Fe={axis:l.a.oneOf(["x","y","xy"]),contentWindow:l.a.any,disableAutoscroll:l.a.bool,distance:l.a.number,getContainer:l.a.func,getHelperDimensions:l.a.func,helperClass:l.a.string,helperContainer:l.a.oneOfType([l.a.func,typeof HTMLElement=="undefined"?l.a.any:l.a.instanceOf(HTMLElement)]),hideSortableGhost:l.a.bool,keyboardSortingTransitionDuration:l.a.number,lockAxis:l.a.string,lockOffset:l.a.oneOfType([l.a.number,l.a.string,l.a.arrayOf(l.a.oneOfType([l.a.number,l.a.string]))]),lockToContainerEdges:l.a.bool,onSortEnd:l.a.func,onSortMove:l.a.func,onSortOver:l.a.func,onSortStart:l.a.func,pressDelay:l.a.number,pressThreshold:l.a.number,keyCodes:l.a.shape({lift:l.a.arrayOf(l.a.number),drop:l.a.arrayOf(l.a.number),cancel:l.a.arrayOf(l.a.number),up:l.a.arrayOf(l.a.number),down:l.a.arrayOf(l.a.number)}),shouldCancelStart:l.a.func,transitionDuration:l.a.number,updateBeforeSortStart:l.a.func,useDragHandle:l.a.bool,useWindowAsScrollContainer:l.a.bool},ue={lift:[se.SPACE],drop:[se.SPACE],cancel:[se.ESC],up:[se.UP,se.LEFT],down:[se.DOWN,se.RIGHT]},et={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:Ve,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:ue,shouldCancelStart:ut,transitionDuration:300,useWindowAsScrollContainer:!1},he=Object.keys(Fe);function J(Be){h()(!(Be.distance&&Be.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function Y(Be,fe){try{var we=Be()}catch(Re){return fe(!0,Re)}return we&&we.then?we.then(fe.bind(null,!1),fe.bind(null,!0)):fe(!1,value)}function $(Be){var fe,we,Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return we=fe=function(rt){Object(u.a)(St,rt);function St(ft){var He;return Object(v.a)(this,St),He=Object(p.a)(this,Object(d.a)(St).call(this,ft)),Object(i.a)(Object(s.a)(Object(s.a)(He)),"state",{}),Object(i.a)(Object(s.a)(Object(s.a)(He)),"handleStart",function(er){var ct=He.props,Kt=ct.distance,fr=ct.shouldCancelStart;if(er.button===2||fr(er))return;He.touched=!0,He.position=F(er);var Gt=I(er.target,function(lt){return lt.sortableInfo!=null});if(Gt&&Gt.sortableInfo&&He.nodeIsChild(Gt)&&!He.state.sorting){var Pt=He.props.useDragHandle,Xt=Gt.sortableInfo,Ge=Xt.index,pe=Xt.collection,oe=Xt.disabled;if(oe)return;if(Pt&&!I(er.target,Me))return;He.manager.active={collection:pe,index:Ge},!U(er)&&er.target.tagName===re.Anchor&&er.preventDefault(),Kt||(He.props.pressDelay===0?He.handlePress(er):He.pressTimer=setTimeout(function(){return He.handlePress(er)},He.props.pressDelay))}}),Object(i.a)(Object(s.a)(Object(s.a)(He)),"nodeIsChild",function(er){return er.sortableInfo.manager===He.manager}),Object(i.a)(Object(s.a)(Object(s.a)(He)),"handleMove",function(er){var ct=He.props,Kt=ct.distance,fr=ct.pressThreshold;if(!He.state.sorting&&He.touched&&!He._awaitingUpdateBeforeSortStart){var Gt=F(er),Pt={x:He.position.x-Gt.x,y:He.position.y-Gt.y},Xt=Math.abs(Pt.x)+Math.abs(Pt.y);He.delta=Pt,!Kt&&(!fr||Xt>=fr)?(clearTimeout(He.cancelTimer),He.cancelTimer=setTimeout(He.cancel,0)):Kt&&Xt>=Kt&&He.manager.isActive()&&He.handlePress(er)}}),Object(i.a)(Object(s.a)(Object(s.a)(He)),"handleEnd",function(){He.touched=!1,He.cancel()}),Object(i.a)(Object(s.a)(Object(s.a)(He)),"cancel",function(){var er=He.props.distance,ct=He.state.sorting;ct||(er||clearTimeout(He.pressTimer),He.manager.active=null)}),Object(i.a)(Object(s.a)(Object(s.a)(He)),"handlePress",function(er){try{var ct=He.manager.getActive(),Kt=function(){if(ct){var fr=function(){var lr=ge.sortableInfo.index,dn=j(ge),Ft=q(He.container),ur=He.scrollContainer.getBoundingClientRect(),Jt=Xt({index:lr,node:ge,collection:Ht});if(He.node=ge,He.margin=dn,He.gridGap=Ft,He.width=Jt.width,He.height=Jt.height,He.marginOffset={x:He.margin.left+He.margin.right+He.gridGap.x,y:Math.max(He.margin.top,He.margin.bottom,He.gridGap.y)},He.boundingClientRect=ge.getBoundingClientRect(),He.containerBoundingRect=ur,He.index=lr,He.newIndex=lr,He.axis={x:Pt.indexOf("x")>=0,y:Pt.indexOf("y")>=0},He.offsetEdge=K(ge,He.container),vr?He.initialOffset=F(Object(x.a)({},er,{pageX:He.boundingClientRect.left,pageY:He.boundingClientRect.top})):He.initialOffset=F(er),He.initialScroll={left:He.scrollContainer.scrollLeft,top:He.scrollContainer.scrollTop},He.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},He.helper=He.helperContainer.appendChild(xe(ge)),T(He.helper,{boxSizing:"border-box",height:"".concat(He.height,"px"),left:"".concat(He.boundingClientRect.left-dn.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(He.boundingClientRect.top-dn.top,"px"),width:"".concat(He.width,"px")}),vr&&He.helper.focus(),pe&&(He.sortableGhost=ge,T(ge,{opacity:0,visibility:"hidden"})),He.minTranslate={},He.maxTranslate={},vr){var pt=qe?{top:0,left:0,width:He.contentWindow.innerWidth,height:He.contentWindow.innerHeight}:He.containerBoundingRect,at=pt.top,Pr=pt.left,un=pt.width,_n=pt.height,Xn=at+_n,xi=Pr+un;He.axis.x&&(He.minTranslate.x=Pr-He.boundingClientRect.left,He.maxTranslate.x=xi-(He.boundingClientRect.left+He.width)),He.axis.y&&(He.minTranslate.y=at-He.boundingClientRect.top,He.maxTranslate.y=Xn-(He.boundingClientRect.top+He.height))}else He.axis.x&&(He.minTranslate.x=(qe?0:ur.left)-He.boundingClientRect.left-He.width/2,He.maxTranslate.x=(qe?He.contentWindow.innerWidth:ur.left+ur.width)-He.boundingClientRect.left-He.width/2),He.axis.y&&(He.minTranslate.y=(qe?0:ur.top)-He.boundingClientRect.top-He.height/2,He.maxTranslate.y=(qe?He.contentWindow.innerHeight:ur.top+ur.height)-He.boundingClientRect.top-He.height/2);Ge&&Ge.split(" ").forEach(function(Pn){return He.helper.classList.add(Pn)}),He.listenerNode=er.touches?ge:He.contentWindow,vr?(He.listenerNode.addEventListener("wheel",He.handleKeyEnd,!0),He.listenerNode.addEventListener("mousedown",He.handleKeyEnd,!0),He.listenerNode.addEventListener("keydown",He.handleKeyDown)):(C.move.forEach(function(Pn){return He.listenerNode.addEventListener(Pn,He.handleSortMove,!1)}),C.end.forEach(function(Pn){return He.listenerNode.addEventListener(Pn,He.handleSortEnd,!1)})),He.setState({sorting:!0,sortingIndex:lr}),lt&<({node:ge,index:lr,collection:Ht,isKeySorting:vr,nodes:He.manager.getOrderedRefs(),helper:He.helper},er),vr&&He.keyMove(0)},Gt=He.props,Pt=Gt.axis,Xt=Gt.getHelperDimensions,Ge=Gt.helperClass,pe=Gt.hideSortableGhost,oe=Gt.updateBeforeSortStart,lt=Gt.onSortStart,qe=Gt.useWindowAsScrollContainer,ge=ct.node,Ht=ct.collection,vr=He.manager.isKeySorting,At=function(){if(typeof oe=="function"){He._awaitingUpdateBeforeSortStart=!0;var ir=Y(function(){var lr=ge.sortableInfo.index;return Promise.resolve(oe({collection:Ht,index:lr,node:ge,isKeySorting:vr},er)).then(function(){})},function(lr,dn){if(He._awaitingUpdateBeforeSortStart=!1,lr)throw dn;return dn});if(ir&&ir.then)return ir.then(function(){})}}();return At&&At.then?At.then(fr):fr(At)}}();return Promise.resolve(Kt&&Kt.then?Kt.then(function(){}):void 0)}catch(fr){return Promise.reject(fr)}}),Object(i.a)(Object(s.a)(Object(s.a)(He)),"handleSortMove",function(er){var ct=He.props.onSortMove;typeof er.preventDefault=="function"&&er.preventDefault(),He.updateHelperPosition(er),He.animateNodes(),He.autoscroll(),ct&&ct(er)}),Object(i.a)(Object(s.a)(Object(s.a)(He)),"handleSortEnd",function(er){var ct=He.props,Kt=ct.hideSortableGhost,fr=ct.onSortEnd,Gt=He.manager,Pt=Gt.active.collection,Xt=Gt.isKeySorting,Ge=He.manager.getOrderedRefs();He.listenerNode&&(Xt?(He.listenerNode.removeEventListener("wheel",He.handleKeyEnd,!0),He.listenerNode.removeEventListener("mousedown",He.handleKeyEnd,!0),He.listenerNode.removeEventListener("keydown",He.handleKeyDown)):(C.move.forEach(function(ge){return He.listenerNode.removeEventListener(ge,He.handleSortMove)}),C.end.forEach(function(ge){return He.listenerNode.removeEventListener(ge,He.handleSortEnd)}))),He.helper.parentNode.removeChild(He.helper),Kt&&He.sortableGhost&&T(He.sortableGhost,{opacity:"",visibility:""});for(var pe=0,oe=Ge.length;pe<oe;pe++){var lt=Ge[pe],qe=lt.node;lt.edgeOffset=null,lt.boundingClientRect=null,w(qe,null),O(qe,null),lt.translate=null}He.autoScroller.clear(),He.manager.active=null,He.manager.isKeySorting=!1,He.setState({sorting:!1,sortingIndex:null}),typeof fr=="function"&&fr({collection:Pt,newIndex:He.newIndex,oldIndex:He.index,isKeySorting:Xt,nodes:Ge},er),He.touched=!1}),Object(i.a)(Object(s.a)(Object(s.a)(He)),"autoscroll",function(){var er=He.props.disableAutoscroll,ct=He.manager.isKeySorting;if(er){He.autoScroller.clear();return}if(ct){var Kt=Object(x.a)({},He.translate),fr=0,Gt=0;He.axis.x&&(Kt.x=Math.min(He.maxTranslate.x,Math.max(He.minTranslate.x,He.translate.x)),fr=He.translate.x-Kt.x),He.axis.y&&(Kt.y=Math.min(He.maxTranslate.y,Math.max(He.minTranslate.y,He.translate.y)),Gt=He.translate.y-Kt.y),He.translate=Kt,w(He.helper,He.translate),He.scrollContainer.scrollLeft+=fr,He.scrollContainer.scrollTop+=Gt;return}He.autoScroller.update({height:He.height,maxTranslate:He.maxTranslate,minTranslate:He.minTranslate,translate:He.translate,width:He.width})}),Object(i.a)(Object(s.a)(Object(s.a)(He)),"onAutoScroll",function(er){He.translate.x+=er.left,He.translate.y+=er.top,He.animateNodes()}),Object(i.a)(Object(s.a)(Object(s.a)(He)),"handleKeyDown",function(er){var ct=er.keyCode,Kt=He.props,fr=Kt.shouldCancelStart,Gt=Kt.keyCodes,Pt=Gt===void 0?{}:Gt,Xt=Object(x.a)({},ue,Pt);if(He.manager.active&&!He.manager.isKeySorting||!He.manager.active&&(!Xt.lift.includes(ct)||fr(er)||!He.isValidSortingTarget(er)))return;er.stopPropagation(),er.preventDefault(),Xt.lift.includes(ct)&&!He.manager.active?He.keyLift(er):Xt.drop.includes(ct)&&He.manager.active?He.keyDrop(er):Xt.cancel.includes(ct)?(He.newIndex=He.manager.active.index,He.keyDrop(er)):Xt.up.includes(ct)?He.keyMove(-1):Xt.down.includes(ct)&&He.keyMove(1)}),Object(i.a)(Object(s.a)(Object(s.a)(He)),"keyLift",function(er){var ct=er.target,Kt=I(ct,function(Xt){return Xt.sortableInfo!=null}),fr=Kt.sortableInfo,Gt=fr.index,Pt=fr.collection;He.initialFocusedNode=ct,He.manager.isKeySorting=!0,He.manager.active={index:Gt,collection:Pt},He.handlePress(er)}),Object(i.a)(Object(s.a)(Object(s.a)(He)),"keyMove",function(er){var ct=He.manager.getOrderedRefs(),Kt=ct[ct.length-1].node.sortableInfo.index,fr=He.newIndex+er,Gt=He.newIndex;if(fr<0||fr>Kt)return;He.prevIndex=Gt,He.newIndex=fr;var Pt=z(He.newIndex,He.prevIndex,He.index),Xt=ct.find(function(vr){var At=vr.node;return At.sortableInfo.index===Pt}),Ge=Xt.node,pe=He.containerScrollDelta,oe=Xt.boundingClientRect||X(Ge,pe),lt=Xt.translate||{x:0,y:0},qe={top:oe.top+lt.y-pe.top,left:oe.left+lt.x-pe.left},ge=Gt<fr,Ht={x:ge&&He.axis.x?Ge.offsetWidth-He.width:0,y:ge&&He.axis.y?Ge.offsetHeight-He.height:0};He.handleSortMove({pageX:qe.left+Ht.x,pageY:qe.top+Ht.y,ignoreTransition:er===0})}),Object(i.a)(Object(s.a)(Object(s.a)(He)),"keyDrop",function(er){He.handleSortEnd(er),He.initialFocusedNode&&He.initialFocusedNode.focus()}),Object(i.a)(Object(s.a)(Object(s.a)(He)),"handleKeyEnd",function(er){He.manager.active&&He.keyDrop(er)}),Object(i.a)(Object(s.a)(Object(s.a)(He)),"isValidSortingTarget",function(er){var ct=He.props.useDragHandle,Kt=er.target,fr=I(Kt,function(Gt){return Gt.sortableInfo!=null});return fr&&fr.sortableInfo&&!fr.sortableInfo.disabled&&(ct?Me(Kt):Kt.sortableInfo)}),J(ft),He.manager=new A,He.events={end:He.handleEnd,move:He.handleMove,start:He.handleStart},He}return Object(m.a)(St,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var He=this,er=this.props.useWindowAsScrollContainer,ct=this.getContainer();Promise.resolve(ct).then(function(Kt){He.container=Kt,He.document=He.container.ownerDocument||document;var fr=He.props.contentWindow||He.document.defaultView||window;He.contentWindow=typeof fr=="function"?fr():fr,He.scrollContainer=er?He.document.scrollingElement||He.document.documentElement:te(He.container)||He.container,He.autoScroller=new Qe(He.scrollContainer,He.onAutoScroll),Object.keys(He.events).forEach(function(Gt){return C[Gt].forEach(function(Pt){return He.container.addEventListener(Pt,He.events[Gt],!1)})}),He.container.addEventListener("keydown",He.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var He=this;if(this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),!this.container)return;Object.keys(this.events).forEach(function(er){return C[er].forEach(function(ct){return He.container.removeEventListener(ct,He.events[er])})}),this.container.removeEventListener("keydown",this.handleKeyDown)}},{key:"updateHelperPosition",value:function(He){var er=this.props,ct=er.lockAxis,Kt=er.lockOffset,fr=er.lockToContainerEdges,Gt=er.transitionDuration,Pt=er.keyboardSortingTransitionDuration,Xt=Pt===void 0?Gt:Pt,Ge=this.manager.isKeySorting,pe=He.ignoreTransition,oe=F(He),lt={x:oe.x-this.initialOffset.x,y:oe.y-this.initialOffset.y};if(lt.y-=window.pageYOffset-this.initialWindowScroll.top,lt.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=lt,fr){var qe=Q({height:this.height,lockOffset:Kt,width:this.width}),ge=Object(f.a)(qe,2),Ht=ge[0],vr=ge[1],At={x:this.width/2-Ht.x,y:this.height/2-Ht.y},ir={x:this.width/2-vr.x,y:this.height/2-vr.y};lt.x=k(this.minTranslate.x+At.x,this.maxTranslate.x-ir.x,lt.x),lt.y=k(this.minTranslate.y+At.y,this.maxTranslate.y-ir.y,lt.y)}ct==="x"?lt.y=0:ct==="y"&&(lt.x=0),Ge&&Xt&&!pe&&O(this.helper,Xt),w(this.helper,lt)}},{key:"animateNodes",value:function(){var He=this.props,er=He.transitionDuration,ct=He.hideSortableGhost,Kt=He.onSortOver,fr=this.containerScrollDelta,Gt=this.windowScrollDelta,Pt=this.manager.getOrderedRefs(),Xt={left:this.offsetEdge.left+this.translate.x+fr.left,top:this.offsetEdge.top+this.translate.y+fr.top},Ge=this.manager.isKeySorting,pe=this.newIndex;this.newIndex=null;for(var oe=0,lt=Pt.length;oe<lt;oe++){var qe=Pt[oe].node,ge=qe.sortableInfo.index,Ht=qe.offsetWidth,vr=qe.offsetHeight,At={height:this.height>vr?vr/2:this.height/2,width:this.width>Ht?Ht/2:this.width/2},ir=Ge&&ge>this.index&&ge<=pe,lr=Ge&&ge<this.index&&ge>=pe,dn={x:0,y:0},Ft=Pt[oe].edgeOffset;Ft||(Ft=K(qe,this.container),Pt[oe].edgeOffset=Ft,Ge&&(Pt[oe].boundingClientRect=X(qe,fr)));var ur=oe<Pt.length-1&&Pt[oe+1],Jt=oe>0&&Pt[oe-1];if(ur&&!ur.edgeOffset&&(ur.edgeOffset=K(ur.node,this.container),Ge&&(ur.boundingClientRect=X(ur.node,fr))),ge===this.index){ct&&(this.sortableGhost=qe,T(qe,{opacity:0,visibility:"hidden"}));continue}er&&O(qe,er),this.axis.x?this.axis.y?lr||ge<this.index&&(Xt.left+Gt.left-At.width<=Ft.left&&Xt.top+Gt.top<=Ft.top+At.height||Xt.top+Gt.top+At.height<=Ft.top)?(dn.x=this.width+this.marginOffset.x,Ft.left+dn.x>this.containerBoundingRect.width-At.width&&(ur&&(dn.x=ur.edgeOffset.left-Ft.left,dn.y=ur.edgeOffset.top-Ft.top)),this.newIndex===null&&(this.newIndex=ge)):(ir||ge>this.index&&(Xt.left+Gt.left+At.width>=Ft.left&&Xt.top+Gt.top+At.height>=Ft.top||Xt.top+Gt.top+At.height>=Ft.top+vr))&&(dn.x=-(this.width+this.marginOffset.x),Ft.left+dn.x<this.containerBoundingRect.left+At.width&&(Jt&&(dn.x=Jt.edgeOffset.left-Ft.left,dn.y=Jt.edgeOffset.top-Ft.top)),this.newIndex=ge):ir||ge>this.index&&Xt.left+Gt.left+At.width>=Ft.left?(dn.x=-(this.width+this.marginOffset.x),this.newIndex=ge):(lr||ge<this.index&&Xt.left+Gt.left<=Ft.left+At.width)&&(dn.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=ge)):this.axis.y&&(ir||ge>this.index&&Xt.top+Gt.top+At.height>=Ft.top?(dn.y=-(this.height+this.marginOffset.y),this.newIndex=ge):(lr||ge<this.index&&Xt.top+Gt.top<=Ft.top+At.height)&&(dn.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=ge))),w(qe,dn),Pt[oe].translate=dn}this.newIndex==null&&(this.newIndex=this.index),Ge&&(this.newIndex=pe);var pt=Ge?this.prevIndex:pe;Kt&&this.newIndex!==pt&&Kt({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:pt,isKeySorting:Ge,nodes:Pt,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return h()(Re.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 He=this.props.getContainer;return typeof He!="function"?Object(r.findDOMNode)(this):He(Re.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var He=Re.withRef?"wrappedInstance":null;return Object(t.createElement)(Be,Object(y.a)({ref:He},E(this.props,he)))}},{key:"helperContainer",get:function(){var He=this.props.helperContainer;return typeof He=="function"?He():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var He=this.props.useWindowAsScrollContainer;return He?{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}}}]),St}(t.Component),Object(i.a)(fe,"displayName",P("sortableList",Be)),Object(i.a)(fe,"defaultProps",et),Object(i.a)(fe,"propTypes",Fe),Object(i.a)(fe,"childContextTypes",{manager:l.a.object.isRequired}),we}var de={index:l.a.number.isRequired,collection:l.a.oneOfType([l.a.number,l.a.string]),disabled:l.a.bool},be=Object.keys(de);function Ce(Be){var fe,we,Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return we=fe=function(rt){Object(u.a)(St,rt);function St(){return Object(v.a)(this,St),Object(p.a)(this,Object(d.a)(St).apply(this,arguments))}return Object(m.a)(St,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(He){this.node&&(He.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),He.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),He.collection!==this.props.collection&&(this.unregister(He.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var He=this.props,er=He.collection,ct=He.disabled,Kt=He.index,fr=Object(r.findDOMNode)(this);fr.sortableInfo={collection:er,disabled:ct,index:Kt,manager:this.context.manager},this.node=fr,this.ref={node:fr},this.context.manager.add(er,this.ref)}},{key:"unregister",value:function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(He,this.ref)}},{key:"getWrappedInstance",value:function(){return h()(Re.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 He=Re.withRef?"wrappedInstance":null;return Object(t.createElement)(Be,Object(y.a)({ref:He},E(this.props,be)))}}]),St}(t.Component),Object(i.a)(fe,"displayName",P("sortableElement",Be)),Object(i.a)(fe,"contextTypes",{manager:l.a.object.isRequired}),Object(i.a)(fe,"propTypes",de),Object(i.a)(fe,"defaultProps",{collection:0}),we}},YNAk:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("QyFq")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="CaretDownFilled";var i=v.forwardRef(s);D.default=i},YNf1:function(R,D,n){var y=n("IwbS"),f=n("6Ic6"),x=.3,v=f.extend({type:"parallel",init:function(){this._dataGroup=new y.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(o,e,l,r){var a=this._dataGroup,c=o.getData(),h=this._data,g=o.coordinateSystem,A=g.dimensions,b=u(o);c.diff(h).add(S).update(E).remove(C).execute();function S(T){var w=d(c,a,T,A,g);s(w,c,T,b)}function E(T,w){var O=h.getItemGraphicEl(w),I=p(c,T,A,g);c.setItemGraphicEl(T,O);var k=r&&r.animation===!1?null:o;y.updateProps(O,{shape:{points:I}},k,T),s(O,c,T,b)}function C(T){var w=h.getItemGraphicEl(T);a.remove(w)}if(!this._initialized){this._initialized=!0;var _=m(g,o,function(){setTimeout(function(){a.removeClipPath()})});a.setClipPath(_)}this._data=c},incrementalPrepareRender:function(o,e,l){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(o,e,l){for(var r=e.getData(),a=e.coordinateSystem,c=a.dimensions,h=u(e),g=o.start;g<o.end;g++){var A=d(r,this._dataGroup,g,c,a);A.incremental=!0,s(A,r,g,h)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function m(o,e,l){var r=o.model,a=o.getRect(),c=new y.Rect({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),h=r.get("layout")==="horizontal"?"width":"height";return c.setShape(h,0),y.initProps(c,{shape:{width:a.width,height:a.height}},e,l),c}function p(o,e,l,r){for(var a=[],c=0;c<l.length;c++){var h=l[c],g=o.get(o.mapDimension(h),e);i(g,r.getAxis(h).type)||a.push(r.dataToPoint(g,h))}return a}function d(o,e,l,r,a){var c=p(o,l,r,a),h=new y.Polyline({shape:{points:c},silent:!0,z2:10});return e.add(h),o.setItemGraphicEl(l,h),h}function u(o){var e=o.get("smooth",!0);return e===!0&&(e=x),{lineStyle:o.getModel("lineStyle").getLineStyle(),smooth:e!=null?e:x}}function s(o,e,l,r){var a=r.lineStyle;if(e.hasItemOption){var c=e.getItemModel(l).getModel("lineStyle");a=c.getLineStyle()}o.useStyle(a);var h=o.style;h.fill=null,h.stroke=e.getItemVisual(l,"color"),h.opacity=e.getItemVisual(l,"opacity"),r.smooth&&(o.shape.smooth=r.smooth)}function i(o,e){return e==="category"?o==null:o==null||isNaN(o)}var t=v;R.exports=t},YOMW:function(R,D,n){var y=n("bYtY"),f={get:function(m,p,d){var u=y.clone((x[m]||{})[p]);return d&&y.isArray(u)?u[u.length-1]:u}},x={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},v=f;R.exports=v},YXkt:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("bYtY"),v=n("Qxkt"),m=n("gPAo"),p=n("7G+c"),d=n("KxfA"),u=d.defaultDimValueGetters,s=d.DefaultDataProvider,i=n("L0Ub"),t=i.summarizeDimensions,o=n("Vi4m"),e=x.isObject,l="undefined",r=-1,a="e\0\0",c={float:typeof Float64Array===l?Array:Float64Array,int:typeof Int32Array===l?Array:Int32Array,ordinal:Array,number:Array,time:Array},h=typeof Uint32Array===l?Array:Uint32Array,g=typeof Int32Array===l?Array:Int32Array,A=typeof Uint16Array===l?Array:Uint16Array;function b(G){return G._rawCount>65535?h:A}function S(G){var te=G.constructor;return te===Array?G.slice():new te(G)}var E=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],C=["_extent","_approximateExtent","_rawExtent"];function _(G,te){x.each(E.concat(te.__wrappedMethods||[]),function(q){te.hasOwnProperty(q)&&(G[q]=te[q])}),G.__wrappedMethods=te.__wrappedMethods,x.each(C,function(q){G[q]=x.clone(te[q])}),G._calculationInfo=x.extend(te._calculationInfo)}var T=function(G,te){G=G||["x","y"];for(var q={},se=[],re={},xe=0;xe<G.length;xe++){var Oe=G[xe];x.isString(Oe)?Oe=new o({name:Oe}):Oe instanceof o||(Oe=new o(Oe));var Me=Oe.name;Oe.type=Oe.type||"float",Oe.coordDim||(Oe.coordDim=Me,Oe.coordDimIndex=0),Oe.otherDims=Oe.otherDims||{},se.push(Me),q[Me]=Oe,Oe.index=xe,Oe.createInvertedIndices&&(re[Me]=[])}this.dimensions=se,this._dimensionInfos=q,this.hostModel=te,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=t(this),this._invertedIndicesMap=re,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},w=T.prototype;w.type="list",w.hasItemOption=!0,w.getDimension=function(G){return(typeof G=="number"||!isNaN(G)&&!this._dimensionInfos.hasOwnProperty(G))&&(G=this.dimensions[G]),G},w.getDimensionInfo=function(G){return this._dimensionInfos[this.getDimension(G)]},w.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},w.mapDimension=function(G,te){var q=this._dimensionsSummary;if(te==null)return q.encodeFirstDimNotExtra[G];var se=q.encode[G];return te===!0?(se||[]).slice():se&&se[te]},w.initData=function(G,te,q){var se=p.isInstance(G)||x.isArrayLike(G);se&&(G=new s(G,this.dimensions.length)),this._rawData=G,this._storage={},this._indices=null,this._nameList=te||[],this._idList=[],this._nameRepeatCount={},q||(this.hasItemOption=!1),this.defaultDimValueGetter=u[this._rawData.getSource().sourceFormat],this._dimValueGetter=q=q||this.defaultDimValueGetter,this._dimValueGetterArrayRows=u.arrayRows,this._rawExtent={},this._initDataFromProvider(0,G.count()),G.pure&&(this.hasItemOption=!1)},w.getProvider=function(){return this._rawData},w.appendData=function(G){var te=this._rawData,q=this.count();te.appendData(G);var se=te.count();te.persistent||(se+=q),this._initDataFromProvider(q,se)},w.appendValues=function(G,te){for(var q=this._chunkSize,se=this._storage,re=this.dimensions,xe=re.length,Oe=this._rawExtent,Me=this.count(),Qe=Me+Math.max(G.length,te?te.length:0),Ve=this._chunkCount,ut=0;ut<xe;ut++){var Fe=re[ut];Oe[Fe]||(Oe[Fe]=z()),se[Fe]||(se[Fe]=[]),O(se,this._dimensionInfos[Fe],q,Ve,Qe),this._chunkCount=se[Fe].length}for(var ue=new Array(xe),et=Me;et<Qe;et++){for(var he=et-Me,J=Math.floor(et/q),Y=et%q,$=0;$<xe;$++){var Fe=re[$],de=this._dimValueGetterArrayRows(G[he]||ue,Fe,he,$);se[Fe][J][Y]=de;var be=Oe[Fe];de<be[0]&&(be[0]=de),de>be[1]&&(be[1]=de)}te&&(this._nameList[et]=te[he])}this._rawCount=this._count=Qe,this._extent={},I(this)},w._initDataFromProvider=function(G,te){if(G>=te)return;for(var q=this._chunkSize,se=this._rawData,re=this._storage,xe=this.dimensions,Oe=xe.length,Me=this._dimensionInfos,Qe=this._nameList,Ve=this._idList,ut=this._rawExtent,Fe=this._nameRepeatCount={},ue,et=this._chunkCount,he=0;he<Oe;he++){var J=xe[he];ut[J]||(ut[J]=z());var Y=Me[J];Y.otherDims.itemName===0&&(ue=this._nameDimIdx=he),Y.otherDims.itemId===0&&(this._idDimIdx=he),re[J]||(re[J]=[]),O(re,Y,q,et,te),this._chunkCount=re[J].length}for(var $=new Array(Oe),de=G;de<te;de++){$=se.getItem(de,$);for(var be=Math.floor(de/q),Ce=de%q,Be=0;Be<Oe;Be++){var J=xe[Be],fe=re[J][be],we=this._dimValueGetter($,J,de,Be);fe[Ce]=we;var Re=ut[J];we<Re[0]&&(Re[0]=we),we>Re[1]&&(Re[1]=we)}if(!se.pure){var rt=Qe[de];if($&&rt==null){if($.name!=null)Qe[de]=rt=$.name;else if(ue!=null){var St=xe[ue],ft=re[St][be];if(ft){rt=ft[Ce];var He=Me[St].ordinalMeta;He&&He.categories.length&&(rt=He.categories[rt])}}}var er=$==null?null:$.id;er==null&&rt!=null&&(Fe[rt]=Fe[rt]||0,er=rt,Fe[rt]>0&&(er+="__ec__"+Fe[rt]),Fe[rt]++),er!=null&&(Ve[de]=er)}}!se.persistent&&se.clean&&se.clean(),this._rawCount=this._count=te,this._extent={},I(this)};function O(G,te,q,se,re){var xe=c[te.type],Oe=se-1,Me=te.name,Qe=G[Me][Oe];if(Qe&&Qe.length<q){for(var Ve=new xe(Math.min(re-Oe*q,q)),ut=0;ut<Qe.length;ut++)Ve[ut]=Qe[ut];G[Me][Oe]=Ve}for(var Fe=se*q;Fe<re;Fe+=q)G[Me].push(new xe(Math.min(re-Fe,q)))}function I(G){var te=G._invertedIndicesMap;x.each(te,function(q,se){var re=G._dimensionInfos[se],xe=re.ordinalMeta;if(xe){q=te[se]=new g(xe.categories.length);for(var Oe=0;Oe<q.length;Oe++)q[Oe]=r;for(var Oe=0;Oe<G._count;Oe++)q[G.get(se,Oe)]=Oe}})}function k(G,te,q){var se;if(te!=null){var re=G._chunkSize,xe=Math.floor(q/re),Oe=q%re,Me=G.dimensions[te],Qe=G._storage[Me][xe];if(Qe){se=Qe[Oe];var Ve=G._dimensionInfos[Me].ordinalMeta;Ve&&Ve.categories.length&&(se=Ve.categories[se])}}return se}w.count=function(){return this._count},w.getIndices=function(){var G,te=this._indices;if(te){var q=te.constructor,se=this._count;if(q===Array){G=new q(se);for(var re=0;re<se;re++)G[re]=te[re]}else G=new q(te.buffer,0,se)}else for(var q=b(this),G=new q(this.count()),re=0;re<G.length;re++)G[re]=re;return G},w.get=function(G,te){if(!(te>=0&&te<this._count))return NaN;var q=this._storage;if(!q[G])return NaN;te=this.getRawIndex(te);var se=Math.floor(te/this._chunkSize),re=te%this._chunkSize,xe=q[G][se],Oe=xe[re];return Oe},w.getByRawIndex=function(G,te){if(!(te>=0&&te<this._rawCount))return NaN;var q=this._storage[G];if(!q)return NaN;var se=Math.floor(te/this._chunkSize),re=te%this._chunkSize,xe=q[se];return xe[re]},w._getFast=function(G,te){var q=Math.floor(te/this._chunkSize),se=te%this._chunkSize,re=this._storage[G][q];return re[se]},w.getValues=function(G,te){var q=[];x.isArray(G)||(te=G,G=this.dimensions);for(var se=0,re=G.length;se<re;se++)q.push(this.get(G[se],te));return q},w.hasValue=function(G){for(var te=this._dimensionsSummary.dataDimsOnCoord,q=0,se=te.length;q<se;q++)if(isNaN(this.get(te[q],G)))return!1;return!0},w.getDataExtent=function(G){G=this.getDimension(G);var te=this._storage[G],q=z();if(!te)return q;var se=this.count(),re=!this._indices,xe;if(re)return this._rawExtent[G].slice();if(xe=this._extent[G],xe)return xe.slice();xe=q;for(var Oe=xe[0],Me=xe[1],Qe=0;Qe<se;Qe++){var Ve=this._getFast(G,this.getRawIndex(Qe));Ve<Oe&&(Oe=Ve),Ve>Me&&(Me=Ve)}return xe=[Oe,Me],this._extent[G]=xe,xe},w.getApproximateExtent=function(G){return G=this.getDimension(G),this._approximateExtent[G]||this.getDataExtent(G)},w.setApproximateExtent=function(G,te){te=this.getDimension(te),this._approximateExtent[te]=G.slice()},w.getCalculationInfo=function(G){return this._calculationInfo[G]},w.setCalculationInfo=function(G,te){e(G)?x.extend(this._calculationInfo,G):this._calculationInfo[G]=te},w.getSum=function(G){var te=this._storage[G],q=0;if(te)for(var se=0,re=this.count();se<re;se++){var xe=this.get(G,se);isNaN(xe)||(q+=xe)}return q},w.getMedian=function(G){var te=[];this.each(G,function(re,xe){isNaN(re)||te.push(re)});var q=[].concat(te).sort(function(re,xe){return re-xe}),se=this.count();return se===0?0:se%2===1?q[(se-1)/2]:(q[se/2]+q[se/2-1])/2},w.rawIndexOf=function(G,te){var q=G&&this._invertedIndicesMap[G],se=q[te];return se==null||isNaN(se)?r:se},w.indexOfName=function(G){for(var te=0,q=this.count();te<q;te++)if(this.getName(te)===G)return te;return-1},w.indexOfRawIndex=function(G){if(G>=this._rawCount||G<0)return-1;if(!this._indices)return G;var te=this._indices,q=te[G];if(q!=null&&q<this._count&&q===G)return G;for(var se=0,re=this._count-1;se<=re;){var xe=(se+re)/2|0;if(te[xe]<G)se=xe+1;else if(te[xe]>G)re=xe-1;else return xe}return-1},w.indicesOfNearest=function(G,te,q){var se=this._storage,re=se[G],xe=[];if(!re)return xe;q==null&&(q=Infinity);for(var Oe=Infinity,Me=-1,Qe=0,Ve=0,ut=this.count();Ve<ut;Ve++){var Fe=te-this.get(G,Ve),ue=Math.abs(Fe);ue<=q&&((ue<Oe||ue===Oe&&Fe>=0&&Me<0)&&(Oe=ue,Me=Fe,Qe=0),Fe===Me&&(xe[Qe++]=Ve))}return xe.length=Qe,xe},w.getRawIndex=M;function M(G){return G}function j(G){return G<this._count&&G>=0?this._indices[G]:-1}w.getRawDataItem=function(G){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(G));for(var te=[],q=0;q<this.dimensions.length;q++){var se=this.dimensions[q];te.push(this.get(se,G))}return te},w.getName=function(G){var te=this.getRawIndex(G);return this._nameList[te]||k(this,this._nameDimIdx,te)||""},w.getId=function(G){return P(this,this.getRawIndex(G))};function P(G,te){var q=G._idList[te];return q==null&&(q=k(G,G._idDimIdx,te)),q==null&&(q=a+te),q}function X(G){return x.isArray(G)||(G=[G]),G}function F(G,te){for(var q=0;q<te.length;q++)G._dimensionInfos[te[q]]||console.error("Unkown dimension "+te[q])}w.each=function(G,te,q,se){"use strict";if(!this._count)return;typeof G=="function"&&(se=q,q=te,te=G,G=[]),q=q||se||this,G=x.map(X(G),this.getDimension,this);for(var re=G.length,xe=0;xe<this.count();xe++)switch(re){case 0:te.call(q,xe);break;case 1:te.call(q,this.get(G[0],xe),xe);break;case 2:te.call(q,this.get(G[0],xe),this.get(G[1],xe),xe);break;default:for(var Oe=0,Me=[];Oe<re;Oe++)Me[Oe]=this.get(G[Oe],xe);Me[Oe]=xe,te.apply(q,Me)}},w.filterSelf=function(G,te,q,se){"use strict";if(!this._count)return;typeof G=="function"&&(se=q,q=te,te=G,G=[]),q=q||se||this,G=x.map(X(G),this.getDimension,this);for(var re=this.count(),xe=b(this),Oe=new xe(re),Me=[],Qe=G.length,Ve=0,ut=G[0],Fe=0;Fe<re;Fe++){var ue,et=this.getRawIndex(Fe);if(Qe===0)ue=te.call(q,Fe);else if(Qe===1){var he=this._getFast(ut,et);ue=te.call(q,he,Fe)}else{for(var J=0;J<Qe;J++)Me[J]=this._getFast(ut,et);Me[J]=Fe,ue=te.apply(q,Me)}ue&&(Oe[Ve++]=et)}return Ve<re&&(this._indices=Oe),this._count=Ve,this._extent={},this.getRawIndex=this._indices?j:M,this},w.selectRange=function(G){"use strict";if(!this._count)return;var te=[];for(var q in G)G.hasOwnProperty(q)&&te.push(q);var se=te.length;if(!se)return;var re=this.count(),xe=b(this),Oe=new xe(re),Me=0,Qe=te[0],Ve=G[Qe][0],ut=G[Qe][1],Fe=!1;if(!this._indices){var ue=0;if(se===1){for(var et=this._storage[te[0]],he=0;he<this._chunkCount;he++)for(var J=et[he],Y=Math.min(this._count-he*this._chunkSize,this._chunkSize),$=0;$<Y;$++){var de=J[$];(de>=Ve&&de<=ut||isNaN(de))&&(Oe[Me++]=ue),ue++}Fe=!0}else if(se===2){for(var et=this._storage[Qe],be=this._storage[te[1]],Ce=G[te[1]][0],Be=G[te[1]][1],he=0;he<this._chunkCount;he++)for(var J=et[he],fe=be[he],Y=Math.min(this._count-he*this._chunkSize,this._chunkSize),$=0;$<Y;$++){var de=J[$],we=fe[$];(de>=Ve&&de<=ut||isNaN(de))&&(we>=Ce&&we<=Be||isNaN(we))&&(Oe[Me++]=ue),ue++}Fe=!0}}if(!Fe)if(se===1)for(var $=0;$<re;$++){var Re=this.getRawIndex($),de=this._getFast(Qe,Re);(de>=Ve&&de<=ut||isNaN(de))&&(Oe[Me++]=Re)}else for(var $=0;$<re;$++){for(var rt=!0,Re=this.getRawIndex($),he=0;he<se;he++){var St=te[he],de=this._getFast(q,Re);(de<G[St][0]||de>G[St][1])&&(rt=!1)}rt&&(Oe[Me++]=this.getRawIndex($))}return Me<re&&(this._indices=Oe),this._count=Me,this._extent={},this.getRawIndex=this._indices?j:M,this},w.mapArray=function(G,te,q,se){"use strict";typeof G=="function"&&(se=q,q=te,te=G,G=[]),q=q||se||this;var re=[];return this.each(G,function(){re.push(te&&te.apply(this,arguments))},q),re};function U(G,te){var q=G.dimensions,se=new T(x.map(q,G.getDimensionInfo,G),G.hostModel);_(se,G);for(var re=se._storage={},xe=G._storage,Oe=0;Oe<q.length;Oe++){var Me=q[Oe];xe[Me]&&(x.indexOf(te,Me)>=0?(re[Me]=K(xe[Me]),se._rawExtent[Me]=z(),se._extent[Me]=null):re[Me]=xe[Me])}return se}function K(G){for(var te=new Array(G.length),q=0;q<G.length;q++)te[q]=S(G[q]);return te}function z(){return[Infinity,-Infinity]}w.map=function(G,te,q,se){"use strict";q=q||se||this,G=x.map(X(G),this.getDimension,this);var re=U(this,G);re._indices=this._indices,re.getRawIndex=re._indices?j:M;for(var xe=re._storage,Oe=[],Me=this._chunkSize,Qe=G.length,Ve=this.count(),ut=[],Fe=re._rawExtent,ue=0;ue<Ve;ue++){for(var et=0;et<Qe;et++)ut[et]=this.get(G[et],ue);ut[Qe]=ue;var he=te&&te.apply(q,ut);if(he!=null){typeof he!="object"&&(Oe[0]=he,he=Oe);for(var J=this.getRawIndex(ue),Y=Math.floor(J/Me),$=J%Me,de=0;de<he.length;de++){var be=G[de],Ce=he[de],Be=Fe[be],fe=xe[be];fe&&(fe[Y][$]=Ce),Ce<Be[0]&&(Be[0]=Ce),Ce>Be[1]&&(Be[1]=Ce)}}}return re},w.downSample=function(G,te,q,se){for(var re=U(this,[G]),xe=re._storage,Oe=[],Me=Math.floor(1/te),Qe=xe[G],Ve=this.count(),ut=this._chunkSize,Fe=re._rawExtent[G],ue=new(b(this))(Ve),et=0,he=0;he<Ve;he+=Me){Me>Ve-he&&(Me=Ve-he,Oe.length=Me);for(var J=0;J<Me;J++){var Y=this.getRawIndex(he+J),$=Math.floor(Y/ut),de=Y%ut;Oe[J]=Qe[$][de]}var be=q(Oe),Ce=this.getRawIndex(Math.min(he+se(Oe,be)||0,Ve-1)),Be=Math.floor(Ce/ut),fe=Ce%ut;Qe[Be][fe]=be,be<Fe[0]&&(Fe[0]=be),be>Fe[1]&&(Fe[1]=be),ue[et++]=Ce}return re._count=et,re._indices=ue,re.getRawIndex=j,re},w.getItemModel=function(G){var te=this.hostModel;return new v(this.getRawDataItem(G),te,te&&te.ecModel)},w.diff=function(G){var te=this;return new m(G?G.getIndices():[],this.getIndices(),function(q){return P(G,q)},function(q){return P(te,q)})},w.getVisual=function(G){var te=this._visual;return te&&te[G]},w.setVisual=function(G,te){if(e(G)){for(var q in G)G.hasOwnProperty(q)&&this.setVisual(q,G[q]);return}this._visual=this._visual||{},this._visual[G]=te},w.setLayout=function(G,te){if(e(G)){for(var q in G)G.hasOwnProperty(q)&&this.setLayout(q,G[q]);return}this._layout[G]=te},w.getLayout=function(G){return this._layout[G]},w.getItemLayout=function(G){return this._itemLayouts[G]},w.setItemLayout=function(G,te,q){this._itemLayouts[G]=q?x.extend(this._itemLayouts[G]||{},te):te},w.clearItemLayouts=function(){this._itemLayouts.length=0},w.getItemVisual=function(G,te,q){var se=this._itemVisuals[G],re=se&&se[te];return re==null&&!q?this.getVisual(te):re},w.setItemVisual=function(G,te,q){var se=this._itemVisuals[G]||{},re=this.hasItemVisual;if(this._itemVisuals[G]=se,e(te)){for(var xe in te)te.hasOwnProperty(xe)&&(se[xe]=te[xe],re[xe]=!0);return}se[te]=q,re[te]=!0},w.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var V=function(G){G.seriesIndex=this.seriesIndex,G.dataIndex=this.dataIndex,G.dataType=this.dataType};w.setItemGraphicEl=function(G,te){var q=this.hostModel;te&&(te.dataIndex=G,te.dataType=this.dataType,te.seriesIndex=q&&q.seriesIndex,te.type==="group"&&te.traverse(V,te)),this._graphicEls[G]=te},w.getItemGraphicEl=function(G){return this._graphicEls[G]},w.eachItemGraphicEl=function(G,te){x.each(this._graphicEls,function(q,se){q&&(G&&G.call(te,q,se))})},w.cloneShallow=function(G){if(!G){var te=x.map(this.dimensions,this.getDimensionInfo,this);G=new T(te,this.hostModel)}if(G._storage=this._storage,_(G,this),this._indices){var q=this._indices.constructor;G._indices=new q(this._indices)}else G._indices=null;return G.getRawIndex=G._indices?j:M,G},w.wrapMethod=function(G,te){var q=this[G];if(typeof q!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(G),this[G]=function(){var se=q.apply(this,arguments);return te.apply(this,[se].concat(x.slice(arguments)))}},w.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],w.CHANGABLE_METHODS=["filterSelf","selectRange"];var Q=T;R.exports=Q},YgsL:function(R,D,n){var y=n("QBsz"),f=y.distance;function x(m,p,d,u,s,i,t){var o=(d-m)*.5,e=(u-p)*.5;return(2*(p-d)+o+e)*t+(-3*(p-d)-2*o-e)*i+o*s+p}function v(m,p){for(var d=m.length,u=[],s=0,i=1;i<d;i++)s+=f(m[i-1],m[i]);var t=s/2;t=t<d?d:t;for(var i=0;i<t;i++){var o=i/(t-1)*(p?d:d-1),e=Math.floor(o),l=o-e,r,a=m[e%d],c,h;p?(r=m[(e-1+d)%d],c=m[(e+1)%d],h=m[(e+2)%d]):(r=m[e===0?e:e-1],c=m[e>d-2?d-1:e+1],h=m[e>d-3?d-1:e+2]);var g=l*l,A=l*g;u.push([x(r[0],a[0],c[0],h[0],l,g,A),x(r[1],a[1],c[1],h[1],l,g,A)])}return u}R.exports=v},Yl7c:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("bYtY"),v=".",m="___EC__COMPONENT__CONTAINER___";function p(r){var a={main:"",sub:""};return r&&(r=r.split(v),a.main=r[0]||"",a.sub=r[1]||""),a}function d(r){x.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function u(r,a){r.$constructor=r,r.extend=function(c){var h=this,g=function(){c.$constructor?c.$constructor.apply(this,arguments):h.apply(this,arguments)};return x.extend(g.prototype,c),g.extend=this.extend,g.superCall=t,g.superApply=o,x.inherits(g,this),g.superClass=h,g}}var s=0;function i(r){var a=["__\0is_clz",s++,Math.random().toFixed(3)].join("_");r.prototype[a]=!0,r.isInstance=function(c){return!!(c&&c[a])}}function t(r,a){var c=x.slice(arguments,2);return this.superClass.prototype[a].apply(r,c)}function o(r,a,c){return this.superClass.prototype[a].apply(r,c)}function e(r,a){a=a||{};var c={};r.registerClass=function(A,b){if(b){if(d(b),b=p(b),!b.sub)c[b.main]=A;else if(b.sub!==m){var S=h(b);S[b.sub]=A}}return A},r.getClass=function(A,b,S){var E=c[A];if(E&&E[m]&&(E=b?E[b]:null),S&&!E)throw new Error(b?"Component "+A+"."+(b||"")+" not exists. Load it first.":A+".type should be specified.");return E},r.getClassesByMainType=function(A){A=p(A);var b=[],S=c[A.main];return S&&S[m]?x.each(S,function(E,C){C!==m&&b.push(E)}):b.push(S),b},r.hasClass=function(A){return A=p(A),!!c[A.main]},r.getAllClassMainTypes=function(){var A=[];return x.each(c,function(b,S){A.push(S)}),A},r.hasSubTypes=function(A){A=p(A);var b=c[A.main];return b&&b[m]},r.parseClassType=p;function h(A){var b=c[A.main];return(!b||!b[m])&&(b=c[A.main]={},b[m]=!0),b}if(a.registerWhenExtend){var g=r.extend;g&&(r.extend=function(A){var b=g.call(this,A);return r.registerClass(b,A.type)})}return r}function l(r,a){}D.parseClassType=p,D.enableClassExtend=u,D.enableClassCheck=i,D.enableClassManagement=e,D.setReadOnly=l},Ynxi:function(R,D,n){var y=n("bYtY"),f=n("ProS"),x=n("IwbS"),v=n("+TT/"),m=v.getLayoutRect,p=n("7aKB"),d=p.windowOpen;f.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),f.extendComponentView({type:"title",render:function(u,s,i){if(this.group.removeAll(),!u.get("show"))return;var t=this.group,o=u.getModel("textStyle"),e=u.getModel("subtextStyle"),l=u.get("textAlign"),r=y.retrieve2(u.get("textBaseline"),u.get("textVerticalAlign")),a=new x.Text({style:x.setTextStyle({},o,{text:u.get("text"),textFill:o.getTextColor()},{disableBox:!0}),z2:10}),c=a.getBoundingRect(),h=u.get("subtext"),g=new x.Text({style:x.setTextStyle({},e,{text:h,textFill:e.getTextColor(),y:c.height+u.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),A=u.get("link"),b=u.get("sublink"),S=u.get("triggerEvent",!0);a.silent=!A&&!S,g.silent=!b&&!S,A&&a.on("click",function(){d(A,"_"+u.get("target"))}),b&&g.on("click",function(){d(A,"_"+u.get("subtarget"))}),a.eventData=g.eventData=S?{componentType:"title",componentIndex:u.componentIndex}:null,t.add(a),h&&t.add(g);var E=t.getBoundingRect(),C=u.getBoxLayoutParams();C.width=E.width,C.height=E.height;var _=m(C,{width:i.getWidth(),height:i.getHeight()},u.get("padding"));l||(l=u.get("left")||u.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),r||(r=u.get("top")||u.get("bottom"),r==="center"&&(r="middle"),r==="bottom"?_.y+=_.height:r==="middle"&&(_.y+=_.height/2),r=r||"top"),t.attr("position",[_.x,_.y]);var T={textAlign:l,textVerticalAlign:r};a.setStyle(T),g.setStyle(T),E=t.getBoundingRect();var w=_.margin,O=u.getItemStyle(["color","opacity"]);O.fill=u.get("backgroundColor");var I=new x.Rect({shape:{x:E.x-w[3],y:E.y-w[0],width:E.width+w[1]+w[3],height:E.height+w[0]+w[2],r:u.get("borderRadius")},style:O,subPixelOptimize:!0,silent:!0});t.add(I)}})},Ywus:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("DO2E")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="DeleteOutlined";var i=v.forwardRef(s);D.default=i},Z0Lh:function(R,D,n){"use strict";var y=n("TqRt");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var f=y(n("pVnL")),x=y(n("HjOm")),v=y(n("Z6rY")),m={lang:(0,f.default)({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},x.default),timePickerLocale:(0,f.default)({},v.default)};m.lang.ok="\u786E \u5B9A";var p=m;D.default=p},Z1HP:function(R,D,n){var y=n("ycre"),f=n("quyA"),x=n("q4HE");function v(m){return f(m)?x(m):y(m)}R.exports=v},Z1r0:function(R,D){function n(y){var f=y.findComponents({mainType:"legend"});if(!f||!f.length)return;y.eachSeriesByType("graph",function(x){var v=x.getCategoriesData(),m=x.getGraph(),p=m.data,d=v.mapArray(v.getName);p.filterSelf(function(u){var s=p.getItemModel(u),i=s.getShallow("category");if(i!=null){typeof i=="number"&&(i=d[i]);for(var t=0;t<f.length;t++)if(!f[t].isSelected(i))return!1}return!0})},this)}R.exports=n},Z1wy:function(R,D,n){var y=n("ProS");n("ThAp"),n("pmaE"),n("SehX"),n("7uqq");var f=n("zuHt"),x=n("VPsl"),v=n("9u0u"),m=n("lELe"),p=n("d4KN");y.registerLayout(f),y.registerVisual(x),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,v),y.registerPreprocessor(m),p("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},Z6js:function(R,D,n){var y=n("MwEJ"),f=n("T4UG"),x=f.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(v,m){return y(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});R.exports=x},Z6rY:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},f=y;D.default=f},Z8oC:function(R,D,n){var y=n("y1pI");function f(x,v){var m=this.__data__,p=y(m,x);return p<0?(++this.size,m.push([x,v])):m[p][1]=v,this}R.exports=f},Z8zF:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("ProS"),v=n("bYtY"),m=n("IwbS"),p=n("56rv"),d=p.setLabel,u=n("Qxkt"),s=n("tceW"),i=n("y+Vt"),t=n("4fz+"),o=n("iLNv"),e=o.throttle,l=n("sK/D"),r=l.createClipPath,a=n("wr5s"),c=["itemStyle","barBorderWidth"],h=[0,0];v.extend(u.prototype,s);function g(V,Q){var G=V.getArea&&V.getArea();if(V.type==="cartesian2d"){var te=V.getBaseAxis();if(te.type!=="category"||!te.onBand){var q=Q.getLayout("bandWidth");te.isHorizontal()?(G.x-=q,G.width+=q*2):(G.y-=q,G.height+=q*2)}}return G}var A=x.extendChartView({type:"bar",render:function(V,Q,G){this._updateDrawMode(V);var te=V.get("coordinateSystem");return(te==="cartesian2d"||te==="polar")&&(this._isLargeDraw?this._renderLarge(V,Q,G):this._renderNormal(V,Q,G)),this.group},incrementalPrepareRender:function(V,Q,G){this._clear(),this._updateDrawMode(V)},incrementalRender:function(V,Q,G,te){this._incrementalRenderLarge(V,Q)},_updateDrawMode:function(V){var Q=V.pipelineContext.large;(this._isLargeDraw==null||Q^this._isLargeDraw)&&(this._isLargeDraw=Q,this._clear())},_renderNormal:function(V,Q,G){var te=this.group,q=V.getData(),se=this._data,re=V.coordinateSystem,xe=re.getBaseAxis(),Oe;re.type==="cartesian2d"?Oe=xe.isHorizontal():re.type==="polar"&&(Oe=xe.dim==="angle");var Me=V.isAnimationEnabled()?V:null,Qe=V.get("clip",!0),Ve=g(re,q);te.removeClipPath();var ut=V.get("roundCap",!0),Fe=V.get("showBackground",!0),ue=V.getModel("backgroundStyle"),et=ue.get("barBorderRadius")||0,he=[],J=this._backgroundEls||[];q.diff(se).add(function(de){var be=q.getItemModel(de),Ce=w[re.type](q,de,be);if(Fe){var Be=w[re.type](q,de),fe=z(re,Oe,Be);fe.useStyle(ue.getBarItemStyle()),re.type==="cartesian2d"&&fe.setShape("r",et),he[de]=fe}if(!q.hasValue(de))return;if(Qe){var we=E[re.type](Ve,Ce);if(we){te.remove(Re);return}}var Re=C[re.type](de,Ce,Oe,Me,!1,ut);q.setItemGraphicEl(de,Re),te.add(Re),I(Re,q,de,be,Ce,V,Oe,re.type==="polar")}).update(function(de,be){var Ce=q.getItemModel(de),Be=w[re.type](q,de,Ce);if(Fe){var fe=J[be];fe.useStyle(ue.getBarItemStyle()),re.type==="cartesian2d"&&fe.setShape("r",et),he[de]=fe;var we=w[re.type](q,de),Re=K(Oe,we,re);m.updateProps(fe,{shape:Re},Me,de)}var rt=se.getItemGraphicEl(be);if(!q.hasValue(de)){te.remove(rt);return}if(Qe){var St=E[re.type](Ve,Be);if(St){te.remove(rt);return}}rt?m.updateProps(rt,{shape:Be},Me,de):rt=C[re.type](de,Be,Oe,Me,!0,ut),q.setItemGraphicEl(de,rt),te.add(rt),I(rt,q,de,Ce,Be,V,Oe,re.type==="polar")}).remove(function(de){var be=se.getItemGraphicEl(de);re.type==="cartesian2d"?be&&_(de,Me,be):be&&T(de,Me,be)}).execute();var Y=this._backgroundGroup||(this._backgroundGroup=new t);Y.removeAll();for(var $=0;$<he.length;++$)Y.add(he[$]);te.add(Y),this._backgroundEls=he,this._data=q},_renderLarge:function(V,Q,G){this._clear(),j(V,this.group);var te=V.get("clip",!0)?r(V.coordinateSystem,!1,V):null;te?this.group.setClipPath(te):this.group.removeClipPath()},_incrementalRenderLarge:function(V,Q){this._removeBackground(),j(Q,this.group,!0)},dispose:v.noop,remove:function(V){this._clear(V)},_clear:function(V){var Q=this.group,G=this._data;V&&V.get("animation")&&G&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],G.eachItemGraphicEl(function(te){te.type==="sector"?T(te.dataIndex,V,te):_(te.dataIndex,V,te)})):Q.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),b=Math.max,S=Math.min,E={cartesian2d:function(V,Q){var G=Q.width<0?-1:1,te=Q.height<0?-1:1;G<0&&(Q.x+=Q.width,Q.width=-Q.width),te<0&&(Q.y+=Q.height,Q.height=-Q.height);var q=b(Q.x,V.x),se=S(Q.x+Q.width,V.x+V.width),re=b(Q.y,V.y),xe=S(Q.y+Q.height,V.y+V.height);Q.x=q,Q.y=re,Q.width=se-q,Q.height=xe-re;var Oe=Q.width<0||Q.height<0;return G<0&&(Q.x+=Q.width,Q.width=-Q.width),te<0&&(Q.y+=Q.height,Q.height=-Q.height),Oe},polar:function(V){return!1}},C={cartesian2d:function(V,Q,G,te,q){var se=new m.Rect({shape:v.extend({},Q),z2:1});if(se.name="item",te){var re=se.shape,xe=G?"height":"width",Oe={};re[xe]=0,Oe[xe]=Q[xe],m[q?"updateProps":"initProps"](se,{shape:Oe},te,V)}return se},polar:function(V,Q,G,te,q,se){var re=Q.startAngle<Q.endAngle,xe=!G&&se?a:m.Sector,Oe=new xe({shape:v.defaults({clockwise:re},Q),z2:1});if(Oe.name="item",te){var Me=Oe.shape,Qe=G?"r":"endAngle",Ve={};Me[Qe]=G?0:Q.startAngle,Ve[Qe]=Q[Qe],m[q?"updateProps":"initProps"](Oe,{shape:Ve},te,V)}return Oe}};function _(V,Q,G){G.style.text=null,m.updateProps(G,{shape:{width:0}},Q,V,function(){G.parent&&G.parent.remove(G)})}function T(V,Q,G){G.style.text=null,m.updateProps(G,{shape:{r:G.shape.r0}},Q,V,function(){G.parent&&G.parent.remove(G)})}var w={cartesian2d:function(V,Q,G){var te=V.getItemLayout(Q),q=G?k(G,te):0,se=te.width>0?1:-1,re=te.height>0?1:-1;return{x:te.x+se*q/2,y:te.y+re*q/2,width:te.width-se*q,height:te.height-re*q}},polar:function(V,Q,G){var te=V.getItemLayout(Q);return{cx:te.cx,cy:te.cy,r0:te.r0,r:te.r,startAngle:te.startAngle,endAngle:te.endAngle}}};function O(V){return V.startAngle!=null&&V.endAngle!=null&&V.startAngle===V.endAngle}function I(V,Q,G,te,q,se,re,xe){var Oe=Q.getItemVisual(G,"color"),Me=Q.getItemVisual(G,"opacity"),Qe=Q.getVisual("borderColor"),Ve=te.getModel("itemStyle"),ut=te.getModel("emphasis.itemStyle").getBarItemStyle();xe||V.setShape("r",Ve.get("barBorderRadius")||0),V.useStyle(v.defaults({stroke:O(q)?"none":Qe,fill:O(q)?"none":Oe,opacity:Me},Ve.getBarItemStyle()));var Fe=te.getShallow("cursor");Fe&&V.attr("cursor",Fe);var ue=re?q.height>0?"bottom":"top":q.width>0?"left":"right";xe||d(V.style,ut,te,Oe,se,G,ue),O(q)&&(ut.fill=ut.stroke="none"),m.setHoverStyle(V,ut)}function k(V,Q){var G=V.get(c)||0,te=isNaN(Q.width)?Number.MAX_VALUE:Math.abs(Q.width),q=isNaN(Q.height)?Number.MAX_VALUE:Math.abs(Q.height);return Math.min(G,te,q)}var M=i.extend({type:"largeBar",shape:{points:[]},buildPath:function(V,Q){for(var G=Q.points,te=this.__startPoint,q=this.__baseDimIdx,se=0;se<G.length;se+=2)te[q]=G[se+q],V.moveTo(te[0],te[1]),V.lineTo(G[se],G[se+1])}});function j(V,Q,G){var te=V.getData(),q=[],se=te.getLayout("valueAxisHorizontal")?1:0;q[1-se]=te.getLayout("valueAxisStart");var re=te.getLayout("largeDataIndices"),xe=te.getLayout("barWidth"),Oe=V.getModel("backgroundStyle"),Me=V.get("showBackground",!0);if(Me){var Qe=te.getLayout("largeBackgroundPoints"),Ve=[];Ve[1-se]=te.getLayout("backgroundStart");var ut=new M({shape:{points:Qe},incremental:!!G,__startPoint:Ve,__baseDimIdx:se,__largeDataIndices:re,__barWidth:xe,silent:!0,z2:0});U(ut,Oe,te),Q.add(ut)}var Fe=new M({shape:{points:te.getLayout("largePoints")},incremental:!!G,__startPoint:q,__baseDimIdx:se,__largeDataIndices:re,__barWidth:xe});Q.add(Fe),F(Fe,V,te),Fe.seriesIndex=V.seriesIndex,V.get("silent")||(Fe.on("mousedown",P),Fe.on("mousemove",P))}var P=e(function(V){var Q=this,G=X(Q,V.offsetX,V.offsetY);Q.dataIndex=G>=0?G:null},30,!1);function X(V,Q,G){var te=V.__baseDimIdx,q=1-te,se=V.shape.points,re=V.__largeDataIndices,xe=Math.abs(V.__barWidth/2),Oe=V.__startPoint[q];h[0]=Q,h[1]=G;for(var Me=h[te],Qe=h[1-te],Ve=Me-xe,ut=Me+xe,Fe=0,ue=se.length/2;Fe<ue;Fe++){var et=Fe*2,he=se[et+te],J=se[et+q];if(he>=Ve&&he<=ut&&(Oe<=J?Qe>=Oe&&Qe<=J:Qe>=J&&Qe<=Oe))return re[Fe]}return-1}function F(V,Q,G){var te=G.getVisual("borderColor")||G.getVisual("color"),q=Q.getModel("itemStyle").getItemStyle(["color","borderColor"]);V.useStyle(q),V.style.fill=null,V.style.stroke=te,V.style.lineWidth=G.getLayout("barWidth")}function U(V,Q,G){var te=Q.get("borderColor")||Q.get("color"),q=Q.getItemStyle(["color","borderColor"]);V.useStyle(q),V.style.fill=null,V.style.stroke=te,V.style.lineWidth=G.getLayout("barWidth")}function K(V,Q,G){var te,q=G.type==="polar";return q?te=G.getArea():te=G.grid.getRect(),q?{cx:te.cx,cy:te.cy,r0:V?te.r0:Q.r0,r:V?te.r:Q.r,startAngle:V?Q.startAngle:0,endAngle:V?Q.endAngle:Math.PI*2}:{x:V?Q.x:te.x,y:V?te.y:Q.y,width:V?Q.width:te.width,height:V?te.height:Q.height}}function z(V,Q,G){var te=V.type==="polar"?m.Sector:m.Rect;return new te({shape:K(Q,G,V),silent:!0,z2:0})}R.exports=A},ZCgT:function(R,D,n){var y=n("tLB3"),f=1/0,x=17976931348623157e292;function v(m){if(!m)return m===0?m:0;if(m=y(m),m===f||m===-f){var p=m<0?-1:1;return p*x}return m===m?m:0}R.exports=v},ZLWo:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};D.default=y},ZMnZ:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("2oIt")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="UpOutlined";var i=v.forwardRef(s);D.default=i},ZTPi:function(R,D,n){"use strict";var y=n("pVnL"),f=n.n(y),x=n("lSNA"),v=n.n(x),m=n("q1tI"),p=n("rePB"),d=n("ODXe"),u=n("Ff2n"),s=n("VTBJ"),i=n("TSYQ"),t=n.n(i),o=n("Zm9Q"),e=n("6cGi"),l=n("KQm4"),r=n("xEkU"),a=n.n(r),c=n("1OyB"),h=n("vuIU"),g=n("Ji7U"),A=n("LK+K"),b=n("m+aA"),S=n("Kwbf"),E=n("c+Xe"),C=n("bdgK"),_="rc-observer-key",T=function(qr){Object(g.a)(Yn,qr);var En=Object(A.a)(Yn);function Yn(){var zt;return Object(c.a)(this,Yn),zt=En.apply(this,arguments),zt.resizeObserver=null,zt.childNode=null,zt.currentElement=null,zt.state={width:0,height:0,offsetHeight:0,offsetWidth:0},zt.onResize=function(Ot){var kt=zt.props.onResize,Bt=Ot[0].target,Wt=Bt.getBoundingClientRect(),Lt=Wt.width,dr=Wt.height,yr=Bt.offsetWidth,br=Bt.offsetHeight,Mr=Math.floor(Lt),Gn=Math.floor(dr);if(zt.state.width!==Mr||zt.state.height!==Gn||zt.state.offsetWidth!==yr||zt.state.offsetHeight!==br){var Mn={width:Mr,height:Gn,offsetWidth:yr,offsetHeight:br};zt.setState(Mn),kt&&Promise.resolve().then(function(){kt(Object(s.a)(Object(s.a)({},Mn),{},{offsetWidth:yr,offsetHeight:br}))})}},zt.setChildNode=function(Ot){zt.childNode=Ot},zt}return Object(h.a)(Yn,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var Ot=this.props.disabled;if(Ot){this.destroyObserver();return}var kt=Object(b.a)(this.childNode||this),Bt=kt!==this.currentElement;Bt&&(this.destroyObserver(),this.currentElement=kt),!this.resizeObserver&&kt&&(this.resizeObserver=new C.default(this.onResize),this.resizeObserver.observe(kt))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var Ot=this.props.children,kt=Object(o.a)(Ot);if(kt.length>1)Object(S.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(kt.length===0)return Object(S.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Bt=kt[0];if(m.isValidElement(Bt)&&Object(E.c)(Bt)){var Wt=Bt.ref;kt[0]=m.cloneElement(Bt,{ref:Object(E.a)(Wt,this.setChildNode)})}return kt.length===1?kt[0]:kt.map(function(Lt,dr){return!m.isValidElement(Lt)||"key"in Lt&&Lt.key!==null?Lt:m.cloneElement(Lt,{key:"".concat(_,"-").concat(dr)})})}}]),Yn}(m.Component);T.displayName="ResizeObserver";var w=T;function O(qr){var En=Object(m.useRef)(),Yn=Object(m.useRef)(!1);function zt(){for(var Ot=arguments.length,kt=new Array(Ot),Bt=0;Bt<Ot;Bt++)kt[Bt]=arguments[Bt];Yn.current||(a.a.cancel(En.current),En.current=a()(function(){qr.apply(void 0,kt)}))}return Object(m.useEffect)(function(){return function(){Yn.current=!0,a.a.cancel(En.current)}},[]),zt}function I(qr){var En=Object(m.useRef)([]),Yn=Object(m.useState)({}),zt=Object(d.a)(Yn,2),Ot=zt[1],kt=Object(m.useRef)(typeof qr=="function"?qr():qr),Bt=O(function(){var Lt=kt.current;En.current.forEach(function(dr){Lt=dr(Lt)}),En.current=[],kt.current=Lt,Ot({})});function Wt(Lt){En.current.push(Lt),Bt()}return[kt.current,Wt]}var k=n("4IlW");function M(qr,En){var Yn,zt=qr.prefixCls,Ot=qr.id,kt=qr.active,Bt=qr.rtl,Wt=qr.tab,Lt=Wt.key,dr=Wt.tab,yr=Wt.disabled,br=Wt.closeIcon,Mr=qr.tabBarGutter,Gn=qr.tabPosition,Mn=qr.closable,di=qr.renderWrapper,vn=qr.removeAriaLabel,Ur=qr.editable,In=qr.onClick,Qn=qr.onRemove,qn=qr.onFocus,oi="".concat(zt,"-tab");m.useEffect(function(){return Qn},[]);var Ti={};Gn==="top"||Gn==="bottom"?Ti[Bt?"marginLeft":"marginRight"]=Mr:Ti.marginBottom=Mr;var ki=Ur&&Mn!==!1&&!yr;function Ri(aa){if(yr)return;In(aa)}function oa(aa){aa.preventDefault(),aa.stopPropagation(),Ur.onEdit("remove",{key:Lt,event:aa})}var ma=m.createElement("div",{key:Lt,ref:En,className:t()(oi,(Yn={},Object(p.a)(Yn,"".concat(oi,"-with-remove"),ki),Object(p.a)(Yn,"".concat(oi,"-active"),kt),Object(p.a)(Yn,"".concat(oi,"-disabled"),yr),Yn)),style:Ti,onClick:Ri},m.createElement("div",{role:"tab","aria-selected":kt,id:Ot&&"".concat(Ot,"-tab-").concat(Lt),className:"".concat(oi,"-btn"),"aria-controls":Ot&&"".concat(Ot,"-panel-").concat(Lt),"aria-disabled":yr,tabIndex:yr?null:0,onClick:function(ba){ba.stopPropagation(),Ri(ba)},onKeyDown:function(ba){[k.a.SPACE,k.a.ENTER].includes(ba.which)&&(ba.preventDefault(),Ri(ba))},onFocus:qn},dr),ki&&m.createElement("button",{type:"button","aria-label":vn||"remove",tabIndex:0,className:"".concat(oi,"-remove"),onClick:function(ba){ba.stopPropagation(),oa(ba)}},br||Ur.removeIcon||"\xD7"));return di&&(ma=di(ma)),ma}var j=m.forwardRef(M),P={width:0,height:0,left:0,top:0};function X(qr,En,Yn){return Object(m.useMemo)(function(){for(var zt,Ot=new Map,kt=En.get((zt=qr[0])===null||zt===void 0?void 0:zt.key)||P,Bt=kt.left+kt.width,Wt=0;Wt<qr.length;Wt+=1){var Lt=qr[Wt].key,dr=En.get(Lt);if(!dr){var yr;dr=En.get((yr=qr[Wt-1])===null||yr===void 0?void 0:yr.key)||P}var br=Ot.get(Lt)||Object(s.a)({},dr);br.right=Bt-br.left-br.width,Ot.set(Lt,br)}return Ot},[qr.map(function(zt){return zt.key}).join("_"),En,Yn])}var F={width:0,height:0,left:0,top:0,right:0};function U(qr,En,Yn,zt,Ot){var kt=Ot.tabs,Bt=Ot.tabPosition,Wt=Ot.rtl,Lt,dr,yr;["top","bottom"].includes(Bt)?(Lt="width",dr=Wt?"right":"left",yr=Math.abs(En.left)):(Lt="height",dr="top",yr=-En.top);var br=En[Lt],Mr=Yn[Lt],Gn=zt[Lt],Mn=br;return Mr+Gn>br&&(Mn=br-Gn),Object(m.useMemo)(function(){if(!kt.length)return[0,0];for(var di=kt.length,vn=di,Ur=0;Ur<di;Ur+=1){var In=qr.get(kt[Ur].key)||F;if(In[dr]+In[Lt]>yr+Mn){vn=Ur-1;break}}for(var Qn=0,qn=di-1;qn>=0;qn-=1){var oi=qr.get(kt[qn].key)||F;if(oi[dr]<yr){Qn=qn+1;break}}return[Qn,vn]},[qr,yr,Mn,Bt,kt.map(function(di){return di.key}).join("_"),Wt])}var K=n("wx14"),z=n("JX7q"),V=n("I8Z2"),Q=n("bT9E"),G=n("2GS6"),te=n("Gytx"),q=n.n(te),se=n("U8pU"),re=/iPhone/i,xe=/iPod/i,Oe=/iPad/i,Me=/\bAndroid(?:.+)Mobile\b/i,Qe=/Android/i,Ve=/\bAndroid(?:.+)SD4930UR\b/i,ut=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Fe=/Windows Phone/i,ue=/\bWindows(?:.+)ARM\b/i,et=/BlackBerry/i,he=/BB10/i,J=/Opera Mini/i,Y=/\b(CriOS|Chrome)(?:.+)Mobile/i,$=/Mobile(?:.+)Firefox\b/i;function de(qr,En){return qr.test(En)}function be(qr){var En=qr||(typeof navigator!="undefined"?navigator.userAgent:""),Yn=(En||"").split("[FBAN");if(typeof Yn[1]!="undefined"){var zt=Yn,Ot=Object(d.a)(zt,1);En=Ot[0]}if(Yn=En.split("Twitter"),typeof Yn[1]!="undefined"){var kt=Yn,Bt=Object(d.a)(kt,1);En=Bt[0]}var Wt={apple:{phone:de(re,En)&&!de(Fe,En),ipod:de(xe,En),tablet:!de(re,En)&&de(Oe,En)&&!de(Fe,En),device:(de(re,En)||de(xe,En)||de(Oe,En))&&!de(Fe,En)},amazon:{phone:de(Ve,En),tablet:!de(Ve,En)&&de(ut,En),device:de(Ve,En)||de(ut,En)},android:{phone:!de(Fe,En)&&de(Ve,En)||!de(Fe,En)&&de(Me,En),tablet:!de(Fe,En)&&!de(Ve,En)&&!de(Me,En)&&(de(ut,En)||de(Qe,En)),device:!de(Fe,En)&&(de(Ve,En)||de(ut,En)||de(Me,En)||de(Qe,En))||de(/\bokhttp\b/i,En)},windows:{phone:de(Fe,En),tablet:de(ue,En),device:de(Fe,En)||de(ue,En)},other:{blackberry:de(et,En),blackberry10:de(he,En),opera:de(J,En),firefox:de($,En),chrome:de(Y,En),device:de(et,En)||de(he,En)||de(J,En)||de($,En)||de(Y,En)},any:null,phone:null,tablet:null};return Wt.any=Wt.apple.device||Wt.android.device||Wt.windows.device||Wt.other.device,Wt.phone=Wt.apple.phone||Wt.android.phone||Wt.windows.phone,Wt.tablet=Wt.apple.tablet||Wt.android.tablet||Wt.windows.tablet,Wt}var Ce=Object(s.a)(Object(s.a)({},be()),{},{isMobile:be}),Be=Ce;function fe(){}function we(qr,En,Yn){var zt=En||"";return qr.key||"".concat(zt,"item_").concat(Yn)}function Re(qr){return"".concat(qr,"-menu-")}function rt(qr,En){var Yn=-1;m.Children.forEach(qr,function(zt){Yn+=1,zt&&zt.type&&zt.type.isMenuItemGroup?m.Children.forEach(zt.props.children,function(Ot){Yn+=1,En(Ot,Yn)}):En(zt,Yn)})}function St(qr,En,Yn){if(!qr||Yn.find)return;m.Children.forEach(qr,function(zt){if(zt){var Ot=zt.type;if(!Ot||!(Ot.isSubMenu||Ot.isMenuItem||Ot.isMenuItemGroup))return;En.indexOf(zt.key)!==-1?Yn.find=!0:zt.props.children&&St(zt.props.children,En,Yn)}})}var ft=["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"],He=function(En){var Yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zt=En&&typeof En.getBoundingClientRect=="function"&&En.getBoundingClientRect().width;if(zt){if(Yn){var Ot=getComputedStyle(En),kt=Ot.marginLeft,Bt=Ot.marginRight;zt+=+kt.replace("px","")+ +Bt.replace("px","")}zt=+zt.toFixed(6)}return zt||0},er=function(En,Yn,zt){En&&Object(se.a)(En.style)==="object"&&(En.style[Yn]=zt)},ct=function(){return Be.any},Kt=n("i8i4"),fr=n("uciX"),Gt=n("wgJM"),Pt=n("8XRh"),Xt={adjustX:1,adjustY:1},Ge={topLeft:{points:["bl","tl"],overflow:Xt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Xt,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Xt,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Xt,offset:[4,0]}},pe={topLeft:{points:["bl","tl"],overflow:Xt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Xt,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Xt,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Xt,offset:[4,0]}},oe=Ge,lt=0,qe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ge=function(En,Yn,zt){var Ot=Re(Yn),kt=En.getState();En.setState({defaultActiveFirst:Object(s.a)(Object(s.a)({},kt.defaultActiveFirst),{},Object(p.a)({},Ot,zt))})},Ht=function(qr){Object(g.a)(Yn,qr);var En=Object(A.a)(Yn);function Yn(zt){var Ot;Object(c.a)(this,Yn),Ot=En.call(this,zt),Ot.onDestroy=function(yr){Ot.props.onDestroy(yr)},Ot.onKeyDown=function(yr){var br=yr.keyCode,Mr=Ot.menuInstance,Gn=Ot.props.store,Mn=Ot.getVisible();if(br===k.a.ENTER)return Ot.onTitleClick(yr),ge(Gn,Ot.props.eventKey,!0),!0;if(br===k.a.RIGHT)return Mn?Mr.onKeyDown(yr):(Ot.triggerOpenChange(!0),ge(Gn,Ot.props.eventKey,!0)),!0;if(br===k.a.LEFT){var di;if(Mn)di=Mr.onKeyDown(yr);else return;return di||(Ot.triggerOpenChange(!1),di=!0),di}return Mn&&(br===k.a.UP||br===k.a.DOWN)?Mr.onKeyDown(yr):void 0},Ot.onOpenChange=function(yr){Ot.props.onOpenChange(yr)},Ot.onPopupVisibleChange=function(yr){Ot.triggerOpenChange(yr,yr?"mouseenter":"mouseleave")},Ot.onMouseEnter=function(yr){var br=Ot.props,Mr=br.eventKey,Gn=br.onMouseEnter,Mn=br.store;ge(Mn,Ot.props.eventKey,!1),Gn({key:Mr,domEvent:yr})},Ot.onMouseLeave=function(yr){var br=Ot.props,Mr=br.parentMenu,Gn=br.eventKey,Mn=br.onMouseLeave;Mr.subMenuInstance=Object(z.a)(Ot),Mn({key:Gn,domEvent:yr})},Ot.onTitleMouseEnter=function(yr){var br=Ot.props,Mr=br.eventKey,Gn=br.onItemHover,Mn=br.onTitleMouseEnter;Gn({key:Mr,hover:!0}),Mn({key:Mr,domEvent:yr})},Ot.onTitleMouseLeave=function(yr){var br=Ot.props,Mr=br.parentMenu,Gn=br.eventKey,Mn=br.onItemHover,di=br.onTitleMouseLeave;Mr.subMenuInstance=Object(z.a)(Ot),Mn({key:Gn,hover:!1}),di({key:Gn,domEvent:yr})},Ot.onTitleClick=function(yr){var br=Object(z.a)(Ot),Mr=br.props;if(Mr.onTitleClick({key:Mr.eventKey,domEvent:yr}),Mr.triggerSubMenuAction==="hover")return;Ot.triggerOpenChange(!Ot.getVisible(),"click"),ge(Mr.store,Ot.props.eventKey,!1)},Ot.onSubMenuClick=function(yr){typeof Ot.props.onClick=="function"&&Ot.props.onClick(Ot.addKeyPath(yr))},Ot.onSelect=function(yr){Ot.props.onSelect(yr)},Ot.onDeselect=function(yr){Ot.props.onDeselect(yr)},Ot.getPrefixCls=function(){return"".concat(Ot.props.rootPrefixCls,"-submenu")},Ot.getActiveClassName=function(){return"".concat(Ot.getPrefixCls(),"-active")},Ot.getDisabledClassName=function(){return"".concat(Ot.getPrefixCls(),"-disabled")},Ot.getSelectedClassName=function(){return"".concat(Ot.getPrefixCls(),"-selected")},Ot.getOpenClassName=function(){return"".concat(Ot.props.rootPrefixCls,"-submenu-open")},Ot.getVisible=function(){return Ot.state.isOpen},Ot.getMode=function(){return Ot.state.mode},Ot.saveMenuInstance=function(yr){Ot.menuInstance=yr},Ot.addKeyPath=function(yr){return Object(s.a)(Object(s.a)({},yr),{},{keyPath:(yr.keyPath||[]).concat(Ot.props.eventKey)})},Ot.triggerOpenChange=function(yr,br){var Mr=Ot.props.eventKey,Gn=function(){Ot.onOpenChange({key:Mr,item:Object(z.a)(Ot),trigger:br,open:yr})};br==="mouseenter"?Ot.mouseenterTimeout=setTimeout(function(){Gn()},0):Gn()},Ot.isChildrenSelected=function(){var yr={find:!1};return St(Ot.props.children,Ot.props.selectedKeys,yr),yr.find},Ot.isInlineMode=function(){return Ot.getMode()==="inline"},Ot.adjustWidth=function(){if(!Ot.subMenuTitle||!Ot.menuInstance)return;var yr=Kt.findDOMNode(Ot.menuInstance);if(yr.offsetWidth>=Ot.subMenuTitle.offsetWidth)return;yr.style.minWidth="".concat(Ot.subMenuTitle.offsetWidth,"px")},Ot.saveSubMenuTitle=function(yr){Ot.subMenuTitle=yr},Ot.getBaseProps=function(){var yr=Object(z.a)(Ot),br=yr.props,Mr=Ot.getMode();return{mode:Mr==="horizontal"?"vertical":Mr,visible:Ot.getVisible(),level:br.level+1,inlineIndent:br.inlineIndent,focusable:!1,onClick:Ot.onSubMenuClick,onSelect:Ot.onSelect,onDeselect:Ot.onDeselect,onDestroy:Ot.onDestroy,selectedKeys:br.selectedKeys,eventKey:"".concat(br.eventKey,"-menu-"),openKeys:br.openKeys,motion:br.motion,onOpenChange:Ot.onOpenChange,subMenuOpenDelay:br.subMenuOpenDelay,parentMenu:Object(z.a)(Ot),subMenuCloseDelay:br.subMenuCloseDelay,forceSubMenuRender:br.forceSubMenuRender,triggerSubMenuAction:br.triggerSubMenuAction,builtinPlacements:br.builtinPlacements,defaultActiveFirst:br.store.getState().defaultActiveFirst[Re(br.eventKey)],multiple:br.multiple,prefixCls:br.rootPrefixCls,id:Ot.internalMenuId,manualRef:Ot.saveMenuInstance,itemIcon:br.itemIcon,expandIcon:br.expandIcon,direction:br.direction}},Ot.getMotion=function(yr,br){var Mr=Object(z.a)(Ot),Gn=Mr.haveRendered,Mn=Ot.props,di=Mn.motion,vn=Mn.rootPrefixCls,Ur=Object(s.a)(Object(s.a)({},di),{},{leavedClassName:"".concat(vn,"-hidden"),removeOnLeave:!1,motionAppear:Gn||!br||yr!=="inline"});return Ur};var kt=zt.store,Bt=zt.eventKey,Wt=kt.getState(),Lt=Wt.defaultActiveFirst;Ot.isRootMenu=!1;var dr=!1;return Lt&&(dr=Lt[Bt]),ge(kt,Bt,dr),Ot.state={mode:zt.mode,isOpen:zt.isOpen},Ot}return Object(h.a)(Yn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ot=this,kt=this.props,Bt=kt.mode,Wt=kt.parentMenu,Lt=kt.manualRef,dr=kt.isOpen,yr=function(){Ot.setState({mode:Bt,isOpen:dr})},br=dr!==this.state.isOpen,Mr=Bt!==this.state.mode;if((Mr||br)&&(Gt.a.cancel(this.updateStateRaf),Mr?this.updateStateRaf=Object(Gt.a)(yr):yr()),Lt&&Lt(this),Bt!=="horizontal"||!(Wt==null?void 0:Wt.isRootMenu)||!dr)return;this.minWidthTimeout=setTimeout(function(){return Ot.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Ot=this.props,kt=Ot.onDestroy,Bt=Ot.eventKey;kt&&kt(Bt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Gt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Ot,kt){var Bt=this.getBaseProps();return m.createElement(Xn,Object(K.a)({},Bt,{id:this.internalMenuId,className:Ot,style:kt}),this.props.children)}},{key:"renderChildren",value:function(){var Ot=this,kt=this.getBaseProps(),Bt=kt.mode,Wt=kt.visible,Lt=kt.forceSubMenuRender,dr=kt.direction,yr=this.getMotion(Bt,Wt);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Wt||Lt,!this.haveOpened)return m.createElement("div",null);var br=t()("".concat(kt.prefixCls,"-sub"),Object(p.a)({},"".concat(kt.prefixCls,"-rtl"),dr==="rtl"));return this.isInlineMode()?m.createElement(Pt.b,Object(K.a)({visible:kt.visible,forceRender:Lt},yr),function(Mr){var Gn=Mr.className,Mn=Mr.style,di=t()(br,Gn);return Ot.renderPopupMenu(di,Mn)}):this.renderPopupMenu(br)}},{key:"render",value:function(){var Ot,kt,Bt,Wt=Object(s.a)({},this.props),Lt=this.getVisible(),dr=this.getPrefixCls(),yr=this.isInlineMode(),br=this.getMode(),Mr=t()(dr,"".concat(dr,"-").concat(br),(Ot={},Object(p.a)(Ot,Wt.className,!!Wt.className),Object(p.a)(Ot,this.getOpenClassName(),Lt),Object(p.a)(Ot,this.getActiveClassName(),Wt.active||Lt&&!yr),Object(p.a)(Ot,this.getDisabledClassName(),Wt.disabled),Object(p.a)(Ot,this.getSelectedClassName(),this.isChildrenSelected()),Ot));this.internalMenuId||(Wt.eventKey?this.internalMenuId="".concat(Wt.eventKey,"$Menu"):(lt+=1,this.internalMenuId="$__$".concat(lt,"$Menu")));var Gn={},Mn={},di={};Wt.disabled||(Gn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Mn={onClick:this.onTitleClick},di={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var vn={},Ur=Wt.direction,In=Ur==="rtl";yr&&(In?vn.paddingRight=Wt.inlineIndent*Wt.level:vn.paddingLeft=Wt.inlineIndent*Wt.level);var Qn={};this.getVisible()&&(Qn={"aria-owns":this.internalMenuId});var qn=null;br!=="horizontal"&&(qn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(qn=m.createElement(this.props.expandIcon,Object(s.a)({},this.props))));var oi=m.createElement("div",Object(K.a)({ref:this.saveSubMenuTitle,style:vn,className:"".concat(dr,"-title"),role:"button"},di,Mn,{"aria-expanded":Lt},Qn,{"aria-haspopup":"true",title:typeof Wt.title=="string"?Wt.title:void 0}),Wt.title,qn||m.createElement("i",{className:"".concat(dr,"-arrow")})),Ti=this.renderChildren(),ki=((kt=Wt.parentMenu)===null||kt===void 0?void 0:kt.isRootMenu)?Wt.parentMenu.props.getPopupContainer:function(xr){return xr.parentNode},Ri=qe[br],oa=Wt.popupOffset?{offset:Wt.popupOffset}:{},ma=t()((Bt={},Object(p.a)(Bt,Wt.popupClassName,Wt.popupClassName&&!yr),Object(p.a)(Bt,"".concat(dr,"-rtl"),In),Bt)),aa=Wt.disabled,ba=Wt.triggerSubMenuAction,yi=Wt.subMenuOpenDelay,kn=Wt.forceSubMenuRender,ji=Wt.subMenuCloseDelay,ha=Wt.builtinPlacements;ft.forEach(function(xr){return delete Wt[xr]}),delete Wt.onClick;var ta=In?Object(s.a)(Object(s.a)({},pe),ha):Object(s.a)(Object(s.a)({},Ge),ha);delete Wt.direction;var ra=this.getBaseProps(),Ir=yr?null:this.getMotion(ra.mode,ra.visible);return m.createElement("li",Object(K.a)({},Wt,Gn,{className:Mr,role:"menuitem"}),m.createElement(fr.a,{prefixCls:dr,popupClassName:t()("".concat(dr,"-popup"),ma),getPopupContainer:ki,builtinPlacements:ta,popupPlacement:Ri,popupVisible:yr?!1:Lt,popupAlign:oa,popup:yr?null:Ti,action:aa||yr?[]:[ba],mouseEnterDelay:yi,mouseLeaveDelay:ji,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:kn,popupMotion:Ir},oi),yr?Ti:null)}}]),Yn}(m.Component);Ht.defaultProps={onMouseEnter:fe,onMouseLeave:fe,onTitleMouseEnter:fe,onTitleMouseLeave:fe,onTitleClick:fe,manualRef:fe,mode:"vertical",title:""};var vr=Object(V.b)(function(qr,En){var Yn=qr.openKeys,zt=qr.activeKey,Ot=qr.selectedKeys,kt=En.eventKey,Bt=En.subMenuKey;return{isOpen:Yn.indexOf(kt)>-1,active:zt[Bt]===kt,selectedKeys:Ot}})(Ht);vr.isSubMenu=!0;var At=vr,ir="menuitem-overflowed",lr=.5,dn=function(qr){Object(g.a)(Yn,qr);var En=Object(A.a)(Yn);function Yn(){var zt;return Object(c.a)(this,Yn),zt=En.apply(this,arguments),zt.resizeObserver=null,zt.mutationObserver=null,zt.originalTotalWidth=0,zt.overflowedItems=[],zt.menuItemSizes=[],zt.cancelFrameId=null,zt.state={lastVisibleIndex:void 0},zt.childRef=m.createRef(),zt.getMenuItemNodes=function(){var Ot=zt.props.prefixCls,kt=zt.childRef.current;return kt?[].slice.call(kt.children).filter(function(Bt){return Bt.className.split(" ").indexOf("".concat(Ot,"-overflowed-submenu"))<0}):[]},zt.getOverflowedSubMenuItem=function(Ot,kt,Bt){var Wt=zt.props,Lt=Wt.overflowedIndicator,dr=Wt.level,yr=Wt.mode,br=Wt.prefixCls,Mr=Wt.theme;if(dr!==1||yr!=="horizontal")return null;var Gn=zt.props.children[0],Mn=Gn.props,di=Mn.children,vn=Mn.title,Ur=Mn.style,In=Object(u.a)(Mn,["children","title","style"]),Qn=Object(s.a)({},Ur),qn="".concat(Ot,"-overflowed-indicator"),oi="".concat(Ot,"-overflowed-indicator");kt.length===0&&Bt!==!0?Qn=Object(s.a)(Object(s.a)({},Qn),{},{display:"none"}):Bt&&(Qn=Object(s.a)(Object(s.a)({},Qn),{},{visibility:"hidden",position:"absolute"}),qn="".concat(qn,"-placeholder"),oi="".concat(oi,"-placeholder"));var Ti=Mr?"".concat(br,"-").concat(Mr):"",ki={};return ft.forEach(function(Ri){In[Ri]!==void 0&&(ki[Ri]=In[Ri])}),m.createElement(At,Object(K.a)({title:Lt,className:"".concat(br,"-overflowed-submenu"),popupClassName:Ti},ki,{key:qn,eventKey:oi,disabled:!1,style:Qn}),kt)},zt.setChildrenWidthAndResize=function(){if(zt.props.mode!=="horizontal")return;var Ot=zt.childRef.current;if(!Ot)return;var kt=Ot.children;if(!kt||kt.length===0)return;var Bt=Ot.children[kt.length-1];er(Bt,"display","inline-block");var Wt=zt.getMenuItemNodes(),Lt=Wt.filter(function(dr){return dr.className.split(" ").indexOf(ir)>=0});Lt.forEach(function(dr){er(dr,"display","inline-block")}),zt.menuItemSizes=Wt.map(function(dr){return He(dr,!0)}),Lt.forEach(function(dr){er(dr,"display","none")}),zt.overflowedIndicatorWidth=He(Ot.children[Ot.children.length-1],!0),zt.originalTotalWidth=zt.menuItemSizes.reduce(function(dr,yr){return dr+yr},0),zt.handleResize(),er(Bt,"display","none")},zt.handleResize=function(){if(zt.props.mode!=="horizontal")return;var Ot=zt.childRef.current;if(!Ot)return;var kt=He(Ot);zt.overflowedItems=[];var Bt=0,Wt;zt.originalTotalWidth>kt+lr&&(Wt=-1,zt.menuItemSizes.forEach(function(Lt){Bt+=Lt,Bt+zt.overflowedIndicatorWidth<=kt&&(Wt+=1)})),zt.setState({lastVisibleIndex:Wt})},zt}return Object(h.a)(Yn,[{key:"componentDidMount",value:function(){var Ot=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var kt=this.childRef.current;if(!kt)return;this.resizeObserver=new C.default(function(Bt){Bt.forEach(function(){var Wt=Ot.cancelFrameId;cancelAnimationFrame(Wt),Ot.cancelFrameId=requestAnimationFrame(Ot.setChildrenWidthAndResize)})}),[].slice.call(kt.children).concat(kt).forEach(function(Bt){Ot.resizeObserver.observe(Bt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Ot.resizeObserver.disconnect(),[].slice.call(kt.children).concat(kt).forEach(function(Bt){Ot.resizeObserver.observe(Bt)}),Ot.setChildrenWidthAndResize()}),this.mutationObserver.observe(kt,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Ot){var kt=this,Bt=this.state.lastVisibleIndex;return(Ot||[]).reduce(function(Wt,Lt,dr){var yr=Lt;if(kt.props.mode==="horizontal"){var br=kt.getOverflowedSubMenuItem(Lt.props.eventKey,[]);Bt!==void 0&&kt.props.className.indexOf("".concat(kt.props.prefixCls,"-root"))!==-1&&(dr>Bt&&(yr=m.cloneElement(Lt,{style:{display:"none"},eventKey:"".concat(Lt.props.eventKey,"-hidden"),className:"".concat(ir)})),dr===Bt+1&&(kt.overflowedItems=Ot.slice(Bt+1).map(function(Gn){return m.cloneElement(Gn,{key:Gn.props.eventKey,mode:"vertical-left"})}),br=kt.getOverflowedSubMenuItem(Lt.props.eventKey,kt.overflowedItems)));var Mr=[].concat(Object(l.a)(Wt),[br,yr]);return dr===Ot.length-1&&Mr.push(kt.getOverflowedSubMenuItem(Lt.props.eventKey,[],!0)),Mr}return[].concat(Object(l.a)(Wt),[yr])},[])}},{key:"render",value:function(){var Ot=this.props,kt=Ot.visible,Bt=Ot.prefixCls,Wt=Ot.overflowedIndicator,Lt=Ot.mode,dr=Ot.level,yr=Ot.tag,br=Ot.children,Mr=Ot.theme,Gn=Object(u.a)(Ot,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Mn=yr;return m.createElement(Mn,Object(K.a)({ref:this.childRef},Gn),this.renderChildren(br))}}]),Yn}(m.Component);dn.defaultProps={tag:"div",className:""};var Ft=dn;function ur(qr){return qr.length?qr.every(function(En){return!!En.props.disabled}):!0}function Jt(qr,En,Yn){var zt=qr.getState();qr.setState({activeKey:Object(s.a)(Object(s.a)({},zt.activeKey),{},Object(p.a)({},En,Yn))})}function pt(qr){return qr.eventKey||"0-menu-"}function at(qr,En){var Yn=En,zt=qr.children,Ot=qr.eventKey;if(Yn){var kt;if(rt(zt,function(Bt,Wt){Bt&&Bt.props&&!Bt.props.disabled&&Yn===we(Bt,Ot,Wt)&&(kt=!0)}),kt)return Yn}return Yn=null,qr.defaultActiveFirst&&rt(zt,function(Bt,Wt){!Yn&&Bt&&!Bt.props.disabled&&(Yn=we(Bt,Ot,Wt))}),Yn}function Pr(qr){if(!qr)return;var En=this.instanceArray.indexOf(qr);En!==-1?this.instanceArray[En]=qr:this.instanceArray.push(qr)}var un=function(qr){Object(g.a)(Yn,qr);var En=Object(A.a)(Yn);function Yn(zt){var Ot;return Object(c.a)(this,Yn),Ot=En.call(this,zt),Ot.onKeyDown=function(kt,Bt){var Wt=kt.keyCode,Lt;if(Ot.getFlatInstanceArray().forEach(function(yr){yr&&yr.props.active&&yr.onKeyDown&&(Lt=yr.onKeyDown(kt))}),Lt)return 1;var dr=null;return(Wt===k.a.UP||Wt===k.a.DOWN)&&(dr=Ot.step(Wt===k.a.UP?-1:1)),dr?(kt.preventDefault(),Jt(Ot.props.store,pt(Ot.props),dr.props.eventKey),typeof Bt=="function"&&Bt(dr),1):void 0},Ot.onItemHover=function(kt){var Bt=kt.key,Wt=kt.hover;Jt(Ot.props.store,pt(Ot.props),Wt?Bt:null)},Ot.onDeselect=function(kt){Ot.props.onDeselect(kt)},Ot.onSelect=function(kt){Ot.props.onSelect(kt)},Ot.onClick=function(kt){Ot.props.onClick(kt)},Ot.onOpenChange=function(kt){Ot.props.onOpenChange(kt)},Ot.onDestroy=function(kt){Ot.props.onDestroy(kt)},Ot.getFlatInstanceArray=function(){return Ot.instanceArray},Ot.step=function(kt){var Bt=Ot.getFlatInstanceArray(),Wt=Ot.props.store.getState().activeKey[pt(Ot.props)],Lt=Bt.length;if(!Lt)return null;kt<0&&(Bt=Bt.concat().reverse());var dr=-1;if(Bt.every(function(Gn,Mn){return Gn&&Gn.props.eventKey===Wt?(dr=Mn,!1):!0}),!Ot.props.defaultActiveFirst&&dr!==-1&&ur(Bt.slice(dr,Lt-1)))return;var yr=(dr+1)%Lt,br=yr;do{var Mr=Bt[br];if(!Mr||Mr.props.disabled)br=(br+1)%Lt;else return Mr}while(br!==yr);return null},Ot.renderCommonMenuItem=function(kt,Bt,Wt){var Lt=Ot.props.store.getState(),dr=Object(z.a)(Ot),yr=dr.props,br=we(kt,yr.eventKey,Bt),Mr=kt.props;if(!Mr||typeof kt.type=="string")return kt;var Gn=br===Lt.activeKey,Mn=Object(s.a)(Object(s.a)({mode:Mr.mode||yr.mode,level:yr.level,inlineIndent:yr.inlineIndent,renderMenuItem:Ot.renderMenuItem,rootPrefixCls:yr.prefixCls,index:Bt,parentMenu:yr.parentMenu,manualRef:Mr.disabled?void 0:Object(G.a)(kt.ref,Pr.bind(Object(z.a)(Ot))),eventKey:br,active:!Mr.disabled&&Gn,multiple:yr.multiple,onClick:function(vn){(Mr.onClick||fe)(vn),Ot.onClick(vn)},onItemHover:Ot.onItemHover,motion:yr.motion,subMenuOpenDelay:yr.subMenuOpenDelay,subMenuCloseDelay:yr.subMenuCloseDelay,forceSubMenuRender:yr.forceSubMenuRender,onOpenChange:Ot.onOpenChange,onDeselect:Ot.onDeselect,onSelect:Ot.onSelect,builtinPlacements:yr.builtinPlacements,itemIcon:Mr.itemIcon||Ot.props.itemIcon,expandIcon:Mr.expandIcon||Ot.props.expandIcon},Wt),{},{direction:yr.direction});return(yr.mode==="inline"||ct())&&(Mn.triggerSubMenuAction="click"),m.cloneElement(kt,Object(s.a)(Object(s.a)({},Mn),{},{key:br||Bt}))},Ot.renderMenuItem=function(kt,Bt,Wt){if(!kt)return null;var Lt=Ot.props.store.getState(),dr={openKeys:Lt.openKeys,selectedKeys:Lt.selectedKeys,triggerSubMenuAction:Ot.props.triggerSubMenuAction,subMenuKey:Wt};return Ot.renderCommonMenuItem(kt,Bt,dr)},zt.store.setState({activeKey:Object(s.a)(Object(s.a)({},zt.store.getState().activeKey),{},Object(p.a)({},zt.eventKey,at(zt,zt.activeKey)))}),Ot.instanceArray=[],Ot}return Object(h.a)(Yn,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Ot){return this.props.visible||Ot.visible||this.props.className!==Ot.className||!q()(this.props.style,Ot.style)}},{key:"componentDidUpdate",value:function(Ot){var kt=this.props,Bt="activeKey"in kt?kt.activeKey:kt.store.getState().activeKey[pt(kt)],Wt=at(kt,Bt);if(Wt!==Bt)Jt(kt.store,pt(kt),Wt);else if("activeKey"in Ot){var Lt=at(Ot,Ot.activeKey);Wt!==Lt&&Jt(kt.store,pt(kt),Wt)}}},{key:"render",value:function(){var Ot=this,kt=Object(K.a)({},this.props);this.instanceArray=[];var Bt=t()(kt.prefixCls,kt.className,"".concat(kt.prefixCls,"-").concat(kt.mode)),Wt={className:Bt,role:kt.role||"menu"};kt.id&&(Wt.id=kt.id),kt.focusable&&(Wt.tabIndex=0,Wt.onKeyDown=this.onKeyDown);var Lt=kt.prefixCls,dr=kt.eventKey,yr=kt.visible,br=kt.level,Mr=kt.mode,Gn=kt.overflowedIndicator,Mn=kt.theme;return ft.forEach(function(di){return delete kt[di]}),delete kt.onClick,m.createElement(Ft,Object(K.a)({},kt,{prefixCls:Lt,mode:Mr,tag:"ul",level:br,theme:Mn,visible:yr,overflowedIndicator:Gn},Wt),Object(o.a)(kt.children).map(function(di,vn){return Ot.renderMenuItem(di,vn,dr||"0-menu-")}))}}]),Yn}(m.Component);un.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:fe};var _n=Object(V.b)()(un),Xn=_n;function xi(qr,En,Yn){var zt=qr.prefixCls,Ot=qr.motion,kt=qr.defaultMotions,Bt=kt===void 0?{}:kt,Wt=qr.openAnimation,Lt=qr.openTransitionName,dr=En.switchingModeFromInline;if(Ot)return Ot;if(Object(se.a)(Wt)==="object"&&Wt)Object(S.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Wt=="string")return{motionName:"".concat(zt,"-open-").concat(Wt)};if(Lt)return{motionName:Lt};var yr=Bt[Yn];return yr||(dr?null:Bt.other)}var Pn=function(qr){Object(g.a)(Yn,qr);var En=Object(A.a)(Yn);function Yn(zt){var Ot;Object(c.a)(this,Yn),Ot=En.call(this,zt),Ot.onSelect=function(Wt){var Lt=Object(z.a)(Ot),dr=Lt.props;if(dr.selectable){var yr=Ot.store.getState(),br=yr.selectedKeys,Mr=Wt.key;dr.multiple?br=br.concat([Mr]):br=[Mr],"selectedKeys"in dr||Ot.store.setState({selectedKeys:br}),dr.onSelect(Object(s.a)(Object(s.a)({},Wt),{},{selectedKeys:br}))}},Ot.onClick=function(Wt){var Lt=Ot.getRealMenuMode(),dr=Object(z.a)(Ot),yr=dr.store,br=dr.props.onOpenChange;Lt!=="inline"&&!("openKeys"in Ot.props)&&(yr.setState({openKeys:[]}),br([])),Ot.props.onClick(Wt)},Ot.onKeyDown=function(Wt,Lt){Ot.innerMenu.getWrappedInstance().onKeyDown(Wt,Lt)},Ot.onOpenChange=function(Wt){var Lt=Object(z.a)(Ot),dr=Lt.props,yr=Ot.store.getState().openKeys.concat(),br=!1,Mr=function(Mn){var di=!1;if(Mn.open)di=yr.indexOf(Mn.key)===-1,di&&yr.push(Mn.key);else{var vn=yr.indexOf(Mn.key);di=vn!==-1,di&&yr.splice(vn,1)}br=br||di};Array.isArray(Wt)?Wt.forEach(Mr):Mr(Wt),br&&("openKeys"in Ot.props||Ot.store.setState({openKeys:yr}),dr.onOpenChange(yr))},Ot.onDeselect=function(Wt){var Lt=Object(z.a)(Ot),dr=Lt.props;if(dr.selectable){var yr=Ot.store.getState().selectedKeys.concat(),br=Wt.key,Mr=yr.indexOf(br);Mr!==-1&&yr.splice(Mr,1),"selectedKeys"in dr||Ot.store.setState({selectedKeys:yr}),dr.onDeselect(Object(s.a)(Object(s.a)({},Wt),{},{selectedKeys:yr}))}},Ot.onMouseEnter=function(Wt){Ot.restoreModeVerticalFromInline();var Lt=Ot.props.onMouseEnter;Lt&&Lt(Wt)},Ot.onTransitionEnd=function(Wt){var Lt=Wt.propertyName==="width"&&Wt.target===Wt.currentTarget,dr=Wt.target.className,yr=Object.prototype.toString.call(dr)==="[object SVGAnimatedString]"?dr.animVal:dr,br=Wt.propertyName==="font-size"&&yr.indexOf("anticon")>=0;(Lt||br)&&Ot.restoreModeVerticalFromInline()},Ot.setInnerMenu=function(Wt){Ot.innerMenu=Wt},Ot.isRootMenu=!0;var kt=zt.defaultSelectedKeys,Bt=zt.defaultOpenKeys;return"selectedKeys"in zt&&(kt=zt.selectedKeys||[]),"openKeys"in zt&&(Bt=zt.openKeys||[]),Ot.store=Object(V.c)({selectedKeys:kt,openKeys:Bt,activeKey:{"0-menu-":at(zt,zt.activeKey)}}),Ot.state={switchingModeFromInline:!1,prevProps:zt,inlineOpenKeys:[],store:Ot.store},Ot}return Object(h.a)(Yn,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Ot){var kt=this.props,Bt=kt.siderCollapsed,Wt=kt.inlineCollapsed,Lt=kt.onOpenChange;(!Ot.inlineCollapsed&&Wt||!Ot.siderCollapsed&&Bt)&&Lt([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Ot=this.props.collapsedWidth,kt=this.store,Bt=this.prevOpenKeys,Wt=this.getInlineCollapsed()&&(Ot===0||Ot==="0"||Ot==="0px");Wt?(this.prevOpenKeys=kt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Bt&&(this.store.setState({openKeys:Bt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Ot=this.props.mode,kt=this.state.switchingModeFromInline,Bt=this.getInlineCollapsed();return kt&&Bt?"inline":Bt?"vertical":Ot}},{key:"getInlineCollapsed",value:function(){var Ot=this.props,kt=Ot.inlineCollapsed,Bt=Ot.siderCollapsed;return Bt!==void 0?Bt:kt}},{key:"restoreModeVerticalFromInline",value:function(){var Ot=this.state.switchingModeFromInline;Ot&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Ot=Object(s.a)({},Object(Q.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),kt=this.getRealMenuMode();return Ot.className+=" ".concat(Ot.prefixCls,"-root"),Ot.direction==="rtl"&&(Ot.className+=" ".concat(Ot.prefixCls,"-rtl")),Ot=Object(s.a)(Object(s.a)({},Ot),{},{mode:kt,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:xi(this.props,this.state,kt)}),delete Ot.openAnimation,delete Ot.openTransitionName,m.createElement(V.a,{store:this.store},m.createElement(Xn,Object(K.a)({},Ot,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Ot,kt){var Bt=kt.prevProps,Wt=kt.store,Lt=Wt.getState(),dr={},yr={prevProps:Ot};return Bt.mode==="inline"&&Ot.mode!=="inline"&&(yr.switchingModeFromInline=!0),"openKeys"in Ot?dr.openKeys=Ot.openKeys||[]:((Ot.inlineCollapsed&&!Bt.inlineCollapsed||Ot.siderCollapsed&&!Bt.siderCollapsed)&&(yr.switchingModeFromInline=!0,yr.inlineOpenKeys=Lt.openKeys,dr.openKeys=[]),(!Ot.inlineCollapsed&&Bt.inlineCollapsed||!Ot.siderCollapsed&&Bt.siderCollapsed)&&(dr.openKeys=kt.inlineOpenKeys,yr.inlineOpenKeys=[])),Object.keys(dr).length&&Wt.setState(dr),yr}}]),Yn}(m.Component);Pn.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:m.createElement("span",null,"\xB7\xB7\xB7")};var Un=Pn,$t=function(qr){Object(g.a)(Yn,qr);var En=Object(A.a)(Yn);function Yn(){var zt;return Object(c.a)(this,Yn),zt=En.apply(this,arguments),zt.onKeyDown=function(Ot){var kt=Ot.keyCode;return kt===k.a.ENTER?(zt.onClick(Ot),!0):void 0},zt.onMouseLeave=function(Ot){var kt=zt.props,Bt=kt.eventKey,Wt=kt.onItemHover,Lt=kt.onMouseLeave;Wt({key:Bt,hover:!1}),Lt({key:Bt,domEvent:Ot})},zt.onMouseEnter=function(Ot){var kt=zt.props,Bt=kt.eventKey,Wt=kt.onItemHover,Lt=kt.onMouseEnter;Wt({key:Bt,hover:!0}),Lt({key:Bt,domEvent:Ot})},zt.onClick=function(Ot){var kt=zt.props,Bt=kt.eventKey,Wt=kt.multiple,Lt=kt.onClick,dr=kt.onSelect,yr=kt.onDeselect,br=kt.isSelected,Mr={key:Bt,keyPath:[Bt],item:Object(z.a)(zt),domEvent:Ot};Lt(Mr),Wt?br?yr(Mr):dr(Mr):br||dr(Mr)},zt.saveNode=function(Ot){zt.node=Ot},zt}return Object(h.a)(Yn,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Ot=this.props;Ot.onDestroy&&Ot.onDestroy(Ot.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Ot,kt=Object(s.a)({},this.props),Bt=t()(this.getPrefixCls(),kt.className,(Ot={},Object(p.a)(Ot,this.getActiveClassName(),!kt.disabled&&kt.active),Object(p.a)(Ot,this.getSelectedClassName(),kt.isSelected),Object(p.a)(Ot,this.getDisabledClassName(),kt.disabled),Ot)),Wt=Object(s.a)(Object(s.a)({},kt.attribute),{},{title:typeof kt.title=="string"?kt.title:void 0,className:Bt,role:kt.role||"menuitem","aria-disabled":kt.disabled});kt.role==="option"?Wt=Object(s.a)(Object(s.a)({},Wt),{},{role:"option","aria-selected":kt.isSelected}):(kt.role===null||kt.role==="none")&&(Wt.role="none");var Lt={onClick:kt.disabled?null:this.onClick,onMouseLeave:kt.disabled?null:this.onMouseLeave,onMouseEnter:kt.disabled?null:this.onMouseEnter},dr=Object(s.a)({},kt.style);kt.mode==="inline"&&(kt.direction==="rtl"?dr.paddingRight=kt.inlineIndent*kt.level:dr.paddingLeft=kt.inlineIndent*kt.level),ft.forEach(function(br){return delete kt[br]}),delete kt.direction;var yr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(yr=m.createElement(this.props.itemIcon,this.props)),m.createElement("li",Object(K.a)({},Object(Q.a)(kt,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Wt,Lt,{style:dr,ref:this.saveNode}),kt.children,yr)}}]),Yn}(m.Component);$t.isMenuItem=!0,$t.defaultProps={onSelect:fe,onMouseEnter:fe,onMouseLeave:fe,manualRef:fe};var xt=Object(V.b)(function(qr,En){var Yn=qr.activeKey,zt=qr.selectedKeys,Ot=En.eventKey,kt=En.subMenuKey;return{active:Yn[kt]===Ot,isSelected:Array.isArray(zt)?zt.indexOf(Ot)!==-1:zt===Ot}})($t),De=xt,ke=function(qr){Object(g.a)(Yn,qr);var En=Object(A.a)(Yn);function Yn(){var zt;return Object(c.a)(this,Yn),zt=En.apply(this,arguments),zt.renderInnerMenuItem=function(Ot){var kt=zt.props,Bt=kt.renderMenuItem,Wt=kt.index;return Bt(Ot,Wt,zt.props.subMenuKey)},zt}return Object(h.a)(Yn,[{key:"render",value:function(){var Ot=Object(K.a)({},this.props),kt=Ot.className,Bt=kt===void 0?"":kt,Wt=Ot.rootPrefixCls,Lt="".concat(Wt,"-item-group-title"),dr="".concat(Wt,"-item-group-list"),yr=Ot.title,br=Ot.children;return ft.forEach(function(Mr){return delete Ot[Mr]}),delete Ot.direction,m.createElement("li",Object(K.a)({},Ot,{onClick:function(Gn){return Gn.stopPropagation()},className:"".concat(Bt," ").concat(Wt,"-item-group")}),m.createElement("div",{className:Lt,title:typeof yr=="string"?yr:void 0},yr),m.createElement("ul",{className:dr},m.Children.map(br,this.renderInnerMenuItem)))}}]),Yn}(m.Component);ke.isMenuItemGroup=!0,ke.defaultProps={disabled:!0};var Pe=ke,tt=function(En){var Yn=En.className,zt=En.rootPrefixCls,Ot=En.style;return m.createElement("li",{className:"".concat(Yn," ").concat(zt,"-item-divider"),style:Ot})};tt.defaultProps={disabled:!0,className:"",style:{}};var yt=tt,Et=Un,Yt={adjustX:1,adjustY:1},Rr=[0,0],zr={topLeft:{points:["bl","tl"],overflow:Yt,offset:[0,-4],targetOffset:Rr},topCenter:{points:["bc","tc"],overflow:Yt,offset:[0,-4],targetOffset:Rr},topRight:{points:["br","tr"],overflow:Yt,offset:[0,-4],targetOffset:Rr},bottomLeft:{points:["tl","bl"],overflow:Yt,offset:[0,4],targetOffset:Rr},bottomCenter:{points:["tc","bc"],overflow:Yt,offset:[0,4],targetOffset:Rr},bottomRight:{points:["tr","br"],overflow:Yt,offset:[0,4],targetOffset:Rr}},hn=zr,jt=k.a.ESC,vt=k.a.TAB;function bt(qr){var En=qr.visible,Yn=qr.setTriggerVisible,zt=qr.triggerRef,Ot=qr.menuRef,kt=qr.onVisibleChange,Bt=qr.autoFocus,Wt=m.useRef(!1),Lt=function(){if(En&&zt.current){var Mr,Gn,Mn,di;(Mr=zt.current)===null||Mr===void 0||((Gn=Mr.triggerRef)===null||Gn===void 0||((Mn=Gn.current)===null||Mn===void 0||((di=Mn.focus)===null||di===void 0)))||di.call(Mn),Yn(!1),typeof kt=="function"&&kt(!1)}},dr=function(){var Mr,Gn;(Mr=Ot.current)===null||Mr===void 0||((Gn=Mr.focus)===null||Gn===void 0)||Gn.call(Mr),Wt.current=!0},yr=function(Mr){var Gn;switch(Mr.keyCode){case jt:Lt();break;case vt:!Wt.current&&((Gn=Ot.current)===null||Gn===void 0?void 0:Gn.focus)?(Mr.preventDefault(),dr()):Lt();break}};m.useEffect(function(){return En?(window.addEventListener("keydown",yr),Bt&&Object(Gt.a)(dr,3),function(){window.removeEventListener("keydown",yr),Wt.current=!1}):function(){Wt.current=!1}},[En])}var cr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function Qt(qr,En){var Yn=qr.arrow,zt=Yn===void 0?!1:Yn,Ot=qr.prefixCls,kt=Ot===void 0?"rc-dropdown":Ot,Bt=qr.transitionName,Wt=qr.animation,Lt=qr.align,dr=qr.placement,yr=dr===void 0?"bottomLeft":dr,br=qr.placements,Mr=br===void 0?hn:br,Gn=qr.getPopupContainer,Mn=qr.showAction,di=qr.hideAction,vn=qr.overlayClassName,Ur=qr.overlayStyle,In=qr.visible,Qn=qr.trigger,qn=Qn===void 0?["hover"]:Qn,oi=qr.autoFocus,Ti=Object(u.a)(qr,cr),ki=m.useState(),Ri=Object(d.a)(ki,2),oa=Ri[0],ma=Ri[1],aa="visible"in qr?In:oa,ba=m.useRef(null);m.useImperativeHandle(En,function(){return ba.current});var yi=m.useRef(null),kn="".concat(kt,"-menu");bt({visible:aa,setTriggerVisible:ma,triggerRef:ba,menuRef:yi,onVisibleChange:qr.onVisibleChange,autoFocus:oi});var ji=function(){var ln=qr.overlay,Fn;return typeof ln=="function"?Fn=ln():Fn=ln,Fn},ha=function(ln){var Fn=qr.onOverlayClick,_t=ji().props;ma(!1),Fn&&Fn(ln),_t.onClick&&_t.onClick(ln)},ta=function(ln){var Fn=qr.onVisibleChange;ma(ln),typeof Fn=="function"&&Fn(ln)},ra=function(){var ln,Fn=ji(),_t=Object(E.a)(yi,Fn.ref),Or=(ln={prefixCls:kn},Object(p.a)(ln,"data-dropdown-inject",!0),Object(p.a)(ln,"onClick",ha),Object(p.a)(ln,"ref",Object(E.c)(Fn)?_t:void 0),ln);return typeof Fn.type=="string"&&(delete Or.prefixCls,delete Or["data-dropdown-inject"]),m.createElement(m.Fragment,null,zt&&m.createElement("div",{className:"".concat(kt,"-arrow")}),m.cloneElement(Fn,Or))},Ir=function(){var ln=qr.overlay;return typeof ln=="function"?ra:ra()},xr=function(){var ln=qr.minOverlayWidthMatchTrigger,Fn=qr.alignPoint;return"minOverlayWidthMatchTrigger"in qr?ln:!Fn},Cn=function(){var ln=qr.openClassName;return ln!==void 0?ln:"".concat(kt,"-open")},mr=function(){var ln=qr.children,Fn=ln.props?ln.props:{},_t=t()(Fn.className,Cn());return aa&&ln?m.cloneElement(ln,{className:_t}):ln},kr=di;return!kr&&qn.indexOf("contextMenu")!==-1&&(kr=["click"]),m.createElement(fr.a,Object(s.a)(Object(s.a)({builtinPlacements:Mr},Ti),{},{prefixCls:kt,ref:ba,popupClassName:t()(vn,Object(p.a)({},"".concat(kt,"-show-arrow"),zt)),popupStyle:Ur,action:qn,showAction:Mn,hideAction:kr||[],popupPlacement:yr,popupAlign:Lt,popupTransitionName:Bt,popupAnimation:Wt,popupVisible:aa,stretch:xr()?"minWidth":"",popup:Ir(),onPopupVisibleChange:ta,getPopupContainer:Gn}),mr())}var Mt=m.forwardRef(Qt),tr=Mt;function Rt(qr,En){var Yn=qr.prefixCls,zt=qr.editable,Ot=qr.locale,kt=qr.style;return!zt||zt.showAdd===!1?null:m.createElement("button",{ref:En,type:"button",className:"".concat(Yn,"-nav-add"),style:kt,"aria-label":(Ot==null?void 0:Ot.addAriaLabel)||"Add tab",onClick:function(Wt){zt.onEdit("add",{event:Wt})}},zt.addIcon||"+")}var qt=m.forwardRef(Rt);function Hr(qr,En){var Yn=qr.prefixCls,zt=qr.id,Ot=qr.tabs,kt=qr.locale,Bt=qr.mobile,Wt=qr.moreIcon,Lt=Wt===void 0?"More":Wt,dr=qr.moreTransitionName,yr=qr.style,br=qr.className,Mr=qr.editable,Gn=qr.tabBarGutter,Mn=qr.rtl,di=qr.onTabClick,vn=Object(m.useState)(!1),Ur=Object(d.a)(vn,2),In=Ur[0],Qn=Ur[1],qn=Object(m.useState)(null),oi=Object(d.a)(qn,2),Ti=oi[0],ki=oi[1],Ri="".concat(zt,"-more-popup"),oa="".concat(Yn,"-dropdown"),ma=Ti!==null?"".concat(Ri,"-").concat(Ti):null,aa=kt==null?void 0:kt.dropdownAriaLabel,ba=m.createElement(Et,{onClick:function(Ir){var xr=Ir.key,Cn=Ir.domEvent;di(xr,Cn),Qn(!1)},id:Ri,tabIndex:-1,role:"listbox","aria-activedescendant":ma,selectedKeys:[Ti],"aria-label":aa!==void 0?aa:"expanded dropdown"},Ot.map(function(ra){return m.createElement(De,{key:ra.key,id:"".concat(Ri,"-").concat(ra.key),role:"option","aria-controls":zt&&"".concat(zt,"-panel-").concat(ra.key),disabled:ra.disabled},ra.tab)}));function yi(ra){for(var Ir=Ot.filter(function(Gr){return!Gr.disabled}),xr=Ir.findIndex(function(Gr){return Gr.key===Ti})||0,Cn=Ir.length,mr=0;mr<Cn;mr+=1){xr=(xr+ra+Cn)%Cn;var kr=Ir[xr];if(!kr.disabled){ki(kr.key);return}}}function kn(ra){var Ir=ra.which;if(!In){[k.a.DOWN,k.a.SPACE,k.a.ENTER].includes(Ir)&&(Qn(!0),ra.preventDefault());return}switch(Ir){case k.a.UP:yi(-1),ra.preventDefault();break;case k.a.DOWN:yi(1),ra.preventDefault();break;case k.a.ESC:Qn(!1);break;case k.a.SPACE:case k.a.ENTER:Ti!==null&&di(Ti,ra);break}}Object(m.useEffect)(function(){var ra=document.getElementById(ma);ra&&ra.scrollIntoView&&ra.scrollIntoView(!1)},[Ti]),Object(m.useEffect)(function(){In||ki(null)},[In]);var ji=Object(p.a)({},Mn?"marginLeft":"marginRight",Gn);Ot.length||(ji.visibility="hidden",ji.order=1);var ha=t()(Object(p.a)({},"".concat(oa,"-rtl"),Mn)),ta=Bt?null:m.createElement(tr,{prefixCls:oa,overlay:ba,trigger:["hover"],visible:In,transitionName:dr,onVisibleChange:Qn,overlayClassName:ha,mouseEnterDelay:.1,mouseLeaveDelay:.1},m.createElement("button",{type:"button",className:"".concat(Yn,"-nav-more"),style:ji,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Ri,id:"".concat(zt,"-more"),"aria-expanded":In,onKeyDown:kn},Lt));return m.createElement("div",{className:t()("".concat(Yn,"-nav-operations"),br),style:yr,ref:En},ta,m.createElement(qt,{prefixCls:Yn,locale:kt,editable:Mr}))}var Nr=m.forwardRef(Hr),Dr=Object(m.createContext)(null),cn=.1,An=.01,ri=20,$n=Math.pow(.995,ri);function fi(){var qr=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(qr)||/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(qr.substr(0,4)))}function _i(qr,En){var Yn=Object(m.useState)(),zt=Object(d.a)(Yn,2),Ot=zt[0],kt=zt[1],Bt=Object(m.useState)(0),Wt=Object(d.a)(Bt,2),Lt=Wt[0],dr=Wt[1],yr=Object(m.useState)(0),br=Object(d.a)(yr,2),Mr=br[0],Gn=br[1],Mn=Object(m.useState)(),di=Object(d.a)(Mn,2),vn=di[0],Ur=di[1],In=Object(m.useRef)();function Qn(aa){var ba=aa.touches[0],yi=ba.screenX,kn=ba.screenY;kt({x:yi,y:kn}),window.clearInterval(In.current)}function qn(aa){if(!Ot)return;aa.preventDefault();var ba=aa.touches[0],yi=ba.screenX,kn=ba.screenY;kt({x:yi,y:kn});var ji=yi-Ot.x,ha=kn-Ot.y;En(ji,ha);var ta=Date.now();dr(ta),Gn(ta-Lt),Ur({x:ji,y:ha})}function oi(){if(!Ot)return;if(kt(null),Ur(null),vn){var aa=vn.x/Mr,ba=vn.y/Mr,yi=Math.abs(aa),kn=Math.abs(ba);if(Math.max(yi,kn)<cn)return;var ji=aa,ha=ba;In.current=window.setInterval(function(){if(Math.abs(ji)<An&&Math.abs(ha)<An){window.clearInterval(In.current);return}ji*=$n,ha*=$n,En(ji*ri,ha*ri)},ri)}}var Ti=Object(m.useRef)(0),ki=Object(m.useRef)(!1),Ri=Object(m.useRef)();function oa(aa){var ba=aa.deltaX,yi=aa.deltaY,kn=0,ji=Math.abs(ba),ha=Math.abs(yi);ji===ha?kn=Ri.current==="x"?ba:yi:ji>ha?(kn=ba,Ri.current="x"):(kn=yi,Ri.current="y");var ta=Date.now();ta-Ti.current>100&&(ki.current=!1),(En(-kn,-kn)||ki.current)&&(aa.preventDefault(),ki.current=!0),Ti.current=ta}var ma=Object(m.useRef)(null);ma.current={onTouchStart:Qn,onTouchMove:qn,onTouchEnd:oi,onWheel:oa},m.useEffect(function(){function aa(ji){ma.current.onTouchStart(ji)}function ba(ji){ma.current.onTouchMove(ji)}function yi(ji){ma.current.onTouchEnd(ji)}function kn(ji){ma.current.onWheel(ji)}return document.addEventListener("touchmove",ba,{passive:!1}),document.addEventListener("touchend",yi,{passive:!1}),qr.current.addEventListener("touchstart",aa,{passive:!1}),qr.current.addEventListener("wheel",kn),function(){document.removeEventListener("touchmove",ba),document.removeEventListener("touchend",yi)}},[])}function Di(){var qr=Object(m.useRef)(new Map);function En(zt){return qr.current.has(zt)||qr.current.set(zt,m.createRef()),qr.current.get(zt)}function Yn(zt){qr.current.delete(zt)}return[En,Yn]}function Wi(qr,En){var Yn=m.useRef(qr),zt=m.useState({}),Ot=Object(d.a)(zt,2),kt=Ot[1];function Bt(Wt){var Lt=typeof Wt=="function"?Wt(Yn.current):Wt;Lt!==Yn.current&&En(Lt,Yn.current),Yn.current=Lt,kt({})}return[Yn.current,Bt]}var it=function(En){var Yn=En.position,zt=En.prefixCls,Ot=En.extra;if(!Ot)return null;var kt,Bt=Ot;return Yn==="right"&&(kt=Bt.right||!Bt.left&&Bt||null),Yn==="left"&&(kt=Bt.left||null),kt?m.createElement("div",{className:"".concat(zt,"-extra-content")},kt):null};function Le(qr,En){var Yn,zt=m.useContext(Dr),Ot=zt.prefixCls,kt=zt.tabs,Bt=qr.className,Wt=qr.style,Lt=qr.id,dr=qr.animated,yr=qr.activeKey,br=qr.rtl,Mr=qr.extra,Gn=qr.editable,Mn=qr.locale,di=qr.tabPosition,vn=qr.tabBarGutter,Ur=qr.children,In=qr.onTabClick,Qn=qr.onTabScroll,qn=Object(m.useRef)(),oi=Object(m.useRef)(),Ti=Object(m.useRef)(),ki=Object(m.useRef)(),Ri=Di(),oa=Object(d.a)(Ri,2),ma=oa[0],aa=oa[1],ba=di==="top"||di==="bottom",yi=Wi(0,function(li,ci){ba&&Qn&&Qn({direction:li>ci?"left":"right"})}),kn=Object(d.a)(yi,2),ji=kn[0],ha=kn[1],ta=Wi(0,function(li,ci){!ba&&Qn&&Qn({direction:li>ci?"top":"bottom"})}),ra=Object(d.a)(ta,2),Ir=ra[0],xr=ra[1],Cn=Object(m.useState)(0),mr=Object(d.a)(Cn,2),kr=mr[0],Gr=mr[1],ln=Object(m.useState)(0),Fn=Object(d.a)(ln,2),_t=Fn[0],Or=Fn[1],Lr=Object(m.useState)(0),rn=Object(d.a)(Lr,2),xn=rn[0],Ln=rn[1],Sn=Object(m.useState)(0),ei=Object(d.a)(Sn,2),Kn=ei[0],mi=ei[1],Fi=Object(m.useState)(null),bi=Object(d.a)(Fi,2),Ii=bi[0],Vi=bi[1],ea=Object(m.useState)(null),Xi=Object(d.a)(ea,2),zi=Xi[0],Hi=Xi[1],Ji=Object(m.useState)(0),ca=Object(d.a)(Ji,2),Ca=ca[0],na=ca[1],Pa=Object(m.useState)(0),La=Object(d.a)(Pa,2),va=La[0],ga=La[1],Oa=I(new Map),Aa=Object(d.a)(Oa,2),Xa=Aa[0],_a=Aa[1],Va=X(kt,Xa,kr),Bi="".concat(Ot,"-nav-operations-hidden"),io=0,oo=0;ba?br?(io=0,oo=Math.max(0,kr-Ii)):(io=Math.min(0,Ii-kr),oo=0):(io=Math.min(0,zi-_t),oo=0);function Qo(li){return li<io?[io,!1]:li>oo?[oo,!1]:[li,!0]}var mo=Object(m.useRef)(),To=Object(m.useState)(),ao=Object(d.a)(To,2),So=ao[0],bo=ao[1];function to(){bo(Date.now())}function Jo(){window.clearTimeout(mo.current)}_i(qn,function(li,ci){var si=!1;function Ci(gi,Ai){gi(function(Ni){var ia=Qo(Ni+Ai),Ki=Object(d.a)(ia,2),fa=Ki[0],Ya=Ki[1];return si=Ya,fa})}if(ba){if(Ii>=kr)return si;Ci(ha,li)}else{if(zi>=_t)return si;Ci(xr,ci)}return Jo(),to(),si}),Object(m.useEffect)(function(){return Jo(),So&&(mo.current=window.setTimeout(function(){bo(0)},100)),Jo},[So]);function Uo(){var li=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yr,ci=Va.get(li);if(!ci)return;if(ba){var si=ji;br?ci.right<ji?si=ci.right:ci.right+ci.width>ji+Ii&&(si=ci.right+ci.width-Ii):ci.left<-ji?si=-ci.left:ci.left+ci.width>-ji+Ii&&(si=-(ci.left+ci.width-Ii)),xr(0),ha(Qo(si)[0])}else{var Ci=Ir;ci.top<-Ir?Ci=-ci.top:ci.top+ci.height>-Ir+zi&&(Ci=-(ci.top+ci.height-zi)),ha(0),xr(Qo(Ci)[0])}}var wo=U(Va,{width:Ii,height:zi,left:ji,top:Ir},{width:xn,height:Kn},{width:Ca,height:va},Object(s.a)(Object(s.a)({},qr),{},{tabs:kt})),ts=Object(d.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=kt.map(function(li){var ci=li.key;return m.createElement(j,{id:Lt,prefixCls:Ot,key:ci,rtl:br,tab:li,closable:li.closable,editable:Gn,active:ci===yr,tabPosition:di,tabBarGutter:vn,renderWrapper:Ur,removeAriaLabel:Mn==null?void 0:Mn.removeAriaLabel,ref:ma(ci),onClick:function(Ci){In(ci,Ci)},onRemove:function(){aa(ci)},onFocus:function(){Uo(ci),to(),br||(qn.current.scrollLeft=0),qn.current.scrollTop=0}})}),os=O(function(){var li,ci,si,Ci,gi,Ai,Ni,ia,Ki,fa=((li=qn.current)===null||li===void 0?void 0:li.offsetWidth)||0,Ya=((ci=qn.current)===null||ci===void 0?void 0:ci.offsetHeight)||0,xa=((si=ki.current)===null||si===void 0?void 0:si.offsetWidth)||0,wa=((Ci=ki.current)===null||Ci===void 0?void 0:Ci.offsetHeight)||0,Da=((gi=Ti.current)===null||gi===void 0?void 0:gi.offsetWidth)||0,ja=((Ai=Ti.current)===null||Ai===void 0?void 0:Ai.offsetHeight)||0;Vi(fa),Hi(Ya),na(xa),ga(wa);var ko=(((Ni=oi.current)===null||Ni===void 0?void 0:Ni.offsetWidth)||0)-xa,ro=(((ia=oi.current)===null||ia===void 0?void 0:ia.offsetHeight)||0)-wa;Gr(ko),Or(ro);var pa=(Ki=Ti.current)===null||Ki===void 0?void 0:Ki.className.includes(Bi);Ln(ko-(pa?0:Da)),mi(ro-(pa?0:ja)),_a(function(){var Ea=new Map;return kt.forEach(function(Fa){var Ka=Fa.key,lo=ma(Ka).current;lo&&Ea.set(Ka,{width:lo.offsetWidth,height:lo.offsetHeight,left:lo.offsetLeft,top:lo.offsetTop})}),Ea})}),xo=kt.slice(0,Ia),rs=kt.slice(Oo+1),Ho=[].concat(Object(l.a)(xo),Object(l.a)(rs)),_o=Object(m.useState)(),uo=Object(d.a)(_o,2),Ha=uo[0],mt=uo[1],Tr=Va.get(yr),tn=Object(m.useRef)();function Qr(){a.a.cancel(tn.current)}Object(m.useEffect)(function(){var li={};return Tr&&(ba?(br?li.right=Tr.right:li.left=Tr.left,li.width=Tr.width):(li.top=Tr.top,li.height=Tr.height)),Qr(),tn.current=a()(function(){mt(li)}),Qr},[Tr,ba,br]),Object(m.useEffect)(function(){Uo()},[yr,Tr,Va,ba]),Object(m.useEffect)(function(){os()},[br,vn,yr,kt.map(function(li){return li.key}).join("_")]);var Jn=!!Ho.length,fn="".concat(Ot,"-nav-wrap"),Xr,ii,nn,Wn;return ba?br?(ii=ji>0,Xr=ji+Ii<kr):(Xr=ji<0,ii=-ji+Ii<kr):(nn=Ir<0,Wn=-Ir+zi<_t),m.createElement("div",{ref:En,role:"tablist",className:t()("".concat(Ot,"-nav"),Bt),style:Wt,onKeyDown:function(){to()}},m.createElement(it,{position:"left",extra:Mr,prefixCls:Ot}),m.createElement(w,{onResize:os},m.createElement("div",{className:t()(fn,(Yn={},Object(p.a)(Yn,"".concat(fn,"-ping-left"),Xr),Object(p.a)(Yn,"".concat(fn,"-ping-right"),ii),Object(p.a)(Yn,"".concat(fn,"-ping-top"),nn),Object(p.a)(Yn,"".concat(fn,"-ping-bottom"),Wn),Yn)),ref:qn},m.createElement(w,{onResize:os},m.createElement("div",{ref:oi,className:"".concat(Ot,"-nav-list"),style:{transform:"translate(".concat(ji,"px, ").concat(Ir,"px)"),transition:So?"none":void 0}},Io,m.createElement(qt,{ref:ki,prefixCls:Ot,locale:Mn,editable:Gn,style:{visibility:Jn?"hidden":null}}),m.createElement("div",{className:t()("".concat(Ot,"-ink-bar"),Object(p.a)({},"".concat(Ot,"-ink-bar-animated"),dr.inkBar)),style:Ha}))))),m.createElement(Nr,Object.assign({},qr,{ref:Ti,prefixCls:Ot,tabs:Ho,className:!Jn&&Bi})),m.createElement(it,{position:"right",extra:Mr,prefixCls:Ot}))}var je=m.forwardRef(Le);function Xe(qr){var En=qr.id,Yn=qr.activeKey,zt=qr.animated,Ot=qr.tabPosition,kt=qr.rtl,Bt=qr.destroyInactiveTabPane,Wt=m.useContext(Dr),Lt=Wt.prefixCls,dr=Wt.tabs,yr=zt.tabPane,br=dr.findIndex(function(Mr){return Mr.key===Yn});return m.createElement("div",{className:t()("".concat(Lt,"-content-holder"))},m.createElement("div",{className:t()("".concat(Lt,"-content"),"".concat(Lt,"-content-").concat(Ot),Object(p.a)({},"".concat(Lt,"-content-animated"),yr)),style:br&&yr?Object(p.a)({},kt?"marginRight":"marginLeft","-".concat(br,"00%")):null},dr.map(function(Mr){return m.cloneElement(Mr.node,{key:Mr.key,prefixCls:Lt,tabKey:Mr.key,id:En,animated:yr,active:Mr.key===Yn,destroyInactiveTabPane:Bt})})))}function nt(qr){var En=qr.prefixCls,Yn=qr.forceRender,zt=qr.className,Ot=qr.style,kt=qr.id,Bt=qr.active,Wt=qr.animated,Lt=qr.destroyInactiveTabPane,dr=qr.tabKey,yr=qr.children,br=m.useState(Yn),Mr=Object(d.a)(br,2),Gn=Mr[0],Mn=Mr[1];m.useEffect(function(){Bt?Mn(!0):Lt&&Mn(!1)},[Bt,Lt]);var di={};return Bt||(Wt?(di.visibility="hidden",di.height=0,di.overflowY="hidden"):di.display="none"),m.createElement("div",{id:kt&&"".concat(kt,"-panel-").concat(dr),role:"tabpanel",tabIndex:Bt?0:-1,"aria-labelledby":kt&&"".concat(kt,"-tab-").concat(dr),"aria-hidden":!Bt,style:Object(s.a)(Object(s.a)({},di),Ot),className:t()("".concat(En,"-tabpane"),Bt&&"".concat(En,"-tabpane-active"),zt)},(Bt||Gn||Yn)&&yr)}var Ze=0;function ot(qr){return Object(o.a)(qr).map(function(En){if(m.isValidElement(En)){var Yn=En.key!==void 0?String(En.key):void 0;return Object(s.a)(Object(s.a)({key:Yn},En.props),{},{node:En})}return null}).filter(function(En){return En})}function Ct(qr,En){var Yn,zt=qr.id,Ot=qr.prefixCls,kt=Ot===void 0?"rc-tabs":Ot,Bt=qr.className,Wt=qr.children,Lt=qr.direction,dr=qr.activeKey,yr=qr.defaultActiveKey,br=qr.editable,Mr=qr.animated,Gn=qr.tabPosition,Mn=Gn===void 0?"top":Gn,di=qr.tabBarGutter,vn=qr.tabBarStyle,Ur=qr.tabBarExtraContent,In=qr.locale,Qn=qr.moreIcon,qn=qr.moreTransitionName,oi=qr.destroyInactiveTabPane,Ti=qr.renderTabBar,ki=qr.onChange,Ri=qr.onTabClick,oa=qr.onTabScroll,ma=Object(u.a)(qr,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),aa=ot(Wt),ba=Lt==="rtl",yi;Mr===!1?yi={inkBar:!1,tabPane:!1}:yi=Object(s.a)({inkBar:!0,tabPane:!1},Mr!==!0?Mr:null);var kn=Object(m.useState)(!1),ji=Object(d.a)(kn,2),ha=ji[0],ta=ji[1];Object(m.useEffect)(function(){ta(fi())},[]);var ra=Object(e.a)(function(){var Kn;return(Kn=aa[0])===null||Kn===void 0?void 0:Kn.key},{value:dr,defaultValue:yr}),Ir=Object(d.a)(ra,2),xr=Ir[0],Cn=Ir[1],mr=Object(m.useState)(function(){return aa.findIndex(function(Kn){return Kn.key===xr})}),kr=Object(d.a)(mr,2),Gr=kr[0],ln=kr[1];Object(m.useEffect)(function(){var Kn=aa.findIndex(function(Fi){return Fi.key===xr});if(Kn===-1){var mi;Kn=Math.max(0,Math.min(Gr,aa.length-1)),Cn((mi=aa[Kn])===null||mi===void 0?void 0:mi.key)}ln(Kn)},[aa.map(function(Kn){return Kn.key}).join("_"),xr,Gr]);var Fn=Object(e.a)(null,{value:zt}),_t=Object(d.a)(Fn,2),Or=_t[0],Lr=_t[1],rn=Mn;ha&&!["left","right"].includes(Mn)&&(rn="top"),Object(m.useEffect)(function(){zt||(Lr("rc-tabs-".concat(Ze)),Ze+=1)},[]);function xn(Kn,mi){Ri==null||Ri(Kn,mi),Cn(Kn),ki==null||ki(Kn)}var Ln={id:Or,activeKey:xr,animated:yi,tabPosition:rn,rtl:ba,mobile:ha},Sn,ei=Object(s.a)(Object(s.a)({},Ln),{},{editable:br,locale:In,moreIcon:Qn,moreTransitionName:qn,tabBarGutter:di,onTabClick:xn,onTabScroll:oa,extra:Ur,style:vn,panes:Wt});return Ti?Sn=Ti(ei,je):Sn=m.createElement(je,Object.assign({},ei)),m.createElement(Dr.Provider,{value:{tabs:aa,prefixCls:kt}},m.createElement("div",Object.assign({ref:En,id:zt,className:t()(kt,"".concat(kt,"-").concat(rn),(Yn={},Object(p.a)(Yn,"".concat(kt,"-mobile"),ha),Object(p.a)(Yn,"".concat(kt,"-editable"),br),Object(p.a)(Yn,"".concat(kt,"-rtl"),ba),Yn),Bt)},ma),Sn,m.createElement(Xe,Object.assign({destroyInactiveTabPane:oi},Ln,{animated:yi}))))}var gt=m.forwardRef(Ct);gt.TabPane=nt;var pr=gt,$r=pr,Yr=n("cCPh"),mn=n.n(Yr),Ar=n("fNCr"),zn=n.n(Ar),Fr=n("V/uB"),Bn=n.n(Fr),bn=n("uaoM"),en=n("H84U"),ti=function(qr,En){var Yn={};for(var zt in qr)Object.prototype.hasOwnProperty.call(qr,zt)&&En.indexOf(zt)<0&&(Yn[zt]=qr[zt]);if(qr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,zt=Object.getOwnPropertySymbols(qr);Ot<zt.length;Ot++)En.indexOf(zt[Ot])<0&&Object.prototype.propertyIsEnumerable.call(qr,zt[Ot])&&(Yn[zt[Ot]]=qr[zt[Ot]]);return Yn};function pi(qr){var En,Yn=qr.type,zt=qr.className,Ot=qr.size,kt=qr.onEdit,Bt=qr.hideAdd,Wt=qr.centered,Lt=qr.addIcon,dr=ti(qr,["type","className","size","onEdit","hideAdd","centered","addIcon"]),yr=dr.prefixCls,br=m.useContext(en.b),Mr=br.getPrefixCls,Gn=br.direction,Mn=Mr("tabs",yr),di;return Yn==="editable-card"&&(di={onEdit:function(Ur,In){var Qn=In.key,qn=In.event;kt==null||kt(Ur==="add"?qn:Qn,Ur)},removeIcon:m.createElement(Bn.a,null),addIcon:Lt||m.createElement(zn.a,null),showAdd:Bt!==!0}),Object(bn.a)(!("onPrevClick"in dr)&&!("onNextClick"in dr),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),m.createElement($r,f()({direction:Gn},dr,{moreTransitionName:"slide-up",className:t()(zt,(En={},v()(En,"".concat(Mn,"-").concat(Ot),Ot),v()(En,"".concat(Mn,"-card"),["card","editable-card"].includes(Yn)),v()(En,"".concat(Mn,"-editable-card"),Yn==="editable-card"),v()(En,"".concat(Mn,"-centered"),Wt),En)),editable:di,moreIcon:m.createElement(mn.a,null),prefixCls:Mn}))}pi.TabPane=nt;var Pi=D.a=pi},ZTW2:function(R,D,n){},ZWlE:function(R,D,n){var y=n("bYtY"),f=n("4NO4");function x(p){v(p),m(p)}function v(p){if(p.parallel)return;var d=!1;y.each(p.series,function(u){u&&u.type==="parallel"&&(d=!0)}),d&&(p.parallel=[{}])}function m(p){var d=f.normalizeToArray(p.parallelAxis);y.each(d,function(u){if(!y.isObject(u))return;var s=u.parallelIndex||0,i=f.normalizeToArray(p.parallel)[s];i&&i.parallelAxisDefault&&y.merge(u,i.parallelAxisDefault,!1)})}R.exports=x},ZX9x:function(R,D,n){"use strict";n.d(D,"a",function(){return I}),n.d(D,"b",function(){return j});var y=n("lSNA"),f=n.n(y),x=n("pVnL"),v=n.n(x),m=n("lwsE"),p=n.n(m),d=n("W8MJ"),u=n.n(d),s=n("7W2i"),i=n.n(s),t=n("LQ03"),o=n.n(t),e=n("q1tI"),l=n("TSYQ"),r=n.n(l),a=n("BGR+"),c=n("T1rO"),h=n.n(c),g=n("fEPi"),A=n.n(g),b=n("DFhj"),S=n.n(b),E=n("PKem"),C=n("H84U"),_=function(X){return!isNaN(parseFloat(X))&&isFinite(X)},T=_,w=function(P,X){var F={};for(var U in P)Object.prototype.hasOwnProperty.call(P,U)&&X.indexOf(U)<0&&(F[U]=P[U]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,U=Object.getOwnPropertySymbols(P);K<U.length;K++)X.indexOf(U[K])<0&&Object.prototype.propertyIsEnumerable.call(P,U[K])&&(F[U[K]]=P[U[K]]);return F},O={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},I=e.createContext({}),k=function(){var P=0;return function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return P+=1,"".concat(X).concat(P)}}(),M=function(P){i()(F,P);var X=o()(F);function F(U){var K;p()(this,F),K=X.call(this,U),K.responsiveHandler=function(Q){K.setState({below:Q.matches});var G=K.props.onBreakpoint,te=K.state.collapsed;G&&G(Q.matches),te!==Q.matches&&K.setCollapsed(Q.matches,"responsive")},K.setCollapsed=function(Q,G){"collapsed"in K.props||K.setState({collapsed:Q});var te=K.props.onCollapse;te&&te(Q,G)},K.toggle=function(){var Q=!K.state.collapsed;K.setCollapsed(Q,"clickTrigger")},K.renderSider=function(Q){var G,te=Q.getPrefixCls,q=K.props,se=q.prefixCls,re=q.className,xe=q.theme,Oe=q.collapsible,Me=q.reverseArrow,Qe=q.trigger,Ve=q.style,ut=q.width,Fe=q.collapsedWidth,ue=q.zeroWidthTriggerStyle,et=q.children,he=w(q,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),J=K.state,Y=J.collapsed,$=J.below,de=te("layout-sider",se),be=Object(a.default)(he,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),Ce=Y?Fe:ut,Be=T(Ce)?"".concat(Ce,"px"):String(Ce),fe=parseFloat(String(Fe||0))===0?e.createElement("span",{onClick:K.toggle,className:r()("".concat(de,"-zero-width-trigger"),"".concat(de,"-zero-width-trigger-").concat(Me?"right":"left")),style:ue},Qe||e.createElement(h.a,null)):null,we={expanded:Me?e.createElement(A.a,null):e.createElement(S.a,null),collapsed:Me?e.createElement(S.a,null):e.createElement(A.a,null)},Re=Y?"collapsed":"expanded",rt=we[Re],St=Qe!==null?fe||e.createElement("div",{className:"".concat(de,"-trigger"),onClick:K.toggle,style:{width:Be}},Qe||rt):null,ft=v()(v()({},Ve),{flex:"0 0 ".concat(Be),maxWidth:Be,minWidth:Be,width:Be}),He=r()(re,de,"".concat(de,"-").concat(xe),(G={},f()(G,"".concat(de,"-collapsed"),!!Y),f()(G,"".concat(de,"-has-trigger"),Oe&&Qe!==null&&!fe),f()(G,"".concat(de,"-below"),!!$),f()(G,"".concat(de,"-zero-width"),parseFloat(Be)===0),G));return e.createElement("aside",v()({className:He},be,{style:ft}),e.createElement("div",{className:"".concat(de,"-children")},et),Oe||$&&fe?St:null)},K.uniqueId=k("ant-sider-");var z;typeof window!="undefined"&&(z=window.matchMedia),z&&U.breakpoint&&U.breakpoint in O&&(K.mql=z("(max-width: ".concat(O[U.breakpoint],")")));var V;return"collapsed"in U?V=U.collapsed:V=U.defaultCollapsed,K.state={collapsed:V,below:!1},K}return u()(F,[{key:"componentDidMount",value:function(){var K;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),(K=this.props)===null||K===void 0||K.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var K,z;(K=this===null||this===void 0?void 0:this.mql)===null||K===void 0||K.removeListener(this.responsiveHandler),(z=this.props)===null||z===void 0||z.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var K=this.state.collapsed,z=this.props.collapsedWidth;return e.createElement(I.Provider,{value:{siderCollapsed:K,collapsedWidth:z}},e.createElement(C.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(K){return"collapsed"in K?{collapsed:K.collapsed}:null}}]),F}(e.Component);M.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var j=function(P){i()(F,P);var X=o()(F);function F(){return p()(this,F),X.apply(this,arguments)}return u()(F,[{key:"render",value:function(){var K=this;return e.createElement(E.a.Consumer,null,function(z){return e.createElement(M,v()({},z,K.props))})}}]),F}(e.Component)},ZYIC:function(R,D,n){var y=n("zM3Q"),f={seriesType:"lines",plan:y(),reset:function(x){var v=x.coordinateSystem,m=x.get("polyline"),p=x.pipelineContext.large;function d(u,s){var i=[];if(p){var t,o=u.end-u.start;if(m){for(var e=0,l=u.start;l<u.end;l++)e+=x.getLineCoordsCount(l);t=new Float32Array(o+e*2)}else t=new Float32Array(o*4);for(var r=0,a=[],l=u.start;l<u.end;l++){var c=x.getLineCoords(l,i);m&&(t[r++]=c);for(var h=0;h<c;h++)a=v.dataToPoint(i[h],!1,a),t[r++]=a[0],t[r++]=a[1]}s.setLayout("linesPoints",t)}else for(var l=u.start;l<u.end;l++){var g=s.getItemModel(l),c=x.getLineCoords(l,i),A=[];if(m)for(var b=0;b<c;b++)A.push(v.dataToPoint(i[b]));else{A[0]=v.dataToPoint(i[0]),A[1]=v.dataToPoint(i[1]);var S=g.get("lineStyle.curveness");+S&&(A[2]=[(A[0][0]+A[1][0])/2-(A[0][1]-A[1][1])*S,(A[0][1]+A[1][1])/2-(A[1][0]-A[0][0])*S])}s.setItemLayout(l,A)}}return{progress:d}}};R.exports=f},Ze12:function(R,D,n){var y=n("ItGF"),f=n("hOwI"),x=f.buildTransformer,v="___zrEVENTSAVED",m=[];function p(t,o,e,l,r){return d(m,o,l,r,!0)&&d(t,e,m[0],m[1])}function d(t,o,e,l,r){if(o.getBoundingClientRect&&y.domSupported&&!i(o)){var a=o[v]||(o[v]={}),c=u(o,a),h=s(c,a,r);if(h)return h(t,e,l),!0}return!1}function u(t,o){var e=o.markers;if(e)return e;e=o.markers=[];for(var l=["left","right"],r=["top","bottom"],a=0;a<4;a++){var c=document.createElement("div"),h=c.style,g=a%2,A=(a>>1)%2;h.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",l[g]+":0",r[A]+":0",l[1-g]+":auto",r[1-A]+":auto",""].join("!important;"),t.appendChild(c),e.push(c)}return e}function s(t,o,e){for(var l=e?"invTrans":"trans",r=o[l],a=o.srcCoords,c=!0,h=[],g=[],A=0;A<4;A++){var b=t[A].getBoundingClientRect(),S=2*A,E=b.left,C=b.top;h.push(E,C),c=c&&a&&E===a[S]&&C===a[S+1],g.push(t[A].offsetLeft,t[A].offsetTop)}return c&&r?r:(o.srcCoords=h,o[l]=e?x(g,h):x(h,g))}function i(t){return t.nodeName.toUpperCase()==="CANVAS"}D.transformLocalCoord=p,D.transformCoordWithViewport=d,D.isCanvasEl=i},Znkb:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("ProS"),v=n("zTMp"),m=x.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(i,t,o,e){this.axisPointerClass&&v.fixValue(i),m.superApply(this,"render",arguments),p(this,i,t,o,e,!0)},updateAxisPointer:function(i,t,o,e,l){p(this,i,t,o,e,!1)},remove:function(i,t){var o=this._axisPointer;o&&o.remove(t),m.superApply(this,"remove",arguments)},dispose:function(i,t){d(this,t),m.superApply(this,"dispose",arguments)}});function p(i,t,o,e,l,r){var a=m.getAxisPointerClass(i.axisPointerClass);if(!a)return;var c=v.getAxisPointerModel(t);c?(i._axisPointer||(i._axisPointer=new a)).render(t,c,e,r):d(i,e)}function d(i,t,o){var e=i._axisPointer;e&&e.dispose(t,o),i._axisPointer=null}var u=[];m.registerAxisPointerClass=function(i,t){u[i]=t},m.getAxisPointerClass=function(i){return i&&u[i]};var s=m;R.exports=s},"Znn+":function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("9ama"),v=n.n(x)},ZqQs:function(R,D,n){var y=n("bYtY");function f(p){var d=p&&p.timeline;y.isArray(d)||(d=d?[d]:[]),y.each(d,function(u){if(!u)return;x(u)})}function x(p){var d=p.type,u={number:"value",time:"time"};if(u[d]&&(p.axisType=u[d],delete p.type),v(p),m(p,"controlPosition")){var s=p.controlStyle||(p.controlStyle={});m(s,"position")||(s.position=p.controlPosition),s.position==="none"&&!m(s,"show")&&(s.show=!1,delete s.position),delete p.controlPosition}y.each(p.data||[],function(i){y.isObject(i)&&!y.isArray(i)&&(!m(i,"value")&&m(i,"name")&&(i.value=i.name),v(i))})}function v(p){var d=p.itemStyle||(p.itemStyle={}),u=d.emphasis||(d.emphasis={}),s=p.label||p.label||{},i=s.normal||(s.normal={}),t={normal:1,emphasis:1};y.each(s,function(o,e){!t[e]&&!m(i,e)&&(i[e]=o)}),u.label&&!m(s,"emphasis")&&(s.emphasis=u.label,delete u.label)}function m(p,d){return p.hasOwnProperty(d)}R.exports=f},Zvw2:function(R,D,n){var y=n("bYtY"),f=n("hM6l"),x=function(m,p,d,u,s){f.call(this,m,p,d),this.type=u||"value",this.position=s||"bottom",this.orient=null};x.prototype={constructor:x,model:null,isHorizontal:function(){var m=this.position;return m==="top"||m==="bottom"},pointToData:function(m,p){return this.coordinateSystem.pointToData(m,p)[0]},toGlobalCoord:null,toLocalCoord:null},y.inherits(x,f);var v=x;R.exports=v},ZxNd:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};D.default=y},a7Wl:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};D.default=y},a9QJ:function(R,D){var n={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function y(f,x){if(f==="world"){var v=n[x.name];if(v){var m=x.center;m[0]=v[0],m[1]=v[1]}}}R.exports=y},aHsQ:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("6D9b"),v=n.n(x)},aKvl:function(R,D,n){var y=n("Sj9i"),f=y.quadraticProjectPoint;function x(v,m,p,d,u,s,i,t,o){if(i===0)return!1;var e=i;if(o>m+e&&o>d+e&&o>s+e||o<m-e&&o<d-e&&o<s-e||t>v+e&&t>p+e&&t>u+e||t<v-e&&t<p-e&&t<u-e)return!1;var l=f(v,m,p,d,u,s,t,o,null);return l<=e/2}D.containStroke=x},aTJb:function(R,D,n){var y=n("bLfw");y.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},aX58:function(R,D,n){var y=n("3gBT"),f=n("ItGF"),x=n("bYtY"),v=n("0s+r"),m=n("r6Bn"),p=n("7SHv"),d=n("MKOG"),u=n("zarK");/*!
|
|
|
* ZRender, a high performance 2d drawing library.
|
|
|
*
|
|
|
* Copyright (c) 2013, Baidu Inc.
|
|
|
* All rights reserved.
|
|
|
*
|
|
|
* LICENSE
|
|
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
|
*/var s=!f.canvasSupported,i={canvas:p},t={},o="4.3.1";function e(g,A){var b=new h(y(),g,A);return t[b.id]=b,b}function l(g){if(g)g.dispose();else{for(var A in t)t.hasOwnProperty(A)&&t[A].dispose();t={}}return this}function r(g){return t[g]}function a(g,A){i[g]=A}function c(g){delete t[g]}var h=function(A,b,S){S=S||{},this.dom=b,this.id=A;var E=this,C=new m,_=S.renderer;if(s){if(!i.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");_="vml"}else(!_||!i[_])&&(_="canvas");var T=new i[_](b,C,S,A);this.storage=C,this.painter=T;var w=!f.node&&!f.worker?new u(T.getViewportRoot(),T.root):null;this.handler=new v(C,T,w,T.root),this.animation=new d({stage:{update:x.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var O=C.delFromStorage,I=C.addToStorage;C.delFromStorage=function(k){O.call(C,k),k&&k.removeSelfFromZr(E)},C.addToStorage=function(k){I.call(C,k),k.addSelfToZr(E)}};h.prototype={constructor:h,getId:function(){return this.id},add:function(A){this.storage.addRoot(A),this._needsRefresh=!0},remove:function(A){this.storage.delRoot(A),this._needsRefresh=!0},configLayer:function(A,b){this.painter.configLayer&&this.painter.configLayer(A,b),this._needsRefresh=!0},setBackgroundColor:function(A){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(A),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var A;this._needsRefresh&&(A=!0,this.refreshImmediately()),this._needsRefreshHover&&(A=!0,this.refreshHoverImmediately()),A&&this.trigger("rendered")},addHover:function(A,b){if(this.painter.addHover){var S=this.painter.addHover(A,b);return this.refreshHover(),S}},removeHover:function(A){this.painter.removeHover&&(this.painter.removeHover(A),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(A){A=A||{},this.painter.resize(A.width,A.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(A,b){return this.painter.pathToImage(A,b)},setCursorStyle:function(A){this.handler.setCursorStyle(A)},findHover:function(A,b){return this.handler.findHover(A,b)},on:function(A,b,S){this.handler.on(A,b,S)},off:function(A,b){this.handler.off(A,b)},trigger:function(A,b){this.handler.trigger(A,b)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,c(this.id)}},D.version=o,D.init=e,D.dispose=l,D.getInstance=r,D.registerPainter=a},aX7z:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("bYtY"),v=n("GMDS"),m=n("ieMj"),p=n("4NgU"),d=n("OELB"),u=n("nVfU"),s=u.prepareLayoutBarSeries,i=u.makeColumnLayout,t=u.retrieveColumnLayout,o=n("mFDi");n("IWp7"),n("jCoz");function e(C,_){var T=C.type,w=_.getMin(),O=_.getMax(),I=C.getExtent(),k,M,j;T==="ordinal"?k=_.getCategories().length:(M=_.get("boundaryGap"),x.isArray(M)||(M=[M||0,M||0]),typeof M[0]=="boolean"&&(M=[0,0]),M[0]=d.parsePercent(M[0],1),M[1]=d.parsePercent(M[1],1),j=I[1]-I[0]||Math.abs(I[0])),w==="dataMin"?w=I[0]:typeof w=="function"&&(w=w({min:I[0],max:I[1]})),O==="dataMax"?O=I[1]:typeof O=="function"&&(O=O({min:I[0],max:I[1]}));var P=w!=null,X=O!=null;w==null&&(w=T==="ordinal"?k?0:NaN:I[0]-M[0]*j),O==null&&(O=T==="ordinal"?k?k-1:NaN:I[1]+M[1]*j),(w==null||!isFinite(w))&&(w=NaN),(O==null||!isFinite(O))&&(O=NaN),C.setBlank(x.eqNaN(w)||x.eqNaN(O)||T==="ordinal"&&!C.getOrdinalMeta().categories.length),_.getNeedCrossZero()&&(w>0&&O>0&&!P&&(w=0),w<0&&O<0&&!X&&(O=0));var F=_.ecModel;if(F&&T==="time"){var U=s("bar",F),K;if(x.each(U,function(Q){K|=Q.getBaseAxis()===_.axis}),K){var z=i(U),V=l(w,O,_,z);w=V.min,O=V.max}}return{extent:[w,O],fixMin:P,fixMax:X}}function l(C,_,T,w){var O=T.axis.getExtent(),I=O[1]-O[0],k=t(w,T.axis);if(k===void 0)return{min:C,max:_};var M=Infinity;x.each(k,function(K){M=Math.min(K.offset,M)});var j=-Infinity;x.each(k,function(K){j=Math.max(K.offset+K.width,j)}),M=Math.abs(M),j=Math.abs(j);var P=M+j,X=_-C,F=1-(M+j)/I,U=X/F-X;return _+=U*(j/P),C-=U*(M/P),{min:C,max:_}}function r(C,_){var T=e(C,_),w=T.extent,O=_.get("splitNumber");C.type==="log"&&(C.base=_.get("logBase"));var I=C.type;C.setExtent(w[0],w[1]),C.niceExtent({splitNumber:O,fixMin:T.fixMin,fixMax:T.fixMax,minInterval:I==="interval"||I==="time"?_.get("minInterval"):null,maxInterval:I==="interval"||I==="time"?_.get("maxInterval"):null});var k=_.get("interval");k!=null&&(C.setInterval&&C.setInterval(k))}function a(C,_){if(_=_||C.get("type"),_)switch(_){case"category":return new v(C.getOrdinalMeta?C.getOrdinalMeta():C.getCategories(),[Infinity,-Infinity]);case"value":return new m;default:return(p.getClass(_)||m).create(C)}}function c(C){var _=C.scale.getExtent(),T=_[0],w=_[1];return!(T>0&&w>0||T<0&&w<0)}function h(C){var _=C.getLabelModel().get("formatter"),T=C.type==="category"?C.scale.getExtent()[0]:null;return typeof _=="string"?(_=function(w){return function(O){return O=C.scale.getLabel(O),w.replace("{value}",O!=null?O:"")}}(_),_):typeof _=="function"?function(w,O){return T!=null&&(O=w-T),_(g(C,w),O)}:function(w){return C.scale.getLabel(w)}}function g(C,_){return C.type==="category"?C.scale.getLabel(_):_}function A(C){var _=C.model,T=C.scale;if(!_.get("axisLabel.show")||T.isBlank())return;var w=C.type==="category",O,I,k=T.getExtent();w?I=T.count():(O=T.getTicks(),I=O.length);var M=C.getLabelModel(),j=h(C),P,X=1;I>40&&(X=Math.ceil(I/40));for(var F=0;F<I;F+=X){var U=O?O[F]:k[0]+F,K=j(U),z=M.getTextRect(K),V=b(z,M.get("rotate")||0);P?P.union(V):P=V}return P}function b(C,_){var T=_*Math.PI/180,w=C.plain(),O=w.width,I=w.height,k=O*Math.cos(T)+I*Math.sin(T),M=O*Math.sin(T)+I*Math.cos(T),j=new o(w.x,w.y,k,M);return j}function S(C){var _=C.get("interval");return _==null?"auto":_}function E(C){return C.type==="category"&&S(C.getLabelModel())===0}D.getScaleExtent=e,D.niceScaleExtent=r,D.createScaleByModel=a,D.ifAxisCrossZero=c,D.makeLabelFormatter=h,D.getAxisRawValue=g,D.estimateLabelUnionRect=A,D.getOptionCategoryInterval=S,D.shouldShowAllLabels=E},adU4:function(R,D,n){var y=n("y1pI"),f=Array.prototype,x=f.splice;function v(m){var p=this.__data__,d=y(p,m);if(d<0)return!1;var u=p.length-1;return d==u?p.pop():x.call(p,d,1),--this.size,!0}R.exports=v},"af/B":function(R,D,n){var y=n("bYtY"),f=y.each,x=y.map,v=y.isFunction,m=y.createHashMap,p=y.noop,d=n("9H2F"),u=d.createTask,s=n("iRjW"),i=s.getUID,t=n("fmMI"),o=n("hD7B"),e=n("4NO4"),l=e.normalizeToArray;function r(K,z,V,Q){this.ecInstance=K,this.api=z,this.unfinished;var V=this._dataProcessorHandlers=V.slice(),Q=this._visualHandlers=Q.slice();this._allHandlers=V.concat(Q),this._stageTaskMap=m()}var a=r.prototype;a.restoreData=function(K,z){K.restoreData(z),this._stageTaskMap.each(function(V){var Q=V.overallTask;Q&&Q.dirty()})},a.getPerformArgs=function(K,z){if(!K.__pipeline)return;var V=this._pipelineMap.get(K.__pipeline.id),Q=V.context,G=!z&&V.progressiveEnabled&&(!Q||Q.progressiveRender)&&K.__idxInPipeline>V.blockIndex,te=G?V.step:null,q=Q&&Q.modDataCount,se=q!=null?Math.ceil(q/te):null;return{step:te,modBy:se,modDataCount:q}},a.getPipeline=function(K){return this._pipelineMap.get(K)},a.updateStreamModes=function(K,z){var V=this._pipelineMap.get(K.uid),Q=K.getData(),G=Q.count(),te=V.progressiveEnabled&&z.incrementalPrepareRender&&G>=V.threshold,q=K.get("large")&&G>=K.get("largeThreshold"),se=K.get("progressiveChunkMode")==="mod"?G:null;K.pipelineContext=V.context={progressiveRender:te,modDataCount:se,large:q}},a.restorePipelines=function(K){var z=this,V=z._pipelineMap=m();K.eachSeries(function(Q){var G=Q.getProgressive(),te=Q.uid;V.set(te,{id:te,head:null,tail:null,threshold:Q.getProgressiveThreshold(),progressiveEnabled:G&&!(Q.preventIncremental&&Q.preventIncremental()),blockIndex:-1,step:Math.round(G||700),count:0}),k(z,Q,Q.dataTask)})},a.prepareStageTasks=function(){var K=this._stageTaskMap,z=this.ecInstance.getModel(),V=this.api;f(this._allHandlers,function(Q){var G=K.get(Q.uid)||K.set(Q.uid,[]);Q.reset&&g(this,Q,G,z,V),Q.overallReset&&A(this,Q,G,z,V)},this)},a.prepareView=function(K,z,V,Q){var G=K.renderTask,te=G.context;te.model=z,te.ecModel=V,te.api=Q,G.__block=!K.incrementalPrepareRender,k(this,z,G)},a.performDataProcessorTasks=function(K,z){c(this,this._dataProcessorHandlers,K,z,{block:!0})},a.performVisualTasks=function(K,z,V){c(this,this._visualHandlers,K,z,V)};function c(K,z,V,Q,G){G=G||{};var te;f(z,function(se,re){if(G.visualType&&G.visualType!==se.visualType)return;var xe=K._stageTaskMap.get(se.uid),Oe=xe.seriesTaskMap,Me=xe.overallTask;if(Me){var Qe,Ve=Me.agentStubMap;Ve.each(function(Fe){q(G,Fe)&&(Fe.dirty(),Qe=!0)}),Qe&&Me.dirty(),h(Me,Q);var ut=K.getPerformArgs(Me,G.block);Ve.each(function(Fe){Fe.perform(ut)}),te|=Me.perform(ut)}else Oe&&Oe.each(function(Fe,ue){q(G,Fe)&&Fe.dirty();var et=K.getPerformArgs(Fe,G.block);et.skip=!se.performRawSeries&&V.isSeriesFiltered(Fe.context.model),h(Fe,Q),te|=Fe.perform(et)})});function q(se,re){return se.setDirty&&(!se.dirtyMap||se.dirtyMap.get(re.__pipeline.id))}K.unfinished|=te}a.performSeriesTasks=function(K){var z;K.eachSeries(function(V){z|=V.dataTask.perform()}),this.unfinished|=z},a.plan=function(){this._pipelineMap.each(function(K){var z=K.tail;do{if(z.__block){K.blockIndex=z.__idxInPipeline;break}z=z.getUpstream()}while(z)})};var h=a.updatePayload=function(K,z){z!=="remain"&&(K.context.payload=z)};function g(K,z,V,Q,G){var te=V.seriesTaskMap||(V.seriesTaskMap=m()),q=z.seriesType,se=z.getTargetSeries;z.createOnAllSeries?Q.eachRawSeries(re):q?Q.eachRawSeriesByType(q,re):se&&se(Q,G).each(re);function re(Oe){var Me=Oe.uid,Qe=te.get(Me)||te.set(Me,u({plan:_,reset:T,count:I}));Qe.context={model:Oe,ecModel:Q,api:G,useClearVisual:z.isVisual&&!z.isLayout,plan:z.plan,reset:z.reset,scheduler:K},k(K,Oe,Qe)}var xe=K._pipelineMap;te.each(function(Oe,Me){xe.get(Me)||(Oe.dispose(),te.removeKey(Me))})}function A(K,z,V,Q,G){var te=V.overallTask=V.overallTask||u({reset:b});te.context={ecModel:Q,api:G,overallReset:z.overallReset,scheduler:K};var q=te.agentStubMap=te.agentStubMap||m(),se=z.seriesType,re=z.getTargetSeries,xe=!0,Oe=z.modifyOutputEnd;se?Q.eachRawSeriesByType(se,Me):re?re(Q,G).each(Me):(xe=!1,f(Q.getSeries(),Me));function Me(Ve){var ut=Ve.uid,Fe=q.get(ut);Fe||(Fe=q.set(ut,u({reset:S,onDirty:C})),te.dirty()),Fe.context={model:Ve,overallProgress:xe,modifyOutputEnd:Oe},Fe.agent=te,Fe.__block=xe,k(K,Ve,Fe)}var Qe=K._pipelineMap;q.each(function(Ve,ut){Qe.get(ut)||(Ve.dispose(),te.dirty(),q.removeKey(ut))})}function b(K){K.overallReset(K.ecModel,K.api,K.payload)}function S(K,z){return K.overallProgress&&E}function E(){this.agent.dirty(),this.getDownstream().dirty()}function C(){this.agent&&this.agent.dirty()}function _(K){return K.plan&&K.plan(K.model,K.ecModel,K.api,K.payload)}function T(K){K.useClearVisual&&K.data.clearAllVisual();var z=K.resetDefines=l(K.reset(K.model,K.ecModel,K.api,K.payload));return z.length>1?x(z,function(V,Q){return O(Q)}):w}var w=O(0);function O(K){return function(z,V){var Q=V.data,G=V.resetDefines[K];if(G&&G.dataEach)for(var te=z.start;te<z.end;te++)G.dataEach(Q,te);else G&&G.progress&&G.progress(z,Q)}}function I(K){return K.data.count()}function k(K,z,V){var Q=z.uid,G=K._pipelineMap.get(Q);!G.head&&(G.head=V),G.tail&&G.tail.pipe(V),G.tail=V,V.__idxInPipeline=G.count++,V.__pipeline=G}r.wrapStageHandler=function(K,z){return v(K)&&(K={overallReset:K,seriesType:M(K)}),K.uid=i("stageHandler"),z&&(K.visualType=z),K};function M(K){X=null;try{K(j,P)}catch(z){}return X}var j={},P={},X;F(j,t),F(P,o),j.eachSeriesByType=j.eachRawSeriesByType=function(K){X=K},j.eachComponent=function(K){K.mainType==="series"&&K.subType&&(X=K.subType)};function F(K,z){for(var V in z.prototype)K[V]=p}var U=r;R.exports=U},akwb:function(R,D,n){var y=n("RSch"),f=n("bYtY"),x=n("D9ME"),v=n("QBsz");function m(u,s,i){x.call(this,u,s,i),this._lastFrame=0,this._lastFramePercent=0}var p=m.prototype;p.createLine=function(u,s,i){return new y(u,s,i)},p.updateAnimationPoints=function(u,s){this._points=s;for(var i=[0],t=0,o=1;o<s.length;o++){var e=s[o-1],l=s[o];t+=v.dist(e,l),i.push(t)}if(t===0)return;for(var o=0;o<i.length;o++)i[o]/=t;this._offsets=i,this._length=t},p.getLineLength=function(u){return this._length},p.updateSymbolPosition=function(u){var s=u.__t,i=this._points,t=this._offsets,o=i.length;if(!t)return;var e=this._lastFrame,l;if(s<this._lastFramePercent){var r=Math.min(e+1,o-1);for(l=r;l>=0&&!(t[l]<=s);l--);l=Math.min(l,o-2)}else{for(var l=e;l<o&&!(t[l]>s);l++);l=Math.min(l-1,o-2)}v.lerp(u.position,i[l],i[l+1],(s-t[l])/(t[l+1]-t[l]));var a=i[l+1][0]-i[l][0],c=i[l+1][1]-i[l][1];u.rotation=-Math.atan2(c,a)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=s,u.ignore=!1},f.inherits(m,x);var d=m;R.exports=d},apAg:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("bsht")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="SearchOutlined";var i=v.forwardRef(s);D.default=i},as94:function(R,D,n){var y=n("7aKB"),f=n("3LNs"),x=n("IwbS"),v=n("/y7N"),m=n("Fofx"),p=n("+rIm"),d=n("Znkb"),u=f.extend({makeElOption:function(o,e,l,r,a){var c=l.axis;c.dim==="angle"&&(this.animationThreshold=Math.PI/18);var h=c.polar,g=h.getOtherAxis(c),A=g.getExtent(),b;b=c["dataTo"+y.capitalFirst(c.dim)](e);var S=r.get("type");if(S&&S!=="none"){var E=v.buildElStyle(r),C=i[S](c,h,b,A,E);C.style=E,o.graphicKey=C.type,o.pointer=C}var _=r.get("label.margin"),T=s(e,l,r,h,_);v.buildLabelElOption(o,l,r,a,T)}});function s(o,e,l,r,a){var c=e.axis,h=c.dataToCoord(o),g=r.getAngleAxis().getExtent()[0];g=g/180*Math.PI;var A=r.getRadiusAxis().getExtent(),b,S,E;if(c.dim==="radius"){var C=m.create();m.rotate(C,C,g),m.translate(C,C,[r.cx,r.cy]),b=x.applyTransform([h,-a],C);var _=e.getModel("axisLabel").get("rotate")||0,T=p.innerTextLayout(g,_*Math.PI/180,-1);S=T.textAlign,E=T.textVerticalAlign}else{var w=A[1];b=r.coordToPoint([w+a,h]);var O=r.cx,I=r.cy;S=Math.abs(b[0]-O)/w<.3?"center":b[0]>O?"left":"right",E=Math.abs(b[1]-I)/w<.3?"middle":b[1]>I?"top":"bottom"}return{position:b,align:S,verticalAlign:E}}var i={line:function(o,e,l,r,a){return o.dim==="angle"?{type:"Line",shape:v.makeLineShape(e.coordToPoint([r[0],l]),e.coordToPoint([r[1],l]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:l}}},shadow:function(o,e,l,r,a){var c=Math.max(1,o.getBandWidth()),h=Math.PI/180;return o.dim==="angle"?{type:"Sector",shape:v.makeSectorShape(e.cx,e.cy,r[0],r[1],(-l-c/2)*h,(-l+c/2)*h)}:{type:"Sector",shape:v.makeSectorShape(e.cx,e.cy,l-c/2,l+c/2,0,Math.PI*2)}}};d.registerAxisPointerClass("PolarAxisPointer",u);var t=u;R.exports=t},b56q:function(R,D,n){},b80T:function(R,D,n){var y=n("UNi/"),f=n("03A+"),x=n("Z0cm"),v=n("DSRE"),m=n("wJg7"),p=n("c6wG"),d=Object.prototype,u=d.hasOwnProperty;function s(i,t){var o=x(i),e=!o&&f(i),l=!o&&!e&&v(i),r=!o&&!e&&!l&&p(i),a=o||e||l||r,c=a?y(i.length,String):[],h=c.length;for(var g in i)(t||u.call(i,g))&&!(a&&(g=="length"||l&&(g=="offset"||g=="parent")||r&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||m(g,h)))&&c.push(g);return c}R.exports=s},b80e:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("gKaM")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="DoubleLeftOutlined";var i=v.forwardRef(s);D.default=i},b9oc:function(R,D,n){var y=n("bYtY"),f=y.each,x="\0_ec_hist_store";function v(s,i){var t=u(s);f(i,function(o,e){for(var l=t.length-1;l>=0;l--){var r=t[l];if(r[e])break}if(l<0){var a=s.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0];if(a){var c=a.getPercentRange();t[0][e]={dataZoomId:e,start:c[0],end:c[1]}}}}),t.push(i)}function m(s){var i=u(s),t=i[i.length-1];i.length>1&&i.pop();var o={};return f(t,function(e,l){for(var r=i.length-1;r>=0;r--){var e=i[r][l];if(e){o[l]=e;break}}}),o}function p(s){s[x]=null}function d(s){return u(s).length}function u(s){var i=s[x];return i||(i=s[x]=[{}]),i}D.push=v,D.pop=m,D.clear=p,D.count=d},bBKM:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("ProS"),v=n("bYtY"),m=n("+rIm"),p=n("IwbS"),d=["axisLine","axisTickLabel","axisName"],u=x.extendComponentView({type:"radar",render:function(s,i,t){var o=this.group;o.removeAll(),this._buildAxes(s),this._buildSplitLineAndArea(s)},_buildAxes:function(s){var i=s.coordinateSystem,t=i.getIndicatorAxes(),o=v.map(t,function(e){var l=new m(e.model,{position:[i.cx,i.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});v.each(o,function(e){v.each(d,e.add,e),this.group.add(e.getGroup())},this)},_buildSplitLineAndArea:function(s){var i=s.coordinateSystem,t=i.getIndicatorAxes();if(!t.length)return;var o=s.get("shape"),e=s.getModel("splitLine"),l=s.getModel("splitArea"),r=e.getModel("lineStyle"),a=l.getModel("areaStyle"),c=e.get("show"),h=l.get("show"),g=r.get("color"),A=a.get("color");g=v.isArray(g)?g:[g],A=v.isArray(A)?A:[A];var b=[],S=[];function E(U,K,z){var V=z%K.length;return U[V]=U[V]||[],V}if(o==="circle")for(var C=t[0].getTicksCoords(),_=i.cx,T=i.cy,w=0;w<C.length;w++){if(c){var O=E(b,g,w);b[O].push(new p.Circle({shape:{cx:_,cy:T,r:C[w].coord}}))}if(h&&w<C.length-1){var O=E(S,A,w);S[O].push(new p.Ring({shape:{cx:_,cy:T,r0:C[w].coord,r:C[w+1].coord}}))}}else for(var I,k=v.map(t,function(U,K){var z=U.getTicksCoords();return I=I==null?z.length-1:Math.min(z.length-1,I),v.map(z,function(V){return i.coordToPoint(V.coord,K)})}),M=[],w=0;w<=I;w++){for(var j=[],P=0;P<t.length;P++)j.push(k[P][w]);if(j[0]&&j.push(j[0].slice()),c){var O=E(b,g,w);b[O].push(new p.Polyline({shape:{points:j}}))}if(h&&M){var O=E(S,A,w-1);S[O].push(new p.Polygon({shape:{points:j.concat(M)}}))}M=j.slice().reverse()}var X=r.getLineStyle(),F=a.getAreaStyle();v.each(S,function(U,K){this.group.add(p.mergePath(U,{style:v.defaults({stroke:"none",fill:A[K%A.length]},F),silent:!0}))},this),v.each(b,function(U,K){this.group.add(p.mergePath(U,{style:v.defaults({fill:"none",stroke:g[K%g.length]},X),silent:!0}))},this)}});R.exports=u},bBL8:function(R,D,n){var y=n("ProS");n("LPzL"),n("rfSb"),n("JVwQ");var f=n("UnoB"),x=n("cbJ4"),v=n("0/Rx");y.registerLayout(f),y.registerVisual(x),y.registerProcessor(v("themeRiver"))},bE4E:function(R,D,n){},bE4q:function(R,D,n){"use strict";var y=n("pVnL"),f=n.n(y),x=n("lSNA"),v=n.n(x),m=n("RIqP"),p=n.n(m),d=n("q1tI"),u=n("TSYQ"),s=n.n(u),i=n("Zm9Q"),t=n("HQEm"),o=n.n(t),e=n("XBQK"),l=n("H84U"),r=function(M,j){var P={};for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&j.indexOf(X)<0&&(P[X]=M[X]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,X=Object.getOwnPropertySymbols(M);F<X.length;F++)j.indexOf(X[F])<0&&Object.prototype.propertyIsEnumerable.call(M,X[F])&&(P[X[F]]=M[X[F]]);return P},a=function(j){var P=j.prefixCls,X=j.separator,F=X===void 0?"/":X,U=j.children,K=j.overlay,z=j.dropdownProps,V=r(j,["prefixCls","separator","children","overlay","dropdownProps"]),Q=d.useContext(l.b),G=Q.getPrefixCls,te=G("breadcrumb",P),q=function(xe){return K?d.createElement(e.a,f()({overlay:K,placement:"bottomCenter"},z),d.createElement("span",{className:"".concat(te,"-overlay-link")},xe,d.createElement(o.a,null))):xe},se;return"href"in V?se=d.createElement("a",f()({className:"".concat(te,"-link")},V),U):se=d.createElement("span",f()({className:"".concat(te,"-link")},V),U),se=q(se),U?d.createElement("span",null,se,F&&F!==""&&d.createElement("span",{className:"".concat(te,"-separator")},F)):null};a.__ANT_BREADCRUMB_ITEM=!0;var c=a,h=function(j){var P=j.children,X=d.useContext(l.b),F=X.getPrefixCls,U=F("breadcrumb");return d.createElement("span",{className:"".concat(U,"-separator")},P||"/")};h.__ANT_BREADCRUMB_SEPARATOR=!0;var g=h,A=n("BvKs"),b=n("uaoM"),S=n("0n0R"),E=function(M,j){var P={};for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&j.indexOf(X)<0&&(P[X]=M[X]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,X=Object.getOwnPropertySymbols(M);F<X.length;F++)j.indexOf(X[F])<0&&Object.prototype.propertyIsEnumerable.call(M,X[F])&&(P[X[F]]=M[X[F]]);return P};function C(M,j){if(!M.breadcrumbName)return null;var P=Object.keys(j).join("|"),X=M.breadcrumbName.replace(new RegExp(":(".concat(P,")"),"g"),function(F,U){return j[U]||F});return X}function _(M,j,P,X){var F=P.indexOf(M)===P.length-1,U=C(M,j);return F?d.createElement("span",null,U):d.createElement("a",{href:"#/".concat(X.join("/"))},U)}var T=function(j,P){return j=(j||"").replace(/^\//,""),Object.keys(P).forEach(function(X){j=j.replace(":".concat(X),P[X])}),j},w=function(j){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",X=arguments.length>2?arguments[2]:void 0,F=p()(j),U=T(P,X);return U&&F.push(U),F},O=function(j){var P=j.prefixCls,X=j.separator,F=X===void 0?"/":X,U=j.style,K=j.className,z=j.routes,V=j.children,Q=j.itemRender,G=Q===void 0?_:Q,te=j.params,q=te===void 0?{}:te,se=E(j,["prefixCls","separator","style","className","routes","children","itemRender","params"]),re=d.useContext(l.b),xe=re.getPrefixCls,Oe=re.direction,Me,Qe=xe("breadcrumb",P);if(z&&z.length>0){var Ve=[];Me=z.map(function(Fe){var ue=T(Fe.path,q);ue&&Ve.push(ue);var et;return Fe.children&&Fe.children.length&&(et=d.createElement(A.a,null,Fe.children.map(function(he){return d.createElement(A.a.Item,{key:he.path||he.breadcrumbName},G(he,q,z,w(Ve,he.path,q)))}))),d.createElement(c,{overlay:et,separator:F,key:ue||Fe.breadcrumbName},G(Fe,q,z,Ve))})}else V&&(Me=Object(i.a)(V).map(function(Fe,ue){return Fe&&(Object(b.a)(Fe.type&&(Fe.type.__ANT_BREADCRUMB_ITEM===!0||Fe.type.__ANT_BREADCRUMB_SEPARATOR===!0),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(S.a)(Fe,{separator:F,key:ue}))}));var ut=s()(K,Qe,v()({},"".concat(Qe,"-rtl"),Oe==="rtl"));return d.createElement("div",f()({className:ut,style:U},se),Me)};O.Item=c,O.Separator=g;var I=O,k=D.a=I},bKJz:function(R,D,n){},bLfw:function(R,D,n){var y=n("bYtY"),f=n("Qxkt"),x=n("iRjW"),v=n("Yl7c"),m=v.enableClassManagement,p=v.parseClassType,d=n("4NO4"),u=d.makeInner,s=n("+TT/"),i=n("3hzK"),t=u(),o=f.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(r,a,c,h){f.call(this,r,a,c,h),this.uid=x.getUID("ec_cpt_model")},init:function(r,a,c,h){this.mergeDefaultAndTheme(r,c)},mergeDefaultAndTheme:function(r,a){var c=this.layoutMode,h=c?s.getLayoutParams(r):{},g=a.getTheme();y.merge(r,g.get(this.mainType)),y.merge(r,this.getDefaultOption()),c&&s.mergeLayoutParam(r,h,c)},mergeOption:function(r,a){y.merge(this.option,r,!0);var c=this.layoutMode;c&&s.mergeLayoutParam(this.option,r,c)},optionUpdated:function(r,a){},getDefaultOption:function(){var r=t(this);if(!r.defaultOption){for(var a=[],c=this.constructor;c;){var h=c.prototype.defaultOption;h&&a.push(h),c=c.superClass}for(var g={},A=a.length-1;A>=0;A--)g=y.merge(g,a[A],!0);r.defaultOption=g}return r.defaultOption},getReferringComponents:function(r){return this.ecModel.queryComponents({mainType:r,index:this.get(r+"Index",!0),id:this.get(r+"Id",!0)})}});m(o,{registerWhenExtend:!0}),x.enableSubTypeDefaulter(o),x.enableTopologicalTravel(o,e);function e(r){var a=[];return y.each(o.getClassesByMainType(r),function(c){a=a.concat(c.prototype.dependencies||[])}),a=y.map(a,function(c){return p(c).main}),r!=="dataset"&&y.indexOf(a,"dataset")<=0&&a.unshift("dataset"),a}y.mixin(o,i);var l=o;R.exports=l},bMXI:function(R,D,n){var y=n("bYtY"),f=n("QBsz"),x=n("Fofx"),v=n("mFDi"),m=n("DN4a"),p=f.applyTransform;function d(){m.call(this)}y.mixin(d,m);function u(t){this.name=t,this.zoomLimit,m.call(this),this._roamTransformable=new d,this._rawTransformable=new d,this._center,this._zoom}u.prototype={constructor:u,type:"view",dimensions:["x","y"],setBoundingRect:function(t,o,e,l){return this._rect=new v(t,o,e,l),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,o,e,l){this.transformTo(t,o,e,l),this._viewRect=new v(t,o,e,l)},transformTo:function(t,o,e,l){var r=this.getBoundingRect(),a=this._rawTransformable;a.transform=r.calculateTransform(new v(t,o,e,l)),a.decomposeTransform(),this._updateTransform()},setCenter:function(t){if(!t)return;this._center=t,this._updateCenterAndZoom()},setZoom:function(t){t=t||1;var o=this.zoomLimit;o&&(o.max!=null&&(t=Math.min(o.max,t)),o.min!=null&&(t=Math.max(o.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),o=t.x+t.width/2,e=t.y+t.height/2;return[o,e]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),o=this._roamTransformable,e=this.getDefaultCenter(),l=this.getCenter(),r=this.getZoom();l=f.applyTransform([],l,t),e=f.applyTransform([],e,t),o.origin=l,o.position=[e[0]-l[0],e[1]-l[1]],o.scale=[r,r],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,o=this._rawTransformable;o.parent=t,t.updateTransform(),o.updateTransform(),x.copy(this.transform||(this.transform=[]),o.transform||x.create()),this._rawTransform=o.getLocalTransform(),this.invTransform=this.invTransform||[],x.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var t=this._roamTransformable.transform,o=this._rawTransformable;return{roamTransform:t?y.slice(t):x.create(),rawScale:y.slice(o.scale),rawPosition:y.slice(o.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,o,e){var l=o?this._rawTransform:this.transform;return e=e||[],l?p(e,t,l):f.copy(e,t)},pointToData:function(t){var o=this.invTransform;return o?p([],t,o):[t[0],t[1]]},convertToPixel:y.curry(s,"dataToPoint"),convertFromPixel:y.curry(s,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},y.mixin(u,m);function s(t,o,e,l){var r=e.seriesModel,a=r?r.coordinateSystem:null;return a===this?a[t](l):null}var i=u;R.exports=i},bNin:function(R,D,n){var y=n("bYtY"),f=n("IwbS"),x=n("FBjb"),v=n("Itpr"),m=v.radialCoordinate,p=n("ProS"),d=n("4mN7"),u=n("bMXI"),s=n("Ae+d"),i=n("SgGq"),t=n("xSat"),o=t.onIrrelevantElement,e=n("Tghj"),l=e.__DEV__,r=n("OELB"),a=r.parsePercent,c=f.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(_,T){var w=T.childPoints,O=w.length,I=T.parentPoint,k=w[0],M=w[O-1];if(O===1){_.moveTo(I[0],I[1]),_.lineTo(k[0],k[1]);return}var j=T.orient,P=j==="TB"||j==="BT"?0:1,X=1-P,F=a(T.forkPosition,1),U=[];U[P]=I[P],U[X]=I[X]+(M[X]-I[X])*F,_.moveTo(I[0],I[1]),_.lineTo(U[0],U[1]),_.moveTo(k[0],k[1]),U[P]=k[P],_.lineTo(U[0],U[1]),U[P]=M[P],_.lineTo(U[0],U[1]),_.lineTo(M[0],M[1]);for(var K=1;K<O-1;K++){var z=w[K];_.moveTo(z[0],z[1]),U[P]=z[P],_.lineTo(U[0],U[1])}}}),h=p.extendChartView({type:"tree",init:function(_,T){this._oldTree,this._mainGroup=new f.Group,this._controller=new i(T.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(_,T,w,O){var I=_.getData(),k=_.layoutInfo,M=this._mainGroup,j=_.get("layout");j==="radial"?M.attr("position",[k.x+k.width/2,k.y+k.height/2]):M.attr("position",[k.x,k.y]),this._updateViewCoordSys(_,k,j),this._updateController(_,T,w);var P=this._data,X={expandAndCollapse:_.get("expandAndCollapse"),layout:j,edgeShape:_.get("edgeShape"),edgeForkPosition:_.get("edgeForkPosition"),orient:_.getOrient(),curvature:_.get("lineStyle.curveness"),symbolRotate:_.get("symbolRotate"),symbolOffset:_.get("symbolOffset"),hoverAnimation:_.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};I.diff(P).add(function(F){g(I,F)&&b(I,F,null,M,_,X)}).update(function(F,U){var K=P.getItemGraphicEl(U);if(!g(I,F)){K&&E(P,U,K,M,_,X);return}b(I,F,K,M,_,X)}).remove(function(F){var U=P.getItemGraphicEl(F);U&&E(P,F,U,M,_,X)}).execute(),this._nodeScaleRatio=_.get("nodeScaleRatio"),this._updateNodeAndLinkScale(_),X.expandAndCollapse===!0&&I.eachItemGraphicEl(function(F,U){F.off("click").on("click",function(){w.dispatchAction({type:"treeExpandAndCollapse",seriesId:_.id,dataIndex:U})})}),this._data=I},_updateViewCoordSys:function(_){var T=_.getData(),w=[];T.each(function(P){var X=T.getItemLayout(P);X&&!isNaN(X.x)&&!isNaN(X.y)&&w.push([+X.x,+X.y])});var O=[],I=[];d.fromPoints(w,O,I);var k=this._min,M=this._max;I[0]-O[0]===0&&(O[0]=k?k[0]:O[0]-1,I[0]=M?M[0]:I[0]+1),I[1]-O[1]===0&&(O[1]=k?k[1]:O[1]-1,I[1]=M?M[1]:I[1]+1);var j=_.coordinateSystem=new u;j.zoomLimit=_.get("scaleLimit"),j.setBoundingRect(O[0],O[1],I[0]-O[0],I[1]-O[1]),j.setCenter(_.get("center")),j.setZoom(_.get("zoom")),this.group.attr({position:j.position,scale:j.scale}),this._viewCoordSys=j,this._min=O,this._max=I},_updateController:function(_,T,w){var O=this._controller,I=this._controllerHost,k=this.group;O.setPointerChecker(function(M,j,P){var X=k.getBoundingRect();return X.applyTransform(k.transform),X.contain(j,P)&&!o(M,w,_)}),O.enable(_.get("roam")),I.zoomLimit=_.get("scaleLimit"),I.zoom=_.coordinateSystem.getZoom(),O.off("pan").off("zoom").on("pan",function(M){s.updateViewOnPan(I,M.dx,M.dy),w.dispatchAction({seriesId:_.id,type:"treeRoam",dx:M.dx,dy:M.dy})},this).on("zoom",function(M){s.updateViewOnZoom(I,M.scale,M.originX,M.originY),w.dispatchAction({seriesId:_.id,type:"treeRoam",zoom:M.scale,originX:M.originX,originY:M.originY}),this._updateNodeAndLinkScale(_)},this)},_updateNodeAndLinkScale:function(_){var T=_.getData(),w=this._getNodeGlobalScale(_),O=[w,w];T.eachItemGraphicEl(function(I,k){I.attr("scale",O)})},_getNodeGlobalScale:function(_){var T=_.coordinateSystem;if(T.type!=="view")return 1;var w=this._nodeScaleRatio,O=T.scale,I=O&&O[0]||1,k=T.getZoom(),M=(k-1)*w+1;return M/I},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function g(_,T){var w=_.getItemLayout(T);return w&&!isNaN(w.x)&&!isNaN(w.y)&&_.getItemVisual(T,"symbol")!=="none"}function A(_,T,w){return w.itemModel=T,w.itemStyle=T.getModel("itemStyle").getItemStyle(),w.hoverItemStyle=T.getModel("emphasis.itemStyle").getItemStyle(),w.lineStyle=T.getModel("lineStyle").getLineStyle(),w.labelModel=T.getModel("label"),w.hoverLabelModel=T.getModel("emphasis.label"),_.isExpand===!1&&_.children.length!==0?w.symbolInnerColor=w.itemStyle.fill:w.symbolInnerColor="#fff",w}function b(_,T,w,O,I,k){var M=!w,j=_.tree.getNodeByDataIndex(T),P=j.getModel(),k=A(j,P,k),X=_.tree.root,F=j.parentNode===X?j:j.parentNode||j,U=_.getItemGraphicEl(F.dataIndex),K=F.getLayout(),z=U?{x:U.position[0],y:U.position[1],rawX:U.__radialOldRawX,rawY:U.__radialOldRawY}:K,V=j.getLayout();M?(w=new x(_,T,k),w.attr("position",[z.x,z.y])):w.updateData(_,T,k),w.__radialOldRawX=w.__radialRawX,w.__radialOldRawY=w.__radialRawY,w.__radialRawX=V.rawX,w.__radialRawY=V.rawY,O.add(w),_.setItemGraphicEl(T,w),f.updateProps(w,{position:[V.x,V.y]},I);var Q=w.getSymbolPath();if(k.layout==="radial"){var G=X.children[0],te=G.getLayout(),q=G.children.length,se,re;if(V.x===te.x&&j.isExpand===!0){var xe={};xe.x=(G.children[0].getLayout().x+G.children[q-1].getLayout().x)/2,xe.y=(G.children[0].getLayout().y+G.children[q-1].getLayout().y)/2,se=Math.atan2(xe.y-te.y,xe.x-te.x),se<0&&(se=Math.PI*2+se),re=xe.x<te.x,re&&(se=se-Math.PI)}else se=Math.atan2(V.y-te.y,V.x-te.x),se<0&&(se=Math.PI*2+se),j.children.length===0||j.children.length!==0&&j.isExpand===!1?(re=V.x<te.x,re&&(se=se-Math.PI)):(re=V.x>te.x,re||(se=se-Math.PI));var Oe=re?"left":"right",Me=k.labelModel.get("rotate"),Qe=Me*(Math.PI/180);Q.setStyle({textPosition:k.labelModel.get("position")||Oe,textRotation:Me==null?-se:Qe,textOrigin:"center",verticalAlign:"middle"})}S(I,j,X,w,z,K,V,O,k)}function S(_,T,w,O,I,k,M,j,P){var X=P.edgeShape,F=O.__edge;if(X==="curve")T.parentNode&&T.parentNode!==w&&(F||(F=O.__edge=new f.BezierCurve({shape:C(P,I,I),style:y.defaults({opacity:0,strokeNoScale:!0},P.lineStyle)})),f.updateProps(F,{shape:C(P,k,M),style:{opacity:1}},_));else if(X==="polyline"&&(P.layout==="orthogonal"&&(T!==w&&T.children&&T.children.length!==0&&T.isExpand===!0))){for(var U=T.children,K=[],z=0;z<U.length;z++){var V=U[z].getLayout();K.push([V.x,V.y])}F||(F=O.__edge=new c({shape:{parentPoint:[M.x,M.y],childPoints:[[M.x,M.y]],orient:P.orient,forkPosition:P.edgeForkPosition},style:y.defaults({opacity:0,strokeNoScale:!0},P.lineStyle)})),f.updateProps(F,{shape:{parentPoint:[M.x,M.y],childPoints:K},style:{opacity:1}},_)}j.add(F)}function E(_,T,w,O,I,k){for(var M=_.tree.getNodeByDataIndex(T),j=_.tree.root,P=M.getModel(),k=A(M,P,k),X=M.parentNode===j?M:M.parentNode||M,F=k.edgeShape,U;U=X.getLayout(),U==null;)X=X.parentNode===j?X:X.parentNode||X;f.updateProps(w,{position:[U.x+1,U.y+1]},I,function(){O.remove(w),_.setItemGraphicEl(T,null)}),w.fadeOut(null,{keepLabel:!0});var K=_.getItemGraphicEl(X.dataIndex),z=K.__edge,V=w.__edge||(X.isExpand===!1||X.children.length===1?z:void 0),F=k.edgeShape;V&&(F==="curve"?f.updateProps(V,{shape:C(k,U,U),style:{opacity:0}},I,function(){O.remove(V)}):F==="polyline"&&k.layout==="orthogonal"&&f.updateProps(V,{shape:{parentPoint:[U.x,U.y],childPoints:[[U.x,U.y]]},style:{opacity:0}},I,function(){O.remove(V)}))}function C(_,T,w){var O,I,k,M,j=_.orient,P,X,F,U;if(_.layout==="radial"){P=T.rawX,F=T.rawY,X=w.rawX,U=w.rawY;var K=m(P,F),z=m(P,F+(U-F)*_.curvature),V=m(X,U+(F-U)*_.curvature),Q=m(X,U);return{x1:K.x,y1:K.y,x2:Q.x,y2:Q.y,cpx1:z.x,cpy1:z.y,cpx2:V.x,cpy2:V.y}}else P=T.x,F=T.y,X=w.x,U=w.y,(j==="LR"||j==="RL")&&(O=P+(X-P)*_.curvature,I=F,k=X+(P-X)*_.curvature,M=U),(j==="TB"||j==="BT")&&(O=P,I=F+(U-F)*_.curvature,k=X,M=U+(F-U)*_.curvature);return{x1:P,y1:F,x2:X,y2:U,cpx1:O,cpy1:I,cpx2:k,cpy2:M}}R.exports=h},bQjk:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("OLod"))})(this,function(y){return function(f){var x=y,v=x.lib,m=v.CipherParams,p=x.enc,d=p.Hex,u=x.format,s=u.Hex={stringify:function(t){return t.ciphertext.toString(d)},parse:function(t){var o=d.parse(t);return m.create({ciphertext:o})}}}(),y.format.Hex})},bT9E:function(R,D,n){"use strict";n.d(D,"a",function(){return f});var y=n("VTBJ");function f(x,v){var m=Object(y.a)({},x);return Array.isArray(v)&&v.forEach(function(p){delete m[p]}),m}},bX4T:function(R,D,n){"use strict";n.d(D,"a",function(){return u});var y=n("VTBJ"),f=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,x=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,v="".concat(f," ").concat(x).split(/[\s\n]+/),m="aria-",p="data-";function d(s,i){return s.indexOf(i)===0}function u(s){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t;i===!1?t={aria:!0,data:!0,attr:!0}:i===!0?t={aria:!0}:t=Object(y.a)({},i);var o={};return Object.keys(s).forEach(function(e){(t.aria&&(e==="role"||d(e,m))||t.data&&d(e,p)||t.attr&&v.includes(e))&&(o[e]=s[e])}),o}},bYtY:function(R,D){var n={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},y={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},f=Object.prototype.toString,x=Array.prototype,v=x.forEach,m=x.filter,p=x.slice,d=x.map,u=x.reduce,s={};function i(Fe,ue){Fe==="createCanvas"&&(c=null),s[Fe]=ue}function t(Fe){if(Fe==null||typeof Fe!="object")return Fe;var ue=Fe,et=f.call(Fe);if(et==="[object Array]"){if(!Oe(Fe)){ue=[];for(var he=0,J=Fe.length;he<J;he++)ue[he]=t(Fe[he])}}else if(y[et]){if(!Oe(Fe)){var Y=Fe.constructor;if(Fe.constructor.from)ue=Y.from(Fe);else{ue=new Y(Fe.length);for(var he=0,J=Fe.length;he<J;he++)ue[he]=t(Fe[he])}}}else if(!n[et]&&!Oe(Fe)&&!U(Fe)){ue={};for(var $ in Fe)Fe.hasOwnProperty($)&&(ue[$]=t(Fe[$]))}return ue}function o(Fe,ue,et){if(!P(ue)||!P(Fe))return et?t(ue):Fe;for(var he in ue)if(ue.hasOwnProperty(he)){var J=Fe[he],Y=ue[he];P(Y)&&P(J)&&!k(Y)&&!k(J)&&!U(Y)&&!U(J)&&!X(Y)&&!X(J)&&!Oe(Y)&&!Oe(J)?o(J,Y,et):(et||!(he in Fe))&&(Fe[he]=t(ue[he],!0))}return Fe}function e(Fe,ue){for(var et=Fe[0],he=1,J=Fe.length;he<J;he++)et=o(et,Fe[he],ue);return et}function l(Fe,ue){for(var et in ue)ue.hasOwnProperty(et)&&(Fe[et]=ue[et]);return Fe}function r(Fe,ue,et){for(var he in ue)ue.hasOwnProperty(he)&&(et?ue[he]!=null:Fe[he]==null)&&(Fe[he]=ue[he]);return Fe}var a=function(){return s.createCanvas()};s.createCanvas=function(){return document.createElement("canvas")};var c;function h(){return c||(c=a().getContext("2d")),c}function g(Fe,ue){if(Fe){if(Fe.indexOf)return Fe.indexOf(ue);for(var et=0,he=Fe.length;et<he;et++)if(Fe[et]===ue)return et}return-1}function A(Fe,ue){var et=Fe.prototype;function he(){}he.prototype=ue.prototype,Fe.prototype=new he;for(var J in et)et.hasOwnProperty(J)&&(Fe.prototype[J]=et[J]);Fe.prototype.constructor=Fe,Fe.superClass=ue}function b(Fe,ue,et){Fe="prototype"in Fe?Fe.prototype:Fe,ue="prototype"in ue?ue.prototype:ue,r(Fe,ue,et)}function S(Fe){return Fe?typeof Fe=="string"?!1:typeof Fe.length=="number":void 0}function E(Fe,ue,et){if(!(Fe&&ue))return;if(Fe.forEach&&Fe.forEach===v)Fe.forEach(ue,et);else if(Fe.length===+Fe.length)for(var he=0,J=Fe.length;he<J;he++)ue.call(et,Fe[he],he,Fe);else for(var Y in Fe)Fe.hasOwnProperty(Y)&&ue.call(et,Fe[Y],Y,Fe)}function C(Fe,ue,et){if(!(Fe&&ue))return;if(Fe.map&&Fe.map===d)return Fe.map(ue,et);for(var he=[],J=0,Y=Fe.length;J<Y;J++)he.push(ue.call(et,Fe[J],J,Fe));return he}function _(Fe,ue,et,he){if(!(Fe&&ue))return;if(Fe.reduce&&Fe.reduce===u)return Fe.reduce(ue,et,he);for(var J=0,Y=Fe.length;J<Y;J++)et=ue.call(he,et,Fe[J],J,Fe);return et}function T(Fe,ue,et){if(!(Fe&&ue))return;if(Fe.filter&&Fe.filter===m)return Fe.filter(ue,et);for(var he=[],J=0,Y=Fe.length;J<Y;J++)ue.call(et,Fe[J],J,Fe)&&he.push(Fe[J]);return he}function w(Fe,ue,et){if(!(Fe&&ue))return;for(var he=0,J=Fe.length;he<J;he++)if(ue.call(et,Fe[he],he,Fe))return Fe[he]}function O(Fe,ue){var et=p.call(arguments,2);return function(){return Fe.apply(ue,et.concat(p.call(arguments)))}}function I(Fe){var ue=p.call(arguments,1);return function(){return Fe.apply(this,ue.concat(p.call(arguments)))}}function k(Fe){return f.call(Fe)==="[object Array]"}function M(Fe){return typeof Fe=="function"}function j(Fe){return f.call(Fe)==="[object String]"}function P(Fe){var ue=typeof Fe;return ue==="function"||!!Fe&&ue==="object"}function X(Fe){return!!n[f.call(Fe)]}function F(Fe){return!!y[f.call(Fe)]}function U(Fe){return typeof Fe=="object"&&typeof Fe.nodeType=="number"&&typeof Fe.ownerDocument=="object"}function K(Fe){return Fe!==Fe}function z(Fe){for(var ue=0,et=arguments.length;ue<et;ue++)if(arguments[ue]!=null)return arguments[ue]}function V(Fe,ue){return Fe!=null?Fe:ue}function Q(Fe,ue,et){return Fe!=null?Fe:ue!=null?ue:et}function G(){return Function.call.apply(p,arguments)}function te(Fe){if(typeof Fe=="number")return[Fe,Fe,Fe,Fe];var ue=Fe.length;return ue===2?[Fe[0],Fe[1],Fe[0],Fe[1]]:ue===3?[Fe[0],Fe[1],Fe[2],Fe[1]]:Fe}function q(Fe,ue){if(!Fe)throw new Error(ue)}function se(Fe){return Fe==null?null:typeof Fe.trim=="function"?Fe.trim():Fe.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var re="__ec_primitive__";function xe(Fe){Fe[re]=!0}function Oe(Fe){return Fe[re]}function Me(Fe){var ue=k(Fe);this.data={};var et=this;Fe instanceof Me?Fe.each(he):Fe&&E(Fe,he);function he(J,Y){ue?et.set(J,Y):et.set(Y,J)}}Me.prototype={constructor:Me,get:function(ue){return this.data.hasOwnProperty(ue)?this.data[ue]:null},set:function(ue,et){return this.data[ue]=et},each:function(ue,et){et!==void 0&&(ue=O(ue,et));for(var he in this.data)this.data.hasOwnProperty(he)&&ue(this.data[he],he)},removeKey:function(ue){delete this.data[ue]}};function Qe(Fe){return new Me(Fe)}function Ve(Fe,ue){for(var et=new Fe.constructor(Fe.length+ue.length),he=0;he<Fe.length;he++)et[he]=Fe[he];var J=Fe.length;for(he=0;he<ue.length;he++)et[he+J]=ue[he];return et}function ut(){}D.$override=i,D.clone=t,D.merge=o,D.mergeAll=e,D.extend=l,D.defaults=r,D.createCanvas=a,D.getContext=h,D.indexOf=g,D.inherits=A,D.mixin=b,D.isArrayLike=S,D.each=E,D.map=C,D.reduce=_,D.filter=T,D.find=w,D.bind=O,D.curry=I,D.isArray=k,D.isFunction=M,D.isString=j,D.isObject=P,D.isBuiltInObject=X,D.isTypedArray=F,D.isDom=U,D.eqNaN=K,D.retrieve=z,D.retrieve2=V,D.retrieve3=Q,D.slice=G,D.normalizeCssArray=te,D.assert=q,D.trim=se,D.setAsPrimitive=xe,D.isPrimitive=Oe,D.createHashMap=Qe,D.concatArray=Ve,D.noop=ut},bZqE:function(R,D){function n(f,x,v){for(var m=[f],p=[],d;d=m.pop();)if(p.push(d),d.isExpand){var u=d.children;if(u.length)for(var s=0;s<u.length;s++)m.push(u[s])}for(;d=p.pop();)x(d,v)}function y(f,x){for(var v=[f],m;m=v.pop();)if(x(m),m.isExpand){var p=m.children;if(p.length)for(var d=p.length-1;d>=0;d--)v.push(p[d])}}D.eachAfter=n,D.eachBefore=y},bbsP:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("CWI+"),v=n.n(x)},bogI:function(R,D,n){"use strict";n.d(D,"a",function(){return y});var y=function(x){if(!x)return null;var v=typeof x=="function";return v?x():x}},bsht:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};D.default=y},bx4M:function(R,D,n){"use strict";var y=n("lSNA"),f=n.n(y),x=n("pVnL"),v=n.n(x),m=n("q1tI"),p=n("TSYQ"),d=n.n(p),u=n("BGR+"),s=n("H84U"),i=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T},t=function(_){return m.createElement(s.a,null,function(T){var w=T.getPrefixCls,O=_.prefixCls,I=_.className,k=_.hoverable,M=k===void 0?!0:k,j=i(_,["prefixCls","className","hoverable"]),P=w("card",O),X=d()("".concat(P,"-grid"),I,f()({},"".concat(P,"-grid-hoverable"),M));return m.createElement("div",v()({},j,{className:X}))})},o=t,e=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T},l=function(_){return m.createElement(s.a,null,function(T){var w=T.getPrefixCls,O=_.prefixCls,I=_.className,k=_.avatar,M=_.title,j=_.description,P=e(_,["prefixCls","className","avatar","title","description"]),X=w("card",O),F=d()("".concat(X,"-meta"),I),U=k?m.createElement("div",{className:"".concat(X,"-meta-avatar")},k):null,K=M?m.createElement("div",{className:"".concat(X,"-meta-title")},M):null,z=j?m.createElement("div",{className:"".concat(X,"-meta-description")},j):null,V=K||z?m.createElement("div",{className:"".concat(X,"-meta-detail")},K,z):null;return m.createElement("div",v()({},P,{className:F}),U,V)})},r=l,a=n("ZTPi"),c=n("BMrR"),h=n("kPKH"),g=n("3Nzz"),A=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T};function b(C){var _=C.map(function(T,w){return m.createElement("li",{style:{width:"".concat(100/C.length,"%")},key:"action-".concat(w)},m.createElement("span",null,T))});return _}var S=function(_){var T,w,O=m.useContext(s.b),I=O.getPrefixCls,k=O.direction,M=m.useContext(g.b),j=function(fr){_.onTabChange&&_.onTabChange(fr)},P=function(){var fr;return m.Children.forEach(_.children,function(Gt){Gt&&Gt.type&&Gt.type===o&&(fr=!0)}),fr},X=_.prefixCls,F=_.className,U=_.extra,K=_.headStyle,z=K===void 0?{}:K,V=_.bodyStyle,Q=V===void 0?{}:V,G=_.title,te=_.loading,q=_.bordered,se=q===void 0?!0:q,re=_.size,xe=_.type,Oe=_.cover,Me=_.actions,Qe=_.tabList,Ve=_.children,ut=_.activeTabKey,Fe=_.defaultActiveTabKey,ue=_.tabBarExtraContent,et=_.hoverable,he=_.tabProps,J=he===void 0?{}:he,Y=A(_,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),$=I("card",X),de=Q.padding===0||Q.padding==="0px"?{padding:24}:void 0,be=m.createElement("div",{className:"".concat($,"-loading-block")}),Ce=m.createElement("div",{className:"".concat($,"-loading-content"),style:de},m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:22},be)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:8},be),m.createElement(h.a,{span:15},be)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:6},be),m.createElement(h.a,{span:18},be)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:13},be),m.createElement(h.a,{span:9},be)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:4},be),m.createElement(h.a,{span:3},be),m.createElement(h.a,{span:16},be))),Be=ut!==void 0,fe=v()(v()({},J),(T={},f()(T,Be?"activeKey":"defaultActiveKey",Be?ut:Fe),f()(T,"tabBarExtraContent",ue),T)),we,Re=Qe&&Qe.length?m.createElement(a.a,v()({size:"large"},fe,{className:"".concat($,"-head-tabs"),onChange:j}),Qe.map(function(Kt){return m.createElement(a.a.TabPane,{tab:Kt.tab,disabled:Kt.disabled,key:Kt.key})})):null;(G||U||Re)&&(we=m.createElement("div",{className:"".concat($,"-head"),style:z},m.createElement("div",{className:"".concat($,"-head-wrapper")},G&&m.createElement("div",{className:"".concat($,"-head-title")},G),U&&m.createElement("div",{className:"".concat($,"-extra")},U)),Re));var rt=Oe?m.createElement("div",{className:"".concat($,"-cover")},Oe):null,St=m.createElement("div",{className:"".concat($,"-body"),style:Q},te?Ce:Ve),ft=Me&&Me.length?m.createElement("ul",{className:"".concat($,"-actions")},b(Me)):null,He=Object(u.default)(Y,["onTabChange"]),er=re||M,ct=d()($,F,(w={},f()(w,"".concat($,"-loading"),te),f()(w,"".concat($,"-bordered"),se),f()(w,"".concat($,"-hoverable"),et),f()(w,"".concat($,"-contain-grid"),P()),f()(w,"".concat($,"-contain-tabs"),Qe&&Qe.length),f()(w,"".concat($,"-").concat(er),er),f()(w,"".concat($,"-type-").concat(xe),!!xe),f()(w,"".concat($,"-rtl"),k==="rtl"),w));return m.createElement("div",v()({},He,{className:ct}),we,rt,St,ft)};S.Grid=o,S.Meta=r;var E=D.a=S},c2i1:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("bYtY"),v=n("Yl7c"),m=v.enableClassCheck;function p(e){return"_EC_"+e}var d=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},u=d.prototype;u.type="graph",u.isDirected=function(){return this._directed},u.addNode=function(e,l){e=e==null?""+l:""+e;var r=this._nodesMap;if(r[p(e)])return;var a=new s(e,l);return a.hostGraph=this,this.nodes.push(a),r[p(e)]=a,a},u.getNodeByIndex=function(e){var l=this.data.getRawIndex(e);return this.nodes[l]},u.getNodeById=function(e){return this._nodesMap[p(e)]},u.addEdge=function(e,l,r){var a=this._nodesMap,c=this._edgesMap;if(typeof e=="number"&&(e=this.nodes[e]),typeof l=="number"&&(l=this.nodes[l]),s.isInstance(e)||(e=a[p(e)]),s.isInstance(l)||(l=a[p(l)]),!e||!l)return;var h=e.id+"-"+l.id;if(c[h])return;var g=new i(e,l,r);return g.hostGraph=this,this._directed&&(e.outEdges.push(g),l.inEdges.push(g)),e.edges.push(g),e!==l&&l.edges.push(g),this.edges.push(g),c[h]=g,g},u.getEdgeByIndex=function(e){var l=this.edgeData.getRawIndex(e);return this.edges[l]},u.getEdge=function(e,l){s.isInstance(e)&&(e=e.id),s.isInstance(l)&&(l=l.id);var r=this._edgesMap;return this._directed?r[e+"-"+l]:r[e+"-"+l]||r[l+"-"+e]},u.eachNode=function(e,l){for(var r=this.nodes,a=r.length,c=0;c<a;c++)r[c].dataIndex>=0&&e.call(l,r[c],c)},u.eachEdge=function(e,l){for(var r=this.edges,a=r.length,c=0;c<a;c++)r[c].dataIndex>=0&&r[c].node1.dataIndex>=0&&r[c].node2.dataIndex>=0&&e.call(l,r[c],c)},u.breadthFirstTraverse=function(e,l,r,a){if(s.isInstance(l)||(l=this._nodesMap[p(l)]),!l)return;for(var c=r==="out"?"outEdges":r==="in"?"inEdges":"edges",h=0;h<this.nodes.length;h++)this.nodes[h].__visited=!1;if(e.call(a,l,null))return;for(var g=[l];g.length;)for(var A=g.shift(),b=A[c],h=0;h<b.length;h++){var S=b[h],E=S.node1===A?S.node2:S.node1;if(!E.__visited){if(e.call(a,E,A))return;g.push(E),E.__visited=!0}}},u.update=function(){for(var e=this.data,l=this.edgeData,r=this.nodes,a=this.edges,c=0,h=r.length;c<h;c++)r[c].dataIndex=-1;for(var c=0,h=e.count();c<h;c++)r[e.getRawIndex(c)].dataIndex=c;l.filterSelf(function(g){var A=a[l.getRawIndex(g)];return A.node1.dataIndex>=0&&A.node2.dataIndex>=0});for(var c=0,h=a.length;c<h;c++)a[c].dataIndex=-1;for(var c=0,h=l.count();c<h;c++)a[l.getRawIndex(c)].dataIndex=c},u.clone=function(){for(var e=new d(this._directed),l=this.nodes,r=this.edges,a=0;a<l.length;a++)e.addNode(l[a].id,l[a].dataIndex);for(var a=0;a<r.length;a++){var c=r[a];e.addEdge(c.node1.id,c.node2.id,c.dataIndex)}return e};function s(e,l){this.id=e==null?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=l==null?-1:l}s.prototype={constructor:s,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(this.dataIndex<0)return;var l=this.hostGraph,r=l.data.getItemModel(this.dataIndex);return r.getModel(e)}};function i(e,l,r){this.node1=e,this.node2=l,this.dataIndex=r==null?-1:r}i.prototype.getModel=function(e){if(this.dataIndex<0)return;var l=this.hostGraph,r=l.edgeData.getItemModel(this.dataIndex);return r.getModel(e)};var t=function(e,l){return{getValue:function(r){var a=this[e][l];return a.get(a.getDimension(r||"value"),this.dataIndex)},setVisual:function(r,a){this.dataIndex>=0&&this[e][l].setItemVisual(this.dataIndex,r,a)},getVisual:function(r,a){return this[e][l].getItemVisual(this.dataIndex,r,a)},setLayout:function(r,a){this.dataIndex>=0&&this[e][l].setItemLayout(this.dataIndex,r,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)}}};x.mixin(s,t("hostGraph","data")),x.mixin(i,t("hostGraph","edgeData")),d.Node=s,d.Edge=i,m(s),m(i);var o=d;R.exports=o},c3jg:function(R,D,n){"use strict";n.d(D,"e",function(){return d}),n.d(D,"c",function(){return s}),n.d(D,"d",function(){return i}),n.d(D,"a",function(){return o}),n.d(D,"f",function(){return e}),n.d(D,"b",function(){return l});var y=n("KQm4"),f=n("VTBJ"),x=n("Ff2n"),v=n("Zm9Q"),m=n("Kwbf"),p=n("wPhX");function d(r,a){return r!=null?r:a}function u(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=new Map;function c(h){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(h||[]).forEach(function(A){var b=A.key,S=A.children;Object(m.a)(b!=null,"Tree node must have a certain key: [".concat(g).concat(b,"]"));var E=String(b);Object(m.a)(!a.has(E)||b===null||b===void 0,"Same 'key' exist in the Tree: ".concat(E)),a.set(E,!0),c(S,"".concat(g).concat(E," > "))})}c(r)}function s(r){function a(c){var h=Object(v.a)(c);return h.map(function(g){if(!Object(p.i)(g))return Object(m.a)(!g,"Tree/TreeNode can only accept TreeNode as children."),null;var A=g.key,b=g.props,S=b.children,E=Object(x.a)(b,["children"]),C=Object(f.a)({key:A},E),_=a(S);return _.length&&(C.children=_),C}).filter(function(g){return g})}return a(r)}function i(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],c=new Set(a===!0?[]:a),h=[];function g(A){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return A.map(function(S,E){var C=Object(p.h)(b?b.pos:"0",E),_=d(S.key,C),T=Object(f.a)(Object(f.a)({},S),{},{parent:b,pos:C,children:null,data:S,isStart:[].concat(Object(y.a)(b?b.isStart:[]),[E===0]),isEnd:[].concat(Object(y.a)(b?b.isEnd:[]),[E===A.length-1])});return h.push(T),a===!0||c.has(_)?T.children=g(S.children||[],T):T.children=[],T})}return g(r),h}function t(r,a,c){var h;c?typeof c=="string"?h=function(b){return b[c]}:typeof c=="function"&&(h=function(b){return c(b)}):h=function(b,S){return d(b.key,S)};function g(A,b,S){var E=A?A.children:r,C=A?Object(p.h)(S.pos,b):"0";if(A){var _=h(A,C),T={node:A,index:b,pos:C,key:_,parentPos:S.node?S.pos:null,level:S.level+1};a(T)}E&&E.forEach(function(w,O){g(w,O,{node:A,pos:C,level:S?S.level+1:-1})})}g(null)}function o(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=a.initWrapper,h=a.processEntity,g=a.onProcessFinished,A=arguments.length>2?arguments[2]:void 0,b={},S={},E={posEntities:b,keyEntities:S};return c&&(E=c(E)||E),t(r,function(C){var _=C.node,T=C.index,w=C.pos,O=C.key,I=C.parentPos,k=C.level,M={node:_,index:T,key:O,pos:w,level:k},j=d(O,w);b[w]=M,S[j]=M,M.parent=b[I],M.parent&&(M.parent.children=M.parent.children||[],M.parent.children.push(M)),h&&h(M,E)},A),g&&g(E),E}function e(r,a){var c=a.expandedKeys,h=a.selectedKeys,g=a.loadedKeys,A=a.loadingKeys,b=a.checkedKeys,S=a.halfCheckedKeys,E=a.dragOverNodeKey,C=a.dropPosition,_=a.keyEntities,T=_[r],w={eventKey:r,expanded:c.indexOf(r)!==-1,selected:h.indexOf(r)!==-1,loaded:g.indexOf(r)!==-1,loading:A.indexOf(r)!==-1,checked:b.indexOf(r)!==-1,halfChecked:S.indexOf(r)!==-1,pos:String(T?T.pos:""),dragOver:E===r&&C===0,dragOverGapTop:E===r&&C===-1,dragOverGapBottom:E===r&&C===1};return w}function l(r){var a=r.data,c=r.expanded,h=r.selected,g=r.checked,A=r.loaded,b=r.loading,S=r.halfChecked,E=r.dragOver,C=r.dragOverGapTop,_=r.dragOverGapBottom,T=r.pos,w=r.active,O=Object(f.a)(Object(f.a)({},a),{},{expanded:c,selected:h,checked:g,loaded:A,loading:b,halfChecked:S,dragOver:E,dragOverGapTop:C,dragOverGapBottom:_,pos:T,active:w});return"props"in O||Object.defineProperty(O,"props",{get:function(){return Object(m.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),O}},c5Ni:function(R,D,n){},c5fP:function(R,D,n){"use strict";function y(ct){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(fr){return typeof fr}:y=function(fr){return fr&&typeof Symbol=="function"&&fr.constructor===Symbol&&fr!==Symbol.prototype?"symbol":typeof fr},y(ct)}Object.defineProperty(D,"__esModule",{value:!0}),D._tr_init=rt,D._tr_stored_block=St,D._tr_flush_block=He,D._tr_tally=er,D._tr_align=ft;var f=v(n("6BzB"));function x(){if(typeof WeakMap!="function")return null;var ct=new WeakMap;return x=function(){return ct},ct}function v(ct){if(ct&&ct.__esModule)return ct;if(ct===null||y(ct)!=="object"&&typeof ct!="function")return{default:ct};var Kt=x();if(Kt&&Kt.has(ct))return Kt.get(ct);var fr={},Gt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Pt in ct)if(Object.prototype.hasOwnProperty.call(ct,Pt)){var Xt=Gt?Object.getOwnPropertyDescriptor(ct,Pt):null;Xt&&(Xt.get||Xt.set)?Object.defineProperty(fr,Pt,Xt):fr[Pt]=ct[Pt]}return fr.default=ct,Kt&&Kt.set(ct,fr),fr}var m=4,p=0,d=1,u=2;function s(ct){for(var Kt=ct.length;--Kt>=0;)ct[Kt]=0}var i=0,t=1,o=2,e=3,l=258,r=29,a=256,c=a+1+r,h=30,g=19,A=2*c+1,b=15,S=16,E=7,C=256,_=16,T=17,w=18,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],I=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=512,P=new Array((c+2)*2);s(P);var X=new Array(h*2);s(X);var F=new Array(j);s(F);var U=new Array(l-e+1);s(U);var K=new Array(r);s(K);var z=new Array(h);s(z);function V(ct,Kt,fr,Gt,Pt){this.static_tree=ct,this.extra_bits=Kt,this.extra_base=fr,this.elems=Gt,this.max_length=Pt,this.has_stree=ct&&ct.length}var Q,G,te;function q(ct,Kt){this.dyn_tree=ct,this.max_code=0,this.stat_desc=Kt}function se(ct){return ct<256?F[ct]:F[256+(ct>>>7)]}function re(ct,Kt){ct.pending_buf[ct.pending++]=Kt&255,ct.pending_buf[ct.pending++]=Kt>>>8&255}function xe(ct,Kt,fr){ct.bi_valid>S-fr?(ct.bi_buf|=Kt<<ct.bi_valid&65535,re(ct,ct.bi_buf),ct.bi_buf=Kt>>S-ct.bi_valid,ct.bi_valid+=fr-S):(ct.bi_buf|=Kt<<ct.bi_valid&65535,ct.bi_valid+=fr)}function Oe(ct,Kt,fr){xe(ct,fr[Kt*2],fr[Kt*2+1])}function Me(ct,Kt){var fr=0;do fr|=ct&1,ct>>>=1,fr<<=1;while(--Kt>0);return fr>>>1}function Qe(ct){ct.bi_valid===16?(re(ct,ct.bi_buf),ct.bi_buf=0,ct.bi_valid=0):ct.bi_valid>=8&&(ct.pending_buf[ct.pending++]=ct.bi_buf&255,ct.bi_buf>>=8,ct.bi_valid-=8)}function Ve(ct,Kt){var fr=Kt.dyn_tree,Gt=Kt.max_code,Pt=Kt.stat_desc.static_tree,Xt=Kt.stat_desc.has_stree,Ge=Kt.stat_desc.extra_bits,pe=Kt.stat_desc.extra_base,oe=Kt.stat_desc.max_length,lt,qe,ge,Ht,vr,At,ir=0;for(Ht=0;Ht<=b;Ht++)ct.bl_count[Ht]=0;for(fr[ct.heap[ct.heap_max]*2+1]=0,lt=ct.heap_max+1;lt<A;lt++){if(qe=ct.heap[lt],Ht=fr[fr[qe*2+1]*2+1]+1,Ht>oe&&(Ht=oe,ir++),fr[qe*2+1]=Ht,qe>Gt)continue;ct.bl_count[Ht]++,vr=0,qe>=pe&&(vr=Ge[qe-pe]),At=fr[qe*2],ct.opt_len+=At*(Ht+vr),Xt&&(ct.static_len+=At*(Pt[qe*2+1]+vr))}if(ir===0)return;do{for(Ht=oe-1;ct.bl_count[Ht]===0;)Ht--;ct.bl_count[Ht]--,ct.bl_count[Ht+1]+=2,ct.bl_count[oe]--,ir-=2}while(ir>0);for(Ht=oe;Ht!==0;Ht--)for(qe=ct.bl_count[Ht];qe!==0;){if(ge=ct.heap[--lt],ge>Gt)continue;fr[ge*2+1]!==Ht&&(ct.opt_len+=(Ht-fr[ge*2+1])*fr[ge*2],fr[ge*2+1]=Ht),qe--}}function ut(ct,Kt,fr){var Gt=new Array(b+1),Pt=0,Xt,Ge;for(Xt=1;Xt<=b;Xt++)Gt[Xt]=Pt=Pt+fr[Xt-1]<<1;for(Ge=0;Ge<=Kt;Ge++){var pe=ct[Ge*2+1];if(pe===0)continue;ct[Ge*2]=Me(Gt[pe]++,pe)}}function Fe(){var ct,Kt,fr,Gt,Pt,Xt=new Array(b+1);for(fr=0,Gt=0;Gt<r-1;Gt++)for(K[Gt]=fr,ct=0;ct<1<<O[Gt];ct++)U[fr++]=Gt;for(U[fr-1]=Gt,Pt=0,Gt=0;Gt<16;Gt++)for(z[Gt]=Pt,ct=0;ct<1<<I[Gt];ct++)F[Pt++]=Gt;for(Pt>>=7;Gt<h;Gt++)for(z[Gt]=Pt<<7,ct=0;ct<1<<I[Gt]-7;ct++)F[256+Pt++]=Gt;for(Kt=0;Kt<=b;Kt++)Xt[Kt]=0;for(ct=0;ct<=143;)P[ct*2+1]=8,ct++,Xt[8]++;for(;ct<=255;)P[ct*2+1]=9,ct++,Xt[9]++;for(;ct<=279;)P[ct*2+1]=7,ct++,Xt[7]++;for(;ct<=287;)P[ct*2+1]=8,ct++,Xt[8]++;for(ut(P,c+1,Xt),ct=0;ct<h;ct++)X[ct*2+1]=5,X[ct*2]=Me(ct,5);Q=new V(P,O,a+1,c,b),G=new V(X,I,0,h,b),te=new V(new Array(0),k,0,g,E)}function ue(ct){var Kt;for(Kt=0;Kt<c;Kt++)ct.dyn_ltree[Kt*2]=0;for(Kt=0;Kt<h;Kt++)ct.dyn_dtree[Kt*2]=0;for(Kt=0;Kt<g;Kt++)ct.bl_tree[Kt*2]=0;ct.dyn_ltree[C*2]=1,ct.opt_len=ct.static_len=0,ct.last_lit=ct.matches=0}function et(ct){ct.bi_valid>8?re(ct,ct.bi_buf):ct.bi_valid>0&&(ct.pending_buf[ct.pending++]=ct.bi_buf),ct.bi_buf=0,ct.bi_valid=0}function he(ct,Kt,fr,Gt){et(ct),Gt&&(re(ct,fr),re(ct,~fr)),f.arraySet(ct.pending_buf,ct.window,Kt,fr,ct.pending),ct.pending+=fr}function J(ct,Kt,fr,Gt){var Pt=Kt*2,Xt=fr*2;return ct[Pt]<ct[Xt]||ct[Pt]===ct[Xt]&&Gt[Kt]<=Gt[fr]}function Y(ct,Kt,fr){for(var Gt=ct.heap[fr],Pt=fr<<1;Pt<=ct.heap_len&&!(Pt<ct.heap_len&&J(Kt,ct.heap[Pt+1],ct.heap[Pt],ct.depth)&&Pt++,J(Kt,Gt,ct.heap[Pt],ct.depth));)ct.heap[fr]=ct.heap[Pt],fr=Pt,Pt<<=1;ct.heap[fr]=Gt}function $(ct,Kt,fr){var Gt,Pt,Xt=0,Ge,pe;if(ct.last_lit!==0)do Gt=ct.pending_buf[ct.d_buf+Xt*2]<<8|ct.pending_buf[ct.d_buf+Xt*2+1],Pt=ct.pending_buf[ct.l_buf+Xt],Xt++,Gt===0?Oe(ct,Pt,Kt):(Ge=U[Pt],Oe(ct,Ge+a+1,Kt),pe=O[Ge],pe!==0&&(Pt-=K[Ge],xe(ct,Pt,pe)),Gt--,Ge=se(Gt),Oe(ct,Ge,fr),pe=I[Ge],pe!==0&&(Gt-=z[Ge],xe(ct,Gt,pe)));while(Xt<ct.last_lit);Oe(ct,C,Kt)}function de(ct,Kt){var fr=Kt.dyn_tree,Gt=Kt.stat_desc.static_tree,Pt=Kt.stat_desc.has_stree,Xt=Kt.stat_desc.elems,Ge,pe,oe=-1,lt;for(ct.heap_len=0,ct.heap_max=A,Ge=0;Ge<Xt;Ge++)fr[Ge*2]!==0?(ct.heap[++ct.heap_len]=oe=Ge,ct.depth[Ge]=0):fr[Ge*2+1]=0;for(;ct.heap_len<2;)lt=ct.heap[++ct.heap_len]=oe<2?++oe:0,fr[lt*2]=1,ct.depth[lt]=0,ct.opt_len--,Pt&&(ct.static_len-=Gt[lt*2+1]);for(Kt.max_code=oe,Ge=ct.heap_len>>1;Ge>=1;Ge--)Y(ct,fr,Ge);lt=Xt;do Ge=ct.heap[1],ct.heap[1]=ct.heap[ct.heap_len--],Y(ct,fr,1),pe=ct.heap[1],ct.heap[--ct.heap_max]=Ge,ct.heap[--ct.heap_max]=pe,fr[lt*2]=fr[Ge*2]+fr[pe*2],ct.depth[lt]=(ct.depth[Ge]>=ct.depth[pe]?ct.depth[Ge]:ct.depth[pe])+1,fr[Ge*2+1]=fr[pe*2+1]=lt,ct.heap[1]=lt++,Y(ct,fr,1);while(ct.heap_len>=2);ct.heap[--ct.heap_max]=ct.heap[1],Ve(ct,Kt),ut(fr,oe,ct.bl_count)}function be(ct,Kt,fr){var Gt,Pt=-1,Xt,Ge=Kt[0*2+1],pe=0,oe=7,lt=4;for(Ge===0&&(oe=138,lt=3),Kt[(fr+1)*2+1]=65535,Gt=0;Gt<=fr;Gt++){if(Xt=Ge,Ge=Kt[(Gt+1)*2+1],++pe<oe&&Xt===Ge)continue;pe<lt?ct.bl_tree[Xt*2]+=pe:Xt!==0?(Xt!==Pt&&ct.bl_tree[Xt*2]++,ct.bl_tree[_*2]++):pe<=10?ct.bl_tree[T*2]++:ct.bl_tree[w*2]++,pe=0,Pt=Xt,Ge===0?(oe=138,lt=3):Xt===Ge?(oe=6,lt=3):(oe=7,lt=4)}}function Ce(ct,Kt,fr){var Gt,Pt=-1,Xt,Ge=Kt[0*2+1],pe=0,oe=7,lt=4;for(Ge===0&&(oe=138,lt=3),Gt=0;Gt<=fr;Gt++){if(Xt=Ge,Ge=Kt[(Gt+1)*2+1],++pe<oe&&Xt===Ge)continue;if(pe<lt)do Oe(ct,Xt,ct.bl_tree);while(--pe!==0);else Xt!==0?(Xt!==Pt&&(Oe(ct,Xt,ct.bl_tree),pe--),Oe(ct,_,ct.bl_tree),xe(ct,pe-3,2)):pe<=10?(Oe(ct,T,ct.bl_tree),xe(ct,pe-3,3)):(Oe(ct,w,ct.bl_tree),xe(ct,pe-11,7));pe=0,Pt=Xt,Ge===0?(oe=138,lt=3):Xt===Ge?(oe=6,lt=3):(oe=7,lt=4)}}function Be(ct){var Kt;for(be(ct,ct.dyn_ltree,ct.l_desc.max_code),be(ct,ct.dyn_dtree,ct.d_desc.max_code),de(ct,ct.bl_desc),Kt=g-1;Kt>=3&&!(ct.bl_tree[M[Kt]*2+1]!==0);Kt--);return ct.opt_len+=3*(Kt+1)+5+5+4,Kt}function fe(ct,Kt,fr,Gt){var Pt;for(xe(ct,Kt-257,5),xe(ct,fr-1,5),xe(ct,Gt-4,4),Pt=0;Pt<Gt;Pt++)xe(ct,ct.bl_tree[M[Pt]*2+1],3);Ce(ct,ct.dyn_ltree,Kt-1),Ce(ct,ct.dyn_dtree,fr-1)}function we(ct){var Kt=4093624447,fr;for(fr=0;fr<=31;fr++,Kt>>>=1)if(Kt&1&&ct.dyn_ltree[fr*2]!==0)return p;if(ct.dyn_ltree[9*2]!==0||ct.dyn_ltree[10*2]!==0||ct.dyn_ltree[13*2]!==0)return d;for(fr=32;fr<a;fr++)if(ct.dyn_ltree[fr*2]!==0)return d;return p}var Re=!1;function rt(ct){Re||(Fe(),Re=!0),ct.l_desc=new q(ct.dyn_ltree,Q),ct.d_desc=new q(ct.dyn_dtree,G),ct.bl_desc=new q(ct.bl_tree,te),ct.bi_buf=0,ct.bi_valid=0,ue(ct)}function St(ct,Kt,fr,Gt){xe(ct,(i<<1)+(Gt?1:0),3),he(ct,Kt,fr,!0)}function ft(ct){xe(ct,t<<1,3),Oe(ct,C,P),Qe(ct)}function He(ct,Kt,fr,Gt){var Pt,Xt,Ge=0;ct.level>0?(ct.strm.data_type===u&&(ct.strm.data_type=we(ct)),de(ct,ct.l_desc),de(ct,ct.d_desc),Ge=Be(ct),Pt=ct.opt_len+3+7>>>3,Xt=ct.static_len+3+7>>>3,Xt<=Pt&&(Pt=Xt)):Pt=Xt=fr+5,fr+4<=Pt&&Kt!==-1?St(ct,Kt,fr,Gt):ct.strategy===m||Xt===Pt?(xe(ct,(t<<1)+(Gt?1:0),3),$(ct,P,X)):(xe(ct,(o<<1)+(Gt?1:0),3),fe(ct,ct.l_desc.max_code+1,ct.d_desc.max_code+1,Ge+1),$(ct,ct.dyn_ltree,ct.dyn_dtree)),ue(ct),Gt&&et(ct)}function er(ct,Kt,fr){return ct.pending_buf[ct.d_buf+ct.last_lit*2]=Kt>>>8&255,ct.pending_buf[ct.d_buf+ct.last_lit*2+1]=Kt&255,ct.pending_buf[ct.l_buf+ct.last_lit]=fr&255,ct.last_lit++,Kt===0?ct.dyn_ltree[fr*2]++:(ct.matches++,Kt--,ct.dyn_ltree[(U[fr]+a+1)*2]++,ct.dyn_dtree[se(Kt)*2]++),ct.last_lit===ct.lit_bufsize-1}},c6wG:function(R,D,n){var y=n("dD9F"),f=n("sEf8"),x=n("mdPL"),v=x&&x.isTypedArray,m=v?f(v):y;R.exports=m},c8qY:function(R,D,n){var y=n("IwbS"),f=n("fls0");function x(o){this._ctor=o||f,this.group=new y.Group}var v=x.prototype;v.isPersistent=function(){return!0},v.updateData=function(o){var e=this,l=e.group,r=e._lineData;e._lineData=o,r||l.removeAll();var a=u(o);o.diff(r).add(function(c){m(e,o,c,a)}).update(function(c,h){p(e,r,o,h,c,a)}).remove(function(c){l.remove(r.getItemGraphicEl(c))}).execute()};function m(o,e,l,r){var a=e.getItemLayout(l);if(!i(a))return;var c=new o._ctor(e,l,r);e.setItemGraphicEl(l,c),o.group.add(c)}function p(o,e,l,r,a,c){var h=e.getItemGraphicEl(r);if(!i(l.getItemLayout(a))){o.group.remove(h);return}h?h.updateData(l,a,c):h=new o._ctor(l,a,c),l.setItemGraphicEl(a,h),o.group.add(h)}v.updateLayout=function(){var o=this._lineData;if(!o)return;o.eachItemGraphicEl(function(e,l){e.updateLayout(o,l)},this)},v.incrementalPrepareUpdate=function(o){this._seriesScope=u(o),this._lineData=null,this.group.removeAll()};function d(o){return o.animators&&o.animators.length>0}v.incrementalUpdate=function(o,e){function l(h){!h.isGroup&&!d(h)&&(h.incremental=h.useHoverLayer=!0)}for(var r=o.start;r<o.end;r++){var a=e.getItemLayout(r);if(i(a)){var c=new this._ctor(e,r,this._seriesScope);c.traverse(l),this.group.add(c),e.setItemGraphicEl(r,c)}}};function u(o){var e=o.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}v.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},v._clearIncremental=function(){var o=this._incremental;o&&o.clearDisplaybles()};function s(o){return isNaN(o[0])||isNaN(o[1])}function i(o){return!s(o[0])&&!s(o[1])}var t=x;R.exports=t},cCMj:function(R,D,n){var y=n("bYtY"),f={updateSelectedMap:function(x){this._targetList=y.isArray(x)?x.slice():[],this._selectTargetMap=y.reduce(x||[],function(v,m){return v.set(m.name,m),v},y.createHashMap())},select:function(x,v){var m=v!=null?this._targetList[v]:this._selectTargetMap.get(x),p=this.get("selectedMode");p==="single"&&this._selectTargetMap.each(function(d){d.selected=!1}),m&&(m.selected=!0)},unSelect:function(x,v){var m=v!=null?this._targetList[v]:this._selectTargetMap.get(x);m&&(m.selected=!1)},toggleSelected:function(x,v){var m=v!=null?this._targetList[v]:this._selectTargetMap.get(x);if(m!=null)return this[m.selected?"unSelect":"select"](x,v),m.selected},isSelected:function(x,v){var m=v!=null?this._targetList[v]:this._selectTargetMap.get(x);return m&&m.selected}};R.exports=f},cVA7:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("MT78"),f=m(y),x=n("t3Fx"),v=m(x);function m(i){return i&&i.__esModule?i:{default:i}}function p(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function d(i,t){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:i}function u(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t)}var s=function(i){u(t,i);function t(o){p(this,t);var e=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o));return e.echartsLib=f.default,e}return t}(v.default);D.default=s},cWXX:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("oIFs"),v=n.n(x)},ca2m:function(R,D,n){var y=n("bYtY"),f={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},x={};x.categoryAxis=y.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},f),x.valueAxis=y.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},f),x.timeAxis=y.defaults({scale:!0,min:"dataMin",max:"dataMax"},x.valueAxis),x.logAxis=y.defaults({scale:!0,logBase:10},x.valueAxis);var v=x;R.exports=v},cbJ4:function(R,D,n){var y=n("bYtY"),f=y.createHashMap;function x(v){v.eachSeriesByType("themeRiver",function(m){var p=m.getData(),d=m.getRawData(),u=m.get("color"),s=f();p.each(function(i){s.set(p.getRawIndex(i),i)}),d.each(function(i){var t=d.getName(i),o=u[(m.nameMap.get(t)-1)%u.length];d.setItemVisual(i,"color",o);var e=s.get(i);e!=null&&p.setItemVisual(e,"color",o)})})}R.exports=x},chpo:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=1,f=function(){return"".concat(y++)};D.default=f},cpOr:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("T4UG"),v=n("YXkt"),m=n("bYtY"),p=m.concatArray,d=m.mergeAll,u=m.map,s=n("7aKB"),i=s.encodeHTML,t=n("IDmD"),o=typeof Uint32Array=="undefined"?Array:Uint32Array,e=typeof Float64Array=="undefined"?Array:Float64Array;function l(c){var h=c.data;h&&h[0]&&h[0][0]&&h[0][0].coord&&(c.data=u(h,function(g){var A=[g[0].coord,g[1].coord],b={coords:A};return g[0].name&&(b.fromName=g[0].name),g[1].name&&(b.toName=g[1].name),d([b,g[0],g[1]])}))}var r=x.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(c){c.data=c.data||[],l(c);var h=this._processFlatCoordsArray(c.data);this._flatCoords=h.flatCoords,this._flatCoordsOffset=h.flatCoordsOffset,h.flatCoords&&(c.data=new Float32Array(h.count)),r.superApply(this,"init",arguments)},mergeOption:function(c){if(c.data=c.data||[],l(c),c.data){var h=this._processFlatCoordsArray(c.data);this._flatCoords=h.flatCoords,this._flatCoordsOffset=h.flatCoordsOffset,h.flatCoords&&(c.data=new Float32Array(h.count))}r.superApply(this,"mergeOption",arguments)},appendData:function(c){var h=this._processFlatCoordsArray(c.data);h.flatCoords&&(this._flatCoords?(this._flatCoords=p(this._flatCoords,h.flatCoords),this._flatCoordsOffset=p(this._flatCoordsOffset,h.flatCoordsOffset)):(this._flatCoords=h.flatCoords,this._flatCoordsOffset=h.flatCoordsOffset),c.data=new Float32Array(h.count)),this.getRawData().appendData(c.data)},_getCoordsFromItemModel:function(c){var h=this.getData().getItemModel(c),g=h.option instanceof Array?h.option:h.getShallow("coords");return g},getLineCoordsCount:function(c){return this._flatCoordsOffset?this._flatCoordsOffset[c*2+1]:this._getCoordsFromItemModel(c).length},getLineCoords:function(c,h){if(this._flatCoordsOffset){for(var g=this._flatCoordsOffset[c*2],A=this._flatCoordsOffset[c*2+1],b=0;b<A;b++)h[b]=h[b]||[],h[b][0]=this._flatCoords[g+b*2],h[b][1]=this._flatCoords[g+b*2+1];return A}else{for(var S=this._getCoordsFromItemModel(c),b=0;b<S.length;b++)h[b]=h[b]||[],h[b][0]=S[b][0],h[b][1]=S[b][1];return S.length}},_processFlatCoordsArray:function(c){var h=0;if(this._flatCoords&&(h=this._flatCoords.length),typeof c[0]=="number"){for(var g=c.length,A=new o(g),b=new e(g),S=0,E=0,C=0,_=0;_<g;){C++;var T=c[_++];A[E++]=S+h,A[E++]=T;for(var w=0;w<T;w++){var O=c[_++],I=c[_++];b[S++]=O,b[S++]=I,_>g}}return{flatCoordsOffset:new Uint32Array(A.buffer,0,E),flatCoords:b,count:C}}return{flatCoordsOffset:null,flatCoords:null,count:c.length}},getInitialData:function(c,h){var g=new v(["value"],this);return g.hasItemOption=!1,g.initData(c.data,[],function(A,b,S,E){if(A instanceof Array)return NaN;g.hasItemOption=!0;var C=A.value;if(C!=null)return C instanceof Array?C[E]:C}),g},formatTooltip:function(c){var h=this.getData(),g=h.getItemModel(c),A=g.get("name");if(A)return A;var b=g.get("fromName"),S=g.get("toName"),E=[];return b!=null&&E.push(b),S!=null&&E.push(S),i(E.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var c=this.option.progressive;return c==null?this.option.large?1e4:this.get("progressive"):c},getProgressiveThreshold:function(){var c=this.option.progressiveThreshold;return c==null?this.option.large?2e4:this.get("progressiveThreshold"):c},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),a=r;R.exports=a},crZl:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("IwbS"),v=n("7aKB"),m=n("+TT/"),p=n("XxSj"),d=y.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(u,s){this.ecModel=u,this.api=s,this.visualMapModel},render:function(u,s,i,t){if(this.visualMapModel=u,u.get("show")===!1){this.group.removeAll();return}this.doRender.apply(this,arguments)},renderBackground:function(u){var s=this.visualMapModel,i=v.normalizeCssArray(s.get("padding")||0),t=u.getBoundingRect();u.add(new x.Rect({z2:-1,silent:!0,shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[3]+i[1],height:t.height+i[0]+i[2]},style:{fill:s.get("backgroundColor"),stroke:s.get("borderColor"),lineWidth:s.get("borderWidth")}}))},getControllerVisual:function(u,s,i){i=i||{};var t=i.forceState,o=this.visualMapModel,e={};if(s==="symbol"&&(e.symbol=o.get("itemSymbol")),s==="color"){var l=o.get("contentColor");e.color=l}function r(g){return e[g]}function a(g,A){e[g]=A}var c=o.controllerVisuals[t||o.getValueState(u)],h=p.prepareVisualTypes(c);return f.each(h,function(g){var A=c[g];i.convertOpacityToAlpha&&g==="opacity"&&(g="colorAlpha",A=c.__alphaForOpacity),p.dependsOn(g,s)&&(A&&A.applyVisual(u,r,a))}),e[s]},positionGroup:function(u){var s=this.visualMapModel,i=this.api;m.positionElement(u,s.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},doRender:f.noop});R.exports=d},crp1:function(R,D,n){"use strict";n.d(D,"b",function(){return pt}),n.d(D,"a",function(){return _n});var y={},f=function(vt,bt,cr,Qt,Mt){var tr=y[bt]||(y[bt]=URL.createObjectURL(new Blob([vt],{type:"text/javascript"}))),Rt=new Worker(tr);return Rt.onerror=function(qt){return Mt(qt.error,null)},Rt.onmessage=function(qt){return Mt(null,qt.data)},Rt.postMessage(cr,Qt),Rt},x=Uint8Array,v=Uint16Array,m=Uint32Array,p=new x([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),d=new x([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new x([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(vt,bt){for(var cr=new v(31),Qt=0;Qt<31;++Qt)cr[Qt]=bt+=1<<vt[Qt-1];for(var Mt=new m(cr[30]),Qt=1;Qt<30;++Qt)for(var tr=cr[Qt];tr<cr[Qt+1];++tr)Mt[tr]=tr-cr[Qt]<<5|Qt;return[cr,Mt]},i=s(p,2),t=i[0],o=i[1];t[28]=258,o[258]=28;for(var e=s(d,0),l=e[0],r=e[1],a=new v(32768),c=0;c<32768;++c){var h=(c&43690)>>>1|(c&21845)<<1;h=(h&52428)>>>2|(h&13107)<<2,h=(h&61680)>>>4|(h&3855)<<4,a[c]=((h&65280)>>>8|(h&255)<<8)>>>1}for(var g=function(vt,bt,cr){for(var Qt=vt.length,Mt=0,tr=new v(bt);Mt<Qt;++Mt)++tr[vt[Mt]-1];var Rt=new v(bt);for(Mt=0;Mt<bt;++Mt)Rt[Mt]=Rt[Mt-1]+tr[Mt-1]<<1;var qt;if(cr){qt=new v(1<<bt);var Hr=15-bt;for(Mt=0;Mt<Qt;++Mt)if(vt[Mt])for(var Nr=Mt<<4|vt[Mt],Dr=bt-vt[Mt],cn=Rt[vt[Mt]-1]++<<Dr,An=cn|(1<<Dr)-1;cn<=An;++cn)qt[a[cn]>>>Hr]=Nr}else for(qt=new v(Qt),Mt=0;Mt<Qt;++Mt)qt[Mt]=a[Rt[vt[Mt]-1]++]>>>15-vt[Mt];return qt},A=new x(288),c=0;c<144;++c)A[c]=8;for(var c=144;c<256;++c)A[c]=9;for(var c=256;c<280;++c)A[c]=7;for(var c=280;c<288;++c)A[c]=8;for(var b=new x(32),c=0;c<32;++c)b[c]=5;var S=g(A,9,0),E=g(A,9,1),C=g(b,5,0),_=g(b,5,1),T=function(vt){for(var bt=vt[0],cr=1;cr<vt.length;++cr)vt[cr]>bt&&(bt=vt[cr]);return bt},w=function(vt,bt,cr){var Qt=bt/8>>0;return(vt[Qt]|vt[Qt+1]<<8)>>>(bt&7)&cr},O=function(vt,bt){var cr=bt/8>>0;return(vt[cr]|vt[cr+1]<<8|vt[cr+2]<<16)>>>(bt&7)},I=function(vt){return(vt/8>>0)+(vt&7&&1)},k=function(vt,bt,cr){(bt==null||bt<0)&&(bt=0),(cr==null||cr>vt.length)&&(cr=vt.length);var Qt=new(vt instanceof v?v:vt instanceof m?m:x)(cr-bt);return Qt.set(vt.subarray(bt,cr)),Qt},M=function(vt,bt,cr){var Qt=vt.length,Mt=!bt||cr,tr=!cr||cr.i;cr||(cr={}),bt||(bt=new x(Qt*3));var Rt=function(Yn){var zt=bt.length;if(Yn>zt){var Ot=new x(Math.max(zt*2,Yn));Ot.set(bt),bt=Ot}},qt=cr.f||0,Hr=cr.p||0,Nr=cr.b||0,Dr=cr.l,cn=cr.d,An=cr.m,ri=cr.n,$n=Qt*8;do{if(!Dr){cr.f=qt=w(vt,Hr,1);var fi=w(vt,Hr+1,3);if(Hr+=3,fi)if(fi==1)Dr=E,cn=_,An=9,ri=5;else if(fi==2){var it=w(vt,Hr,31)+257,Le=w(vt,Hr+10,15)+4,je=it+w(vt,Hr+5,31)+1;Hr+=14;for(var Xe=new x(je),nt=new x(19),Ze=0;Ze<Le;++Ze)nt[u[Ze]]=w(vt,Hr+Ze*3,7);Hr+=Le*3;var ot=T(nt),Ct=(1<<ot)-1;if(!tr&&Hr+je*(ot+7)>$n)break;for(var gt=g(nt,ot,1),Ze=0;Ze<je;){var pr=gt[w(vt,Hr,Ct)];Hr+=pr&15;var _i=pr>>>4;if(_i<16)Xe[Ze++]=_i;else{var $r=0,Yr=0;for(_i==16?(Yr=3+w(vt,Hr,3),Hr+=2,$r=Xe[Ze-1]):_i==17?(Yr=3+w(vt,Hr,7),Hr+=3):_i==18&&(Yr=11+w(vt,Hr,127),Hr+=7);Yr--;)Xe[Ze++]=$r}}var mn=Xe.subarray(0,it),Ar=Xe.subarray(it);An=T(mn),ri=T(Ar),Dr=g(mn,An,1),cn=g(Ar,ri,1)}else throw"invalid block type";else{var _i=I(Hr)+4,Di=vt[_i-4]|vt[_i-3]<<8,Wi=_i+Di;if(Wi>Qt){if(tr)throw"unexpected EOF";break}Mt&&Rt(Nr+Di),bt.set(vt.subarray(_i,Wi),Nr),cr.b=Nr+=Di,cr.p=Hr=Wi*8;continue}if(Hr>$n)throw"unexpected EOF"}Mt&&Rt(Nr+131072);for(var zn=(1<<An)-1,Fr=(1<<ri)-1,Bn=An+ri+18;tr||Hr+Bn<$n;){var $r=Dr[O(vt,Hr)&zn],bn=$r>>>4;if(Hr+=$r&15,Hr>$n)throw"unexpected EOF";if(!$r)throw"invalid length/literal";if(bn<256)bt[Nr++]=bn;else if(bn==256){Dr=null;break}else{var en=bn-254;if(bn>264){var Ze=bn-257,ti=p[Ze];en=w(vt,Hr,(1<<ti)-1)+t[Ze],Hr+=ti}var pi=cn[O(vt,Hr)&Fr],Pi=pi>>>4;if(!pi)throw"invalid distance";Hr+=pi&15;var Ar=l[Pi];if(Pi>3){var ti=d[Pi];Ar+=O(vt,Hr)&(1<<ti)-1,Hr+=ti}if(Hr>$n)throw"unexpected EOF";Mt&&Rt(Nr+131072);for(var qr=Nr+en;Nr<qr;Nr+=4)bt[Nr]=bt[Nr-Ar],bt[Nr+1]=bt[Nr+1-Ar],bt[Nr+2]=bt[Nr+2-Ar],bt[Nr+3]=bt[Nr+3-Ar];Nr=qr}}cr.l=Dr,cr.p=Hr,cr.b=Nr,Dr&&(qt=1,cr.m=An,cr.d=cn,cr.n=ri)}while(!qt);return Nr==bt.length?bt:k(bt,0,Nr)},j=function(vt,bt,cr){cr<<=bt&7;var Qt=bt/8>>0;vt[Qt]|=cr,vt[Qt+1]|=cr>>>8},P=function(vt,bt,cr){cr<<=bt&7;var Qt=bt/8>>0;vt[Qt]|=cr,vt[Qt+1]|=cr>>>8,vt[Qt+2]|=cr>>>16},X=function(vt,bt){for(var cr=[],Qt=0;Qt<vt.length;++Qt)vt[Qt]&&cr.push({s:Qt,f:vt[Qt]});var Mt=cr.length,tr=cr.slice();if(!Mt)return[new x(0),0];if(Mt==1){var Rt=new x(cr[0].s+1);return Rt[cr[0].s]=1,[Rt,1]}cr.sort(function(je,Xe){return je.f-Xe.f}),cr.push({s:-1,f:25001});var qt=cr[0],Hr=cr[1],Nr=0,Dr=1,cn=2;for(cr[0]={s:-1,f:qt.f+Hr.f,l:qt,r:Hr};Dr!=Mt-1;)qt=cr[cr[Nr].f<cr[cn].f?Nr++:cn++],Hr=cr[Nr!=Dr&&cr[Nr].f<cr[cn].f?Nr++:cn++],cr[Dr++]={s:-1,f:qt.f+Hr.f,l:qt,r:Hr};for(var An=tr[0].s,Qt=1;Qt<Mt;++Qt)tr[Qt].s>An&&(An=tr[Qt].s);var ri=new v(An+1),$n=F(cr[Dr-1],ri,0);if($n>bt){var Qt=0,fi=0,_i=$n-bt,Di=1<<_i;for(tr.sort(function(Xe,nt){return ri[nt.s]-ri[Xe.s]||Xe.f-nt.f});Qt<Mt;++Qt){var Wi=tr[Qt].s;if(ri[Wi]>bt)fi+=Di-(1<<$n-ri[Wi]),ri[Wi]=bt;else break}for(fi>>>=_i;fi>0;){var it=tr[Qt].s;ri[it]<bt?fi-=1<<bt-ri[it]++-1:++Qt}for(;Qt>=0&&fi;--Qt){var Le=tr[Qt].s;ri[Le]==bt&&(--ri[Le],++fi)}$n=bt}return[new x(ri),$n]},F=function jt(vt,bt,cr){return vt.s==-1?Math.max(jt(vt.l,bt,cr+1),jt(vt.r,bt,cr+1)):bt[vt.s]=cr},U=function(vt){for(var bt=vt.length;bt&&!vt[--bt];);for(var cr=new v(++bt),Qt=0,Mt=vt[0],tr=1,Rt=function(Nr){cr[Qt++]=Nr},qt=1;qt<=bt;++qt)if(vt[qt]==Mt&&qt!=bt)++tr;else{if(!Mt&&tr>2){for(;tr>138;tr-=138)Rt(32754);tr>2&&(Rt(tr>10?tr-11<<5|28690:tr-3<<5|12305),tr=0)}else if(tr>3){for(Rt(Mt),--tr;tr>6;tr-=6)Rt(8304);tr>2&&(Rt(tr-3<<5|8208),tr=0)}for(;tr--;)Rt(Mt);tr=1,Mt=vt[qt]}return[cr.subarray(0,Qt),bt]},K=function(vt,bt){for(var cr=0,Qt=0;Qt<bt.length;++Qt)cr+=vt[Qt]*bt[Qt];return cr},z=function(vt,bt,cr){var Qt=cr.length,Mt=I(bt+2);vt[Mt]=Qt&255,vt[Mt+1]=Qt>>>8,vt[Mt+2]=vt[Mt]^255,vt[Mt+3]=vt[Mt+1]^255;for(var tr=0;tr<Qt;++tr)vt[Mt+tr+4]=cr[tr];return(Mt+4+Qt)*8},V=function(vt,bt,cr,Qt,Mt,tr,Rt,qt,Hr,Nr,Dr){j(bt,Dr++,cr),++Mt[256];for(var cn=X(Mt,15),An=cn[0],ri=cn[1],$n=X(tr,15),fi=$n[0],_i=$n[1],Di=U(An),Wi=Di[0],it=Di[1],Le=U(fi),je=Le[0],Xe=Le[1],nt=new v(19),Ze=0;Ze<Wi.length;++Ze)nt[Wi[Ze]&31]++;for(var Ze=0;Ze<je.length;++Ze)nt[je[Ze]&31]++;for(var ot=X(nt,7),Ct=ot[0],gt=ot[1],pr=19;pr>4&&!Ct[u[pr-1]];--pr);var $r=Nr+5<<3,Yr=K(Mt,A)+K(tr,b)+Rt,mn=K(Mt,An)+K(tr,fi)+Rt+14+3*pr+K(nt,Ct)+(2*nt[16]+3*nt[17]+7*nt[18]);if($r<=Yr&&$r<=mn)return z(bt,Dr,vt.subarray(Hr,Hr+Nr));var Ar,zn,Fr,Bn;if(j(bt,Dr,1+(mn<Yr)),Dr+=2,mn<Yr){Ar=g(An,ri,0),zn=An,Fr=g(fi,_i,0),Bn=fi;var bn=g(Ct,gt,0);j(bt,Dr,it-257),j(bt,Dr+5,Xe-1),j(bt,Dr+10,pr-4),Dr+=14;for(var Ze=0;Ze<pr;++Ze)j(bt,Dr+3*Ze,Ct[u[Ze]]);Dr+=3*pr;for(var en=[Wi,je],ti=0;ti<2;++ti)for(var pi=en[ti],Ze=0;Ze<pi.length;++Ze){var Pi=pi[Ze]&31;j(bt,Dr,bn[Pi]),Dr+=Ct[Pi],Pi>15&&(j(bt,Dr,pi[Ze]>>>5&127),Dr+=pi[Ze]>>>12)}}else Ar=S,zn=A,Fr=C,Bn=b;for(var Ze=0;Ze<qt;++Ze)if(Qt[Ze]>255){var Pi=Qt[Ze]>>>18&31;P(bt,Dr,Ar[Pi+257]),Dr+=zn[Pi+257],Pi>7&&(j(bt,Dr,Qt[Ze]>>>23&31),Dr+=p[Pi]);var qr=Qt[Ze]&31;P(bt,Dr,Fr[qr]),Dr+=Bn[qr],qr>3&&(P(bt,Dr,Qt[Ze]>>>5&8191),Dr+=d[qr])}else P(bt,Dr,Ar[Qt[Ze]]),Dr+=zn[Qt[Ze]];return P(bt,Dr,Ar[256]),Dr+zn[256]},Q=new m([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),G=new x(0),te=function(vt,bt,cr,Qt,Mt,tr){var Rt=vt.length,qt=new x(Qt+Rt+5*(1+Math.floor(Rt/7e3))+Mt),Hr=qt.subarray(Qt,qt.length-Mt),Nr=0;if(!bt||Rt<8)for(var Dr=0;Dr<=Rt;Dr+=65535){var cn=Dr+65535;cn<Rt?Nr=z(Hr,Nr,vt.subarray(Dr,cn)):(Hr[Dr]=tr,Nr=z(Hr,Nr,vt.subarray(Dr,Rt)))}else{for(var An=Q[bt-1],ri=An>>>13,$n=An&8191,fi=(1<<cr)-1,_i=new v(32768),Di=new v(fi+1),Wi=Math.ceil(cr/3),it=2*Wi,Le=function(yr){return(vt[yr]^vt[yr+1]<<Wi^vt[yr+2]<<it)&fi},je=new m(25e3),Xe=new v(288),nt=new v(32),Ze=0,ot=0,Dr=0,Ct=0,gt=0,pr=0;Dr<Rt;++Dr){var $r=Le(Dr),Yr=Dr&32767,mn=Di[$r];if(_i[Yr]=mn,Di[$r]=Yr,gt<=Dr){var Ar=Rt-Dr;if((Ze>7e3||Ct>24576)&&Ar>423){Nr=V(vt,Hr,0,je,Xe,nt,ot,Ct,pr,Dr-pr,Nr),Ct=Ze=ot=0,pr=Dr;for(var zn=0;zn<286;++zn)Xe[zn]=0;for(var zn=0;zn<30;++zn)nt[zn]=0}var Fr=2,Bn=0,bn=$n,en=Yr-mn&32767;if(Ar>2&&$r==Le(Dr-en))for(var ti=Math.min(ri,Ar)-1,pi=Math.min(32767,Dr),Pi=Math.min(258,Ar);en<=pi&&--bn&&Yr!=mn;){if(vt[Dr+Fr]==vt[Dr+Fr-en]){for(var qr=0;qr<Pi&&vt[Dr+qr]==vt[Dr+qr-en];++qr);if(qr>Fr){if(Fr=qr,Bn=en,qr>ti)break;for(var En=Math.min(en,qr-2),Yn=0,zn=0;zn<En;++zn){var zt=Dr-en+zn+32768&32767,Ot=_i[zt],kt=zt-Ot+32768&32767;kt>Yn&&(Yn=kt,mn=zt)}}}Yr=mn,mn=_i[Yr],en+=Yr-mn+32768&32767}if(Bn){je[Ct++]=268435456|o[Fr]<<18|r[Bn];var Bt=o[Fr]&31,Wt=r[Bn]&31;ot+=p[Bt]+d[Wt],++Xe[257+Bt],++nt[Wt],gt=Dr+Fr,++Ze}else je[Ct++]=vt[Dr],++Xe[vt[Dr]]}}Nr=V(vt,Hr,tr,je,Xe,nt,ot,Ct,pr,Dr-pr,Nr),tr||(Nr=z(Hr,Nr,G))}return k(qt,0,Qt+I(Nr)+Mt)},q=function(){for(var jt=new m(256),vt=0;vt<256;++vt){for(var bt=vt,cr=9;--cr;)bt=(bt&1&&3988292384)^bt>>>1;jt[vt]=bt}return jt}(),se=function(){var vt=4294967295;return{p:function(cr){for(var Qt=vt,Mt=0;Mt<cr.length;++Mt)Qt=q[Qt&255^cr[Mt]]^Qt>>>8;vt=Qt},d:function(){return vt^4294967295}}},re=function(){var vt=1,bt=0;return{p:function(Qt){for(var Mt=vt,tr=bt,Rt=Qt.length,qt=0;qt!=Rt;){for(var Hr=Math.min(qt+5552,Rt);qt<Hr;++qt)Mt+=Qt[qt],tr+=Mt;Mt%=65521,tr%=65521}vt=Mt,bt=tr},d:function(){return(vt>>>8<<16|(bt&255)<<8|bt>>>8)+((vt&255)<<23)*2}}},xe=function(vt,bt,cr,Qt,Mt){return te(vt,bt.level==null?6:bt.level,bt.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(vt.length)))*1.5):12+bt.mem,cr,Qt,!Mt)},Oe=function(vt,bt){var cr={};for(var Qt in vt)cr[Qt]=vt[Qt];for(var Qt in bt)cr[Qt]=bt[Qt];return cr},Me=function(vt,bt,cr){for(var Qt=vt(),Mt=vt.toString(),tr=Mt.slice(Mt.indexOf("[")+1,Mt.lastIndexOf("]")).replace(/ /g,"").split(","),Rt=0;Rt<Qt.length;++Rt){var qt=Qt[Rt],Hr=tr[Rt];if(typeof qt=="function"){bt+=";"+Hr+"=";var Nr=qt.toString();if(qt.prototype)if(Nr.indexOf("[native code]")!=-1){var Dr=Nr.indexOf(" ",8)+1;bt+=Nr.slice(Dr,Nr.indexOf("(",Dr))}else{bt+=Nr;for(var cn in qt.prototype)bt+=";"+Hr+".prototype."+cn+"="+qt.prototype[cn].toString()}else bt+=Nr}else cr[Hr]=qt}return[bt,cr]},Qe=[],Ve=function(vt){var bt=[];for(var cr in vt)(vt[cr]instanceof x||vt[cr]instanceof v||vt[cr]instanceof m)&&bt.push((vt[cr]=new vt[cr].constructor(vt[cr])).buffer);return bt},ut=function(vt,bt,cr,Qt){var Mt;if(!Qe[cr]){for(var tr="",Rt={},qt=vt.length-1,Hr=0;Hr<qt;++Hr)Mt=Me(vt[Hr],tr,Rt),tr=Mt[0],Rt=Mt[1];Qe[cr]=Me(vt[qt],tr,Rt)}var Nr=Oe({},Qe[cr][1]);return f(Qe[cr][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+bt.toString()+"}",cr,Nr,Ve(Nr),Qt)},Fe=function(){return[x,v,m,p,d,u,t,l,E,_,a,g,T,w,O,I,k,M,lt,$,de]},ue=function(){return[x,v,m,p,d,u,o,r,S,A,C,b,a,Q,G,g,j,P,X,F,U,K,z,V,I,k,te,xe,Xt,$]},et=function(){return[rt,He,Re,se,q]},he=function(){return[St,ft]},J=function(){return[er,Re,re]},Y=function(){return[ct]},$=function(vt){return postMessage(vt,[vt.buffer])},de=function(vt){return vt&&vt.size&&new x(vt.size)},be=function(vt,bt,cr,Qt,Mt,tr){var Rt=ut(cr,Qt,Mt,function(qt,Hr){Rt.terminate(),tr(qt,Hr)});return bt.consume||(vt=new x(vt)),Rt.postMessage([vt,bt],[vt.buffer]),function(){Rt.terminate()}},Ce=function(vt){return vt.ondata=function(bt,cr){return postMessage([bt,cr],[bt.buffer])},function(bt){return vt.push(bt.data[0],bt.data[1])}},Be=function(vt,bt,cr,Qt,Mt){var tr,Rt=ut(vt,Qt,Mt,function(qt,Hr){qt?(Rt.terminate(),bt.ondata.call(bt,qt)):(Hr[1]&&Rt.terminate(),bt.ondata.call(bt,qt,Hr[0],Hr[1]))});Rt.postMessage(cr),bt.push=function(qt,Hr){if(tr)throw"stream finished";if(!bt.ondata)throw"no stream handler";Rt.postMessage([qt,tr=Hr],[qt.buffer])},bt.terminate=function(){Rt.terminate()}},fe=function(vt,bt){return vt[bt]|vt[bt+1]<<8},we=function(vt,bt){return(vt[bt]|vt[bt+1]<<8|vt[bt+2]<<16)+(vt[bt+3]<<23)*2},Re=function(vt,bt,cr){for(;cr;++bt)vt[bt]=cr,cr>>>=8},rt=function(vt,bt){var cr=bt.filename;if(vt[0]=31,vt[1]=139,vt[2]=8,vt[8]=bt.level<2?4:bt.level==9?2:0,vt[9]=3,bt.mtime!=0&&Re(vt,4,Math.floor(new Date(bt.mtime||Date.now())/1e3)),cr){vt[3]=8;for(var Qt=0;Qt<=cr.length;++Qt)vt[Qt+10]=cr.charCodeAt(Qt)}},St=function(vt){if(vt[0]!=31||vt[1]!=139||vt[2]!=8)throw"invalid gzip data";var bt=vt[3],cr=10;bt&4&&(cr+=vt[10]|(vt[11]<<8)+2);for(var Qt=(bt>>3&1)+(bt>>4&1);Qt>0;Qt-=!vt[cr++]);return cr+(bt&2)},ft=function(vt){var bt=vt.length;return(vt[bt-4]|vt[bt-3]<<8|vt[bt-2]<<16)+2*(vt[bt-1]<<23)},He=function(vt){return 10+(vt.filename&&vt.filename.length+1||0)},er=function(vt,bt){var cr=bt.level,Qt=cr==0?0:cr<6?1:cr==9?3:2;vt[0]=120,vt[1]=Qt<<6|(Qt?32-2*Qt:1)},ct=function(vt){if((vt[0]&15)!=8||vt[0]>>>4>7||(vt[0]<<8|vt[1])%31)throw"invalid zlib data";if(vt[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Kt(jt,vt){return!vt&&typeof jt=="function"&&(vt=jt,jt={}),this.ondata=vt,jt}var fr=function(){function jt(vt,bt){!bt&&typeof vt=="function"&&(bt=vt,vt={}),this.ondata=bt,this.o=vt||{}}return jt.prototype.p=function(vt,bt){this.ondata(xe(vt,this.o,0,0,!bt),bt)},jt.prototype.push=function(vt,bt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=bt,this.p(vt,bt||!1)},jt}(),Gt=function(){function jt(vt,bt){Be([ue,function(){return[Ce,fr]}],this,Kt.call(this,vt,bt),function(cr){var Qt=new fr(cr.data);onmessage=Ce(Qt)},6)}return jt}();function Pt(jt,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return be(jt,vt,[ue],function(cr){return $(Xt(cr.data[0],cr.data[1]))},0,bt)}function Xt(jt,vt){return vt===void 0&&(vt={}),xe(jt,vt,0,0)}var Ge=function(){function jt(vt){this.s={},this.p=new x(0),this.ondata=vt}return jt.prototype.e=function(vt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var bt=this.p.length,cr=new x(bt+vt.length);cr.set(this.p),cr.set(vt,bt),this.p=cr},jt.prototype.c=function(vt){this.d=this.s.i=vt||!1;var bt=this.s.b,cr=M(this.p,this.o,this.s);this.ondata(k(cr,bt,this.s.b),this.d),this.o=k(cr,this.s.b-32768),this.s.b=this.o.length,this.p=k(this.p,this.s.p/8>>0),this.s.p&=7},jt.prototype.push=function(vt,bt){this.e(vt),this.c(bt)},jt}(),pe=function(){function jt(vt){this.ondata=vt,Be([Fe,function(){return[Ce,Ge]}],this,0,function(){var bt=new Ge;onmessage=Ce(bt)},7)}return jt}();function oe(jt,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return be(jt,vt,[Fe],function(cr){return $(lt(cr.data[0],de(cr.data[1])))},1,bt)}function lt(jt,vt){return M(jt,vt)}var qe=function(){function jt(vt,bt){this.c=se(),this.l=0,this.v=1,fr.call(this,vt,bt)}return jt.prototype.push=function(vt,bt){fr.prototype.push.call(this,vt,bt)},jt.prototype.p=function(vt,bt){this.c.p(vt),this.l+=vt.length;var cr=xe(vt,this.o,this.v&&He(this.o),bt&&8,!bt);this.v&&(rt(cr,this.o),this.v=0),bt&&(Re(cr,cr.length-8,this.c.d()),Re(cr,cr.length-4,this.l)),this.ondata(cr,bt)},jt}(),ge=function(){function jt(vt,bt){Be([ue,et,function(){return[Ce,fr,qe]}],this,Kt.call(this,vt,bt),function(cr){var Qt=new qe(cr.data);onmessage=Ce(Qt)},8)}return jt}();function Ht(jt,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return be(jt,vt,[ue,et,function(){return[vr]}],function(cr){return $(vr(cr.data[0],cr.data[1]))},2,bt)}function vr(jt,vt){vt===void 0&&(vt={});var bt=se(),cr=jt.length;bt.p(jt);var Qt=xe(jt,vt,He(vt),8),Mt=Qt.length;return rt(Qt,vt),Re(Qt,Mt-8,bt.d()),Re(Qt,Mt-4,cr),Qt}var At=function(){function jt(vt){this.v=1,Ge.call(this,vt)}return jt.prototype.push=function(vt,bt){if(Ge.prototype.e.call(this,vt),this.v){var cr=St(this.p);if(cr>=this.p.length&&!bt)return;this.p=this.p.subarray(cr),this.v=0}if(bt){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Ge.prototype.c.call(this,bt)},jt}(),ir=function(){function jt(vt){this.ondata=vt,Be([Fe,he,function(){return[Ce,Ge,At]}],this,0,function(){var bt=new At;onmessage=Ce(bt)},9)}return jt}();function lr(jt,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return be(jt,vt,[Fe,he,function(){return[dn]}],function(cr){return $(dn(cr.data[0]))},3,bt)}function dn(jt,vt){return M(jt.subarray(St(jt),-8),vt||new x(ft(jt)))}var Ft=function(){function jt(vt,bt){this.c=re(),this.v=1,fr.call(this,vt,bt)}return jt.prototype.push=function(vt,bt){fr.prototype.push.call(this,vt,bt)},jt.prototype.p=function(vt,bt){this.c.p(vt);var cr=xe(vt,this.o,this.v&&2,bt&&4,!bt);this.v&&(er(cr,this.o),this.v=0),bt&&Re(cr,cr.length-4,this.c.d()),this.ondata(cr,bt)},jt}(),ur=function(){function jt(vt,bt){Be([ue,J,function(){return[Ce,fr,Ft]}],this,Kt.call(this,vt,bt),function(cr){var Qt=new Ft(cr.data);onmessage=Ce(Qt)},10)}return jt}();function Jt(jt,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return be(jt,vt,[ue,J,function(){return[pt]}],function(cr){return $(pt(cr.data[0],cr.data[1]))},4,bt)}function pt(jt,vt){vt===void 0&&(vt={});var bt=re();bt.p(jt);var cr=xe(jt,vt,2,4);return er(cr,vt),Re(cr,cr.length-4,bt.d()),cr}var at=function(){function jt(vt){this.v=1,Ge.call(this,vt)}return jt.prototype.push=function(vt,bt){if(Ge.prototype.e.call(this,vt),this.v){if(this.p.length<2&&!bt)return;this.p=this.p.subarray(2),this.v=0}if(bt){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Ge.prototype.c.call(this,bt)},jt}(),Pr=function(){function jt(vt){this.ondata=vt,Be([Fe,Y,function(){return[Ce,Ge,at]}],this,0,function(){var bt=new at;onmessage=Ce(bt)},11)}return jt}();function un(jt,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return be(jt,vt,[Fe,Y,function(){return[_n]}],function(cr){return $(_n(cr.data[0],de(cr.data[1])))},5,bt)}function _n(jt,vt){return M((ct(jt),jt.subarray(2,-4)),vt)}var Xn=function(){function jt(vt){this.G=At,this.I=Ge,this.Z=at,this.ondata=vt}return jt.prototype.push=function(vt,bt){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(vt,bt);else{if(this.p&&this.p.length){var cr=new x(this.p.length+vt.length);cr.set(this.p),cr.set(vt,this.p.length)}else this.p=vt;if(this.p.length>2){var Qt=this,Mt=function(){Qt.ondata.apply(Qt,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(Mt):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(Mt):new this.Z(Mt),this.s.push(this.p,bt),this.p=null}}},jt}(),xi=function(){function jt(vt){this.G=ir,this.I=pe,this.Z=Pr,this.ondata=vt}return jt.prototype.push=function(vt,bt){Xn.prototype.push.call(this,vt,bt)},jt}();function Pn(jt,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return jt[0]==31&&jt[1]==139&&jt[2]==8?lr(jt,vt,bt):(jt[0]&15)!=8||jt[0]>>4>7||(jt[0]<<8|jt[1])%31?oe(jt,vt,bt):un(jt,vt,bt)}function Un(jt,vt){return jt[0]==31&&jt[1]==139&&jt[2]==8?dn(jt,vt):(jt[0]&15)!=8||jt[0]>>4>7||(jt[0]<<8|jt[1])%31?lt(jt,vt):_n(jt,vt)}var $t=function jt(vt,bt,cr,Qt){for(var Mt in vt){var tr=vt[Mt],Rt=bt+Mt;tr instanceof x?cr[Rt]=[tr,Qt]:Array.isArray(tr)?cr[Rt]=[tr[0],Oe(Qt,tr[1])]:jt(tr,Rt+"/",cr,Qt)}};function xt(jt,vt){var bt=jt.length;if(!vt&&typeof TextEncoder!="undefined")return new TextEncoder().encode(jt);for(var cr=new x(jt.length+(jt.length>>>1)),Qt=0,Mt=function(Nr){cr[Qt++]=Nr},tr=0;tr<bt;++tr){if(Qt+5>cr.length){var Rt=new x(Qt+8+(bt-tr<<1));Rt.set(cr),cr=Rt}var qt=jt.charCodeAt(tr);qt<128||vt?Mt(qt):qt<2048?(Mt(192|qt>>>6),Mt(128|qt&63)):qt>55295&&qt<57344?(qt=65536+(qt&1023<<10)|jt.charCodeAt(++tr)&1023,Mt(240|qt>>>18),Mt(128|qt>>>12&63),Mt(128|qt>>>6&63),Mt(128|qt&63)):(Mt(224|qt>>>12),Mt(128|qt>>>6&63),Mt(128|qt&63))}return k(cr,0,Qt)}function De(jt,vt){var bt="";if(!vt&&typeof TextDecoder!="undefined")return new TextDecoder().decode(jt);for(var cr=0;cr<jt.length;){var Qt=jt[cr++];Qt<128||vt?bt+=String.fromCharCode(Qt):Qt<224?bt+=String.fromCharCode((Qt&31)<<6|jt[cr++]&63):Qt<240?bt+=String.fromCharCode((Qt&15)<<12|(jt[cr++]&63)<<6|jt[cr++]&63):(Qt=((Qt&15)<<18|(jt[cr++]&63)<<12|(jt[cr++]&63)<<6|jt[cr++]&63)-65536,bt+=String.fromCharCode(55296|Qt>>10,56320|Qt&1023))}return bt}var ke=function(vt,bt){return bt+30+fe(vt,bt+26)+fe(vt,bt+28)},Pe=function(vt,bt,cr){var Qt=fe(vt,bt+28),Mt=De(vt.subarray(bt+46,bt+46+Qt),!(fe(vt,bt+8)&2048)),tr=bt+46+Qt,Rt=cr?tt(vt,tr):[we(vt,bt+20),we(vt,bt+24),we(vt,bt+42)],qt=Rt[0],Hr=Rt[1],Nr=Rt[2];return[fe(vt,bt+10),qt,Hr,Mt,tr+fe(vt,bt+30)+fe(vt,bt+32),Nr]},tt=function(vt,bt){for(;fe(vt,bt)!=1;bt+=4+fe(vt,bt+2));return[we(vt,bt+12),we(vt,bt+4),we(vt,bt+20)]},yt=function(vt,bt,cr,Qt,Mt,tr,Rt,qt,Hr,Nr){var Dr=tr.length,cn=Qt.length;Re(vt,bt,Hr!=null?33639248:67324752),bt+=4,Hr!=null&&(vt[bt]=20,bt+=2),vt[bt]=20,bt+=2,vt[bt++]=Nr==8&&(qt.level==1?6:qt.level<6?4:qt.level==9?2:0),vt[bt++]=Rt&&8,vt[bt]=Nr,bt+=2;var An=new Date(qt.mtime||Date.now()),ri=An.getFullYear()-1980;if(ri<0||ri>119)throw"date not in range 1980-2099";Re(vt,bt,(ri<<24)*2|An.getMonth()+1<<21|An.getDate()<<16|An.getHours()<<11|An.getMinutes()<<5|An.getSeconds()>>>1),bt+=4,Re(vt,bt,cr),Re(vt,bt+4,cn),Re(vt,bt+8,Mt),Re(vt,bt+12,Dr),bt+=16,Hr!=null&&(Re(vt,bt+=10,Hr),bt+=4),vt.set(tr,bt),bt+=Dr,Hr==null&&vt.set(Qt,bt)},Et=function(vt,bt,cr,Qt,Mt){Re(vt,bt,101010256),Re(vt,bt+8,cr),Re(vt,bt+10,cr),Re(vt,bt+12,Qt),Re(vt,bt+16,Mt)};function Yt(jt,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";var cr={};$t(jt,"",cr,vt);var Qt=Object.keys(cr),Mt=Qt.length,tr=0,Rt=0,qt=Mt,Hr=new Array(Mt),Nr=[],Dr=function(){for(var fi=0;fi<Nr.length;++fi)Nr[fi]()},cn=function(){var fi=new x(Rt+22),_i=tr,Di=Rt-tr;Rt=0;for(var Wi=0;Wi<qt;++Wi){var it=Hr[Wi];try{yt(fi,Rt,it.c,it.d,it.m,it.n,it.u,it.p,null,it.t),yt(fi,tr,it.c,it.d,it.m,it.n,it.u,it.p,Rt,it.t),tr+=46+it.n.length,Rt+=30+it.n.length+it.d.length}catch(Le){return bt(Le,null)}}Et(fi,tr,Hr.length,Di,_i),bt(null,fi)};Mt||cn();for(var An=function(fi){var _i=Qt[fi],Di=cr[_i],Wi=Di[0],it=Di[1],Le=se(),je=Wi.length;Le.p(Wi);var Xe=xt(_i),nt=Xe.length,Ze=it.level==0?0:8,ot=function(gt,pr){if(gt)Dr(),bt(gt,null);else{var $r=pr.length;Hr[fi]={t:Ze,d:pr,m:je,c:Le.d(),u:_i.length!=$r,n:Xe,p:it},tr+=30+nt+$r,Rt+=76+2*nt+$r,--Mt||cn()}};if(Xe.length>65535&&ot("filename too long",null),!Ze)ot(null,Wi);else if(je<16e4)try{ot(null,Xt(Wi,it))}catch(Ct){ot(Ct,null)}else Nr.push(Pt(Wi,it,ot))},ri=0;ri<qt;++ri)An(ri);return Dr}function Rr(jt,vt){vt===void 0&&(vt={});var bt={},cr=[];$t(jt,"",bt,vt);var Qt=0,Mt=0;for(var tr in bt){var Rt=bt[tr],qt=Rt[0],Hr=Rt[1],Nr=Hr.level==0?0:8,Dr=xt(tr),cn=Dr.length;if(Dr.length>65535)throw"filename too long";var An=Nr?Xt(qt,Hr):qt,ri=An.length,$n=se();$n.p(qt),cr.push({t:Nr,d:An,m:qt.length,c:$n.d(),u:tr.length!=cn,n:Dr,o:Qt,p:Hr}),Qt+=30+cn+ri,Mt+=76+2*cn+ri}for(var fi=new x(Mt+22),_i=Qt,Di=Mt-Qt,Wi=0;Wi<cr.length;++Wi){var it=cr[Wi];yt(fi,it.o,it.c,it.d,it.m,it.n,it.u,it.p,null,it.t),yt(fi,Qt,it.c,it.d,it.m,it.n,it.u,it.p,it.o,it.t),Qt+=46+it.n.length}return Et(fi,Qt,cr.length,Di,_i),fi}function zr(jt,vt){if(typeof vt!="function")throw"no callback";for(var bt=[],cr=function(){for(var An=0;An<bt.length;++An)bt[An]()},Qt={},Mt=jt.length-22;we(jt,Mt)!=101010256;--Mt)if(!Mt||jt.length-Mt>65558){vt("invalid zip file",null);return}var tr=fe(jt,Mt+8);tr||vt(null,{});var Rt=tr,qt=we(jt,Mt+16),Hr=qt==4294967295;if(Hr){if(Mt=we(jt,Mt-12),we(jt,Mt)!=101075792)throw"invalid zip file";Rt=tr=we(jt,Mt+32),qt=we(jt,Mt+48)}for(var Nr=function(An){var ri=Pe(jt,qt,Hr),$n=ri[0],fi=ri[1],_i=ri[2],Di=ri[3],Wi=ri[4],it=ri[5],Le=ke(jt,it);qt=Wi;var je=function(Ze,ot){Ze?(cr(),vt(Ze,null)):(Qt[Di]=ot,--tr||vt(null,Qt))};if(!$n)je(null,k(jt,Le,Le+fi));else if($n==8){var Xe=jt.subarray(Le,Le+fi);if(fi<32e4)try{je(null,lt(Xe,new x(_i)))}catch(nt){je(nt,null)}else bt.push(oe(Xe,{size:_i},je))}else je("unknown compression type "+$n,null)},Dr=0;Dr<Rt;++Dr)Nr(Dr);return cr}function hn(jt){for(var vt={},bt=jt.length-22;we(jt,bt)!=101010256;--bt)if(!bt||jt.length-bt>65558)throw"invalid zip file";var cr=fe(jt,bt+8);if(!cr)return{};var Qt=we(jt,bt+16),Mt=Qt==4294967295;if(Mt){if(bt=we(jt,bt-12),we(jt,bt)!=101075792)throw"invalid zip file";cr=we(jt,bt+32),Qt=we(jt,bt+48)}for(var tr=0;tr<cr;++tr){var Rt=Pe(jt,Qt,Mt),qt=Rt[0],Hr=Rt[1],Nr=Rt[2],Dr=Rt[3],cn=Rt[4],An=Rt[5],ri=ke(jt,An);if(Qt=cn,!qt)vt[Dr]=k(jt,ri,ri+Hr);else if(qt==8)vt[Dr]=lt(jt.subarray(ri,ri+Hr),new x(Nr));else throw"unknown compression type "+qt}return vt}},cv67:function(R,D,n){(function(y,f){R.exports=D=f(n("Ib8C"))})(this,function(y){return function(f){var x=y,v=x.lib,m=v.WordArray,p=v.Hasher,d=x.algo,u=[];(function(){for(var l=0;l<64;l++)u[l]=f.abs(f.sin(l+1))*4294967296|0})();var s=d.MD5=p.extend({_doReset:function(){this._hash=new m.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(r,a){for(var c=0;c<16;c++){var h=a+c,g=r[h];r[h]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var A=this._hash.words,b=r[a+0],S=r[a+1],E=r[a+2],C=r[a+3],_=r[a+4],T=r[a+5],w=r[a+6],O=r[a+7],I=r[a+8],k=r[a+9],M=r[a+10],j=r[a+11],P=r[a+12],X=r[a+13],F=r[a+14],U=r[a+15],K=A[0],z=A[1],V=A[2],Q=A[3];K=i(K,z,V,Q,b,7,u[0]),Q=i(Q,K,z,V,S,12,u[1]),V=i(V,Q,K,z,E,17,u[2]),z=i(z,V,Q,K,C,22,u[3]),K=i(K,z,V,Q,_,7,u[4]),Q=i(Q,K,z,V,T,12,u[5]),V=i(V,Q,K,z,w,17,u[6]),z=i(z,V,Q,K,O,22,u[7]),K=i(K,z,V,Q,I,7,u[8]),Q=i(Q,K,z,V,k,12,u[9]),V=i(V,Q,K,z,M,17,u[10]),z=i(z,V,Q,K,j,22,u[11]),K=i(K,z,V,Q,P,7,u[12]),Q=i(Q,K,z,V,X,12,u[13]),V=i(V,Q,K,z,F,17,u[14]),z=i(z,V,Q,K,U,22,u[15]),K=t(K,z,V,Q,S,5,u[16]),Q=t(Q,K,z,V,w,9,u[17]),V=t(V,Q,K,z,j,14,u[18]),z=t(z,V,Q,K,b,20,u[19]),K=t(K,z,V,Q,T,5,u[20]),Q=t(Q,K,z,V,M,9,u[21]),V=t(V,Q,K,z,U,14,u[22]),z=t(z,V,Q,K,_,20,u[23]),K=t(K,z,V,Q,k,5,u[24]),Q=t(Q,K,z,V,F,9,u[25]),V=t(V,Q,K,z,C,14,u[26]),z=t(z,V,Q,K,I,20,u[27]),K=t(K,z,V,Q,X,5,u[28]),Q=t(Q,K,z,V,E,9,u[29]),V=t(V,Q,K,z,O,14,u[30]),z=t(z,V,Q,K,P,20,u[31]),K=o(K,z,V,Q,T,4,u[32]),Q=o(Q,K,z,V,I,11,u[33]),V=o(V,Q,K,z,j,16,u[34]),z=o(z,V,Q,K,F,23,u[35]),K=o(K,z,V,Q,S,4,u[36]),Q=o(Q,K,z,V,_,11,u[37]),V=o(V,Q,K,z,O,16,u[38]),z=o(z,V,Q,K,M,23,u[39]),K=o(K,z,V,Q,X,4,u[40]),Q=o(Q,K,z,V,b,11,u[41]),V=o(V,Q,K,z,C,16,u[42]),z=o(z,V,Q,K,w,23,u[43]),K=o(K,z,V,Q,k,4,u[44]),Q=o(Q,K,z,V,P,11,u[45]),V=o(V,Q,K,z,U,16,u[46]),z=o(z,V,Q,K,E,23,u[47]),K=e(K,z,V,Q,b,6,u[48]),Q=e(Q,K,z,V,O,10,u[49]),V=e(V,Q,K,z,F,15,u[50]),z=e(z,V,Q,K,T,21,u[51]),K=e(K,z,V,Q,P,6,u[52]),Q=e(Q,K,z,V,C,10,u[53]),V=e(V,Q,K,z,M,15,u[54]),z=e(z,V,Q,K,S,21,u[55]),K=e(K,z,V,Q,I,6,u[56]),Q=e(Q,K,z,V,U,10,u[57]),V=e(V,Q,K,z,w,15,u[58]),z=e(z,V,Q,K,X,21,u[59]),K=e(K,z,V,Q,_,6,u[60]),Q=e(Q,K,z,V,j,10,u[61]),V=e(V,Q,K,z,E,15,u[62]),z=e(z,V,Q,K,k,21,u[63]),A[0]=A[0]+K|0,A[1]=A[1]+z|0,A[2]=A[2]+V|0,A[3]=A[3]+Q|0},_doFinalize:function(){var r=this._data,a=r.words,c=this._nDataBytes*8,h=r.sigBytes*8;a[h>>>5]|=128<<24-h%32;var g=f.floor(c/4294967296),A=c;a[(h+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,a[(h+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,r.sigBytes=(a.length+1)*4,this._process();for(var b=this._hash,S=b.words,E=0;E<4;E++){var C=S[E];S[E]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}return b},clone:function(){var r=p.clone.call(this);return r._hash=this._hash.clone(),r}});function i(l,r,a,c,h,g,A){var b=l+(r&a|~r&c)+h+A;return(b<<g|b>>>32-g)+r}function t(l,r,a,c,h,g,A){var b=l+(r&c|a&~c)+h+A;return(b<<g|b>>>32-g)+r}function o(l,r,a,c,h,g,A){var b=l+(r^a^c)+h+A;return(b<<g|b>>>32-g)+r}function e(l,r,a,c,h,g,A){var b=l+(a^(r|~c))+h+A;return(b<<g|b>>>32-g)+r}x.MD5=p._createHelper(s),x.HmacMD5=p._createHmacHelper(s)}(Math),y.MD5})},czTT:function(R,D,n){},d4KN:function(R,D,n){var y=n("ProS"),f=n("bYtY");function x(v,m){f.each(m,function(p){p.update="updateView",y.registerAction(p,function(d,u){var s={};return u.eachComponent({mainType:"series",subType:v,query:d},function(i){i[p.method]&&i[p.method](d.name,d.dataIndex);var t=i.getData();t.each(function(o){var e=t.getName(o);s[e]=i.isSelected(e)||!1})}),{name:d.name,selected:s,seriesId:d.seriesId}})})}R.exports=x},dBmv:function(R,D,n){var y=n("ProS"),f=n("szbU");n("vF/C"),n("qwVE"),n("MHoB"),n("PNag"),n("1u/T"),y.registerPreprocessor(f)},dD9F:function(R,D,n){var y=n("NykK"),f=n("shjB"),x=n("ExA7"),v="[object Arguments]",m="[object Array]",p="[object Boolean]",d="[object Date]",u="[object Error]",s="[object Function]",i="[object Map]",t="[object Number]",o="[object Object]",e="[object RegExp]",l="[object Set]",r="[object String]",a="[object WeakMap]",c="[object ArrayBuffer]",h="[object DataView]",g="[object Float32Array]",A="[object Float64Array]",b="[object Int8Array]",S="[object Int16Array]",E="[object Int32Array]",C="[object Uint8Array]",_="[object Uint8ClampedArray]",T="[object Uint16Array]",w="[object Uint32Array]",O={};O[g]=O[A]=O[b]=O[S]=O[E]=O[C]=O[_]=O[T]=O[w]=!0,O[v]=O[m]=O[c]=O[p]=O[h]=O[d]=O[u]=O[s]=O[i]=O[t]=O[o]=O[e]=O[l]=O[r]=O[a]=!1;function I(k){return x(k)&&f(k.length)&&!!O[y(k)]}R.exports=I},"dF/Y":function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="DownloadOutlined";var d=D.a=f.forwardRef(p)},dMvE:function(R,D){var n={linear:function(x){return x},quadraticIn:function(x){return x*x},quadraticOut:function(x){return x*(2-x)},quadraticInOut:function(x){return(x*=2)<1?.5*x*x:-.5*(--x*(x-2)-1)},cubicIn:function(x){return x*x*x},cubicOut:function(x){return--x*x*x+1},cubicInOut:function(x){return(x*=2)<1?.5*x*x*x:.5*((x-=2)*x*x+2)},quarticIn:function(x){return x*x*x*x},quarticOut:function(x){return 1- --x*x*x*x},quarticInOut:function(x){return(x*=2)<1?.5*x*x*x*x:-.5*((x-=2)*x*x*x-2)},quinticIn:function(x){return x*x*x*x*x},quinticOut:function(x){return--x*x*x*x*x+1},quinticInOut:function(x){return(x*=2)<1?.5*x*x*x*x*x:.5*((x-=2)*x*x*x*x+2)},sinusoidalIn:function(x){return 1-Math.cos(x*Math.PI/2)},sinusoidalOut:function(x){return Math.sin(x*Math.PI/2)},sinusoidalInOut:function(x){return .5*(1-Math.cos(Math.PI*x))},exponentialIn:function(x){return x===0?0:Math.pow(1024,x-1)},exponentialOut:function(x){return x===1?1:1-Math.pow(2,-10*x)},exponentialInOut:function(x){return x===0?0:x===1?1:(x*=2)<1?.5*Math.pow(1024,x-1):.5*(-Math.pow(2,-10*(x-1))+2)},circularIn:function(x){return 1-Math.sqrt(1-x*x)},circularOut:function(x){return Math.sqrt(1- --x*x)},circularInOut:function(x){return(x*=2)<1?-.5*(Math.sqrt(1-x*x)-1):.5*(Math.sqrt(1-(x-=2)*x)+1)},elasticIn:function(x){var v,m=.1,p=.4;return x===0?0:x===1?1:(!m||m<1?(m=1,v=p/4):v=p*Math.asin(1/m)/(2*Math.PI),-(m*Math.pow(2,10*(x-=1))*Math.sin((x-v)*(2*Math.PI)/p)))},elasticOut:function(x){var v,m=.1,p=.4;return x===0?0:x===1?1:(!m||m<1?(m=1,v=p/4):v=p*Math.asin(1/m)/(2*Math.PI),m*Math.pow(2,-10*x)*Math.sin((x-v)*(2*Math.PI)/p)+1)},elasticInOut:function(x){var v,m=.1,p=.4;return x===0?0:x===1?1:(!m||m<1?(m=1,v=p/4):v=p*Math.asin(1/m)/(2*Math.PI),(x*=2)<1?-.5*(m*Math.pow(2,10*(x-=1))*Math.sin((x-v)*(2*Math.PI)/p)):m*Math.pow(2,-10*(x-=1))*Math.sin((x-v)*(2*Math.PI)/p)*.5+1)},backIn:function(x){var v=1.70158;return x*x*((v+1)*x-v)},backOut:function(x){var v=1.70158;return--x*x*((v+1)*x+v)+1},backInOut:function(x){var v=1.70158*1.525;return(x*=2)<1?.5*(x*x*((v+1)*x-v)):.5*((x-=2)*x*((v+1)*x+v)+2)},bounceIn:function(x){return 1-n.bounceOut(1-x)},bounceOut:function(x){return x<1/2.75?7.5625*x*x:x<2/2.75?7.5625*(x-=1.5/2.75)*x+.75:x<2.5/2.75?7.5625*(x-=2.25/2.75)*x+.9375:7.5625*(x-=2.625/2.75)*x+.984375},bounceInOut:function(x){return x<.5?n.bounceIn(x*2)*.5:n.bounceOut(x*2-1)*.5+.5}},y=n;R.exports=y},diRs:function(R,D,n){"use strict";var y=n("pVnL"),f=n.n(y),x=n("q1tI"),v=n.n(x),m=n("3S7+"),p=n("H84U"),d=n("bogI"),u=function(i,t){var o={};for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&t.indexOf(e)<0&&(o[e]=i[e]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,e=Object.getOwnPropertySymbols(i);l<e.length;l++)t.indexOf(e[l])<0&&Object.prototype.propertyIsEnumerable.call(i,e[l])&&(o[e[l]]=i[e[l]]);return o},s=x.forwardRef(function(i,t){var o=i.prefixCls,e=i.title,l=i.content,r=u(i,["prefixCls","title","content"]),a=x.useContext(p.b),c=a.getPrefixCls,h=function(b){return x.createElement(x.Fragment,null,e&&x.createElement("div",{className:"".concat(b,"-title")},Object(d.a)(e)),x.createElement("div",{className:"".concat(b,"-inner-content")},Object(d.a)(l)))},g=c("popover",o);return x.createElement(m.a,f()({},r,{prefixCls:g,ref:t,overlay:h(g)}))});s.displayName="Popover",s.defaultProps={placement:"top",transitionName:"zoom-big",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}},D.a=s},digP:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:function(x,v){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:v}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:x}}]}},name:"file",theme:"twotone"};D.default=y},dm2S:function(R,D,n){"use strict";n.d(D,"a",function(){return v});var y=n("ODXe"),f=n("q1tI"),x=n.n(f);function v(m){var p=f.useRef(!1),d=f.useState(m),u=Object(y.a)(d,2),s=u[0],i=u[1];f.useEffect(function(){return p.current=!1,function(){p.current=!0}},[]);function t(o,e){if(e&&p.current)return;i(o)}return[s,t]}},dmGj:function(R,D,n){var y=n("DEFe"),f=n("ProS"),x=f.extendComponentView({type:"geo",init:function(v,m){var p=new y(m,!0);this._mapDraw=p,this.group.add(p.group)},render:function(v,m,p,d){if(d&&d.type==="geoToggleSelect"&&d.from===this.uid)return;var u=this._mapDraw;v.get("show")?u.draw(v,m,p,this,d):this._mapDraw.group.removeAll(),this.group.silent=v.get("silent")},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});R.exports=x},dnwI:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("YH21"),v=n("Kagy"),m=n("IUWy"),p=v.toolbox.dataView,d=new Array(60).join("-"),u=" ";function s(S){var E={},C=[],_=[];return S.eachRawSeries(function(T){var w=T.coordinateSystem;if(w&&(w.type==="cartesian2d"||w.type==="polar")){var O=w.getBaseAxis();if(O.type==="category"){var I=O.dim+"_"+O.index;E[I]||(E[I]={categoryAxis:O,valueAxis:w.getOtherAxis(O),series:[]},_.push({axisDim:O.dim,axisIndex:O.index})),E[I].series.push(T)}else C.push(T)}else C.push(T)}),{seriesGroupByCategoryAxis:E,other:C,meta:_}}function i(S){var E=[];return f.each(S,function(C,_){var T=C.categoryAxis,w=C.valueAxis,O=w.dim,I=[" "].concat(f.map(C.series,function(F){return F.name})),k=[T.model.getCategories()];f.each(C.series,function(F){k.push(F.getRawData().mapArray(O,function(U){return U}))});for(var M=[I.join(u)],j=0;j<k[0].length;j++){for(var P=[],X=0;X<k.length;X++)P.push(k[X][j]);M.push(P.join(u))}E.push(M.join(`
|
|
|
`))}),E.join(`
|
|
|
|
|
|
`+d+`
|
|
|
|
|
|
`)}function t(S){return f.map(S,function(E){var C=E.getRawData(),_=[E.name],T=[];return C.each(C.dimensions,function(){for(var w=arguments.length,O=arguments[w-1],I=C.getName(O),k=0;k<w-1;k++)T[k]=arguments[k];_.push((I?I+u:"")+T.join(u))}),_.join(`
|
|
|
`)}).join(`
|
|
|
|
|
|
`+d+`
|
|
|
|
|
|
`)}function o(S){var E=s(S);return{value:f.filter([i(E.seriesGroupByCategoryAxis),t(E.other)],function(C){return C.replace(/[\n\t\s]/g,"")}).join(`
|
|
|
|
|
|
`+d+`
|
|
|
|
|
|
`),meta:E.meta}}function e(S){return S.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function l(S){var E=S.slice(0,S.indexOf(`
|
|
|
`));if(E.indexOf(u)>=0)return!0}var r=new RegExp("["+u+"]+","g");function a(S){for(var E=S.split(/\n+/g),C=e(E.shift()).split(r),_=[],T=f.map(C,function(k){return{name:k,data:[]}}),w=0;w<E.length;w++){var O=e(E[w]).split(r);_.push(O.shift());for(var I=0;I<O.length;I++)T[I]&&(T[I].data[w]=O[I])}return{series:T,categories:_}}function c(S){for(var E=S.split(/\n+/g),C=e(E.shift()),_=[],T=0;T<E.length;T++){var w=e(E[T]).split(r),O="",I,k=!1;isNaN(w[0])?(k=!0,O=w[0],w=w.slice(1),_[T]={name:O,value:[]},I=_[T].value):I=_[T]=[];for(var M=0;M<w.length;M++)I.push(+w[M]);I.length===1&&(k?_[T].value=I[0]:_[T]=I[0])}return{name:C,data:_}}function h(S,E){var C=S.split(new RegExp(`
|
|
|
*`+d+`
|
|
|
*`,"g")),_={series:[]};return f.each(C,function(T,w){if(l(T)){var O=a(T),I=E[w],k=I.axisDim+"Axis";I&&(_[k]=_[k]||[],_[k][I.axisIndex]={data:O.categories},_.series=_.series.concat(O.series))}else{var O=c(T);_.series.push(O)}}),_}function g(S){this._dom=null,this.model=S}g.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:f.clone(p.title),lang:f.clone(p.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},g.prototype.onclick=function(S,E){var C=E.getDom(),_=this.model;this._dom&&C.removeChild(this._dom);var T=document.createElement("div");T.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",T.style.backgroundColor=_.get("backgroundColor")||"#fff";var w=document.createElement("h4"),O=_.get("lang")||[];w.innerHTML=O[0]||_.get("title"),w.style.cssText="margin: 10px 20px;",w.style.color=_.get("textColor");var I=document.createElement("div"),k=document.createElement("textarea");I.style.cssText="display:block;width:100%;overflow:auto;";var M=_.get("optionToContent"),j=_.get("contentToOption"),P=o(S);if(typeof M=="function"){var X=M(E.getOption());typeof X=="string"?I.innerHTML=X:f.isDom(X)&&I.appendChild(X)}else I.appendChild(k),k.readOnly=_.get("readOnly"),k.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",k.style.color=_.get("textColor"),k.style.borderColor=_.get("textareaBorderColor"),k.style.backgroundColor=_.get("textareaColor"),k.value=P.value;var F=P.meta,U=document.createElement("div");U.style.cssText="position:absolute;bottom:0;left:0;right:0;";var K="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",z=document.createElement("div"),V=document.createElement("div");K+=";background-color:"+_.get("buttonColor"),K+=";color:"+_.get("buttonTextColor");var Q=this;function G(){C.removeChild(T),Q._dom=null}x.addEventListener(z,"click",G),x.addEventListener(V,"click",function(){var te;try{typeof j=="function"?te=j(I,E.getOption()):te=h(k.value,F)}catch(q){throw G(),new Error("Data view format error "+q)}te&&E.dispatchAction({type:"changeDataView",newOption:te}),G()}),z.innerHTML=O[1],V.innerHTML=O[2],V.style.cssText=K,z.style.cssText=K,!_.get("readOnly")&&U.appendChild(V),U.appendChild(z),T.appendChild(w),T.appendChild(I),T.appendChild(U),I.style.height=C.clientHeight-80+"px",C.appendChild(T),this._dom=T},g.prototype.remove=function(S,E){this._dom&&E.getDom().removeChild(this._dom)},g.prototype.dispose=function(S,E){this.remove(S,E)};function A(S,E){return f.map(S,function(C,_){var T=E&&E[_];return f.isObject(T)&&!f.isArray(T)?(f.isObject(C)&&!f.isArray(C)&&(C=C.value),f.defaults({value:C},T)):C})}m.register("dataView",g),y.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(S,E){var C=[];f.each(S.newOption.series,function(_){var T=E.getSeriesByName(_.name)[0];if(!T)C.push(f.extend({type:"scatter"},_));else{var w=T.get("data");C.push({name:_.name,data:A(_.data,w)})}}),E.mergeOption(f.defaults({series:C},S.newOption))});var b=g;R.exports=b},dqUG:function(R,D,n){var y=n("Gev7"),f=n("bYtY"),x=n("6GrX"),v=n("pzxd"),m=n("gut8"),p=m.ContextCachedBy,d=function(i){y.call(this,i)};d.prototype={constructor:d,type:"text",brush:function(i,t){var o=this.style;this.__dirty&&v.normalizeTextStyle(o,!0),o.fill=o.stroke=o.shadowBlur=o.shadowColor=o.shadowOffsetX=o.shadowOffsetY=null;var e=o.text;if(e!=null&&(e+=""),!v.needDrawText(e,o)){i.__attrCachedBy=p.NONE;return}this.setTransform(i),v.renderText(this,i,e,o,null,t),this.restoreTransform(i)},getBoundingRect:function(){var i=this.style;if(this.__dirty&&v.normalizeTextStyle(i,!0),!this._rect){var t=i.text;t!=null?t+="":t="";var o=x.getBoundingRect(i.text+"",i.font,i.textAlign,i.textVerticalAlign,i.textPadding,i.textLineHeight,i.rich);if(o.x+=i.x||0,o.y+=i.y||0,v.getStroke(i.textStroke,i.textStrokeWidth)){var e=i.textStrokeWidth;o.x-=e/2,o.y-=e/2,o.width+=e,o.height+=e}this._rect=o}return this._rect}},f.inherits(d,y);var u=d;R.exports=u},dtIV:function(R,D,n){"use strict";n.r(D),function(y){n.d(D,"AcroForm",function(){return qe}),n.d(D,"AcroFormAppearance",function(){return oe}),n.d(D,"AcroFormButton",function(){return Kt}),n.d(D,"AcroFormCheckBox",function(){return Xt}),n.d(D,"AcroFormChoiceField",function(){return ft}),n.d(D,"AcroFormComboBox",function(){return er}),n.d(D,"AcroFormEditBox",function(){return ct}),n.d(D,"AcroFormListBox",function(){return He}),n.d(D,"AcroFormPasswordField",function(){return pe}),n.d(D,"AcroFormPushButton",function(){return fr}),n.d(D,"AcroFormRadioButton",function(){return Gt}),n.d(D,"AcroFormTextField",function(){return Ge}),n.d(D,"GState",function(){return X}),n.d(D,"ShadingPattern",function(){return U}),n.d(D,"TilingPattern",function(){return K}),n.d(D,"jsPDF",function(){return z});var f=n("cDf5"),x=n.n(f),v=n("crp1");/** @license
|
|
|
*
|
|
|
* jsPDF - PDF Document creation from JavaScript
|
|
|
* Version 2.5.1 Built on 2022-01-28T15:37:57.791Z
|
|
|
* CommitID 00000000
|
|
|
*
|
|
|
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
|
|
|
* 2015-2021 yWorks GmbH, http://www.yworks.com
|
|
|
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
|
|
|
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
|
|
|
* 2010 Aaron Spike, https://github.com/acspike
|
|
|
* 2012 Willow Systems Corporation, https://github.com/willowsystems
|
|
|
* 2012 Pablo Hess, https://github.com/pablohess
|
|
|
* 2012 Florian Jenett, https://github.com/fjenett
|
|
|
* 2013 Warren Weckesser, https://github.com/warrenweckesser
|
|
|
* 2013 Youssef Beddad, https://github.com/lifof
|
|
|
* 2013 Lee Driscoll, https://github.com/lsdriscoll
|
|
|
* 2013 Stefan Slonevskiy, https://github.com/stefslon
|
|
|
* 2013 Jeremy Morel, https://github.com/jmorel
|
|
|
* 2013 Christoph Hartmann, https://github.com/chris-rock
|
|
|
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
|
|
|
* 2014 James Makes, https://github.com/dollaruw
|
|
|
* 2014 Diego Casorran, https://github.com/diegocr
|
|
|
* 2014 Steven Spungin, https://github.com/Flamenco
|
|
|
* 2014 Kenneth Glassey, https://github.com/Gavvers
|
|
|
*
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining
|
|
|
* a copy of this software and associated documentation files (the
|
|
|
* "Software"), to deal in the Software without restriction, including
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|
|
* the following conditions:
|
|
|
*
|
|
|
* The above copyright notice and this permission notice shall be
|
|
|
* included in all copies or substantial portions of the Software.
|
|
|
*
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
|
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
*
|
|
|
* Contributor(s):
|
|
|
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
|
|
|
* kim3er, mfo, alnorth, Flamenco
|
|
|
*/var m=function(){return typeof window!="undefined"?window:typeof y!="undefined"?y:typeof self!="undefined"?self:this}();function p(){m.console&&typeof m.console.log=="function"&&m.console.log.apply(m.console,arguments)}var d={log:p,warn:function(Le){m.console&&(typeof m.console.warn=="function"?m.console.warn.apply(m.console,arguments):p.call(null,arguments))},error:function(Le){m.console&&(typeof m.console.error=="function"?m.console.error.apply(m.console,arguments):p(Le))}};function u(it,Le,je){var Xe=new XMLHttpRequest;Xe.open("GET",it),Xe.responseType="blob",Xe.onload=function(){e(Xe.response,Le,je)},Xe.onerror=function(){d.error("could not download file")},Xe.send()}function s(it){var Le=new XMLHttpRequest;Le.open("HEAD",it,!1);try{Le.send()}catch(je){}return Le.status>=200&&Le.status<=299}function i(it){try{it.dispatchEvent(new MouseEvent("click"))}catch(je){var Le=document.createEvent("MouseEvents");Le.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),it.dispatchEvent(Le)}}var t,o,e=m.saveAs||((typeof window=="undefined"?"undefined":x()(window))!=="object"||window!==m?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(it,Le,je){var Xe=m.URL||m.webkitURL,nt=document.createElement("a");Le=Le||it.name||"download",nt.download=Le,nt.rel="noopener",typeof it=="string"?(nt.href=it,nt.origin!==location.origin?s(nt.href)?u(it,Le,je):i(nt,nt.target="_blank"):i(nt)):(nt.href=Xe.createObjectURL(it),setTimeout(function(){Xe.revokeObjectURL(nt.href)},4e4),setTimeout(function(){i(nt)},0))}:"msSaveOrOpenBlob"in navigator?function(it,Le,je){if(Le=Le||it.name||"download",typeof it=="string")if(s(it))u(it,Le,je);else{var Xe=document.createElement("a");Xe.href=it,Xe.target="_blank",setTimeout(function(){i(Xe)})}else navigator.msSaveOrOpenBlob(function(nt,Ze){return Ze===void 0?Ze={autoBom:!1}:x()(Ze)!=="object"&&(d.warn("Deprecated: Expected third argument to be a object"),Ze={autoBom:!Ze}),Ze.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(nt.type)?new Blob([String.fromCharCode(65279),nt],{type:nt.type}):nt}(it,je),Le)}:function(it,Le,je,Xe){if((Xe=Xe||open("","_blank"))&&(Xe.document.title=Xe.document.body.innerText="downloading..."),typeof it=="string")return u(it,Le,je);var nt=it.type==="application/octet-stream",Ze=/constructor/i.test(m.HTMLElement)||m.safari,ot=/CriOS\/[\d]+/.test(navigator.userAgent);if((ot||nt&&Ze)&&(typeof FileReader=="undefined"?"undefined":x()(FileReader))==="object"){var Ct=new FileReader;Ct.onloadend=function(){var $r=Ct.result;$r=ot?$r:$r.replace(/^data:[^;]*;/,"data:attachment/file;"),Xe?Xe.location.href=$r:location=$r,Xe=null},Ct.readAsDataURL(it)}else{var gt=m.URL||m.webkitURL,pr=gt.createObjectURL(it);Xe?Xe.location=pr:location.href=pr,Xe=null,setTimeout(function(){gt.revokeObjectURL(pr)},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(it){var Le;it=it||"",this.ok=!1,it.charAt(0)=="#"&&(it=it.substr(1,6)),it={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"}[it=(it=it.replace(/ /g,"")).toLowerCase()]||it;for(var je=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(gt){return[parseInt(gt[1]),parseInt(gt[2]),parseInt(gt[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(gt){return[parseInt(gt[1],16),parseInt(gt[2],16),parseInt(gt[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(gt){return[parseInt(gt[1]+gt[1],16),parseInt(gt[2]+gt[2],16),parseInt(gt[3]+gt[3],16)]}}],Xe=0;Xe<je.length;Xe++){var nt=je[Xe].re,Ze=je[Xe].process,ot=nt.exec(it);ot&&(Le=Ze(ot),this.r=Le[0],this.g=Le[1],this.b=Le[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 Ct=this.r.toString(16),gt=this.g.toString(16),pr=this.b.toString(16);return Ct.length==1&&(Ct="0"+Ct),gt.length==1&&(gt="0"+gt),pr.length==1&&(pr="0"+pr),"#"+Ct+gt+pr}}/**
|
|
|
* @license
|
|
|
* Joseph Myers does not specify a particular license for his work.
|
|
|
*
|
|
|
* Author: Joseph Myers
|
|
|
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
|
|
|
*
|
|
|
* Modified by: Owen Leong
|
|
|
*/function r(it,Le){var je=it[0],Xe=it[1],nt=it[2],Ze=it[3];je=c(je,Xe,nt,Ze,Le[0],7,-680876936),Ze=c(Ze,je,Xe,nt,Le[1],12,-389564586),nt=c(nt,Ze,je,Xe,Le[2],17,606105819),Xe=c(Xe,nt,Ze,je,Le[3],22,-1044525330),je=c(je,Xe,nt,Ze,Le[4],7,-176418897),Ze=c(Ze,je,Xe,nt,Le[5],12,1200080426),nt=c(nt,Ze,je,Xe,Le[6],17,-1473231341),Xe=c(Xe,nt,Ze,je,Le[7],22,-45705983),je=c(je,Xe,nt,Ze,Le[8],7,1770035416),Ze=c(Ze,je,Xe,nt,Le[9],12,-1958414417),nt=c(nt,Ze,je,Xe,Le[10],17,-42063),Xe=c(Xe,nt,Ze,je,Le[11],22,-1990404162),je=c(je,Xe,nt,Ze,Le[12],7,1804603682),Ze=c(Ze,je,Xe,nt,Le[13],12,-40341101),nt=c(nt,Ze,je,Xe,Le[14],17,-1502002290),je=h(je,Xe=c(Xe,nt,Ze,je,Le[15],22,1236535329),nt,Ze,Le[1],5,-165796510),Ze=h(Ze,je,Xe,nt,Le[6],9,-1069501632),nt=h(nt,Ze,je,Xe,Le[11],14,643717713),Xe=h(Xe,nt,Ze,je,Le[0],20,-373897302),je=h(je,Xe,nt,Ze,Le[5],5,-701558691),Ze=h(Ze,je,Xe,nt,Le[10],9,38016083),nt=h(nt,Ze,je,Xe,Le[15],14,-660478335),Xe=h(Xe,nt,Ze,je,Le[4],20,-405537848),je=h(je,Xe,nt,Ze,Le[9],5,568446438),Ze=h(Ze,je,Xe,nt,Le[14],9,-1019803690),nt=h(nt,Ze,je,Xe,Le[3],14,-187363961),Xe=h(Xe,nt,Ze,je,Le[8],20,1163531501),je=h(je,Xe,nt,Ze,Le[13],5,-1444681467),Ze=h(Ze,je,Xe,nt,Le[2],9,-51403784),nt=h(nt,Ze,je,Xe,Le[7],14,1735328473),je=g(je,Xe=h(Xe,nt,Ze,je,Le[12],20,-1926607734),nt,Ze,Le[5],4,-378558),Ze=g(Ze,je,Xe,nt,Le[8],11,-2022574463),nt=g(nt,Ze,je,Xe,Le[11],16,1839030562),Xe=g(Xe,nt,Ze,je,Le[14],23,-35309556),je=g(je,Xe,nt,Ze,Le[1],4,-1530992060),Ze=g(Ze,je,Xe,nt,Le[4],11,1272893353),nt=g(nt,Ze,je,Xe,Le[7],16,-155497632),Xe=g(Xe,nt,Ze,je,Le[10],23,-1094730640),je=g(je,Xe,nt,Ze,Le[13],4,681279174),Ze=g(Ze,je,Xe,nt,Le[0],11,-358537222),nt=g(nt,Ze,je,Xe,Le[3],16,-722521979),Xe=g(Xe,nt,Ze,je,Le[6],23,76029189),je=g(je,Xe,nt,Ze,Le[9],4,-640364487),Ze=g(Ze,je,Xe,nt,Le[12],11,-421815835),nt=g(nt,Ze,je,Xe,Le[15],16,530742520),je=A(je,Xe=g(Xe,nt,Ze,je,Le[2],23,-995338651),nt,Ze,Le[0],6,-198630844),Ze=A(Ze,je,Xe,nt,Le[7],10,1126891415),nt=A(nt,Ze,je,Xe,Le[14],15,-1416354905),Xe=A(Xe,nt,Ze,je,Le[5],21,-57434055),je=A(je,Xe,nt,Ze,Le[12],6,1700485571),Ze=A(Ze,je,Xe,nt,Le[3],10,-1894986606),nt=A(nt,Ze,je,Xe,Le[10],15,-1051523),Xe=A(Xe,nt,Ze,je,Le[1],21,-2054922799),je=A(je,Xe,nt,Ze,Le[8],6,1873313359),Ze=A(Ze,je,Xe,nt,Le[15],10,-30611744),nt=A(nt,Ze,je,Xe,Le[6],15,-1560198380),Xe=A(Xe,nt,Ze,je,Le[13],21,1309151649),je=A(je,Xe,nt,Ze,Le[4],6,-145523070),Ze=A(Ze,je,Xe,nt,Le[11],10,-1120210379),nt=A(nt,Ze,je,Xe,Le[2],15,718787259),Xe=A(Xe,nt,Ze,je,Le[9],21,-343485551),it[0]=O(je,it[0]),it[1]=O(Xe,it[1]),it[2]=O(nt,it[2]),it[3]=O(Ze,it[3])}function a(it,Le,je,Xe,nt,Ze){return Le=O(O(Le,it),O(Xe,Ze)),O(Le<<nt|Le>>>32-nt,je)}function c(it,Le,je,Xe,nt,Ze,ot){return a(Le&je|~Le&Xe,it,Le,nt,Ze,ot)}function h(it,Le,je,Xe,nt,Ze,ot){return a(Le&Xe|je&~Xe,it,Le,nt,Ze,ot)}function g(it,Le,je,Xe,nt,Ze,ot){return a(Le^je^Xe,it,Le,nt,Ze,ot)}function A(it,Le,je,Xe,nt,Ze,ot){return a(je^(Le|~Xe),it,Le,nt,Ze,ot)}function b(it){var Le,je=it.length,Xe=[1732584193,-271733879,-1732584194,271733878];for(Le=64;Le<=it.length;Le+=64)r(Xe,S(it.substring(Le-64,Le)));it=it.substring(Le-64);var nt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(Le=0;Le<it.length;Le++)nt[Le>>2]|=it.charCodeAt(Le)<<(Le%4<<3);if(nt[Le>>2]|=128<<(Le%4<<3),Le>55)for(r(Xe,nt),Le=0;Le<16;Le++)nt[Le]=0;return nt[14]=8*je,r(Xe,nt),Xe}function S(it){var Le,je=[];for(Le=0;Le<64;Le+=4)je[Le>>2]=it.charCodeAt(Le)+(it.charCodeAt(Le+1)<<8)+(it.charCodeAt(Le+2)<<16)+(it.charCodeAt(Le+3)<<24);return je}t=m.atob.bind(m),o=m.btoa.bind(m);var E="0123456789abcdef".split("");function C(it){for(var Le="",je=0;je<4;je++)Le+=E[it>>8*je+4&15]+E[it>>8*je&15];return Le}function _(it){return String.fromCharCode((255&it)>>0,(65280&it)>>8,(16711680&it)>>16,(4278190080&it)>>24)}function T(it){return b(it).map(_).join("")}var w=function(it){for(var Le=0;Le<it.length;Le++)it[Le]=C(it[Le]);return it.join("")}(b("hello"))!="5d41402abc4b2a76b9719d911017c592";function O(it,Le){if(w){var je=(65535&it)+(65535&Le);return(it>>16)+(Le>>16)+(je>>16)<<16|65535&je}return it+Le&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(it,Le){var je,Xe,nt,Ze;if(it!==je){for(var ot=(nt=it,Ze=1+(256/it.length>>0),new Array(Ze+1).join(nt)),Ct=[],gt=0;gt<256;gt++)Ct[gt]=gt;var pr=0;for(gt=0;gt<256;gt++){var $r=Ct[gt];pr=(pr+$r+ot.charCodeAt(gt))%256,Ct[gt]=Ct[pr],Ct[pr]=$r}je=it,Xe=Ct}else Ct=Xe;var Yr=Le.length,mn=0,Ar=0,zn="";for(gt=0;gt<Yr;gt++)Ar=(Ar+($r=Ct[mn=(mn+1)%256]))%256,Ct[mn]=Ct[Ar],Ct[Ar]=$r,ot=Ct[(Ct[mn]+Ct[Ar])%256],zn+=String.fromCharCode(Le.charCodeAt(gt)^ot);return zn}/**
|
|
|
* @license
|
|
|
* Licensed under the MIT License.
|
|
|
* http://opensource.org/licenses/mit-license
|
|
|
* Author: Owen Leong (@owenl131)
|
|
|
* Date: 15 Oct 2020
|
|
|
* References:
|
|
|
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
|
|
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
|
|
* http://www.fpdf.org/en/script/script37.php
|
|
|
*/var k={print:4,modify:8,copy:16,"annot-forms":32};function M(it,Le,je,Xe){this.v=1,this.r=2;var nt=192;it.forEach(function(Ct){if(k.perm!==void 0)throw new Error("Invalid permission: "+Ct);nt+=k[Ct]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var Ze=(Le+this.padding).substr(0,32),ot=(je+this.padding).substr(0,32);this.O=this.processOwnerPassword(Ze,ot),this.P=-(1+(255^nt)),this.encryptionKey=T(Ze+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Xe)).substr(0,5),this.U=I(this.encryptionKey,this.padding)}function j(it){if(/[^\u0000-\u00ff]/.test(it))throw new Error("Invalid PDF Name Object: "+it+", Only accept ASCII characters.");for(var Le="",je=it.length,Xe=0;Xe<je;Xe++){var nt=it.charCodeAt(Xe);nt<33||nt===35||nt===37||nt===40||nt===41||nt===47||nt===60||nt===62||nt===91||nt===93||nt===123||nt===125||nt>126?Le+="#"+("0"+nt.toString(16)).slice(-2):Le+=it[Xe]}return Le}function P(it){if(x()(it)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var Le={};this.subscribe=function(je,Xe,nt){if(nt=nt||!1,typeof je!="string"||typeof Xe!="function"||typeof nt!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");Le.hasOwnProperty(je)||(Le[je]={});var Ze=Math.random().toString(35);return Le[je][Ze]=[Xe,!!nt],Ze},this.unsubscribe=function(je){for(var Xe in Le)if(Le[Xe][je])return delete Le[Xe][je],Object.keys(Le[Xe]).length===0&&delete Le[Xe],!0;return!1},this.publish=function(je){if(Le.hasOwnProperty(je)){var Xe=Array.prototype.slice.call(arguments,1),nt=[];for(var Ze in Le[je]){var ot=Le[je][Ze];try{ot[0].apply(it,Xe)}catch(Ct){m.console&&d.error("jsPDF PubSub Error",Ct.message,Ct)}ot[1]&&nt.push(Ze)}nt.length&&nt.forEach(this.unsubscribe)}},this.getTopics=function(){return Le}}function X(it){if(!(this instanceof X))return new X(it);var Le="opacity,stroke-opacity".split(",");for(var je in it)it.hasOwnProperty(je)&&Le.indexOf(je)>=0&&(this[je]=it[je]);this.id="",this.objectNumber=-1}function F(it,Le){this.gState=it,this.matrix=Le,this.id="",this.objectNumber=-1}function U(it,Le,je,Xe,nt){if(!(this instanceof U))return new U(it,Le,je,Xe,nt);this.type=it==="axial"?2:3,this.coords=Le,this.colors=je,F.call(this,Xe,nt)}function K(it,Le,je,Xe,nt){if(!(this instanceof K))return new K(it,Le,je,Xe,nt);this.boundingBox=it,this.xStep=Le,this.yStep=je,this.stream="",this.cloneIndex=0,F.call(this,Xe,nt)}function z(it){var Le,je=typeof arguments[0]=="string"?arguments[0]:"p",Xe=arguments[1],nt=arguments[2],Ze=arguments[3],ot=[],Ct=1,gt=16,pr="S",$r=null;x()(it=it||{})==="object"&&(je=it.orientation,Xe=it.unit||Xe,nt=it.format||nt,Ze=it.compress||it.compressPdf||Ze,($r=it.encryption||null)!==null&&($r.userPassword=$r.userPassword||"",$r.ownerPassword=$r.ownerPassword||"",$r.userPermissions=$r.userPermissions||[]),Ct=typeof it.userUnit=="number"?Math.abs(it.userUnit):1,it.precision!==void 0&&(Le=it.precision),it.floatPrecision!==void 0&&(gt=it.floatPrecision),pr=it.defaultPathOperation||"S"),ot=it.filters||(Ze===!0?["FlateEncode"]:ot),Xe=Xe||"mm",je=(""+(je||"P")).toLowerCase();var Yr=it.putOnlyUsedFonts||!1,mn={},Ar={internal:{},__private__:{}};Ar.__private__.PubSub=P;var zn="1.3",Fr=Ar.__private__.getPdfVersion=function(){return zn};Ar.__private__.setPdfVersion=function(Ut){zn=Ut};var Bn={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]};Ar.__private__.getPageFormats=function(){return Bn};var bn=Ar.__private__.getPageFormat=function(Ut){return Bn[Ut]};nt=nt||"a4";var en={COMPAT:"compat",ADVANCED:"advanced"},ti=en.COMPAT;function pi(){this.saveGraphicsState(),kn(new na(Lr,0,0,-Lr,0,Ds()*Lr).toString()+" cm"),this.setFontSize(this.getFontSize()/Lr),pr="n",ti=en.ADVANCED}function Pi(){this.restoreGraphicsState(),pr="S",ti=en.COMPAT}var qr=Ar.__private__.combineFontStyleAndFontWeight=function(Ut,or){if(Ut=="bold"&&or=="normal"||Ut=="bold"&&or==400||Ut=="normal"&&or=="italic"||Ut=="bold"&&or=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return or&&(Ut=or==400||or==="normal"?Ut==="italic"?"italic":"normal":or!=700&&or!=="bold"||Ut!=="normal"?(or==700?"bold":or)+""+Ut:"bold"),Ut};Ar.advancedAPI=function(Ut){var or=ti===en.COMPAT;return or&&pi.call(this),typeof Ut!="function"||(Ut(this),or&&Pi.call(this)),this},Ar.compatAPI=function(Ut){var or=ti===en.ADVANCED;return or&&Pi.call(this),typeof Ut!="function"||(Ut(this),or&&pi.call(this)),this},Ar.isAdvancedAPI=function(){return ti===en.ADVANCED};var En,Yn=function(or){if(ti!==en.ADVANCED)throw new Error(or+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},zt=Ar.roundToPrecision=Ar.__private__.roundToPrecision=function(Ut,or){var Nn=Le||or;if(isNaN(Ut)||isNaN(Nn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Ut.toFixed(Nn).replace(/0+$/,"")};En=Ar.hpf=Ar.__private__.hpf=typeof gt=="number"?function(Ut){if(isNaN(Ut))throw new Error("Invalid argument passed to jsPDF.hpf");return zt(Ut,gt)}:gt==="smart"?function(Ut){if(isNaN(Ut))throw new Error("Invalid argument passed to jsPDF.hpf");return zt(Ut,Ut>-1&&Ut<1?16:5)}:function(Ut){if(isNaN(Ut))throw new Error("Invalid argument passed to jsPDF.hpf");return zt(Ut,16)};var Ot=Ar.f2=Ar.__private__.f2=function(Ut){if(isNaN(Ut))throw new Error("Invalid argument passed to jsPDF.f2");return zt(Ut,2)},kt=Ar.__private__.f3=function(Ut){if(isNaN(Ut))throw new Error("Invalid argument passed to jsPDF.f3");return zt(Ut,3)},Bt=Ar.scale=Ar.__private__.scale=function(Ut){if(isNaN(Ut))throw new Error("Invalid argument passed to jsPDF.scale");return ti===en.COMPAT?Ut*Lr:ti===en.ADVANCED?Ut:void 0},Wt=function(or){return ti===en.COMPAT?Ds()-or:ti===en.ADVANCED?or:void 0},Lt=function(or){return Bt(Wt(or))};Ar.__private__.setPrecision=Ar.setPrecision=function(Ut){typeof parseInt(Ut,10)=="number"&&(Le=parseInt(Ut,10))};var dr,yr="00000000000000000000000000000000",br=Ar.__private__.getFileId=function(){return yr},Mr=Ar.__private__.setFileId=function(Ut){return yr=Ut!==void 0&&/^[a-fA-F0-9]{32}$/.test(Ut)?Ut.toUpperCase():yr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),$r!==null&&(wa=new M($r.userPermissions,$r.userPassword,$r.ownerPassword,yr)),yr};Ar.setFileId=function(Ut){return Mr(Ut),this},Ar.getFileId=function(){return br()};var Gn=Ar.__private__.convertDateToPDFDate=function(Ut){var or=Ut.getTimezoneOffset(),Nn=or<0?"+":"-",hi=Math.floor(Math.abs(or/60)),Nt=Math.abs(or%60),ce=[Nn,In(hi),"'",In(Nt),"'"].join("");return["D:",Ut.getFullYear(),In(Ut.getMonth()+1),In(Ut.getDate()),In(Ut.getHours()),In(Ut.getMinutes()),In(Ut.getSeconds()),ce].join("")},Mn=Ar.__private__.convertPDFDateToDate=function(Ut){var or=parseInt(Ut.substr(2,4),10),Nn=parseInt(Ut.substr(6,2),10)-1,hi=parseInt(Ut.substr(8,2),10),Nt=parseInt(Ut.substr(10,2),10),ce=parseInt(Ut.substr(12,2),10),Se=parseInt(Ut.substr(14,2),10);return new Date(or,Nn,hi,Nt,ce,Se,0)},di=Ar.__private__.setCreationDate=function(Ut){var or;if(Ut===void 0&&(Ut=new Date),Ut instanceof Date)or=Gn(Ut);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(Ut))throw new Error("Invalid argument passed to jsPDF.setCreationDate");or=Ut}return dr=or},vn=Ar.__private__.getCreationDate=function(Ut){var or=dr;return Ut==="jsDate"&&(or=Mn(dr)),or};Ar.setCreationDate=function(Ut){return di(Ut),this},Ar.getCreationDate=function(Ut){return vn(Ut)};var Ur,In=Ar.__private__.padd2=function(Ut){return("0"+parseInt(Ut)).slice(-2)},Qn=Ar.__private__.padd2Hex=function(Ut){return("00"+(Ut=Ut.toString())).substr(Ut.length)},qn=0,oi=[],Ti=[],ki=0,Ri=[],oa=[],ma=!1,aa=Ti,ba=function(){qn=0,ki=0,Ti=[],oi=[],Ri=[],_a=Oa(),Va=Oa()};Ar.__private__.setCustomOutputDestination=function(Ut){ma=!0,aa=Ut};var yi=function(or){ma||(aa=or)};Ar.__private__.resetCustomOutputDestination=function(){ma=!1,aa=Ti};var kn=Ar.__private__.out=function(Ut){return Ut=Ut.toString(),ki+=Ut.length+1,aa.push(Ut),aa},ji=Ar.__private__.write=function(Ut){return kn(arguments.length===1?Ut.toString():Array.prototype.join.call(arguments," "))},ha=Ar.__private__.getArrayBuffer=function(Ut){for(var or=Ut.length,Nn=new ArrayBuffer(or),hi=new Uint8Array(Nn);or--;)hi[or]=Ut.charCodeAt(or);return Nn},ta=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];Ar.__private__.getStandardFonts=function(){return ta};var ra=it.fontSize||16;Ar.__private__.setFontSize=Ar.setFontSize=function(Ut){return ra=ti===en.ADVANCED?Ut/Lr:Ut,this};var Ir,xr=Ar.__private__.getFontSize=Ar.getFontSize=function(){return ti===en.COMPAT?ra:ra*Lr},Cn=it.R2L||!1;Ar.__private__.setR2L=Ar.setR2L=function(Ut){return Cn=Ut,this},Ar.__private__.getR2L=Ar.getR2L=function(){return Cn};var mr,kr=Ar.__private__.setZoomMode=function(Ut){var or=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Ut))Ir=Ut;else if(isNaN(Ut)){if(or.indexOf(Ut)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Ut+'" is not recognized.');Ir=Ut}else Ir=parseInt(Ut,10)};Ar.__private__.getZoomMode=function(){return Ir};var Gr,ln=Ar.__private__.setPageMode=function(Ut){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Ut)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Ut+'" is not recognized.');mr=Ut};Ar.__private__.getPageMode=function(){return mr};var Fn=Ar.__private__.setLayoutMode=function(Ut){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Ut)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Ut+'" is not recognized.');Gr=Ut};Ar.__private__.getLayoutMode=function(){return Gr},Ar.__private__.setDisplayMode=Ar.setDisplayMode=function(Ut,or,Nn){return kr(Ut),Fn(or),ln(Nn),this};var _t={title:"",subject:"",author:"",keywords:"",creator:""};Ar.__private__.getDocumentProperty=function(Ut){if(Object.keys(_t).indexOf(Ut)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return _t[Ut]},Ar.__private__.getDocumentProperties=function(){return _t},Ar.__private__.setDocumentProperties=Ar.setProperties=Ar.setDocumentProperties=function(Ut){for(var or in _t)_t.hasOwnProperty(or)&&Ut[or]&&(_t[or]=Ut[or]);return this},Ar.__private__.setDocumentProperty=function(Ut,or){if(Object.keys(_t).indexOf(Ut)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return _t[Ut]=or};var Or,Lr,rn,xn,Ln,Sn={},ei={},Kn=[],mi={},Fi={},bi={},Ii={},Vi=null,ea=0,Xi=[],zi=new P(Ar),Hi=it.hotfixes||[],Ji={},ca={},Ca=[],na=function Ut(or,Nn,hi,Nt,ce,Se){if(!(this instanceof Ut))return new Ut(or,Nn,hi,Nt,ce,Se);isNaN(or)&&(or=1),isNaN(Nn)&&(Nn=0),isNaN(hi)&&(hi=0),isNaN(Nt)&&(Nt=1),isNaN(ce)&&(ce=0),isNaN(Se)&&(Se=0),this._matrix=[or,Nn,hi,Nt,ce,Se]};Object.defineProperty(na.prototype,"sx",{get:function(){return this._matrix[0]},set:function(or){this._matrix[0]=or}}),Object.defineProperty(na.prototype,"shy",{get:function(){return this._matrix[1]},set:function(or){this._matrix[1]=or}}),Object.defineProperty(na.prototype,"shx",{get:function(){return this._matrix[2]},set:function(or){this._matrix[2]=or}}),Object.defineProperty(na.prototype,"sy",{get:function(){return this._matrix[3]},set:function(or){this._matrix[3]=or}}),Object.defineProperty(na.prototype,"tx",{get:function(){return this._matrix[4]},set:function(or){this._matrix[4]=or}}),Object.defineProperty(na.prototype,"ty",{get:function(){return this._matrix[5]},set:function(or){this._matrix[5]=or}}),Object.defineProperty(na.prototype,"a",{get:function(){return this._matrix[0]},set:function(or){this._matrix[0]=or}}),Object.defineProperty(na.prototype,"b",{get:function(){return this._matrix[1]},set:function(or){this._matrix[1]=or}}),Object.defineProperty(na.prototype,"c",{get:function(){return this._matrix[2]},set:function(or){this._matrix[2]=or}}),Object.defineProperty(na.prototype,"d",{get:function(){return this._matrix[3]},set:function(or){this._matrix[3]=or}}),Object.defineProperty(na.prototype,"e",{get:function(){return this._matrix[4]},set:function(or){this._matrix[4]=or}}),Object.defineProperty(na.prototype,"f",{get:function(){return this._matrix[5]},set:function(or){this._matrix[5]=or}}),Object.defineProperty(na.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(na.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(na.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(na.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),na.prototype.join=function(Ut){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(En).join(Ut)},na.prototype.multiply=function(Ut){var or=Ut.sx*this.sx+Ut.shy*this.shx,Nn=Ut.sx*this.shy+Ut.shy*this.sy,hi=Ut.shx*this.sx+Ut.sy*this.shx,Nt=Ut.shx*this.shy+Ut.sy*this.sy,ce=Ut.tx*this.sx+Ut.ty*this.shx+this.tx,Se=Ut.tx*this.shy+Ut.ty*this.sy+this.ty;return new na(or,Nn,hi,Nt,ce,Se)},na.prototype.decompose=function(){var Ut=this.sx,or=this.shy,Nn=this.shx,hi=this.sy,Nt=this.tx,ce=this.ty,Se=Math.sqrt(Ut*Ut+or*or),Ie=(Ut/=Se)*Nn+(or/=Se)*hi;Nn-=Ut*Ie,hi-=or*Ie;var Je=Math.sqrt(Nn*Nn+hi*hi);return Ie/=Je,Ut*(hi/=Je)<or*(Nn/=Je)&&(Ut=-Ut,or=-or,Ie=-Ie,Se=-Se),{scale:new na(Se,0,0,Je,0,0),translate:new na(1,0,0,1,Nt,ce),rotate:new na(Ut,or,-or,Ut,0,0),skew:new na(1,0,Ie,1,0,0)}},na.prototype.toString=function(Ut){return this.join(" ")},na.prototype.inversed=function(){var Ut=this.sx,or=this.shy,Nn=this.shx,hi=this.sy,Nt=this.tx,ce=this.ty,Se=1/(Ut*hi-or*Nn),Ie=hi*Se,Je=-or*Se,Dt=-Nn*Se,sr=Ut*Se;return new na(Ie,Je,Dt,sr,-Ie*Nt-Dt*ce,-Je*Nt-sr*ce)},na.prototype.applyToPoint=function(Ut){var or=Ut.x*this.sx+Ut.y*this.shx+this.tx,Nn=Ut.x*this.shy+Ut.y*this.sy+this.ty;return new tl(or,Nn)},na.prototype.applyToRectangle=function(Ut){var or=this.applyToPoint(Ut),Nn=this.applyToPoint(new tl(Ut.x+Ut.w,Ut.y+Ut.h));return new xs(or.x,or.y,Nn.x-or.x,Nn.y-or.y)},na.prototype.clone=function(){var Ut=this.sx,or=this.shy,Nn=this.shx,hi=this.sy,Nt=this.tx,ce=this.ty;return new na(Ut,or,Nn,hi,Nt,ce)},Ar.Matrix=na;var Pa=Ar.matrixMult=function(Ut,or){return or.multiply(Ut)},La=new na(1,0,0,1,0,0);Ar.unitMatrix=Ar.identityMatrix=La;var va=function(or,Nn){if(!Fi[or]){var hi=(Nn instanceof U?"Sh":"P")+(Object.keys(mi).length+1).toString(10);Nn.id=hi,Fi[or]=hi,mi[hi]=Nn,zi.publish("addPattern",Nn)}};Ar.ShadingPattern=U,Ar.TilingPattern=K,Ar.addShadingPattern=function(Ut,or){return Yn("addShadingPattern()"),va(Ut,or),this},Ar.beginTilingPattern=function(Ut){Yn("beginTilingPattern()"),al(Ut.boundingBox[0],Ut.boundingBox[1],Ut.boundingBox[2]-Ut.boundingBox[0],Ut.boundingBox[3]-Ut.boundingBox[1],Ut.matrix)},Ar.endTilingPattern=function(Ut,or){Yn("endTilingPattern()"),or.stream=oa[Ur].join(`
|
|
|
`),va(Ut,or),zi.publish("endTilingPattern",or),Ca.pop().restore()};var ga=Ar.__private__.newObject=function(){var Ut=Oa();return Aa(Ut,!0),Ut},Oa=Ar.__private__.newObjectDeferred=function(){return qn++,oi[qn]=function(){return ki},qn},Aa=function(or,Nn){return Nn=typeof Nn=="boolean"&&Nn,oi[or]=ki,Nn&&kn(or+" 0 obj"),or},Xa=Ar.__private__.newAdditionalObject=function(){var Ut={objId:Oa(),content:""};return Ri.push(Ut),Ut},_a=Oa(),Va=Oa(),Bi=Ar.__private__.decodeColorString=function(Ut){var or=Ut.split(" ");if(or.length!==2||or[1]!=="g"&&or[1]!=="G")or.length===5&&(or[4]==="k"||or[4]==="K")&&(or=[(1-or[0])*(1-or[3]),(1-or[1])*(1-or[3]),(1-or[2])*(1-or[3]),"r"]);else{var Nn=parseFloat(or[0]);or=[Nn,Nn,Nn,"r"]}for(var hi="#",Nt=0;Nt<3;Nt++)hi+=("0"+Math.floor(255*parseFloat(or[Nt])).toString(16)).slice(-2);return hi},io=Ar.__private__.encodeColorString=function(Ut){var or;typeof Ut=="string"&&(Ut={ch1:Ut});var Nn=Ut.ch1,hi=Ut.ch2,Nt=Ut.ch3,ce=Ut.ch4,Se=Ut.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Nn=="string"&&Nn.charAt(0)!=="#"){var Ie=new l(Nn);if(Ie.ok)Nn=Ie.toHex();else if(!/^\d*\.?\d*$/.test(Nn))throw new Error('Invalid color "'+Nn+'" passed to jsPDF.encodeColorString.')}if(typeof Nn=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Nn)&&(Nn="#"+Nn[1]+Nn[1]+Nn[2]+Nn[2]+Nn[3]+Nn[3]),typeof Nn=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Nn)){var Je=parseInt(Nn.substr(1),16);Nn=Je>>16&255,hi=Je>>8&255,Nt=255&Je}if(hi===void 0||ce===void 0&&Nn===hi&&hi===Nt)if(typeof Nn=="string")or=Nn+" "+Se[0];else switch(Ut.precision){case 2:or=Ot(Nn/255)+" "+Se[0];break;case 3:default:or=kt(Nn/255)+" "+Se[0]}else if(ce===void 0||x()(ce)==="object"){if(ce&&!isNaN(ce.a)&&ce.a===0)return or=["1.","1.","1.",Se[1]].join(" ");if(typeof Nn=="string")or=[Nn,hi,Nt,Se[1]].join(" ");else switch(Ut.precision){case 2:or=[Ot(Nn/255),Ot(hi/255),Ot(Nt/255),Se[1]].join(" ");break;default:case 3:or=[kt(Nn/255),kt(hi/255),kt(Nt/255),Se[1]].join(" ")}}else if(typeof Nn=="string")or=[Nn,hi,Nt,ce,Se[2]].join(" ");else switch(Ut.precision){case 2:or=[Ot(Nn),Ot(hi),Ot(Nt),Ot(ce),Se[2]].join(" ");break;case 3:default:or=[kt(Nn),kt(hi),kt(Nt),kt(ce),Se[2]].join(" ")}return or},oo=Ar.__private__.getFilters=function(){return ot},Qo=Ar.__private__.putStream=function(Ut){var or=(Ut=Ut||{}).data||"",Nn=Ut.filters||oo(),hi=Ut.alreadyAppliedFilters||[],Nt=Ut.addLength1||!1,ce=or.length,Se=Ut.objectId,Ie=function(vi){return vi};if($r!==null&&Se===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");$r!==null&&(Ie=wa.encryptor(Se,0));var Je={};Nn===!0&&(Nn=["FlateEncode"]);var Dt=Ut.additionalKeyValues||[],sr=(Je=z.API.processDataByFilters!==void 0?z.API.processDataByFilters(or,Nn):{data:or,reverseChain:[]}).reverseChain+(Array.isArray(hi)?hi.join(" "):hi.toString());if(Je.data.length!==0&&(Dt.push({key:"Length",value:Je.data.length}),Nt===!0&&Dt.push({key:"Length1",value:ce})),sr.length!=0)if(sr.split("/").length-1==1)Dt.push({key:"Filter",value:sr});else{Dt.push({key:"Filter",value:"["+sr+"]"});for(var Jr=0;Jr<Dt.length;Jr+=1)if(Dt[Jr].key==="DecodeParms"){for(var gn=[],Dn=0;Dn<Je.reverseChain.split("/").length-1;Dn+=1)gn.push("null");gn.push(Dt[Jr].value),Dt[Jr].value="["+gn.join(" ")+"]"}}kn("<<");for(var ui=0;ui<Dt.length;ui++)kn("/"+Dt[ui].key+" "+Dt[ui].value);kn(">>"),Je.data.length!==0&&(kn("stream"),kn(Ie(Je.data)),kn("endstream"))},mo=Ar.__private__.putPage=function(Ut){var or=Ut.number,Nn=Ut.data,hi=Ut.objId,Nt=Ut.contentsObjId;Aa(hi,!0),kn("<</Type /Page"),kn("/Parent "+Ut.rootDictionaryObjId+" 0 R"),kn("/Resources "+Ut.resourceDictionaryObjId+" 0 R"),kn("/MediaBox ["+parseFloat(En(Ut.mediaBox.bottomLeftX))+" "+parseFloat(En(Ut.mediaBox.bottomLeftY))+" "+En(Ut.mediaBox.topRightX)+" "+En(Ut.mediaBox.topRightY)+"]"),Ut.cropBox!==null&&kn("/CropBox ["+En(Ut.cropBox.bottomLeftX)+" "+En(Ut.cropBox.bottomLeftY)+" "+En(Ut.cropBox.topRightX)+" "+En(Ut.cropBox.topRightY)+"]"),Ut.bleedBox!==null&&kn("/BleedBox ["+En(Ut.bleedBox.bottomLeftX)+" "+En(Ut.bleedBox.bottomLeftY)+" "+En(Ut.bleedBox.topRightX)+" "+En(Ut.bleedBox.topRightY)+"]"),Ut.trimBox!==null&&kn("/TrimBox ["+En(Ut.trimBox.bottomLeftX)+" "+En(Ut.trimBox.bottomLeftY)+" "+En(Ut.trimBox.topRightX)+" "+En(Ut.trimBox.topRightY)+"]"),Ut.artBox!==null&&kn("/ArtBox ["+En(Ut.artBox.bottomLeftX)+" "+En(Ut.artBox.bottomLeftY)+" "+En(Ut.artBox.topRightX)+" "+En(Ut.artBox.topRightY)+"]"),typeof Ut.userUnit=="number"&&Ut.userUnit!==1&&kn("/UserUnit "+Ut.userUnit),zi.publish("putPage",{objId:hi,pageContext:Xi[or],pageNumber:or,page:Nn}),kn("/Contents "+Nt+" 0 R"),kn(">>"),kn("endobj");var ce=Nn.join(`
|
|
|
`);return ti===en.ADVANCED&&(ce+=`
|
|
|
Q`),Aa(Nt,!0),Qo({data:ce,filters:oo(),objectId:Nt}),kn("endobj"),hi},To=Ar.__private__.putPages=function(){var Ut,or,Nn=[];for(Ut=1;Ut<=ea;Ut++)Xi[Ut].objId=Oa(),Xi[Ut].contentsObjId=Oa();for(Ut=1;Ut<=ea;Ut++)Nn.push(mo({number:Ut,data:oa[Ut],objId:Xi[Ut].objId,contentsObjId:Xi[Ut].contentsObjId,mediaBox:Xi[Ut].mediaBox,cropBox:Xi[Ut].cropBox,bleedBox:Xi[Ut].bleedBox,trimBox:Xi[Ut].trimBox,artBox:Xi[Ut].artBox,userUnit:Xi[Ut].userUnit,rootDictionaryObjId:_a,resourceDictionaryObjId:Va}));Aa(_a,!0),kn("<</Type /Pages");var hi="/Kids [";for(or=0;or<ea;or++)hi+=Nn[or]+" 0 R ";kn(hi+"]"),kn("/Count "+ea),kn(">>"),kn("endobj"),zi.publish("postPutPages")},ao=function(or){zi.publish("putFont",{font:or,out:kn,newObject:ga,putStream:Qo}),or.isAlreadyPutted!==!0&&(or.objectNumber=ga(),kn("<<"),kn("/Type /Font"),kn("/BaseFont /"+j(or.postScriptName)),kn("/Subtype /Type1"),typeof or.encoding=="string"&&kn("/Encoding /"+or.encoding),kn("/FirstChar 32"),kn("/LastChar 255"),kn(">>"),kn("endobj"))},So=function(){for(var or in Sn)Sn.hasOwnProperty(or)&&(Yr===!1||Yr===!0&&mn.hasOwnProperty(or))&&ao(Sn[or])},bo=function(or){or.objectNumber=ga();var Nn=[];Nn.push({key:"Type",value:"/XObject"}),Nn.push({key:"Subtype",value:"/Form"}),Nn.push({key:"BBox",value:"["+[En(or.x),En(or.y),En(or.x+or.width),En(or.y+or.height)].join(" ")+"]"}),Nn.push({key:"Matrix",value:"["+or.matrix.toString()+"]"});var hi=or.pages[1].join(`
|
|
|
`);Qo({data:hi,additionalKeyValues:Nn,objectId:or.objectNumber}),kn("endobj")},to=function(){for(var or in Ji)Ji.hasOwnProperty(or)&&bo(Ji[or])},Jo=function(or,Nn){var hi,Nt=[],ce=1/(Nn-1);for(hi=0;hi<1;hi+=ce)Nt.push(hi);if(Nt.push(1),or[0].offset!=0){var Se={offset:0,color:or[0].color};or.unshift(Se)}if(or[or.length-1].offset!=1){var Ie={offset:1,color:or[or.length-1].color};or.push(Ie)}for(var Je="",Dt=0,sr=0;sr<Nt.length;sr++){for(hi=Nt[sr];hi>or[Dt+1].offset;)Dt++;var Jr=or[Dt].offset,gn=(hi-Jr)/(or[Dt+1].offset-Jr),Dn=or[Dt].color,ui=or[Dt+1].color;Je+=Qn(Math.round((1-gn)*Dn[0]+gn*ui[0]).toString(16))+Qn(Math.round((1-gn)*Dn[1]+gn*ui[1]).toString(16))+Qn(Math.round((1-gn)*Dn[2]+gn*ui[2]).toString(16))}return Je.trim()},Uo=function(or,Nn){Nn||(Nn=21);var hi=ga(),Nt=Jo(or.colors,Nn),ce=[];ce.push({key:"FunctionType",value:"0"}),ce.push({key:"Domain",value:"[0.0 1.0]"}),ce.push({key:"Size",value:"["+Nn+"]"}),ce.push({key:"BitsPerSample",value:"8"}),ce.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ce.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Qo({data:Nt,additionalKeyValues:ce,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:hi}),kn("endobj"),or.objectNumber=ga(),kn("<< /ShadingType "+or.type),kn("/ColorSpace /DeviceRGB");var Se="/Coords ["+En(parseFloat(or.coords[0]))+" "+En(parseFloat(or.coords[1]))+" ";or.type===2?Se+=En(parseFloat(or.coords[2]))+" "+En(parseFloat(or.coords[3])):Se+=En(parseFloat(or.coords[2]))+" "+En(parseFloat(or.coords[3]))+" "+En(parseFloat(or.coords[4]))+" "+En(parseFloat(or.coords[5])),kn(Se+="]"),or.matrix&&kn("/Matrix ["+or.matrix.toString()+"]"),kn("/Function "+hi+" 0 R"),kn("/Extend [true true]"),kn(">>"),kn("endobj")},wo=function(or,Nn){var hi=Oa(),Nt=ga();Nn.push({resourcesOid:hi,objectOid:Nt}),or.objectNumber=Nt;var ce=[];ce.push({key:"Type",value:"/Pattern"}),ce.push({key:"PatternType",value:"1"}),ce.push({key:"PaintType",value:"1"}),ce.push({key:"TilingType",value:"1"}),ce.push({key:"BBox",value:"["+or.boundingBox.map(En).join(" ")+"]"}),ce.push({key:"XStep",value:En(or.xStep)}),ce.push({key:"YStep",value:En(or.yStep)}),ce.push({key:"Resources",value:hi+" 0 R"}),or.matrix&&ce.push({key:"Matrix",value:"["+or.matrix.toString()+"]"}),Qo({data:or.stream,additionalKeyValues:ce,objectId:or.objectNumber}),kn("endobj")},ts=function(or){var Nn;for(Nn in mi)mi.hasOwnProperty(Nn)&&(mi[Nn]instanceof U?Uo(mi[Nn]):mi[Nn]instanceof K&&wo(mi[Nn],or))},Ia=function(or){for(var Nn in or.objectNumber=ga(),kn("<<"),or)switch(Nn){case"opacity":kn("/ca "+Ot(or[Nn]));break;case"stroke-opacity":kn("/CA "+Ot(or[Nn]))}kn(">>"),kn("endobj")},Oo=function(){var or;for(or in bi)bi.hasOwnProperty(or)&&Ia(bi[or])},Io=function(){for(var or in kn("/XObject <<"),Ji)Ji.hasOwnProperty(or)&&Ji[or].objectNumber>=0&&kn("/"+or+" "+Ji[or].objectNumber+" 0 R");zi.publish("putXobjectDict"),kn(">>")},os=function(){wa.oid=ga(),kn("<<"),kn("/Filter /Standard"),kn("/V "+wa.v),kn("/R "+wa.r),kn("/U <"+wa.toHexString(wa.U)+">"),kn("/O <"+wa.toHexString(wa.O)+">"),kn("/P "+wa.P),kn(">>"),kn("endobj")},xo=function(){for(var or in kn("/Font <<"),Sn)Sn.hasOwnProperty(or)&&(Yr===!1||Yr===!0&&mn.hasOwnProperty(or))&&kn("/"+or+" "+Sn[or].objectNumber+" 0 R");kn(">>")},rs=function(){if(Object.keys(mi).length>0){for(var or in kn("/Shading <<"),mi)mi.hasOwnProperty(or)&&mi[or]instanceof U&&mi[or].objectNumber>=0&&kn("/"+or+" "+mi[or].objectNumber+" 0 R");zi.publish("putShadingPatternDict"),kn(">>")}},Ho=function(or){if(Object.keys(mi).length>0){for(var Nn in kn("/Pattern <<"),mi)mi.hasOwnProperty(Nn)&&mi[Nn]instanceof Ar.TilingPattern&&mi[Nn].objectNumber>=0&&mi[Nn].objectNumber<or&&kn("/"+Nn+" "+mi[Nn].objectNumber+" 0 R");zi.publish("putTilingPatternDict"),kn(">>")}},_o=function(){if(Object.keys(bi).length>0){var or;for(or in kn("/ExtGState <<"),bi)bi.hasOwnProperty(or)&&bi[or].objectNumber>=0&&kn("/"+or+" "+bi[or].objectNumber+" 0 R");zi.publish("putGStateDict"),kn(">>")}},uo=function(or){Aa(or.resourcesOid,!0),kn("<<"),kn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),xo(),rs(),Ho(or.objectOid),_o(),Io(),kn(">>"),kn("endobj")},Ha=function(){var or=[];So(),Oo(),to(),ts(or),zi.publish("putResources"),or.forEach(uo),uo({resourcesOid:Va,objectOid:Number.MAX_SAFE_INTEGER}),zi.publish("postPutResources")},mt=function(){zi.publish("putAdditionalObjects");for(var or=0;or<Ri.length;or++){var Nn=Ri[or];Aa(Nn.objId,!0),kn(Nn.content),kn("endobj")}zi.publish("postPutAdditionalObjects")},Tr=function(or){ei[or.fontName]=ei[or.fontName]||{},ei[or.fontName][or.fontStyle]=or.id},tn=function(or,Nn,hi,Nt,ce){var Se={id:"F"+(Object.keys(Sn).length+1).toString(10),postScriptName:or,fontName:Nn,fontStyle:hi,encoding:Nt,isStandardFont:ce||!1,metadata:{}};return zi.publish("addFont",{font:Se,instance:this}),Sn[Se.id]=Se,Tr(Se),Se.id},Qr=function(or){for(var Nn=0,hi=ta.length;Nn<hi;Nn++){var Nt=tn.call(this,or[Nn][0],or[Nn][1],or[Nn][2],ta[Nn][3],!0);Yr===!1&&(mn[Nt]=!0);var ce=or[Nn][0].split("-");Tr({id:Nt,fontName:ce[0],fontStyle:ce[1]||""})}zi.publish("addFonts",{fonts:Sn,dictionary:ei})},Jn=function(or){return or.foo=function(){try{return or.apply(this,arguments)}catch(Nt){var Nn=Nt.stack||"";~Nn.indexOf(" at ")&&(Nn=Nn.split(" at ")[1]);var hi="Error in function "+Nn.split(`
|
|
|
`)[0].split("<")[0]+": "+Nt.message;if(!m.console)throw new Error(hi);m.console.error(hi,Nt),m.alert&&alert(hi)}},or.foo.bar=or,or.foo},fn=function(or,Nn){var hi,Nt,ce,Se,Ie,Je,Dt,sr,Jr;if(ce=(Nn=Nn||{}).sourceEncoding||"Unicode",Ie=Nn.outputEncoding,(Nn.autoencode||Ie)&&Sn[Or].metadata&&Sn[Or].metadata[ce]&&Sn[Or].metadata[ce].encoding&&(Se=Sn[Or].metadata[ce].encoding,!Ie&&Sn[Or].encoding&&(Ie=Sn[Or].encoding),!Ie&&Se.codePages&&(Ie=Se.codePages[0]),typeof Ie=="string"&&(Ie=Se[Ie]),Ie)){for(Dt=!1,Je=[],hi=0,Nt=or.length;hi<Nt;hi++)(sr=Ie[or.charCodeAt(hi)])?Je.push(String.fromCharCode(sr)):Je.push(or[hi]),Je[hi].charCodeAt(0)>>8&&(Dt=!0);or=Je.join("")}for(hi=or.length;Dt===void 0&&hi!==0;)or.charCodeAt(hi-1)>>8&&(Dt=!0),hi--;if(!Dt)return or;for(Je=Nn.noBOM?[]:[254,255],hi=0,Nt=or.length;hi<Nt;hi++){if((Jr=(sr=or.charCodeAt(hi))>>8)>>8)throw new Error("Character at position "+hi+" of string '"+or+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Je.push(Jr),Je.push(sr-(Jr<<8))}return String.fromCharCode.apply(void 0,Je)},Xr=Ar.__private__.pdfEscape=Ar.pdfEscape=function(Ut,or){return fn(Ut,or).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ii=Ar.__private__.beginPage=function(Ut){oa[++ea]=[],Xi[ea]={objId:0,contentsObjId:0,userUnit:Number(Ct),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Ut[0]),topRightY:Number(Ut[1])}},li(ea),yi(oa[Ur])},nn=function(or,Nn){var hi,Nt,ce;switch(je=Nn||je,typeof or=="string"&&(hi=bn(or.toLowerCase()),Array.isArray(hi)&&(Nt=hi[0],ce=hi[1])),Array.isArray(or)&&(Nt=or[0]*Lr,ce=or[1]*Lr),isNaN(Nt)&&(Nt=nt[0],ce=nt[1]),(Nt>14400||ce>14400)&&(d.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Nt=Math.min(14400,Nt),ce=Math.min(14400,ce)),nt=[Nt,ce],je.substr(0,1)){case"l":ce>Nt&&(nt=[ce,Nt]);break;case"p":Nt>ce&&(nt=[ce,Nt])}ii(nt),ss(Ao),kn(hs),ds!==0&&kn(ds+" J"),ks!==0&&kn(ks+" j"),zi.publish("addPage",{pageNumber:ea})},Wn=function(or){or>0&&or<=ea&&(oa.splice(or,1),Xi.splice(or,1),ea--,Ur>ea&&(Ur=ea),this.setPage(Ur))},li=function(or){or>0&&or<=ea&&(Ur=or)},ci=Ar.__private__.getNumberOfPages=Ar.getNumberOfPages=function(){return oa.length-1},si=function(or,Nn,hi){var Nt,ce=void 0;return hi=hi||{},or=or!==void 0?or:Sn[Or].fontName,Nn=Nn!==void 0?Nn:Sn[Or].fontStyle,Nt=or.toLowerCase(),ei[Nt]!==void 0&&ei[Nt][Nn]!==void 0?ce=ei[Nt][Nn]:ei[or]!==void 0&&ei[or][Nn]!==void 0?ce=ei[or][Nn]:hi.disableWarning===!1&&d.warn("Unable to look up font label for font '"+or+"', '"+Nn+"'. Refer to getFontList() for available fonts."),ce||hi.noFallback||(ce=ei.times[Nn])==null&&(ce=ei.times.normal),ce},Ci=Ar.__private__.putInfo=function(){var Ut=ga(),or=function(Nt){return Nt};for(var Nn in $r!==null&&(or=wa.encryptor(Ut,0)),kn("<<"),kn("/Producer ("+Xr(or("jsPDF "+z.version))+")"),_t)_t.hasOwnProperty(Nn)&&_t[Nn]&&kn("/"+Nn.substr(0,1).toUpperCase()+Nn.substr(1)+" ("+Xr(or(_t[Nn]))+")");kn("/CreationDate ("+Xr(or(dr))+")"),kn(">>"),kn("endobj")},gi=Ar.__private__.putCatalog=function(Ut){var or=(Ut=Ut||{}).rootDictionaryObjId||_a;switch(ga(),kn("<<"),kn("/Type /Catalog"),kn("/Pages "+or+" 0 R"),Ir||(Ir="fullwidth"),Ir){case"fullwidth":kn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":kn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":kn("/OpenAction [3 0 R /Fit]");break;case"original":kn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Nn=""+Ir;Nn.substr(Nn.length-1)==="%"&&(Ir=parseInt(Ir)/100),typeof Ir=="number"&&kn("/OpenAction [3 0 R /XYZ null null "+Ot(Ir)+"]")}switch(Gr||(Gr="continuous"),Gr){case"continuous":kn("/PageLayout /OneColumn");break;case"single":kn("/PageLayout /SinglePage");break;case"two":case"twoleft":kn("/PageLayout /TwoColumnLeft");break;case"tworight":kn("/PageLayout /TwoColumnRight")}mr&&kn("/PageMode /"+mr),zi.publish("putCatalog"),kn(">>"),kn("endobj")},Ai=Ar.__private__.putTrailer=function(){kn("trailer"),kn("<<"),kn("/Size "+(qn+1)),kn("/Root "+qn+" 0 R"),kn("/Info "+(qn-1)+" 0 R"),$r!==null&&kn("/Encrypt "+wa.oid+" 0 R"),kn("/ID [ <"+yr+"> <"+yr+"> ]"),kn(">>")},Ni=Ar.__private__.putHeader=function(){kn("%PDF-"+zn),kn("%\xBA\xDF\xAC\xE0")},ia=Ar.__private__.putXRef=function(){var Ut="0000000000";kn("xref"),kn("0 "+(qn+1)),kn("0000000000 65535 f ");for(var or=1;or<=qn;or++)typeof oi[or]=="function"?kn((Ut+oi[or]()).slice(-10)+" 00000 n "):oi[or]!==void 0?kn((Ut+oi[or]).slice(-10)+" 00000 n "):kn("0000000000 00000 n ")},Ki=Ar.__private__.buildDocument=function(){ba(),yi(Ti),zi.publish("buildDocument"),Ni(),To(),mt(),Ha(),$r!==null&&os(),Ci(),gi();var Ut=ki;return ia(),Ai(),kn("startxref"),kn(""+Ut),kn("%%EOF"),yi(oa[Ur]),Ti.join(`
|
|
|
`)},fa=Ar.__private__.getBlob=function(Ut){return new Blob([ha(Ut)],{type:"application/pdf"})},Ya=Ar.output=Ar.__private__.output=Jn(function(Ut,or){switch(typeof(or=or||{})=="string"?or={filename:or}:or.filename=or.filename||"generated.pdf",Ut){case void 0:return Ki();case"save":Ar.save(or.filename);break;case"arraybuffer":return ha(Ki());case"blob":return fa(Ki());case"bloburi":case"bloburl":if(m.URL!==void 0&&typeof m.URL.createObjectURL=="function")return m.URL&&m.URL.createObjectURL(fa(Ki()))||void 0;d.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Nn="",hi=Ki();try{Nn=o(hi)}catch(Dn){Nn=o(unescape(encodeURIComponent(hi)))}return"data:application/pdf;filename="+or.filename+";base64,"+Nn;case"pdfobjectnewwindow":if(Object.prototype.toString.call(m)==="[object Window]"){var Nt="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ce=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';or.pdfObjectUrl&&(Nt=or.pdfObjectUrl,ce="");var Se='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Nt+'"'+ce+'></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(or)+");</script></body></html>",Ie=m.open();return Ie!==null&&Ie.document.write(Se),Ie}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(m)==="[object Window]"){var Je='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(or.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+or.filename+'" width="500px" height="400px" /></body></html>',Dt=m.open();if(Dt!==null){Dt.document.write(Je);var sr=this;Dt.document.documentElement.querySelector("#pdfViewer").onload=function(){Dt.document.title=or.filename,Dt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(sr.output("bloburl"))}}return Dt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(m)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Jr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",or)+'"></iframe></body></html>',gn=m.open();if(gn!==null&&(gn.document.write(Jr),gn.document.title=or.filename),gn||typeof safari=="undefined")return gn;break;case"datauri":case"dataurl":return m.document.location.href=this.output("datauristring",or);default:return null}}),xa=function(or){return Array.isArray(Hi)===!0&&Hi.indexOf(or)>-1};switch(Xe){case"pt":Lr=1;break;case"mm":Lr=72/25.4;break;case"cm":Lr=72/2.54;break;case"in":Lr=72;break;case"px":Lr=xa("px_scaling")==1?.75:96/72;break;case"pc":case"em":Lr=12;break;case"ex":Lr=6;break;default:if(typeof Xe!="number")throw new Error("Invalid unit: "+Xe);Lr=Xe}var wa=null;di(),Mr();var Da=function(or){return $r!==null?wa.encryptor(or,0):function(Nn){return Nn}},ja=Ar.__private__.getPageInfo=Ar.getPageInfo=function(Ut){if(isNaN(Ut)||Ut%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Xi[Ut].objId,pageNumber:Ut,pageContext:Xi[Ut]}},ko=Ar.__private__.getPageInfoByObjId=function(Ut){if(isNaN(Ut)||Ut%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var or in Xi)if(Xi[or].objId===Ut)break;return ja(or)},ro=Ar.__private__.getCurrentPageInfo=Ar.getCurrentPageInfo=function(){return{objId:Xi[Ur].objId,pageNumber:Ur,pageContext:Xi[Ur]}};Ar.addPage=function(){return nn.apply(this,arguments),this},Ar.setPage=function(){return li.apply(this,arguments),yi.call(this,oa[Ur]),this},Ar.insertPage=function(Ut){return this.addPage(),this.movePage(Ur,Ut),this},Ar.movePage=function(Ut,or){var Nn,hi;if(Ut>or){Nn=oa[Ut],hi=Xi[Ut];for(var Nt=Ut;Nt>or;Nt--)oa[Nt]=oa[Nt-1],Xi[Nt]=Xi[Nt-1];oa[or]=Nn,Xi[or]=hi,this.setPage(or)}else if(Ut<or){Nn=oa[Ut],hi=Xi[Ut];for(var ce=Ut;ce<or;ce++)oa[ce]=oa[ce+1],Xi[ce]=Xi[ce+1];oa[or]=Nn,Xi[or]=hi,this.setPage(or)}return this},Ar.deletePage=function(){return Wn.apply(this,arguments),this},Ar.__private__.text=Ar.text=function(Ut,or,Nn,hi,Nt){var ce,Se,Ie,Je,Dt,sr,Jr,gn,Dn,ui=(hi=hi||{}).scope||this;if(typeof Ut=="number"&&typeof or=="number"&&(typeof Nn=="string"||Array.isArray(Nn))){var Si=Nn;Nn=or,or=Ut,Ut=Si}if(arguments[3]instanceof na==!1?(Ie=arguments[4],Je=arguments[5],x()(Jr=arguments[3])==="object"&&Jr!==null||(typeof Ie=="string"&&(Je=Ie,Ie=null),typeof Jr=="string"&&(Je=Jr,Jr=null),typeof Jr=="number"&&(Ie=Jr,Jr=null),hi={flags:Jr,angle:Ie,align:Je})):(Yn("The transform parameter of text() with a Matrix value"),Dn=Nt),isNaN(or)||isNaN(Nn)||Ut==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Ut.length===0)return ui;var vi="",Qi=!1,sa=typeof hi.lineHeightFactor=="number"?hi.lineHeightFactor:co,Ua=ui.internal.scaleFactor;function no(ol){return ol=ol.split(" ").join(Array(hi.TabLen||9).join(" ")),Xr(ol,Jr)}function Wo(ol){for(var Ys,sl=ol.concat(),nl=[],xl=sl.length;xl--;)typeof(Ys=sl.shift())=="string"?nl.push(Ys):Array.isArray(ol)&&(Ys.length===1||Ys[1]===void 0&&Ys[2]===void 0)?nl.push(Ys[0]):nl.push([Ys[0],Ys[1],Ys[2]]);return nl}function Zo(ol,Ys){var sl;if(typeof ol=="string")sl=Ys(ol)[0];else if(Array.isArray(ol)){for(var nl,xl,Ml=ol.concat(),Wl=[],au=Ml.length;au--;)typeof(nl=Ml.shift())=="string"?Wl.push(Ys(nl)[0]):Array.isArray(nl)&&typeof nl[0]=="string"&&(xl=Ys(nl[0],nl[1],nl[2]),Wl.push([xl[0],xl[1],xl[2]]));sl=Wl}return sl}var Bo=!1,Es=!0;if(typeof Ut=="string")Bo=!0;else if(Array.isArray(Ut)){var As=Ut.concat();Se=[];for(var $o,Do=As.length;Do--;)(typeof($o=As.shift())!="string"||Array.isArray($o)&&typeof $o[0]!="string")&&(Es=!1);Bo=Es}if(Bo===!1)throw new Error('Type of text must be string or Array. "'+Ut+'" is not recognized.');typeof Ut=="string"&&(Ut=Ut.match(/[\r?\n]/)?Ut.split(/\r\n|\r|\n/g):[Ut]);var vo=ra/ui.internal.scaleFactor,Ms=vo*(sa-1);switch(hi.baseline){case"bottom":Nn-=Ms;break;case"top":Nn+=vo-Ms;break;case"hanging":Nn+=vo-2*Ms;break;case"middle":Nn+=vo/2-Ms}if((sr=hi.maxWidth||0)>0&&(typeof Ut=="string"?Ut=ui.splitTextToSize(Ut,sr):Object.prototype.toString.call(Ut)==="[object Array]"&&(Ut=Ut.reduce(function(ol,Ys){return ol.concat(ui.splitTextToSize(Ys,sr))},[]))),ce={text:Ut,x:or,y:Nn,options:hi,mutex:{pdfEscape:Xr,activeFontKey:Or,fonts:Sn,activeFontSize:ra}},zi.publish("preProcessText",ce),Ut=ce.text,Ie=(hi=ce.options).angle,Dn instanceof na==!1&&Ie&&typeof Ie=="number"){Ie*=Math.PI/180,hi.rotationDirection===0&&(Ie=-Ie),ti===en.ADVANCED&&(Ie=-Ie);var rl=Math.cos(Ie),gs=Math.sin(Ie);Dn=new na(rl,gs,-gs,rl,0,0)}else Ie&&Ie instanceof na&&(Dn=Ie);ti!==en.ADVANCED||Dn||(Dn=La),(Dt=hi.charSpace||el)!==void 0&&(vi+=En(Bt(Dt))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(gn=hi.horizontalScale)!==void 0&&(vi+=En(100*gn)+` Tz
|
|
|
`),hi.lang;var Ra=-1,dl=hi.renderingMode!==void 0?hi.renderingMode:hi.stroke,fl=ui.internal.getCurrentPageInfo().pageContext;switch(dl){case 0:case!1:case"fill":Ra=0;break;case 1:case!0:case"stroke":Ra=1;break;case 2:case"fillThenStroke":Ra=2;break;case 3:case"invisible":Ra=3;break;case 4:case"fillAndAddForClipping":Ra=4;break;case 5:case"strokeAndAddPathForClipping":Ra=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Ra=6;break;case 7:case"addToPathForClipping":Ra=7}var Us=fl.usedRenderingMode!==void 0?fl.usedRenderingMode:-1;Ra!==-1?vi+=Ra+` Tr
|
|
|
`:Us!==-1&&(vi+=`0 Tr
|
|
|
`),Ra!==-1&&(fl.usedRenderingMode=Ra),Je=hi.align||"left";var Os,Xs=ra*sa,Ql=ui.internal.pageSize.getWidth(),Ul=Sn[Or];Dt=hi.charSpace||el,sr=hi.maxWidth||0,Jr=Object.assign({autoencode:!0,noBOM:!0},hi.flags);var wl=[];if(Object.prototype.toString.call(Ut)==="[object Array]"){var Ts;Se=Wo(Ut),Je!=="left"&&(Os=Se.map(function(ol){return ui.getStringUnitWidth(ol,{font:Ul,charSpace:Dt,fontSize:ra,doKerning:!1})*ra/Ua}));var Ws,Tl=0;if(Je==="right"){or-=Os[0],Ut=[],Do=Se.length;for(var pl=0;pl<Do;pl++)pl===0?(Ws=Eo(or),Ts=zo(Nn)):(Ws=Bt(Tl-Os[pl]),Ts=-Xs),Ut.push([Se[pl],Ws,Ts]),Tl=Os[pl]}else if(Je==="center"){or-=Os[0]/2,Ut=[],Do=Se.length;for(var jo=0;jo<Do;jo++)jo===0?(Ws=Eo(or),Ts=zo(Nn)):(Ws=Bt((Tl-Os[jo])/2),Ts=-Xs),Ut.push([Se[jo],Ws,Ts]),Tl=Os[jo]}else if(Je==="left"){Ut=[],Do=Se.length;for(var yo=0;yo<Do;yo++)Ut.push(Se[yo])}else{if(Je!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');Ut=[],Do=Se.length,sr=sr!==0?sr:Ql;for(var qo=0;qo<Do;qo++)Ts=qo===0?zo(Nn):-Xs,Ws=qo===0?Eo(or):0,qo<Do-1?wl.push(En(Bt((sr-Os[qo])/(Se[qo].split(" ").length-1)))):wl.push(0),Ut.push([Se[qo],Ws,Ts])}}var ps=typeof hi.R2L=="boolean"?hi.R2L:Cn;ps===!0&&(Ut=Zo(Ut,function(ol,Ys,sl){return[ol.split("").reverse().join(""),Ys,sl]})),ce={text:Ut,x:or,y:Nn,options:hi,mutex:{pdfEscape:Xr,activeFontKey:Or,fonts:Sn,activeFontSize:ra}},zi.publish("postProcessText",ce),Ut=ce.text,Qi=ce.mutex.isHex||!1;var Is=Sn[Or].encoding;Is!=="WinAnsiEncoding"&&Is!=="StandardEncoding"||(Ut=Zo(Ut,function(ol,Ys,sl){return[no(ol),Ys,sl]})),Se=Wo(Ut),Ut=[];for(var es,Ls,Ps,ml=0,Rl=1,_l=Array.isArray(Se[0])?Rl:ml,Bl="",jl=function(Ys,sl,nl){var xl="";return nl instanceof na?(nl=typeof hi.angle=="number"?Pa(nl,new na(1,0,0,1,Ys,sl)):Pa(new na(1,0,0,1,Ys,sl),nl),ti===en.ADVANCED&&(nl=Pa(new na(1,0,0,-1,0,0),nl)),xl=nl.join(" ")+` Tm
|
|
|
`):xl=En(Ys)+" "+En(sl)+` Td
|
|
|
`,xl},kl=0;kl<Se.length;kl++){switch(Bl="",_l){case Rl:Ps=(Qi?"<":"(")+Se[kl][0]+(Qi?">":")"),es=parseFloat(Se[kl][1]),Ls=parseFloat(Se[kl][2]);break;case ml:Ps=(Qi?"<":"(")+Se[kl]+(Qi?">":")"),es=Eo(or),Ls=zo(Nn)}wl!==void 0&&wl[kl]!==void 0&&(Bl=wl[kl]+` Tw
|
|
|
`),kl===0?Ut.push(Bl+jl(es,Ls,Dn)+Ps):_l===ml?Ut.push(Bl+Ps):_l===Rl&&Ut.push(Bl+jl(es,Ls,Dn)+Ps)}Ut=_l===ml?Ut.join(` Tj
|
|
|
T* `):Ut.join(` Tj
|
|
|
`),Ut+=` Tj
|
|
|
`;var Xl=`BT
|
|
|
/`;return Xl+=Or+" "+ra+` Tf
|
|
|
`,Xl+=En(ra*sa)+` TL
|
|
|
`,Xl+=Ns+`
|
|
|
`,Xl+=vi,Xl+=Ut,kn(Xl+="ET"),mn[Or]=!0,ui};var pa=Ar.__private__.clip=Ar.clip=function(Ut){return kn(Ut==="evenodd"?"W*":"W"),this};Ar.clipEvenOdd=function(){return pa("evenodd")},Ar.__private__.discardPath=Ar.discardPath=function(){return kn("n"),this};var Ea=Ar.__private__.isValidStyle=function(Ut){var or=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Ut)!==-1&&(or=!0),or};Ar.__private__.setDefaultPathOperation=Ar.setDefaultPathOperation=function(Ut){return Ea(Ut)&&(pr=Ut),this};var Fa=Ar.__private__.getStyle=Ar.getStyle=function(Ut){var or=pr;switch(Ut){case"D":case"S":or="S";break;case"F":or="f";break;case"FD":case"DF":or="B";break;case"f":case"f*":case"B":case"B*":or=Ut}return or},Ka=Ar.close=function(){return kn("h"),this};Ar.stroke=function(){return kn("S"),this},Ar.fill=function(Ut){return lo("f",Ut),this},Ar.fillEvenOdd=function(Ut){return lo("f*",Ut),this},Ar.fillStroke=function(Ut){return lo("B",Ut),this},Ar.fillStrokeEvenOdd=function(Ut){return lo("B*",Ut),this};var lo=function(or,Nn){x()(Nn)==="object"?Lo(Nn,or):kn(or)},so=function(or){or===null||ti===en.ADVANCED&&or===void 0||(or=Fa(or),kn(or))};function Co(Ut,or,Nn,hi,Nt){var ce=new K(or||this.boundingBox,Nn||this.xStep,hi||this.yStep,this.gState,Nt||this.matrix);ce.stream=this.stream;var Se=Ut+"$$"+this.cloneIndex+++"$$";return va(Se,ce),ce}var Lo=function(or,Nn){var hi=Fi[or.key],Nt=mi[hi];if(Nt instanceof U)kn("q"),kn(is(Nn)),Nt.gState&&Ar.setGState(Nt.gState),kn(or.matrix.toString()+" cm"),kn("/"+hi+" sh"),kn("Q");else if(Nt instanceof K){var ce=new na(1,0,0,-1,0,Ds());or.matrix&&(ce=ce.multiply(or.matrix||La),hi=Co.call(Nt,or.key,or.boundingBox,or.xStep,or.yStep,ce).id),kn("q"),kn("/Pattern cs"),kn("/"+hi+" scn"),Nt.gState&&Ar.setGState(Nt.gState),kn(Nn),kn("Q")}},is=function(or){switch(or){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},cs=Ar.moveTo=function(Ut,or){return kn(En(Bt(Ut))+" "+En(Lt(or))+" m"),this},Rs=Ar.lineTo=function(Ut,or){return kn(En(Bt(Ut))+" "+En(Lt(or))+" l"),this},Ko=Ar.curveTo=function(Ut,or,Nn,hi,Nt,ce){return kn([En(Bt(Ut)),En(Lt(or)),En(Bt(Nn)),En(Lt(hi)),En(Bt(Nt)),En(Lt(ce)),"c"].join(" ")),this};Ar.__private__.line=Ar.line=function(Ut,or,Nn,hi,Nt){if(isNaN(Ut)||isNaN(or)||isNaN(Nn)||isNaN(hi)||!Ea(Nt))throw new Error("Invalid arguments passed to jsPDF.line");return ti===en.COMPAT?this.lines([[Nn-Ut,hi-or]],Ut,or,[1,1],Nt||"S"):this.lines([[Nn-Ut,hi-or]],Ut,or,[1,1]).stroke()},Ar.__private__.lines=Ar.lines=function(Ut,or,Nn,hi,Nt,ce){var Se,Ie,Je,Dt,sr,Jr,gn,Dn,ui,Si,vi,Qi;if(typeof Ut=="number"&&(Qi=Nn,Nn=or,or=Ut,Ut=Qi),hi=hi||[1,1],ce=ce||!1,isNaN(or)||isNaN(Nn)||!Array.isArray(Ut)||!Array.isArray(hi)||!Ea(Nt)||typeof ce!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(cs(or,Nn),Se=hi[0],Ie=hi[1],Dt=Ut.length,Si=or,vi=Nn,Je=0;Je<Dt;Je++)(sr=Ut[Je]).length===2?(Si=sr[0]*Se+Si,vi=sr[1]*Ie+vi,Rs(Si,vi)):(Jr=sr[0]*Se+Si,gn=sr[1]*Ie+vi,Dn=sr[2]*Se+Si,ui=sr[3]*Ie+vi,Si=sr[4]*Se+Si,vi=sr[5]*Ie+vi,Ko(Jr,gn,Dn,ui,Si,vi));return ce&&Ka(),so(Nt),this},Ar.path=function(Ut){for(var or=0;or<Ut.length;or++){var Nn=Ut[or],hi=Nn.c;switch(Nn.op){case"m":cs(hi[0],hi[1]);break;case"l":Rs(hi[0],hi[1]);break;case"c":Ko.apply(this,hi);break;case"h":Ka()}}return this},Ar.__private__.rect=Ar.rect=function(Ut,or,Nn,hi,Nt){if(isNaN(Ut)||isNaN(or)||isNaN(Nn)||isNaN(hi)||!Ea(Nt))throw new Error("Invalid arguments passed to jsPDF.rect");return ti===en.COMPAT&&(hi=-hi),kn([En(Bt(Ut)),En(Lt(or)),En(Bt(Nn)),En(Bt(hi)),"re"].join(" ")),so(Nt),this},Ar.__private__.triangle=Ar.triangle=function(Ut,or,Nn,hi,Nt,ce,Se){if(isNaN(Ut)||isNaN(or)||isNaN(Nn)||isNaN(hi)||isNaN(Nt)||isNaN(ce)||!Ea(Se))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Nn-Ut,hi-or],[Nt-Nn,ce-hi],[Ut-Nt,or-ce]],Ut,or,[1,1],Se,!0),this},Ar.__private__.roundedRect=Ar.roundedRect=function(Ut,or,Nn,hi,Nt,ce,Se){if(isNaN(Ut)||isNaN(or)||isNaN(Nn)||isNaN(hi)||isNaN(Nt)||isNaN(ce)||!Ea(Se))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ie=4/3*(Math.SQRT2-1);return Nt=Math.min(Nt,.5*Nn),ce=Math.min(ce,.5*hi),this.lines([[Nn-2*Nt,0],[Nt*Ie,0,Nt,ce-ce*Ie,Nt,ce],[0,hi-2*ce],[0,ce*Ie,-Nt*Ie,ce,-Nt,ce],[2*Nt-Nn,0],[-Nt*Ie,0,-Nt,-ce*Ie,-Nt,-ce],[0,2*ce-hi],[0,-ce*Ie,Nt*Ie,-ce,Nt,-ce]],Ut+Nt,or,[1,1],Se,!0),this},Ar.__private__.ellipse=Ar.ellipse=function(Ut,or,Nn,hi,Nt){if(isNaN(Ut)||isNaN(or)||isNaN(Nn)||isNaN(hi)||!Ea(Nt))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ce=4/3*(Math.SQRT2-1)*Nn,Se=4/3*(Math.SQRT2-1)*hi;return cs(Ut+Nn,or),Ko(Ut+Nn,or-Se,Ut+ce,or-hi,Ut,or-hi),Ko(Ut-ce,or-hi,Ut-Nn,or-Se,Ut-Nn,or),Ko(Ut-Nn,or+Se,Ut-ce,or+hi,Ut,or+hi),Ko(Ut+ce,or+hi,Ut+Nn,or+Se,Ut+Nn,or),so(Nt),this},Ar.__private__.circle=Ar.circle=function(Ut,or,Nn,hi){if(isNaN(Ut)||isNaN(or)||isNaN(Nn)||!Ea(hi))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Ut,or,Nn,Nn,hi)},Ar.setFont=function(Ut,or,Nn){return Nn&&(or=qr(or,Nn)),Or=si(Ut,or,{disableWarning:!1}),this};var as=Ar.__private__.getFont=Ar.getFont=function(){return Sn[si.apply(Ar,arguments)]};Ar.__private__.getFontList=Ar.getFontList=function(){var Ut,or,Nn={};for(Ut in ei)if(ei.hasOwnProperty(Ut))for(or in Nn[Ut]=[],ei[Ut])ei[Ut].hasOwnProperty(or)&&Nn[Ut].push(or);return Nn},Ar.addFont=function(Ut,or,Nn,hi,Nt){var ce=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ce.indexOf(arguments[3])!==-1?Nt=arguments[3]:arguments[3]&&ce.indexOf(arguments[3])==-1&&(Nn=qr(Nn,hi)),Nt=Nt||"Identity-H",tn.call(this,Ut,or,Nn,Nt)};var co,Ao=it.lineWidth||.200025,$a=Ar.__private__.getLineWidth=Ar.getLineWidth=function(){return Ao},ss=Ar.__private__.setLineWidth=Ar.setLineWidth=function(Ut){return Ao=Ut,kn(En(Bt(Ut))+" w"),this};Ar.__private__.setLineDash=z.API.setLineDash=z.API.setLineDashPattern=function(Ut,or){if(Ut=Ut||[],or=or||0,isNaN(or)||!Array.isArray(Ut))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Ut=Ut.map(function(Nn){return En(Bt(Nn))}).join(" "),or=En(Bt(or)),kn("["+Ut+"] "+or+" d"),this};var _s=Ar.__private__.getLineHeight=Ar.getLineHeight=function(){return ra*co};Ar.__private__.getLineHeight=Ar.getLineHeight=function(){return ra*co};var Fo=Ar.__private__.setLineHeightFactor=Ar.setLineHeightFactor=function(Ut){return typeof(Ut=Ut||1.15)=="number"&&(co=Ut),this},il=Ar.__private__.getLineHeightFactor=Ar.getLineHeightFactor=function(){return co};Fo(it.lineHeight);var Eo=Ar.__private__.getHorizontalCoordinate=function(Ut){return Bt(Ut)},zo=Ar.__private__.getVerticalCoordinate=function(Ut){return ti===en.ADVANCED?Ut:Xi[Ur].mediaBox.topRightY-Xi[Ur].mediaBox.bottomLeftY-Bt(Ut)},Fs=Ar.__private__.getHorizontalCoordinateString=Ar.getHorizontalCoordinateString=function(Ut){return En(Eo(Ut))},ms=Ar.__private__.getVerticalCoordinateString=Ar.getVerticalCoordinateString=function(Ut){return En(zo(Ut))},hs=it.strokeColor||"0 G";Ar.__private__.getStrokeColor=Ar.getDrawColor=function(){return Bi(hs)},Ar.__private__.setStrokeColor=Ar.setDrawColor=function(Ut,or,Nn,hi){return hs=io({ch1:Ut,ch2:or,ch3:Nn,ch4:hi,pdfColorType:"draw",precision:2}),kn(hs),this};var wn=it.fillColor||"0 g";Ar.__private__.getFillColor=Ar.getFillColor=function(){return Bi(wn)},Ar.__private__.setFillColor=Ar.setFillColor=function(Ut,or,Nn,hi){return wn=io({ch1:Ut,ch2:or,ch3:Nn,ch4:hi,pdfColorType:"fill",precision:2}),kn(wn),this};var Ns=it.textColor||"0 g",Ll=Ar.__private__.getTextColor=Ar.getTextColor=function(){return Bi(Ns)};Ar.__private__.setTextColor=Ar.setTextColor=function(Ut,or,Nn,hi){return Ns=io({ch1:Ut,ch2:or,ch3:Nn,ch4:hi,pdfColorType:"text",precision:3}),this};var el=it.charSpace,Gs=Ar.__private__.getCharSpace=Ar.getCharSpace=function(){return parseFloat(el||0)};Ar.__private__.setCharSpace=Ar.setCharSpace=function(Ut){if(isNaN(Ut))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return el=Ut,this};var ds=0;Ar.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},Ar.__private__.setLineCap=Ar.setLineCap=function(Ut){var or=Ar.CapJoinStyles[Ut];if(or===void 0)throw new Error("Line cap style of '"+Ut+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ds=or,kn(or+" J"),this};var ks=0;Ar.__private__.setLineJoin=Ar.setLineJoin=function(Ut){var or=Ar.CapJoinStyles[Ut];if(or===void 0)throw new Error("Line join style of '"+Ut+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ks=or,kn(or+" j"),this},Ar.__private__.setLineMiterLimit=Ar.__private__.setMiterLimit=Ar.setLineMiterLimit=Ar.setMiterLimit=function(Ut){if(Ut=Ut||0,isNaN(Ut))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return kn(En(Bt(Ut))+" M"),this},Ar.GState=X,Ar.setGState=function(Ut){(Ut=typeof Ut=="string"?bi[Ii[Ut]]:Qs(null,Ut)).equals(Vi)||(kn("/"+Ut.id+" gs"),Vi=Ut)};var Qs=function(or,Nn){if(!or||!Ii[or]){var hi=!1;for(var Nt in bi)if(bi.hasOwnProperty(Nt)&&bi[Nt].equals(Nn)){hi=!0;break}if(hi)Nn=bi[Nt];else{var ce="GS"+(Object.keys(bi).length+1).toString(10);bi[ce]=Nn,Nn.id=ce}return or&&(Ii[or]=Nn.id),zi.publish("addGState",Nn),Nn}};Ar.addGState=function(Ut,or){return Qs(Ut,or),this},Ar.saveGraphicsState=function(){return kn("q"),Kn.push({key:Or,size:ra,color:Ns}),this},Ar.restoreGraphicsState=function(){kn("Q");var Ut=Kn.pop();return Or=Ut.key,ra=Ut.size,Ns=Ut.color,Vi=null,this},Ar.setCurrentTransformationMatrix=function(Ut){return kn(Ut.toString()+" cm"),this},Ar.comment=function(Ut){return kn("#"+Ut),this};var tl=function(or,Nn){var hi=or||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return hi},set:function(Ie){isNaN(Ie)||(hi=parseFloat(Ie))}});var Nt=Nn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Nt},set:function(Ie){isNaN(Ie)||(Nt=parseFloat(Ie))}});var ce="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ce},set:function(Ie){ce=Ie.toString()}}),this},xs=function(or,Nn,hi,Nt){tl.call(this,or,Nn),this.type="rect";var ce=hi||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ce},set:function(Je){isNaN(Je)||(ce=parseFloat(Je))}});var Se=Nt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Se},set:function(Je){isNaN(Je)||(Se=parseFloat(Je))}}),this},Bs=function(){this.page=ea,this.currentPage=Ur,this.pages=oa.slice(0),this.pagesContext=Xi.slice(0),this.x=rn,this.y=xn,this.matrix=Ln,this.width=No(Ur),this.height=Ds(Ur),this.outputDestination=aa,this.id="",this.objectNumber=-1};Bs.prototype.restore=function(){ea=this.page,Ur=this.currentPage,Xi=this.pagesContext,oa=this.pages,rn=this.x,xn=this.y,Ln=this.matrix,fs(Ur,this.width),go(Ur,this.height),aa=this.outputDestination};var al=function(or,Nn,hi,Nt,ce){Ca.push(new Bs),ea=Ur=0,oa=[],rn=or,xn=Nn,Ln=ce,ii([hi,Nt])},Js=function(or){if(ca[or])Ca.pop().restore();else{var Nn=new Bs,hi="Xo"+(Object.keys(Ji).length+1).toString(10);Nn.id=hi,ca[or]=hi,Ji[hi]=Nn,zi.publish("addFormObject",Nn),Ca.pop().restore()}};for(var Vo in Ar.beginFormObject=function(Ut,or,Nn,hi,Nt){return al(Ut,or,Nn,hi,Nt),this},Ar.endFormObject=function(Ut){return Js(Ut),this},Ar.doFormObject=function(Ut,or){var Nn=Ji[ca[Ut]];return kn("q"),kn(or.toString()+" cm"),kn("/"+Nn.id+" Do"),kn("Q"),this},Ar.getFormObject=function(Ut){var or=Ji[ca[Ut]];return{x:or.x,y:or.y,width:or.width,height:or.height,matrix:or.matrix}},Ar.save=function(Ut,or){return Ut=Ut||"generated.pdf",(or=or||{}).returnPromise=or.returnPromise||!1,or.returnPromise===!1?(e(fa(Ki()),Ut),typeof e.unload=="function"&&m.setTimeout&&setTimeout(e.unload,911),this):new Promise(function(Nn,hi){try{var Nt=e(fa(Ki()),Ut);typeof e.unload=="function"&&m.setTimeout&&setTimeout(e.unload,911),Nn(Nt)}catch(ce){hi(ce.message)}})},z.API)z.API.hasOwnProperty(Vo)&&(Vo==="events"&&z.API.events.length?function(Ut,or){var Nn,hi,Nt;for(Nt=or.length-1;Nt!==-1;Nt--)Nn=or[Nt][0],hi=or[Nt][1],Ut.subscribe.apply(Ut,[Nn].concat(typeof hi=="function"?[hi]:hi))}(zi,z.API.events):Ar[Vo]=z.API[Vo]);var No=Ar.getPageWidth=function(Ut){return(Xi[Ut=Ut||Ur].mediaBox.topRightX-Xi[Ut].mediaBox.bottomLeftX)/Lr},fs=Ar.setPageWidth=function(Ut,or){Xi[Ut].mediaBox.topRightX=or*Lr+Xi[Ut].mediaBox.bottomLeftX},Ds=Ar.getPageHeight=function(Ut){return(Xi[Ut=Ut||Ur].mediaBox.topRightY-Xi[Ut].mediaBox.bottomLeftY)/Lr},go=Ar.setPageHeight=function(Ut,or){Xi[Ut].mediaBox.topRightY=or*Lr+Xi[Ut].mediaBox.bottomLeftY};return Ar.internal={pdfEscape:Xr,getStyle:Fa,getFont:as,getFontSize:xr,getCharSpace:Gs,getTextColor:Ll,getLineHeight:_s,getLineHeightFactor:il,getLineWidth:$a,write:ji,getHorizontalCoordinate:Eo,getVerticalCoordinate:zo,getCoordinateString:Fs,getVerticalCoordinateString:ms,collections:{},newObject:ga,newAdditionalObject:Xa,newObjectDeferred:Oa,newObjectDeferredBegin:Aa,getFilters:oo,putStream:Qo,events:zi,scaleFactor:Lr,pageSize:{getWidth:function(){return No(Ur)},setWidth:function(or){fs(Ur,or)},getHeight:function(){return Ds(Ur)},setHeight:function(or){go(Ur,or)}},encryptionOptions:$r,encryption:wa,getEncryptor:Da,output:Ya,getNumberOfPages:ci,pages:oa,out:kn,f2:Ot,f3:kt,getPageInfo:ja,getPageInfoByObjId:ko,getCurrentPageInfo:ro,getPDFVersion:Fr,Point:tl,Rectangle:xs,Matrix:na,hasHotfix:xa},Object.defineProperty(Ar.internal.pageSize,"width",{get:function(){return No(Ur)},set:function(or){fs(Ur,or)},enumerable:!0,configurable:!0}),Object.defineProperty(Ar.internal.pageSize,"height",{get:function(){return Ds(Ur)},set:function(or){go(Ur,or)},enumerable:!0,configurable:!0}),Qr.call(Ar,ta),Or="F1",nn(nt,je),zi.publish("initialized"),Ar}M.prototype.lsbFirstWord=function(it){return String.fromCharCode(it>>0&255,it>>8&255,it>>16&255,it>>24&255)},M.prototype.toHexString=function(it){return it.split("").map(function(Le){return("0"+(255&Le.charCodeAt(0)).toString(16)).slice(-2)}).join("")},M.prototype.hexToBytes=function(it){for(var Le=[],je=0;je<it.length;je+=2)Le.push(String.fromCharCode(parseInt(it.substr(je,2),16)));return Le.join("")},M.prototype.processOwnerPassword=function(it,Le){return I(T(Le).substr(0,5),it)},M.prototype.encryptor=function(it,Le){var je=T(this.encryptionKey+String.fromCharCode(255&it,it>>8&255,it>>16&255,255&Le,Le>>8&255)).substr(0,10);return function(Xe){return I(je,Xe)}},X.prototype.equals=function(it){var Le,je="id,objectNumber,equals";if(!it||x()(it)!==x()(this))return!1;var Xe=0;for(Le in this)if(!(je.indexOf(Le)>=0)){if(this.hasOwnProperty(Le)&&!it.hasOwnProperty(Le))return!1;if(this[Le]!==it[Le])return!1;Xe++}for(Le in it)it.hasOwnProperty(Le)&&je.indexOf(Le)<0&&Xe--;return Xe===0},z.API={events:[]},z.version="2.5.1";var V=z.API,Q=1,G=function(Le){return Le.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},te=function(Le){return Le.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},q=function(Le){return Le.toFixed(2)},se=function(Le){return Le.toFixed(5)};V.__acroform__={};var re=function(Le,je){Le.prototype=Object.create(je.prototype),Le.prototype.constructor=Le},xe=function(Le){return Le*Q},Oe=function(Le){var je=new Re,Xe=oe.internal.getHeight(Le)||0,nt=oe.internal.getWidth(Le)||0;return je.BBox=[0,0,Number(q(nt)),Number(q(Xe))],je},Me=V.__acroform__.setBit=function(it,Le){if(it=it||0,Le=Le||0,isNaN(it)||isNaN(Le))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return it|=1<<Le},Qe=V.__acroform__.clearBit=function(it,Le){if(it=it||0,Le=Le||0,isNaN(it)||isNaN(Le))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return it&=~(1<<Le)},Ve=V.__acroform__.getBit=function(it,Le){if(isNaN(it)||isNaN(Le))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(it&1<<Le)==0?0:1},ut=V.__acroform__.getBitForPdf=function(it,Le){if(isNaN(it)||isNaN(Le))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Ve(it,Le-1)},Fe=V.__acroform__.setBitForPdf=function(it,Le){if(isNaN(it)||isNaN(Le))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Me(it,Le-1)},ue=V.__acroform__.clearBitForPdf=function(it,Le){if(isNaN(it)||isNaN(Le))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Qe(it,Le-1)},et=V.__acroform__.calculateCoordinates=function(it,Le){var je=Le.internal.getHorizontalCoordinate,Xe=Le.internal.getVerticalCoordinate,nt=it[0],Ze=it[1],ot=it[2],Ct=it[3],gt={};return gt.lowerLeft_X=je(nt)||0,gt.lowerLeft_Y=Xe(Ze+Ct)||0,gt.upperRight_X=je(nt+ot)||0,gt.upperRight_Y=Xe(Ze)||0,[Number(q(gt.lowerLeft_X)),Number(q(gt.lowerLeft_Y)),Number(q(gt.upperRight_X)),Number(q(gt.upperRight_Y))]},he=function(Le){if(Le.appearanceStreamContent)return Le.appearanceStreamContent;if(Le.V||Le.DV){var je=[],Xe=Le._V||Le.DV,nt=J(Le,Xe),Ze=Le.scope.internal.getFont(Le.fontName,Le.fontStyle).id;je.push("/Tx BMC"),je.push("q"),je.push("BT"),je.push(Le.scope.__private__.encodeColorString(Le.color)),je.push("/"+Ze+" "+q(nt.fontSize)+" Tf"),je.push("1 0 0 1 0 0 Tm"),je.push(nt.text),je.push("ET"),je.push("Q"),je.push("EMC");var ot=Oe(Le);return ot.scope=Le.scope,ot.stream=je.join(`
|
|
|
`),ot}},J=function(Le,je){var Xe=Le.fontSize===0?Le.maxFontSize:Le.fontSize,nt={text:"",fontSize:""},Ze=(je=(je=je.substr(0,1)=="("?je.substr(1):je).substr(je.length-1)==")"?je.substr(0,je.length-1):je).split(" ");Ze=Le.multiline?Ze.map(function(Bt){return Bt.split(`
|
|
|
`)}):Ze.map(function(Bt){return[Bt]});var ot=Xe,Ct=oe.internal.getHeight(Le)||0;Ct=Ct<0?-Ct:Ct;var gt=oe.internal.getWidth(Le)||0;gt=gt<0?-gt:gt;var pr=function(Wt,Lt,dr){if(Wt+1<Ze.length){var yr=Lt+" "+Ze[Wt+1][0];return Y(yr,Le,dr).width<=gt-4}return!1};ot++;e:for(;ot>0;){je="",ot--;var $r,Yr,mn=Y("3",Le,ot).height,Ar=Le.multiline?Ct-ot:(Ct-mn)/2,zn=Ar+=2,Fr=0,Bn=0,bn=0;if(ot<=0){je=`(...) Tj
|
|
|
`,je+="% Width of Text: "+Y(je,Le,ot=12).width+", FieldWidth:"+gt+`
|
|
|
`;break}for(var en="",ti=0,pi=0;pi<Ze.length;pi++)if(Ze.hasOwnProperty(pi)){var Pi=!1;if(Ze[pi].length!==1&&bn!==Ze[pi].length-1){if((mn+2)*(ti+2)+2>Ct)continue e;en+=Ze[pi][bn],Pi=!0,Bn=pi,pi--}else{en=(en+=Ze[pi][bn]+" ").substr(en.length-1)==" "?en.substr(0,en.length-1):en;var qr=parseInt(pi),En=pr(qr,en,ot),Yn=pi>=Ze.length-1;if(En&&!Yn){en+=" ",bn=0;continue}if(En||Yn){if(Yn)Bn=qr;else if(Le.multiline&&(mn+2)*(ti+2)+2>Ct)continue e}else{if(!Le.multiline)continue e;if((mn+2)*(ti+2)+2>Ct)continue e;Bn=qr}}for(var zt="",Ot=Fr;Ot<=Bn;Ot++){var kt=Ze[Ot];if(Le.multiline){if(Ot===Bn){zt+=kt[bn]+" ",bn=(bn+1)%kt.length;continue}if(Ot===Fr){zt+=kt[kt.length-1]+" ";continue}}zt+=kt[0]+" "}switch(zt=zt.substr(zt.length-1)==" "?zt.substr(0,zt.length-1):zt,Yr=Y(zt,Le,ot).width,Le.textAlign){case"right":$r=gt-Yr-2;break;case"center":$r=(gt-Yr)/2;break;case"left":default:$r=2}je+=q($r)+" "+q(zn)+` Td
|
|
|
`,je+="("+G(zt)+`) Tj
|
|
|
`,je+=-q($r)+` 0 Td
|
|
|
`,zn=-(ot+2),Yr=0,Fr=Pi?Bn:Bn+1,ti++,en=""}break}return nt.text=je,nt.fontSize=ot,nt},Y=function(Le,je,Xe){var nt=je.scope.internal.getFont(je.fontName,je.fontStyle),Ze=je.scope.getStringUnitWidth(Le,{font:nt,fontSize:parseFloat(Xe),charSpace:0})*parseFloat(Xe);return{height:je.scope.getStringUnitWidth("3",{font:nt,fontSize:parseFloat(Xe),charSpace:0})*parseFloat(Xe)*1.5,width:Ze}},$={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},de=function(Le,je){var Xe={type:"reference",object:Le};je.internal.getPageInfo(Le.page).pageContext.annotations.find(function(nt){return nt.type===Xe.type&&nt.object===Xe.object})===void 0&&je.internal.getPageInfo(Le.page).pageContext.annotations.push(Xe)},be=function(Le,je){for(var Xe in Le)if(Le.hasOwnProperty(Xe)){var nt=Xe,Ze=Le[Xe];je.internal.newObjectDeferredBegin(Ze.objId,!0),x()(Ze)==="object"&&typeof Ze.putStream=="function"&&Ze.putStream(),delete Le[nt]}},Ce=function(Le,je){if(je.scope=Le,Le.internal!==void 0&&(Le.internal.acroformPlugin===void 0||Le.internal.acroformPlugin.isInitialized===!1)){if(St.FieldNum=0,Le.internal.acroformPlugin=JSON.parse(JSON.stringify($)),Le.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Q=Le.internal.scaleFactor,Le.internal.acroformPlugin.acroFormDictionaryRoot=new rt,Le.internal.acroformPlugin.acroFormDictionaryRoot.scope=Le,Le.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Le.internal.events.subscribe("postPutResources",function(){!function(Xe){Xe.internal.events.unsubscribe(Xe.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Xe.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Xe.internal.acroformPlugin.printedOut=!0}(Le)}),Le.internal.events.subscribe("buildDocument",function(){!function(Xe){Xe.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var nt=Xe.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var Ze in nt)if(nt.hasOwnProperty(Ze)){var ot=nt[Ze];ot.objId=void 0,ot.hasAnnotation&&de(ot,Xe)}}(Le)}),Le.internal.events.subscribe("putCatalog",function(){!function(Xe){if(Xe.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Xe.internal.write("/AcroForm "+Xe.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(Le)}),Le.internal.events.subscribe("postPutPages",function(Xe){!function(nt,Ze){var ot=!nt;for(var Ct in nt||(Ze.internal.newObjectDeferredBegin(Ze.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),Ze.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),nt=nt||Ze.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(nt.hasOwnProperty(Ct)){var gt=nt[Ct],pr=[],$r=gt.Rect;if(gt.Rect&&(gt.Rect=et(gt.Rect,Ze)),Ze.internal.newObjectDeferredBegin(gt.objId,!0),gt.DA=oe.createDefaultAppearanceStream(gt),x()(gt)==="object"&&typeof gt.getKeyValueListForStream=="function"&&(pr=gt.getKeyValueListForStream()),gt.Rect=$r,gt.hasAppearanceStream&&!gt.appearanceStreamContent){var Yr=he(gt);pr.push({key:"AP",value:"<</N "+Yr+">>"}),Ze.internal.acroformPlugin.xForms.push(Yr)}if(gt.appearanceStreamContent){var mn="";for(var Ar in gt.appearanceStreamContent)if(gt.appearanceStreamContent.hasOwnProperty(Ar)){var zn=gt.appearanceStreamContent[Ar];if(mn+="/"+Ar+" ",mn+="<<",Object.keys(zn).length>=1||Array.isArray(zn)){for(var Ct in zn)if(zn.hasOwnProperty(Ct)){var Fr=zn[Ct];typeof Fr=="function"&&(Fr=Fr.call(Ze,gt)),mn+="/"+Ct+" "+Fr+" ",Ze.internal.acroformPlugin.xForms.indexOf(Fr)>=0||Ze.internal.acroformPlugin.xForms.push(Fr)}}else typeof(Fr=zn)=="function"&&(Fr=Fr.call(Ze,gt)),mn+="/"+Ct+" "+Fr,Ze.internal.acroformPlugin.xForms.indexOf(Fr)>=0||Ze.internal.acroformPlugin.xForms.push(Fr);mn+=">>"}pr.push({key:"AP",value:`<<
|
|
|
`+mn+">>"})}Ze.internal.putStream({additionalKeyValues:pr,objectId:gt.objId}),Ze.internal.out("endobj")}ot&&be(Ze.internal.acroformPlugin.xForms,Ze)}(Xe,Le)}),Le.internal.acroformPlugin.isInitialized=!0}},Be=V.__acroform__.arrayToPdfArray=function(it,Le,je){var Xe=function(Ct){return Ct};if(Array.isArray(it)){for(var nt="[",Ze=0;Ze<it.length;Ze++)switch(Ze!==0&&(nt+=" "),x()(it[Ze])){case"boolean":case"number":case"object":nt+=it[Ze].toString();break;case"string":it[Ze].substr(0,1)!=="/"?(Le!==void 0&&je&&(Xe=je.internal.getEncryptor(Le)),nt+="("+G(Xe(it[Ze].toString()))+")"):nt+=it[Ze].toString()}return nt+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},fe=function(Le,je,Xe){var nt=function(ot){return ot};return je!==void 0&&Xe&&(nt=Xe.internal.getEncryptor(je)),(Le=Le||"").toString(),Le="("+G(nt(Le))+")"},we=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(je){this._objId=je}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};we.prototype.toString=function(){return this.objId+" 0 R"},we.prototype.putStream=function(){var it=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:it,objectId:this.objId}),this.scope.internal.out("endobj")},we.prototype.getKeyValueListForStream=function(){var it=[],Le=Object.getOwnPropertyNames(this).filter(function(Ze){return Ze!="content"&&Ze!="appearanceStreamContent"&&Ze!="scope"&&Ze!="objId"&&Ze.substring(0,1)!="_"});for(var je in Le)if(Object.getOwnPropertyDescriptor(this,Le[je]).configurable===!1){var Xe=Le[je],nt=this[Xe];nt&&(Array.isArray(nt)?it.push({key:Xe,value:Be(nt,this.objId,this.scope)}):nt instanceof we?(nt.scope=this.scope,it.push({key:Xe,value:nt.objId+" 0 R"})):typeof nt!="function"&&it.push({key:Xe,value:nt}))}return it};var Re=function(){we.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 Le,je=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return je},set:function(nt){je=nt}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(nt){Le=nt.trim()},get:function(){return Le||null}})};re(Re,we);var rt=function(){we.call(this);var Le,je=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return je.length>0?je:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return je}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Le){var nt=function(ot){return ot};return this.scope&&(nt=this.scope.internal.getEncryptor(this.objId)),"("+G(nt(Le))+")"}},set:function(nt){Le=nt}})};re(rt,we);var St=function it(){we.call(this);var Le=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return Le},set:function(en){if(isNaN(en))throw new Error('Invalid value "'+en+'" for attribute F supplied.');Le=en}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(Le,3))},set:function(en){Boolean(en)===!0?this.F=Fe(Le,3):this.F=ue(Le,3)}});var je=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return je},set:function(en){if(isNaN(en))throw new Error('Invalid value "'+en+'" for attribute Ff supplied.');je=en}});var Xe=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Xe.length!==0)return Xe},set:function(en){Xe=en!==void 0?en:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Xe||isNaN(Xe[0])?0:Xe[0]},set:function(en){Xe[0]=en}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Xe||isNaN(Xe[1])?0:Xe[1]},set:function(en){Xe[1]=en}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Xe||isNaN(Xe[2])?0:Xe[2]},set:function(en){Xe[2]=en}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Xe||isNaN(Xe[3])?0:Xe[3]},set:function(en){Xe[3]=en}});var nt="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return nt},set:function(en){switch(en){case"/Btn":case"/Tx":case"/Ch":case"/Sig":nt=en;break;default:throw new Error('Invalid value "'+en+'" for attribute FT supplied.')}}});var Ze=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!Ze||Ze.length<1){if(this instanceof Pt)return;Ze="FieldObject"+it.FieldNum++}var en=function(pi){return pi};return this.scope&&(en=this.scope.internal.getEncryptor(this.objId)),"("+G(en(Ze))+")"},set:function(en){Ze=en.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return Ze},set:function(en){Ze=en}});var ot="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return ot},set:function(en){ot=en}});var Ct="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return Ct},set:function(en){Ct=en}});var gt=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return gt},set:function(en){gt=en}});var pr=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return pr===void 0?50/Q:pr},set:function(en){pr=en}});var $r="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return $r},set:function(en){$r=en}});var Yr="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Yr||this instanceof Pt||this instanceof Ge))return fe(Yr,this.objId,this.scope)},set:function(en){en=en.toString(),Yr=en}});var mn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(mn)return this instanceof Kt==!1?fe(mn,this.objId,this.scope):mn},set:function(en){en=en.toString(),mn=this instanceof Kt==!1?en.substr(0,1)==="("?te(en.substr(1,en.length-2)):te(en):en}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Kt==!0?te(mn.substr(1,mn.length-1)):mn},set:function(en){en=en.toString(),mn=this instanceof Kt==!0?"/"+en:en}});var Ar=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(Ar)return Ar},set:function(en){this.V=en}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(Ar)return this instanceof Kt==!1?fe(Ar,this.objId,this.scope):Ar},set:function(en){en=en.toString(),Ar=this instanceof Kt==!1?en.substr(0,1)==="("?te(en.substr(1,en.length-2)):te(en):en}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Kt==!0?te(Ar.substr(1,Ar.length-1)):Ar},set:function(en){en=en.toString(),Ar=this instanceof Kt==!0?"/"+en:en}}),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 zn,Fr=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Fr},set:function(en){en=Boolean(en),Fr=en}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(zn)return zn},set:function(en){zn=en}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,1))},set:function(en){Boolean(en)===!0?this.Ff=Fe(this.Ff,1):this.Ff=ue(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,2))},set:function(en){Boolean(en)===!0?this.Ff=Fe(this.Ff,2):this.Ff=ue(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,3))},set:function(en){Boolean(en)===!0?this.Ff=Fe(this.Ff,3):this.Ff=ue(this.Ff,3)}});var Bn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(Bn!==null)return Bn},set:function(en){if([0,1,2].indexOf(en)===-1)throw new Error('Invalid value "'+en+'" for attribute Q supplied.');Bn=en}}),Object.defineProperty(this,"textAlign",{get:function(){var en;switch(Bn){case 0:default:en="left";break;case 1:en="center";break;case 2:en="right"}return en},configurable:!0,enumerable:!0,set:function(en){switch(en){case"right":case 2:Bn=2;break;case"center":case 1:Bn=1;break;case"left":case 0:default:Bn=0}}})};re(St,we);var ft=function(){St.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Le=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return Le},set:function(nt){Le=nt}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Le},set:function(nt){Le=nt}});var je=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Be(je,this.objId,this.scope)},set:function(nt){var Ze,ot;ot=[],typeof(Ze=nt)=="string"&&(ot=function(Ct,gt,pr){pr||(pr=1);for(var $r,Yr=[];$r=gt.exec(Ct);)Yr.push($r[pr]);return Yr}(Ze,/\((.*?)\)/g)),je=ot}}),this.getOptions=function(){return je},this.setOptions=function(Xe){je=Xe,this.sort&&je.sort()},this.addOption=function(Xe){Xe=(Xe=Xe||"").toString(),je.push(Xe),this.sort&&je.sort()},this.removeOption=function(Xe,nt){for(nt=nt||!1,Xe=(Xe=Xe||"").toString();je.indexOf(Xe)!==-1&&(je.splice(je.indexOf(Xe),1),nt!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,18))},set:function(nt){Boolean(nt)===!0?this.Ff=Fe(this.Ff,18):this.Ff=ue(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,19))},set:function(nt){this.combo===!0&&(Boolean(nt)===!0?this.Ff=Fe(this.Ff,19):this.Ff=ue(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,20))},set:function(nt){Boolean(nt)===!0?(this.Ff=Fe(this.Ff,20),je.sort()):this.Ff=ue(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,22))},set:function(nt){Boolean(nt)===!0?this.Ff=Fe(this.Ff,22):this.Ff=ue(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,23))},set:function(nt){Boolean(nt)===!0?this.Ff=Fe(this.Ff,23):this.Ff=ue(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,27))},set:function(nt){Boolean(nt)===!0?this.Ff=Fe(this.Ff,27):this.Ff=ue(this.Ff,27)}}),this.hasAppearanceStream=!1};re(ft,St);var He=function(){ft.call(this),this.fontName="helvetica",this.combo=!1};re(He,ft);var er=function(){He.call(this),this.combo=!0};re(er,He);var ct=function(){er.call(this),this.edit=!0};re(ct,er);var Kt=function(){St.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,15))},set:function(nt){Boolean(nt)===!0?this.Ff=Fe(this.Ff,15):this.Ff=ue(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,16))},set:function(nt){Boolean(nt)===!0?this.Ff=Fe(this.Ff,16):this.Ff=ue(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,17))},set:function(nt){Boolean(nt)===!0?this.Ff=Fe(this.Ff,17):this.Ff=ue(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,26))},set:function(nt){Boolean(nt)===!0?this.Ff=Fe(this.Ff,26):this.Ff=ue(this.Ff,26)}});var Le,je={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var nt=function(gt){return gt};if(this.scope&&(nt=this.scope.internal.getEncryptor(this.objId)),Object.keys(je).length!==0){var Ze,ot=[];for(Ze in ot.push("<<"),je)ot.push("/"+Ze+" ("+G(nt(je[Ze]))+")");return ot.push(">>"),ot.join(`
|
|
|
`)}},set:function(nt){x()(nt)==="object"&&(je=nt)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return je.CA||""},set:function(nt){typeof nt=="string"&&(je.CA=nt)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Le},set:function(nt){Le=nt}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Le.substr(1,Le.length-1)},set:function(nt){Le="/"+nt}})};re(Kt,St);var fr=function(){Kt.call(this),this.pushButton=!0};re(fr,Kt);var Gt=function(){Kt.call(this),this.radio=!0,this.pushButton=!1;var Le=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Le},set:function(Xe){Le=Xe!==void 0?Xe:[]}})};re(Gt,Kt);var Pt=function(){var Le,je;St.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Le},set:function(ot){Le=ot}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return je},set:function(ot){je=ot}});var Xe,nt={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var ot=function($r){return $r};this.scope&&(ot=this.scope.internal.getEncryptor(this.objId));var Ct,gt=[];for(Ct in gt.push("<<"),nt)gt.push("/"+Ct+" ("+G(ot(nt[Ct]))+")");return gt.push(">>"),gt.join(`
|
|
|
`)},set:function(ot){x()(ot)==="object"&&(nt=ot)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return nt.CA||""},set:function(ot){typeof ot=="string"&&(nt.CA=ot)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Xe},set:function(ot){Xe=ot}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Xe.substr(1,Xe.length-1)},set:function(ot){Xe="/"+ot}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=oe.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};re(Pt,St),Gt.prototype.setAppearance=function(it){if(!("createAppearanceStream"in it)||!("getCA"in it))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var Le in this.Kids)if(this.Kids.hasOwnProperty(Le)){var je=this.Kids[Le];je.appearanceStreamContent=it.createAppearanceStream(je.optionName),je.caption=it.getCA()}},Gt.prototype.createOption=function(it){var Le=new Pt;return Le.Parent=this,Le.optionName=it,this.Kids.push(Le),lt.call(this.scope,Le),Le};var Xt=function(){Kt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=oe.CheckBox.createAppearanceStream()};re(Xt,Kt);var Ge=function(){St.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,13))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Fe(this.Ff,13):this.Ff=ue(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,21))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Fe(this.Ff,21):this.Ff=ue(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,23))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Fe(this.Ff,23):this.Ff=ue(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,24))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Fe(this.Ff,24):this.Ff=ue(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,25))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Fe(this.Ff,25):this.Ff=ue(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,26))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Fe(this.Ff,26):this.Ff=ue(this.Ff,26)}});var Le=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Le},set:function(Xe){Le=Xe}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Le},set:function(Xe){Number.isInteger(Xe)&&(Le=Xe)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};re(Ge,St);var pe=function(){Ge.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,14))},set:function(je){Boolean(je)===!0?this.Ff=Fe(this.Ff,14):this.Ff=ue(this.Ff,14)}}),this.password=!0};re(pe,Ge);var oe={CheckBox:{createAppearanceStream:function(){return{N:{On:oe.CheckBox.YesNormal},D:{On:oe.CheckBox.YesPushDown,Off:oe.CheckBox.OffPushDown}}},YesPushDown:function(Le){var je=Oe(Le);je.scope=Le.scope;var Xe=[],nt=Le.scope.internal.getFont(Le.fontName,Le.fontStyle).id,Ze=Le.scope.__private__.encodeColorString(Le.color),ot=J(Le,Le.caption);return Xe.push("0.749023 g"),Xe.push("0 0 "+q(oe.internal.getWidth(Le))+" "+q(oe.internal.getHeight(Le))+" re"),Xe.push("f"),Xe.push("BMC"),Xe.push("q"),Xe.push("0 0 1 rg"),Xe.push("/"+nt+" "+q(ot.fontSize)+" Tf "+Ze),Xe.push("BT"),Xe.push(ot.text),Xe.push("ET"),Xe.push("Q"),Xe.push("EMC"),je.stream=Xe.join(`
|
|
|
`),je},YesNormal:function(Le){var je=Oe(Le);je.scope=Le.scope;var Xe=Le.scope.internal.getFont(Le.fontName,Le.fontStyle).id,nt=Le.scope.__private__.encodeColorString(Le.color),Ze=[],ot=oe.internal.getHeight(Le),Ct=oe.internal.getWidth(Le),gt=J(Le,Le.caption);return Ze.push("1 g"),Ze.push("0 0 "+q(Ct)+" "+q(ot)+" re"),Ze.push("f"),Ze.push("q"),Ze.push("0 0 1 rg"),Ze.push("0 0 "+q(Ct-1)+" "+q(ot-1)+" re"),Ze.push("W"),Ze.push("n"),Ze.push("0 g"),Ze.push("BT"),Ze.push("/"+Xe+" "+q(gt.fontSize)+" Tf "+nt),Ze.push(gt.text),Ze.push("ET"),Ze.push("Q"),je.stream=Ze.join(`
|
|
|
`),je},OffPushDown:function(Le){var je=Oe(Le);je.scope=Le.scope;var Xe=[];return Xe.push("0.749023 g"),Xe.push("0 0 "+q(oe.internal.getWidth(Le))+" "+q(oe.internal.getHeight(Le))+" re"),Xe.push("f"),je.stream=Xe.join(`
|
|
|
`),je}},RadioButton:{Circle:{createAppearanceStream:function(Le){var je={D:{Off:oe.RadioButton.Circle.OffPushDown},N:{}};return je.N[Le]=oe.RadioButton.Circle.YesNormal,je.D[Le]=oe.RadioButton.Circle.YesPushDown,je},getCA:function(){return"l"},YesNormal:function(Le){var je=Oe(Le);je.scope=Le.scope;var Xe=[],nt=oe.internal.getWidth(Le)<=oe.internal.getHeight(Le)?oe.internal.getWidth(Le)/4:oe.internal.getHeight(Le)/4;nt=Number((.9*nt).toFixed(5));var Ze=oe.internal.Bezier_C,ot=Number((nt*Ze).toFixed(5));return Xe.push("q"),Xe.push("1 0 0 1 "+se(oe.internal.getWidth(Le)/2)+" "+se(oe.internal.getHeight(Le)/2)+" cm"),Xe.push(nt+" 0 m"),Xe.push(nt+" "+ot+" "+ot+" "+nt+" 0 "+nt+" c"),Xe.push("-"+ot+" "+nt+" -"+nt+" "+ot+" -"+nt+" 0 c"),Xe.push("-"+nt+" -"+ot+" -"+ot+" -"+nt+" 0 -"+nt+" c"),Xe.push(ot+" -"+nt+" "+nt+" -"+ot+" "+nt+" 0 c"),Xe.push("f"),Xe.push("Q"),je.stream=Xe.join(`
|
|
|
`),je},YesPushDown:function(Le){var je=Oe(Le);je.scope=Le.scope;var Xe=[],nt=oe.internal.getWidth(Le)<=oe.internal.getHeight(Le)?oe.internal.getWidth(Le)/4:oe.internal.getHeight(Le)/4;nt=Number((.9*nt).toFixed(5));var Ze=Number((2*nt).toFixed(5)),ot=Number((Ze*oe.internal.Bezier_C).toFixed(5)),Ct=Number((nt*oe.internal.Bezier_C).toFixed(5));return Xe.push("0.749023 g"),Xe.push("q"),Xe.push("1 0 0 1 "+se(oe.internal.getWidth(Le)/2)+" "+se(oe.internal.getHeight(Le)/2)+" cm"),Xe.push(Ze+" 0 m"),Xe.push(Ze+" "+ot+" "+ot+" "+Ze+" 0 "+Ze+" c"),Xe.push("-"+ot+" "+Ze+" -"+Ze+" "+ot+" -"+Ze+" 0 c"),Xe.push("-"+Ze+" -"+ot+" -"+ot+" -"+Ze+" 0 -"+Ze+" c"),Xe.push(ot+" -"+Ze+" "+Ze+" -"+ot+" "+Ze+" 0 c"),Xe.push("f"),Xe.push("Q"),Xe.push("0 g"),Xe.push("q"),Xe.push("1 0 0 1 "+se(oe.internal.getWidth(Le)/2)+" "+se(oe.internal.getHeight(Le)/2)+" cm"),Xe.push(nt+" 0 m"),Xe.push(nt+" "+Ct+" "+Ct+" "+nt+" 0 "+nt+" c"),Xe.push("-"+Ct+" "+nt+" -"+nt+" "+Ct+" -"+nt+" 0 c"),Xe.push("-"+nt+" -"+Ct+" -"+Ct+" -"+nt+" 0 -"+nt+" c"),Xe.push(Ct+" -"+nt+" "+nt+" -"+Ct+" "+nt+" 0 c"),Xe.push("f"),Xe.push("Q"),je.stream=Xe.join(`
|
|
|
`),je},OffPushDown:function(Le){var je=Oe(Le);je.scope=Le.scope;var Xe=[],nt=oe.internal.getWidth(Le)<=oe.internal.getHeight(Le)?oe.internal.getWidth(Le)/4:oe.internal.getHeight(Le)/4;nt=Number((.9*nt).toFixed(5));var Ze=Number((2*nt).toFixed(5)),ot=Number((Ze*oe.internal.Bezier_C).toFixed(5));return Xe.push("0.749023 g"),Xe.push("q"),Xe.push("1 0 0 1 "+se(oe.internal.getWidth(Le)/2)+" "+se(oe.internal.getHeight(Le)/2)+" cm"),Xe.push(Ze+" 0 m"),Xe.push(Ze+" "+ot+" "+ot+" "+Ze+" 0 "+Ze+" c"),Xe.push("-"+ot+" "+Ze+" -"+Ze+" "+ot+" -"+Ze+" 0 c"),Xe.push("-"+Ze+" -"+ot+" -"+ot+" -"+Ze+" 0 -"+Ze+" c"),Xe.push(ot+" -"+Ze+" "+Ze+" -"+ot+" "+Ze+" 0 c"),Xe.push("f"),Xe.push("Q"),je.stream=Xe.join(`
|
|
|
`),je}},Cross:{createAppearanceStream:function(Le){var je={D:{Off:oe.RadioButton.Cross.OffPushDown},N:{}};return je.N[Le]=oe.RadioButton.Cross.YesNormal,je.D[Le]=oe.RadioButton.Cross.YesPushDown,je},getCA:function(){return"8"},YesNormal:function(Le){var je=Oe(Le);je.scope=Le.scope;var Xe=[],nt=oe.internal.calculateCross(Le);return Xe.push("q"),Xe.push("1 1 "+q(oe.internal.getWidth(Le)-2)+" "+q(oe.internal.getHeight(Le)-2)+" re"),Xe.push("W"),Xe.push("n"),Xe.push(q(nt.x1.x)+" "+q(nt.x1.y)+" m"),Xe.push(q(nt.x2.x)+" "+q(nt.x2.y)+" l"),Xe.push(q(nt.x4.x)+" "+q(nt.x4.y)+" m"),Xe.push(q(nt.x3.x)+" "+q(nt.x3.y)+" l"),Xe.push("s"),Xe.push("Q"),je.stream=Xe.join(`
|
|
|
`),je},YesPushDown:function(Le){var je=Oe(Le);je.scope=Le.scope;var Xe=oe.internal.calculateCross(Le),nt=[];return nt.push("0.749023 g"),nt.push("0 0 "+q(oe.internal.getWidth(Le))+" "+q(oe.internal.getHeight(Le))+" re"),nt.push("f"),nt.push("q"),nt.push("1 1 "+q(oe.internal.getWidth(Le)-2)+" "+q(oe.internal.getHeight(Le)-2)+" re"),nt.push("W"),nt.push("n"),nt.push(q(Xe.x1.x)+" "+q(Xe.x1.y)+" m"),nt.push(q(Xe.x2.x)+" "+q(Xe.x2.y)+" l"),nt.push(q(Xe.x4.x)+" "+q(Xe.x4.y)+" m"),nt.push(q(Xe.x3.x)+" "+q(Xe.x3.y)+" l"),nt.push("s"),nt.push("Q"),je.stream=nt.join(`
|
|
|
`),je},OffPushDown:function(Le){var je=Oe(Le);je.scope=Le.scope;var Xe=[];return Xe.push("0.749023 g"),Xe.push("0 0 "+q(oe.internal.getWidth(Le))+" "+q(oe.internal.getHeight(Le))+" re"),Xe.push("f"),je.stream=Xe.join(`
|
|
|
`),je}}},createDefaultAppearanceStream:function(Le){var je=Le.scope.internal.getFont(Le.fontName,Le.fontStyle).id,Xe=Le.scope.__private__.encodeColorString(Le.color);return"/"+je+" "+Le.fontSize+" Tf "+Xe}};oe.internal={Bezier_C:.551915024494,calculateCross:function(Le){var je=oe.internal.getWidth(Le),Xe=oe.internal.getHeight(Le),nt=Math.min(je,Xe);return{x1:{x:(je-nt)/2,y:(Xe-nt)/2+nt},x2:{x:(je-nt)/2+nt,y:(Xe-nt)/2},x3:{x:(je-nt)/2,y:(Xe-nt)/2},x4:{x:(je-nt)/2+nt,y:(Xe-nt)/2+nt}}}},oe.internal.getWidth=function(it){var Le=0;return x()(it)==="object"&&(Le=xe(it.Rect[2])),Le},oe.internal.getHeight=function(it){var Le=0;return x()(it)==="object"&&(Le=xe(it.Rect[3])),Le};var lt=V.addField=function(it){if(Ce(this,it),!(it instanceof St))throw new Error("Invalid argument passed to jsPDF.addField.");var Le;return(Le=it).scope.internal.acroformPlugin.printedOut&&(Le.scope.internal.acroformPlugin.printedOut=!1,Le.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),Le.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(Le),it.page=it.scope.internal.getCurrentPageInfo().pageNumber,this};V.AcroFormChoiceField=ft,V.AcroFormListBox=He,V.AcroFormComboBox=er,V.AcroFormEditBox=ct,V.AcroFormButton=Kt,V.AcroFormPushButton=fr,V.AcroFormRadioButton=Gt,V.AcroFormCheckBox=Xt,V.AcroFormTextField=Ge,V.AcroFormPasswordField=pe,V.AcroFormAppearance=oe,V.AcroForm={ChoiceField:ft,ListBox:He,ComboBox:er,EditBox:ct,Button:Kt,PushButton:fr,RadioButton:Gt,CheckBox:Xt,TextField:Ge,PasswordField:pe,Appearance:oe},z.AcroForm={ChoiceField:ft,ListBox:He,ComboBox:er,EditBox:ct,Button:Kt,PushButton:fr,RadioButton:Gt,CheckBox:Xt,TextField:Ge,PasswordField:pe,Appearance:oe};var qe=z.AcroForm;function ge(it){return it.reduce(function(Le,je,Xe){return Le[je]=Xe,Le},{})}!function(it){it.__addimage__={};var Le="UNKNOWN",je={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]]},Xe=it.__addimage__.getImageFileTypeByImageData=function(kt,Bt){var Wt,Lt,dr,yr,br,Mr=Le;if((Bt=Bt||Le)==="RGBA"||kt.data!==void 0&&kt.data instanceof Uint8ClampedArray&&"height"in kt&&"width"in kt)return"RGBA";if(qr(kt))for(br in je)for(dr=je[br],Wt=0;Wt<dr.length;Wt+=1){for(yr=!0,Lt=0;Lt<dr[Wt].length;Lt+=1)if(dr[Wt][Lt]!==void 0&&dr[Wt][Lt]!==kt[Lt]){yr=!1;break}if(yr===!0){Mr=br;break}}else for(br in je)for(dr=je[br],Wt=0;Wt<dr.length;Wt+=1){for(yr=!0,Lt=0;Lt<dr[Wt].length;Lt+=1)if(dr[Wt][Lt]!==void 0&&dr[Wt][Lt]!==kt.charCodeAt(Lt)){yr=!1;break}if(yr===!0){Mr=br;break}}return Mr===Le&&Bt!==Le&&(Mr=Bt),Mr},nt=function kt(Bt){for(var Wt=this.internal.write,Lt=this.internal.putStream,dr=(0,this.internal.getFilters)();dr.indexOf("FlateEncode")!==-1;)dr.splice(dr.indexOf("FlateEncode"),1);Bt.objectId=this.internal.newObject();var yr=[];if(yr.push({key:"Type",value:"/XObject"}),yr.push({key:"Subtype",value:"/Image"}),yr.push({key:"Width",value:Bt.width}),yr.push({key:"Height",value:Bt.height}),Bt.colorSpace===Bn.INDEXED?yr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Bt.palette.length/3-1)+" "+("sMask"in Bt&&Bt.sMask!==void 0?Bt.objectId+2:Bt.objectId+1)+" 0 R]"}):(yr.push({key:"ColorSpace",value:"/"+Bt.colorSpace}),Bt.colorSpace===Bn.DEVICE_CMYK&&yr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),yr.push({key:"BitsPerComponent",value:Bt.bitsPerComponent}),"decodeParameters"in Bt&&Bt.decodeParameters!==void 0&&yr.push({key:"DecodeParms",value:"<<"+Bt.decodeParameters+">>"}),"transparency"in Bt&&Array.isArray(Bt.transparency)){for(var br="",Mr=0,Gn=Bt.transparency.length;Mr<Gn;Mr++)br+=Bt.transparency[Mr]+" "+Bt.transparency[Mr]+" ";yr.push({key:"Mask",value:"["+br+"]"})}Bt.sMask!==void 0&&yr.push({key:"SMask",value:Bt.objectId+1+" 0 R"});var Mn=Bt.filter!==void 0?["/"+Bt.filter]:void 0;if(Lt({data:Bt.data,additionalKeyValues:yr,alreadyAppliedFilters:Mn,objectId:Bt.objectId}),Wt("endobj"),"sMask"in Bt&&Bt.sMask!==void 0){var di="/Predictor "+Bt.predictor+" /Colors 1 /BitsPerComponent "+Bt.bitsPerComponent+" /Columns "+Bt.width,vn={width:Bt.width,height:Bt.height,colorSpace:"DeviceGray",bitsPerComponent:Bt.bitsPerComponent,decodeParameters:di,data:Bt.sMask};"filter"in Bt&&(vn.filter=Bt.filter),kt.call(this,vn)}if(Bt.colorSpace===Bn.INDEXED){var Ur=this.internal.newObject();Lt({data:Yn(new Uint8Array(Bt.palette)),objectId:Ur}),Wt("endobj")}},Ze=function(){var Bt=this.internal.collections.addImage_images;for(var Wt in Bt)nt.call(this,Bt[Wt])},ot=function(){var Bt,Wt=this.internal.collections.addImage_images,Lt=this.internal.write;for(var dr in Wt)Lt("/I"+(Bt=Wt[dr]).index,Bt.objectId,"0","R")},Ct=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",Ze),this.internal.events.subscribe("putXobjectDict",ot))},gt=function(){var Bt=this.internal.collections.addImage_images;return Ct.call(this),Bt},pr=function(){return Object.keys(this.internal.collections.addImage_images).length},$r=function(Bt){return typeof it["process"+Bt.toUpperCase()]=="function"},Yr=function(Bt){return x()(Bt)==="object"&&Bt.nodeType===1},mn=function(Bt,Wt){if(Bt.nodeName==="IMG"&&Bt.hasAttribute("src")){var Lt=""+Bt.getAttribute("src");if(Lt.indexOf("data:image/")===0)return t(unescape(Lt).split("base64,").pop());var dr=it.loadFile(Lt,!0);if(dr!==void 0)return dr}if(Bt.nodeName==="CANVAS"){if(Bt.width===0||Bt.height===0)throw new Error("Given canvas must have data. Canvas width: "+Bt.width+", height: "+Bt.height);var yr;switch(Wt){case"PNG":yr="image/png";break;case"WEBP":yr="image/webp";break;case"JPEG":case"JPG":default:yr="image/jpeg"}return t(Bt.toDataURL(yr,1).split("base64,").pop())}},Ar=function(Bt){var Wt=this.internal.collections.addImage_images;if(Wt){for(var Lt in Wt)if(Bt===Wt[Lt].alias)return Wt[Lt]}},zn=function(Bt,Wt,Lt){return Bt||Wt||(Bt=-96,Wt=-96),Bt<0&&(Bt=-1*Lt.width*72/Bt/this.internal.scaleFactor),Wt<0&&(Wt=-1*Lt.height*72/Wt/this.internal.scaleFactor),Bt===0&&(Bt=Wt*Lt.width/Lt.height),Wt===0&&(Wt=Bt*Lt.height/Lt.width),[Bt,Wt]},Fr=function(Bt,Wt,Lt,dr,yr,br){var Mr=zn.call(this,Lt,dr,yr),Gn=this.internal.getCoordinateString,Mn=this.internal.getVerticalCoordinateString,di=gt.call(this);if(Lt=Mr[0],dr=Mr[1],di[yr.index]=yr,br){br*=Math.PI/180;var vn=Math.cos(br),Ur=Math.sin(br),In=function(oi){return oi.toFixed(4)},Qn=[In(vn),In(Ur),In(-1*Ur),In(vn),0,0,"cm"]}this.internal.write("q"),br?(this.internal.write([1,"0","0",1,Gn(Bt),Mn(Wt+dr),"cm"].join(" ")),this.internal.write(Qn.join(" ")),this.internal.write([Gn(Lt),"0","0",Gn(dr),"0","0","cm"].join(" "))):this.internal.write([Gn(Lt),"0","0",Gn(dr),Gn(Bt),Mn(Wt+dr),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+yr.index+" Do"),this.internal.write("Q")},Bn=it.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"};it.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var bn=it.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},en=it.__addimage__.sHashCode=function(kt){var Bt,Wt,Lt=0;if(typeof kt=="string")for(Wt=kt.length,Bt=0;Bt<Wt;Bt++)Lt=(Lt<<5)-Lt+kt.charCodeAt(Bt),Lt|=0;else if(qr(kt))for(Wt=kt.byteLength/2,Bt=0;Bt<Wt;Bt++)Lt=(Lt<<5)-Lt+kt[Bt],Lt|=0;return Lt},ti=it.__addimage__.validateStringAsBase64=function(kt){(kt=kt||"").toString().trim();var Bt=!0;return kt.length===0&&(Bt=!1),kt.length%4!=0&&(Bt=!1),/^[A-Za-z0-9+/]+$/.test(kt.substr(0,kt.length-2))===!1&&(Bt=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(kt.substr(-2))===!1&&(Bt=!1),Bt},pi=it.__addimage__.extractImageFromDataUrl=function(kt){var Bt=(kt=kt||"").split("base64,"),Wt=null;if(Bt.length===2){var Lt=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(Bt[0]);Array.isArray(Lt)&&(Wt={mimeType:Lt[1],charset:Lt[2],data:Bt[1]})}return Wt},Pi=it.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};it.__addimage__.isArrayBuffer=function(kt){return Pi()&&kt instanceof ArrayBuffer};var qr=it.__addimage__.isArrayBufferView=function(kt){return Pi()&&typeof Uint32Array!="undefined"&&(kt instanceof Int8Array||kt instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&kt instanceof Uint8ClampedArray||kt instanceof Int16Array||kt instanceof Uint16Array||kt instanceof Int32Array||kt instanceof Uint32Array||kt instanceof Float32Array||kt instanceof Float64Array)},En=it.__addimage__.binaryStringToUint8Array=function(kt){for(var Bt=kt.length,Wt=new Uint8Array(Bt),Lt=0;Lt<Bt;Lt++)Wt[Lt]=kt.charCodeAt(Lt);return Wt},Yn=it.__addimage__.arrayBufferToBinaryString=function(kt){for(var Bt="",Wt=qr(kt)?kt:new Uint8Array(kt),Lt=0;Lt<Wt.length;Lt+=8192)Bt+=String.fromCharCode.apply(null,Wt.subarray(Lt,Lt+8192));return Bt};it.addImage=function(){var kt,Bt,Wt,Lt,dr,yr,br,Mr,Gn;if(typeof arguments[1]=="number"?(Bt=Le,Wt=arguments[1],Lt=arguments[2],dr=arguments[3],yr=arguments[4],br=arguments[5],Mr=arguments[6],Gn=arguments[7]):(Bt=arguments[1],Wt=arguments[2],Lt=arguments[3],dr=arguments[4],yr=arguments[5],br=arguments[6],Mr=arguments[7],Gn=arguments[8]),x()(kt=arguments[0])==="object"&&!Yr(kt)&&"imageData"in kt){var Mn=kt;kt=Mn.imageData,Bt=Mn.format||Bt||Le,Wt=Mn.x||Wt||0,Lt=Mn.y||Lt||0,dr=Mn.w||Mn.width||dr,yr=Mn.h||Mn.height||yr,br=Mn.alias||br,Mr=Mn.compression||Mr,Gn=Mn.rotation||Mn.angle||Gn}var di=this.internal.getFilters();if(Mr===void 0&&di.indexOf("FlateEncode")!==-1&&(Mr="SLOW"),isNaN(Wt)||isNaN(Lt))throw new Error("Invalid coordinates passed to jsPDF.addImage");Ct.call(this);var vn=zt.call(this,kt,Bt,br,Mr);return Fr.call(this,Wt,Lt,dr,yr,vn,Gn),this};var zt=function(Bt,Wt,Lt,dr){var yr,br,Mr;if(typeof Bt=="string"&&Xe(Bt)===Le){Bt=unescape(Bt);var Gn=Ot(Bt,!1);(Gn!==""||(Gn=it.loadFile(Bt,!0))!==void 0)&&(Bt=Gn)}if(Yr(Bt)&&(Bt=mn(Bt,Wt)),Wt=Xe(Bt,Wt),!$r(Wt))throw new Error("addImage does not support files of type '"+Wt+"', please ensure that a plugin for '"+Wt+"' support is added.");if(((Mr=Lt)==null||Mr.length===0)&&(Lt=function(Mn){return typeof Mn=="string"||qr(Mn)?en(Mn):qr(Mn.data)?en(Mn.data):null}(Bt)),(yr=Ar.call(this,Lt))||(Pi()&&(Bt instanceof Uint8Array||Wt==="RGBA"||(br=Bt,Bt=En(Bt))),yr=this["process"+Wt.toUpperCase()](Bt,pr.call(this),Lt,function(Mn){return Mn&&typeof Mn=="string"&&(Mn=Mn.toUpperCase()),Mn in it.image_compression?Mn:bn.NONE}(dr),br)),!yr)throw new Error("An unknown error occurred whilst processing the image.");return yr},Ot=it.__addimage__.convertBase64ToBinaryString=function(kt,Bt){var Wt;Bt=typeof Bt!="boolean"||Bt;var Lt,dr="";if(typeof kt=="string"){Lt=(Wt=pi(kt))!==null?Wt.data:kt;try{dr=t(Lt)}catch(yr){if(Bt)throw ti(Lt)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+yr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return dr};it.getImageProperties=function(kt){var Bt,Wt,Lt="";if(Yr(kt)&&(kt=mn(kt)),typeof kt=="string"&&Xe(kt)===Le&&((Lt=Ot(kt,!1))===""&&(Lt=it.loadFile(kt)||""),kt=Lt),Wt=Xe(kt),!$r(Wt))throw new Error("addImage does not support files of type '"+Wt+"', please ensure that a plugin for '"+Wt+"' support is added.");if(!Pi()||kt instanceof Uint8Array||(kt=En(kt)),!(Bt=this["process"+Wt.toUpperCase()](kt)))throw new Error("An unknown error occurred whilst processing the image");return Bt.fileType=Wt,Bt}}(z.API),function(it){var Le=function(Xe){if(Xe!==void 0&&Xe!="")return!0};z.API.events.push(["addPage",function(je){this.internal.getPageInfo(je.pageNumber).pageContext.annotations=[]}]),it.events.push(["putPage",function(je){for(var Xe,nt,Ze,ot=this.internal.getCoordinateString,Ct=this.internal.getVerticalCoordinateString,gt=this.internal.getPageInfoByObjId(je.objId),pr=je.pageContext.annotations,$r=!1,Yr=0;Yr<pr.length&&!$r;Yr++)switch((Xe=pr[Yr]).type){case"link":(Le(Xe.options.url)||Le(Xe.options.pageNumber))&&($r=!0);break;case"reference":case"text":case"freetext":$r=!0}if($r!=0){this.internal.write("/Annots [");for(var mn=0;mn<pr.length;mn++){Xe=pr[mn];var Ar=this.internal.pdfEscape,zn=this.internal.getEncryptor(je.objId);switch(Xe.type){case"reference":this.internal.write(" "+Xe.object.objId+" 0 R ");break;case"text":var Fr=this.internal.newAdditionalObject(),Bn=this.internal.newAdditionalObject(),bn=this.internal.getEncryptor(Fr.objId),en=Xe.title||"Note";Ze="<</Type /Annot /Subtype /Text "+(nt="/Rect ["+ot(Xe.bounds.x)+" "+Ct(Xe.bounds.y+Xe.bounds.h)+" "+ot(Xe.bounds.x+Xe.bounds.w)+" "+Ct(Xe.bounds.y)+"] ")+"/Contents ("+Ar(bn(Xe.contents))+")",Ze+=" /Popup "+Bn.objId+" 0 R",Ze+=" /P "+gt.objId+" 0 R",Ze+=" /T ("+Ar(bn(en))+") >>",Fr.content=Ze;var ti=Fr.objId+" 0 R";Ze="<</Type /Annot /Subtype /Popup "+(nt="/Rect ["+ot(Xe.bounds.x+30)+" "+Ct(Xe.bounds.y+Xe.bounds.h)+" "+ot(Xe.bounds.x+Xe.bounds.w+30)+" "+Ct(Xe.bounds.y)+"] ")+" /Parent "+ti,Xe.open&&(Ze+=" /Open true"),Ze+=" >>",Bn.content=Ze,this.internal.write(Fr.objId,"0 R",Bn.objId,"0 R");break;case"freetext":nt="/Rect ["+ot(Xe.bounds.x)+" "+Ct(Xe.bounds.y)+" "+ot(Xe.bounds.x+Xe.bounds.w)+" "+Ct(Xe.bounds.y+Xe.bounds.h)+"] ";var pi=Xe.color||"#000000";Ze="<</Type /Annot /Subtype /FreeText "+nt+"/Contents ("+Ar(zn(Xe.contents))+")",Ze+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+pi+")",Ze+=" /Border [0 0 0]",Ze+=" >>",this.internal.write(Ze);break;case"link":if(Xe.options.name){var Pi=this.annotations._nameMap[Xe.options.name];Xe.options.pageNumber=Pi.page,Xe.options.top=Pi.y}else Xe.options.top||(Xe.options.top=0);if(nt="/Rect ["+Xe.finalBounds.x+" "+Xe.finalBounds.y+" "+Xe.finalBounds.w+" "+Xe.finalBounds.h+"] ",Ze="",Xe.options.url)Ze="<</Type /Annot /Subtype /Link "+nt+"/Border [0 0 0] /A <</S /URI /URI ("+Ar(zn(Xe.options.url))+") >>";else if(Xe.options.pageNumber)switch(Ze="<</Type /Annot /Subtype /Link "+nt+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Xe.options.pageNumber).objId+" 0 R",Xe.options.magFactor=Xe.options.magFactor||"XYZ",Xe.options.magFactor){case"Fit":Ze+=" /Fit]";break;case"FitH":Ze+=" /FitH "+Xe.options.top+"]";break;case"FitV":Xe.options.left=Xe.options.left||0,Ze+=" /FitV "+Xe.options.left+"]";break;case"XYZ":default:var qr=Ct(Xe.options.top);Xe.options.left=Xe.options.left||0,Xe.options.zoom===void 0&&(Xe.options.zoom=0),Ze+=" /XYZ "+Xe.options.left+" "+qr+" "+Xe.options.zoom+"]"}Ze!=""&&(Ze+=" >>",this.internal.write(Ze))}}this.internal.write("]")}}]),it.createAnnotation=function(je){var Xe=this.internal.getCurrentPageInfo();switch(je.type){case"link":this.link(je.bounds.x,je.bounds.y,je.bounds.w,je.bounds.h,je);break;case"text":case"freetext":Xe.pageContext.annotations.push(je)}},it.link=function(je,Xe,nt,Ze,ot){var Ct=this.internal.getCurrentPageInfo(),gt=this.internal.getCoordinateString,pr=this.internal.getVerticalCoordinateString;Ct.pageContext.annotations.push({finalBounds:{x:gt(je),y:pr(Xe),w:gt(je+nt),h:pr(Xe+Ze)},options:ot,type:"link"})},it.textWithLink=function(je,Xe,nt,Ze){var ot,Ct,gt=this.getTextWidth(je),pr=this.internal.getLineHeight()/this.internal.scaleFactor;if(Ze.maxWidth!==void 0){Ct=Ze.maxWidth;var $r=this.splitTextToSize(je,Ct).length;ot=Math.ceil(pr*$r)}else Ct=gt,ot=pr;return this.text(je,Xe,nt,Ze),nt+=.2*pr,Ze.align==="center"&&(Xe-=gt/2),Ze.align==="right"&&(Xe-=gt),this.link(Xe,nt-pr,Ct,ot,Ze),gt},it.getTextWidth=function(je){var Xe=this.internal.getFontSize();return this.getStringUnitWidth(je)*Xe/this.internal.scaleFactor}}(z.API),function(it){var Le={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]},je={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}},Xe={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},nt=[1570,1571,1573,1575];it.__arabicParser__={};var Ze=it.__arabicParser__.isInArabicSubstitutionA=function(Fr){return Le[Fr.charCodeAt(0)]!==void 0},ot=it.__arabicParser__.isArabicLetter=function(Fr){return typeof Fr=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Fr)},Ct=it.__arabicParser__.isArabicEndLetter=function(Fr){return ot(Fr)&&Ze(Fr)&&Le[Fr.charCodeAt(0)].length<=2},gt=it.__arabicParser__.isArabicAlfLetter=function(Fr){return ot(Fr)&&nt.indexOf(Fr.charCodeAt(0))>=0};it.__arabicParser__.arabicLetterHasIsolatedForm=function(Fr){return ot(Fr)&&Ze(Fr)&&Le[Fr.charCodeAt(0)].length>=1};var pr=it.__arabicParser__.arabicLetterHasFinalForm=function(Fr){return ot(Fr)&&Ze(Fr)&&Le[Fr.charCodeAt(0)].length>=2};it.__arabicParser__.arabicLetterHasInitialForm=function(Fr){return ot(Fr)&&Ze(Fr)&&Le[Fr.charCodeAt(0)].length>=3};var $r=it.__arabicParser__.arabicLetterHasMedialForm=function(Fr){return ot(Fr)&&Ze(Fr)&&Le[Fr.charCodeAt(0)].length==4},Yr=it.__arabicParser__.resolveLigatures=function(Fr){var Bn=0,bn=je,en="",ti=0;for(Bn=0;Bn<Fr.length;Bn+=1)bn[Fr.charCodeAt(Bn)]!==void 0?(ti++,typeof(bn=bn[Fr.charCodeAt(Bn)])=="number"&&(en+=String.fromCharCode(bn),bn=je,ti=0),Bn===Fr.length-1&&(bn=je,en+=Fr.charAt(Bn-(ti-1)),Bn-=ti-1,ti=0)):(bn=je,en+=Fr.charAt(Bn-ti),Bn-=ti,ti=0);return en};it.__arabicParser__.isArabicDiacritic=function(Fr){return Fr!==void 0&&Xe[Fr.charCodeAt(0)]!==void 0};var mn=it.__arabicParser__.getCorrectForm=function(Fr,Bn,bn){return ot(Fr)?Ze(Fr)===!1?-1:!pr(Fr)||!ot(Bn)&&!ot(bn)||!ot(bn)&&Ct(Bn)||Ct(Fr)&&!ot(Bn)||Ct(Fr)&>(Bn)||Ct(Fr)&&Ct(Bn)?0:$r(Fr)&&ot(Bn)&&!Ct(Bn)&&ot(bn)&&pr(bn)?3:Ct(Fr)||!ot(bn)?1:2:-1},Ar=function(Bn){var bn=0,en=0,ti=0,pi="",Pi="",qr="",En=(Bn=Bn||"").split("\\s+"),Yn=[];for(bn=0;bn<En.length;bn+=1){for(Yn.push(""),en=0;en<En[bn].length;en+=1)pi=En[bn][en],Pi=En[bn][en-1],qr=En[bn][en+1],ot(pi)?(ti=mn(pi,Pi,qr),Yn[bn]+=ti!==-1?String.fromCharCode(Le[pi.charCodeAt(0)][ti]):pi):Yn[bn]+=pi;Yn[bn]=Yr(Yn[bn])}return Yn.join(" ")},zn=it.__arabicParser__.processArabic=it.processArabic=function(){var Fr,Bn=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,bn=[];if(Array.isArray(Bn)){var en=0;for(bn=[],en=0;en<Bn.length;en+=1)Array.isArray(Bn[en])?bn.push([Ar(Bn[en][0]),Bn[en][1],Bn[en][2]]):bn.push([Ar(Bn[en])]);Fr=bn}else Fr=Ar(Bn);return typeof arguments[0]=="string"?Fr:(arguments[0].text=Fr,arguments[0])};it.events.push(["preProcessText",zn])}(z.API),z.API.autoPrint=function(it){var Le;switch((it=it||{}).variant=it.variant||"non-conform",it.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){Le=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 "+Le+" 0 R")})}return this},function(it){var Le=function(){var Xe=void 0;Object.defineProperty(this,"pdf",{get:function(){return Xe},set:function(pr){Xe=pr}});var nt=150;Object.defineProperty(this,"width",{get:function(){return nt},set:function(pr){nt=isNaN(pr)||Number.isInteger(pr)===!1||pr<0?150:pr,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=nt+1)}});var Ze=300;Object.defineProperty(this,"height",{get:function(){return Ze},set:function(pr){Ze=isNaN(pr)||Number.isInteger(pr)===!1||pr<0?300:pr,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=Ze+1)}});var ot=[];Object.defineProperty(this,"childNodes",{get:function(){return ot},set:function(pr){ot=pr}});var Ct={};Object.defineProperty(this,"style",{get:function(){return Ct},set:function(pr){Ct=pr}}),Object.defineProperty(this,"parentNode",{})};Le.prototype.getContext=function(je,Xe){var nt;if((je=je||"2d")!=="2d")return null;for(nt in Xe)this.pdf.context2d.hasOwnProperty(nt)&&(this.pdf.context2d[nt]=Xe[nt]);return this.pdf.context2d._canvas=this,this.pdf.context2d},Le.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},it.events.push(["initialized",function(){this.canvas=new Le,this.canvas.pdf=this}])}(z.API),function(it){var Le={left:0,top:0,bottom:0,right:0},je=!1,Xe=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({},Le),this.internal.__cell__.margins.width=this.getPageWidth(),nt.call(this))},nt=function(){this.internal.__cell__.lastCell=new Ze,this.internal.__cell__.pages=1},Ze=function(){var pr=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return pr},set:function(bn){pr=bn}});var $r=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return $r},set:function(bn){$r=bn}});var Yr=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Yr},set:function(bn){Yr=bn}});var mn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return mn},set:function(bn){mn=bn}});var Ar=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Ar},set:function(bn){Ar=bn}});var zn=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return zn},set:function(bn){zn=bn}});var Fr=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return Fr},set:function(bn){Fr=bn}}),this};Ze.prototype.clone=function(){return new Ze(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},Ze.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},it.setHeaderFunction=function(gt){return Xe.call(this),this.internal.__cell__.headerFunction=typeof gt=="function"?gt:void 0,this},it.getTextDimensions=function(gt,pr){Xe.call(this);var $r=(pr=pr||{}).fontSize||this.getFontSize(),Yr=pr.font||this.getFont(),mn=pr.scaleFactor||this.internal.scaleFactor,Ar=0,zn=0,Fr=0,Bn=this;if(!Array.isArray(gt)&&typeof gt!="string"){if(typeof gt!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");gt=String(gt)}var bn=pr.maxWidth;bn>0?typeof gt=="string"?gt=this.splitTextToSize(gt,bn):Object.prototype.toString.call(gt)==="[object Array]"&&(gt=gt.reduce(function(ti,pi){return ti.concat(Bn.splitTextToSize(pi,bn))},[])):gt=Array.isArray(gt)?gt:[gt];for(var en=0;en<gt.length;en++)Ar<(Fr=this.getStringUnitWidth(gt[en],{font:Yr})*$r)&&(Ar=Fr);return Ar!==0&&(zn=gt.length),{w:Ar/=mn,h:Math.max((zn*$r*this.getLineHeightFactor()-$r*(this.getLineHeightFactor()-1))/mn,0)}},it.cellAddPage=function(){Xe.call(this),this.addPage();var gt=this.internal.__cell__.margins||Le;return this.internal.__cell__.lastCell=new Ze(gt.left,gt.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var ot=it.cell=function(){var gt;gt=arguments[0]instanceof Ze?arguments[0]:new Ze(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Xe.call(this);var pr=this.internal.__cell__.lastCell,$r=this.internal.__cell__.padding,Yr=this.internal.__cell__.margins||Le,mn=this.internal.__cell__.tableHeaderRow,Ar=this.internal.__cell__.printHeaders;return pr.lineNumber!==void 0&&(pr.lineNumber===gt.lineNumber?(gt.x=(pr.x||0)+(pr.width||0),gt.y=pr.y||0):pr.y+pr.height+gt.height+Yr.bottom>this.getPageHeight()?(this.cellAddPage(),gt.y=Yr.top,Ar&&mn&&(this.printHeaderRow(gt.lineNumber,!0),gt.y+=mn[0].height)):gt.y=pr.y+pr.height||gt.y),gt.text[0]!==void 0&&(this.rect(gt.x,gt.y,gt.width,gt.height,je===!0?"FD":void 0),gt.align==="right"?this.text(gt.text,gt.x+gt.width-$r,gt.y+$r,{align:"right",baseline:"top"}):gt.align==="center"?this.text(gt.text,gt.x+gt.width/2,gt.y+$r,{align:"center",baseline:"top",maxWidth:gt.width-$r-$r}):this.text(gt.text,gt.x+$r,gt.y+$r,{align:"left",baseline:"top",maxWidth:gt.width-$r-$r})),this.internal.__cell__.lastCell=gt,this};it.table=function(gt,pr,$r,Yr,mn){if(Xe.call(this),!$r)throw new Error("No data for PDF table.");var Ar,zn,Fr,Bn,bn=[],en=[],ti=[],pi={},Pi={},qr=[],En=[],Yn=(mn=mn||{}).autoSize||!1,zt=mn.printHeaders!==!1,Ot=mn.css&&mn.css["font-size"]!==void 0?16*mn.css["font-size"]:mn.fontSize||12,kt=mn.margins||Object.assign({width:this.getPageWidth()},Le),Bt=typeof mn.padding=="number"?mn.padding:3,Wt=mn.headerBackgroundColor||"#c8c8c8",Lt=mn.headerTextColor||"#000";if(nt.call(this),this.internal.__cell__.printHeaders=zt,this.internal.__cell__.margins=kt,this.internal.__cell__.table_font_size=Ot,this.internal.__cell__.padding=Bt,this.internal.__cell__.headerBackgroundColor=Wt,this.internal.__cell__.headerTextColor=Lt,this.setFontSize(Ot),Yr==null)en=bn=Object.keys($r[0]),ti=bn.map(function(){return"left"});else if(Array.isArray(Yr)&&x()(Yr[0])==="object")for(bn=Yr.map(function(Mn){return Mn.name}),en=Yr.map(function(Mn){return Mn.prompt||Mn.name||""}),ti=Yr.map(function(Mn){return Mn.align||"left"}),Ar=0;Ar<Yr.length;Ar+=1)Pi[Yr[Ar].name]=Yr[Ar].width*(19.049976/25.4);else Array.isArray(Yr)&&typeof Yr[0]=="string"&&(en=bn=Yr,ti=bn.map(function(){return"left"}));if(Yn||Array.isArray(Yr)&&typeof Yr[0]=="string")for(Ar=0;Ar<bn.length;Ar+=1){for(pi[Bn=bn[Ar]]=$r.map(function(Mn){return Mn[Bn]}),this.setFont(void 0,"bold"),qr.push(this.getTextDimensions(en[Ar],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),zn=pi[Bn],this.setFont(void 0,"normal"),Fr=0;Fr<zn.length;Fr+=1)qr.push(this.getTextDimensions(zn[Fr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Pi[Bn]=Math.max.apply(null,qr)+Bt+Bt,qr=[]}if(zt){var dr={};for(Ar=0;Ar<bn.length;Ar+=1)dr[bn[Ar]]={},dr[bn[Ar]].text=en[Ar],dr[bn[Ar]].align=ti[Ar];var yr=Ct.call(this,dr,Pi);En=bn.map(function(Mn){return new Ze(gt,pr,Pi[Mn],yr,dr[Mn].text,void 0,dr[Mn].align)}),this.setTableHeaderRow(En),this.printHeaderRow(1,!1)}var br=Yr.reduce(function(Mn,di){return Mn[di.name]=di.align,Mn},{});for(Ar=0;Ar<$r.length;Ar+=1){"rowStart"in mn&&mn.rowStart instanceof Function&&mn.rowStart({row:Ar,data:$r[Ar]},this);var Mr=Ct.call(this,$r[Ar],Pi);for(Fr=0;Fr<bn.length;Fr+=1){var Gn=$r[Ar][bn[Fr]];"cellStart"in mn&&mn.cellStart instanceof Function&&mn.cellStart({row:Ar,col:Fr,data:Gn},this),ot.call(this,new Ze(gt,pr,Pi[bn[Fr]],Mr,Gn,Ar+2,br[bn[Fr]]))}}return this.internal.__cell__.table_x=gt,this.internal.__cell__.table_y=pr,this};var Ct=function(pr,$r){var Yr=this.internal.__cell__.padding,mn=this.internal.__cell__.table_font_size,Ar=this.internal.scaleFactor;return Object.keys(pr).map(function(zn){var Fr=pr[zn];return this.splitTextToSize(Fr.hasOwnProperty("text")?Fr.text:Fr,$r[zn]-Yr-Yr)},this).map(function(zn){return this.getLineHeightFactor()*zn.length*mn/Ar+Yr+Yr},this).reduce(function(zn,Fr){return Math.max(zn,Fr)},0)};it.setTableHeaderRow=function(gt){Xe.call(this),this.internal.__cell__.tableHeaderRow=gt},it.printHeaderRow=function(gt,pr){if(Xe.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var $r;if(je=!0,typeof this.internal.__cell__.headerFunction=="function"){var Yr=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new Ze(Yr[0],Yr[1],Yr[2],Yr[3],void 0,-1)}this.setFont(void 0,"bold");for(var mn=[],Ar=0;Ar<this.internal.__cell__.tableHeaderRow.length;Ar+=1){$r=this.internal.__cell__.tableHeaderRow[Ar].clone(),pr&&($r.y=this.internal.__cell__.margins.top||0,mn.push($r)),$r.lineNumber=gt;var zn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),ot.call(this,$r),this.setTextColor(zn)}mn.length>0&&this.setTableHeaderRow(mn),this.setFont(void 0,"normal"),je=!1}}(z.API);var Ht={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},vr=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],At=ge(vr),ir=[100,200,300,400,500,600,700,800,900],lr=ge(ir);function dn(it){var Le=it.family.replace(/"|'/g,"").toLowerCase(),je=function(Ze){return Ht[Ze=Ze||"normal"]?Ze:"normal"}(it.style),Xe=function(Ze){if(!Ze)return 400;if(typeof Ze=="number")return Ze>=100&&Ze<=900&&Ze%100==0?Ze:400;if(/^\d00$/.test(Ze))return parseInt(Ze);switch(Ze){case"bold":return 700;case"normal":default:return 400}}(it.weight),nt=function(Ze){return typeof At[Ze=Ze||"normal"]=="number"?Ze:"normal"}(it.stretch);return{family:Le,style:je,weight:Xe,stretch:nt,src:it.src||[],ref:it.ref||{name:Le,style:[nt,je,Xe].join(" ")}}}function Ft(it,Le,je,Xe){var nt;for(nt=je;nt>=0&&nt<Le.length;nt+=Xe)if(it[Le[nt]])return it[Le[nt]];for(nt=je;nt>=0&&nt<Le.length;nt-=Xe)if(it[Le[nt]])return it[Le[nt]]}var ur={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Jt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function pt(it){return[it.stretch,it.style,it.weight,it.family].join(" ")}function at(it,Le,je){for(var Xe=(je=je||{}).defaultFontFamily||"times",nt=Object.assign({},ur,je.genericFontFamilies||{}),Ze=null,ot=null,Ct=0;Ct<Le.length;++Ct)if(nt[(Ze=dn(Le[Ct])).family]&&(Ze.family=nt[Ze.family]),it.hasOwnProperty(Ze.family)){ot=it[Ze.family];break}if(!(ot=ot||it[Xe]))throw new Error("Could not find a font-family for the rule '"+pt(Ze)+"' and default family '"+Xe+"'.");if(ot=function(gt,pr){if(pr[gt])return pr[gt];var $r=At[gt],Yr=$r<=At.normal?-1:1,mn=Ft(pr,vr,$r,Yr);if(!mn)throw new Error("Could not find a matching font-stretch value for "+gt);return mn}(Ze.stretch,ot),ot=function(gt,pr){if(pr[gt])return pr[gt];for(var $r=Ht[gt],Yr=0;Yr<$r.length;++Yr)if(pr[$r[Yr]])return pr[$r[Yr]];throw new Error("Could not find a matching font-style for "+gt)}(Ze.style,ot),!(ot=function(gt,pr){if(pr[gt])return pr[gt];if(gt===400&&pr[500])return pr[500];if(gt===500&&pr[400])return pr[400];var $r=lr[gt],Yr=Ft(pr,ir,$r,gt<400?-1:1);if(!Yr)throw new Error("Could not find a matching font-weight for value "+gt);return Yr}(Ze.weight,ot)))throw new Error("Failed to resolve a font for the rule '"+pt(Ze)+"'.");return ot}function Pr(it){return it.trimLeft()}function un(it,Le){for(var je=0;je<it.length;){if(it.charAt(je)===Le)return[it.substring(0,je),it.substring(je+1)];je+=1}return null}function _n(it){var Le=it.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return Le===null?null:[Le[0],it.substring(Le[0].length)]}var Xn,xi,Pn,Un=["times"];!function(it){var Le,je,Xe,nt,Ze,ot,Ct,gt,pr,$r=function(Ur){return Ur=Ur||{},this.isStrokeTransparent=Ur.isStrokeTransparent||!1,this.strokeOpacity=Ur.strokeOpacity||1,this.strokeStyle=Ur.strokeStyle||"#000000",this.fillStyle=Ur.fillStyle||"#000000",this.isFillTransparent=Ur.isFillTransparent||!1,this.fillOpacity=Ur.fillOpacity||1,this.font=Ur.font||"10px sans-serif",this.textBaseline=Ur.textBaseline||"alphabetic",this.textAlign=Ur.textAlign||"left",this.lineWidth=Ur.lineWidth||1,this.lineJoin=Ur.lineJoin||"miter",this.lineCap=Ur.lineCap||"butt",this.path=Ur.path||[],this.transform=Ur.transform!==void 0?Ur.transform.clone():new gt,this.globalCompositeOperation=Ur.globalCompositeOperation||"normal",this.globalAlpha=Ur.globalAlpha||1,this.clip_path=Ur.clip_path||[],this.currentPoint=Ur.currentPoint||new ot,this.miterLimit=Ur.miterLimit||10,this.lastPoint=Ur.lastPoint||new ot,this.lineDashOffset=Ur.lineDashOffset||0,this.lineDash=Ur.lineDash||[],this.margin=Ur.margin||[0,0,0,0],this.prevPageLastElemOffset=Ur.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Ur.ignoreClearRect!="boolean"||Ur.ignoreClearRect,this};it.events.push(["initialized",function(){this.context2d=new Yr(this),Le=this.internal.f2,je=this.internal.getCoordinateString,Xe=this.internal.getVerticalCoordinateString,nt=this.internal.getHorizontalCoordinate,Ze=this.internal.getVerticalCoordinate,ot=this.internal.Point,Ct=this.internal.Rectangle,gt=this.internal.Matrix,pr=new $r}]);var Yr=function(Ur){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var In=Ur;Object.defineProperty(this,"pdf",{get:function(){return In}});var Qn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Qn},set:function(ji){Qn=Boolean(ji)}});var qn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return qn},set:function(ji){qn=Boolean(ji)}});var oi=0;Object.defineProperty(this,"posX",{get:function(){return oi},set:function(ji){isNaN(ji)||(oi=ji)}});var Ti=0;Object.defineProperty(this,"posY",{get:function(){return Ti},set:function(ji){isNaN(ji)||(Ti=ji)}}),Object.defineProperty(this,"margin",{get:function(){return pr.margin},set:function(ji){var ha;typeof ji=="number"?ha=[ji,ji,ji,ji]:((ha=new Array(4))[0]=ji[0],ha[1]=ji.length>=2?ji[1]:ha[0],ha[2]=ji.length>=3?ji[2]:ha[0],ha[3]=ji.length>=4?ji[3]:ha[1]),pr.margin=ha}});var ki=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ki},set:function(ji){ki=ji}});var Ri=0;Object.defineProperty(this,"lastBreak",{get:function(){return Ri},set:function(ji){Ri=ji}});var oa=[];Object.defineProperty(this,"pageBreaks",{get:function(){return oa},set:function(ji){oa=ji}}),Object.defineProperty(this,"ctx",{get:function(){return pr},set:function(ji){ji instanceof $r&&(pr=ji)}}),Object.defineProperty(this,"path",{get:function(){return pr.path},set:function(ji){pr.path=ji}});var ma=[];Object.defineProperty(this,"ctxStack",{get:function(){return ma},set:function(ji){ma=ji}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ji){var ha;ha=mn(ji),this.ctx.fillStyle=ha.style,this.ctx.isFillTransparent=ha.a===0,this.ctx.fillOpacity=ha.a,this.pdf.setFillColor(ha.r,ha.g,ha.b,{a:ha.a}),this.pdf.setTextColor(ha.r,ha.g,ha.b,{a:ha.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ji){var ha=mn(ji);this.ctx.strokeStyle=ha.style,this.ctx.isStrokeTransparent=ha.a===0,this.ctx.strokeOpacity=ha.a,ha.a===0?this.pdf.setDrawColor(255,255,255):(ha.a,this.pdf.setDrawColor(ha.r,ha.g,ha.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ji){["butt","round","square"].indexOf(ji)!==-1&&(this.ctx.lineCap=ji,this.pdf.setLineCap(ji))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ji){isNaN(ji)||(this.ctx.lineWidth=ji,this.pdf.setLineWidth(ji))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ji){["bevel","round","miter"].indexOf(ji)!==-1&&(this.ctx.lineJoin=ji,this.pdf.setLineJoin(ji))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ji){isNaN(ji)||(this.ctx.miterLimit=ji,this.pdf.setMiterLimit(ji))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ji){this.ctx.textBaseline=ji}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ji){["right","end","center","left","start"].indexOf(ji)!==-1&&(this.ctx.textAlign=ji)}});var aa=null;function ba(kn,ji){if(aa===null){var ha=function(ta){var ra=[];return Object.keys(ta).forEach(function(Ir){ta[Ir].forEach(function(xr){var Cn=null;switch(xr){case"bold":Cn={family:Ir,weight:"bold"};break;case"italic":Cn={family:Ir,style:"italic"};break;case"bolditalic":Cn={family:Ir,weight:"bold",style:"italic"};break;case"":case"normal":Cn={family:Ir}}Cn!==null&&(Cn.ref={name:Ir,style:xr},ra.push(Cn))})}),ra}(kn.getFontList());aa=function(ta){for(var ra={},Ir=0;Ir<ta.length;++Ir){var xr=dn(ta[Ir]),Cn=xr.family,mr=xr.stretch,kr=xr.style,Gr=xr.weight;ra[Cn]=ra[Cn]||{},ra[Cn][mr]=ra[Cn][mr]||{},ra[Cn][mr][kr]=ra[Cn][mr][kr]||{},ra[Cn][mr][kr][Gr]=xr}return ra}(ha.concat(ji))}return aa}var yi=null;Object.defineProperty(this,"fontFaces",{get:function(){return yi},set:function(ji){aa=null,yi=ji}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ji){var ha;if(this.ctx.font=ji,(ha=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(ji))!==null){var ta=ha[1],ra=(ha[2],ha[3]),Ir=ha[4],xr=(ha[5],ha[6]),Cn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ir)[2];Ir=Cn==="px"?Math.floor(parseFloat(Ir)*this.pdf.internal.scaleFactor):Cn==="em"?Math.floor(parseFloat(Ir)*this.pdf.getFontSize()):Math.floor(parseFloat(Ir)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ir);var mr=function(Lr){var rn,xn,Ln=[],Sn=Lr.trim();if(Sn==="")return Un;if(Sn in Jt)return[Jt[Sn]];for(;Sn!=="";){switch(xn=null,rn=(Sn=Pr(Sn)).charAt(0)){case'"':case"'":xn=un(Sn.substring(1),rn);break;default:xn=_n(Sn)}if(xn===null)return Un;if(Ln.push(xn[0]),(Sn=Pr(xn[1]))!==""&&Sn.charAt(0)!==",")return Un;Sn=Sn.replace(/^,/,"")}return Ln}(xr);if(this.fontFaces){var kr=at(ba(this.pdf,this.fontFaces),mr.map(function(Lr){return{family:Lr,stretch:"normal",weight:ra,style:ta}}));this.pdf.setFont(kr.ref.name,kr.ref.style)}else{var Gr="";(ra==="bold"||parseInt(ra,10)>=700||ta==="bold")&&(Gr="bold"),ta==="italic"&&(Gr+="italic"),Gr.length===0&&(Gr="normal");for(var ln="",Fn={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},_t=0;_t<mr.length;_t++){if(this.pdf.internal.getFont(mr[_t],Gr,{noFallback:!0,disableWarning:!0})!==void 0){ln=mr[_t];break}if(Gr==="bolditalic"&&this.pdf.internal.getFont(mr[_t],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ln=mr[_t],Gr="bold";else if(this.pdf.internal.getFont(mr[_t],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ln=mr[_t],Gr="normal";break}}if(ln===""){for(var Or=0;Or<mr.length;Or++)if(Fn[mr[Or]]){ln=Fn[mr[Or]];break}}ln=ln===""?"Times":ln,this.pdf.setFont(ln,Gr)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ji){this.ctx.globalCompositeOperation=ji}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ji){this.ctx.globalAlpha=ji}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ji){this.ctx.lineDashOffset=ji,di.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ji){this.ctx.lineDash=ji,di.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ji){this.ctx.ignoreClearRect=Boolean(ji)}})};Yr.prototype.setLineDash=function(vn){this.lineDash=vn},Yr.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Yr.prototype.fill=function(){pi.call(this,"fill",!1)},Yr.prototype.stroke=function(){pi.call(this,"stroke",!1)},Yr.prototype.beginPath=function(){this.path=[{type:"begin"}]},Yr.prototype.moveTo=function(vn,Ur){if(isNaN(vn)||isNaN(Ur))throw d.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var In=this.ctx.transform.applyToPoint(new ot(vn,Ur));this.path.push({type:"mt",x:In.x,y:In.y}),this.ctx.lastPoint=new ot(vn,Ur)},Yr.prototype.closePath=function(){var vn=new ot(0,0),Ur=0;for(Ur=this.path.length-1;Ur!==-1;Ur--)if(this.path[Ur].type==="begin"&&x()(this.path[Ur+1])==="object"&&typeof this.path[Ur+1].x=="number"){vn=new ot(this.path[Ur+1].x,this.path[Ur+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new ot(vn.x,vn.y)},Yr.prototype.lineTo=function(vn,Ur){if(isNaN(vn)||isNaN(Ur))throw d.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var In=this.ctx.transform.applyToPoint(new ot(vn,Ur));this.path.push({type:"lt",x:In.x,y:In.y}),this.ctx.lastPoint=new ot(In.x,In.y)},Yr.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),pi.call(this,null,!0)},Yr.prototype.quadraticCurveTo=function(vn,Ur,In,Qn){if(isNaN(In)||isNaN(Qn)||isNaN(vn)||isNaN(Ur))throw d.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var qn=this.ctx.transform.applyToPoint(new ot(In,Qn)),oi=this.ctx.transform.applyToPoint(new ot(vn,Ur));this.path.push({type:"qct",x1:oi.x,y1:oi.y,x:qn.x,y:qn.y}),this.ctx.lastPoint=new ot(qn.x,qn.y)},Yr.prototype.bezierCurveTo=function(vn,Ur,In,Qn,qn,oi){if(isNaN(qn)||isNaN(oi)||isNaN(vn)||isNaN(Ur)||isNaN(In)||isNaN(Qn))throw d.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Ti=this.ctx.transform.applyToPoint(new ot(qn,oi)),ki=this.ctx.transform.applyToPoint(new ot(vn,Ur)),Ri=this.ctx.transform.applyToPoint(new ot(In,Qn));this.path.push({type:"bct",x1:ki.x,y1:ki.y,x2:Ri.x,y2:Ri.y,x:Ti.x,y:Ti.y}),this.ctx.lastPoint=new ot(Ti.x,Ti.y)},Yr.prototype.arc=function(vn,Ur,In,Qn,qn,oi){if(isNaN(vn)||isNaN(Ur)||isNaN(In)||isNaN(Qn)||isNaN(qn))throw d.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(oi=Boolean(oi),!this.ctx.transform.isIdentity){var Ti=this.ctx.transform.applyToPoint(new ot(vn,Ur));vn=Ti.x,Ur=Ti.y;var ki=this.ctx.transform.applyToPoint(new ot(0,In)),Ri=this.ctx.transform.applyToPoint(new ot(0,0));In=Math.sqrt(Math.pow(ki.x-Ri.x,2)+Math.pow(ki.y-Ri.y,2))}Math.abs(qn-Qn)>=2*Math.PI&&(Qn=0,qn=2*Math.PI),this.path.push({type:"arc",x:vn,y:Ur,radius:In,startAngle:Qn,endAngle:qn,counterclockwise:oi})},Yr.prototype.arcTo=function(vn,Ur,In,Qn,qn){throw new Error("arcTo not implemented.")},Yr.prototype.rect=function(vn,Ur,In,Qn){if(isNaN(vn)||isNaN(Ur)||isNaN(In)||isNaN(Qn))throw d.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(vn,Ur),this.lineTo(vn+In,Ur),this.lineTo(vn+In,Ur+Qn),this.lineTo(vn,Ur+Qn),this.lineTo(vn,Ur),this.lineTo(vn+In,Ur),this.lineTo(vn,Ur)},Yr.prototype.fillRect=function(vn,Ur,In,Qn){if(isNaN(vn)||isNaN(Ur)||isNaN(In)||isNaN(Qn))throw d.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!Ar.call(this)){var qn={};this.lineCap!=="butt"&&(qn.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(qn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(vn,Ur,In,Qn),this.fill(),qn.hasOwnProperty("lineCap")&&(this.lineCap=qn.lineCap),qn.hasOwnProperty("lineJoin")&&(this.lineJoin=qn.lineJoin)}},Yr.prototype.strokeRect=function(vn,Ur,In,Qn){if(isNaN(vn)||isNaN(Ur)||isNaN(In)||isNaN(Qn))throw d.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");zn.call(this)||(this.beginPath(),this.rect(vn,Ur,In,Qn),this.stroke())},Yr.prototype.clearRect=function(vn,Ur,In,Qn){if(isNaN(vn)||isNaN(Ur)||isNaN(In)||isNaN(Qn))throw d.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(vn,Ur,In,Qn))},Yr.prototype.save=function(vn){vn=typeof vn!="boolean"||vn;for(var Ur=this.pdf.internal.getCurrentPageInfo().pageNumber,In=0;In<this.pdf.internal.getNumberOfPages();In++)this.pdf.setPage(In+1),this.pdf.internal.out("q");if(this.pdf.setPage(Ur),vn){this.ctx.fontSize=this.pdf.internal.getFontSize();var Qn=new $r(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Qn}},Yr.prototype.restore=function(vn){vn=typeof vn!="boolean"||vn;for(var Ur=this.pdf.internal.getCurrentPageInfo().pageNumber,In=0;In<this.pdf.internal.getNumberOfPages();In++)this.pdf.setPage(In+1),this.pdf.internal.out("Q");this.pdf.setPage(Ur),vn&&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)},Yr.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var mn=function(Ur){var In,Qn,qn,oi;if(Ur.isCanvasGradient===!0&&(Ur=Ur.getColor()),!Ur)return{r:0,g:0,b:0,a:0,style:Ur};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Ur))In=0,Qn=0,qn=0,oi=0;else{var Ti=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Ur);if(Ti!==null)In=parseInt(Ti[1]),Qn=parseInt(Ti[2]),qn=parseInt(Ti[3]),oi=1;else if((Ti=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Ur))!==null)In=parseInt(Ti[1]),Qn=parseInt(Ti[2]),qn=parseInt(Ti[3]),oi=parseFloat(Ti[4]);else{if(oi=1,typeof Ur=="string"&&Ur.charAt(0)!=="#"){var ki=new l(Ur);Ur=ki.ok?ki.toHex():"#000000"}Ur.length===4?(In=Ur.substring(1,2),In+=In,Qn=Ur.substring(2,3),Qn+=Qn,qn=Ur.substring(3,4),qn+=qn):(In=Ur.substring(1,3),Qn=Ur.substring(3,5),qn=Ur.substring(5,7)),In=parseInt(In,16),Qn=parseInt(Qn,16),qn=parseInt(qn,16)}}return{r:In,g:Qn,b:qn,a:oi,style:Ur}},Ar=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},zn=function(){return Boolean(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Yr.prototype.fillText=function(vn,Ur,In,Qn){if(isNaN(Ur)||isNaN(In)||typeof vn!="string")throw d.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Qn=isNaN(Qn)?void 0:Qn,!Ar.call(this)){var qn=Mr(this.ctx.transform.rotation),oi=this.ctx.transform.scaleX;Bt.call(this,{text:vn,x:Ur,y:In,scale:oi,angle:qn,align:this.textAlign,maxWidth:Qn})}},Yr.prototype.strokeText=function(vn,Ur,In,Qn){if(isNaN(Ur)||isNaN(In)||typeof vn!="string")throw d.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!zn.call(this)){Qn=isNaN(Qn)?void 0:Qn;var qn=Mr(this.ctx.transform.rotation),oi=this.ctx.transform.scaleX;Bt.call(this,{text:vn,x:Ur,y:In,scale:oi,renderingMode:"stroke",angle:qn,align:this.textAlign,maxWidth:Qn})}},Yr.prototype.measureText=function(vn){if(typeof vn!="string")throw d.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Ur=this.pdf,In=this.pdf.internal.scaleFactor,Qn=Ur.internal.getFontSize(),qn=Ur.getStringUnitWidth(vn)*Qn/Ur.internal.scaleFactor,oi=function(ki){var Ri=(ki=ki||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Ri}}),this};return new oi({width:qn*=Math.round(96*In/72*1e4)/1e4})},Yr.prototype.scale=function(vn,Ur){if(isNaN(vn)||isNaN(Ur))throw d.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var In=new gt(vn,0,0,Ur,0,0);this.ctx.transform=this.ctx.transform.multiply(In)},Yr.prototype.rotate=function(vn){if(isNaN(vn))throw d.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Ur=new gt(Math.cos(vn),Math.sin(vn),-Math.sin(vn),Math.cos(vn),0,0);this.ctx.transform=this.ctx.transform.multiply(Ur)},Yr.prototype.translate=function(vn,Ur){if(isNaN(vn)||isNaN(Ur))throw d.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var In=new gt(1,0,0,1,vn,Ur);this.ctx.transform=this.ctx.transform.multiply(In)},Yr.prototype.transform=function(vn,Ur,In,Qn,qn,oi){if(isNaN(vn)||isNaN(Ur)||isNaN(In)||isNaN(Qn)||isNaN(qn)||isNaN(oi))throw d.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Ti=new gt(vn,Ur,In,Qn,qn,oi);this.ctx.transform=this.ctx.transform.multiply(Ti)},Yr.prototype.setTransform=function(vn,Ur,In,Qn,qn,oi){vn=isNaN(vn)?1:vn,Ur=isNaN(Ur)?0:Ur,In=isNaN(In)?0:In,Qn=isNaN(Qn)?1:Qn,qn=isNaN(qn)?0:qn,oi=isNaN(oi)?0:oi,this.ctx.transform=new gt(vn,Ur,In,Qn,qn,oi)};var Fr=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Yr.prototype.drawImage=function(vn,Ur,In,Qn,qn,oi,Ti,ki,Ri){var oa=this.pdf.getImageProperties(vn),ma=1,aa=1,ba=1,yi=1;Qn!==void 0&&ki!==void 0&&(ba=ki/Qn,yi=Ri/qn,ma=oa.width/Qn*ki/Qn,aa=oa.height/qn*Ri/qn),oi===void 0&&(oi=Ur,Ti=In,Ur=0,In=0),Qn!==void 0&&ki===void 0&&(ki=Qn,Ri=qn),Qn===void 0&&ki===void 0&&(ki=oa.width,Ri=oa.height);for(var kn,ji=this.ctx.transform.decompose(),ha=Mr(ji.rotate.shx),ta=new gt,ra=(ta=(ta=(ta=ta.multiply(ji.translate)).multiply(ji.skew)).multiply(ji.scale)).applyToRectangle(new Ct(oi-Ur*ba,Ti-In*yi,Qn*ma,qn*aa)),Ir=Bn.call(this,ra),xr=[],Cn=0;Cn<Ir.length;Cn+=1)xr.indexOf(Ir[Cn])===-1&&xr.push(Ir[Cn]);if(ti(xr),this.autoPaging)for(var mr=xr[0],kr=xr[xr.length-1],Gr=mr;Gr<kr+1;Gr++){this.pdf.setPage(Gr);var ln=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Fn=Gr===1?this.posY+this.margin[0]:this.margin[0],_t=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Or=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Lr=Gr===1?0:_t+(Gr-2)*Or;if(this.ctx.clip_path.length!==0){var rn=this.path;kn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=en(kn,this.posX+this.margin[3],-Lr+Fn+this.ctx.prevPageLastElemOffset),Pi.call(this,"fill",!0),this.path=rn}var xn=JSON.parse(JSON.stringify(ra));xn=en([xn],this.posX+this.margin[3],-Lr+Fn+this.ctx.prevPageLastElemOffset)[0];var Ln=(Gr>mr||Gr<kr)&&Fr.call(this);Ln&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ln,Or,null).clip().discardPath()),this.pdf.addImage(vn,"JPEG",xn.x,xn.y,xn.w,xn.h,null,null,ha),Ln&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(vn,"JPEG",ra.x,ra.y,ra.w,ra.h,null,null,ha)};var Bn=function(Ur,In,Qn){var qn=[];In=In||this.pdf.internal.pageSize.width,Qn=Qn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var oi=this.posY+this.ctx.prevPageLastElemOffset;switch(Ur.type){default:case"mt":case"lt":qn.push(Math.floor((Ur.y+oi)/Qn)+1);break;case"arc":qn.push(Math.floor((Ur.y+oi-Ur.radius)/Qn)+1),qn.push(Math.floor((Ur.y+oi+Ur.radius)/Qn)+1);break;case"qct":var Ti=Gn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Ur.x1,Ur.y1,Ur.x,Ur.y);qn.push(Math.floor((Ti.y+oi)/Qn)+1),qn.push(Math.floor((Ti.y+Ti.h+oi)/Qn)+1);break;case"bct":var ki=Mn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Ur.x1,Ur.y1,Ur.x2,Ur.y2,Ur.x,Ur.y);qn.push(Math.floor((ki.y+oi)/Qn)+1),qn.push(Math.floor((ki.y+ki.h+oi)/Qn)+1);break;case"rect":qn.push(Math.floor((Ur.y+oi)/Qn)+1),qn.push(Math.floor((Ur.y+Ur.h+oi)/Qn)+1)}for(var Ri=0;Ri<qn.length;Ri+=1)for(;this.pdf.internal.getNumberOfPages()<qn[Ri];)bn.call(this);return qn},bn=function(){var Ur=this.fillStyle,In=this.strokeStyle,Qn=this.font,qn=this.lineCap,oi=this.lineWidth,Ti=this.lineJoin;this.pdf.addPage(),this.fillStyle=Ur,this.strokeStyle=In,this.font=Qn,this.lineCap=qn,this.lineWidth=oi,this.lineJoin=Ti},en=function(Ur,In,Qn){for(var qn=0;qn<Ur.length;qn++)switch(Ur[qn].type){case"bct":Ur[qn].x2+=In,Ur[qn].y2+=Qn;case"qct":Ur[qn].x1+=In,Ur[qn].y1+=Qn;case"mt":case"lt":case"arc":default:Ur[qn].x+=In,Ur[qn].y+=Qn}return Ur},ti=function(Ur){return Ur.sort(function(In,Qn){return In-Qn})},pi=function(Ur,In){for(var Qn,qn,oi=this.fillStyle,Ti=this.strokeStyle,ki=this.lineCap,Ri=this.lineWidth,oa=Math.abs(Ri*this.ctx.transform.scaleX),ma=this.lineJoin,aa=JSON.parse(JSON.stringify(this.path)),ba=JSON.parse(JSON.stringify(this.path)),yi=[],kn=0;kn<ba.length;kn++)if(ba[kn].x!==void 0)for(var ji=Bn.call(this,ba[kn]),ha=0;ha<ji.length;ha+=1)yi.indexOf(ji[ha])===-1&&yi.push(ji[ha]);for(var ta=0;ta<yi.length;ta++)for(;this.pdf.internal.getNumberOfPages()<yi[ta];)bn.call(this);if(ti(yi),this.autoPaging)for(var ra=yi[0],Ir=yi[yi.length-1],xr=ra;xr<Ir+1;xr++){this.pdf.setPage(xr),this.fillStyle=oi,this.strokeStyle=Ti,this.lineCap=ki,this.lineWidth=oa,this.lineJoin=ma;var Cn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],mr=xr===1?this.posY+this.margin[0]:this.margin[0],kr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Gr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ln=xr===1?0:kr+(xr-2)*Gr;if(this.ctx.clip_path.length!==0){var Fn=this.path;Qn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=en(Qn,this.posX+this.margin[3],-ln+mr+this.ctx.prevPageLastElemOffset),Pi.call(this,Ur,!0),this.path=Fn}if(qn=JSON.parse(JSON.stringify(aa)),this.path=en(qn,this.posX+this.margin[3],-ln+mr+this.ctx.prevPageLastElemOffset),In===!1||xr===0){var _t=(xr>ra||xr<Ir)&&Fr.call(this);_t&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Cn,Gr,null).clip().discardPath()),Pi.call(this,Ur,In),_t&&this.pdf.restoreGraphicsState()}this.lineWidth=Ri}else this.lineWidth=oa,Pi.call(this,Ur,In),this.lineWidth=Ri;this.path=aa},Pi=function(Ur,In){if((Ur!=="stroke"||In||!zn.call(this))&&(Ur==="stroke"||In||!Ar.call(this))){for(var Qn,qn,oi=[],Ti=this.path,ki=0;ki<Ti.length;ki++){var Ri=Ti[ki];switch(Ri.type){case"begin":oi.push({begin:!0});break;case"close":oi.push({close:!0});break;case"mt":oi.push({start:Ri,deltas:[],abs:[]});break;case"lt":var oa=oi.length;if(Ti[ki-1]&&!isNaN(Ti[ki-1].x)&&(Qn=[Ri.x-Ti[ki-1].x,Ri.y-Ti[ki-1].y],oa>0)){for(;oa>=0;oa--)if(oi[oa-1].close!==!0&&oi[oa-1].begin!==!0){oi[oa-1].deltas.push(Qn),oi[oa-1].abs.push(Ri);break}}break;case"bct":Qn=[Ri.x1-Ti[ki-1].x,Ri.y1-Ti[ki-1].y,Ri.x2-Ti[ki-1].x,Ri.y2-Ti[ki-1].y,Ri.x-Ti[ki-1].x,Ri.y-Ti[ki-1].y],oi[oi.length-1].deltas.push(Qn);break;case"qct":var ma=Ti[ki-1].x+2/3*(Ri.x1-Ti[ki-1].x),aa=Ti[ki-1].y+2/3*(Ri.y1-Ti[ki-1].y),ba=Ri.x+2/3*(Ri.x1-Ri.x),yi=Ri.y+2/3*(Ri.y1-Ri.y),kn=Ri.x,ji=Ri.y;Qn=[ma-Ti[ki-1].x,aa-Ti[ki-1].y,ba-Ti[ki-1].x,yi-Ti[ki-1].y,kn-Ti[ki-1].x,ji-Ti[ki-1].y],oi[oi.length-1].deltas.push(Qn);break;case"arc":oi.push({deltas:[],abs:[],arc:!0}),Array.isArray(oi[oi.length-1].abs)&&oi[oi.length-1].abs.push(Ri)}}qn=In?null:Ur==="stroke"?"stroke":"fill";for(var ha=!1,ta=0;ta<oi.length;ta++)if(oi[ta].arc)for(var ra=oi[ta].abs,Ir=0;Ir<ra.length;Ir++){var xr=ra[Ir];xr.type==="arc"?Yn.call(this,xr.x,xr.y,xr.radius,xr.startAngle,xr.endAngle,xr.counterclockwise,void 0,In,!ha):Wt.call(this,xr.x,xr.y),ha=!0}else if(oi[ta].close===!0)this.pdf.internal.out("h"),ha=!1;else if(oi[ta].begin!==!0){var Cn=oi[ta].start.x,mr=oi[ta].start.y;Lt.call(this,oi[ta].deltas,Cn,mr),ha=!0}qn&&zt.call(this,qn),In&&Ot.call(this)}},qr=function(Ur){var In=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Qn=In*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Ur-Qn;case"top":return Ur+In-Qn;case"hanging":return Ur+In-2*Qn;case"middle":return Ur+In/2-Qn;case"ideographic":return Ur;case"alphabetic":default:return Ur}},En=function(Ur){return Ur+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Yr.prototype.createLinearGradient=function(){var vn=function(){};return vn.colorStops=[],vn.addColorStop=function(Ur,In){this.colorStops.push([Ur,In])},vn.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},vn.isCanvasGradient=!0,vn},Yr.prototype.createPattern=function(){return this.createLinearGradient()},Yr.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Yn=function(Ur,In,Qn,qn,oi,Ti,ki,Ri,oa){for(var ma=yr.call(this,Qn,qn,oi,Ti),aa=0;aa<ma.length;aa++){var ba=ma[aa];aa===0&&(oa?kt.call(this,ba.x1+Ur,ba.y1+In):Wt.call(this,ba.x1+Ur,ba.y1+In)),dr.call(this,Ur,In,ba.x2,ba.y2,ba.x3,ba.y3,ba.x4,ba.y4)}Ri?Ot.call(this):zt.call(this,ki)},zt=function(Ur){switch(Ur){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Ot=function(){this.pdf.clip(),this.pdf.discardPath()},kt=function(Ur,In){this.pdf.internal.out(je(Ur)+" "+Xe(In)+" m")},Bt=function(Ur){var In;switch(Ur.align){case"right":case"end":In="right";break;case"center":In="center";break;case"left":case"start":default:In="left"}var Qn=this.pdf.getTextDimensions(Ur.text),qn=qr.call(this,Ur.y),oi=En.call(this,qn)-Qn.h,Ti=this.ctx.transform.applyToPoint(new ot(Ur.x,qn)),ki=this.ctx.transform.decompose(),Ri=new gt;Ri=(Ri=(Ri=Ri.multiply(ki.translate)).multiply(ki.skew)).multiply(ki.scale);for(var oa,ma,aa,ba=this.ctx.transform.applyToRectangle(new Ct(Ur.x,qn,Qn.w,Qn.h)),yi=Ri.applyToRectangle(new Ct(Ur.x,oi,Qn.w,Qn.h)),kn=Bn.call(this,yi),ji=[],ha=0;ha<kn.length;ha+=1)ji.indexOf(kn[ha])===-1&&ji.push(kn[ha]);if(ti(ji),this.autoPaging)for(var ta=ji[0],ra=ji[ji.length-1],Ir=ta;Ir<ra+1;Ir++){this.pdf.setPage(Ir);var xr=Ir===1?this.posY+this.margin[0]:this.margin[0],Cn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],mr=this.pdf.internal.pageSize.height-this.margin[2],kr=mr-this.margin[0],Gr=this.pdf.internal.pageSize.width-this.margin[1],ln=Gr-this.margin[3],Fn=Ir===1?0:Cn+(Ir-2)*kr;if(this.ctx.clip_path.length!==0){var _t=this.path;oa=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=en(oa,this.posX+this.margin[3],-1*Fn+xr),Pi.call(this,"fill",!0),this.path=_t}var Or=en([JSON.parse(JSON.stringify(yi))],this.posX+this.margin[3],-Fn+xr+this.ctx.prevPageLastElemOffset)[0];Ur.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*Ur.scale),aa=this.lineWidth,this.lineWidth=aa*Ur.scale);var Lr=this.autoPaging!=="text";if(Lr||Or.y+Or.h<=mr){if(Lr||Or.y>=xr&&Or.x<=Gr){var rn=Lr?Ur.text:this.pdf.splitTextToSize(Ur.text,Ur.maxWidth||Gr-Or.x)[0],xn=en([JSON.parse(JSON.stringify(ba))],this.posX+this.margin[3],-Fn+xr+this.ctx.prevPageLastElemOffset)[0],Ln=Lr&&(Ir>ta||Ir<ra)&&Fr.call(this);Ln&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ln,kr,null).clip().discardPath()),this.pdf.text(rn,xn.x,xn.y,{angle:Ur.angle,align:In,renderingMode:Ur.renderingMode}),Ln&&this.pdf.restoreGraphicsState()}}else Or.y<mr&&(this.ctx.prevPageLastElemOffset+=mr-Or.y);Ur.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=aa)}else Ur.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*Ur.scale),aa=this.lineWidth,this.lineWidth=aa*Ur.scale),this.pdf.text(Ur.text,Ti.x+this.posX,Ti.y+this.posY,{angle:Ur.angle,align:In,renderingMode:Ur.renderingMode,maxWidth:Ur.maxWidth}),Ur.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=aa)},Wt=function(Ur,In,Qn,qn){Qn=Qn||0,qn=qn||0,this.pdf.internal.out(je(Ur+Qn)+" "+Xe(In+qn)+" l")},Lt=function(Ur,In,Qn){return this.pdf.lines(Ur,In,Qn,null,null)},dr=function(Ur,In,Qn,qn,oi,Ti,ki,Ri){this.pdf.internal.out([Le(nt(Qn+Ur)),Le(Ze(qn+In)),Le(nt(oi+Ur)),Le(Ze(Ti+In)),Le(nt(ki+Ur)),Le(Ze(Ri+In)),"c"].join(" "))},yr=function(Ur,In,Qn,qn){for(var oi=2*Math.PI,Ti=Math.PI/2;In>Qn;)In-=oi;var ki=Math.abs(Qn-In);ki<oi&&qn&&(ki=oi-ki);for(var Ri=[],oa=qn?-1:1,ma=In;ki>1e-5;){var aa=ma+oa*Math.min(ki,Ti);Ri.push(br.call(this,Ur,ma,aa)),ki-=Math.abs(aa-ma),ma=aa}return Ri},br=function(Ur,In,Qn){var qn=(Qn-In)/2,oi=Ur*Math.cos(qn),Ti=Ur*Math.sin(qn),ki=oi,Ri=-Ti,oa=ki*ki+Ri*Ri,ma=oa+ki*oi+Ri*Ti,aa=4/3*(Math.sqrt(2*oa*ma)-ma)/(ki*Ti-Ri*oi),ba=ki-aa*Ri,yi=Ri+aa*ki,kn=ba,ji=-yi,ha=qn+In,ta=Math.cos(ha),ra=Math.sin(ha);return{x1:Ur*Math.cos(In),y1:Ur*Math.sin(In),x2:ba*ta-yi*ra,y2:ba*ra+yi*ta,x3:kn*ta-ji*ra,y3:kn*ra+ji*ta,x4:Ur*Math.cos(Qn),y4:Ur*Math.sin(Qn)}},Mr=function(Ur){return 180*Ur/Math.PI},Gn=function(Ur,In,Qn,qn,oi,Ti){var ki=Ur+.5*(Qn-Ur),Ri=In+.5*(qn-In),oa=oi+.5*(Qn-oi),ma=Ti+.5*(qn-Ti),aa=Math.min(Ur,oi,ki,oa),ba=Math.max(Ur,oi,ki,oa),yi=Math.min(In,Ti,Ri,ma),kn=Math.max(In,Ti,Ri,ma);return new Ct(aa,yi,ba-aa,kn-yi)},Mn=function(Ur,In,Qn,qn,oi,Ti,ki,Ri){var oa,ma,aa,ba,yi,kn,ji,ha,ta,ra,Ir,xr,Cn,mr,kr=Qn-Ur,Gr=qn-In,ln=oi-Qn,Fn=Ti-qn,_t=ki-oi,Or=Ri-Ti;for(ma=0;ma<41;ma++)ta=(ji=(aa=Ur+(oa=ma/40)*kr)+oa*((yi=Qn+oa*ln)-aa))+oa*(yi+oa*(oi+oa*_t-yi)-ji),ra=(ha=(ba=In+oa*Gr)+oa*((kn=qn+oa*Fn)-ba))+oa*(kn+oa*(Ti+oa*Or-kn)-ha),ma==0?(Ir=ta,xr=ra,Cn=ta,mr=ra):(Ir=Math.min(Ir,ta),xr=Math.min(xr,ra),Cn=Math.max(Cn,ta),mr=Math.max(mr,ra));return new Ct(Math.round(Ir),Math.round(xr),Math.round(Cn-Ir),Math.round(mr-xr))},di=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Ur,In,Qn=(Ur=this.ctx.lineDash,In=this.ctx.lineDashOffset,JSON.stringify({lineDash:Ur,lineDashOffset:In}));this.prevLineDash!==Qn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Qn)}}}(z.API),function(it){var Le=function(ot){var Ct,gt,pr,$r,Yr,mn,Ar,zn,Fr,Bn;for(/[^\x00-\xFF]/.test(ot),gt=[],pr=0,$r=(ot+=Ct="\0\0\0\0".slice(ot.length%4||4)).length;$r>pr;pr+=4)(Yr=(ot.charCodeAt(pr)<<24)+(ot.charCodeAt(pr+1)<<16)+(ot.charCodeAt(pr+2)<<8)+ot.charCodeAt(pr+3))!==0?(mn=(Yr=((Yr=((Yr=((Yr=(Yr-(Bn=Yr%85))/85)-(Fr=Yr%85))/85)-(zn=Yr%85))/85)-(Ar=Yr%85))/85)%85,gt.push(mn+33,Ar+33,zn+33,Fr+33,Bn+33)):gt.push(122);return function(bn,en){for(var ti=en;ti>0;ti--)bn.pop()}(gt,Ct.length),String.fromCharCode.apply(String,gt)+"~>"},je=function(ot){var Ct,gt,pr,$r,Yr,mn=String,Ar="length",zn=255,Fr="charCodeAt",Bn="slice",bn="replace";for(ot[Bn](-2),ot=ot[Bn](0,-2)[bn](/\s/g,"")[bn]("z","!!!!!"),pr=[],$r=0,Yr=(ot+=Ct="uuuuu"[Bn](ot[Ar]%5||5))[Ar];Yr>$r;$r+=5)gt=52200625*(ot[Fr]($r)-33)+614125*(ot[Fr]($r+1)-33)+7225*(ot[Fr]($r+2)-33)+85*(ot[Fr]($r+3)-33)+(ot[Fr]($r+4)-33),pr.push(zn>>>24,zn>>>16,zn>>>8,zn>);return function(en,ti){for(var pi=ti;pi>0;pi--)en.pop()}(pr,Ct[Ar]),mn.fromCharCode.apply(mn,pr)},Xe=function(ot){var Ct=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((ot=ot.replace(/\s/g,"")).indexOf(">")!==-1&&(ot=ot.substr(0,ot.indexOf(">"))),ot.length%2&&(ot+="0"),Ct.test(ot)===!1)return"";for(var gt="",pr=0;pr<ot.length;pr+=2)gt+=String.fromCharCode("0x"+(ot[pr]+ot[pr+1]));return gt},nt=function(ot){for(var Ct=new Uint8Array(ot.length),gt=ot.length;gt--;)Ct[gt]=ot.charCodeAt(gt);return ot=(Ct=Object(v.b)(Ct)).reduce(function(pr,$r){return pr+String.fromCharCode($r)},"")};it.processDataByFilters=function(Ze,ot){var Ct=0,gt=Ze||"",pr=[];for(typeof(ot=ot||[])=="string"&&(ot=[ot]),Ct=0;Ct<ot.length;Ct+=1)switch(ot[Ct]){case"ASCII85Decode":case"/ASCII85Decode":gt=je(gt),pr.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":gt=Le(gt),pr.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":gt=Xe(gt),pr.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":gt=gt.split("").map(function($r){return("0"+$r.charCodeAt().toString(16)).slice(-2)}).join("")+">",pr.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":gt=nt(gt),pr.push("/FlateDecode");break;default:throw new Error('The filter: "'+ot[Ct]+'" is not implemented')}return{data:gt,reverseChain:pr.reverse().join(" ")}}}(z.API),function(it){it.loadFile=function(Le,je,Xe){return function(nt,Ze,ot){Ze=Ze!==!1,ot=typeof ot=="function"?ot:function(){};var Ct=void 0;try{Ct=function(gt,pr,$r){var Yr=new XMLHttpRequest,mn=0,Ar=function(Fr){var Bn=Fr.length,bn=[],en=String.fromCharCode;for(mn=0;mn<Bn;mn+=1)bn.push(en(255&Fr.charCodeAt(mn)));return bn.join("")};if(Yr.open("GET",gt,!pr),Yr.overrideMimeType("text/plain; charset=x-user-defined"),pr===!1&&(Yr.onload=function(){Yr.status===200?$r(Ar(this.responseText)):$r(void 0)}),Yr.send(null),pr&&Yr.status===200)return Ar(Yr.responseText)}(nt,Ze,ot)}catch(gt){}return Ct}(Le,je,Xe)},it.loadImageFile=it.loadFile}(z.API),function(it){function Le(){return(m.html2canvas?Promise.resolve(m.html2canvas):Promise.resolve().then(n.t.bind(null,"wOnQ",7))).catch(function(ot){return Promise.reject(new Error("Could not load html2canvas: "+ot))}).then(function(ot){return ot.default?ot.default:ot})}function je(){return(m.DOMPurify?Promise.resolve(m.DOMPurify):n.e(245).then(n.t.bind(null,"qZ2Q",7))).catch(function(ot){return Promise.reject(new Error("Could not load dompurify: "+ot))}).then(function(ot){return ot.default?ot.default:ot})}var Xe=function(Ct){var gt=x()(Ct);return gt==="undefined"?"undefined":gt==="string"||Ct instanceof String?"string":gt==="number"||Ct instanceof Number?"number":gt==="function"||Ct instanceof Function?"function":Ct&&Ct.constructor===Array?"array":Ct&&Ct.nodeType===1?"element":gt==="object"?"object":"unknown"},nt=function(Ct,gt){var pr=document.createElement(Ct);for(var $r in gt.className&&(pr.className=gt.className),gt.innerHTML&>.dompurify&&(pr.innerHTML=gt.dompurify.sanitize(gt.innerHTML)),gt.style)pr.style[$r]=gt.style[$r];return pr},Ze=function ot(Ct){var gt=Object.assign(ot.convert(Promise.resolve()),JSON.parse(JSON.stringify(ot.template))),pr=ot.convert(Promise.resolve(),gt);return pr=(pr=pr.setProgress(1,ot,1,[ot])).set(Ct)};(Ze.prototype=Object.create(Promise.prototype)).constructor=Ze,Ze.convert=function(ot,Ct){return ot.__proto__=Ct||Ze.prototype,ot},Ze.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},Ze.prototype.from=function(ot,Ct){return this.then(function(){switch(Ct=Ct||function(gt){switch(Xe(gt)){case"string":return"string";case"element":return gt.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(ot)){case"string":return this.then(je).then(function(gt){return this.set({src:nt("div",{innerHTML:ot,dompurify:gt})})});case"element":return this.set({src:ot});case"canvas":return this.set({canvas:ot});case"img":return this.set({img:ot});default:return this.error("Unknown source type.")}})},Ze.prototype.to=function(ot){switch(ot){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},Ze.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var ot={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},Ct=function gt(pr,$r){for(var Yr=pr.nodeType===3?document.createTextNode(pr.nodeValue):pr.cloneNode(!1),mn=pr.firstChild;mn;mn=mn.nextSibling)$r!==!0&&mn.nodeType===1&&mn.nodeName==="SCRIPT"||Yr.appendChild(gt(mn,$r));return pr.nodeType===1&&(pr.nodeName==="CANVAS"?(Yr.width=pr.width,Yr.height=pr.height,Yr.getContext("2d").drawImage(pr,0,0)):pr.nodeName!=="TEXTAREA"&&pr.nodeName!=="SELECT"||(Yr.value=pr.value),Yr.addEventListener("load",function(){Yr.scrollTop=pr.scrollTop,Yr.scrollLeft=pr.scrollLeft},!0)),Yr}(this.prop.src,this.opt.html2canvas.javascriptEnabled);Ct.tagName==="BODY"&&(ot.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=nt("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=nt("div",{className:"html2pdf__container",style:ot}),this.prop.container.appendChild(Ct),this.prop.container.firstChild.appendChild(nt("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},Ze.prototype.toCanvas=function(){var ot=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ot).then(Le).then(function(Ct){var gt=Object.assign({},this.opt.html2canvas);return delete gt.onrendered,Ct(this.prop.container,gt)}).then(function(Ct){(this.opt.html2canvas.onrendered||function(){})(Ct),this.prop.canvas=Ct,document.body.removeChild(this.prop.overlay)})},Ze.prototype.toContext2d=function(){var ot=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ot).then(Le).then(function(Ct){var gt=this.opt.jsPDF,pr=this.opt.fontFaces,$r=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,Yr=Object.assign({async:!0,allowTaint:!0,scale:$r,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 Yr.onrendered,gt.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,gt.context2d.posX=this.opt.x,gt.context2d.posY=this.opt.y,gt.context2d.margin=this.opt.margin,gt.context2d.fontFaces=pr,pr)for(var mn=0;mn<pr.length;++mn){var Ar=pr[mn],zn=Ar.src.find(function(Fr){return Fr.format==="truetype"});zn&>.addFont(zn.url,Ar.ref.name,Ar.ref.style)}return Yr.windowHeight=Yr.windowHeight||0,Yr.windowHeight=Yr.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Yr.windowHeight,gt.context2d.save(!0),Ct(this.prop.container,Yr)}).then(function(Ct){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Ct),this.prop.canvas=Ct,document.body.removeChild(this.prop.overlay)})},Ze.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var ot=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=ot})},Ze.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},Ze.prototype.output=function(ot,Ct,gt){return(gt=gt||"pdf").toLowerCase()==="img"||gt.toLowerCase()==="image"?this.outputImg(ot,Ct):this.outputPdf(ot,Ct)},Ze.prototype.outputPdf=function(ot,Ct){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(ot,Ct)})},Ze.prototype.outputImg=function(ot){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(ot){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 "'+ot+'" is not supported.'}})},Ze.prototype.save=function(ot){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(ot?{filename:ot}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Ze.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},Ze.prototype.set=function(ot){if(Xe(ot)!=="object")return this;var Ct=Object.keys(ot||{}).map(function(gt){if(gt in Ze.template.prop)return function(){this.prop[gt]=ot[gt]};switch(gt){case"margin":return this.setMargin.bind(this,ot.margin);case"jsPDF":return function(){return this.opt.jsPDF=ot.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,ot.pageSize);default:return function(){this.opt[gt]=ot[gt]}}},this);return this.then(function(){return this.thenList(Ct)})},Ze.prototype.get=function(ot,Ct){return this.then(function(){var gt=ot in Ze.template.prop?this.prop[ot]:this.opt[ot];return Ct?Ct(gt):gt})},Ze.prototype.setMargin=function(ot){return this.then(function(){switch(Xe(ot)){case"number":ot=[ot,ot,ot,ot];case"array":if(ot.length===2&&(ot=[ot[0],ot[1],ot[0],ot[1]]),ot.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=ot}).then(this.setPageSize)},Ze.prototype.setPageSize=function(ot){function Ct(gt,pr){return Math.floor(gt*pr/72*96)}return this.then(function(){(ot=ot||z.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(ot.inner={width:ot.width-this.opt.margin[1]-this.opt.margin[3],height:ot.height-this.opt.margin[0]-this.opt.margin[2]},ot.inner.px={width:Ct(ot.inner.width,ot.k),height:Ct(ot.inner.height,ot.k)},ot.inner.ratio=ot.inner.height/ot.inner.width),this.prop.pageSize=ot})},Ze.prototype.setProgress=function(ot,Ct,gt,pr){return ot!=null&&(this.progress.val=ot),Ct!=null&&(this.progress.state=Ct),gt!=null&&(this.progress.n=gt),pr!=null&&(this.progress.stack=pr),this.progress.ratio=this.progress.val/this.progress.state,this},Ze.prototype.updateProgress=function(ot,Ct,gt,pr){return this.setProgress(ot?this.progress.val+ot:null,Ct||null,gt?this.progress.n+gt:null,pr?this.progress.stack.concat(pr):null)},Ze.prototype.then=function(ot,Ct){var gt=this;return this.thenCore(ot,Ct,function(pr,$r){return gt.updateProgress(null,null,1,[pr]),Promise.prototype.then.call(this,function(Yr){return gt.updateProgress(null,pr),Yr}).then(pr,$r).then(function(Yr){return gt.updateProgress(1),Yr})})},Ze.prototype.thenCore=function(ot,Ct,gt){gt=gt||Promise.prototype.then,ot&&(ot=ot.bind(this)),Ct&&(Ct=Ct.bind(this));var pr=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:Ze.convert(Object.assign({},this),Promise.prototype),$r=gt.call(pr,ot,Ct);return Ze.convert($r,this.__proto__)},Ze.prototype.thenExternal=function(ot,Ct){return Promise.prototype.then.call(this,ot,Ct)},Ze.prototype.thenList=function(ot){var Ct=this;return ot.forEach(function(gt){Ct=Ct.thenCore(gt)}),Ct},Ze.prototype.catch=function(ot){ot&&(ot=ot.bind(this));var Ct=Promise.prototype.catch.call(this,ot);return Ze.convert(Ct,this)},Ze.prototype.catchExternal=function(ot){return Promise.prototype.catch.call(this,ot)},Ze.prototype.error=function(ot){return this.then(function(){throw new Error(ot)})},Ze.prototype.using=Ze.prototype.set,Ze.prototype.saveAs=Ze.prototype.save,Ze.prototype.export=Ze.prototype.output,Ze.prototype.run=Ze.prototype.then,z.getPageSize=function(ot,Ct,gt){if(x()(ot)==="object"){var pr=ot;ot=pr.orientation,Ct=pr.unit||Ct,gt=pr.format||gt}Ct=Ct||"mm",gt=gt||"a4",ot=(""+(ot||"P")).toLowerCase();var $r,Yr=(""+gt).toLowerCase(),mn={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(Ct){case"pt":$r=1;break;case"mm":$r=72/25.4;break;case"cm":$r=72/2.54;break;case"in":$r=72;break;case"px":$r=.75;break;case"pc":case"em":$r=12;break;case"ex":$r=6;break;default:throw"Invalid unit: "+Ct}var Ar,zn=0,Fr=0;if(mn.hasOwnProperty(Yr))zn=mn[Yr][1]/$r,Fr=mn[Yr][0]/$r;else try{zn=gt[1],Fr=gt[0]}catch(Bn){throw new Error("Invalid format: "+gt)}if(ot==="p"||ot==="portrait")ot="p",Fr>zn&&(Ar=Fr,Fr=zn,zn=Ar);else{if(ot!=="l"&&ot!=="landscape")throw"Invalid orientation: "+ot;ot="l",zn>Fr&&(Ar=Fr,Fr=zn,zn=Ar)}return{width:Fr,height:zn,unit:Ct,k:$r,orientation:ot}},it.html=function(ot,Ct){(Ct=Ct||{}).callback=Ct.callback||function(){},Ct.html2canvas=Ct.html2canvas||{},Ct.html2canvas.canvas=Ct.html2canvas.canvas||this.canvas,Ct.jsPDF=Ct.jsPDF||this,Ct.fontFaces=Ct.fontFaces?Ct.fontFaces.map(dn):null;var gt=new Ze(Ct);return Ct.worker?gt:gt.from(ot).doCallback()}}(z.API),z.API.addJS=function(it){return Pn=it,this.internal.events.subscribe("postPutResources",function(){Xn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Xn+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),xi=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Pn+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Xn!==void 0&&xi!==void 0&&this.internal.out("/Names <</JavaScript "+Xn+" 0 R>>")}),this},function(it){var Le;it.events.push(["postPutResources",function(){var je=this,Xe=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var nt=je.outline.render().split(/\r\n/),Ze=0;Ze<nt.length;Ze++){var ot=nt[Ze],Ct=Xe.exec(ot);if(Ct!=null){var gt=Ct[1];je.internal.newObjectDeferredBegin(gt,!1)}je.internal.write(ot)}if(this.outline.createNamedDestinations){var pr=this.internal.pages.length,$r=[];for(Ze=0;Ze<pr;Ze++){var Yr=je.internal.newObject();$r.push(Yr);var mn=je.internal.getPageInfo(Ze+1);je.internal.write("<< /D["+mn.objId+" 0 R /XYZ null null null]>> endobj")}var Ar=je.internal.newObject();for(je.internal.write("<< /Names [ "),Ze=0;Ze<$r.length;Ze++)je.internal.write("(page_"+(Ze+1)+")"+$r[Ze]+" 0 R");je.internal.write(" ] >>","endobj"),Le=je.internal.newObject(),je.internal.write("<< /Dests "+Ar+" 0 R"),je.internal.write(">>","endobj")}}]),it.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 "+Le+" 0 R"))}]),it.events.push(["initialized",function(){var je=this;je.outline={createNamedDestinations:!1,root:{children:[]}},je.outline.add=function(Xe,nt,Ze){var ot={title:nt,options:Ze,children:[]};return Xe==null&&(Xe=this.root),Xe.children.push(ot),ot},je.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=je,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},je.outline.genIds_r=function(Xe){Xe.id=je.internal.newObjectDeferred();for(var nt=0;nt<Xe.children.length;nt++)this.genIds_r(Xe.children[nt])},je.outline.renderRoot=function(Xe){this.objStart(Xe),this.line("/Type /Outlines"),Xe.children.length>0&&(this.line("/First "+this.makeRef(Xe.children[0])),this.line("/Last "+this.makeRef(Xe.children[Xe.children.length-1]))),this.line("/Count "+this.count_r({count:0},Xe)),this.objEnd()},je.outline.renderItems=function(Xe){for(var nt=this.ctx.pdf.internal.getVerticalCoordinateString,Ze=0;Ze<Xe.children.length;Ze++){var ot=Xe.children[Ze];this.objStart(ot),this.line("/Title "+this.makeString(ot.title)),this.line("/Parent "+this.makeRef(Xe)),Ze>0&&this.line("/Prev "+this.makeRef(Xe.children[Ze-1])),Ze<Xe.children.length-1&&this.line("/Next "+this.makeRef(Xe.children[Ze+1])),ot.children.length>0&&(this.line("/First "+this.makeRef(ot.children[0])),this.line("/Last "+this.makeRef(ot.children[ot.children.length-1])));var Ct=this.count=this.count_r({count:0},ot);if(Ct>0&&this.line("/Count "+Ct),ot.options&&ot.options.pageNumber){var gt=je.internal.getPageInfo(ot.options.pageNumber);this.line("/Dest ["+gt.objId+" 0 R /XYZ 0 "+nt(0)+" 0]")}this.objEnd()}for(var pr=0;pr<Xe.children.length;pr++)this.renderItems(Xe.children[pr])},je.outline.line=function(Xe){this.ctx.val+=Xe+`\r
|
|
|
`},je.outline.makeRef=function(Xe){return Xe.id+" 0 R"},je.outline.makeString=function(Xe){return"("+je.internal.pdfEscape(Xe)+")"},je.outline.objStart=function(Xe){this.ctx.val+=`\r
|
|
|
`+Xe.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},je.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},je.outline.count_r=function(Xe,nt){for(var Ze=0;Ze<nt.children.length;Ze++)Xe.count++,this.count_r(Xe,nt.children[Ze]);return Xe.count}}])}(z.API),function(it){var Le=[192,193,194,195,196,197,198,199];it.processJPEG=function(je,Xe,nt,Ze,ot,Ct){var gt,pr=this.decode.DCT_DECODE,$r=null;if(typeof je=="string"||this.__addimage__.isArrayBuffer(je)||this.__addimage__.isArrayBufferView(je)){switch(je=ot||je,je=this.__addimage__.isArrayBuffer(je)?new Uint8Array(je):je,(gt=function(Yr){for(var mn,Ar=256*Yr.charCodeAt(4)+Yr.charCodeAt(5),zn=Yr.length,Fr={width:0,height:0,numcomponents:1},Bn=4;Bn<zn;Bn+=2){if(Bn+=Ar,Le.indexOf(Yr.charCodeAt(Bn+1))!==-1){mn=256*Yr.charCodeAt(Bn+5)+Yr.charCodeAt(Bn+6),Fr={width:256*Yr.charCodeAt(Bn+7)+Yr.charCodeAt(Bn+8),height:mn,numcomponents:Yr.charCodeAt(Bn+9)};break}Ar=256*Yr.charCodeAt(Bn+2)+Yr.charCodeAt(Bn+3)}return Fr}(je=this.__addimage__.isArrayBufferView(je)?this.__addimage__.arrayBufferToBinaryString(je):je)).numcomponents){case 1:Ct=this.color_spaces.DEVICE_GRAY;break;case 4:Ct=this.color_spaces.DEVICE_CMYK;break;case 3:Ct=this.color_spaces.DEVICE_RGB}$r={data:je,width:gt.width,height:gt.height,colorSpace:Ct,bitsPerComponent:8,filter:pr,index:Xe,alias:nt}}return $r}}(z.API);var $t,xt,De,ke,Pe,tt=function(){var it,Le,je;function Xe(Ze){var ot,Ct,gt,pr,$r,Yr,mn,Ar,zn,Fr,Bn,bn,en,ti;for(this.data=Ze,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Yr=null;;){switch(ot=this.readUInt32(),zn=function(){var pi,Pi;for(Pi=[],pi=0;pi<4;++pi)Pi.push(String.fromCharCode(this.data[this.pos++]));return Pi}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(ot);break;case"fcTL":Yr&&this.animation.frames.push(Yr),this.pos+=4,Yr={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},$r=this.readUInt16(),pr=this.readUInt16()||100,Yr.delay=1e3*$r/pr,Yr.disposeOp=this.data[this.pos++],Yr.blendOp=this.data[this.pos++],Yr.data=[];break;case"IDAT":case"fdAT":for(zn==="fdAT"&&(this.pos+=4,ot-=4),Ze=(Yr!=null?Yr.data:void 0)||this.imgData,bn=0;0<=ot?bn<ot:bn>ot;0<=ot?++bn:--bn)Ze.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(gt=this.palette.length/3,this.transparency.indexed=this.read(ot),this.transparency.indexed.length>gt)throw new Error("More transparent colors than palette size");if((Fr=gt-this.transparency.indexed.length)>0)for(en=0;0<=Fr?en<Fr:en>Fr;0<=Fr?++en:--en)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(ot)[0];break;case 2:this.transparency.rgb=this.read(ot)}break;case"tEXt":mn=(Bn=this.read(ot)).indexOf(0),Ar=String.fromCharCode.apply(String,Bn.slice(0,mn)),this.text[Ar]=String.fromCharCode.apply(String,Bn.slice(mn+1));break;case"IEND":return Yr&&this.animation.frames.push(Yr),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(ti=this.colorType)===4||ti===6,Ct=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*Ct,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+=ot}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}Xe.prototype.read=function(Ze){var ot,Ct;for(Ct=[],ot=0;0<=Ze?ot<Ze:ot>Ze;0<=Ze?++ot:--ot)Ct.push(this.data[this.pos++]);return Ct},Xe.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Xe.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Xe.prototype.decodePixels=function(Ze){var ot=this.pixelBitlength/8,Ct=new Uint8Array(this.width*this.height*ot),gt=0,pr=this;if(Ze==null&&(Ze=this.imgData),Ze.length===0)return new Uint8Array(0);function $r(Yr,mn,Ar,zn){var Fr,Bn,bn,en,ti,pi,Pi,qr,En,Yn,zt,Ot,kt,Bt,Wt,Lt,dr,yr,br,Mr,Gn,Mn=Math.ceil((pr.width-Yr)/Ar),di=Math.ceil((pr.height-mn)/zn),vn=pr.width==Mn&&pr.height==di;for(Bt=ot*Mn,Ot=vn?Ct:new Uint8Array(Bt*di),pi=Ze.length,kt=0,Bn=0;kt<di&><pi;){switch(Ze[gt++]){case 0:for(en=dr=0;dr<Bt;en=dr+=1)Ot[Bn++]=Ze[gt++];break;case 1:for(en=yr=0;yr<Bt;en=yr+=1)Fr=Ze[gt++],ti=en<ot?0:Ot[Bn-ot],Ot[Bn++]=(Fr+ti)%256;break;case 2:for(en=br=0;br<Bt;en=br+=1)Fr=Ze[gt++],bn=(en-en%ot)/ot,Wt=kt&&Ot[(kt-1)*Bt+bn*ot+en%ot],Ot[Bn++]=(Wt+Fr)%256;break;case 3:for(en=Mr=0;Mr<Bt;en=Mr+=1)Fr=Ze[gt++],bn=(en-en%ot)/ot,ti=en<ot?0:Ot[Bn-ot],Wt=kt&&Ot[(kt-1)*Bt+bn*ot+en%ot],Ot[Bn++]=(Fr+Math.floor((ti+Wt)/2))%256;break;case 4:for(en=Gn=0;Gn<Bt;en=Gn+=1)Fr=Ze[gt++],bn=(en-en%ot)/ot,ti=en<ot?0:Ot[Bn-ot],kt===0?Wt=Lt=0:(Wt=Ot[(kt-1)*Bt+bn*ot+en%ot],Lt=bn&&Ot[(kt-1)*Bt+(bn-1)*ot+en%ot]),Pi=ti+Wt-Lt,qr=Math.abs(Pi-ti),Yn=Math.abs(Pi-Wt),zt=Math.abs(Pi-Lt),En=qr<=Yn&&qr<=zt?ti:Yn<=zt?Wt:Lt,Ot[Bn++]=(Fr+En)%256;break;default:throw new Error("Invalid filter algorithm: "+Ze[gt-1])}if(!vn){var Ur=((mn+kt*zn)*pr.width+Yr)*ot,In=kt*Bt;for(en=0;en<Mn;en+=1){for(var Qn=0;Qn<ot;Qn+=1)Ct[Ur++]=Ot[In++];Ur+=(Ar-1)*ot}}kt++}}return Ze=Object(v.a)(Ze),pr.interlaceMethod==1?($r(0,0,8,8),$r(4,0,8,8),$r(0,4,4,8),$r(2,0,4,4),$r(0,2,2,4),$r(1,0,2,2),$r(0,1,1,2)):$r(0,0,1,1),Ct},Xe.prototype.decodePalette=function(){var Ze,ot,Ct,gt,pr,$r,Yr,mn,Ar;for(Ct=this.palette,$r=this.transparency.indexed||[],pr=new Uint8Array(($r.length||0)+Ct.length),gt=0,Ze=0,ot=Yr=0,mn=Ct.length;Yr<mn;ot=Yr+=3)pr[gt++]=Ct[ot],pr[gt++]=Ct[ot+1],pr[gt++]=Ct[ot+2],pr[gt++]=(Ar=$r[Ze++])!=null?Ar:255;return pr},Xe.prototype.copyToImageData=function(Ze,ot){var Ct,gt,pr,$r,Yr,mn,Ar,zn,Fr,Bn,bn;if(gt=this.colors,Fr=null,Ct=this.hasAlphaChannel,this.palette.length&&(Fr=(bn=this._decodedPalette)!=null?bn:this._decodedPalette=this.decodePalette(),gt=4,Ct=!0),zn=(pr=Ze.data||Ze).length,Yr=Fr||ot,$r=mn=0,gt===1)for(;$r<zn;)Ar=Fr?4*ot[$r/4]:mn,Bn=Yr[Ar++],pr[$r++]=Bn,pr[$r++]=Bn,pr[$r++]=Bn,pr[$r++]=Ct?Yr[Ar++]:255,mn=Ar;else for(;$r<zn;)Ar=Fr?4*ot[$r/4]:mn,pr[$r++]=Yr[Ar++],pr[$r++]=Yr[Ar++],pr[$r++]=Yr[Ar++],pr[$r++]=Ct?Yr[Ar++]:255,mn=Ar},Xe.prototype.decode=function(){var Ze;return Ze=new Uint8Array(this.width*this.height*4),this.copyToImageData(Ze,this.decodePixels()),Ze};var nt=function(){if(Object.prototype.toString.call(m)==="[object Window]"){try{Le=m.document.createElement("canvas"),je=Le.getContext("2d")}catch(ot){return!1}return!0}return!1};return nt(),it=function(ot){var Ct;if(nt()===!0)return je.width=ot.width,je.height=ot.height,je.clearRect(0,0,ot.width,ot.height),je.putImageData(ot,0,0),(Ct=new Image).src=Le.toDataURL(),Ct;throw new Error("This method requires a Browser with Canvas-capability.")},Xe.prototype.decodeFrames=function(Ze){var ot,Ct,gt,pr,$r,Yr,mn,Ar;if(this.animation){for(Ar=[],Ct=$r=0,Yr=(mn=this.animation.frames).length;$r<Yr;Ct=++$r)ot=mn[Ct],gt=Ze.createImageData(ot.width,ot.height),pr=this.decodePixels(new Uint8Array(ot.data)),this.copyToImageData(gt,pr),ot.imageData=gt,Ar.push(ot.image=it(gt));return Ar}},Xe.prototype.renderFrame=function(Ze,ot){var Ct,gt,pr;return Ct=(gt=this.animation.frames)[ot],pr=gt[ot-1],ot===0&&Ze.clearRect(0,0,this.width,this.height),(pr!=null?pr.disposeOp:void 0)===1?Ze.clearRect(pr.xOffset,pr.yOffset,pr.width,pr.height):(pr!=null?pr.disposeOp:void 0)===2&&Ze.putImageData(pr.imageData,pr.xOffset,pr.yOffset),Ct.blendOp===0&&Ze.clearRect(Ct.xOffset,Ct.yOffset,Ct.width,Ct.height),Ze.drawImage(Ct.image,Ct.xOffset,Ct.yOffset)},Xe.prototype.animate=function(Ze){var ot,Ct,gt,pr,$r,Yr,mn=this;return Ct=0,Yr=this.animation,pr=Yr.numFrames,gt=Yr.frames,$r=Yr.numPlays,(ot=function(){var zn,Fr;if(zn=Ct++%pr,Fr=gt[zn],mn.renderFrame(Ze,zn),pr>1&&Ct/pr<$r)return mn.animation._timeout=setTimeout(ot,Fr.delay)})()},Xe.prototype.stopAnimation=function(){var Ze;return clearTimeout((Ze=this.animation)!=null?Ze._timeout:void 0)},Xe.prototype.render=function(Ze){var ot,Ct;return Ze._png&&Ze._png.stopAnimation(),Ze._png=this,Ze.width=this.width,Ze.height=this.height,ot=Ze.getContext("2d"),this.animation?(this.decodeFrames(ot),this.animate(ot)):(Ct=ot.createImageData(this.width,this.height),this.copyToImageData(Ct,this.decodePixels()),ot.putImageData(Ct,0,0))},Xe}();/**
|
|
|
* @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(it){var Le=0;if(it[Le++]!==71||it[Le++]!==73||it[Le++]!==70||it[Le++]!==56||(it[Le++]+1&253)!=56||it[Le++]!==97)throw new Error("Invalid GIF 87a/89a header.");var je=it[Le++]|it[Le++]<<8,Xe=it[Le++]|it[Le++]<<8,nt=it[Le++],Ze=nt>>7,ot=1<<(7&nt)+1;it[Le++],it[Le++];var Ct=null,gt=null;Ze&&(Ct=Le,gt=ot,Le+=3*ot);var pr=!0,$r=[],Yr=0,mn=null,Ar=0,zn=null;for(this.width=je,this.height=Xe;pr&&Le<it.length;)switch(it[Le++]){case 33:switch(it[Le++]){case 255:if(it[Le]!==11||it[Le+1]==78&&it[Le+2]==69&&it[Le+3]==84&&it[Le+4]==83&&it[Le+5]==67&&it[Le+6]==65&&it[Le+7]==80&&it[Le+8]==69&&it[Le+9]==50&&it[Le+10]==46&&it[Le+11]==48&&it[Le+12]==3&&it[Le+13]==1&&it[Le+16]==0)Le+=14,zn=it[Le++]|it[Le++]<<8,Le++;else for(Le+=12;;){if(!((kt=it[Le++])>=0))throw Error("Invalid block size");if(kt===0)break;Le+=kt}break;case 249:if(it[Le++]!==4||it[Le+4]!==0)throw new Error("Invalid graphics extension block.");var Fr=it[Le++];Yr=it[Le++]|it[Le++]<<8,mn=it[Le++],(1&Fr)==0&&(mn=null),Ar=Fr>>2&7,Le++;break;case 254:for(;;){if(!((kt=it[Le++])>=0))throw Error("Invalid block size");if(kt===0)break;Le+=kt}break;default:throw new Error("Unknown graphic control label: 0x"+it[Le-1].toString(16))}break;case 44:var Bn=it[Le++]|it[Le++]<<8,bn=it[Le++]|it[Le++]<<8,en=it[Le++]|it[Le++]<<8,ti=it[Le++]|it[Le++]<<8,pi=it[Le++],Pi=pi>>6&1,qr=1<<(7&pi)+1,En=Ct,Yn=gt,zt=!1;pi>>7&&(zt=!0,En=Le,Yn=qr,Le+=3*qr);var Ot=Le;for(Le++;;){var kt;if(!((kt=it[Le++])>=0))throw Error("Invalid block size");if(kt===0)break;Le+=kt}$r.push({x:Bn,y:bn,width:en,height:ti,has_local_palette:zt,palette_offset:En,palette_size:Yn,data_offset:Ot,data_length:Le-Ot,transparent_index:mn,interlaced:!!Pi,delay:Yr,disposal:Ar});break;case 59:pr=!1;break;default:throw new Error("Unknown gif block: 0x"+it[Le-1].toString(16))}this.numFrames=function(){return $r.length},this.loopCount=function(){return zn},this.frameInfo=function(Bt){if(Bt<0||Bt>=$r.length)throw new Error("Frame index out of range.");return $r[Bt]},this.decodeAndBlitFrameBGRA=function(Bt,Wt){var Lt=this.frameInfo(Bt),dr=Lt.width*Lt.height,yr=new Uint8Array(dr);Et(it,Lt.data_offset,yr,dr);var br=Lt.palette_offset,Mr=Lt.transparent_index;Mr===null&&(Mr=256);var Gn=Lt.width,Mn=je-Gn,di=Gn,vn=4*(Lt.y*je+Lt.x),Ur=4*((Lt.y+Lt.height)*je+Lt.x),In=vn,Qn=4*Mn;Lt.interlaced===!0&&(Qn+=4*je*7);for(var qn=8,oi=0,Ti=yr.length;oi<Ti;++oi){var ki=yr[oi];if(di===0&&(di=Gn,(In+=Qn)>=Ur&&(Qn=4*Mn+4*je*(qn-1),In=vn+(Gn+Mn)*(qn<<1),qn>>=1)),ki===Mr)In+=4;else{var Ri=it[br+3*ki],oa=it[br+3*ki+1],ma=it[br+3*ki+2];Wt[In++]=ma,Wt[In++]=oa,Wt[In++]=Ri,Wt[In++]=255}--di}},this.decodeAndBlitFrameRGBA=function(Bt,Wt){var Lt=this.frameInfo(Bt),dr=Lt.width*Lt.height,yr=new Uint8Array(dr);Et(it,Lt.data_offset,yr,dr);var br=Lt.palette_offset,Mr=Lt.transparent_index;Mr===null&&(Mr=256);var Gn=Lt.width,Mn=je-Gn,di=Gn,vn=4*(Lt.y*je+Lt.x),Ur=4*((Lt.y+Lt.height)*je+Lt.x),In=vn,Qn=4*Mn;Lt.interlaced===!0&&(Qn+=4*je*7);for(var qn=8,oi=0,Ti=yr.length;oi<Ti;++oi){var ki=yr[oi];if(di===0&&(di=Gn,(In+=Qn)>=Ur&&(Qn=4*Mn+4*je*(qn-1),In=vn+(Gn+Mn)*(qn<<1),qn>>=1)),ki===Mr)In+=4;else{var Ri=it[br+3*ki],oa=it[br+3*ki+1],ma=it[br+3*ki+2];Wt[In++]=Ri,Wt[In++]=oa,Wt[In++]=ma,Wt[In++]=255}--di}}}function Et(it,Le,je,Xe){for(var nt=it[Le++],Ze=1<<nt,ot=Ze+1,Ct=ot+1,gt=nt+1,pr=(1<<gt)-1,$r=0,Yr=0,mn=0,Ar=it[Le++],zn=new Int32Array(4096),Fr=null;;){for(;$r<16&&Ar!==0;)Yr|=it[Le++]<<$r,$r+=8,Ar===1?Ar=it[Le++]:--Ar;if($r<gt)break;var Bn=Yr≺if(Yr>>=gt,$r-=gt,Bn!==Ze){if(Bn===ot)break;for(var bn=Bn<Ct?Bn:Fr,en=0,ti=bn;ti>Ze;)ti=zn[ti]>>8,++en;var pi=ti;if(mn+en+(bn!==Bn?1:0)>Xe)return void d.log("Warning, gif stream longer than expected.");je[mn++]=pi;var Pi=mn+=en;for(bn!==Bn&&(je[mn++]=pi),ti=bn;en--;)ti=zn[ti],je[--Pi]=255&ti,ti>>=8;Fr!==null&&Ct<4096&&(zn[Ct++]=Fr<<8|pi,Ct>=pr+1&><12&&(++gt,pr=pr<<1|1)),Fr=Bn}else Ct=ot+1,pr=(1<<(gt=nt+1))-1,Fr=null}return mn!==Xe&&d.log("Warning, gif stream shorter than expected."),je}/**
|
|
|
* @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 Yt(it){var Le,je,Xe,nt,Ze,ot=Math.floor,Ct=new Array(64),gt=new Array(64),pr=new Array(64),$r=new Array(64),Yr=new Array(65535),mn=new Array(65535),Ar=new Array(64),zn=new Array(64),Fr=[],Bn=0,bn=7,en=new Array(64),ti=new Array(64),pi=new Array(64),Pi=new Array(256),qr=new Array(2048),En=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Yn=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],zt=[0,1,2,3,4,5,6,7,8,9,10,11],Ot=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],kt=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Bt=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Wt=[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],dr=[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 yr(vn,Ur){for(var In=0,Qn=0,qn=new Array,oi=1;oi<=16;oi++){for(var Ti=1;Ti<=vn[oi];Ti++)qn[Ur[Qn]]=[],qn[Ur[Qn]][0]=In,qn[Ur[Qn]][1]=oi,Qn++,In++;In*=2}return qn}function br(vn){for(var Ur=vn[0],In=vn[1]-1;In>=0;)Ur&1<<In&&(Bn|=1<<bn),In--,--bn<0&&(Bn==255?(Mr(255),Mr(0)):Mr(Bn),bn=7,Bn=0)}function Mr(vn){Fr.push(vn)}function Gn(vn){Mr(vn>>8&255),Mr(255&vn)}function Mn(vn,Ur,In,Qn,qn){for(var oi,Ti=qn[0],ki=qn[240],Ri=function(ta,ra){var Ir,xr,Cn,mr,kr,Gr,ln,Fn,_t,Or,Lr=0;for(_t=0;_t<8;++_t){Ir=ta[Lr],xr=ta[Lr+1],Cn=ta[Lr+2],mr=ta[Lr+3],kr=ta[Lr+4],Gr=ta[Lr+5],ln=ta[Lr+6];var rn=Ir+(Fn=ta[Lr+7]),xn=Ir-Fn,Ln=xr+ln,Sn=xr-ln,ei=Cn+Gr,Kn=Cn-Gr,mi=mr+kr,Fi=mr-kr,bi=rn+mi,Ii=rn-mi,Vi=Ln+ei,ea=Ln-ei;ta[Lr]=bi+Vi,ta[Lr+4]=bi-Vi;var Xi=.707106781*(ea+Ii);ta[Lr+2]=Ii+Xi,ta[Lr+6]=Ii-Xi;var zi=.382683433*((bi=Fi+Kn)-(ea=Sn+xn)),Hi=.5411961*bi+zi,Ji=1.306562965*ea+zi,ca=.707106781*(Vi=Kn+Sn),Ca=xn+ca,na=xn-ca;ta[Lr+5]=na+Hi,ta[Lr+3]=na-Hi,ta[Lr+1]=Ca+Ji,ta[Lr+7]=Ca-Ji,Lr+=8}for(Lr=0,_t=0;_t<8;++_t){Ir=ta[Lr],xr=ta[Lr+8],Cn=ta[Lr+16],mr=ta[Lr+24],kr=ta[Lr+32],Gr=ta[Lr+40],ln=ta[Lr+48];var Pa=Ir+(Fn=ta[Lr+56]),La=Ir-Fn,va=xr+ln,ga=xr-ln,Oa=Cn+Gr,Aa=Cn-Gr,Xa=mr+kr,_a=mr-kr,Va=Pa+Xa,Bi=Pa-Xa,io=va+Oa,oo=va-Oa;ta[Lr]=Va+io,ta[Lr+32]=Va-io;var Qo=.707106781*(oo+Bi);ta[Lr+16]=Bi+Qo,ta[Lr+48]=Bi-Qo;var mo=.382683433*((Va=_a+Aa)-(oo=ga+La)),To=.5411961*Va+mo,ao=1.306562965*oo+mo,So=.707106781*(io=Aa+ga),bo=La+So,to=La-So;ta[Lr+40]=to+To,ta[Lr+24]=to-To,ta[Lr+8]=bo+ao,ta[Lr+56]=bo-ao,Lr++}for(_t=0;_t<64;++_t)Or=ta[_t]*ra[_t],Ar[_t]=Or>0?Or+.5|0:Or-.5|0;return Ar}(vn,Ur),oa=0;oa<64;++oa)zn[En[oa]]=Ri[oa];var ma=zn[0]-In;In=zn[0],ma==0?br(Qn[0]):(br(Qn[mn[oi=32767+ma]]),br(Yr[oi]));for(var aa=63;aa>0&&zn[aa]==0;)aa--;if(aa==0)return br(Ti),In;for(var ba,yi=1;yi<=aa;){for(var kn=yi;zn[yi]==0&&yi<=aa;)++yi;var ji=yi-kn;if(ji>=16){ba=ji>>4;for(var ha=1;ha<=ba;++ha)br(ki);ji&=15}oi=32767+zn[yi],br(qn[(ji<<4)+mn[oi]]),br(Yr[oi]),yi++}return aa!=63&&br(Ti),In}function di(vn){(vn=Math.min(Math.max(vn,1),100),Ze!=vn)&&(!function(Ur){for(var In=[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],Qn=0;Qn<64;Qn++){var qn=ot((In[Qn]*Ur+50)/100);qn=Math.min(Math.max(qn,1),255),Ct[En[Qn]]=qn}for(var oi=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Ti=0;Ti<64;Ti++){var ki=ot((oi[Ti]*Ur+50)/100);ki=Math.min(Math.max(ki,1),255),gt[En[Ti]]=ki}for(var Ri=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],oa=0,ma=0;ma<8;ma++)for(var aa=0;aa<8;aa++)pr[oa]=1/(Ct[En[oa]]*Ri[ma]*Ri[aa]*8),$r[oa]=1/(gt[En[oa]]*Ri[ma]*Ri[aa]*8),oa++}(vn<50?Math.floor(5e3/vn):Math.floor(200-2*vn)),Ze=vn)}this.encode=function(vn,Ur){Ur&&di(Ur),Fr=new Array,Bn=0,bn=7,Gn(65496),Gn(65504),Gn(16),Mr(74),Mr(70),Mr(73),Mr(70),Mr(0),Mr(1),Mr(1),Mr(0),Gn(1),Gn(1),Mr(0),Mr(0),function(){Gn(65499),Gn(132),Mr(0);for(var xr=0;xr<64;xr++)Mr(Ct[xr]);Mr(1);for(var Cn=0;Cn<64;Cn++)Mr(gt[Cn])}(),function(xr,Cn){Gn(65472),Gn(17),Mr(8),Gn(Cn),Gn(xr),Mr(3),Mr(1),Mr(17),Mr(0),Mr(2),Mr(17),Mr(1),Mr(3),Mr(17),Mr(1)}(vn.width,vn.height),function(){Gn(65476),Gn(418),Mr(0);for(var xr=0;xr<16;xr++)Mr(Yn[xr+1]);for(var Cn=0;Cn<=11;Cn++)Mr(zt[Cn]);Mr(16);for(var mr=0;mr<16;mr++)Mr(Ot[mr+1]);for(var kr=0;kr<=161;kr++)Mr(kt[kr]);Mr(1);for(var Gr=0;Gr<16;Gr++)Mr(Bt[Gr+1]);for(var ln=0;ln<=11;ln++)Mr(Wt[ln]);Mr(17);for(var Fn=0;Fn<16;Fn++)Mr(Lt[Fn+1]);for(var _t=0;_t<=161;_t++)Mr(dr[_t])}(),Gn(65498),Gn(12),Mr(3),Mr(1),Mr(0),Mr(2),Mr(17),Mr(3),Mr(17),Mr(0),Mr(63),Mr(0);var In=0,Qn=0,qn=0;Bn=0,bn=7,this.encode.displayName="_encode_";for(var oi,Ti,ki,Ri,oa,ma,aa,ba,yi,kn=vn.data,ji=vn.width,ha=vn.height,ta=4*ji,ra=0;ra<ha;){for(oi=0;oi<ta;){for(oa=ta*ra+oi,aa=-1,ba=0,yi=0;yi<64;yi++)ma=oa+(ba=yi>>3)*ta+(aa=4*(7&yi)),ra+ba>=ha&&(ma-=ta*(ra+1+ba-ha)),oi+aa>=ta&&(ma-=oi+aa-ta+4),Ti=kn[ma++],ki=kn[ma++],Ri=kn[ma++],en[yi]=(qr[Ti]+qr[ki+256>>0]+qr[Ri+512>>0]>>16)-128,ti[yi]=(qr[Ti+768>>0]+qr[ki+1024>>0]+qr[Ri+1280>>0]>>16)-128,pi[yi]=(qr[Ti+1280>>0]+qr[ki+1536>>0]+qr[Ri+1792>>0]>>16)-128;In=Mn(en,pr,In,Le,Xe),Qn=Mn(ti,$r,Qn,je,nt),qn=Mn(pi,$r,qn,je,nt),oi+=32}ra+=8}if(bn>=0){var Ir=[];Ir[1]=bn+1,Ir[0]=(1<<bn+1)-1,br(Ir)}return Gn(65497),new Uint8Array(Fr)},it=it||50,function(){for(var vn=String.fromCharCode,Ur=0;Ur<256;Ur++)Pi[Ur]=vn(Ur)}(),Le=yr(Yn,zt),je=yr(Bt,Wt),Xe=yr(Ot,kt),nt=yr(Lt,dr),function(){for(var vn=1,Ur=2,In=1;In<=15;In++){for(var Qn=vn;Qn<Ur;Qn++)mn[32767+Qn]=In,Yr[32767+Qn]=[],Yr[32767+Qn][1]=In,Yr[32767+Qn][0]=Qn;for(var qn=-(Ur-1);qn<=-vn;qn++)mn[32767+qn]=In,Yr[32767+qn]=[],Yr[32767+qn][1]=In,Yr[32767+qn][0]=Ur-1+qn;vn<<=1,Ur<<=1}}(),function(){for(var vn=0;vn<256;vn++)qr[vn]=19595*vn,qr[vn+256>>0]=38470*vn,qr[vn+512>>0]=7471*vn+32768,qr[vn+768>>0]=-11059*vn,qr[vn+1024>>0]=-21709*vn,qr[vn+1280>>0]=32768*vn+8421375,qr[vn+1536>>0]=-27439*vn,qr[vn+1792>>0]=-5329*vn}(),di(it)}/**
|
|
|
* @license
|
|
|
* Copyright (c) 2017 Aras Abbasi
|
|
|
*
|
|
|
* Licensed under the MIT License.
|
|
|
* http://opensource.org/licenses/mit-license
|
|
|
*/function Rr(it,Le){if(this.pos=0,this.buffer=it,this.datav=new DataView(it.buffer),this.is_with_alpha=!!Le,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 zr(it){function Le(Yn){if(!Yn)throw Error("assert :P")}function je(Yn,zt,Ot){for(var kt=0;4>kt;kt++)if(Yn[zt+kt]!=Ot.charCodeAt(kt))return!0;return!1}function Xe(Yn,zt,Ot,kt,Bt){for(var Wt=0;Wt<Bt;Wt++)Yn[zt+Wt]=Ot[kt+Wt]}function nt(Yn,zt,Ot,kt){for(var Bt=0;Bt<kt;Bt++)Yn[zt+Bt]=Ot}function Ze(Yn){return new Int32Array(Yn)}function ot(Yn,zt){for(var Ot=[],kt=0;kt<Yn;kt++)Ot.push(new zt);return Ot}function Ct(Yn,zt){var Ot=[];return function kt(Bt,Wt,Lt){for(var dr=Lt[Wt],yr=0;yr<dr&&(Bt.push(Lt.length>Wt+1?[]:new zt),!(Lt.length<Wt+1));yr++)kt(Bt[yr],Wt+1,Lt)}(Ot,0,Yn),Ot}var gt=function(){var zt=this;function Ot(Ee,Ye){for(var Tt=1<<Ye-1>>>0;Ee&Tt;)Tt>>>=1;return Tt?(Ee&Tt-1)+Tt:Ee}function kt(Ee,Ye,Tt,hr,Br){Le(!(hr%Tt));do Ee[Ye+(hr-=Tt)]=Br;while(0<hr)}function Bt(Ee,Ye,Tt,hr,Br){if(Le(2328>=Br),512>=Br)var on=Ze(512);else if((on=Ze(Br))==null)return 0;return function(Ue,ae,_e,$e,wt,Vt){var rr,ar,Vr=ae,pn=1<<_e,Wr=Ze(16),jr=Ze(16);for(Le(wt!=0),Le($e!=null),Le(Ue!=null),Le(0<_e),ar=0;ar<wt;++ar){if(15<$e[ar])return 0;++Wr[$e[ar]]}if(Wr[0]==wt)return 0;for(jr[1]=0,rr=1;15>rr;++rr){if(Wr[rr]>1<<rr)return 0;jr[rr+1]=jr[rr]+Wr[rr]}for(ar=0;ar<wt;++ar)rr=$e[ar],0<$e[ar]&&(Vt[jr[rr]++]=ar);if(jr[15]==1)return($e=new Wt).g=0,$e.value=Vt[0],kt(Ue,Vr,1,pn,$e),pn;var sn,yn=-1,Vn=pn-1,Li=0,Mi=1,da=1,$i=1<<_e;for(ar=0,rr=1,wt=2;rr<=_e;++rr,wt<<=1){if(Mi+=da<<=1,0>(da-=Wr[rr]))return 0;for(;0<Wr[rr];--Wr[rr])($e=new Wt).g=rr,$e.value=Vt[ar++],kt(Ue,Vr+Li,wt,$i,$e),Li=Ot(Li,rr)}for(rr=_e+1,wt=2;15>=rr;++rr,wt<<=1){if(Mi+=da<<=1,0>(da-=Wr[rr]))return 0;for(;0<Wr[rr];--Wr[rr]){if($e=new Wt,(Li&Vn)!=yn){for(Vr+=$i,sn=1<<(yn=rr)-_e;15>yn&&!(0>=(sn-=Wr[yn]));)++yn,sn<<=1;pn+=$i=1<<(sn=yn-_e),Ue[ae+(yn=Li&Vn)].g=sn+_e,Ue[ae+yn].value=Vr-ae-yn}$e.g=rr-_e,$e.value=Vt[ar++],kt(Ue,Vr+(Li>>_e),wt,$i,$e),Li=Ot(Li,rr)}}return Mi!=2*jr[15]-1?0:pn}(Ee,Ye,Tt,hr,Br,on)}function Wt(){this.value=this.g=0}function Lt(){this.value=this.g=0}function dr(){this.G=ot(5,Wt),this.H=Ze(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=ot(vo,Lt)}function yr(Ee,Ye,Tt,hr){Le(Ee!=null),Le(Ye!=null),Le(2147483648>hr),Ee.Ca=254,Ee.I=0,Ee.b=-8,Ee.Ka=0,Ee.oa=Ye,Ee.pa=Tt,Ee.Jd=Ye,Ee.Yc=Tt+hr,Ee.Zc=4<=hr?Tt+hr-4+1:Tt,Ti(Ee)}function br(Ee,Ye){for(var Tt=0;0<Ye--;)Tt|=Ri(Ee,128)<<Ye;return Tt}function Mr(Ee,Ye){var Tt=br(Ee,Ye);return ki(Ee)?-Tt:Tt}function Gn(Ee,Ye,Tt,hr){var Br,on=0;for(Le(Ee!=null),Le(Ye!=null),Le(4294967288>hr),Ee.Sb=hr,Ee.Ra=0,Ee.u=0,Ee.h=0,4<hr&&(hr=4),Br=0;Br<hr;++Br)on+=Ye[Tt+Br]<<8*Br;Ee.Ra=on,Ee.bb=hr,Ee.oa=Ye,Ee.pa=Tt}function Mn(Ee){for(;8<=Ee.u&&Ee.bb<Ee.Sb;)Ee.Ra>>>=8,Ee.Ra+=Ee.oa[Ee.pa+Ee.bb]<<gs-8>>>0,++Ee.bb,Ee.u-=8;Qn(Ee)&&(Ee.h=1,Ee.u=0)}function di(Ee,Ye){if(Le(0<=Ye),!Ee.h&&Ye<=rl){var Tt=In(Ee)&Ms[Ye];return Ee.u+=Ye,Mn(Ee),Tt}return Ee.h=1,Ee.u=0}function vn(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Ur(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function In(Ee){return Ee.Ra>>>(Ee.u&gs-1)>>>0}function Qn(Ee){return Le(Ee.bb<=Ee.Sb),Ee.h||Ee.bb==Ee.Sb&&Ee.u>gs}function qn(Ee,Ye){Ee.u=Ye,Ee.h=Qn(Ee)}function oi(Ee){Ee.u>=Ra&&(Le(Ee.u>=Ra),Mn(Ee))}function Ti(Ee){Le(Ee!=null&&Ee.oa!=null),Ee.pa<Ee.Zc?(Ee.I=(Ee.oa[Ee.pa++]|Ee.I<<8)>>>0,Ee.b+=8):(Le(Ee!=null&&Ee.oa!=null),Ee.pa<Ee.Yc?(Ee.b+=8,Ee.I=Ee.oa[Ee.pa++]|Ee.I<<8):Ee.Ka?Ee.b=0:(Ee.I<<=8,Ee.b+=8,Ee.Ka=1))}function ki(Ee){return br(Ee,1)}function Ri(Ee,Ye){var Tt=Ee.Ca;0>Ee.b&&Ti(Ee);var hr=Ee.b,Br=Tt*Ye>>>8,on=(Ee.I>>>hr>Br)+0;for(on?(Tt-=Br,Ee.I-=Br+1<<hr>>>0):Tt=Br+1,hr=Tt,Br=0;256<=hr;)Br+=8,hr>>=8;return hr=7^Br+dl[hr],Ee.b-=hr,Ee.Ca=(Tt<<hr)-1,on}function oa(Ee,Ye,Tt){Ee[Ye+0]=Tt>>24&255,Ee[Ye+1]=Tt>>16&255,Ee[Ye+2]=Tt>>8&255,Ee[Ye+3]=Tt>>0&255}function ma(Ee,Ye){return Ee[Ye+0]<<0|Ee[Ye+1]<<8}function aa(Ee,Ye){return ma(Ee,Ye)|Ee[Ye+2]<<16}function ba(Ee,Ye){return ma(Ee,Ye)|ma(Ee,Ye+2)<<16}function yi(Ee,Ye){var Tt=1<<Ye;return Le(Ee!=null),Le(0<Ye),Ee.X=Ze(Tt),Ee.X==null?0:(Ee.Mb=32-Ye,Ee.Xa=Ye,1)}function kn(Ee,Ye){Le(Ee!=null),Le(Ye!=null),Le(Ee.Xa==Ye.Xa),Xe(Ye.X,0,Ee.X,0,1<<Ye.Xa)}function ji(){this.X=[],this.Xa=this.Mb=0}function ha(Ee,Ye,Tt,hr){Le(Tt!=null),Le(hr!=null);var Br=Tt[0],on=hr[0];return Br==0&&(Br=(Ee*on+Ye/2)/Ye),on==0&&(on=(Ye*Br+Ee/2)/Ee),0>=Br||0>=on?0:(Tt[0]=Br,hr[0]=on,1)}function ta(Ee,Ye){return Ee+(1<<Ye)-1>>>Ye}function ra(Ee,Ye){return((4278255360&Ee)+(4278255360&Ye)>>>0&4278255360)+((16711935&Ee)+(16711935&Ye)>>>0&16711935)>>>0}function Ir(Ee,Ye){zt[Ye]=function(Tt,hr,Br,on,Ue,ae,_e){var $e;for($e=0;$e<Ue;++$e){var wt=zt[Ee](ae[_e+$e-1],Br,on+$e);ae[_e+$e]=ra(Tt[hr+$e],wt)}}}function xr(){this.ud=this.hd=this.jd=0}function Cn(Ee,Ye){return((4278124286&(Ee^Ye))>>>1)+(Ee&Ye)>>>0}function mr(Ee){return 0<=Ee&&256>Ee?Ee:0>Ee?0:255<Ee?255:void 0}function kr(Ee,Ye){return mr(Ee+(Ee-Ye+.5>>1))}function Gr(Ee,Ye,Tt){return Math.abs(Ye-Tt)-Math.abs(Ee-Tt)}function ln(Ee,Ye,Tt,hr,Br,on,Ue){for(hr=on[Ue-1],Tt=0;Tt<Br;++Tt)on[Ue+Tt]=hr=ra(Ee[Ye+Tt],hr)}function Fn(Ee,Ye,Tt,hr,Br){var on;for(on=0;on<Tt;++on){var Ue=Ee[Ye+on],ae=Ue>>8&255,_e=16711935&(_e=(_e=16711935&Ue)+((ae<<16)+ae));hr[Br+on]=(4278255360&Ue)+_e>>>0}}function _t(Ee,Ye){Ye.jd=Ee>>0&255,Ye.hd=Ee>>8&255,Ye.ud=Ee>>16&255}function Or(Ee,Ye,Tt,hr,Br,on){var Ue;for(Ue=0;Ue<hr;++Ue){var ae=Ye[Tt+Ue],_e=ae>>>8,$e=ae,wt=255&(wt=(wt=ae>>>16)+((Ee.jd<<24>>24)*(_e<<24>>24)>>>5));$e=255&($e=($e=$e+((Ee.hd<<24>>24)*(_e<<24>>24)>>>5))+((Ee.ud<<24>>24)*(wt<<24>>24)>>>5)),Br[on+Ue]=(4278255360&ae)+(wt<<16)+$e}}function Lr(Ee,Ye,Tt,hr,Br){zt[Ye]=function(on,Ue,ae,_e,$e,wt,Vt,rr,ar){for(_e=Vt;_e<rr;++_e)for(Vt=0;Vt<ar;++Vt)$e[wt++]=Br(ae[hr(on[Ue++])])},zt[Ee]=function(on,Ue,ae,_e,$e,wt,Vt){var rr=8>>on.b,ar=on.Ea,Vr=on.K[0],pn=on.w;if(8>rr)for(on=(1<<on.b)-1,pn=(1<<rr)-1;Ue<ae;++Ue){var Wr,jr=0;for(Wr=0;Wr<ar;++Wr)Wr&on||(jr=hr(_e[$e++])),wt[Vt++]=Br(Vr[jr&pn]),jr>>=rr}else zt["VP8LMapColor"+Tt](_e,$e,Vr,pn,wt,Vt,Ue,ae,ar)}}function rn(Ee,Ye,Tt,hr,Br){for(Tt=Ye+Tt;Ye<Tt;){var on=Ee[Ye++];hr[Br++]=on>>16&255,hr[Br++]=on>>8&255,hr[Br++]=on>>0&255}}function xn(Ee,Ye,Tt,hr,Br){for(Tt=Ye+Tt;Ye<Tt;){var on=Ee[Ye++];hr[Br++]=on>>16&255,hr[Br++]=on>>8&255,hr[Br++]=on>>0&255,hr[Br++]=on>>24&255}}function Ln(Ee,Ye,Tt,hr,Br){for(Tt=Ye+Tt;Ye<Tt;){var on=(Ue=Ee[Ye++])>>16&240|Ue>>12&15,Ue=Ue>>0&240|Ue>>28&15;hr[Br++]=on,hr[Br++]=Ue}}function Sn(Ee,Ye,Tt,hr,Br){for(Tt=Ye+Tt;Ye<Tt;){var on=(Ue=Ee[Ye++])>>16&248|Ue>>13&7,Ue=Ue>>5&224|Ue>>3&31;hr[Br++]=on,hr[Br++]=Ue}}function ei(Ee,Ye,Tt,hr,Br){for(Tt=Ye+Tt;Ye<Tt;){var on=Ee[Ye++];hr[Br++]=on>>0&255,hr[Br++]=on>>8&255,hr[Br++]=on>>16&255}}function Kn(Ee,Ye,Tt,hr,Br,on){if(on==0)for(Tt=Ye+Tt;Ye<Tt;)oa(hr,((on=Ee[Ye++])[0]>>24|on[1]>>8&65280|on[2]<<8&16711680|on[3]<<24)>>>0),Br+=32;else Xe(hr,Br,Ee,Ye,Tt)}function mi(Ee,Ye){zt[Ye][0]=zt[Ee+"0"],zt[Ye][1]=zt[Ee+"1"],zt[Ye][2]=zt[Ee+"2"],zt[Ye][3]=zt[Ee+"3"],zt[Ye][4]=zt[Ee+"4"],zt[Ye][5]=zt[Ee+"5"],zt[Ye][6]=zt[Ee+"6"],zt[Ye][7]=zt[Ee+"7"],zt[Ye][8]=zt[Ee+"8"],zt[Ye][9]=zt[Ee+"9"],zt[Ye][10]=zt[Ee+"10"],zt[Ye][11]=zt[Ee+"11"],zt[Ye][12]=zt[Ee+"12"],zt[Ye][13]=zt[Ee+"13"],zt[Ye][14]=zt[Ee+"0"],zt[Ye][15]=zt[Ee+"0"]}function Fi(Ee){return Ee==Lu||Ee==zl||Ee==ru||Ee==ou}function bi(){this.eb=[],this.size=this.A=this.fb=0}function Ii(){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 Vi(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new bi,this.f.kb=new Ii,this.sd=null}function ea(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Xi(){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 zi(Ee){return alert("todo:WebPSamplerProcessPlane"),Ee.T}function Hi(Ee,Ye){var Tt=Ee.T,hr=Ye.ba.f.RGBA,Br=hr.eb,on=hr.fb+Ee.ka*hr.A,Ue=ze[Ye.ba.S],ae=Ee.y,_e=Ee.O,$e=Ee.f,wt=Ee.N,Vt=Ee.ea,rr=Ee.W,ar=Ye.cc,Vr=Ye.dc,pn=Ye.Mc,Wr=Ye.Nc,jr=Ee.ka,sn=Ee.ka+Ee.T,yn=Ee.U,Vn=yn+1>>1;for(jr==0?Ue(ae,_e,null,null,$e,wt,Vt,rr,$e,wt,Vt,rr,Br,on,null,null,yn):(Ue(Ye.ec,Ye.fc,ae,_e,ar,Vr,pn,Wr,$e,wt,Vt,rr,Br,on-hr.A,Br,on,yn),++Tt);jr+2<sn;jr+=2)ar=$e,Vr=wt,pn=Vt,Wr=rr,wt+=Ee.Rc,rr+=Ee.Rc,on+=2*hr.A,Ue(ae,(_e+=2*Ee.fa)-Ee.fa,ae,_e,ar,Vr,pn,Wr,$e,wt,Vt,rr,Br,on-hr.A,Br,on,yn);return _e+=Ee.fa,Ee.j+sn<Ee.o?(Xe(Ye.ec,Ye.fc,ae,_e,yn),Xe(Ye.cc,Ye.dc,$e,wt,Vn),Xe(Ye.Mc,Ye.Nc,Vt,rr,Vn),Tt--):1&sn||Ue(ae,_e,null,null,$e,wt,Vt,rr,$e,wt,Vt,rr,Br,on+hr.A,null,null,yn),Tt}function Ji(Ee,Ye,Tt){var hr=Ee.F,Br=[Ee.J];if(hr!=null){var on=Ee.U,Ue=Ye.ba.S,ae=Ue==Ol||Ue==ru;Ye=Ye.ba.f.RGBA;var _e=[0],$e=Ee.ka;_e[0]=Ee.T,Ee.Kb&&($e==0?--_e[0]:(--$e,Br[0]-=Ee.width),Ee.j+Ee.ka+Ee.T==Ee.o&&(_e[0]=Ee.o-Ee.j-$e));var wt=Ye.eb;$e=Ye.fb+$e*Ye.A,Ee=Nl(hr,Br[0],Ee.width,on,_e,wt,$e+(ae?0:3),Ye.A),Le(Tt==_e),Ee&&Fi(Ue)&&Wl(wt,$e,ae,on,_e,Ye.A)}return 0}function ca(Ee){var Ye=Ee.ma,Tt=Ye.ba.S,hr=11>Tt,Br=Tt==Su||Tt==Au||Tt==Ol||Tt==cu||Tt==12||Fi(Tt);if(Ye.memory=null,Ye.Ib=null,Ye.Jb=null,Ye.Nd=null,!As(Ye.Oa,Ee,Br?11:12))return 0;if(Br&&Fi(Tt)&&Je(),Ee.da)alert("todo:use_scaling");else{if(hr){if(Ye.Ib=zi,Ee.Kb){if(Tt=Ee.U+1>>1,Ye.memory=Ze(Ee.U+2*Tt),Ye.memory==null)return 0;Ye.ec=Ye.memory,Ye.fc=0,Ye.cc=Ye.ec,Ye.dc=Ye.fc+Ee.U,Ye.Mc=Ye.cc,Ye.Nc=Ye.dc+Tt,Ye.Ib=Hi,Je()}}else alert("todo:EmitYUV");Br&&(Ye.Jb=Ji,hr&&Se())}if(hr&&!Zi){for(Ee=0;256>Ee;++Ee)ka[Ee]=89858*(Ee-128)+Rn>>On,Sa[Ee]=-22014*(Ee-128)+Rn,Ba[Ee]=-45773*(Ee-128),Ga[Ee]=113618*(Ee-128)+Rn>>On;for(Ee=Zn;Ee<wi;++Ee)Ye=76283*(Ee-16)+Rn>>On,Go[Ee-Zn]=_o(Ye,255),bs[Ee-Zn]=_o(Ye+8>>4,15);Zi=1}return 1}function Ca(Ee){var Ye=Ee.ma,Tt=Ee.U,hr=Ee.T;return Le(!(1&Ee.ka)),0>=Tt||0>=hr?0:(Tt=Ye.Ib(Ee,Ye),Ye.Jb!=null&&Ye.Jb(Ee,Ye,Tt),Ye.Dc+=Tt,1)}function na(Ee){Ee.ma.memory=null}function Pa(Ee,Ye,Tt,hr){return di(Ee,8)!=47?0:(Ye[0]=di(Ee,14)+1,Tt[0]=di(Ee,14)+1,hr[0]=di(Ee,1),di(Ee,3)!=0?0:!Ee.h)}function La(Ee,Ye){if(4>Ee)return Ee+1;var Tt=Ee-2>>1;return(2+(1&Ee)<<Tt)+di(Ye,Tt)+1}function va(Ee,Ye){return 120<Ye?Ye-120:1<=(Tt=((Tt=yu[Ye-1])>>4)*Ee+(8-(15&Tt)))?Tt:1;var Tt}function ga(Ee,Ye,Tt){var hr=In(Tt),Br=Ee[Ye+=255&hr].g-8;return 0<Br&&(qn(Tt,Tt.u+8),hr=In(Tt),Ye+=Ee[Ye].value,Ye+=hr&(1<<Br)-1),qn(Tt,Tt.u+Ee[Ye].g),Ee[Ye].value}function Oa(Ee,Ye,Tt){return Tt.g+=Ee.g,Tt.value+=Ee.value<<Ye>>>0,Le(8>=Tt.g),Ee.g}function Aa(Ee,Ye,Tt){var hr=Ee.xc;return Le((Ye=hr==0?0:Ee.vc[Ee.md*(Tt>>hr)+(Ye>>hr)])<Ee.Wb),Ee.Ya[Ye]}function Xa(Ee,Ye,Tt,hr){var Br=Ee.ab,on=Ee.c*Ye,Ue=Ee.C;Ye=Ue+Ye;var ae=Tt,_e=hr;for(hr=Ee.Ta,Tt=Ee.Ua;0<Br--;){var $e=Ee.gc[Br],wt=Ue,Vt=Ye,rr=ae,ar=_e,Vr=(_e=hr,ae=Tt,$e.Ea);switch(Le(wt<Vt),Le(Vt<=$e.nc),$e.hc){case 2:Os(rr,ar,(Vt-wt)*Vr,_e,ae);break;case 0:var pn=wt,Wr=Vt,jr=_e,sn=ae,yn=($i=$e).Ea;pn==0&&(fl(rr,ar,null,null,1,jr,sn),ln(rr,ar+1,0,0,yn-1,jr,sn+1),ar+=yn,sn+=yn,++pn);for(var Vn=1<<$i.b,Li=Vn-1,Mi=ta(yn,$i.b),da=$i.K,$i=$i.w+(pn>>$i.b)*Mi;pn<Wr;){var Qa=da,ya=$i,fo=1;for(Us(rr,ar,jr,sn-yn,1,jr,sn);fo<yn;){var za=(fo&~Li)+Vn;za>yn&&(za=yn),(0,Ts[Qa[ya++]>>8&15])(rr,ar+ +fo,jr,sn+fo-yn,za-fo,jr,sn+fo),fo=za}ar+=yn,sn+=yn,++pn&Li||($i+=Mi)}Vt!=$e.nc&&Xe(_e,ae-Vr,_e,ae+(Vt-wt-1)*Vr,Vr);break;case 1:for(Vr=rr,Wr=ar,yn=(rr=$e.Ea)-(sn=rr&~(jr=(ar=1<<$e.b)-1)),pn=ta(rr,$e.b),Vn=$e.K,$e=$e.w+(wt>>$e.b)*pn;wt<Vt;){for(Li=Vn,Mi=$e,da=new xr,$i=Wr+sn,Qa=Wr+rr;Wr<$i;)_t(Li[Mi++],da),Ws(da,Vr,Wr,ar,_e,ae),Wr+=ar,ae+=ar;Wr<Qa&&(_t(Li[Mi++],da),Ws(da,Vr,Wr,yn,_e,ae),Wr+=yn,ae+=yn),++wt&jr||($e+=pn)}break;case 3:if(rr==_e&&ar==ae&&0<$e.b){for(Wr=_e,rr=Vr=ae+(Vt-wt)*Vr-(sn=(Vt-wt)*ta($e.Ea,$e.b)),ar=_e,jr=ae,pn=[],sn=(yn=sn)-1;0<=sn;--sn)pn[sn]=ar[jr+sn];for(sn=yn-1;0<=sn;--sn)Wr[rr+sn]=pn[sn];Xs($e,wt,Vt,_e,Vr,_e,ae)}else Xs($e,wt,Vt,rr,ar,_e,ae)}ae=hr,_e=Tt}_e!=Tt&&Xe(hr,Tt,ae,_e,on)}function _a(Ee,Ye){var Tt=Ee.V,hr=Ee.Ba+Ee.c*Ee.C,Br=Ye-Ee.C;if(Le(Ye<=Ee.l.o),Le(16>=Br),0<Br){var on=Ee.l,Ue=Ee.Ta,ae=Ee.Ua,_e=on.width;if(Xa(Ee,Br,Tt,hr),Br=ae=[ae],Le((Tt=Ee.C)<(hr=Ye)),Le(on.v<on.va),hr>on.o&&(hr=on.o),Tt<on.j){var $e=on.j-Tt;Tt=on.j,Br[0]+=$e*_e}if(Tt>=hr?Tt=0:(Br[0]+=4*on.v,on.ka=Tt-on.j,on.U=on.va-on.v,on.T=hr-Tt,Tt=1),Tt){if(ae=ae[0],11>(Tt=Ee.ca).S){var wt=Tt.f.RGBA,Vt=(hr=Tt.S,Br=on.U,on=on.T,$e=wt.eb,wt.A),rr=on;for(wt=wt.fb+Ee.Ma*wt.A;0<rr--;){var ar=Ue,Vr=ae,pn=Br,Wr=$e,jr=wt;switch(hr){case Sl:Tl(ar,Vr,pn,Wr,jr);break;case Su:pl(ar,Vr,pn,Wr,jr);break;case Lu:pl(ar,Vr,pn,Wr,jr),Wl(Wr,jr,0,pn,1,0);break;case vu:qo(ar,Vr,pn,Wr,jr);break;case Au:Kn(ar,Vr,pn,Wr,jr,1);break;case zl:Kn(ar,Vr,pn,Wr,jr,1),Wl(Wr,jr,0,pn,1,0);break;case Ol:Kn(ar,Vr,pn,Wr,jr,0);break;case ru:Kn(ar,Vr,pn,Wr,jr,0),Wl(Wr,jr,1,pn,1,0);break;case cu:jo(ar,Vr,pn,Wr,jr);break;case ou:jo(ar,Vr,pn,Wr,jr),au(Wr,jr,pn,1,0);break;case du:yo(ar,Vr,pn,Wr,jr);break;default:Le(0)}ae+=_e,wt+=Vt}Ee.Ma+=on}else alert("todo:EmitRescaledRowsYUVA");Le(Ee.Ma<=Tt.height)}}Ee.C=Ye,Le(Ee.C<=Ee.i)}function Va(Ee){var Ye;if(0<Ee.ua)return 0;for(Ye=0;Ye<Ee.Wb;++Ye){var Tt=Ee.Ya[Ye].G,hr=Ee.Ya[Ye].H;if(0<Tt[1][hr[1]+0].g||0<Tt[2][hr[2]+0].g||0<Tt[3][hr[3]+0].g)return 0}return 1}function Bi(Ee,Ye,Tt,hr,Br,on){if(Ee.Z!=0){var Ue=Ee.qd,ae=Ee.rd;for(Le(Te[Ee.Z]!=null);Ye<Tt;++Ye)Te[Ee.Z](Ue,ae,hr,Br,hr,Br,on),Ue=hr,ae=Br,Br+=on;Ee.qd=Ue,Ee.rd=ae}}function io(Ee,Ye){var Tt=Ee.l.ma,hr=Tt.Z==0||Tt.Z==1?Ee.l.j:Ee.C;if(hr=Ee.C<hr?hr:Ee.C,Le(Ye<=Ee.l.o),Ye>hr){var Br=Ee.l.width,on=Tt.ca,Ue=Tt.tb+Br*hr,ae=Ee.V,_e=Ee.Ba+Ee.c*hr,$e=Ee.gc;Le(Ee.ab==1),Le($e[0].hc==3),Ul($e[0],hr,Ye,ae,_e,on,Ue),Bi(Tt,hr,Ye,on,Ue,Br)}Ee.C=Ee.Ma=Ye}function oo(Ee,Ye,Tt,hr,Br,on,Ue){var ae=Ee.$/hr,_e=Ee.$%hr,$e=Ee.m,wt=Ee.s,Vt=Tt+Ee.$,rr=Vt;Br=Tt+hr*Br;var ar=Tt+hr*on,Vr=280+wt.ua,pn=Ee.Pb?ae:16777216,Wr=0<wt.ua?wt.Wa:null,jr=wt.wc,sn=Vt<ar?Aa(wt,_e,ae):null;Le(Ee.C<on),Le(ar<=Br);var yn=!1;e:for(;;){for(;yn||Vt<ar;){var Vn=0;if(ae>=pn){var Li=Vt-Tt;Le((pn=Ee).Pb),pn.wd=pn.m,pn.xd=Li,0<pn.s.ua&&kn(pn.s.Wa,pn.s.vb),pn=ae+bu}if(_e&jr||(sn=Aa(wt,_e,ae)),Le(sn!=null),sn.Qb&&(Ye[Vt]=sn.qb,yn=!0),!yn)if(oi($e),sn.jc){Vn=$e,Li=Ye;var Mi=Vt,da=sn.pd[In(Vn)&vo-1];Le(sn.jc),256>da.g?(qn(Vn,Vn.u+da.g),Li[Mi]=da.value,Vn=0):(qn(Vn,Vn.u+da.g-256),Le(256<=da.value),Vn=da.value),Vn==0&&(yn=!0)}else Vn=ga(sn.G[0],sn.H[0],$e);if($e.h)break;if(yn||256>Vn){if(!yn)if(sn.nd)Ye[Vt]=(sn.qb|Vn<<8)>>>0;else{if(oi($e),yn=ga(sn.G[1],sn.H[1],$e),oi($e),Li=ga(sn.G[2],sn.H[2],$e),Mi=ga(sn.G[3],sn.H[3],$e),$e.h)break;Ye[Vt]=(Mi<<24|yn<<16|Vn<<8|Li)>>>0}if(yn=!1,++Vt,++_e>=hr&&(_e=0,++ae,Ue!=null&&ae<=on&&!(ae%16)&&Ue(Ee,ae),Wr!=null))for(;rr<Vt;)Vn=Ye[rr++],Wr.X[(506832829*Vn&4294967295)>>>Wr.Mb]=Vn}else if(280>Vn){if(Vn=La(Vn-256,$e),Li=ga(sn.G[4],sn.H[4],$e),oi($e),Li=va(hr,Li=La(Li,$e)),$e.h)break;if(Vt-Tt<Li||Br-Vt<Vn)break e;for(Mi=0;Mi<Vn;++Mi)Ye[Vt+Mi]=Ye[Vt+Mi-Li];for(Vt+=Vn,_e+=Vn;_e>=hr;)_e-=hr,++ae,Ue!=null&&ae<=on&&!(ae%16)&&Ue(Ee,ae);if(Le(Vt<=Br),_e&jr&&(sn=Aa(wt,_e,ae)),Wr!=null)for(;rr<Vt;)Vn=Ye[rr++],Wr.X[(506832829*Vn&4294967295)>>>Wr.Mb]=Vn}else{if(!(Vn<Vr))break e;for(yn=Vn-280,Le(Wr!=null);rr<Vt;)Vn=Ye[rr++],Wr.X[(506832829*Vn&4294967295)>>>Wr.Mb]=Vn;Vn=Vt,Le(!(yn>>>(Li=Wr).Xa)),Ye[Vn]=Li.X[yn],yn=!0}yn||Le($e.h==Qn($e))}if(Ee.Pb&&$e.h&&Vt<Br)Le(Ee.m.h),Ee.a=5,Ee.m=Ee.wd,Ee.$=Ee.xd,0<Ee.s.ua&&kn(Ee.s.vb,Ee.s.Wa);else{if($e.h)break e;Ue!=null&&Ue(Ee,ae>on?on:ae),Ee.a=0,Ee.$=Vt-Tt}return 1}return Ee.a=3,0}function Qo(Ee){Le(Ee!=null),Ee.vc=null,Ee.yc=null,Ee.Ya=null;var Ye=Ee.Wa;Ye!=null&&(Ye.X=null),Ee.vb=null,Le(Ee!=null)}function mo(){var Ee=new No;return Ee==null?null:(Ee.a=0,Ee.xb=ve,mi("Predictor","VP8LPredictors"),mi("Predictor","VP8LPredictors_C"),mi("PredictorAdd","VP8LPredictorsAdd"),mi("PredictorAdd","VP8LPredictorsAdd_C"),Os=Fn,Ws=Or,Tl=rn,pl=xn,jo=Ln,yo=Sn,qo=ei,zt.VP8LMapColor32b=Ql,zt.VP8LMapColor8b=wl,Ee)}function To(Ee,Ye,Tt,hr,Br){var on=1,Ue=[Ee],ae=[Ye],_e=hr.m,$e=hr.s,wt=null,Vt=0;e:for(;;){if(Tt)for(;on&&di(_e,1);){var rr=Ue,ar=ae,Vr=hr,pn=1,Wr=Vr.m,jr=Vr.gc[Vr.ab],sn=di(Wr,2);if(Vr.Oc&1<<sn)on=0;else{switch(Vr.Oc|=1<<sn,jr.hc=sn,jr.Ea=rr[0],jr.nc=ar[0],jr.K=[null],++Vr.ab,Le(4>=Vr.ab),sn){case 0:case 1:jr.b=di(Wr,3)+2,pn=To(ta(jr.Ea,jr.b),ta(jr.nc,jr.b),0,Vr,jr.K),jr.K=jr.K[0];break;case 3:var yn,Vn=di(Wr,8)+1,Li=16<Vn?0:4<Vn?1:2<Vn?2:3;if(rr[0]=ta(jr.Ea,Li),jr.b=Li,yn=pn=To(Vn,1,0,Vr,jr.K)){var Mi,da=Vn,$i=jr,Qa=1<<(8>>$i.b),ya=Ze(Qa);if(ya==null)yn=0;else{var fo=$i.K[0],za=$i.w;for(ya[0]=$i.K[0][0],Mi=1;Mi<1*da;++Mi)ya[Mi]=ra(fo[za+Mi],ya[Mi-1]);for(;Mi<4*Qa;++Mi)ya[Mi]=0;$i.K[0]=null,$i.K[0]=ya,yn=1}}pn=yn;break;case 2:break;default:Le(0)}on=pn}}if(Ue=Ue[0],ae=ae[0],on&&di(_e,1)&&!(on=1<=(Vt=di(_e,4))&&11>=Vt)){hr.a=3;break e}var Xo;if(Xo=on)t:{var ls,N,B,ie=hr,le=Ue,me=ae,Ke=Vt,It=Tt,nr=ie.m,wr=ie.s,_r=[null],Hn=1,ni=0,Ei=xu[Ke];r:for(;;){if(It&&di(nr,1)){var Oi=di(nr,3)+2,la=ta(le,Oi),Ta=ta(me,Oi),Wa=la*Ta;if(!To(la,Ta,0,ie,_r))break r;for(_r=_r[0],wr.xc=Oi,ls=0;ls<Wa;++ls){var Ma=_r[ls]>>8&65535;_r[ls]=Ma,Ma>=Hn&&(Hn=Ma+1)}}if(nr.h)break r;for(N=0;5>N;++N){var Na=Du[N];!N&&0<Ke&&(Na+=1<<Ke),ni<Na&&(ni=Na)}var qa=ot(Hn*Ei,Wt),ho=Hn,ns=ot(ho,dr);if(ns==null)var Mo=null;else Le(65536>=ho),Mo=ns;var Ss=Ze(ni);if(Mo==null||Ss==null||qa==null){ie.a=1;break r}var Zs=qa;for(ls=B=0;ls<Hn;++ls){var yl=Mo[ls],ul=yl.G,Pl=yl.H,Vl=0,Il=1,Gl=0;for(N=0;5>N;++N){Na=Du[N],ul[N]=Zs,Pl[N]=B,!N&&0<Ke&&(Na+=1<<Ke);i:{var Fl,Ja=Na,vl=ie,gl=Ss,El=Zs,Bu=B,Ks=0,vs=vl.m,lu=di(vs,1);if(nt(gl,0,0,Ja),lu){var Kl=di(vs,1)+1,Uu=di(vs,1),Eu=di(vs,Uu==0?1:8);gl[Eu]=1,Kl==2&&(gl[Eu=di(vs,8)]=1);var uu=1}else{var ku=Ze(19),Yl=di(vs,4)+4;if(19<Yl){vl.a=3;var Tu=0;break i}for(Fl=0;Fl<Yl;++Fl)ku[Zl[Fl]]=di(vs,3);var Vu=void 0,Ju=void 0,vc=vl,Ac=ku,tc=Ja,yc=gl,sc=0,ju=vc.m,hc=8,bc=ot(128,Wt);n:for(;Bt(bc,0,7,Ac,19);){if(di(ju,1)){var Tc=2+2*di(ju,3);if((Vu=2+di(ju,Tc))>tc)break n}else Vu=tc;for(Ju=0;Ju<tc&&Vu--;){oi(ju);var wc=bc[0+(127&In(ju))];qn(ju,ju.u+wc.g);var Pu=wc.value;if(16>Pu)yc[Ju++]=Pu,Pu!=0&&(hc=Pu);else{var Cu=Pu==16,fc=Pu-16,lc=Jl[fc],Sc=di(ju,su[fc])+lc;if(Ju+Sc>tc)break n;for(var Cc=Cu?hc:0;0<Sc--;)yc[Ju++]=Cc}}sc=1;break n}sc||(vc.a=3),uu=sc}(uu=uu&&!vs.h)&&(Ks=Bt(El,Bu,8,gl,Ja)),uu&&Ks!=0?Tu=Ks:(vl.a=3,Tu=0)}if(Tu==0)break r;if(Il&&Ru[N]==1&&(Il=Zs[B].g==0),Vl+=Zs[B].g,B+=Tu,3>=N){var Gu,Hu=Ss[0];for(Gu=1;Gu<Na;++Gu)Ss[Gu]>Hu&&(Hu=Ss[Gu]);Gl+=Hu}}if(yl.nd=Il,yl.Qb=0,Il&&(yl.qb=(ul[3][Pl[3]+0].value<<24|ul[1][Pl[1]+0].value<<16|ul[2][Pl[2]+0].value)>>>0,Vl==0&&256>ul[0][Pl[0]+0].value&&(yl.Qb=1,yl.qb+=ul[0][Pl[0]+0].value<<8)),yl.jc=!yl.Qb&&6>Gl,yl.jc){var Xu,Fu=yl;for(Xu=0;Xu<vo;++Xu){var wu=Xu,Ku=Fu.pd[wu],uc=Fu.G[0][Fu.H[0]+wu];256<=uc.value?(Ku.g=uc.g+256,Ku.value=uc.value):(Ku.g=0,Ku.value=0,wu>>=Oa(uc,8,Ku),wu>>=Oa(Fu.G[1][Fu.H[1]+wu],16,Ku),wu>>=Oa(Fu.G[2][Fu.H[2]+wu],0,Ku),Oa(Fu.G[3][Fu.H[3]+wu],24,Ku))}}}wr.vc=_r,wr.Wb=Hn,wr.Ya=Mo,wr.yc=qa,Xo=1;break t}Xo=0}if(!(on=Xo)){hr.a=3;break e}if(0<Vt){if($e.ua=1<<Vt,!yi($e.Wa,Vt)){hr.a=1,on=0;break e}}else $e.ua=0;var cc=hr,xc=Ue,Ec=ae,pc=cc.s,mc=pc.xc;if(cc.c=xc,cc.i=Ec,pc.md=ta(xc,mc),pc.wc=mc==0?-1:(1<<mc)-1,Tt){hr.xb=ne;break e}if((wt=Ze(Ue*ae))==null){hr.a=1,on=0;break e}on=(on=oo(hr,wt,0,Ue,ae,ae,null))&&!_e.h;break e}return on?(Br!=null?Br[0]=wt:(Le(wt==null),Le(Tt)),hr.$=0,Tt||Qo($e)):Qo($e),on}function ao(Ee,Ye){var Tt=Ee.c*Ee.i,hr=Tt+Ye+16*Ye;return Le(Ee.c<=Ye),Ee.V=Ze(hr),Ee.V==null?(Ee.Ta=null,Ee.Ua=0,Ee.a=1,0):(Ee.Ta=Ee.V,Ee.Ua=Ee.Ba+Tt+Ye,1)}function So(Ee,Ye){var Tt=Ee.C,hr=Ye-Tt,Br=Ee.V,on=Ee.Ba+Ee.c*Tt;for(Le(Ye<=Ee.l.o);0<hr;){var Ue=16<hr?16:hr,ae=Ee.l.ma,_e=Ee.l.width,$e=_e*Ue,wt=ae.ca,Vt=ae.tb+_e*Tt,rr=Ee.Ta,ar=Ee.Ua;Xa(Ee,Ue,Br,on),$l(rr,ar,wt,Vt,$e),Bi(ae,Tt,Tt+Ue,wt,Vt,_e),hr-=Ue,Br+=Ue*Ee.c,Tt+=Ue}Le(Tt==Ye),Ee.C=Ee.Ma=Ye}function bo(){this.ub=this.yd=this.td=this.Rb=0}function to(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Jo(){this.Fb=this.Bb=this.Cb=0,this.Zb=Ze(4),this.Lb=Ze(4)}function Uo(){this.Yb=function(){var Ee=[];return function Ye(Tt,hr,Br){for(var on=Br[hr],Ue=0;Ue<on&&(Tt.push(Br.length>hr+1?[]:0),!(Br.length<hr+1));Ue++)Ye(Tt[Ue],hr+1,Br)}(Ee,0,[3,11]),Ee}()}function wo(){this.jb=Ze(3),this.Wc=Ct([4,8],Uo),this.Xc=Ct([4,17],Uo)}function ts(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new Ze(4),this.od=new Ze(4)}function Ia(){this.ld=this.La=this.dd=this.tc=0}function Oo(){this.Na=this.la=0}function Io(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function os(){this.ad=Ze(384),this.Za=0,this.Ob=Ze(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function xo(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ia),this.Y=0,this.ya=Array(new os),this.aa=0,this.l=new uo}function rs(){this.y=Ze(16),this.f=Ze(8),this.ea=Ze(8)}function Ho(){this.cb=this.a=0,this.sc="",this.m=new vn,this.Od=new bo,this.Kc=new to,this.ed=new ts,this.Qa=new Jo,this.Ic=this.$c=this.Aa=0,this.D=new xo,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=ot(8,vn),this.ia=0,this.pb=ot(4,Io),this.Pa=new wo,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new rs),this.Hd=0,this.rb=Array(new Oo),this.sb=0,this.wa=Array(new Ia),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new os),this.L=this.aa=0,this.gd=Ct([4,2],Ia),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function _o(Ee,Ye){return 0>Ee?0:Ee>Ye?Ye:Ee}function uo(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ha(){var Ee=new Ho;return Ee!=null&&(Ee.a=0,Ee.sc="OK",Ee.cb=0,Ee.Xb=0,nu||(nu=Qr)),Ee}function mt(Ee,Ye,Tt){return Ee.a==0&&(Ee.a=Ye,Ee.sc=Tt,Ee.cb=0),0}function Tr(Ee,Ye,Tt){return 3<=Tt&&Ee[Ye+0]==157&&Ee[Ye+1]==1&&Ee[Ye+2]==42}function tn(Ee,Ye){if(Ee==null)return 0;if(Ee.a=0,Ee.sc="OK",Ye==null)return mt(Ee,2,"null VP8Io passed to VP8GetHeaders()");var Tt=Ye.data,hr=Ye.w,Br=Ye.ha;if(4>Br)return mt(Ee,7,"Truncated header.");var on=Tt[hr+0]|Tt[hr+1]<<8|Tt[hr+2]<<16,Ue=Ee.Od;if(Ue.Rb=!(1&on),Ue.td=on>>1&7,Ue.yd=on>>4&1,Ue.ub=on>>5,3<Ue.td)return mt(Ee,3,"Incorrect keyframe parameters.");if(!Ue.yd)return mt(Ee,4,"Frame not displayable.");hr+=3,Br-=3;var ae=Ee.Kc;if(Ue.Rb){if(7>Br)return mt(Ee,7,"cannot parse picture header");if(!Tr(Tt,hr,Br))return mt(Ee,3,"Bad code word");ae.c=16383&(Tt[hr+4]<<8|Tt[hr+3]),ae.Td=Tt[hr+4]>>6,ae.i=16383&(Tt[hr+6]<<8|Tt[hr+5]),ae.Ud=Tt[hr+6]>>6,hr+=7,Br-=7,Ee.za=ae.c+15>>4,Ee.Ub=ae.i+15>>4,Ye.width=ae.c,Ye.height=ae.i,Ye.Da=0,Ye.j=0,Ye.v=0,Ye.va=Ye.width,Ye.o=Ye.height,Ye.da=0,Ye.ib=Ye.width,Ye.hb=Ye.height,Ye.U=Ye.width,Ye.T=Ye.height,nt((on=Ee.Pa).jb,0,255,on.jb.length),Le((on=Ee.Qa)!=null),on.Cb=0,on.Bb=0,on.Fb=1,nt(on.Zb,0,0,on.Zb.length),nt(on.Lb,0,0,on.Lb)}if(Ue.ub>Br)return mt(Ee,7,"bad partition length");yr(on=Ee.m,Tt,hr,Ue.ub),hr+=Ue.ub,Br-=Ue.ub,Ue.Rb&&(ae.Ld=ki(on),ae.Kd=ki(on)),ae=Ee.Qa;var _e,$e=Ee.Pa;if(Le(on!=null),Le(ae!=null),ae.Cb=ki(on),ae.Cb){if(ae.Bb=ki(on),ki(on)){for(ae.Fb=ki(on),_e=0;4>_e;++_e)ae.Zb[_e]=ki(on)?Mr(on,7):0;for(_e=0;4>_e;++_e)ae.Lb[_e]=ki(on)?Mr(on,6):0}if(ae.Bb)for(_e=0;3>_e;++_e)$e.jb[_e]=ki(on)?br(on,8):255}else ae.Bb=0;if(on.Ka)return mt(Ee,3,"cannot parse segment header");if((ae=Ee.ed).zd=ki(on),ae.Tb=br(on,6),ae.wb=br(on,3),ae.Pc=ki(on),ae.Pc&&ki(on)){for($e=0;4>$e;++$e)ki(on)&&(ae.vd[$e]=Mr(on,6));for($e=0;4>$e;++$e)ki(on)&&(ae.od[$e]=Mr(on,6))}if(Ee.L=ae.Tb==0?0:ae.zd?1:2,on.Ka)return mt(Ee,3,"cannot parse filter header");var wt=Br;if(Br=_e=hr,hr=_e+wt,ae=wt,Ee.Xb=(1<<br(Ee.m,2))-1,wt<3*($e=Ee.Xb))Tt=7;else{for(_e+=3*$e,ae-=3*$e,wt=0;wt<$e;++wt){var Vt=Tt[Br+0]|Tt[Br+1]<<8|Tt[Br+2]<<16;Vt>ae&&(Vt=ae),yr(Ee.Jc[+wt],Tt,_e,Vt),_e+=Vt,ae-=Vt,Br+=3}yr(Ee.Jc[+$e],Tt,_e,ae),Tt=_e<hr?0:5}if(Tt!=0)return mt(Ee,Tt,"cannot parse partitions");for(Tt=br(_e=Ee.m,7),Br=ki(_e)?Mr(_e,4):0,hr=ki(_e)?Mr(_e,4):0,ae=ki(_e)?Mr(_e,4):0,$e=ki(_e)?Mr(_e,4):0,_e=ki(_e)?Mr(_e,4):0,wt=Ee.Qa,Vt=0;4>Vt;++Vt){if(wt.Cb){var rr=wt.Zb[Vt];wt.Fb||(rr+=Tt)}else{if(0<Vt){Ee.pb[Vt]=Ee.pb[0];continue}rr=Tt}var ar=Ee.pb[Vt];ar.Sc[0]=hl[_o(rr+Br,127)],ar.Sc[1]=Dl[_o(rr+0,127)],ar.Eb[0]=2*hl[_o(rr+hr,127)],ar.Eb[1]=101581*Dl[_o(rr+ae,127)]>>16,8>ar.Eb[1]&&(ar.Eb[1]=8),ar.Qc[0]=hl[_o(rr+$e,117)],ar.Qc[1]=Dl[_o(rr+_e,127)],ar.lc=rr+_e}if(!Ue.Rb)return mt(Ee,4,"Not a key frame.");for(ki(on),Ue=Ee.Pa,Tt=0;4>Tt;++Tt){for(Br=0;8>Br;++Br)for(hr=0;3>hr;++hr)for(ae=0;11>ae;++ae)$e=Ri(on,ee[Tt][Br][hr][ae])?br(on,8):iu[Tt][Br][hr][ae],Ue.Wc[Tt][Br].Yb[hr][ae]=$e;for(Br=0;17>Br;++Br)Ue.Xc[Tt][Br]=Ue.Wc[Tt][L[Br]]}return Ee.kc=ki(on),Ee.kc&&(Ee.Bd=br(on,8)),Ee.cb=1}function Qr(Ee,Ye,Tt,hr,Br,on,Ue){var ae=Ye[Br].Yb[Tt];for(Tt=0;16>Br;++Br){if(!Ri(Ee,ae[Tt+0]))return Br;for(;!Ri(Ee,ae[Tt+1]);)if(ae=Ye[++Br].Yb[0],Tt=0,Br==16)return 16;var _e=Ye[Br+1].Yb;if(Ri(Ee,ae[Tt+2])){var $e=Ee,wt=0;if(Ri($e,(rr=ae)[(Vt=Tt)+3]))if(Ri($e,rr[Vt+6])){for(ae=0,Vt=2*(wt=Ri($e,rr[Vt+8]))+(rr=Ri($e,rr[Vt+9+wt])),wt=0,rr=Nu[Vt];rr[ae];++ae)wt+=wt+Ri($e,rr[ae]);wt+=3+(8<<Vt)}else Ri($e,rr[Vt+7])?(wt=7+2*Ri($e,165),wt+=Ri($e,145)):wt=5+Ri($e,159);else wt=Ri($e,rr[Vt+4])?3+Ri($e,rr[Vt+5]):2;ae=_e[2]}else wt=1,ae=_e[1];_e=Ue+hu[Br],0>($e=Ee).b&&Ti($e);var Vt,rr=$e.b,ar=(Vt=$e.Ca>>1)-($e.I>>rr)>>31;--$e.b,$e.Ca+=ar,$e.Ca|=1,$e.I-=(Vt+1&ar)<<rr,on[_e]=((wt^ar)-ar)*hr[(0<Br)+0]}return 16}function Jn(Ee){var Ye=Ee.rb[Ee.sb-1];Ye.la=0,Ye.Na=0,nt(Ee.zc,0,0,Ee.zc.length),Ee.ja=0}function fn(Ee,Ye){if(Ee==null)return 0;if(Ye==null)return mt(Ee,2,"NULL VP8Io parameter in VP8Decode().");if(!Ee.cb&&!tn(Ee,Ye))return 0;if(Le(Ee.cb),Ye.ac==null||Ye.ac(Ye)){Ye.ob&&(Ee.L=0);var Tt=Cs[Ee.L];if(Ee.L==2?(Ee.yb=0,Ee.zb=0):(Ee.yb=Ye.v-Tt>>4,Ee.zb=Ye.j-Tt>>4,0>Ee.yb&&(Ee.yb=0),0>Ee.zb&&(Ee.zb=0)),Ee.Va=Ye.o+15+Tt>>4,Ee.Hb=Ye.va+15+Tt>>4,Ee.Hb>Ee.za&&(Ee.Hb=Ee.za),Ee.Va>Ee.Ub&&(Ee.Va=Ee.Ub),0<Ee.L){var hr=Ee.ed;for(Tt=0;4>Tt;++Tt){var Br;if(Ee.Qa.Cb){var on=Ee.Qa.Lb[Tt];Ee.Qa.Fb||(on+=hr.Tb)}else on=hr.Tb;for(Br=0;1>=Br;++Br){var Ue=Ee.gd[Tt][Br],ae=on;if(hr.Pc&&(ae+=hr.vd[0],Br&&(ae+=hr.od[0])),0<(ae=0>ae?0:63<ae?63:ae)){var _e=ae;0<hr.wb&&(_e=4<hr.wb?_e>>2:_e>>1)>9-hr.wb&&(_e=9-hr.wb),1>_e&&(_e=1),Ue.dd=_e,Ue.tc=2*ae+_e,Ue.ld=40<=ae?2:15<=ae?1:0}else Ue.tc=0;Ue.La=Br}}}Tt=0}else mt(Ee,6,"Frame setup failed"),Tt=Ee.a;if(Tt=Tt==0){if(Tt){Ee.$c=0,0<Ee.Aa||(Ee.Ic=ws);e:{Tt=Ee.Ic,hr=4*(_e=Ee.za);var $e=32*_e,wt=_e+1,Vt=0<Ee.L?_e*(0<Ee.Aa?2:1):0,rr=(Ee.Aa==2?2:1)*_e;if((Ue=hr+832+(Br=3*(16*Tt+Cs[Ee.L])/2*$e)+(on=Ee.Fa!=null&&0<Ee.Fa.length?Ee.Kc.c*Ee.Kc.i:0))!=Ue)Tt=0;else{if(Ue>Ee.Vb){if(Ee.Vb=0,Ee.Ec=Ze(Ue),Ee.Fc=0,Ee.Ec==null){Tt=mt(Ee,1,"no memory during frame initialization.");break e}Ee.Vb=Ue}Ue=Ee.Ec,ae=Ee.Fc,Ee.Ac=Ue,Ee.Bc=ae,ae+=hr,Ee.Gd=ot($e,rs),Ee.Hd=0,Ee.rb=ot(wt+1,Oo),Ee.sb=1,Ee.wa=Vt?ot(Vt,Ia):null,Ee.Y=0,Ee.D.Nb=0,Ee.D.wa=Ee.wa,Ee.D.Y=Ee.Y,0<Ee.Aa&&(Ee.D.Y+=_e),Le(!0),Ee.oc=Ue,Ee.pc=ae,ae+=832,Ee.ya=ot(rr,os),Ee.aa=0,Ee.D.ya=Ee.ya,Ee.D.aa=Ee.aa,Ee.Aa==2&&(Ee.D.aa+=_e),Ee.R=16*_e,Ee.B=8*_e,_e=($e=Cs[Ee.L])*Ee.R,$e=$e/2*Ee.B,Ee.sa=Ue,Ee.ta=ae+_e,Ee.qa=Ee.sa,Ee.ra=Ee.ta+16*Tt*Ee.R+$e,Ee.Ha=Ee.qa,Ee.Ia=Ee.ra+8*Tt*Ee.B+$e,Ee.$c=0,ae+=Br,Ee.mb=on?Ue:null,Ee.nb=on?ae:null,Le(ae+on<=Ee.Fc+Ee.Vb),Jn(Ee),nt(Ee.Ac,Ee.Bc,0,hr),Tt=1}}if(Tt){if(Ye.ka=0,Ye.y=Ee.sa,Ye.O=Ee.ta,Ye.f=Ee.qa,Ye.N=Ee.ra,Ye.ea=Ee.Ha,Ye.Vd=Ee.Ia,Ye.fa=Ee.R,Ye.Rc=Ee.B,Ye.F=null,Ye.J=0,!gu){for(Tt=-255;255>=Tt;++Tt)tu[255+Tt]=0>Tt?-Tt:Tt;for(Tt=-1020;1020>=Tt;++Tt)Iu[1020+Tt]=-128>Tt?-128:127<Tt?127:Tt;for(Tt=-112;112>=Tt;++Tt)pu[112+Tt]=-16>Tt?-16:15<Tt?15:Tt;for(Tt=-255;510>=Tt;++Tt)mu[255+Tt]=0>Tt?0:255<Tt?255:Tt;gu=1}ps=Ai,Is=ci,Ls=si,Ps=Ci,ml=gi,es=li,Rl=Ll,_l=el,Bl=ks,jl=Qs,kl=Gs,Xl=ds,ol=tl,Ys=xs,sl=zo,nl=Fs,xl=ms,Ml=hs,H[0]=Ka,H[1]=ia,H[2]=Ea,H[3]=Fa,H[4]=lo,H[5]=Co,H[6]=so,H[7]=Lo,H[8]=cs,H[9]=is,W[0]=Da,W[1]=fa,W[2]=Ya,W[3]=xa,W[4]=ja,W[5]=ko,W[6]=ro,Z[0]=co,Z[1]=Ki,Z[2]=Rs,Z[3]=Ko,Z[4]=$a,Z[5]=Ao,Z[6]=ss,Tt=1}else Tt=0}Tt&&(Tt=function(ar,Vr){for(ar.M=0;ar.M<ar.Va;++ar.M){var pn,Wr=ar.Jc[ar.M&ar.Xb],jr=ar.m,sn=ar;for(pn=0;pn<sn.za;++pn){var yn=jr,Vn=sn,Li=Vn.Ac,Mi=Vn.Bc+4*pn,da=Vn.zc,$i=Vn.ya[Vn.aa+pn];if(Vn.Qa.Bb?$i.$b=Ri(yn,Vn.Pa.jb[0])?2+Ri(yn,Vn.Pa.jb[2]):Ri(yn,Vn.Pa.jb[1]):$i.$b=0,Vn.kc&&($i.Ad=Ri(yn,Vn.Bd)),$i.Za=!Ri(yn,145)+0,$i.Za){var Qa=$i.Ob,ya=0;for(Vn=0;4>Vn;++Vn){var fo,za=da[0+Vn];for(fo=0;4>fo;++fo){za=Ae[Li[Mi+fo]][za];for(var Xo=fu[Ri(yn,za[0])];0<Xo;)Xo=fu[2*Xo+Ri(yn,za[Xo])];za=-Xo,Li[Mi+fo]=za}Xe(Qa,ya,Li,Mi,4),ya+=4,da[0+Vn]=za}}else za=Ri(yn,156)?Ri(yn,128)?1:3:Ri(yn,163)?2:0,$i.Ob[0]=za,nt(Li,Mi,za,4),nt(da,0,za,4);$i.Dd=Ri(yn,142)?Ri(yn,114)?Ri(yn,183)?1:3:2:0}if(sn.m.Ka)return mt(ar,7,"Premature end-of-partition0 encountered.");for(;ar.ja<ar.za;++ar.ja){if(sn=Wr,yn=(jr=ar).rb[jr.sb-1],Li=jr.rb[jr.sb+jr.ja],pn=jr.ya[jr.aa+jr.ja],Mi=jr.kc?pn.Ad:0)yn.la=Li.la=0,pn.Za||(yn.Na=Li.Na=0),pn.Hc=0,pn.Gc=0,pn.ia=0;else{var ls,N;if(yn=Li,Li=sn,Mi=jr.Pa.Xc,da=jr.ya[jr.aa+jr.ja],$i=jr.pb[da.$b],Vn=da.ad,Qa=0,ya=jr.rb[jr.sb-1],za=fo=0,nt(Vn,Qa,0,384),da.Za)var B=0,ie=Mi[3];else{Xo=Ze(16);var le=yn.Na+ya.Na;if(le=nu(Li,Mi[1],le,$i.Eb,0,Xo,0),yn.Na=ya.Na=(0<le)+0,1<le)ps(Xo,0,Vn,Qa);else{var me=Xo[0]+3>>3;for(Xo=0;256>Xo;Xo+=16)Vn[Qa+Xo]=me}B=1,ie=Mi[0]}var Ke=15&yn.la,It=15&ya.la;for(Xo=0;4>Xo;++Xo){var nr=1&It;for(me=N=0;4>me;++me)Ke=Ke>>1|(nr=(le=nu(Li,ie,le=nr+(1&Ke),$i.Sc,B,Vn,Qa))>B)<<7,N=N<<2|(3<le?3:1<le?2:Vn[Qa+0]!=0),Qa+=16;Ke>>=4,It=It>>1|nr<<7,fo=(fo<<8|N)>>>0}for(ie=Ke,B=It>>4,ls=0;4>ls;ls+=2){for(N=0,Ke=yn.la>>4+ls,It=ya.la>>4+ls,Xo=0;2>Xo;++Xo){for(nr=1&It,me=0;2>me;++me)le=nr+(1&Ke),Ke=Ke>>1|(nr=0<(le=nu(Li,Mi[2],le,$i.Qc,0,Vn,Qa)))<<3,N=N<<2|(3<le?3:1<le?2:Vn[Qa+0]!=0),Qa+=16;Ke>>=2,It=It>>1|nr<<5}za|=N<<4*ls,ie|=Ke<<4<<ls,B|=(240&It)<<ls}yn.la=ie,ya.la=B,da.Hc=fo,da.Gc=za,da.ia=43690&za?0:$i.ia,Mi=!(fo|za)}if(0<jr.L&&(jr.wa[jr.Y+jr.ja]=jr.gd[pn.$b][pn.Za],jr.wa[jr.Y+jr.ja].La|=!Mi),sn.Ka)return mt(ar,7,"Premature end-of-file encountered.")}if(Jn(ar),jr=Vr,sn=1,pn=(Wr=ar).D,yn=0<Wr.L&&Wr.M>=Wr.zb&&Wr.M<=Wr.Va,Wr.Aa==0)e:{if(pn.M=Wr.M,pn.uc=yn,Bo(Wr,pn),sn=1,pn=(N=Wr.D).Nb,yn=(za=Cs[Wr.L])*Wr.R,Li=za/2*Wr.B,Xo=16*pn*Wr.R,me=8*pn*Wr.B,Mi=Wr.sa,da=Wr.ta-yn+Xo,$i=Wr.qa,Vn=Wr.ra-Li+me,Qa=Wr.Ha,ya=Wr.Ia-Li+me,It=(Ke=N.M)==0,fo=Ke>=Wr.Va-1,Wr.Aa==2&&Bo(Wr,N),N.uc)for(nr=(le=Wr).D.M,Le(le.D.uc),N=le.yb;N<le.Hb;++N){B=N,ie=nr;var wr=(_r=(Na=le).D).Nb;ls=Na.R;var _r=_r.wa[_r.Y+B],Hn=Na.sa,ni=Na.ta+16*wr*ls+16*B,Ei=_r.dd,Oi=_r.tc;if(Oi!=0)if(Le(3<=Oi),Na.L==1)0<B&&nl(Hn,ni,ls,Oi+4),_r.La&&Ml(Hn,ni,ls,Oi),0<ie&&sl(Hn,ni,ls,Oi+4),_r.La&&xl(Hn,ni,ls,Oi);else{var la=Na.B,Ta=Na.qa,Wa=Na.ra+8*wr*la+8*B,Ma=Na.Ha,Na=Na.Ia+8*wr*la+8*B;wr=_r.ld,0<B&&(_l(Hn,ni,ls,Oi+4,Ei,wr),jl(Ta,Wa,Ma,Na,la,Oi+4,Ei,wr)),_r.La&&(Xl(Hn,ni,ls,Oi,Ei,wr),Ys(Ta,Wa,Ma,Na,la,Oi,Ei,wr)),0<ie&&(Rl(Hn,ni,ls,Oi+4,Ei,wr),Bl(Ta,Wa,Ma,Na,la,Oi+4,Ei,wr)),_r.La&&(kl(Hn,ni,ls,Oi,Ei,wr),ol(Ta,Wa,Ma,Na,la,Oi,Ei,wr))}}if(Wr.ia&&alert("todo:DitherRow"),jr.put!=null){if(N=16*Ke,Ke=16*(Ke+1),It?(jr.y=Wr.sa,jr.O=Wr.ta+Xo,jr.f=Wr.qa,jr.N=Wr.ra+me,jr.ea=Wr.Ha,jr.W=Wr.Ia+me):(N-=za,jr.y=Mi,jr.O=da,jr.f=$i,jr.N=Vn,jr.ea=Qa,jr.W=ya),fo||(Ke-=za),Ke>jr.o&&(Ke=jr.o),jr.F=null,jr.J=null,Wr.Fa!=null&&0<Wr.Fa.length&&N<Ke&&(jr.J=or(Wr,jr,N,Ke-N),jr.F=Wr.mb,jr.F==null&&jr.F.length==0)){sn=mt(Wr,3,"Could not decode alpha data.");break e}N<jr.j&&(za=jr.j-N,N=jr.j,Le(!(1&za)),jr.O+=Wr.R*za,jr.N+=Wr.B*(za>>1),jr.W+=Wr.B*(za>>1),jr.F!=null&&(jr.J+=jr.width*za)),N<Ke&&(jr.O+=jr.v,jr.N+=jr.v>>1,jr.W+=jr.v>>1,jr.F!=null&&(jr.J+=jr.v),jr.ka=N-jr.j,jr.U=jr.va-jr.v,jr.T=Ke-N,sn=jr.put(jr))}pn+1!=Wr.Ic||fo||(Xe(Wr.sa,Wr.ta-yn,Mi,da+16*Wr.R,yn),Xe(Wr.qa,Wr.ra-Li,$i,Vn+8*Wr.B,Li),Xe(Wr.Ha,Wr.Ia-Li,Qa,ya+8*Wr.B,Li))}if(!sn)return mt(ar,6,"Output aborted.")}return 1}(Ee,Ye)),Ye.bc!=null&&Ye.bc(Ye),Tt&=1}return Tt?(Ee.cb=0,Tt):0}function Xr(Ee,Ye,Tt,hr,Br){Br=Ee[Ye+Tt+32*hr]+(Br>>3),Ee[Ye+Tt+32*hr]=-256&Br?0>Br?0:255:Br}function ii(Ee,Ye,Tt,hr,Br,on){Xr(Ee,Ye,0,Tt,hr+Br),Xr(Ee,Ye,1,Tt,hr+on),Xr(Ee,Ye,2,Tt,hr-on),Xr(Ee,Ye,3,Tt,hr-Br)}function nn(Ee){return(20091*Ee>>16)+Ee}function Wn(Ee,Ye,Tt,hr){var Br,on=0,Ue=Ze(16);for(Br=0;4>Br;++Br){var ae=Ee[Ye+0]+Ee[Ye+8],_e=Ee[Ye+0]-Ee[Ye+8],$e=(35468*Ee[Ye+4]>>16)-nn(Ee[Ye+12]),wt=nn(Ee[Ye+4])+(35468*Ee[Ye+12]>>16);Ue[on+0]=ae+wt,Ue[on+1]=_e+$e,Ue[on+2]=_e-$e,Ue[on+3]=ae-wt,on+=4,Ye++}for(Br=on=0;4>Br;++Br)ae=(Ee=Ue[on+0]+4)+Ue[on+8],_e=Ee-Ue[on+8],$e=(35468*Ue[on+4]>>16)-nn(Ue[on+12]),Xr(Tt,hr,0,0,ae+(wt=nn(Ue[on+4])+(35468*Ue[on+12]>>16))),Xr(Tt,hr,1,0,_e+$e),Xr(Tt,hr,2,0,_e-$e),Xr(Tt,hr,3,0,ae-wt),on++,hr+=32}function li(Ee,Ye,Tt,hr){var Br=Ee[Ye+0]+4,on=35468*Ee[Ye+4]>>16,Ue=nn(Ee[Ye+4]),ae=35468*Ee[Ye+1]>>16;ii(Tt,hr,0,Br+Ue,Ee=nn(Ee[Ye+1]),ae),ii(Tt,hr,1,Br+on,Ee,ae),ii(Tt,hr,2,Br-on,Ee,ae),ii(Tt,hr,3,Br-Ue,Ee,ae)}function ci(Ee,Ye,Tt,hr,Br){Wn(Ee,Ye,Tt,hr),Br&&Wn(Ee,Ye+16,Tt,hr+4)}function si(Ee,Ye,Tt,hr){Is(Ee,Ye+0,Tt,hr,1),Is(Ee,Ye+32,Tt,hr+128,1)}function Ci(Ee,Ye,Tt,hr){var Br;for(Ee=Ee[Ye+0]+4,Br=0;4>Br;++Br)for(Ye=0;4>Ye;++Ye)Xr(Tt,hr,Ye,Br,Ee)}function gi(Ee,Ye,Tt,hr){Ee[Ye+0]&&Ps(Ee,Ye+0,Tt,hr),Ee[Ye+16]&&Ps(Ee,Ye+16,Tt,hr+4),Ee[Ye+32]&&Ps(Ee,Ye+32,Tt,hr+128),Ee[Ye+48]&&Ps(Ee,Ye+48,Tt,hr+128+4)}function Ai(Ee,Ye,Tt,hr){var Br,on=Ze(16);for(Br=0;4>Br;++Br){var Ue=Ee[Ye+0+Br]+Ee[Ye+12+Br],ae=Ee[Ye+4+Br]+Ee[Ye+8+Br],_e=Ee[Ye+4+Br]-Ee[Ye+8+Br],$e=Ee[Ye+0+Br]-Ee[Ye+12+Br];on[0+Br]=Ue+ae,on[8+Br]=Ue-ae,on[4+Br]=$e+_e,on[12+Br]=$e-_e}for(Br=0;4>Br;++Br)Ue=(Ee=on[0+4*Br]+3)+on[3+4*Br],ae=on[1+4*Br]+on[2+4*Br],_e=on[1+4*Br]-on[2+4*Br],$e=Ee-on[3+4*Br],Tt[hr+0]=Ue+ae>>3,Tt[hr+16]=$e+_e>>3,Tt[hr+32]=Ue-ae>>3,Tt[hr+48]=$e-_e>>3,hr+=64}function Ni(Ee,Ye,Tt){var hr,Br=Ye-32,on=ll,Ue=255-Ee[Br-1];for(hr=0;hr<Tt;++hr){var ae,_e=on,$e=Ue+Ee[Ye-1];for(ae=0;ae<Tt;++ae)Ee[Ye+ae]=_e[$e+Ee[Br+ae]];Ye+=32}}function ia(Ee,Ye){Ni(Ee,Ye,4)}function Ki(Ee,Ye){Ni(Ee,Ye,8)}function fa(Ee,Ye){Ni(Ee,Ye,16)}function Ya(Ee,Ye){var Tt;for(Tt=0;16>Tt;++Tt)Xe(Ee,Ye+32*Tt,Ee,Ye-32,16)}function xa(Ee,Ye){var Tt;for(Tt=16;0<Tt;--Tt)nt(Ee,Ye,Ee[Ye-1],16),Ye+=32}function wa(Ee,Ye,Tt){var hr;for(hr=0;16>hr;++hr)nt(Ye,Tt+32*hr,Ee,16)}function Da(Ee,Ye){var Tt,hr=16;for(Tt=0;16>Tt;++Tt)hr+=Ee[Ye-1+32*Tt]+Ee[Ye+Tt-32];wa(hr>>5,Ee,Ye)}function ja(Ee,Ye){var Tt,hr=8;for(Tt=0;16>Tt;++Tt)hr+=Ee[Ye-1+32*Tt];wa(hr>>4,Ee,Ye)}function ko(Ee,Ye){var Tt,hr=8;for(Tt=0;16>Tt;++Tt)hr+=Ee[Ye+Tt-32];wa(hr>>4,Ee,Ye)}function ro(Ee,Ye){wa(128,Ee,Ye)}function pa(Ee,Ye,Tt){return Ee+2*Ye+Tt+2>>2}function Ea(Ee,Ye){var Tt,hr=Ye-32;for(hr=new Uint8Array([pa(Ee[hr-1],Ee[hr+0],Ee[hr+1]),pa(Ee[hr+0],Ee[hr+1],Ee[hr+2]),pa(Ee[hr+1],Ee[hr+2],Ee[hr+3]),pa(Ee[hr+2],Ee[hr+3],Ee[hr+4])]),Tt=0;4>Tt;++Tt)Xe(Ee,Ye+32*Tt,hr,0,hr.length)}function Fa(Ee,Ye){var Tt=Ee[Ye-1],hr=Ee[Ye-1+32],Br=Ee[Ye-1+64],on=Ee[Ye-1+96];oa(Ee,Ye+0,16843009*pa(Ee[Ye-1-32],Tt,hr)),oa(Ee,Ye+32,16843009*pa(Tt,hr,Br)),oa(Ee,Ye+64,16843009*pa(hr,Br,on)),oa(Ee,Ye+96,16843009*pa(Br,on,on))}function Ka(Ee,Ye){var Tt,hr=4;for(Tt=0;4>Tt;++Tt)hr+=Ee[Ye+Tt-32]+Ee[Ye-1+32*Tt];for(hr>>=3,Tt=0;4>Tt;++Tt)nt(Ee,Ye+32*Tt,hr,4)}function lo(Ee,Ye){var Tt=Ee[Ye-1+0],hr=Ee[Ye-1+32],Br=Ee[Ye-1+64],on=Ee[Ye-1-32],Ue=Ee[Ye+0-32],ae=Ee[Ye+1-32],_e=Ee[Ye+2-32],$e=Ee[Ye+3-32];Ee[Ye+0+96]=pa(hr,Br,Ee[Ye-1+96]),Ee[Ye+1+96]=Ee[Ye+0+64]=pa(Tt,hr,Br),Ee[Ye+2+96]=Ee[Ye+1+64]=Ee[Ye+0+32]=pa(on,Tt,hr),Ee[Ye+3+96]=Ee[Ye+2+64]=Ee[Ye+1+32]=Ee[Ye+0+0]=pa(Ue,on,Tt),Ee[Ye+3+64]=Ee[Ye+2+32]=Ee[Ye+1+0]=pa(ae,Ue,on),Ee[Ye+3+32]=Ee[Ye+2+0]=pa(_e,ae,Ue),Ee[Ye+3+0]=pa($e,_e,ae)}function so(Ee,Ye){var Tt=Ee[Ye+1-32],hr=Ee[Ye+2-32],Br=Ee[Ye+3-32],on=Ee[Ye+4-32],Ue=Ee[Ye+5-32],ae=Ee[Ye+6-32],_e=Ee[Ye+7-32];Ee[Ye+0+0]=pa(Ee[Ye+0-32],Tt,hr),Ee[Ye+1+0]=Ee[Ye+0+32]=pa(Tt,hr,Br),Ee[Ye+2+0]=Ee[Ye+1+32]=Ee[Ye+0+64]=pa(hr,Br,on),Ee[Ye+3+0]=Ee[Ye+2+32]=Ee[Ye+1+64]=Ee[Ye+0+96]=pa(Br,on,Ue),Ee[Ye+3+32]=Ee[Ye+2+64]=Ee[Ye+1+96]=pa(on,Ue,ae),Ee[Ye+3+64]=Ee[Ye+2+96]=pa(Ue,ae,_e),Ee[Ye+3+96]=pa(ae,_e,_e)}function Co(Ee,Ye){var Tt=Ee[Ye-1+0],hr=Ee[Ye-1+32],Br=Ee[Ye-1+64],on=Ee[Ye-1-32],Ue=Ee[Ye+0-32],ae=Ee[Ye+1-32],_e=Ee[Ye+2-32],$e=Ee[Ye+3-32];Ee[Ye+0+0]=Ee[Ye+1+64]=on+Ue+1>>1,Ee[Ye+1+0]=Ee[Ye+2+64]=Ue+ae+1>>1,Ee[Ye+2+0]=Ee[Ye+3+64]=ae+_e+1>>1,Ee[Ye+3+0]=_e+$e+1>>1,Ee[Ye+0+96]=pa(Br,hr,Tt),Ee[Ye+0+64]=pa(hr,Tt,on),Ee[Ye+0+32]=Ee[Ye+1+96]=pa(Tt,on,Ue),Ee[Ye+1+32]=Ee[Ye+2+96]=pa(on,Ue,ae),Ee[Ye+2+32]=Ee[Ye+3+96]=pa(Ue,ae,_e),Ee[Ye+3+32]=pa(ae,_e,$e)}function Lo(Ee,Ye){var Tt=Ee[Ye+0-32],hr=Ee[Ye+1-32],Br=Ee[Ye+2-32],on=Ee[Ye+3-32],Ue=Ee[Ye+4-32],ae=Ee[Ye+5-32],_e=Ee[Ye+6-32],$e=Ee[Ye+7-32];Ee[Ye+0+0]=Tt+hr+1>>1,Ee[Ye+1+0]=Ee[Ye+0+64]=hr+Br+1>>1,Ee[Ye+2+0]=Ee[Ye+1+64]=Br+on+1>>1,Ee[Ye+3+0]=Ee[Ye+2+64]=on+Ue+1>>1,Ee[Ye+0+32]=pa(Tt,hr,Br),Ee[Ye+1+32]=Ee[Ye+0+96]=pa(hr,Br,on),Ee[Ye+2+32]=Ee[Ye+1+96]=pa(Br,on,Ue),Ee[Ye+3+32]=Ee[Ye+2+96]=pa(on,Ue,ae),Ee[Ye+3+64]=pa(Ue,ae,_e),Ee[Ye+3+96]=pa(ae,_e,$e)}function is(Ee,Ye){var Tt=Ee[Ye-1+0],hr=Ee[Ye-1+32],Br=Ee[Ye-1+64],on=Ee[Ye-1+96];Ee[Ye+0+0]=Tt+hr+1>>1,Ee[Ye+2+0]=Ee[Ye+0+32]=hr+Br+1>>1,Ee[Ye+2+32]=Ee[Ye+0+64]=Br+on+1>>1,Ee[Ye+1+0]=pa(Tt,hr,Br),Ee[Ye+3+0]=Ee[Ye+1+32]=pa(hr,Br,on),Ee[Ye+3+32]=Ee[Ye+1+64]=pa(Br,on,on),Ee[Ye+3+64]=Ee[Ye+2+64]=Ee[Ye+0+96]=Ee[Ye+1+96]=Ee[Ye+2+96]=Ee[Ye+3+96]=on}function cs(Ee,Ye){var Tt=Ee[Ye-1+0],hr=Ee[Ye-1+32],Br=Ee[Ye-1+64],on=Ee[Ye-1+96],Ue=Ee[Ye-1-32],ae=Ee[Ye+0-32],_e=Ee[Ye+1-32],$e=Ee[Ye+2-32];Ee[Ye+0+0]=Ee[Ye+2+32]=Tt+Ue+1>>1,Ee[Ye+0+32]=Ee[Ye+2+64]=hr+Tt+1>>1,Ee[Ye+0+64]=Ee[Ye+2+96]=Br+hr+1>>1,Ee[Ye+0+96]=on+Br+1>>1,Ee[Ye+3+0]=pa(ae,_e,$e),Ee[Ye+2+0]=pa(Ue,ae,_e),Ee[Ye+1+0]=Ee[Ye+3+32]=pa(Tt,Ue,ae),Ee[Ye+1+32]=Ee[Ye+3+64]=pa(hr,Tt,Ue),Ee[Ye+1+64]=Ee[Ye+3+96]=pa(Br,hr,Tt),Ee[Ye+1+96]=pa(on,Br,hr)}function Rs(Ee,Ye){var Tt;for(Tt=0;8>Tt;++Tt)Xe(Ee,Ye+32*Tt,Ee,Ye-32,8)}function Ko(Ee,Ye){var Tt;for(Tt=0;8>Tt;++Tt)nt(Ee,Ye,Ee[Ye-1],8),Ye+=32}function as(Ee,Ye,Tt){var hr;for(hr=0;8>hr;++hr)nt(Ye,Tt+32*hr,Ee,8)}function co(Ee,Ye){var Tt,hr=8;for(Tt=0;8>Tt;++Tt)hr+=Ee[Ye+Tt-32]+Ee[Ye-1+32*Tt];as(hr>>4,Ee,Ye)}function Ao(Ee,Ye){var Tt,hr=4;for(Tt=0;8>Tt;++Tt)hr+=Ee[Ye+Tt-32];as(hr>>3,Ee,Ye)}function $a(Ee,Ye){var Tt,hr=4;for(Tt=0;8>Tt;++Tt)hr+=Ee[Ye-1+32*Tt];as(hr>>3,Ee,Ye)}function ss(Ee,Ye){as(128,Ee,Ye)}function _s(Ee,Ye,Tt){var hr=Ee[Ye-Tt],Br=Ee[Ye+0],on=3*(Br-hr)+ql[1020+Ee[Ye-2*Tt]-Ee[Ye+Tt]],Ue=Cl[112+(on+4>>3)];Ee[Ye-Tt]=ll[255+hr+Cl[112+(on+3>>3)]],Ee[Ye+0]=ll[255+Br-Ue]}function Fo(Ee,Ye,Tt,hr){var Br=Ee[Ye+0],on=Ee[Ye+Tt];return Hl[255+Ee[Ye-2*Tt]-Ee[Ye-Tt]]>hr||Hl[255+on-Br]>hr}function il(Ee,Ye,Tt,hr){return 4*Hl[255+Ee[Ye-Tt]-Ee[Ye+0]]+Hl[255+Ee[Ye-2*Tt]-Ee[Ye+Tt]]<=hr}function Eo(Ee,Ye,Tt,hr,Br){var on=Ee[Ye-3*Tt],Ue=Ee[Ye-2*Tt],ae=Ee[Ye-Tt],_e=Ee[Ye+0],$e=Ee[Ye+Tt],wt=Ee[Ye+2*Tt],Vt=Ee[Ye+3*Tt];return 4*Hl[255+ae-_e]+Hl[255+Ue-$e]>hr?0:Hl[255+Ee[Ye-4*Tt]-on]<=Br&&Hl[255+on-Ue]<=Br&&Hl[255+Ue-ae]<=Br&&Hl[255+Vt-wt]<=Br&&Hl[255+wt-$e]<=Br&&Hl[255+$e-_e]<=Br}function zo(Ee,Ye,Tt,hr){var Br=2*hr+1;for(hr=0;16>hr;++hr)il(Ee,Ye+hr,Tt,Br)&&_s(Ee,Ye+hr,Tt)}function Fs(Ee,Ye,Tt,hr){var Br=2*hr+1;for(hr=0;16>hr;++hr)il(Ee,Ye+hr*Tt,1,Br)&&_s(Ee,Ye+hr*Tt,1)}function ms(Ee,Ye,Tt,hr){var Br;for(Br=3;0<Br;--Br)zo(Ee,Ye+=4*Tt,Tt,hr)}function hs(Ee,Ye,Tt,hr){var Br;for(Br=3;0<Br;--Br)Fs(Ee,Ye+=4,Tt,hr)}function wn(Ee,Ye,Tt,hr,Br,on,Ue,ae){for(on=2*on+1;0<Br--;){if(Eo(Ee,Ye,Tt,on,Ue))if(Fo(Ee,Ye,Tt,ae))_s(Ee,Ye,Tt);else{var _e=Ee,$e=Ye,wt=Tt,Vt=_e[$e-2*wt],rr=_e[$e-wt],ar=_e[$e+0],Vr=_e[$e+wt],pn=_e[$e+2*wt],Wr=27*(sn=ql[1020+3*(ar-rr)+ql[1020+Vt-Vr]])+63>>7,jr=18*sn+63>>7,sn=9*sn+63>>7;_e[$e-3*wt]=ll[255+_e[$e-3*wt]+sn],_e[$e-2*wt]=ll[255+Vt+jr],_e[$e-wt]=ll[255+rr+Wr],_e[$e+0]=ll[255+ar-Wr],_e[$e+wt]=ll[255+Vr-jr],_e[$e+2*wt]=ll[255+pn-sn]}Ye+=hr}}function Ns(Ee,Ye,Tt,hr,Br,on,Ue,ae){for(on=2*on+1;0<Br--;){if(Eo(Ee,Ye,Tt,on,Ue))if(Fo(Ee,Ye,Tt,ae))_s(Ee,Ye,Tt);else{var _e=Ee,$e=Ye,wt=Tt,Vt=_e[$e-wt],rr=_e[$e+0],ar=_e[$e+wt],Vr=Cl[112+((pn=3*(rr-Vt))+4>>3)],pn=Cl[112+(pn+3>>3)],Wr=Vr+1>>1;_e[$e-2*wt]=ll[255+_e[$e-2*wt]+Wr],_e[$e-wt]=ll[255+Vt+pn],_e[$e+0]=ll[255+rr-Vr],_e[$e+wt]=ll[255+ar-Wr]}Ye+=hr}}function Ll(Ee,Ye,Tt,hr,Br,on){wn(Ee,Ye,Tt,1,16,hr,Br,on)}function el(Ee,Ye,Tt,hr,Br,on){wn(Ee,Ye,1,Tt,16,hr,Br,on)}function Gs(Ee,Ye,Tt,hr,Br,on){var Ue;for(Ue=3;0<Ue;--Ue)Ns(Ee,Ye+=4*Tt,Tt,1,16,hr,Br,on)}function ds(Ee,Ye,Tt,hr,Br,on){var Ue;for(Ue=3;0<Ue;--Ue)Ns(Ee,Ye+=4,1,Tt,16,hr,Br,on)}function ks(Ee,Ye,Tt,hr,Br,on,Ue,ae){wn(Ee,Ye,Br,1,8,on,Ue,ae),wn(Tt,hr,Br,1,8,on,Ue,ae)}function Qs(Ee,Ye,Tt,hr,Br,on,Ue,ae){wn(Ee,Ye,1,Br,8,on,Ue,ae),wn(Tt,hr,1,Br,8,on,Ue,ae)}function tl(Ee,Ye,Tt,hr,Br,on,Ue,ae){Ns(Ee,Ye+4*Br,Br,1,8,on,Ue,ae),Ns(Tt,hr+4*Br,Br,1,8,on,Ue,ae)}function xs(Ee,Ye,Tt,hr,Br,on,Ue,ae){Ns(Ee,Ye+4,1,Br,8,on,Ue,ae),Ns(Tt,hr+4,1,Br,8,on,Ue,ae)}function Bs(){this.ba=new Vi,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Xi,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function al(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Js(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Vo(){this.ua=0,this.Wa=new ji,this.vb=new ji,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new dr,this.yc=new Wt}function No(){this.xb=this.a=0,this.l=new uo,this.ca=new Vi,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Ur,this.Pb=0,this.wd=new Ur,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Vo,this.ab=0,this.gc=ot(4,Js),this.Oc=0}function fs(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new uo,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Ds(Ee,Ye,Tt,hr,Br,on,Ue){for(Ee=Ee==null?0:Ee[Ye+0],Ye=0;Ye<Ue;++Ye)Br[on+Ye]=Ee+Tt[hr+Ye]&255,Ee=Br[on+Ye]}function go(Ee,Ye,Tt,hr,Br,on,Ue){var ae;if(Ee==null)Ds(null,null,Tt,hr,Br,on,Ue);else for(ae=0;ae<Ue;++ae)Br[on+ae]=Ee[Ye+ae]+Tt[hr+ae]&255}function Ut(Ee,Ye,Tt,hr,Br,on,Ue){if(Ee==null)Ds(null,null,Tt,hr,Br,on,Ue);else{var ae,_e=Ee[Ye+0],$e=_e,wt=_e;for(ae=0;ae<Ue;++ae)$e=wt+(_e=Ee[Ye+ae])-$e,wt=Tt[hr+ae]+(-256&$e?0>$e?0:255:$e)&255,$e=_e,Br[on+ae]=wt}}function or(Ee,Ye,Tt,hr){var Br=Ye.width,on=Ye.o;if(Le(Ee!=null&&Ye!=null),0>Tt||0>=hr||Tt+hr>on)return null;if(!Ee.Cc){if(Ee.ga==null){var Ue;if(Ee.ga=new fs,(Ue=Ee.ga==null)||(Ue=Ye.width*Ye.o,Le(Ee.Gb.length==0),Ee.Gb=Ze(Ue),Ee.Uc=0,Ee.Gb==null?Ue=0:(Ee.mb=Ee.Gb,Ee.nb=Ee.Uc,Ee.rc=null,Ue=1),Ue=!Ue),!Ue){Ue=Ee.ga;var ae=Ee.Fa,_e=Ee.P,$e=Ee.qc,wt=Ee.mb,Vt=Ee.nb,rr=_e+1,ar=$e-1,Vr=Ue.l;if(Le(ae!=null&&wt!=null&&Ye!=null),Te[0]=null,Te[1]=Ds,Te[2]=go,Te[3]=Ut,Ue.ca=wt,Ue.tb=Vt,Ue.c=Ye.width,Ue.i=Ye.height,Le(0<Ue.c&&0<Ue.i),1>=$e)Ye=0;else if(Ue.$a=ae[_e+0]>>0&3,Ue.Z=ae[_e+0]>>2&3,Ue.Lc=ae[_e+0]>>4&3,_e=ae[_e+0]>>6&3,0>Ue.$a||1<Ue.$a||4<=Ue.Z||1<Ue.Lc||_e)Ye=0;else if(Vr.put=Ca,Vr.ac=ca,Vr.bc=na,Vr.ma=Ue,Vr.width=Ye.width,Vr.height=Ye.height,Vr.Da=Ye.Da,Vr.v=Ye.v,Vr.va=Ye.va,Vr.j=Ye.j,Vr.o=Ye.o,Ue.$a)e:{Le(Ue.$a==1),Ye=mo();t:for(;;){if(Ye==null){Ye=0;break e}if(Le(Ue!=null),Ue.mc=Ye,Ye.c=Ue.c,Ye.i=Ue.i,Ye.l=Ue.l,Ye.l.ma=Ue,Ye.l.width=Ue.c,Ye.l.height=Ue.i,Ye.a=0,Gn(Ye.m,ae,rr,ar),!To(Ue.c,Ue.i,1,Ye,null))break t;if(Ye.ab==1&&Ye.gc[0].hc==3&&Va(Ye.s)?(Ue.ic=1,ae=Ye.c*Ye.i,Ye.Ta=null,Ye.Ua=0,Ye.V=Ze(ae),Ye.Ba=0,Ye.V==null?(Ye.a=1,Ye=0):Ye=1):(Ue.ic=0,Ye=ao(Ye,Ue.c)),!Ye)break t;Ye=1;break e}Ue.mc=null,Ye=0}else Ye=ar>=Ue.c*Ue.i;Ue=!Ye}if(Ue)return null;Ee.ga.Lc!=1?Ee.Ga=0:hr=on-Tt}Le(Ee.ga!=null),Le(Tt+hr<=on);e:{if(Ye=(ae=Ee.ga).c,on=ae.l.o,ae.$a==0){if(rr=Ee.rc,ar=Ee.Vc,Vr=Ee.Fa,_e=Ee.P+1+Tt*Ye,$e=Ee.mb,wt=Ee.nb+Tt*Ye,Le(_e<=Ee.P+Ee.qc),ae.Z!=0)for(Le(Te[ae.Z]!=null),Ue=0;Ue<hr;++Ue)Te[ae.Z](rr,ar,Vr,_e,$e,wt,Ye),rr=$e,ar=wt,wt+=Ye,_e+=Ye;else for(Ue=0;Ue<hr;++Ue)Xe($e,wt,Vr,_e,Ye),rr=$e,ar=wt,wt+=Ye,_e+=Ye;Ee.rc=rr,Ee.Vc=ar}else{if(Le(ae.mc!=null),Ye=Tt+hr,Le((Ue=ae.mc)!=null),Le(Ye<=Ue.i),Ue.C>=Ye)Ye=1;else if(ae.ic||Se(),ae.ic){ae=Ue.V,rr=Ue.Ba,ar=Ue.c;var pn=Ue.i,Wr=(Vr=1,_e=Ue.$/ar,$e=Ue.$%ar,wt=Ue.m,Vt=Ue.s,Ue.$),jr=ar*pn,sn=ar*Ye,yn=Vt.wc,Vn=Wr<sn?Aa(Vt,$e,_e):null;Le(Wr<=jr),Le(Ye<=pn),Le(Va(Vt));t:for(;;){for(;!wt.h&&Wr<sn;){if($e&yn||(Vn=Aa(Vt,$e,_e)),Le(Vn!=null),oi(wt),256>(pn=ga(Vn.G[0],Vn.H[0],wt)))ae[rr+Wr]=pn,++Wr,++$e>=ar&&($e=0,++_e<=Ye&&!(_e%16)&&io(Ue,_e));else{if(!(280>pn)){Vr=0;break t}pn=La(pn-256,wt);var Li,Mi=ga(Vn.G[4],Vn.H[4],wt);if(oi(wt),!(Wr>=(Mi=va(ar,Mi=La(Mi,wt)))&&jr-Wr>=pn)){Vr=0;break t}for(Li=0;Li<pn;++Li)ae[rr+Wr+Li]=ae[rr+Wr+Li-Mi];for(Wr+=pn,$e+=pn;$e>=ar;)$e-=ar,++_e<=Ye&&!(_e%16)&&io(Ue,_e);Wr<sn&&$e&yn&&(Vn=Aa(Vt,$e,_e))}Le(wt.h==Qn(wt))}io(Ue,_e>Ye?Ye:_e);break t}!Vr||wt.h&&Wr<jr?(Vr=0,Ue.a=wt.h?5:3):Ue.$=Wr,Ye=Vr}else Ye=oo(Ue,Ue.V,Ue.Ba,Ue.c,Ue.i,Ye,So);if(!Ye){hr=0;break e}}Tt+hr>=on&&(Ee.Cc=1),hr=1}if(!hr)return null;if(Ee.Cc&&((hr=Ee.ga)!=null&&(hr.mc=null),Ee.ga=null,0<Ee.Ga))return alert("todo:WebPDequantizeLevels"),null}return Ee.nb+Tt*Br}function Nn(Ee,Ye,Tt,hr,Br,on){for(;0<Br--;){var Ue,ae=Ee,_e=Ye+(Tt?1:0),$e=Ee,wt=Ye+(Tt?0:3);for(Ue=0;Ue<hr;++Ue){var Vt=$e[wt+4*Ue];Vt!=255&&(Vt*=32897,ae[_e+4*Ue+0]=ae[_e+4*Ue+0]*Vt>>23,ae[_e+4*Ue+1]=ae[_e+4*Ue+1]*Vt>>23,ae[_e+4*Ue+2]=ae[_e+4*Ue+2]*Vt>>23)}Ye+=on}}function hi(Ee,Ye,Tt,hr,Br){for(;0<hr--;){var on;for(on=0;on<Tt;++on){var Ue=Ee[Ye+2*on+0],ae=15&($e=Ee[Ye+2*on+1]),_e=4369*ae,$e=(240&$e|$e>>4)*_e>>16;Ee[Ye+2*on+0]=(240&Ue|Ue>>4)*_e>>16&240|(15&Ue|Ue<<4)*_e>>16>>4&15,Ee[Ye+2*on+1]=240&$e|ae}Ye+=Br}}function Nt(Ee,Ye,Tt,hr,Br,on,Ue,ae){var _e,$e,wt=255;for($e=0;$e<Br;++$e){for(_e=0;_e<hr;++_e){var Vt=Ee[Ye+_e];on[Ue+4*_e]=Vt,wt&=Vt}Ye+=Tt,Ue+=ae}return wt!=255}function ce(Ee,Ye,Tt,hr,Br){var on;for(on=0;on<Br;++on)Tt[hr+on]=Ee[Ye+on]>>8}function Se(){Wl=Nn,au=hi,Nl=Nt,$l=ce}function Ie(Ee,Ye,Tt){zt[Ee]=function(hr,Br,on,Ue,ae,_e,$e,wt,Vt,rr,ar,Vr,pn,Wr,jr,sn,yn){var Vn,Li=yn-1>>1,Mi=ae[_e+0]|$e[wt+0]<<16,da=Vt[rr+0]|ar[Vr+0]<<16;Le(hr!=null);var $i=3*Mi+da+131074>>2;for(Ye(hr[Br+0],255&$i,$i>>16,pn,Wr),on!=null&&($i=3*da+Mi+131074>>2,Ye(on[Ue+0],255&$i,$i>>16,jr,sn)),Vn=1;Vn<=Li;++Vn){var Qa=ae[_e+Vn]|$e[wt+Vn]<<16,ya=Vt[rr+Vn]|ar[Vr+Vn]<<16,fo=Mi+Qa+da+ya+524296,za=fo+2*(Qa+da)>>3;$i=za+Mi>>1,Mi=(fo=fo+2*(Mi+ya)>>3)+Qa>>1,Ye(hr[Br+2*Vn-1],255&$i,$i>>16,pn,Wr+(2*Vn-1)*Tt),Ye(hr[Br+2*Vn-0],255&Mi,Mi>>16,pn,Wr+(2*Vn-0)*Tt),on!=null&&($i=fo+da>>1,Mi=za+ya>>1,Ye(on[Ue+2*Vn-1],255&$i,$i>>16,jr,sn+(2*Vn-1)*Tt),Ye(on[Ue+2*Vn+0],255&Mi,Mi>>16,jr,sn+(2*Vn+0)*Tt)),Mi=Qa,da=ya}1&yn||($i=3*Mi+da+131074>>2,Ye(hr[Br+yn-1],255&$i,$i>>16,pn,Wr+(yn-1)*Tt),on!=null&&($i=3*da+Mi+131074>>2,Ye(on[Ue+yn-1],255&$i,$i>>16,jr,sn+(yn-1)*Tt)))}}function Je(){ze[Sl]=st,ze[Su]=Zt,ze[vu]=ht,ze[Au]=Cr,ze[Ol]=Sr,ze[cu]=Kr,ze[du]=Zr,ze[Lu]=Zt,ze[zl]=Cr,ze[ru]=Sr,ze[ou]=Kr}function Dt(Ee){return Ee&~Gi?0>Ee?0:255:Ee>>ua}function sr(Ee,Ye){return Dt((19077*Ee>>8)+(26149*Ye>>8)-14234)}function Jr(Ee,Ye,Tt){return Dt((19077*Ee>>8)-(6419*Ye>>8)-(13320*Tt>>8)+8708)}function gn(Ee,Ye){return Dt((19077*Ee>>8)+(33050*Ye>>8)-17685)}function Dn(Ee,Ye,Tt,hr,Br){hr[Br+0]=sr(Ee,Tt),hr[Br+1]=Jr(Ee,Ye,Tt),hr[Br+2]=gn(Ee,Ye)}function ui(Ee,Ye,Tt,hr,Br){hr[Br+0]=gn(Ee,Ye),hr[Br+1]=Jr(Ee,Ye,Tt),hr[Br+2]=sr(Ee,Tt)}function Si(Ee,Ye,Tt,hr,Br){var on=Jr(Ee,Ye,Tt);Ye=on<<3&224|gn(Ee,Ye)>>3,hr[Br+0]=248&sr(Ee,Tt)|on>>5,hr[Br+1]=Ye}function vi(Ee,Ye,Tt,hr,Br){var on=240&gn(Ee,Ye)|15;hr[Br+0]=240&sr(Ee,Tt)|Jr(Ee,Ye,Tt)>>4,hr[Br+1]=on}function Qi(Ee,Ye,Tt,hr,Br){hr[Br+0]=255,Dn(Ee,Ye,Tt,hr,Br+1)}function sa(Ee,Ye,Tt,hr,Br){ui(Ee,Ye,Tt,hr,Br),hr[Br+3]=255}function Ua(Ee,Ye,Tt,hr,Br){Dn(Ee,Ye,Tt,hr,Br),hr[Br+3]=255}function _o(Ee,Ye){return 0>Ee?0:Ee>Ye?Ye:Ee}function no(Ee,Ye,Tt){zt[Ee]=function(hr,Br,on,Ue,ae,_e,$e,wt,Vt){for(var rr=wt+(-2&Vt)*Tt;wt!=rr;)Ye(hr[Br+0],on[Ue+0],ae[_e+0],$e,wt),Ye(hr[Br+1],on[Ue+0],ae[_e+0],$e,wt+Tt),Br+=2,++Ue,++_e,wt+=2*Tt;1&Vt&&Ye(hr[Br+0],on[Ue+0],ae[_e+0],$e,wt)}}function Wo(Ee,Ye,Tt){return Tt==0?Ee==0?Ye==0?6:5:Ye==0?4:0:Tt}function Zo(Ee,Ye,Tt,hr,Br){switch(Ee>>>30){case 3:Is(Ye,Tt,hr,Br,0);break;case 2:es(Ye,Tt,hr,Br);break;case 1:Ps(Ye,Tt,hr,Br)}}function Bo(Ee,Ye){var Tt,hr,Br=Ye.M,on=Ye.Nb,Ue=Ee.oc,ae=Ee.pc+40,_e=Ee.oc,$e=Ee.pc+584,wt=Ee.oc,Vt=Ee.pc+600;for(Tt=0;16>Tt;++Tt)Ue[ae+32*Tt-1]=129;for(Tt=0;8>Tt;++Tt)_e[$e+32*Tt-1]=129,wt[Vt+32*Tt-1]=129;for(0<Br?Ue[ae-1-32]=_e[$e-1-32]=wt[Vt-1-32]=129:(nt(Ue,ae-32-1,127,21),nt(_e,$e-32-1,127,9),nt(wt,Vt-32-1,127,9)),hr=0;hr<Ee.za;++hr){var rr=Ye.ya[Ye.aa+hr];if(0<hr){for(Tt=-1;16>Tt;++Tt)Xe(Ue,ae+32*Tt-4,Ue,ae+32*Tt+12,4);for(Tt=-1;8>Tt;++Tt)Xe(_e,$e+32*Tt-4,_e,$e+32*Tt+4,4),Xe(wt,Vt+32*Tt-4,wt,Vt+32*Tt+4,4)}var ar=Ee.Gd,Vr=Ee.Hd+hr,pn=rr.ad,Wr=rr.Hc;if(0<Br&&(Xe(Ue,ae-32,ar[Vr].y,0,16),Xe(_e,$e-32,ar[Vr].f,0,8),Xe(wt,Vt-32,ar[Vr].ea,0,8)),rr.Za){var jr=Ue,sn=ae-32+16;for(0<Br&&(hr>=Ee.za-1?nt(jr,sn,ar[Vr].y[15],4):Xe(jr,sn,ar[Vr+1].y,0,4)),Tt=0;4>Tt;Tt++)jr[sn+128+Tt]=jr[sn+256+Tt]=jr[sn+384+Tt]=jr[sn+0+Tt];for(Tt=0;16>Tt;++Tt,Wr<<=2)jr=Ue,sn=ae+ys[Tt],H[rr.Ob[Tt]](jr,sn),Zo(Wr,pn,16*+Tt,jr,sn)}else if(jr=Wo(hr,Br,rr.Ob[0]),W[jr](Ue,ae),Wr!=0)for(Tt=0;16>Tt;++Tt,Wr<<=2)Zo(Wr,pn,16*+Tt,Ue,ae+ys[Tt]);for(Tt=rr.Gc,jr=Wo(hr,Br,rr.Dd),Z[jr](_e,$e),Z[jr](wt,Vt),Wr=pn,jr=_e,sn=$e,255&(rr=Tt>>0)&&(170&rr?Ls(Wr,256,jr,sn):ml(Wr,256,jr,sn)),rr=wt,Wr=Vt,255&(Tt>>=8)&&(170&Tt?Ls(pn,320,rr,Wr):ml(pn,320,rr,Wr)),Br<Ee.Ub-1&&(Xe(ar[Vr].y,0,Ue,ae+480,16),Xe(ar[Vr].f,0,_e,$e+224,8),Xe(ar[Vr].ea,0,wt,Vt+224,8)),Tt=8*on*Ee.B,ar=Ee.sa,Vr=Ee.ta+16*hr+16*on*Ee.R,pn=Ee.qa,rr=Ee.ra+8*hr+Tt,Wr=Ee.Ha,jr=Ee.Ia+8*hr+Tt,Tt=0;16>Tt;++Tt)Xe(ar,Vr+Tt*Ee.R,Ue,ae+32*Tt,16);for(Tt=0;8>Tt;++Tt)Xe(pn,rr+Tt*Ee.B,_e,$e+32*Tt,8),Xe(Wr,jr+Tt*Ee.B,wt,Vt+32*Tt,8)}}function Es(Ee,Ye,Tt,hr,Br,on,Ue,ae,_e){var $e=[0],wt=[0],Vt=0,rr=_e!=null?_e.kd:0,ar=_e!=null?_e:new al;if(Ee==null||12>Tt)return 7;ar.data=Ee,ar.w=Ye,ar.ha=Tt,Ye=[Ye],Tt=[Tt],ar.gb=[ar.gb];e:{var Vr=Ye,pn=Tt,Wr=ar.gb;if(Le(Ee!=null),Le(pn!=null),Le(Wr!=null),Wr[0]=0,12<=pn[0]&&!je(Ee,Vr[0],"RIFF")){if(je(Ee,Vr[0]+8,"WEBP")){Wr=3;break e}var jr=ba(Ee,Vr[0]+4);if(12>jr||4294967286<jr){Wr=3;break e}if(rr&&jr>pn[0]-8){Wr=7;break e}Wr[0]=jr,Vr[0]+=12,pn[0]-=12}Wr=0}if(Wr!=0)return Wr;for(jr=0<ar.gb[0],Tt=Tt[0];;){e:{var sn=Ee;pn=Ye,Wr=Tt;var yn=$e,Vn=wt,Li=Vr=[0];if(($i=Vt=[Vt])[0]=0,8>Wr[0])Wr=7;else{if(!je(sn,pn[0],"VP8X")){if(ba(sn,pn[0]+4)!=10){Wr=3;break e}if(18>Wr[0]){Wr=7;break e}var Mi=ba(sn,pn[0]+8),da=1+aa(sn,pn[0]+12);if(2147483648<=da*(sn=1+aa(sn,pn[0]+15))){Wr=3;break e}Li!=null&&(Li[0]=Mi),yn!=null&&(yn[0]=da),Vn!=null&&(Vn[0]=sn),pn[0]+=18,Wr[0]-=18,$i[0]=1}Wr=0}}if(Vt=Vt[0],Vr=Vr[0],Wr!=0)return Wr;if(pn=!!(2&Vr),!jr&&Vt)return 3;if(on!=null&&(on[0]=!!(16&Vr)),Ue!=null&&(Ue[0]=pn),ae!=null&&(ae[0]=0),Ue=$e[0],Vr=wt[0],Vt&&pn&&_e==null){Wr=0;break}if(4>Tt){Wr=7;break}if(jr&&Vt||!jr&&!Vt&&!je(Ee,Ye[0],"ALPH")){Tt=[Tt],ar.na=[ar.na],ar.P=[ar.P],ar.Sa=[ar.Sa];e:{Mi=Ee,Wr=Ye,jr=Tt;var $i=ar.gb;yn=ar.na,Vn=ar.P,Li=ar.Sa,da=22,Le(Mi!=null),Le(jr!=null),sn=Wr[0];var Qa=jr[0];for(Le(yn!=null),Le(Li!=null),yn[0]=null,Vn[0]=null,Li[0]=0;;){if(Wr[0]=sn,jr[0]=Qa,8>Qa){Wr=7;break e}var ya=ba(Mi,sn+4);if(4294967286<ya){Wr=3;break e}var fo=8+ya+1&-2;if(da+=fo,0<$i&&da>$i){Wr=3;break e}if(!je(Mi,sn,"VP8 ")||!je(Mi,sn,"VP8L")){Wr=0;break e}if(Qa[0]<fo){Wr=7;break e}je(Mi,sn,"ALPH")||(yn[0]=Mi,Vn[0]=sn+8,Li[0]=ya),sn+=fo,Qa-=fo}}if(Tt=Tt[0],ar.na=ar.na[0],ar.P=ar.P[0],ar.Sa=ar.Sa[0],Wr!=0)break}Tt=[Tt],ar.Ja=[ar.Ja],ar.xa=[ar.xa];e:if($i=Ee,Wr=Ye,jr=Tt,yn=ar.gb[0],Vn=ar.Ja,Li=ar.xa,Mi=Wr[0],sn=!je($i,Mi,"VP8 "),da=!je($i,Mi,"VP8L"),Le($i!=null),Le(jr!=null),Le(Vn!=null),Le(Li!=null),8>jr[0])Wr=7;else{if(sn||da){if($i=ba($i,Mi+4),12<=yn&&$i>yn-12){Wr=3;break e}if(rr&&$i>jr[0]-8){Wr=7;break e}Vn[0]=$i,Wr[0]+=8,jr[0]-=8,Li[0]=da}else Li[0]=5<=jr[0]&&$i[Mi+0]==47&&!($i[Mi+4]>>5),Vn[0]=jr[0];Wr=0}if(Tt=Tt[0],ar.Ja=ar.Ja[0],ar.xa=ar.xa[0],Ye=Ye[0],Wr!=0)break;if(4294967286<ar.Ja)return 3;if(ae==null||pn||(ae[0]=ar.xa?2:1),Ue=[Ue],Vr=[Vr],ar.xa){if(5>Tt){Wr=7;break}ae=Ue,rr=Vr,pn=on,Ee==null||5>Tt?Ee=0:5<=Tt&&Ee[Ye+0]==47&&!(Ee[Ye+4]>>5)?(jr=[0],$i=[0],yn=[0],Gn(Vn=new Ur,Ee,Ye,Tt),Pa(Vn,jr,$i,yn)?(ae!=null&&(ae[0]=jr[0]),rr!=null&&(rr[0]=$i[0]),pn!=null&&(pn[0]=yn[0]),Ee=1):Ee=0):Ee=0}else{if(10>Tt){Wr=7;break}ae=Vr,Ee==null||10>Tt||!Tr(Ee,Ye+3,Tt-3)?Ee=0:(rr=Ee[Ye+0]|Ee[Ye+1]<<8|Ee[Ye+2]<<16,pn=16383&(Ee[Ye+7]<<8|Ee[Ye+6]),Ee=16383&(Ee[Ye+9]<<8|Ee[Ye+8]),1&rr||3<(rr>>1&7)||!(rr>>4&1)||rr>>5>=ar.Ja||!pn||!Ee?Ee=0:(Ue&&(Ue[0]=pn),ae&&(ae[0]=Ee),Ee=1))}if(!Ee)return 3;if(Ue=Ue[0],Vr=Vr[0],Vt&&($e[0]!=Ue||wt[0]!=Vr))return 3;_e!=null&&(_e[0]=ar,_e.offset=Ye-_e.w,Le(4294967286>Ye-_e.w),Le(_e.offset==_e.ha-Tt));break}return Wr==0||Wr==7&&Vt&&_e==null?(on!=null&&(on[0]|=ar.na!=null&&0<ar.na.length),hr!=null&&(hr[0]=Ue),Br!=null&&(Br[0]=Vr),0):Wr}function As(Ee,Ye,Tt){var hr=Ye.width,Br=Ye.height,on=0,Ue=0,ae=hr,_e=Br;if(Ye.Da=Ee!=null&&0<Ee.Da,Ye.Da&&(ae=Ee.cd,_e=Ee.bd,on=Ee.v,Ue=Ee.j,11>Tt||(on&=-2,Ue&=-2),0>on||0>Ue||0>=ae||0>=_e||on+ae>hr||Ue+_e>Br))return 0;if(Ye.v=on,Ye.j=Ue,Ye.va=on+ae,Ye.o=Ue+_e,Ye.U=ae,Ye.T=_e,Ye.da=Ee!=null&&0<Ee.da,Ye.da){if(!ha(ae,_e,Tt=[Ee.ib],on=[Ee.hb]))return 0;Ye.ib=Tt[0],Ye.hb=on[0]}return Ye.ob=Ee!=null&&Ee.ob,Ye.Kb=Ee==null||!Ee.Sd,Ye.da&&(Ye.ob=Ye.ib<3*hr/4&&Ye.hb<3*Br/4,Ye.Kb=0),1}function $o(Ee){if(Ee==null)return 2;if(11>Ee.S){var Ye=Ee.f.RGBA;Ye.fb+=(Ee.height-1)*Ye.A,Ye.A=-Ye.A}else Ye=Ee.f.kb,Ee=Ee.height,Ye.O+=(Ee-1)*Ye.fa,Ye.fa=-Ye.fa,Ye.N+=(Ee-1>>1)*Ye.Ab,Ye.Ab=-Ye.Ab,Ye.W+=(Ee-1>>1)*Ye.Db,Ye.Db=-Ye.Db,Ye.F!=null&&(Ye.J+=(Ee-1)*Ye.lb,Ye.lb=-Ye.lb);return 0}function Do(Ee,Ye,Tt,hr){if(hr==null||0>=Ee||0>=Ye)return 2;if(Tt!=null){if(Tt.Da){var Br=Tt.cd,on=Tt.bd,Ue=-2&Tt.v,ae=-2&Tt.j;if(0>Ue||0>ae||0>=Br||0>=on||Ue+Br>Ee||ae+on>Ye)return 2;Ee=Br,Ye=on}if(Tt.da){if(!ha(Ee,Ye,Br=[Tt.ib],on=[Tt.hb]))return 2;Ee=Br[0],Ye=on[0]}}hr.width=Ee,hr.height=Ye;e:{var _e=hr.width,$e=hr.height;if(Ee=hr.S,0>=_e||0>=$e||!(Ee>=Sl&&13>Ee))Ee=2;else{if(0>=hr.Rd&&hr.sd==null){Ue=on=Br=Ye=0;var wt=(ae=_e*Hs[Ee])*$e;if(11>Ee||(on=($e+1)/2*(Ye=(_e+1)/2),Ee==12&&(Ue=(Br=_e)*$e)),($e=Ze(wt+2*on+Ue))==null){Ee=1;break e}hr.sd=$e,11>Ee?((_e=hr.f.RGBA).eb=$e,_e.fb=0,_e.A=ae,_e.size=wt):((_e=hr.f.kb).y=$e,_e.O=0,_e.fa=ae,_e.Fd=wt,_e.f=$e,_e.N=0+wt,_e.Ab=Ye,_e.Cd=on,_e.ea=$e,_e.W=0+wt+on,_e.Db=Ye,_e.Ed=on,Ee==12&&(_e.F=$e,_e.J=0+wt+2*on),_e.Tc=Ue,_e.lb=Br)}if(Ye=1,Br=hr.S,on=hr.width,Ue=hr.height,Br>=Sl&&13>Br)if(11>Br)Ee=hr.f.RGBA,Ye&=(ae=Math.abs(Ee.A))*(Ue-1)+on<=Ee.size,Ye&=ae>=on*Hs[Br],Ye&=Ee.eb!=null;else{Ee=hr.f.kb,ae=(on+1)/2,wt=(Ue+1)/2,_e=Math.abs(Ee.fa),$e=Math.abs(Ee.Ab);var Vt=Math.abs(Ee.Db),rr=Math.abs(Ee.lb),ar=rr*(Ue-1)+on;Ye&=_e*(Ue-1)+on<=Ee.Fd,Ye&=$e*(wt-1)+ae<=Ee.Cd,Ye=(Ye&=Vt*(wt-1)+ae<=Ee.Ed)&_e>=on&$e>=ae&Vt>=ae,Ye&=Ee.y!=null,Ye&=Ee.f!=null,Ye&=Ee.ea!=null,Br==12&&(Ye&=rr>=on,Ye&=ar<=Ee.Tc,Ye&=Ee.F!=null)}else Ye=0;Ee=Ye?0:2}}return Ee!=0||Tt!=null&&Tt.fd&&(Ee=$o(hr)),Ee}var vo=64,Ms=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],rl=24,gs=32,Ra=8,dl=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Ir("Predictor0","PredictorAdd0"),zt.Predictor0=function(){return 4278190080},zt.Predictor1=function(Ee){return Ee},zt.Predictor2=function(Ee,Ye,Tt){return Ye[Tt+0]},zt.Predictor3=function(Ee,Ye,Tt){return Ye[Tt+1]},zt.Predictor4=function(Ee,Ye,Tt){return Ye[Tt-1]},zt.Predictor5=function(Ee,Ye,Tt){return Cn(Cn(Ee,Ye[Tt+1]),Ye[Tt+0])},zt.Predictor6=function(Ee,Ye,Tt){return Cn(Ee,Ye[Tt-1])},zt.Predictor7=function(Ee,Ye,Tt){return Cn(Ee,Ye[Tt+0])},zt.Predictor8=function(Ee,Ye,Tt){return Cn(Ye[Tt-1],Ye[Tt+0])},zt.Predictor9=function(Ee,Ye,Tt){return Cn(Ye[Tt+0],Ye[Tt+1])},zt.Predictor10=function(Ee,Ye,Tt){return Cn(Cn(Ee,Ye[Tt-1]),Cn(Ye[Tt+0],Ye[Tt+1]))},zt.Predictor11=function(Ee,Ye,Tt){var hr=Ye[Tt+0];return 0>=Gr(hr>>24&255,Ee>>24&255,(Ye=Ye[Tt-1])>>24&255)+Gr(hr>>16&255,Ee>>16&255,Ye>>16&255)+Gr(hr>>8&255,Ee>>8&255,Ye>>8&255)+Gr(255&hr,255&Ee,255&Ye)?hr:Ee},zt.Predictor12=function(Ee,Ye,Tt){var hr=Ye[Tt+0];return(mr((Ee>>24&255)+(hr>>24&255)-((Ye=Ye[Tt-1])>>24&255))<<24|mr((Ee>>16&255)+(hr>>16&255)-(Ye>>16&255))<<16|mr((Ee>>8&255)+(hr>>8&255)-(Ye>>8&255))<<8|mr((255&Ee)+(255&hr)-(255&Ye)))>>>0},zt.Predictor13=function(Ee,Ye,Tt){var hr=Ye[Tt-1];return(kr((Ee=Cn(Ee,Ye[Tt+0]))>>24&255,hr>>24&255)<<24|kr(Ee>>16&255,hr>>16&255)<<16|kr(Ee>>8&255,hr>>8&255)<<8|kr(Ee>>0&255,hr>>0&255))>>>0};var fl=zt.PredictorAdd0;zt.PredictorAdd1=ln,Ir("Predictor2","PredictorAdd2"),Ir("Predictor3","PredictorAdd3"),Ir("Predictor4","PredictorAdd4"),Ir("Predictor5","PredictorAdd5"),Ir("Predictor6","PredictorAdd6"),Ir("Predictor7","PredictorAdd7"),Ir("Predictor8","PredictorAdd8"),Ir("Predictor9","PredictorAdd9"),Ir("Predictor10","PredictorAdd10"),Ir("Predictor11","PredictorAdd11"),Ir("Predictor12","PredictorAdd12"),Ir("Predictor13","PredictorAdd13");var Us=zt.PredictorAdd2;Lr("ColorIndexInverseTransform","MapARGB","32b",function(Ee){return Ee>>8&255},function(Ee){return Ee}),Lr("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(Ee){return Ee},function(Ee){return Ee>>8&255});var Os,Xs=zt.ColorIndexInverseTransform,Ql=zt.MapARGB,Ul=zt.VP8LColorIndexInverseTransformAlpha,wl=zt.MapAlpha,Ts=zt.VP8LPredictorsAdd=[];Ts.length=16,(zt.VP8LPredictors=[]).length=16,(zt.VP8LPredictorsAdd_C=[]).length=16,(zt.VP8LPredictors_C=[]).length=16;var Ws,Tl,pl,jo,yo,qo,ps,Is,es,Ls,Ps,ml,Rl,_l,Bl,jl,kl,Xl,ol,Ys,sl,nl,xl,Ml,Wl,au,Nl,$l,tu=Ze(511),Iu=Ze(2041),pu=Ze(225),mu=Ze(767),gu=0,ql=Iu,Cl=pu,ll=mu,Hl=tu,Sl=0,Su=1,vu=2,Au=3,Ol=4,cu=5,du=6,Lu=7,zl=8,ru=9,ou=10,su=[2,3,7],Jl=[3,3,11],Du=[280,256,256,256,40],Ru=[0,1,1,1,0],Zl=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],yu=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],xu=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],bu=8,hl=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Dl=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],nu=null,Nu=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],hu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],fu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],iu=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Ae=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],ee=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],L=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],W=[],H=[],Z=[],ne=1,ve=2,Te=[],ze=[];Ie("UpsampleRgbLinePair",Dn,3),Ie("UpsampleBgrLinePair",ui,3),Ie("UpsampleRgbaLinePair",Ua,4),Ie("UpsampleBgraLinePair",sa,4),Ie("UpsampleArgbLinePair",Qi,4),Ie("UpsampleRgba4444LinePair",vi,2),Ie("UpsampleRgb565LinePair",Si,2);var st=zt.UpsampleRgbLinePair,ht=zt.UpsampleBgrLinePair,Zt=zt.UpsampleRgbaLinePair,Cr=zt.UpsampleBgraLinePair,Sr=zt.UpsampleArgbLinePair,Kr=zt.UpsampleRgba4444LinePair,Zr=zt.UpsampleRgb565LinePair,On=16,Rn=1<<On-1,Zn=-227,wi=482,ua=6,Gi=(256<<ua)-1,Zi=0,ka=Ze(256),Ga=Ze(256),Ba=Ze(256),Sa=Ze(256),Go=Ze(wi-Zn),bs=Ze(wi-Zn);no("YuvToRgbRow",Dn,3),no("YuvToBgrRow",ui,3),no("YuvToRgbaRow",Ua,4),no("YuvToBgraRow",sa,4),no("YuvToArgbRow",Qi,4),no("YuvToRgba4444Row",vi,2),no("YuvToRgb565Row",Si,2);var ys=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Cs=[0,2,8],js=[8,7,6,4,4,2,2,2,1,1,1,1],ws=1;this.WebPDecodeRGBA=function(Ee,Ye,Tt,hr,Br){var on=Su,Ue=new Bs,ae=new Vi;Ue.ba=ae,ae.S=on,ae.width=[ae.width],ae.height=[ae.height];var _e=ae.width,$e=ae.height,wt=new ea;if(wt==null||Ee==null)var Vt=2;else Le(wt!=null),Vt=Es(Ee,Ye,Tt,wt.width,wt.height,wt.Pd,wt.Qd,wt.format,null);if(Vt!=0?_e=0:(_e!=null&&(_e[0]=wt.width[0]),$e!=null&&($e[0]=wt.height[0]),_e=1),_e){ae.width=ae.width[0],ae.height=ae.height[0],hr!=null&&(hr[0]=ae.width),Br!=null&&(Br[0]=ae.height);e:{if(hr=new uo,(Br=new al).data=Ee,Br.w=Ye,Br.ha=Tt,Br.kd=1,Ye=[0],Le(Br!=null),((Ee=Es(Br.data,Br.w,Br.ha,null,null,null,Ye,null,Br))==0||Ee==7)&&Ye[0]&&(Ee=4),(Ye=Ee)==0){if(Le(Ue!=null),hr.data=Br.data,hr.w=Br.w+Br.offset,hr.ha=Br.ha-Br.offset,hr.put=Ca,hr.ac=ca,hr.bc=na,hr.ma=Ue,Br.xa){if((Ee=mo())==null){Ue=1;break e}if(function(rr,ar){var Vr=[0],pn=[0],Wr=[0];t:for(;;){if(rr==null)return 0;if(ar==null)return rr.a=2,0;if(rr.l=ar,rr.a=0,Gn(rr.m,ar.data,ar.w,ar.ha),!Pa(rr.m,Vr,pn,Wr)){rr.a=3;break t}if(rr.xb=ve,ar.width=Vr[0],ar.height=pn[0],!To(Vr[0],pn[0],1,rr,null))break t;return 1}return Le(rr.a!=0),0}(Ee,hr)){if(hr=(Ye=Do(hr.width,hr.height,Ue.Oa,Ue.ba))==0){t:{hr=Ee;r:for(;;){if(hr==null){hr=0;break t}if(Le(hr.s.yc!=null),Le(hr.s.Ya!=null),Le(0<hr.s.Wb),Le((Tt=hr.l)!=null),Le((Br=Tt.ma)!=null),hr.xb!=0){if(hr.ca=Br.ba,hr.tb=Br.tb,Le(hr.ca!=null),!As(Br.Oa,Tt,Au)){hr.a=2;break r}if(!ao(hr,Tt.width))break r;if(Tt.da)break r;if((Tt.da||Fi(hr.ca.S))&&Se(),11>hr.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),hr.ca.f.kb.F!=null&&Se()),hr.Pb&&0<hr.s.ua&&hr.s.vb.X==null&&!yi(hr.s.vb,hr.s.Wa.Xa)){hr.a=1;break r}hr.xb=0}if(!oo(hr,hr.V,hr.Ba,hr.c,hr.i,Tt.o,_a))break r;Br.Dc=hr.Ma,hr=1;break t}Le(hr.a!=0),hr=0}hr=!hr}hr&&(Ye=Ee.a)}else Ye=Ee.a}else{if((Ee=new Ha)==null){Ue=1;break e}if(Ee.Fa=Br.na,Ee.P=Br.P,Ee.qc=Br.Sa,tn(Ee,hr)){if((Ye=Do(hr.width,hr.height,Ue.Oa,Ue.ba))==0){if(Ee.Aa=0,Tt=Ue.Oa,Le((Br=Ee)!=null),Tt!=null){if(0<(_e=0>(_e=Tt.Md)?0:100<_e?255:255*_e/100)){for($e=wt=0;4>$e;++$e)12>(Vt=Br.pb[$e]).lc&&(Vt.ia=_e*js[0>Vt.lc?0:Vt.lc]>>3),wt|=Vt.ia;wt&&(alert("todo:VP8InitRandom"),Br.ia=1)}Br.Ga=Tt.Id,100<Br.Ga?Br.Ga=100:0>Br.Ga&&(Br.Ga=0)}fn(Ee,hr)||(Ye=Ee.a)}}else Ye=Ee.a}Ye==0&&Ue.Oa!=null&&Ue.Oa.fd&&(Ye=$o(Ue.ba))}Ue=Ye}on=Ue!=0?null:11>on?ae.f.RGBA.eb:ae.f.kb.y}else on=null;return on};var Hs=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function pr(Yn,zt){for(var Ot="",kt=0;kt<4;kt++)Ot+=String.fromCharCode(Yn[zt++]);return Ot}function $r(Yn,zt){return(Yn[zt+0]<<0|Yn[zt+1]<<8|Yn[zt+2]<<16)>>>0}function Yr(Yn,zt){return(Yn[zt+0]<<0|Yn[zt+1]<<8|Yn[zt+2]<<16|Yn[zt+3]<<24)>>>0}new gt;var mn=[0],Ar=[0],zn=[],Fr=new gt,Bn=it,bn=function(Yn,zt){var Ot={},kt=0,Bt=!1,Wt=0,Lt=0;if(Ot.frames=[],!function(Ur,In,Qn,qn){for(var oi=0;oi<qn;oi++)if(Ur[In+oi]!=Qn.charCodeAt(oi))return!0;return!1}(Yn,zt,"RIFF",4)){var dr,yr;for(Yr(Yn,zt+=4),zt+=8;zt<Yn.length;){var br=pr(Yn,zt),Mr=Yr(Yn,zt+=4);zt+=4;var Gn=Mr+(1&Mr);switch(br){case"VP8 ":case"VP8L":Ot.frames[kt]===void 0&&(Ot.frames[kt]={}),(vn=Ot.frames[kt]).src_off=Bt?Lt:zt-8,vn.src_size=Wt+Mr+8,kt++,Bt&&(Bt=!1,Wt=0,Lt=0);break;case"VP8X":(vn=Ot.header={}).feature_flags=Yn[zt];var Mn=zt+4;vn.canvas_width=1+$r(Yn,Mn),Mn+=3,vn.canvas_height=1+$r(Yn,Mn),Mn+=3;break;case"ALPH":Bt=!0,Wt=Gn+8,Lt=zt-8;break;case"ANIM":(vn=Ot.header).bgcolor=Yr(Yn,zt),Mn=zt+4,vn.loop_count=(dr=Yn)[(yr=Mn)+0]<<0|dr[yr+1]<<8,Mn+=2;break;case"ANMF":var di,vn;(vn=Ot.frames[kt]={}).offset_x=2*$r(Yn,zt),zt+=3,vn.offset_y=2*$r(Yn,zt),zt+=3,vn.width=1+$r(Yn,zt),zt+=3,vn.height=1+$r(Yn,zt),zt+=3,vn.duration=$r(Yn,zt),zt+=3,di=Yn[zt++],vn.dispose=1&di,vn.blend=di>>1&1}br!="ANMF"&&(zt+=Gn)}return Ot}}(Bn,0);bn.response=Bn,bn.rgbaoutput=!0,bn.dataurl=!1;var en=bn.header?bn.header:null,ti=bn.frames?bn.frames:null;if(en){en.loop_counter=en.loop_count,mn=[en.canvas_height],Ar=[en.canvas_width];for(var pi=0;pi<ti.length&&ti[pi].blend!=0;pi++);}var Pi=ti[0],qr=Fr.WebPDecodeRGBA(Bn,Pi.src_off,Pi.src_size,Ar,mn);Pi.rgba=qr,Pi.imgwidth=Ar[0],Pi.imgheight=mn[0];for(var En=0;En<Ar[0]*mn[0]*4;En++)zn[En]=qr[En];return this.width=Ar,this.height=mn,this.data=zn,this}!function(it){var Le=function(){return typeof v.b=="function"},je=function(Ar,zn,Fr,Bn){var bn=4,en=ot;switch(Bn){case it.image_compression.FAST:bn=1,en=Ze;break;case it.image_compression.MEDIUM:bn=6,en=Ct;break;case it.image_compression.SLOW:bn=9,en=gt}Ar=Xe(Ar,zn,Fr,en);var ti=Object(v.b)(Ar,{level:bn});return it.__addimage__.arrayBufferToBinaryString(ti)},Xe=function(Ar,zn,Fr,Bn){for(var bn,en,ti,pi=Ar.length/zn,Pi=new Uint8Array(Ar.length+pi),qr=$r(),En=0;En<pi;En+=1){if(ti=En*zn,bn=Ar.subarray(ti,ti+zn),Bn)Pi.set(Bn(bn,Fr,en),ti+En);else{for(var Yn,zt=qr.length,Ot=[];Yn<zt;Yn+=1)Ot[Yn]=qr[Yn](bn,Fr,en);var kt=Yr(Ot.concat());Pi.set(Ot[kt],ti+En)}en=bn}return Pi},nt=function(Ar){var zn=Array.apply([],Ar);return zn.unshift(0),zn},Ze=function(Ar,zn){var Fr,Bn=[],bn=Ar.length;Bn[0]=1;for(var en=0;en<bn;en+=1)Fr=Ar[en-zn]||0,Bn[en+1]=Ar[en]-Fr+256&255;return Bn},ot=function(Ar,zn,Fr){var Bn,bn=[],en=Ar.length;bn[0]=2;for(var ti=0;ti<en;ti+=1)Bn=Fr&&Fr[ti]||0,bn[ti+1]=Ar[ti]-Bn+256&255;return bn},Ct=function(Ar,zn,Fr){var Bn,bn,en=[],ti=Ar.length;en[0]=3;for(var pi=0;pi<ti;pi+=1)Bn=Ar[pi-zn]||0,bn=Fr&&Fr[pi]||0,en[pi+1]=Ar[pi]+256-(Bn+bn>>>1)&255;return en},gt=function(Ar,zn,Fr){var Bn,bn,en,ti,pi=[],Pi=Ar.length;pi[0]=4;for(var qr=0;qr<Pi;qr+=1)Bn=Ar[qr-zn]||0,bn=Fr&&Fr[qr]||0,en=Fr&&Fr[qr-zn]||0,ti=pr(Bn,bn,en),pi[qr+1]=Ar[qr]-ti+256&255;return pi},pr=function(Ar,zn,Fr){if(Ar===zn&&zn===Fr)return Ar;var Bn=Math.abs(zn-Fr),bn=Math.abs(Ar-Fr),en=Math.abs(Ar+zn-Fr-Fr);return Bn<=bn&&Bn<=en?Ar:bn<=en?zn:Fr},$r=function(){return[nt,Ze,ot,Ct,gt]},Yr=function(Ar){var zn=Ar.map(function(Fr){return Fr.reduce(function(Bn,bn){return Bn+Math.abs(bn)},0)});return zn.indexOf(Math.min.apply(null,zn))};it.processPNG=function(mn,Ar,zn,Fr){var Bn,bn,en,ti,pi,Pi,qr,En,Yn,zt,Ot,kt,Bt,Wt,Lt,dr=this.decode.FLATE_DECODE,yr="";if(this.__addimage__.isArrayBuffer(mn)&&(mn=new Uint8Array(mn)),this.__addimage__.isArrayBufferView(mn)){if(mn=(en=new tt(mn)).imgData,bn=en.bits,Bn=en.colorSpace,pi=en.colors,[4,6].indexOf(en.colorType)!==-1){if(en.bits===8){Yn=(En=en.pixelBitlength==32?new Uint32Array(en.decodePixels().buffer):en.pixelBitlength==16?new Uint16Array(en.decodePixels().buffer):new Uint8Array(en.decodePixels().buffer)).length,Ot=new Uint8Array(Yn*en.colors),zt=new Uint8Array(Yn);var br,Mr=en.pixelBitlength-en.bits;for(Wt=0,Lt=0;Wt<Yn;Wt++){for(Bt=En[Wt],br=0;br<Mr;)Ot[Lt++]=Bt>>>br&255,br+=en.bits;zt[Wt]=Bt>>>br&255}}if(en.bits===16){Yn=(En=new Uint32Array(en.decodePixels().buffer)).length,Ot=new Uint8Array(Yn*(32/en.pixelBitlength)*en.colors),zt=new Uint8Array(Yn*(32/en.pixelBitlength)),kt=en.colors>1,Wt=0,Lt=0;for(var Gn=0;Wt<Yn;)Bt=En[Wt++],Ot[Lt++]=Bt>>>0&255,kt&&(Ot[Lt++]=Bt>>>16&255,Bt=En[Wt++],Ot[Lt++]=Bt>>>0&255),zt[Gn++]=Bt>>>16&255;bn=8}Fr!==it.image_compression.NONE&&Le()?(mn=je(Ot,en.width*en.colors,en.colors,Fr),qr=je(zt,en.width,1,Fr)):(mn=Ot,qr=zt,dr=void 0)}if(en.colorType===3&&(Bn=this.color_spaces.INDEXED,Pi=en.palette,en.transparency.indexed)){var Mn=en.transparency.indexed,di=0;for(Wt=0,Yn=Mn.length;Wt<Yn;++Wt)di+=Mn[Wt];if((di/=255)===Yn-1&&Mn.indexOf(0)!==-1)ti=[Mn.indexOf(0)];else if(di!==Yn){for(En=en.decodePixels(),zt=new Uint8Array(En.length),Wt=0,Yn=En.length;Wt<Yn;Wt++)zt[Wt]=Mn[En[Wt]];qr=je(zt,en.width,1)}}var vn=function(Ur){var In;switch(Ur){case it.image_compression.FAST:In=11;break;case it.image_compression.MEDIUM:In=13;break;case it.image_compression.SLOW:In=14;break;default:In=12}return In}(Fr);return dr===this.decode.FLATE_DECODE&&(yr="/Predictor "+vn+" "),yr+="/Colors "+pi+" /BitsPerComponent "+bn+" /Columns "+en.width,(this.__addimage__.isArrayBuffer(mn)||this.__addimage__.isArrayBufferView(mn))&&(mn=this.__addimage__.arrayBufferToBinaryString(mn)),(qr&&this.__addimage__.isArrayBuffer(qr)||this.__addimage__.isArrayBufferView(qr))&&(qr=this.__addimage__.arrayBufferToBinaryString(qr)),{alias:zn,data:mn,index:Ar,filter:dr,decodeParameters:yr,transparency:ti,palette:Pi,sMask:qr,predictor:vn,width:en.width,height:en.height,bitsPerComponent:bn,colorSpace:Bn}}}}(z.API),function(it){it.processGIF89A=function(Le,je,Xe,nt){var Ze=new yt(Le),ot=Ze.width,Ct=Ze.height,gt=[];Ze.decodeAndBlitFrameRGBA(0,gt);var pr={data:gt,width:ot,height:Ct},$r=new Yt(100).encode(pr,100);return it.processJPEG.call(this,$r,je,Xe,nt)},it.processGIF87A=it.processGIF89A}(z.API),Rr.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 it=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(it);for(var Le=0;Le<it;Le++){var je=this.datav.getUint8(this.pos++,!0),Xe=this.datav.getUint8(this.pos++,!0),nt=this.datav.getUint8(this.pos++,!0),Ze=this.datav.getUint8(this.pos++,!0);this.palette[Le]={red:nt,green:Xe,blue:je,quad:Ze}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Rr.prototype.parseBGR=function(){this.pos=this.offset;try{var it="bit"+this.bitPP,Le=this.width*this.height*4;this.data=new Uint8Array(Le),this[it]()}catch(je){d.log("bit decode error:"+je)}},Rr.prototype.bit1=function(){var it,Le=Math.ceil(this.width/8),je=Le%4;for(it=this.height-1;it>=0;it--){for(var Xe=this.bottom_up?it:this.height-1-it,nt=0;nt<Le;nt++)for(var Ze=this.datav.getUint8(this.pos++,!0),ot=Xe*this.width*4+8*nt*4,Ct=0;Ct<8&&8*nt+Ct<this.width;Ct++){var gt=this.palette[Ze>>7-Ct&1];this.data[ot+4*Ct]=gt.blue,this.data[ot+4*Ct+1]=gt.green,this.data[ot+4*Ct+2]=gt.red,this.data[ot+4*Ct+3]=255}je!==0&&(this.pos+=4-je)}},Rr.prototype.bit4=function(){for(var it=Math.ceil(this.width/2),Le=it%4,je=this.height-1;je>=0;je--){for(var Xe=this.bottom_up?je:this.height-1-je,nt=0;nt<it;nt++){var Ze=this.datav.getUint8(this.pos++,!0),ot=Xe*this.width*4+2*nt*4,Ct=Ze>>4,gt=15&Ze,pr=this.palette[Ct];if(this.data[ot]=pr.blue,this.data[ot+1]=pr.green,this.data[ot+2]=pr.red,this.data[ot+3]=255,2*nt+1>=this.width)break;pr=this.palette[gt],this.data[ot+4]=pr.blue,this.data[ot+4+1]=pr.green,this.data[ot+4+2]=pr.red,this.data[ot+4+3]=255}Le!==0&&(this.pos+=4-Le)}},Rr.prototype.bit8=function(){for(var it=this.width%4,Le=this.height-1;Le>=0;Le--){for(var je=this.bottom_up?Le:this.height-1-Le,Xe=0;Xe<this.width;Xe++){var nt=this.datav.getUint8(this.pos++,!0),Ze=je*this.width*4+4*Xe;if(nt<this.palette.length){var ot=this.palette[nt];this.data[Ze]=ot.red,this.data[Ze+1]=ot.green,this.data[Ze+2]=ot.blue,this.data[Ze+3]=255}else this.data[Ze]=255,this.data[Ze+1]=255,this.data[Ze+2]=255,this.data[Ze+3]=255}it!==0&&(this.pos+=4-it)}},Rr.prototype.bit15=function(){for(var it=this.width%3,Le=parseInt("11111",2),je=this.height-1;je>=0;je--){for(var Xe=this.bottom_up?je:this.height-1-je,nt=0;nt<this.width;nt++){var Ze=this.datav.getUint16(this.pos,!0);this.pos+=2;var ot=(Ze&Le)/Le*255|0,Ct=(Ze>>5&Le)/Le*255|0,gt=(Ze>>10&Le)/Le*255|0,pr=Ze>>15?255:0,$r=Xe*this.width*4+4*nt;this.data[$r]=gt,this.data[$r+1]=Ct,this.data[$r+2]=ot,this.data[$r+3]=pr}this.pos+=it}},Rr.prototype.bit16=function(){for(var it=this.width%3,Le=parseInt("11111",2),je=parseInt("111111",2),Xe=this.height-1;Xe>=0;Xe--){for(var nt=this.bottom_up?Xe:this.height-1-Xe,Ze=0;Ze<this.width;Ze++){var ot=this.datav.getUint16(this.pos,!0);this.pos+=2;var Ct=(ot&Le)/Le*255|0,gt=(ot>>5&je)/je*255|0,pr=(ot>>11)/Le*255|0,$r=nt*this.width*4+4*Ze;this.data[$r]=pr,this.data[$r+1]=gt,this.data[$r+2]=Ct,this.data[$r+3]=255}this.pos+=it}},Rr.prototype.bit24=function(){for(var it=this.height-1;it>=0;it--){for(var Le=this.bottom_up?it:this.height-1-it,je=0;je<this.width;je++){var Xe=this.datav.getUint8(this.pos++,!0),nt=this.datav.getUint8(this.pos++,!0),Ze=this.datav.getUint8(this.pos++,!0),ot=Le*this.width*4+4*je;this.data[ot]=Ze,this.data[ot+1]=nt,this.data[ot+2]=Xe,this.data[ot+3]=255}this.pos+=this.width%4}},Rr.prototype.bit32=function(){for(var it=this.height-1;it>=0;it--)for(var Le=this.bottom_up?it:this.height-1-it,je=0;je<this.width;je++){var Xe=this.datav.getUint8(this.pos++,!0),nt=this.datav.getUint8(this.pos++,!0),Ze=this.datav.getUint8(this.pos++,!0),ot=this.datav.getUint8(this.pos++,!0),Ct=Le*this.width*4+4*je;this.data[Ct]=Ze,this.data[Ct+1]=nt,this.data[Ct+2]=Xe,this.data[Ct+3]=ot}},Rr.prototype.getData=function(){return this.data},function(it){it.processBMP=function(Le,je,Xe,nt){var Ze=new Rr(Le,!1),ot=Ze.width,Ct=Ze.height,gt={data:Ze.getData(),width:ot,height:Ct},pr=new Yt(100).encode(gt,100);return it.processJPEG.call(this,pr,je,Xe,nt)}}(z.API),zr.prototype.getData=function(){return this.data},function(it){it.processWEBP=function(Le,je,Xe,nt){var Ze=new zr(Le,!1),ot=Ze.width,Ct=Ze.height,gt={data:Ze.getData(),width:ot,height:Ct},pr=new Yt(100).encode(gt,100);return it.processJPEG.call(this,pr,je,Xe,nt)}}(z.API),z.API.processRGBA=function(it,Le,je){for(var Xe=it.data,nt=Xe.length,Ze=new Uint8Array(nt/4*3),ot=new Uint8Array(nt/4),Ct=0,gt=0,pr=0;pr<nt;pr+=4){var $r=Xe[pr],Yr=Xe[pr+1],mn=Xe[pr+2],Ar=Xe[pr+3];Ze[Ct++]=$r,Ze[Ct++]=Yr,Ze[Ct++]=mn,ot[gt++]=Ar}var zn=this.__addimage__.arrayBufferToBinaryString(Ze);return{alpha:this.__addimage__.arrayBufferToBinaryString(ot),data:zn,index:Le,alias:je,colorSpace:"DeviceRGB",bitsPerComponent:8,width:it.width,height:it.height}},z.API.setLanguage=function(it){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"}[it]!==void 0&&(this.internal.languageSettings.languageCode=it,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},$t=z.API,xt=$t.getCharWidthsArray=function(it,Le){var je,Xe,nt=(Le=Le||{}).font||this.internal.getFont(),Ze=Le.fontSize||this.internal.getFontSize(),ot=Le.charSpace||this.internal.getCharSpace(),Ct=Le.widths?Le.widths:nt.metadata.Unicode.widths,gt=Ct.fof?Ct.fof:1,pr=Le.kerning?Le.kerning:nt.metadata.Unicode.kerning,$r=pr.fof?pr.fof:1,Yr=Le.doKerning!==!1,mn=0,Ar=it.length,zn=0,Fr=Ct[0]||gt,Bn=[];for(je=0;je<Ar;je++)Xe=it.charCodeAt(je),typeof nt.metadata.widthOfString=="function"?Bn.push((nt.metadata.widthOfGlyph(nt.metadata.characterToGlyph(Xe))+ot*(1e3/Ze)||0)/1e3):(mn=Yr&&x()(pr[Xe])==="object"&&!isNaN(parseInt(pr[Xe][zn],10))?pr[Xe][zn]/$r:0,Bn.push((Ct[Xe]||Fr)/gt+mn)),zn=Xe;return Bn},De=$t.getStringUnitWidth=function(it,Le){var je=(Le=Le||{}).fontSize||this.internal.getFontSize(),Xe=Le.font||this.internal.getFont(),nt=Le.charSpace||this.internal.getCharSpace();return $t.processArabic&&(it=$t.processArabic(it)),typeof Xe.metadata.widthOfString=="function"?Xe.metadata.widthOfString(it,je,nt)/je:xt.apply(this,arguments).reduce(function(Ze,ot){return Ze+ot},0)},ke=function(Le,je,Xe,nt){for(var Ze=[],ot=0,Ct=Le.length,gt=0;ot!==Ct&>+je[ot]<Xe;)gt+=je[ot],ot++;Ze.push(Le.slice(0,ot));var pr=ot;for(gt=0;ot!==Ct;)gt+je[ot]>nt&&(Ze.push(Le.slice(pr,ot)),gt=0,pr=ot),gt+=je[ot],ot++;return pr!==ot&&Ze.push(Le.slice(pr,ot)),Ze},Pe=function(Le,je,Xe){Xe||(Xe={});var nt,Ze,ot,Ct,gt,pr,$r,Yr=[],mn=[Yr],Ar=Xe.textIndent||0,zn=0,Fr=0,Bn=Le.split(" "),bn=xt.apply(this,[" ",Xe])[0];if(pr=Xe.lineIndent===-1?Bn[0].length+2:Xe.lineIndent||0){var en=Array(pr).join(" "),ti=[];Bn.map(function(Pi){(Pi=Pi.split(/\s*\n/)).length>1?ti=ti.concat(Pi.map(function(qr,En){return(En&&qr.length?`
|
|
|
`:"")+qr})):ti.push(Pi[0])}),Bn=ti,pr=De.apply(this,[en,Xe])}for(ot=0,Ct=Bn.length;ot<Ct;ot++){var pi=0;if(nt=Bn[ot],pr&&nt[0]==`
|
|
|
`&&(nt=nt.substr(1),pi=1),Ar+zn+(Fr=(Ze=xt.apply(this,[nt,Xe])).reduce(function(Pi,qr){return Pi+qr},0))>je||pi){if(Fr>je){for(gt=ke.apply(this,[nt,Ze,je-(Ar+zn),je]),Yr.push(gt.shift()),Yr=[gt.pop()];gt.length;)mn.push([gt.shift()]);Fr=Ze.slice(nt.length-(Yr[0]?Yr[0].length:0)).reduce(function(Pi,qr){return Pi+qr},0)}else Yr=[nt];mn.push(Yr),Ar=Fr+pr,zn=bn}else Yr.push(nt),Ar+=zn+Fr,zn=bn}return $r=pr?function(Pi,qr){return(qr?en:"")+Pi.join(" ")}:function(Pi){return Pi.join(" ")},mn.map($r)},$t.splitTextToSize=function(it,Le,je){var Xe,nt=(je=je||{}).fontSize||this.internal.getFontSize(),Ze=function($r){if($r.widths&&$r.kerning)return{widths:$r.widths,kerning:$r.kerning};var Yr=this.internal.getFont($r.fontName,$r.fontStyle);return Yr.metadata.Unicode?{widths:Yr.metadata.Unicode.widths||{0:1},kerning:Yr.metadata.Unicode.kerning||{}}:{font:Yr.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,je);Xe=Array.isArray(it)?it:String(it).split(/\r?\n/);var ot=1*this.internal.scaleFactor*Le/nt;Ze.textIndent=je.textIndent?1*je.textIndent*this.internal.scaleFactor/nt:0,Ze.lineIndent=je.lineIndent;var Ct,gt,pr=[];for(Ct=0,gt=Xe.length;Ct<gt;Ct++)pr=pr.concat(Pe.apply(this,[Xe[Ct],ot,Ze]));return pr},function(it){it.__fontmetrics__=it.__fontmetrics__||{};for(var Le="klmnopqrstuvwxyz",je={},Xe={},nt=0;nt<Le.length;nt++)je[Le[nt]]="0123456789abcdef"[nt],Xe["0123456789abcdef"[nt]]=Le[nt];var Ze=function(mn){return"0x"+parseInt(mn,10).toString(16)},ot=it.__fontmetrics__.compress=function(Yr){var mn,Ar,zn,Fr,Bn=["{"];for(var bn in Yr){if(mn=Yr[bn],isNaN(parseInt(bn,10))?Ar="'"+bn+"'":(bn=parseInt(bn,10),Ar=(Ar=Ze(bn).slice(2)).slice(0,-1)+Xe[Ar.slice(-1)]),typeof mn=="number")mn<0?(zn=Ze(mn).slice(3),Fr="-"):(zn=Ze(mn).slice(2),Fr=""),zn=Fr+zn.slice(0,-1)+Xe[zn.slice(-1)];else{if(x()(mn)!=="object")throw new Error("Don't know what to do with value type "+x()(mn)+".");zn=ot(mn)}Bn.push(Ar+zn)}return Bn.push("}"),Bn.join("")},Ct=it.__fontmetrics__.uncompress=function(Yr){if(typeof Yr!="string")throw new Error("Invalid argument passed to uncompress.");for(var mn,Ar,zn,Fr,Bn={},bn=1,en=Bn,ti=[],pi="",Pi="",qr=Yr.length-1,En=1;En<qr;En+=1)(Fr=Yr[En])=="'"?mn?(zn=mn.join(""),mn=void 0):mn=[]:mn?mn.push(Fr):Fr=="{"?(ti.push([en,zn]),en={},zn=void 0):Fr=="}"?((Ar=ti.pop())[0][Ar[1]]=en,zn=void 0,en=Ar[0]):Fr=="-"?bn=-1:zn===void 0?je.hasOwnProperty(Fr)?(pi+=je[Fr],zn=parseInt(pi,16)*bn,bn=1,pi=""):pi+=Fr:je.hasOwnProperty(Fr)?(Pi+=je[Fr],en[zn]=parseInt(Pi,16)*bn,bn=1,zn=void 0,Pi=""):Pi+=Fr;return Bn},gt={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Ct("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},pr={Unicode:{Courier:gt,"Courier-Bold":gt,"Courier-BoldOblique":gt,"Courier-Oblique":gt,Helvetica:gt,"Helvetica-Bold":gt,"Helvetica-BoldOblique":gt,"Helvetica-Oblique":gt,"Times-Roman":gt,"Times-Bold":gt,"Times-BoldItalic":gt,"Times-Italic":gt}},$r={Unicode:{"Courier-Oblique":Ct("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Ct("{'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":Ct("{'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:Ct("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Ct("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Ct("{'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:Ct("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Ct("{'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":Ct("{'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:Ct("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Ct("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Ct("{'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":Ct("{'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":Ct("{'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}}}")}};it.events.push(["addFont",function(Yr){var mn=Yr.font,Ar=$r.Unicode[mn.postScriptName];Ar&&(mn.metadata.Unicode={},mn.metadata.Unicode.widths=Ar.widths,mn.metadata.Unicode.kerning=Ar.kerning);var zn=pr.Unicode[mn.postScriptName];zn&&(mn.metadata.Unicode.encoding=zn,mn.encoding=zn.codePages[0])}])}(z.API),function(it){var Le=function(Xe){for(var nt=Xe.length,Ze=new Uint8Array(nt),ot=0;ot<nt;ot++)Ze[ot]=Xe.charCodeAt(ot);return Ze};it.API.events.push(["addFont",function(je){var Xe=void 0,nt=je.font,Ze=je.instance;if(!nt.isStandardFont){if(Ze===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+nt.postScriptName+"').");if(typeof(Xe=Ze.existsFileInVFS(nt.postScriptName)===!1?Ze.loadFile(nt.postScriptName):Ze.getFileFromVFS(nt.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+nt.postScriptName+"').");!function(ot,Ct){Ct=/^\x00\x01\x00\x00/.test(Ct)?Le(Ct):Le(t(Ct)),ot.metadata=it.API.TTFFont.open(Ct),ot.metadata.Unicode=ot.metadata.Unicode||{encoding:{},kerning:{},widths:[]},ot.metadata.glyIdsUsed=[0]}(nt,Xe)}}])}(z),function(it){function Le(){return(m.canvg?Promise.resolve(m.canvg):Promise.all([n.e(0),n.e(240)]).then(n.bind(null,"DXPr"))).catch(function(je){return Promise.reject(new Error("Could not load canvg: "+je))}).then(function(je){return je.default?je.default:je})}z.API.addSvgAsImage=function(je,Xe,nt,Ze,ot,Ct,gt,pr){if(isNaN(Xe)||isNaN(nt))throw d.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Ze)||isNaN(ot))throw d.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var $r=document.createElement("canvas");$r.width=Ze,$r.height=ot;var Yr=$r.getContext("2d");Yr.fillStyle="#fff",Yr.fillRect(0,0,$r.width,$r.height);var mn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Ar=this;return Le().then(function(zn){return zn.fromString(Yr,je,mn)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(zn){return zn.render(mn)}).then(function(){Ar.addImage($r.toDataURL("image/jpeg",1),Xe,nt,Ze,ot,gt,pr)})}}(),z.API.putTotalPages=function(it){var Le,je=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(Le=new RegExp(it,"g"),je=this.internal.getNumberOfPages()):(Le=new RegExp(this.pdfEscape16(it,this.internal.getFont()),"g"),je=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Xe=1;Xe<=this.internal.getNumberOfPages();Xe++)for(var nt=0;nt<this.internal.pages[Xe].length;nt++)this.internal.pages[Xe][nt]=this.internal.pages[Xe][nt].replace(Le,je);return this},z.API.viewerPreferences=function(it,Le){var je;it=it||{},Le=Le||!1;var Xe,nt,Ze,ot={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}},Ct=Object.keys(ot),gt=[],pr=0,$r=0,Yr=0;function mn(zn,Fr){var Bn,bn=!1;for(Bn=0;Bn<zn.length;Bn+=1)zn[Bn]===Fr&&(bn=!0);return bn}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(ot)),this.internal.viewerpreferences.isSubscribed=!1),je=this.internal.viewerpreferences.configuration,it==="reset"||Le===!0){var Ar=Ct.length;for(Yr=0;Yr<Ar;Yr+=1)je[Ct[Yr]].value=je[Ct[Yr]].defaultValue,je[Ct[Yr]].explicitSet=!1}if(x()(it)==="object"){for(nt in it)if(Ze=it[nt],mn(Ct,nt)&&Ze!==void 0){if(je[nt].type==="boolean"&&typeof Ze=="boolean")je[nt].value=Ze;else if(je[nt].type==="name"&&mn(je[nt].valueSet,Ze))je[nt].value=Ze;else if(je[nt].type==="integer"&&Number.isInteger(Ze))je[nt].value=Ze;else if(je[nt].type==="array"){for(pr=0;pr<Ze.length;pr+=1)if(Xe=!0,Ze[pr].length===1&&typeof Ze[pr][0]=="number")gt.push(String(Ze[pr]-1));else if(Ze[pr].length>1){for($r=0;$r<Ze[pr].length;$r+=1)typeof Ze[pr][$r]!="number"&&(Xe=!1);Xe===!0&>.push([Ze[pr][0]-1,Ze[pr][1]-1].join(" "))}je[nt].value="["+gt.join(" ")+"]"}else je[nt].value=je[nt].defaultValue;je[nt].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var zn,Fr=[];for(zn in je)je[zn].explicitSet===!0&&(je[zn].type==="name"?Fr.push("/"+zn+" /"+je[zn].value):Fr.push("/"+zn+" "+je[zn].value));Fr.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+Fr.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=je,this},function(it){var Le=function(){var nt='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',Ze=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),ot=unescape(encodeURIComponent(nt)),Ct=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),gt=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),pr=unescape(encodeURIComponent("</x:xmpmeta>")),$r=ot.length+Ct.length+gt.length+Ze.length+pr.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+$r+" >>"),this.internal.write("stream"),this.internal.write(Ze+ot+Ct+gt+pr),this.internal.write("endstream"),this.internal.write("endobj")},je=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};it.addMetadata=function(Xe,nt){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Xe,namespaceuri:nt||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",je),this.internal.events.subscribe("postPutResources",Le)),this}}(z.API),function(it){var Le=it.API,je=Le.pdfEscape16=function(Ze,ot){for(var Ct,gt=ot.metadata.Unicode.widths,pr=["","0","00","000","0000"],$r=[""],Yr=0,mn=Ze.length;Yr<mn;++Yr){if(Ct=ot.metadata.characterToGlyph(Ze.charCodeAt(Yr)),ot.metadata.glyIdsUsed.push(Ct),ot.metadata.toUnicode[Ct]=Ze.charCodeAt(Yr),gt.indexOf(Ct)==-1&&(gt.push(Ct),gt.push([parseInt(ot.metadata.widthOfGlyph(Ct),10)])),Ct=="0")return $r.join("");Ct=Ct.toString(16),$r.push(pr[4-Ct.length],Ct)}return $r.join("")},Xe=function(ot){var Ct,gt,pr,$r,Yr,mn,Ar;for(Yr=`/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`,pr=[],mn=0,Ar=(gt=Object.keys(ot).sort(function(zn,Fr){return zn-Fr})).length;mn<Ar;mn++)Ct=gt[mn],pr.length>=100&&(Yr+=`
|
|
|
`+pr.length+` beginbfchar
|
|
|
`+pr.join(`
|
|
|
`)+`
|
|
|
endbfchar`,pr=[]),ot[Ct]!==void 0&&ot[Ct]!==null&&typeof ot[Ct].toString=="function"&&($r=("0000"+ot[Ct].toString(16)).slice(-4),Ct=("0000"+(+Ct).toString(16)).slice(-4),pr.push("<"+Ct+"><"+$r+">"));return pr.length&&(Yr+=`
|
|
|
`+pr.length+` beginbfchar
|
|
|
`+pr.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),Yr+=`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};Le.events.push(["putFont",function(Ze){!function(ot){var Ct=ot.font,gt=ot.out,pr=ot.newObject,$r=ot.putStream;if(Ct.metadata instanceof it.API.TTFFont&&Ct.encoding==="Identity-H"){for(var Yr=Ct.metadata.Unicode.widths,mn=Ct.metadata.subset.encode(Ct.metadata.glyIdsUsed,1),Ar="",zn=0;zn<mn.length;zn++)Ar+=String.fromCharCode(mn[zn]);var Fr=pr();$r({data:Ar,addLength1:!0,objectId:Fr}),gt("endobj");var Bn=pr();$r({data:Xe(Ct.metadata.toUnicode),addLength1:!0,objectId:Bn}),gt("endobj");var bn=pr();gt("<<"),gt("/Type /FontDescriptor"),gt("/FontName /"+j(Ct.fontName)),gt("/FontFile2 "+Fr+" 0 R"),gt("/FontBBox "+it.API.PDFObject.convert(Ct.metadata.bbox)),gt("/Flags "+Ct.metadata.flags),gt("/StemV "+Ct.metadata.stemV),gt("/ItalicAngle "+Ct.metadata.italicAngle),gt("/Ascent "+Ct.metadata.ascender),gt("/Descent "+Ct.metadata.decender),gt("/CapHeight "+Ct.metadata.capHeight),gt(">>"),gt("endobj");var en=pr();gt("<<"),gt("/Type /Font"),gt("/BaseFont /"+j(Ct.fontName)),gt("/FontDescriptor "+bn+" 0 R"),gt("/W "+it.API.PDFObject.convert(Yr)),gt("/CIDToGIDMap /Identity"),gt("/DW 1000"),gt("/Subtype /CIDFontType2"),gt("/CIDSystemInfo"),gt("<<"),gt("/Supplement 0"),gt("/Registry (Adobe)"),gt("/Ordering ("+Ct.encoding+")"),gt(">>"),gt(">>"),gt("endobj"),Ct.objectNumber=pr(),gt("<<"),gt("/Type /Font"),gt("/Subtype /Type0"),gt("/ToUnicode "+Bn+" 0 R"),gt("/BaseFont /"+j(Ct.fontName)),gt("/Encoding /"+Ct.encoding),gt("/DescendantFonts ["+en+" 0 R]"),gt(">>"),gt("endobj"),Ct.isAlreadyPutted=!0}}(Ze)}]),Le.events.push(["putFont",function(Ze){!function(ot){var Ct=ot.font,gt=ot.out,pr=ot.newObject,$r=ot.putStream;if(Ct.metadata instanceof it.API.TTFFont&&Ct.encoding==="WinAnsiEncoding"){for(var Yr=Ct.metadata.rawData,mn="",Ar=0;Ar<Yr.length;Ar++)mn+=String.fromCharCode(Yr[Ar]);var zn=pr();$r({data:mn,addLength1:!0,objectId:zn}),gt("endobj");var Fr=pr();$r({data:Xe(Ct.metadata.toUnicode),addLength1:!0,objectId:Fr}),gt("endobj");var Bn=pr();gt("<<"),gt("/Descent "+Ct.metadata.decender),gt("/CapHeight "+Ct.metadata.capHeight),gt("/StemV "+Ct.metadata.stemV),gt("/Type /FontDescriptor"),gt("/FontFile2 "+zn+" 0 R"),gt("/Flags 96"),gt("/FontBBox "+it.API.PDFObject.convert(Ct.metadata.bbox)),gt("/FontName /"+j(Ct.fontName)),gt("/ItalicAngle "+Ct.metadata.italicAngle),gt("/Ascent "+Ct.metadata.ascender),gt(">>"),gt("endobj"),Ct.objectNumber=pr();for(var bn=0;bn<Ct.metadata.hmtx.widths.length;bn++)Ct.metadata.hmtx.widths[bn]=parseInt(Ct.metadata.hmtx.widths[bn]*(1e3/Ct.metadata.head.unitsPerEm));gt("<</Subtype/TrueType/Type/Font/ToUnicode "+Fr+" 0 R/BaseFont/"+j(Ct.fontName)+"/FontDescriptor "+Bn+" 0 R/Encoding/"+Ct.encoding+" /FirstChar 29 /LastChar 255 /Widths "+it.API.PDFObject.convert(Ct.metadata.hmtx.widths)+">>"),gt("endobj"),Ct.isAlreadyPutted=!0}}(Ze)}]);var nt=function(ot){var Ct,gt=ot.text||"",pr=ot.x,$r=ot.y,Yr=ot.options||{},mn=ot.mutex||{},Ar=mn.pdfEscape,zn=mn.activeFontKey,Fr=mn.fonts,Bn=zn,bn="",en=0,ti="",pi=Fr[Bn].encoding;if(Fr[Bn].encoding!=="Identity-H")return{text:gt,x:pr,y:$r,options:Yr,mutex:mn};for(ti=gt,Bn=zn,Array.isArray(gt)&&(ti=gt[0]),en=0;en<ti.length;en+=1)Fr[Bn].metadata.hasOwnProperty("cmap")&&(Ct=Fr[Bn].metadata.cmap.unicode.codeMap[ti[en].charCodeAt(0)]),Ct||ti[en].charCodeAt(0)<256&&Fr[Bn].metadata.hasOwnProperty("Unicode")?bn+=ti[en]:bn+="";var Pi="";return parseInt(Bn.slice(1))<14||pi==="WinAnsiEncoding"?Pi=Ar(bn,Bn).split("").map(function(qr){return qr.charCodeAt(0).toString(16)}).join(""):pi==="Identity-H"&&(Pi=je(bn,Fr[Bn])),mn.isHex=!0,{text:Pi,x:pr,y:$r,options:Yr,mutex:mn}};Le.events.push(["postProcessText",function(Ze){var ot=Ze.text||"",Ct=[],gt={text:ot,x:Ze.x,y:Ze.y,options:Ze.options,mutex:Ze.mutex};if(Array.isArray(ot)){var pr=0;for(pr=0;pr<ot.length;pr+=1)Array.isArray(ot[pr])&&ot[pr].length===3?Ct.push([nt(Object.assign({},gt,{text:ot[pr][0]})).text,ot[pr][1],ot[pr][2]]):Ct.push(nt(Object.assign({},gt,{text:ot[pr]})).text);Ze.text=Ct}else Ze.text=nt(Object.assign({},gt,{text:ot})).text}])}(z),function(it){var Le=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};it.existsFileInVFS=function(je){return Le.call(this),this.internal.vFS[je]!==void 0},it.addFileToVFS=function(je,Xe){return Le.call(this),this.internal.vFS[je]=Xe,this},it.getFileFromVFS=function(je){return Le.call(this),this.internal.vFS[je]!==void 0?this.internal.vFS[je]:null}}(z.API),function(it){it.__bidiEngine__=it.prototype.__bidiEngine__=function(Xe){var nt,Ze,ot,Ct,gt,pr,$r,Yr=Le,mn=[[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]],Ar=[[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]],zn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Fr={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Bn=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],bn=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),en=!1,ti=0;this.__bidiEngine__={};var pi=function(Bt){var Wt=Bt.charCodeAt(),Lt=Wt>>8,dr=Fr[Lt];return dr!==void 0?Yr[256*dr+(255&Wt)]:Lt===252||Lt===253?"AL":bn.test(Lt)?"L":Lt===8?"R":"N"},Pi=function(Bt){for(var Wt,Lt=0;Lt<Bt.length;Lt++){if((Wt=pi(Bt.charAt(Lt)))==="L")return!1;if(Wt==="R")return!0}return!1},qr=function(Bt,Wt,Lt,dr){var yr,br,Mr,Gn,Mn=Wt[dr];switch(Mn){case"L":case"R":en=!1;break;case"N":case"AN":break;case"EN":en&&(Mn="AN");break;case"AL":en=!0,Mn="R";break;case"WS":Mn="N";break;case"CS":dr<1||dr+1>=Wt.length||(yr=Lt[dr-1])!=="EN"&&yr!=="AN"||(br=Wt[dr+1])!=="EN"&&br!=="AN"?Mn="N":en&&(br="AN"),Mn=br===yr?br:"N";break;case"ES":Mn=(yr=dr>0?Lt[dr-1]:"B")==="EN"&&dr+1<Wt.length&&Wt[dr+1]==="EN"?"EN":"N";break;case"ET":if(dr>0&&Lt[dr-1]==="EN"){Mn="EN";break}if(en){Mn="N";break}for(Mr=dr+1,Gn=Wt.length;Mr<Gn&&Wt[Mr]==="ET";)Mr++;Mn=Mr<Gn&&Wt[Mr]==="EN"?"EN":"N";break;case"NSM":if(ot&&!Ct){for(Gn=Wt.length,Mr=dr+1;Mr<Gn&&Wt[Mr]==="NSM";)Mr++;if(Mr<Gn){var di=Bt[dr],vn=di>=1425&&di<=2303||di===64286;if(yr=Wt[Mr],vn&&(yr==="R"||yr==="AL")){Mn="R";break}}}Mn=dr<1||(yr=Wt[dr-1])==="B"?"N":Lt[dr-1];break;case"B":en=!1,nt=!0,Mn=ti;break;case"S":Ze=!0,Mn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":en=!1;break;case"BN":Mn="N"}return Mn},En=function(Bt,Wt,Lt){var dr=Bt.split("");return Lt&&Yn(dr,Lt,{hiLevel:ti}),dr.reverse(),Wt&&Wt.reverse(),dr.join("")},Yn=function(Bt,Wt,Lt){var dr,yr,br,Mr,Gn,Mn=-1,di=Bt.length,vn=0,Ur=[],In=ti?Ar:mn,Qn=[];for(en=!1,nt=!1,Ze=!1,yr=0;yr<di;yr++)Qn[yr]=pi(Bt[yr]);for(br=0;br<di;br++){if(Gn=vn,Ur[br]=qr(Bt,Qn,Ur,br),dr=240&(vn=In[Gn][zn[Ur[br]]]),vn&=15,Wt[br]=Mr=In[vn][5],dr>0)if(dr===16){for(yr=Mn;yr<br;yr++)Wt[yr]=1;Mn=-1}else Mn=-1;if(In[vn][6])Mn===-1&&(Mn=br);else if(Mn>-1){for(yr=Mn;yr<br;yr++)Wt[yr]=Mr;Mn=-1}Qn[br]==="B"&&(Wt[br]=0),Lt.hiLevel|=Mr}Ze&&function(qn,oi,Ti){for(var ki=0;ki<Ti;ki++)if(qn[ki]==="S"){oi[ki]=ti;for(var Ri=ki-1;Ri>=0&&qn[Ri]==="WS";Ri--)oi[Ri]=ti}}(Qn,Wt,di)},zt=function(Bt,Wt,Lt,dr,yr){if(!(yr.hiLevel<Bt)){if(Bt===1&&ti===1&&!nt)return Wt.reverse(),void(Lt&&Lt.reverse());for(var br,Mr,Gn,Mn,di=Wt.length,vn=0;vn<di;){if(dr[vn]>=Bt){for(Gn=vn+1;Gn<di&&dr[Gn]>=Bt;)Gn++;for(Mn=vn,Mr=Gn-1;Mn<Mr;Mn++,Mr--)br=Wt[Mn],Wt[Mn]=Wt[Mr],Wt[Mr]=br,Lt&&(br=Lt[Mn],Lt[Mn]=Lt[Mr],Lt[Mr]=br);vn=Gn}vn++}}},Ot=function(Bt,Wt,Lt){var dr=Bt.split(""),yr={hiLevel:ti};return Lt||(Lt=[]),Yn(dr,Lt,yr),function(br,Mr,Gn){if(Gn.hiLevel!==0&&$r)for(var Mn,di=0;di<br.length;di++)Mr[di]===1&&(Mn=Bn.indexOf(br[di]))>=0&&(br[di]=Bn[Mn+1])}(dr,Lt,yr),zt(2,dr,Wt,Lt,yr),zt(1,dr,Wt,Lt,yr),dr.join("")};return this.__bidiEngine__.doBidiReorder=function(kt,Bt,Wt){if(function(dr,yr){if(yr)for(var br=0;br<dr.length;br++)yr[br]=br;Ct===void 0&&(Ct=Pi(dr)),pr===void 0&&(pr=Pi(dr))}(kt,Bt),ot||!gt||pr)if(ot&>&&Ct^pr)ti=Ct?1:0,kt=En(kt,Bt,Wt);else if(!ot&>&&pr)ti=Ct?1:0,kt=Ot(kt,Bt,Wt),kt=En(kt,Bt);else if(!ot||Ct||gt||pr){if(ot&&!gt&&Ct^pr)kt=En(kt,Bt),Ct?(ti=0,kt=Ot(kt,Bt,Wt)):(ti=1,kt=Ot(kt,Bt,Wt),kt=En(kt,Bt));else if(ot&&Ct&&!gt&&pr)ti=1,kt=Ot(kt,Bt,Wt),kt=En(kt,Bt);else if(!ot&&!gt&&Ct^pr){var Lt=$r;Ct?(ti=1,kt=Ot(kt,Bt,Wt),ti=0,$r=!1,kt=Ot(kt,Bt,Wt),$r=Lt):(ti=0,kt=Ot(kt,Bt,Wt),kt=En(kt,Bt),ti=1,$r=!1,kt=Ot(kt,Bt,Wt),$r=Lt,kt=En(kt,Bt))}}else ti=0,kt=Ot(kt,Bt,Wt);else ti=Ct?1:0,kt=Ot(kt,Bt,Wt);return kt},this.__bidiEngine__.setOptions=function(kt){kt&&(ot=kt.isInputVisual,gt=kt.isOutputVisual,Ct=kt.isInputRtl,pr=kt.isOutputRtl,$r=kt.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Xe),this.__bidiEngine__};var Le=["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"],je=new it.__bidiEngine__({isInputVisual:!0});it.API.events.push(["postProcessText",function(Xe){var nt=Xe.text,Ze=(Xe.x,Xe.y,Xe.options||{}),ot=(Xe.mutex,Ze.lang,[]);if(Ze.isInputVisual=typeof Ze.isInputVisual!="boolean"||Ze.isInputVisual,je.setOptions(Ze),Object.prototype.toString.call(nt)==="[object Array]"){var Ct=0;for(ot=[],Ct=0;Ct<nt.length;Ct+=1)Object.prototype.toString.call(nt[Ct])==="[object Array]"?ot.push([je.doBidiReorder(nt[Ct][0]),nt[Ct][1],nt[Ct][2]]):ot.push([je.doBidiReorder(nt[Ct])]);Xe.text=ot}else Xe.text=je.doBidiReorder(nt);je.setOptions({isInputVisual:!0})}])}(z),z.API.TTFFont=function(){function it(Le){var je;if(this.rawData=Le,je=this.contents=new jt(Le),this.contents.pos=4,je.readString(4)==="ttcf")throw new Error("TTCF not supported.");je.pos=0,this.parse(),this.subset=new Wi(this),this.registerTTF()}return it.open=function(Le){return new it(Le)},it.prototype.parse=function(){return this.directory=new vt(this.contents),this.head=new Qt(this),this.name=new Dr(this),this.cmap=new tr(this),this.toUnicode={},this.hhea=new Rt(this),this.maxp=new cn(this),this.hmtx=new An(this),this.post=new Hr(this),this.os2=new qt(this),this.loca=new Di(this),this.glyf=new $n(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},it.prototype.registerTTF=function(){var Le,je,Xe,nt,Ze;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var ot,Ct,gt,pr;for(pr=[],ot=0,Ct=(gt=this.bbox).length;ot<Ct;ot++)Le=gt[ot],pr.push(Math.round(Le*this.scaleFactor));return pr}.call(this),this.stemV=0,this.post.exists?(Xe=255&(nt=this.post.italic_angle),(32768&(je=nt>>16))!=0&&(je=-(1+(65535^je))),this.italicAngle=+(je+"."+Xe)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(Ze=this.familyClass)===1||Ze===2||Ze===3||Ze===4||Ze===5||Ze===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},it.prototype.characterToGlyph=function(Le){var je;return((je=this.cmap.unicode)!=null?je.codeMap[Le]:void 0)||0},it.prototype.widthOfGlyph=function(Le){var je;return je=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(Le).advance*je},it.prototype.widthOfString=function(Le,je,Xe){var nt,Ze,ot,Ct;for(ot=0,Ze=0,Ct=(Le=""+Le).length;0<=Ct?Ze<Ct:Ze>Ct;Ze=0<=Ct?++Ze:--Ze)nt=Le.charCodeAt(Ze),ot+=this.widthOfGlyph(this.characterToGlyph(nt))+Xe*(1e3/je)||0;return ot*(je/1e3)},it.prototype.lineHeight=function(Le,je){var Xe;return je==null&&(je=!1),Xe=je?this.lineGap:0,(this.ascender+Xe-this.decender)/1e3*Le},it}();var hn,jt=function(){function it(Le){this.data=Le!=null?Le:[],this.pos=0,this.length=this.data.length}return it.prototype.readByte=function(){return this.data[this.pos++]},it.prototype.writeByte=function(Le){return this.data[this.pos++]=Le},it.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},it.prototype.writeUInt32=function(Le){return this.writeByte(Le>>>24&255),this.writeByte(Le>>16&255),this.writeByte(Le>>8&255),this.writeByte(255&Le)},it.prototype.readInt32=function(){var Le;return(Le=this.readUInt32())>=2147483648?Le-4294967296:Le},it.prototype.writeInt32=function(Le){return Le<0&&(Le+=4294967296),this.writeUInt32(Le)},it.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},it.prototype.writeUInt16=function(Le){return this.writeByte(Le>>8&255),this.writeByte(255&Le)},it.prototype.readInt16=function(){var Le;return(Le=this.readUInt16())>=32768?Le-65536:Le},it.prototype.writeInt16=function(Le){return Le<0&&(Le+=65536),this.writeUInt16(Le)},it.prototype.readString=function(Le){var je,Xe;for(Xe=[],je=0;0<=Le?je<Le:je>Le;je=0<=Le?++je:--je)Xe[je]=String.fromCharCode(this.readByte());return Xe.join("")},it.prototype.writeString=function(Le){var je,Xe,nt;for(nt=[],je=0,Xe=Le.length;0<=Xe?je<Xe:je>Xe;je=0<=Xe?++je:--je)nt.push(this.writeByte(Le.charCodeAt(je)));return nt},it.prototype.readShort=function(){return this.readInt16()},it.prototype.writeShort=function(Le){return this.writeInt16(Le)},it.prototype.readLongLong=function(){var Le,je,Xe,nt,Ze,ot,Ct,gt;return Le=this.readByte(),je=this.readByte(),Xe=this.readByte(),nt=this.readByte(),Ze=this.readByte(),ot=this.readByte(),Ct=this.readByte(),gt=this.readByte(),128&Le?-1*(72057594037927940*(255^Le)+281474976710656*(255^je)+1099511627776*(255^Xe)+4294967296*(255^nt)+16777216*(255^Ze)+65536*(255^ot)+256*(255^Ct)+(255^gt)+1):72057594037927940*Le+281474976710656*je+1099511627776*Xe+4294967296*nt+16777216*Ze+65536*ot+256*Ct+gt},it.prototype.writeLongLong=function(Le){var je,Xe;return je=Math.floor(Le/4294967296),Xe=4294967295&Le,this.writeByte(je>>24&255),this.writeByte(je>>16&255),this.writeByte(je>>8&255),this.writeByte(255&je),this.writeByte(Xe>>24&255),this.writeByte(Xe>>16&255),this.writeByte(Xe>>8&255),this.writeByte(255&Xe)},it.prototype.readInt=function(){return this.readInt32()},it.prototype.writeInt=function(Le){return this.writeInt32(Le)},it.prototype.read=function(Le){var je,Xe;for(je=[],Xe=0;0<=Le?Xe<Le:Xe>Le;Xe=0<=Le?++Xe:--Xe)je.push(this.readByte());return je},it.prototype.write=function(Le){var je,Xe,nt,Ze;for(Ze=[],Xe=0,nt=Le.length;Xe<nt;Xe++)je=Le[Xe],Ze.push(this.writeByte(je));return Ze},it}(),vt=function(){var it;function Le(je){var Xe,nt,Ze;for(this.scalarType=je.readInt(),this.tableCount=je.readShort(),this.searchRange=je.readShort(),this.entrySelector=je.readShort(),this.rangeShift=je.readShort(),this.tables={},nt=0,Ze=this.tableCount;0<=Ze?nt<Ze:nt>Ze;nt=0<=Ze?++nt:--nt)Xe={tag:je.readString(4),checksum:je.readInt(),offset:je.readInt(),length:je.readInt()},this.tables[Xe.tag]=Xe}return Le.prototype.encode=function(je){var Xe,nt,Ze,ot,Ct,gt,pr,$r,Yr,mn,Ar,zn,Fr;for(Fr in Ar=Object.keys(je).length,gt=Math.log(2),Yr=16*Math.floor(Math.log(Ar)/gt),ot=Math.floor(Yr/gt),$r=16*Ar-Yr,(nt=new jt).writeInt(this.scalarType),nt.writeShort(Ar),nt.writeShort(Yr),nt.writeShort(ot),nt.writeShort($r),Ze=16*Ar,pr=nt.pos+Ze,Ct=null,zn=[],je)for(mn=je[Fr],nt.writeString(Fr),nt.writeInt(it(mn)),nt.writeInt(pr),nt.writeInt(mn.length),zn=zn.concat(mn),Fr==="head"&&(Ct=pr),pr+=mn.length;pr%4;)zn.push(0),pr++;return nt.write(zn),Xe=2981146554-it(nt.data),nt.pos=Ct+8,nt.writeUInt32(Xe),nt.data},it=function(Xe){var nt,Ze,ot,Ct;for(Xe=ri.call(Xe);Xe.length%4;)Xe.push(0);for(ot=new jt(Xe),Ze=0,nt=0,Ct=Xe.length;nt<Ct;nt=nt+=4)Ze+=ot.readUInt32();return 4294967295&Ze},Le}(),bt={}.hasOwnProperty,cr=function(Le,je){for(var Xe in je)bt.call(je,Xe)&&(Le[Xe]=je[Xe]);function nt(){this.constructor=Le}return nt.prototype=je.prototype,Le.prototype=new nt,Le.__super__=je.prototype,Le};hn=function(){function it(Le){var je;this.file=Le,je=this.file.directory.tables[this.tag],this.exists=!!je,je&&(this.offset=je.offset,this.length=je.length,this.parse(this.file.contents))}return it.prototype.parse=function(){},it.prototype.encode=function(){},it.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},it}();var Qt=function(it){function Le(){return Le.__super__.constructor.apply(this,arguments)}return cr(Le,hn),Le.prototype.tag="head",Le.prototype.parse=function(je){return je.pos=this.offset,this.version=je.readInt(),this.revision=je.readInt(),this.checkSumAdjustment=je.readInt(),this.magicNumber=je.readInt(),this.flags=je.readShort(),this.unitsPerEm=je.readShort(),this.created=je.readLongLong(),this.modified=je.readLongLong(),this.xMin=je.readShort(),this.yMin=je.readShort(),this.xMax=je.readShort(),this.yMax=je.readShort(),this.macStyle=je.readShort(),this.lowestRecPPEM=je.readShort(),this.fontDirectionHint=je.readShort(),this.indexToLocFormat=je.readShort(),this.glyphDataFormat=je.readShort()},Le.prototype.encode=function(je){var Xe;return(Xe=new jt).writeInt(this.version),Xe.writeInt(this.revision),Xe.writeInt(this.checkSumAdjustment),Xe.writeInt(this.magicNumber),Xe.writeShort(this.flags),Xe.writeShort(this.unitsPerEm),Xe.writeLongLong(this.created),Xe.writeLongLong(this.modified),Xe.writeShort(this.xMin),Xe.writeShort(this.yMin),Xe.writeShort(this.xMax),Xe.writeShort(this.yMax),Xe.writeShort(this.macStyle),Xe.writeShort(this.lowestRecPPEM),Xe.writeShort(this.fontDirectionHint),Xe.writeShort(je),Xe.writeShort(this.glyphDataFormat),Xe.data},Le}(),Mt=function(){function it(Le,je){var Xe,nt,Ze,ot,Ct,gt,pr,$r,Yr,mn,Ar,zn,Fr,Bn,bn,en,ti;switch(this.platformID=Le.readUInt16(),this.encodingID=Le.readShort(),this.offset=je+Le.readInt(),Yr=Le.pos,Le.pos=this.offset,this.format=Le.readUInt16(),this.length=Le.readUInt16(),this.language=Le.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(gt=0;gt<256;++gt)this.codeMap[gt]=Le.readByte();break;case 4:for(Ar=Le.readUInt16(),mn=Ar/2,Le.pos+=6,Ze=function(){var pi,Pi;for(Pi=[],gt=pi=0;0<=mn?pi<mn:pi>mn;gt=0<=mn?++pi:--pi)Pi.push(Le.readUInt16());return Pi}(),Le.pos+=2,Fr=function(){var pi,Pi;for(Pi=[],gt=pi=0;0<=mn?pi<mn:pi>mn;gt=0<=mn?++pi:--pi)Pi.push(Le.readUInt16());return Pi}(),pr=function(){var pi,Pi;for(Pi=[],gt=pi=0;0<=mn?pi<mn:pi>mn;gt=0<=mn?++pi:--pi)Pi.push(Le.readUInt16());return Pi}(),$r=function(){var pi,Pi;for(Pi=[],gt=pi=0;0<=mn?pi<mn:pi>mn;gt=0<=mn?++pi:--pi)Pi.push(Le.readUInt16());return Pi}(),nt=(this.length-Le.pos+this.offset)/2,Ct=function(){var pi,Pi;for(Pi=[],gt=pi=0;0<=nt?pi<nt:pi>nt;gt=0<=nt?++pi:--pi)Pi.push(Le.readUInt16());return Pi}(),gt=bn=0,ti=Ze.length;bn<ti;gt=++bn)for(Bn=Ze[gt],Xe=en=zn=Fr[gt];zn<=Bn?en<=Bn:en>=Bn;Xe=zn<=Bn?++en:--en)$r[gt]===0?ot=Xe+pr[gt]:(ot=Ct[$r[gt]/2+(Xe-zn)-(mn-gt)]||0)!==0&&(ot+=pr[gt]),this.codeMap[Xe]=65535&ot}Le.pos=Yr}return it.encode=function(Le,je){var Xe,nt,Ze,ot,Ct,gt,pr,$r,Yr,mn,Ar,zn,Fr,Bn,bn,en,ti,pi,Pi,qr,En,Yn,zt,Ot,kt,Bt,Wt,Lt,dr,yr,br,Mr,Gn,Mn,di,vn,Ur,In,Qn,qn,oi,Ti,ki,Ri,oa,ma;switch(Lt=new jt,ot=Object.keys(Le).sort(function(aa,ba){return aa-ba}),je){case"macroman":for(Fr=0,Bn=function(){var aa=[];for(zn=0;zn<256;++zn)aa.push(0);return aa}(),en={0:0},Ze={},dr=0,Gn=ot.length;dr<Gn;dr++)en[ki=Le[nt=ot[dr]]]==null&&(en[ki]=++Fr),Ze[nt]={old:Le[nt],new:en[Le[nt]]},Bn[nt]=en[Le[nt]];return Lt.writeUInt16(1),Lt.writeUInt16(0),Lt.writeUInt32(12),Lt.writeUInt16(0),Lt.writeUInt16(262),Lt.writeUInt16(0),Lt.write(Bn),{charMap:Ze,subtable:Lt.data,maxGlyphID:Fr+1};case"unicode":for(Bt=[],Yr=[],ti=0,en={},Xe={},bn=pr=null,yr=0,Mn=ot.length;yr<Mn;yr++)en[Pi=Le[nt=ot[yr]]]==null&&(en[Pi]=++ti),Xe[nt]={old:Pi,new:en[Pi]},Ct=en[Pi]-nt,bn!=null&&Ct===pr||(bn&&Yr.push(bn),Bt.push(nt),pr=Ct),bn=nt;for(bn&&Yr.push(bn),Yr.push(65535),Bt.push(65535),Ot=2*(zt=Bt.length),Yn=2*Math.pow(Math.log(zt)/Math.LN2,2),mn=Math.log(Yn/2)/Math.LN2,En=2*zt-Yn,gt=[],qr=[],Ar=[],zn=br=0,di=Bt.length;br<di;zn=++br){if(kt=Bt[zn],$r=Yr[zn],kt===65535){gt.push(0),qr.push(0);break}if(kt-(Wt=Xe[kt].new)>=32768)for(gt.push(0),qr.push(2*(Ar.length+zt-zn)),nt=Mr=kt;kt<=$r?Mr<=$r:Mr>=$r;nt=kt<=$r?++Mr:--Mr)Ar.push(Xe[nt].new);else gt.push(Wt-kt),qr.push(0)}for(Lt.writeUInt16(3),Lt.writeUInt16(1),Lt.writeUInt32(12),Lt.writeUInt16(4),Lt.writeUInt16(16+8*zt+2*Ar.length),Lt.writeUInt16(0),Lt.writeUInt16(Ot),Lt.writeUInt16(Yn),Lt.writeUInt16(mn),Lt.writeUInt16(En),oi=0,vn=Yr.length;oi<vn;oi++)nt=Yr[oi],Lt.writeUInt16(nt);for(Lt.writeUInt16(0),Ti=0,Ur=Bt.length;Ti<Ur;Ti++)nt=Bt[Ti],Lt.writeUInt16(nt);for(Ri=0,In=gt.length;Ri<In;Ri++)Ct=gt[Ri],Lt.writeUInt16(Ct);for(oa=0,Qn=qr.length;oa<Qn;oa++)pi=qr[oa],Lt.writeUInt16(pi);for(ma=0,qn=Ar.length;ma<qn;ma++)Fr=Ar[ma],Lt.writeUInt16(Fr);return{charMap:Xe,subtable:Lt.data,maxGlyphID:ti+1}}},it}(),tr=function(it){function Le(){return Le.__super__.constructor.apply(this,arguments)}return cr(Le,hn),Le.prototype.tag="cmap",Le.prototype.parse=function(je){var Xe,nt,Ze;for(je.pos=this.offset,this.version=je.readUInt16(),Ze=je.readUInt16(),this.tables=[],this.unicode=null,nt=0;0<=Ze?nt<Ze:nt>Ze;nt=0<=Ze?++nt:--nt)Xe=new Mt(je,this.offset),this.tables.push(Xe),Xe.isUnicode&&this.unicode==null&&(this.unicode=Xe);return!0},Le.encode=function(je,Xe){var nt,Ze;return Xe==null&&(Xe="macroman"),nt=Mt.encode(je,Xe),(Ze=new jt).writeUInt16(0),Ze.writeUInt16(1),nt.table=Ze.data.concat(nt.subtable),nt},Le}(),Rt=function(it){function Le(){return Le.__super__.constructor.apply(this,arguments)}return cr(Le,hn),Le.prototype.tag="hhea",Le.prototype.parse=function(je){return je.pos=this.offset,this.version=je.readInt(),this.ascender=je.readShort(),this.decender=je.readShort(),this.lineGap=je.readShort(),this.advanceWidthMax=je.readShort(),this.minLeftSideBearing=je.readShort(),this.minRightSideBearing=je.readShort(),this.xMaxExtent=je.readShort(),this.caretSlopeRise=je.readShort(),this.caretSlopeRun=je.readShort(),this.caretOffset=je.readShort(),je.pos+=8,this.metricDataFormat=je.readShort(),this.numberOfMetrics=je.readUInt16()},Le}(),qt=function(it){function Le(){return Le.__super__.constructor.apply(this,arguments)}return cr(Le,hn),Le.prototype.tag="OS/2",Le.prototype.parse=function(je){if(je.pos=this.offset,this.version=je.readUInt16(),this.averageCharWidth=je.readShort(),this.weightClass=je.readUInt16(),this.widthClass=je.readUInt16(),this.type=je.readShort(),this.ySubscriptXSize=je.readShort(),this.ySubscriptYSize=je.readShort(),this.ySubscriptXOffset=je.readShort(),this.ySubscriptYOffset=je.readShort(),this.ySuperscriptXSize=je.readShort(),this.ySuperscriptYSize=je.readShort(),this.ySuperscriptXOffset=je.readShort(),this.ySuperscriptYOffset=je.readShort(),this.yStrikeoutSize=je.readShort(),this.yStrikeoutPosition=je.readShort(),this.familyClass=je.readShort(),this.panose=function(){var Xe,nt;for(nt=[],Xe=0;Xe<10;++Xe)nt.push(je.readByte());return nt}(),this.charRange=function(){var Xe,nt;for(nt=[],Xe=0;Xe<4;++Xe)nt.push(je.readInt());return nt}(),this.vendorID=je.readString(4),this.selection=je.readShort(),this.firstCharIndex=je.readShort(),this.lastCharIndex=je.readShort(),this.version>0&&(this.ascent=je.readShort(),this.descent=je.readShort(),this.lineGap=je.readShort(),this.winAscent=je.readShort(),this.winDescent=je.readShort(),this.codePageRange=function(){var Xe,nt;for(nt=[],Xe=0;Xe<2;Xe=++Xe)nt.push(je.readInt());return nt}(),this.version>1))return this.xHeight=je.readShort(),this.capHeight=je.readShort(),this.defaultChar=je.readShort(),this.breakChar=je.readShort(),this.maxContext=je.readShort()},Le}(),Hr=function(it){function Le(){return Le.__super__.constructor.apply(this,arguments)}return cr(Le,hn),Le.prototype.tag="post",Le.prototype.parse=function(je){var Xe,nt,Ze;switch(je.pos=this.offset,this.format=je.readInt(),this.italicAngle=je.readInt(),this.underlinePosition=je.readShort(),this.underlineThickness=je.readShort(),this.isFixedPitch=je.readInt(),this.minMemType42=je.readInt(),this.maxMemType42=je.readInt(),this.minMemType1=je.readInt(),this.maxMemType1=je.readInt(),this.format){case 65536:break;case 131072:var ot;for(nt=je.readUInt16(),this.glyphNameIndex=[],ot=0;0<=nt?ot<nt:ot>nt;ot=0<=nt?++ot:--ot)this.glyphNameIndex.push(je.readUInt16());for(this.names=[],Ze=[];je.pos<this.offset+this.length;)Xe=je.readByte(),Ze.push(this.names.push(je.readString(Xe)));return Ze;case 151552:return nt=je.readUInt16(),this.offsets=je.read(nt);case 196608:break;case 262144:return this.map=function(){var Ct,gt,pr;for(pr=[],ot=Ct=0,gt=this.file.maxp.numGlyphs;0<=gt?Ct<gt:Ct>gt;ot=0<=gt?++Ct:--Ct)pr.push(je.readUInt32());return pr}.call(this)}},Le}(),Nr=function(Le,je){this.raw=Le,this.length=Le.length,this.platformID=je.platformID,this.encodingID=je.encodingID,this.languageID=je.languageID},Dr=function(it){function Le(){return Le.__super__.constructor.apply(this,arguments)}return cr(Le,hn),Le.prototype.tag="name",Le.prototype.parse=function(je){var Xe,nt,Ze,ot,Ct,gt,pr,$r,Yr,mn,Ar;for(je.pos=this.offset,je.readShort(),Xe=je.readShort(),gt=je.readShort(),nt=[],ot=0;0<=Xe?ot<Xe:ot>Xe;ot=0<=Xe?++ot:--ot)nt.push({platformID:je.readShort(),encodingID:je.readShort(),languageID:je.readShort(),nameID:je.readShort(),length:je.readShort(),offset:this.offset+gt+je.readShort()});for(pr={},ot=Yr=0,mn=nt.length;Yr<mn;ot=++Yr)Ze=nt[ot],je.pos=Ze.offset,$r=je.readString(Ze.length),Ct=new Nr($r,Ze),pr[Ar=Ze.nameID]==null&&(pr[Ar]=[]),pr[Ze.nameID].push(Ct);this.strings=pr,this.copyright=pr[0],this.fontFamily=pr[1],this.fontSubfamily=pr[2],this.uniqueSubfamily=pr[3],this.fontName=pr[4],this.version=pr[5];try{this.postscriptName=pr[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(zn){this.postscriptName=pr[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=pr[7],this.manufacturer=pr[8],this.designer=pr[9],this.description=pr[10],this.vendorUrl=pr[11],this.designerUrl=pr[12],this.license=pr[13],this.licenseUrl=pr[14],this.preferredFamily=pr[15],this.preferredSubfamily=pr[17],this.compatibleFull=pr[18],this.sampleText=pr[19]},Le}(),cn=function(it){function Le(){return Le.__super__.constructor.apply(this,arguments)}return cr(Le,hn),Le.prototype.tag="maxp",Le.prototype.parse=function(je){return je.pos=this.offset,this.version=je.readInt(),this.numGlyphs=je.readUInt16(),this.maxPoints=je.readUInt16(),this.maxContours=je.readUInt16(),this.maxCompositePoints=je.readUInt16(),this.maxComponentContours=je.readUInt16(),this.maxZones=je.readUInt16(),this.maxTwilightPoints=je.readUInt16(),this.maxStorage=je.readUInt16(),this.maxFunctionDefs=je.readUInt16(),this.maxInstructionDefs=je.readUInt16(),this.maxStackElements=je.readUInt16(),this.maxSizeOfInstructions=je.readUInt16(),this.maxComponentElements=je.readUInt16(),this.maxComponentDepth=je.readUInt16()},Le}(),An=function(it){function Le(){return Le.__super__.constructor.apply(this,arguments)}return cr(Le,hn),Le.prototype.tag="hmtx",Le.prototype.parse=function(je){var Xe,nt,Ze,ot,Ct,gt,pr;for(je.pos=this.offset,this.metrics=[],Xe=0,gt=this.file.hhea.numberOfMetrics;0<=gt?Xe<gt:Xe>gt;Xe=0<=gt?++Xe:--Xe)this.metrics.push({advance:je.readUInt16(),lsb:je.readInt16()});for(Ze=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var $r,Yr;for(Yr=[],Xe=$r=0;0<=Ze?$r<Ze:$r>Ze;Xe=0<=Ze?++$r:--$r)Yr.push(je.readInt16());return Yr}(),this.widths=function(){var $r,Yr,mn,Ar;for(Ar=[],$r=0,Yr=(mn=this.metrics).length;$r<Yr;$r++)ot=mn[$r],Ar.push(ot.advance);return Ar}.call(this),nt=this.widths[this.widths.length-1],pr=[],Xe=Ct=0;0<=Ze?Ct<Ze:Ct>Ze;Xe=0<=Ze?++Ct:--Ct)pr.push(this.widths.push(nt));return pr},Le.prototype.forGlyph=function(je){return je in this.metrics?this.metrics[je]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[je-this.metrics.length]}},Le}(),ri=[].slice,$n=function(it){function Le(){return Le.__super__.constructor.apply(this,arguments)}return cr(Le,hn),Le.prototype.tag="glyf",Le.prototype.parse=function(){return this.cache={}},Le.prototype.glyphFor=function(je){var Xe,nt,Ze,ot,Ct,gt,pr,$r,Yr,mn;return je in this.cache?this.cache[je]:(ot=this.file.loca,Xe=this.file.contents,nt=ot.indexOf(je),(Ze=ot.lengthOf(je))===0?this.cache[je]=null:(Xe.pos=this.offset+nt,Ct=(gt=new jt(Xe.read(Ze))).readShort(),$r=gt.readShort(),mn=gt.readShort(),pr=gt.readShort(),Yr=gt.readShort(),this.cache[je]=Ct===-1?new _i(gt,$r,mn,pr,Yr):new fi(gt,Ct,$r,mn,pr,Yr),this.cache[je]))},Le.prototype.encode=function(je,Xe,nt){var Ze,ot,Ct,gt,pr;for(Ct=[],ot=[],gt=0,pr=Xe.length;gt<pr;gt++)Ze=je[Xe[gt]],ot.push(Ct.length),Ze&&(Ct=Ct.concat(Ze.encode(nt)));return ot.push(Ct.length),{table:Ct,offsets:ot}},Le}(),fi=function(){function it(Le,je,Xe,nt,Ze,ot){this.raw=Le,this.numberOfContours=je,this.xMin=Xe,this.yMin=nt,this.xMax=Ze,this.yMax=ot,this.compound=!1}return it.prototype.encode=function(){return this.raw.data},it}(),_i=function(){function it(Le,je,Xe,nt,Ze){var ot,Ct;for(this.raw=Le,this.xMin=je,this.yMin=Xe,this.xMax=nt,this.yMax=Ze,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],ot=this.raw;Ct=ot.readShort(),this.glyphOffsets.push(ot.pos),this.glyphIDs.push(ot.readUInt16()),32&Ct;)ot.pos+=1&Ct?4:2,128&Ct?ot.pos+=8:64&Ct?ot.pos+=4:8&Ct&&(ot.pos+=2)}return it.prototype.encode=function(){var Le,je,Xe;for(je=new jt(ri.call(this.raw.data)),Le=0,Xe=this.glyphIDs.length;Le<Xe;++Le)je.pos=this.glyphOffsets[Le];return je.data},it}(),Di=function(it){function Le(){return Le.__super__.constructor.apply(this,arguments)}return cr(Le,hn),Le.prototype.tag="loca",Le.prototype.parse=function(je){var Xe,nt;return je.pos=this.offset,Xe=this.file.head.indexToLocFormat,this.offsets=Xe===0?function(){var Ze,ot;for(ot=[],nt=0,Ze=this.length;nt<Ze;nt+=2)ot.push(2*je.readUInt16());return ot}.call(this):function(){var Ze,ot;for(ot=[],nt=0,Ze=this.length;nt<Ze;nt+=4)ot.push(je.readUInt32());return ot}.call(this)},Le.prototype.indexOf=function(je){return this.offsets[je]},Le.prototype.lengthOf=function(je){return this.offsets[je+1]-this.offsets[je]},Le.prototype.encode=function(je,Xe){for(var nt=new Uint32Array(this.offsets.length),Ze=0,ot=0,Ct=0;Ct<nt.length;++Ct)if(nt[Ct]=Ze,ot<Xe.length&&Xe[ot]==Ct){++ot,nt[Ct]=Ze;var gt=this.offsets[Ct],pr=this.offsets[Ct+1]-gt;pr>0&&(Ze+=pr)}for(var $r=new Array(4*nt.length),Yr=0;Yr<nt.length;++Yr)$r[4*Yr+3]=255&nt[Yr],$r[4*Yr+2]=(65280&nt[Yr])>>8,$r[4*Yr+1]=(16711680&nt[Yr])>>16,$r[4*Yr]=(4278190080&nt[Yr])>>24;return $r},Le}(),Wi=function(){function it(Le){this.font=Le,this.subset={},this.unicodes={},this.next=33}return it.prototype.generateCmap=function(){var Le,je,Xe,nt,Ze;for(je in nt=this.font.cmap.tables[0].codeMap,Le={},Ze=this.subset)Xe=Ze[je],Le[je]=nt[Xe];return Le},it.prototype.glyphsFor=function(Le){var je,Xe,nt,Ze,ot,Ct,gt;for(nt={},ot=0,Ct=Le.length;ot<Ct;ot++)nt[Ze=Le[ot]]=this.font.glyf.glyphFor(Ze);for(Ze in je=[],nt)((Xe=nt[Ze])!=null?Xe.compound:void 0)&&je.push.apply(je,Xe.glyphIDs);if(je.length>0)for(Ze in gt=this.glyphsFor(je))Xe=gt[Ze],nt[Ze]=Xe;return nt},it.prototype.encode=function(Le,je){var Xe,nt,Ze,ot,Ct,gt,pr,$r,Yr,mn,Ar,zn,Fr,Bn,bn;for(nt in Xe=tr.encode(this.generateCmap(),"unicode"),ot=this.glyphsFor(Le),Ar={0:0},bn=Xe.charMap)Ar[(gt=bn[nt]).old]=gt.new;for(zn in mn=Xe.maxGlyphID,ot)zn in Ar||(Ar[zn]=mn++);return $r=function(en){var ti,pi;for(ti in pi={},en)pi[en[ti]]=ti;return pi}(Ar),Yr=Object.keys($r).sort(function(en,ti){return en-ti}),Fr=function(){var en,ti,pi;for(pi=[],en=0,ti=Yr.length;en<ti;en++)Ct=Yr[en],pi.push($r[Ct]);return pi}(),Ze=this.font.glyf.encode(ot,Fr,Ar),pr=this.font.loca.encode(Ze.offsets,Fr),Bn={cmap:this.font.cmap.raw(),glyf:Ze.table,loca:pr,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(je)},this.font.os2.exists&&(Bn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(Bn)},it}();z.API.PDFObject=function(){var it;function Le(){}return it=function(Xe,nt){return(Array(nt+1).join("0")+Xe).slice(-nt)},Le.convert=function(je){var Xe,nt,Ze,ot;if(Array.isArray(je))return"["+function(){var Ct,gt,pr;for(pr=[],Ct=0,gt=je.length;Ct<gt;Ct++)Xe=je[Ct],pr.push(Le.convert(Xe));return pr}().join(" ")+"]";if(typeof je=="string")return"/"+je;if(je!=null?je.isString:void 0)return"("+je+")";if(je instanceof Date)return"(D:"+it(je.getUTCFullYear(),4)+it(je.getUTCMonth(),2)+it(je.getUTCDate(),2)+it(je.getUTCHours(),2)+it(je.getUTCMinutes(),2)+it(je.getUTCSeconds(),2)+"Z)";if({}.toString.call(je)==="[object Object]"){for(nt in Ze=["<<"],je)ot=je[nt],Ze.push("/"+nt+" "+Le.convert(ot));return Ze.push(">>"),Ze.join(`
|
|
|
`)}return""+je},Le}(),D.default=z}.call(this,n("yLpj"))},e4Nc:function(R,D,n){var y=n("fGT3"),f=n("k+1r"),x=n("JHgL"),v=n("pSRY"),m=n("H8j4");function p(d){var u=-1,s=d==null?0:d.length;for(this.clear();++u<s;){var i=d[u];this.set(i[0],i[1])}}p.prototype.clear=y,p.prototype.delete=f,p.prototype.get=x,p.prototype.has=v,p.prototype.set=m,R.exports=p},e5VY:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("YNAk"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},e5cp:function(R,D,n){var y=n("fmRc"),f=n("or5M"),x=n("HDyB"),v=n("seXi"),m=n("QqLw"),p=n("Z0cm"),d=n("DSRE"),u=n("c6wG"),s=1,i="[object Arguments]",t="[object Array]",o="[object Object]",e=Object.prototype,l=e.hasOwnProperty;function r(a,c,h,g,A,b){var S=p(a),E=p(c),C=S?t:m(a),_=E?t:m(c);C=C==i?o:C,_=_==i?o:_;var T=C==o,w=_==o,O=C==_;if(O&&d(a)){if(!d(c))return!1;S=!0,T=!1}if(O&&!T)return b||(b=new y),S||u(a)?f(a,c,h,g,A,b):x(a,c,C,h,g,A,b);if(!(h&s)){var I=T&&l.call(a,"__wrapped__"),k=w&&l.call(c,"__wrapped__");if(I||k){var M=I?a.value():a,j=k?c.value():c;return b||(b=new y),A(M,j,h,g,b)}}return O?(b||(b=new y),v(a,c,h,g,A,b)):!1}R.exports=r},e7zE:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("3y9D"),n("WYAk"))})(this,function(y){return function(){var f=y,x=f.lib,v=x.Base,m=x.WordArray,p=f.algo,d=p.SHA1,u=p.HMAC,s=p.PBKDF2=v.extend({cfg:v.extend({keySize:128/32,hasher:d,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,o){for(var e=this.cfg,l=u.create(e.hasher,t),r=m.create(),a=m.create([1]),c=r.words,h=a.words,g=e.keySize,A=e.iterations;c.length<g;){var b=l.update(o).finalize(a);l.reset();for(var S=b.words,E=S.length,C=b,_=1;_<A;_++){C=l.finalize(C),l.reset();for(var T=C.words,w=0;w<E;w++)S[w]^=T[w]}r.concat(b),h[0]++}return r.sigBytes=g*4,r}});f.PBKDF2=function(i,t,o){return s.create(o).compute(i,t)}}(),y.PBKDF2})},eIcI:function(R,D,n){var y=n("bYtY"),f=n("hM6l");function x(m,p,d){f.call(this,m,p,d),this.type="value",this.angle=0,this.name="",this.model}y.inherits(x,f);var v=x;R.exports=v},eJH7:function(R,D,n){var y=n("bYtY");function f(x){var v=x.polar;if(v){y.isArray(v)||(v=[v]);var m=[];y.each(v,function(p,d){p.indicator?(p.type&&!p.shape&&(p.shape=p.type),x.radar=x.radar||[],y.isArray(x.radar)||(x.radar=[x.radar]),x.radar.push(p)):m.push(p)}),x.polar=m}y.each(x.series,function(p){p&&p.type==="radar"&&p.polarIndex&&(p.radarIndex=p.polarIndex)})}R.exports=f},eP3c:function(R,D,n){"use strict";function y(Ge){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(oe){return typeof oe}:y=function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},y(Ge)}Object.defineProperty(D,"__esModule",{value:!0}),D.inflateReset=fe,D.inflateReset2=we,D.inflateResetKeep=Be,D.inflateInit=rt,D.inflateInit2=Re,D.inflate=Kt,D.inflateEnd=fr,D.inflateGetHeader=Gt,D.inflateSetDictionary=Pt,D.inflateInfo=D.Z_DEFLATED=D.Z_BUF_ERROR=D.Z_MEM_ERROR=D.Z_DATA_ERROR=D.Z_STREAM_ERROR=D.Z_NEED_DICT=D.Z_STREAM_END=D.Z_OK=D.Z_TREES=D.Z_BLOCK=D.Z_FINISH=void 0;var f=s(n("6BzB")),x=d(n("xlC8")),v=d(n("QV2g")),m=d(n("sjKO")),p=d(n("JSwD"));function d(Ge){return Ge&&Ge.__esModule?Ge:{default:Ge}}function u(){if(typeof WeakMap!="function")return null;var Ge=new WeakMap;return u=function(){return Ge},Ge}function s(Ge){if(Ge&&Ge.__esModule)return Ge;if(Ge===null||y(Ge)!=="object"&&typeof Ge!="function")return{default:Ge};var pe=u();if(pe&&pe.has(Ge))return pe.get(Ge);var oe={},lt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var qe in Ge)if(Object.prototype.hasOwnProperty.call(Ge,qe)){var ge=lt?Object.getOwnPropertyDescriptor(Ge,qe):null;ge&&(ge.get||ge.set)?Object.defineProperty(oe,qe,ge):oe[qe]=Ge[qe]}return oe.default=Ge,pe&&pe.set(Ge,oe),oe}var i=0,t=1,o=2,e=4;D.Z_FINISH=e;var l=5;D.Z_BLOCK=l;var r=6;D.Z_TREES=r;var a=0;D.Z_OK=a;var c=1;D.Z_STREAM_END=c;var h=2;D.Z_NEED_DICT=h;var g=-2;D.Z_STREAM_ERROR=g;var A=-3;D.Z_DATA_ERROR=A;var b=-4;D.Z_MEM_ERROR=b;var S=-5;D.Z_BUF_ERROR=S;var E=8;D.Z_DEFLATED=E;var C=1,_=2,T=3,w=4,O=5,I=6,k=7,M=8,j=9,P=10,X=11,F=12,U=13,K=14,z=15,V=16,Q=17,G=18,te=19,q=20,se=21,re=22,xe=23,Oe=24,Me=25,Qe=26,Ve=27,ut=28,Fe=29,ue=30,et=31,he=32,J=852,Y=592,$=15,de=$;function be(Ge){return(Ge>>>24&255)+(Ge>>>8&65280)+((Ge&65280)<<8)+((Ge&255)<<24)}function Ce(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new f.Buf16(320),this.work=new f.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Be(Ge){var pe;return!Ge||!Ge.state?g:(pe=Ge.state,Ge.total_in=Ge.total_out=pe.total=0,Ge.msg="",pe.wrap&&(Ge.adler=pe.wrap&1),pe.mode=C,pe.last=0,pe.havedict=0,pe.dmax=32768,pe.head=null,pe.hold=0,pe.bits=0,pe.lencode=pe.lendyn=new f.Buf32(J),pe.distcode=pe.distdyn=new f.Buf32(Y),pe.sane=1,pe.back=-1,a)}function fe(Ge){var pe;return!Ge||!Ge.state?g:(pe=Ge.state,pe.wsize=0,pe.whave=0,pe.wnext=0,Be(Ge))}function we(Ge,pe){var oe,lt;return!Ge||!Ge.state?g:(lt=Ge.state,pe<0?(oe=0,pe=-pe):(oe=(pe>>4)+1,pe<48&&(pe&=15)),pe&&(pe<8||pe>15)?g:(lt.window!==null&<.wbits!==pe&&(lt.window=null),lt.wrap=oe,lt.wbits=pe,fe(Ge)))}function Re(Ge,pe){var oe,lt;return Ge?(lt=new Ce,Ge.state=lt,lt.window=null,oe=we(Ge,pe),oe!==a&&(Ge.state=null),oe):g}function rt(Ge){return Re(Ge,de)}var St=!0,ft,He;function er(Ge){if(St){var pe;for(ft=new f.Buf32(512),He=new f.Buf32(32),pe=0;pe<144;)Ge.lens[pe++]=8;for(;pe<256;)Ge.lens[pe++]=9;for(;pe<280;)Ge.lens[pe++]=7;for(;pe<288;)Ge.lens[pe++]=8;for((0,p.default)(t,Ge.lens,0,288,ft,0,Ge.work,{bits:9}),pe=0;pe<32;)Ge.lens[pe++]=5;(0,p.default)(o,Ge.lens,0,32,He,0,Ge.work,{bits:5}),St=!1}Ge.lencode=ft,Ge.lenbits=9,Ge.distcode=He,Ge.distbits=5}function ct(Ge,pe,oe,lt){var qe,ge=Ge.state;return ge.window===null&&(ge.wsize=1<<ge.wbits,ge.wnext=0,ge.whave=0,ge.window=new f.Buf8(ge.wsize)),lt>=ge.wsize?(f.arraySet(ge.window,pe,oe-ge.wsize,ge.wsize,0),ge.wnext=0,ge.whave=ge.wsize):(qe=ge.wsize-ge.wnext,qe>lt&&(qe=lt),f.arraySet(ge.window,pe,oe-lt,qe,ge.wnext),lt-=qe,lt?(f.arraySet(ge.window,pe,oe-lt,lt,0),ge.wnext=lt,ge.whave=ge.wsize):(ge.wnext+=qe,ge.wnext===ge.wsize&&(ge.wnext=0),ge.whave<ge.wsize&&(ge.whave+=qe))),0}function Kt(Ge,pe){var oe,lt,qe,ge,Ht,vr,At,ir,lr,dn,Ft,ur,Jt,pt,at=0,Pr,un,_n,Xn,xi,Pn,Un,$t,xt=new f.Buf8(4),De,ke,Pe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Ge||!Ge.state||!Ge.output||!Ge.input&&Ge.avail_in!==0)return g;oe=Ge.state,oe.mode===F&&(oe.mode=U),Ht=Ge.next_out,qe=Ge.output,At=Ge.avail_out,ge=Ge.next_in,lt=Ge.input,vr=Ge.avail_in,ir=oe.hold,lr=oe.bits,dn=vr,Ft=At,$t=a;e:for(;;)switch(oe.mode){case C:if(oe.wrap===0){oe.mode=U;break}for(;lr<16;){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}if(oe.wrap&2&&ir===35615){oe.check=0,xt[0]=ir&255,xt[1]=ir>>>8&255,oe.check=(0,v.default)(oe.check,xt,2,0),ir=0,lr=0,oe.mode=_;break}if(oe.flags=0,oe.head&&(oe.head.done=!1),!(oe.wrap&1)||(((ir&255)<<8)+(ir>>8))%31){Ge.msg="incorrect header check",oe.mode=ue;break}if((ir&15)!==E){Ge.msg="unknown compression method",oe.mode=ue;break}if(ir>>>=4,lr-=4,Un=(ir&15)+8,oe.wbits===0)oe.wbits=Un;else if(Un>oe.wbits){Ge.msg="invalid window size",oe.mode=ue;break}oe.dmax=1<<Un,Ge.adler=oe.check=1,oe.mode=ir&512?P:F,ir=0,lr=0;break;case _:for(;lr<16;){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}if(oe.flags=ir,(oe.flags&255)!==E){Ge.msg="unknown compression method",oe.mode=ue;break}if(oe.flags&57344){Ge.msg="unknown header flags set",oe.mode=ue;break}oe.head&&(oe.head.text=ir>>8&1),oe.flags&512&&(xt[0]=ir&255,xt[1]=ir>>>8&255,oe.check=(0,v.default)(oe.check,xt,2,0)),ir=0,lr=0,oe.mode=T;case T:for(;lr<32;){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}oe.head&&(oe.head.time=ir),oe.flags&512&&(xt[0]=ir&255,xt[1]=ir>>>8&255,xt[2]=ir>>>16&255,xt[3]=ir>>>24&255,oe.check=(0,v.default)(oe.check,xt,4,0)),ir=0,lr=0,oe.mode=w;case w:for(;lr<16;){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}oe.head&&(oe.head.xflags=ir&255,oe.head.os=ir>>8),oe.flags&512&&(xt[0]=ir&255,xt[1]=ir>>>8&255,oe.check=(0,v.default)(oe.check,xt,2,0)),ir=0,lr=0,oe.mode=O;case O:if(oe.flags&1024){for(;lr<16;){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}oe.length=ir,oe.head&&(oe.head.extra_len=ir),oe.flags&512&&(xt[0]=ir&255,xt[1]=ir>>>8&255,oe.check=(0,v.default)(oe.check,xt,2,0)),ir=0,lr=0}else oe.head&&(oe.head.extra=null);oe.mode=I;case I:if(oe.flags&1024&&(ur=oe.length,ur>vr&&(ur=vr),ur&&(oe.head&&(Un=oe.head.extra_len-oe.length,oe.head.extra||(oe.head.extra=new Array(oe.head.extra_len)),f.arraySet(oe.head.extra,lt,ge,ur,Un)),oe.flags&512&&(oe.check=(0,v.default)(oe.check,lt,ur,ge)),vr-=ur,ge+=ur,oe.length-=ur),oe.length))break e;oe.length=0,oe.mode=k;case k:if(oe.flags&2048){if(vr===0)break e;ur=0;do Un=lt[ge+ur++],oe.head&&Un&&oe.length<65536&&(oe.head.name+=String.fromCharCode(Un));while(Un&&ur<vr);if(oe.flags&512&&(oe.check=(0,v.default)(oe.check,lt,ur,ge)),vr-=ur,ge+=ur,Un)break e}else oe.head&&(oe.head.name=null);oe.length=0,oe.mode=M;case M:if(oe.flags&4096){if(vr===0)break e;ur=0;do Un=lt[ge+ur++],oe.head&&Un&&oe.length<65536&&(oe.head.comment+=String.fromCharCode(Un));while(Un&&ur<vr);if(oe.flags&512&&(oe.check=(0,v.default)(oe.check,lt,ur,ge)),vr-=ur,ge+=ur,Un)break e}else oe.head&&(oe.head.comment=null);oe.mode=j;case j:if(oe.flags&512){for(;lr<16;){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}if(ir!==(oe.check&65535)){Ge.msg="header crc mismatch",oe.mode=ue;break}ir=0,lr=0}oe.head&&(oe.head.hcrc=oe.flags>>9&1,oe.head.done=!0),Ge.adler=oe.check=0,oe.mode=F;break;case P:for(;lr<32;){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}Ge.adler=oe.check=be(ir),ir=0,lr=0,oe.mode=X;case X:if(oe.havedict===0)return Ge.next_out=Ht,Ge.avail_out=At,Ge.next_in=ge,Ge.avail_in=vr,oe.hold=ir,oe.bits=lr,h;Ge.adler=oe.check=1,oe.mode=F;case F:if(pe===l||pe===r)break e;case U:if(oe.last){ir>>>=lr&7,lr-=lr&7,oe.mode=Ve;break}for(;lr<3;){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}oe.last=ir&1,ir>>>=1,lr-=1;switch(ir&3){case 0:oe.mode=K;break;case 1:if(er(oe),oe.mode=q,pe===r){ir>>>=2,lr-=2;break e}break;case 2:oe.mode=Q;break;case 3:Ge.msg="invalid block type",oe.mode=ue}ir>>>=2,lr-=2;break;case K:for(ir>>>=lr&7,lr-=lr&7;lr<32;){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}if((ir&65535)!==(ir>>>16^65535)){Ge.msg="invalid stored block lengths",oe.mode=ue;break}if(oe.length=ir&65535,ir=0,lr=0,oe.mode=z,pe===r)break e;case z:oe.mode=V;case V:if(ur=oe.length,ur){if(ur>vr&&(ur=vr),ur>At&&(ur=At),ur===0)break e;f.arraySet(qe,lt,ge,ur,Ht),vr-=ur,ge+=ur,At-=ur,Ht+=ur,oe.length-=ur;break}oe.mode=F;break;case Q:for(;lr<14;){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}if(oe.nlen=(ir&31)+257,ir>>>=5,lr-=5,oe.ndist=(ir&31)+1,ir>>>=5,lr-=5,oe.ncode=(ir&15)+4,ir>>>=4,lr-=4,oe.nlen>286||oe.ndist>30){Ge.msg="too many length or distance symbols",oe.mode=ue;break}oe.have=0,oe.mode=G;case G:for(;oe.have<oe.ncode;){for(;lr<3;){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}oe.lens[Pe[oe.have++]]=ir&7,ir>>>=3,lr-=3}for(;oe.have<19;)oe.lens[Pe[oe.have++]]=0;if(oe.lencode=oe.lendyn,oe.lenbits=7,De={bits:oe.lenbits},$t=(0,p.default)(i,oe.lens,0,19,oe.lencode,0,oe.work,De),oe.lenbits=De.bits,$t){Ge.msg="invalid code lengths set",oe.mode=ue;break}oe.have=0,oe.mode=te;case te:for(;oe.have<oe.nlen+oe.ndist;){for(;!(at=oe.lencode[ir&(1<<oe.lenbits)-1],Pr=at>>>24,un=at>>>16&255,_n=at&65535,Pr<=lr);){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}if(_n<16)ir>>>=Pr,lr-=Pr,oe.lens[oe.have++]=_n;else{if(_n===16){for(ke=Pr+2;lr<ke;){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}if(ir>>>=Pr,lr-=Pr,oe.have===0){Ge.msg="invalid bit length repeat",oe.mode=ue;break}Un=oe.lens[oe.have-1],ur=3+(ir&3),ir>>>=2,lr-=2}else if(_n===17){for(ke=Pr+3;lr<ke;){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}ir>>>=Pr,lr-=Pr,Un=0,ur=3+(ir&7),ir>>>=3,lr-=3}else{for(ke=Pr+7;lr<ke;){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}ir>>>=Pr,lr-=Pr,Un=0,ur=11+(ir&127),ir>>>=7,lr-=7}if(oe.have+ur>oe.nlen+oe.ndist){Ge.msg="invalid bit length repeat",oe.mode=ue;break}for(;ur--;)oe.lens[oe.have++]=Un}}if(oe.mode===ue)break;if(oe.lens[256]===0){Ge.msg="invalid code -- missing end-of-block",oe.mode=ue;break}if(oe.lenbits=9,De={bits:oe.lenbits},$t=(0,p.default)(t,oe.lens,0,oe.nlen,oe.lencode,0,oe.work,De),oe.lenbits=De.bits,$t){Ge.msg="invalid literal/lengths set",oe.mode=ue;break}if(oe.distbits=6,oe.distcode=oe.distdyn,De={bits:oe.distbits},$t=(0,p.default)(o,oe.lens,oe.nlen,oe.ndist,oe.distcode,0,oe.work,De),oe.distbits=De.bits,$t){Ge.msg="invalid distances set",oe.mode=ue;break}if(oe.mode=q,pe===r)break e;case q:oe.mode=se;case se:if(vr>=6&&At>=258){Ge.next_out=Ht,Ge.avail_out=At,Ge.next_in=ge,Ge.avail_in=vr,oe.hold=ir,oe.bits=lr,(0,m.default)(Ge,Ft),Ht=Ge.next_out,qe=Ge.output,At=Ge.avail_out,ge=Ge.next_in,lt=Ge.input,vr=Ge.avail_in,ir=oe.hold,lr=oe.bits,oe.mode===F&&(oe.back=-1);break}for(oe.back=0;!(at=oe.lencode[ir&(1<<oe.lenbits)-1],Pr=at>>>24,un=at>>>16&255,_n=at&65535,Pr<=lr);){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}if(un&&(un&240)===0){for(Xn=Pr,xi=un,Pn=_n;!(at=oe.lencode[Pn+((ir&(1<<Xn+xi)-1)>>Xn)],Pr=at>>>24,un=at>>>16&255,_n=at&65535,Xn+Pr<=lr);){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}ir>>>=Xn,lr-=Xn,oe.back+=Xn}if(ir>>>=Pr,lr-=Pr,oe.back+=Pr,oe.length=_n,un===0){oe.mode=Qe;break}if(un&32){oe.back=-1,oe.mode=F;break}if(un&64){Ge.msg="invalid literal/length code",oe.mode=ue;break}oe.extra=un&15,oe.mode=re;case re:if(oe.extra){for(ke=oe.extra;lr<ke;){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}oe.length+=ir&(1<<oe.extra)-1,ir>>>=oe.extra,lr-=oe.extra,oe.back+=oe.extra}oe.was=oe.length,oe.mode=xe;case xe:for(;!(at=oe.distcode[ir&(1<<oe.distbits)-1],Pr=at>>>24,un=at>>>16&255,_n=at&65535,Pr<=lr);){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}if((un&240)===0){for(Xn=Pr,xi=un,Pn=_n;!(at=oe.distcode[Pn+((ir&(1<<Xn+xi)-1)>>Xn)],Pr=at>>>24,un=at>>>16&255,_n=at&65535,Xn+Pr<=lr);){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}ir>>>=Xn,lr-=Xn,oe.back+=Xn}if(ir>>>=Pr,lr-=Pr,oe.back+=Pr,un&64){Ge.msg="invalid distance code",oe.mode=ue;break}oe.offset=_n,oe.extra=un&15,oe.mode=Oe;case Oe:if(oe.extra){for(ke=oe.extra;lr<ke;){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}oe.offset+=ir&(1<<oe.extra)-1,ir>>>=oe.extra,lr-=oe.extra,oe.back+=oe.extra}if(oe.offset>oe.dmax){Ge.msg="invalid distance too far back",oe.mode=ue;break}oe.mode=Me;case Me:if(At===0)break e;if(ur=Ft-At,oe.offset>ur){if(ur=oe.offset-ur,ur>oe.whave&&oe.sane){Ge.msg="invalid distance too far back",oe.mode=ue;break}ur>oe.wnext?(ur-=oe.wnext,Jt=oe.wsize-ur):Jt=oe.wnext-ur,ur>oe.length&&(ur=oe.length),pt=oe.window}else pt=qe,Jt=Ht-oe.offset,ur=oe.length;ur>At&&(ur=At),At-=ur,oe.length-=ur;do qe[Ht++]=pt[Jt++];while(--ur);oe.length===0&&(oe.mode=se);break;case Qe:if(At===0)break e;qe[Ht++]=oe.length,At--,oe.mode=se;break;case Ve:if(oe.wrap){for(;lr<32;){if(vr===0)break e;vr--,ir|=lt[ge++]<<lr,lr+=8}if(Ft-=At,Ge.total_out+=Ft,oe.total+=Ft,Ft&&(Ge.adler=oe.check=oe.flags?(0,v.default)(oe.check,qe,Ft,Ht-Ft):(0,x.default)(oe.check,qe,Ft,Ht-Ft)),Ft=At,(oe.flags?ir:be(ir))!==oe.check){Ge.msg="incorrect data check",oe.mode=ue;break}ir=0,lr=0}oe.mode=ut;case ut:if(oe.wrap&&oe.flags){for(;lr<32;){if(vr===0)break e;vr--,ir+=lt[ge++]<<lr,lr+=8}if(ir!==(oe.total&4294967295)){Ge.msg="incorrect length check",oe.mode=ue;break}ir=0,lr=0}oe.mode=Fe;case Fe:$t=c;break e;case ue:$t=A;break e;case et:return b;case he:default:return g}return Ge.next_out=Ht,Ge.avail_out=At,Ge.next_in=ge,Ge.avail_in=vr,oe.hold=ir,oe.bits=lr,(oe.wsize||Ft!==Ge.avail_out&&oe.mode<ue&&(oe.mode<Ve||pe!==e))&&ct(Ge,Ge.output,Ge.next_out,Ft-Ge.avail_out)?(oe.mode=et,b):(dn-=Ge.avail_in,Ft-=Ge.avail_out,Ge.total_in+=dn,Ge.total_out+=Ft,oe.total+=Ft,oe.wrap&&Ft&&(Ge.adler=oe.check=oe.flags?(0,v.default)(oe.check,qe,Ft,Ge.next_out-Ft):(0,x.default)(oe.check,qe,Ft,Ge.next_out-Ft)),Ge.data_type=oe.bits+(oe.last?64:0)+(oe.mode===F?128:0)+(oe.mode===q||oe.mode===z?256:0),(dn===0&&Ft===0||pe===e)&&$t===a&&($t=S),$t)}function fr(Ge){if(!Ge||!Ge.state)return g;var pe=Ge.state;return pe.window&&(pe.window=null),Ge.state=null,a}function Gt(Ge,pe){var oe;return!Ge||!Ge.state?g:(oe=Ge.state,(oe.wrap&2)===0?g:(oe.head=pe,pe.done=!1,a))}function Pt(Ge,pe){var oe=pe.length,lt,qe,ge;return!Ge||!Ge.state?g:(lt=Ge.state,lt.wrap!==0&<.mode!==X?g:lt.mode===X&&(qe=1,qe=(0,x.default)(qe,pe,oe,0),qe!==lt.check)?A:(ge=ct(Ge,pe,oe,oe),ge?(lt.mode=et,b):(lt.havedict=1,a)))}var Xt="pako inflate (from Nodeca project)";D.inflateInfo=Xt},ePAk:function(R,D,n){var y=n("ProS");n("2fGM");var f=y.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(x){var v,m=this.ecModel;return m.eachComponent(x,function(p){p.getCoordSysModel()===this&&(v=p)},this),v},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});R.exports=f},eRkO:function(R,D,n){var y=n("+TT/"),f=y.getLayoutRect,x=y.box,v=y.positionElement,m=n("7aKB"),p=n("IwbS");function d(s,i,t){var o=i.getBoxLayoutParams(),e=i.get("padding"),l={width:t.getWidth(),height:t.getHeight()},r=f(o,l,e);x(i.get("orient"),s,i.get("itemGap"),r.width,r.height),v(s,o,l,e)}function u(s,i){var t=m.normalizeCssArray(i.get("padding")),o=i.getItemStyle(["color","opacity"]);o.fill=i.get("backgroundColor");var s=new p.Rect({shape:{x:s.x-t[3],y:s.y-t[0],width:s.width+t[1]+t[3],height:s.height+t[0]+t[2],r:i.get("borderRadius")},style:o,silent:!0,z2:-1});return s}D.layout=d,D.makeBackground=u},eS4l:function(R,D,n){n("HM/N"),n("FNN5")},ebwN:function(R,D,n){var y=n("Cwc5"),f=n("Kz5y"),x=y(f,"Map");R.exports=x},ekgI:function(R,D,n){var y=n("YESw"),f=Object.prototype,x=f.hasOwnProperty;function v(m){var p=this.__data__;return y?p[m]!==void 0:x.call(p,m)}R.exports=v},ewwo:function(R,D,n){var y=n("bMXI"),f=n("+TT/"),x=f.getLayoutRect,v=n("4mN7");function m(d,u,s){var i=d.getBoxLayoutParams();return i.aspect=s,x(i,{width:u.getWidth(),height:u.getHeight()})}function p(d,u){var s=[];return d.eachSeriesByType("graph",function(i){var t=i.get("coordinateSystem");if(!t||t==="view"){var o=i.getData(),e=o.mapArray(function(E){var C=o.getItemModel(E);return[+C.get("x"),+C.get("y")]}),l=[],r=[];v.fromPoints(e,l,r),r[0]-l[0]===0&&(r[0]+=1,l[0]-=1),r[1]-l[1]===0&&(r[1]+=1,l[1]-=1);var a=(r[0]-l[0])/(r[1]-l[1]),c=m(i,u,a);isNaN(a)&&(l=[c.x,c.y],r=[c.x+c.width,c.y+c.height]);var h=r[0]-l[0],g=r[1]-l[1],A=c.width,b=c.height,S=i.coordinateSystem=new y;S.zoomLimit=i.get("scaleLimit"),S.setBoundingRect(l[0],l[1],h,g),S.setViewRect(c.x,c.y,A,b),S.setCenter(i.get("center")),S.setZoom(i.get("zoom")),s.push(S)}}),s}R.exports=p},f1nB:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("ProS"),v=n("bYtY"),m=n("4NO4"),p=n("IwbS"),d=n("+TT/"),u=n("OELB"),s=u.parsePercent,i={path:null,compoundPath:null,group:p.Group,image:p.Image,text:p.Text};x.registerPreprocessor(function(A){var b=A.graphic;v.isArray(b)?!b[0]||!b[0].elements?A.graphic=[{elements:b}]:A.graphic=[A.graphic[0]]:b&&!b.elements&&(A.graphic=[{elements:[b]}])});var t=x.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(A){var b=this.option.elements;this.option.elements=null,t.superApply(this,"mergeOption",arguments),this.option.elements=b},optionUpdated:function(A,b){var S=this.option,E=(b?S:A).elements,C=S.elements=b?[]:S.elements,_=[];this._flatten(E,_);var T=m.mappingToExists(C,_);m.makeIdAndName(T);var w=this._elOptionsToUpdate=[];v.each(T,function(I,k){var M=I.option;if(!M)return;w.push(M),a(I,M),c(C,k,M),h(C[k],M)},this);for(var O=C.length-1;O>=0;O--)C[O]==null?C.splice(O,1):delete C[O].$action},_flatten:function(A,b,S){v.each(A,function(E){if(!E)return;S&&(E.parentOption=S),b.push(E);var C=E.children;E.type==="group"&&C&&this._flatten(C,b,E),delete E.children},this)},useElOptionsToUpdate:function(){var A=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,A}});x.extendComponentView({type:"graphic",init:function(A,b){this._elMap=v.createHashMap(),this._lastGraphicModel},render:function(A,b,S){A!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=A,this._updateElements(A),this._relocate(A,S)},_updateElements:function(A){var b=A.useElOptionsToUpdate();if(!b)return;var S=this._elMap,E=this.group;v.each(b,function(C){var _=C.$action,T=C.id,w=S.get(T),O=C.parentId,I=O!=null?S.get(O):E,k=C.style;C.type==="text"&&k&&(C.hv&&C.hv[1]&&(k.textVerticalAlign=k.textBaseline=null),!k.hasOwnProperty("textFill")&&k.fill&&(k.textFill=k.fill),!k.hasOwnProperty("textStroke")&&k.stroke&&(k.textStroke=k.stroke));var M=l(C);!_||_==="merge"?w?w.attr(M):o(T,I,M,S):_==="replace"?(e(w,S),o(T,I,M,S)):_==="remove"&&e(w,S);var j=S.get(T);j&&(j.__ecGraphicWidthOption=C.width,j.__ecGraphicHeightOption=C.height,g(j,A,C))})},_relocate:function(A,b){for(var S=A.option.elements,E=this.group,C=this._elMap,_=b.getWidth(),T=b.getHeight(),w=0;w<S.length;w++){var O=S[w],I=C.get(O.id);if(!I||!I.isGroup)continue;var k=I.parent,M=k===E;I.__ecGraphicWidth=s(I.__ecGraphicWidthOption,M?_:k.__ecGraphicWidth)||0,I.__ecGraphicHeight=s(I.__ecGraphicHeightOption,M?T:k.__ecGraphicHeight)||0}for(var w=S.length-1;w>=0;w--){var O=S[w],I=C.get(O.id);if(!I)continue;var k=I.parent,j=k===E?{width:_,height:T}:{width:k.__ecGraphicWidth,height:k.__ecGraphicHeight};d.positionElement(I,O,j,null,{hv:O.hv,boundingMode:O.bounding})}},_clear:function(){var A=this._elMap;A.each(function(b){e(b,A)}),this._elMap=v.createHashMap()},dispose:function(){this._clear()}});function o(A,b,S,E){var C=S.type,_=i.hasOwnProperty(C)?i[C]:p.getShapeClass(C),T=new _(S);b.add(T),E.set(A,T),T.__ecGraphicId=A}function e(A,b){var S=A&&A.parent;S&&(A.type==="group"&&A.traverse(function(E){e(E,b)}),b.removeKey(A.__ecGraphicId),S.remove(A))}function l(A){return A=v.extend({},A),v.each(["id","parentId","$action","hv","bounding"].concat(d.LOCATION_PARAMS),function(b){delete A[b]}),A}function r(A,b){var S;return v.each(b,function(E){A[E]!=null&&A[E]!=="auto"&&(S=!0)}),S}function a(A,b){var S=A.exist;if(b.id=A.keyInfo.id,!b.type&&S&&(b.type=S.type),b.parentId==null){var E=b.parentOption;E?b.parentId=E.id:S&&(b.parentId=S.parentId)}b.parentOption=null}function c(A,b,S){var E=v.extend({},S),C=A[b],_=S.$action||"merge";_==="merge"?C?(v.merge(C,E,!0),d.mergeLayoutParam(C,E,{ignoreSize:!0}),d.copyLayoutParams(S,C)):A[b]=E:_==="replace"?A[b]=E:_==="remove"&&(C&&(A[b]=null))}function h(A,b){if(!A)return;A.hv=b.hv=[r(b,["left","right"]),r(b,["top","bottom"])],A.type==="group"&&(A.width==null&&(A.width=b.width=0),A.height==null&&(A.height=b.height=0))}function g(A,b,S){var E=A.eventData;!A.silent&&!A.ignore&&!E&&(E=A.eventData={componentType:"graphic",componentIndex:b.componentIndex,name:A.name}),E&&(E.info=A.info)}},f3JH:function(R,D,n){n("aTJb"),n("OlYY"),n("fc+c"),n("oY9F"),n("MqEG"),n("LBfv"),n("noeP")},f5HG:function(R,D,n){var y=n("IwbS"),f=n("QBsz"),x=y.Line.prototype,v=y.BezierCurve.prototype;function m(d){return isNaN(+d.cpx1)||isNaN(+d.cpy1)}var p=y.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(d,u){this[m(u)?"_buildPathLine":"_buildPathCurve"](d,u)},_buildPathLine:x.buildPath,_buildPathCurve:v.buildPath,pointAt:function(d){return this[m(this.shape)?"_pointAtLine":"_pointAtCurve"](d)},_pointAtLine:x.pointAt,_pointAtCurve:v.pointAt,tangentAt:function(d){var u=this.shape,s=m(u)?[u.x2-u.x1,u.y2-u.y1]:this._tangentAtCurve(d);return f.normalize(s,s)},_tangentAtCurve:v.tangentAt});R.exports=p},f5Yq:function(R,D,n){var y=n("bYtY"),f=y.isFunction;function x(v,m,p){return{seriesType:v,performRawSeries:!0,reset:function(d,u,s){var i=d.getData(),t=d.get("symbol"),o=d.get("symbolSize"),e=d.get("symbolKeepAspect"),l=d.get("symbolRotate"),r=f(t),a=f(o),c=f(l),h=r||a||c,g=!r&&t?t:m,A=a?null:o,b=c?null:b;if(i.setVisual({legendSymbol:p||g,symbol:g,symbolSize:A,symbolKeepAspect:e,symbolRotate:l}),u.isSeriesFiltered(d))return;function S(E,C){if(h){var _=d.getRawValue(C),T=d.getDataParams(C);r&&E.setItemVisual(C,"symbol",t(_,T)),a&&E.setItemVisual(C,"symbolSize",o(_,T)),c&&E.setItemVisual(C,"symbolRotate",l(_,T))}if(E.hasItemOption){var w=E.getItemModel(C),O=w.getShallow("symbol",!0),I=w.getShallow("symbolSize",!0),k=w.getShallow("symbolRotate",!0),M=w.getShallow("symbolKeepAspect",!0);O!=null&&E.setItemVisual(C,"symbol",O),I!=null&&E.setItemVisual(C,"symbolSize",I),k!=null&&E.setItemVisual(C,"symbolRotate",k),M!=null&&E.setItemVisual(C,"symbolKeepAspect",M)}}return{dataEach:i.hasItemOption||h?S:null}}}}R.exports=x},fE02:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("/IIm"),v=n("vZ6x"),m=n("b9oc"),p=n("72pK"),d=n("Kagy"),u=n("IUWy");n("3TkU");var s=d.toolbox.dataZoom,i=f.each,t="\0_ec_\0toolbox-dataZoom_";function o(g,A,b){(this._brushController=new x(b.getZr())).on("brush",f.bind(this._onBrush,this)).mount(),this._isZoomActive}o.defaultOption={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:f.clone(s.title)};var e=o.prototype;e.render=function(g,A,b,S){this.model=g,this.ecModel=A,this.api=b,c(g,A,this,S,b),a(g,A)},e.onclick=function(g,A,b){l[b].call(this)},e.remove=function(g,A){this._brushController.unmount()},e.dispose=function(g,A){this._brushController.dispose()};var l={zoom:function(){var g=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:g})},back:function(){this._dispatchZoomAction(m.pop(this.ecModel))}};e._onBrush=function(g,A){if(!A.isEnd||!g.length)return;var b={},S=this.ecModel;this._brushController.updateCovers([]);var E=new v(r(this.model.option),S,{include:["grid"]});E.matchOutputRanges(g,S,function(T,w,O){if(O.type!=="cartesian2d")return;var I=T.brushType;I==="rect"?(C("x",O,w[0]),C("y",O,w[1])):C({lineX:"x",lineY:"y"}[I],O,w)}),m.push(S,b),this._dispatchZoomAction(b);function C(T,w,O){var I=w.getAxis(T),k=I.model,M=_(T,k,S),j=M.findRepresentativeAxisProxy(k).getMinMaxSpan();(j.minValueSpan!=null||j.maxValueSpan!=null)&&(O=p(0,O.slice(),I.scale.getExtent(),0,j.minValueSpan,j.maxValueSpan)),M&&(b[M.id]={dataZoomId:M.id,startValue:O[0],endValue:O[1]})}function _(T,w,O){var I;return O.eachComponent({mainType:"dataZoom",subType:"select"},function(k){var M=k.getAxisModel(T,w.componentIndex);M&&(I=k)}),I}},e._dispatchZoomAction=function(g){var A=[];i(g,function(b,S){A.push(f.clone(b))}),A.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:A})};function r(g){var A={};return f.each(["xAxisIndex","yAxisIndex"],function(b){A[b]=g[b],A[b]==null&&(A[b]="all"),(A[b]===!1||A[b]==="none")&&(A[b]=[])}),A}function a(g,A){g.setIconStatus("back",m.count(A)>1?"emphasis":"normal")}function c(g,A,b,S,E){var C=b._isZoomActive;S&&S.type==="takeGlobalCursor"&&(C=S.key==="dataZoomSelect"?S.dataZoomSelectActive:!1),b._isZoomActive=C,g.setIconStatus("zoom",C?"emphasis":"normal");var _=new v(r(g.option),A,{include:["grid"]});b._brushController.setPanels(_.makePanelOpts(E,function(T){return T.xAxisDeclared&&!T.yAxisDeclared?"lineX":!T.xAxisDeclared&&T.yAxisDeclared?"lineY":"rect"})).enableBrush(C?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}u.register("dataZoom",o),y.registerPreprocessor(function(g){if(!g)return;var A=g.dataZoom||(g.dataZoom=[]);f.isArray(A)||(g.dataZoom=A=[A]);var b=g.toolbox;if(b&&(f.isArray(b)&&(b=b[0]),b&&b.feature)){var S=b.feature.dataZoom;E("xAxis",S),E("yAxis",S)}function E(_,T){if(!T)return;var w=_+"Index",O=T[w];O!=null&&O!=="all"&&!f.isArray(O)&&(O=O===!1||O==="none"?[]:[O]),C(_,function(I,k){if(O!=null&&O!=="all"&&f.indexOf(O,k)===-1)return;var M={type:"select",$fromToolbox:!0,filterMode:T.filterMode||"filter",id:t+_+k};M[w]=k,A.push(M)})}function C(_,T){var w=g[_];f.isArray(w)||(w=w?[w]:[]),i(w,T)}});var h=o;R.exports=h},fGT3:function(R,D,n){var y=n("4kuk"),f=n("Xi7e"),x=n("ebwN");function v(){this.size=0,this.__data__={hash:new y,map:new(x||f),string:new y}}R.exports=v},fNCr:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("tSko"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},"fR/l":function(R,D,n){var y=n("CH3K"),f=n("Z0cm");function x(v,m,p){var d=m(v);return f(v)?d:y(d,p(v))}R.exports=x},fUL4:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("r+aA"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},fW2E:function(R,D){var n={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function y(f,x,v){return n.hasOwnProperty(x)?v*=f.dpr:v}R.exports=y},"fc+c":function(R,D,n){var y=n("sS/r"),f=y.extend({type:"dataZoom",render:function(x,v,m,p){this.dataZoomModel=x,this.ecModel=v,this.api=m},getTargetCoordInfo:function(){var x=this.dataZoomModel,v=this.ecModel,m={};x.eachTargetAxis(function(d,u){var s=v.getComponent(d.axis,u);if(s){var i=s.getCoordSysModel();i&&p(i,s,m[i.mainType]||(m[i.mainType]=[]),i.componentIndex)}},this);function p(d,u,s,i){for(var t,o=0;o<s.length;o++)if(s[o].model===d){t=s[o];break}t||s.push(t={model:d,axisModels:[],coordIndex:i}),t.axisModels.push(u)}return m}});R.exports=f},fjKi:function(R,D,n){var y=n("ProS");n("Q7if"),n("jndi"),y.registerPreprocessor(function(f){f.markArea=f.markArea||{}})},fls0:function(R,D,n){var y=n("bYtY"),f=n("QBsz"),x=n("oVpE"),v=n("f5HG"),m=n("IwbS"),p=n("OELB"),d=p.round,u=["fromSymbol","toSymbol"];function s(c){return"_"+c+"Type"}function i(c,h,g){var A=h.getItemVisual(g,"color"),b=h.getItemVisual(g,c),S=h.getItemVisual(g,c+"Size");if(!b||b==="none")return;y.isArray(S)||(S=[S,S]);var E=x.createSymbol(b,-S[0]/2,-S[1]/2,S[0],S[1],A);return E.name=c,E}function t(c){var h=new v({name:"line",subPixelOptimize:!0});return o(h.shape,c),h}function o(c,h){c.x1=h[0][0],c.y1=h[0][1],c.x2=h[1][0],c.y2=h[1][1],c.percent=1;var g=h[2];g?(c.cpx1=g[0],c.cpy1=g[1]):(c.cpx1=NaN,c.cpy1=NaN)}function e(){var c=this,h=c.childOfName("fromSymbol"),g=c.childOfName("toSymbol"),A=c.childOfName("label");if(!h&&!g&&A.ignore)return;for(var b=1,S=this.parent;S;)S.scale&&(b/=S.scale[0]),S=S.parent;var E=c.childOfName("line");if(!this.__dirty&&!E.__dirty)return;var C=E.shape.percent,_=E.pointAt(0),T=E.pointAt(C),w=f.sub([],T,_);if(f.normalize(w,w),h){h.attr("position",_);var O=E.tangentAt(0);h.attr("rotation",Math.PI/2-Math.atan2(O[1],O[0])),h.attr("scale",[b*C,b*C])}if(g){g.attr("position",T);var O=E.tangentAt(1);g.attr("rotation",-Math.PI/2-Math.atan2(O[1],O[0])),g.attr("scale",[b*C,b*C])}if(!A.ignore){A.attr("position",T);var I,k,M,j,P=A.__labelDistance,X=P[0]*b,F=P[1]*b,U=C/2,O=E.tangentAt(U),K=[O[1],-O[0]],z=E.pointAt(U);K[1]>0&&(K[0]=-K[0],K[1]=-K[1]);var V=O[0]<0?-1:1;if(A.__position!=="start"&&A.__position!=="end"){var Q=-Math.atan2(O[1],O[0]);T[0]<_[0]&&(Q=Math.PI+Q),A.attr("rotation",Q)}var G;switch(A.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":G=-F,M="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":G=F,M="top";break;default:G=0,M="middle"}switch(A.__position){case"end":I=[w[0]*X+T[0],w[1]*F+T[1]],k=w[0]>.8?"left":w[0]<-.8?"right":"center",M=w[1]>.8?"top":w[1]<-.8?"bottom":"middle";break;case"start":I=[-w[0]*X+_[0],-w[1]*F+_[1]],k=w[0]>.8?"right":w[0]<-.8?"left":"center",M=w[1]>.8?"bottom":w[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":I=[X*V+_[0],_[1]+G],k=O[0]<0?"right":"left",j=[-X*V,-G];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":I=[z[0],z[1]+G],k="center",j=[0,-G];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":I=[-X*V+T[0],T[1]+G],k=O[0]>=0?"right":"left",j=[X*V,-G];break}A.attr({style:{textVerticalAlign:A.__verticalAlign||M,textAlign:A.__textAlign||k},position:I,scale:[b,b],origin:j})}}function l(c,h,g){m.Group.call(this),this._createLine(c,h,g)}var r=l.prototype;r.beforeUpdate=e,r._createLine=function(c,h,g){var A=c.hostModel,b=c.getItemLayout(h),S=t(b);S.shape.percent=0,m.initProps(S,{shape:{percent:1}},A,h),this.add(S);var E=new m.Text({name:"label",lineLabelOriginalOpacity:1});this.add(E),y.each(u,function(C){var _=i(C,c,h);this.add(_),this[s(C)]=c.getItemVisual(h,C)},this),this._updateCommonStl(c,h,g)},r.updateData=function(c,h,g){var A=c.hostModel,b=this.childOfName("line"),S=c.getItemLayout(h),E={shape:{}};o(E.shape,S),m.updateProps(b,E,A,h),y.each(u,function(C){var _=c.getItemVisual(h,C),T=s(C);if(this[T]!==_){this.remove(this.childOfName(C));var w=i(C,c,h);this.add(w)}this[T]=_},this),this._updateCommonStl(c,h,g)},r._updateCommonStl=function(c,h,g){var A=c.hostModel,b=this.childOfName("line"),S=g&&g.lineStyle,E=g&&g.hoverLineStyle,C=g&&g.labelModel,_=g&&g.hoverLabelModel;if(!g||c.hasItemOption){var T=c.getItemModel(h);S=T.getModel("lineStyle").getLineStyle(),E=T.getModel("emphasis.lineStyle").getLineStyle(),C=T.getModel("label"),_=T.getModel("emphasis.label")}var w=c.getItemVisual(h,"color"),O=y.retrieve3(c.getItemVisual(h,"opacity"),S.opacity,1);b.useStyle(y.defaults({strokeNoScale:!0,fill:"none",stroke:w,opacity:O},S)),b.hoverStyle=E,y.each(u,function(V){var Q=this.childOfName(V);Q&&(Q.setColor(w),Q.setStyle({opacity:O}))},this);var I=C.getShallow("show"),k=_.getShallow("show"),M=this.childOfName("label"),j,P;if((I||k)&&(j=w||"#000",P=A.getFormattedLabel(h,"normal",c.dataType),P==null)){var X=A.getRawValue(h);P=X==null?c.getName(h):isFinite(X)?d(X):X}var F=I?P:null,U=k?y.retrieve2(A.getFormattedLabel(h,"emphasis",c.dataType),P):null,K=M.style;if(F!=null||U!=null){m.setTextStyle(M.style,C,{text:F},{autoColor:j}),M.__textAlign=K.textAlign,M.__verticalAlign=K.textVerticalAlign,M.__position=C.get("position")||"middle";var z=C.get("distance");y.isArray(z)||(z=[z,z]),M.__labelDistance=z}U!=null?M.hoverStyle={text:U,textFill:_.getTextColor(!0),fontStyle:_.getShallow("fontStyle"),fontWeight:_.getShallow("fontWeight"),fontSize:_.getShallow("fontSize"),fontFamily:_.getShallow("fontFamily")}:M.hoverStyle={text:null},M.ignore=!I&&!k,m.setHoverStyle(this)},r.highlight=function(){this.trigger("emphasis")},r.downplay=function(){this.trigger("normal")},r.updateLayout=function(c,h){this.setLinePoints(c.getItemLayout(h))},r.setLinePoints=function(c){var h=this.childOfName("line");o(h.shape,c),h.dirty()},y.inherits(l,m.Group);var a=l;R.exports=a},fmMI:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("bYtY"),v=x.each,m=x.filter,p=x.map,d=x.isArray,u=x.indexOf,s=x.isObject,i=x.isString,t=x.createHashMap,o=x.assert,e=x.clone,l=x.merge,r=x.extend,a=x.mixin,c=n("4NO4"),h=n("Qxkt"),g=n("bLfw"),A=n("iXHM"),b=n("5Hur"),S=n("D5nY"),E=S.resetSourceDefaulter,C="\0_ec_inner",_=h.extend({init:function(F,U,K,z){K=K||{},this.option=null,this._theme=new h(K),this._optionManager=z},setOption:function(F,U){o(!(C in F),"please use chart.getOption()"),this._optionManager.setOption(F,U),this.resetOption(null)},resetOption:function(F){var U=!1,K=this._optionManager;if(!F||F==="recreate"){var z=K.mountOption(F==="recreate");!this.option||F==="recreate"?O.call(this,z):(this.restoreData(),this.mergeOption(z)),U=!0}if((F==="timeline"||F==="media")&&this.restoreData(),!F||F==="recreate"||F==="timeline"){var V=K.getTimelineOption(this);V&&(this.mergeOption(V),U=!0)}if(!F||F==="recreate"||F==="media"){var Q=K.getMediaOption(this,this._api);Q.length&&v(Q,function(G){this.mergeOption(G,U=!0)},this)}return U},mergeOption:function(F){var U=this.option,K=this._componentsMap,z=[];E(this),v(F,function(Q,G){if(Q==null)return;g.hasClass(G)?G&&z.push(G):U[G]=U[G]==null?e(Q):l(U[G],Q,!0)}),g.topologicalTravel(z,g.getAllClassMainTypes(),V,this);function V(Q,G){var te=c.normalizeToArray(F[Q]),q=c.mappingToExists(K.get(Q),te);c.makeIdAndName(q),v(q,function(re,xe){var Oe=re.option;s(Oe)&&(re.keyInfo.mainType=Q,re.keyInfo.subType=k(Q,Oe,re.exist))});var se=I(K,G);U[Q]=[],K.set(Q,[]),v(q,function(re,xe){var Oe=re.exist,Me=re.option;if(o(s(Me)||Oe,"Empty component definition"),!Me)Oe.mergeOption({},this),Oe.optionUpdated({},!1);else{var Qe=g.getClass(Q,re.keyInfo.subType,!0);if(Oe&&Oe.constructor===Qe)Oe.name=re.keyInfo.name,Oe.mergeOption(Me,this),Oe.optionUpdated(Me,!1);else{var Ve=r({dependentModels:se,componentIndex:xe},re.keyInfo);Oe=new Qe(Me,this,this,Ve),r(Oe,Ve),Oe.init(Me,this,this,Ve),Oe.optionUpdated(null,!0)}}K.get(Q)[xe]=Oe,U[Q][xe]=Oe.option},this),Q==="series"&&M(this,K.get("series"))}this._seriesIndicesMap=t(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var F=e(this.option);return v(F,function(U,K){if(g.hasClass(K)){for(var U=c.normalizeToArray(U),z=U.length-1;z>=0;z--)c.isIdInner(U[z])&&U.splice(z,1);F[K]=U}}),delete F[C],F},getTheme:function(){return this._theme},getComponent:function(F,U){var K=this._componentsMap.get(F);if(K)return K[U||0]},queryComponents:function(F){var U=F.mainType;if(!U)return[];var K=F.index,z=F.id,V=F.name,Q=this._componentsMap.get(U);if(!Q||!Q.length)return[];var G;if(K!=null)d(K)||(K=[K]),G=m(p(K,function(se){return Q[se]}),function(se){return!!se});else if(z!=null){var te=d(z);G=m(Q,function(se){return te&&u(z,se.id)>=0||!te&&se.id===z})}else if(V!=null){var q=d(V);G=m(Q,function(se){return q&&u(V,se.name)>=0||!q&&se.name===V})}else G=Q.slice();return j(G,F)},findComponents:function(F){var U=F.query,K=F.mainType,z=Q(U),V=z?this.queryComponents(z):this._componentsMap.get(K);return G(j(V,F));function Q(te){var q=K+"Index",se=K+"Id",re=K+"Name";return te&&(te[q]!=null||te[se]!=null||te[re]!=null)?{mainType:K,index:te[q],id:te[se],name:te[re]}:null}function G(te){return F.filter?m(te,F.filter):te}},eachComponent:function(F,U,K){var z=this._componentsMap;if(typeof F=="function")K=U,U=F,z.each(function(Q,G){v(Q,function(te,q){U.call(K,G,te,q)})});else if(i(F))v(z.get(F),U,K);else if(s(F)){var V=this.findComponents(F);v(V,U,K)}},getSeriesByName:function(F){var U=this._componentsMap.get("series");return m(U,function(K){return K.name===F})},getSeriesByIndex:function(F){return this._componentsMap.get("series")[F]},getSeriesByType:function(F){var U=this._componentsMap.get("series");return m(U,function(K){return K.subType===F})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(F,U){P(this),v(this._seriesIndices,function(K){var z=this._componentsMap.get("series")[K];F.call(U,z,K)},this)},eachRawSeries:function(F,U){v(this._componentsMap.get("series"),F,U)},eachSeriesByType:function(F,U,K){P(this),v(this._seriesIndices,function(z){var V=this._componentsMap.get("series")[z];V.subType===F&&U.call(K,V,z)},this)},eachRawSeriesByType:function(F,U,K){return v(this.getSeriesByType(F),U,K)},isSeriesFiltered:function(F){return P(this),this._seriesIndicesMap.get(F.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(F,U){P(this);var K=m(this._componentsMap.get("series"),F,U);M(this,K)},restoreData:function(F){var U=this._componentsMap;M(this,U.get("series"));var K=[];U.each(function(z,V){K.push(V)}),g.topologicalTravel(K,g.getAllClassMainTypes(),function(z,V){v(U.get(z),function(Q){(z!=="series"||!T(Q,F))&&Q.restoreData()})})}});function T(F,U){if(U){var K=U.seiresIndex,z=U.seriesId,V=U.seriesName;return K!=null&&F.componentIndex!==K||z!=null&&F.id!==z||V!=null&&F.name!==V}}function w(F,U){var K=F.color&&!F.colorLayer;v(U,function(z,V){if(V==="colorLayer"&&K)return;g.hasClass(V)||(typeof z=="object"?F[V]=F[V]?l(F[V],z,!1):e(z):F[V]==null&&(F[V]=z))})}function O(F){F=F,this.option={},this.option[C]=1,this._componentsMap=t({series:[]}),this._seriesIndices,this._seriesIndicesMap,w(F,this._theme.option),l(F,A,!1),this.mergeOption(F)}function I(F,U){d(U)||(U=U?[U]:[]);var K={};return v(U,function(z){K[z]=(F.get(z)||[]).slice()}),K}function k(F,U,K){var z=U.type?U.type:K?K.subType:g.determineSubType(F,U);return z}function M(F,U){F._seriesIndicesMap=t(F._seriesIndices=p(U,function(K){return K.componentIndex})||[])}function j(F,U){return U.hasOwnProperty("subType")?m(F,function(K){return K.subType===U.subType}):F}function P(F){}a(_,b);var X=_;R.exports=X},fmRc:function(R,D,n){var y=n("Xi7e"),f=n("77Zs"),x=n("L8xA"),v=n("gCq4"),m=n("VaNO"),p=n("0Cz8");function d(u){var s=this.__data__=new y(u);this.size=s.size}d.prototype.clear=f,d.prototype.delete=x,d.prototype.get=v,d.prototype.has=m,d.prototype.set=p,R.exports=d},ftKO:function(R,D){var n="__lodash_hash_undefined__";function y(f){return this.__data__.set(f,n),this}R.exports=y},fyUT:function(R,D,n){"use strict";var y=n("pVnL"),f=n.n(y),x=n("lSNA"),v=n.n(x),m=n("q1tI"),p=n.n(m),d=n("TSYQ"),u=n.n(d),s=n("Ff2n"),i=n("rePB"),t=n("1OyB"),o=n("vuIU"),e=n("Ji7U"),l=n("md7G"),r=n("foSv"),a=n("4IlW");function c(G,te){var q=Object.keys(G);if(Object.getOwnPropertySymbols){var se=Object.getOwnPropertySymbols(G);te&&(se=se.filter(function(re){return Object.getOwnPropertyDescriptor(G,re).enumerable})),q.push.apply(q,se)}return q}function h(G){for(var te=1;te<arguments.length;te++){var q=arguments[te]!=null?arguments[te]:{};te%2?c(Object(q),!0).forEach(function(se){Object(i.a)(G,se,q[se])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(q)):c(Object(q)).forEach(function(se){Object.defineProperty(G,se,Object.getOwnPropertyDescriptor(q,se))})}return G}function g(G){var te=A();return function(){var se=Object(r.a)(G),re;if(te){var xe=Object(r.a)(this).constructor;re=Reflect.construct(se,arguments,xe)}else re=se.apply(this,arguments);return Object(l.a)(this,re)}}function A(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(G){return!1}}function b(){}function S(G){G.preventDefault()}var E=function(te){return te.replace(/[^\w.-]+/g,"")},C=200,_=600,T=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,w=function(te){return te!=null},O=function(te,q){return q===te||typeof q=="number"&&typeof te=="number"&&isNaN(q)&&isNaN(te)},I=function(G){Object(e.a)(q,G);var te=g(q);function q(se){var re;Object(t.a)(this,q),re=te.call(this,se),re.onKeyDown=function(Me){var Qe=re.props,Ve=Qe.onKeyDown,ut=Qe.onPressEnter;if(Me.keyCode===a.a.UP){var Fe=re.getRatio(Me);re.up(Me,Fe,null),re.stop()}else if(Me.keyCode===a.a.DOWN){var ue=re.getRatio(Me);re.down(Me,ue,null),re.stop()}else Me.keyCode===a.a.ENTER&&ut&&ut(Me);if(re.recordCursorPosition(),re.lastKeyCode=Me.keyCode,Ve){for(var et=arguments.length,he=new Array(et>1?et-1:0),J=1;J<et;J++)he[J-1]=arguments[J];Ve.apply(void 0,[Me].concat(he))}},re.onKeyUp=function(Me){var Qe=re.props.onKeyUp;if(re.stop(),re.recordCursorPosition(),Qe){for(var Ve=arguments.length,ut=new Array(Ve>1?Ve-1:0),Fe=1;Fe<Ve;Fe++)ut[Fe-1]=arguments[Fe];Qe.apply(void 0,[Me].concat(ut))}},re.onChange=function(Me){var Qe=re.props.onChange;re.state.focused&&(re.inputting=!0),re.rawInput=re.props.parser(re.getValueFromEvent(Me)),re.setState({inputValue:re.rawInput}),Qe(re.toNumber(re.rawInput))},re.onMouseUp=function(){var Me=re.props.onMouseUp;re.recordCursorPosition(),Me&&Me.apply(void 0,arguments)},re.onFocus=function(){var Me;re.setState({focused:!0}),(Me=re.props).onFocus.apply(Me,arguments)},re.onBlur=function(){var Me=re.props.onBlur;re.inputting=!1,re.setState({focused:!1});var Qe=re.getCurrentValidValue(re.state.inputValue),Ve=re.setValue(Qe,b);if(Me){var ut=re.input.value,Fe=re.getInputDisplayValue({focus:!1,value:Ve});re.input.value=Fe&&Number(Fe),Me.apply(void 0,arguments),re.input.value=ut}},re.getRatio=function(Me){var Qe=1;return Me.metaKey||Me.ctrlKey?Qe=.1:Me.shiftKey&&(Qe=10),Qe},re.getFullNum=function(Me){return isNaN(Me)?Me:/e/i.test(String(Me))?Number(Me).toFixed(18).replace(/\.?0+$/,""):Me},re.getPrecision=function(Me){if(w(re.props.precision))return re.props.precision;var Qe=String(Me);if(Qe.indexOf("e-")>=0)return parseInt(Qe.slice(Qe.indexOf("e-")+2),10);var Ve=0;return Qe.indexOf(".")>=0&&(Ve=Qe.length-Qe.indexOf(".")-1),Ve},re.getInputDisplayValue=function(Me){var Qe=Me||re.state,Ve=Qe.focused,ut=Qe.inputValue,Fe=Qe.value,ue;Ve?ue=ut:ue=re.toPrecisionAsStep(Fe),ue==null&&(ue="");var et=re.formatWrapper(ue);return w(re.props.decimalSeparator)&&(et=et.toString().replace(".",re.props.decimalSeparator)),et},re.recordCursorPosition=function(){try{re.cursorStart=re.input.selectionStart,re.cursorEnd=re.input.selectionEnd,re.currentValue=re.input.value,re.cursorBefore=re.input.value.substring(0,re.cursorStart),re.cursorAfter=re.input.value.substring(re.cursorEnd)}catch(Me){}},re.restoreByAfter=function(Me){if(Me===void 0)return!1;var Qe=re.input.value,Ve=Qe.lastIndexOf(Me);if(Ve===-1)return!1;var ut=re.cursorBefore.length;return re.lastKeyCode===a.a.DELETE&&re.cursorBefore.charAt(ut-1)===Me[0]?(re.fixCaret(ut,ut),!0):Ve+Me.length===Qe.length?(re.fixCaret(Ve,Ve),!0):!1},re.partRestoreByAfter=function(Me){return Me===void 0?!1:Array.prototype.some.call(Me,function(Qe,Ve){var ut=Me.substring(Ve);return re.restoreByAfter(ut)})},re.isNotCompleteNumber=function(Me){return isNaN(Me)||Me===""||Me===null||Me&&Me.toString().indexOf(".")===Me.toString().length-1},re.stop=function(){re.autoStepTimer&&clearTimeout(re.autoStepTimer)},re.down=function(Me,Qe,Ve){re.pressingUpOrDown=!0,re.step("down",Me,Qe,Ve)},re.up=function(Me,Qe,Ve){re.pressingUpOrDown=!0,re.step("up",Me,Qe,Ve)},re.saveInput=function(Me){re.input=Me};var xe=se.value;xe===void 0&&(xe=se.defaultValue),re.state={focused:se.autoFocus};var Oe=re.getValidValue(re.toNumber(xe));return re.state=h(h({},re.state),{},{inputValue:re.toPrecisionAsStep(Oe),value:Oe}),re}return Object(o.a)(q,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(re){var xe=this.props,Oe=xe.value,Me=xe.onChange,Qe=xe.max,Ve=xe.min,ut=this.state.focused;if(re){if(!O(re.value,Oe)||!O(re.max,Qe)||!O(re.min,Ve)){var Fe=ut?Oe:this.getValidValue(Oe),ue;this.pressingUpOrDown?ue=Fe:this.inputting?ue=this.rawInput:ue=this.toPrecisionAsStep(Fe),this.setState({value:Fe,inputValue:ue})}var et="value"in this.props?Oe:this.state.value;"max"in this.props&&re.max!==Qe&&typeof et=="number"&&et>Qe&&Me&&Me(Qe),"min"in this.props&&re.min!==Ve&&typeof et=="number"&&et<Ve&&Me&&Me(Ve)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var he=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===a.a.BACKSPACE?he=this.cursorStart-1:this.lastKeyCode===a.a.DELETE&&(he=this.cursorStart):he=this.input.value.length,this.fixCaret(he,he)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case 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(J){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(re){var xe=re;return xe===""?xe="":this.isNotCompleteNumber(parseFloat(xe))?xe=this.state.value:xe=this.getValidValue(xe),this.toNumber(xe)}},{key:"getValueFromEvent",value:function(re){var xe=re.target.value.trim().replace(/。/g,".");return w(this.props.decimalSeparator)&&(xe=xe.replace(this.props.decimalSeparator,".")),xe}},{key:"getValidValue",value:function(re){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,Me=parseFloat(re);return isNaN(Me)?re:(Me<xe&&(Me=xe),Me>Oe&&(Me=Oe),Me)}},{key:"setValue",value:function(re,xe){var Oe=this.props.precision,Me=this.isNotCompleteNumber(parseFloat(re))?null:parseFloat(re),Qe=this.state.value,Ve=Qe===void 0?null:Qe,ut=this.state.inputValue,Fe=ut===void 0?null:ut,ue=typeof Me=="number"?Me.toFixed(Oe):"".concat(Me),et=Me!==Ve||ue!=="".concat(Fe);return"value"in this.props?(Fe=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Fe},xe)):this.setState({value:Me,inputValue:this.toPrecisionAsStep(re)},xe),et&&this.props.onChange(Me),Me}},{key:"getMaxPrecision",value:function(re){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Oe=this.props,Me=Oe.precision,Qe=Oe.step;if(w(Me))return Me;var Ve=this.getPrecision(xe),ut=this.getPrecision(Qe),Fe=this.getPrecision(re);return re?Math.max(Fe,Ve+ut):Ve+ut}},{key:"getPrecisionFactor",value:function(re){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Oe=this.getMaxPrecision(re,xe);return Math.pow(10,Oe)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(re){return this.props.formatter?this.props.formatter(re):re}},{key:"toPrecisionAsStep",value:function(re){if(this.isNotCompleteNumber(re)||re==="")return re;var xe=Math.abs(this.getMaxPrecision(re));return isNaN(xe)?re.toString():Number(re).toFixed(xe)}},{key:"toNumber",value:function(re){var xe=this.props.precision,Oe=this.state.focused,Me=re&&re.length>16&&Oe;return this.isNotCompleteNumber(re)||Me?re:w(xe)?Math.round(re*Math.pow(10,xe))/Math.pow(10,xe):Number(re)}},{key:"upStep",value:function(re,xe){var Oe=this.props.step,Me=this.getPrecisionFactor(re,xe),Qe=Math.abs(this.getMaxPrecision(re,xe)),Ve=((Me*re+Me*Oe*xe)/Me).toFixed(Qe);return this.toNumber(Ve)}},{key:"downStep",value:function(re,xe){var Oe=this.props.step,Me=this.getPrecisionFactor(re,xe),Qe=Math.abs(this.getMaxPrecision(re,xe)),Ve=((Me*re-Me*Oe*xe)/Me).toFixed(Qe);return this.toNumber(Ve)}},{key:"step",value:function(re,xe){var Oe=this,Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Qe=arguments.length>3?arguments[3]:void 0;this.stop(),xe&&(xe.persist(),xe.preventDefault());var Ve=this.props;if(Ve.disabled)return;var ut=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(ut))return;var Fe=this["".concat(re,"Step")](ut,Me),ue=Fe>Ve.max||Fe<Ve.min;if(Fe>Ve.max?Fe=Ve.max:Fe<Ve.min&&(Fe=Ve.min),this.setValue(Fe,null),this.setState({focused:!0},function(){Oe.pressingUpOrDown=!1}),ue)return;this.autoStepTimer=setTimeout(function(){Oe[re](xe,Me,!0)},Qe?C:_)}},{key:"fixCaret",value:function(re,xe){if(re===void 0||xe===void 0||!this.input||!this.input.value)return;try{var Oe=this.input.selectionStart,Me=this.input.selectionEnd;(re!==Oe||xe!==Me)&&this.input.setSelectionRange(re,xe)}catch(Qe){}}},{key:"render",value:function(){var re,xe=this.props,Oe=xe.prefixCls,Me=xe.disabled,Qe=xe.readOnly,Ve=xe.useTouch,ut=xe.autoComplete,Fe=xe.upHandler,ue=xe.downHandler,et=xe.className,he=xe.max,J=xe.min,Y=xe.style,$=xe.title,de=xe.onMouseEnter,be=xe.onMouseLeave,Ce=xe.onMouseOver,Be=xe.onMouseOut,fe=xe.required,we=xe.onClick,Re=xe.tabIndex,rt=xe.type,St=xe.placeholder,ft=xe.id,He=xe.inputMode,er=xe.pattern,ct=xe.step,Kt=xe.maxLength,fr=xe.autoFocus,Gt=xe.name,Pt=xe.onPaste,Xt=xe.onInput,Ge=Object(s.a)(xe,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),pe=this.state,oe=pe.value,lt=pe.focused,qe=u()(Oe,(re={},Object(i.a)(re,et,!!et),Object(i.a)(re,"".concat(Oe,"-disabled"),Me),Object(i.a)(re,"".concat(Oe,"-focused"),lt),re)),ge={};Object.keys(Ge).forEach(function(at){(at.substr(0,5)==="data-"||at.substr(0,5)==="aria-"||at==="role")&&(ge[at]=Ge[at])});var Ht=!Qe&&!Me,vr=this.getInputDisplayValue(null),At=(oe||oe===0)&&(isNaN(oe)||Number(oe)>=he),ir=(oe||oe===0)&&(isNaN(oe)||Number(oe)<=J),lr=At||Me||Qe,dn=ir||Me||Qe,Ft=u()("".concat(Oe,"-handler"),"".concat(Oe,"-handler-up"),Object(i.a)({},"".concat(Oe,"-handler-up-disabled"),lr)),ur=u()("".concat(Oe,"-handler"),"".concat(Oe,"-handler-down"),Object(i.a)({},"".concat(Oe,"-handler-down-disabled"),dn)),Jt=Ve?{onTouchStart:lr?b:this.up,onTouchEnd:this.stop}:{onMouseDown:lr?b:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},pt=Ve?{onTouchStart:dn?b:this.down,onTouchEnd:this.stop}:{onMouseDown:dn?b:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return p.a.createElement("div",{className:qe,style:Y,title:$,onMouseEnter:de,onMouseLeave:be,onMouseOver:Ce,onMouseOut:Be,onFocus:function(){return null},onBlur:function(){return null}},p.a.createElement("div",{className:"".concat(Oe,"-handler-wrap")},p.a.createElement("span",Object.assign({unselectable:"on"},Jt,{role:"button","aria-label":"Increase Value","aria-disabled":lr,className:Ft}),Fe||p.a.createElement("span",{unselectable:"on",className:"".concat(Oe,"-handler-up-inner"),onClick:S})),p.a.createElement("span",Object.assign({unselectable:"on"},pt,{role:"button","aria-label":"Decrease Value","aria-disabled":dn,className:ur}),ue||p.a.createElement("span",{unselectable:"on",className:"".concat(Oe,"-handler-down-inner"),onClick:S}))),p.a.createElement("div",{className:"".concat(Oe,"-input-wrap")},p.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":J,"aria-valuemax":he,"aria-valuenow":oe,required:fe,type:rt,placeholder:St,onPaste:Pt,onClick:we,onMouseUp:this.onMouseUp,className:"".concat(Oe,"-input"),tabIndex:Re,autoComplete:ut,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Ht?this.onKeyDown:b,onKeyUp:Ht?this.onKeyUp:b,autoFocus:fr,maxLength:Kt,readOnly:Qe,disabled:Me,max:he,min:J,step:ct,name:Gt,title:$,id:ft,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(vr),pattern:er,inputMode:He,onInput:Xt},ge))))}}]),q}(p.a.Component);I.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:T,min:-T,step:1,style:{},onChange:b,onKeyDown:b,onPressEnter:b,onFocus:b,onBlur:b,parser:E,required:!1,autoComplete:"off"};var k=I,M=k,j=n("FH2Y"),P=n.n(j),X=n("HQEm"),F=n.n(X),U=n("H84U"),K=n("3Nzz"),z=function(G,te){var q={};for(var se in G)Object.prototype.hasOwnProperty.call(G,se)&&te.indexOf(se)<0&&(q[se]=G[se]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,se=Object.getOwnPropertySymbols(G);re<se.length;re++)te.indexOf(se[re])<0&&Object.prototype.propertyIsEnumerable.call(G,se[re])&&(q[se[re]]=G[se[re]]);return q},V=m.forwardRef(function(G,te){var q=function(re){var xe=re.getPrefixCls,Oe=re.direction,Me=G.className,Qe=G.size,Ve=G.prefixCls,ut=G.readOnly,Fe=z(G,["className","size","prefixCls","readOnly"]),ue=xe("input-number",Ve),et=m.createElement(P.a,{className:"".concat(ue,"-handler-up-inner")}),he=m.createElement(F.a,{className:"".concat(ue,"-handler-down-inner")});return m.createElement(K.b.Consumer,null,function(J){var Y,$=Qe||J,de=u()((Y={},v()(Y,"".concat(ue,"-lg"),$==="large"),v()(Y,"".concat(ue,"-sm"),$==="small"),v()(Y,"".concat(ue,"-rtl"),Oe==="rtl"),v()(Y,"".concat(ue,"-readonly"),ut),Y),Me);return m.createElement(M,f()({ref:te,className:de,upHandler:et,downHandler:he,prefixCls:ue,readOnly:ut},Fe))})};return m.createElement(U.a,null,q)});V.defaultProps={step:1};var Q=D.a=V},g0SD:function(R,D,n){var y=n("bYtY"),f=n("9wZj"),x=n("OELB"),v=n("YXkt"),m=n("kj2x"),p=n("iPDy");function d(i,t,o){var e=t.coordinateSystem;i.each(function(l){var r=i.getItemModel(l),a,c=x.parsePercent(r.get("x"),o.getWidth()),h=x.parsePercent(r.get("y"),o.getHeight());if(!isNaN(c)&&!isNaN(h))a=[c,h];else if(t.getMarkerPosition)a=t.getMarkerPosition(i.getValues(i.dimensions,l));else if(e){var g=i.get(e.dimensions[0],l),A=i.get(e.dimensions[1],l);a=e.dataToPoint([g,A])}isNaN(c)||(a[0]=c),isNaN(h)||(a[1]=h),i.setItemLayout(l,a)})}var u=p.extend({type:"markPoint",updateTransform:function(i,t,o){t.eachSeries(function(e){var l=e.markPointModel;l&&(d(l.getData(),e,o),this.markerGroupMap.get(e.id).updateLayout(l))},this)},renderSeries:function(i,t,o,e){var l=i.coordinateSystem,r=i.id,a=i.getData(),c=this.markerGroupMap,h=c.get(r)||c.set(r,new f),g=s(l,i,t);t.setData(g),d(t.getData(),i,e),g.each(function(A){var b=g.getItemModel(A),S=b.getShallow("symbol"),E=b.getShallow("symbolSize"),C=y.isFunction(S),_=y.isFunction(E);if(C||_){var T=t.getRawValue(A),w=t.getDataParams(A);C&&(S=S(T,w)),_&&(E=E(T,w))}g.setItemVisual(A,{symbol:S,symbolSize:E,color:b.get("itemStyle.color")||a.getVisual("color")})}),h.updateData(g),this.group.add(h.group),g.eachItemGraphicEl(function(A){A.traverse(function(b){b.dataModel=t})}),h.__keep=!0,h.group.silent=t.get("silent")||i.get("silent")}});function s(i,t,o){var e;i?e=y.map(i&&i.dimensions,function(a){var c=t.getData().getDimensionInfo(t.getData().mapDimension(a))||{};return y.defaults({name:a},c)}):e=[{name:"value",type:"float"}];var l=new v(e,o),r=y.map(o.get("data"),y.curry(m.dataTransform,t));return i&&(r=y.filter(r,y.curry(m.dataFilter,i))),l.initData(r,null,i?m.dimValueGetter:function(a){return a.value}),l}R.exports=u},g7p0:function(R,D,n){var y=n("bYtY"),f=n("bLfw"),x=n("+TT/"),v=x.getLayoutParams,m=x.sizeCalculable,p=x.mergeLayoutParam,d=f.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(i,t,o,e){var l=v(i);d.superApply(this,"init",arguments),u(i,l)},mergeOption:function(i,t){d.superApply(this,"mergeOption",arguments),u(this.option,i)}});function u(i,t){var o=i.cellSize;y.isArray(o)?o.length===1&&(o[1]=o[0]):o=i.cellSize=[o,o];var e=y.map([0,1],function(l){return m(t,l)&&(o[l]="auto"),o[l]!=null&&o[l]!=="auto"});p(i,t,{type:"box",ignoreSize:e})}var s=d;R.exports=s},g9YV:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("pED+"),v=n.n(x),m=n("+L6B"),p=n("R9oj"),d=n("7Kak"),u=n("sRBo"),s=n("qVdP"),i=n("T2oS"),t=n("DjyN"),o=n("5Dmo")},gCq4:function(R,D){function n(y){return this.__data__.get(y)}R.exports=n},gIYZ:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={Backspace:"Backspace",AltLeft:"Alt",AltRight:"Alt",CapsLock:"CapsLock",ContextMenu:"ContextMenu",ControlLeft:"Control",ControlRight:"Control",Enter:"Enter",MetaLeft:"Meta",MetaRight:"Meta",ShiftLeft:"Shift",ShiftRight:"Shift",Tab:"Tab",Delete:"Delete",End:"End",Help:"Help",Home:"Home",Insert:"Insert",PageDown:"PageDown",PageUp:"PageUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",NumLock:"NumLock",NumpadBackspace:"Backspace",NumpadClear:"Clear",Escape:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",F13:"F13",F14:"F14",F15:"F15",F16:"F16",F17:"F17",F18:"F18",F19:"F19",F20:"F20",F21:"F21",F22:"F22",F23:"F23",F24:"F24",F25:"F25",F26:"F26",F27:"F27",F28:"F28",F29:"F29",F30:"F30",F31:"F31",F32:"F32",F33:"F33",F34:"F34",F35:"F35",PrintScreen:"PrintScreen",ScrollLock:"ScrollLock",Pause:"Pause",BrowserBack:"BrowserBack",BrowserFavorites:"BrowserFavorites",BrowserForward:"BrowserForward",BrowserHome:"BrowserHome",BrowserRefresh:"BrowserRefresh",BrowserSearch:"BrowserSearch",BrowserStop:"BrowserStop",Eject:"Eject",LaunchApp1:"LaunchMyComputer",LaunchApp2:"LaunchCalendar",LaunchMail:"LaunchMail",MediaPlayPause:"MediaPlay",MediaStop:"MediaStop",MediaTrackNext:"MediaTrackNext",MediaTrackPrevious:"MediaTrackPrevious",Power:"Power",Sleep:"Sleep",AudioVolumeDown:"AudioVolumeDown",AudioVolumeMute:"AudioVolumeMute",AudioVolumeUp:"AudioVolumeUp",WakeUp:"WakeUp"};D.default=y},gKaM:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};D.default=y},gPAo:function(R,D){function n(v){return v}function y(v,m,p,d,u){this._old=v,this._new=m,this._oldKeyGetter=p||n,this._newKeyGetter=d||n,this.context=u}y.prototype={constructor:y,add:function(v){return this._add=v,this},update:function(v){return this._update=v,this},remove:function(v){return this._remove=v,this},execute:function(){var v=this._old,m=this._new,p={},d={},u=[],s=[],i;for(f(v,p,u,"_oldKeyGetter",this),f(m,d,s,"_newKeyGetter",this),i=0;i<v.length;i++){var t=u[i],o=d[t];if(o!=null){var e=o.length;e?(e===1&&(d[t]=null),o=o.shift()):d[t]=null,this._update&&this._update(o,i)}else this._remove&&this._remove(i)}for(var i=0;i<s.length;i++){var t=s[i];if(d.hasOwnProperty(t)){var o=d[t];if(o==null)continue;if(!o.length)this._add&&this._add(o);else for(var l=0,e=o.length;l<e;l++)this._add&&this._add(o[l])}}}};function f(v,m,p,d,u){for(var s=0;s<v.length;s++){var i="_ec_"+u[d](v[s],s),t=m[i];t==null?(p.push(i),m[i]=s):(t.length||(m[i]=t=[t]),t.push(s))}}var x=y;R.exports=x},gRFJ:function(R,D,n){R.exports=[n("rdUC"),n("ynwM"),n("RELg"),n("DlR+"),n("CrYA"),n("PD8m")]},gaXo:function(module,exports){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(R){return R<10?"0"+R:R}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(R){return rx_escapable.lastIndex=0,rx_escapable.test(R)?'"'+R.replace(rx_escapable,function(D){var n=meta[D];return typeof n=="string"?n:"\\u"+("0000"+D.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+R+'"'}function str(R,D){var n,y,f,x,v=gap,m,p=D[R];p&&typeof p=="object"&&typeof p.toJSON=="function"&&(p=p.toJSON(R)),typeof rep=="function"&&(p=rep.call(D,R,p));switch(typeof p){case"string":return quote(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(gap+=indent,m=[],Object.prototype.toString.apply(p)==="[object Array]"){for(x=p.length,n=0;n<x;n+=1)m[n]=str(n,p)||"null";return f=m.length===0?"[]":gap?`[
|
|
|
`+gap+m.join(`,
|
|
|
`+gap)+`
|
|
|
`+v+"]":"["+m.join(",")+"]",gap=v,f}if(rep&&typeof rep=="object")for(x=rep.length,n=0;n<x;n+=1)typeof rep[n]=="string"&&(y=rep[n],f=str(y,p),f&&m.push(quote(y)+(gap?": ":":")+f));else for(y in p)Object.prototype.hasOwnProperty.call(p,y)&&(f=str(y,p),f&&m.push(quote(y)+(gap?": ":":")+f));return f=m.length===0?"{}":gap?`{
|
|
|
`+gap+m.join(`,
|
|
|
`+gap)+`
|
|
|
`+v+"}":"{"+m.join(",")+"}",gap=v,f}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(R,D,n){var y;if(gap="",indent="",typeof n=="number")for(y=0;y<n;y+=1)indent+=" ";else typeof n=="string"&&(indent=n);if(rep=D,D&&typeof D!="function"&&(typeof D!="object"||typeof D.length!="number"))throw new Error("JSON.stringify");return str("",{"":R})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(R,D){var n,y,f=R[D];if(f&&typeof f=="object")for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(y=walk(f,n),y!==void 0?f[n]=y:delete f[n]);return reviver.call(R,D,f)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(R){return"\\u"+("0000"+R.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},gawk:function(R,D,n){var y=n("+TT/"),f=n("bYtY"),x=n("4NO4"),v=x.groupData;function m(O,I,k){O.eachSeriesByType("sankey",function(M){var j=M.get("nodeWidth"),P=M.get("nodeGap"),X=p(M,I);M.layoutInfo=X;var F=X.width,U=X.height,K=M.getGraph(),z=K.nodes,V=K.edges;u(z);var Q=f.filter(z,function(se){return se.getLayout().value===0}),G=Q.length!==0?0:M.get("layoutIterations"),te=M.get("orient"),q=M.get("nodeAlign");d(z,V,j,P,F,U,G,te,q)})}function p(O,I){return y.getLayoutRect(O.getBoxLayoutParams(),{width:I.getWidth(),height:I.getHeight()})}function d(O,I,k,M,j,P,X,F,U){s(O,I,k,j,P,F,U),l(O,I,P,j,M,X,F),w(O,F)}function u(O){f.each(O,function(I){var k=_(I.outEdges,C),M=_(I.inEdges,C),j=I.getValue()||0,P=Math.max(k,M,j);I.setLayout({value:P},!0)})}function s(O,I,k,M,j,P,X){for(var F=[],U=[],K=[],z=[],V=0,Q=0,G=0;G<I.length;G++)F[G]=1;for(G=0;G<O.length;G++)U[G]=O[G].inEdges.length,U[G]===0&&K.push(O[G]);for(var te=-1;K.length;){for(var q=0;q<K.length;q++){var se=K[q],re=se.hostGraph.data.getRawDataItem(se.dataIndex),xe=re.depth!=null&&re.depth>=0;xe&&re.depth>te&&(te=re.depth),se.setLayout({depth:xe?re.depth:V},!0),P==="vertical"?se.setLayout({dy:k},!0):se.setLayout({dx:k},!0);for(var Oe=0;Oe<se.outEdges.length;Oe++){var Me=se.outEdges[Oe],Qe=I.indexOf(Me);F[Qe]=0;var Ve=Me.node2,ut=O.indexOf(Ve);--U[ut]===0&&z.indexOf(Ve)<0&&z.push(Ve)}}++V,K=z,z=[]}for(G=0;G<F.length;G++)if(F[G]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var Fe=te>V-1?te:V-1;X&&X!=="left"&&t(O,X,P,Fe);var Q=P==="vertical"?(j-k)/Fe:(M-k)/Fe;e(O,Q,P)}function i(O){var I=O.hostGraph.data.getRawDataItem(O.dataIndex);return I.depth!=null&&I.depth>=0}function t(O,I,k,M){if(I==="right"){for(var j=[],P=O,X=0;P.length;){for(var F=0;F<P.length;F++){var U=P[F];U.setLayout({skNodeHeight:X},!0);for(var K=0;K<U.inEdges.length;K++){var z=U.inEdges[K];j.indexOf(z.node1)<0&&j.push(z.node1)}}P=j,j=[],++X}f.each(O,function(V){i(V)||V.setLayout({depth:Math.max(0,M-V.getLayout().skNodeHeight)},!0)})}else I==="justify"&&o(O,M)}function o(O,I){f.each(O,function(k){!i(k)&&!k.outEdges.length&&k.setLayout({depth:I},!0)})}function e(O,I,k){f.each(O,function(M){var j=M.getLayout().depth*I;k==="vertical"?M.setLayout({y:j},!0):M.setLayout({x:j},!0)})}function l(O,I,k,M,j,P,X){var F=r(O,X);a(F,I,k,M,j,X),c(F,j,k,M,X);for(var U=1;P>0;P--)U*=.99,h(F,U,X),c(F,j,k,M,X),T(F,U,X),c(F,j,k,M,X)}function r(O,I){var k=[],M=I==="vertical"?"y":"x",j=v(O,function(P){return P.getLayout()[M]});return j.keys.sort(function(P,X){return P-X}),f.each(j.keys,function(P){k.push(j.buckets.get(P))}),k}function a(O,I,k,M,j,P){var X=Infinity;f.each(O,function(F){var U=F.length,K=0;f.each(F,function(V){K+=V.getLayout().value});var z=P==="vertical"?(M-(U-1)*j)/K:(k-(U-1)*j)/K;z<X&&(X=z)}),f.each(O,function(F){f.each(F,function(U,K){var z=U.getLayout().value*X;P==="vertical"?(U.setLayout({x:K},!0),U.setLayout({dx:z},!0)):(U.setLayout({y:K},!0),U.setLayout({dy:z},!0))})}),f.each(I,function(F){var U=+F.getValue()*X;F.setLayout({dy:U},!0)})}function c(O,I,k,M,j){var P=j==="vertical"?"x":"y";f.each(O,function(X){X.sort(function(q,se){return q.getLayout()[P]-se.getLayout()[P]});for(var F,U,K,z=0,V=X.length,Q=j==="vertical"?"dx":"dy",G=0;G<V;G++)U=X[G],K=z-U.getLayout()[P],K>0&&(F=U.getLayout()[P]+K,j==="vertical"?U.setLayout({x:F},!0):U.setLayout({y:F},!0)),z=U.getLayout()[P]+U.getLayout()[Q]+I;var te=j==="vertical"?M:k;if(K=z-I-te,K>0)for(F=U.getLayout()[P]-K,j==="vertical"?U.setLayout({x:F},!0):U.setLayout({y:F},!0),z=F,G=V-2;G>=0;--G)U=X[G],K=U.getLayout()[P]+U.getLayout()[Q]+I-z,K>0&&(F=U.getLayout()[P]-K,j==="vertical"?U.setLayout({x:F},!0):U.setLayout({y:F},!0)),z=U.getLayout()[P]})}function h(O,I,k){f.each(O.slice().reverse(),function(M){f.each(M,function(j){if(j.outEdges.length){var P=_(j.outEdges,g,k)/_(j.outEdges,C,k);if(isNaN(P)){var X=j.outEdges.length;P=X?_(j.outEdges,A,k)/X:0}if(k==="vertical"){var F=j.getLayout().x+(P-E(j,k))*I;j.setLayout({x:F},!0)}else{var U=j.getLayout().y+(P-E(j,k))*I;j.setLayout({y:U},!0)}}})})}function g(O,I){return E(O.node2,I)*O.getValue()}function A(O,I){return E(O.node2,I)}function b(O,I){return E(O.node1,I)*O.getValue()}function S(O,I){return E(O.node1,I)}function E(O,I){return I==="vertical"?O.getLayout().x+O.getLayout().dx/2:O.getLayout().y+O.getLayout().dy/2}function C(O){return O.getValue()}function _(O,I,k){for(var M=0,j=O.length,P=-1;++P<j;){var X=+I.call(O,O[P],k);isNaN(X)||(M+=X)}return M}function T(O,I,k){f.each(O,function(M){f.each(M,function(j){if(j.inEdges.length){var P=_(j.inEdges,b,k)/_(j.inEdges,C,k);if(isNaN(P)){var X=j.inEdges.length;P=X?_(j.inEdges,S,k)/X:0}if(k==="vertical"){var F=j.getLayout().x+(P-E(j,k))*I;j.setLayout({x:F},!0)}else{var U=j.getLayout().y+(P-E(j,k))*I;j.setLayout({y:U},!0)}}})})}function w(O,I){var k=I==="vertical"?"x":"y";f.each(O,function(M){M.outEdges.sort(function(j,P){return j.node2.getLayout()[k]-P.node2.getLayout()[k]}),M.inEdges.sort(function(j,P){return j.node1.getLayout()[k]-P.node1.getLayout()[k]})}),f.each(O,function(M){var j=0,P=0;f.each(M.outEdges,function(X){X.setLayout({sy:j},!0),j+=X.getLayout().dy}),f.each(M.inEdges,function(X){X.setLayout({ty:P},!0),P+=X.getLayout().dy})})}R.exports=m},"gb/T":function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("OLod"))})(this,function(y){return y.mode.ECB=function(){var f=y.lib.BlockCipherMode.extend();return f.Encryptor=f.extend({processBlock:function(v,m){this._cipher.encryptBlock(v,m)}}),f.Decryptor=f.extend({processBlock:function(v,m){this._cipher.decryptBlock(v,m)}}),f}(),y.mode.ECB})},"giR+":function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("QbM5"),v=n.n(x)},gut8:function(R,D){var n={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},y=9;D.ContextCachedBy=n,D.WILL_BE_RESTORED=y},gvm7:function(R,D,n){var y=n("bYtY"),f=n("dqUG");function x(m){this._zr=m.getZr(),this._show=!1,this._hideTimeout}x.prototype={constructor:x,_enterable:!0,update:function(){},show:function(m){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(m,p,d){this.el&&this._zr.remove(this.el);for(var u={},s=m,i="{marker",t="|}",o=s.indexOf(i);o>=0;){var e=s.indexOf(t),l=s.substr(o+i.length,e-o-i.length);l.indexOf("sub")>-1?u["marker"+l]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:p[l],textOffset:[3,0]}:u["marker"+l]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:p[l]},s=s.substr(e+1),o=s.indexOf("{marker")}this.el=new f({style:{rich:u,text:m,textLineHeight:20,textBackgroundColor:d.get("backgroundColor"),textBorderRadius:d.get("borderRadius"),textFill:d.get("textStyle.color"),textPadding:d.get("padding")},z:d.get("z")}),this._zr.add(this.el);var r=this;this.el.on("mouseover",function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0}),this.el.on("mouseout",function(){r._enterable&&(r._show&&r.hideLater(r._hideDelay)),r._inContent=!1})},setEnterable:function(m){this._enterable=m},getSize:function(){var m=this.el.getBoundingRect();return[m.width,m.height]},moveTo:function(m,p){this.el&&this.el.attr("position",[m,p])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(m){this._show&&!(this._inContent&&this._enterable)&&(m?(this._hideDelay=m,this._show=!1,this._hideTimeout=setTimeout(y.bind(this.hide,this),m)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var m=this.getSize();return{width:m[0],height:m[1]}}};var v=x;R.exports=v},gwTy:function(R,D,n){},h54F:function(R,D,n){var y=n("ProS"),f=n("YXkt"),x=n("bYtY"),v=n("4NO4"),m=v.defaultEmphasis,p=n("Qxkt"),d=n("7aKB"),u=d.encodeHTML,s=n("I3/A"),i=n("xKMd"),t=y.extendSeriesModel({type:"series.graph",init:function(e){t.superApply(this,"init",arguments);var l=this;function r(){return l._categoriesData}this.legendVisualProvider=new i(r,r),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){t.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){t.superApply(this,"mergeDefaultAndTheme",arguments),m(e,["edgeLabel"],["show"])},getInitialData:function(e,l){var r=e.edges||e.links||[],a=e.data||e.nodes||[],c=this;if(a&&r)return s(a,r,this,!0,h).data;function h(g,A){g.wrapMethod("getItemModel",function(T){var w=c._categoriesModels,O=T.getShallow("category"),I=w[O];return I&&(I.parentModel=T.parentModel,T.parentModel=I),T});var b=c.getModel("edgeLabel"),S=new p({label:b.option},b.parentModel,l),E=c.getModel("emphasis.edgeLabel"),C=new p({emphasis:{label:E.option}},E.parentModel,l);A.wrapMethod("getItemModel",function(T){return T.customizeGetParent(_),T});function _(T){return T=this.parsePath(T),T&&T[0]==="label"?S:T&&T[0]==="emphasis"&&T[1]==="label"?C:this.parentModel}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,l,r){if(r==="edge"){var a=this.getData(),c=this.getDataParams(e,r),h=a.graph.getEdgeByIndex(e),g=a.getName(h.node1.dataIndex),A=a.getName(h.node2.dataIndex),b=[];return g!=null&&b.push(g),A!=null&&b.push(A),b=u(b.join(" > ")),c.value&&(b+=" : "+u(c.value)),b}else return t.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=x.map(this.option.categories||[],function(r){return r.value!=null?r:x.extend({value:0},r)}),l=new f(["value"],this);l.initData(e),this._categoriesData=l,this._categoriesModels=l.mapArray(function(r){return l.getItemModel(r,!0)})},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return t.superCall(this,"isAnimationEnabled")&&!(this.get("layout")==="force"&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),o=t;R.exports=o},h7HQ:function(R,D,n){var y=n("y+Vt"),f=n("T6xi"),x=y.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(m,p){f.buildPath(m,p,!0)}});R.exports=x},h8O9:function(R,D,n){var y=n("bYtY"),f=y.map,x=n("zM3Q"),v=n("7hqr"),m=v.isDimensionStacked;function p(d){return{seriesType:d,plan:x(),reset:function(u){var s=u.getData(),i=u.coordinateSystem,t=u.pipelineContext,o=t.large;if(!i)return;var e=f(i.dimensions,function(c){return s.mapDimension(c)}).slice(0,2),l=e.length,r=s.getCalculationInfo("stackResultDimension");m(s,e[0])&&(e[0]=r),m(s,e[1])&&(e[1]=r);function a(c,h){for(var g=c.end-c.start,A=o&&new Float32Array(g*l),b=c.start,S=0,E=[],C=[];b<c.end;b++){var _;if(l===1){var T=h.get(e[0],b);_=!isNaN(T)&&i.dataToPoint(T,null,C)}else{var T=E[0]=h.get(e[0],b),w=E[1]=h.get(e[1],b);_=!isNaN(T)&&!isNaN(w)&&i.dataToPoint(E,null,C)}o?(A[S++]=_?_[0]:NaN,A[S++]=_?_[1]:NaN):h.setItemLayout(b,_&&_.slice()||[NaN,NaN])}o&&h.setLayout("symbolPoints",A)}return l&&{progress:a}}}}R.exports=p},hD7B:function(R,D,n){var y=n("bYtY"),f=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function x(m){y.each(f,function(p){this[p]=y.bind(m[p],m)},this)}var v=x;R.exports=v},hFmY:function(R,D,n){var y=n("ProS"),f={type:"axisAreaSelect",event:"axisAreaSelected"};y.registerAction(f,function(x,v){v.eachComponent({mainType:"parallelAxis",query:x},function(m){m.axis.model.setActiveIntervals(x.intervals)})}),y.registerAction("parallelAxisExpand",function(x,v){v.eachComponent({mainType:"parallel",query:x},function(m){m.setAxisExpand(x)})})},hJvP:function(R,D,n){var y=n("2dDv"),f=n("IDmD");function x(v,m){var p=[];return v.eachComponent("parallel",function(d,u){var s=new y(d,v,m);s.name="parallel_"+u,s.resize(d,m),d.coordinateSystem=s,s.model=d,p.push(s)}),v.eachSeries(function(d){if(d.get("coordinateSystem")==="parallel"){var u=v.queryComponents({mainType:"parallel",index:d.get("parallelIndex"),id:d.get("parallelId")})[0];d.coordinateSystem=u.coordinateSystem}}),p}f.register("parallel",{create:x})},hM6l:function(R,D,n){var y=n("bYtY"),f=y.each,x=y.map,v=n("OELB"),m=v.linearMap,p=v.getPixelPrecision,d=v.round,u=n("4HMb"),s=u.createAxisTicks,i=u.createAxisLabels,t=u.calculateCategoryInterval,o=[0,1],e=function(c,h,g){this.dim=c,this.scale=h,this._extent=g||[0,0],this.inverse=!1,this.onBand=!1};e.prototype={constructor:e,contain:function(c){var h=this._extent,g=Math.min(h[0],h[1]),A=Math.max(h[0],h[1]);return c>=g&&c<=A},containData:function(c){return this.scale.contain(c)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(c){return p(c||this.scale.getExtent(),this._extent)},setExtent:function(c,h){var g=this._extent;g[0]=c,g[1]=h},dataToCoord:function(c,h){var g=this._extent,A=this.scale;return c=A.normalize(c),this.onBand&&A.type==="ordinal"&&(g=g.slice(),l(g,A.count())),m(c,o,g,h)},coordToData:function(c,h){var g=this._extent,A=this.scale;this.onBand&&A.type==="ordinal"&&(g=g.slice(),l(g,A.count()));var b=m(c,g,o,h);return this.scale.scale(b)},pointToData:function(c,h){},getTicksCoords:function(c){c=c||{};var h=c.tickModel||this.getTickModel(),g=s(this,h),A=g.ticks,b=x(A,function(E){return{coord:this.dataToCoord(E),tickValue:E}},this),S=h.get("alignWithLabel");return r(this,b,S,c.clamp),b},getMinorTicksCoords:function(){if(this.scale.type==="ordinal")return[];var c=this.model.getModel("minorTick"),h=c.get("splitNumber");h>0&&h<100||(h=5);var g=this.scale.getMinorTicks(h),A=x(g,function(b){return x(b,function(S){return{coord:this.dataToCoord(S),tickValue:S}},this)},this);return A},getViewLabels:function(){return i(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var c=this._extent,h=this.scale.getExtent(),g=h[1]-h[0]+(this.onBand?1:0);g===0&&(g=1);var A=Math.abs(c[1]-c[0]);return Math.abs(A)/g},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return t(this)}};function l(c,h){var g=c[1]-c[0],A=h,b=g/A/2;c[0]+=b,c[1]-=b}function r(c,h,g,A){var b=h.length;if(!c.onBand||g||!b)return;var S=c.getExtent(),E,C;if(b===1)h[0].coord=S[0],E=h[1]={coord:S[0]};else{var _=h[b-1].tickValue-h[0].tickValue,T=(h[b-1].coord-h[0].coord)/_;f(h,function(k){k.coord-=T/2});var w=c.scale.getExtent();C=1+w[1]-h[b-1].tickValue,E={coord:h[b-1].coord+T*C},h.push(E)}var O=S[0]>S[1];I(h[0].coord,S[0])&&(A?h[0].coord=S[0]:h.shift()),A&&I(S[0],h[0].coord)&&h.unshift({coord:S[0]}),I(S[1],E.coord)&&(A?E.coord=S[1]:h.pop()),A&&I(E.coord,S[1])&&h.push({coord:S[1]});function I(k,M){return k=d(k),M=d(M),O?k>M:k<M}}var a=e;R.exports=a},hNWo:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("Qxkt"),v=n("4NO4"),m=v.isNameSpecified,p=n("Kagy"),d=p.legend.selector,u={all:{type:"all",title:f.clone(d.all)},inverse:{type:"inverse",title:f.clone(d.inverse)}},s=y.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,o,e){this.mergeDefaultAndTheme(t,e),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){s.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var o=t.selector;o===!0&&(o=t.selector=["all","inverse"]),f.isArray(o)&&f.each(o,function(e,l){f.isString(e)&&(e={type:e}),o[l]=f.merge(e,u[e.type])})},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var o=!1,e=0;e<t.length;e++){var l=t[e].get("name");if(this.isSelected(l)){this.select(l),o=!0;break}}!o&&this.select(t[0].get("name"))}},_updateData:function(t){var o=[],e=[];t.eachRawSeries(function(a){var c=a.name;e.push(c);var h;if(a.legendVisualProvider){var g=a.legendVisualProvider,A=g.getAllNames();t.isSeriesFiltered(a)||(e=e.concat(A)),A.length?o=o.concat(A):h=!0}else h=!0;h&&m(a)&&o.push(a.name)}),this._availableNames=e;var l=this.get("data")||o,r=f.map(l,function(a){return(typeof a=="string"||typeof a=="number")&&(a={name:a}),new x(a,this,this.ecModel)},this);this._data=r},getData:function(){return this._data},select:function(t){var o=this.option.selected,e=this.get("selectedMode");if(e==="single"){var l=this._data;f.each(l,function(r){o[r.get("name")]=!1})}o[t]=!0},unSelect:function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},toggleSelected:function(t){var o=this.option.selected;o.hasOwnProperty(t)||(o[t]=!0),this[o[t]?"unSelect":"select"](t)},allSelect:function(){var t=this._data,o=this.option.selected;f.each(t,function(e){o[e.get("name",!0)]=!0})},inverseSelect:function(){var t=this._data,o=this.option.selected;f.each(t,function(e){var l=e.get("name",!0);o.hasOwnProperty(l)||(o[l]=!0),o[l]=!o[l]})},isSelected:function(t){var o=this.option.selected;return!(o.hasOwnProperty(t)&&!o[t])&&f.indexOf(this._availableNames,t)>=0},getOrient:function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),i=s;R.exports=i},hOwI:function(R,D){var n=Math.log(2);function y(x,v,m,p,d,u){var s=p+"-"+d,i=x.length;if(u.hasOwnProperty(s))return u[s];if(v===1){var t=Math.round(Math.log((1<<i)-1&~d)/n);return x[m][t]}for(var o=p|1<<m,e=m+1;p&1<<e;)e++;for(var l=0,r=0,a=0;r<i;r++){var c=1<<r;c&d||(l+=(a%2?-1:1)*x[m][r]*y(x,v-1,e,o,d|c,u),a++)}return u[s]=l,l}function f(x,v){var m=[[x[0],x[1],1,0,0,0,-v[0]*x[0],-v[0]*x[1]],[0,0,0,x[0],x[1],1,-v[1]*x[0],-v[1]*x[1]],[x[2],x[3],1,0,0,0,-v[2]*x[2],-v[2]*x[3]],[0,0,0,x[2],x[3],1,-v[3]*x[2],-v[3]*x[3]],[x[4],x[5],1,0,0,0,-v[4]*x[4],-v[4]*x[5]],[0,0,0,x[4],x[5],1,-v[5]*x[4],-v[5]*x[5]],[x[6],x[7],1,0,0,0,-v[6]*x[6],-v[6]*x[7]],[0,0,0,x[6],x[7],1,-v[7]*x[6],-v[7]*x[7]]],p={},d=y(m,8,0,0,0,p);if(d===0)return;for(var u=[],s=0;s<8;s++)for(var i=0;i<8;i++)u[i]==null&&(u[i]=0),u[i]+=((s+i)%2?-1:1)*y(m,7,s===0?1:0,1<<s,1<<i,p)/d*v[s];return function(t,o,e){var l=o*u[6]+e*u[7]+1;t[0]=(o*u[0]+e*u[1]+u[2])/l,t[1]=(o*u[3]+e*u[4]+u[5])/l}}D.buildTransformer=f},hX1E:function(R,D){var n=Math.PI*2;function y(f){return f%=n,f<0&&(f+=n),f}D.normalizeRadian=y},hXwI:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function f(m,p){for(var d=0;d<p.length;d++){var u=p[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function x(m,p,d){return p&&f(m.prototype,p),d&&f(m,d),m}var v=function(){function m(){y(this,m)}return x(m,[{key:"decodeRect",value:function(d,u,s,i,t,o,e){if(t.rQwait("COPYRECT",4))return!1;var l=t.rQshift16(),r=t.rQshift16();return o.copyImage(l,r,d,u,s,i),!0}}]),m}();D.default=v},hi0g:function(R,D,n){var y=n("bYtY"),f=y.createHashMap,x=y.each,v=y.isString,m=y.defaults,p=y.extend,d=y.isObject,u=y.clone,s=n("4NO4"),i=s.normalizeToArray,t=n("D5nY"),o=t.guessOrdinal,e=t.BE_ORDINAL,l=n("7G+c"),r=n("L0Ub"),a=r.OTHER_DIMENSIONS,c=n("Vi4m");function h(S,E,C){l.isInstance(E)||(E=l.seriesDataToSource(E)),C=C||{},S=(S||[]).slice();for(var _=(C.dimsDef||[]).slice(),T=f(),w=f(),O=[],I=g(E,S,_,C.dimCount),k=0;k<I;k++){var M=_[k]=p({},d(_[k])?_[k]:{name:_[k]}),j=M.name,P=O[k]=new c;j!=null&&T.get(j)==null&&(P.name=P.displayName=j,T.set(j,k)),M.type!=null&&(P.type=M.type),M.displayName!=null&&(P.displayName=M.displayName)}var X=C.encodeDef;!X&&C.encodeDefaulter&&(X=C.encodeDefaulter(E,I)),X=f(X),X.each(function(q,se){if(q=i(q).slice(),q.length===1&&!v(q[0])&&q[0]<0){X.set(se,!1);return}var re=X.set(se,[]);x(q,function(xe,Oe){v(xe)&&(xe=T.get(xe)),xe!=null&&xe<I&&(re[Oe]=xe,U(O[xe],se,Oe))})});var F=0;x(S,function(q,se){var re,q,xe,Oe;if(v(q))re=q,q={};else{re=q.name;var Me=q.ordinalMeta;q.ordinalMeta=null,q=u(q),q.ordinalMeta=Me,xe=q.dimsDef,Oe=q.otherDims,q.name=q.coordDim=q.coordDimIndex=q.dimsDef=q.otherDims=null}var Qe=X.get(re);if(Qe===!1)return;var Qe=i(Qe);if(!Qe.length)for(var Ve=0;Ve<(xe&&xe.length||1);Ve++){for(;F<O.length&&O[F].coordDim!=null;)F++;F<O.length&&Qe.push(F++)}x(Qe,function(ut,Fe){var ue=O[ut];if(U(m(ue,q),re,Fe),ue.name==null&&xe){var et=xe[Fe];!d(et)&&(et={name:et}),ue.name=ue.displayName=et.name,ue.defaultTooltip=et.defaultTooltip}Oe&&m(ue.otherDims,Oe)})});function U(q,se,re){a.get(se)!=null?q.otherDims[se]=re:(q.coordDim=se,q.coordDimIndex=re,w.set(se,!0))}var K=C.generateCoord,z=C.generateCoordCount,V=z!=null;z=K?z||1:0;for(var Q=K||"value",G=0;G<I;G++){var P=O[G]=O[G]||new c,te=P.coordDim;te==null&&(P.coordDim=A(Q,w,V),P.coordDimIndex=0,(!K||z<=0)&&(P.isExtraCoord=!0),z--),P.name==null&&(P.name=A(P.coordDim,T)),P.type==null&&(o(E,G,P.name)===e.Must||P.isExtraCoord&&(P.otherDims.itemName!=null||P.otherDims.seriesName!=null))&&(P.type="ordinal")}return O}function g(S,E,C,_){var T=Math.max(S.dimensionsDetectCount||1,E.length,C.length,_||0);return x(E,function(w){var O=w.dimsDef;O&&(T=Math.max(T,O.length))}),T}function A(S,E,C){if(C||E.get(S)!=null){for(var _=0;E.get(S+_)!=null;)_++;S+=_}return E.set(S,!0),S}var b=h;R.exports=b},hkKa:function(R,D,n){"use strict";n.d(D,"a",function(){return m});var y=n("J4zp"),f=n.n(y),x=n("q1tI"),v=n.n(x);function m(){var p=x.useReducer(function(s){return s+1},0),d=f()(p,2),u=d[1];return u}},hw6D:function(R,D,n){var y=n("bYtY");function f(m){m.eachSeriesByType("radar",function(p){var d=p.getData(),u=[],s=p.coordinateSystem;if(!s)return;var i=s.getIndicatorAxes();y.each(i,function(t,o){d.each(d.mapDimension(i[o].dim),function(e,l){u[l]=u[l]||[];var r=s.dataToPoint(e,o);u[l][o]=x(r)?r:v(s)})}),d.each(function(t){var o=y.find(u[t],function(e){return x(e)})||v(s);u[t].push(o.slice()),d.setItemLayout(t,u[t])})})}function x(m){return!isNaN(m[0])&&!isNaN(m[1])}function v(m){return[m.cx,m.cy]}R.exports=f},hwYd:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("Nu4q")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="PictureTwoTone";var i=v.forwardRef(s);D.default=i},hydK:function(R,D){var n="http://www.w3.org/2000/svg";function y(f){return document.createElementNS(n,f)}D.createElement=y},hyiK:function(R,D){function n(y,f,x,v,m,p){if(p>f&&p>v||p<f&&p<v)return 0;if(v===f)return 0;var d=v<f?1:-1,u=(p-f)/(v-f);(u===1||u===0)&&(d=v<f?.5:-.5);var s=u*(x-y)+y;return s===m?Infinity:s>m?d:0}R.exports=n},i38C:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("bYtY"),v=x.createHashMap,m=x.retrieve,p=x.each;function d(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=v(),this.categoryAxisMap=v(),this.firstCategoryDimIndex=null}function u(t){var o=t.get("coordinateSystem"),e=new d(o),l=s[o];if(l)return l(t,e,e.axisMap,e.categoryAxisMap),e}var s={cartesian2d:function(t,o,e,l){var r=t.getReferringComponents("xAxis")[0],a=t.getReferringComponents("yAxis")[0];o.coordSysDims=["x","y"],e.set("x",r),e.set("y",a),i(r)&&(l.set("x",r),o.firstCategoryDimIndex=0),i(a)&&(l.set("y",a),o.firstCategoryDimIndex==null&(o.firstCategoryDimIndex=1))},singleAxis:function(t,o,e,l){var r=t.getReferringComponents("singleAxis")[0];o.coordSysDims=["single"],e.set("single",r),i(r)&&(l.set("single",r),o.firstCategoryDimIndex=0)},polar:function(t,o,e,l){var r=t.getReferringComponents("polar")[0],a=r.findAxisModel("radiusAxis"),c=r.findAxisModel("angleAxis");o.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",c),i(a)&&(l.set("radius",a),o.firstCategoryDimIndex=0),i(c)&&(l.set("angle",c),o.firstCategoryDimIndex==null&&(o.firstCategoryDimIndex=1))},geo:function(t,o,e,l){o.coordSysDims=["lng","lat"]},parallel:function(t,o,e,l){var r=t.ecModel,a=r.getComponent("parallel",t.get("parallelIndex")),c=o.coordSysDims=a.dimensions.slice();p(a.parallelAxisIndex,function(h,g){var A=r.getComponent("parallelAxis",h),b=c[g];e.set(b,A),i(A)&&o.firstCategoryDimIndex==null&&(l.set(b,A),o.firstCategoryDimIndex=g)})}};function i(t){return t.get("type")==="category"}D.getCoordSysInfoBySeries=u},i6bk:function(R,D,n){"use strict";n.d(D,"b",function(){return y}),n.d(D,"a",function(){return f});function y(x){return x!=null&&x===x.window}function f(x,v){if(typeof window=="undefined")return 0;var m=v?"scrollTop":"scrollLeft",p=0;return y(x)?p=x[v?"pageYOffset":"pageXOffset"]:x instanceof Document?p=x.documentElement[m]:x&&(p=x[m]),x&&!y(x)&&typeof p!="number"&&(p=(x.ownerDocument||x).documentElement[m]),p}},i8CU:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("Fm1+"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},iLNv:function(R,D){var n="\0__throttleOriginMethod",y="\0__throttleRate",f="\0__throttleType";function x(p,d,u){var s,i=0,t=0,o=null,e,l,r,a;d=d||0;function c(){t=new Date().getTime(),o=null,p.apply(l,r||[])}var h=function(){s=new Date().getTime(),l=this,r=arguments;var g=a||d,A=a||u;a=null,e=s-(A?i:t)-g,clearTimeout(o),A?o=setTimeout(c,g):e>=0?c():o=setTimeout(c,-e),i=s};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(g){a=g},h}function v(p,d,u,s){var i=p[d];if(!i)return;var t=i[n]||i,o=i[f],e=i[y];if(e!==u||o!==s){if(u==null||!s)return p[d]=t;i=p[d]=x(t,u,s==="debounce"),i[n]=t,i[f]=s,i[y]=u}return i}function m(p,d){var u=p[d];u&&u[n]&&(p[d]=u[n])}D.throttle=x,D.createOrUpdate=v,D.clear=m},iPDy:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=y.extendComponentView({type:"marker",init:function(){this.markerGroupMap=f.createHashMap()},render:function(v,m,p){var d=this.markerGroupMap;d.each(function(s){s.__keep=!1});var u=this.type+"Model";m.eachSeries(function(s){var i=s[u];i&&this.renderSeries(s,i,m,p)},this),d.each(function(s){!s.__keep&&this.group.remove(s.group)},this)},renderSeries:function(){}});R.exports=x},iQDF:function(R,D,n){"use strict";var y=n("ZTW2"),f=n.n(y),x=n("+BJd"),v=n("+L6B")},iRjW:function(R,D,n){var y=n("bYtY"),f=n("Yl7c"),x=f.parseClassType,v=0;function m(u){return[u||"",v++,Math.random().toFixed(5)].join("_")}function p(u){var s={};return u.registerSubTypeDefaulter=function(i,t){i=x(i),s[i.main]=t},u.determineSubType=function(i,t){var o=t.type;if(!o){var e=x(i).main;u.hasSubTypes(i)&&s[e]&&(o=s[e](t))}return o},u}function d(u,s){u.topologicalTravel=function(e,l,r,a){if(!e.length)return;var c=i(l),h=c.graph,g=c.noEntryList,A={};for(y.each(e,function(T){A[T]=!0});g.length;){var b=g.pop(),S=h[b],E=!!A[b];E&&(r.call(a,b,S.originalDeps.slice()),delete A[b]),y.each(S.successor,E?_:C)}y.each(A,function(){throw new Error("Circle dependency may exists")});function C(T){h[T].entryCount--,h[T].entryCount===0&&g.push(T)}function _(T){A[T]=!0,C(T)}};function i(e){var l={},r=[];return y.each(e,function(a){var c=t(l,a),h=c.originalDeps=s(a),g=o(h,e);c.entryCount=g.length,c.entryCount===0&&r.push(a),y.each(g,function(A){y.indexOf(c.predecessor,A)<0&&c.predecessor.push(A);var b=t(l,A);y.indexOf(b.successor,A)<0&&b.successor.push(a)})}),{graph:l,noEntryList:r}}function t(e,l){return e[l]||(e[l]={predecessor:[],successor:[]}),e[l]}function o(e,l){var r=[];return y.each(e,function(a){y.indexOf(l,a)>=0&&r.push(a)}),r}}D.getUID=m,D.enableSubTypeDefaulter=p,D.enableTopologicalTravel=d},iUHT:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}function f(S,E){for(var C=0;C<E.length;C++){var _=E[C];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(S,_.key,_)}}function x(S,E,C){return E&&f(S.prototype,E),C&&f(S,C),S}var v=[13,16,10,23,0,4,2,27,14,5,20,9,22,18,11,3,25,7,15,6,26,19,12,1,40,51,30,36,46,54,29,39,50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31],m=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=0,d,u,s,i,t,o;d=1<<16,u=1<<24,s=d|u,i=1<<2,t=1<<10,o=i|t;var e=[s|t,p|p,d|p,s|o,s|i,d|o,p|i,d|p,p|t,s|t,s|o,p|t,u|o,s|i,u|p,p|i,p|o,u|t,u|t,d|t,d|t,s|p,s|p,u|o,d|i,u|i,u|i,d|i,p|p,p|o,d|o,u|p,d|p,s|o,p|i,s|p,s|t,u|p,u|p,p|t,s|i,d|p,d|t,u|i,p|t,p|i,u|o,d|o,s|o,d|i,s|p,u|o,u|i,p|o,d|o,s|t,p|o,u|t,u|t,p|p,d|i,d|t,p|p,s|i];d=1<<20,u=1<<31,s=d|u,i=1<<5,t=1<<15,o=i|t;var l=[s|o,u|t,p|t,d|o,d|p,p|i,s|i,u|o,u|i,s|o,s|t,u|p,u|t,d|p,p|i,s|i,d|t,d|i,u|o,p|p,u|p,p|t,d|o,s|p,d|i,u|i,p|p,d|t,p|o,s|t,s|p,p|o,p|p,d|o,s|i,d|p,u|o,s|p,s|t,p|t,s|p,u|t,p|i,s|o,d|o,p|i,p|t,u|p,p|o,s|t,d|p,u|i,d|i,u|o,u|i,d|i,d|t,p|p,u|t,p|o,u|p,s|i,s|o,d|t];d=1<<17,u=1<<27,s=d|u,i=1<<3,t=1<<9,o=i|t;var r=[p|o,s|t,p|p,s|i,u|t,p|p,d|o,u|t,d|i,u|i,u|i,d|p,s|o,d|i,s|p,p|o,u|p,p|i,s|t,p|t,d|t,s|p,s|i,d|o,u|o,d|t,d|p,u|o,p|i,s|o,p|t,u|p,s|t,u|p,d|i,p|o,d|p,s|t,u|t,p|p,p|t,d|i,s|o,u|t,u|i,p|t,p|p,s|i,u|o,d|p,u|p,s|o,p|i,d|o,d|t,u|i,s|p,u|o,p|o,s|p,d|o,p|i,s|i,d|t];d=1<<13,u=1<<23,s=d|u,i=1<<0,t=1<<7,o=i|t;var a=[s|i,d|o,d|o,p|t,s|t,u|o,u|i,d|i,p|p,s|p,s|p,s|o,p|o,p|p,u|t,u|i,p|i,d|p,u|p,s|i,p|t,u|p,d|i,d|t,u|o,p|i,d|t,u|t,d|p,s|t,s|o,p|o,u|t,u|i,s|p,s|o,p|o,p|p,p|p,s|p,d|t,u|t,u|o,p|i,s|i,d|o,d|o,p|t,s|o,p|o,p|i,d|p,u|i,d|i,s|t,u|o,d|i,d|t,u|p,s|i,p|t,u|p,d|p,s|t];d=1<<25,u=1<<30,s=d|u,i=1<<8,t=1<<19,o=i|t;var c=[p|i,d|o,d|t,s|i,p|t,p|i,u|p,d|t,u|o,p|t,d|i,u|o,s|i,s|t,p|o,u|p,d|p,u|t,u|t,p|p,u|i,s|o,s|o,d|i,s|t,u|i,p|p,s|p,d|o,d|p,s|p,p|o,p|t,s|i,p|i,d|p,u|p,d|t,s|i,u|o,d|i,u|p,s|t,d|o,u|o,p|i,d|p,s|t,s|o,p|o,s|p,s|o,d|t,p|p,u|t,s|p,p|o,d|i,u|i,p|t,p|p,u|t,d|o,u|i];d=1<<22,u=1<<29,s=d|u,i=1<<4,t=1<<14,o=i|t;var h=[u|i,s|p,p|t,s|o,s|p,p|i,s|o,d|p,u|t,d|o,d|p,u|i,d|i,u|t,u|p,p|o,p|p,d|i,u|o,p|t,d|t,u|o,p|i,s|i,s|i,p|p,d|o,s|t,p|o,d|t,s|t,u|p,u|t,p|i,s|i,d|t,s|o,d|p,p|o,u|i,d|p,u|t,u|p,p|o,u|i,s|o,d|t,s|p,d|o,s|t,p|p,s|i,p|i,p|t,s|p,d|o,p|t,d|i,u|o,p|p,s|t,u|p,d|i,u|o];d=1<<21,u=1<<26,s=d|u,i=1<<1,t=1<<11,o=i|t;var g=[d|p,s|i,u|o,p|p,p|t,u|o,d|o,s|t,s|o,d|p,p|p,u|i,p|i,u|p,s|i,p|o,u|t,d|o,d|i,u|t,u|i,s|p,s|t,d|i,s|p,p|t,p|o,s|o,d|t,p|i,u|p,d|t,u|p,d|t,d|p,u|o,u|o,s|i,s|i,p|i,d|i,u|p,u|t,d|p,s|t,p|o,d|o,s|t,p|o,u|i,s|o,s|p,d|t,p|p,p|i,s|o,p|p,d|o,s|p,p|t,u|i,u|t,p|t,d|i];d=1<<18,u=1<<28,s=d|u,i=1<<6,t=1<<12,o=i|t;var A=[u|o,p|t,d|p,s|o,u|p,u|o,p|i,u|p,d|i,s|p,s|o,d|t,s|t,d|o,p|t,p|i,s|p,u|i,u|t,p|o,d|t,d|i,s|i,s|t,p|o,p|p,p|p,s|i,u|i,u|t,d|o,d|p,d|o,d|p,s|t,p|t,p|i,s|i,p|t,d|o,u|t,p|i,u|i,s|p,s|i,u|p,d|p,u|o,p|p,s|o,d|i,u|i,s|p,u|t,u|o,p|p,s|o,d|t,d|t,p|o,p|o,d|i,u|p,s|t],b=function(){function S(E){y(this,S),this.keys=[];for(var C=[],_=[],T=[],w=0,O=56;w<56;++w,O-=8){O+=O<-5?65:O<-3?31:O<-1?63:O===27?35:0;var I=O&7;C[w]=(E[O>>>3]&1<<I)!==0?1:0}for(var k=0;k<16;++k){var M=k<<1,j=M+1;T[M]=T[j]=0;for(var P=28;P<59;P+=28)for(var X=P-28;X<P;++X){var F=X+m[k];_[X]=F<P?C[F]:C[F-28]}for(var U=0;U<24;++U)_[v[U]]!==0&&(T[M]|=1<<23-U),_[v[U+24]]!==0&&(T[j]|=1<<23-U)}for(var K=0,z=0,V=0;K<16;++K){var Q=T[z++],G=T[z++];this.keys[V]=(Q&16515072)<<6,this.keys[V]|=(Q&4032)<<10,this.keys[V]|=(G&16515072)>>>10,this.keys[V]|=(G&4032)>>>6,++V,this.keys[V]=(Q&258048)<<12,this.keys[V]|=(Q&63)<<16,this.keys[V]|=(G&258048)>>>4,this.keys[V]|=G&63,++V}}return x(S,[{key:"enc8",value:function(C){var _=C.slice(),T=0,w,O,I;w=_[T++]<<24|_[T++]<<16|_[T++]<<8|_[T++],O=_[T++]<<24|_[T++]<<16|_[T++]<<8|_[T++],I=(w>>>4^O)&252645135,O^=I,w^=I<<4,I=(w>>>16^O)&65535,O^=I,w^=I<<16,I=(O>>>2^w)&858993459,w^=I,O^=I<<2,I=(O>>>8^w)&16711935,w^=I,O^=I<<8,O=O<<1|O>>>31&1,I=(w^O)&2863311530,w^=I,O^=I,w=w<<1|w>>>31&1;for(var k=0,M=0;k<8;++k){I=O<<28|O>>>4,I^=this.keys[M++];var j=g[I&63];j|=c[I>>>8&63],j|=r[I>>>16&63],j|=e[I>>>24&63],I=O^this.keys[M++],j|=A[I&63],j|=h[I>>>8&63],j|=a[I>>>16&63],j|=l[I>>>24&63],w^=j,I=w<<28|w>>>4,I^=this.keys[M++],j=g[I&63],j|=c[I>>>8&63],j|=r[I>>>16&63],j|=e[I>>>24&63],I=w^this.keys[M++],j|=A[I&63],j|=h[I>>>8&63],j|=a[I>>>16&63],j|=l[I>>>24&63],O^=j}for(O=O<<31|O>>>1,I=(w^O)&2863311530,w^=I,O^=I,w=w<<31|w>>>1,I=(w>>>8^O)&16711935,O^=I,w^=I<<8,I=(w>>>2^O)&858993459,O^=I,w^=I<<2,I=(O>>>16^w)&65535,w^=I,O^=I<<16,I=(O>>>4^w)&252645135,w^=I,O^=I<<4,I=[O,w],T=0;T<8;T++)_[T]=(I[T>>>2]>>>8*(3-T%4))%256,_[T]<0&&(_[T]+=256);return _}},{key:"encrypt",value:function(C){return this.enc8(C.slice(0,8)).concat(this.enc8(C.slice(8,16)))}}]),S}();D.default=b},iXHM:function(R,D){var n="";typeof navigator!="undefined"&&(n=navigator.platform||"");var y={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:n.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};R.exports=y},iXp4:function(R,D,n){var y=n("ItGF"),f=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function x(v){return y.browser.ie&&y.browser.version>=11?function(){var m=this.__clipPaths,p=this.style,d;if(m)for(var u=0;u<m.length;u++){var s=m[u],i=s&&s.shape,t=s&&s.type;if(i&&(t==="sector"&&i.startAngle===i.endAngle||t==="rect"&&(!i.width||!i.height))){for(var o=0;o<f.length;o++)f[o][2]=p[f[o][0]],p[f[o][0]]=f[o][1];d=!0;break}}if(v.apply(this,arguments),d)for(var o=0;o<f.length;o++)p[f[o][0]]=f[o][2]}:v}R.exports=x},iYpf:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("ZLWo")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="FolderOpenOutlined";var i=v.forwardRef(s);D.default=i},ieMj:function(R,D,n){var y=n("OELB"),f=n("7aKB"),x=n("4NgU"),v=n("lE7J"),m=y.round,p=x.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(u,s){var i=this._extent;isNaN(u)||(i[0]=parseFloat(u)),isNaN(s)||(i[1]=parseFloat(s))},unionExtent:function(u){var s=this._extent;u[0]<s[0]&&(s[0]=u[0]),u[1]>s[1]&&(s[1]=u[1]),p.prototype.setExtent.call(this,s[0],s[1])},getInterval:function(){return this._interval},setInterval:function(u){this._interval=u,this._niceExtent=this._extent.slice(),this._intervalPrecision=v.getIntervalPrecision(u)},getTicks:function(u){var s=this._interval,i=this._extent,t=this._niceExtent,o=this._intervalPrecision,e=[];if(!s)return e;var l=1e4;i[0]<t[0]&&(u?e.push(m(t[0]-s,o)):e.push(i[0]));for(var r=t[0];r<=t[1]&&!(e.push(r),r=m(r+s,o),r===e[e.length-1]);)if(e.length>l)return[];var a=e.length?e[e.length-1]:t[1];return i[1]>a&&(u?e.push(m(a+s,o)):e.push(i[1])),e},getMinorTicks:function(u){for(var s=this.getTicks(!0),i=[],t=this.getExtent(),o=1;o<s.length;o++){for(var e=s[o],l=s[o-1],r=0,a=[],c=e-l,h=c/u;r<u-1;){var g=y.round(l+(r+1)*h);g>t[0]&&g<t[1]&&a.push(g),r++}i.push(a)}return i},getLabel:function(u,s){if(u==null)return"";var i=s&&s.precision;return i==null?i=y.getPrecisionSafe(u)||0:i==="auto"&&(i=this._intervalPrecision),u=m(u,i,!0),f.addCommas(u)},niceTicks:function(u,s,i){u=u||5;var t=this._extent,o=t[1]-t[0];if(!isFinite(o))return;o<0&&(o=-o,t.reverse());var e=v.intervalScaleNiceTicks(t,u,s,i);this._intervalPrecision=e.intervalPrecision,this._interval=e.interval,this._niceExtent=e.niceTickExtent},niceExtent:function(u){var s=this._extent;if(s[0]===s[1])if(s[0]!==0){var i=s[0];u.fixMax||(s[1]+=i/2),s[0]-=i/2}else s[1]=1;var t=s[1]-s[0];isFinite(t)||(s[0]=0,s[1]=1),this.niceTicks(u.splitNumber,u.minInterval,u.maxInterval);var o=this._interval;u.fixMin||(s[0]=m(Math.floor(s[0]/o)*o)),u.fixMax||(s[1]=m(Math.ceil(s[1]/o)*o))}});p.create=function(){return new p};var d=p;R.exports=d},j5sG:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=n("24YM"),f=x(n("NohK"));function x(m){return m&&m.__esModule?m:{default:m}}var v=function(p,d){var u=void 0,s=[],i=(0,f.default)(function(){s.forEach(function(r){r(p)})}),t=function(){var a=new ResizeObserver(i);return a.observe(p),i(),a},o=function(a){u||(u=t()),s.indexOf(a)===-1&&s.push(a)},e=function(){u.disconnect(),s=[],u=void 0,p.removeAttribute(y.SizeSensorId),d&&d()},l=function(a){var c=s.indexOf(a);c!==-1&&s.splice(c,1),s.length===0&&u&&e()};return{element:p,bind:o,destroy:e,unbind:l}};D.createSensor=v},jCoz:function(R,D,n){var y=n("bYtY"),f=n("4NgU"),x=n("OELB"),v=n("ieMj"),m=f.prototype,p=v.prototype,d=x.getPrecisionSafe,u=x.round,s=Math.floor,i=Math.ceil,t=Math.pow,o=Math.log,e=f.extend({type:"log",base:10,$constructor:function(){f.apply(this,arguments),this._originalScale=new v},getTicks:function(a){var c=this._originalScale,h=this._extent,g=c.getExtent();return y.map(p.getTicks.call(this,a),function(A){var b=x.round(t(this.base,A));return b=A===h[0]&&c.__fixMin?l(b,g[0]):b,b=A===h[1]&&c.__fixMax?l(b,g[1]):b,b},this)},getMinorTicks:p.getMinorTicks,getLabel:p.getLabel,scale:function(a){return a=m.scale.call(this,a),t(this.base,a)},setExtent:function(a,c){var h=this.base;a=o(a)/o(h),c=o(c)/o(h),p.setExtent.call(this,a,c)},getExtent:function(){var a=this.base,c=m.getExtent.call(this);c[0]=t(a,c[0]),c[1]=t(a,c[1]);var h=this._originalScale,g=h.getExtent();return h.__fixMin&&(c[0]=l(c[0],g[0])),h.__fixMax&&(c[1]=l(c[1],g[1])),c},unionExtent:function(a){this._originalScale.unionExtent(a);var c=this.base;a[0]=o(a[0])/o(c),a[1]=o(a[1])/o(c),m.unionExtent.call(this,a)},unionExtentFromData:function(a,c){this.unionExtent(a.getApproximateExtent(c))},niceTicks:function(a){a=a||10;var c=this._extent,h=c[1]-c[0];if(h===Infinity||h<=0)return;var g=x.quantity(h),A=a/h*g;for(A<=.5&&(g*=10);!isNaN(g)&&Math.abs(g)<1&&Math.abs(g)>0;)g*=10;var b=[x.round(i(c[0]/g)*g),x.round(s(c[1]/g)*g)];this._interval=g,this._niceExtent=b},niceExtent:function(a){p.niceExtent.call(this,a);var c=this._originalScale;c.__fixMin=a.fixMin,c.__fixMax=a.fixMax}});y.each(["contain","normalize"],function(a){e.prototype[a]=function(c){return c=o(c)/o(this.base),m[a].call(this,c)}}),e.create=function(){return new e};function l(a,c){return u(a,d(c))}var r=e;R.exports=r},jN4g:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="CloseCircleFilled";var d=D.a=f.forwardRef(p)},jO45:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="CheckCircleFilled";var d=D.a=f.forwardRef(p)},jO9C:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.Iso97971={pad:function(x,v){x.concat(y.lib.WordArray.create([2147483648],1)),y.pad.ZeroPadding.pad(x,v)},unpad:function(x){y.pad.ZeroPadding.unpad(x),x.sigBytes--}},y.pad.Iso97971})},jTL6:function(R,D,n){var y=n("y+Vt"),f=y.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(v,m){var p=m.cx,d=m.cy,u=Math.max(m.r,0),s=m.startAngle,i=m.endAngle,t=m.clockwise,o=Math.cos(s),e=Math.sin(s);v.moveTo(o*u+p,e*u+d),v.arc(p,d,u,s,i,!t)}});R.exports=f},je13:function(R,D,n){var y=n("5nXd"),f=n("gRFJ"),x=[n("uQRt")];R.exports=y.createStore(f,x)},jett:function(R,D,n){var y=n("ProS");n("VSLf"),n("oBaM"),n("FGaS");var f=n("mOdp"),x=n("f5Yq"),v=n("hw6D"),m=n("0/Rx"),p=n("eJH7");y.registerVisual(f("radar")),y.registerVisual(x("radar","circle")),y.registerLayout(v),y.registerProcessor(m("radar")),y.registerPreprocessor(p)},jhfD:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="ArrowLeftOutlined";var d=D.a=f.forwardRef(p)},jkPA:function(R,D,n){var y=n("bYtY"),f=y.createHashMap,x=y.isObject,v=y.map;function m(i){this.categories=i.categories||[],this._needCollect=i.needCollect,this._deduplication=i.deduplication,this._map}m.createByAxisModel=function(i){var t=i.option,o=t.data,e=o&&v(o,u);return new m({categories:e,needCollect:!e,deduplication:t.dedplication!==!1})};var p=m.prototype;p.getOrdinal=function(i){return d(this).get(i)},p.parseAndCollect=function(i){var t,o=this._needCollect;if(typeof i!="string"&&!o)return i;if(o&&!this._deduplication)return t=this.categories.length,this.categories[t]=i,t;var e=d(this);return t=e.get(i),t==null&&(o?(t=this.categories.length,this.categories[t]=i,e.set(i,t)):t=NaN),t};function d(i){return i._map||(i._map=f(i.categories))}function u(i){return x(i)&&i.value!=null?i.value:i+""}var s=m;R.exports=s},jndi:function(R,D,n){var y=n("bYtY"),f=n("Qe9p"),x=n("YXkt"),v=n("OELB"),m=n("IwbS"),p=n("kj2x"),d=n("iPDy"),u=function(r,a,c,h){var g=p.dataTransform(r,h[0]),A=p.dataTransform(r,h[1]),b=y.retrieve,S=g.coord,E=A.coord;S[0]=b(S[0],-Infinity),S[1]=b(S[1],-Infinity),E[0]=b(E[0],Infinity),E[1]=b(E[1],Infinity);var C=y.mergeAll([{},g,A]);return C.coord=[g.coord,A.coord],C.x0=g.x,C.y0=g.y,C.x1=A.x,C.y1=A.y,C};function s(r){return!isNaN(r)&&!isFinite(r)}function i(r,a,c,h){var g=1-r;return s(a[g])&&s(c[g])}function t(r,a){var c=a.coord[0],h=a.coord[1];return r.type==="cartesian2d"&&(c&&h&&(i(1,c,h,r)||i(0,c,h,r)))?!0:p.dataFilter(r,{coord:c,x:a.x0,y:a.y0})||p.dataFilter(r,{coord:h,x:a.x1,y:a.y1})}function o(r,a,c,h,g){var A=h.coordinateSystem,b=r.getItemModel(a),S,E=v.parsePercent(b.get(c[0]),g.getWidth()),C=v.parsePercent(b.get(c[1]),g.getHeight());if(!isNaN(E)&&!isNaN(C))S=[E,C];else{if(h.getMarkerPosition)S=h.getMarkerPosition(r.getValues(c,a));else{var _=r.get(c[0],a),T=r.get(c[1],a),w=[_,T];A.clampData&&A.clampData(w,w),S=A.dataToPoint(w,!0)}if(A.type==="cartesian2d"){var O=A.getAxis("x"),I=A.getAxis("y"),_=r.get(c[0],a),T=r.get(c[1],a);s(_)?S[0]=O.toGlobalCoord(O.getExtent()[c[0]==="x0"?0:1]):s(T)&&(S[1]=I.toGlobalCoord(I.getExtent()[c[1]==="y0"?0:1]))}isNaN(E)||(S[0]=E),isNaN(C)||(S[1]=C)}return S}var e=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];d.extend({type:"markArea",updateTransform:function(r,a,c){a.eachSeries(function(h){var g=h.markAreaModel;if(g){var A=g.getData();A.each(function(b){var S=y.map(e,function(C){return o(A,b,C,h,c)});A.setItemLayout(b,S);var E=A.getItemGraphicEl(b);E.setShape("points",S)})}},this)},renderSeries:function(r,a,c,h){var g=r.coordinateSystem,A=r.id,b=r.getData(),S=this.markerGroupMap,E=S.get(A)||S.set(A,{group:new m.Group});this.group.add(E.group),E.__keep=!0;var C=l(g,r,a);a.setData(C),C.each(function(_){C.setItemLayout(_,y.map(e,function(T){return o(C,_,T,r,h)})),C.setItemVisual(_,{color:b.getVisual("color")})}),C.diff(E.__data).add(function(_){var T=new m.Polygon({shape:{points:C.getItemLayout(_)}});C.setItemGraphicEl(_,T),E.group.add(T)}).update(function(_,T){var w=E.__data.getItemGraphicEl(T);m.updateProps(w,{shape:{points:C.getItemLayout(_)}},a,_),E.group.add(w),C.setItemGraphicEl(_,w)}).remove(function(_){var T=E.__data.getItemGraphicEl(_);E.group.remove(T)}).execute(),C.eachItemGraphicEl(function(_,T){var w=C.getItemModel(T),O=w.getModel("label"),I=w.getModel("emphasis.label"),k=C.getItemVisual(T,"color");_.useStyle(y.defaults(w.getModel("itemStyle").getItemStyle(),{fill:f.modifyAlpha(k,.4),stroke:k})),_.hoverStyle=w.getModel("emphasis.itemStyle").getItemStyle(),m.setLabelStyle(_.style,_.hoverStyle,O,I,{labelFetcher:a,labelDataIndex:T,defaultText:C.getName(T)||"",isRectText:!0,autoColor:k}),m.setHoverStyle(_,{}),_.dataModel=a}),E.__data=C,E.group.silent=a.get("silent")||r.get("silent")}});function l(r,a,c){var h,g,A=["x0","y0","x1","y1"];r?(h=y.map(r&&r.dimensions,function(E){var C=a.getData(),_=C.getDimensionInfo(C.mapDimension(E))||{};return y.defaults({name:E},_)}),g=new x(y.map(A,function(E,C){return{name:E,type:h[C%2].type}}),c)):(h=[{name:"value",type:"float"}],g=new x(h,c));var b=y.map(c.get("data"),y.curry(u,a,r,c));r&&(b=y.filter(b,y.curry(t,r)));var S=r?function(E,C,_,T){return E.coord[Math.floor(T/2)][T%2]}:function(E){return E.value};return g.initData(b,null,S),g.hasItemOption=!0,g}},"jsU+":function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("IUWy"),v=y.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){v.superApply(this,"optionUpdated",arguments),f.each(this.option.feature,function(p,d){var u=x.get(d);u&&f.merge(p,u.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}}),m=v;R.exports=m},jtI2:function(R,D,n){n("SMc4");var y=n("bLfw"),f=y.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});R.exports=f},juDX:function(R,D,n){n("P47w");var y=n("aX58"),f=y.registerPainter,x=n("3CBa");f("svg",x)},"k+1r":function(R,D,n){var y=n("QkVE");function f(x){var v=y(this,x).delete(x);return this.size-=v?1:0,v}R.exports=f},k5C7:function(R,D,n){n("0JAE"),n("g7p0"),n("7mYs")},k9D9:function(R,D){var n="original",y="arrayRows",f="objectRows",x="keyedColumns",v="unknown",m="typedArray",p="column",d="row";D.SOURCE_FORMAT_ORIGINAL=n,D.SOURCE_FORMAT_ARRAY_ROWS=y,D.SOURCE_FORMAT_OBJECT_ROWS=f,D.SOURCE_FORMAT_KEYED_COLUMNS=x,D.SOURCE_FORMAT_UNKNOWN=v,D.SOURCE_FORMAT_TYPED_ARRAY=m,D.SERIES_LAYOUT_BY_COLUMN=p,D.SERIES_LAYOUT_BY_ROW=d},kDyi:function(R,D){function n(y){var f=y.findComponents({mainType:"legend"});f&&f.length&&y.filterSeries(function(x){for(var v=0;v<f.length;v++)if(!f[v].isSelected(x.name))return!1;return!0})}R.exports=n},kGiB:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("ABKa"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},kMLO:function(R,D,n){var y=n("XxSj"),f=n("Qe9p"),x=n("bYtY"),v=x.isArray,m="itemStyle",p={seriesType:"treemap",reset:function(r,a,c,h){var g=r.getData().tree,A=g.root,b=r.getModel(m);if(A.isRemoved())return;var S=x.map(g.levelModels,function(E){return E?E.get(m):null});d(A,{},S,b,r.getViewRoot().getAncestors(),r)}};function d(r,a,c,h,g,A){var b=r.getModel(),S=r.getLayout();if(!S||S.invisible||!S.isInView)return;var E=r.getModel(m),C=c[r.depth],_=u(E,a,C,h),T=E.get("borderColor"),w=E.get("borderColorSaturation"),O;w!=null&&(O=s(_,r),T=i(w,O)),r.setVisual("borderColor",T);var I=r.viewChildren;if(!I||!I.length)O=s(_,r),r.setVisual("color",O);else{var k=o(r,b,S,E,_,I);x.each(I,function(M,j){if(M.depth>=g.length||M===g[M.depth]){var P=l(b,_,M,j,k,A);d(M,P,c,h,g,A)}})}}function u(r,a,c,h){var g=x.extend({},a);return x.each(["color","colorAlpha","colorSaturation"],function(A){var b=r.get(A,!0);b==null&&c&&(b=c[A]),b==null&&(b=a[A]),b==null&&(b=h.get(A)),b!=null&&(g[A]=b)}),g}function s(r){var a=t(r,"color");if(a){var c=t(r,"colorAlpha"),h=t(r,"colorSaturation");return h&&(a=f.modifyHSL(a,null,null,h)),c&&(a=f.modifyAlpha(a,c)),a}}function i(r,a){return a!=null?f.modifyHSL(a,null,null,r):null}function t(r,a){var c=r[a];if(c!=null&&c!=="none")return c}function o(r,a,c,h,g,A){if(!A||!A.length)return;var b=e(a,"color")||g.color!=null&&g.color!=="none"&&(e(a,"colorAlpha")||e(a,"colorSaturation"));if(!b)return;var S=a.get("visualMin"),E=a.get("visualMax"),C=c.dataExtent.slice();S!=null&&S<C[0]&&(C[0]=S),E!=null&&E>C[1]&&(C[1]=E);var _=a.get("colorMappingBy"),T={type:b.name,dataExtent:C,visual:b.range};T.type==="color"&&(_==="index"||_==="id")?(T.mappingMethod="category",T.loop=!0):T.mappingMethod="linear";var w=new y(T);return w.__drColorMappingBy=_,w}function e(r,a){var c=r.get(a);return v(c)&&c.length?{name:a,range:c}:null}function l(r,a,c,h,g,A){var b=x.extend({},a);if(g){var S=g.type,E=S==="color"&&g.__drColorMappingBy,C=E==="index"?h:E==="id"?A.mapIdToIndex(c.getId()):c.getValue(r.get("visualDimension"));b[S]=g.mapValueToVisual(C)}return b}R.exports=p},"kVK+":function(R,D){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */D.read=function(n,y,f,x,v){var m,p,d=v*8-x-1,u=(1<<d)-1,s=u>>1,i=-7,t=f?v-1:0,o=f?-1:1,e=n[y+t];for(t+=o,m=e&(1<<-i)-1,e>>=-i,i+=d;i>0;m=m*256+n[y+t],t+=o,i-=8);for(p=m&(1<<-i)-1,m>>=-i,i+=x;i>0;p=p*256+n[y+t],t+=o,i-=8);if(m===0)m=1-s;else{if(m===u)return p?NaN:(e?-1:1)*Infinity;p=p+Math.pow(2,x),m=m-s}return(e?-1:1)*p*Math.pow(2,m-x)},D.write=function(n,y,f,x,v,m){var p,d,u,s=m*8-v-1,i=(1<<s)-1,t=i>>1,o=v===23?Math.pow(2,-24)-Math.pow(2,-77):0,e=x?0:m-1,l=x?1:-1,r=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===Infinity?(d=isNaN(y)?1:0,p=i):(p=Math.floor(Math.log(y)/Math.LN2),y*(u=Math.pow(2,-p))<1&&(p--,u*=2),p+t>=1?y+=o/u:y+=o*Math.pow(2,1-t),y*u>=2&&(p++,u/=2),p+t>=i?(d=0,p=i):p+t>=1?(d=(y*u-1)*Math.pow(2,v),p=p+t):(d=y*Math.pow(2,t-1)*Math.pow(2,v),p=0));v>=8;n[f+e]=d&255,e+=l,d/=256,v-=8);for(p=p<<v|d,s+=v;s>0;n[f+e]=p&255,e+=l,p/=256,s-=8);n[f+e-l]|=r*128}},kekF:function(R,D){function n(y,f){return function(x){return y(f(x))}}R.exports=n},kj2x:function(R,D,n){var y=n("bYtY"),f=n("OELB"),x=n("7hqr"),v=x.isDimensionStacked,m=y.indexOf;function p(c){return!(isNaN(parseFloat(c.x))&&isNaN(parseFloat(c.y)))}function d(c){return!isNaN(parseFloat(c.x))&&!isNaN(parseFloat(c.y))}function u(c,h,g,A,b,S){var E=[],C=v(h,A),_=C?h.getCalculationInfo("stackResultDimension"):A,T=a(h,_,c),w=h.indicesOfNearest(_,T)[0];E[b]=h.get(g,w),E[S]=h.get(_,w);var O=h.get(A,w),I=f.getPrecision(h.get(A,w));return I=Math.min(I,20),I>=0&&(E[S]=+E[S].toFixed(I)),[E,O]}var s=y.curry,i={min:s(u,"min"),max:s(u,"max"),average:s(u,"average")};function t(c,h){var g=c.getData(),A=c.coordinateSystem;if(h&&!d(h)&&!y.isArray(h.coord)&&A){var b=A.dimensions,S=o(h,g,A,c);if(h=y.clone(h),h.type&&i[h.type]&&S.baseAxis&&S.valueAxis){var E=m(b,S.baseAxis.dim),C=m(b,S.valueAxis.dim),_=i[h.type](g,S.baseDataDim,S.valueDataDim,E,C);h.coord=_[0],h.value=_[1]}else{for(var T=[h.xAxis!=null?h.xAxis:h.radiusAxis,h.yAxis!=null?h.yAxis:h.angleAxis],w=0;w<2;w++)i[T[w]]&&(T[w]=a(g,g.mapDimension(b[w]),T[w]));h.coord=T}}return h}function o(c,h,g,A){var b={};return c.valueIndex!=null||c.valueDim!=null?(b.valueDataDim=c.valueIndex!=null?h.getDimension(c.valueIndex):c.valueDim,b.valueAxis=g.getAxis(e(A,b.valueDataDim)),b.baseAxis=g.getOtherAxis(b.valueAxis),b.baseDataDim=h.mapDimension(b.baseAxis.dim)):(b.baseAxis=A.getBaseAxis(),b.valueAxis=g.getOtherAxis(b.baseAxis),b.baseDataDim=h.mapDimension(b.baseAxis.dim),b.valueDataDim=h.mapDimension(b.valueAxis.dim)),b}function e(c,h){var g=c.getData(),A=g.dimensions;h=g.getDimension(h);for(var b=0;b<A.length;b++){var S=g.getDimensionInfo(A[b]);if(S.name===h)return S.coordDim}}function l(c,h){return c&&c.containData&&h.coord&&!p(h)?c.containData(h.coord):!0}function r(c,h,g,A){return A<2?c.coord&&c.coord[A]:c.value}function a(c,h,g){if(g==="average"){var A=0,b=0;return c.each(h,function(S,E){isNaN(S)||(A+=S,b++)}),A/b}else return g==="median"?c.getMedian(h):c.getDataExtent(h,!0)[g==="max"?1:0]}D.dataTransform=t,D.getAxisInfo=o,D.dataFilter=l,D.dimValueGetter=r,D.numCalculate=a},knOB:function(R,D,n){var y=n("bYtY"),f=n("hM6l");function x(m,p){f.call(this,"radius",m,p),this.type="category"}x.prototype={constructor:x,pointToData:function(m,p){return this.polar.pointToData(m,p)[this.dim==="radius"?0:1]},dataToRadius:f.prototype.dataToCoord,radiusToData:f.prototype.coordToData},y.inherits(x,f);var v=x;R.exports=v},ko1b:function(R,D,n){var y=n("bYtY"),f=n("T4UG"),x=n("Bsck"),v=n("Qxkt"),m=n("7aKB"),p=m.encodeHTML,d=m.addCommas,u=n("VaxA"),s=u.wrapTreePathInfo,i=f.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,l){var r={name:e.name,children:e.data};t(r);var a=e.levels||[];a=e.levels=o(a,l);var c=y.map(a||[],function(A){return new v(A,this,l)},this),h=x.createTree(r,this,null,g);function g(A){A.wrapMethod("getItemModel",function(b,S){var E=h.getNodeByDataIndex(S),C=c[E.depth];return C&&(b.parentModel=C),b})}return h.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var l=this.getData(),r=this.getRawValue(e),a=y.isArray(r)?d(r[0]):d(r),c=l.getName(e);return p(c+": "+a)},getDataParams:function(e){var l=f.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return l.treePathInfo=s(r,this),l},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},y.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var l=this._idIndexMap;l||(l=this._idIndexMap=y.createHashMap(),this._idIndexMapCount=0);var r=l.get(e);return r==null&&l.set(e,r=this._idIndexMapCount++),r},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var l=this.getRawData().tree.root;(!e||e!==l&&!l.contains(e))&&(this._viewRoot=l)}});function t(e){var l=0;y.each(e.children,function(a){t(a);var c=a.value;y.isArray(c)&&(c=c[0]),l+=c});var r=e.value;y.isArray(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=l),r<0&&(r=0),y.isArray(e.value)?e.value[0]=r:e.value=r}function o(e,l){var r=l.get("color");if(!r)return;e=e||[];var a;if(y.each(e,function(h){var g=new v(h),A=g.get("color");(g.get("itemStyle.color")||A&&A!=="none")&&(a=!0)}),!a){var c=e[0]||(e[0]={});c.color=r.slice()}return e}R.exports=i},kzFp:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y=D.pick=function(x,v){var m={};return v.forEach(function(p){m[p]=x[p]}),m}},kzvK:function(R,D,n){var y=n("sS/r"),f=y.extend({type:"timeline"});R.exports=f},"l+S1":function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="SearchOutlined";var d=D.a=f.forwardRef(p)},lE7J:function(R,D,n){var y=n("OELB"),f=y.round;function x(d,u,s,i){var t={},o=d[1]-d[0],e=t.interval=y.nice(o/u,!0);s!=null&&e<s&&(e=t.interval=s),i!=null&&e>i&&(e=t.interval=i);var l=t.intervalPrecision=v(e),r=t.niceTickExtent=[f(Math.ceil(d[0]/e)*e,l),f(Math.floor(d[1]/e)*e,l)];return p(r,d),t}function v(d){return y.getPrecisionSafe(d)+2}function m(d,u,s){d[u]=Math.max(Math.min(d[u],s[1]),s[0])}function p(d,u){!isFinite(d[0])&&(d[0]=u[0]),!isFinite(d[1])&&(d[1]=u[1]),m(d,0,u),m(d,1,u),d[0]>d[1]&&(d[0]=d[1])}D.intervalScaleNiceTicks=x,D.getIntervalPrecision=v,D.fixExtent=p},lELe:function(R,D,n){var y=n("bYtY");function f(x){var v=[];y.each(x.series,function(m){m&&m.type==="map"&&(v.push(m),m.map=m.map||m.mapType,y.defaults(m,m.mapLocation))})}R.exports=f},lLGD:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("nVfU"),v=x.layout,m=x.largeLayout;n("Wqna"),n("F7hV"),n("Z8zF"),n("Ae16"),y.registerLayout(y.PRIORITY.VISUAL.LAYOUT,f.curry(v,"bar")),y.registerLayout(y.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,m),y.registerVisual({seriesType:"bar",reset:function(p){p.getData().setVisual("legendSymbol","roundRect")}})},lMfh:function(R,D,n){(function(y,f){R.exports=f()})(this,function(){"use strict";function y(q){return y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(se){return typeof se}:function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se},y(q)}var f=/^\s+/,x=/\s+$/;function v(q,se){if(q=q||"",se=se||{},q instanceof v)return q;if(!(this instanceof v))return new v(q,se);var re=m(q);this._originalInput=q,this._r=re.r,this._g=re.g,this._b=re.b,this._a=re.a,this._roundA=Math.round(100*this._a)/100,this._format=se.format||re.format,this._gradientType=se.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=re.ok}v.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var se=this.toRgb();return(se.r*299+se.g*587+se.b*114)/1e3},getLuminance:function(){var se=this.toRgb(),re,xe,Oe,Me,Qe,Ve;return re=se.r/255,xe=se.g/255,Oe=se.b/255,re<=.03928?Me=re/12.92:Me=Math.pow((re+.055)/1.055,2.4),xe<=.03928?Qe=xe/12.92:Qe=Math.pow((xe+.055)/1.055,2.4),Oe<=.03928?Ve=Oe/12.92:Ve=Math.pow((Oe+.055)/1.055,2.4),.2126*Me+.7152*Qe+.0722*Ve},setAlpha:function(se){return this._a=I(se),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var se=s(this._r,this._g,this._b);return{h:se.h*360,s:se.s,v:se.v,a:this._a}},toHsvString:function(){var se=s(this._r,this._g,this._b),re=Math.round(se.h*360),xe=Math.round(se.s*100),Oe=Math.round(se.v*100);return this._a==1?"hsv("+re+", "+xe+"%, "+Oe+"%)":"hsva("+re+", "+xe+"%, "+Oe+"%, "+this._roundA+")"},toHsl:function(){var se=d(this._r,this._g,this._b);return{h:se.h*360,s:se.s,l:se.l,a:this._a}},toHslString:function(){var se=d(this._r,this._g,this._b),re=Math.round(se.h*360),xe=Math.round(se.s*100),Oe=Math.round(se.l*100);return this._a==1?"hsl("+re+", "+xe+"%, "+Oe+"%)":"hsla("+re+", "+xe+"%, "+Oe+"%, "+this._roundA+")"},toHex:function(se){return t(this._r,this._g,this._b,se)},toHexString:function(se){return"#"+this.toHex(se)},toHex8:function(se){return o(this._r,this._g,this._b,this._a,se)},toHex8String:function(se){return"#"+this.toHex8(se)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(k(this._r,255)*100)+"%",g:Math.round(k(this._g,255)*100)+"%",b:Math.round(k(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(k(this._r,255)*100)+"%, "+Math.round(k(this._g,255)*100)+"%, "+Math.round(k(this._b,255)*100)+"%)":"rgba("+Math.round(k(this._r,255)*100)+"%, "+Math.round(k(this._g,255)*100)+"%, "+Math.round(k(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:w[t(this._r,this._g,this._b,!0)]||!1},toFilter:function(se){var re="#"+e(this._r,this._g,this._b,this._a),xe=re,Oe=this._gradientType?"GradientType = 1, ":"";if(se){var Me=v(se);xe="#"+e(Me._r,Me._g,Me._b,Me._a)}return"progid:DXImageTransform.Microsoft.gradient("+Oe+"startColorstr="+re+",endColorstr="+xe+")"},toString:function(se){var re=!!se;se=se||this._format;var xe=!1,Oe=this._a<1&&this._a>=0,Me=!re&&Oe&&(se==="hex"||se==="hex6"||se==="hex3"||se==="hex4"||se==="hex8"||se==="name");return Me?se==="name"&&this._a===0?this.toName():this.toRgbString():(se==="rgb"&&(xe=this.toRgbString()),se==="prgb"&&(xe=this.toPercentageRgbString()),(se==="hex"||se==="hex6")&&(xe=this.toHexString()),se==="hex3"&&(xe=this.toHexString(!0)),se==="hex4"&&(xe=this.toHex8String(!0)),se==="hex8"&&(xe=this.toHex8String()),se==="name"&&(xe=this.toName()),se==="hsl"&&(xe=this.toHslString()),se==="hsv"&&(xe=this.toHsvString()),xe||this.toHexString())},clone:function(){return v(this.toString())},_applyModification:function(se,re){var xe=se.apply(null,[this].concat([].slice.call(re)));return this._r=xe._r,this._g=xe._g,this._b=xe._b,this.setAlpha(xe._a),this},lighten:function(){return this._applyModification(c,arguments)},brighten:function(){return this._applyModification(h,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(r,arguments)},greyscale:function(){return this._applyModification(a,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(se,re){return se.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(_,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(S,[3])},tetrad:function(){return this._applyCombination(S,[4])}},v.fromRatio=function(q,se){if(y(q)=="object"){var re={};for(var xe in q)q.hasOwnProperty(xe)&&(xe==="a"?re[xe]=q[xe]:re[xe]=U(q[xe]));q=re}return v(q,se)};function m(q){var se={r:0,g:0,b:0},re=1,xe=null,Oe=null,Me=null,Qe=!1,Ve=!1;return typeof q=="string"&&(q=G(q)),y(q)=="object"&&(Q(q.r)&&Q(q.g)&&Q(q.b)?(se=p(q.r,q.g,q.b),Qe=!0,Ve=String(q.r).substr(-1)==="%"?"prgb":"rgb"):Q(q.h)&&Q(q.s)&&Q(q.v)?(xe=U(q.s),Oe=U(q.v),se=i(q.h,xe,Oe),Qe=!0,Ve="hsv"):Q(q.h)&&Q(q.s)&&Q(q.l)&&(xe=U(q.s),Me=U(q.l),se=u(q.h,xe,Me),Qe=!0,Ve="hsl"),q.hasOwnProperty("a")&&(re=q.a)),re=I(re),{ok:Qe,format:q.format||Ve,r:Math.min(255,Math.max(se.r,0)),g:Math.min(255,Math.max(se.g,0)),b:Math.min(255,Math.max(se.b,0)),a:re}}function p(q,se,re){return{r:k(q,255)*255,g:k(se,255)*255,b:k(re,255)*255}}function d(q,se,re){q=k(q,255),se=k(se,255),re=k(re,255);var xe=Math.max(q,se,re),Oe=Math.min(q,se,re),Me,Qe,Ve=(xe+Oe)/2;if(xe==Oe)Me=Qe=0;else{var ut=xe-Oe;Qe=Ve>.5?ut/(2-xe-Oe):ut/(xe+Oe);switch(xe){case q:Me=(se-re)/ut+(se<re?6:0);break;case se:Me=(re-q)/ut+2;break;case re:Me=(q-se)/ut+4;break}Me/=6}return{h:Me,s:Qe,l:Ve}}function u(q,se,re){var xe,Oe,Me;q=k(q,360),se=k(se,100),re=k(re,100);function Qe(Fe,ue,et){return et<0&&(et+=1),et>1&&(et-=1),et<1/6?Fe+(ue-Fe)*6*et:et<1/2?ue:et<2/3?Fe+(ue-Fe)*(2/3-et)*6:Fe}if(se===0)xe=Oe=Me=re;else{var Ve=re<.5?re*(1+se):re+se-re*se,ut=2*re-Ve;xe=Qe(ut,Ve,q+1/3),Oe=Qe(ut,Ve,q),Me=Qe(ut,Ve,q-1/3)}return{r:xe*255,g:Oe*255,b:Me*255}}function s(q,se,re){q=k(q,255),se=k(se,255),re=k(re,255);var xe=Math.max(q,se,re),Oe=Math.min(q,se,re),Me,Qe,Ve=xe,ut=xe-Oe;if(Qe=xe===0?0:ut/xe,xe==Oe)Me=0;else{switch(xe){case q:Me=(se-re)/ut+(se<re?6:0);break;case se:Me=(re-q)/ut+2;break;case re:Me=(q-se)/ut+4;break}Me/=6}return{h:Me,s:Qe,v:Ve}}function i(q,se,re){q=k(q,360)*6,se=k(se,100),re=k(re,100);var xe=Math.floor(q),Oe=q-xe,Me=re*(1-se),Qe=re*(1-Oe*se),Ve=re*(1-(1-Oe)*se),ut=xe%6,Fe=[re,Qe,Me,Me,Ve,re][ut],ue=[Ve,re,re,Qe,Me,Me][ut],et=[Me,Me,Ve,re,re,Qe][ut];return{r:Fe*255,g:ue*255,b:et*255}}function t(q,se,re,xe){var Oe=[F(Math.round(q).toString(16)),F(Math.round(se).toString(16)),F(Math.round(re).toString(16))];return xe&&Oe[0].charAt(0)==Oe[0].charAt(1)&&Oe[1].charAt(0)==Oe[1].charAt(1)&&Oe[2].charAt(0)==Oe[2].charAt(1)?Oe[0].charAt(0)+Oe[1].charAt(0)+Oe[2].charAt(0):Oe.join("")}function o(q,se,re,xe,Oe){var Me=[F(Math.round(q).toString(16)),F(Math.round(se).toString(16)),F(Math.round(re).toString(16)),F(K(xe))];return Oe&&Me[0].charAt(0)==Me[0].charAt(1)&&Me[1].charAt(0)==Me[1].charAt(1)&&Me[2].charAt(0)==Me[2].charAt(1)&&Me[3].charAt(0)==Me[3].charAt(1)?Me[0].charAt(0)+Me[1].charAt(0)+Me[2].charAt(0)+Me[3].charAt(0):Me.join("")}function e(q,se,re,xe){var Oe=[F(K(xe)),F(Math.round(q).toString(16)),F(Math.round(se).toString(16)),F(Math.round(re).toString(16))];return Oe.join("")}v.equals=function(q,se){return!q||!se?!1:v(q).toRgbString()==v(se).toRgbString()},v.random=function(){return v.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function l(q,se){se=se===0?0:se||10;var re=v(q).toHsl();return re.s-=se/100,re.s=M(re.s),v(re)}function r(q,se){se=se===0?0:se||10;var re=v(q).toHsl();return re.s+=se/100,re.s=M(re.s),v(re)}function a(q){return v(q).desaturate(100)}function c(q,se){se=se===0?0:se||10;var re=v(q).toHsl();return re.l+=se/100,re.l=M(re.l),v(re)}function h(q,se){se=se===0?0:se||10;var re=v(q).toRgb();return re.r=Math.max(0,Math.min(255,re.r-Math.round(255*-(se/100)))),re.g=Math.max(0,Math.min(255,re.g-Math.round(255*-(se/100)))),re.b=Math.max(0,Math.min(255,re.b-Math.round(255*-(se/100)))),v(re)}function g(q,se){se=se===0?0:se||10;var re=v(q).toHsl();return re.l-=se/100,re.l=M(re.l),v(re)}function A(q,se){var re=v(q).toHsl(),xe=(re.h+se)%360;return re.h=xe<0?360+xe:xe,v(re)}function b(q){var se=v(q).toHsl();return se.h=(se.h+180)%360,v(se)}function S(q,se){if(isNaN(se)||se<=0)throw new Error("Argument to polyad must be a positive number");for(var re=v(q).toHsl(),xe=[v(q)],Oe=360/se,Me=1;Me<se;Me++)xe.push(v({h:(re.h+Me*Oe)%360,s:re.s,l:re.l}));return xe}function E(q){var se=v(q).toHsl(),re=se.h;return[v(q),v({h:(re+72)%360,s:se.s,l:se.l}),v({h:(re+216)%360,s:se.s,l:se.l})]}function C(q,se,re){se=se||6,re=re||30;var xe=v(q).toHsl(),Oe=360/re,Me=[v(q)];for(xe.h=(xe.h-(Oe*se>>1)+720)%360;--se;)xe.h=(xe.h+Oe)%360,Me.push(v(xe));return Me}function _(q,se){se=se||6;for(var re=v(q).toHsv(),xe=re.h,Oe=re.s,Me=re.v,Qe=[],Ve=1/se;se--;)Qe.push(v({h:xe,s:Oe,v:Me})),Me=(Me+Ve)%1;return Qe}v.mix=function(q,se,re){re=re===0?0:re||50;var xe=v(q).toRgb(),Oe=v(se).toRgb(),Me=re/100,Qe={r:(Oe.r-xe.r)*Me+xe.r,g:(Oe.g-xe.g)*Me+xe.g,b:(Oe.b-xe.b)*Me+xe.b,a:(Oe.a-xe.a)*Me+xe.a};return v(Qe)},v.readability=function(q,se){var re=v(q),xe=v(se);return(Math.max(re.getLuminance(),xe.getLuminance())+.05)/(Math.min(re.getLuminance(),xe.getLuminance())+.05)},v.isReadable=function(q,se,re){var xe=v.readability(q,se),Oe,Me;Me=!1,Oe=te(re);switch(Oe.level+Oe.size){case"AAsmall":case"AAAlarge":Me=xe>=4.5;break;case"AAlarge":Me=xe>=3;break;case"AAAsmall":Me=xe>=7;break}return Me},v.mostReadable=function(q,se,re){var xe=null,Oe=0,Me,Qe,Ve,ut;re=re||{},Qe=re.includeFallbackColors,Ve=re.level,ut=re.size;for(var Fe=0;Fe<se.length;Fe++)Me=v.readability(q,se[Fe]),Me>Oe&&(Oe=Me,xe=v(se[Fe]));return v.isReadable(q,xe,{level:Ve,size:ut})||!Qe?xe:(re.includeFallbackColors=!1,v.mostReadable(q,["#fff","#000"],re))};var T=v.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},w=v.hexNames=O(T);function O(q){var se={};for(var re in q)q.hasOwnProperty(re)&&(se[q[re]]=re);return se}function I(q){return q=parseFloat(q),(isNaN(q)||q<0||q>1)&&(q=1),q}function k(q,se){P(q)&&(q="100%");var re=X(q);return q=Math.min(se,Math.max(0,parseFloat(q))),re&&(q=parseInt(q*se,10)/100),Math.abs(q-se)<1e-6?1:q%se/parseFloat(se)}function M(q){return Math.min(1,Math.max(0,q))}function j(q){return parseInt(q,16)}function P(q){return typeof q=="string"&&q.indexOf(".")!=-1&&parseFloat(q)===1}function X(q){return typeof q=="string"&&q.indexOf("%")!=-1}function F(q){return q.length==1?"0"+q:""+q}function U(q){return q<=1&&(q=q*100+"%"),q}function K(q){return Math.round(parseFloat(q)*255).toString(16)}function z(q){return j(q)/255}var V=function(){var q="[-\\+]?\\d+%?",se="[-\\+]?\\d*\\.\\d+%?",re="(?:"+se+")|(?:"+q+")",xe="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?",Oe="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?";return{CSS_UNIT:new RegExp(re),rgb:new RegExp("rgb"+xe),rgba:new RegExp("rgba"+Oe),hsl:new RegExp("hsl"+xe),hsla:new RegExp("hsla"+Oe),hsv:new RegExp("hsv"+xe),hsva:new RegExp("hsva"+Oe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Q(q){return!!V.CSS_UNIT.exec(q)}function G(q){q=q.replace(f,"").replace(x,"").toLowerCase();var se=!1;if(T[q])q=T[q],se=!0;else if(q=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var re;return(re=V.rgb.exec(q))?{r:re[1],g:re[2],b:re[3]}:(re=V.rgba.exec(q))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=V.hsl.exec(q))?{h:re[1],s:re[2],l:re[3]}:(re=V.hsla.exec(q))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=V.hsv.exec(q))?{h:re[1],s:re[2],v:re[3]}:(re=V.hsva.exec(q))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=V.hex8.exec(q))?{r:j(re[1]),g:j(re[2]),b:j(re[3]),a:z(re[4]),format:se?"name":"hex8"}:(re=V.hex6.exec(q))?{r:j(re[1]),g:j(re[2]),b:j(re[3]),format:se?"name":"hex"}:(re=V.hex4.exec(q))?{r:j(re[1]+""+re[1]),g:j(re[2]+""+re[2]),b:j(re[3]+""+re[3]),a:z(re[4]+""+re[4]),format:se?"name":"hex8"}:(re=V.hex3.exec(q))?{r:j(re[1]+""+re[1]),g:j(re[2]+""+re[2]),b:j(re[3]+""+re[3]),format:se?"name":"hex"}:!1}function te(q){var se,re;return q=q||{level:"AA",size:"small"},se=(q.level||"AA").toUpperCase(),re=(q.size||"small").toLowerCase(),se!=="AA"&&se!=="AAA"&&(se="AA"),re!=="small"&&re!=="large"&&(re="small"),{level:se,size:re}}return v})},lNSK:function(R,D,n){"use strict";function y(ge){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(vr){return typeof vr}:y=function(vr){return vr&&typeof Symbol=="function"&&vr.constructor===Symbol&&vr!==Symbol.prototype?"symbol":typeof vr},y(ge)}Object.defineProperty(D,"__esModule",{value:!0}),D.deflateInit=Ge,D.deflateInit2=Xt,D.deflateReset=Gt,D.deflateResetKeep=fr,D.deflateSetHeader=Pt,D.deflate=pe,D.deflateEnd=oe,D.deflateSetDictionary=lt,D.deflateInfo=D.Z_DEFLATED=D.Z_UNKNOWN=D.Z_DEFAULT_STRATEGY=D.Z_FIXED=D.Z_RLE=D.Z_HUFFMAN_ONLY=D.Z_FILTERED=D.Z_DEFAULT_COMPRESSION=D.Z_BUF_ERROR=D.Z_DATA_ERROR=D.Z_STREAM_ERROR=D.Z_STREAM_END=D.Z_OK=D.Z_BLOCK=D.Z_FINISH=D.Z_FULL_FLUSH=D.Z_PARTIAL_FLUSH=D.Z_NO_FLUSH=void 0;var f=s(n("6BzB")),x=s(n("c5fP")),v=d(n("xlC8")),m=d(n("QV2g")),p=d(n("xSIq"));function d(ge){return ge&&ge.__esModule?ge:{default:ge}}function u(){if(typeof WeakMap!="function")return null;var ge=new WeakMap;return u=function(){return ge},ge}function s(ge){if(ge&&ge.__esModule)return ge;if(ge===null||y(ge)!=="object"&&typeof ge!="function")return{default:ge};var Ht=u();if(Ht&&Ht.has(ge))return Ht.get(ge);var vr={},At=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ir in ge)if(Object.prototype.hasOwnProperty.call(ge,ir)){var lr=At?Object.getOwnPropertyDescriptor(ge,ir):null;lr&&(lr.get||lr.set)?Object.defineProperty(vr,ir,lr):vr[ir]=ge[ir]}return vr.default=ge,Ht&&Ht.set(ge,vr),vr}var i=0;D.Z_NO_FLUSH=i;var t=1;D.Z_PARTIAL_FLUSH=t;var o=3;D.Z_FULL_FLUSH=o;var e=4;D.Z_FINISH=e;var l=5;D.Z_BLOCK=l;var r=0;D.Z_OK=r;var a=1;D.Z_STREAM_END=a;var c=-2;D.Z_STREAM_ERROR=c;var h=-3;D.Z_DATA_ERROR=h;var g=-5;D.Z_BUF_ERROR=g;var A=-1;D.Z_DEFAULT_COMPRESSION=A;var b=1;D.Z_FILTERED=b;var S=2;D.Z_HUFFMAN_ONLY=S;var E=3;D.Z_RLE=E;var C=4;D.Z_FIXED=C;var _=0;D.Z_DEFAULT_STRATEGY=_;var T=2;D.Z_UNKNOWN=T;var w=8;D.Z_DEFLATED=w;var O=9,I=15,k=8,M=29,j=256,P=j+1+M,X=30,F=19,U=2*P+1,K=15,z=3,V=258,Q=V+z+1,G=32,te=42,q=69,se=73,re=91,xe=103,Oe=113,Me=666,Qe=1,Ve=2,ut=3,Fe=4,ue=3;function et(ge,Ht){return ge.msg=p.default[Ht],Ht}function he(ge){return(ge<<1)-(ge>4?9:0)}function J(ge){for(var Ht=ge.length;--Ht>=0;)ge[Ht]=0}function Y(ge){var Ht=ge.state,vr=Ht.pending;if(vr>ge.avail_out&&(vr=ge.avail_out),vr===0)return;f.arraySet(ge.output,Ht.pending_buf,Ht.pending_out,vr,ge.next_out),ge.next_out+=vr,Ht.pending_out+=vr,ge.total_out+=vr,ge.avail_out-=vr,Ht.pending-=vr,Ht.pending===0&&(Ht.pending_out=0)}function $(ge,Ht){x._tr_flush_block(ge,ge.block_start>=0?ge.block_start:-1,ge.strstart-ge.block_start,Ht),ge.block_start=ge.strstart,Y(ge.strm)}function de(ge,Ht){ge.pending_buf[ge.pending++]=Ht}function be(ge,Ht){ge.pending_buf[ge.pending++]=Ht>>>8&255,ge.pending_buf[ge.pending++]=Ht&255}function Ce(ge,Ht,vr,At){var ir=ge.avail_in;return ir>At&&(ir=At),ir===0?0:(ge.avail_in-=ir,f.arraySet(Ht,ge.input,ge.next_in,ir,vr),ge.state.wrap===1?ge.adler=(0,v.default)(ge.adler,Ht,ir,vr):ge.state.wrap===2&&(ge.adler=(0,m.default)(ge.adler,Ht,ir,vr)),ge.next_in+=ir,ge.total_in+=ir,ir)}function Be(ge,Ht){var vr=ge.max_chain_length,At=ge.strstart,ir,lr,dn=ge.prev_length,Ft=ge.nice_match,ur=ge.strstart>ge.w_size-Q?ge.strstart-(ge.w_size-Q):0,Jt=ge.window,pt=ge.w_mask,at=ge.prev,Pr=ge.strstart+V,un=Jt[At+dn-1],_n=Jt[At+dn];ge.prev_length>=ge.good_match&&(vr>>=2),Ft>ge.lookahead&&(Ft=ge.lookahead);do{if(ir=Ht,Jt[ir+dn]!==_n||Jt[ir+dn-1]!==un||Jt[ir]!==Jt[At]||Jt[++ir]!==Jt[At+1])continue;At+=2,ir++;do;while(Jt[++At]===Jt[++ir]&&Jt[++At]===Jt[++ir]&&Jt[++At]===Jt[++ir]&&Jt[++At]===Jt[++ir]&&Jt[++At]===Jt[++ir]&&Jt[++At]===Jt[++ir]&&Jt[++At]===Jt[++ir]&&Jt[++At]===Jt[++ir]&&At<Pr);if(lr=V-(Pr-At),At=Pr-V,lr>dn){if(ge.match_start=Ht,dn=lr,lr>=Ft)break;un=Jt[At+dn-1],_n=Jt[At+dn]}}while((Ht=at[Ht&pt])>ur&&--vr!==0);return dn<=ge.lookahead?dn:ge.lookahead}function fe(ge){var Ht=ge.w_size,vr,At,ir,lr,dn;do{if(lr=ge.window_size-ge.lookahead-ge.strstart,ge.strstart>=Ht+(Ht-Q)){f.arraySet(ge.window,ge.window,Ht,Ht,0),ge.match_start-=Ht,ge.strstart-=Ht,ge.block_start-=Ht,At=ge.hash_size,vr=At;do ir=ge.head[--vr],ge.head[vr]=ir>=Ht?ir-Ht:0;while(--At);At=Ht,vr=At;do ir=ge.prev[--vr],ge.prev[vr]=ir>=Ht?ir-Ht:0;while(--At);lr+=Ht}if(ge.strm.avail_in===0)break;if(At=Ce(ge.strm,ge.window,ge.strstart+ge.lookahead,lr),ge.lookahead+=At,ge.lookahead+ge.insert>=z)for(dn=ge.strstart-ge.insert,ge.ins_h=ge.window[dn],ge.ins_h=(ge.ins_h<<ge.hash_shift^ge.window[dn+1])&ge.hash_mask;ge.insert&&!(ge.ins_h=(ge.ins_h<<ge.hash_shift^ge.window[dn+z-1])&ge.hash_mask,ge.prev[dn&ge.w_mask]=ge.head[ge.ins_h],ge.head[ge.ins_h]=dn,dn++,ge.insert--,ge.lookahead+ge.insert<z););}while(ge.lookahead<Q&&ge.strm.avail_in!==0)}function we(ge,Ht){var vr=65535;for(vr>ge.pending_buf_size-5&&(vr=ge.pending_buf_size-5);;){if(ge.lookahead<=1){if(fe(ge),ge.lookahead===0&&Ht===i)return Qe;if(ge.lookahead===0)break}ge.strstart+=ge.lookahead,ge.lookahead=0;var At=ge.block_start+vr;if((ge.strstart===0||ge.strstart>=At)&&(ge.lookahead=ge.strstart-At,ge.strstart=At,$(ge,!1),ge.strm.avail_out===0))return Qe;if(ge.strstart-ge.block_start>=ge.w_size-Q&&($(ge,!1),ge.strm.avail_out===0))return Qe}return ge.insert=0,Ht===e?($(ge,!0),ge.strm.avail_out===0?ut:Fe):(ge.strstart>ge.block_start&&($(ge,!1),ge.strm.avail_out===0),Qe)}function Re(ge,Ht){for(var vr,At;;){if(ge.lookahead<Q){if(fe(ge),ge.lookahead<Q&&Ht===i)return Qe;if(ge.lookahead===0)break}if(vr=0,ge.lookahead>=z&&(ge.ins_h=(ge.ins_h<<ge.hash_shift^ge.window[ge.strstart+z-1])&ge.hash_mask,vr=ge.prev[ge.strstart&ge.w_mask]=ge.head[ge.ins_h],ge.head[ge.ins_h]=ge.strstart),vr!==0&&ge.strstart-vr<=ge.w_size-Q&&(ge.match_length=Be(ge,vr)),ge.match_length>=z)if(At=x._tr_tally(ge,ge.strstart-ge.match_start,ge.match_length-z),ge.lookahead-=ge.match_length,ge.match_length<=ge.max_lazy_match&&ge.lookahead>=z){ge.match_length--;do ge.strstart++,ge.ins_h=(ge.ins_h<<ge.hash_shift^ge.window[ge.strstart+z-1])&ge.hash_mask,vr=ge.prev[ge.strstart&ge.w_mask]=ge.head[ge.ins_h],ge.head[ge.ins_h]=ge.strstart;while(--ge.match_length!==0);ge.strstart++}else ge.strstart+=ge.match_length,ge.match_length=0,ge.ins_h=ge.window[ge.strstart],ge.ins_h=(ge.ins_h<<ge.hash_shift^ge.window[ge.strstart+1])&ge.hash_mask;else At=x._tr_tally(ge,0,ge.window[ge.strstart]),ge.lookahead--,ge.strstart++;if(At&&($(ge,!1),ge.strm.avail_out===0))return Qe}return ge.insert=ge.strstart<z-1?ge.strstart:z-1,Ht===e?($(ge,!0),ge.strm.avail_out===0?ut:Fe):ge.last_lit&&($(ge,!1),ge.strm.avail_out===0)?Qe:Ve}function rt(ge,Ht){for(var vr,At,ir;;){if(ge.lookahead<Q){if(fe(ge),ge.lookahead<Q&&Ht===i)return Qe;if(ge.lookahead===0)break}if(vr=0,ge.lookahead>=z&&(ge.ins_h=(ge.ins_h<<ge.hash_shift^ge.window[ge.strstart+z-1])&ge.hash_mask,vr=ge.prev[ge.strstart&ge.w_mask]=ge.head[ge.ins_h],ge.head[ge.ins_h]=ge.strstart),ge.prev_length=ge.match_length,ge.prev_match=ge.match_start,ge.match_length=z-1,vr!==0&&ge.prev_length<ge.max_lazy_match&&ge.strstart-vr<=ge.w_size-Q&&(ge.match_length=Be(ge,vr),ge.match_length<=5&&(ge.strategy===b||ge.match_length===z&&ge.strstart-ge.match_start>4096)&&(ge.match_length=z-1)),ge.prev_length>=z&&ge.match_length<=ge.prev_length){ir=ge.strstart+ge.lookahead-z,At=x._tr_tally(ge,ge.strstart-1-ge.prev_match,ge.prev_length-z),ge.lookahead-=ge.prev_length-1,ge.prev_length-=2;do++ge.strstart<=ir&&(ge.ins_h=(ge.ins_h<<ge.hash_shift^ge.window[ge.strstart+z-1])&ge.hash_mask,vr=ge.prev[ge.strstart&ge.w_mask]=ge.head[ge.ins_h],ge.head[ge.ins_h]=ge.strstart);while(--ge.prev_length!==0);if(ge.match_available=0,ge.match_length=z-1,ge.strstart++,At&&($(ge,!1),ge.strm.avail_out===0))return Qe}else if(ge.match_available){if(At=x._tr_tally(ge,0,ge.window[ge.strstart-1]),At&&$(ge,!1),ge.strstart++,ge.lookahead--,ge.strm.avail_out===0)return Qe}else ge.match_available=1,ge.strstart++,ge.lookahead--}return ge.match_available&&(At=x._tr_tally(ge,0,ge.window[ge.strstart-1]),ge.match_available=0),ge.insert=ge.strstart<z-1?ge.strstart:z-1,Ht===e?($(ge,!0),ge.strm.avail_out===0?ut:Fe):ge.last_lit&&($(ge,!1),ge.strm.avail_out===0)?Qe:Ve}function St(ge,Ht){for(var vr,At,ir,lr,dn=ge.window;;){if(ge.lookahead<=V){if(fe(ge),ge.lookahead<=V&&Ht===i)return Qe;if(ge.lookahead===0)break}if(ge.match_length=0,ge.lookahead>=z&&ge.strstart>0&&(ir=ge.strstart-1,At=dn[ir],At===dn[++ir]&&At===dn[++ir]&&At===dn[++ir])){lr=ge.strstart+V;do;while(At===dn[++ir]&&At===dn[++ir]&&At===dn[++ir]&&At===dn[++ir]&&At===dn[++ir]&&At===dn[++ir]&&At===dn[++ir]&&At===dn[++ir]&&ir<lr);ge.match_length=V-(lr-ir),ge.match_length>ge.lookahead&&(ge.match_length=ge.lookahead)}if(ge.match_length>=z?(vr=x._tr_tally(ge,1,ge.match_length-z),ge.lookahead-=ge.match_length,ge.strstart+=ge.match_length,ge.match_length=0):(vr=x._tr_tally(ge,0,ge.window[ge.strstart]),ge.lookahead--,ge.strstart++),vr&&($(ge,!1),ge.strm.avail_out===0))return Qe}return ge.insert=0,Ht===e?($(ge,!0),ge.strm.avail_out===0?ut:Fe):ge.last_lit&&($(ge,!1),ge.strm.avail_out===0)?Qe:Ve}function ft(ge,Ht){for(var vr;;){if(ge.lookahead===0&&(fe(ge),ge.lookahead===0)){if(Ht===i)return Qe;break}if(ge.match_length=0,vr=x._tr_tally(ge,0,ge.window[ge.strstart]),ge.lookahead--,ge.strstart++,vr&&($(ge,!1),ge.strm.avail_out===0))return Qe}return ge.insert=0,Ht===e?($(ge,!0),ge.strm.avail_out===0?ut:Fe):ge.last_lit&&($(ge,!1),ge.strm.avail_out===0)?Qe:Ve}function He(ge,Ht,vr,At,ir){this.good_length=ge,this.max_lazy=Ht,this.nice_length=vr,this.max_chain=At,this.func=ir}var er;er=[new He(0,0,0,0,we),new He(4,4,8,4,Re),new He(4,5,16,8,Re),new He(4,6,32,32,Re),new He(4,4,16,16,rt),new He(8,16,32,32,rt),new He(8,16,128,128,rt),new He(8,32,128,256,rt),new He(32,128,258,1024,rt),new He(32,258,258,4096,rt)];function ct(ge){ge.window_size=2*ge.w_size,J(ge.head),ge.max_lazy_match=er[ge.level].max_lazy,ge.good_match=er[ge.level].good_length,ge.nice_match=er[ge.level].nice_length,ge.max_chain_length=er[ge.level].max_chain,ge.strstart=0,ge.block_start=0,ge.lookahead=0,ge.insert=0,ge.match_length=ge.prev_length=z-1,ge.match_available=0,ge.ins_h=0}function Kt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=w,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new f.Buf16(U*2),this.dyn_dtree=new f.Buf16((2*X+1)*2),this.bl_tree=new f.Buf16((2*F+1)*2),J(this.dyn_ltree),J(this.dyn_dtree),J(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new f.Buf16(K+1),this.heap=new f.Buf16(2*P+1),J(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new f.Buf16(2*P+1),J(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function fr(ge){var Ht;return!ge||!ge.state?et(ge,c):(ge.total_in=ge.total_out=0,ge.data_type=T,Ht=ge.state,Ht.pending=0,Ht.pending_out=0,Ht.wrap<0&&(Ht.wrap=-Ht.wrap),Ht.status=Ht.wrap?te:Oe,ge.adler=Ht.wrap===2?0:1,Ht.last_flush=i,x._tr_init(Ht),r)}function Gt(ge){var Ht=fr(ge);return Ht===r&&ct(ge.state),Ht}function Pt(ge,Ht){return!ge||!ge.state||ge.state.wrap!==2?c:(ge.state.gzhead=Ht,r)}function Xt(ge,Ht,vr,At,ir,lr){if(!ge)return c;var dn=1;if(Ht===A&&(Ht=6),At<0?(dn=0,At=-At):At>15&&(dn=2,At-=16),ir<1||ir>O||vr!==w||At<8||At>15||Ht<0||Ht>9||lr<0||lr>C)return et(ge,c);At===8&&(At=9);var Ft=new Kt;return ge.state=Ft,Ft.strm=ge,Ft.wrap=dn,Ft.gzhead=null,Ft.w_bits=At,Ft.w_size=1<<Ft.w_bits,Ft.w_mask=Ft.w_size-1,Ft.hash_bits=ir+7,Ft.hash_size=1<<Ft.hash_bits,Ft.hash_mask=Ft.hash_size-1,Ft.hash_shift=~~((Ft.hash_bits+z-1)/z),Ft.window=new f.Buf8(Ft.w_size*2),Ft.head=new f.Buf16(Ft.hash_size),Ft.prev=new f.Buf16(Ft.w_size),Ft.lit_bufsize=1<<ir+6,Ft.pending_buf_size=Ft.lit_bufsize*4,Ft.pending_buf=new f.Buf8(Ft.pending_buf_size),Ft.d_buf=1*Ft.lit_bufsize,Ft.l_buf=(1+2)*Ft.lit_bufsize,Ft.level=Ht,Ft.strategy=lr,Ft.method=vr,Gt(ge)}function Ge(ge,Ht){return Xt(ge,Ht,w,I,k,_)}function pe(ge,Ht){var vr,At,ir,lr;if(!ge||!ge.state||Ht>l||Ht<0)return ge?et(ge,c):c;if(At=ge.state,!ge.output||!ge.input&&ge.avail_in!==0||At.status===Me&&Ht!==e)return et(ge,ge.avail_out===0?g:c);if(At.strm=ge,vr=At.last_flush,At.last_flush=Ht,At.status===te)if(At.wrap===2)ge.adler=0,de(At,31),de(At,139),de(At,8),At.gzhead?(de(At,(At.gzhead.text?1:0)+(At.gzhead.hcrc?2:0)+(At.gzhead.extra?4:0)+(At.gzhead.name?8:0)+(At.gzhead.comment?16:0)),de(At,At.gzhead.time&255),de(At,At.gzhead.time>>8&255),de(At,At.gzhead.time>>16&255),de(At,At.gzhead.time>>24&255),de(At,At.level===9?2:At.strategy>=S||At.level<2?4:0),de(At,At.gzhead.os&255),At.gzhead.extra&&At.gzhead.extra.length&&(de(At,At.gzhead.extra.length&255),de(At,At.gzhead.extra.length>>8&255)),At.gzhead.hcrc&&(ge.adler=(0,m.default)(ge.adler,At.pending_buf,At.pending,0)),At.gzindex=0,At.status=q):(de(At,0),de(At,0),de(At,0),de(At,0),de(At,0),de(At,At.level===9?2:At.strategy>=S||At.level<2?4:0),de(At,ue),At.status=Oe);else{var dn=w+(At.w_bits-8<<4)<<8,Ft=-1;At.strategy>=S||At.level<2?Ft=0:At.level<6?Ft=1:At.level===6?Ft=2:Ft=3,dn|=Ft<<6,At.strstart!==0&&(dn|=G),dn+=31-dn%31,At.status=Oe,be(At,dn),At.strstart!==0&&(be(At,ge.adler>>>16),be(At,ge.adler&65535)),ge.adler=1}if(At.status===q)if(At.gzhead.extra){for(ir=At.pending;At.gzindex<(At.gzhead.extra.length&65535)&&!(At.pending===At.pending_buf_size&&(At.gzhead.hcrc&&At.pending>ir&&(ge.adler=(0,m.default)(ge.adler,At.pending_buf,At.pending-ir,ir)),Y(ge),ir=At.pending,At.pending===At.pending_buf_size));)de(At,At.gzhead.extra[At.gzindex]&255),At.gzindex++;At.gzhead.hcrc&&At.pending>ir&&(ge.adler=(0,m.default)(ge.adler,At.pending_buf,At.pending-ir,ir)),At.gzindex===At.gzhead.extra.length&&(At.gzindex=0,At.status=se)}else At.status=se;if(At.status===se)if(At.gzhead.name){ir=At.pending;do{if(At.pending===At.pending_buf_size&&(At.gzhead.hcrc&&At.pending>ir&&(ge.adler=(0,m.default)(ge.adler,At.pending_buf,At.pending-ir,ir)),Y(ge),ir=At.pending,At.pending===At.pending_buf_size)){lr=1;break}At.gzindex<At.gzhead.name.length?lr=At.gzhead.name.charCodeAt(At.gzindex++)&255:lr=0,de(At,lr)}while(lr!==0);At.gzhead.hcrc&&At.pending>ir&&(ge.adler=(0,m.default)(ge.adler,At.pending_buf,At.pending-ir,ir)),lr===0&&(At.gzindex=0,At.status=re)}else At.status=re;if(At.status===re)if(At.gzhead.comment){ir=At.pending;do{if(At.pending===At.pending_buf_size&&(At.gzhead.hcrc&&At.pending>ir&&(ge.adler=(0,m.default)(ge.adler,At.pending_buf,At.pending-ir,ir)),Y(ge),ir=At.pending,At.pending===At.pending_buf_size)){lr=1;break}At.gzindex<At.gzhead.comment.length?lr=At.gzhead.comment.charCodeAt(At.gzindex++)&255:lr=0,de(At,lr)}while(lr!==0);At.gzhead.hcrc&&At.pending>ir&&(ge.adler=(0,m.default)(ge.adler,At.pending_buf,At.pending-ir,ir)),lr===0&&(At.status=xe)}else At.status=xe;if(At.status===xe&&(At.gzhead.hcrc?(At.pending+2>At.pending_buf_size&&Y(ge),At.pending+2<=At.pending_buf_size&&(de(At,ge.adler&255),de(At,ge.adler>>8&255),ge.adler=0,At.status=Oe)):At.status=Oe),At.pending!==0){if(Y(ge),ge.avail_out===0)return At.last_flush=-1,r}else if(ge.avail_in===0&&he(Ht)<=he(vr)&&Ht!==e)return et(ge,g);if(At.status===Me&&ge.avail_in!==0)return et(ge,g);if(ge.avail_in!==0||At.lookahead!==0||Ht!==i&&At.status!==Me){var ur=At.strategy===S?ft(At,Ht):At.strategy===E?St(At,Ht):er[At.level].func(At,Ht);if((ur===ut||ur===Fe)&&(At.status=Me),ur===Qe||ur===ut)return ge.avail_out===0&&(At.last_flush=-1),r;if(ur===Ve&&(Ht===t?x._tr_align(At):Ht!==l&&(x._tr_stored_block(At,0,0,!1),Ht===o&&(J(At.head),At.lookahead===0&&(At.strstart=0,At.block_start=0,At.insert=0))),Y(ge),ge.avail_out===0))return At.last_flush=-1,r}return Ht!==e?r:At.wrap<=0?a:(At.wrap===2?(de(At,ge.adler&255),de(At,ge.adler>>8&255),de(At,ge.adler>>16&255),de(At,ge.adler>>24&255),de(At,ge.total_in&255),de(At,ge.total_in>>8&255),de(At,ge.total_in>>16&255),de(At,ge.total_in>>24&255)):(be(At,ge.adler>>>16),be(At,ge.adler&65535)),Y(ge),At.wrap>0&&(At.wrap=-At.wrap),At.pending!==0?r:a)}function oe(ge){var Ht;return!ge||!ge.state?c:(Ht=ge.state.status,Ht!==te&&Ht!==q&&Ht!==se&&Ht!==re&&Ht!==xe&&Ht!==Oe&&Ht!==Me?et(ge,c):(ge.state=null,Ht===Oe?et(ge,h):r))}function lt(ge,Ht){var vr=Ht.length,At,ir,lr,dn,Ft,ur,Jt,pt;if(!ge||!ge.state)return c;if(At=ge.state,dn=At.wrap,dn===2||dn===1&&At.status!==te||At.lookahead)return c;for(dn===1&&(ge.adler=(0,v.default)(ge.adler,Ht,vr,0)),At.wrap=0,vr>=At.w_size&&(dn===0&&(J(At.head),At.strstart=0,At.block_start=0,At.insert=0),pt=new f.Buf8(At.w_size),f.arraySet(pt,Ht,vr-At.w_size,At.w_size,0),Ht=pt,vr=At.w_size),Ft=ge.avail_in,ur=ge.next_in,Jt=ge.input,ge.avail_in=vr,ge.next_in=0,ge.input=Ht,fe(At);At.lookahead>=z;){ir=At.strstart,lr=At.lookahead-(z-1);do At.ins_h=(At.ins_h<<At.hash_shift^At.window[ir+z-1])&At.hash_mask,At.prev[ir&At.w_mask]=At.head[At.ins_h],At.head[At.ins_h]=ir,ir++;while(--lr);At.strstart=ir,At.lookahead=z-1,fe(At)}return At.strstart+=At.lookahead,At.block_start=At.strstart,At.insert=At.lookahead,At.lookahead=0,At.match_length=At.prev_length=z-1,At.match_available=0,ge.next_in=ur,ge.input=Jt,ge.avail_in=Ft,At.wrap=dn,r}var qe="pako deflate (from Nodeca project)";D.deflateInfo=qe},lOQZ:function(R,D,n){var y=n("QBsz"),f=n("U/Mo"),x=f.getSymbolSize,v=f.getNodeGlobalScale,m=Math.PI,p=[];function d(s,i){var t=s.coordinateSystem;if(t&&t.type!=="view")return;var o=t.getBoundingRect(),e=s.getData(),l=e.graph,r=o.width/2+o.x,a=o.height/2+o.y,c=Math.min(o.width,o.height)/2,h=e.count();if(e.setLayout({cx:r,cy:a}),!h)return;u[i](s,t,l,e,c,r,a,h),l.eachEdge(function(g){var A=g.getModel().get("lineStyle.curveness")||0,b=y.clone(g.node1.getLayout()),S=y.clone(g.node2.getLayout()),E,C=(b[0]+S[0])/2,_=(b[1]+S[1])/2;+A&&(A*=3,E=[r*A+C*(1-A),a*A+_*(1-A)]),g.setLayout([b,S,E])})}var u={value:function(s,i,t,o,e,l,r,a){var c=0,h=o.getSum("value"),g=Math.PI*2/(h||a);t.eachNode(function(A){var b=A.getValue("value"),S=g*(h?b:1)/2;c+=S,A.setLayout([e*Math.cos(c)+l,e*Math.sin(c)+r]),c+=S})},symbolSize:function(s,i,t,o,e,l,r,a){var c=0;p.length=a;var h=v(s);t.eachNode(function(b){var S=x(b);isNaN(S)&&(S=2),S<0&&(S=0),S*=h;var E=Math.asin(S/2/e);isNaN(E)&&(E=m/2),p[b.dataIndex]=E,c+=E*2});var g=(2*m-c)/a/2,A=0;t.eachNode(function(b){var S=g+p[b.dataIndex];A+=S,b.setLayout([e*Math.cos(A)+l,e*Math.sin(A)+r]),A+=S})}};D.circularLayout=d},lPiR:function(R,D,n){(function(y,f){R.exports=D=f(n("Ib8C"))})(this,function(y){return function(f){var x=y,v=x.lib,m=v.WordArray,p=v.Hasher,d=x.algo,u=[],s=[];(function(){function o(a){for(var c=f.sqrt(a),h=2;h<=c;h++)if(!(a%h))return!1;return!0}function e(a){return(a-(a|0))*4294967296|0}for(var l=2,r=0;r<64;)o(l)&&(r<8&&(u[r]=e(f.pow(l,1/2))),s[r]=e(f.pow(l,1/3)),r++),l++})();var i=[],t=d.SHA256=p.extend({_doReset:function(){this._hash=new m.init(u.slice(0))},_doProcessBlock:function(e,l){for(var r=this._hash.words,a=r[0],c=r[1],h=r[2],g=r[3],A=r[4],b=r[5],S=r[6],E=r[7],C=0;C<64;C++){if(C<16)i[C]=e[l+C]|0;else{var _=i[C-15],T=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,w=i[C-2],O=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;i[C]=T+i[C-7]+O+i[C-16]}var I=A&b^~A&S,k=a&c^a&h^c&h,M=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),j=(A<<26|A>>>6)^(A<<21|A>>>11)^(A<<7|A>>>25),P=E+j+I+s[C]+i[C],X=M+k;E=S,S=b,b=A,A=g+P|0,g=h,h=c,c=a,a=P+X|0}r[0]=r[0]+a|0,r[1]=r[1]+c|0,r[2]=r[2]+h|0,r[3]=r[3]+g|0,r[4]=r[4]+A|0,r[5]=r[5]+b|0,r[6]=r[6]+S|0,r[7]=r[7]+E|0},_doFinalize:function(){var e=this._data,l=e.words,r=this._nDataBytes*8,a=e.sigBytes*8;return l[a>>>5]|=128<<24-a%32,l[(a+64>>>9<<4)+14]=f.floor(r/4294967296),l[(a+64>>>9<<4)+15]=r,e.sigBytes=l.length*4,this._process(),this._hash},clone:function(){var e=p.clone.call(this);return e._hash=this._hash.clone(),e}});x.SHA256=p._createHelper(t),x.HmacSHA256=p._createHmacHelper(t)}(Math),y.SHA256})},lSCD:function(R,D,n){var y=n("NykK"),f=n("GoyQ"),x="[object AsyncFunction]",v="[object Function]",m="[object GeneratorFunction]",p="[object Proxy]";function d(u){if(!f(u))return!1;var s=y(u);return s==v||s==m||s==x||s==p}R.exports=d},lUTK:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("x54q"),v=n.n(x),m=n("5Dmo")},lZu9:function(R,D,n){(function(y){y(n("VrN/"),n("1eCo"),n("8EBN"))})(function(y){"use strict";y.defineMode("markdown",function(f,x){var v=y.getMode(f,"text/html"),m=v.name=="null";function p(K){if(y.findModeByName){var z=y.findModeByName(K);z&&(K=z.mime||z.mimes[0])}var V=y.getMode(f,K);return V.name=="null"?null:V}x.highlightFormatting===void 0&&(x.highlightFormatting=!1),x.maxBlockquoteDepth===void 0&&(x.maxBlockquoteDepth=0),x.taskLists===void 0&&(x.taskLists=!1),x.strikethrough===void 0&&(x.strikethrough=!1),x.emoji===void 0&&(x.emoji=!1),x.fencedCodeBlockHighlighting===void 0&&(x.fencedCodeBlockHighlighting=!0),x.fencedCodeBlockDefaultMode===void 0&&(x.fencedCodeBlockDefaultMode="text/plain"),x.xml===void 0&&(x.xml=!0),x.tokenTypeOverrides===void 0&&(x.tokenTypeOverrides={});var d={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var u in d)d.hasOwnProperty(u)&&x.tokenTypeOverrides[u]&&(d[u]=x.tokenTypeOverrides[u]);var s=/^([*\-_])(?:\s*\1){2,}\s*$/,i=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,t=/^\[(x| )\](?=\s)/i,o=x.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,e=/^ {0,3}(?:\={1,}|-{2,})\s*$/,l=/^[^#!\[\]*_\\<>` "'(~:]+/,r=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,a=/^\s*\[[^\]]+?\]:.*$/,c=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,h=" ";function g(K,z,V){return z.f=z.inline=V,V(K,z)}function A(K,z,V){return z.f=z.block=V,V(K,z)}function b(K){return!K||!/\S/.test(K.string)}function S(K){if(K.linkTitle=!1,K.linkHref=!1,K.linkText=!1,K.em=!1,K.strong=!1,K.strikethrough=!1,K.quote=0,K.indentedCode=!1,K.f==C){var z=m;if(!z){var V=y.innerMode(v,K.htmlState);z=V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText}z&&(K.f=O,K.block=E,K.htmlState=null)}return K.trailingSpace=0,K.trailingSpaceNewLine=!1,K.prevLine=K.thisLine,K.thisLine={stream:null},null}function E(K,z){var V=K.column()===z.indentation,Q=b(z.prevLine.stream),G=z.indentedCode,te=z.prevLine.hr,q=z.list!==!1,se=(z.listStack[z.listStack.length-1]||0)+3;z.indentedCode=!1;var re=z.indentation;if(z.indentationDiff===null&&(z.indentationDiff=z.indentation,q)){for(z.list=null;re<z.listStack[z.listStack.length-1];)z.listStack.pop(),z.listStack.length?z.indentation=z.listStack[z.listStack.length-1]:z.list=!1;z.list!==!1&&(z.indentationDiff=re-z.listStack[z.listStack.length-1])}var xe=!Q&&!te&&!z.prevLine.header&&(!q||!G)&&!z.prevLine.fencedCodeEnd,Oe=(z.list===!1||te||Q)&&z.indentation<=se&&K.match(s),Me=null;if(z.indentationDiff>=4&&(G||z.prevLine.fencedCodeEnd||z.prevLine.header||Q))return K.skipToEnd(),z.indentedCode=!0,d.code;if(K.eatSpace())return null;if(V&&z.indentation<=se&&(Me=K.match(o))&&Me[1].length<=6)return z.quote=0,z.header=Me[1].length,z.thisLine.header=!0,x.highlightFormatting&&(z.formatting="header"),z.f=z.inline,T(z);if(z.indentation<=se&&K.eat(">"))return z.quote=V?1:z.quote+1,x.highlightFormatting&&(z.formatting="quote"),K.eatSpace(),T(z);if(!Oe&&!z.setext&&V&&z.indentation<=se&&(Me=K.match(i))){var Qe=Me[1]?"ol":"ul";return z.indentation=re+K.current().length,z.list=!0,z.quote=0,z.listStack.push(z.indentation),z.em=!1,z.strong=!1,z.code=!1,z.strikethrough=!1,x.taskLists&&K.match(t,!1)&&(z.taskList=!0),z.f=z.inline,x.highlightFormatting&&(z.formatting=["list","list-"+Qe]),T(z)}else{if(V&&z.indentation<=se&&(Me=K.match(r,!0)))return z.quote=0,z.fencedEndRE=new RegExp(Me[1]+"+ *$"),z.localMode=x.fencedCodeBlockHighlighting&&p(Me[2]||x.fencedCodeBlockDefaultMode),z.localMode&&(z.localState=y.startState(z.localMode)),z.f=z.block=_,x.highlightFormatting&&(z.formatting="code-block"),z.code=-1,T(z);if(z.setext||(!xe||!q)&&!z.quote&&z.list===!1&&!z.code&&!Oe&&!a.test(K.string)&&(Me=K.lookAhead(1))&&(Me=Me.match(e)))return z.setext?(z.header=z.setext,z.setext=0,K.skipToEnd(),x.highlightFormatting&&(z.formatting="header")):(z.header=Me[0].charAt(0)=="="?1:2,z.setext=z.header),z.thisLine.header=!0,z.f=z.inline,T(z);if(Oe)return K.skipToEnd(),z.hr=!0,z.thisLine.hr=!0,d.hr;if(K.peek()==="[")return g(K,z,P)}return g(K,z,z.inline)}function C(K,z){var V=v.token(K,z.htmlState);if(!m){var Q=y.innerMode(v,z.htmlState);(Q.mode.name=="xml"&&Q.state.tagStart===null&&!Q.state.context&&Q.state.tokenize.isInText||z.md_inside&&K.current().indexOf(">")>-1)&&(z.f=O,z.block=E,z.htmlState=null)}return V}function _(K,z){var V=z.listStack[z.listStack.length-1]||0,Q=z.indentation<V,G=V+3;if(z.fencedEndRE&&z.indentation<=G&&(Q||K.match(z.fencedEndRE))){x.highlightFormatting&&(z.formatting="code-block");var te;return Q||(te=T(z)),z.localMode=z.localState=null,z.block=E,z.f=O,z.fencedEndRE=null,z.code=0,z.thisLine.fencedCodeEnd=!0,Q?A(K,z,z.block):te}else return z.localMode?z.localMode.token(K,z.localState):(K.skipToEnd(),d.code)}function T(K){var z=[];if(K.formatting){z.push(d.formatting),typeof K.formatting=="string"&&(K.formatting=[K.formatting]);for(var V=0;V<K.formatting.length;V++)z.push(d.formatting+"-"+K.formatting[V]),K.formatting[V]==="header"&&z.push(d.formatting+"-"+K.formatting[V]+"-"+K.header),K.formatting[V]==="quote"&&(!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=K.quote?z.push(d.formatting+"-"+K.formatting[V]+"-"+K.quote):z.push("error"))}if(K.taskOpen)return z.push("meta"),z.length?z.join(" "):null;if(K.taskClosed)return z.push("property"),z.length?z.join(" "):null;if(K.linkHref?z.push(d.linkHref,"url"):(K.strong&&z.push(d.strong),K.em&&z.push(d.em),K.strikethrough&&z.push(d.strikethrough),K.emoji&&z.push(d.emoji),K.linkText&&z.push(d.linkText),K.code&&z.push(d.code),K.image&&z.push(d.image),K.imageAltText&&z.push(d.imageAltText,"link"),K.imageMarker&&z.push(d.imageMarker)),K.header&&z.push(d.header,d.header+"-"+K.header),K.quote&&(z.push(d.quote),!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=K.quote?z.push(d.quote+"-"+K.quote):z.push(d.quote+"-"+x.maxBlockquoteDepth)),K.list!==!1){var Q=(K.listStack.length-1)%3;Q?Q===1?z.push(d.list2):z.push(d.list3):z.push(d.list1)}return K.trailingSpaceNewLine?z.push("trailing-space-new-line"):K.trailingSpace&&z.push("trailing-space-"+(K.trailingSpace%2?"a":"b")),z.length?z.join(" "):null}function w(K,z){return K.match(l,!0)?T(z):void 0}function O(K,z){var V=z.text(K,z);if(typeof V!="undefined")return V;if(z.list)return z.list=null,T(z);if(z.taskList){var Q=K.match(t,!0)[1]===" ";return Q?z.taskOpen=!0:z.taskClosed=!0,x.highlightFormatting&&(z.formatting="task"),z.taskList=!1,T(z)}if(z.taskOpen=!1,z.taskClosed=!1,z.header&&K.match(/^#+$/,!0))return x.highlightFormatting&&(z.formatting="header"),T(z);var G=K.next();if(z.linkTitle){z.linkTitle=!1;var te=G;G==="("&&(te=")"),te=(te+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var q="^\\s*(?:[^"+te+"\\\\]+|\\\\\\\\|\\\\.)"+te;if(K.match(new RegExp(q),!0))return d.linkHref}if(G==="`"){var se=z.formatting;x.highlightFormatting&&(z.formatting="code"),K.eatWhile("`");var re=K.current().length;if(z.code==0&&(!z.quote||re==1))return z.code=re,T(z);if(re==z.code){var xe=T(z);return z.code=0,xe}else return z.formatting=se,T(z)}else if(z.code)return T(z);if(G==="\\"&&(K.next(),x.highlightFormatting)){var Oe=T(z),Me=d.formatting+"-escape";return Oe?Oe+" "+Me:Me}if(G==="!"&&K.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return z.imageMarker=!0,z.image=!0,x.highlightFormatting&&(z.formatting="image"),T(z);if(G==="["&&z.imageMarker&&K.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return z.imageMarker=!1,z.imageAltText=!0,x.highlightFormatting&&(z.formatting="image"),T(z);if(G==="]"&&z.imageAltText){x.highlightFormatting&&(z.formatting="image");var Oe=T(z);return z.imageAltText=!1,z.image=!1,z.inline=z.f=k,Oe}if(G==="["&&!z.image)return z.linkText&&K.match(/^.*?\]/)||(z.linkText=!0,x.highlightFormatting&&(z.formatting="link")),T(z);if(G==="]"&&z.linkText){x.highlightFormatting&&(z.formatting="link");var Oe=T(z);return z.linkText=!1,z.inline=z.f=K.match(/\(.*?\)| ?\[.*?\]/,!1)?k:O,Oe}if(G==="<"&&K.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){z.f=z.inline=I,x.highlightFormatting&&(z.formatting="link");var Oe=T(z);return Oe?Oe+=" ":Oe="",Oe+d.linkInline}if(G==="<"&&K.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){z.f=z.inline=I,x.highlightFormatting&&(z.formatting="link");var Oe=T(z);return Oe?Oe+=" ":Oe="",Oe+d.linkEmail}if(x.xml&&G==="<"&&K.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Qe=K.string.indexOf(">",K.pos);if(Qe!=-1){var Ve=K.string.substring(K.start,Qe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ve)&&(z.md_inside=!0)}return K.backUp(1),z.htmlState=y.startState(v),A(K,z,C)}if(x.xml&&G==="<"&&K.match(/^\/\w*?>/))return z.md_inside=!1,"tag";if(G==="*"||G==="_"){for(var ut=1,Fe=K.pos==1?" ":K.string.charAt(K.pos-2);ut<3&&K.eat(G);)ut++;var ue=K.peek()||" ",et=!/\s/.test(ue)&&(!c.test(ue)||/\s/.test(Fe)||c.test(Fe)),he=!/\s/.test(Fe)&&(!c.test(Fe)||/\s/.test(ue)||c.test(ue)),J=null,Y=null;if(ut%2&&(!z.em&&et&&(G==="*"||!he||c.test(Fe))?J=!0:z.em==G&&he&&(G==="*"||!et||c.test(ue))&&(J=!1)),ut>1&&(!z.strong&&et&&(G==="*"||!he||c.test(Fe))?Y=!0:z.strong==G&&he&&(G==="*"||!et||c.test(ue))&&(Y=!1)),Y!=null||J!=null){x.highlightFormatting&&(z.formatting=J==null?"strong":Y==null?"em":"strong em"),J===!0&&(z.em=G),Y===!0&&(z.strong=G);var xe=T(z);return J===!1&&(z.em=!1),Y===!1&&(z.strong=!1),xe}}else if(G===" "&&(K.eat("*")||K.eat("_"))){if(K.peek()===" ")return T(z);K.backUp(1)}if(x.strikethrough){if(G==="~"&&K.eatWhile(G)){if(z.strikethrough){x.highlightFormatting&&(z.formatting="strikethrough");var xe=T(z);return z.strikethrough=!1,xe}else if(K.match(/^[^\s]/,!1))return z.strikethrough=!0,x.highlightFormatting&&(z.formatting="strikethrough"),T(z)}else if(G===" "&&K.match(/^~~/,!0)){if(K.peek()===" ")return T(z);K.backUp(2)}}if(x.emoji&&G===":"&&K.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){z.emoji=!0,x.highlightFormatting&&(z.formatting="emoji");var $=T(z);return z.emoji=!1,$}return G===" "&&(K.match(/^ +$/,!1)?z.trailingSpace++:z.trailingSpace&&(z.trailingSpaceNewLine=!0)),T(z)}function I(K,z){var V=K.next();if(V===">"){z.f=z.inline=O,x.highlightFormatting&&(z.formatting="link");var Q=T(z);return Q?Q+=" ":Q="",Q+d.linkInline}return K.match(/^[^>]+/,!0),d.linkInline}function k(K,z){if(K.eatSpace())return null;var V=K.next();return V==="("||V==="["?(z.f=z.inline=j(V==="("?")":"]"),x.highlightFormatting&&(z.formatting="link-string"),z.linkHref=!0,T(z)):"error"}var M={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function j(K){return function(z,V){var Q=z.next();if(Q===K){V.f=V.inline=O,x.highlightFormatting&&(V.formatting="link-string");var G=T(V);return V.linkHref=!1,G}return z.match(M[K]),V.linkHref=!0,T(V)}}function P(K,z){return K.match(/^([^\]\\]|\\.)*\]:/,!1)?(z.f=X,K.next(),x.highlightFormatting&&(z.formatting="link"),z.linkText=!0,T(z)):g(K,z,O)}function X(K,z){if(K.match(/^\]:/,!0)){z.f=z.inline=F,x.highlightFormatting&&(z.formatting="link");var V=T(z);return z.linkText=!1,V}return K.match(/^([^\]\\]|\\.)+/,!0),d.linkText}function F(K,z){return K.eatSpace()?null:(K.match(/^[^\s]+/,!0),K.peek()===void 0?z.linkTitle=!0:K.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),z.f=z.inline=O,d.linkHref+" url")}var U={startState:function(){return{f:E,prevLine:{stream:null},thisLine:{stream:null},block:E,htmlState:null,indentation:0,inline:O,text:w,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(z){return{f:z.f,prevLine:z.prevLine,thisLine:z.thisLine,block:z.block,htmlState:z.htmlState&&y.copyState(v,z.htmlState),indentation:z.indentation,localMode:z.localMode,localState:z.localMode?y.copyState(z.localMode,z.localState):null,inline:z.inline,text:z.text,formatting:!1,linkText:z.linkText,linkTitle:z.linkTitle,linkHref:z.linkHref,code:z.code,em:z.em,strong:z.strong,strikethrough:z.strikethrough,emoji:z.emoji,header:z.header,setext:z.setext,hr:z.hr,taskList:z.taskList,list:z.list,listStack:z.listStack.slice(0),quote:z.quote,indentedCode:z.indentedCode,trailingSpace:z.trailingSpace,trailingSpaceNewLine:z.trailingSpaceNewLine,md_inside:z.md_inside,fencedEndRE:z.fencedEndRE}},token:function(z,V){if(V.formatting=!1,z!=V.thisLine.stream){if(V.header=0,V.hr=!1,z.match(/^\s*$/,!0))return S(V),null;if(V.prevLine=V.thisLine,V.thisLine={stream:z},V.taskList=!1,V.trailingSpace=0,V.trailingSpaceNewLine=!1,!V.localState&&(V.f=V.block,V.f!=C)){var Q=z.match(/^\s*/,!0)[0].replace(/\t/g,h).length;if(V.indentation=Q,V.indentationDiff=null,Q>0)return null}}return V.f(z,V)},innerMode:function(z){return z.block==C?{state:z.htmlState,mode:v}:z.localState?{state:z.localState,mode:z.localMode}:{state:z,mode:U}},indent:function(z,V,Q){return z.block==C&&v.indent?v.indent(z.htmlState,V,Q):z.localState&&z.localMode.indent?z.localMode.indent(z.localState,V,Q):y.Pass},blankLine:S,getType:T,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return U},"xml"),y.defineMIME("text/markdown","markdown"),y.defineMIME("text/x-markdown","markdown")})},laiN:function(R,D,n){var y=n("ProS");n("GVMX"),n("MH26"),y.registerPreprocessor(function(f){f.markLine=f.markLine||{}})},ljhN:function(R,D){function n(y,f){return y===f||y!==y&&f!==f}R.exports=n},lnY3:function(R,D,n){},loD1:function(R,D){function n(y,f,x,v,m,p,d){if(m===0)return!1;var u=m,s=0,i=y;if(d>f+u&&d>v+u||d<f-u&&d<v-u||p>y+u&&p>x+u||p<y-u&&p<x-u)return!1;if(y!==x)s=(f-v)/(y-x),i=(y*v-x*f)/(y-x);else return Math.abs(p-y)<=u/2;var t=s*p-d+i,o=t*t/(s*s+1);return o<=u/2*u/2}D.containStroke=n},lr6o:function(R,D,n){"use strict";var y=n("rePB"),f=n("Ff2n"),x=n("VTBJ"),v=n("1OyB"),m=n("vuIU"),p=n("JX7q"),d=n("Ji7U"),u=n("LK+K"),s=n("q1tI"),i=n("TSYQ"),t=n.n(i),o=n("FTAc"),e=n("wPhX"),l=function(C){var _=C.prefixCls,T=C.level,w=C.isStart,O=C.isEnd;if(!T)return null;for(var I="".concat(_,"-indent-unit"),k=[],M=0;M<T;M+=1){var j;k.push(s.createElement("span",{key:M,className:t()(I,(j={},Object(y.a)(j,"".concat(I,"-start"),w[M+1]),Object(y.a)(j,"".concat(I,"-end"),O[M+1]),Object(y.a)(j,"".concat(I,"-end-first-level"),!M&&O[0]),j))}))}return s.createElement("span",{"aria-hidden":"true",className:"".concat(_,"-indent")},k)},r=l,a=n("c3jg"),c="open",h="close",g="---",A=function(E){Object(d.a)(_,E);var C=Object(u.a)(_);function _(){var T;return Object(v.a)(this,_),T=C.apply(this,arguments),T.state={dragNodeHighlight:!1},T.onSelectorClick=function(w){var O=T.props.context.onNodeClick;O(w,Object(a.b)(T.props)),T.isSelectable()?T.onSelect(w):T.onCheck(w)},T.onSelectorDoubleClick=function(w){var O=T.props.context.onNodeDoubleClick;O(w,Object(a.b)(T.props))},T.onSelect=function(w){if(T.isDisabled())return;var O=T.props.context.onNodeSelect;w.preventDefault(),O(w,Object(a.b)(T.props))},T.onCheck=function(w){if(T.isDisabled())return;var O=T.props,I=O.disableCheckbox,k=O.checked,M=T.props.context.onNodeCheck;if(!T.isCheckable()||I)return;w.preventDefault();var j=!k;M(w,Object(a.b)(T.props),j)},T.onMouseEnter=function(w){var O=T.props.context.onNodeMouseEnter;O(w,Object(a.b)(T.props))},T.onMouseLeave=function(w){var O=T.props.context.onNodeMouseLeave;O(w,Object(a.b)(T.props))},T.onContextMenu=function(w){var O=T.props.context.onNodeContextMenu;O(w,Object(a.b)(T.props))},T.onDragStart=function(w){var O=T.props.context.onNodeDragStart;w.stopPropagation(),T.setState({dragNodeHighlight:!0}),O(w,Object(p.a)(T));try{w.dataTransfer.setData("text/plain","")}catch(I){}},T.onDragEnter=function(w){var O=T.props.context.onNodeDragEnter;w.preventDefault(),w.stopPropagation(),O(w,Object(p.a)(T))},T.onDragOver=function(w){var O=T.props.context.onNodeDragOver;w.preventDefault(),w.stopPropagation(),O(w,Object(p.a)(T))},T.onDragLeave=function(w){var O=T.props.context.onNodeDragLeave;w.stopPropagation(),O(w,Object(p.a)(T))},T.onDragEnd=function(w){var O=T.props.context.onNodeDragEnd;w.stopPropagation(),T.setState({dragNodeHighlight:!1}),O(w,Object(p.a)(T))},T.onDrop=function(w){var O=T.props.context.onNodeDrop;w.preventDefault(),w.stopPropagation(),T.setState({dragNodeHighlight:!1}),O(w,Object(p.a)(T))},T.onExpand=function(w){var O=T.props.context.onNodeExpand;O(w,Object(a.b)(T.props))},T.setSelectHandle=function(w){T.selectHandle=w},T.getNodeState=function(){var w=T.props.expanded;return T.isLeaf()?null:w?c:h},T.hasChildren=function(){var w=T.props.eventKey,O=T.props.context.keyEntities,I=O[w]||{},k=I.children;return!!(k||[]).length},T.isLeaf=function(){var w=T.props,O=w.isLeaf,I=w.loaded,k=T.props.context.loadData,M=T.hasChildren();return O===!1?!1:O||!k&&!M||k&&I&&!M},T.isDisabled=function(){var w=T.props.disabled,O=T.props.context.disabled;return!!(O||w)},T.isCheckable=function(){var w=T.props.checkable,O=T.props.context.checkable;return!O||w===!1?!1:O},T.syncLoadData=function(w){var O=w.expanded,I=w.loading,k=w.loaded,M=T.props.context,j=M.loadData,P=M.onNodeLoad;if(I)return;j&&O&&!T.isLeaf()&&(!T.hasChildren()&&!k&&P(Object(a.b)(T.props)))},T.renderSwitcher=function(){var w=T.props,O=w.expanded,I=w.switcherIcon,k=T.props.context,M=k.prefixCls,j=k.switcherIcon,P=I||j;if(T.isLeaf())return s.createElement("span",{className:t()("".concat(M,"-switcher"),"".concat(M,"-switcher-noop"))},typeof P=="function"?P(Object(x.a)(Object(x.a)({},T.props),{},{isLeaf:!0})):P);var X=t()("".concat(M,"-switcher"),"".concat(M,"-switcher_").concat(O?c:h));return s.createElement("span",{onClick:T.onExpand,className:X},typeof P=="function"?P(Object(x.a)(Object(x.a)({},T.props),{},{isLeaf:!1})):P)},T.renderCheckbox=function(){var w=T.props,O=w.checked,I=w.halfChecked,k=w.disableCheckbox,M=T.props.context.prefixCls,j=T.isDisabled(),P=T.isCheckable();if(!P)return null;var X=typeof P!="boolean"?P:null;return s.createElement("span",{className:t()("".concat(M,"-checkbox"),O&&"".concat(M,"-checkbox-checked"),!O&&I&&"".concat(M,"-checkbox-indeterminate"),(j||k)&&"".concat(M,"-checkbox-disabled")),onClick:T.onCheck},X)},T.renderIcon=function(){var w=T.props.loading,O=T.props.context.prefixCls;return s.createElement("span",{className:t()("".concat(O,"-iconEle"),"".concat(O,"-icon__").concat(T.getNodeState()||"docu"),w&&"".concat(O,"-icon_loading"))})},T.renderSelector=function(){var w=T.state.dragNodeHighlight,O=T.props,I=O.title,k=O.selected,M=O.icon,j=O.loading,P=O.data,X=T.props.context,F=X.prefixCls,U=X.showIcon,K=X.icon,z=X.draggable,V=X.loadData,Q=X.titleRender,G=T.isDisabled(),te="".concat(F,"-node-content-wrapper"),q;if(U){var se=M||K;q=se?s.createElement("span",{className:t()("".concat(F,"-iconEle"),"".concat(F,"-icon__customize"))},typeof se=="function"?se(T.props):se):T.renderIcon()}else V&&j&&(q=T.renderIcon());var re;typeof I=="function"?re=I(P):Q?re=Q(P):re=I;var xe=s.createElement("span",{className:"".concat(F,"-title")},re);return s.createElement("span",{ref:T.setSelectHandle,title:typeof I=="string"?I:"",className:t()("".concat(te),"".concat(te,"-").concat(T.getNodeState()||"normal"),!G&&(k||w)&&"".concat(F,"-node-selected"),!G&&z&&"draggable"),draggable:!G&&z||void 0,"aria-grabbed":!G&&z||void 0,onMouseEnter:T.onMouseEnter,onMouseLeave:T.onMouseLeave,onContextMenu:T.onContextMenu,onClick:T.onSelectorClick,onDoubleClick:T.onSelectorDoubleClick,onDragStart:z?T.onDragStart:void 0},q,xe)},T}return Object(m.a)(_,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var w=this.props.selectable,O=this.props.context.selectable;return typeof w=="boolean"?w:O}},{key:"render",value:function(){var w,O=this.props,I=O.eventKey,k=O.className,M=O.style,j=O.dragOver,P=O.dragOverGapTop,X=O.dragOverGapBottom,F=O.isLeaf,U=O.isStart,K=O.isEnd,z=O.expanded,V=O.selected,Q=O.checked,G=O.halfChecked,te=O.loading,q=O.domRef,se=O.active,re=O.onMouseMove,xe=Object(f.a)(O,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Oe=this.props.context,Me=Oe.prefixCls,Qe=Oe.filterTreeNode,Ve=Oe.draggable,ut=Oe.keyEntities,Fe=this.isDisabled(),ue=Object(e.f)(xe),et=ut[I]||{},he=et.level,J=K[K.length-1];return s.createElement("div",Object.assign({ref:q,className:t()(k,"".concat(Me,"-treenode"),(w={},Object(y.a)(w,"".concat(Me,"-treenode-disabled"),Fe),Object(y.a)(w,"".concat(Me,"-treenode-switcher-").concat(z?"open":"close"),!F),Object(y.a)(w,"".concat(Me,"-treenode-checkbox-checked"),Q),Object(y.a)(w,"".concat(Me,"-treenode-checkbox-indeterminate"),G),Object(y.a)(w,"".concat(Me,"-treenode-selected"),V),Object(y.a)(w,"".concat(Me,"-treenode-loading"),te),Object(y.a)(w,"".concat(Me,"-treenode-active"),se),Object(y.a)(w,"".concat(Me,"-treenode-leaf-last"),J),Object(y.a)(w,"drag-over",!Fe&&j),Object(y.a)(w,"drag-over-gap-top",!Fe&&P),Object(y.a)(w,"drag-over-gap-bottom",!Fe&&X),Object(y.a)(w,"filter-node",Qe&&Qe(Object(a.b)(this.props))),w)),style:M,onDragEnter:Ve?this.onDragEnter:void 0,onDragOver:Ve?this.onDragOver:void 0,onDragLeave:Ve?this.onDragLeave:void 0,onDrop:Ve?this.onDrop:void 0,onDragEnd:Ve?this.onDragEnd:void 0,onMouseMove:re},ue),s.createElement(r,{prefixCls:Me,level:he,isStart:U,isEnd:K}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),_}(s.Component),b=function(C){return s.createElement(o.a.Consumer,null,function(_){return s.createElement(A,Object.assign({},C,{context:_}))})};b.displayName="TreeNode",b.defaultProps={title:g},b.isTreeNode=1;var S=D.a=b},lrIw:function(R,D,n){"use strict";var y=n("pVnL"),f=n.n(y),x=n("cDf5"),v=n.n(x),m=n("J4zp"),p=n.n(m),d=n("q1tI"),u=n.n(d),s=n("Zm9Q"),i=n("TSYQ"),t=n.n(i),o=n("BGR+"),e=n("2fM7"),l=n("H84U"),r=n("uaoM"),a=n("0n0R"),c=e.a.Option,h=e.a;function g(S){return S&&S.type&&(S.type.isSelectOption||S.type.isSelectOptGroup)}var A=function(E,C){var _=E.prefixCls,T=E.className,w=E.children,O=E.dataSource,I=Object(s.a)(w),k=d.useRef();d.useImperativeHandle(C,function(){return k.current});var M;if(I.length===1&&Object(a.b)(I[0])&&!g(I[0])){var j=p()(I,1);M=j[0]}var P=function(){return M},X;return I.length&&g(I[0])?X=w:X=O?O.map(function(F){if(Object(a.b)(F))return F;switch(v()(F)){case"string":return d.createElement(c,{key:F,value:F},F);case"object":{var U=F.value;return d.createElement(c,{key:U,value:U},F.text)}default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[],d.useEffect(function(){Object(r.a)(!("dataSource"in E),"AutoComplete","`dataSource` is deprecated, please use `options` instead."),Object(r.a)(!M||!("size"in E),"AutoComplete","You need to control style self instead of setting `size` when using customize input.")},[]),d.createElement(l.a,null,function(F){var U=F.getPrefixCls,K=U("select",_);return d.createElement(h,f()({ref:k},Object(o.default)(E,["dataSource"]),{prefixCls:K,className:t()(T,"".concat(K,"-auto-complete")),mode:e.a.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:P}),X)})},b=d.forwardRef(A);b.Option=c,D.a=b},lwQL:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("9wZj"),v=n("c8qY"),m=n("SgGq"),p=n("Ae+d"),d=n("xSat"),u=d.onIrrelevantElement,s=n("IwbS"),i=n("SA8n"),t=n("U/Mo"),o=t.getNodeGlobalScale,e="__focusNodeAdjacency",l="__unfocusNodeAdjacency",r=["itemStyle","opacity"],a=["lineStyle","opacity"];function c(b,S){var E=b.getVisual("opacity");return E!=null?E:b.getModel().get(S)}function h(b,S,E){var C=b.getGraphicEl(),_=c(b,S);E!=null&&(_==null&&(_=1),_*=E),C.downplay&&C.downplay(),C.traverse(function(T){if(!T.isGroup){var w=T.lineLabelOriginalOpacity;(w==null||E!=null)&&(w=_),T.setStyle("opacity",w)}})}function g(b,S){var E=c(b,S),C=b.getGraphicEl();C.traverse(function(_){!_.isGroup&&_.setStyle("opacity",E)}),C.highlight&&C.highlight()}var A=y.extendChartView({type:"graph",init:function(b,S){var E=new x,C=new v,_=this.group;this._controller=new m(S.getZr()),this._controllerHost={target:_},_.add(E.group),_.add(C.group),this._symbolDraw=E,this._lineDraw=C,this._firstRender=!0},render:function(b,S,E){var C=this,_=b.coordinateSystem;this._model=b;var T=this._symbolDraw,w=this._lineDraw,O=this.group;if(_.type==="view"){var I={position:_.position,scale:_.scale};this._firstRender?O.attr(I):s.updateProps(O,I,b)}i(b.getGraph(),o(b));var k=b.getData();T.updateData(k);var M=b.getEdgeData();w.updateData(M),this._updateNodeAndLinkScale(),this._updateController(b,S,E),clearTimeout(this._layoutTimeout);var j=b.forceLayout,P=b.get("force.layoutAnimation");j&&this._startForceLayoutIteration(j,P),k.eachItemGraphicEl(function(K,z){var V=k.getItemModel(z);K.off("drag").off("dragend");var Q=V.get("draggable");Q&&K.on("drag",function(){j&&(j.warmUp(),!this._layouting&&this._startForceLayoutIteration(j,P),j.setFixed(z),k.setItemLayout(z,K.position))},this).on("dragend",function(){j&&j.setUnfixed(z)},this),K.setDraggable(Q&&j),K[e]&&K.off("mouseover",K[e]),K[l]&&K.off("mouseout",K[l]),V.get("focusNodeAdjacency")&&(K.on("mouseover",K[e]=function(){C._clearTimer(),E.dispatchAction({type:"focusNodeAdjacency",seriesId:b.id,dataIndex:K.dataIndex})}),K.on("mouseout",K[l]=function(){C._dispatchUnfocus(E)}))},this),k.graph.eachEdge(function(K){var z=K.getGraphicEl();z[e]&&z.off("mouseover",z[e]),z[l]&&z.off("mouseout",z[l]),K.getModel().get("focusNodeAdjacency")&&(z.on("mouseover",z[e]=function(){C._clearTimer(),E.dispatchAction({type:"focusNodeAdjacency",seriesId:b.id,edgeDataIndex:K.dataIndex})}),z.on("mouseout",z[l]=function(){C._dispatchUnfocus(E)}))});var X=b.get("layout")==="circular"&&b.get("circular.rotateLabel"),F=k.getLayout("cx"),U=k.getLayout("cy");k.eachItemGraphicEl(function(K,z){var V=k.getItemModel(z),Q=V.get("label.rotate")||0,G=K.getSymbolPath();if(X){var te=k.getItemLayout(z),q=Math.atan2(te[1]-U,te[0]-F);q<0&&(q=Math.PI*2+q);var se=te[0]<F;se&&(q=q-Math.PI);var re=se?"left":"right";s.modifyLabelStyle(G,{textRotation:-q,textPosition:re,textOrigin:"center"},{textPosition:re})}else s.modifyLabelStyle(G,{textRotation:Q*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(b,S){var E=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){E._unfocusDelayTimer=null,b.dispatchAction({type:"unfocusNodeAdjacency",seriesId:E._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(b,S,E,C){var _=b.getData(),T=_.graph,w=C.dataIndex,O=C.edgeDataIndex,I=T.getNodeByIndex(w),k=T.getEdgeByIndex(O);if(!I&&!k)return;T.eachNode(function(M){h(M,r,.1)}),T.eachEdge(function(M){h(M,a,.1)}),I&&(g(I,r),f.each(I.edges,function(M){if(M.dataIndex<0)return;g(M,a),g(M.node1,r),g(M.node2,r)})),k&&(g(k,a),g(k.node1,r),g(k.node2,r))},unfocusNodeAdjacency:function(b,S,E,C){var _=b.getData().graph;_.eachNode(function(T){h(T,r)}),_.eachEdge(function(T){h(T,a)})},_startForceLayoutIteration:function(b,S){var E=this;(function C(){b.step(function(_){E.updateLayout(E._model),(E._layouting=!_)&&(S?E._layoutTimeout=setTimeout(C,16):C())})})()},_updateController:function(b,S,E){var C=this._controller,_=this._controllerHost,T=this.group;if(C.setPointerChecker(function(w,O,I){var k=T.getBoundingRect();return k.applyTransform(T.transform),k.contain(O,I)&&!u(w,E,b)}),b.coordinateSystem.type!=="view"){C.disable();return}C.enable(b.get("roam")),_.zoomLimit=b.get("scaleLimit"),_.zoom=b.coordinateSystem.getZoom(),C.off("pan").off("zoom").on("pan",function(w){p.updateViewOnPan(_,w.dx,w.dy),E.dispatchAction({seriesId:b.id,type:"graphRoam",dx:w.dx,dy:w.dy})}).on("zoom",function(w){p.updateViewOnZoom(_,w.scale,w.originX,w.originY),E.dispatchAction({seriesId:b.id,type:"graphRoam",zoom:w.scale,originX:w.originX,originY:w.originY}),this._updateNodeAndLinkScale(),i(b.getGraph(),o(b)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var b=this._model,S=b.getData(),E=o(b),C=[E,E];S.eachItemGraphicEl(function(_,T){_.attr("scale",C)})},updateLayout:function(b){i(b.getGraph(),o(b)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(b,S){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});R.exports=A},m546:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};D.default=y},m9t5:function(R,D,n){var y=n("KCsZ"),f=y([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),x={getAreaStyle:function(v,m){return f(this,v,m)}};R.exports=x},mBDr:function(R,D,n){"use strict";n.d(D,"a",function(){return x});var y=n("q1tI"),f=n.n(y);function x(v){var m=y.useRef();m.current=v;var p=y.useCallback(function(){for(var d,u=arguments.length,s=new Array(u),i=0;i<u;i++)s[i]=arguments[i];return(d=m.current)===null||d===void 0?void 0:d.call.apply(d,[m].concat(s))},[]);return p}},mFDi:function(R,D,n){var y=n("QBsz"),f=n("Fofx"),x=y.applyTransform,v=Math.min,m=Math.max;function p(u,s,i,t){i<0&&(u=u+i,i=-i),t<0&&(s=s+t,t=-t),this.x=u,this.y=s,this.width=i,this.height=t}p.prototype={constructor:p,union:function(s){var i=v(s.x,this.x),t=v(s.y,this.y);this.width=m(s.x+s.width,this.x+this.width)-i,this.height=m(s.y+s.height,this.y+this.height)-t,this.x=i,this.y=t},applyTransform:function(){var u=[],s=[],i=[],t=[];return function(o){if(!o)return;u[0]=i[0]=this.x,u[1]=t[1]=this.y,s[0]=t[0]=this.x+this.width,s[1]=i[1]=this.y+this.height,x(u,u,o),x(s,s,o),x(i,i,o),x(t,t,o),this.x=v(u[0],s[0],i[0],t[0]),this.y=v(u[1],s[1],i[1],t[1]);var e=m(u[0],s[0],i[0],t[0]),l=m(u[1],s[1],i[1],t[1]);this.width=e-this.x,this.height=l-this.y}}(),calculateTransform:function(s){var i=this,t=s.width/i.width,o=s.height/i.height,e=f.create();return f.translate(e,e,[-i.x,-i.y]),f.scale(e,e,[t,o]),f.translate(e,e,[s.x,s.y]),e},intersect:function(s){if(!s)return!1;s instanceof p||(s=p.create(s));var i=this,t=i.x,o=i.x+i.width,e=i.y,l=i.y+i.height,r=s.x,a=s.x+s.width,c=s.y,h=s.y+s.height;return!(o<r||a<t||l<c||h<e)},contain:function(s,i){var t=this;return s>=t.x&&s<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},clone:function(){return new p(this.x,this.y,this.width,this.height)},copy:function(s){this.x=s.x,this.y=s.y,this.width=s.width,this.height=s.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},p.create=function(u){return new p(u.x,u.y,u.width,u.height)};var d=p;R.exports=d},mHUz:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={XK_VoidSymbol:16777215,XK_BackSpace:65288,XK_Tab:65289,XK_Linefeed:65290,XK_Clear:65291,XK_Return:65293,XK_Pause:65299,XK_Scroll_Lock:65300,XK_Sys_Req:65301,XK_Escape:65307,XK_Delete:65535,XK_Multi_key:65312,XK_Codeinput:65335,XK_SingleCandidate:65340,XK_MultipleCandidate:65341,XK_PreviousCandidate:65342,XK_Kanji:65313,XK_Muhenkan:65314,XK_Henkan_Mode:65315,XK_Henkan:65315,XK_Romaji:65316,XK_Hiragana:65317,XK_Katakana:65318,XK_Hiragana_Katakana:65319,XK_Zenkaku:65320,XK_Hankaku:65321,XK_Zenkaku_Hankaku:65322,XK_Touroku:65323,XK_Massyo:65324,XK_Kana_Lock:65325,XK_Kana_Shift:65326,XK_Eisu_Shift:65327,XK_Eisu_toggle:65328,XK_Kanji_Bangou:65335,XK_Zen_Koho:65341,XK_Mae_Koho:65342,XK_Home:65360,XK_Left:65361,XK_Up:65362,XK_Right:65363,XK_Down:65364,XK_Prior:65365,XK_Page_Up:65365,XK_Next:65366,XK_Page_Down:65366,XK_End:65367,XK_Begin:65368,XK_Select:65376,XK_Print:65377,XK_Execute:65378,XK_Insert:65379,XK_Undo:65381,XK_Redo:65382,XK_Menu:65383,XK_Find:65384,XK_Cancel:65385,XK_Help:65386,XK_Break:65387,XK_Mode_switch:65406,XK_script_switch:65406,XK_Num_Lock:65407,XK_KP_Space:65408,XK_KP_Tab:65417,XK_KP_Enter:65421,XK_KP_F1:65425,XK_KP_F2:65426,XK_KP_F3:65427,XK_KP_F4:65428,XK_KP_Home:65429,XK_KP_Left:65430,XK_KP_Up:65431,XK_KP_Right:65432,XK_KP_Down:65433,XK_KP_Prior:65434,XK_KP_Page_Up:65434,XK_KP_Next:65435,XK_KP_Page_Down:65435,XK_KP_End:65436,XK_KP_Begin:65437,XK_KP_Insert:65438,XK_KP_Delete:65439,XK_KP_Equal:65469,XK_KP_Multiply:65450,XK_KP_Add:65451,XK_KP_Separator:65452,XK_KP_Subtract:65453,XK_KP_Decimal:65454,XK_KP_Divide:65455,XK_KP_0:65456,XK_KP_1:65457,XK_KP_2:65458,XK_KP_3:65459,XK_KP_4:65460,XK_KP_5:65461,XK_KP_6:65462,XK_KP_7:65463,XK_KP_8:65464,XK_KP_9:65465,XK_F1:65470,XK_F2:65471,XK_F3:65472,XK_F4:65473,XK_F5:65474,XK_F6:65475,XK_F7:65476,XK_F8:65477,XK_F9:65478,XK_F10:65479,XK_F11:65480,XK_L1:65480,XK_F12:65481,XK_L2:65481,XK_F13:65482,XK_L3:65482,XK_F14:65483,XK_L4:65483,XK_F15:65484,XK_L5:65484,XK_F16:65485,XK_L6:65485,XK_F17:65486,XK_L7:65486,XK_F18:65487,XK_L8:65487,XK_F19:65488,XK_L9:65488,XK_F20:65489,XK_L10:65489,XK_F21:65490,XK_R1:65490,XK_F22:65491,XK_R2:65491,XK_F23:65492,XK_R3:65492,XK_F24:65493,XK_R4:65493,XK_F25:65494,XK_R5:65494,XK_F26:65495,XK_R6:65495,XK_F27:65496,XK_R7:65496,XK_F28:65497,XK_R8:65497,XK_F29:65498,XK_R9:65498,XK_F30:65499,XK_R10:65499,XK_F31:65500,XK_R11:65500,XK_F32:65501,XK_R12:65501,XK_F33:65502,XK_R13:65502,XK_F34:65503,XK_R14:65503,XK_F35:65504,XK_R15:65504,XK_Shift_L:65505,XK_Shift_R:65506,XK_Control_L:65507,XK_Control_R:65508,XK_Caps_Lock:65509,XK_Shift_Lock:65510,XK_Meta_L:65511,XK_Meta_R:65512,XK_Alt_L:65513,XK_Alt_R:65514,XK_Super_L:65515,XK_Super_R:65516,XK_Hyper_L:65517,XK_Hyper_R:65518,XK_ISO_Level3_Shift:65027,XK_ISO_Next_Group:65032,XK_ISO_Prev_Group:65034,XK_ISO_First_Group:65036,XK_ISO_Last_Group:65038,XK_space:32,XK_exclam:33,XK_quotedbl:34,XK_numbersign:35,XK_dollar:36,XK_percent:37,XK_ampersand:38,XK_apostrophe:39,XK_quoteright:39,XK_parenleft:40,XK_parenright:41,XK_asterisk:42,XK_plus:43,XK_comma:44,XK_minus:45,XK_period:46,XK_slash:47,XK_0:48,XK_1:49,XK_2:50,XK_3:51,XK_4:52,XK_5:53,XK_6:54,XK_7:55,XK_8:56,XK_9:57,XK_colon:58,XK_semicolon:59,XK_less:60,XK_equal:61,XK_greater:62,XK_question:63,XK_at:64,XK_A:65,XK_B:66,XK_C:67,XK_D:68,XK_E:69,XK_F:70,XK_G:71,XK_H:72,XK_I:73,XK_J:74,XK_K:75,XK_L:76,XK_M:77,XK_N:78,XK_O:79,XK_P:80,XK_Q:81,XK_R:82,XK_S:83,XK_T:84,XK_U:85,XK_V:86,XK_W:87,XK_X:88,XK_Y:89,XK_Z:90,XK_bracketleft:91,XK_backslash:92,XK_bracketright:93,XK_asciicircum:94,XK_underscore:95,XK_grave:96,XK_quoteleft:96,XK_a:97,XK_b:98,XK_c:99,XK_d:100,XK_e:101,XK_f:102,XK_g:103,XK_h:104,XK_i:105,XK_j:106,XK_k:107,XK_l:108,XK_m:109,XK_n:110,XK_o:111,XK_p:112,XK_q:113,XK_r:114,XK_s:115,XK_t:116,XK_u:117,XK_v:118,XK_w:119,XK_x:120,XK_y:121,XK_z:122,XK_braceleft:123,XK_bar:124,XK_braceright:125,XK_asciitilde:126,XK_nobreakspace:160,XK_exclamdown:161,XK_cent:162,XK_sterling:163,XK_currency:164,XK_yen:165,XK_brokenbar:166,XK_section:167,XK_diaeresis:168,XK_copyright:169,XK_ordfeminine:170,XK_guillemotleft:171,XK_notsign:172,XK_hyphen:173,XK_registered:174,XK_macron:175,XK_degree:176,XK_plusminus:177,XK_twosuperior:178,XK_threesuperior:179,XK_acute:180,XK_mu:181,XK_paragraph:182,XK_periodcentered:183,XK_cedilla:184,XK_onesuperior:185,XK_masculine:186,XK_guillemotright:187,XK_onequarter:188,XK_onehalf:189,XK_threequarters:190,XK_questiondown:191,XK_Agrave:192,XK_Aacute:193,XK_Acircumflex:194,XK_Atilde:195,XK_Adiaeresis:196,XK_Aring:197,XK_AE:198,XK_Ccedilla:199,XK_Egrave:200,XK_Eacute:201,XK_Ecircumflex:202,XK_Ediaeresis:203,XK_Igrave:204,XK_Iacute:205,XK_Icircumflex:206,XK_Idiaeresis:207,XK_ETH:208,XK_Eth:208,XK_Ntilde:209,XK_Ograve:210,XK_Oacute:211,XK_Ocircumflex:212,XK_Otilde:213,XK_Odiaeresis:214,XK_multiply:215,XK_Oslash:216,XK_Ooblique:216,XK_Ugrave:217,XK_Uacute:218,XK_Ucircumflex:219,XK_Udiaeresis:220,XK_Yacute:221,XK_THORN:222,XK_Thorn:222,XK_ssharp:223,XK_agrave:224,XK_aacute:225,XK_acircumflex:226,XK_atilde:227,XK_adiaeresis:228,XK_aring:229,XK_ae:230,XK_ccedilla:231,XK_egrave:232,XK_eacute:233,XK_ecircumflex:234,XK_ediaeresis:235,XK_igrave:236,XK_iacute:237,XK_icircumflex:238,XK_idiaeresis:239,XK_eth:240,XK_ntilde:241,XK_ograve:242,XK_oacute:243,XK_ocircumflex:244,XK_otilde:245,XK_odiaeresis:246,XK_division:247,XK_oslash:248,XK_ooblique:248,XK_ugrave:249,XK_uacute:250,XK_ucircumflex:251,XK_udiaeresis:252,XK_yacute:253,XK_thorn:254,XK_ydiaeresis:255,XK_Hangul:65329,XK_Hangul_Hanja:65332,XK_Hangul_Jeonja:65336,XF86XK_ModeLock:269025025,XF86XK_MonBrightnessUp:269025026,XF86XK_MonBrightnessDown:269025027,XF86XK_KbdLightOnOff:269025028,XF86XK_KbdBrightnessUp:269025029,XF86XK_KbdBrightnessDown:269025030,XF86XK_Standby:269025040,XF86XK_AudioLowerVolume:269025041,XF86XK_AudioMute:269025042,XF86XK_AudioRaiseVolume:269025043,XF86XK_AudioPlay:269025044,XF86XK_AudioStop:269025045,XF86XK_AudioPrev:269025046,XF86XK_AudioNext:269025047,XF86XK_HomePage:269025048,XF86XK_Mail:269025049,XF86XK_Start:269025050,XF86XK_Search:269025051,XF86XK_AudioRecord:269025052,XF86XK_Calculator:269025053,XF86XK_Memo:269025054,XF86XK_ToDoList:269025055,XF86XK_Calendar:269025056,XF86XK_PowerDown:269025057,XF86XK_ContrastAdjust:269025058,XF86XK_RockerUp:269025059,XF86XK_RockerDown:269025060,XF86XK_RockerEnter:269025061,XF86XK_Back:269025062,XF86XK_Forward:269025063,XF86XK_Stop:269025064,XF86XK_Refresh:269025065,XF86XK_PowerOff:269025066,XF86XK_WakeUp:269025067,XF86XK_Eject:269025068,XF86XK_ScreenSaver:269025069,XF86XK_WWW:269025070,XF86XK_Sleep:269025071,XF86XK_Favorites:269025072,XF86XK_AudioPause:269025073,XF86XK_AudioMedia:269025074,XF86XK_MyComputer:269025075,XF86XK_VendorHome:269025076,XF86XK_LightBulb:269025077,XF86XK_Shop:269025078,XF86XK_History:269025079,XF86XK_OpenURL:269025080,XF86XK_AddFavorite:269025081,XF86XK_HotLinks:269025082,XF86XK_BrightnessAdjust:269025083,XF86XK_Finance:269025084,XF86XK_Community:269025085,XF86XK_AudioRewind:269025086,XF86XK_BackForward:269025087,XF86XK_Launch0:269025088,XF86XK_Launch1:269025089,XF86XK_Launch2:269025090,XF86XK_Launch3:269025091,XF86XK_Launch4:269025092,XF86XK_Launch5:269025093,XF86XK_Launch6:269025094,XF86XK_Launch7:269025095,XF86XK_Launch8:269025096,XF86XK_Launch9:269025097,XF86XK_LaunchA:269025098,XF86XK_LaunchB:269025099,XF86XK_LaunchC:269025100,XF86XK_LaunchD:269025101,XF86XK_LaunchE:269025102,XF86XK_LaunchF:269025103,XF86XK_ApplicationLeft:269025104,XF86XK_ApplicationRight:269025105,XF86XK_Book:269025106,XF86XK_CD:269025107,XF86XK_Calculater:269025108,XF86XK_Clear:269025109,XF86XK_Close:269025110,XF86XK_Copy:269025111,XF86XK_Cut:269025112,XF86XK_Display:269025113,XF86XK_DOS:269025114,XF86XK_Documents:269025115,XF86XK_Excel:269025116,XF86XK_Explorer:269025117,XF86XK_Game:269025118,XF86XK_Go:269025119,XF86XK_iTouch:269025120,XF86XK_LogOff:269025121,XF86XK_Market:269025122,XF86XK_Meeting:269025123,XF86XK_MenuKB:269025125,XF86XK_MenuPB:269025126,XF86XK_MySites:269025127,XF86XK_New:269025128,XF86XK_News:269025129,XF86XK_OfficeHome:269025130,XF86XK_Open:269025131,XF86XK_Option:269025132,XF86XK_Paste:269025133,XF86XK_Phone:269025134,XF86XK_Q:269025136,XF86XK_Reply:269025138,XF86XK_Reload:269025139,XF86XK_RotateWindows:269025140,XF86XK_RotationPB:269025141,XF86XK_RotationKB:269025142,XF86XK_Save:269025143,XF86XK_ScrollUp:269025144,XF86XK_ScrollDown:269025145,XF86XK_ScrollClick:269025146,XF86XK_Send:269025147,XF86XK_Spell:269025148,XF86XK_SplitScreen:269025149,XF86XK_Support:269025150,XF86XK_TaskPane:269025151,XF86XK_Terminal:269025152,XF86XK_Tools:269025153,XF86XK_Travel:269025154,XF86XK_UserPB:269025156,XF86XK_User1KB:269025157,XF86XK_User2KB:269025158,XF86XK_Video:269025159,XF86XK_WheelButton:269025160,XF86XK_Word:269025161,XF86XK_Xfer:269025162,XF86XK_ZoomIn:269025163,XF86XK_ZoomOut:269025164,XF86XK_Away:269025165,XF86XK_Messenger:269025166,XF86XK_WebCam:269025167,XF86XK_MailForward:269025168,XF86XK_Pictures:269025169,XF86XK_Music:269025170,XF86XK_Battery:269025171,XF86XK_Bluetooth:269025172,XF86XK_WLAN:269025173,XF86XK_UWB:269025174,XF86XK_AudioForward:269025175,XF86XK_AudioRepeat:269025176,XF86XK_AudioRandomPlay:269025177,XF86XK_Subtitle:269025178,XF86XK_AudioCycleTrack:269025179,XF86XK_CycleAngle:269025180,XF86XK_FrameBack:269025181,XF86XK_FrameForward:269025182,XF86XK_Time:269025183,XF86XK_Select:269025184,XF86XK_View:269025185,XF86XK_TopMenu:269025186,XF86XK_Red:269025187,XF86XK_Green:269025188,XF86XK_Yellow:269025189,XF86XK_Blue:269025190,XF86XK_Suspend:269025191,XF86XK_Hibernate:269025192,XF86XK_TouchpadToggle:269025193,XF86XK_TouchpadOn:269025200,XF86XK_TouchpadOff:269025201,XF86XK_AudioMicMute:269025202,XF86XK_Switch_VT_1:269024769,XF86XK_Switch_VT_2:269024770,XF86XK_Switch_VT_3:269024771,XF86XK_Switch_VT_4:269024772,XF86XK_Switch_VT_5:269024773,XF86XK_Switch_VT_6:269024774,XF86XK_Switch_VT_7:269024775,XF86XK_Switch_VT_8:269024776,XF86XK_Switch_VT_9:269024777,XF86XK_Switch_VT_10:269024778,XF86XK_Switch_VT_11:269024779,XF86XK_Switch_VT_12:269024780,XF86XK_Ungrab:269024800,XF86XK_ClearGrab:269024801,XF86XK_Next_VMode:269024802,XF86XK_Prev_VMode:269024803,XF86XK_LogWindowTree:269024804,XF86XK_LogGrabInfo:269024805};D.default=y},mLcG:function(R,D){var n=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(y){setTimeout(y,16)};R.exports=n},"mO/d":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("I9Y+"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},mOdp:function(R,D,n){var y=n("bYtY"),f=y.createHashMap;function x(v){return{getTargetSeries:function(m){var p={},d=f();return m.eachSeriesByType(v,function(u){u.__paletteScope=p,d.set(u.uid,u)}),d},reset:function(m,p){var d=m.getRawData(),u={},s=m.getData();s.each(function(i){var t=s.getRawIndex(i);u[t]=i}),d.each(function(i){var t=u[i],o=t!=null&&s.getItemVisual(t,"color",!0),e=t!=null&&s.getItemVisual(t,"borderColor",!0),l;if((!o||!e)&&(l=d.getItemModel(i)),!o){var r=l.get("itemStyle.color")||m.getColorFromPalette(d.getName(i)||i+"",m.__paletteScope,d.count());t!=null&&s.setItemVisual(t,"color",r)}if(!e){var a=l.get("itemStyle.borderColor");t!=null&&s.setItemVisual(t,"borderColor",a)}})}}}R.exports=x},mTgk:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("mHUz"));function f(u){return u&&u.__esModule?u:{default:u}}var x={};function v(u,s){if(s===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(u in x)throw new Error('Duplicate entry for key "'+u+'"');x[u]=[s,s,s,s]}function m(u,s,i){if(s===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(i===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(u in x)throw new Error('Duplicate entry for key "'+u+'"');x[u]=[s,s,i,s]}function p(u,s,i){if(s===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(i===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(u in x)throw new Error('Duplicate entry for key "'+u+'"');x[u]=[s,s,s,i]}m("Alt",y.default.XK_Alt_L,y.default.XK_Alt_R),v("AltGraph",y.default.XK_ISO_Level3_Shift),v("CapsLock",y.default.XK_Caps_Lock),m("Control",y.default.XK_Control_L,y.default.XK_Control_R),m("Meta",y.default.XK_Super_L,y.default.XK_Super_R),v("NumLock",y.default.XK_Num_Lock),v("ScrollLock",y.default.XK_Scroll_Lock),m("Shift",y.default.XK_Shift_L,y.default.XK_Shift_R),p("Enter",y.default.XK_Return,y.default.XK_KP_Enter),v("Tab",y.default.XK_Tab),p(" ",y.default.XK_space,y.default.XK_KP_Space),p("ArrowDown",y.default.XK_Down,y.default.XK_KP_Down),p("ArrowUp",y.default.XK_Up,y.default.XK_KP_Up),p("ArrowLeft",y.default.XK_Left,y.default.XK_KP_Left),p("ArrowRight",y.default.XK_Right,y.default.XK_KP_Right),p("End",y.default.XK_End,y.default.XK_KP_End),p("Home",y.default.XK_Home,y.default.XK_KP_Home),p("PageDown",y.default.XK_Next,y.default.XK_KP_Next),p("PageUp",y.default.XK_Prior,y.default.XK_KP_Prior),v("Backspace",y.default.XK_BackSpace),p("Clear",y.default.XK_Clear,y.default.XK_KP_Begin),v("Copy",y.default.XF86XK_Copy),v("Cut",y.default.XF86XK_Cut),p("Delete",y.default.XK_Delete,y.default.XK_KP_Delete),p("Insert",y.default.XK_Insert,y.default.XK_KP_Insert),v("Paste",y.default.XF86XK_Paste),v("Redo",y.default.XK_Redo),v("Undo",y.default.XK_Undo),v("Cancel",y.default.XK_Cancel),v("ContextMenu",y.default.XK_Menu),v("Escape",y.default.XK_Escape),v("Execute",y.default.XK_Execute),v("Find",y.default.XK_Find),v("Help",y.default.XK_Help),v("Pause",y.default.XK_Pause),v("Select",y.default.XK_Select),v("ZoomIn",y.default.XF86XK_ZoomIn),v("ZoomOut",y.default.XF86XK_ZoomOut),v("BrightnessDown",y.default.XF86XK_MonBrightnessDown),v("BrightnessUp",y.default.XF86XK_MonBrightnessUp),v("Eject",y.default.XF86XK_Eject),v("LogOff",y.default.XF86XK_LogOff),v("Power",y.default.XF86XK_PowerOff),v("PowerOff",y.default.XF86XK_PowerDown),v("PrintScreen",y.default.XK_Print),v("Hibernate",y.default.XF86XK_Hibernate),v("Standby",y.default.XF86XK_Standby),v("WakeUp",y.default.XF86XK_WakeUp),v("AllCandidates",y.default.XK_MultipleCandidate),v("Alphanumeric",y.default.XK_Eisu_Shift),v("CodeInput",y.default.XK_Codeinput),v("Compose",y.default.XK_Multi_key),v("Convert",y.default.XK_Henkan),v("GroupFirst",y.default.XK_ISO_First_Group),v("GroupLast",y.default.XK_ISO_Last_Group),v("GroupNext",y.default.XK_ISO_Next_Group),v("GroupPrevious",y.default.XK_ISO_Prev_Group),v("NonConvert",y.default.XK_Muhenkan),v("PreviousCandidate",y.default.XK_PreviousCandidate),v("SingleCandidate",y.default.XK_SingleCandidate),v("HangulMode",y.default.XK_Hangul),v("HanjaMode",y.default.XK_Hangul_Hanja),v("JunjuaMode",y.default.XK_Hangul_Jeonja),v("Eisu",y.default.XK_Eisu_toggle),v("Hankaku",y.default.XK_Hankaku),v("Hiragana",y.default.XK_Hiragana),v("HiraganaKatakana",y.default.XK_Hiragana_Katakana),v("KanaMode",y.default.XK_Kana_Shift),v("KanjiMode",y.default.XK_Kanji),v("Katakana",y.default.XK_Katakana),v("Romaji",y.default.XK_Romaji),v("Zenkaku",y.default.XK_Zenkaku),v("ZenkakuHanaku",y.default.XK_Zenkaku_Hankaku),v("F1",y.default.XK_F1),v("F2",y.default.XK_F2),v("F3",y.default.XK_F3),v("F4",y.default.XK_F4),v("F5",y.default.XK_F5),v("F6",y.default.XK_F6),v("F7",y.default.XK_F7),v("F8",y.default.XK_F8),v("F9",y.default.XK_F9),v("F10",y.default.XK_F10),v("F11",y.default.XK_F11),v("F12",y.default.XK_F12),v("F13",y.default.XK_F13),v("F14",y.default.XK_F14),v("F15",y.default.XK_F15),v("F16",y.default.XK_F16),v("F17",y.default.XK_F17),v("F18",y.default.XK_F18),v("F19",y.default.XK_F19),v("F20",y.default.XK_F20),v("F21",y.default.XK_F21),v("F22",y.default.XK_F22),v("F23",y.default.XK_F23),v("F24",y.default.XK_F24),v("F25",y.default.XK_F25),v("F26",y.default.XK_F26),v("F27",y.default.XK_F27),v("F28",y.default.XK_F28),v("F29",y.default.XK_F29),v("F30",y.default.XK_F30),v("F31",y.default.XK_F31),v("F32",y.default.XK_F32),v("F33",y.default.XK_F33),v("F34",y.default.XK_F34),v("F35",y.default.XK_F35),v("Close",y.default.XF86XK_Close),v("MailForward",y.default.XF86XK_MailForward),v("MailReply",y.default.XF86XK_Reply),v("MailSend",y.default.XF86XK_Send),v("MediaFastForward",y.default.XF86XK_AudioForward),v("MediaPause",y.default.XF86XK_AudioPause),v("MediaPlay",y.default.XF86XK_AudioPlay),v("MediaRecord",y.default.XF86XK_AudioRecord),v("MediaRewind",y.default.XF86XK_AudioRewind),v("MediaStop",y.default.XF86XK_AudioStop),v("MediaTrackNext",y.default.XF86XK_AudioNext),v("MediaTrackPrevious",y.default.XF86XK_AudioPrev),v("New",y.default.XF86XK_New),v("Open",y.default.XF86XK_Open),v("Print",y.default.XK_Print),v("Save",y.default.XF86XK_Save),v("SpellCheck",y.default.XF86XK_Spell),v("AudioVolumeDown",y.default.XF86XK_AudioLowerVolume),v("AudioVolumeUp",y.default.XF86XK_AudioRaiseVolume),v("AudioVolumeMute",y.default.XF86XK_AudioMute),v("MicrophoneVolumeMute",y.default.XF86XK_AudioMicMute),v("LaunchApplication1",y.default.XF86XK_MyComputer),v("LaunchApplication2",y.default.XF86XK_Calculator),v("LaunchCalendar",y.default.XF86XK_Calendar),v("LaunchMail",y.default.XF86XK_Mail),v("LaunchMediaPlayer",y.default.XF86XK_AudioMedia),v("LaunchMusicPlayer",y.default.XF86XK_Music),v("LaunchPhone",y.default.XF86XK_Phone),v("LaunchScreenSaver",y.default.XF86XK_ScreenSaver),v("LaunchSpreadsheet",y.default.XF86XK_Excel),v("LaunchWebBrowser",y.default.XF86XK_WWW),v("LaunchWebCam",y.default.XF86XK_WebCam),v("LaunchWordProcessor",y.default.XF86XK_Word),v("BrowserBack",y.default.XF86XK_Back),v("BrowserFavorites",y.default.XF86XK_Favorites),v("BrowserForward",y.default.XF86XK_Forward),v("BrowserHome",y.default.XF86XK_HomePage),v("BrowserRefresh",y.default.XF86XK_Refresh),v("BrowserSearch",y.default.XF86XK_Search),v("BrowserStop",y.default.XF86XK_Stop),v("Dimmer",y.default.XF86XK_BrightnessAdjust),v("MediaAudioTrack",y.default.XF86XK_AudioCycleTrack),v("RandomToggle",y.default.XF86XK_AudioRandomPlay),v("SplitScreenToggle",y.default.XF86XK_SplitScreen),v("Subtitle",y.default.XF86XK_Subtitle),v("VideoModeNext",y.default.XF86XK_Next_VMode),p("=",y.default.XK_equal,y.default.XK_KP_Equal),p("+",y.default.XK_plus,y.default.XK_KP_Add),p("-",y.default.XK_minus,y.default.XK_KP_Subtract),p("*",y.default.XK_asterisk,y.default.XK_KP_Multiply),p("/",y.default.XK_slash,y.default.XK_KP_Divide),p(".",y.default.XK_period,y.default.XK_KP_Decimal),p(",",y.default.XK_comma,y.default.XK_KP_Separator),p("0",y.default.XK_0,y.default.XK_KP_0),p("1",y.default.XK_1,y.default.XK_KP_1),p("2",y.default.XK_2,y.default.XK_KP_2),p("3",y.default.XK_3,y.default.XK_KP_3),p("4",y.default.XK_4,y.default.XK_KP_4),p("5",y.default.XK_5,y.default.XK_KP_5),p("6",y.default.XK_6,y.default.XK_KP_6),p("7",y.default.XK_7,y.default.XK_KP_7),p("8",y.default.XK_8,y.default.XK_KP_8),p("9",y.default.XK_9,y.default.XK_KP_9);var d=x;D.default=d},mYwL:function(R,D,n){var y=n("bYtY"),f=n("IwbS"),x=n("6GrX"),v=Math.PI;function m(p,d){d=d||{},y.defaults(d,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var u=new f.Group,s=new f.Rect({style:{fill:d.maskColor},zlevel:d.zlevel,z:1e4});u.add(s);var i=d.fontSize+" sans-serif",t=new f.Rect({style:{fill:"none",text:d.text,font:i,textPosition:"right",textDistance:10,textFill:d.textColor},zlevel:d.zlevel,z:10001});if(u.add(t),d.showSpinner){var o=new f.Arc({shape:{startAngle:-v/2,endAngle:-v/2+.1,r:d.spinnerRadius},style:{stroke:d.color,lineCap:"round",lineWidth:d.lineWidth},zlevel:d.zlevel,z:10001});o.animateShape(!0).when(1e3,{endAngle:v*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:v*3/2}).delay(300).start("circularInOut"),u.add(o)}return u.resize=function(){var e=x.getWidth(d.text,i),l=d.showSpinner?d.spinnerRadius:0,r=(p.getWidth()-l*2-(d.showSpinner&&e?10:0)-e)/2-(d.showSpinner?0:e/2),a=p.getHeight()/2;d.showSpinner&&o.setShape({cx:r,cy:a}),t.setShape({x:r-l,y:a-l,width:l*2,height:l*2}),s.setShape({x:0,y:0,width:p.getWidth(),height:p.getHeight()})},u.resize(),u}R.exports=m},mdPL:function(R,D,n){(function(y){var f=n("WFqU"),x=D&&!D.nodeType&&D,v=x&&typeof y=="object"&&y&&!y.nodeType&&y,m=v&&v.exports===x,p=m&&f.process,d=function(){try{var u=v&&v.require&&v.require("util").types;return u||p&&p.binding&&p.binding("util")}catch(s){}}();y.exports=d}).call(this,n("YuTi")(R))},mdZa:function(R,D,n){"use strict";typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(f,x){"use strict";if(f==null)throw new TypeError("Cannot convert undefined or null to object");for(var v=Object(f),m=1;m<arguments.length;m++){var p=arguments[m];if(p!=null)for(var d in p)Object.prototype.hasOwnProperty.call(p,d)&&(v[d]=p[d])}return v},writable:!0,configurable:!0}),function(){function y(f,x){x=x||{bubbles:!1,cancelable:!1,detail:void 0};var v=document.createEvent("CustomEvent");return v.initCustomEvent(f,x.bubbles,x.cancelable,x.detail),v}y.prototype=window.Event.prototype,typeof window.CustomEvent!="function"&&(window.CustomEvent=y)}(),Number.isInteger=Number.isInteger||function(f){return typeof f=="number"&&isFinite(f)&&Math.floor(f)===f}},"mh/l":function(R,D,n){"use strict";n.d(D,"b",function(){return S}),n.d(D,"d",function(){return E}),n.d(D,"c",function(){return C});var y=n("pVnL"),f=n.n(y),x=n("lwsE"),v=n.n(x),m=n("W8MJ"),p=n.n(m),d=n("7W2i"),u=n.n(d),s=n("LQ03"),i=n.n(s),t=n("lSNA"),o=n.n(t),e=n("q1tI"),l=n.n(e),r=n("TSYQ"),a=n.n(r),c=n("BGR+"),h=n("LlR5"),g=n("H84U"),A=n("3Nzz"),b=n("uaoM");function S(T){return typeof T=="undefined"||T===null?"":T}function E(T,w,O){if(O){var I=w;if(w.type==="click"){I=Object.create(w),I.target=T,I.currentTarget=T;var k=T.value;T.value="",O(I),T.value=k;return}O(I)}}function C(T,w,O,I,k){var M;return a()(T,(M={},o()(M,"".concat(T,"-sm"),O==="small"),o()(M,"".concat(T,"-lg"),O==="large"),o()(M,"".concat(T,"-disabled"),I),o()(M,"".concat(T,"-rtl"),k==="rtl"),o()(M,"".concat(T,"-borderless"),!w),M))}var _=function(T){u()(O,T);var w=i()(O);function O(I){var k;v()(this,O),k=w.call(this,I),k.direction="ltr",k.focus=function(){k.input.focus()},k.saveClearableInput=function(j){k.clearableInput=j},k.saveInput=function(j){k.input=j},k.onFocus=function(j){var P=k.props.onFocus;k.setState({focused:!0},k.clearPasswordValueAttribute),P&&P(j)},k.onBlur=function(j){var P=k.props.onBlur;k.setState({focused:!1},k.clearPasswordValueAttribute),P&&P(j)},k.handleReset=function(j){k.setValue("",function(){k.focus()}),E(k.input,j,k.props.onChange)},k.renderInput=function(j,P,X){var F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},U=k.props,K=U.className,z=U.addonBefore,V=U.addonAfter,Q=U.size,G=U.disabled,te=Object(c.default)(k.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return e.createElement("input",f()({autoComplete:F.autoComplete},te,{onChange:k.handleChange,onFocus:k.onFocus,onBlur:k.onBlur,onKeyDown:k.handleKeyDown,className:a()(C(j,X,Q||P,G,k.direction),o()({},K,K&&!z&&!V)),ref:k.saveInput}))},k.clearPasswordValueAttribute=function(){k.removePasswordTimeout=setTimeout(function(){k.input&&k.input.getAttribute("type")==="password"&&k.input.hasAttribute("value")&&k.input.removeAttribute("value")})},k.handleChange=function(j){k.setValue(j.target.value,k.clearPasswordValueAttribute),E(k.input,j,k.props.onChange)},k.handleKeyDown=function(j){var P=k.props,X=P.onPressEnter,F=P.onKeyDown;j.keyCode===13&&X&&X(j),F&&F(j)},k.renderComponent=function(j){var P=j.getPrefixCls,X=j.direction,F=j.input,U=k.state,K=U.value,z=U.focused,V=k.props,Q=V.prefixCls,G=V.bordered,te=G===void 0?!0:G,q=P("input",Q);return k.direction=X,e.createElement(A.b.Consumer,null,function(se){return e.createElement(h.a,f()({size:se},k.props,{prefixCls:q,inputType:"input",value:S(K),element:k.renderInput(q,se,te,F),handleReset:k.handleReset,ref:k.saveClearableInput,direction:X,focused:z,triggerFocus:k.focus,bordered:te}))})};var M=typeof I.value=="undefined"?I.defaultValue:I.value;return k.state={value:M,focused:!1,prevValue:I.value},k}return p()(O,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(k){return Object(h.b)(k)!==Object(h.b)(this.props)&&Object(b.a)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(k,M){this.props.value===void 0&&this.setState({value:k},M)}},{key:"render",value:function(){return e.createElement(g.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(k,M){var j=M.prevValue,P={prevValue:k.value};return(k.value!==void 0||j!==k.value)&&(P.value=k.value),P}}]),O}(e.Component);_.defaultProps={type:"text"},D.a=_},mr32:function(R,D,n){"use strict";var y=n("lSNA"),f=n.n(y),x=n("pVnL"),v=n.n(x),m=n("J4zp"),p=n.n(m),d=n("q1tI"),u=n("TSYQ"),s=n.n(u),i=n("BGR+"),t=n("V/uB"),o=n.n(t),e=n("H84U"),l=function(_,T){var w={};for(var O in _)Object.prototype.hasOwnProperty.call(_,O)&&T.indexOf(O)<0&&(w[O]=_[O]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,O=Object.getOwnPropertySymbols(_);I<O.length;I++)T.indexOf(O[I])<0&&Object.prototype.propertyIsEnumerable.call(_,O[I])&&(w[O[I]]=_[O[I]]);return w},r=function(T){var w,O=d.useContext(e.b),I=O.getPrefixCls,k=function(z){var V=T.checked,Q=T.onChange,G=T.onClick;Q&&Q(!V),G&&G(z)},M=T.prefixCls,j=T.className,P=T.checked,X=l(T,["prefixCls","className","checked"]),F=I("tag",M),U=s()(F,(w={},f()(w,"".concat(F,"-checkable"),!0),f()(w,"".concat(F,"-checkable-checked"),P),w),j);return delete X.onChange,d.createElement("span",v()({},X,{className:U,onClick:k}))},a=r,c=n("09Wf"),h=n("g0mS"),g=function(_,T){var w={};for(var O in _)Object.prototype.hasOwnProperty.call(_,O)&&T.indexOf(O)<0&&(w[O]=_[O]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,O=Object.getOwnPropertySymbols(_);I<O.length;I++)T.indexOf(O[I])<0&&Object.prototype.propertyIsEnumerable.call(_,O[I])&&(w[O[I]]=_[O[I]]);return w},A=new RegExp("^(".concat(c.a.join("|"),")(-inverse)?$")),b=new RegExp("^(".concat(c.b.join("|"),")$")),S=function(T,w){var O,I=T.prefixCls,k=T.className,M=T.style,j=T.children,P=T.icon,X=T.color,F=T.onClose,U=T.closeIcon,K=T.closable,z=K===void 0?!1:K,V=g(T,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),Q=d.useContext(e.b),G=Q.getPrefixCls,te=Q.direction,q=d.useState(!0),se=p()(q,2),re=se[0],xe=se[1];d.useEffect(function(){"visible"in V&&xe(V.visible)},[V.visible]);var Oe=function(){return X?A.test(X)||b.test(X):!1},Me=v()({backgroundColor:X&&!Oe()?X:void 0},M),Qe=Oe(),Ve=G("tag",I),ut=s()(Ve,(O={},f()(O,"".concat(Ve,"-").concat(X),Qe),f()(O,"".concat(Ve,"-has-color"),X&&!Qe),f()(O,"".concat(Ve,"-hidden"),!re),f()(O,"".concat(Ve,"-rtl"),te==="rtl"),O),k),Fe=function(be){if(be.stopPropagation(),F&&F(be),be.defaultPrevented)return;"visible"in V||xe(!1)},ue=function(){return z?U?d.createElement("div",{className:"".concat(Ve,"-close-icon"),onClick:Fe},U):d.createElement(o.a,{className:"".concat(Ve,"-close-icon"),onClick:Fe}):null},et="onClick"in V||j&&j.type==="a",he=Object(i.default)(V,["visible"]),J=P||null,Y=J?d.createElement(d.Fragment,null,J,d.createElement("span",null,j)):j,$=d.createElement("span",v()({},he,{ref:w,className:ut,style:Me}),Y,ue());return et?d.createElement(h.a,null,$):$},E=d.forwardRef(S);E.displayName="Tag",E.CheckableTag=a;var C=D.a=E},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(R){if(!0)module.exports=R();else var D})(function(){var define,module,exports;return function(){function R(D,n,y){function f(m,p){if(!n[m]){if(!D[m]){var d=typeof require=="function"&&require;if(!p&&d)return require(m,!0);if(x)return x(m,!0);var u=new Error("Cannot find module '"+m+"'");throw u.code="MODULE_NOT_FOUND",u}var s=n[m]={exports:{}};D[m][0].call(s.exports,function(i){var t=D[m][1][i];return f(t||i)},s,s.exports,R,D,n,y)}return n[m].exports}for(var x=typeof require=="function"&&require,v=0;v<y.length;v++)f(y[v]);return f}return R}()({1:[function(R,D,n){"use strict";var y=R("./browser/client");y.Buffer=R("buffer").Buffer,y.urllib=R("../shims/xhr"),y.version=R("./browser/version").version,D.exports=y},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(R,D,n){(function(y,f){"use strict";var x=R("babel-runtime/core-js/promise"),v=s(x),m=R("babel-runtime/regenerator"),p=s(m),d=R("babel-runtime/core-js/object/assign"),u=s(d);function s(P){return P&&P.__esModule?P:{default:P}}var i=R("debug")("ali-oss"),t=R("copy-to"),o=R("xml2js"),e=R("agentkeepalive"),l=R("merge-descriptors"),r=R("url"),a=R("is-type-of"),c=R("platform"),h=R("utility"),g=R("urllib"),A=R("./version"),b=R("bowser"),S=R("../common/signUtils"),E=R("../common/utils/isIP"),C=E.isIP,_=R("../common/client/initOptions"),T=R("../common/utils/createRequest"),w=T.createRequest,O=new e;function I(){var P=c.name,X=c.version;P&&P.toLowerCase&&P.toLowerCase()==="ie"&&X.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function k(){return location&&location.protocol==="https:"}function M(P,X){if(I(),!(this instanceof M))return new M(P,X);P&&P.inited?this.options=P:this.options=M.initOptions(P),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=g,this.agent=this.options.agent||O),this.ctx=X,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}D.exports=M,M.initOptions=function(X){X.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var F=(0,u.default)({secure:k(),useFetch:!1},X);return _(F)};var j=M.prototype;j.debug=i,l(j,R("./object")),l(j,R("../common/bucket/getBucketWebsite")),l(j,R("../common/bucket/putBucketWebsite")),l(j,R("../common/bucket/deleteBucketWebsite")),l(j,R("../common/bucket/getBucketLifecycle")),l(j,R("../common/bucket/putBucketLifecycle")),l(j,R("../common/bucket/deleteBucketLifecycle")),l(j,R("../common/bucket/putBucketVersioning")),l(j,R("../common/bucket/getBucketVersioning")),l(j,R("./managed-upload")),l(j,R("../common/multipart")),l(j,R("../common/parallel")),j.signature=function(X){return this.debug("authorization stringToSign: %s",X,"info"),S.computeSignature(this.options.accessKeySecret,X)},j.authorization=function(X,F,U,K){var z=S.buildCanonicalString(X.toUpperCase(),F,{headers:K,parameters:U});return S.authorization(this.options.accessKeyId,this.options.accessKeySecret,z)},j.request=function(X){var F,U,K,z,V,Q;return p.default.async(function(te){for(;;)switch(te.prev=te.next){case 0:return F=w.call(this,X),this.options.useFetch||(F.params.mode="disable-fetch"),U=void 0,K=void 0,z=!!X.stream,te.prev=5,te.next=8,p.default.awrap(this.urllib.request(F.url,F.params));case 8:U=te.sent,this.debug("response %s %s, got %s, headers: %j",X.method,F.url,U.status,U.headers,"info"),te.next=15;break;case 12:te.prev=12,te.t0=te.catch(5),K=te.t0;case 15:if(V=void 0,!(U&&X.successStatuses&&X.successStatuses.indexOf(U.status)===-1)){te.next=28;break}return te.next=19,p.default.awrap(this.requestError(U));case 19:if(V=te.sent,!(V.code==="RequestTimeTooSkewed"&&!z)){te.next=25;break}return this.options.amendTimeSkewed=+new Date(V.serverTime)-new Date,te.next=24,p.default.awrap(this.request(X));case 24:return te.abrupt("return",te.sent);case 25:V.params=X,te.next=32;break;case 28:if(!K){te.next=32;break}return te.next=31,p.default.awrap(this.requestError(K));case 31:V=te.sent;case 32:if(!V){te.next=34;break}throw V;case 34:if(!X.xmlResponse){te.next=39;break}return te.next=37,p.default.awrap(this.parseXML(U.data));case 37:Q=te.sent,U.data=Q;case 39:return te.abrupt("return",U);case 40:case"end":return te.stop()}},null,this,[[5,12]])},j._getResource=function(X){var F="/";return X.bucket&&(F+=X.bucket+"/"),X.object&&(F+=X.object),F},j._isIP=C,j._escape=function(X){return h.encodeURIComponent(X).replace(/%2F/g,"/")},j._getReqUrl=function(X){var F={};t(this.options.endpoint).to(F);var U=this._isIP(F.hostname),K=this.options.cname;X.bucket&&!K&&!U&&(F.host=X.bucket+"."+F.host);var z="/";X.bucket&&U&&(z+=X.bucket+"/"),X.object&&(z+=this._escape(X.object).replace(/\+/g,"%2B")),F.pathname=z;var V={};if(X.query&&l(V,X.query),X.subres){var Q={};a.string(X.subres)?Q[X.subres]="":a.array(X.subres)?X.subres.forEach(function(G){Q[G]=""}):Q=X.subres,l(V,Q)}return F.query=V,r.format(F)},j._getUserAgent=function(){var X=f&&f.browser?"js":"nodejs",F="aliyun-sdk-"+X+"/"+A.version,U=c.description;return!U&&f&&(U="Node.js "+f.version.slice(1)+" on "+f.platform+" "+f.arch),this._checkUserAgent(F+" "+U)},j._checkUserAgent=function(X){var F=X.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return F},j.checkBrowserAndVersion=function(X,F){return b.name===X&&b.version.split(".")[0]===F},j.parseXML=function(X){return new v.default(function(F,U){y.isBuffer(X)&&(X=X.toString()),o.parseString(X,{explicitRoot:!1,explicitArray:!1},function(K,z){K?U(K):F(z)})})},j.requestError=function(X){var F,U,K,z;return p.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(F=null,!(!X.data||!X.data.length)){Q.next=5;break}X.status===-1||X.status===-2?(F=new Error(X.message),F.name=X.name,F.status=X.status,F.code=X.name):(X.status===404?(F=new Error("Object not exists"),F.name="NoSuchKeyError",F.status=404,F.code="NoSuchKey"):X.status===412?(F=new Error("Pre condition failed"),F.name="PreconditionFailedError",F.status=412,F.code="PreconditionFailed"):(F=new Error("Unknow error, status: "+X.status),F.name="UnknowError",F.status=X.status),F.requestId=X.headers["x-oss-request-id"],F.host=""),Q.next=33;break;case 5:return U=String(X.data),this.debug("request response error data: %s",U,"error"),K=void 0,Q.prev=8,Q.next=11,p.default.awrap(this.parseXML(U));case 11:if(Q.t0=Q.sent,Q.t0){Q.next=14;break}Q.t0={};case 14:K=Q.t0,Q.next=24;break;case 17:return Q.prev=17,Q.t1=Q.catch(8),this.debug(U,"error"),Q.t1.message+=`
|
|
|
raw xml: `+U,Q.t1.status=X.status,Q.t1.requestId=X.headers["x-oss-request-id"],Q.abrupt("return",Q.t1);case 24:z=K.Message||"unknow request error, status: "+X.status,K.Condition&&(z+=" (condition: "+K.Condition+")"),F=new Error(z),F.name=K.Code?K.Code+"Error":"UnknowError",F.status=X.status,F.code=K.Code,F.requestId=K.RequestId,F.hostId=K.HostId,F.serverTime=K.ServerTime;case 33:return this.debug("generate error %j",F,"error"),Q.abrupt("return",F);case 35:case"end":return Q.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:R("../../node_modules/is-buffer/index.js")},R("_process"))},{"../../node_modules/is-buffer/index.js":197,"../common/bucket/deleteBucketLifecycle":6,"../common/bucket/deleteBucketWebsite":7,"../common/bucket/getBucketLifecycle":8,"../common/bucket/getBucketVersioning":9,"../common/bucket/getBucketWebsite":10,"../common/bucket/putBucketLifecycle":11,"../common/bucket/putBucketVersioning":12,"../common/bucket/putBucketWebsite":13,"../common/client/initOptions":15,"../common/multipart":18,"../common/parallel":33,"../common/signUtils":34,"../common/utils/createRequest":38,"../common/utils/isIP":45,"./managed-upload":3,"./object":4,"./version":5,_process:208,agentkeepalive:48,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,bowser:70,"copy-to":76,debug:288,"is-type-of":289,"merge-descriptors":200,platform:206,url:238,urllib:291,utility:290,xml2js:249}],3:[function(R,D,n){(function(y){"use strict";var f=R("babel-runtime/core-js/array/from"),x=u(f),v=R("babel-runtime/core-js/promise"),m=u(v),p=R("babel-runtime/regenerator"),d=u(p);function u(S){return S&&S.__esModule?S:{default:S}}var s=R("is-type-of"),i=R("util"),t=R("path"),o=R("mime"),e=R("copy-to"),l=R("../common/utils/isBlob"),r=l.isBlob,a=R("../common/utils/isFile"),c=a.isFile,h=n;h.multipartUpload=function(E,C,_){var T,w,O,I,k,M,j,P,X;return d.default.async(function(U){for(;;)switch(U.prev=U.next){case 0:if(this.resetCancelFlag(),_=_||{},!(_.checkpoint&&_.checkpoint.uploadId)){U.next=6;break}return U.next=5,d.default.awrap(this._resumeMultipart(_.checkpoint,_));case 5:return U.abrupt("return",U.sent);case 6:return T=100*1024,_.mime||(c(C)?_.mime=o.getType(t.extname(C.name)):r(C)?_.mime=C.type:_.mime=o.getType(t.extname(C))),_.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),U.next=12,d.default.awrap(this._getFileSize(C));case 12:if(w=U.sent,!(w<T)){U.next=25;break}return O=this._createStream(C,0,w),_.contentLength=w,U.next=18,d.default.awrap(this.putStream(E,O,_));case 18:if(I=U.sent,!(_&&_.progress)){U.next=22;break}return U.next=22,d.default.awrap(_.progress(1));case 22:return k={res:I.res,bucket:this.options.bucket,name:E,etag:I.res.headers.etag},(_.headers&&_.headers["x-oss-callback"]||_.callback)&&(k.data=I.data),U.abrupt("return",k);case 25:if(!(_.partSize&&!(parseInt(_.partSize,10)===_.partSize))){U.next=27;break}throw new Error("partSize must be int number");case 27:if(!(_.partSize&&_.partSize<T)){U.next=29;break}throw new Error("partSize must not be smaller than "+T);case 29:return U.next=31,d.default.awrap(this.initMultipartUpload(E,_));case 31:if(M=U.sent,j=M.uploadId,P=this._getPartSize(w,_.partSize),X={file:C,name:E,fileSize:w,partSize:P,uploadId:j,doneParts:[]},!(_&&_.progress)){U.next=38;break}return U.next=38,d.default.awrap(_.progress(0,X,M.res));case 38:return U.next=40,d.default.awrap(this._resumeMultipart(X,_));case 40:return U.abrupt("return",U.sent);case 41:case"end":return U.stop()}},null,this)},h._resumeMultipart=function(E,C){var _,T,w,O,I,k,M,j,P,X,F,U,K,z,V,Q,G,te;return d.default.async(function(se){for(;;)switch(se.prev=se.next){case 0:if(_=this,!this.isCancel()){se.next=3;break}throw this._makeCancelEvent();case 3:return T=E.file,w=E.fileSize,O=E.partSize,I=E.uploadId,k=E.doneParts,M=E.name,j=[],k.length>0&&e(k).to(j),P=this._divideParts(w,O),X=P.length,F=!1,U=function(xe,Oe){var Me=this;return new m.default(function(Ve,ut){var Fe,ue,et,he;return d.default.async(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(Y.prev=0,xe.isCancel()){Y.next=18;break}return Fe=P[Oe-1],ue={stream:xe._createStream(T,Fe.start,Fe.end),size:Fe.end-Fe.start},Y.next=6,d.default.awrap(xe._uploadPart(M,I,Oe,ue));case 6:if(et=Y.sent,!(!xe.isCancel()&&!F)){Y.next=15;break}if(E.doneParts.push({number:Oe,etag:et.res.headers.etag}),!C.progress){Y.next=12;break}return Y.next=12,d.default.awrap(C.progress(k.length/X,E,et.res));case 12:Ve({number:Oe,etag:et.res.headers.etag}),Y.next=16;break;case 15:Ve();case 16:Y.next=19;break;case 18:Ve();case 19:Y.next=30;break;case 21:Y.prev=21,Y.t0=Y.catch(0),he=new Error,he.name=Y.t0.name,he.message=Y.t0.message,he.stack=Y.t0.stack,he.partNum=Oe,e(Y.t0).to(he),ut(he);case 30:case"end":return Y.stop()}},null,Me,[[0,21]])})},K=(0,x.default)(new Array(X),function(re,xe){return xe+1}),z=j.map(function(re){return re.number}),V=K.filter(function(re){return z.indexOf(re)<0}),Q=5,G=C.parallel||Q,se.next=17,d.default.awrap(this._parallel(V,G,function(re){return new m.default(function(xe,Oe){U(_,re).then(function(Me){Me&&j.push(Me),xe()}).catch(function(Me){Oe(Me)})})}));case 17:if(te=se.sent,F=!0,!this.isCancel()){se.next=22;break}throw U=null,this._makeCancelEvent();case 22:if(!(te&&te.length>0)){se.next=25;break}throw te[0].message="Failed to upload some parts with error: "+te[0].toString()+" part_num: "+te[0].partNum,te[0];case 25:return se.next=27,d.default.awrap(this.completeMultipartUpload(M,I,j,C));case 27:return se.abrupt("return",se.sent);case 28:case"end":return se.stop()}},null,this)},h._getFileSize=function(E){return d.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:if(!s.buffer(E)){_.next=4;break}return _.abrupt("return",E.length);case 4:if(!(r(E)||c(E))){_.next=6;break}return _.abrupt("return",E.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return _.stop()}},null,this)};var g=R("stream"),A=g.Readable;function b(S,E){if(!(this instanceof b))return new b(S,E);A.call(this,E),this.file=S,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}i.inherits(b,A),b.prototype.readFileAndPush=function(E){if(this.fileBuffer)for(var C=!0;C&&this.fileBuffer&&this.start<this.fileBuffer.length;){var _=this.start,T=_+E;T=T>this.fileBuffer.length?this.fileBuffer.length:T,this.start=T,C=this.push(this.fileBuffer.slice(_,T))}},b.prototype._read=function(E){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var C=16*1024;E=E||C;var _=this;this.reader.onload=function(w){_.fileBuffer=y.from(new Uint8Array(w.target.result)),_.file=null,_.readFileAndPush(E)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(E)},h._createStream=function(E,C,_){if(r(E)||c(E))return new b(E.slice(C,_));throw new Error("_createStream requires File/Blob.")},h._getPartSize=function(E,C){var _=10*1e3,T=1024*1024;return C?Math.max(Math.ceil(E/_),C):T},h._divideParts=function(E,C){for(var _=Math.ceil(E/C),T=[],w=0;w<_;w++){var O=C*w,I=Math.min(O+C,E);T.push({start:O,end:I})}return T}}).call(this,R("buffer").Buffer)},{"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/array/from":52,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,buffer:73,"copy-to":76,"is-type-of":289,mime:202,path:205,stream:230,util:243}],4:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/promise"),f=s(y),x=R("babel-runtime/core-js/object/keys"),v=s(x),m=R("babel-runtime/core-js/object/assign"),p=s(m),d=R("babel-runtime/regenerator"),u=s(d);function s(_){return _&&_.__esModule?_:{default:_}}var i=R("utility"),t=R("fs"),o=R("is-type-of"),e=R("url"),l=R("copy-to"),r=R("path"),a=R("mime"),c=R("../common/callback"),h=R("../common/signUtils"),g=R("merge-descriptors"),A=R("../common/utils/isBlob"),b=A.isBlob,S=R("../common/utils/isFile"),E=S.isFile,C=n;C.append=function(T,w,O){var I;return u.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return O=O||{},O.position===void 0&&(O.position="0"),O.subres={append:"",position:O.position},O.method="POST",M.next=6,u.default.awrap(this.put(T,w,O));case 6:return I=M.sent,I.nextAppendPosition=I.res.headers["x-oss-next-append-position"],M.abrupt("return",I);case 9:case"end":return M.stop()}},null,this)},C.put=function(T,w,O){var I,k,M,j,P,X,F;return u.default.async(function(K){for(;;)switch(K.prev=K.next){case 0:if(I=void 0,O=O||{},T=this._objectName(T),!o.buffer(w)){K.next=7;break}I=w,K.next=33;break;case 7:if(!(b(w)||E(w))){K.next=32;break}return O.mime||(E(w)?O.mime=a.getType(r.extname(w.name)):O.mime=w.type),k=this._createStream(w,0,w.size),K.next=12,u.default.awrap(this._getFileSize(w));case 12:return O.contentLength=K.sent,K.prev=13,K.next=16,u.default.awrap(this.putStream(T,k,O));case 16:return M=K.sent,K.abrupt("return",M);case 20:if(K.prev=20,K.t0=K.catch(13),!(K.t0.code==="RequestTimeTooSkewed")){K.next=29;break}return this.options.amendTimeSkewed=+new Date(K.t0.serverTime)-new Date,K.next=26,u.default.awrap(this.put(T,w,O));case 26:return K.abrupt("return",K.sent);case 29:throw K.t0;case 30:K.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return O.headers=O.headers||{},this._convertMetaToHeaders(O.meta,O.headers),j=O.method||"PUT",P=this._objectRequestParams(j,T,O),c.encodeCallback(P,O),P.mime=O.mime,P.content=I,P.successStatuses=[200],K.next=43,u.default.awrap(this.request(P));case 43:return X=K.sent,F={name:T,url:this._objectUrl(T),res:X.res},P.headers&&P.headers["x-oss-callback"]&&(F.data=JSON.parse(X.data.toString())),K.abrupt("return",F);case 47:case"end":return K.stop()}},null,this,[[13,20]])},C.putStream=function(T,w,O){var I,k,M,j;return u.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:return O=O||{},O.headers=O.headers||{},T=this._objectName(T),O.contentLength?O.headers["Content-Length"]=O.contentLength:O.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(O.meta,O.headers),I=O.method||"PUT",k=this._objectRequestParams(I,T,O),c.encodeCallback(k,O),k.mime=O.mime,k.stream=w,k.successStatuses=[200],X.next=13,u.default.awrap(this.request(k));case 13:return M=X.sent,j={name:T,url:this._objectUrl(T),res:M.res},k.headers&&k.headers["x-oss-callback"]&&(j.data=JSON.parse(M.data.toString())),X.abrupt("return",j);case 17:case"end":return X.stop()}},null,this)},g(C,R("../common/object/copyObject")),g(C,R("../common/object/getObjectTagging")),g(C,R("../common/object/putObjectTagging")),g(C,R("../common/object/deleteObjectTagging")),g(C,R("../common/image")),g(C,R("../common/object/getBucketVersions")),g(C,R("../common/object/getACL")),g(C,R("../common/object/putACL")),g(C,R("../common/object/head")),g(C,R("../common/object/delete")),g(C,R("../common/object/get")),g(C,R("../common/object/putSymlink")),g(C,R("../common/object/getSymlink")),g(C,R("../common/object/deleteMulti")),g(C,R("../common/object/getObjectMeta")),C.putMeta=function(T,w,O){var I;return u.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,u.default.awrap(this.copy(T,T,{meta:w||{},timeout:O&&O.timeout,ctx:O&&O.ctx}));case 2:return I=M.sent,M.abrupt("return",I);case 4:case"end":return M.stop()}},null,this)},C.list=function(T,w){var O,I,k,M,j;return u.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:return O=this._objectRequestParams("GET","",w),O.query=T,O.xmlResponse=!0,O.successStatuses=[200],X.next=6,u.default.awrap(this.request(O));case 6:return I=X.sent,k=I.data.Contents,M=this,k&&(Array.isArray(k)||(k=[k]),k=k.map(function(F){return{name:F.Key,url:M._objectUrl(F.Key),lastModified:F.LastModified,etag:F.ETag,type:F.Type,size:Number(F.Size),storageClass:F.StorageClass,owner:{id:F.Owner.ID,displayName:F.Owner.DisplayName}}})),j=I.data.CommonPrefixes||null,j&&(Array.isArray(j)||(j=[j]),j=j.map(function(F){return F.Prefix})),X.abrupt("return",{res:I.res,objects:k,prefixes:j,nextMarker:I.data.NextMarker||null,isTruncated:I.data.IsTruncated==="true"});case 13:case"end":return X.stop()}},null,this)},C.restore=function(T,w){var O,I;return u.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return w=w||{},w.subres=(0,p.default)({restore:""},w.subres),w.versionId&&(w.subres.versionId=w.versionId),O=this._objectRequestParams("POST",T,w),O.successStatuses=[202],M.next=7,u.default.awrap(this.request(O));case 7:return I=M.sent,M.abrupt("return",{res:I.res});case 9:case"end":return M.stop()}},null,this)},C.signatureUrl=function(T,w){w=w||{},T=this._objectName(T),w.method=w.method||"GET";var O=i.timestamp()+(w.expires||1800),I={bucket:this.options.bucket,object:T},k=this._getResource(I);this.options.stsToken&&(w["security-token"]=this.options.stsToken);var M=h._signatureForURL(this.options.accessKeySecret,w,k,O),j=e.parse(this._getReqUrl(I));return j.query={OSSAccessKeyId:this.options.accessKeyId,Expires:O,Signature:M.Signature},l(M.subResource).to(j.query),j.format()},C.getObjectUrl=function(T,w){return w?w[w.length-1]!=="/"&&(w+="/"):w=this.options.endpoint.format(),w+this._escape(this._objectName(T))},C._objectUrl=function(T){return this._getReqUrl({bucket:this.options.bucket,object:T})},C.generateObjectUrl=function(_,T){if(T)T[T.length-1]!=="/"&&(T+="/");else{T=this.options.endpoint.format();var w=e.parse(T),O=this.options.bucket;w.hostname=O+"."+w.hostname,w.host=O+"."+w.host,T=w.format()}return T+this._escape(this._objectName(_))},C._objectRequestParams=function(T,w,O){if(!this.options.bucket)throw new Error("Please create a bucket first");O=O||{},w=this._objectName(w);var I={object:w,bucket:this.options.bucket,method:T,subres:O&&O.subres,timeout:O&&O.timeout,ctx:O&&O.ctx};return O.headers&&(I.headers={},l(O.headers).to(I.headers)),I},C._objectName=function(T){return T.replace(/^\/+/,"")},C._convertMetaToHeaders=function(T,w){if(!T)return;(0,v.default)(T).forEach(function(O){w["x-oss-meta-"+O]=T[O]})},C._deleteFileSafe=function(T){var w=this;return new f.default(function(O){t.exists(T,function(I){I?t.unlink(T,function(k){k&&w.debug("unlink %j error: %s",T,k,"error"),O()}):O()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(R,D,n){"use strict";n.version="6.10.0"},{}],6:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(d){return d&&d.__esModule?d:{default:d}}var v=R("../utils/checkBucketName"),m=v.checkBucketName,p=n;p.deleteBucketLifecycle=function(u,s){var i,t;return f.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return m(u),i=this._bucketRequestParams("DELETE",u,"lifecycle",s),i.successStatuses=[204],e.next=5,f.default.awrap(this.request(i));case 5:return t=e.sent,e.abrupt("return",{res:t.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(d){return d&&d.__esModule?d:{default:d}}var v=R("../utils/checkBucketName"),m=v.checkBucketName,p=n;p.deleteBucketWebsite=function(u,s){var i,t;return f.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return m(u),i=this._bucketRequestParams("DELETE",u,"website",s),i.successStatuses=[204],e.next=5,f.default.awrap(this.request(i));case 5:return t=e.sent,e.abrupt("return",{res:t.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(t){return t&&t.__esModule?t:{default:t}}var v=R("../utils/checkBucketName"),m=v.checkBucketName,p=R("../utils/isArray"),d=p.isArray,u=R("../utils/formatObjKey"),s=u.formatObjKey,i=n;i.getBucketLifecycle=function(o,e){var l,r,a;return f.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return m(o),l=this._bucketRequestParams("GET",o,"lifecycle",e),l.successStatuses=[200],l.xmlResponse=!0,h.next=6,f.default.awrap(this.request(l));case 6:return r=h.sent,a=r.data.Rule||null,a&&(d(a)||(a=[a]),a=a.map(function(g){return g.ID&&(g.id=g.ID,delete g.ID),g.Tag&&!d(g.Tag)&&(g.Tag=[g.Tag]),s(g,"firstLowerCase")})),h.abrupt("return",{rules:a,res:r.res});case 10:case"end":return h.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(d){return d&&d.__esModule?d:{default:d}}var v=R("../utils/checkBucketName"),m=v.checkBucketName,p=n;p.getBucketVersioning=function(u,s){var i,t,o;return f.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return m(u),i=this._bucketRequestParams("GET",u,"versioning",s),i.xmlResponse=!0,i.successStatuses=[200],l.next=6,f.default.awrap(this.request(i));case 6:return t=l.sent,o=t.data.Status,l.abrupt("return",{status:t.status,versionStatus:o,res:t.res});case 9:case"end":return l.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(s){return s&&s.__esModule?s:{default:s}}var v=R("../utils/checkBucketName"),m=v.checkBucketName,p=R("../utils/isObject"),d=p.isObject,u=n;u.getBucketWebsite=function(i,t){var o,e,l;return f.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return m(i),o=this._bucketRequestParams("GET",i,"website",t),o.successStatuses=[200],o.xmlResponse=!0,a.next=6,f.default.awrap(this.request(o));case 6:return e=a.sent,l=[],e.data.RoutingRules&&e.data.RoutingRules.RoutingRule&&(d(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(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(E){return E&&E.__esModule?E:{default:E}}var v=R("../utils/checkBucketName"),m=v.checkBucketName,p=R("../utils/isArray"),d=p.isArray,u=R("../utils/deepCopy"),s=u.deepCopy,i=R("../utils/isObject"),t=i.isObject,o=R("../utils/obj2xml"),e=o.obj2xml,l=R("../utils/checkObjectTag"),r=l.checkObjectTag,a=R("../utils/getStrBytesCount"),c=a.getStrBytesCount,h=n;h.putBucketLifecycle=function(C,_,T){var w,O,I,k,M;return f.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:if(m(C),d(_)){P.next=3;break}throw new Error("rules must be Array");case 3:return w=this._bucketRequestParams("PUT",C,"lifecycle",T),O=[],I={LifecycleConfiguration:{Rule:O}},_.forEach(function(X){g(X),S(X),X.id&&(X.ID=X.id,delete X.id),O.push(X)}),k=e(I,{headers:!0,firstUpperCase:!0}),w.content=k,w.mime="xml",w.successStatuses=[200],P.next=13,f.default.awrap(this.request(w));case 13:return M=P.sent,P.abrupt("return",{res:M.res});case 15:case"end":return P.stop()}},null,this)};function g(E){E.days&&(E.expiration={days:E.days}),E.date&&(E.expiration={createdBeforeDate:E.date})}function A(E,C){var _=E.days,T=E.createdBeforeDate;if(!_&&!T)throw new Error(C+" must includes days or createdBeforeDate");if(_&&!/^[1-9][0-9]*$/.test(_))throw new Error("days must be a positive integer");if(T&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(T))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function b(E){if(!d(E)&&!t(E))throw new Error("tag must be Object or Array");E=t(E)?[E]:E;var C={},_=s(E);_.forEach(function(T){C[T.key]=T.value}),r(C)}function S(E){if(E.id&&c(E.id)>255)throw new Error("ID is composed of 255 bytes at most");if(E.prefix===""||E.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(E.status))throw new Error("Status must be Enabled or Disabled");if(E.transition){if(!["IA","Archive"].includes(E.transition.storageClass))throw new Error("StorageClass must be IA or Archive");A(E.transition,"Transition")}if(E.expiration){if(!E.expiration.expiredObjectDeleteMarker)A(E.expiration,"Expiration");else if(E.expiration.days||E.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(E.abortMultipartUpload&&A(E.abortMultipartUpload,"AbortMultipartUpload"),!E.expiration&&!E.abortMultipartUpload&&!E.transition&&!E.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(E.tag){if(E.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");b(E.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(s){return s&&s.__esModule?s:{default:s}}var v=R("../utils/checkBucketName"),m=v.checkBucketName,p=R("../utils/obj2xml"),d=p.obj2xml,u=n;u.putBucketVersioning=function(i,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,l,r;return f.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:if(m(i),["Enabled","Suspended"].includes(t)){c.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return e=this._bucketRequestParams("PUT",i,"versioning",o),l={VersioningConfiguration:{Status:t}},e.mime="xml",e.content=d(l,{headers:!0}),c.next=9,f.default.awrap(this.request(e));case 9:return r=c.sent,c.abrupt("return",{res:r.res,status:r.status});case 11:case"end":return c.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(t){return t&&t.__esModule?t:{default:t}}var v=R("../utils/checkBucketName"),m=v.checkBucketName,p=R("../utils/obj2xml"),d=p.obj2xml,u=R("../utils/isArray"),s=u.isArray,i=n;i.putBucketWebsite=function(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments[2],r,a,c,h,g;return f.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:if(m(o),r=this._bucketRequestParams("PUT",o,"website",l),a={Suffix:e.index||"index.html"},c={IndexDocument:a},h={WebsiteConfiguration:c},e.supportSubDir&&(a.SupportSubDir=e.supportSubDir),e.type&&(a.Type=e.type),e.error&&(c.ErrorDocument={Key:e.error}),!(e.routingRules!==void 0)){b.next=12;break}if(s(e.routingRules)){b.next=11;break}throw new Error("RoutingRules must be Array");case 11:c.RoutingRules={RoutingRule:e.routingRules};case 12:return h=d(h),r.content=h,r.mime="xml",r.successStatuses=[200],b.next=18,f.default.awrap(this.request(r));case 18:return g=b.sent,b.abrupt("return",{res:g.res});case 20:case"end":return b.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(R,D,n){(function(y){"use strict";var f=R("babel-runtime/core-js/object/keys"),x=p(f),v=R("babel-runtime/core-js/json/stringify"),m=p(v);function p(d){return d&&d.__esModule?d:{default:d}}n.encodeCallback=function(u,s){if(u.headers=u.headers||{},!Object.prototype.hasOwnProperty.call(u.headers,"x-oss-callback")&&s.callback){var i={callbackUrl:encodeURI(s.callback.url),callbackBody:s.callback.body};s.callback.host&&(i.callbackHost=s.callback.host),s.callback.contentType&&(i.callbackBodyType=s.callback.contentType);var t=y.from((0,m.default)(i)).toString("base64");if(u.headers["x-oss-callback"]=t,s.callback.customValue){var o={};(0,x.default)(s.callback.customValue).forEach(function(e){o["x:"+e]=s.callback.customValue[e]}),u.headers["x-oss-callback-var"]=y.from((0,m.default)(o)).toString("base64")}}}}).call(this,R("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/assign"),f=x(y);function x(i){return i&&i.__esModule?i:{default:i}}var v=R("humanize-ms"),m=R("url"),p=R("../utils/checkBucketName"),d=p.checkBucketName;function u(i,t){var o=m.parse(i);if(o.protocol||(o=m.parse("http"+(t?"s":"")+"://"+i)),o.protocol!=="http:"&&o.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return o}function s(i,t,o){var e=o?"https://":"http://",l=t?"-internal.aliyuncs.com":".aliyuncs.com",r="vpc100-oss-cn-";return i.substr(0,r.length)===r&&(l=".aliyuncs.com"),m.parse(e+i+l)}D.exports=function(i){if(!i||!i.accessKeyId||!i.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");i.bucket&&d(i.bucket);var t=(0,f.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},i);if(t.accessKeyId=t.accessKeyId.trim(),t.accessKeySecret=t.accessKeySecret.trim(),t.timeout&&(t.timeout=v(t.timeout)),t.endpoint)t.endpoint=u(t.endpoint,t.secure);else if(t.region)t.endpoint=s(t.region,t.internal,t.secure);else throw new Error("require options.endpoint or options.region");return t.inited=!0,t}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(R,D,n){"use strict";var y=R("merge-descriptors"),f=n;y(f,R("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(t){return t&&t.__esModule?t:{default:t}}var v=R("../utils/checkBucketName"),m=v.checkBucketName,p=R("querystring"),d=R("js-base64"),u=d.Base64.encode,s=n;s.processObjectSave=function(o,e,l,r){var a,c,h,g;return f.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return i(o,"sourceObject"),i(e,"targetObject"),i(l,"process"),e=this._objectName(e),r&&m(r),a=this._objectRequestParams("POST",o,{subres:"x-oss-process"}),c=r?",b_"+u(r):"",e=u(e),h={"x-oss-process":l+"|sys/saveas,o_"+e+c},a.content=p.stringify(h),b.next=12,f.default.awrap(this.request(a));case 12:return g=b.sent,b.abrupt("return",{res:g.res,status:g.res.status});case 14:case"end":return b.stop()}},null,this)};function i(t,o){if(!t)throw new Error(o+" is required");if(typeof t!="string")throw new Error(o+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(s){return s&&s.__esModule?s:{default:s}}var v=R("copy-to"),m=R("./callback"),p=R("./utils/deepCopy"),d=p.deepCopy,u=n;u.listUploads=function(i,t){var o,e,l,r;return f.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return t=t||{},o={},v(t).to(o),o.subres="uploads",e=this._objectRequestParams("GET","",o),e.query=i,e.xmlResponse=!0,e.successStatuses=[200],c.next=10,f.default.awrap(this.request(e));case 10:return l=c.sent,r=l.data.Upload||[],Array.isArray(r)||(r=[r]),r=r.map(function(h){return{name:h.Key,uploadId:h.UploadId,initiated:h.Initiated}}),c.abrupt("return",{res:l.res,uploads:r,bucket:l.data.Bucket,nextKeyMarker:l.data.NextKeyMarker,nextUploadIdMarker:l.data.NextUploadIdMarker,isTruncated:l.data.IsTruncated==="true"});case 15:case"end":return c.stop()}},null,this)},u.listParts=function(i,t,o,e){var l,r,a;return f.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return e=e||{},l={},v(e).to(l),l.subres={uploadId:t},r=this._objectRequestParams("GET",i,l),r.query=o,r.xmlResponse=!0,r.successStatuses=[200],h.next=10,f.default.awrap(this.request(r));case 10:return a=h.sent,h.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 h.stop()}},null,this)},u.abortMultipartUpload=function(i,t,o){var e,l,r;return f.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return this._stop(),o=o||{},e={},v(o).to(e),e.subres={uploadId:t},l=this._objectRequestParams("DELETE",i,e),l.successStatuses=[204],c.next=9,f.default.awrap(this.request(l));case 9:return r=c.sent,c.abrupt("return",{res:r.res});case 11:case"end":return c.stop()}},null,this)},u.initMultipartUpload=function(i,t){var o,e,l;return f.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return t=t||{},o={},v(t).to(o),o.headers=o.headers||{},this._convertMetaToHeaders(t.meta,o.headers),o.subres="uploads",e=this._objectRequestParams("POST",i,o),e.mime=t.mime,e.xmlResponse=!0,e.successStatuses=[200],a.next=12,f.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)},u.uploadPart=function(i,t,o,e,l,r,a){var c;return f.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return c={stream:this._createStream(e,l,r),size:r-l},g.next=3,f.default.awrap(this._uploadPart(i,t,o,c,a));case 3:return g.abrupt("return",g.sent);case 4:case"end":return g.stop()}},null,this)},u.completeMultipartUpload=function(i,t,o,e){var l,r,a,c,h,g,A,b;return f.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:for(l=o.concat().sort(function(C,_){return C.number-_.number}).filter(function(C,_,T){return!_||C.number!==T[_-1].number}),r=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,a=0;a<l.length;a++)c=l[a],r+=`<Part>
|
|
|
`,r+="<PartNumber>"+c.number+`</PartNumber>
|
|
|
`,r+="<ETag>"+c.etag+`</ETag>
|
|
|
`,r+=`</Part>
|
|
|
`;return r+="</CompleteMultipartUpload>",e=e||{},h={},h=d(e),h.headers&&delete h.headers["x-oss-server-side-encryption"],h.subres={uploadId:t},g=this._objectRequestParams("POST",i,h),m.encodeCallback(g,h),g.mime="xml",g.content=r,g.headers&&g.headers["x-oss-callback"]||(g.xmlResponse=!0),g.successStatuses=[200],E.next=17,f.default.awrap(this.request(g));case 17:return A=E.sent,b={res:A.res,bucket:g.bucket,name:i,etag:A.res.headers.etag},g.headers&&g.headers["x-oss-callback"]&&(b.data=JSON.parse(A.data.toString())),E.abrupt("return",b);case 21:case"end":return E.stop()}},null,this)},u._uploadPart=function(i,t,o,e,l){var r,a,c;return f.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return l=l||{},r={},v(l).to(r),r.headers={"Content-Length":e.size},r.subres={partNumber:o,uploadId:t},a=this._objectRequestParams("PUT",i,r),a.mime=r.mime,a.stream=e.stream,a.successStatuses=[200],g.next=11,f.default.awrap(this.request(a));case 11:if(c=g.sent,c.res.headers.etag){g.next=14;break}throw new Error(`Please set the etag of expose-headers in OSS
|
|
|
https://help.aliyun.com/document_detail/32069.html`);case 14:return e.stream=null,a.stream=null,g.abrupt("return",{name:i,etag:c.res.headers.etag,res:c.res});case 17:case"end":return g.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=d(y),x=R("babel-runtime/core-js/object/keys"),v=d(x),m=R("babel-runtime/helpers/typeof"),p=d(m);function d(t){return t&&t.__esModule?t:{default:t}}var u=R("../utils/checkBucketName"),s=u.checkBucketName,i=n;i.copy=function(o,e,l,r){var a,c,h;return f.default.async(function(A){for(;;)switch(A.prev=A.next){case 0:return(typeof l=="undefined"?"undefined":(0,p.default)(l))==="object"&&(r=l),r=r||{},r.headers=r.headers||{},(0,v.default)(r.headers).forEach(function(b){r.headers["x-oss-copy-source-"+b.toLowerCase()]=r.headers[b]}),r.meta&&(r.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(r.meta,r.headers),e=this._getSourceName(e,l),r.versionId&&(e=e+"?versionId="+r.versionId),r.headers["x-oss-copy-source"]=e,a=this._objectRequestParams("PUT",o,r),a.xmlResponse=!0,a.successStatuses=[200,304],A.next=14,f.default.awrap(this.request(a));case 14:return c=A.sent,h=c.data,h&&(h={etag:h.ETag,lastModified:h.LastModified}),A.abrupt("return",{data:h,res:c.res});case 18:case"end":return A.stop()}},null,this)},i._getSourceName=function(o,e){return typeof e=="string"?o=this._objectName(o):o[0]!=="/"?e=this.options.bucket:(e=o.replace(/\/(.+?)(\/.*)/,"$1"),o=o.replace(/(\/.+?\/)(.*)/,"$2")),s(e),o=encodeURI(o),o="/"+e+"/"+o,o}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var p=n;p.delete=function(u){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t;return f.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return s.subres=(0,v.default)({},s.subres),s.versionId&&(s.subres.versionId=s.versionId),i=this._objectRequestParams("DELETE",u,s),i.successStatuses=[204],e.next=6,f.default.awrap(this.request(i));case 6:return t=e.sent,e.abrupt("return",{res:t.res});case 8:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);function m(i){return i&&i.__esModule?i:{default:i}}var p=R("utility"),d=R("../utils/obj2xml"),u=d.obj2xml,s=n;s.deleteMulti=function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e,l,r,a,c,h,g,A,b,S,E,C;return f.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:if(e=[],!(!t||!t.length)){T.next=3;break}throw new Error("names is required");case 3:for(l=0;l<t.length;l++)r={},typeof t[l]=="string"?r.Key=p.escape(this._objectName(t[l])):(a=t[l],c=a.key,h=a.versionId,r.Key=p.escape(this._objectName(c)),r.VersionId=h),e.push(r);return g={Delete:{Quiet:!!o.quiet,Object:e}},A=u(g,{headers:!0}),o.subres=(0,v.default)({delete:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),b=this._objectRequestParams("POST","",o),b.mime="xml",b.content=A,b.xmlResponse=!0,b.successStatuses=[200],T.next=15,f.default.awrap(this.request(b));case 15:return S=T.sent,E=S.data,C=E&&E.Deleted||null,C&&(Array.isArray(C)||(C=[C])),T.abrupt("return",{res:S.res,deleted:C||[]});case 20:case"end":return T.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var p=n;p.deleteObjectTagging=function(u){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t;return f.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return s.subres=(0,v.default)({tagging:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),u=this._objectName(u),i=this._objectRequestParams("DELETE",u,s),i.successStatuses=[204],e.next=7,f.default.awrap(this.request(i));case 7:return t=e.sent,e.abrupt("return",{status:t.status,res:t.res});case 9:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);function m(s){return s&&s.__esModule?s:{default:s}}var p=R("fs"),d=R("is-type-of"),u=n;u.get=function(i,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,l,r,a;return f.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return e=null,l=!1,d.writableStream(t)?e=t:d.string(t)?(e=p.createWriteStream(t),l=!0):o=t,o=o||{},o.subres=(0,v.default)({},o.subres),o.versionId&&(o.subres.versionId=o.versionId),o.process&&(o.subres["x-oss-process"]=o.process),r=void 0,h.prev=8,a=this._objectRequestParams("GET",i,o),a.writeStream=e,a.successStatuses=[200,206,304],h.next=14,f.default.awrap(this.request(a));case 14:r=h.sent,l&&e.destroy(),h.next=25;break;case 18:if(h.prev=18,h.t0=h.catch(8),!l){h.next=24;break}return e.destroy(),h.next=24,f.default.awrap(this._deleteFileSafe(t));case 24:throw h.t0;case 25:return h.abrupt("return",{res:r.res,content:r.data});case 26:case"end":return h.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var p=n;p.getACL=function(u){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t;return f.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return s.subres=(0,v.default)({acl:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),u=this._objectName(u),i=this._objectRequestParams("GET",u,s),i.successStatuses=[200],i.xmlResponse=!0,e.next=8,f.default.awrap(this.request(i));case 8:return t=e.sent,e.abrupt("return",{acl:t.data.AccessControlList.Grant,owner:{id:t.data.Owner.ID,displayName:t.data.Owner.DisplayName},res:t.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/keys"),f=d(y),x=R("babel-runtime/regenerator"),v=d(x),m=R("babel-runtime/core-js/object/assign"),p=d(m);function d(a){return a&&a.__esModule?a:{default:a}}var u=n,s=R("../utils/isObject"),i=s.isObject,t=R("../utils/isArray"),o=t.isArray;u.getBucketVersions=e,u.listObjectVersions=e;function e(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h,g,A,b,S,E;return v.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:if(!(a.versionIdMarker&&a.keyMarker===void 0)){_.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return c.subres=(0,p.default)({versions:""},c.subres),c.versionId&&(c.subres.versionId=c.versionId),h=this._objectRequestParams("GET","",c),h.xmlResponse=!0,h.successStatuses=[200],h.query=r(a),_.next=10,v.default.awrap(this.request(h));case 10:return g=_.sent,A=g.data.Version||[],b=g.data.DeleteMarker||[],S=this,A&&(Array.isArray(A)||(A=[A]),A=A.map(function(T){return{name:T.Key,url:S._objectUrl(T.Key),lastModified:T.LastModified,isLatest:T.IsLatest==="true",versionId:T.VersionId,etag:T.ETag,type:T.Type,size:Number(T.Size),storageClass:T.StorageClass,owner:{id:T.Owner.ID,displayName:T.Owner.DisplayName}}})),b&&(o(b)||(b=[b]),b=b.map(function(T){return{name:T.Key,lastModified:T.LastModified,versionId:T.VersionId,owner:{id:T.Owner.ID,displayName:T.Owner.DisplayName}}})),E=g.data.CommonPrefixes||null,E&&(o(E)||(E=[E]),E=E.map(function(T){return T.Prefix})),_.abrupt("return",{res:g.res,objects:A,deleteMarker:b,prefixes:E,nextMarker:g.data.NextMarker||null,NextVersionIdMarker:g.data.NextVersionIdMarker||null,isTruncated:g.data.IsTruncated==="true"});case 19:case"end":return _.stop()}},null,this)}function l(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()}function r(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c={};return i(a)&&(0,f.default)(a).forEach(function(h){c[l(h)]=a[h]}),c}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var p=n;p.getObjectMeta=function(u,s){var i,t;return f.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return s=s||{},u=this._objectName(u),s.subres=(0,v.default)({objectMeta:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),i=this._objectRequestParams("HEAD",u,s),i.successStatuses=[200],e.next=8,f.default.awrap(this.request(i));case 8:return t=e.sent,e.abrupt("return",{status:t.status,res:t.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);function m(s){return s&&s.__esModule?s:{default:s}}var p=n,d=R("../utils/isObject"),u=d.isObject;p.getObjectTagging=function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,e,l,r,a;return f.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return t.subres=(0,v.default)({tagging:""},t.subres),t.versionId&&(t.subres.versionId=t.versionId),i=this._objectName(i),o=this._objectRequestParams("GET",i,t),o.successStatuses=[200],h.next=7,f.default.awrap(this.request(o));case 7:return e=h.sent,h.next=10,f.default.awrap(this.parseXML(e.data));case 10:return l=h.sent,r=l.TagSet.Tag,r=r&&u(r)?[r]:r||[],a={},r.forEach(function(g){a[g.Key]=g.Value}),h.abrupt("return",{status:e.status,res:e.res,tag:a});case 16:case"end":return h.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var p=n;p.getSymlink=function(u){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t,o;return f.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return s.subres=(0,v.default)({symlink:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),u=this._objectName(u),i=this._objectRequestParams("GET",u,s),i.successStatuses=[200],l.next=7,f.default.awrap(this.request(i));case 7:return t=l.sent,o=t.res.headers["x-oss-symlink-target"],l.abrupt("return",{targetName:decodeURIComponent(o),res:t.res});case 10:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=d(y),x=R("babel-runtime/core-js/object/keys"),v=d(x),m=R("babel-runtime/core-js/object/assign"),p=d(m);function d(s){return s&&s.__esModule?s:{default:s}}var u=n;u.head=function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,e,l;return f.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return t.subres=(0,p.default)({},t.subres),t.versionId&&(t.subres.versionId=t.versionId),o=this._objectRequestParams("HEAD",i,t),o.successStatuses=[200,304],a.next=6,f.default.awrap(this.request(o));case 6:return e=a.sent,l={meta:null,res:e.res,status:e.status},e.status===200&&(0,v.default)(e.headers).forEach(function(c){c.indexOf("x-oss-meta-")===0&&(l.meta||(l.meta={}),l.meta[c.substring(11)]=e.headers[c])}),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(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var p=n;p.putACL=function(u,s,i){var t,o;return f.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return i=i||{},i.subres=(0,v.default)({acl:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),i.headers=i.headers||{},i.headers["x-oss-object-acl"]=s,u=this._objectName(u),t=this._objectRequestParams("PUT",u,i),t.successStatuses=[200],l.next=10,f.default.awrap(this.request(t));case 10:return o=l.sent,l.abrupt("return",{res:o.res});case 12:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=d(y),x=R("babel-runtime/core-js/object/keys"),v=d(x),m=R("babel-runtime/core-js/object/assign"),p=d(m);function d(e){return e&&e.__esModule?e:{default:e}}var u=R("../utils/obj2xml"),s=u.obj2xml,i=R("../utils/checkObjectTag"),t=i.checkObjectTag,o=n;o.putObjectTagging=function(l,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c,h,g;return f.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return t(r),a.subres=(0,p.default)({tagging:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),l=this._objectName(l),c=this._objectRequestParams("PUT",l,a),c.successStatuses=[200],r=(0,v.default)(r).map(function(S){return{Key:S,Value:r[S]}}),h={Tagging:{TagSet:{Tag:r}}},c.mime="xml",c.content=s(h),b.next=12,f.default.awrap(this.request(c));case 12:return g=b.sent,b.abrupt("return",{res:g.res,status:g.status});case 14:case"end":return b.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var p=n;p.putSymlink=function(u,s,i){var t,o;return f.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return i=i||{},i.headers=i.headers||{},s=this._escape(this._objectName(s)),this._convertMetaToHeaders(i.meta,i.headers),i.headers["x-oss-symlink-target"]=s,i.subres=(0,v.default)({symlink:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),i.storageClass&&(i.headers["x-oss-storage-class"]=i.storageClass),u=this._objectName(u),t=this._objectRequestParams("PUT",u,i),t.successStatuses=[200],l.next=13,f.default.awrap(this.request(t));case 13:return o=l.sent,l.abrupt("return",{res:o.res});case 15:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/promise"),v=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var p=n;p._parallelNode=function(u,s,i,t){var o,e,l,r,a,c,h,g;return f.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:o=this,e=[],l=[],r=u.length/s,a=u.length%s,c=a===0?r:(u.length-a)/s+1,h=1,g=0;case 8:if(!(g<u.length)){b.next=26;break}if(!o.isCancel()){b.next=11;break}return b.abrupt("break",26);case 11:if(t?l.push(i(o,u[g],t)):l.push(i(o,u[g])),!(l.length===s||h===c&&g===u.length-1)){b.next=23;break}return b.prev=13,h+=1,b.next=17,f.default.awrap(v.default.all(l));case 17:b.next=22;break;case 19:b.prev=19,b.t0=b.catch(13),e.push(b.t0);case 22:l=[];case 23:g++,b.next=8;break;case 26:return b.abrupt("return",e);case 27:case"end":return b.stop()}},null,this,[[13,19]])},p._parallel=function(u,s,i){var t=this;return new v.default(function(o){var e=[];if(s<=0||!u){o(e);return}function l(E){return function(){if(E===null)throw new Error("Callback was already called.");var C=E;E=null;for(var _=arguments.length,T=Array(_),w=0;w<_;w++)T[w]=arguments[w];C.apply(this,T)}}function r(E){var C=-1,_=E.length;return function(){return++C<_&&!t.isCancel()?{value:E[C],key:C}:null}}var a=r(u),c=!1,h=0,g=!1;function A(E,C){h-=1,E?(c=!0,e.push(E),o(e)):C==={}||c&&h<=0?(c=!0,o(e)):g||(t.isCancel()?o(e):S())}function b(E,C){i(E).then(function(_){C(null,_)}).catch(function(_){C(_)})}function S(){for(g=!0;h<s&&!c&&!t.isCancel();){var E=a();if(E===null||e.length>0){c=!0,h<=0&&o(e);return}h+=1,b(E.value,l(A))}g=!1}S()})},p.cancel=function(u){this.options.cancelFlag=!0,u&&this.abortMultipartUpload(u.name,u.uploadId,u.options)},p.isCancel=function(){return this.options.cancelFlag},p.resetCancelFlag=function(){this.options.cancelFlag=!1},p._stop=function(){this.options.cancelFlag=!0},p._makeCancelEvent=function(){var u={status:0,name:"cancel"};return u}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(R,D,n){(function(y){"use strict";var f=R("babel-runtime/core-js/json/stringify"),x=p(f),v=R("babel-runtime/core-js/object/keys"),m=p(v);function p(s){return s&&s.__esModule?s:{default:s}}var d=R("./../../shims/crypto/crypto.js"),u=R("is-type-of");n.buildCanonicalizedResource=function(i,t){var o=""+i,e="?";if(u.string(t)&&t.trim()!=="")o+=e+t;else if(u.array(t))t.sort(),o+=e+t.join("&");else if(t){var l=function(c,h){return c[0]>h[0]?1:c[0]<h[0]?-1:0},r=function(c){o+=e+c,t[c]&&(o+="="+t[c]),e="&"};(0,m.default)(t).sort(l).forEach(r)}return o},n.buildCanonicalString=function(i,t,o,e){o=o||{};var l=o.headers||{},r="x-oss-",a=[],c={},h=[i.toUpperCase(),l["Content-Md5"]||"",l["Content-Type"]||l["Content-Type".toLowerCase()],e||l["x-oss-date"]];return(0,m.default)(l).forEach(function(g){var A=g.toLowerCase();A.indexOf(r)===0&&(c[A]=String(l[g]).trim())}),(0,m.default)(c).sort().forEach(function(g){a.push(g+":"+c[g])}),h=h.concat(a),h.push(this.buildCanonicalizedResource(t,o.parameters)),h.join(`
|
|
|
`)},n.computeSignature=function(i,t){var o=d.createHmac("sha1",i);return o.update(y.from(t,"utf8")).digest("base64")},n.authorization=function(i,t,o){return"OSS "+i+":"+this.computeSignature(t,o)},n._signatureForURL=function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments[2],e=arguments[3],l={},r=t.subResource,a=r===void 0?{}:r;if(t.process){var c="x-oss-process";a[c]=t.process}if(t.trafficLimit){var h="x-oss-traffic-limit";a[h]=t.trafficLimit}if(t.response&&(0,m.default)(t.response).forEach(function(S){var E="response-"+S.toLowerCase();a[E]=t.response[S]}),(0,m.default)(t).forEach(function(S){var E=S.toLowerCase(),C=t[S];E.indexOf("x-oss-")===0?l[E]=C:(E.indexOf("content-md5")===0||E.indexOf("content-type")===0)&&(l[S]=C)}),Object.prototype.hasOwnProperty.call(t,"security-token")&&(a["security-token"]=t["security-token"]),Object.prototype.hasOwnProperty.call(t,"callback")){var g={callbackUrl:encodeURI(t.callback.url),callbackBody:t.callback.body};if(t.callback.host&&(g.callbackHost=t.callback.host),t.callback.contentType&&(g.callbackBodyType=t.callback.contentType),a.callback=y.from((0,x.default)(g)).toString("base64"),t.callback.customValue){var A={};(0,m.default)(t.callback.customValue).forEach(function(S){A["x:"+S]=t.callback.customValue[S]}),a["callback-var"]=y.from((0,x.default)(A)).toString("base64")}}var b=this.buildCanonicalString(t.method,o,{headers:l,parameters:a},e.toString());return{Signature:this.computeSignature(i,b),subResource:a}}}).call(this,R("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(R,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkBucketName=void 0,n.checkBucketName=function(y,f){var x=f?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!x.test(y))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/entries"),f=x(y);function x(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0}),n.checkObjectTag=void 0;var v=R("./checkValid"),m=v.checkValid,p=R("./isObject"),d=p.isObject,u=[{validator:function(o){if(typeof o!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],s={key:[].concat(u,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(u,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function i(t){if(!d(t))throw new Error("tag must be Object");var o=(0,f.default)(t);if(o.length>10)throw new Error("maximum of 10 tags for a object");var e=["key","value"];o.forEach(function(l){l.forEach(function(r,a){m(r,s[e[a]])})})}n.checkObjectTag=i},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(R,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkValid=void 0;function y(f,x){x.forEach(function(v){if(v.validator)v.validator(f);else if(v.pattern&&!v.pattern.test(f))throw new Error(v.msg)})}n.checkValid=y},{}],38:[function(R,D,n){(function(y){"use strict";var f=R("babel-runtime/core-js/object/assign"),x=v(f);function v(l){return l&&l.__esModule?l:{default:l}}Object.defineProperty(n,"__esModule",{value:!0}),n.createRequest=void 0;var m=R("./../../../shims/crypto/crypto.js"),p=R("debug")("ali-oss"),d=R("mime"),u=R("dateformat"),s=R("copy-to"),i=R("path");function t(l,r){return l[r]||l[r.toLowerCase()]}function o(l,r){delete l[r],delete l[r.toLowerCase()]}function e(l){var r=new Date;this.options.amendTimeSkewed&&(r=+new Date+this.options.amendTimeSkewed);var a={"x-oss-date":u(r,"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,x.default)(a,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(a["x-oss-security-token"]=this.options.stsToken),s(l.headers).to(a),t(a,"Content-Type")||(l.mime&&l.mime.indexOf("/")>0?a["Content-Type"]=l.mime:a["Content-Type"]=d.getType(l.mime||i.extname(l.object||""))),t(a,"Content-Type")||o(a,"Content-Type"),l.content&&(a["Content-Md5"]=m.createHash("md5").update(y.from(l.content,"utf8")).digest("base64"),a["Content-Length"]||(a["Content-Length"]=l.content.length));var c=this._getResource(l);a.authorization=this.authorization(l.method,c,l.subres,a);var h=this._getReqUrl(l);p("request %s %s, with headers %j, !!stream: %s",l.method,h,a,!!l.stream);var g=l.timeout||this.options.timeout,A={method:l.method,content:l.content,stream:l.stream,headers:a,timeout:g,writeStream:l.writeStream,customResponse:l.customResponse,ctx:l.ctx||this.ctx};return this.agent&&(A.agent=this.agent),this.httpsAgent&&(A.httpsAgent=this.httpsAgent),{url:h,params:A}}n.createRequest=e}).call(this,R("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/keys"),f=m(y),x=R("babel-runtime/helpers/typeof"),v=m(x);function m(p){return p&&p.__esModule?p:{default:p}}Object.defineProperty(n,"__esModule",{value:!0}),n.deepCopy=void 0,n.deepCopy=function(p){if(p===null||(typeof p=="undefined"?"undefined":(0,v.default)(p))!=="object")return p;var d=Array.isArray(p)?[]:{};return(0,f.default)(p).forEach(function(u){d[u]=n.deepCopy(p[u])}),d}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/keys"),f=m(y),x=R("babel-runtime/helpers/typeof"),v=m(x);function m(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(n,"__esModule",{value:!0}),n.formatObjKey=void 0;function p(u,s){if(u===null||(typeof u=="undefined"?"undefined":(0,v.default)(u))!=="object")return u;var i=void 0;if(Array.isArray(u)){i=[];for(var t=0;t<u.length;t++)i.push(p(u[t],s))}else i={},(0,f.default)(u).forEach(function(o){i[d(o,s)]=p(u[o],s)});return i}n.formatObjKey=p;function d(u,s){return s==="firstUpperCase"?u=u.replace(/^./,function(i){return i.toUpperCase()}):s==="firstLowerCase"&&(u=u.replace(/^./,function(i){return i.toLowerCase()})),u}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(R,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getStrBytesCount=void 0;function y(f){for(var x=0,v=0;v<f.length;v++){var m=f.charAt(v);/^[\u00-\uff]$/.test(m)?x+=1:x+=2}return x}n.getStrBytesCount=y},{}],42:[function(R,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isArray=void 0,n.isArray=function(y){return Object.prototype.toString.call(y)==="[object Array]"}},{}],43:[function(R,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isBlob=void 0;function y(f){return typeof Blob!="undefined"&&f instanceof Blob}n.isBlob=y},{}],44:[function(R,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isFile=void 0,n.isFile=function(y){return typeof File!="undefined"&&y instanceof File}},{}],45:[function(R,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isIP=void 0,n.isIP=function(y){var f=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,x=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return f.test(y)||x.test(y)}},{}],46:[function(R,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isObject=void 0,n.isObject=function(y){return Object.prototype.toString.call(y)==="[object Object]"}},{}],47:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/keys"),f=x(y);function x(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(n,"__esModule",{value:!0}),n.obj2xml=void 0;var v=R("./formatObjKey");function m(d){return Object.prototype.toString.call(d).replace(/(.*? |])/g,"").toLowerCase()}function p(d,u){var s="";return u&&u.headers&&(s=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),u&&u.firstUpperCase&&(d=v.formatObjKey(d,"firstUpperCase")),m(d)==="object"?(0,f.default)(d).forEach(function(i){m(d[i])==="string"||m(d[i])==="number"?s+="<"+i+">"+d[i]+"</"+i+">":m(d[i])==="object"?s+="<"+i+">"+p(d[i])+"</"+i+">":m(d[i])==="array"?s+=d[i].map(function(t){return"<"+i+">"+p(t)+"</"+i+">"}).join(""):s+="<"+i+">"+d[i].toString()+"</"+i+">"}):s+=d.toString(),s}n.obj2xml=p},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(R,D,n){D.exports=y,D.exports.HttpsAgent=y;function y(){}},{}],49:[function(R,D,n){D.exports=R("./register")().Promise},{"./register":51}],50:[function(R,D,n){"use strict";var y="@@any-promise/REGISTRATION",f=null;D.exports=function(x,v){return function(p,d){p=p||null,d=d||{};var u=d.global!==!1;if(f===null&&u&&(f=x[y]||null),f!==null&&p!==null&&f.implementation!==p)throw new Error('any-promise already defined as "'+f.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return f===null&&(p!==null&&typeof d.Promise!="undefined"?f={Promise:d.Promise,implementation:p}:f=v(p),u&&(x[y]=f)),f}}},{}],51:[function(R,D,n){"use strict";D.exports=R("./loader")(window,y);function y(){if(typeof window.Promise=="undefined")throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}},{"./loader":50}],52:[function(R,D,n){D.exports={default:R("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(R,D,n){D.exports={default:R("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(R,D,n){D.exports={default:R("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(R,D,n){D.exports={default:R("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(R,D,n){D.exports={default:R("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(R,D,n){D.exports={default:R("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(R,D,n){D.exports={default:R("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(R,D,n){D.exports={default:R("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(R,D,n){D.exports={default:R("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(R,D,n){D.exports={default:R("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(R,D,n){D.exports={default:R("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(R,D,n){D.exports={default:R("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(R,D,n){D.exports={default:R("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(R,D,n){D.exports={default:R("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(R,D,n){D.exports={default:R("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(R,D,n){"use strict";n.__esModule=!0;var y=R("../core-js/symbol/iterator"),f=p(y),x=R("../core-js/symbol"),v=p(x),m=typeof v.default=="function"&&typeof f.default=="symbol"?function(d){return typeof d}:function(d){return d&&typeof v.default=="function"&&d.constructor===v.default&&d!==v.default.prototype?"symbol":typeof d};function p(d){return d&&d.__esModule?d:{default:d}}n.default=typeof v.default=="function"&&m(f.default)==="symbol"?function(d){return typeof d=="undefined"?"undefined":m(d)}:function(d){return d&&typeof v.default=="function"&&d.constructor===v.default&&d!==v.default.prototype?"symbol":typeof d=="undefined"?"undefined":m(d)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(R,D,n){D.exports=R("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(R,D,n){"use strict";n.byteLength=u,n.toByteArray=i,n.fromByteArray=e;for(var y=[],f=[],x=typeof Uint8Array!="undefined"?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,p=v.length;m<p;++m)y[m]=v[m],f[v.charCodeAt(m)]=m;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63;function d(l){var r=l.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=l.indexOf("=");a===-1&&(a=r);var c=a===r?0:4-a%4;return[a,c]}function u(l){var r=d(l),a=r[0],c=r[1];return(a+c)*3/4-c}function s(l,r,a){return(r+a)*3/4-a}function i(l){var r,a=d(l),c=a[0],h=a[1],g=new x(s(l,c,h)),A=0,b=h>0?c-4:c,S;for(S=0;S<b;S+=4)r=f[l.charCodeAt(S)]<<18|f[l.charCodeAt(S+1)]<<12|f[l.charCodeAt(S+2)]<<6|f[l.charCodeAt(S+3)],g[A++]=r>>16&255,g[A++]=r>>8&255,g[A++]=r&255;return h===2&&(r=f[l.charCodeAt(S)]<<2|f[l.charCodeAt(S+1)]>>4,g[A++]=r&255),h===1&&(r=f[l.charCodeAt(S)]<<10|f[l.charCodeAt(S+1)]<<4|f[l.charCodeAt(S+2)]>>2,g[A++]=r>>8&255,g[A++]=r&255),g}function t(l){return y[l>>18&63]+y[l>>12&63]+y[l>>6&63]+y[l&63]}function o(l,r,a){for(var c,h=[],g=r;g<a;g+=3)c=(l[g]<<16&16711680)+(l[g+1]<<8&65280)+(l[g+2]&255),h.push(t(c));return h.join("")}function e(l){for(var r,a=l.length,c=a%3,h=[],g=16383,A=0,b=a-c;A<b;A+=g)h.push(o(l,A,A+g>b?b:A+g));return c===1?(r=l[a-1],h.push(y[r>>2]+y[r<<4&63]+"==")):c===2&&(r=(l[a-2]<<8)+l[a-1],h.push(y[r>>10]+y[r>>4&63]+y[r<<2&63]+"=")),h.join("")}},{}],70:[function(R,D,n){/*!
|
|
|
* Bowser - a browser detector
|
|
|
* https://github.com/ded/bowser
|
|
|
* MIT License | (c) Dustin Diaz 2015
|
|
|
*/!function(y,f,x){typeof D!="undefined"&&D.exports?D.exports=x():typeof define=="function"&&define.amd?define(f,x):y[f]=x()}(this,"bowser",function(){var y=!0;function f(s){function i(U){var K=s.match(U);return K&&K.length>1&&K[1]||""}function t(U){var K=s.match(U);return K&&K.length>1&&K[2]||""}var o=i(/(ipod|iphone|ipad)/i).toLowerCase(),e=/like android/i.test(s),l=!e&&/android/i.test(s),r=/nexus\s*[0-6]\s*/i.test(s),a=!r&&/nexus\s*[0-9]+/i.test(s),c=/CrOS/.test(s),h=/silk/i.test(s),g=/sailfish/i.test(s),A=/tizen/i.test(s),b=/(web|hpw)(o|0)s/i.test(s),S=/windows phone/i.test(s),E=/SamsungBrowser/i.test(s),C=!S&&/windows/i.test(s),_=!o&&!h&&/macintosh/i.test(s),T=!l&&!g&&!A&&!b&&/linux/i.test(s),w=t(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),O=i(/version\/(\d+(\.\d+)?)/i),I=/tablet/i.test(s)&&!/tablet pc/i.test(s),k=!I&&/[^-]mobi/i.test(s),M=/xbox/i.test(s),j;/opera/i.test(s)?j={name:"Opera",opera:y,version:O||i(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(s)?j={name:"Opera",opera:y,version:i(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||O}:/SamsungBrowser/i.test(s)?j={name:"Samsung Internet for Android",samsungBrowser:y,version:O||i(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(s)?j={name:"NAVER Whale browser",whale:y,version:i(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(s)?j={name:"MZ Browser",mzbrowser:y,version:i(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(s)?j={name:"Opera Coast",coast:y,version:O||i(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(s)?j={name:"Focus",focus:y,version:i(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(s)?j={name:"Yandex Browser",yandexbrowser:y,version:O||i(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(s)?j={name:"UC Browser",ucbrowser:y,version:i(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(s)?j={name:"Maxthon",maxthon:y,version:i(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(s)?j={name:"Epiphany",epiphany:y,version:i(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(s)?j={name:"Puffin",puffin:y,version:i(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(s)?j={name:"Sleipnir",sleipnir:y,version:i(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(s)?j={name:"K-Meleon",kMeleon:y,version:i(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:S?(j={name:"Windows Phone",osname:"Windows Phone",windowsphone:y},w?(j.msedge=y,j.version=w):(j.msie=y,j.version=i(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(s)?j={name:"Internet Explorer",msie:y,version:i(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?j={name:"Chrome",osname:"Chrome OS",chromeos:y,chromeBook:y,chrome:y,version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(s)?j={name:"Microsoft Edge",msedge:y,version:w}:/vivaldi/i.test(s)?j={name:"Vivaldi",vivaldi:y,version:i(/vivaldi\/(\d+(\.\d+)?)/i)||O}:g?j={name:"Sailfish",osname:"Sailfish OS",sailfish:y,version:i(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(s)?j={name:"SeaMonkey",seamonkey:y,version:i(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(s)?(j={name:"Firefox",firefox:y,version:i(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(s)&&(j.firefoxos=y,j.osname="Firefox OS")):h?j={name:"Amazon Silk",silk:y,version:i(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(s)?j={name:"PhantomJS",phantom:y,version:i(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(s)?j={name:"SlimerJS",slimer:y,version:i(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(s)||/rim\stablet/i.test(s)?j={name:"BlackBerry",osname:"BlackBerry OS",blackberry:y,version:O||i(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:b?(j={name:"WebOS",osname:"WebOS",webos:y,version:O||i(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(s)&&(j.touchpad=y)):/bada/i.test(s)?j={name:"Bada",osname:"Bada",bada:y,version:i(/dolfin\/(\d+(\.\d+)?)/i)}:A?j={name:"Tizen",osname:"Tizen",tizen:y,version:i(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||O}:/qupzilla/i.test(s)?j={name:"QupZilla",qupzilla:y,version:i(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||O}:/chromium/i.test(s)?j={name:"Chromium",chromium:y,version:i(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||O}:/chrome|crios|crmo/i.test(s)?j={name:"Chrome",chrome:y,version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:l?j={name:"Android",version:O}:/safari|applewebkit/i.test(s)?(j={name:"Safari",safari:y},O&&(j.version=O)):o?(j={name:o=="iphone"?"iPhone":o=="ipad"?"iPad":"iPod"},O&&(j.version=O)):/googlebot/i.test(s)?j={name:"Googlebot",googlebot:y,version:i(/googlebot\/(\d+(\.\d+))/i)||O}:j={name:i(/^(.*)\/(.*) /),version:t(/^(.*)\/(.*) /)},!j.msedge&&/(apple)?webkit/i.test(s)?(/(apple)?webkit\/537\.36/i.test(s)?(j.name=j.name||"Blink",j.blink=y):(j.name=j.name||"Webkit",j.webkit=y),!j.version&&O&&(j.version=O)):!j.opera&&/gecko\//i.test(s)&&(j.name=j.name||"Gecko",j.gecko=y,j.version=j.version||i(/gecko\/(\d+(\.\d+)?)/i)),!j.windowsphone&&(l||j.silk)?(j.android=y,j.osname="Android"):!j.windowsphone&&o?(j[o]=y,j.ios=y,j.osname="iOS"):_?(j.mac=y,j.osname="macOS"):M?(j.xbox=y,j.osname="Xbox"):C?(j.windows=y,j.osname="Windows"):T&&(j.linux=y,j.osname="Linux");function P(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 X="";j.windows?X=P(i(/Windows ((NT|XP)( \d\d?.\d)?)/i)):j.windowsphone?X=i(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):j.mac?(X=i(/Mac OS X (\d+([_\.\s]\d+)*)/i),X=X.replace(/[_\s]/g,".")):o?(X=i(/os (\d+([_\s]\d+)*) like mac os x/i),X=X.replace(/[_\s]/g,".")):l?X=i(/android[ \/-](\d+(\.\d+)*)/i):j.webos?X=i(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):j.blackberry?X=i(/rim\stablet\sos\s(\d+(\.\d+)*)/i):j.bada?X=i(/bada\/(\d+(\.\d+)*)/i):j.tizen&&(X=i(/tizen[\/\s](\d+(\.\d+)*)/i)),X&&(j.osversion=X);var F=!j.windows&&X.split(".")[0];return I||a||o=="ipad"||l&&(F==3||F>=4&&!k)||j.silk?j.tablet=y:(k||o=="iphone"||o=="ipod"||l||r||j.blackberry||j.webos||j.bada)&&(j.mobile=y),j.msedge||j.msie&&j.version>=10||j.yandexbrowser&&j.version>=15||j.vivaldi&&j.version>=1||j.chrome&&j.version>=20||j.samsungBrowser&&j.version>=4||j.whale&&p([j.version,"1.0"])===1||j.mzbrowser&&p([j.version,"6.0"])===1||j.focus&&p([j.version,"1.0"])===1||j.firefox&&j.version>=20||j.safari&&j.version>=6||j.opera&&j.version>=10||j.ios&&j.osversion&&j.osversion.split(".")[0]>=6||j.blackberry&&j.version>=10.1||j.chromium&&j.version>=20?j.a=y:j.msie&&j.version<10||j.chrome&&j.version<20||j.firefox&&j.version<20||j.safari&&j.version<6||j.opera&&j.version<10||j.ios&&j.osversion&&j.osversion.split(".")[0]<6||j.chromium&&j.version<20?j.c=y:j.x=y,j}var x=f(typeof navigator!="undefined"&&navigator.userAgent||"");x.test=function(s){for(var i=0;i<s.length;++i){var t=s[i];if(typeof t=="string"&&t in x)return!0}return!1};function v(s){return s.split(".").length}function m(s,i){var t=[],o;if(Array.prototype.map)return Array.prototype.map.call(s,i);for(o=0;o<s.length;o++)t.push(i(s[o]));return t}function p(s){for(var i=Math.max(v(s[0]),v(s[1])),t=m(s,function(o){var e=i-v(o);return o=o+new Array(e+1).join(".0"),m(o.split("."),function(l){return new Array(20-l.length).join("0")+l}).reverse()});--i>=0;){if(t[0][i]>t[1][i])return 1;if(t[0][i]===t[1][i]){if(i===0)return 0}else return-1}}function d(s,i,t){var o=x;typeof i=="string"&&(t=i,i=void 0),i===void 0&&(i=!1),t&&(o=f(t));var e=""+o.version;for(var l in s)if(s.hasOwnProperty(l)&&o[l]){if(typeof s[l]!="string")throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(s));return p([e,s[l]])<0}return i}function u(s,i,t){return!d(s,i,t)}return x.isUnsupportedBrowser=d,x.compareVersions=p,x.check=u,x._detect=f,x.detect=f,x})},{}],71:[function(R,D,n){},{}],72:[function(R,D,n){var y=R("buffer").Buffer,f=y.isEncoding||function(u){switch(u&&u.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function x(u){if(u&&!f(u))throw new Error("Unknown encoding: "+u)}var v=n.StringDecoder=function(u){this.encoding=(u||"utf8").toLowerCase().replace(/[-_]/,""),x(u);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=p;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=d;break;default:this.write=m;return}this.charBuffer=new y(6),this.charReceived=0,this.charLength=0};v.prototype.write=function(u){for(var s="";this.charLength;){var i=u.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:u.length;if(u.copy(this.charBuffer,this.charReceived,0,i),this.charReceived+=i,this.charReceived<this.charLength)return"";u=u.slice(i,u.length),s=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var o=s.charCodeAt(s.length-1);if(o>=55296&&o<=56319){this.charLength+=this.surrogateSize,s="";continue}if(this.charReceived=this.charLength=0,u.length===0)return s;break}this.detectIncompleteChar(u);var t=u.length;this.charLength&&(u.copy(this.charBuffer,0,u.length-this.charReceived,t),t-=this.charReceived),s+=u.toString(this.encoding,0,t);var t=s.length-1,o=s.charCodeAt(t);if(o>=55296&&o<=56319){var e=this.surrogateSize;return this.charLength+=e,this.charReceived+=e,this.charBuffer.copy(this.charBuffer,e,0,e),u.copy(this.charBuffer,0,0,e),s.substring(0,t)}return s},v.prototype.detectIncompleteChar=function(u){for(var s=u.length>=3?3:u.length;s>0;s--){var i=u[u.length-s];if(s==1&&i>>5==6){this.charLength=2;break}if(s<=2&&i>>4==14){this.charLength=3;break}if(s<=3&&i>>3==30){this.charLength=4;break}}this.charReceived=s},v.prototype.end=function(u){var s="";if(u&&u.length&&(s=this.write(u)),this.charReceived){var i=this.charReceived,t=this.charBuffer,o=this.encoding;s+=t.slice(0,i).toString(o)}return s};function m(u){return u.toString(this.encoding)}function p(u){this.charReceived=u.length%2,this.charLength=this.charReceived?2:0}function d(u){this.charReceived=u.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(R,D,n){(function(y,f){/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/"use strict";var x=R("base64-js"),v=R("ieee754"),m=R("isarray");n.Buffer=f,n.SlowBuffer=h,n.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=y.TYPED_ARRAY_SUPPORT!==void 0?y.TYPED_ARRAY_SUPPORT:p(),n.kMaxLength=d();function p(){try{var he=new Uint8Array(1);return he.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},he.foo()===42&&typeof he.subarray=="function"&&he.subarray(1,1).byteLength===0}catch(J){return!1}}function d(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(he,J){if(d()<J)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(he=new Uint8Array(J),he.__proto__=f.prototype):(he===null&&(he=new f(J)),he.length=J),he}function f(he,J,Y){if(!f.TYPED_ARRAY_SUPPORT&&!(this instanceof f))return new f(he,J,Y);if(typeof he=="number"){if(typeof J=="string")throw new Error("If encoding is specified then the first argument must be a string");return o(this,he)}return s(this,he,J,Y)}f.poolSize=8192,f._augment=function(he){return he.__proto__=f.prototype,he};function s(he,J,Y,$){if(typeof J=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&J instanceof ArrayBuffer?r(he,J,Y,$):typeof J=="string"?e(he,J,Y):a(he,J)}f.from=function(he,J,Y){return s(null,he,J,Y)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0}));function i(he){if(typeof he!="number")throw new TypeError('"size" argument must be a number');if(he<0)throw new RangeError('"size" argument must not be negative')}function t(he,J,Y,$){return i(J),J<=0?u(he,J):Y!==void 0?typeof $=="string"?u(he,J).fill(Y,$):u(he,J).fill(Y):u(he,J)}f.alloc=function(he,J,Y){return t(null,he,J,Y)};function o(he,J){if(i(J),he=u(he,J<0?0:c(J)|0),!f.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<J;++Y)he[Y]=0;return he}f.allocUnsafe=function(he){return o(null,he)},f.allocUnsafeSlow=function(he){return o(null,he)};function e(he,J,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!f.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var $=g(J,Y)|0;he=u(he,$);var de=he.write(J,Y);return de!==$&&(he=he.slice(0,de)),he}function l(he,J){var Y=J.length<0?0:c(J.length)|0;he=u(he,Y);for(var $=0;$<Y;$+=1)he[$]=J[$]&255;return he}function r(he,J,Y,$){if(J.byteLength,Y<0||J.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(J.byteLength<Y+($||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&$===void 0?J=new Uint8Array(J):$===void 0?J=new Uint8Array(J,Y):J=new Uint8Array(J,Y,$),f.TYPED_ARRAY_SUPPORT?(he=J,he.__proto__=f.prototype):he=l(he,J),he}function a(he,J){if(f.isBuffer(J)){var Y=c(J.length)|0;return he=u(he,Y),he.length===0||J.copy(he,0,0,Y),he}if(J){if(typeof ArrayBuffer!="undefined"&&J.buffer instanceof ArrayBuffer||"length"in J)return typeof J.length!="number"||et(J.length)?u(he,0):l(he,J);if(J.type==="Buffer"&&m(J.data))return l(he,J.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(he){if(he>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return he|0}function h(he){return+he!=he&&(he=0),f.alloc(+he)}f.isBuffer=function(J){return!!(J!=null&&J._isBuffer)},f.compare=function(J,Y){if(!f.isBuffer(J)||!f.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(J===Y)return 0;for(var $=J.length,de=Y.length,be=0,Ce=Math.min($,de);be<Ce;++be)if(J[be]!==Y[be]){$=J[be],de=Y[be];break}return $<de?-1:de<$?1:0},f.isEncoding=function(J){switch(String(J).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(J,Y){if(!m(J))throw new TypeError('"list" argument must be an Array of Buffers');if(J.length===0)return f.alloc(0);var $;if(Y===void 0)for(Y=0,$=0;$<J.length;++$)Y+=J[$].length;var de=f.allocUnsafe(Y),be=0;for($=0;$<J.length;++$){var Ce=J[$];if(!f.isBuffer(Ce))throw new TypeError('"list" argument must be an Array of Buffers');Ce.copy(de,be),be+=Ce.length}return de};function g(he,J){if(f.isBuffer(he))return he.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(he)||he instanceof ArrayBuffer))return he.byteLength;typeof he!="string"&&(he=""+he);var Y=he.length;if(Y===0)return 0;for(var $=!1;;)switch(J){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return Qe(he).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Fe(he).length;default:if($)return Qe(he).length;J=(""+J).toLowerCase(),$=!0}}f.byteLength=g;function A(he,J,Y){var $=!1;if((J===void 0||J<0)&&(J=0),J>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,J>>>=0,Y<=J)return"";for(he||(he="utf8");;)switch(he){case"hex":return U(this,J,Y);case"utf8":case"utf-8":return M(this,J,Y);case"ascii":return X(this,J,Y);case"latin1":case"binary":return F(this,J,Y);case"base64":return k(this,J,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,J,Y);default:if($)throw new TypeError("Unknown encoding: "+he);he=(he+"").toLowerCase(),$=!0}}f.prototype._isBuffer=!0;function b(he,J,Y){var $=he[J];he[J]=he[Y],he[Y]=$}f.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<J;Y+=2)b(this,Y,Y+1);return this},f.prototype.swap32=function(){var J=this.length;if(J%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Y=0;Y<J;Y+=4)b(this,Y,Y+3),b(this,Y+1,Y+2);return this},f.prototype.swap64=function(){var J=this.length;if(J%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Y=0;Y<J;Y+=8)b(this,Y,Y+7),b(this,Y+1,Y+6),b(this,Y+2,Y+5),b(this,Y+3,Y+4);return this},f.prototype.toString=function(){var J=this.length|0;return J===0?"":arguments.length===0?M(this,0,J):A.apply(this,arguments)},f.prototype.equals=function(J){if(!f.isBuffer(J))throw new TypeError("Argument must be a Buffer");return this===J?!0:f.compare(this,J)===0},f.prototype.inspect=function(){var J="",Y=n.INSPECT_MAX_BYTES;return this.length>0&&(J=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(J+=" ... ")),"<Buffer "+J+">"},f.prototype.compare=function(J,Y,$,de,be){if(!f.isBuffer(J))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),$===void 0&&($=J?J.length:0),de===void 0&&(de=0),be===void 0&&(be=this.length),Y<0||$>J.length||de<0||be>this.length)throw new RangeError("out of range index");if(de>=be&&Y>=$)return 0;if(de>=be)return-1;if(Y>=$)return 1;if(Y>>>=0,$>>>=0,de>>>=0,be>>>=0,this===J)return 0;for(var Ce=be-de,Be=$-Y,fe=Math.min(Ce,Be),we=this.slice(de,be),Re=J.slice(Y,$),rt=0;rt<fe;++rt)if(we[rt]!==Re[rt]){Ce=we[rt],Be=Re[rt];break}return Ce<Be?-1:Be<Ce?1:0};function S(he,J,Y,$,de){if(he.length===0)return-1;if(typeof Y=="string"?($=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=de?0:he.length-1),Y<0&&(Y=he.length+Y),Y>=he.length){if(de)return-1;Y=he.length-1}else if(Y<0)if(de)Y=0;else return-1;if(typeof J=="string"&&(J=f.from(J,$)),f.isBuffer(J))return J.length===0?-1:E(he,J,Y,$,de);if(typeof J=="number")return J=J&255,f.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?de?Uint8Array.prototype.indexOf.call(he,J,Y):Uint8Array.prototype.lastIndexOf.call(he,J,Y):E(he,[J],Y,$,de);throw new TypeError("val must be string, number or Buffer")}function E(he,J,Y,$,de){var be=1,Ce=he.length,Be=J.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(he.length<2||J.length<2)return-1;be=2,Ce/=2,Be/=2,Y/=2}function fe(ft,He){return be===1?ft[He]:ft.readUInt16BE(He*be)}var we;if(de){var Re=-1;for(we=Y;we<Ce;we++)if(fe(he,we)===fe(J,Re===-1?0:we-Re)){if(Re===-1&&(Re=we),we-Re+1===Be)return Re*be}else Re!==-1&&(we-=we-Re),Re=-1}else for(Y+Be>Ce&&(Y=Ce-Be),we=Y;we>=0;we--){for(var rt=!0,St=0;St<Be;St++)if(fe(he,we+St)!==fe(J,St)){rt=!1;break}if(rt)return we}return-1}f.prototype.includes=function(J,Y,$){return this.indexOf(J,Y,$)!==-1},f.prototype.indexOf=function(J,Y,$){return S(this,J,Y,$,!0)},f.prototype.lastIndexOf=function(J,Y,$){return S(this,J,Y,$,!1)};function C(he,J,Y,$){Y=Number(Y)||0;var de=he.length-Y;$?($=Number($),$>de&&($=de)):$=de;var be=J.length;if(be%2!==0)throw new TypeError("Invalid hex string");$>be/2&&($=be/2);for(var Ce=0;Ce<$;++Ce){var Be=parseInt(J.substr(Ce*2,2),16);if(isNaN(Be))return Ce;he[Y+Ce]=Be}return Ce}function _(he,J,Y,$){return ue(Qe(J,he.length-Y),he,Y,$)}function T(he,J,Y,$){return ue(Ve(J),he,Y,$)}function w(he,J,Y,$){return T(he,J,Y,$)}function O(he,J,Y,$){return ue(Fe(J),he,Y,$)}function I(he,J,Y,$){return ue(ut(J,he.length-Y),he,Y,$)}f.prototype.write=function(J,Y,$,de){if(Y===void 0)de="utf8",$=this.length,Y=0;else if($===void 0&&typeof Y=="string")de=Y,$=this.length,Y=0;else if(isFinite(Y))Y=Y|0,isFinite($)?($=$|0,de===void 0&&(de="utf8")):(de=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var be=this.length-Y;if(($===void 0||$>be)&&($=be),J.length>0&&($<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");for(var Ce=!1;;)switch(de){case"hex":return C(this,J,Y,$);case"utf8":case"utf-8":return _(this,J,Y,$);case"ascii":return T(this,J,Y,$);case"latin1":case"binary":return w(this,J,Y,$);case"base64":return O(this,J,Y,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,J,Y,$);default:if(Ce)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),Ce=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(he,J,Y){return J===0&&Y===he.length?x.fromByteArray(he):x.fromByteArray(he.slice(J,Y))}function M(he,J,Y){Y=Math.min(he.length,Y);for(var $=[],de=J;de<Y;){var be=he[de],Ce=null,Be=be>239?4:be>223?3:be>191?2:1;if(de+Be<=Y){var fe,we,Re,rt;switch(Be){case 1:be<128&&(Ce=be);break;case 2:fe=he[de+1],(fe&192)===128&&(rt=(be&31)<<6|fe&63,rt>127&&(Ce=rt));break;case 3:fe=he[de+1],we=he[de+2],(fe&192)===128&&(we&192)===128&&(rt=(be&15)<<12|(fe&63)<<6|we&63,rt>2047&&(rt<55296||rt>57343)&&(Ce=rt));break;case 4:fe=he[de+1],we=he[de+2],Re=he[de+3],(fe&192)===128&&(we&192)===128&&(Re&192)===128&&(rt=(be&15)<<18|(fe&63)<<12|(we&63)<<6|Re&63,rt>65535&&rt<1114112&&(Ce=rt))}}Ce===null?(Ce=65533,Be=1):Ce>65535&&(Ce-=65536,$.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),$.push(Ce),de+=Be}return P($)}var j=4096;function P(he){var J=he.length;if(J<=j)return String.fromCharCode.apply(String,he);for(var Y="",$=0;$<J;)Y+=String.fromCharCode.apply(String,he.slice($,$+=j));return Y}function X(he,J,Y){var $="";Y=Math.min(he.length,Y);for(var de=J;de<Y;++de)$+=String.fromCharCode(he[de]&127);return $}function F(he,J,Y){var $="";Y=Math.min(he.length,Y);for(var de=J;de<Y;++de)$+=String.fromCharCode(he[de]);return $}function U(he,J,Y){var $=he.length;(!J||J<0)&&(J=0),(!Y||Y<0||Y>$)&&(Y=$);for(var de="",be=J;be<Y;++be)de+=Me(he[be]);return de}function K(he,J,Y){for(var $=he.slice(J,Y),de="",be=0;be<$.length;be+=2)de+=String.fromCharCode($[be]+$[be+1]*256);return de}f.prototype.slice=function(J,Y){var $=this.length;J=~~J,Y=Y===void 0?$:~~Y,J<0?(J+=$,J<0&&(J=0)):J>$&&(J=$),Y<0?(Y+=$,Y<0&&(Y=0)):Y>$&&(Y=$),Y<J&&(Y=J);var de;if(f.TYPED_ARRAY_SUPPORT)de=this.subarray(J,Y),de.__proto__=f.prototype;else{var be=Y-J;de=new f(be,void 0);for(var Ce=0;Ce<be;++Ce)de[Ce]=this[Ce+J]}return de};function z(he,J,Y){if(he%1!==0||he<0)throw new RangeError("offset is not uint");if(he+J>Y)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J],be=1,Ce=0;++Ce<Y&&(be*=256);)de+=this[J+Ce]*be;return de},f.prototype.readUIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J+--Y],be=1;Y>0&&(be*=256);)de+=this[J+--Y]*be;return de},f.prototype.readUInt8=function(J,Y){return Y||z(J,1,this.length),this[J]},f.prototype.readUInt16LE=function(J,Y){return Y||z(J,2,this.length),this[J]|this[J+1]<<8},f.prototype.readUInt16BE=function(J,Y){return Y||z(J,2,this.length),this[J]<<8|this[J+1]},f.prototype.readUInt32LE=function(J,Y){return Y||z(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},f.prototype.readUInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},f.prototype.readIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J],be=1,Ce=0;++Ce<Y&&(be*=256);)de+=this[J+Ce]*be;return be*=128,de>=be&&(de-=Math.pow(2,8*Y)),de},f.prototype.readIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=Y,be=1,Ce=this[J+--de];de>0&&(be*=256);)Ce+=this[J+--de]*be;return be*=128,Ce>=be&&(Ce-=Math.pow(2,8*Y)),Ce},f.prototype.readInt8=function(J,Y){return Y||z(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},f.prototype.readInt16LE=function(J,Y){Y||z(J,2,this.length);var $=this[J]|this[J+1]<<8;return $&32768?$|4294901760:$},f.prototype.readInt16BE=function(J,Y){Y||z(J,2,this.length);var $=this[J+1]|this[J]<<8;return $&32768?$|4294901760:$},f.prototype.readInt32LE=function(J,Y){return Y||z(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},f.prototype.readInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},f.prototype.readFloatLE=function(J,Y){return Y||z(J,4,this.length),v.read(this,J,!0,23,4)},f.prototype.readFloatBE=function(J,Y){return Y||z(J,4,this.length),v.read(this,J,!1,23,4)},f.prototype.readDoubleLE=function(J,Y){return Y||z(J,8,this.length),v.read(this,J,!0,52,8)},f.prototype.readDoubleBE=function(J,Y){return Y||z(J,8,this.length),v.read(this,J,!1,52,8)};function V(he,J,Y,$,de,be){if(!f.isBuffer(he))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>de||J<be)throw new RangeError('"value" argument is out of bounds');if(Y+$>he.length)throw new RangeError("Index out of range")}f.prototype.writeUIntLE=function(J,Y,$,de){if(J=+J,Y=Y|0,$=$|0,!de){var be=Math.pow(2,8*$)-1;V(this,J,Y,$,be,0)}var Ce=1,Be=0;for(this[Y]=J&255;++Be<$&&(Ce*=256);)this[Y+Be]=J/Ce&255;return Y+$},f.prototype.writeUIntBE=function(J,Y,$,de){if(J=+J,Y=Y|0,$=$|0,!de){var be=Math.pow(2,8*$)-1;V(this,J,Y,$,be,0)}var Ce=$-1,Be=1;for(this[Y+Ce]=J&255;--Ce>=0&&(Be*=256);)this[Y+Ce]=J/Be&255;return Y+$},f.prototype.writeUInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,255,0),f.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),this[Y]=J&255,Y+1};function Q(he,J,Y,$){J<0&&(J=65535+J+1);for(var de=0,be=Math.min(he.length-Y,2);de<be;++de)he[Y+de]=(J&255<<8*($?de:1-de))>>>($?de:1-de)*8}f.prototype.writeUInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},f.prototype.writeUInt16BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2};function G(he,J,Y,$){J<0&&(J=4294967295+J+1);for(var de=0,be=Math.min(he.length-Y,4);de<be;++de)he[Y+de]=J>>>($?de:3-de)*8&255}f.prototype.writeUInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[Y+3]=J>>>24,this[Y+2]=J>>>16,this[Y+1]=J>>>8,this[Y]=J&255):G(this,J,Y,!0),Y+4},f.prototype.writeUInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4},f.prototype.writeIntLE=function(J,Y,$,de){if(J=+J,Y=Y|0,!de){var be=Math.pow(2,8*$-1);V(this,J,Y,$,be-1,-be)}var Ce=0,Be=1,fe=0;for(this[Y]=J&255;++Ce<$&&(Be*=256);)J<0&&fe===0&&this[Y+Ce-1]!==0&&(fe=1),this[Y+Ce]=(J/Be>>0)-fe&255;return Y+$},f.prototype.writeIntBE=function(J,Y,$,de){if(J=+J,Y=Y|0,!de){var be=Math.pow(2,8*$-1);V(this,J,Y,$,be-1,-be)}var Ce=$-1,Be=1,fe=0;for(this[Y+Ce]=J&255;--Ce>=0&&(Be*=256);)J<0&&fe===0&&this[Y+Ce+1]!==0&&(fe=1),this[Y+Ce]=(J/Be>>0)-fe&255;return Y+$},f.prototype.writeInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,127,-128),f.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),J<0&&(J=255+J+1),this[Y]=J&255,Y+1},f.prototype.writeInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},f.prototype.writeInt16BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2},f.prototype.writeInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8,this[Y+2]=J>>>16,this[Y+3]=J>>>24):G(this,J,Y,!0),Y+4},f.prototype.writeInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),f.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4};function te(he,J,Y,$,de,be){if(Y+$>he.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function q(he,J,Y,$,de){return de||te(he,J,Y,4,34028234663852886e22,-34028234663852886e22),v.write(he,J,Y,$,23,4),Y+4}f.prototype.writeFloatLE=function(J,Y,$){return q(this,J,Y,!0,$)},f.prototype.writeFloatBE=function(J,Y,$){return q(this,J,Y,!1,$)};function se(he,J,Y,$,de){return de||te(he,J,Y,8,17976931348623157e292,-17976931348623157e292),v.write(he,J,Y,$,52,8),Y+8}f.prototype.writeDoubleLE=function(J,Y,$){return se(this,J,Y,!0,$)},f.prototype.writeDoubleBE=function(J,Y,$){return se(this,J,Y,!1,$)},f.prototype.copy=function(J,Y,$,de){if($||($=0),!de&&de!==0&&(de=this.length),Y>=J.length&&(Y=J.length),Y||(Y=0),de>0&&de<$&&(de=$),de===$)return 0;if(J.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("sourceStart out of bounds");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),J.length-Y<de-$&&(de=J.length-Y+$);var be=de-$,Ce;if(this===J&&$<Y&&Y<de)for(Ce=be-1;Ce>=0;--Ce)J[Ce+Y]=this[Ce+$];else if(be<1e3||!f.TYPED_ARRAY_SUPPORT)for(Ce=0;Ce<be;++Ce)J[Ce+Y]=this[Ce+$];else Uint8Array.prototype.set.call(J,this.subarray($,$+be),Y);return be},f.prototype.fill=function(J,Y,$,de){if(typeof J=="string"){if(typeof Y=="string"?(de=Y,Y=0,$=this.length):typeof $=="string"&&(de=$,$=this.length),J.length===1){var be=J.charCodeAt(0);be<256&&(J=be)}if(de!==void 0&&typeof de!="string")throw new TypeError("encoding must be a string");if(typeof de=="string"&&!f.isEncoding(de))throw new TypeError("Unknown encoding: "+de)}else typeof J=="number"&&(J=J&255);if(Y<0||this.length<Y||this.length<$)throw new RangeError("Out of range index");if($<=Y)return this;Y=Y>>>0,$=$===void 0?this.length:$>>>0,J||(J=0);var Ce;if(typeof J=="number")for(Ce=Y;Ce<$;++Ce)this[Ce]=J;else{var Be=f.isBuffer(J)?J:Qe(new f(J,de).toString()),fe=Be.length;for(Ce=0;Ce<$-Y;++Ce)this[Ce+Y]=Be[Ce%fe]}return this};var re=/[^+\/0-9A-Za-z-_]/g;function xe(he){if(he=Oe(he).replace(re,""),he.length<2)return"";for(;he.length%4!==0;)he=he+"=";return he}function Oe(he){return he.trim?he.trim():he.replace(/^\s+|\s+$/g,"")}function Me(he){return he<16?"0"+he.toString(16):he.toString(16)}function Qe(he,J){J=J||Infinity;for(var Y,$=he.length,de=null,be=[],Ce=0;Ce<$;++Ce){if(Y=he.charCodeAt(Ce),Y>55295&&Y<57344){if(!de){if(Y>56319){(J-=3)>-1&&be.push(239,191,189);continue}else if(Ce+1===$){(J-=3)>-1&&be.push(239,191,189);continue}de=Y;continue}if(Y<56320){(J-=3)>-1&&be.push(239,191,189),de=Y;continue}Y=(de-55296<<10|Y-56320)+65536}else de&&((J-=3)>-1&&be.push(239,191,189));if(de=null,Y<128){if((J-=1)<0)break;be.push(Y)}else if(Y<2048){if((J-=2)<0)break;be.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((J-=3)<0)break;be.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((J-=4)<0)break;be.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return be}function Ve(he){for(var J=[],Y=0;Y<he.length;++Y)J.push(he.charCodeAt(Y)&255);return J}function ut(he,J){for(var Y,$,de,be=[],Ce=0;Ce<he.length&&!((J-=2)<0);++Ce)Y=he.charCodeAt(Ce),$=Y>>8,de=Y%256,be.push(de),be.push($);return be}function Fe(he){return x.toByteArray(xe(he))}function ue(he,J,Y,$){for(var de=0;de<$&&!(de+Y>=J.length||de>=he.length);++de)J[de+Y]=he[de];return de}function et(he){return he!==he}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},R("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(R,D,n){D.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}},{}],75:[function(R,D,n){D.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(R,D,n){/*!
|
|
|
* copy-to - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var y=Array.prototype.slice;D.exports=f;function f(v,m){if(!(this instanceof f))return new f(v,m);this.src=v,this._withAccess=m}f.prototype.withAccess=function(v){return this._withAccess=v!==!1,this},f.prototype.pick=function(v){return Array.isArray(v)||(v=y.call(arguments)),v.length&&(this.keys=v),this},f.prototype.to=function(v){if(v=v||{},!this.src)return v;var m=this.keys||Object.keys(this.src);if(!this._withAccess){for(var p=0;p<m.length;p++){if(d=m[p],v[d]!==void 0)continue;v[d]=this.src[d]}return v}for(var p=0;p<m.length;p++){var d=m[p];if(!x(v,d))continue;var u=this.src.__lookupGetter__(d),s=this.src.__lookupSetter__(d);u&&v.__defineGetter__(d,u),s&&v.__defineSetter__(d,s),!u&&!s&&(v[d]=this.src[d])}return v},f.prototype.toCover=function(v){for(var m=this.keys||Object.keys(this.src),p=0;p<m.length;p++){var d=m[p];delete v[d];var u=this.src.__lookupGetter__(d),s=this.src.__lookupSetter__(d);u&&v.__defineGetter__(d,u),s&&v.__defineSetter__(d,s),!u&&!s&&(v[d]=this.src[d])}},f.prototype.override=f.prototype.toCover,f.prototype.and=function(v){var m={};return this.to(m),this.src=v,this.to(m),this.src=m,this};function x(v,m){return v[m]===void 0&&v.__lookupGetter__(m)===void 0&&v.__lookupSetter__(m)===void 0}},{}],77:[function(R,D,n){R("../../modules/es6.string.iterator"),R("../../modules/es6.array.from"),D.exports=R("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(R,D,n){var y=R("../../modules/_core"),f=y.JSON||(y.JSON={stringify:JSON.stringify});D.exports=function(v){return f.stringify.apply(f,arguments)}},{"../../modules/_core":99}],79:[function(R,D,n){R("../../modules/es6.object.assign"),D.exports=R("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(R,D,n){R("../../modules/es6.object.create");var y=R("../../modules/_core").Object;D.exports=function(x,v){return y.create(x,v)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(R,D,n){R("../../modules/es6.object.define-property");var y=R("../../modules/_core").Object;D.exports=function(x,v,m){return y.defineProperty(x,v,m)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(R,D,n){R("../../modules/es7.object.entries"),D.exports=R("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(R,D,n){R("../../modules/es6.object.get-own-property-names");var y=R("../../modules/_core").Object;D.exports=function(x){return y.getOwnPropertyNames(x)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(R,D,n){R("../../modules/es6.object.get-prototype-of"),D.exports=R("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(R,D,n){R("../../modules/es6.object.keys"),D.exports=R("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(R,D,n){R("../modules/es6.object.to-string"),R("../modules/es6.string.iterator"),R("../modules/web.dom.iterable"),R("../modules/es6.promise"),R("../modules/es7.promise.finally"),R("../modules/es7.promise.try"),D.exports=R("../modules/_core").Promise},{"../modules/_core":99,"../modules/es6.object.to-string":177,"../modules/es6.promise":178,"../modules/es6.string.iterator":180,"../modules/es7.promise.finally":183,"../modules/es7.promise.try":184,"../modules/web.dom.iterable":187}],87:[function(R,D,n){R("../modules/web.immediate"),D.exports=R("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(R,D,n){R("../../modules/es6.string.from-code-point"),D.exports=R("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(R,D,n){R("../../modules/es6.function.has-instance"),D.exports=R("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(R,D,n){R("../../modules/es6.symbol"),R("../../modules/es6.object.to-string"),R("../../modules/es7.symbol.async-iterator"),R("../../modules/es7.symbol.observable"),D.exports=R("../../modules/_core").Symbol},{"../../modules/_core":99,"../../modules/es6.object.to-string":177,"../../modules/es6.symbol":181,"../../modules/es7.symbol.async-iterator":185,"../../modules/es7.symbol.observable":186}],91:[function(R,D,n){R("../../modules/es6.string.iterator"),R("../../modules/web.dom.iterable"),D.exports=R("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(R,D,n){D.exports=function(y){if(typeof y!="function")throw TypeError(y+" is not a function!");return y}},{}],93:[function(R,D,n){D.exports=function(){}},{}],94:[function(R,D,n){D.exports=function(y,f,x,v){if(!(y instanceof f)||v!==void 0&&v in y)throw TypeError(x+": incorrect invocation!");return y}},{}],95:[function(R,D,n){var y=R("./_is-object");D.exports=function(f){if(!y(f))throw TypeError(f+" is not an object!");return f}},{"./_is-object":119}],96:[function(R,D,n){var y=R("./_to-iobject"),f=R("./_to-length"),x=R("./_to-absolute-index");D.exports=function(v){return function(m,p,d){var u=y(m),s=f(u.length),i=x(d,s),t;if(v&&p!=p){for(;s>i;)if(t=u[i++],t!=t)return!0}else for(;s>i;i++)if((v||i in u)&&u[i]===p)return v||i||0;return!v&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(R,D,n){var y=R("./_cof"),f=R("./_wks")("toStringTag"),x=y(function(){return arguments}())=="Arguments",v=function(p,d){try{return p[d]}catch(u){}};D.exports=function(m){var p,d,u;return m===void 0?"Undefined":m===null?"Null":typeof(d=v(p=Object(m),f))=="string"?d:x?y(p):(u=y(p))=="Object"&&typeof p.callee=="function"?"Arguments":u}},{"./_cof":98,"./_wks":166}],98:[function(R,D,n){var y={}.toString;D.exports=function(f){return y.call(f).slice(8,-1)}},{}],99:[function(R,D,n){var y=D.exports={version:"2.6.11"};typeof __e=="number"&&(__e=y)},{}],100:[function(R,D,n){"use strict";var y=R("./_object-dp"),f=R("./_property-desc");D.exports=function(x,v,m){v in x?y.f(x,v,f(0,m)):x[v]=m}},{"./_object-dp":132,"./_property-desc":146}],101:[function(R,D,n){var y=R("./_a-function");D.exports=function(f,x,v){if(y(f),x===void 0)return f;switch(v){case 1:return function(m){return f.call(x,m)};case 2:return function(m,p){return f.call(x,m,p)};case 3:return function(m,p,d){return f.call(x,m,p,d)}}return function(){return f.apply(x,arguments)}}},{"./_a-function":92}],102:[function(R,D,n){D.exports=function(y){if(y==null)throw TypeError("Can't call method on "+y);return y}},{}],103:[function(R,D,n){D.exports=!R("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(R,D,n){var y=R("./_is-object"),f=R("./_global").document,x=y(f)&&y(f.createElement);D.exports=function(v){return x?f.createElement(v):{}}},{"./_global":110,"./_is-object":119}],105:[function(R,D,n){D.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(R,D,n){var y=R("./_object-keys"),f=R("./_object-gops"),x=R("./_object-pie");D.exports=function(v){var m=y(v),p=f.f;if(p)for(var d=p(v),u=x.f,s=0,i;d.length>s;)u.call(v,i=d[s++])&&m.push(i);return m}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(R,D,n){var y=R("./_global"),f=R("./_core"),x=R("./_ctx"),v=R("./_hide"),m=R("./_has"),p="prototype",d=function u(s,i,t){var o=s&u.F,e=s&u.G,l=s&u.S,r=s&u.P,a=s&u.B,c=s&u.W,h=e?f:f[i]||(f[i]={}),g=h[p],A=e?y:l?y[i]:(y[i]||{})[p],b,S,E;e&&(t=i);for(b in t){if(S=!o&&A&&A[b]!==void 0,S&&m(h,b))continue;E=S?A[b]:t[b],h[b]=e&&typeof A[b]!="function"?t[b]:a&&S?x(E,y):c&&A[b]==E?function(C){var _=function(w,O,I){if(this instanceof C){switch(arguments.length){case 0:return new C;case 1:return new C(w);case 2:return new C(w,O)}return new C(w,O,I)}return C.apply(this,arguments)};return _[p]=C[p],_}(E):r&&typeof E=="function"?x(Function.call,E):E,r&&((h.virtual||(h.virtual={}))[b]=E,s&u.R&&g&&!g[b]&&v(g,b,E))}};d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,D.exports=d},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(R,D,n){D.exports=function(y){try{return!!y()}catch(f){return!0}}},{}],109:[function(R,D,n){var y=R("./_ctx"),f=R("./_iter-call"),x=R("./_is-array-iter"),v=R("./_an-object"),m=R("./_to-length"),p=R("./core.get-iterator-method"),d={},u={},n=D.exports=function(s,i,t,o,e){var l=e?function(){return s}:p(s),r=y(t,o,i?2:1),a=0,c,h,g,A;if(typeof l!="function")throw TypeError(s+" is not iterable!");if(x(l)){for(c=m(s.length);c>a;a++)if(A=i?r(v(h=s[a])[0],h[1]):r(s[a]),A===d||A===u)return A}else for(g=l.call(s);!(h=g.next()).done;)if(A=f(g,r,h.value,i),A===d||A===u)return A};n.BREAK=d,n.RETURN=u},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(R,D,n){var y=D.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=y)},{}],111:[function(R,D,n){var y={}.hasOwnProperty;D.exports=function(f,x){return y.call(f,x)}},{}],112:[function(R,D,n){var y=R("./_object-dp"),f=R("./_property-desc");D.exports=R("./_descriptors")?function(x,v,m){return y.f(x,v,f(1,m))}:function(x,v,m){return x[v]=m,x}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(R,D,n){var y=R("./_global").document;D.exports=y&&y.documentElement},{"./_global":110}],114:[function(R,D,n){D.exports=!R("./_descriptors")&&!R("./_fails")(function(){return Object.defineProperty(R("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(R,D,n){D.exports=function(y,f,x){var v=x===void 0;switch(f.length){case 0:return v?y():y.call(x);case 1:return v?y(f[0]):y.call(x,f[0]);case 2:return v?y(f[0],f[1]):y.call(x,f[0],f[1]);case 3:return v?y(f[0],f[1],f[2]):y.call(x,f[0],f[1],f[2]);case 4:return v?y(f[0],f[1],f[2],f[3]):y.call(x,f[0],f[1],f[2],f[3])}return y.apply(x,f)}},{}],116:[function(R,D,n){var y=R("./_cof");D.exports=Object("z").propertyIsEnumerable(0)?Object:function(f){return y(f)=="String"?f.split(""):Object(f)}},{"./_cof":98}],117:[function(R,D,n){var y=R("./_iterators"),f=R("./_wks")("iterator"),x=Array.prototype;D.exports=function(v){return v!==void 0&&(y.Array===v||x[f]===v)}},{"./_iterators":125,"./_wks":166}],118:[function(R,D,n){var y=R("./_cof");D.exports=Array.isArray||function(x){return y(x)=="Array"}},{"./_cof":98}],119:[function(R,D,n){D.exports=function(y){return typeof y=="object"?y!==null:typeof y=="function"}},{}],120:[function(R,D,n){var y=R("./_an-object");D.exports=function(f,x,v,m){try{return m?x(y(v)[0],v[1]):x(v)}catch(d){var p=f.return;throw p!==void 0&&y(p.call(f)),d}}},{"./_an-object":95}],121:[function(R,D,n){"use strict";var y=R("./_object-create"),f=R("./_property-desc"),x=R("./_set-to-string-tag"),v={};R("./_hide")(v,R("./_wks")("iterator"),function(){return this}),D.exports=function(m,p,d){m.prototype=y(v,{next:f(1,d)}),x(m,p+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(R,D,n){"use strict";var y=R("./_library"),f=R("./_export"),x=R("./_redefine"),v=R("./_hide"),m=R("./_iterators"),p=R("./_iter-create"),d=R("./_set-to-string-tag"),u=R("./_object-gpo"),s=R("./_wks")("iterator"),i=!([].keys&&"next"in[].keys()),t="@@iterator",o="keys",e="values",l=function(){return this};D.exports=function(r,a,c,h,g,A,b){p(c,a,h);var S=function(F){if(!i&&F in T)return T[F];switch(F){case o:return function(){return new c(this,F)};case e:return function(){return new c(this,F)}}return function(){return new c(this,F)}},E=a+" Iterator",C=g==e,_=!1,T=r.prototype,w=T[s]||T[t]||g&&T[g],O=w||S(g),I=g?C?S("entries"):O:void 0,k=a=="Array"&&T.entries||w,M,j,P;if(k&&(P=u(k.call(new r)),P!==Object.prototype&&P.next&&(d(P,E,!0),!y&&typeof P[s]!="function"&&v(P,s,l))),C&&w&&w.name!==e&&(_=!0,O=function(){return w.call(this)}),(!y||b)&&(i||_||!T[s])&&v(T,s,O),m[a]=O,m[E]=l,g)if(M={values:C?O:S(e),keys:A?O:S(o),entries:I},b)for(j in M)j in T||x(T,j,M[j]);else f(f.P+f.F*(i||_),a,M);return M}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(R,D,n){var y=R("./_wks")("iterator"),f=!1;try{var x=[7][y]();x.return=function(){f=!0},Array.from(x,function(){throw 2})}catch(v){}D.exports=function(v,m){if(!m&&!f)return!1;var p=!1;try{var d=[7],u=d[y]();u.next=function(){return{done:p=!0}},d[y]=function(){return u},v(d)}catch(s){}return p}},{"./_wks":166}],124:[function(R,D,n){D.exports=function(y,f){return{value:f,done:!!y}}},{}],125:[function(R,D,n){D.exports={}},{}],126:[function(R,D,n){D.exports=!0},{}],127:[function(R,D,n){var y=R("./_uid")("meta"),f=R("./_is-object"),x=R("./_has"),v=R("./_object-dp").f,m=0,p=Object.isExtensible||function(){return!0},d=!R("./_fails")(function(){return p(Object.preventExtensions({}))}),u=function(l){v(l,y,{value:{i:"O"+ ++m,w:{}}})},s=function(l,r){if(!f(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!x(l,y)){if(!p(l))return"F";if(!r)return"E";u(l)}return l[y].i},i=function(l,r){if(!x(l,y)){if(!p(l))return!0;if(!r)return!1;u(l)}return l[y].w},t=function(l){return d&&o.NEED&&p(l)&&!x(l,y)&&u(l),l},o=D.exports={KEY:y,NEED:!1,fastKey:s,getWeak:i,onFreeze:t}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(R,D,n){var y=R("./_global"),f=R("./_task").set,x=y.MutationObserver||y.WebKitMutationObserver,v=y.process,m=y.Promise,p=R("./_cof")(v)=="process";D.exports=function(){var d,u,s,i=function(){var r,a;for(p&&(r=v.domain)&&r.exit();d;){a=d.fn,d=d.next;try{a()}catch(c){throw d?s():u=void 0,c}}u=void 0,r&&r.enter()};if(p)s=function(){v.nextTick(i)};else if(x&&!(y.navigator&&y.navigator.standalone)){var t=!0,o=document.createTextNode("");new x(i).observe(o,{characterData:!0}),s=function(){o.data=t=!t}}else if(m&&m.resolve){var e=m.resolve(void 0);s=function(){e.then(i)}}else s=function(){f.call(y,i)};return function(l){var r={fn:l,next:void 0};u&&(u.next=r),d||(d=r,s()),u=r}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(R,D,n){"use strict";var y=R("./_a-function");function f(x){var v,m;this.promise=new x(function(p,d){if(v!==void 0||m!==void 0)throw TypeError("Bad Promise constructor");v=p,m=d}),this.resolve=y(v),this.reject=y(m)}D.exports.f=function(x){return new f(x)}},{"./_a-function":92}],130:[function(R,D,n){"use strict";var y=R("./_descriptors"),f=R("./_object-keys"),x=R("./_object-gops"),v=R("./_object-pie"),m=R("./_to-object"),p=R("./_iobject"),d=Object.assign;D.exports=!d||R("./_fails")(function(){var u={},s={},i=Symbol(),t="abcdefghijklmnopqrst";return u[i]=7,t.split("").forEach(function(o){s[o]=o}),d({},u)[i]!=7||Object.keys(d({},s)).join("")!=t})?function(s,i){for(var t=m(s),o=arguments.length,e=1,l=x.f,r=v.f;o>e;)for(var a=p(arguments[e++]),c=l?f(a).concat(l(a)):f(a),h=c.length,g=0,A;h>g;)A=c[g++],(!y||r.call(a,A))&&(t[A]=a[A]);return t}:d},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(R,D,n){var y=R("./_an-object"),f=R("./_object-dps"),x=R("./_enum-bug-keys"),v=R("./_shared-key")("IE_PROTO"),m=function(){},p="prototype",d=function(){var s=R("./_dom-create")("iframe"),i=x.length,t="<",o=">",e;for(s.style.display="none",R("./_html").appendChild(s),s.src="javascript:",e=s.contentWindow.document,e.open(),e.write(t+"script"+o+"document.F=Object"+t+"/script"+o),e.close(),d=e.F;i--;)delete d[p][x[i]];return d()};D.exports=Object.create||function(s,i){var t;return s!==null?(m[p]=y(s),t=new m,m[p]=null,t[v]=s):t=d(),i===void 0?t:f(t,i)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(R,D,n){var y=R("./_an-object"),f=R("./_ie8-dom-define"),x=R("./_to-primitive"),v=Object.defineProperty;n.f=R("./_descriptors")?Object.defineProperty:function(p,d,u){if(y(p),d=x(d,!0),y(u),f)try{return v(p,d,u)}catch(s){}if("get"in u||"set"in u)throw TypeError("Accessors not supported!");return"value"in u&&(p[d]=u.value),p}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(R,D,n){var y=R("./_object-dp"),f=R("./_an-object"),x=R("./_object-keys");D.exports=R("./_descriptors")?Object.defineProperties:function(m,p){f(m);for(var d=x(p),u=d.length,s=0,i;u>s;)y.f(m,i=d[s++],p[i]);return m}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(R,D,n){var y=R("./_object-pie"),f=R("./_property-desc"),x=R("./_to-iobject"),v=R("./_to-primitive"),m=R("./_has"),p=R("./_ie8-dom-define"),d=Object.getOwnPropertyDescriptor;n.f=R("./_descriptors")?d:function(s,i){if(s=x(s),i=v(i,!0),p)try{return d(s,i)}catch(t){}if(m(s,i))return f(!y.f.call(s,i),s[i])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(R,D,n){var y=R("./_to-iobject"),f=R("./_object-gopn").f,x={}.toString,v=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(d){try{return f(d)}catch(u){return v.slice()}};D.exports.f=function(d){return v&&x.call(d)=="[object Window]"?m(d):f(y(d))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(R,D,n){var y=R("./_object-keys-internal"),f=R("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(v){return y(v,f)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(R,D,n){n.f=Object.getOwnPropertySymbols},{}],138:[function(R,D,n){var y=R("./_has"),f=R("./_to-object"),x=R("./_shared-key")("IE_PROTO"),v=Object.prototype;D.exports=Object.getPrototypeOf||function(m){return m=f(m),y(m,x)?m[x]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?v:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(R,D,n){var y=R("./_has"),f=R("./_to-iobject"),x=R("./_array-includes")(!1),v=R("./_shared-key")("IE_PROTO");D.exports=function(m,p){var d=f(m),u=0,s=[],i;for(i in d)i!=v&&(y(d,i)&&s.push(i));for(;p.length>u;)y(d,i=p[u++])&&(~x(s,i)||s.push(i));return s}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(R,D,n){var y=R("./_object-keys-internal"),f=R("./_enum-bug-keys");D.exports=Object.keys||function(v){return y(v,f)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(R,D,n){n.f={}.propertyIsEnumerable},{}],142:[function(R,D,n){var y=R("./_export"),f=R("./_core"),x=R("./_fails");D.exports=function(v,m){var p=(f.Object||{})[v]||Object[v],d={};d[v]=m(p),y(y.S+y.F*x(function(){p(1)}),"Object",d)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(R,D,n){var y=R("./_descriptors"),f=R("./_object-keys"),x=R("./_to-iobject"),v=R("./_object-pie").f;D.exports=function(m){return function(p){for(var d=x(p),u=f(d),s=u.length,i=0,t=[],o;s>i;)o=u[i++],(!y||v.call(d,o))&&t.push(m?[o,d[o]]:d[o]);return t}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(R,D,n){D.exports=function(y){try{return{e:!1,v:y()}}catch(f){return{e:!0,v:f}}}},{}],145:[function(R,D,n){var y=R("./_an-object"),f=R("./_is-object"),x=R("./_new-promise-capability");D.exports=function(v,m){if(y(v),f(m)&&m.constructor===v)return m;var p=x.f(v),d=p.resolve;return d(m),p.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(R,D,n){D.exports=function(y,f){return{enumerable:!(y&1),configurable:!(y&2),writable:!(y&4),value:f}}},{}],147:[function(R,D,n){var y=R("./_hide");D.exports=function(f,x,v){for(var m in x)v&&f[m]?f[m]=x[m]:y(f,m,x[m]);return f}},{"./_hide":112}],148:[function(R,D,n){D.exports=R("./_hide")},{"./_hide":112}],149:[function(R,D,n){"use strict";var y=R("./_global"),f=R("./_core"),x=R("./_object-dp"),v=R("./_descriptors"),m=R("./_wks")("species");D.exports=function(p){var d=typeof f[p]=="function"?f[p]:y[p];v&&d&&!d[m]&&x.f(d,m,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(R,D,n){var y=R("./_object-dp").f,f=R("./_has"),x=R("./_wks")("toStringTag");D.exports=function(v,m,p){v&&!f(v=p?v:v.prototype,x)&&y(v,x,{configurable:!0,value:m})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(R,D,n){var y=R("./_shared")("keys"),f=R("./_uid");D.exports=function(x){return y[x]||(y[x]=f(x))}},{"./_shared":152,"./_uid":162}],152:[function(R,D,n){var y=R("./_core"),f=R("./_global"),x="__core-js_shared__",v=f[x]||(f[x]={});(D.exports=function(m,p){return v[m]||(v[m]=p!==void 0?p:{})})("versions",[]).push({version:y.version,mode:R("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(R,D,n){var y=R("./_an-object"),f=R("./_a-function"),x=R("./_wks")("species");D.exports=function(v,m){var p=y(v).constructor,d;return p===void 0||(d=y(p)[x])==null?m:f(d)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(R,D,n){var y=R("./_to-integer"),f=R("./_defined");D.exports=function(x){return function(v,m){var p=String(f(v)),d=y(m),u=p.length,s,i;return d<0||d>=u?x?"":void 0:(s=p.charCodeAt(d),s<55296||s>56319||d+1===u||(i=p.charCodeAt(d+1))<56320||i>57343?x?p.charAt(d):s:x?p.slice(d,d+2):(s-55296<<10)+(i-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(R,D,n){var y=R("./_ctx"),f=R("./_invoke"),x=R("./_html"),v=R("./_dom-create"),m=R("./_global"),p=m.process,d=m.setImmediate,u=m.clearImmediate,s=m.MessageChannel,i=m.Dispatch,t=0,o={},e="onreadystatechange",l,r,a,c=function(){var A=+this;if(o.hasOwnProperty(A)){var b=o[A];delete o[A],b()}},h=function(A){c.call(A.data)};(!d||!u)&&(d=function(A){for(var b=[],S=1;arguments.length>S;)b.push(arguments[S++]);return o[++t]=function(){f(typeof A=="function"?A:Function(A),b)},l(t),t},u=function(A){delete o[A]},R("./_cof")(p)=="process"?l=function(A){p.nextTick(y(c,A,1))}:i&&i.now?l=function(A){i.now(y(c,A,1))}:s?(r=new s,a=r.port2,r.port1.onmessage=h,l=y(a.postMessage,a,1)):m.addEventListener&&typeof postMessage=="function"&&!m.importScripts?(l=function(A){m.postMessage(A+"","*")},m.addEventListener("message",h,!1)):e in v("script")?l=function(A){x.appendChild(v("script"))[e]=function(){x.removeChild(this),c.call(A)}}:l=function(A){setTimeout(y(c,A,1),0)}),D.exports={set:d,clear:u}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(R,D,n){var y=R("./_to-integer"),f=Math.max,x=Math.min;D.exports=function(v,m){return v=y(v),v<0?f(v+m,0):x(v,m)}},{"./_to-integer":157}],157:[function(R,D,n){var y=Math.ceil,f=Math.floor;D.exports=function(x){return isNaN(x=+x)?0:(x>0?f:y)(x)}},{}],158:[function(R,D,n){var y=R("./_iobject"),f=R("./_defined");D.exports=function(x){return y(f(x))}},{"./_defined":102,"./_iobject":116}],159:[function(R,D,n){var y=R("./_to-integer"),f=Math.min;D.exports=function(x){return x>0?f(y(x),9007199254740991):0}},{"./_to-integer":157}],160:[function(R,D,n){var y=R("./_defined");D.exports=function(f){return Object(y(f))}},{"./_defined":102}],161:[function(R,D,n){var y=R("./_is-object");D.exports=function(f,x){if(!y(f))return f;var v,m;if(x&&typeof(v=f.toString)=="function"&&!y(m=v.call(f)))return m;if(typeof(v=f.valueOf)=="function"&&!y(m=v.call(f)))return m;if(!x&&typeof(v=f.toString)=="function"&&!y(m=v.call(f)))return m;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(R,D,n){var y=0,f=Math.random();D.exports=function(x){return"Symbol(".concat(x===void 0?"":x,")_",(++y+f).toString(36))}},{}],163:[function(R,D,n){var y=R("./_global"),f=y.navigator;D.exports=f&&f.userAgent||""},{"./_global":110}],164:[function(R,D,n){var y=R("./_global"),f=R("./_core"),x=R("./_library"),v=R("./_wks-ext"),m=R("./_object-dp").f;D.exports=function(p){var d=f.Symbol||(f.Symbol=x?{}:y.Symbol||{});p.charAt(0)!="_"&&!(p in d)&&m(d,p,{value:v.f(p)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(R,D,n){n.f=R("./_wks")},{"./_wks":166}],166:[function(R,D,n){var y=R("./_shared")("wks"),f=R("./_uid"),x=R("./_global").Symbol,v=typeof x=="function",m=D.exports=function(p){return y[p]||(y[p]=v&&x[p]||(v?x:f)("Symbol."+p))};m.store=y},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(R,D,n){var y=R("./_classof"),f=R("./_wks")("iterator"),x=R("./_iterators");D.exports=R("./_core").getIteratorMethod=function(v){if(v!=null)return v[f]||v["@@iterator"]||x[y(v)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(R,D,n){"use strict";var y=R("./_ctx"),f=R("./_export"),x=R("./_to-object"),v=R("./_iter-call"),m=R("./_is-array-iter"),p=R("./_to-length"),d=R("./_create-property"),u=R("./core.get-iterator-method");f(f.S+f.F*!R("./_iter-detect")(function(s){Array.from(s)}),"Array",{from:function(i){var t=x(i),o=typeof this=="function"?this:Array,e=arguments.length,l=e>1?arguments[1]:void 0,r=l!==void 0,a=0,c=u(t),h,g,A,b;if(r&&(l=y(l,e>2?arguments[2]:void 0,2)),c!=null&&!(o==Array&&m(c)))for(b=c.call(t),g=new o;!(A=b.next()).done;a++)d(g,a,r?v(b,l,[A.value,a],!0):A.value);else for(h=p(t.length),g=new o(h);h>a;a++)d(g,a,r?l(t[a],a):t[a]);return g.length=a,g}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(R,D,n){"use strict";var y=R("./_add-to-unscopables"),f=R("./_iter-step"),x=R("./_iterators"),v=R("./_to-iobject");D.exports=R("./_iter-define")(Array,"Array",function(m,p){this._t=v(m),this._i=0,this._k=p},function(){var m=this._t,p=this._k,d=this._i++;return!m||d>=m.length?(this._t=void 0,f(1)):p=="keys"?f(0,d):p=="values"?f(0,m[d]):f(0,[d,m[d]])},"values"),x.Arguments=x.Array,y("keys"),y("values"),y("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(R,D,n){"use strict";var y=R("./_is-object"),f=R("./_object-gpo"),x=R("./_wks")("hasInstance"),v=Function.prototype;x in v||R("./_object-dp").f(v,x,{value:function(p){if(typeof this!="function"||!y(p))return!1;if(!y(this.prototype))return p instanceof this;for(;p=f(p);)if(this.prototype===p)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(R,D,n){var y=R("./_export");y(y.S+y.F,"Object",{assign:R("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(R,D,n){var y=R("./_export");y(y.S,"Object",{create:R("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(R,D,n){var y=R("./_export");y(y.S+y.F*!R("./_descriptors"),"Object",{defineProperty:R("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(R,D,n){R("./_object-sap")("getOwnPropertyNames",function(){return R("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(R,D,n){var y=R("./_to-object"),f=R("./_object-gpo");R("./_object-sap")("getPrototypeOf",function(){return function(v){return f(y(v))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(R,D,n){var y=R("./_to-object"),f=R("./_object-keys");R("./_object-sap")("keys",function(){return function(v){return f(y(v))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(R,D,n){arguments[4][71][0].apply(n,arguments)},{dup:71}],178:[function(R,D,n){"use strict";var y=R("./_library"),f=R("./_global"),x=R("./_ctx"),v=R("./_classof"),m=R("./_export"),p=R("./_is-object"),d=R("./_a-function"),u=R("./_an-instance"),s=R("./_for-of"),i=R("./_species-constructor"),t=R("./_task").set,o=R("./_microtask")(),e=R("./_new-promise-capability"),l=R("./_perform"),r=R("./_user-agent"),a=R("./_promise-resolve"),c="Promise",h=f.TypeError,g=f.process,A=g&&g.versions,b=A&&A.v8||"",S=f[c],E=v(g)=="process",C=function(){},_,T,w,O,I=T=e.f,k=!!function(){try{var z=S.resolve(1),V=(z.constructor={})[R("./_wks")("species")]=function(Q){Q(C,C)};return(E||typeof PromiseRejectionEvent=="function")&&z.then(C)instanceof V&&b.indexOf("6.6")!==0&&r.indexOf("Chrome/66")===-1}catch(Q){}}(),M=function(V){var Q;return p(V)&&typeof(Q=V.then)=="function"?Q:!1},j=function(V,Q){if(V._n)return;V._n=!0;var G=V._c;o(function(){for(var te=V._v,q=V._s==1,se=0,re=function(Oe){var Me=q?Oe.ok:Oe.fail,Qe=Oe.resolve,Ve=Oe.reject,ut=Oe.domain,Fe,ue,et;try{Me?(q||(V._h==2&&F(V),V._h=1),Me===!0?Fe=te:(ut&&ut.enter(),Fe=Me(te),ut&&(ut.exit(),et=!0)),Fe===Oe.promise?Ve(h("Promise-chain cycle")):(ue=M(Fe))?ue.call(Fe,Qe,Ve):Qe(Fe)):Ve(te)}catch(he){ut&&!et&&ut.exit(),Ve(he)}};G.length>se;)re(G[se++]);V._c=[],V._n=!1,Q&&!V._h&&P(V)})},P=function(V){t.call(f,function(){var Q=V._v,G=X(V),te,q,se;if(G&&(te=l(function(){E?g.emit("unhandledRejection",Q,V):(q=f.onunhandledrejection)?q({promise:V,reason:Q}):(se=f.console)&&se.error&&se.error("Unhandled promise rejection",Q)}),V._h=E||X(V)?2:1),V._a=void 0,G&&te.e)throw te.v})},X=function(V){return V._h!==1&&(V._a||V._c).length===0},F=function(V){t.call(f,function(){var Q;E?g.emit("rejectionHandled",V):(Q=f.onrejectionhandled)&&Q({promise:V,reason:V._v})})},U=function(V){var Q=this;if(Q._d)return;Q._d=!0,Q=Q._w||Q,Q._v=V,Q._s=2,Q._a||(Q._a=Q._c.slice()),j(Q,!0)},K=function z(V){var Q=this,G;if(Q._d)return;Q._d=!0,Q=Q._w||Q;try{if(Q===V)throw h("Promise can't be resolved itself");(G=M(V))?o(function(){var te={_w:Q,_d:!1};try{G.call(V,x(z,te,1),x(U,te,1))}catch(q){U.call(te,q)}}):(Q._v=V,Q._s=1,j(Q,!1))}catch(te){U.call({_w:Q,_d:!1},te)}};k||(S=function(V){u(this,S,c,"_h"),d(V),_.call(this);try{V(x(K,this,1),x(U,this,1))}catch(Q){U.call(this,Q)}},_=function(V){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},_.prototype=R("./_redefine-all")(S.prototype,{then:function(V,Q){var G=I(i(this,S));return G.ok=typeof V=="function"?V:!0,G.fail=typeof Q=="function"&&Q,G.domain=E?g.domain:void 0,this._c.push(G),this._a&&this._a.push(G),this._s&&j(this,!1),G.promise},catch:function(V){return this.then(void 0,V)}}),w=function(){var V=new _;this.promise=V,this.resolve=x(K,V,1),this.reject=x(U,V,1)},e.f=I=function(V){return V===S||V===O?new w(V):T(V)}),m(m.G+m.W+m.F*!k,{Promise:S}),R("./_set-to-string-tag")(S,c),R("./_set-species")(c),O=R("./_core")[c],m(m.S+m.F*!k,c,{reject:function(V){var Q=I(this),G=Q.reject;return G(V),Q.promise}}),m(m.S+m.F*(y||!k),c,{resolve:function(V){return a(y&&this===O?S:this,V)}}),m(m.S+m.F*!(k&&R("./_iter-detect")(function(z){S.all(z).catch(C)})),c,{all:function(V){var Q=this,G=I(Q),te=G.resolve,q=G.reject,se=l(function(){var re=[],xe=0,Oe=1;s(V,!1,function(Me){var Qe=xe++,Ve=!1;re.push(void 0),Oe++,Q.resolve(Me).then(function(ut){if(Ve)return;Ve=!0,re[Qe]=ut,--Oe||te(re)},q)}),--Oe||te(re)});return se.e&&q(se.v),G.promise},race:function(V){var Q=this,G=I(Q),te=G.reject,q=l(function(){s(V,!1,function(se){Q.resolve(se).then(G.resolve,te)})});return q.e&&te(q.v),G.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(R,D,n){var y=R("./_export"),f=R("./_to-absolute-index"),x=String.fromCharCode,v=String.fromCodePoint;y(y.S+y.F*(!!v&&v.length!=1),"String",{fromCodePoint:function(p){for(var d=[],u=arguments.length,s=0,i;u>s;){if(i=+arguments[s++],f(i,1114111)!==i)throw RangeError(i+" is not a valid code point");d.push(i<65536?x(i):x(((i-=65536)>>10)+55296,i%1024+56320))}return d.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(R,D,n){"use strict";var y=R("./_string-at")(!0);R("./_iter-define")(String,"String",function(f){this._t=String(f),this._i=0},function(){var f=this._t,x=this._i,v;return x>=f.length?{value:void 0,done:!0}:(v=y(f,x),this._i+=v.length,{value:v,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(R,D,n){"use strict";var y=R("./_global"),f=R("./_has"),x=R("./_descriptors"),v=R("./_export"),m=R("./_redefine"),p=R("./_meta").KEY,d=R("./_fails"),u=R("./_shared"),s=R("./_set-to-string-tag"),i=R("./_uid"),t=R("./_wks"),o=R("./_wks-ext"),e=R("./_wks-define"),l=R("./_enum-keys"),r=R("./_is-array"),a=R("./_an-object"),c=R("./_is-object"),h=R("./_to-object"),g=R("./_to-iobject"),A=R("./_to-primitive"),b=R("./_property-desc"),S=R("./_object-create"),E=R("./_object-gopn-ext"),C=R("./_object-gopd"),_=R("./_object-gops"),T=R("./_object-dp"),w=R("./_object-keys"),O=C.f,I=T.f,k=E.f,M=y.Symbol,j=y.JSON,P=j&&j.stringify,X="prototype",F=t("_hidden"),U=t("toPrimitive"),K={}.propertyIsEnumerable,z=u("symbol-registry"),V=u("symbols"),Q=u("op-symbols"),G=Object[X],te=typeof M=="function"&&!!_.f,q=y.QObject,se=!q||!q[X]||!q[X].findChild,re=x&&d(function(){return S(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a!=7})?function(be,Ce,Be){var fe=O(G,Ce);fe&&delete G[Ce],I(be,Ce,Be),fe&&be!==G&&I(G,Ce,fe)}:I,xe=function(Ce){var Be=V[Ce]=S(M[X]);return Be._k=Ce,Be},Oe=te&&typeof M.iterator=="symbol"?function(be){return typeof be=="symbol"}:function(be){return be instanceof M},Me=function(Ce,Be,fe){return Ce===G&&Me(Q,Be,fe),a(Ce),Be=A(Be,!0),a(fe),f(V,Be)?(fe.enumerable?(f(Ce,F)&&Ce[F][Be]&&(Ce[F][Be]=!1),fe=S(fe,{enumerable:b(0,!1)})):(f(Ce,F)||I(Ce,F,b(1,{})),Ce[F][Be]=!0),re(Ce,Be,fe)):I(Ce,Be,fe)},Qe=function(Ce,Be){a(Ce);for(var fe=l(Be=g(Be)),we=0,Re=fe.length,rt;Re>we;)Me(Ce,rt=fe[we++],Be[rt]);return Ce},Ve=function(Ce,Be){return Be===void 0?S(Ce):Qe(S(Ce),Be)},ut=function(Ce){var Be=K.call(this,Ce=A(Ce,!0));return this===G&&f(V,Ce)&&!f(Q,Ce)?!1:Be||!f(this,Ce)||!f(V,Ce)||f(this,F)&&this[F][Ce]?Be:!0},Fe=function(Ce,Be){if(Ce=g(Ce),Be=A(Be,!0),Ce===G&&f(V,Be)&&!f(Q,Be))return;var fe=O(Ce,Be);return fe&&f(V,Be)&&!(f(Ce,F)&&Ce[F][Be])&&(fe.enumerable=!0),fe},ue=function(Ce){for(var Be=k(g(Ce)),fe=[],we=0,Re;Be.length>we;)!f(V,Re=Be[we++])&&Re!=F&&Re!=p&&fe.push(Re);return fe},et=function(Ce){for(var Be=Ce===G,fe=k(Be?Q:g(Ce)),we=[],Re=0,rt;fe.length>Re;)f(V,rt=fe[Re++])&&(Be?f(G,rt):!0)&&we.push(V[rt]);return we};te||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var Ce=i(arguments.length>0?arguments[0]:void 0),Be=function fe(we){this===G&&fe.call(Q,we),f(this,F)&&f(this[F],Ce)&&(this[F][Ce]=!1),re(this,Ce,b(1,we))};return x&&se&&re(G,Ce,{configurable:!0,set:Be}),xe(Ce)},m(M[X],"toString",function(){return this._k}),C.f=Fe,T.f=Me,R("./_object-gopn").f=E.f=ue,R("./_object-pie").f=ut,_.f=et,x&&!R("./_library")&&m(G,"propertyIsEnumerable",ut,!0),o.f=function(be){return xe(t(be))}),v(v.G+v.W+v.F*!te,{Symbol:M});for(var he="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),J=0;he.length>J;)t(he[J++]);for(var Y=w(t.store),$=0;Y.length>$;)e(Y[$++]);v(v.S+v.F*!te,"Symbol",{for:function(Ce){return f(z,Ce+="")?z[Ce]:z[Ce]=M(Ce)},keyFor:function(Ce){if(!Oe(Ce))throw TypeError(Ce+" is not a symbol!");for(var Be in z)if(z[Be]===Ce)return Be},useSetter:function(){se=!0},useSimple:function(){se=!1}}),v(v.S+v.F*!te,"Object",{create:Ve,defineProperty:Me,defineProperties:Qe,getOwnPropertyDescriptor:Fe,getOwnPropertyNames:ue,getOwnPropertySymbols:et});var de=d(function(){_.f(1)});v(v.S+v.F*de,"Object",{getOwnPropertySymbols:function(Ce){return _.f(h(Ce))}}),j&&v(v.S+v.F*(!te||d(function(){var be=M();return P([be])!="[null]"||P({a:be})!="{}"||P(Object(be))!="{}"})),"JSON",{stringify:function(Ce){for(var Be=[Ce],fe=1,we,Re;arguments.length>fe;)Be.push(arguments[fe++]);return Re=we=Be[1],!c(we)&&Ce===void 0||Oe(Ce)?void 0:(r(we)||(we=function(St,ft){if(typeof Re=="function"&&(ft=Re.call(this,St,ft)),!Oe(ft))return ft}),Be[1]=we,P.apply(j,Be))}}),M[X][U]||R("./_hide")(M[X],U,M[X].valueOf),s(M,"Symbol"),s(Math,"Math",!0),s(y.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(R,D,n){var y=R("./_export"),f=R("./_object-to-array")(!0);y(y.S,"Object",{entries:function(v){return f(v)}})},{"./_export":107,"./_object-to-array":143}],183:[function(R,D,n){"use strict";var y=R("./_export"),f=R("./_core"),x=R("./_global"),v=R("./_species-constructor"),m=R("./_promise-resolve");y(y.P+y.R,"Promise",{finally:function(d){var u=v(this,f.Promise||x.Promise),s=typeof d=="function";return this.then(s?function(i){return m(u,d()).then(function(){return i})}:d,s?function(i){return m(u,d()).then(function(){throw i})}:d)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(R,D,n){"use strict";var y=R("./_export"),f=R("./_new-promise-capability"),x=R("./_perform");y(y.S,"Promise",{try:function(m){var p=f.f(this),d=x(m);return(d.e?p.reject:p.resolve)(d.v),p.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(R,D,n){R("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(R,D,n){R("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(R,D,n){R("./es6.array.iterator");for(var y=R("./_global"),f=R("./_hide"),x=R("./_iterators"),v=R("./_wks")("toStringTag"),m="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),p=0;p<m.length;p++){var d=m[p],u=y[d],s=u&&u.prototype;s&&!s[v]&&f(s,v,d),x[d]=x.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(R,D,n){var y=R("./_export"),f=R("./_task");y(y.G+y.B,{setImmediate:f.set,clearImmediate:f.clear})},{"./_export":107,"./_task":155}],189:[function(R,D,n){(function(y){"use strict";var f=R("babel-runtime/helpers/typeof"),x=v(f);function v(A){return A&&A.__esModule?A:{default:A}}function m(A){return Array.isArray?Array.isArray(A):g(A)==="[object Array]"}n.isArray=m;function p(A){return typeof A=="boolean"}n.isBoolean=p;function d(A){return A===null}n.isNull=d;function u(A){return A==null}n.isNullOrUndefined=u;function s(A){return typeof A=="number"}n.isNumber=s;function i(A){return typeof A=="string"}n.isString=i;function t(A){return(typeof A=="undefined"?"undefined":(0,x.default)(A))==="symbol"}n.isSymbol=t;function o(A){return A===void 0}n.isUndefined=o;function e(A){return g(A)==="[object RegExp]"}n.isRegExp=e;function l(A){return(typeof A=="undefined"?"undefined":(0,x.default)(A))==="object"&&A!==null}n.isObject=l;function r(A){return g(A)==="[object Date]"}n.isDate=r;function a(A){return g(A)==="[object Error]"||A instanceof Error}n.isError=a;function c(A){return typeof A=="function"}n.isFunction=c;function h(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||(typeof A=="undefined"?"undefined":(0,x.default)(A))==="symbol"||typeof A=="undefined"}n.isPrimitive=h,n.isBuffer=y.isBuffer;function g(A){return Object.prototype.toString.call(A)}}).call(this,{isBuffer:R("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(R,D,n){"use strict";var y=R("babel-runtime/helpers/typeof"),f=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(v){"use strict";var m=function(){var i=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,o=/[^-+\dA-Z]/g;return function(e,l,r,a){if(arguments.length===1&&s(e)==="string"&&!/\d/.test(e)&&(l=e,e=void 0),e=e||new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");l=String(m.masks[l]||l||m.masks.default);var c=l.slice(0,4);(c==="UTC:"||c==="GMT:")&&(l=l.slice(4),r=!0,c==="GMT:"&&(a=!0));var h=r?"getUTC":"get",g=e[h+"Date"](),A=e[h+"Day"](),b=e[h+"Month"](),S=e[h+"FullYear"](),E=e[h+"Hours"](),C=e[h+"Minutes"](),_=e[h+"Seconds"](),T=e[h+"Milliseconds"](),w=r?0:e.getTimezoneOffset(),O=d(e),I=u(e),k={d:g,dd:p(g),ddd:m.i18n.dayNames[A],dddd:m.i18n.dayNames[A+7],m:b+1,mm:p(b+1),mmm:m.i18n.monthNames[b],mmmm:m.i18n.monthNames[b+12],yy:String(S).slice(2),yyyy:S,h:E%12||12,hh:p(E%12||12),H:E,HH:p(E),M:C,MM:p(C),s:_,ss:p(_),l:p(T,3),L:p(Math.round(T/10)),t:E<12?"a":"p",tt:E<12?"am":"pm",T:E<12?"A":"P",TT:E<12?"AM":"PM",Z:a?"GMT":r?"UTC":(String(e).match(t)||[""]).pop().replace(o,""),o:(w>0?"-":"+")+p(Math.floor(Math.abs(w)/60)*100+Math.abs(w)%60,4),S:["th","st","nd","rd"][g%10>3?0:(g%100-g%10!=10)*g%10],W:O,N:I};return l.replace(i,function(M){return M in k?k[M]:M.slice(1,M.length-1)})}}();m.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},m.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function p(i,t){for(i=String(i),t=t||2;i.length<t;)i="0"+i;return i}function d(i){var t=new Date(i.getFullYear(),i.getMonth(),i.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var o=new Date(t.getFullYear(),0,4);o.setDate(o.getDate()-(o.getDay()+6)%7+3);var e=t.getTimezoneOffset()-o.getTimezoneOffset();t.setHours(t.getHours()-e);var l=(t-o)/(864e5*7);return 1+Math.floor(l)}function u(i){var t=i.getDay();return t===0&&(t=7),t}function s(i){return i===null?"null":i===void 0?"undefined":(typeof i=="undefined"?"undefined":(0,f.default)(i))!=="object"?typeof i=="undefined"?"undefined":(0,f.default)(i):Array.isArray(i)?"array":{}.toString.call(i).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return m}):(typeof n=="undefined"?"undefined":(0,f.default)(n))==="object"?D.exports=m:v.dateFormat=m})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(R,D,n){/*!
|
|
|
* escape-html
|
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
|
* Copyright(c) 2015 Andreas Lubbe
|
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var y=/["'&<>]/;D.exports=f;function f(x){var v=""+x,m=y.exec(v);if(!m)return v;var p,d="",u=0,s=0;for(u=m.index;u<v.length;u++){switch(v.charCodeAt(u)){case 34:p=""";break;case 38:p="&";break;case 39:p="'";break;case 60:p="<";break;case 62:p=">";break;default:continue}s!==u&&(d+=v.substring(s,u)),s=u+1,d+=p}return s!==u?d+v.substring(s,u):d}},{}],192:[function(R,D,n){function y(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}D.exports=y,y.EventEmitter=y,y.prototype._events=void 0,y.prototype._maxListeners=void 0,y.defaultMaxListeners=10,y.prototype.setMaxListeners=function(p){if(!x(p)||p<0||isNaN(p))throw TypeError("n must be a positive number");return this._maxListeners=p,this},y.prototype.emit=function(p){var d,u,s,i,t,o;if(this._events||(this._events={}),p==="error"&&(!this._events.error||v(this._events.error)&&!this._events.error.length)){if(d=arguments[1],d instanceof Error)throw d;var e=new Error('Uncaught, unspecified "error" event. ('+d+")");throw e.context=d,e}if(u=this._events[p],m(u))return!1;if(f(u))switch(arguments.length){case 1:u.call(this);break;case 2:u.call(this,arguments[1]);break;case 3:u.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),u.apply(this,i)}else if(v(u))for(i=Array.prototype.slice.call(arguments,1),o=u.slice(),s=o.length,t=0;t<s;t++)o[t].apply(this,i);return!0},y.prototype.addListener=function(p,d){var u;if(!f(d))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",p,f(d.listener)?d.listener:d),this._events[p]?v(this._events[p])?this._events[p].push(d):this._events[p]=[this._events[p],d]:this._events[p]=d,v(this._events[p])&&!this._events[p].warned&&(m(this._maxListeners)?u=y.defaultMaxListeners:u=this._maxListeners,u&&u>0&&this._events[p].length>u&&(this._events[p].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[p].length),typeof console.trace=="function"&&console.trace())),this},y.prototype.on=y.prototype.addListener,y.prototype.once=function(p,d){if(!f(d))throw TypeError("listener must be a function");var u=!1;function s(){this.removeListener(p,s),u||(u=!0,d.apply(this,arguments))}return s.listener=d,this.on(p,s),this},y.prototype.removeListener=function(p,d){var u,s,i,t;if(!f(d))throw TypeError("listener must be a function");if(!this._events||!this._events[p])return this;if(u=this._events[p],i=u.length,s=-1,u===d||f(u.listener)&&u.listener===d)delete this._events[p],this._events.removeListener&&this.emit("removeListener",p,d);else if(v(u)){for(t=i;t-- >0;)if(u[t]===d||u[t].listener&&u[t].listener===d){s=t;break}if(s<0)return this;u.length===1?(u.length=0,delete this._events[p]):u.splice(s,1),this._events.removeListener&&this.emit("removeListener",p,d)}return this},y.prototype.removeAllListeners=function(p){var d,u;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[p]&&delete this._events[p],this;if(arguments.length===0){for(d in this._events){if(d==="removeListener")continue;this.removeAllListeners(d)}return this.removeAllListeners("removeListener"),this._events={},this}if(u=this._events[p],f(u))this.removeListener(p,u);else if(u)for(;u.length;)this.removeListener(p,u[u.length-1]);return delete this._events[p],this},y.prototype.listeners=function(p){var d;return!this._events||!this._events[p]?d=[]:f(this._events[p])?d=[this._events[p]]:d=this._events[p].slice(),d},y.prototype.listenerCount=function(p){if(this._events){var d=this._events[p];if(f(d))return 1;if(d)return d.length}return 0},y.listenerCount=function(p,d){return p.listenerCount(d)};function f(p){return typeof p=="function"}function x(p){return typeof p=="number"}function v(p){return typeof p=="object"&&p!==null}function m(p){return p===void 0}},{}],193:[function(R,D,n){var y=R("http"),f=D.exports;for(var x in y)y.hasOwnProperty(x)&&(f[x]=y[x]);f.request=function(v,m){return v||(v={}),v.scheme="https",v.protocol="https:",y.request.call(this,v,m)}},{http:231}],194:[function(R,D,n){/*!
|
|
|
* humanize-ms - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var y=R("util"),f=R("ms");D.exports=function(x){if(typeof x=="number")return x;var v=f(x);if(v===void 0){var m=new Error(y.format("humanize-ms(%j) result undefined",x));console.warn(m.stack)}return v}},{ms:204,util:243}],195:[function(R,D,n){n.read=function(y,f,x,v,m){var p,d,u=m*8-v-1,s=(1<<u)-1,i=s>>1,t=-7,o=x?m-1:0,e=x?-1:1,l=y[f+o];for(o+=e,p=l&(1<<-t)-1,l>>=-t,t+=u;t>0;p=p*256+y[f+o],o+=e,t-=8);for(d=p&(1<<-t)-1,p>>=-t,t+=v;t>0;d=d*256+y[f+o],o+=e,t-=8);if(p===0)p=1-i;else{if(p===s)return d?NaN:(l?-1:1)*Infinity;d=d+Math.pow(2,v),p=p-i}return(l?-1:1)*d*Math.pow(2,p-v)},n.write=function(y,f,x,v,m,p){var d,u,s,i=p*8-m-1,t=(1<<i)-1,o=t>>1,e=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=v?0:p-1,r=v?1:-1,a=f<0||f===0&&1/f<0?1:0;for(f=Math.abs(f),isNaN(f)||f===Infinity?(u=isNaN(f)?1:0,d=t):(d=Math.floor(Math.log(f)/Math.LN2),f*(s=Math.pow(2,-d))<1&&(d--,s*=2),d+o>=1?f+=e/s:f+=e*Math.pow(2,1-o),f*s>=2&&(d++,s/=2),d+o>=t?(u=0,d=t):d+o>=1?(u=(f*s-1)*Math.pow(2,m),d=d+o):(u=f*Math.pow(2,o-1)*Math.pow(2,m),d=0));m>=8;y[x+l]=u&255,l+=r,u/=256,m-=8);for(d=d<<m|u,i+=m;i>0;y[x+l]=d&255,l+=r,d/=256,i-=8);y[x+l-r]|=a*128}},{}],196:[function(R,D,n){typeof Object.create=="function"?D.exports=function(f,x){x&&(f.super_=x,f.prototype=Object.create(x.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}))}:D.exports=function(f,x){if(x){f.super_=x;var v=function(){};v.prototype=x.prototype,f.prototype=new v,f.prototype.constructor=f}}},{}],197:[function(R,D,n){/*!
|
|
|
* Determine if an object is a Buffer
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
* @license MIT
|
|
|
*/D.exports=function(x){return x!=null&&(y(x)||f(x)||!!x._isBuffer)};function y(x){return!!x.constructor&&typeof x.constructor.isBuffer=="function"&&x.constructor.isBuffer(x)}function f(x){return typeof x.readFloatLE=="function"&&typeof x.slice=="function"&&y(x.slice(0,0))}},{}],198:[function(R,D,n){var y={}.toString;D.exports=Array.isArray||function(f){return y.call(f)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(R,D){typeof exports=="object"&&typeof module!="undefined"?module.exports=D(R):typeof define=="function"&&define.amd?define(D):D(R)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(R){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(R){for(var D={},n=0,y=R.length;n<y;n++)D[R.charAt(n)]=n;return D}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(D){if(D.length<2){var n=D.charCodeAt(0);return n<128?D:n<2048?fromCharCode(192|n>>>6)+fromCharCode(128|n&63):fromCharCode(224|n>>>12&15)+fromCharCode(128|n>>>6&63)+fromCharCode(128|n&63)}else{var n=65536+(D.charCodeAt(0)-55296)*1024+(D.charCodeAt(1)-56320);return fromCharCode(240|n>>>18&7)+fromCharCode(128|n>>>12&63)+fromCharCode(128|n>>>6&63)+fromCharCode(128|n&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(D){return D.replace(re_utob,cb_utob)},cb_encode=function(D){var n=[0,2,1][D.length%3],y=D.charCodeAt(0)<<16|(D.length>1?D.charCodeAt(1):0)<<8|(D.length>2?D.charCodeAt(2):0),f=[b64chars.charAt(y>>>18),b64chars.charAt(y>>>12&63),n>=2?"=":b64chars.charAt(y>>>6&63),n>=1?"=":b64chars.charAt(y&63)];return f.join("")},btoa=global.btoa?function(R){return global.btoa(R)}:function(R){return R.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(D){var n=Object.prototype.toString.call(D)==="[object Uint8Array]";return n?D.toString("base64"):btoa(utob(String(D)))},encode=function(D,n){return n?_encode(String(D)).replace(/[+\/]/g,function(y){return y=="+"?"-":"_"}).replace(/=/g,""):_encode(D)},encodeURI=function(D){return encode(D,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(D){switch(D.length){case 4:var n=(7&D.charCodeAt(0))<<18|(63&D.charCodeAt(1))<<12|(63&D.charCodeAt(2))<<6|63&D.charCodeAt(3),y=n-65536;return fromCharCode((y>>>10)+55296)+fromCharCode((y&1023)+56320);case 3:return fromCharCode((15&D.charCodeAt(0))<<12|(63&D.charCodeAt(1))<<6|63&D.charCodeAt(2));default:return fromCharCode((31&D.charCodeAt(0))<<6|63&D.charCodeAt(1))}},btou=function(D){return D.replace(re_btou,cb_btou)},cb_decode=function(D){var n=D.length,y=n%4,f=(n>0?b64tab[D.charAt(0)]<<18:0)|(n>1?b64tab[D.charAt(1)]<<12:0)|(n>2?b64tab[D.charAt(2)]<<6:0)|(n>3?b64tab[D.charAt(3)]:0),x=[fromCharCode(f>>>16),fromCharCode(f>>>8&255),fromCharCode(f&255)];return x.length-=[0,0,2,1][y],x.join("")},_atob=global.atob?function(R){return global.atob(R)}:function(R){return R.replace(/\S{1,4}/g,cb_decode)},atob=function(D){return _atob(String(D).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(R){return(R.constructor===buffer.constructor?R:buffer.from(R,"base64")).toString()}:function(R){return(R.constructor===buffer.constructor?R:new buffer(R,"base64")).toString()}:function(R){return btou(_atob(R))},decode=function(D){return _decode(String(D).replace(/[-_]/g,function(n){return n=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var D=global.Base64;return global.Base64=_Base64,D};if(global.Base64={VERSION:version,atob,btoa,fromBase64:decode,toBase64:encode,utob,encode,encodeURI,btou,decode,noConflict,__buffer__:buffer},typeof Object.defineProperty=="function"){var noEnum=function(D){return{value:D,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(R){return encode(this,R)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports?module.exports.Base64=global.Base64:typeof define=="function"&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}})}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],200:[function(R,D,n){/*!
|
|
|
* merge-descriptors
|
|
|
* Copyright(c) 2014 Jonathan Ong
|
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
|
* MIT Licensed
|
|
|
*/"use strict";D.exports=f;var y=Object.prototype.hasOwnProperty;function f(x,v,m){if(!x)throw new TypeError("argument dest is required");if(!v)throw new TypeError("argument src is required");return m===void 0&&(m=!0),Object.getOwnPropertyNames(v).forEach(function(d){if(!m&&y.call(x,d))return;var u=Object.getOwnPropertyDescriptor(v,d);Object.defineProperty(x,d,u)}),x}},{}],201:[function(R,D,n){"use strict";function y(){this._types=Object.create(null),this._extensions=Object.create(null);for(var f=0;f<arguments.length;f++)this.define(arguments[f]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}y.prototype.define=function(f,x){for(var v in f){var m=f[v].map(function(u){return u.toLowerCase()});v=v.toLowerCase();for(var p=0;p<m.length;p++){var d=m[p];if(d[0]=="*")continue;if(!x&&d in this._types)throw new Error('Attempt to change mapping for "'+d+'" extension from "'+this._types[d]+'" to "'+v+'". Pass `force=true` to allow this, otherwise remove "'+d+'" from the list of extensions for "'+v+'".');this._types[d]=v}if(x||!this._extensions[v]){var d=m[0];this._extensions[v]=d[0]!="*"?d:d.substr(1)}}},y.prototype.getType=function(f){f=String(f);var x=f.replace(/^.*[/\\]/,"").toLowerCase(),v=x.replace(/^.*\./,"").toLowerCase(),m=x.length<f.length,p=v.length<x.length-1;return(p||!m)&&this._types[v]||null},y.prototype.getExtension=function(f){return f=/^\s*([^;\s]*)/.test(f)&&RegExp.$1,f&&this._extensions[f.toLowerCase()]||null},D.exports=y},{}],202:[function(R,D,n){"use strict";var y=R("./Mime");D.exports=new y(R("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(R,D,n){D.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],204:[function(R,D,n){var y=1e3,f=y*60,x=f*60,v=x*24,m=v*7,p=v*365.25;D.exports=function(t,o){o=o||{};var e=typeof t;if(e==="string"&&t.length>0)return d(t);if(e==="number"&&isFinite(t))return o.long?s(t):u(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function d(t){if(t=String(t),t.length>100)return;var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!o)return;var e=parseFloat(o[1]),l=(o[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return e*p;case"weeks":case"week":case"w":return e*m;case"days":case"day":case"d":return e*v;case"hours":case"hour":case"hrs":case"hr":case"h":return e*x;case"minutes":case"minute":case"mins":case"min":case"m":return e*f;case"seconds":case"second":case"secs":case"sec":case"s":return e*y;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}function u(t){var o=Math.abs(t);return o>=v?Math.round(t/v)+"d":o>=x?Math.round(t/x)+"h":o>=f?Math.round(t/f)+"m":o>=y?Math.round(t/y)+"s":t+"ms"}function s(t){var o=Math.abs(t);return o>=v?i(t,o,v,"day"):o>=x?i(t,o,x,"hour"):o>=f?i(t,o,f,"minute"):o>=y?i(t,o,y,"second"):t+" ms"}function i(t,o,e,l){var r=o>=e*1.5;return Math.round(t/e)+" "+l+(r?"s":"")}},{}],205:[function(R,D,n){(function(y){function f(p,d){for(var u=0,s=p.length-1;s>=0;s--){var i=p[s];i==="."?p.splice(s,1):i===".."?(p.splice(s,1),u++):u&&(p.splice(s,1),u--)}if(d)for(;u--;u)p.unshift("..");return p}n.resolve=function(){for(var p="",d=!1,u=arguments.length-1;u>=-1&&!d;u--){var s=u>=0?arguments[u]:y.cwd();if(typeof s!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!s)continue;p=s+"/"+p,d=s.charAt(0)==="/"}return p=f(v(p.split("/"),function(i){return!!i}),!d).join("/"),(d?"/":"")+p||"."},n.normalize=function(p){var d=n.isAbsolute(p),u=m(p,-1)==="/";return p=f(v(p.split("/"),function(s){return!!s}),!d).join("/"),!p&&!d&&(p="."),p&&u&&(p+="/"),(d?"/":"")+p},n.isAbsolute=function(p){return p.charAt(0)==="/"},n.join=function(){var p=Array.prototype.slice.call(arguments,0);return n.normalize(v(p,function(d,u){if(typeof d!="string")throw new TypeError("Arguments to path.join must be strings");return d}).join("/"))},n.relative=function(p,d){p=n.resolve(p).substr(1),d=n.resolve(d).substr(1);function u(r){for(var a=0;a<r.length&&!(r[a]!=="");a++);for(var c=r.length-1;c>=0&&!(r[c]!=="");c--);return a>c?[]:r.slice(a,c-a+1)}for(var s=u(p.split("/")),i=u(d.split("/")),t=Math.min(s.length,i.length),o=t,e=0;e<t;e++)if(s[e]!==i[e]){o=e;break}for(var l=[],e=o;e<s.length;e++)l.push("..");return l=l.concat(i.slice(o)),l.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(p){if(typeof p!="string"&&(p=p+""),p.length===0)return".";for(var d=p.charCodeAt(0),u=d===47,s=-1,i=!0,t=p.length-1;t>=1;--t)if(d=p.charCodeAt(t),d===47){if(!i){s=t;break}}else i=!1;return s===-1?u?"/":".":u&&s===1?"/":p.slice(0,s)};function x(p){typeof p!="string"&&(p=p+"");var d=0,u=-1,s=!0,i;for(i=p.length-1;i>=0;--i)if(p.charCodeAt(i)===47){if(!s){d=i+1;break}}else u===-1&&(s=!1,u=i+1);return u===-1?"":p.slice(d,u)}n.basename=function(p,d){var u=x(p);return d&&u.substr(-1*d.length)===d&&(u=u.substr(0,u.length-d.length)),u},n.extname=function(p){typeof p!="string"&&(p=p+"");for(var d=-1,u=0,s=-1,i=!0,t=0,o=p.length-1;o>=0;--o){var e=p.charCodeAt(o);if(e===47){if(!i){u=o+1;break}continue}s===-1&&(i=!1,s=o+1),e===46?d===-1?d=o:t!==1&&(t=1):d!==-1&&(t=-1)}return d===-1||s===-1||t===0||t===1&&d===s-1&&d===u+1?"":p.slice(d,s)};function v(p,d){if(p.filter)return p.filter(d);for(var u=[],s=0;s<p.length;s++)d(p[s],s,p)&&u.push(p[s]);return u}var m="ab".substr(-1)==="b"?function(p,d,u){return p.substr(d,u)}:function(p,d,u){return d<0&&(d=p.length+d),p.substr(d,u)}}).call(this,R("_process"))},{_process:208}],206:[function(R,D,n){(function(y){/*!
|
|
|
* Platform.js <https://mths.be/platform>
|
|
|
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
|
|
|
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
|
|
|
* Available under MIT license <https://mths.be/mit>
|
|
|
*/(function(){"use strict";var f={function:!0,object:!0},x=f[typeof window]&&window||this,v=x,m=f[typeof n]&&n,p=f[typeof D]&&D&&!D.nodeType&&D,d=m&&p&&typeof y=="object"&&y;d&&(d.global===d||d.window===d||d.self===d)&&(x=d);var u=Math.pow(2,53)-1,s=/\bOpera/,i=this,t=Object.prototype,o=t.hasOwnProperty,e=t.toString;function l(T){return T=String(T),T.charAt(0).toUpperCase()+T.slice(1)}function r(T,w,O){var I={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return w&&O&&/^Win/i.test(T)&&!/^Windows Phone /i.test(T)&&(I=I[/[\d.]+$/.exec(T)])&&(T="Windows "+I),T=String(T),w&&O&&(T=T.replace(RegExp(w,"i"),O)),T=c(T.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),T}function a(T,w){var O=-1,I=T?T.length:0;if(typeof I=="number"&&I>-1&&I<=u)for(;++O<I;)w(T[O],O,T);else h(T,w)}function c(T){return T=E(T),/^(?:webOS|i(?:OS|P))/.test(T)?T:l(T)}function h(T,w){for(var O in T)o.call(T,O)&&w(T[O],O,T)}function g(T){return T==null?l(T):e.call(T).slice(8,-1)}function A(T,w){var O=T!=null?typeof T[w]:"number";return!/^(?:boolean|number|string|undefined)$/.test(O)&&(O=="object"?!!T[w]:!0)}function b(T){return String(T).replace(/([ -])(?!$)/g,"$1?")}function S(T,w){var O=null;return a(T,function(I,k){O=w(O,I,k,T)}),O}function E(T){return String(T).replace(/^ +| +$/g,"")}function C(T){var w=x,O=T&&typeof T=="object"&&g(T)!="String";O&&(w=T,T=null);var I=w.navigator||{},k=I.userAgent||"";T||(T=k);var M=O||i==v,j=O?!!I.likeChrome:/\bChrome\b/.test(T)&&!/internal|\n/i.test(e.toString()),P="Object",X=O?P:"ScriptBridgingProxyObject",F=O?P:"Environment",U=O&&w.java?"JavaPackage":g(w.java),K=O?P:"RuntimeObject",z=/\bJava/.test(U)&&w.java,V=z&&g(w.environment)==F,Q=z?"a":"\u03B1",G=z?"b":"\u03B2",te=w.document||{},q=w.operamini||w.opera,se=s.test(se=O&&q?q["[[Class]]"]:g(q))?se:q=null,re,xe=T,Oe=[],Me=null,Qe=T==k,Ve=Qe&&q&&typeof q.version=="function"&&q.version(),ut,Fe=Y([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ue=de(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),et=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"]),he=$({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),J=be(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function Y(Re){return S(Re,function(rt,St){return rt||RegExp("\\b"+(St.pattern||b(St))+"\\b","i").exec(T)&&(St.label||St)})}function $(Re){return S(Re,function(rt,St,ft){return rt||(St[et]||St[/^[a-z]+(?: +[a-z]+\b)*/i.exec(et)]||RegExp("\\b"+b(ft)+"(?:\\b|\\w*\\d)","i").exec(T))&&ft})}function de(Re){return S(Re,function(rt,St){return rt||RegExp("\\b"+(St.pattern||b(St))+"\\b","i").exec(T)&&(St.label||St)})}function be(Re){return S(Re,function(rt,St){var ft=St.pattern||b(St);return!rt&&(rt=RegExp("\\b"+ft+"(?:/[\\d.]+|[ \\w.]*)","i").exec(T))&&(rt=r(rt,ft,St.label||St)),rt})}function Ce(Re){return S(Re,function(rt,St){var ft=St.pattern||b(St);return!rt&&(rt=RegExp("\\b"+ft+" *\\d+[.\\w_]*","i").exec(T)||RegExp("\\b"+ft+" *\\w+-[\\w]*","i").exec(T)||RegExp("\\b"+ft+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(T))&&((rt=String(St.label&&!RegExp(ft,"i").test(St.label)?St.label:rt).split("/"))[1]&&!/[\d.]+/.test(rt[0])&&(rt[0]+=" "+rt[1]),St=St.label||St,rt=c(rt[0].replace(RegExp(ft,"i"),St).replace(RegExp("; *(?:"+St+"[_-])?","i")," ").replace(RegExp("("+St+")[-_.]?(\\w)","i"),"$1 $2"))),rt})}function Be(Re){return S(Re,function(rt,St){return rt||(RegExp(St+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(T)||0)[1]||null})}function fe(){return this.description||""}if(Fe&&(Fe=[Fe]),he&&!et&&(et=Ce([he])),(re=/\bGoogle TV\b/.exec(et))&&(et=re[0]),/\bSimulator\b/i.test(T)&&(et=(et?et+" ":"")+"Simulator"),ue=="Opera Mini"&&/\bOPiOS\b/.test(T)&&Oe.push("running in Turbo/Uncompressed mode"),ue=="IE"&&/\blike iPhone OS\b/.test(T)?(re=C(T.replace(/like iPhone OS/,"")),he=re.manufacturer,et=re.product):/^iP/.test(et)?(ue||(ue="Safari"),J="iOS"+((re=/ OS ([\d_]+)/i.exec(T))?" "+re[1].replace(/_/g,"."):"")):ue=="Konqueror"&&!/buntu/i.test(J)?J="Kubuntu":he&&he!="Google"&&(/Chrome/.test(ue)&&!/\bMobile Safari\b/i.test(T)||/\bVita\b/.test(et))||/\bAndroid\b/.test(J)&&/^Chrome/.test(ue)&&/\bVersion\//i.test(T)?(ue="Android Browser",J=/\bAndroid\b/.test(J)?J:"Android"):ue=="Silk"?(/\bMobi/i.test(T)||(J="Android",Oe.unshift("desktop mode")),/Accelerated *= *true/i.test(T)&&Oe.unshift("accelerated")):ue=="PaleMoon"&&(re=/\bFirefox\/([\d.]+)\b/.exec(T))?Oe.push("identifying as Firefox "+re[1]):ue=="Firefox"&&(re=/\b(Mobile|Tablet|TV)\b/i.exec(T))?(J||(J="Firefox OS"),et||(et=re[1])):!ue||(re=!/\bMinefield\b/i.test(T)&&/\b(?:Firefox|Safari)\b/.exec(ue))?(ue&&!et&&/[\/,]|^[^(]+?\)/.test(T.slice(T.indexOf(re+"/")+8))&&(ue=null),(re=et||he||J)&&(et||he||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(J))&&(ue=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(J)?J:re)+" Browser")):ue=="Electron"&&(re=(/\bChrome\/([\d.]+)\b/.exec(T)||0)[1])&&Oe.push("Chromium "+re),Ve||(Ve=Be(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",b(ue),"(?:Firefox|Minefield|NetFront)"])),(re=Fe=="iCab"&&parseFloat(Ve)>3&&"WebKit"||/\bOpera\b/.test(ue)&&(/\bOPR\b/.test(T)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(T)&&!/^(?:Trident|EdgeHTML)$/.test(Fe)&&"WebKit"||!Fe&&/\bMSIE\b/i.test(T)&&(J=="Mac OS"?"Tasman":"Trident")||Fe=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ue)&&"NetFront")&&(Fe=[re]),ue=="IE"&&(re=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(T)||0)[1])?(ue+=" Mobile",J="Windows Phone "+(/\+$/.test(re)?re:re+".x"),Oe.unshift("desktop mode")):/\bWPDesktop\b/i.test(T)?(ue="IE Mobile",J="Windows Phone 8.x",Oe.unshift("desktop mode"),Ve||(Ve=(/\brv:([\d.]+)/.exec(T)||0)[1])):ue!="IE"&&Fe=="Trident"&&(re=/\brv:([\d.]+)/.exec(T))&&(ue&&Oe.push("identifying as "+ue+(Ve?" "+Ve:"")),ue="IE",Ve=re[1]),Qe){if(A(w,"global"))if(z&&(re=z.lang.System,xe=re.getProperty("os.arch"),J=J||re.getProperty("os.name")+" "+re.getProperty("os.version")),V){try{Ve=w.require("ringo/engine").version.join("."),ue="RingoJS"}catch(Re){(re=w.system)&&re.global.system==w.system&&(ue="Narwhal",J||(J=re[0].os||null))}ue||(ue="Rhino")}else typeof w.process=="object"&&!w.process.browser&&(re=w.process)&&(typeof re.versions=="object"&&(typeof re.versions.electron=="string"?(Oe.push("Node "+re.versions.node),ue="Electron",Ve=re.versions.electron):typeof re.versions.nw=="string"&&(Oe.push("Chromium "+Ve,"Node "+re.versions.node),ue="NW.js",Ve=re.versions.nw)),ue||(ue="Node.js",xe=re.arch,J=re.platform,Ve=/[\d.]+/.exec(re.version),Ve=Ve?Ve[0]:null));else g(re=w.runtime)==X?(ue="Adobe AIR",J=re.flash.system.Capabilities.os):g(re=w.phantom)==K?(ue="PhantomJS",Ve=(re=re.version||null)&&re.major+"."+re.minor+"."+re.patch):typeof te.documentMode=="number"&&(re=/\bTrident\/(\d+)/i.exec(T))?(Ve=[Ve,te.documentMode],(re=+re[1]+4)!=Ve[1]&&(Oe.push("IE "+Ve[1]+" mode"),Fe&&(Fe[1]=""),Ve[1]=re),Ve=ue=="IE"?String(Ve[1].toFixed(1)):Ve[0]):typeof te.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ue)&&(Oe.push("masking as "+ue+" "+Ve),ue="IE",Ve="11.0",Fe=["Trident"],J="Windows");J=J&&c(J)}if(Ve&&(re=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ve)||/(?:alpha|beta)(?: ?\d)?/i.exec(T+";"+(Qe&&I.appMinorVersion))||/\bMinefield\b/i.test(T)&&"a")&&(Me=/b/i.test(re)?"beta":"alpha",Ve=Ve.replace(RegExp(re+"\\+?$"),"")+(Me=="beta"?G:Q)+(/\d+\+?/.exec(re)||"")),ue=="Fennec"||ue=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(J))ue="Firefox Mobile";else if(ue=="Maxthon"&&Ve)Ve=Ve.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(et))et=="Xbox 360"&&(J=null),et=="Xbox 360"&&/\bIEMobile\b/.test(T)&&Oe.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ue)||ue&&!et&&!/Browser|Mobi/.test(ue))&&(J=="Windows CE"||/Mobi/i.test(T)))ue+=" Mobile";else if(ue=="IE"&&Qe)try{w.external===null&&Oe.unshift("platform preview")}catch(Re){Oe.unshift("embedded")}else(/\bBlackBerry\b/.test(et)||/\bBB10\b/.test(T))&&(re=(RegExp(et.replace(/ +/g," *")+"/([.\\d]+)","i").exec(T)||0)[1]||Ve)?(re=[re,/BB10/.test(T)],J=(re[1]?(et=null,he="BlackBerry"):"Device Software")+" "+re[0],Ve=null):this!=h&&et!="Wii"&&(Qe&&q||/Opera/.test(ue)&&/\b(?:MSIE|Firefox)\b/i.test(T)||ue=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(J)||ue=="IE"&&(J&&!/^Win/.test(J)&&Ve>5.5||/\bWindows XP\b/.test(J)&&Ve>8||Ve==8&&!/\bTrident\b/.test(T)))&&!s.test(re=C.call(h,T.replace(s,"")+";"))&&re.name&&(re="ing as "+re.name+((re=re.version)?" "+re:""),s.test(ue)?(/\bIE\b/.test(re)&&J=="Mac OS"&&(J=null),re="identify"+re):(re="mask"+re,se?ue=c(se.replace(/([a-z])([A-Z])/g,"$1 $2")):ue="Opera",/\bIE\b/.test(re)&&(J=null),Qe||(Ve=null)),Fe=["Presto"],Oe.push(re));(re=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(T)||0)[1])&&(re=[parseFloat(re.replace(/\.(\d)$/,".0$1")),re],ue=="Safari"&&re[1].slice(-1)=="+"?(ue="WebKit Nightly",Me="alpha",Ve=re[1].slice(0,-1)):(Ve==re[1]||Ve==(re[2]=(/\bSafari\/([\d.]+\+?)/i.exec(T)||0)[1]))&&(Ve=null),re[1]=(/\bChrome\/([\d.]+)/i.exec(T)||0)[1],re[0]==537.36&&re[2]==537.36&&parseFloat(re[1])>=28&&Fe=="WebKit"&&(Fe=["Blink"]),!Qe||!j&&!re[1]?(Fe&&(Fe[1]="like Safari"),re=(re=re[0],re<400?1:re<500?2:re<526?3:re<533?4:re<534?"4+":re<535?5:re<537?6:re<538?7:re<601?8:"8")):(Fe&&(Fe[1]="like Chrome"),re=re[1]||(re=re[0],re<530?1:re<532?2:re<532.05?3:re<533?4:re<534.03?5:re<534.07?6:re<534.1?7:re<534.13?8:re<534.16?9:re<534.24?10:re<534.3?11:re<535.01?12:re<535.02?"13+":re<535.07?15:re<535.11?16:re<535.19?17:re<536.05?18:re<536.1?19:re<537.01?20:re<537.11?"21+":re<537.13?23:re<537.18?24:re<537.24?25:re<537.36?26:Fe!="Blink"?"27":"28")),Fe&&(Fe[1]+=" "+(re+=typeof re=="number"?".x":/[.+]/.test(re)?"":"+")),ue=="Safari"&&(!Ve||parseInt(Ve)>45)&&(Ve=re)),ue=="Opera"&&(re=/\bzbov|zvav$/.exec(J))?(ue+=" ",Oe.unshift("desktop mode"),re=="zvav"?(ue+="Mini",Ve=null):ue+="Mobile",J=J.replace(RegExp(" *"+re+"$"),"")):ue=="Safari"&&/\bChrome\b/.exec(Fe&&Fe[1])&&(Oe.unshift("desktop mode"),ue="Chrome Mobile",Ve=null,/\bOS X\b/.test(J)?(he="Apple",J="iOS 4.3+"):J=null),Ve&&Ve.indexOf(re=/[\d.]+$/.exec(J))==0&&T.indexOf("/"+re+"-")>-1&&(J=E(J.replace(re,""))),Fe&&!/\b(?:Avant|Nook)\b/.test(ue)&&(/Browser|Lunascape|Maxthon/.test(ue)||ue!="Safari"&&/^iOS/.test(J)&&/\bSafari\b/.test(Fe[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ue)&&Fe[1])&&((re=Fe[Fe.length-1])&&Oe.push(re)),Oe.length&&(Oe=["("+Oe.join("; ")+")"]),he&&et&&et.indexOf(he)<0&&Oe.push("on "+he),et&&Oe.push((/^on /.test(Oe[Oe.length-1])?"":"on ")+et),J&&(re=/ ([\d.+]+)$/.exec(J),ut=re&&J.charAt(J.length-re[0].length-1)=="/",J={architecture:32,family:re&&!ut?J.replace(re[0],""):J,version:re?re[1]:null,toString:function(){var rt=this.version;return this.family+(rt&&!ut?" "+rt:"")+(this.architecture==64?" 64-bit":"")}}),(re=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(xe))&&!/\bi686\b/i.test(xe)?(J&&(J.architecture=64,J.family=J.family.replace(RegExp(" *"+re),"")),ue&&(/\bWOW64\b/i.test(T)||Qe&&/\w(?:86|32)$/.test(I.cpuClass||I.platform)&&!/\bWin64; x64\b/i.test(T))&&Oe.unshift("32-bit")):J&&/^OS X/.test(J.family)&&ue=="Chrome"&&parseFloat(Ve)>=39&&(J.architecture=64),T||(T=null);var we={};return we.description=T,we.layout=Fe&&Fe[0],we.manufacturer=he,we.name=ue,we.prerelease=Me,we.product=et,we.ua=T,we.version=ue&&Ve,we.os=J||{architecture:null,family:null,version:null,toString:function(){return"null"}},we.parse=C,we.toString=fe,we.version&&Oe.unshift(Ve),we.name&&Oe.unshift(ue),J&&ue&&!(J==String(J).split(" ")[0]&&(J==ue.split(" ")[0]||et))&&Oe.push(et?"("+J+")":"on "+J),Oe.length&&(we.description=Oe.join(" ")),we}var _=C();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(x.platform=_,define(function(){return _})):m&&p?h(_,function(T,w){m[w]=T}):x.platform=_}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(R,D,n){(function(y){"use strict";typeof y=="undefined"||!y.version||y.version.indexOf("v0.")===0||y.version.indexOf("v1.")===0&&y.version.indexOf("v1.8.")!==0?D.exports={nextTick:f}:D.exports=y;function f(x,v,m,p){if(typeof x!="function")throw new TypeError('"callback" argument must be a function');var d=arguments.length,u,s;switch(d){case 0:case 1:return y.nextTick(x);case 2:return y.nextTick(function(){x.call(null,v)});case 3:return y.nextTick(function(){x.call(null,v,m)});case 4:return y.nextTick(function(){x.call(null,v,m,p)});default:for(u=new Array(d-1),s=0;s<u.length;)u[s++]=arguments[s];return y.nextTick(function(){x.apply(null,u)})}}}).call(this,R("_process"))},{_process:208}],208:[function(R,D,n){var y=D.exports={},f,x;function v(){throw new Error("setTimeout has not been defined")}function m(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?f=setTimeout:f=v}catch(a){f=v}try{typeof clearTimeout=="function"?x=clearTimeout:x=m}catch(a){x=m}})();function p(a){if(f===setTimeout)return setTimeout(a,0);if((f===v||!f)&&setTimeout)return f=setTimeout,setTimeout(a,0);try{return f(a,0)}catch(c){try{return f.call(null,a,0)}catch(h){return f.call(this,a,0)}}}function d(a){if(x===clearTimeout)return clearTimeout(a);if((x===m||!x)&&clearTimeout)return x=clearTimeout,clearTimeout(a);try{return x(a)}catch(c){try{return x.call(null,a)}catch(h){return x.call(this,a)}}}var u=[],s=!1,i,t=-1;function o(){if(!s||!i)return;s=!1,i.length?u=i.concat(u):t=-1,u.length&&e()}function e(){if(s)return;var a=p(o);s=!0;for(var c=u.length;c;){for(i=u,u=[];++t<c;)i&&i[t].run();t=-1,c=u.length}i=null,s=!1,d(a)}y.nextTick=function(a){var c=new Array(arguments.length-1);if(arguments.length>1)for(var h=1;h<arguments.length;h++)c[h-1]=arguments[h];u.push(new l(a,c)),u.length===1&&!s&&p(e)};function l(a,c){this.fun=a,this.array=c}l.prototype.run=function(){this.fun.apply(null,this.array)},y.title="browser",y.browser=!0,y.env={},y.argv=[],y.version="",y.versions={};function r(){}y.on=r,y.addListener=r,y.once=r,y.off=r,y.removeListener=r,y.removeAllListeners=r,y.emit=r,y.prependListener=r,y.prependOnceListener=r,y.listeners=function(a){return[]},y.binding=function(a){throw new Error("process.binding is not supported")},y.cwd=function(){return"/"},y.chdir=function(a){throw new Error("process.chdir is not supported")},y.umask=function(){return 0}},{}],209:[function(R,D,n){(function(y){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(f){var x=typeof n=="object"&&n&&!n.nodeType&&n,v=typeof D=="object"&&D&&!D.nodeType&&D,m=typeof y=="object"&&y;(m.global===m||m.window===m||m.self===m)&&(f=m);var p,d=2147483647,u=36,s=1,i=26,t=38,o=700,e=72,l=128,r="-",a=/^xn--/,c=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,g={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},A=u-s,b=Math.floor,S=String.fromCharCode,E;function C(U){throw new RangeError(g[U])}function _(U,K){for(var z=U.length,V=[];z--;)V[z]=K(U[z]);return V}function T(U,K){var z=U.split("@"),V="";z.length>1&&(V=z[0]+"@",U=z[1]),U=U.replace(h,".");var Q=U.split("."),G=_(Q,K).join(".");return V+G}function w(U){for(var K=[],z=0,V=U.length,Q,G;z<V;)Q=U.charCodeAt(z++),Q>=55296&&Q<=56319&&z<V?(G=U.charCodeAt(z++),(G&64512)==56320?K.push(((Q&1023)<<10)+(G&1023)+65536):(K.push(Q),z--)):K.push(Q);return K}function O(U){return _(U,function(K){var z="";return K>65535&&(K-=65536,z+=S(K>>>10&1023|55296),K=56320|K&1023),z+=S(K),z}).join("")}function I(U){return U-48<10?U-22:U-65<26?U-65:U-97<26?U-97:u}function k(U,K){return U+22+75*(U<26)-((K!=0)<<5)}function M(U,K,z){var V=0;for(U=z?b(U/o):U>>1,U+=b(U/K);U>A*i>>1;V+=u)U=b(U/A);return b(V+(A+1)*U/(U+t))}function j(U){var K=[],z=U.length,V,Q=0,G=l,te=e,q,se,re,xe,Oe,Me,Qe,Ve,ut;for(q=U.lastIndexOf(r),q<0&&(q=0),se=0;se<q;++se)U.charCodeAt(se)>=128&&C("not-basic"),K.push(U.charCodeAt(se));for(re=q>0?q+1:0;re<z;){for(xe=Q,Oe=1,Me=u;!(re>=z&&C("invalid-input"),Qe=I(U.charCodeAt(re++)),(Qe>=u||Qe>b((d-Q)/Oe))&&C("overflow"),Q+=Qe*Oe,Ve=Me<=te?s:Me>=te+i?i:Me-te,Qe<Ve);Me+=u)ut=u-Ve,Oe>b(d/ut)&&C("overflow"),Oe*=ut;V=K.length+1,te=M(Q-xe,V,xe==0),b(Q/V)>d-G&&C("overflow"),G+=b(Q/V),Q%=V,K.splice(Q++,0,G)}return O(K)}function P(U){var K,z,V,Q,G,te,q,se,re,xe,Oe,Me=[],Qe,Ve,ut,Fe;for(U=w(U),Qe=U.length,K=l,z=0,G=e,te=0;te<Qe;++te)Oe=U[te],Oe<128&&Me.push(S(Oe));for(V=Q=Me.length,Q&&Me.push(r);V<Qe;){for(q=d,te=0;te<Qe;++te)Oe=U[te],Oe>=K&&Oe<q&&(q=Oe);for(Ve=V+1,q-K>b((d-z)/Ve)&&C("overflow"),z+=(q-K)*Ve,K=q,te=0;te<Qe;++te)if(Oe=U[te],Oe<K&&++z>d&&C("overflow"),Oe==K){for(se=z,re=u;!(xe=re<=G?s:re>=G+i?i:re-G,se<xe);re+=u)Fe=se-xe,ut=u-xe,Me.push(S(k(xe+Fe%ut,0))),se=b(Fe/ut);Me.push(S(k(se,0))),G=M(z,Ve,V==Q),z=0,++V}++z,++K}return Me.join("")}function X(U){return T(U,function(K){return a.test(K)?j(K.slice(4).toLowerCase()):K})}function F(U){return T(U,function(K){return c.test(K)?"xn--"+P(K):K})}if(p={version:"1.4.1",ucs2:{decode:w,encode:O},decode:j,encode:P,toASCII:F,toUnicode:X},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return p});else if(x&&v)if(D.exports==x)v.exports=p;else for(E in p)p.hasOwnProperty(E)&&(x[E]=p[E]);else f.punycode=p})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(R,D,n){"use strict";function y(x,v){return Object.prototype.hasOwnProperty.call(x,v)}D.exports=function(x,v,m,p){v=v||"&",m=m||"=";var d={};if(typeof x!="string"||x.length===0)return d;var u=/\+/g;x=x.split(v);var s=1e3;p&&typeof p.maxKeys=="number"&&(s=p.maxKeys);var i=x.length;s>0&&i>s&&(i=s);for(var t=0;t<i;++t){var o=x[t].replace(u,"%20"),e=o.indexOf(m),l,r,a,c;e>=0?(l=o.substr(0,e),r=o.substr(e+1)):(l=o,r=""),a=decodeURIComponent(l),c=decodeURIComponent(r),y(d,a)?f(d[a])?d[a].push(c):d[a]=[d[a],c]:d[a]=c}return d};var f=Array.isArray||function(x){return Object.prototype.toString.call(x)==="[object Array]"}},{}],211:[function(R,D,n){"use strict";var y=function(p){switch(typeof p){case"string":return p;case"boolean":return p?"true":"false";case"number":return isFinite(p)?p:"";default:return""}};D.exports=function(m,p,d,u){return p=p||"&",d=d||"=",m===null&&(m=void 0),typeof m=="object"?x(v(m),function(s){var i=encodeURIComponent(y(s))+d;return f(m[s])?x(m[s],function(t){return i+encodeURIComponent(y(t))}).join(p):i+encodeURIComponent(y(m[s]))}).join(p):u?encodeURIComponent(y(u))+d+encodeURIComponent(y(m)):""};var f=Array.isArray||function(m){return Object.prototype.toString.call(m)==="[object Array]"};function x(m,p){if(m.map)return m.map(p);for(var d=[],u=0;u<m.length;u++)d.push(p(m[u],u));return d}var v=Object.keys||function(m){var p=[];for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&p.push(d);return p}},{}],212:[function(R,D,n){"use strict";n.decode=n.parse=R("./decode"),n.encode=n.stringify=R("./encode")},{"./decode":210,"./encode":211}],213:[function(R,D,n){D.exports=R("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),f=m(y),x=R("babel-runtime/core-js/object/keys"),v=m(x);function m(c){return c&&c.__esModule?c:{default:c}}var p=R("process-nextick-args"),d=v.default||function(c){var h=[];for(var g in c)h.push(g);return h};D.exports=l;var u=(0,f.default)(R("core-util-is"));u.inherits=R("inherits");var s=R("./_stream_readable"),i=R("./_stream_writable");u.inherits(l,s);for(var t=d(i.prototype),o=0;o<t.length;o++){var e=t[o];l.prototype[e]||(l.prototype[e]=i.prototype[e])}function l(c){if(!(this instanceof l))return new l(c);s.call(this,c),i.call(this,c),c&&c.readable===!1&&(this.readable=!1),c&&c.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,c&&c.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",r)}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function r(){if(this.allowHalfOpen||this._writableState.ended)return;p.nextTick(a,this)}function a(c){c.end()}Object.defineProperty(l.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(h){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=h,this._writableState.destroyed=h}}),l.prototype._destroy=function(c,h){this.push(null),this.end(),p.nextTick(h,c)}},{"./_stream_readable":216,"./_stream_writable":218,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60,"core-util-is":189,inherits:196,"process-nextick-args":207}],215:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(d){return d&&d.__esModule?d:{default:d}}D.exports=p;var v=R("./_stream_transform"),m=(0,f.default)(R("core-util-is"));m.inherits=R("inherits"),m.inherits(p,v);function p(d){if(!(this instanceof p))return new p(d);v.call(this,d)}p.prototype._transform=function(d,u,s){s(null,d)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(R,D,n){(function(y,f){"use strict";var x=R("babel-runtime/core-js/object/get-prototype-of"),v=d(x),m=R("babel-runtime/core-js/object/create"),p=d(m);function d(Fe){return Fe&&Fe.__esModule?Fe:{default:Fe}}var u=R("process-nextick-args");D.exports=w;var s=R("isarray"),i;w.ReadableState=T;var t=R("events").EventEmitter,o=function(ue,et){return ue.listeners(et).length},e=R("./internal/streams/stream"),l=R("safe-buffer").Buffer,r=f.Uint8Array||function(){};function a(Fe){return l.from(Fe)}function c(Fe){return l.isBuffer(Fe)||Fe instanceof r}var h=(0,p.default)(R("core-util-is"));h.inherits=R("inherits");var g=R("util"),A=void 0;g&&g.debuglog?A=g.debuglog("stream"):A=function(){};var b=R("./internal/streams/BufferList"),S=R("./internal/streams/destroy"),E;h.inherits(w,e);var C=["error","close","destroy","pause","resume"];function _(Fe,ue,et){if(typeof Fe.prependListener=="function")return Fe.prependListener(ue,et);!Fe._events||!Fe._events[ue]?Fe.on(ue,et):s(Fe._events[ue])?Fe._events[ue].unshift(et):Fe._events[ue]=[et,Fe._events[ue]]}function T(Fe,ue){i=i||R("./_stream_duplex"),Fe=Fe||{};var et=ue instanceof i;this.objectMode=!!Fe.objectMode,et&&(this.objectMode=this.objectMode||!!Fe.readableObjectMode);var he=Fe.highWaterMark,J=Fe.readableHighWaterMark,Y=this.objectMode?16:16*1024;he||he===0?this.highWaterMark=he:et&&(J||J===0)?this.highWaterMark=J:this.highWaterMark=Y,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Fe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Fe.encoding&&(E||(E=R("string_decoder/").StringDecoder),this.decoder=new E(Fe.encoding),this.encoding=Fe.encoding)}function w(Fe){if(i=i||R("./_stream_duplex"),!(this instanceof w))return new w(Fe);this._readableState=new T(Fe,this),this.readable=!0,Fe&&(typeof Fe.read=="function"&&(this._read=Fe.read),typeof Fe.destroy=="function"&&(this._destroy=Fe.destroy)),e.call(this)}Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ue){if(!this._readableState)return;this._readableState.destroyed=ue}}),w.prototype.destroy=S.destroy,w.prototype._undestroy=S.undestroy,w.prototype._destroy=function(Fe,ue){this.push(null),ue(Fe)},w.prototype.push=function(Fe,ue){var et=this._readableState,he;return et.objectMode?he=!0:typeof Fe=="string"&&(ue=ue||et.defaultEncoding,ue!==et.encoding&&(Fe=l.from(Fe,ue),ue=""),he=!0),O(this,Fe,ue,!1,he)},w.prototype.unshift=function(Fe){return O(this,Fe,null,!0,!1)};function O(Fe,ue,et,he,J){var Y=Fe._readableState;if(ue===null)Y.reading=!1,F(Fe,Y);else{var $;J||($=k(Y,ue)),$?Fe.emit("error",$):Y.objectMode||ue&&ue.length>0?(typeof ue!="string"&&!Y.objectMode&&(0,v.default)(ue)!==l.prototype&&(ue=a(ue)),he?Y.endEmitted?Fe.emit("error",new Error("stream.unshift() after end event")):I(Fe,Y,ue,!0):Y.ended?Fe.emit("error",new Error("stream.push() after EOF")):(Y.reading=!1,Y.decoder&&!et?(ue=Y.decoder.write(ue),Y.objectMode||ue.length!==0?I(Fe,Y,ue,!1):z(Fe,Y)):I(Fe,Y,ue,!1))):he||(Y.reading=!1)}return M(Y)}function I(Fe,ue,et,he){ue.flowing&&ue.length===0&&!ue.sync?(Fe.emit("data",et),Fe.read(0)):(ue.length+=ue.objectMode?1:et.length,he?ue.buffer.unshift(et):ue.buffer.push(et),ue.needReadable&&U(Fe)),z(Fe,ue)}function k(Fe,ue){var et;return!c(ue)&&typeof ue!="string"&&ue!==void 0&&!Fe.objectMode&&(et=new TypeError("Invalid non-string/buffer chunk")),et}function M(Fe){return!Fe.ended&&(Fe.needReadable||Fe.length<Fe.highWaterMark||Fe.length===0)}w.prototype.isPaused=function(){return this._readableState.flowing===!1},w.prototype.setEncoding=function(Fe){return E||(E=R("string_decoder/").StringDecoder),this._readableState.decoder=new E(Fe),this._readableState.encoding=Fe,this};var j=8388608;function P(Fe){return Fe>=j?Fe=j:(Fe--,Fe|=Fe>>>1,Fe|=Fe>>>2,Fe|=Fe>>>4,Fe|=Fe>>>8,Fe|=Fe>>>16,Fe++),Fe}function X(Fe,ue){return Fe<=0||ue.length===0&&ue.ended?0:ue.objectMode?1:Fe!==Fe?ue.flowing&&ue.length?ue.buffer.head.data.length:ue.length:(Fe>ue.highWaterMark&&(ue.highWaterMark=P(Fe)),Fe<=ue.length?Fe:ue.ended?ue.length:(ue.needReadable=!0,0))}w.prototype.read=function(Fe){A("read",Fe),Fe=parseInt(Fe,10);var ue=this._readableState,et=Fe;if(Fe!==0&&(ue.emittedReadable=!1),Fe===0&&ue.needReadable&&(ue.length>=ue.highWaterMark||ue.ended))return A("read: emitReadable",ue.length,ue.ended),ue.length===0&&ue.ended?Qe(this):U(this),null;if(Fe=X(Fe,ue),Fe===0&&ue.ended)return ue.length===0&&Qe(this),null;var he=ue.needReadable;A("need readable",he),(ue.length===0||ue.length-Fe<ue.highWaterMark)&&(he=!0,A("length less than watermark",he)),ue.ended||ue.reading?(he=!1,A("reading or ended",he)):he&&(A("do read"),ue.reading=!0,ue.sync=!0,ue.length===0&&(ue.needReadable=!0),this._read(ue.highWaterMark),ue.sync=!1,ue.reading||(Fe=X(et,ue)));var J;return Fe>0?J=re(Fe,ue):J=null,J===null?(ue.needReadable=!0,Fe=0):ue.length-=Fe,ue.length===0&&(ue.ended||(ue.needReadable=!0),et!==Fe&&ue.ended&&Qe(this)),J!==null&&this.emit("data",J),J};function F(Fe,ue){if(ue.ended)return;if(ue.decoder){var et=ue.decoder.end();et&&et.length&&(ue.buffer.push(et),ue.length+=ue.objectMode?1:et.length)}ue.ended=!0,U(Fe)}function U(Fe){var ue=Fe._readableState;ue.needReadable=!1,ue.emittedReadable||(A("emitReadable",ue.flowing),ue.emittedReadable=!0,ue.sync?u.nextTick(K,Fe):K(Fe))}function K(Fe){A("emit readable"),Fe.emit("readable"),se(Fe)}function z(Fe,ue){ue.readingMore||(ue.readingMore=!0,u.nextTick(V,Fe,ue))}function V(Fe,ue){for(var et=ue.length;!ue.reading&&!ue.flowing&&!ue.ended&&ue.length<ue.highWaterMark&&!(A("maybeReadMore read 0"),Fe.read(0),et===ue.length);)et=ue.length;ue.readingMore=!1}w.prototype._read=function(Fe){this.emit("error",new Error("_read() is not implemented"))},w.prototype.pipe=function(Fe,ue){var et=this,he=this._readableState;switch(he.pipesCount){case 0:he.pipes=Fe;break;case 1:he.pipes=[he.pipes,Fe];break;default:he.pipes.push(Fe);break}he.pipesCount+=1,A("pipe count=%d opts=%j",he.pipesCount,ue);var J=(!ue||ue.end!==!1)&&Fe!==y.stdout&&Fe!==y.stderr,Y=J?de:ft;he.endEmitted?u.nextTick(Y):et.once("end",Y),Fe.on("unpipe",$);function $(He,er){A("onunpipe"),He===et&&(er&&er.hasUnpiped===!1&&(er.hasUnpiped=!0,Be()))}function de(){A("onend"),Fe.end()}var be=Q(et);Fe.on("drain",be);var Ce=!1;function Be(){A("cleanup"),Fe.removeListener("close",rt),Fe.removeListener("finish",St),Fe.removeListener("drain",be),Fe.removeListener("error",Re),Fe.removeListener("unpipe",$),et.removeListener("end",de),et.removeListener("end",ft),et.removeListener("data",we),Ce=!0,he.awaitDrain&&(!Fe._writableState||Fe._writableState.needDrain)&&be()}var fe=!1;et.on("data",we);function we(He){A("ondata"),fe=!1;var er=Fe.write(He);er===!1&&!fe&&((he.pipesCount===1&&he.pipes===Fe||he.pipesCount>1&&ut(he.pipes,Fe)!==-1)&&!Ce&&(A("false write response, pause",et._readableState.awaitDrain),et._readableState.awaitDrain++,fe=!0),et.pause())}function Re(He){A("onerror",He),ft(),Fe.removeListener("error",Re),o(Fe,"error")===0&&Fe.emit("error",He)}_(Fe,"error",Re);function rt(){Fe.removeListener("finish",St),ft()}Fe.once("close",rt);function St(){A("onfinish"),Fe.removeListener("close",rt),ft()}Fe.once("finish",St);function ft(){A("unpipe"),et.unpipe(Fe)}return Fe.emit("pipe",et),he.flowing||(A("pipe resume"),et.resume()),Fe};function Q(Fe){return function(){var ue=Fe._readableState;A("pipeOnDrain",ue.awaitDrain),ue.awaitDrain&&ue.awaitDrain--,ue.awaitDrain===0&&o(Fe,"data")&&(ue.flowing=!0,se(Fe))}}w.prototype.unpipe=function(Fe){var ue=this._readableState,et={hasUnpiped:!1};if(ue.pipesCount===0)return this;if(ue.pipesCount===1)return Fe&&Fe!==ue.pipes?this:(Fe||(Fe=ue.pipes),ue.pipes=null,ue.pipesCount=0,ue.flowing=!1,Fe&&Fe.emit("unpipe",this,et),this);if(!Fe){var he=ue.pipes,J=ue.pipesCount;ue.pipes=null,ue.pipesCount=0,ue.flowing=!1;for(var Y=0;Y<J;Y++)he[Y].emit("unpipe",this,et);return this}var $=ut(ue.pipes,Fe);return $===-1?this:(ue.pipes.splice($,1),ue.pipesCount-=1,ue.pipesCount===1&&(ue.pipes=ue.pipes[0]),Fe.emit("unpipe",this,et),this)},w.prototype.on=function(Fe,ue){var et=e.prototype.on.call(this,Fe,ue);if(Fe==="data")this._readableState.flowing!==!1&&this.resume();else if(Fe==="readable"){var he=this._readableState;!he.endEmitted&&!he.readableListening&&(he.readableListening=he.needReadable=!0,he.emittedReadable=!1,he.reading?he.length&&U(this):u.nextTick(G,this))}return et},w.prototype.addListener=w.prototype.on;function G(Fe){A("readable nexttick read 0"),Fe.read(0)}w.prototype.resume=function(){var Fe=this._readableState;return Fe.flowing||(A("resume"),Fe.flowing=!0,te(this,Fe)),this};function te(Fe,ue){ue.resumeScheduled||(ue.resumeScheduled=!0,u.nextTick(q,Fe,ue))}function q(Fe,ue){ue.reading||(A("resume read 0"),Fe.read(0)),ue.resumeScheduled=!1,ue.awaitDrain=0,Fe.emit("resume"),se(Fe),ue.flowing&&!ue.reading&&Fe.read(0)}w.prototype.pause=function(){return A("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(A("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function se(Fe){var ue=Fe._readableState;for(A("flow",ue.flowing);ue.flowing&&Fe.read()!==null;);}w.prototype.wrap=function(Fe){var ue=this,et=this._readableState,he=!1;Fe.on("end",function(){if(A("wrapped end"),et.decoder&&!et.ended){var $=et.decoder.end();$&&$.length&&ue.push($)}ue.push(null)}),Fe.on("data",function($){if(A("wrapped data"),et.decoder&&($=et.decoder.write($)),et.objectMode&&$==null)return;if(!et.objectMode&&(!$||!$.length))return;var de=ue.push($);de||(he=!0,Fe.pause())});for(var J in Fe)this[J]===void 0&&typeof Fe[J]=="function"&&(this[J]=function($){return function(){return Fe[$].apply(Fe,arguments)}}(J));for(var Y=0;Y<C.length;Y++)Fe.on(C[Y],this.emit.bind(this,C[Y]));return this._read=function($){A("wrapped _read",$),he&&(he=!1,Fe.resume())},this},Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),w._fromList=re;function re(Fe,ue){if(ue.length===0)return null;var et;return ue.objectMode?et=ue.buffer.shift():!Fe||Fe>=ue.length?(ue.decoder?et=ue.buffer.join(""):ue.buffer.length===1?et=ue.buffer.head.data:et=ue.buffer.concat(ue.length),ue.buffer.clear()):et=xe(Fe,ue.buffer,ue.decoder),et}function xe(Fe,ue,et){var he;return Fe<ue.head.data.length?(he=ue.head.data.slice(0,Fe),ue.head.data=ue.head.data.slice(Fe)):Fe===ue.head.data.length?he=ue.shift():he=et?Oe(Fe,ue):Me(Fe,ue),he}function Oe(Fe,ue){var et=ue.head,he=1,J=et.data;for(Fe-=J.length;et=et.next;){var Y=et.data,$=Fe>Y.length?Y.length:Fe;if($===Y.length?J+=Y:J+=Y.slice(0,Fe),Fe-=$,Fe===0){$===Y.length?(++he,et.next?ue.head=et.next:ue.head=ue.tail=null):(ue.head=et,et.data=Y.slice($));break}++he}return ue.length-=he,J}function Me(Fe,ue){var et=l.allocUnsafe(Fe),he=ue.head,J=1;for(he.data.copy(et),Fe-=he.data.length;he=he.next;){var Y=he.data,$=Fe>Y.length?Y.length:Fe;if(Y.copy(et,et.length-Fe,0,$),Fe-=$,Fe===0){$===Y.length?(++J,he.next?ue.head=he.next:ue.head=ue.tail=null):(ue.head=he,he.data=Y.slice($));break}++J}return ue.length-=J,et}function Qe(Fe){var ue=Fe._readableState;if(ue.length>0)throw new Error('"endReadable()" called on non-empty stream');ue.endEmitted||(ue.ended=!0,u.nextTick(Ve,ue,Fe))}function Ve(Fe,ue){!Fe.endEmitted&&Fe.length===0&&(Fe.endEmitted=!0,ue.readable=!1,ue.emit("end"))}function ut(Fe,ue){for(var et=0,he=Fe.length;et<he;et++)if(Fe[et]===ue)return et;return-1}}).call(this,R("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/BufferList":219,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/get-prototype-of":59,"core-util-is":189,events:192,inherits:196,isarray:198,"process-nextick-args":207,"safe-buffer":228,"string_decoder/":235,util:71}],217:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(i){return i&&i.__esModule?i:{default:i}}D.exports=d;var v=R("./_stream_duplex"),m=(0,f.default)(R("core-util-is"));m.inherits=R("inherits"),m.inherits(d,v);function p(i,t){var o=this._transformState;o.transforming=!1;var e=o.writecb;if(!e)return this.emit("error",new Error("write callback called multiple times"));o.writechunk=null,o.writecb=null,t!=null&&this.push(t),e(i);var l=this._readableState;l.reading=!1,(l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}function d(i){if(!(this instanceof d))return new d(i);v.call(this,i),this._transformState={afterTransform:p.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,i&&(typeof i.transform=="function"&&(this._transform=i.transform),typeof i.flush=="function"&&(this._flush=i.flush)),this.on("prefinish",u)}function u(){var i=this;typeof this._flush=="function"?this._flush(function(t,o){s(i,t,o)}):s(this,null,null)}d.prototype.push=function(i,t){return this._transformState.needTransform=!1,v.prototype.push.call(this,i,t)},d.prototype._transform=function(i,t,o){throw new Error("_transform() is not implemented")},d.prototype._write=function(i,t,o){var e=this._transformState;if(e.writecb=o,e.writechunk=i,e.writeencoding=t,!e.transforming){var l=this._readableState;(e.needTransform||l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}},d.prototype._read=function(i){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},d.prototype._destroy=function(i,t){var o=this;v.prototype._destroy.call(this,i,function(e){t(e),o.emit("close")})};function s(i,t,o){if(t)return i.emit("error",t);if(o!=null&&i.push(o),i._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(i._transformState.transforming)throw new Error("Calling transform done when still transforming");return i.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(R,D,n){(function(y,f){"use strict";var x=R("babel-runtime/core-js/object/define-property"),v=e(x),m=R("babel-runtime/core-js/symbol/has-instance"),p=e(m),d=R("babel-runtime/core-js/symbol"),u=e(d),s=R("babel-runtime/core-js/object/create"),i=e(s),t=R("babel-runtime/core-js/set-immediate"),o=e(t);function e(Me){return Me&&Me.__esModule?Me:{default:Me}}var l=R("process-nextick-args");D.exports=k;function r(Me,Qe,Ve){this.chunk=Me,this.encoding=Qe,this.callback=Ve,this.next=null}function a(Me){var Qe=this;this.next=null,this.entry=null,this.finish=function(){Oe(Qe,Me)}}var c=!y.browser&&["v0.10","v0.9."].indexOf(y.version.slice(0,5))>-1?o.default:l.nextTick,h;k.WritableState=O;var g=(0,i.default)(R("core-util-is"));g.inherits=R("inherits");var A={deprecate:R("util-deprecate")},b=R("./internal/streams/stream"),S=R("safe-buffer").Buffer,E=f.Uint8Array||function(){};function C(Me){return S.from(Me)}function _(Me){return S.isBuffer(Me)||Me instanceof E}var T=R("./internal/streams/destroy");g.inherits(k,b);function w(){}function O(Me,Qe){h=h||R("./_stream_duplex"),Me=Me||{};var Ve=Qe instanceof h;this.objectMode=!!Me.objectMode,Ve&&(this.objectMode=this.objectMode||!!Me.writableObjectMode);var ut=Me.highWaterMark,Fe=Me.writableHighWaterMark,ue=this.objectMode?16:16*1024;ut||ut===0?this.highWaterMark=ut:Ve&&(Fe||Fe===0)?this.highWaterMark=Fe:this.highWaterMark=ue,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 et=Me.decodeStrings===!1;this.decodeStrings=!et,this.defaultEncoding=Me.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(he){z(Qe,he)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}O.prototype.getBuffer=function(){for(var Qe=this.bufferedRequest,Ve=[];Qe;)Ve.push(Qe),Qe=Qe.next;return Ve},function(){try{Object.defineProperty(O.prototype,"buffer",{get:A.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Me){}}();var I;typeof u.default=="function"&&p.default&&typeof Function.prototype[p.default]=="function"?(I=Function.prototype[p.default],(0,v.default)(k,p.default,{value:function(Qe){return I.call(this,Qe)?!0:this!==k?!1:Qe&&Qe._writableState instanceof O}})):I=function(Qe){return Qe instanceof this};function k(Me){if(h=h||R("./_stream_duplex"),!I.call(k,this)&&!(this instanceof h))return new k(Me);this._writableState=new O(Me,this),this.writable=!0,Me&&(typeof Me.write=="function"&&(this._write=Me.write),typeof Me.writev=="function"&&(this._writev=Me.writev),typeof Me.destroy=="function"&&(this._destroy=Me.destroy),typeof Me.final=="function"&&(this._final=Me.final)),b.call(this)}k.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function M(Me,Qe){var Ve=new Error("write after end");Me.emit("error",Ve),l.nextTick(Qe,Ve)}function j(Me,Qe,Ve,ut){var Fe=!0,ue=!1;return Ve===null?ue=new TypeError("May not write null values to stream"):typeof Ve!="string"&&Ve!==void 0&&!Qe.objectMode&&(ue=new TypeError("Invalid non-string/buffer chunk")),ue&&(Me.emit("error",ue),l.nextTick(ut,ue),Fe=!1),Fe}k.prototype.write=function(Me,Qe,Ve){var ut=this._writableState,Fe=!1,ue=!ut.objectMode&&_(Me);return ue&&!S.isBuffer(Me)&&(Me=C(Me)),typeof Qe=="function"&&(Ve=Qe,Qe=null),ue?Qe="buffer":Qe||(Qe=ut.defaultEncoding),typeof Ve!="function"&&(Ve=w),ut.ended?M(this,Ve):(ue||j(this,ut,Me,Ve))&&(ut.pendingcb++,Fe=X(this,ut,ue,Me,Qe,Ve)),Fe},k.prototype.cork=function(){var Me=this._writableState;Me.corked++},k.prototype.uncork=function(){var Me=this._writableState;Me.corked&&(Me.corked--,!Me.writing&&!Me.corked&&!Me.finished&&!Me.bufferProcessing&&Me.bufferedRequest&&G(this,Me))},k.prototype.setDefaultEncoding=function(Qe){if(typeof Qe=="string"&&(Qe=Qe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Qe+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Qe);return this._writableState.defaultEncoding=Qe,this};function P(Me,Qe,Ve){return!Me.objectMode&&Me.decodeStrings!==!1&&typeof Qe=="string"&&(Qe=S.from(Qe,Ve)),Qe}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function X(Me,Qe,Ve,ut,Fe,ue){if(!Ve){var et=P(Qe,ut,Fe);ut!==et&&(Ve=!0,Fe="buffer",ut=et)}var he=Qe.objectMode?1:ut.length;Qe.length+=he;var J=Qe.length<Qe.highWaterMark;if(J||(Qe.needDrain=!0),Qe.writing||Qe.corked){var Y=Qe.lastBufferedRequest;Qe.lastBufferedRequest={chunk:ut,encoding:Fe,isBuf:Ve,callback:ue,next:null},Y?Y.next=Qe.lastBufferedRequest:Qe.bufferedRequest=Qe.lastBufferedRequest,Qe.bufferedRequestCount+=1}else F(Me,Qe,!1,he,ut,Fe,ue);return J}function F(Me,Qe,Ve,ut,Fe,ue,et){Qe.writelen=ut,Qe.writecb=et,Qe.writing=!0,Qe.sync=!0,Ve?Me._writev(Fe,Qe.onwrite):Me._write(Fe,ue,Qe.onwrite),Qe.sync=!1}function U(Me,Qe,Ve,ut,Fe){--Qe.pendingcb,Ve?(l.nextTick(Fe,ut),l.nextTick(re,Me,Qe),Me._writableState.errorEmitted=!0,Me.emit("error",ut)):(Fe(ut),Me._writableState.errorEmitted=!0,Me.emit("error",ut),re(Me,Qe))}function K(Me){Me.writing=!1,Me.writecb=null,Me.length-=Me.writelen,Me.writelen=0}function z(Me,Qe){var Ve=Me._writableState,ut=Ve.sync,Fe=Ve.writecb;if(K(Ve),Qe)U(Me,Ve,ut,Qe,Fe);else{var ue=te(Ve);!ue&&!Ve.corked&&!Ve.bufferProcessing&&Ve.bufferedRequest&&G(Me,Ve),ut?c(V,Me,Ve,ue,Fe):V(Me,Ve,ue,Fe)}}function V(Me,Qe,Ve,ut){Ve||Q(Me,Qe),Qe.pendingcb--,ut(),re(Me,Qe)}function Q(Me,Qe){Qe.length===0&&Qe.needDrain&&(Qe.needDrain=!1,Me.emit("drain"))}function G(Me,Qe){Qe.bufferProcessing=!0;var Ve=Qe.bufferedRequest;if(Me._writev&&Ve&&Ve.next){var ut=Qe.bufferedRequestCount,Fe=new Array(ut),ue=Qe.corkedRequestsFree;ue.entry=Ve;for(var et=0,he=!0;Ve;)Fe[et]=Ve,Ve.isBuf||(he=!1),Ve=Ve.next,et+=1;Fe.allBuffers=he,F(Me,Qe,!0,Qe.length,Fe,"",ue.finish),Qe.pendingcb++,Qe.lastBufferedRequest=null,ue.next?(Qe.corkedRequestsFree=ue.next,ue.next=null):Qe.corkedRequestsFree=new a(Qe),Qe.bufferedRequestCount=0}else{for(;Ve;){var J=Ve.chunk,Y=Ve.encoding,$=Ve.callback,de=Qe.objectMode?1:J.length;if(F(Me,Qe,!1,de,J,Y,$),Ve=Ve.next,Qe.bufferedRequestCount--,Qe.writing)break}Ve===null&&(Qe.lastBufferedRequest=null)}Qe.bufferedRequest=Ve,Qe.bufferProcessing=!1}k.prototype._write=function(Me,Qe,Ve){Ve(new Error("_write() is not implemented"))},k.prototype._writev=null,k.prototype.end=function(Me,Qe,Ve){var ut=this._writableState;typeof Me=="function"?(Ve=Me,Me=null,Qe=null):typeof Qe=="function"&&(Ve=Qe,Qe=null),Me!=null&&this.write(Me,Qe),ut.corked&&(ut.corked=1,this.uncork()),!ut.ending&&!ut.finished&&xe(this,ut,Ve)};function te(Me){return Me.ending&&Me.length===0&&Me.bufferedRequest===null&&!Me.finished&&!Me.writing}function q(Me,Qe){Me._final(function(Ve){Qe.pendingcb--,Ve&&Me.emit("error",Ve),Qe.prefinished=!0,Me.emit("prefinish"),re(Me,Qe)})}function se(Me,Qe){!Qe.prefinished&&!Qe.finalCalled&&(typeof Me._final=="function"?(Qe.pendingcb++,Qe.finalCalled=!0,l.nextTick(q,Me,Qe)):(Qe.prefinished=!0,Me.emit("prefinish")))}function re(Me,Qe){var Ve=te(Qe);return Ve&&(se(Me,Qe),Qe.pendingcb===0&&(Qe.finished=!0,Me.emit("finish"))),Ve}function xe(Me,Qe,Ve){Qe.ending=!0,re(Me,Qe),Ve&&(Qe.finished?l.nextTick(Ve):Me.once("finish",Ve)),Qe.ended=!0,Me.writable=!1}function Oe(Me,Qe,Ve){var ut=Me.entry;for(Me.entry=null;ut;){var Fe=ut.callback;Qe.pendingcb--,Fe(Ve),ut=ut.next}Qe.corkedRequestsFree?Qe.corkedRequestsFree.next=Me:Qe.corkedRequestsFree=Me}Object.defineProperty(k.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Qe){if(!this._writableState)return;this._writableState.destroyed=Qe}}),k.prototype.destroy=T.destroy,k.prototype._undestroy=T.undestroy,k.prototype._destroy=function(Me,Qe){this.end(),Qe(Me)}}).call(this,R("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(R,D,n){"use strict";function y(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}var f=R("safe-buffer").Buffer,x=R("util");function v(m,p,d){m.copy(p,d)}D.exports=function(){function m(){y(this,m),this.head=null,this.tail=null,this.length=0}return m.prototype.push=function(d){var u={data:d,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length},m.prototype.unshift=function(d){var u={data:d,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length},m.prototype.shift=function(){if(this.length===0)return;var d=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,d},m.prototype.clear=function(){this.head=this.tail=null,this.length=0},m.prototype.join=function(d){if(this.length===0)return"";for(var u=this.head,s=""+u.data;u=u.next;)s+=d+u.data;return s},m.prototype.concat=function(d){if(this.length===0)return f.alloc(0);if(this.length===1)return this.head.data;for(var u=f.allocUnsafe(d>>>0),s=this.head,i=0;s;)v(s.data,u,i),i+=s.data.length,s=s.next;return u},m}(),x&&x.inspect&&x.inspect.custom&&(D.exports.prototype[x.inspect.custom]=function(){var m=x.inspect({length:this.length});return this.constructor.name+" "+m})},{"safe-buffer":228,util:71}],220:[function(R,D,n){"use strict";var y=R("process-nextick-args");function f(m,p){var d=this,u=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return u||s?(p?p(m):m&&(!this._writableState||!this._writableState.errorEmitted)&&y.nextTick(v,this,m),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(m||null,function(i){!p&&i?(y.nextTick(v,d,i),d._writableState&&(d._writableState.errorEmitted=!0)):p&&p(i)}),this)}function x(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function v(m,p){m.emit("error",p)}D.exports={destroy:f,undestroy:x}},{"process-nextick-args":207}],221:[function(R,D,n){"use strict";D.exports=R("events").EventEmitter},{events:192}],222:[function(R,D,n){D.exports=R("./readable").PassThrough},{"./readable":223}],223:[function(R,D,n){n=D.exports=R("./lib/_stream_readable.js"),n.Stream=n,n.Readable=n,n.Writable=R("./lib/_stream_writable.js"),n.Duplex=R("./lib/_stream_duplex.js"),n.Transform=R("./lib/_stream_transform.js"),n.PassThrough=R("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(R,D,n){D.exports=R("./readable").Transform},{"./readable":223}],225:[function(R,D,n){D.exports=R("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(R,D,n){var y=function(){return this}()||Function("return this")(),f=y.regeneratorRuntime&&Object.getOwnPropertyNames(y).indexOf("regeneratorRuntime")>=0,x=f&&y.regeneratorRuntime;if(y.regeneratorRuntime=void 0,D.exports=R("./runtime"),f)y.regeneratorRuntime=x;else try{delete y.regeneratorRuntime}catch(v){y.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(R,D,n){!function(y){"use strict";var f=Object.prototype,x=f.hasOwnProperty,v,m=typeof Symbol=="function"?Symbol:{},p=m.iterator||"@@iterator",d=m.asyncIterator||"@@asyncIterator",u=m.toStringTag||"@@toStringTag",s=typeof D=="object",i=y.regeneratorRuntime;if(i){s&&(D.exports=i);return}i=y.regeneratorRuntime=s?D.exports:{};function t(X,F,U,K){var z=F&&F.prototype instanceof h?F:h,V=Object.create(z.prototype),Q=new M(K||[]);return V._invoke=w(X,U,Q),V}i.wrap=t;function o(X,F,U){try{return{type:"normal",arg:X.call(F,U)}}catch(K){return{type:"throw",arg:K}}}var e="suspendedStart",l="suspendedYield",r="executing",a="completed",c={};function h(){}function g(){}function A(){}var b={};b[p]=function(){return this};var S=Object.getPrototypeOf,E=S&&S(S(j([])));E&&E!==f&&x.call(E,p)&&(b=E);var C=A.prototype=h.prototype=Object.create(b);g.prototype=C.constructor=A,A.constructor=g,A[u]=g.displayName="GeneratorFunction";function _(X){["next","throw","return"].forEach(function(F){X[F]=function(U){return this._invoke(F,U)}})}i.isGeneratorFunction=function(X){var F=typeof X=="function"&&X.constructor;return F?F===g||(F.displayName||F.name)==="GeneratorFunction":!1},i.mark=function(X){return Object.setPrototypeOf?Object.setPrototypeOf(X,A):(X.__proto__=A,u in X||(X[u]="GeneratorFunction")),X.prototype=Object.create(C),X},i.awrap=function(X){return{__await:X}};function T(X){function F(z,V,Q,G){var te=o(X[z],X,V);if(te.type==="throw")G(te.arg);else{var q=te.arg,se=q.value;return se&&typeof se=="object"&&x.call(se,"__await")?Promise.resolve(se.__await).then(function(re){F("next",re,Q,G)},function(re){F("throw",re,Q,G)}):Promise.resolve(se).then(function(re){q.value=re,Q(q)},G)}}var U;function K(z,V){function Q(){return new Promise(function(G,te){F(z,V,G,te)})}return U=U?U.then(Q,Q):Q()}this._invoke=K}_(T.prototype),T.prototype[d]=function(){return this},i.AsyncIterator=T,i.async=function(X,F,U,K){var z=new T(t(X,F,U,K));return i.isGeneratorFunction(F)?z:z.next().then(function(V){return V.done?V.value:z.next()})};function w(X,F,U){var K=e;return function(V,Q){if(K===r)throw new Error("Generator is already running");if(K===a){if(V==="throw")throw Q;return P()}for(U.method=V,U.arg=Q;;){var G=U.delegate;if(G){var te=O(G,U);if(te){if(te===c)continue;return te}}if(U.method==="next")U.sent=U._sent=U.arg;else if(U.method==="throw"){if(K===e)throw K=a,U.arg;U.dispatchException(U.arg)}else U.method==="return"&&U.abrupt("return",U.arg);K=r;var q=o(X,F,U);if(q.type==="normal"){if(K=U.done?a:l,q.arg===c)continue;return{value:q.arg,done:U.done}}else q.type==="throw"&&(K=a,U.method="throw",U.arg=q.arg)}}}function O(X,F){var U=X.iterator[F.method];if(U===v){if(F.delegate=null,F.method==="throw"){if(X.iterator.return&&(F.method="return",F.arg=v,O(X,F),F.method==="throw"))return c;F.method="throw",F.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var K=o(U,X.iterator,F.arg);if(K.type==="throw")return F.method="throw",F.arg=K.arg,F.delegate=null,c;var z=K.arg;if(!z)return F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,c;if(z.done)F[X.resultName]=z.value,F.next=X.nextLoc,F.method!=="return"&&(F.method="next",F.arg=v);else return z;return F.delegate=null,c}_(C),C[u]="Generator",C[p]=function(){return this},C.toString=function(){return"[object Generator]"};function I(X){var F={tryLoc:X[0]};1 in X&&(F.catchLoc=X[1]),2 in X&&(F.finallyLoc=X[2],F.afterLoc=X[3]),this.tryEntries.push(F)}function k(X){var F=X.completion||{};F.type="normal",delete F.arg,X.completion=F}function M(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(I,this),this.reset(!0)}i.keys=function(X){var F=[];for(var U in X)F.push(U);return F.reverse(),function K(){for(;F.length;){var z=F.pop();if(z in X)return K.value=z,K.done=!1,K}return K.done=!0,K}};function j(X){if(X){var F=X[p];if(F)return F.call(X);if(typeof X.next=="function")return X;if(!isNaN(X.length)){var U=-1,K=function z(){for(;++U<X.length;)if(x.call(X,U))return z.value=X[U],z.done=!1,z;return z.value=v,z.done=!0,z};return K.next=K}}return{next:P}}i.values=j;function P(){return{value:v,done:!0}}M.prototype={constructor:M,reset:function(F){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(k),!F)for(var U in this)U.charAt(0)==="t"&&x.call(this,U)&&!isNaN(+U.slice(1))&&(this[U]=v)},stop:function(){this.done=!0;var F=this.tryEntries[0],U=F.completion;if(U.type==="throw")throw U.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var U=this;function K(q,se){return Q.type="throw",Q.arg=F,U.next=q,se&&(U.method="next",U.arg=v),!!se}for(var z=this.tryEntries.length-1;z>=0;--z){var V=this.tryEntries[z],Q=V.completion;if(V.tryLoc==="root")return K("end");if(V.tryLoc<=this.prev){var G=x.call(V,"catchLoc"),te=x.call(V,"finallyLoc");if(G&&te){if(this.prev<V.catchLoc)return K(V.catchLoc,!0);if(this.prev<V.finallyLoc)return K(V.finallyLoc)}else if(G){if(this.prev<V.catchLoc)return K(V.catchLoc,!0)}else if(te){if(this.prev<V.finallyLoc)return K(V.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(F,U){for(var K=this.tryEntries.length-1;K>=0;--K){var z=this.tryEntries[K];if(z.tryLoc<=this.prev&&x.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var V=z;break}}V&&(F==="break"||F==="continue")&&V.tryLoc<=U&&U<=V.finallyLoc&&(V=null);var Q=V?V.completion:{};return Q.type=F,Q.arg=U,V?(this.method="next",this.next=V.finallyLoc,c):this.complete(Q)},complete:function(F,U){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&U&&(this.next=U),c},finish:function(F){for(var U=this.tryEntries.length-1;U>=0;--U){var K=this.tryEntries[U];if(K.finallyLoc===F)return this.complete(K.completion,K.afterLoc),k(K),c}},catch:function(F){for(var U=this.tryEntries.length-1;U>=0;--U){var K=this.tryEntries[U];if(K.tryLoc===F){var z=K.completion;if(z.type==="throw"){var V=z.arg;k(K)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(F,U,K){return this.delegate={iterator:j(F),resultName:U,nextLoc:K},this.method==="next"&&(this.arg=v),c}}}(function(){return this}()||Function("return this")())},{}],228:[function(R,D,n){var y=R("buffer"),f=y.Buffer;function x(m,p){for(var d in m)p[d]=m[d]}f.from&&f.alloc&&f.allocUnsafe&&f.allocUnsafeSlow?D.exports=y:(x(y,n),n.Buffer=v);function v(m,p,d){return f(m,p,d)}x(f,v),v.from=function(m,p,d){if(typeof m=="number")throw new TypeError("Argument must not be a number");return f(m,p,d)},v.alloc=function(m,p,d){if(typeof m!="number")throw new TypeError("Argument must be a number");var u=f(m);return p!==void 0?typeof d=="string"?u.fill(p,d):u.fill(p):u.fill(0),u},v.allocUnsafe=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return f(m)},v.allocUnsafeSlow=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return y.SlowBuffer(m)}},{buffer:73}],229:[function(R,D,n){(function(y){"use strict";var f=R("babel-runtime/core-js/string/from-code-point"),x=l(f),v=R("babel-runtime/core-js/json/stringify"),m=l(v),p=R("babel-runtime/helpers/typeof"),d=l(p),u=R("babel-runtime/core-js/object/define-property"),s=l(u),i=R("babel-runtime/core-js/object/keys"),t=l(i),o=R("babel-runtime/core-js/object/create"),e=l(o);function l(r){return r&&r.__esModule?r:{default:r}}(function(r){r.parser=function(Y,$){return new c(Y,$)},r.SAXParser=c,r.SAXStream=C,r.createStream=E,r.MAX_BUFFER_LENGTH=64*1024;var a=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];r.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function c(Y,$){if(!(this instanceof c))return new c(Y,$);var de=this;g(de),de.q=de.c="",de.bufferCheckPosition=r.MAX_BUFFER_LENGTH,de.opt=$||{},de.opt.lowercase=de.opt.lowercase||de.opt.lowercasetags,de.looseCase=de.opt.lowercase?"toLowerCase":"toUpperCase",de.tags=[],de.closed=de.closedRoot=de.sawRoot=!1,de.tag=de.error=null,de.strict=!!Y,de.noscript=!!(Y||de.opt.noscript),de.state=V.BEGIN,de.strictEntities=de.opt.strictEntities,de.ENTITIES=de.strictEntities?(0,e.default)(r.XML_ENTITIES):(0,e.default)(r.ENTITIES),de.attribList=[],de.opt.xmlns&&(de.ns=(0,e.default)(I)),de.trackPosition=de.opt.position!==!1,de.trackPosition&&(de.position=de.line=de.column=0),G(de,"onready")}e.default||(Object.create=function(Y){function $(){}$.prototype=Y;var de=new $;return de}),t.default||(Object.keys=function(Y){var $=[];for(var de in Y)Y.hasOwnProperty(de)&&$.push(de);return $});function h(Y){for(var $=Math.max(r.MAX_BUFFER_LENGTH,10),de=0,be=0,Ce=a.length;be<Ce;be++){var Be=Y[a[be]].length;if(Be>$)switch(a[be]){case"textNode":q(Y);break;case"cdata":te(Y,"oncdata",Y.cdata),Y.cdata="";break;case"script":te(Y,"onscript",Y.script),Y.script="";break;default:re(Y,"Max buffer length exceeded: "+a[be])}de=Math.max(de,Be)}var fe=r.MAX_BUFFER_LENGTH-de;Y.bufferCheckPosition=fe+Y.position}function g(Y){for(var $=0,de=a.length;$<de;$++)Y[a[$]]=""}function A(Y){q(Y),Y.cdata!==""&&(te(Y,"oncdata",Y.cdata),Y.cdata=""),Y.script!==""&&(te(Y,"onscript",Y.script),Y.script="")}c.prototype={end:function(){xe(this)},write:J,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){A(this)}};var b;try{b=R("stream").Stream}catch(Y){b=function(){}}var S=r.EVENTS.filter(function(Y){return Y!=="error"&&Y!=="end"});function E(Y,$){return new C(Y,$)}function C(Y,$){if(!(this instanceof C))return new C(Y,$);b.apply(this),this._parser=new c(Y,$),this.writable=!0,this.readable=!0;var de=this;this._parser.onend=function(){de.emit("end")},this._parser.onerror=function(be){de.emit("error",be),de._parser.error=null},this._decoder=null,S.forEach(function(be){(0,s.default)(de,"on"+be,{get:function(){return de._parser["on"+be]},set:function(Be){if(!Be)return de.removeAllListeners(be),de._parser["on"+be]=Be,Be;de.on(be,Be)},enumerable:!0,configurable:!1})})}C.prototype=(0,e.default)(b.prototype,{constructor:{value:C}}),C.prototype.write=function(Y){if(typeof y=="function"&&typeof y.isBuffer=="function"&&y.isBuffer(Y)){if(!this._decoder){var $=R("string_decoder").StringDecoder;this._decoder=new $("utf8")}Y=this._decoder.write(Y)}return this._parser.write(Y.toString()),this.emit("data",Y),!0},C.prototype.end=function(Y){return Y&&Y.length&&this.write(Y),this._parser.end(),!0},C.prototype.on=function(Y,$){var de=this;return!de._parser["on"+Y]&&S.indexOf(Y)!==-1&&(de._parser["on"+Y]=function(){var be=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);be.splice(0,0,Y),de.emit.apply(de,be)}),b.prototype.on.call(de,Y,$)};var _="[CDATA[",T="DOCTYPE",w="http://www.w3.org/XML/1998/namespace",O="http://www.w3.org/2000/xmlns/",I={xml:w,xmlns:O},k=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,M=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,j=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,P=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function X(Y){return Y===" "||Y===`
|
|
|
`||Y==="\r"||Y===" "}function F(Y){return Y==='"'||Y==="'"}function U(Y){return Y===">"||X(Y)}function K(Y,$){return Y.test($)}function z(Y,$){return!K(Y,$)}var V=0;r.STATE={BEGIN:V++,BEGIN_WHITESPACE:V++,TEXT:V++,TEXT_ENTITY:V++,OPEN_WAKA:V++,SGML_DECL:V++,SGML_DECL_QUOTED:V++,DOCTYPE:V++,DOCTYPE_QUOTED:V++,DOCTYPE_DTD:V++,DOCTYPE_DTD_QUOTED:V++,COMMENT_STARTING:V++,COMMENT:V++,COMMENT_ENDING:V++,COMMENT_ENDED:V++,CDATA:V++,CDATA_ENDING:V++,CDATA_ENDING_2:V++,PROC_INST:V++,PROC_INST_BODY:V++,PROC_INST_ENDING:V++,OPEN_TAG:V++,OPEN_TAG_SLASH:V++,ATTRIB:V++,ATTRIB_NAME:V++,ATTRIB_NAME_SAW_WHITE:V++,ATTRIB_VALUE:V++,ATTRIB_VALUE_QUOTED:V++,ATTRIB_VALUE_CLOSED:V++,ATTRIB_VALUE_UNQUOTED:V++,ATTRIB_VALUE_ENTITY_Q:V++,ATTRIB_VALUE_ENTITY_U:V++,CLOSE_TAG:V++,CLOSE_TAG_SAW_WHITE:V++,SCRIPT:V++,SCRIPT_ENDING:V++},r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},r.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,t.default)(r.ENTITIES).forEach(function(Y){var $=r.ENTITIES[Y],de=typeof $=="number"?String.fromCharCode($):$;r.ENTITIES[Y]=de});for(var Q in r.STATE)r.STATE[r.STATE[Q]]=Q;V=r.STATE;function G(Y,$,de){Y[$]&&Y[$](de)}function te(Y,$,de){Y.textNode&&q(Y),G(Y,$,de)}function q(Y){Y.textNode=se(Y.opt,Y.textNode),Y.textNode&&G(Y,"ontext",Y.textNode),Y.textNode=""}function se(Y,$){return Y.trim&&($=$.trim()),Y.normalize&&($=$.replace(/\s+/g," ")),$}function re(Y,$){return q(Y),Y.trackPosition&&($+=`
|
|
|
Line: `+Y.line+`
|
|
|
Column: `+Y.column+`
|
|
|
Char: `+Y.c),$=new Error($),Y.error=$,G(Y,"onerror",$),Y}function xe(Y){return Y.sawRoot&&!Y.closedRoot&&Oe(Y,"Unclosed root tag"),Y.state!==V.BEGIN&&Y.state!==V.BEGIN_WHITESPACE&&Y.state!==V.TEXT&&re(Y,"Unexpected end"),q(Y),Y.c="",Y.closed=!0,G(Y,"onend"),c.call(Y,Y.strict,Y.opt),Y}function Oe(Y,$){if((typeof Y=="undefined"?"undefined":(0,d.default)(Y))!=="object"||!(Y instanceof c))throw new Error("bad call to strictFail");Y.strict&&re(Y,$)}function Me(Y){Y.strict||(Y.tagName=Y.tagName[Y.looseCase]());var $=Y.tags[Y.tags.length-1]||Y,de=Y.tag={name:Y.tagName,attributes:{}};Y.opt.xmlns&&(de.ns=$.ns),Y.attribList.length=0,te(Y,"onopentagstart",de)}function Qe(Y,$){var de=Y.indexOf(":"),be=de<0?["",Y]:Y.split(":"),Ce=be[0],Be=be[1];return $&&Y==="xmlns"&&(Ce="xmlns",Be=""),{prefix:Ce,local:Be}}function Ve(Y){if(Y.strict||(Y.attribName=Y.attribName[Y.looseCase]()),Y.attribList.indexOf(Y.attribName)!==-1||Y.tag.attributes.hasOwnProperty(Y.attribName)){Y.attribName=Y.attribValue="";return}if(Y.opt.xmlns){var $=Qe(Y.attribName,!0),de=$.prefix,be=$.local;if(de==="xmlns")if(be==="xml"&&Y.attribValue!==w)Oe(Y,"xml: prefix must be bound to "+w+`
|
|
|
Actual: `+Y.attribValue);else if(be==="xmlns"&&Y.attribValue!==O)Oe(Y,"xmlns: prefix must be bound to "+O+`
|
|
|
Actual: `+Y.attribValue);else{var Ce=Y.tag,Be=Y.tags[Y.tags.length-1]||Y;Ce.ns===Be.ns&&(Ce.ns=(0,e.default)(Be.ns)),Ce.ns[be]=Y.attribValue}Y.attribList.push([Y.attribName,Y.attribValue])}else Y.tag.attributes[Y.attribName]=Y.attribValue,te(Y,"onattribute",{name:Y.attribName,value:Y.attribValue});Y.attribName=Y.attribValue=""}function ut(Y,$){if(Y.opt.xmlns){var de=Y.tag,be=Qe(Y.tagName);de.prefix=be.prefix,de.local=be.local,de.uri=de.ns[be.prefix]||"",de.prefix&&!de.uri&&(Oe(Y,"Unbound namespace prefix: "+(0,m.default)(Y.tagName)),de.uri=be.prefix);var Ce=Y.tags[Y.tags.length-1]||Y;de.ns&&Ce.ns!==de.ns&&(0,t.default)(de.ns).forEach(function(Kt){te(Y,"onopennamespace",{prefix:Kt,uri:de.ns[Kt]})});for(var Be=0,fe=Y.attribList.length;Be<fe;Be++){var we=Y.attribList[Be],Re=we[0],rt=we[1],St=Qe(Re,!0),ft=St.prefix,He=St.local,er=ft===""?"":de.ns[ft]||"",ct={name:Re,value:rt,prefix:ft,local:He,uri:er};ft&&ft!=="xmlns"&&!er&&(Oe(Y,"Unbound namespace prefix: "+(0,m.default)(ft)),ct.uri=ft),Y.tag.attributes[Re]=ct,te(Y,"onattribute",ct)}Y.attribList.length=0}Y.tag.isSelfClosing=!!$,Y.sawRoot=!0,Y.tags.push(Y.tag),te(Y,"onopentag",Y.tag),$||(!Y.noscript&&Y.tagName.toLowerCase()==="script"?Y.state=V.SCRIPT:Y.state=V.TEXT,Y.tag=null,Y.tagName=""),Y.attribName=Y.attribValue="",Y.attribList.length=0}function Fe(Y){if(!Y.tagName){Oe(Y,"Weird empty close tag."),Y.textNode+="</>",Y.state=V.TEXT;return}if(Y.script){if(Y.tagName!=="script"){Y.script+="</"+Y.tagName+">",Y.tagName="",Y.state=V.SCRIPT;return}te(Y,"onscript",Y.script),Y.script=""}var $=Y.tags.length,de=Y.tagName;Y.strict||(de=de[Y.looseCase]());for(var be=de;$--;){var Ce=Y.tags[$];if(Ce.name!==be)Oe(Y,"Unexpected close tag");else break}if($<0){Oe(Y,"Unmatched closing tag: "+Y.tagName),Y.textNode+="</"+Y.tagName+">",Y.state=V.TEXT;return}Y.tagName=de;for(var Be=Y.tags.length;Be-- >$;){var fe=Y.tag=Y.tags.pop();Y.tagName=Y.tag.name,te(Y,"onclosetag",Y.tagName);var we={};for(var Re in fe.ns)we[Re]=fe.ns[Re];var rt=Y.tags[Y.tags.length-1]||Y;Y.opt.xmlns&&fe.ns!==rt.ns&&(0,t.default)(fe.ns).forEach(function(St){var ft=fe.ns[St];te(Y,"onclosenamespace",{prefix:St,uri:ft})})}$===0&&(Y.closedRoot=!0),Y.tagName=Y.attribValue=Y.attribName="",Y.attribList.length=0,Y.state=V.TEXT}function ue(Y){var $=Y.entity,de=$.toLowerCase(),be,Ce="";return Y.ENTITIES[$]?Y.ENTITIES[$]:Y.ENTITIES[de]?Y.ENTITIES[de]:($=de,$.charAt(0)==="#"&&($.charAt(1)==="x"?($=$.slice(2),be=parseInt($,16),Ce=be.toString(16)):($=$.slice(1),be=parseInt($,10),Ce=be.toString(10))),$=$.replace(/^0+/,""),isNaN(be)||Ce.toLowerCase()!==$?(Oe(Y,"Invalid character entity"),"&"+Y.entity+";"):(0,x.default)(be))}function et(Y,$){$==="<"?(Y.state=V.OPEN_WAKA,Y.startTagPosition=Y.position):X($)||(Oe(Y,"Non-whitespace before first tag."),Y.textNode=$,Y.state=V.TEXT)}function he(Y,$){var de="";return $<Y.length&&(de=Y.charAt($)),de}function J(Y){var $=this;if(this.error)throw this.error;if($.closed)return re($,"Cannot write after close. Assign an onready handler.");if(Y===null)return xe($);(typeof Y=="undefined"?"undefined":(0,d.default)(Y))==="object"&&(Y=Y.toString());for(var de=0,be="";!(be=he(Y,de++),$.c=be,!be);){$.trackPosition&&($.position++,be===`
|
|
|
`?($.line++,$.column=0):$.column++);switch($.state){case V.BEGIN:if($.state=V.BEGIN_WHITESPACE,be==="\uFEFF")continue;et($,be);continue;case V.BEGIN_WHITESPACE:et($,be);continue;case V.TEXT:if($.sawRoot&&!$.closedRoot){for(var Ce=de-1;be&&be!=="<"&&be!=="&";)be=he(Y,de++),be&&$.trackPosition&&($.position++,be===`
|
|
|
`?($.line++,$.column=0):$.column++);$.textNode+=Y.substring(Ce,de-1)}be==="<"&&!($.sawRoot&&$.closedRoot&&!$.strict)?($.state=V.OPEN_WAKA,$.startTagPosition=$.position):(!X(be)&&(!$.sawRoot||$.closedRoot)&&Oe($,"Text data outside of root node."),be==="&"?$.state=V.TEXT_ENTITY:$.textNode+=be);continue;case V.SCRIPT:be==="<"?$.state=V.SCRIPT_ENDING:$.script+=be;continue;case V.SCRIPT_ENDING:be==="/"?$.state=V.CLOSE_TAG:($.script+="<"+be,$.state=V.SCRIPT);continue;case V.OPEN_WAKA:if(be==="!")$.state=V.SGML_DECL,$.sgmlDecl="";else if(!X(be))if(K(k,be))$.state=V.OPEN_TAG,$.tagName=be;else if(be==="/")$.state=V.CLOSE_TAG,$.tagName="";else if(be==="?")$.state=V.PROC_INST,$.procInstName=$.procInstBody="";else{if(Oe($,"Unencoded <"),$.startTagPosition+1<$.position){var Be=$.position-$.startTagPosition;be=new Array(Be).join(" ")+be}$.textNode+="<"+be,$.state=V.TEXT}continue;case V.SGML_DECL:($.sgmlDecl+be).toUpperCase()===_?(te($,"onopencdata"),$.state=V.CDATA,$.sgmlDecl="",$.cdata=""):$.sgmlDecl+be==="--"?($.state=V.COMMENT,$.comment="",$.sgmlDecl=""):($.sgmlDecl+be).toUpperCase()===T?($.state=V.DOCTYPE,($.doctype||$.sawRoot)&&Oe($,"Inappropriately located doctype declaration"),$.doctype="",$.sgmlDecl=""):be===">"?(te($,"onsgmldeclaration",$.sgmlDecl),$.sgmlDecl="",$.state=V.TEXT):(F(be)&&($.state=V.SGML_DECL_QUOTED),$.sgmlDecl+=be);continue;case V.SGML_DECL_QUOTED:be===$.q&&($.state=V.SGML_DECL,$.q=""),$.sgmlDecl+=be;continue;case V.DOCTYPE:be===">"?($.state=V.TEXT,te($,"ondoctype",$.doctype),$.doctype=!0):($.doctype+=be,be==="["?$.state=V.DOCTYPE_DTD:F(be)&&($.state=V.DOCTYPE_QUOTED,$.q=be));continue;case V.DOCTYPE_QUOTED:$.doctype+=be,be===$.q&&($.q="",$.state=V.DOCTYPE);continue;case V.DOCTYPE_DTD:$.doctype+=be,be==="]"?$.state=V.DOCTYPE:F(be)&&($.state=V.DOCTYPE_DTD_QUOTED,$.q=be);continue;case V.DOCTYPE_DTD_QUOTED:$.doctype+=be,be===$.q&&($.state=V.DOCTYPE_DTD,$.q="");continue;case V.COMMENT:be==="-"?$.state=V.COMMENT_ENDING:$.comment+=be;continue;case V.COMMENT_ENDING:be==="-"?($.state=V.COMMENT_ENDED,$.comment=se($.opt,$.comment),$.comment&&te($,"oncomment",$.comment),$.comment=""):($.comment+="-"+be,$.state=V.COMMENT);continue;case V.COMMENT_ENDED:be!==">"?(Oe($,"Malformed comment"),$.comment+="--"+be,$.state=V.COMMENT):$.state=V.TEXT;continue;case V.CDATA:be==="]"?$.state=V.CDATA_ENDING:$.cdata+=be;continue;case V.CDATA_ENDING:be==="]"?$.state=V.CDATA_ENDING_2:($.cdata+="]"+be,$.state=V.CDATA);continue;case V.CDATA_ENDING_2:be===">"?($.cdata&&te($,"oncdata",$.cdata),te($,"onclosecdata"),$.cdata="",$.state=V.TEXT):be==="]"?$.cdata+="]":($.cdata+="]]"+be,$.state=V.CDATA);continue;case V.PROC_INST:be==="?"?$.state=V.PROC_INST_ENDING:X(be)?$.state=V.PROC_INST_BODY:$.procInstName+=be;continue;case V.PROC_INST_BODY:if(!$.procInstBody&&X(be))continue;be==="?"?$.state=V.PROC_INST_ENDING:$.procInstBody+=be;continue;case V.PROC_INST_ENDING:be===">"?(te($,"onprocessinginstruction",{name:$.procInstName,body:$.procInstBody}),$.procInstName=$.procInstBody="",$.state=V.TEXT):($.procInstBody+="?"+be,$.state=V.PROC_INST_BODY);continue;case V.OPEN_TAG:K(M,be)?$.tagName+=be:(Me($),be===">"?ut($):be==="/"?$.state=V.OPEN_TAG_SLASH:(X(be)||Oe($,"Invalid character in tag name"),$.state=V.ATTRIB));continue;case V.OPEN_TAG_SLASH:be===">"?(ut($,!0),Fe($)):(Oe($,"Forward-slash in opening tag not followed by >"),$.state=V.ATTRIB);continue;case V.ATTRIB:if(X(be))continue;be===">"?ut($):be==="/"?$.state=V.OPEN_TAG_SLASH:K(k,be)?($.attribName=be,$.attribValue="",$.state=V.ATTRIB_NAME):Oe($,"Invalid attribute name");continue;case V.ATTRIB_NAME:be==="="?$.state=V.ATTRIB_VALUE:be===">"?(Oe($,"Attribute without value"),$.attribValue=$.attribName,Ve($),ut($)):X(be)?$.state=V.ATTRIB_NAME_SAW_WHITE:K(M,be)?$.attribName+=be:Oe($,"Invalid attribute name");continue;case V.ATTRIB_NAME_SAW_WHITE:if(be==="=")$.state=V.ATTRIB_VALUE;else{if(X(be))continue;Oe($,"Attribute without value"),$.tag.attributes[$.attribName]="",$.attribValue="",te($,"onattribute",{name:$.attribName,value:""}),$.attribName="",be===">"?ut($):K(k,be)?($.attribName=be,$.state=V.ATTRIB_NAME):(Oe($,"Invalid attribute name"),$.state=V.ATTRIB)}continue;case V.ATTRIB_VALUE:if(X(be))continue;F(be)?($.q=be,$.state=V.ATTRIB_VALUE_QUOTED):(Oe($,"Unquoted attribute value"),$.state=V.ATTRIB_VALUE_UNQUOTED,$.attribValue=be);continue;case V.ATTRIB_VALUE_QUOTED:if(be!==$.q){be==="&"?$.state=V.ATTRIB_VALUE_ENTITY_Q:$.attribValue+=be;continue}Ve($),$.q="",$.state=V.ATTRIB_VALUE_CLOSED;continue;case V.ATTRIB_VALUE_CLOSED:X(be)?$.state=V.ATTRIB:be===">"?ut($):be==="/"?$.state=V.OPEN_TAG_SLASH:K(k,be)?(Oe($,"No whitespace between attributes"),$.attribName=be,$.attribValue="",$.state=V.ATTRIB_NAME):Oe($,"Invalid attribute name");continue;case V.ATTRIB_VALUE_UNQUOTED:if(!U(be)){be==="&"?$.state=V.ATTRIB_VALUE_ENTITY_U:$.attribValue+=be;continue}Ve($),be===">"?ut($):$.state=V.ATTRIB;continue;case V.CLOSE_TAG:if($.tagName)be===">"?Fe($):K(M,be)?$.tagName+=be:$.script?($.script+="</"+$.tagName,$.tagName="",$.state=V.SCRIPT):(X(be)||Oe($,"Invalid tagname in closing tag"),$.state=V.CLOSE_TAG_SAW_WHITE);else{if(X(be))continue;z(k,be)?$.script?($.script+="</"+be,$.state=V.SCRIPT):Oe($,"Invalid tagname in closing tag."):$.tagName=be}continue;case V.CLOSE_TAG_SAW_WHITE:if(X(be))continue;be===">"?Fe($):Oe($,"Invalid characters in closing tag");continue;case V.TEXT_ENTITY:case V.ATTRIB_VALUE_ENTITY_Q:case V.ATTRIB_VALUE_ENTITY_U:var fe,we;switch($.state){case V.TEXT_ENTITY:fe=V.TEXT,we="textNode";break;case V.ATTRIB_VALUE_ENTITY_Q:fe=V.ATTRIB_VALUE_QUOTED,we="attribValue";break;case V.ATTRIB_VALUE_ENTITY_U:fe=V.ATTRIB_VALUE_UNQUOTED,we="attribValue";break}be===";"?($[we]+=ue($),$.entity="",$.state=fe):K($.entity.length?P:j,be)?$.entity+=be:(Oe($,"Invalid character in entity name"),$[we]+="&"+$.entity+be,$.entity="",$.state=fe);continue;default:throw new Error($,"Unknown state: "+$.state)}}return $.position>=$.bufferCheckPosition&&h($),$}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */x.default||function(){var Y=String.fromCharCode,$=Math.floor,de=function(){var Ce=16384,Be=[],fe,we,Re=-1,rt=arguments.length;if(!rt)return"";for(var St="";++Re<rt;){var ft=Number(arguments[Re]);if(!isFinite(ft)||ft<0||ft>1114111||$(ft)!==ft)throw RangeError("Invalid code point: "+ft);ft<=65535?Be.push(ft):(ft-=65536,fe=(ft>>10)+55296,we=ft%1024+56320,Be.push(fe,we)),(Re+1===rt||Be.length>Ce)&&(St+=Y.apply(null,Be),Be.length=0)}return St};s.default?Object.defineProperty(String,"fromCodePoint",{value:de,configurable:!0,writable:!0}):String.fromCodePoint=de}()})(typeof n=="undefined"?(void 0).sax={}:n)}).call(this,R("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(R,D,n){D.exports=x;var y=R("events").EventEmitter,f=R("inherits");f(x,y),x.Readable=R("readable-stream/readable.js"),x.Writable=R("readable-stream/writable.js"),x.Duplex=R("readable-stream/duplex.js"),x.Transform=R("readable-stream/transform.js"),x.PassThrough=R("readable-stream/passthrough.js"),x.Stream=x;function x(){y.call(this)}x.prototype.pipe=function(v,m){var p=this;function d(l){v.writable&&(v.write(l)===!1&&p.pause&&p.pause())}p.on("data",d);function u(){p.readable&&p.resume&&p.resume()}v.on("drain",u),!v._isStdio&&(!m||m.end!==!1)&&(p.on("end",i),p.on("close",t));var s=!1;function i(){if(s)return;s=!0,v.end()}function t(){if(s)return;s=!0,typeof v.destroy=="function"&&v.destroy()}function o(l){if(e(),y.listenerCount(this,"error")===0)throw l}p.on("error",o),v.on("error",o);function e(){p.removeListener("data",d),v.removeListener("drain",u),p.removeListener("end",i),p.removeListener("close",t),p.removeListener("error",o),v.removeListener("error",o),p.removeListener("end",e),p.removeListener("close",e),v.removeListener("close",e)}return p.on("end",e),p.on("close",e),v.on("close",e),v.emit("pipe",p),v}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(R,D,n){(function(y){var f=R("./lib/request"),x=R("./lib/response"),v=R("xtend"),m=R("builtin-status-codes"),p=R("url"),d=n;d.request=function(u,s){typeof u=="string"?u=p.parse(u):u=v(u);var i=y.location.protocol.search(/^https?:$/)===-1?"http:":"",t=u.protocol||i,o=u.hostname||u.host,e=u.port,l=u.path||"/";o&&o.indexOf(":")!==-1&&(o="["+o+"]"),u.url=(o?t+"//"+o:"")+(e?":"+e:"")+l,u.method=(u.method||"GET").toUpperCase(),u.headers=u.headers||{};var r=new f(u);return s&&r.on("response",s),r},d.get=function(s,i){var t=d.request(s,i);return t.end(),t},d.ClientRequest=f,d.IncomingMessage=x.IncomingMessage,d.Agent=function(){},d.Agent.defaultMaxSockets=4,d.globalAgent=new d.Agent,d.STATUS_CODES=m,d.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(R,D,n){(function(y){"use strict";n.fetch=d(y.fetch)&&d(y.ReadableStream),n.writableStream=d(y.WritableStream),n.abortController=d(y.AbortController),n.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),n.blobConstructor=!0}catch(u){}var f;function x(){if(f!==void 0)return f;if(y.XMLHttpRequest){f=new y.XMLHttpRequest;try{f.open("GET",y.XDomainRequest?"/":"https://example.com")}catch(u){f=null}}else f=null;return f}function v(u){var s=x();if(!s)return!1;try{return s.responseType=u,s.responseType===u}catch(i){}return!1}var m=typeof y.ArrayBuffer!="undefined",p=m&&d(y.ArrayBuffer.prototype.slice);n.arraybuffer=n.fetch||m&&v("arraybuffer"),n.msstream=!n.fetch&&p&&v("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&m&&v("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||(x()?d(x().overrideMimeType):!1),n.vbArray=d(y.VBArray);function d(u){return typeof u=="function"}f=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(R,D,n){(function(y,f,x){"use strict";var v=R("babel-runtime/core-js/object/keys"),m=p(v);function p(h){return h&&h.__esModule?h:{default:h}}var d=R("./capability"),u=R("inherits"),s=R("./response"),i=R("readable-stream"),t=R("to-arraybuffer"),o=s.IncomingMessage,e=s.readyStates;function l(h,g){return d.fetch&&g?"fetch":d.mozchunkedarraybuffer?"moz-chunked-arraybuffer":d.msstream?"ms-stream":d.arraybuffer&&h?"arraybuffer":d.vbArray&&h?"text:vbarray":"text"}var r=D.exports=function(h){var g=this;i.Writable.call(g),g._opts=h,g._body=[],g._headers={},h.auth&&g.setHeader("Authorization","Basic "+new x(h.auth).toString("base64")),(0,m.default)(h.headers).forEach(function(S){g.setHeader(S,h.headers[S])});var A,b=!0;if(h.mode==="disable-fetch"||"requestTimeout"in h&&!d.abortController)b=!1,A=!0;else if(h.mode==="prefer-streaming")A=!1;else if(h.mode==="allow-wrong-content-type")A=!d.overrideMimeType;else if(!h.mode||h.mode==="default"||h.mode==="prefer-fast")A=!0;else throw new Error("Invalid value for opts.mode");g._mode=l(A,b),g._fetchTimer=null,g.on("finish",function(){g._onFinish()})};u(r,i.Writable),r.prototype.setHeader=function(h,g){var A=this,b=h.toLowerCase();if(c.indexOf(b)!==-1)return;A._headers[b]={name:h,value:g}},r.prototype.getHeader=function(h){var g=this._headers[h.toLowerCase()];return g?g.value:null},r.prototype.removeHeader=function(h){var g=this;delete g._headers[h.toLowerCase()]},r.prototype._onFinish=function(){var h=this;if(h._destroyed)return;var g=h._opts,A=h._headers,b=null;g.method!=="GET"&&g.method!=="HEAD"&&(d.arraybuffer?b=t(x.concat(h._body)):d.blobConstructor?b=new f.Blob(h._body.map(function(w){return t(w)}),{type:(A["content-type"]||{}).value||""}):b=x.concat(h._body).toString());var S=[];if((0,m.default)(A).forEach(function(w){var O=A[w].name,I=A[w].value;Array.isArray(I)?I.forEach(function(k){S.push([O,k])}):S.push([O,I])}),h._mode==="fetch"){var E=null,C=null;if(d.abortController){var _=new AbortController;E=_.signal,h._fetchAbortController=_,"requestTimeout"in g&&g.requestTimeout!==0&&(h._fetchTimer=f.setTimeout(function(){h.emit("requestTimeout"),h._fetchAbortController&&h._fetchAbortController.abort()},g.requestTimeout))}f.fetch(h._opts.url,{method:h._opts.method,headers:S,body:b||void 0,mode:"cors",credentials:g.withCredentials?"include":"same-origin",signal:E}).then(function(w){h._fetchResponse=w,h._connect()},function(w){f.clearTimeout(h._fetchTimer),h._destroyed||h.emit("error",w)})}else{var T=h._xhr=new f.XMLHttpRequest;try{T.open(h._opts.method,h._opts.url,!0)}catch(w){y.nextTick(function(){h.emit("error",w)});return}"responseType"in T&&(T.responseType=h._mode.split(":")[0]),"withCredentials"in T&&(T.withCredentials=!!g.withCredentials),h._mode==="text"&&"overrideMimeType"in T&&T.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in g&&(T.timeout=g.requestTimeout,T.ontimeout=function(){h.emit("requestTimeout")}),S.forEach(function(w){T.setRequestHeader(w[0],w[1])}),h._response=null,T.onreadystatechange=function(){switch(T.readyState){case e.LOADING:case e.DONE:h._onXHRProgress();break}},h._mode==="moz-chunked-arraybuffer"&&(T.onprogress=function(){h._onXHRProgress()}),T.onerror=function(){if(h._destroyed)return;h.emit("error",new Error("XHR error"))};try{T.send(b)}catch(w){y.nextTick(function(){h.emit("error",w)});return}}};function a(h){try{var g=h.status;return g!==null&&g!==0}catch(A){return!1}}r.prototype._onXHRProgress=function(){var h=this;if(!a(h._xhr)||h._destroyed)return;h._response||h._connect(),h._response._onXHRProgress()},r.prototype._connect=function(){var h=this;if(h._destroyed)return;h._response=new o(h._xhr,h._fetchResponse,h._mode,h._fetchTimer),h._response.on("error",function(g){h.emit("error",g)}),h.emit("response",h._response)},r.prototype._write=function(h,g,A){var b=this;b._body.push(h),A()},r.prototype.abort=r.prototype.destroy=function(){var h=this;h._destroyed=!0,f.clearTimeout(h._fetchTimer),h._response&&(h._response._destroyed=!0),h._xhr?h._xhr.abort():h._fetchAbortController&&h._fetchAbortController.abort()},r.prototype.end=function(h,g,A){var b=this;typeof h=="function"&&(A=h,h=void 0),i.Writable.prototype.end.call(b,h,g,A)},r.prototype.flushHeaders=function(){},r.prototype.setTimeout=function(){},r.prototype.setNoDelay=function(){},r.prototype.setSocketKeepAlive=function(){};var c=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,R("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},R("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(R,D,n){(function(y,f,x){"use strict";var v=R("babel-runtime/core-js/promise"),m=p(v);function p(o){return o&&o.__esModule?o:{default:o}}var d=R("./capability"),u=R("inherits"),s=R("readable-stream"),i=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=n.IncomingMessage=function(o,e,l,r){var a=this;if(s.Readable.call(a),a._mode=l,a.headers={},a.rawHeaders=[],a.trailers={},a.rawTrailers=[],a.on("end",function(){y.nextTick(function(){a.emit("close")})}),l==="fetch"){var c=function E(){g.read().then(function(C){if(a._destroyed)return;if(C.done){f.clearTimeout(r),a.push(null);return}a.push(new x(C.value)),E()}).catch(function(C){f.clearTimeout(r),a._destroyed||a.emit("error",C)})};if(a._fetchResponse=e,a.url=e.url,a.statusCode=e.status,a.statusMessage=e.statusText,e.headers.forEach(function(E,C){a.headers[C.toLowerCase()]=E,a.rawHeaders.push(C,E)}),d.writableStream){var h=new WritableStream({write:function(C){return new m.default(function(_,T){a._destroyed?T():a.push(new x(C))?_():a._resumeFetch=_})},close:function(){f.clearTimeout(r),a._destroyed||a.push(null)},abort:function(C){a._destroyed||a.emit("error",C)}});try{e.body.pipeTo(h).catch(function(E){f.clearTimeout(r),a._destroyed||a.emit("error",E)});return}catch(E){}}var g=e.body.getReader();c()}else{a._xhr=o,a._pos=0,a.url=o.responseURL,a.statusCode=o.status,a.statusMessage=o.statusText;var A=o.getAllResponseHeaders().split(/\r?\n/);if(A.forEach(function(E){var C=E.match(/^([^:]+):\s*(.*)/);if(C){var _=C[1].toLowerCase();_==="set-cookie"?(a.headers[_]===void 0&&(a.headers[_]=[]),a.headers[_].push(C[2])):a.headers[_]!==void 0?a.headers[_]+=", "+C[2]:a.headers[_]=C[2],a.rawHeaders.push(C[1],C[2])}}),a._charset="x-user-defined",!d.overrideMimeType){var b=a.rawHeaders["mime-type"];if(b){var S=b.match(/;\s*charset=([^;])(;|$)/);S&&(a._charset=S[1].toLowerCase())}a._charset||(a._charset="utf-8")}}};u(t,s.Readable),t.prototype._read=function(){var o=this,e=o._resumeFetch;e&&(o._resumeFetch=null,e())},t.prototype._onXHRProgress=function(){var o=this,e=o._xhr,l=null;switch(o._mode){case"text:vbarray":if(e.readyState!==i.DONE)break;try{l=new f.VBArray(e.responseBody).toArray()}catch(g){}if(l!==null){o.push(new x(l));break}case"text":try{l=e.responseText}catch(g){o._mode="text:vbarray";break}if(l.length>o._pos){var r=l.substr(o._pos);if(o._charset==="x-user-defined"){for(var a=new x(r.length),c=0;c<r.length;c++)a[c]=r.charCodeAt(c)&255;o.push(a)}else o.push(r,o._charset);o._pos=l.length}break;case"arraybuffer":if(e.readyState!==i.DONE||!e.response)break;l=e.response,o.push(new x(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=e.response,e.readyState!==i.LOADING||!l)break;o.push(new x(new Uint8Array(l)));break;case"ms-stream":if(l=e.response,e.readyState!==i.LOADING)break;var h=new f.MSStreamReader;h.onprogress=function(){h.result.byteLength>o._pos&&(o.push(new x(new Uint8Array(h.result.slice(o._pos)))),o._pos=h.result.byteLength)},h.onload=function(){o.push(null)},h.readAsArrayBuffer(l);break}o._xhr.readyState===i.DONE&&o._mode!=="ms-stream"&&o.push(null)}}).call(this,R("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},R("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(R,D,n){"use strict";var y=R("safe-buffer").Buffer,f=y.isEncoding||function(h){h=""+h;switch(h&&h.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function x(h){if(!h)return"utf8";for(var g;;)switch(h){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return h;default:if(g)return;h=(""+h).toLowerCase(),g=!0}}function v(h){var g=x(h);if(typeof g!="string"&&(y.isEncoding===f||!f(h)))throw new Error("Unknown encoding: "+h);return g||h}n.StringDecoder=m;function m(h){this.encoding=v(h);var g;switch(this.encoding){case"utf16le":this.text=o,this.end=e,g=4;break;case"utf8":this.fillLast=s,g=4;break;case"base64":this.text=l,this.end=r,g=3;break;default:this.write=a,this.end=c;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=y.allocUnsafe(g)}m.prototype.write=function(h){if(h.length===0)return"";var g,A;if(this.lastNeed){if(g=this.fillLast(h),g===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A<h.length?g?g+this.text(h,A):this.text(h,A):g||""},m.prototype.end=t,m.prototype.text=i,m.prototype.fillLast=function(h){if(this.lastNeed<=h.length)return h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,h.length),this.lastNeed-=h.length};function p(h){return h<=127?0:h>>5===6?2:h>>4===14?3:h>>3===30?4:h>>6===2?-1:-2}function d(h,g,A){var b=g.length-1;if(b<A)return 0;var S=p(g[b]);return S>=0?(S>0&&(h.lastNeed=S-1),S):--b<A||S===-2?0:(S=p(g[b]),S>=0?(S>0&&(h.lastNeed=S-2),S):--b<A||S===-2?0:(S=p(g[b]),S>=0?(S>0&&(S===2?S=0:h.lastNeed=S-3),S):0))}function u(h,g,A){if((g[0]&192)!==128)return h.lastNeed=0,"\uFFFD";if(h.lastNeed>1&&g.length>1){if((g[1]&192)!==128)return h.lastNeed=1,"\uFFFD";if(h.lastNeed>2&&g.length>2&&(g[2]&192)!==128)return h.lastNeed=2,"\uFFFD"}}function s(h){var g=this.lastTotal-this.lastNeed,A=u(this,h,g);if(A!==void 0)return A;if(this.lastNeed<=h.length)return h.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,g,0,h.length),this.lastNeed-=h.length}function i(h,g){var A=d(this,h,g);if(!this.lastNeed)return h.toString("utf8",g);this.lastTotal=A;var b=h.length-(A-this.lastNeed);return h.copy(this.lastChar,0,b),h.toString("utf8",g,b)}function t(h){var g=h&&h.length?this.write(h):"";return this.lastNeed?g+"\uFFFD":g}function o(h,g){if((h.length-g)%2===0){var A=h.toString("utf16le",g);if(A){var b=A.charCodeAt(A.length-1);if(b>=55296&&b<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",g,h.length-1)}function e(h){var g=h&&h.length?this.write(h):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,A)}return g}function l(h,g){var A=(h.length-g)%3;return A===0?h.toString("base64",g):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=h[h.length-1]:(this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1]),h.toString("base64",g,h.length-A))}function r(h){var g=h&&h.length?this.write(h):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function a(h){return h.toString(this.encoding)}function c(h){return h&&h.length?this.write(h):""}},{"safe-buffer":228}],236:[function(R,D,n){(function(y,f){var x=R("process/browser.js").nextTick,v=Function.prototype.apply,m=Array.prototype.slice,p={},d=0;n.setTimeout=function(){return new u(v.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new u(v.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(s){s.close()};function u(s,i){this._id=s,this._clearFn=i}u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(s,i){clearTimeout(s._idleTimeoutId),s._idleTimeout=i},n.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},n._unrefActive=n.active=function(s){clearTimeout(s._idleTimeoutId);var i=s._idleTimeout;i>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},i))},n.setImmediate=typeof y=="function"?y:function(s){var i=d++,t=arguments.length<2?!1:m.call(arguments,1);return p[i]=!0,x(function(){p[i]&&(t?s.apply(null,t):s.call(null),n.clearImmediate(i))}),i},n.clearImmediate=typeof f=="function"?f:function(s){delete p[s]}}).call(this,R("timers").setImmediate,R("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(R,D,n){var y=R("buffer").Buffer;D.exports=function(f){if(f instanceof Uint8Array){if(f.byteOffset===0&&f.byteLength===f.buffer.byteLength)return f.buffer;if(typeof f.buffer.slice=="function")return f.buffer.slice(f.byteOffset,f.byteOffset+f.byteLength)}if(y.isBuffer(f)){for(var x=new Uint8Array(f.length),v=f.length,m=0;m<v;m++)x[m]=f[m];return x.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(R,D,n){"use strict";var y=R("punycode"),f=R("./util");n.parse=g,n.resolve=b,n.resolveObject=S,n.format=A,n.Url=x;function x(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var v=/^([a-z0-9.+-]+:)/i,m=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],u=["{","}","|","\\","^","`"].concat(d),s=["'"].concat(u),i=["%","/","?",";","#"].concat(s),t=["/","?","#"],o=255,e=/^[+a-z0-9A-Z_-]{0,63}$/,l=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,r={javascript:!0,"javascript:":!0},a={javascript:!0,"javascript:":!0},c={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},h=R("querystring");function g(E,C,_){if(E&&f.isObject(E)&&E instanceof x)return E;var T=new x;return T.parse(E,C,_),T}x.prototype.parse=function(E,C,_){if(!f.isString(E))throw new TypeError("Parameter 'url' must be a string, not "+typeof E);var T=E.indexOf("?"),w=T!==-1&&T<E.indexOf("#")?"?":"#",O=E.split(w),I=/\\/g;O[0]=O[0].replace(I,"/"),E=O.join(w);var k=E;if(k=k.trim(),!_&&E.split("#").length===1){var M=p.exec(k);if(M)return this.path=k,this.href=k,this.pathname=M[1],M[2]?(this.search=M[2],C?this.query=h.parse(this.search.substr(1)):this.query=this.search.substr(1)):C&&(this.search="",this.query={}),this}var j=v.exec(k);if(j){j=j[0];var P=j.toLowerCase();this.protocol=P,k=k.substr(j.length)}if(_||j||k.match(/^\/\/[^@\/]+@[^@\/]+/)){var X=k.substr(0,2)==="//";X&&!(j&&a[j])&&(k=k.substr(2),this.slashes=!0)}if(!a[j]&&(X||j&&!c[j])){for(var F=-1,U=0;U<t.length;U++){var K=k.indexOf(t[U]);K!==-1&&(F===-1||K<F)&&(F=K)}var z,V;F===-1?V=k.lastIndexOf("@"):V=k.lastIndexOf("@",F),V!==-1&&(z=k.slice(0,V),k=k.slice(V+1),this.auth=decodeURIComponent(z)),F=-1;for(var U=0;U<i.length;U++){var K=k.indexOf(i[U]);K!==-1&&(F===-1||K<F)&&(F=K)}F===-1&&(F=k.length),this.host=k.slice(0,F),k=k.slice(F),this.parseHost(),this.hostname=this.hostname||"";var Q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Q)for(var G=this.hostname.split(/\./),U=0,te=G.length;U<te;U++){var q=G[U];if(!q)continue;if(!q.match(e)){for(var se="",re=0,xe=q.length;re<xe;re++)q.charCodeAt(re)>127?se+="x":se+=q[re];if(!se.match(e)){var Oe=G.slice(0,U),Me=G.slice(U+1),Qe=q.match(l);Qe&&(Oe.push(Qe[1]),Me.unshift(Qe[2])),Me.length&&(k="/"+Me.join(".")+k),this.hostname=Oe.join(".");break}}}this.hostname.length>o?this.hostname="":this.hostname=this.hostname.toLowerCase(),Q||(this.hostname=y.toASCII(this.hostname));var Ve=this.port?":"+this.port:"",ut=this.hostname||"";this.host=ut+Ve,this.href+=this.host,Q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),k[0]!=="/"&&(k="/"+k))}if(!r[P])for(var U=0,te=s.length;U<te;U++){var Fe=s[U];if(k.indexOf(Fe)===-1)continue;var ue=encodeURIComponent(Fe);ue===Fe&&(ue=escape(Fe)),k=k.split(Fe).join(ue)}var et=k.indexOf("#");et!==-1&&(this.hash=k.substr(et),k=k.slice(0,et));var he=k.indexOf("?");if(he!==-1?(this.search=k.substr(he),this.query=k.substr(he+1),C&&(this.query=h.parse(this.query)),k=k.slice(0,he)):C&&(this.search="",this.query={}),k&&(this.pathname=k),c[P]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ve=this.pathname||"",J=this.search||"";this.path=Ve+J}return this.href=this.format(),this};function A(E){return f.isString(E)&&(E=g(E)),E instanceof x?E.format():x.prototype.format.call(E)}x.prototype.format=function(){var E=this.auth||"";E&&(E=encodeURIComponent(E),E=E.replace(/%3A/i,":"),E+="@");var C=this.protocol||"",_=this.pathname||"",T=this.hash||"",w=!1,O="";this.host?w=E+this.host:this.hostname&&(w=E+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(w+=":"+this.port)),this.query&&f.isObject(this.query)&&Object.keys(this.query).length&&(O=h.stringify(this.query));var I=this.search||O&&"?"+O||"";return C&&C.substr(-1)!==":"&&(C+=":"),this.slashes||(!C||c[C])&&w!==!1?(w="//"+(w||""),_&&_.charAt(0)!=="/"&&(_="/"+_)):w||(w=""),T&&T.charAt(0)!=="#"&&(T="#"+T),I&&I.charAt(0)!=="?"&&(I="?"+I),_=_.replace(/[?#]/g,function(k){return encodeURIComponent(k)}),I=I.replace("#","%23"),C+w+_+I+T};function b(E,C){return g(E,!1,!0).resolve(C)}x.prototype.resolve=function(E){return this.resolveObject(g(E,!1,!0)).format()};function S(E,C){return E?g(E,!1,!0).resolveObject(C):C}x.prototype.resolveObject=function(E){if(f.isString(E)){var C=new x;C.parse(E,!1,!0),E=C}for(var _=new x,T=Object.keys(this),w=0;w<T.length;w++){var O=T[w];_[O]=this[O]}if(_.hash=E.hash,E.href==="")return _.href=_.format(),_;if(E.slashes&&!E.protocol){for(var I=Object.keys(E),k=0;k<I.length;k++){var M=I[k];M!=="protocol"&&(_[M]=E[M])}return c[_.protocol]&&_.hostname&&!_.pathname&&(_.path=_.pathname="/"),_.href=_.format(),_}if(E.protocol&&E.protocol!==_.protocol){if(!c[E.protocol]){for(var j=Object.keys(E),P=0;P<j.length;P++){var X=j[P];_[X]=E[X]}return _.href=_.format(),_}if(_.protocol=E.protocol,!E.host&&!a[E.protocol]){for(var te=(E.pathname||"").split("/");te.length&&!(E.host=te.shift()););E.host||(E.host=""),E.hostname||(E.hostname=""),te[0]!==""&&te.unshift(""),te.length<2&&te.unshift(""),_.pathname=te.join("/")}else _.pathname=E.pathname;if(_.search=E.search,_.query=E.query,_.host=E.host||"",_.auth=E.auth,_.hostname=E.hostname||E.host,_.port=E.port,_.pathname||_.search){var F=_.pathname||"",U=_.search||"";_.path=F+U}return _.slashes=_.slashes||E.slashes,_.href=_.format(),_}var K=_.pathname&&_.pathname.charAt(0)==="/",z=E.host||E.pathname&&E.pathname.charAt(0)==="/",V=z||K||_.host&&E.pathname,Q=V,G=_.pathname&&_.pathname.split("/")||[],te=E.pathname&&E.pathname.split("/")||[],q=_.protocol&&!c[_.protocol];if(q&&(_.hostname="",_.port=null,_.host&&(G[0]===""?G[0]=_.host:G.unshift(_.host)),_.host="",E.protocol&&(E.hostname=null,E.port=null,E.host&&(te[0]===""?te[0]=E.host:te.unshift(E.host)),E.host=null),V=V&&(te[0]===""||G[0]==="")),z)_.host=E.host||E.host===""?E.host:_.host,_.hostname=E.hostname||E.hostname===""?E.hostname:_.hostname,_.search=E.search,_.query=E.query,G=te;else if(te.length)G||(G=[]),G.pop(),G=G.concat(te),_.search=E.search,_.query=E.query;else if(!f.isNullOrUndefined(E.search)){if(q){_.hostname=_.host=G.shift();var se=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;se&&(_.auth=se.shift(),_.host=_.hostname=se.shift())}return _.search=E.search,_.query=E.query,(!f.isNull(_.pathname)||!f.isNull(_.search))&&(_.path=(_.pathname?_.pathname:"")+(_.search?_.search:"")),_.href=_.format(),_}if(!G.length)return _.pathname=null,_.search?_.path="/"+_.search:_.path=null,_.href=_.format(),_;for(var re=G.slice(-1)[0],xe=(_.host||E.host||G.length>1)&&(re==="."||re==="..")||re==="",Oe=0,Me=G.length;Me>=0;Me--)re=G[Me],re==="."?G.splice(Me,1):re===".."?(G.splice(Me,1),Oe++):Oe&&(G.splice(Me,1),Oe--);if(!V&&!Q)for(;Oe--;Oe)G.unshift("..");V&&G[0]!==""&&(!G[0]||G[0].charAt(0)!=="/")&&G.unshift(""),xe&&G.join("/").substr(-1)!=="/"&&G.push("");var Qe=G[0]===""||G[0]&&G[0].charAt(0)==="/";if(q){_.hostname=_.host=Qe?"":G.length?G.shift():"";var se=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;se&&(_.auth=se.shift(),_.host=_.hostname=se.shift())}return V=V||_.host&&G.length,V&&!Qe&&G.unshift(""),G.length?_.pathname=G.join("/"):(_.pathname=null,_.path=null),(!f.isNull(_.pathname)||!f.isNull(_.search))&&(_.path=(_.pathname?_.pathname:"")+(_.search?_.search:"")),_.auth=E.auth||_.auth,_.slashes=_.slashes||E.slashes,_.href=_.format(),_},x.prototype.parseHost=function(){var E=this.host,C=m.exec(E);C&&(C=C[0],C!==":"&&(this.port=C.substr(1)),E=E.substr(0,E.length-C.length)),E&&(this.hostname=E)}},{"./util":239,punycode:209,querystring:212}],239:[function(R,D,n){"use strict";D.exports={isString:function(f){return typeof f=="string"},isObject:function(f){return typeof f=="object"&&f!==null},isNull:function(f){return f===null},isNullOrUndefined:function(f){return f==null}}},{}],240:[function(R,D,n){(function(y){D.exports=f;function f(v,m){if(x("noDeprecation"))return v;var p=!1;function d(){if(!p){if(x("throwDeprecation"))throw new Error(m);x("traceDeprecation")?console.trace(m):console.warn(m),p=!0}return v.apply(this,arguments)}return d}function x(v){try{if(!y.localStorage)return!1}catch(p){return!1}var m=y.localStorage[v];return m==null?!1:String(m).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(R,D,n){typeof Object.create=="function"?D.exports=function(f,x){f.super_=x,f.prototype=Object.create(x.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}})}:D.exports=function(f,x){f.super_=x;var v=function(){};v.prototype=x.prototype,f.prototype=new v,f.prototype.constructor=f}},{}],242:[function(R,D,n){D.exports=function(f){return f&&typeof f=="object"&&typeof f.copy=="function"&&typeof f.fill=="function"&&typeof f.readUInt8=="function"}},{}],243:[function(R,D,n){(function(y,f){var x=/%[sdj%]/g;n.format=function(F){if(!b(F)){for(var U=[],K=0;K<arguments.length;K++)U.push(p(arguments[K]));return U.join(" ")}for(var K=1,z=arguments,V=z.length,Q=String(F).replace(x,function(te){if(te==="%%")return"%";if(K>=V)return te;switch(te){case"%s":return String(z[K++]);case"%d":return Number(z[K++]);case"%j":try{return JSON.stringify(z[K++])}catch(q){return"[Circular]"}default:return te}}),G=z[K];K<V;G=z[++K])h(G)||!_(G)?Q+=" "+G:Q+=" "+p(G);return Q},n.deprecate=function(F,U){if(E(f.process))return function(){return n.deprecate(F,U).apply(this,arguments)};if(y.noDeprecation===!0)return F;var K=!1;function z(){if(!K){if(y.throwDeprecation)throw new Error(U);y.traceDeprecation?console.trace(U):console.error(U),K=!0}return F.apply(this,arguments)}return z};var v={},m;n.debuglog=function(F){if(E(m)&&(m=y.env.NODE_DEBUG||""),F=F.toUpperCase(),!v[F])if(new RegExp("\\b"+F+"\\b","i").test(m)){var U=y.pid;v[F]=function(){var K=n.format.apply(n,arguments);console.error("%s %d: %s",F,U,K)}}else v[F]=function(){};return v[F]};function p(F,U){var K={seen:[],stylize:u};return arguments.length>=3&&(K.depth=arguments[2]),arguments.length>=4&&(K.colors=arguments[3]),c(U)?K.showHidden=U:U&&n._extend(K,U),E(K.showHidden)&&(K.showHidden=!1),E(K.depth)&&(K.depth=2),E(K.colors)&&(K.colors=!1),E(K.customInspect)&&(K.customInspect=!0),K.colors&&(K.stylize=d),i(K,F,K.depth)}n.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function d(F,U){var K=p.styles[U];return K?"["+p.colors[K][0]+"m"+F+"["+p.colors[K][1]+"m":F}function u(F,U){return F}function s(F){var U={};return F.forEach(function(K,z){U[K]=!0}),U}function i(F,U,K){if(F.customInspect&&U&&O(U.inspect)&&U.inspect!==n.inspect&&!(U.constructor&&U.constructor.prototype===U)){var z=U.inspect(K,F);return b(z)||(z=i(F,z,K)),z}var V=t(F,U);if(V)return V;var Q=Object.keys(U),G=s(Q);if(F.showHidden&&(Q=Object.getOwnPropertyNames(U)),w(U)&&(Q.indexOf("message")>=0||Q.indexOf("description")>=0))return o(U);if(Q.length===0){if(O(U)){var te=U.name?": "+U.name:"";return F.stylize("[Function"+te+"]","special")}if(C(U))return F.stylize(RegExp.prototype.toString.call(U),"regexp");if(T(U))return F.stylize(Date.prototype.toString.call(U),"date");if(w(U))return o(U)}var q="",se=!1,re=["{","}"];if(a(U)&&(se=!0,re=["[","]"]),O(U)){var xe=U.name?": "+U.name:"";q=" [Function"+xe+"]"}if(C(U)&&(q=" "+RegExp.prototype.toString.call(U)),T(U)&&(q=" "+Date.prototype.toUTCString.call(U)),w(U)&&(q=" "+o(U)),Q.length===0&&(!se||U.length==0))return re[0]+q+re[1];if(K<0)return C(U)?F.stylize(RegExp.prototype.toString.call(U),"regexp"):F.stylize("[Object]","special");F.seen.push(U);var Oe;return se?Oe=e(F,U,K,G,Q):Oe=Q.map(function(Me){return l(F,U,K,G,Me,se)}),F.seen.pop(),r(Oe,q,re)}function t(F,U){if(E(U))return F.stylize("undefined","undefined");if(b(U)){var K="'"+JSON.stringify(U).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return F.stylize(K,"string")}if(A(U))return F.stylize(""+U,"number");if(c(U))return F.stylize(""+U,"boolean");if(h(U))return F.stylize("null","null")}function o(F){return"["+Error.prototype.toString.call(F)+"]"}function e(F,U,K,z,V){for(var Q=[],G=0,te=U.length;G<te;++G)X(U,String(G))?Q.push(l(F,U,K,z,String(G),!0)):Q.push("");return V.forEach(function(q){q.match(/^\d+$/)||Q.push(l(F,U,K,z,q,!0))}),Q}function l(F,U,K,z,V,Q){var G,te,q;if(q=Object.getOwnPropertyDescriptor(U,V)||{value:U[V]},q.get?q.set?te=F.stylize("[Getter/Setter]","special"):te=F.stylize("[Getter]","special"):q.set&&(te=F.stylize("[Setter]","special")),X(z,V)||(G="["+V+"]"),te||(F.seen.indexOf(q.value)<0?(h(K)?te=i(F,q.value,null):te=i(F,q.value,K-1),te.indexOf(`
|
|
|
`)>-1&&(Q?te=te.split(`
|
|
|
`).map(function(se){return" "+se}).join(`
|
|
|
`).substr(2):te=`
|
|
|
`+te.split(`
|
|
|
`).map(function(se){return" "+se}).join(`
|
|
|
`))):te=F.stylize("[Circular]","special")),E(G)){if(Q&&V.match(/^\d+$/))return te;G=JSON.stringify(""+V),G.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(G=G.substr(1,G.length-2),G=F.stylize(G,"name")):(G=G.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),G=F.stylize(G,"string"))}return G+": "+te}function r(F,U,K){var z=0,V=F.reduce(function(Q,G){return z++,G.indexOf(`
|
|
|
`)>=0&&z++,Q+G.replace(/\u001b\[\d\d?m/g,"").length+1},0);return V>60?K[0]+(U===""?"":U+`
|
|
|
`)+" "+F.join(`,
|
|
|
`)+" "+K[1]:K[0]+U+" "+F.join(", ")+" "+K[1]}function a(F){return Array.isArray(F)}n.isArray=a;function c(F){return typeof F=="boolean"}n.isBoolean=c;function h(F){return F===null}n.isNull=h;function g(F){return F==null}n.isNullOrUndefined=g;function A(F){return typeof F=="number"}n.isNumber=A;function b(F){return typeof F=="string"}n.isString=b;function S(F){return typeof F=="symbol"}n.isSymbol=S;function E(F){return F===void 0}n.isUndefined=E;function C(F){return _(F)&&k(F)==="[object RegExp]"}n.isRegExp=C;function _(F){return typeof F=="object"&&F!==null}n.isObject=_;function T(F){return _(F)&&k(F)==="[object Date]"}n.isDate=T;function w(F){return _(F)&&(k(F)==="[object Error]"||F instanceof Error)}n.isError=w;function O(F){return typeof F=="function"}n.isFunction=O;function I(F){return F===null||typeof F=="boolean"||typeof F=="number"||typeof F=="string"||typeof F=="symbol"||typeof F=="undefined"}n.isPrimitive=I,n.isBuffer=R("./support/isBuffer");function k(F){return Object.prototype.toString.call(F)}function M(F){return F<10?"0"+F.toString(10):F.toString(10)}var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var F=new Date,U=[M(F.getHours()),M(F.getMinutes()),M(F.getSeconds())].join(":");return[F.getDate(),j[F.getMonth()],U].join(" ")}n.log=function(){console.log("%s - %s",P(),n.format.apply(n,arguments))},n.inherits=R("inherits"),n._extend=function(F,U){if(!U||!_(U))return F;for(var K=Object.keys(U),z=K.length;z--;)F[K[z]]=U[K[z]];return F};function X(F,U){return Object.prototype.hasOwnProperty.call(F,U)}}).call(this,R("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(R,D,n){"use strict";(function(){"use strict";n.stripBOM=function(y){return y[0]==="\uFEFF"?y.substring(1):y}}).call(void 0)},{}],245:[function(R,D,n){"use strict";var y=R("babel-runtime/helpers/typeof"),f=m(y),x=R("babel-runtime/core-js/object/keys"),v=m(x);function m(p){return p&&p.__esModule?p:{default:p}}(function(){"use strict";var p,d,u,s,i,t={}.hasOwnProperty;p=R("xmlbuilder"),d=R("./defaults").defaults,s=function(e){return typeof e=="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},i=function(e){return"<![CDATA["+u(e)+"]]>"},u=function(e){return e.replace("]]>","]]]]><![CDATA[>")},n.Builder=function(){function o(e){var l,r,a;this.options={},r=d["0.2"];for(l in r){if(!t.call(r,l))continue;a=r[l],this.options[l]=a}for(l in e){if(!t.call(e,l))continue;a=e[l],this.options[l]=a}}return o.prototype.buildObject=function(e){var l,r,a,c,h;return l=this.options.attrkey,r=this.options.charkey,(0,v.default)(e).length===1&&this.options.rootName===d["0.2"].rootName?(h=(0,v.default)(e)[0],e=e[h]):h=this.options.rootName,a=function(g){return function(A,b){var S,E,C,_,T,w;if((typeof b=="undefined"?"undefined":(0,f.default)(b))!=="object")g.options.cdata&&s(b)?A.raw(i(b)):A.txt(b);else if(Array.isArray(b))for(_ in b){if(!t.call(b,_))continue;E=b[_];for(T in E)C=E[T],A=a(A.ele(T),C).up()}else for(T in b){if(!t.call(b,T))continue;if(E=b[T],T===l){if((typeof E=="undefined"?"undefined":(0,f.default)(E))==="object")for(S in E)w=E[S],A=A.att(S,w)}else if(T===r)g.options.cdata&&s(E)?A=A.raw(i(E)):A=A.txt(E);else if(Array.isArray(E))for(_ in E){if(!t.call(E,_))continue;C=E[_],typeof C=="string"?g.options.cdata&&s(C)?A=A.ele(T).raw(i(C)).up():A=A.ele(T,C).up():A=a(A.ele(T),C).up()}else(typeof E=="undefined"?"undefined":(0,f.default)(E))==="object"?A=a(A.ele(T),E).up():typeof E=="string"&&g.options.cdata&&s(E)?A=A.ele(T).raw(i(E)).up():(E==null&&(E=""),A=A.ele(T,E.toString()).up())}return A}}(this),c=p.create(h,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),a(c,e).end(this.options.renderOpts)},o}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(R,D,n){"use strict";(function(){n.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/promise"),f=s(y),x=R("babel-runtime/core-js/object/get-own-property-names"),v=s(x),m=R("babel-runtime/core-js/object/keys"),p=s(m),d=R("babel-runtime/helpers/typeof"),u=s(d);function s(i){return i&&i.__esModule?i:{default:i}}(function(){"use strict";var i,t,o,e,l,r,a,c,h=function(S,E){return function(){return S.apply(E,arguments)}},g=function(S,E){for(var C in E)A.call(E,C)&&(S[C]=E[C]);function _(){this.constructor=S}return _.prototype=E.prototype,S.prototype=new _,S.__super__=E.prototype,S},A={}.hasOwnProperty;a=R("sax"),o=R("events"),i=R("./bom"),r=R("./processors"),c=R("timers").setImmediate,t=R("./defaults").defaults,e=function(S){return(typeof S=="undefined"?"undefined":(0,u.default)(S))==="object"&&S!=null&&(0,p.default)(S).length===0},l=function(S,E,C){var _,T,w;for(_=0,T=S.length;_<T;_++)w=S[_],E=w(E,C);return E},n.Parser=function(b){g(S,b);function S(E){this.parseStringPromise=h(this.parseStringPromise,this),this.parseString=h(this.parseString,this),this.reset=h(this.reset,this),this.assignOrPush=h(this.assignOrPush,this),this.processAsync=h(this.processAsync,this);var C,_,T;if(!(this instanceof n.Parser))return new n.Parser(E);this.options={},_=t["0.2"];for(C in _){if(!A.call(_,C))continue;T=_[C],this.options[C]=T}for(C in E){if(!A.call(E,C))continue;T=E[C],this.options[C]=T}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(r.normalize)),this.reset()}return S.prototype.processAsync=function(){var E,C;try{return this.remaining.length<=this.options.chunkSize?(E=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(E),this.saxParser.close()):(E=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(E),c(this.processAsync))}catch(_){if(C=_,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(C)}},S.prototype.assignOrPush=function(E,C,_){return C in E?(E[C]instanceof Array||(E[C]=[E[C]]),E[C].push(_)):this.options.explicitArray?E[C]=[_]:E[C]=_},S.prototype.reset=function(){var E,C,_,T;return this.removeAllListeners(),this.saxParser=a.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(w){return function(O){if(w.saxParser.resume(),!w.saxParser.errThrown)return w.saxParser.errThrown=!0,w.emit("error",O)}}(this),this.saxParser.onend=function(w){return function(){if(!w.saxParser.ended)return w.saxParser.ended=!0,w.emit("end",w.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,T=[],E=this.options.attrkey,C=this.options.charkey,this.saxParser.onopentag=function(w){return function(O){var I,k,M,j,P;if(M={},M[C]="",!w.options.ignoreAttrs){P=O.attributes;for(I in P){if(!A.call(P,I))continue;!(E in M)&&!w.options.mergeAttrs&&(M[E]={}),k=w.options.attrValueProcessors?l(w.options.attrValueProcessors,O.attributes[I],I):O.attributes[I],j=w.options.attrNameProcessors?l(w.options.attrNameProcessors,I):I,w.options.mergeAttrs?w.assignOrPush(M,j,k):M[E][j]=k}}return M["#name"]=w.options.tagNameProcessors?l(w.options.tagNameProcessors,O.name):O.name,w.options.xmlns&&(M[w.options.xmlnskey]={uri:O.uri,local:O.local}),T.push(M)}}(this),this.saxParser.onclosetag=function(w){return function(){var O,I,k,M,j,P,X,F,U,K;if(P=T.pop(),j=P["#name"],(!w.options.explicitChildren||!w.options.preserveChildrenOrder)&&delete P["#name"],P.cdata===!0&&(O=P.cdata,delete P.cdata),U=T[T.length-1],P[C].match(/^\s*$/)&&!O?(I=P[C],delete P[C]):(w.options.trim&&(P[C]=P[C].trim()),w.options.normalize&&(P[C]=P[C].replace(/\s{2,}/g," ").trim()),P[C]=w.options.valueProcessors?l(w.options.valueProcessors,P[C],j):P[C],(0,p.default)(P).length===1&&C in P&&!w.EXPLICIT_CHARKEY&&(P=P[C])),e(P)&&(P=w.options.emptyTag!==""?w.options.emptyTag:I),w.options.validator!=null&&(K="/"+function(){var z,V,Q;for(Q=[],z=0,V=T.length;z<V;z++)M=T[z],Q.push(M["#name"]);return Q}().concat(j).join("/"),function(){var z;try{return P=w.options.validator(K,U&&U[j],P)}catch(V){return z=V,w.emit("error",z)}}()),w.options.explicitChildren&&!w.options.mergeAttrs&&(typeof P=="undefined"?"undefined":(0,u.default)(P))==="object"){if(!w.options.preserveChildrenOrder)M={},w.options.attrkey in P&&(M[w.options.attrkey]=P[w.options.attrkey],delete P[w.options.attrkey]),!w.options.charsAsChildren&&w.options.charkey in P&&(M[w.options.charkey]=P[w.options.charkey],delete P[w.options.charkey]),(0,v.default)(P).length>0&&(M[w.options.childkey]=P),P=M;else if(U){U[w.options.childkey]=U[w.options.childkey]||[],X={};for(k in P){if(!A.call(P,k))continue;X[k]=P[k]}U[w.options.childkey].push(X),delete P["#name"],(0,p.default)(P).length===1&&C in P&&!w.EXPLICIT_CHARKEY&&(P=P[C])}}return T.length>0?w.assignOrPush(U,j,P):(w.options.explicitRoot&&(F=P,P={},P[j]=F),w.resultObject=P,w.saxParser.ended=!0,w.emit("end",w.resultObject))}}(this),_=function(w){return function(O){var I,k;if(k=T[T.length-1],k)return k[C]+=O,w.options.explicitChildren&&w.options.preserveChildrenOrder&&w.options.charsAsChildren&&(w.options.includeWhiteChars||O.replace(/\\n/g,"").trim()!=="")&&(k[w.options.childkey]=k[w.options.childkey]||[],I={"#name":"__text__"},I[C]=O,w.options.normalize&&(I[C]=I[C].replace(/\s{2,}/g," ").trim()),k[w.options.childkey].push(I)),k}}(this),this.saxParser.ontext=_,this.saxParser.oncdata=function(w){return function(O){var I;if(I=_(O),I)return I.cdata=!0}}(this)},S.prototype.parseString=function(E,C){var _;C!=null&&typeof C=="function"&&(this.on("end",function(T){return this.reset(),C(null,T)}),this.on("error",function(T){return this.reset(),C(T)}));try{return E=E.toString(),E.trim()===""?(this.emit("end",null),!0):(E=i.stripBOM(E),this.options.async?(this.remaining=E,c(this.processAsync),this.saxParser):this.saxParser.write(E).close())}catch(T){if(_=T,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw _}else return this.emit("error",_),this.saxParser.errThrown=!0}},S.prototype.parseStringPromise=function(E){return new f.default(function(C){return function(_,T){return C.parseString(E,function(w,O){return w?T(w):_(O)})}}(this))},S}(o),n.parseString=function(b,S,E){var C,_,T;return E!=null?(typeof E=="function"&&(C=E),(typeof S=="undefined"?"undefined":(0,u.default)(S))==="object"&&(_=S)):(typeof S=="function"&&(C=S),_={}),T=new n.Parser(_),T.parseString(b,C)},n.parseStringPromise=function(b,S){var E,C;return(typeof S=="undefined"?"undefined":(0,u.default)(S))==="object"&&(E=S),C=new n.Parser(E),C.parseStringPromise(b)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(R,D,n){"use strict";(function(){"use strict";var y;y=new RegExp(/(?!xmlns)^.*:/),n.normalize=function(f){return f.toLowerCase()},n.firstCharLowerCase=function(f){return f.charAt(0).toLowerCase()+f.slice(1)},n.stripPrefix=function(f){return f.replace(y,"")},n.parseNumbers=function(f){return isNaN(f)||(f=f%1===0?parseInt(f,10):parseFloat(f)),f},n.parseBooleans=function(f){return/^(?:true|false)$/i.test(f)&&(f=f.toLowerCase()==="true"),f}}).call(void 0)},{}],249:[function(R,D,n){"use strict";(function(){"use strict";var y,f,x,v,m=function(u,s){for(var i in s)p.call(s,i)&&(u[i]=s[i]);function t(){this.constructor=u}return t.prototype=s.prototype,u.prototype=new t,u.__super__=s.prototype,u},p={}.hasOwnProperty;f=R("./defaults"),y=R("./builder"),x=R("./parser"),v=R("./processors"),n.defaults=f.defaults,n.processors=v,n.ValidationError=function(d){m(u,d);function u(s){this.message=s}return u}(Error),n.Builder=y.Builder,n.Parser=x.Parser,n.parseString=x.parseString,n.parseStringPromise=x.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(R,D,n){"use strict";(function(){D.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(R,D,n){"use strict";(function(){D.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/get-prototype-of"),f=d(y),x=R("babel-runtime/helpers/typeof"),v=d(x),m=R("babel-runtime/core-js/object/assign"),p=d(m);function d(u){return u&&u.__esModule?u:{default:u}}(function(){var u,s,i,t,o,e,l,r=[].slice,a={}.hasOwnProperty;u=function(){var h,g,A,b,S,E;if(E=arguments[0],S=2<=arguments.length?r.call(arguments,1):[],o(p.default))p.default.apply(null,arguments);else for(h=0,A=S.length;h<A;h++)if(b=S[h],b!=null)for(g in b){if(!a.call(b,g))continue;E[g]=b[g]}return E},o=function(h){return!!h&&Object.prototype.toString.call(h)==="[object Function]"},e=function(h){var g;return!!h&&((g=typeof h=="undefined"?"undefined":(0,v.default)(h))==="function"||g==="object")},i=function(h){return o(Array.isArray)?Array.isArray(h):Object.prototype.toString.call(h)==="[object Array]"},t=function(h){var g;if(i(h))return!h.length;for(g in h){if(!a.call(h,g))continue;return!1}return!0},l=function(h){var g,A;return e(h)&&(A=(0,f.default)(h))&&(g=A.constructor)&&typeof g=="function"&&g instanceof g&&Function.prototype.toString.call(g)===Function.prototype.toString.call(Object)},s=function(h){return o(h.valueOf)?h.valueOf():h},D.exports.assign=u,D.exports.isFunction=o,D.exports.isObject=e,D.exports.isArray=i,D.exports.isEmpty=t,D.exports.isPlainObject=l,D.exports.getValue=s}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(R,D,n){"use strict";(function(){D.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,p;v=R("./NodeType"),p=R("./XMLNode"),D.exports=m=function(){function d(u,s,i){if(this.parent=u,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),s==null)throw new Error("Missing attribute name. "+this.debugInfo(s));this.name=this.stringify.name(s),this.value=this.stringify.attValue(i),this.type=v.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(d.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(d.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(d.prototype,"textContent",{get:function(){return this.value},set:function(s){return this.value=s||""}}),Object.defineProperty(d.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(d.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(d.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(d.prototype,"specified",{get:function(){return!0}}),d.prototype.clone=function(){return(0,f.default)(this)},d.prototype.toString=function(u){return this.options.writer.attribute(this,this.options.writer.filterOptions(u))},d.prototype.debugInfo=function(u){return u=u||this.name,u==null?"parent: <"+this.parent.name+">":"attribute: {"+u+"}, parent: <"+this.parent.name+">"},d.prototype.isEqualNode=function(u){return u.namespaceURI!==this.namespaceURI||(u.prefix!==this.prefix||u.localName!==this.localName)?!1:!(u.value!==this.value)},d}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,p,d=function(i,t){for(var o in t)u.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;v=R("./NodeType"),p=R("./XMLCharacterData"),D.exports=m=function(s){d(i,s);function i(t,o){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=v.CData,this.value=this.stringify.cdata(o)}return i.prototype.clone=function(){return(0,f.default)(this)},i.prototype.toString=function(t){return this.options.writer.cdata(this,this.options.writer.filterOptions(t))},i}(p)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,p=function(s,i){for(var t in i)d.call(i,t)&&(s[t]=i[t]);function o(){this.constructor=s}return o.prototype=i.prototype,s.prototype=new o,s.__super__=i.prototype,s},d={}.hasOwnProperty;m=R("./XMLNode"),D.exports=v=function(u){p(s,u);function s(i){s.__super__.constructor.call(this,i),this.value=""}return Object.defineProperty(s.prototype,"data",{get:function(){return this.value},set:function(t){return this.value=t||""}}),Object.defineProperty(s.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(s.prototype,"textContent",{get:function(){return this.value},set:function(t){return this.value=t||""}}),s.prototype.clone=function(){return(0,f.default)(this)},s.prototype.substringData=function(i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.appendData=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.insertData=function(i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.deleteData=function(i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.replaceData=function(i,t,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.isEqualNode=function(i){return s.__super__.isEqualNode.apply(this,arguments).isEqualNode(i)?!(i.data!==this.data):!1},s}(m)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,p,d=function(i,t){for(var o in t)u.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;v=R("./NodeType"),m=R("./XMLCharacterData"),D.exports=p=function(s){d(i,s);function i(t,o){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=v.Comment,this.value=this.stringify.comment(o)}return i.prototype.clone=function(){return(0,f.default)(this)},i.prototype.toString=function(t){return this.options.writer.comment(this,this.options.writer.filterOptions(t))},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/keys"),f=m(y),x=R("babel-runtime/core-js/object/create"),v=m(x);function m(p){return p&&p.__esModule?p:{default:p}}(function(){var p,d,u;d=R("./XMLDOMErrorHandler"),u=R("./XMLDOMStringList"),D.exports=p=function(){function s(){var i;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new d,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=i=(0,v.default)(this.defaultParams)}return Object.defineProperty(s.prototype,"parameterNames",{get:function(){return new u((0,f.default)(this.defaultParams))}}),s.prototype.getParameter=function(i){return this.params.hasOwnProperty(i)?this.params[i]:null},s.prototype.canSetParameter=function(i,t){return!0},s.prototype.setParameter=function(i,t){return t!=null?this.params[i]=t:delete this.params[i]},s}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(R,D,n){"use strict";(function(){var y;D.exports=y=function(){function f(){}return f.prototype.handleError=function(x){throw new Error(x)},f}()}).call(void 0)},{}],260:[function(R,D,n){"use strict";(function(){var y;D.exports=y=function(){function f(){}return f.prototype.hasFeature=function(x,v){return!0},f.prototype.createDocumentType=function(x,v,m){throw new Error("This DOM method is not implemented.")},f.prototype.createDocument=function(x,v,m){throw new Error("This DOM method is not implemented.")},f.prototype.createHTMLDocument=function(x){throw new Error("This DOM method is not implemented.")},f.prototype.getFeature=function(x,v){throw new Error("This DOM method is not implemented.")},f}()}).call(void 0)},{}],261:[function(R,D,n){"use strict";(function(){var y;D.exports=y=function(){function f(x){this.arr=x||[]}return Object.defineProperty(f.prototype,"length",{get:function(){return this.arr.length}}),f.prototype.item=function(x){return this.arr[x]||null},f.prototype.contains=function(x){return this.arr.indexOf(x)!==-1},f}()}).call(void 0)},{}],262:[function(R,D,n){"use strict";(function(){var y,f,x,v=function(d,u){for(var s in u)m.call(u,s)&&(d[s]=u[s]);function i(){this.constructor=d}return i.prototype=u.prototype,d.prototype=new i,d.__super__=u.prototype,d},m={}.hasOwnProperty;x=R("./XMLNode"),y=R("./NodeType"),D.exports=f=function(p){v(d,p);function d(u,s,i,t,o,e){if(d.__super__.constructor.call(this,u),s==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(i==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(s));if(!t)throw new Error("Missing DTD attribute type. "+this.debugInfo(s));if(!o)throw new Error("Missing DTD attribute default. "+this.debugInfo(s));if(o.indexOf("#")!==0&&(o="#"+o),!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(s));if(e&&!o.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(s));this.elementName=this.stringify.name(s),this.type=y.AttributeDeclaration,this.attributeName=this.stringify.name(i),this.attributeType=this.stringify.dtdAttType(t),e&&(this.defaultValue=this.stringify.dtdAttDefault(e)),this.defaultValueType=o}return d.prototype.toString=function(u){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(u))},d}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(R,D,n){"use strict";(function(){var y,f,x,v=function(d,u){for(var s in u)m.call(u,s)&&(d[s]=u[s]);function i(){this.constructor=d}return i.prototype=u.prototype,d.prototype=new i,d.__super__=u.prototype,d},m={}.hasOwnProperty;x=R("./XMLNode"),y=R("./NodeType"),D.exports=f=function(p){v(d,p);function d(u,s,i){if(d.__super__.constructor.call(this,u),s==null)throw new Error("Missing DTD element name. "+this.debugInfo());i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.name(s),this.type=y.ElementDeclaration,this.value=this.stringify.dtdElementValue(i)}return d.prototype.toString=function(u){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(u))},d}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(R,D,n){"use strict";(function(){var y,f,x,v,m=function(u,s){for(var i in s)p.call(s,i)&&(u[i]=s[i]);function t(){this.constructor=u}return t.prototype=s.prototype,u.prototype=new t,u.__super__=s.prototype,u},p={}.hasOwnProperty;v=R("./Utility").isObject,x=R("./XMLNode"),y=R("./NodeType"),D.exports=f=function(d){m(u,d);function u(s,i,t,o){if(u.__super__.constructor.call(this,s),t==null)throw new Error("Missing DTD entity name. "+this.debugInfo(t));if(o==null)throw new Error("Missing DTD entity value. "+this.debugInfo(t));if(this.pe=!!i,this.name=this.stringify.name(t),this.type=y.EntityDeclaration,!v(o))this.value=this.stringify.dtdEntityValue(o),this.internal=!0;else{if(!o.pubID&&!o.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(t));if(o.pubID&&!o.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(t));if(this.internal=!1,o.pubID!=null&&(this.pubID=this.stringify.dtdPubID(o.pubID)),o.sysID!=null&&(this.sysID=this.stringify.dtdSysID(o.sysID)),o.nData!=null&&(this.nData=this.stringify.dtdNData(o.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(t))}}return Object.defineProperty(u.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(u.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(u.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(u.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(u.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(u.prototype,"xmlVersion",{get:function(){return null}}),u.prototype.toString=function(s){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(s))},u}(x)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(R,D,n){"use strict";(function(){var y,f,x,v=function(d,u){for(var s in u)m.call(u,s)&&(d[s]=u[s]);function i(){this.constructor=d}return i.prototype=u.prototype,d.prototype=new i,d.__super__=u.prototype,d},m={}.hasOwnProperty;x=R("./XMLNode"),y=R("./NodeType"),D.exports=f=function(p){v(d,p);function d(u,s,i){if(d.__super__.constructor.call(this,u),s==null)throw new Error("Missing DTD notation name. "+this.debugInfo(s));if(!i.pubID&&!i.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(s));this.name=this.stringify.name(s),this.type=y.NotationDeclaration,i.pubID!=null&&(this.pubID=this.stringify.dtdPubID(i.pubID)),i.sysID!=null&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return Object.defineProperty(d.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(d.prototype,"systemId",{get:function(){return this.sysID}}),d.prototype.toString=function(u){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(u))},d}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(R,D,n){"use strict";(function(){var y,f,x,v,m=function(u,s){for(var i in s)p.call(s,i)&&(u[i]=s[i]);function t(){this.constructor=u}return t.prototype=s.prototype,u.prototype=new t,u.__super__=s.prototype,u},p={}.hasOwnProperty;v=R("./Utility").isObject,x=R("./XMLNode"),y=R("./NodeType"),D.exports=f=function(d){m(u,d);function u(s,i,t,o){var e;u.__super__.constructor.call(this,s),v(i)&&(e=i,i=e.version,t=e.encoding,o=e.standalone),i||(i="1.0"),this.type=y.Declaration,this.version=this.stringify.xmlVersion(i),t!=null&&(this.encoding=this.stringify.xmlEncoding(t)),o!=null&&(this.standalone=this.stringify.xmlStandalone(o))}return u.prototype.toString=function(s){return this.options.writer.declaration(this,this.options.writer.filterOptions(s))},u}(x)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(R,D,n){"use strict";(function(){var y,f,x,v,m,p,d,u,s,i=function(e,l){for(var r in l)t.call(l,r)&&(e[r]=l[r]);function a(){this.constructor=e}return a.prototype=l.prototype,e.prototype=new a,e.__super__=l.prototype,e},t={}.hasOwnProperty;s=R("./Utility").isObject,u=R("./XMLNode"),y=R("./NodeType"),f=R("./XMLDTDAttList"),v=R("./XMLDTDEntity"),x=R("./XMLDTDElement"),m=R("./XMLDTDNotation"),d=R("./XMLNamedNodeMap"),D.exports=p=function(o){i(e,o);function e(l,r,a){var c,h,g,A,b,S;if(e.__super__.constructor.call(this,l),this.type=y.DocType,l.children){for(A=l.children,h=0,g=A.length;h<g;h++)if(c=A[h],c.type===y.Element){this.name=c.name;break}}this.documentObject=l,s(r)&&(b=r,r=b.pubID,a=b.sysID),a==null&&(S=[r,a],a=S[0],r=S[1]),r!=null&&(this.pubID=this.stringify.dtdPubID(r)),a!=null&&(this.sysID=this.stringify.dtdSysID(a))}return Object.defineProperty(e.prototype,"entities",{get:function(){var r,a,c,h,g;for(h={},g=this.children,a=0,c=g.length;a<c;a++)r=g[a],r.type===y.EntityDeclaration&&!r.pe&&(h[r.name]=r);return new d(h)}}),Object.defineProperty(e.prototype,"notations",{get:function(){var r,a,c,h,g;for(h={},g=this.children,a=0,c=g.length;a<c;a++)r=g[a],r.type===y.NotationDeclaration&&(h[r.name]=r);return new d(h)}}),Object.defineProperty(e.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(e.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(e.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),e.prototype.element=function(l,r){var a;return a=new x(this,l,r),this.children.push(a),this},e.prototype.attList=function(l,r,a,c,h){var g;return g=new f(this,l,r,a,c,h),this.children.push(g),this},e.prototype.entity=function(l,r){var a;return a=new v(this,!1,l,r),this.children.push(a),this},e.prototype.pEntity=function(l,r){var a;return a=new v(this,!0,l,r),this.children.push(a),this},e.prototype.notation=function(l,r){var a;return a=new m(this,l,r),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,r){return this.element(l,r)},e.prototype.att=function(l,r,a,c,h){return this.attList(l,r,a,c,h)},e.prototype.ent=function(l,r){return this.entity(l,r)},e.prototype.pent=function(l,r){return this.pEntity(l,r)},e.prototype.not=function(l,r){return this.notation(l,r)},e.prototype.up=function(){return this.root()||this.documentObject},e.prototype.isEqualNode=function(l){return e.__super__.isEqualNode.apply(this,arguments).isEqualNode(l)?l.name!==this.name||l.publicId!==this.publicId?!1:!(l.systemId!==this.systemId):!1},e}(u)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(R,D,n){"use strict";(function(){var y,f,x,v,m,p,d,u,s=function(o,e){for(var l in e)i.call(e,l)&&(o[l]=e[l]);function r(){this.constructor=o}return r.prototype=e.prototype,o.prototype=new r,o.__super__=e.prototype,o},i={}.hasOwnProperty;u=R("./Utility").isPlainObject,x=R("./XMLDOMImplementation"),f=R("./XMLDOMConfiguration"),m=R("./XMLNode"),y=R("./NodeType"),d=R("./XMLStringifier"),p=R("./XMLStringWriter"),D.exports=v=function(t){s(o,t);function o(e){o.__super__.constructor.call(this,null),this.name="#document",this.type=y.Document,this.documentURI=null,this.domConfig=new f,e||(e={}),e.writer||(e.writer=new p),this.options=e,this.stringify=new d(e)}return Object.defineProperty(o.prototype,"implementation",{value:new x}),Object.defineProperty(o.prototype,"doctype",{get:function(){var l,r,a,c;for(c=this.children,r=0,a=c.length;r<a;r++)if(l=c[r],l.type===y.DocType)return l;return null}}),Object.defineProperty(o.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(o.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(o.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(o.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].encoding:null}}),Object.defineProperty(o.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(o.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(o.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(o.prototype,"origin",{get:function(){return null}}),Object.defineProperty(o.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(o.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(o.prototype,"contentType",{get:function(){return null}}),o.prototype.end=function(e){var l;return l={},e?u(e)&&(l=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(l))},o.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},o.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createProcessingInstruction=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.importNode=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createElementNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createAttributeNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagNameNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.renameNode=function(e,l,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createNodeIterator=function(e,l,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createTreeWalker=function(e,l,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o}(m)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(R,D,n){"use strict";(function(){var y,f,x,v,m,p,d,u,s,i,t,o,e,l,r,a,c,h,g,A,b,S,E,C,_={}.hasOwnProperty;C=R("./Utility"),S=C.isObject,b=C.isFunction,E=C.isPlainObject,A=C.getValue,y=R("./NodeType"),o=R("./XMLDocument"),l=R("./XMLElement"),v=R("./XMLCData"),m=R("./XMLComment"),a=R("./XMLRaw"),g=R("./XMLText"),r=R("./XMLProcessingInstruction"),i=R("./XMLDeclaration"),t=R("./XMLDocType"),p=R("./XMLDTDAttList"),u=R("./XMLDTDEntity"),d=R("./XMLDTDElement"),s=R("./XMLDTDNotation"),x=R("./XMLAttribute"),h=R("./XMLStringifier"),c=R("./XMLStringWriter"),f=R("./WriterState"),D.exports=e=function(){function T(w,O,I){var k;this.name="?xml",this.type=y.Document,w||(w={}),k={},w.writer?E(w.writer)&&(k=w.writer,w.writer=new c):w.writer=new c,this.options=w,this.writer=w.writer,this.writerOptions=this.writer.filterOptions(k),this.stringify=new h(w),this.onDataCallback=O||function(){},this.onEndCallback=I||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return T.prototype.createChildNode=function(w){var O,I,k,M,j,P,X,F;switch(w.type){case y.CData:this.cdata(w.value);break;case y.Comment:this.comment(w.value);break;case y.Element:k={},X=w.attribs;for(I in X){if(!_.call(X,I))continue;O=X[I],k[I]=O.value}this.node(w.name,k);break;case y.Dummy:this.dummy();break;case y.Raw:this.raw(w.value);break;case y.Text:this.text(w.value);break;case y.ProcessingInstruction:this.instruction(w.target,w.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+w.constructor.name)}for(F=w.children,j=0,P=F.length;j<P;j++)M=F[j],this.createChildNode(M),M.type===y.Element&&this.up();return this},T.prototype.dummy=function(){return this},T.prototype.node=function(w,O,I){var k;if(w==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(w));return this.openCurrent(),w=A(w),O==null&&(O={}),O=A(O),S(O)||(k=[O,I],I=k[0],O=k[1]),this.currentNode=new l(this,w,O),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,I!=null&&this.text(I),this},T.prototype.element=function(w,O,I){var k,M,j,P,X,F;if(this.currentNode&&this.currentNode.type===y.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(w)||S(w)||b(w))for(P=this.options.noValidation,this.options.noValidation=!0,F=new o(this.options).element("TEMP_ROOT"),F.element(w),this.options.noValidation=P,X=F.children,M=0,j=X.length;M<j;M++)k=X[M],this.createChildNode(k),k.type===y.Element&&this.up();else this.node(w,O,I);return this},T.prototype.attribute=function(w,O){var I,k;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(w));if(w!=null&&(w=A(w)),S(w))for(I in w){if(!_.call(w,I))continue;k=w[I],this.attribute(I,k)}else b(O)&&(O=O.apply()),this.options.keepNullAttributes&&O==null?this.currentNode.attribs[w]=new x(this,w,""):O!=null&&(this.currentNode.attribs[w]=new x(this,w,O));return this},T.prototype.text=function(w){var O;return this.openCurrent(),O=new g(this,w),this.onData(this.writer.text(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.cdata=function(w){var O;return this.openCurrent(),O=new v(this,w),this.onData(this.writer.cdata(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.comment=function(w){var O;return this.openCurrent(),O=new m(this,w),this.onData(this.writer.comment(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.raw=function(w){var O;return this.openCurrent(),O=new a(this,w),this.onData(this.writer.raw(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.instruction=function(w,O){var I,k,M,j,P;if(this.openCurrent(),w!=null&&(w=A(w)),O!=null&&(O=A(O)),Array.isArray(w))for(I=0,j=w.length;I<j;I++)k=w[I],this.instruction(k);else if(S(w))for(k in w){if(!_.call(w,k))continue;M=w[k],this.instruction(k,M)}else b(O)&&(O=O.apply()),P=new r(this,w,O),this.onData(this.writer.processingInstruction(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},T.prototype.declaration=function(w,O,I){var k;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return k=new i(this,w,O,I),this.onData(this.writer.declaration(k,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.doctype=function(w,O,I){if(this.openCurrent(),w==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new t(this,O,I),this.currentNode.rootNodeName=w,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},T.prototype.dtdElement=function(w,O){var I;return this.openCurrent(),I=new d(this,w,O),this.onData(this.writer.dtdElement(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.attList=function(w,O,I,k,M){var j;return this.openCurrent(),j=new p(this,w,O,I,k,M),this.onData(this.writer.dtdAttList(j,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.entity=function(w,O){var I;return this.openCurrent(),I=new u(this,!1,w,O),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.pEntity=function(w,O){var I;return this.openCurrent(),I=new u(this,!0,w,O),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.notation=function(w,O){var I;return this.openCurrent(),I=new s(this,w,O),this.onData(this.writer.dtdNotation(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},T.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},T.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},T.prototype.openNode=function(w){var O,I,k,M;if(!w.isOpen){if(!this.root&&this.currentLevel===0&&w.type===y.Element&&(this.root=w),I="",w.type===y.Element){this.writerOptions.state=f.OpenTag,I=this.writer.indent(w,this.writerOptions,this.currentLevel)+"<"+w.name,M=w.attribs;for(k in M){if(!_.call(M,k))continue;O=M[k],I+=this.writer.attribute(O,this.writerOptions,this.currentLevel)}I+=(w.children?">":"/>")+this.writer.endline(w,this.writerOptions,this.currentLevel),this.writerOptions.state=f.InsideTag}else this.writerOptions.state=f.OpenTag,I=this.writer.indent(w,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+w.rootNodeName,w.pubID&&w.sysID?I+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(I+=' SYSTEM "'+w.sysID+'"'),w.children?(I+=" [",this.writerOptions.state=f.InsideTag):(this.writerOptions.state=f.CloseTag,I+=">"),I+=this.writer.endline(w,this.writerOptions,this.currentLevel);return this.onData(I,this.currentLevel),w.isOpen=!0}},T.prototype.closeNode=function(w){var O;if(!w.isClosed)return O="",this.writerOptions.state=f.CloseTag,w.type===y.Element?O=this.writer.indent(w,this.writerOptions,this.currentLevel)+"</"+w.name+">"+this.writer.endline(w,this.writerOptions,this.currentLevel):O=this.writer.indent(w,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(w,this.writerOptions,this.currentLevel),this.writerOptions.state=f.None,this.onData(O,this.currentLevel),w.isClosed=!0},T.prototype.onData=function(w,O){return this.documentStarted=!0,this.onDataCallback(w,O+1)},T.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},T.prototype.debugInfo=function(w){return w==null?"":"node: <"+w+">"},T.prototype.ele=function(){return this.element.apply(this,arguments)},T.prototype.nod=function(w,O,I){return this.node(w,O,I)},T.prototype.txt=function(w){return this.text(w)},T.prototype.dat=function(w){return this.cdata(w)},T.prototype.com=function(w){return this.comment(w)},T.prototype.ins=function(w,O){return this.instruction(w,O)},T.prototype.dec=function(w,O,I){return this.declaration(w,O,I)},T.prototype.dtd=function(w,O,I){return this.doctype(w,O,I)},T.prototype.e=function(w,O,I){return this.element(w,O,I)},T.prototype.n=function(w,O,I){return this.node(w,O,I)},T.prototype.t=function(w){return this.text(w)},T.prototype.d=function(w){return this.cdata(w)},T.prototype.c=function(w){return this.comment(w)},T.prototype.r=function(w){return this.raw(w)},T.prototype.i=function(w,O){return this.instruction(w,O)},T.prototype.att=function(){return this.currentNode&&this.currentNode.type===y.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},T.prototype.a=function(){return this.currentNode&&this.currentNode.type===y.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},T.prototype.ent=function(w,O){return this.entity(w,O)},T.prototype.pent=function(w,O){return this.pEntity(w,O)},T.prototype.not=function(w,O){return this.notation(w,O)},T}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,p,d=function(i,t){for(var o in t)u.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;p=R("./XMLNode"),v=R("./NodeType"),D.exports=m=function(s){d(i,s);function i(t){i.__super__.constructor.call(this,t),this.type=v.Dummy}return i.prototype.clone=function(){return(0,f.default)(this)},i.prototype.toString=function(t){return""},i}(p)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,p,d,u,s,i,t,o,e=function(a,c){for(var h in c)l.call(c,h)&&(a[h]=c[h]);function g(){this.constructor=a}return g.prototype=c.prototype,a.prototype=new g,a.__super__=c.prototype,a},l={}.hasOwnProperty;o=R("./Utility"),t=o.isObject,i=o.isFunction,s=o.getValue,u=R("./XMLNode"),v=R("./NodeType"),m=R("./XMLAttribute"),d=R("./XMLNamedNodeMap"),D.exports=p=function(r){e(a,r);function a(c,h,g){var A,b,S,E;if(a.__super__.constructor.call(this,c),h==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(h),this.type=v.Element,this.attribs={},this.schemaTypeInfo=null,g!=null&&this.attribute(g),c.type===v.Document&&(this.isRoot=!0,this.documentObject=c,c.rootObject=this,c.children)){for(E=c.children,b=0,S=E.length;b<S;b++)if(A=E[b],A.type===v.DocType){A.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 d(this.attribs)),this.attributeMap}}),a.prototype.clone=function(){var c,h,g,A;g=(0,f.default)(this),g.isRoot&&(g.documentObject=null),g.attribs={},A=this.attribs;for(h in A){if(!l.call(A,h))continue;c=A[h],g.attribs[h]=c.clone()}return g.children=[],this.children.forEach(function(b){var S;return S=b.clone(),S.parent=g,g.children.push(S)}),g},a.prototype.attribute=function(c,h){var g,A;if(c!=null&&(c=s(c)),t(c))for(g in c){if(!l.call(c,g))continue;A=c[g],this.attribute(g,A)}else i(h)&&(h=h.apply()),this.options.keepNullAttributes&&h==null?this.attribs[c]=new m(this,c,""):h!=null&&(this.attribs[c]=new m(this,c,h));return this},a.prototype.removeAttribute=function(c){var h,g,A;if(c==null)throw new Error("Missing attribute name. "+this.debugInfo());if(c=s(c),Array.isArray(c))for(g=0,A=c.length;g<A;g++)h=c[g],delete this.attribs[h];else delete this.attribs[c];return this},a.prototype.toString=function(c){return this.options.writer.element(this,this.options.writer.filterOptions(c))},a.prototype.att=function(c,h){return this.attribute(c,h)},a.prototype.a=function(c,h){return this.attribute(c,h)},a.prototype.getAttribute=function(c){return this.attribs.hasOwnProperty(c)?this.attribs[c].value:null},a.prototype.setAttribute=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNode=function(c){return this.attribs.hasOwnProperty(c)?this.attribs[c]:null},a.prototype.setAttributeNode=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeAttributeNode=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setAttributeNS=function(c,h,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeAttributeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNodeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setAttributeNodeNS=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.hasAttribute=function(c){return this.attribs.hasOwnProperty(c)},a.prototype.hasAttributeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setIdAttribute=function(c,h){return this.attribs.hasOwnProperty(c)?this.attribs[c].isId:h},a.prototype.setIdAttributeNS=function(c,h,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setIdAttributeNode=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByClassName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(c){var h,g,A;if(!a.__super__.isEqualNode.apply(this,arguments).isEqualNode(c))return!1;if(c.namespaceURI!==this.namespaceURI)return!1;if(c.prefix!==this.prefix)return!1;if(c.localName!==this.localName)return!1;if(c.attribs.length!==this.attribs.length)return!1;for(h=g=0,A=this.attribs.length-1;0<=A?g<=A:g>=A;h=0<=A?++g:--g)if(!this.attribs[h].isEqualNode(c.attribs[h]))return!1;return!0},a}(u)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/keys"),f=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v;D.exports=v=function(){function m(p){this.nodes=p}return Object.defineProperty(m.prototype,"length",{get:function(){return(0,f.default)(this.nodes).length||0}}),m.prototype.clone=function(){return this.nodes=null},m.prototype.getNamedItem=function(p){return this.nodes[p]},m.prototype.setNamedItem=function(p){var d;return d=this.nodes[p.nodeName],this.nodes[p.nodeName]=p,d||null},m.prototype.removeNamedItem=function(p){var d;return d=this.nodes[p],delete this.nodes[p],d||null},m.prototype.item=function(p){return this.nodes[(0,f.default)(this.nodes)[p]]||null},m.prototype.getNamedItemNS=function(p,d){throw new Error("This DOM method is not implemented.")},m.prototype.setNamedItemNS=function(p){throw new Error("This DOM method is not implemented.")},m.prototype.removeNamedItemNS=function(p,d){throw new Error("This DOM method is not implemented.")},m}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(R,D,n){"use strict";(function(){var y,f,x,v,m,p,d,u,s,i,t,o,e,l,r,a,c,h,g,A={}.hasOwnProperty;g=R("./Utility"),h=g.isObject,c=g.isFunction,a=g.isEmpty,r=g.getValue,u=null,x=null,v=null,m=null,p=null,e=null,l=null,o=null,d=null,f=null,t=null,s=null,y=null,D.exports=i=function(){function b(S){this.parent=S,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,u||(u=R("./XMLElement"),x=R("./XMLCData"),v=R("./XMLComment"),m=R("./XMLDeclaration"),p=R("./XMLDocType"),e=R("./XMLRaw"),l=R("./XMLText"),o=R("./XMLProcessingInstruction"),d=R("./XMLDummy"),f=R("./NodeType"),t=R("./XMLNodeList"),s=R("./XMLNamedNodeMap"),y=R("./DocumentPosition"))}return Object.defineProperty(b.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(b.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(b.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(b.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(b.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new t(this.children)),this.childNodeList}}),Object.defineProperty(b.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(b.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(b.prototype,"previousSibling",{get:function(){var E;return E=this.parent.children.indexOf(this),this.parent.children[E-1]||null}}),Object.defineProperty(b.prototype,"nextSibling",{get:function(){var E;return E=this.parent.children.indexOf(this),this.parent.children[E+1]||null}}),Object.defineProperty(b.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(b.prototype,"textContent",{get:function(){var E,C,_,T,w;if(this.nodeType===f.Element||this.nodeType===f.DocumentFragment){for(w="",T=this.children,C=0,_=T.length;C<_;C++)E=T[C],E.textContent&&(w+=E.textContent);return w}else return null},set:function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),b.prototype.setParent=function(S){var E,C,_,T,w;for(this.parent=S,S&&(this.options=S.options,this.stringify=S.stringify),T=this.children,w=[],C=0,_=T.length;C<_;C++)E=T[C],w.push(E.setParent(this));return w},b.prototype.element=function(S,E,C){var _,T,w,O,I,k,M,j,P,X,F;if(k=null,E===null&&C==null&&(P=[{},null],E=P[0],C=P[1]),E==null&&(E={}),E=r(E),h(E)||(X=[E,C],C=X[0],E=X[1]),S!=null&&(S=r(S)),Array.isArray(S))for(w=0,M=S.length;w<M;w++)T=S[w],k=this.element(T);else if(c(S))k=this.element(S.apply());else if(h(S))for(I in S){if(!A.call(S,I))continue;if(F=S[I],c(F)&&(F=F.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&I.indexOf(this.stringify.convertAttKey)===0)k=this.attribute(I.substr(this.stringify.convertAttKey.length),F);else if(!this.options.separateArrayItems&&Array.isArray(F)&&a(F))k=this.dummy();else if(h(F)&&a(F))k=this.element(I);else if(!this.options.keepNullNodes&&F==null)k=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(F))for(O=0,j=F.length;O<j;O++)T=F[O],_={},_[I]=T,k=this.element(_);else h(F)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&I.indexOf(this.stringify.convertTextKey)===0?k=this.element(F):(k=this.element(I),k.element(F)):k=this.element(I,F)}else!this.options.keepNullNodes&&C===null?k=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&S.indexOf(this.stringify.convertTextKey)===0?k=this.text(C):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&S.indexOf(this.stringify.convertCDataKey)===0?k=this.cdata(C):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&S.indexOf(this.stringify.convertCommentKey)===0?k=this.comment(C):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&S.indexOf(this.stringify.convertRawKey)===0?k=this.raw(C):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&S.indexOf(this.stringify.convertPIKey)===0?k=this.instruction(S.substr(this.stringify.convertPIKey.length),C):k=this.node(S,E,C);if(k==null)throw new Error("Could not create any elements with: "+S+". "+this.debugInfo());return k},b.prototype.insertBefore=function(S,E,C){var _,T,w,O,I;if(S!=null?S.type:void 0)return w=S,O=E,w.setParent(this),O?(T=children.indexOf(O),I=children.splice(T),children.push(w),Array.prototype.push.apply(children,I)):children.push(w),w;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(S));return T=this.parent.children.indexOf(this),I=this.parent.children.splice(T),_=this.parent.element(S,E,C),Array.prototype.push.apply(this.parent.children,I),_},b.prototype.insertAfter=function(S,E,C){var _,T,w;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(S));return T=this.parent.children.indexOf(this),w=this.parent.children.splice(T+1),_=this.parent.element(S,E,C),Array.prototype.push.apply(this.parent.children,w),_},b.prototype.remove=function(){var S,E;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return S=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[S,S-S+1].concat(E=[])),this.parent},b.prototype.node=function(S,E,C){var _,T;return S!=null&&(S=r(S)),E||(E={}),E=r(E),h(E)||(T=[E,C],C=T[0],E=T[1]),_=new u(this,S,E),C!=null&&_.text(C),this.children.push(_),_},b.prototype.text=function(S){var E;return h(S)&&this.element(S),E=new l(this,S),this.children.push(E),this},b.prototype.cdata=function(S){var E;return E=new x(this,S),this.children.push(E),this},b.prototype.comment=function(S){var E;return E=new v(this,S),this.children.push(E),this},b.prototype.commentBefore=function(S){var E,C,_;return C=this.parent.children.indexOf(this),_=this.parent.children.splice(C),E=this.parent.comment(S),Array.prototype.push.apply(this.parent.children,_),this},b.prototype.commentAfter=function(S){var E,C,_;return C=this.parent.children.indexOf(this),_=this.parent.children.splice(C+1),E=this.parent.comment(S),Array.prototype.push.apply(this.parent.children,_),this},b.prototype.raw=function(S){var E;return E=new e(this,S),this.children.push(E),this},b.prototype.dummy=function(){var S;return S=new d(this),S},b.prototype.instruction=function(S,E){var C,_,T,w,O;if(S!=null&&(S=r(S)),E!=null&&(E=r(E)),Array.isArray(S))for(w=0,O=S.length;w<O;w++)C=S[w],this.instruction(C);else if(h(S))for(C in S){if(!A.call(S,C))continue;_=S[C],this.instruction(C,_)}else c(E)&&(E=E.apply()),T=new o(this,S,E),this.children.push(T);return this},b.prototype.instructionBefore=function(S,E){var C,_,T;return _=this.parent.children.indexOf(this),T=this.parent.children.splice(_),C=this.parent.instruction(S,E),Array.prototype.push.apply(this.parent.children,T),this},b.prototype.instructionAfter=function(S,E){var C,_,T;return _=this.parent.children.indexOf(this),T=this.parent.children.splice(_+1),C=this.parent.instruction(S,E),Array.prototype.push.apply(this.parent.children,T),this},b.prototype.declaration=function(S,E,C){var _,T;return _=this.document(),T=new m(_,S,E,C),_.children.length===0?_.children.unshift(T):_.children[0].type===f.Declaration?_.children[0]=T:_.children.unshift(T),_.root()||_},b.prototype.dtd=function(S,E){var C,_,T,w,O,I,k,M,j,P;for(_=this.document(),T=new p(_,S,E),j=_.children,w=O=0,k=j.length;O<k;w=++O)if(C=j[w],C.type===f.DocType)return _.children[w]=T,T;for(P=_.children,w=I=0,M=P.length;I<M;w=++I)if(C=P[w],C.isRoot)return _.children.splice(w,0,T),T;return _.children.push(T),T},b.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},b.prototype.root=function(){var S;for(S=this;S;){if(S.type===f.Document)return S.rootObject;if(S.isRoot)return S;S=S.parent}},b.prototype.document=function(){var S;for(S=this;S;){if(S.type===f.Document)return S;S=S.parent}},b.prototype.end=function(S){return this.document().end(S)},b.prototype.prev=function(){var S;if(S=this.parent.children.indexOf(this),S<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[S-1]},b.prototype.next=function(){var S;if(S=this.parent.children.indexOf(this),S===-1||S===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[S+1]},b.prototype.importDocument=function(S){var E;return E=S.root().clone(),E.parent=this,E.isRoot=!1,this.children.push(E),this},b.prototype.debugInfo=function(S){var E,C;return S=S||this.name,S==null&&!((E=this.parent)!=null?E.name:void 0)?"":S==null?"parent: <"+this.parent.name+">":((C=this.parent)!=null?C.name:void 0)?"node: <"+S+">, parent: <"+this.parent.name+">":"node: <"+S+">"},b.prototype.ele=function(S,E,C){return this.element(S,E,C)},b.prototype.nod=function(S,E,C){return this.node(S,E,C)},b.prototype.txt=function(S){return this.text(S)},b.prototype.dat=function(S){return this.cdata(S)},b.prototype.com=function(S){return this.comment(S)},b.prototype.ins=function(S,E){return this.instruction(S,E)},b.prototype.doc=function(){return this.document()},b.prototype.dec=function(S,E,C){return this.declaration(S,E,C)},b.prototype.e=function(S,E,C){return this.element(S,E,C)},b.prototype.n=function(S,E,C){return this.node(S,E,C)},b.prototype.t=function(S){return this.text(S)},b.prototype.d=function(S){return this.cdata(S)},b.prototype.c=function(S){return this.comment(S)},b.prototype.r=function(S){return this.raw(S)},b.prototype.i=function(S,E){return this.instruction(S,E)},b.prototype.u=function(){return this.up()},b.prototype.importXMLBuilder=function(S){return this.importDocument(S)},b.prototype.replaceChild=function(S,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.removeChild=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.appendChild=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.hasChildNodes=function(){return this.children.length!==0},b.prototype.cloneNode=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isSupported=function(S,E){return!0},b.prototype.hasAttributes=function(){return this.attribs.length!==0},b.prototype.compareDocumentPosition=function(S){var E,C;return E=this,E===S?0:this.document()!==S.document()?(C=y.Disconnected|y.ImplementationSpecific,Math.random()<.5?C|=y.Preceding:C|=y.Following,C):E.isAncestor(S)?y.Contains|y.Preceding:E.isDescendant(S)?y.Contains|y.Following:E.isPreceding(S)?y.Preceding:y.Following},b.prototype.isSameNode=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.lookupPrefix=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isDefaultNamespace=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.lookupNamespaceURI=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isEqualNode=function(S){var E,C,_;if(S.nodeType!==this.nodeType)return!1;if(S.children.length!==this.children.length)return!1;for(E=C=0,_=this.children.length-1;0<=_?C<=_:C>=_;E=0<=_?++C:--C)if(!this.children[E].isEqualNode(S.children[E]))return!1;return!0},b.prototype.getFeature=function(S,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.setUserData=function(S,E,C){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getUserData=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.contains=function(S){return S?S===this||this.isDescendant(S):!1},b.prototype.isDescendant=function(S){var E,C,_,T,w;for(w=this.children,_=0,T=w.length;_<T;_++){if(E=w[_],S===E)return!0;if(C=E.isDescendant(S),C)return!0}return!1},b.prototype.isAncestor=function(S){return S.isDescendant(this)},b.prototype.isPreceding=function(S){var E,C;return E=this.treePosition(S),C=this.treePosition(this),E===-1||C===-1?!1:E<C},b.prototype.isFollowing=function(S){var E,C;return E=this.treePosition(S),C=this.treePosition(this),E===-1||C===-1?!1:E>C},b.prototype.treePosition=function(S){var E,C;return C=0,E=!1,this.foreachTreeNode(this.document(),function(_){if(C++,!E&&_===S)return E=!0}),E?C:-1},b.prototype.foreachTreeNode=function(S,E){var C,_,T,w,O;for(S||(S=this.document()),w=S.children,_=0,T=w.length;_<T;_++){if(C=w[_],O=E(C))return O;if(O=this.foreachTreeNode(C,E),O)return O}},b}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(R,D,n){"use strict";(function(){var y;D.exports=y=function(){function f(x){this.nodes=x}return Object.defineProperty(f.prototype,"length",{get:function(){return this.nodes.length||0}}),f.prototype.clone=function(){return this.nodes=null},f.prototype.item=function(x){return this.nodes[x]||null},f}()}).call(void 0)},{}],275:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,p,d=function(i,t){for(var o in t)u.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;v=R("./NodeType"),m=R("./XMLCharacterData"),D.exports=p=function(s){d(i,s);function i(t,o,e){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=v.ProcessingInstruction,this.target=this.stringify.insTarget(o),this.name=this.target,e&&(this.value=this.stringify.insValue(e))}return i.prototype.clone=function(){return(0,f.default)(this)},i.prototype.toString=function(t){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(t))},i.prototype.isEqualNode=function(t){return i.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)?!(t.target!==this.target):!1},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,p,d=function(i,t){for(var o in t)u.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;v=R("./NodeType"),m=R("./XMLNode"),D.exports=p=function(s){d(i,s);function i(t,o){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=v.Raw,this.value=this.stringify.raw(o)}return i.prototype.clone=function(){return(0,f.default)(this)},i.prototype.toString=function(t){return this.options.writer.raw(this,this.options.writer.filterOptions(t))},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(R,D,n){"use strict";(function(){var y,f,x,v,m=function(u,s){for(var i in s)p.call(s,i)&&(u[i]=s[i]);function t(){this.constructor=u}return t.prototype=s.prototype,u.prototype=new t,u.__super__=s.prototype,u},p={}.hasOwnProperty;y=R("./NodeType"),v=R("./XMLWriterBase"),f=R("./WriterState"),D.exports=x=function(d){m(u,d);function u(s,i){this.stream=s,u.__super__.constructor.call(this,i)}return u.prototype.endline=function(s,i,t){return s.isLastRootNode&&i.state===f.CloseTag?"":u.__super__.endline.call(this,s,i,t)},u.prototype.document=function(s,i){var t,o,e,l,r,a,c,h,g;for(c=s.children,o=e=0,r=c.length;e<r;o=++e)t=c[o],t.isLastRootNode=o===s.children.length-1;for(i=this.filterOptions(i),h=s.children,g=[],l=0,a=h.length;l<a;l++)t=h[l],g.push(this.writeChildNode(t,i,0));return g},u.prototype.attribute=function(s,i,t){return this.stream.write(u.__super__.attribute.call(this,s,i,t))},u.prototype.cdata=function(s,i,t){return this.stream.write(u.__super__.cdata.call(this,s,i,t))},u.prototype.comment=function(s,i,t){return this.stream.write(u.__super__.comment.call(this,s,i,t))},u.prototype.declaration=function(s,i,t){return this.stream.write(u.__super__.declaration.call(this,s,i,t))},u.prototype.docType=function(s,i,t){var o,e,l,r;if(t||(t=0),this.openNode(s,i,t),i.state=f.OpenTag,this.stream.write(this.indent(s,i,t)),this.stream.write("<!DOCTYPE "+s.root().name),s.pubID&&s.sysID?this.stream.write(' PUBLIC "'+s.pubID+'" "'+s.sysID+'"'):s.sysID&&this.stream.write(' SYSTEM "'+s.sysID+'"'),s.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(s,i,t)),i.state=f.InsideTag,r=s.children,e=0,l=r.length;e<l;e++)o=r[e],this.writeChildNode(o,i,t+1);i.state=f.CloseTag,this.stream.write("]")}return i.state=f.CloseTag,this.stream.write(i.spaceBeforeSlash+">"),this.stream.write(this.endline(s,i,t)),i.state=f.None,this.closeNode(s,i,t)},u.prototype.element=function(s,i,t){var o,e,l,r,a,c,h,g,A,b;t||(t=0),this.openNode(s,i,t),i.state=f.OpenTag,this.stream.write(this.indent(s,i,t)+"<"+s.name),A=s.attribs;for(h in A){if(!p.call(A,h))continue;o=A[h],this.attribute(o,i,t)}if(l=s.children.length,r=l===0?null:s.children[0],l===0||s.children.every(function(S){return(S.type===y.Text||S.type===y.Raw)&&S.value===""}))i.allowEmpty?(this.stream.write(">"),i.state=f.CloseTag,this.stream.write("</"+s.name+">")):(i.state=f.CloseTag,this.stream.write(i.spaceBeforeSlash+"/>"));else if(i.pretty&&l===1&&(r.type===y.Text||r.type===y.Raw)&&r.value!=null)this.stream.write(">"),i.state=f.InsideTag,i.suppressPrettyCount++,g=!0,this.writeChildNode(r,i,t+1),i.suppressPrettyCount--,g=!1,i.state=f.CloseTag,this.stream.write("</"+s.name+">");else{for(this.stream.write(">"+this.endline(s,i,t)),i.state=f.InsideTag,b=s.children,a=0,c=b.length;a<c;a++)e=b[a],this.writeChildNode(e,i,t+1);i.state=f.CloseTag,this.stream.write(this.indent(s,i,t)+"</"+s.name+">")}return this.stream.write(this.endline(s,i,t)),i.state=f.None,this.closeNode(s,i,t)},u.prototype.processingInstruction=function(s,i,t){return this.stream.write(u.__super__.processingInstruction.call(this,s,i,t))},u.prototype.raw=function(s,i,t){return this.stream.write(u.__super__.raw.call(this,s,i,t))},u.prototype.text=function(s,i,t){return this.stream.write(u.__super__.text.call(this,s,i,t))},u.prototype.dtdAttList=function(s,i,t){return this.stream.write(u.__super__.dtdAttList.call(this,s,i,t))},u.prototype.dtdElement=function(s,i,t){return this.stream.write(u.__super__.dtdElement.call(this,s,i,t))},u.prototype.dtdEntity=function(s,i,t){return this.stream.write(u.__super__.dtdEntity.call(this,s,i,t))},u.prototype.dtdNotation=function(s,i,t){return this.stream.write(u.__super__.dtdNotation.call(this,s,i,t))},u}(v)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(R,D,n){"use strict";(function(){var y,f,x=function(p,d){for(var u in d)v.call(d,u)&&(p[u]=d[u]);function s(){this.constructor=p}return s.prototype=d.prototype,p.prototype=new s,p.__super__=d.prototype,p},v={}.hasOwnProperty;f=R("./XMLWriterBase"),D.exports=y=function(m){x(p,m);function p(d){p.__super__.constructor.call(this,d)}return p.prototype.document=function(d,u){var s,i,t,o,e;for(u=this.filterOptions(u),o="",e=d.children,i=0,t=e.length;i<t;i++)s=e[i],o+=this.writeChildNode(s,u,0);return u.pretty&&o.slice(-u.newline.length)===u.newline&&(o=o.slice(0,-u.newline.length)),o},p}(f)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(R,D,n){"use strict";(function(){var y,f=function(m,p){return function(){return m.apply(p,arguments)}},x={}.hasOwnProperty;D.exports=y=function(){function v(m){this.assertLegalName=f(this.assertLegalName,this),this.assertLegalChar=f(this.assertLegalChar,this);var p,d,u;m||(m={}),this.options=m,this.options.version||(this.options.version="1.0"),d=m.stringify||{};for(p in d){if(!x.call(d,p))continue;u=d[p],this[p]=u}}return v.prototype.name=function(m){return this.options.noValidation?m:this.assertLegalName(""+m||"")},v.prototype.text=function(m){return this.options.noValidation?m:this.assertLegalChar(this.textEscape(""+m||""))},v.prototype.cdata=function(m){return this.options.noValidation?m:(m=""+m||"",m=m.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(m))},v.prototype.comment=function(m){if(this.options.noValidation)return m;if(m=""+m||"",m.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+m);return this.assertLegalChar(m)},v.prototype.raw=function(m){return this.options.noValidation?m:""+m||""},v.prototype.attValue=function(m){return this.options.noValidation?m:this.assertLegalChar(this.attEscape(m=""+m||""))},v.prototype.insTarget=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.insValue=function(m){if(this.options.noValidation)return m;if(m=""+m||"",m.match(/\?>/))throw new Error("Invalid processing instruction value: "+m);return this.assertLegalChar(m)},v.prototype.xmlVersion=function(m){if(this.options.noValidation)return m;if(m=""+m||"",!m.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+m);return m},v.prototype.xmlEncoding=function(m){if(this.options.noValidation)return m;if(m=""+m||"",!m.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+m);return this.assertLegalChar(m)},v.prototype.xmlStandalone=function(m){return this.options.noValidation?m:m?"yes":"no"},v.prototype.dtdPubID=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdSysID=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdElementValue=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdAttType=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdAttDefault=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdEntityValue=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdNData=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.convertAttKey="@",v.prototype.convertPIKey="?",v.prototype.convertTextKey="#text",v.prototype.convertCDataKey="#cdata",v.prototype.convertCommentKey="#comment",v.prototype.convertRawKey="#raw",v.prototype.assertLegalChar=function(m){var p,d;if(this.options.noValidation)return m;if(p="",this.options.version==="1.0"){if(p=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,d=m.match(p))throw new Error("Invalid character in string: "+m+" at index "+d.index)}else if(this.options.version==="1.1"&&(p=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,d=m.match(p)))throw new Error("Invalid character in string: "+m+" at index "+d.index);return m},v.prototype.assertLegalName=function(m){var p;if(this.options.noValidation)return m;if(this.assertLegalChar(m),p=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!m.match(p))throw new Error("Invalid character in name");return m},v.prototype.textEscape=function(m){var p;return this.options.noValidation?m:(p=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,m.replace(p,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},v.prototype.attEscape=function(m){var p;return this.options.noValidation?m:(p=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,m.replace(p,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},v}()}).call(void 0)},{}],280:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,p,d=function(i,t){for(var o in t)u.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;v=R("./NodeType"),m=R("./XMLCharacterData"),D.exports=p=function(s){d(i,s);function i(t,o){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=v.Text,this.value=this.stringify.text(o)}return Object.defineProperty(i.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"wholeText",{get:function(){var o,e,l;for(l="",e=this.previousSibling;e;)l=e.data+l,e=e.previousSibling;for(l+=this.data,o=this.nextSibling;o;)l=l+o.data,o=o.nextSibling;return l}}),i.prototype.clone=function(){return(0,f.default)(this)},i.prototype.toString=function(t){return this.options.writer.text(this,this.options.writer.filterOptions(t))},i.prototype.splitText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.replaceWholeText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(R,D,n){"use strict";(function(){var y,f,x,v,m,p,d,u,s,i,t,o,e,l,r,a,c,h={}.hasOwnProperty;c=R("./Utility").assign,y=R("./NodeType"),s=R("./XMLDeclaration"),i=R("./XMLDocType"),x=R("./XMLCData"),v=R("./XMLComment"),o=R("./XMLElement"),l=R("./XMLRaw"),r=R("./XMLText"),e=R("./XMLProcessingInstruction"),t=R("./XMLDummy"),m=R("./XMLDTDAttList"),p=R("./XMLDTDElement"),d=R("./XMLDTDEntity"),u=R("./XMLDTDNotation"),f=R("./WriterState"),D.exports=a=function(){function g(A){var b,S,E;A||(A={}),this.options=A,S=A.writer||{};for(b in S){if(!h.call(S,b))continue;E=S[b],this["_"+b]=this[b],this[b]=E}}return g.prototype.filterOptions=function(A){var b,S,E,C,_,T,w,O;return A||(A={}),A=c({},this.options,A),b={writer:this},b.pretty=A.pretty||!1,b.allowEmpty=A.allowEmpty||!1,b.indent=(S=A.indent)!=null?S:" ",b.newline=(E=A.newline)!=null?E:`
|
|
|
`,b.offset=(C=A.offset)!=null?C:0,b.dontPrettyTextNodes=(_=(T=A.dontPrettyTextNodes)!=null?T:A.dontprettytextnodes)!=null?_:0,b.spaceBeforeSlash=(w=(O=A.spaceBeforeSlash)!=null?O:A.spacebeforeslash)!=null?w:"",b.spaceBeforeSlash===!0&&(b.spaceBeforeSlash=" "),b.suppressPrettyCount=0,b.user={},b.state=f.None,b},g.prototype.indent=function(A,b,S){var E;return!b.pretty||b.suppressPrettyCount?"":b.pretty&&(E=(S||0)+b.offset+1,E>0)?new Array(E).join(b.indent):""},g.prototype.endline=function(A,b,S){return!b.pretty||b.suppressPrettyCount?"":b.newline},g.prototype.attribute=function(A,b,S){var E;return this.openAttribute(A,b,S),E=" "+A.name+'="'+A.value+'"',this.closeAttribute(A,b,S),E},g.prototype.cdata=function(A,b,S){var E;return this.openNode(A,b,S),b.state=f.OpenTag,E=this.indent(A,b,S)+"<![CDATA[",b.state=f.InsideTag,E+=A.value,b.state=f.CloseTag,E+="]]>"+this.endline(A,b,S),b.state=f.None,this.closeNode(A,b,S),E},g.prototype.comment=function(A,b,S){var E;return this.openNode(A,b,S),b.state=f.OpenTag,E=this.indent(A,b,S)+"<!-- ",b.state=f.InsideTag,E+=A.value,b.state=f.CloseTag,E+=" -->"+this.endline(A,b,S),b.state=f.None,this.closeNode(A,b,S),E},g.prototype.declaration=function(A,b,S){var E;return this.openNode(A,b,S),b.state=f.OpenTag,E=this.indent(A,b,S)+"<?xml",b.state=f.InsideTag,E+=' version="'+A.version+'"',A.encoding!=null&&(E+=' encoding="'+A.encoding+'"'),A.standalone!=null&&(E+=' standalone="'+A.standalone+'"'),b.state=f.CloseTag,E+=b.spaceBeforeSlash+"?>",E+=this.endline(A,b,S),b.state=f.None,this.closeNode(A,b,S),E},g.prototype.docType=function(A,b,S){var E,C,_,T,w;if(S||(S=0),this.openNode(A,b,S),b.state=f.OpenTag,T=this.indent(A,b,S),T+="<!DOCTYPE "+A.root().name,A.pubID&&A.sysID?T+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.sysID&&(T+=' SYSTEM "'+A.sysID+'"'),A.children.length>0){for(T+=" [",T+=this.endline(A,b,S),b.state=f.InsideTag,w=A.children,C=0,_=w.length;C<_;C++)E=w[C],T+=this.writeChildNode(E,b,S+1);b.state=f.CloseTag,T+="]"}return b.state=f.CloseTag,T+=b.spaceBeforeSlash+">",T+=this.endline(A,b,S),b.state=f.None,this.closeNode(A,b,S),T},g.prototype.element=function(A,b,S){var E,C,_,T,w,O,I,k,M,j,P,X,F,U;S||(S=0),j=!1,P="",this.openNode(A,b,S),b.state=f.OpenTag,P+=this.indent(A,b,S)+"<"+A.name,X=A.attribs;for(M in X){if(!h.call(X,M))continue;E=X[M],P+=this.attribute(E,b,S)}if(_=A.children.length,T=_===0?null:A.children[0],_===0||A.children.every(function(K){return(K.type===y.Text||K.type===y.Raw)&&K.value===""}))b.allowEmpty?(P+=">",b.state=f.CloseTag,P+="</"+A.name+">"+this.endline(A,b,S)):(b.state=f.CloseTag,P+=b.spaceBeforeSlash+"/>"+this.endline(A,b,S));else if(b.pretty&&_===1&&(T.type===y.Text||T.type===y.Raw)&&T.value!=null)P+=">",b.state=f.InsideTag,b.suppressPrettyCount++,j=!0,P+=this.writeChildNode(T,b,S+1),b.suppressPrettyCount--,j=!1,b.state=f.CloseTag,P+="</"+A.name+">"+this.endline(A,b,S);else{if(b.dontPrettyTextNodes){for(F=A.children,w=0,I=F.length;w<I;w++)if(C=F[w],(C.type===y.Text||C.type===y.Raw)&&C.value!=null){b.suppressPrettyCount++,j=!0;break}}for(P+=">"+this.endline(A,b,S),b.state=f.InsideTag,U=A.children,O=0,k=U.length;O<k;O++)C=U[O],P+=this.writeChildNode(C,b,S+1);b.state=f.CloseTag,P+=this.indent(A,b,S)+"</"+A.name+">",j&&b.suppressPrettyCount--,P+=this.endline(A,b,S),b.state=f.None}return this.closeNode(A,b,S),P},g.prototype.writeChildNode=function(A,b,S){switch(A.type){case y.CData:return this.cdata(A,b,S);case y.Comment:return this.comment(A,b,S);case y.Element:return this.element(A,b,S);case y.Raw:return this.raw(A,b,S);case y.Text:return this.text(A,b,S);case y.ProcessingInstruction:return this.processingInstruction(A,b,S);case y.Dummy:return"";case y.Declaration:return this.declaration(A,b,S);case y.DocType:return this.docType(A,b,S);case y.AttributeDeclaration:return this.dtdAttList(A,b,S);case y.ElementDeclaration:return this.dtdElement(A,b,S);case y.EntityDeclaration:return this.dtdEntity(A,b,S);case y.NotationDeclaration:return this.dtdNotation(A,b,S);default:throw new Error("Unknown XML node type: "+A.constructor.name)}},g.prototype.processingInstruction=function(A,b,S){var E;return this.openNode(A,b,S),b.state=f.OpenTag,E=this.indent(A,b,S)+"<?",b.state=f.InsideTag,E+=A.target,A.value&&(E+=" "+A.value),b.state=f.CloseTag,E+=b.spaceBeforeSlash+"?>",E+=this.endline(A,b,S),b.state=f.None,this.closeNode(A,b,S),E},g.prototype.raw=function(A,b,S){var E;return this.openNode(A,b,S),b.state=f.OpenTag,E=this.indent(A,b,S),b.state=f.InsideTag,E+=A.value,b.state=f.CloseTag,E+=this.endline(A,b,S),b.state=f.None,this.closeNode(A,b,S),E},g.prototype.text=function(A,b,S){var E;return this.openNode(A,b,S),b.state=f.OpenTag,E=this.indent(A,b,S),b.state=f.InsideTag,E+=A.value,b.state=f.CloseTag,E+=this.endline(A,b,S),b.state=f.None,this.closeNode(A,b,S),E},g.prototype.dtdAttList=function(A,b,S){var E;return this.openNode(A,b,S),b.state=f.OpenTag,E=this.indent(A,b,S)+"<!ATTLIST",b.state=f.InsideTag,E+=" "+A.elementName+" "+A.attributeName+" "+A.attributeType,A.defaultValueType!=="#DEFAULT"&&(E+=" "+A.defaultValueType),A.defaultValue&&(E+=' "'+A.defaultValue+'"'),b.state=f.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(A,b,S),b.state=f.None,this.closeNode(A,b,S),E},g.prototype.dtdElement=function(A,b,S){var E;return this.openNode(A,b,S),b.state=f.OpenTag,E=this.indent(A,b,S)+"<!ELEMENT",b.state=f.InsideTag,E+=" "+A.name+" "+A.value,b.state=f.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(A,b,S),b.state=f.None,this.closeNode(A,b,S),E},g.prototype.dtdEntity=function(A,b,S){var E;return this.openNode(A,b,S),b.state=f.OpenTag,E=this.indent(A,b,S)+"<!ENTITY",b.state=f.InsideTag,A.pe&&(E+=" %"),E+=" "+A.name,A.value?E+=' "'+A.value+'"':(A.pubID&&A.sysID?E+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.sysID&&(E+=' SYSTEM "'+A.sysID+'"'),A.nData&&(E+=" NDATA "+A.nData)),b.state=f.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(A,b,S),b.state=f.None,this.closeNode(A,b,S),E},g.prototype.dtdNotation=function(A,b,S){var E;return this.openNode(A,b,S),b.state=f.OpenTag,E=this.indent(A,b,S)+"<!NOTATION",b.state=f.InsideTag,E+=" "+A.name,A.pubID&&A.sysID?E+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.pubID?E+=' PUBLIC "'+A.pubID+'"':A.sysID&&(E+=' SYSTEM "'+A.sysID+'"'),b.state=f.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(A,b,S),b.state=f.None,this.closeNode(A,b,S),E},g.prototype.openNode=function(A,b,S){},g.prototype.closeNode=function(A,b,S){},g.prototype.openAttribute=function(A,b,S){},g.prototype.closeAttribute=function(A,b,S){},g}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(R,D,n){"use strict";(function(){var y,f,x,v,m,p,d,u,s,i;i=R("./Utility"),u=i.assign,s=i.isFunction,x=R("./XMLDOMImplementation"),v=R("./XMLDocument"),m=R("./XMLDocumentCB"),d=R("./XMLStringWriter"),p=R("./XMLStreamWriter"),y=R("./NodeType"),f=R("./WriterState"),D.exports.create=function(t,o,e,l){var r,a;if(t==null)throw new Error("Root element needs a name.");return l=u({},o,e,l),r=new v(l),a=r.element(t),l.headless||(r.declaration(l),(l.pubID!=null||l.sysID!=null)&&r.dtd(l)),a},D.exports.begin=function(t,o,e){var l;return s(t)&&(l=[t,o],o=l[0],e=l[1],t={}),o?new m(t,o,e):new v(t)},D.exports.stringWriter=function(t){return new d(t)},D.exports.streamWriter=function(t,o){return new p(t,o)},D.exports.implementation=new x,D.exports.nodeType=y,D.exports.writerState=f}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(R,D,n){D.exports=f;var y=Object.prototype.hasOwnProperty;function f(){for(var x={},v=0;v<arguments.length;v++){var m=arguments[v];for(var p in m)y.call(m,p)&&(x[p]=m[p])}return x}},{}],284:[function(R,D,n){"use strict";var y=R("buffer").Buffer,f=R("./sha"),x=R("./md5"),v={sha1:f,md5:x},m=64,p=y.alloc(m);p.fill(0);function d(i,t,o){y.isBuffer(t)||(t=y.from(t)),y.isBuffer(o)||(o=y.from(o)),t.length>m?t=i(t):t.length<m&&(t=y.concat([t,p],m));for(var e=y.alloc(m),l=y.alloc(m),r=0;r<m;r++)e[r]=t[r]^54,l[r]=t[r]^92;var a=i(y.concat([e,o]));return i(y.concat([l,a]))}function u(i,t){i=i||"sha1";var o=v[i],e=[],l=0;return o||s("algorithm:",i,"is not yet supported"),{update:function(a){return y.isBuffer(a)||(a=y.from(a)),e.push(a),l+=a.length,this},digest:function(a){var c=y.concat(e),h=t?d(o,t,c):o(c);return e=null,a?h.toString(a):h}}}function s(){var i=[].slice.call(arguments).join(" ");throw new Error([i,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}n.createHash=function(i){return u(i)},n.createHmac=function(i,t){return u(i,t)},n.createCredentials=function(){s("sorry,createCredentials is not implemented yet")},n.createCipher=function(){s("sorry,createCipher is not implemented yet")},n.createCipheriv=function(){s("sorry,createCipheriv is not implemented yet")},n.createDecipher=function(){s("sorry,createDecipher is not implemented yet")},n.createDecipheriv=function(){s("sorry,createDecipheriv is not implemented yet")},n.createSign=function(){s("sorry,createSign is not implemented yet")},n.createVerify=function(){s("sorry,createVerify is not implemented yet")},n.createDiffieHellman=function(){s("sorry,createDiffieHellman is not implemented yet")},n.pbkdf2=function(){s("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(R,D,n){"use strict";var y=R("buffer").Buffer,f=4,x=y.alloc(f);x.fill(0);var v=8;function m(u,s){if(u.length%f!==0){var i=u.length+(f-u.length%f);u=y.concat([u,x],i)}for(var t=[],o=s?u.readInt32BE:u.readInt32LE,e=0;e<u.length;e+=f)t.push(o.call(u,e));return t}function p(u,s,i){for(var t=y.alloc(s),o=i?t.writeInt32BE:t.writeInt32LE,e=0;e<u.length;e++)o.call(t,u[e],e*4,!0);return t}function d(u,s,i,t){y.isBuffer(u)||(u=y.from(u));var o=s(m(u,t),u.length*v);return p(o,i,t)}D.exports={hash:d}},{buffer:73}],286:[function(R,D,n){"use strict";var y=R("./helpers");function f(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function x(t,o){t[o>>5]|=128<<o%32,t[(o+64>>>9<<4)+14]=o;for(var e=1732584193,l=-271733879,r=-1732584194,a=271733878,c=0;c<t.length;c+=16){var h=e,g=l,A=r,b=a;e=m(e,l,r,a,t[c+0],7,-680876936),a=m(a,e,l,r,t[c+1],12,-389564586),r=m(r,a,e,l,t[c+2],17,606105819),l=m(l,r,a,e,t[c+3],22,-1044525330),e=m(e,l,r,a,t[c+4],7,-176418897),a=m(a,e,l,r,t[c+5],12,1200080426),r=m(r,a,e,l,t[c+6],17,-1473231341),l=m(l,r,a,e,t[c+7],22,-45705983),e=m(e,l,r,a,t[c+8],7,1770035416),a=m(a,e,l,r,t[c+9],12,-1958414417),r=m(r,a,e,l,t[c+10],17,-42063),l=m(l,r,a,e,t[c+11],22,-1990404162),e=m(e,l,r,a,t[c+12],7,1804603682),a=m(a,e,l,r,t[c+13],12,-40341101),r=m(r,a,e,l,t[c+14],17,-1502002290),l=m(l,r,a,e,t[c+15],22,1236535329),e=p(e,l,r,a,t[c+1],5,-165796510),a=p(a,e,l,r,t[c+6],9,-1069501632),r=p(r,a,e,l,t[c+11],14,643717713),l=p(l,r,a,e,t[c+0],20,-373897302),e=p(e,l,r,a,t[c+5],5,-701558691),a=p(a,e,l,r,t[c+10],9,38016083),r=p(r,a,e,l,t[c+15],14,-660478335),l=p(l,r,a,e,t[c+4],20,-405537848),e=p(e,l,r,a,t[c+9],5,568446438),a=p(a,e,l,r,t[c+14],9,-1019803690),r=p(r,a,e,l,t[c+3],14,-187363961),l=p(l,r,a,e,t[c+8],20,1163531501),e=p(e,l,r,a,t[c+13],5,-1444681467),a=p(a,e,l,r,t[c+2],9,-51403784),r=p(r,a,e,l,t[c+7],14,1735328473),l=p(l,r,a,e,t[c+12],20,-1926607734),e=d(e,l,r,a,t[c+5],4,-378558),a=d(a,e,l,r,t[c+8],11,-2022574463),r=d(r,a,e,l,t[c+11],16,1839030562),l=d(l,r,a,e,t[c+14],23,-35309556),e=d(e,l,r,a,t[c+1],4,-1530992060),a=d(a,e,l,r,t[c+4],11,1272893353),r=d(r,a,e,l,t[c+7],16,-155497632),l=d(l,r,a,e,t[c+10],23,-1094730640),e=d(e,l,r,a,t[c+13],4,681279174),a=d(a,e,l,r,t[c+0],11,-358537222),r=d(r,a,e,l,t[c+3],16,-722521979),l=d(l,r,a,e,t[c+6],23,76029189),e=d(e,l,r,a,t[c+9],4,-640364487),a=d(a,e,l,r,t[c+12],11,-421815835),r=d(r,a,e,l,t[c+15],16,530742520),l=d(l,r,a,e,t[c+2],23,-995338651),e=u(e,l,r,a,t[c+0],6,-198630844),a=u(a,e,l,r,t[c+7],10,1126891415),r=u(r,a,e,l,t[c+14],15,-1416354905),l=u(l,r,a,e,t[c+5],21,-57434055),e=u(e,l,r,a,t[c+12],6,1700485571),a=u(a,e,l,r,t[c+3],10,-1894986606),r=u(r,a,e,l,t[c+10],15,-1051523),l=u(l,r,a,e,t[c+1],21,-2054922799),e=u(e,l,r,a,t[c+8],6,1873313359),a=u(a,e,l,r,t[c+15],10,-30611744),r=u(r,a,e,l,t[c+6],15,-1560198380),l=u(l,r,a,e,t[c+13],21,1309151649),e=u(e,l,r,a,t[c+4],6,-145523070),a=u(a,e,l,r,t[c+11],10,-1120210379),r=u(r,a,e,l,t[c+2],15,718787259),l=u(l,r,a,e,t[c+9],21,-343485551),e=s(e,h),l=s(l,g),r=s(r,A),a=s(a,b)}return Array(e,l,r,a)}function v(t,o,e,l,r,a){return s(i(s(s(o,t),s(l,a)),r),e)}function m(t,o,e,l,r,a,c){return v(o&e|~o&l,t,o,r,a,c)}function p(t,o,e,l,r,a,c){return v(o&l|e&~l,t,o,r,a,c)}function d(t,o,e,l,r,a,c){return v(o^e^l,t,o,r,a,c)}function u(t,o,e,l,r,a,c){return v(e^(o|~l),t,o,r,a,c)}function s(t,o){var e=(t&65535)+(o&65535),l=(t>>16)+(o>>16)+(e>>16);return l<<16|e&65535}function i(t,o){return t<<o|t>>>32-o}D.exports=function(o){return y.hash(o,x,16)}},{"./helpers":285}],287:[function(R,D,n){"use strict";var y=R("./helpers");function f(d,u){d[u>>5]|=128<<24-u%32,d[(u+64>>9<<4)+15]=u;for(var s=Array(80),i=1732584193,t=-271733879,o=-1732584194,e=271733878,l=-1009589776,r=0;r<d.length;r+=16){for(var a=i,c=t,h=o,g=e,A=l,b=0;b<80;b++){b<16?s[b]=d[r+b]:s[b]=p(s[b-3]^s[b-8]^s[b-14]^s[b-16],1);var S=m(m(p(i,5),x(b,t,o,e)),m(m(l,s[b]),v(b)));l=e,e=o,o=p(t,30),t=i,i=S}i=m(i,a),t=m(t,c),o=m(o,h),e=m(e,g),l=m(l,A)}return Array(i,t,o,e,l)}function x(d,u,s,i){return d<20?u&s|~u&i:d<40?u^s^i:d<60?u&s|u&i|s&i:u^s^i}function v(d){return d<20?1518500249:d<40?1859775393:d<60?-1894007588:-899497514}function m(d,u){var s=(d&65535)+(u&65535),i=(d>>16)+(u>>16)+(s>>16);return i<<16|s&65535}function p(d,u){return d<<u|d>>>32-u}D.exports=function(u){return y.hash(u,f,20,!0)}},{"./helpers":285}],288:[function(R,D,n){"use strict";D.exports=function(){return function(){}}},{}],289:[function(R,D,n){(function(y){"use strict";var f=R("babel-runtime/helpers/typeof"),x=v(f);function v(i){return i&&i.__esModule?i:{default:i}}var m=R("stream"),p=m.Stream,d=R("../lib/common/utils/isArray"),u=d.isArray;D.exports.string=function(t){return typeof t=="string"},D.exports.array=u,D.exports.buffer=y.isBuffer;function s(i){return i instanceof p}D.exports.writableStream=function(t){return s(t)&&typeof t._write=="function"&&(0,x.default)(t._writableState)==="object"}}).call(this,{isBuffer:R("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(R,D,n){"use strict";n.encodeURIComponent=function(y){try{return encodeURIComponent(y)}catch(f){return y}},n.escape=R("escape-html"),n.timestamp=function(f){if(f){var x=f;return typeof x=="string"&&(x=Number(x)),String(f).length===10&&(x*=1e3),new Date(x)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(R,D,n){(function(y,f){"use strict";var x=R("babel-runtime/core-js/json/stringify"),v=d(x),m=R("babel-runtime/helpers/typeof"),p=d(m);function d(b){return b&&b.__esModule?b:{default:b}}var u=R("util"),s=R("url"),i=R("http"),t=R("https"),o=R("debug")("urllib"),e=R("humanize-ms"),l,r=0,a=Math.pow(2,31)-10,c=/^https?:\/\//i;function h(b,S){return b===void 0?S:b}function g(b,S){return function(E,C,_){if(E)return S(E);b({data:C,status:_.statusCode,headers:_.headers,res:_})}}n.TIMEOUTS=[e("300s"),e("300s")];var A=["json","text"];n.request=function(S,E,C){return arguments.length===2&&typeof E=="function"&&(C=E,E=null),typeof C=="function"?n.requestWithCallback(S,E,C):(l||(l=R("any-promise")),new l(function(_,T){n.requestWithCallback(S,E,g(_,T))}))},n.requestWithCallback=function(S,E,C){if(!S||typeof S!="string"&&(typeof S=="undefined"?"undefined":(0,p.default)(S))!=="object"){var _=u.format("expect request url to be a string or a http request options, but got %j",S);throw new Error(_)}arguments.length===2&&typeof E=="function"&&(C=E,E=null),E=E||{},r>=a&&(r=0);var T=++r;E.requestUrls=E.requestUrls||[];var w={requestId:T,url:S,args:E,ctx:E.ctx};E.emitter&&E.emitter.emit("request",w),E.timeout=E.timeout||n.TIMEOUTS,E.maxRedirects=E.maxRedirects||10,E.streaming=E.streaming||E.customResponse;var O=Date.now(),I;typeof S=="string"?(c.test(S)||(S="http://"+S),I=s.parse(S)):I=S;var k=(E.type||E.method||I.method||"GET").toUpperCase(),M=I.port||80,j=i,P=h(E.agent,n.agent),X=E.fixJSONCtlChars;I.protocol==="https:"&&(j=t,P=h(E.httpsAgent,n.httpsAgent),I.port||(M=443));var F={host:I.hostname||I.host||"localhost",path:I.path||"/",method:k,port:M,agent:P,headers:E.headers||{},lookup:E.lookup};Array.isArray(E.timeout)?F.requestTimeout=E.timeout[E.timeout.length-1]:typeof E.timeout!="undefined"&&(F.requestTimeout=E.timeout);for(var U=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],K=0;K<U.length;K++){var z=U[K];E.hasOwnProperty(z)&&(F[z]=E[z])}F.rejectUnauthorized===!1&&!F.hasOwnProperty("secureOptions")&&(F.secureOptions=R("constants").SSL_OP_NO_TLSv1_2);var V=E.auth||I.auth;V&&(F.auth=V);var Q=E.content||E.data,G=k==="GET"||k==="HEAD"||E.dataAsQueryString;if(!E.content&&(Q&&!(typeof Q=="string"||f.isBuffer(Q))))if(G)Q=E.nestedQuerystring?qs.stringify(Q):querystring.stringify(Q);else{var te=F.headers["Content-Type"]||F.headers["content-type"];te||(E.contentType==="json"?te="application/json":te="application/x-www-form-urlencoded",F.headers["Content-Type"]=te),parseContentType(te).type==="application/json"?Q=(0,v.default)(Q):Q=E.nestedQuerystring?qs.stringify(Q):querystring.stringify(Q)}G&&Q&&(F.path+=(I.query?"&":"?")+Q,Q=null);var q=0;if(Q){var se=Q.length;f.isBuffer(Q)||(se=f.byteLength(Q)),q=F.headers["Content-Length"]=se}E.dataType==="json"&&(F.headers.Accept="application/json"),typeof E.beforeRequest=="function"&&E.beforeRequest(F);var re=null,xe=null,Oe=null,Me=!1,Qe=!1,Ve=0,ut=-1,Fe=!1,ue="",et="",he=null;E.timing&&(he={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function J(){re&&(clearTimeout(re),re=null)}function Y(){xe&&(clearTimeout(xe),xe=null)}function $(He,er,ct){if(Y(),!C){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),T,y.pid,F.method,S),He&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),T,y.pid,He.name,He.message,He.stack);return}var Kt=C;C=null;var fr={};if(ct&&(ut=ct.statusCode,fr=ct.headers),ut===401&&fr["www-authenticate"]&&(!E.headers||!E.headers.Authorization)&&E.digestAuth){var Gt=fr["www-authenticate"];if(Gt.indexOf("Digest ")>=0)return o("Request#%d %s: got digest auth header WWW-Authenticate: %s",T,S,Gt),E.headers=E.headers||{},E.headers.Authorization=digestAuthHeader(F.method,F.path,Gt,E.digestAuth),o("Request#%d %s: auth with digest header: %s",T,S,E.headers.Authorization),ct.headers["set-cookie"]&&(E.headers.Cookie=ct.headers["set-cookie"].join(";")),n.requestWithCallback(S,E,Kt)}var Pt=Date.now()-O;he&&(he.contentDownload=Pt),o("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Pt,Ve,ut,F.method,F.host,F.path,Qe,he);var Xt={status:ut,statusCode:ut,headers:fr,size:Ve,aborted:Fe,rt:Pt,keepAliveSocket:Qe,data:er,requestUrls:E.requestUrls,timing:he,remoteAddress:ue,remotePort:et};if(He){var Ge="";P&&typeof P.getCurrentStatus=="function"&&(Ge=", agent status: "+(0,v.default)(P.getCurrentStatus())),He.message+=", "+F.method+" "+S+" "+ut+" (connected: "+Me+", keepalive socket: "+Qe+Ge+`)
|
|
|
headers: `+(0,v.default)(fr),He.data=er,He.path=F.path,He.status=ut,He.headers=fr,He.res=Xt}Kt(He,er,E.streaming?ct:Xt),E.emitter&&(w.url=S,w.socket=St&&St.connection,w.options=F,w.size=q,E.emitter.emit("response",{requestId:T,error:He,ctx:E.ctx,req:w,res:Xt}))}function de(He){var er=null;if(E.followRedirect&&statuses.redirect[He.statusCode]){E._followRedirectCount=(E._followRedirectCount||0)+1;var ct=He.headers.location;if(!ct)er=new Error("Got statusCode "+He.statusCode+" but cannot resolve next location from headers"),er.name="FollowRedirectError";else if(E._followRedirectCount>E.maxRedirects)er=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+S),er.name="MaxRedirectError";else{var Kt=E.formatRedirectUrl?E.formatRedirectUrl(S,ct):s.resolve(S,ct);o("Request#%d %s: `redirected` from %s to %s",T,F.path,S,Kt),Y(),E.headers&&E.headers.Host&&c.test(ct)&&(E.headers.Host=null);var fr=C;return C=null,n.requestWithCallback(Kt,E,fr),{redirect:!0,error:null}}}return{redirect:!1,error:er}}!F.headers["User-Agent"]&&!F.headers["user-agent"]&&(F.headers["User-Agent"]=navigator.userAgent),E.gzip&&(!F.headers["Accept-Encoding"]&&!F.headers["accept-encoding"]&&(F.headers["Accept-Encoding"]="gzip"));function be(He,er,ct){var Kt=He.headers["content-encoding"];return ct(null,er,Kt)}var Ce=E.writeStream;o("Request#%d %s %s with headers %j, options.path: %s",T,k,S,F.headers,F.path),E.requestUrls.push(S);function Be(He){if(he&&(he.waiting=Date.now()-O),o("Request#%d %s `req response` event emit: status %d, headers: %j",T,S,He.statusCode,He.headers),E.streaming){var er=de(He);if(er.redirect){He.resume();return}return er.error?(He.resume(),$(er.error,null,He)):$(null,null,He)}if(He.on("close",function(){o("Request#%d %s: `res close` event emit, total size %d",T,S,Ve)}),He.on("error",function(){o("Request#%d %s: `res error` event emit, total size %d",T,S,Ve)}),He.on("aborted",function(){Fe=!0,o("Request#%d %s: `res aborted` event emit, total size %d",T,S,Ve)}),Ce){var er=de(He);if(er.redirect){He.resume();return}return er.error?(He.resume(),Ce.end(),$(er.error,null,He)):(E.consumeWriteStream===!1?He.on("end",$.bind(null,null,null,He)):isNode010||isNode012?first([[Ce,"close"],[He,"aborted"]],function(fr,Gt,Pt){o("Request#%d %s: writeStream or res %s event emitted",T,S,Pt),$(Oe||null,null,He)}):Ce.on("close",function(){o("Request#%d %s: writeStream close event emitted",T,S),$(Oe||null,null,He)}),He.pipe(Ce))}var ct=[];He.on("data",function(Kt){o("Request#%d %s: `res data` event emit, size %d",T,S,Kt.length),Ve+=Kt.length,ct.push(Kt)}),He.on("end",function(){var Kt=f.concat(ct,Ve);if(o("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",T,S,Ve,He._dumped),Oe)return $(Oe,Kt,He);var fr=de(He);if(fr.error)return $(fr.error,Kt,He);if(fr.redirect)return;be(He,Kt,function(Gt,Pt,Xt){if(Gt)return $(Gt,Kt,He);if(!Xt&&A.indexOf(E.dataType)>=0){try{Pt=decodeBodyByCharset(Pt,He)}catch(pe){return o("decodeBodyByCharset error: %s",pe),$(null,Pt,He)}if(E.dataType==="json")if(Ve===0)Pt=null;else{var Ge=parseJSON(Pt,X);Ge.error?Gt=Ge.error:Pt=Ge.data}}Fe&&o("Request#%d %s: Remote socket was terminated before `response.end()` was called",T,S),$(Gt,Pt,He)})})}var fe,we;Array.isArray(E.timeout)?(fe=e(E.timeout[0]),we=e(E.timeout[1])):fe=we=e(E.timeout),o("ConnectTimeout: %d, ResponseTimeout: %d",fe,we);function Re(){o("Connect timer ticking, timeout: %d",fe),re=setTimeout(function(){re=null,ut===-1&&(ut=-2);var He="Connect timeout for "+fe+"ms",er="ConnectionTimeoutError";St.socket||(er="SocketAssignTimeoutError",He+=", working sockets is full"),Oe=new Error(He),Oe.name=er,Oe.requestId=T,o("ConnectTimeout: Request#%d %s %s: %s, connected: %s",T,S,Oe.name,He,Me),ft()},fe)}function rt(){o("Response timer ticking, timeout: %d",we),xe=setTimeout(function(){xe=null;var He="Response timeout for "+we+"ms",er="ResponseTimeoutError";Oe=new Error(He),Oe.name=er,Oe.requestId=T,o("ResponseTimeout: Request#%d %s %s: %s, connected: %s",T,S,Oe.name,He,Me),ft()},we)}var St;F.mode=E.mode?E.mode:"";try{St=j.request(F,Be)}catch(He){return $(He)}typeof window=="undefined"?Re():St.on("requestTimeout",function(){ut===-1&&(ut=-2);var He="Connect timeout for "+fe+"ms",er="ConnectionTimeoutError";Oe=new Error(He),Oe.name=er,Oe.requestId=T,ft()});function ft(){o("Request#%d %s abort, connected: %s",T,S,Me),St.socket||(Oe.noSocket=!0,$(Oe)),St.abort()}return he&&St.on("finish",function(){he.requestSent=Date.now()-O}),St.once("socket",function(He){he&&(he.queuing=Date.now()-O),isNode010&&He.socket&&(He=He.socket);var er=He.readyState;if(er==="opening"){He.once("lookup",function(ct,Kt,fr){o("Request#%d %s lookup: %s, %s, %s",T,S,ct,Kt,fr),he&&(he.dnslookup=Date.now()-O),Kt&&(ue=Kt)}),He.once("connect",function(){he&&(he.connected=Date.now()-O),J(),rt(),o("Request#%d %s new socket connected",T,S),Me=!0,ue||(ue=He.remoteAddress),et=He.remotePort});return}o("Request#%d %s reuse socket connected, readyState: %s",T,S,er),Me=!0,Qe=!0,ue||(ue=He.remoteAddress),et=He.remotePort,J(),rt()}),St.on("error",function(He){(He.name==="Error"||He.name==="TypeError")&&(He.name=Me?"ResponseError":"RequestError"),He.message+=' (req "error")',o("Request#%d %s `req error` event emit, %s: %s",T,S,He.name,He.message),$(Oe||He)}),Ce&&Ce.once("error",function(He){He.message+=' (writeStream "error")',Oe=He,o("Request#%d %s `writeStream error` event emit, %s: %s",T,S,He.name,He.message),ft()}),E.stream?(E.stream.pipe(St),E.stream.once("error",function(He){He.message+=' (stream "error")',Oe=He,o("Request#%d %s `readStream error` event emit, %s: %s",T,S,He.name,He.message),ft()})):St.end(Q),St.requestId=T,St}}).call(this,R("_process"),R("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("yLpj"))},n1HI:function(R,D,n){var y=n("hX1E"),f=y.normalizeRadian,x=Math.PI*2;function v(m,p,d,u,s,i,t,o,e){if(t===0)return!1;var l=t;o-=m,e-=p;var r=Math.sqrt(o*o+e*e);if(r-l>d||r+l<d)return!1;if(Math.abs(u-s)%x<1e-4)return!0;if(i){var a=u;u=f(s),s=f(a)}else u=f(u),s=f(s);u>s&&(s+=x);var c=Math.atan2(e,o);return c<0&&(c+=x),c>=u&&c<=s||c+x>=u&&c+x<=s}D.containStroke=v},n4Lv:function(R,D,n){var y=n("7hqr"),f=y.isDimensionStacked,x=n("bYtY"),v=x.map;function m(u,s,i){var t=u.getBaseAxis(),o=u.getOtherAxis(t),e=p(o,i),l=t.dim,r=o.dim,a=s.mapDimension(r),c=s.mapDimension(l),h=r==="x"||r==="radius"?1:0,g=v(u.dimensions,function(S){return s.mapDimension(S)}),A,b=s.getCalculationInfo("stackResultDimension");return(A|=f(s,g[0]))&&(g[0]=b),(A|=f(s,g[1]))&&(g[1]=b),{dataDimsForPoint:g,valueStart:e,valueAxisDim:r,baseAxisDim:l,stacked:!!A,valueDim:a,baseDim:c,baseDataOffset:h,stackedOverDimension:s.getCalculationInfo("stackedOverDimension")}}function p(u,s){var i=0,t=u.scale.getExtent();return s==="start"?i=t[0]:s==="end"?i=t[1]:t[0]>0?i=t[0]:t[1]<0&&(i=t[1]),i}function d(u,s,i,t){var o=NaN;u.stacked&&(o=i.get(i.getCalculationInfo("stackedOverDimension"),t)),isNaN(o)&&(o=u.valueStart);var e=u.baseDataOffset,l=[];return l[e]=i.get(u.baseDim,t),l[1-e]=o,s.dataToPoint(l)}D.prepareDataCoordInfo=m,D.getStackedOnPoint=d},n6Mw:function(R,D,n){var y=n("SrGk"),f=n("bYtY"),x=n("Fofx");function v(p,d){y.call(this,p,d,"clipPath","__clippath_in_use__")}f.inherits(v,y),v.prototype.update=function(p){var d=this.getSvgElement(p);d&&this.updateDom(d,p.__clipPaths,!1);var u=this.getTextSvgElement(p);u&&this.updateDom(u,p.__clipPaths,!0),this.markUsed(p)},v.prototype.updateDom=function(p,d,u){if(d&&d.length>0){var s=this.getDefs(!0),i=d[0],t,o,e=u?"_textDom":"_dom";i[e]?(o=i[e].getAttribute("id"),t=i[e],s.contains(t)||s.appendChild(t)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,t=this.createElement("clipPath"),t.setAttribute("id",o),s.appendChild(t),i[e]=t);var l=this.getSvgProxy(i);if(i.transform&&i.parent.invTransform&&!u){var r=Array.prototype.slice.call(i.transform);x.mul(i.transform,i.parent.invTransform,i.transform),l.brush(i),i.transform=r}else l.brush(i);var a=this.getSvgElement(i);t.innerHTML="",t.appendChild(a.cloneNode()),p.setAttribute("clip-path","url(#"+o+")"),d.length>1&&this.updateDom(t,d.slice(1),u)}else p&&p.setAttribute("clip-path","none")},v.prototype.markUsed=function(p){var d=this;p.__clipPaths&&f.each(p.__clipPaths,function(u){u._dom&&y.prototype.markUsed.call(d,u._dom),u._textDom&&y.prototype.markUsed.call(d,u._textDom)})};var m=v;R.exports=m},nCxF:function(R,D,n){var y=n("QBsz"),f=y.min,x=y.max,v=y.scale,m=y.distance,p=y.add,d=y.clone,u=y.sub;function s(i,t,o,e){var l=[],r=[],a=[],c=[],h,g,A,b;if(e){A=[Infinity,Infinity],b=[-Infinity,-Infinity];for(var S=0,E=i.length;S<E;S++)f(A,A,i[S]),x(b,b,i[S]);f(A,A,e[0]),x(b,b,e[1])}for(var S=0,E=i.length;S<E;S++){var C=i[S];if(o)h=i[S?S-1:E-1],g=i[(S+1)%E];else if(S===0||S===E-1){l.push(d(i[S]));continue}else h=i[S-1],g=i[S+1];u(r,g,h),v(r,r,t);var _=m(C,h),T=m(C,g),w=_+T;w!==0&&(_/=w,T/=w),v(a,r,-_),v(c,r,T);var O=p([],C,a),I=p([],C,c);e&&(x(O,O,A),f(O,O,b),x(I,I,A),f(I,I,b)),l.push(O),l.push(I)}return o&&l.push(l.shift()),l}R.exports=s},nKiI:function(R,D,n){var y=n("bYtY"),f=n("mFDi"),x=n("OELB"),v=x.parsePercent,m=x.MAX_SAFE_INTEGER,p=n("+TT/"),d=n("VaxA"),u=Math.max,s=Math.min,i=y.retrieve,t=y.each,o=["itemStyle","borderWidth"],e=["itemStyle","gapWidth"],l=["upperLabel","show"],r=["upperLabel","height"],a={seriesType:"treemap",reset:function(O,I,k,M){var j=k.getWidth(),P=k.getHeight(),X=O.option,F=p.getLayoutRect(O.getBoxLayoutParams(),{width:k.getWidth(),height:k.getHeight()}),U=X.size||[],K=v(i(F.width,U[0]),j),z=v(i(F.height,U[1]),P),V=M&&M.type,Q=["treemapZoomToNode","treemapRootToNode"],G=d.retrieveTargetInfo(M,Q,O),te=V==="treemapRender"||V==="treemapMove"?M.rootRect:null,q=O.getViewRoot(),se=d.getPathToRoot(q);if(V!=="treemapMove"){var re=V==="treemapZoomToNode"?C(O,G,q,K,z):te?[te.width,te.height]:[K,z],xe=X.sort;xe&&xe!=="asc"&&xe!=="desc"&&(xe="desc");var Oe={squareRatio:X.squareRatio,sort:xe,leafDepth:X.leafDepth};q.hostTree.clearLayouts();var Me={x:0,y:0,width:re[0],height:re[1],area:re[0]*re[1]};q.setLayout(Me),c(q,Oe,!1,0);var Me=q.getLayout();t(se,function(Ve,ut){var Fe=(se[ut+1]||q).getValue();Ve.setLayout(y.extend({dataExtent:[Fe,Fe],borderWidth:0,upperHeight:0},Me))})}var Qe=O.getData().tree.root;Qe.setLayout(_(F,te,G),!0),O.setLayoutInfo(F),T(Qe,new f(-F.x,-F.y,j,P),se,q,0)}};function c(O,I,k,M){var j,P;if(O.isRemoved())return;var X=O.getLayout();j=X.width,P=X.height;var F=O.getModel(),U=F.get(o),K=F.get(e)/2,z=w(F),V=Math.max(U,z),Q=U-K,G=V-K,F=O.getModel();O.setLayout({borderWidth:U,upperHeight:V,upperLabelHeight:z},!0),j=u(j-2*Q,0),P=u(P-Q-G,0);var te=j*P,q=h(O,F,te,I,k,M);if(!q.length)return;var se={x:Q,y:G,width:j,height:P},re=s(j,P),xe=Infinity,Oe=[];Oe.area=0;for(var Me=0,Qe=q.length;Me<Qe;){var Ve=q[Me];Oe.push(Ve),Oe.area+=Ve.getLayout().area;var ut=S(Oe,re,I.squareRatio);ut<=xe?(Me++,xe=ut):(Oe.area-=Oe.pop().getLayout().area,E(Oe,re,se,K,!1),re=s(se.width,se.height),Oe.length=Oe.area=0,xe=Infinity)}if(Oe.length&&E(Oe,re,se,K,!0),!k){var Fe=F.get("childrenVisibleMin");Fe!=null&&te<Fe&&(k=!0)}for(var Me=0,Qe=q.length;Me<Qe;Me++)c(q[Me],I,k,M+1)}function h(O,I,k,M,j,P){var X=O.children||[],F=M.sort;F!=="asc"&&F!=="desc"&&(F=null);var U=M.leafDepth!=null&&M.leafDepth<=P;if(j&&!U)return O.viewChildren=[];X=y.filter(X,function(G){return!G.isRemoved()}),A(X,F);var K=b(I,X,F);if(K.sum===0)return O.viewChildren=[];if(K.sum=g(I,k,K.sum,F,X),K.sum===0)return O.viewChildren=[];for(var z=0,V=X.length;z<V;z++){var Q=X[z].getValue()/K.sum*k;X[z].setLayout({area:Q})}return U&&(X.length&&O.setLayout({isLeafRoot:!0},!0),X.length=0),O.viewChildren=X,O.setLayout({dataExtent:K.dataExtent},!0),X}function g(O,I,k,M,j){if(!M)return k;for(var P=O.get("visibleMin"),X=j.length,F=X,U=X-1;U>=0;U--){var K=j[M==="asc"?X-U-1:U].getValue();K/k*I<P&&(F=U,k-=K)}return M==="asc"?j.splice(0,X-F):j.splice(F,X-F),k}function A(O,I){return I&&O.sort(function(k,M){var j=I==="asc"?k.getValue()-M.getValue():M.getValue()-k.getValue();return j===0?I==="asc"?k.dataIndex-M.dataIndex:M.dataIndex-k.dataIndex:j}),O}function b(O,I,k){for(var M=0,j=0,P=I.length;j<P;j++)M+=I[j].getValue();var X=O.get("visualDimension"),F;if(!I||!I.length)F=[NaN,NaN];else if(X==="value"&&k)F=[I[I.length-1].getValue(),I[0].getValue()],k==="asc"&&F.reverse();else{var F=[Infinity,-Infinity];t(I,function(K){var z=K.getValue(X);z<F[0]&&(F[0]=z),z>F[1]&&(F[1]=z)})}return{sum:M,dataExtent:F}}function S(O,I,k){for(var M=0,j=Infinity,P=0,X,F=O.length;P<F;P++)X=O[P].getLayout().area,X&&(X<j&&(j=X),X>M&&(M=X));var U=O.area*O.area,K=I*I*k;return U?u(K*M/U,U/(K*j)):Infinity}function E(O,I,k,M,j){var P=I===k.width?0:1,X=1-P,F=["x","y"],U=["width","height"],K=k[F[P]],z=I?O.area/I:0;(j||z>k[U[X]])&&(z=k[U[X]]);for(var V=0,Q=O.length;V<Q;V++){var G=O[V],te={},q=z?G.getLayout().area/z:0,se=te[U[X]]=u(z-2*M,0),re=k[F[P]]+k[U[P]]-K,xe=V===Q-1||re<q?re:q,Oe=te[U[P]]=u(xe-2*M,0);te[F[X]]=k[F[X]]+s(M,se/2),te[F[P]]=K+s(M,Oe/2),K+=xe,G.setLayout(te,!0)}k[F[X]]+=z,k[U[X]]-=z}function C(O,I,k,M,j){var P=(I||{}).node,X=[M,j];if(!P||P===k)return X;for(var F,U=M*j,K=U*O.option.zoomToNodeRatio;F=P.parentNode;){for(var z=0,V=F.children,Q=0,G=V.length;Q<G;Q++)z+=V[Q].getValue();var te=P.getValue();if(te===0)return X;K*=z/te;var q=F.getModel(),se=q.get(o),re=Math.max(se,w(q,se));K+=4*se*se+(3*se+re)*Math.pow(K,.5),K>m&&(K=m),P=F}K<U&&(K=U);var xe=Math.pow(K/U,.5);return[M*xe,j*xe]}function _(O,I,k){if(I)return{x:I.x,y:I.y};var M={x:0,y:0};if(!k)return M;var j=k.node,P=j.getLayout();if(!P)return M;for(var X=[P.width/2,P.height/2],F=j;F;){var U=F.getLayout();X[0]+=U.x,X[1]+=U.y,F=F.parentNode}return{x:O.width/2-X[0],y:O.height/2-X[1]}}function T(O,I,k,M,j){var P=O.getLayout(),X=k[j],F=X&&X===O;if(X&&!F||j===k.length&&O!==M)return;O.setLayout({isInView:!0,invisible:!F&&!I.intersect(P),isAboveViewRoot:F},!0);var U=new f(I.x-P.x,I.y-P.y,I.width,I.height);t(O.viewChildren||[],function(K){T(K,U,k,M,j+1)})}function w(O){return O.get(l)?O.get(r):0}R.exports=a},nPnh:function(R,D){var n=Math.round;function y(v,m,p){if(!m)return;var d=m.x1,u=m.x2,s=m.y1,i=m.y2;v.x1=d,v.x2=u,v.y1=s,v.y2=i;var t=p&&p.lineWidth;if(!t)return;n(d*2)===n(u*2)&&(v.x1=v.x2=x(d,t,!0)),n(s*2)===n(i*2)&&(v.y1=v.y2=x(s,t,!0))}function f(v,m,p){if(!m)return;var d=m.x,u=m.y,s=m.width,i=m.height;v.x=d,v.y=u,v.width=s,v.height=i;var t=p&&p.lineWidth;if(!t)return;v.x=x(d,t,!0),v.y=x(u,t,!0),v.width=Math.max(x(d+s,t,!1)-v.x,s===0?0:1),v.height=Math.max(x(u+i,t,!1)-v.y,i===0?0:1)}function x(v,m,p){if(!m)return v;var d=n(v*2);return(d+n(m))%2===0?d/2:(d+(p?1:-1))/2}D.subPixelOptimizeLine=y,D.subPixelOptimizeRect=f,D.subPixelOptimize=x},nRaC:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("0fbx"),v=n.n(x),m=n("OaEy"),p=n("R9oj")},nVfU:function(R,D,n){var y=n("bYtY"),f=n("OELB"),x=f.parsePercent,v=n("7hqr"),m=v.isDimensionStacked,p=n("zM3Q"),d="__ec_stack_",u=.5,s=typeof Float32Array!="undefined"?Float32Array:Array;function i(E){return E.get("stack")||d+E.seriesIndex}function t(E){return E.dim+E.index}function o(E){var C=[],_=E.axis,T="axis0";if(_.type!=="category")return;for(var w=_.getBandWidth(),O=0;O<E.count||0;O++)C.push(y.defaults({bandWidth:w,axisKey:T,stackId:d+O},E));for(var I=a(C),k=[],O=0;O<E.count;O++){var M=I[T][d+O];M.offsetCenter=M.offset+M.width/2,k.push(M)}return k}function e(E,C){var _=[];return C.eachSeriesByType(E,function(T){A(T)&&!b(T)&&_.push(T)}),_}function l(E){var C={};y.each(E,function(M){var j=M.coordinateSystem,P=j.getBaseAxis();if(P.type!=="time"&&P.type!=="value")return;for(var X=M.getData(),F=P.dim+"_"+P.index,U=X.mapDimension(P.dim),K=0,z=X.count();K<z;++K){var V=X.get(U,K);C[F]?C[F].push(V):C[F]=[V]}});var _=[];for(var T in C)if(C.hasOwnProperty(T)){var w=C[T];if(w){w.sort(function(M,j){return M-j});for(var O=null,I=1;I<w.length;++I){var k=w[I]-w[I-1];k>0&&(O=O===null?k:Math.min(O,k))}_[T]=O}}return _}function r(E){var C=l(E),_=[];return y.each(E,function(T){var w=T.coordinateSystem,O=w.getBaseAxis(),I=O.getExtent(),k;if(O.type==="category")k=O.getBandWidth();else if(O.type==="value"||O.type==="time"){var M=O.dim+"_"+O.index,j=C[M],P=Math.abs(I[1]-I[0]),X=O.scale.getExtent(),F=Math.abs(X[1]-X[0]);k=j?P/F*j:P}else{var U=T.getData();k=Math.abs(I[1]-I[0])/U.count()}var K=x(T.get("barWidth"),k),z=x(T.get("barMaxWidth"),k),V=x(T.get("barMinWidth")||1,k),Q=T.get("barGap"),G=T.get("barCategoryGap");_.push({bandWidth:k,barWidth:K,barMaxWidth:z,barMinWidth:V,barGap:Q,barCategoryGap:G,axisKey:t(O),stackId:i(T)})}),a(_)}function a(E){var C={};y.each(E,function(T,w){var O=T.axisKey,I=T.bandWidth,k=C[O]||{bandWidth:I,remainedWidth:I,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},M=k.stacks;C[O]=k;var j=T.stackId;M[j]||k.autoWidthCount++,M[j]=M[j]||{width:0,maxWidth:0};var P=T.barWidth;P&&!M[j].width&&(M[j].width=P,P=Math.min(k.remainedWidth,P),k.remainedWidth-=P);var X=T.barMaxWidth;X&&(M[j].maxWidth=X);var F=T.barMinWidth;F&&(M[j].minWidth=F);var U=T.barGap;U!=null&&(k.gap=U);var K=T.barCategoryGap;K!=null&&(k.categoryGap=K)});var _={};return y.each(C,function(T,w){_[w]={};var O=T.stacks,I=T.bandWidth,k=x(T.categoryGap,I),M=x(T.gap,1),j=T.remainedWidth,P=T.autoWidthCount,X=(j-k)/(P+(P-1)*M);X=Math.max(X,0),y.each(O,function(z){var V=z.maxWidth,Q=z.minWidth;if(z.width){var G=z.width;V&&(G=Math.min(G,V)),Q&&(G=Math.max(G,Q)),z.width=G,j-=G+M*G,P--}else{var G=X;V&&V<G&&(G=Math.min(V,j)),Q&&Q>G&&(G=Q),G!==X&&(z.width=G,j-=G+M*G,P--)}}),X=(j-k)/(P+(P-1)*M),X=Math.max(X,0);var F=0,U;y.each(O,function(z,V){z.width||(z.width=X),U=z,F+=z.width*(1+M)}),U&&(F-=U.width*M);var K=-F/2;y.each(O,function(z,V){_[w][V]=_[w][V]||{bandWidth:I,offset:K,width:z.width},K+=z.width*(1+M)})}),_}function c(E,C,_){if(E&&C){var T=E[t(C)];return T!=null&&_!=null&&(T=T[i(_)]),T}}function h(E,C){var _=e(E,C),T=r(_),w={},O={};y.each(_,function(I){var k=I.getData(),M=I.coordinateSystem,j=M.getBaseAxis(),P=i(I),X=T[t(j)][P],F=X.offset,U=X.width,K=M.getOtherAxis(j),z=I.get("barMinHeight")||0;w[P]=w[P]||[],O[P]=O[P]||[],k.setLayout({bandWidth:X.bandWidth,offset:F,size:U});for(var V=k.mapDimension(K.dim),Q=k.mapDimension(j.dim),G=m(k,V),te=K.isHorizontal(),q=S(j,K,G),se=0,re=k.count();se<re;se++){var xe=k.get(V,se),Oe=k.get(Q,se),Me=xe>=0?"p":"n",Qe=q;G&&(w[P][Oe]||(w[P][Oe]={p:q,n:q}),Qe=w[P][Oe][Me]);var Ve,ut,Fe,ue;if(te){var et=M.dataToPoint([xe,Oe]);Ve=Qe,ut=et[1]+F,Fe=et[0]-q,ue=U,Math.abs(Fe)<z&&(Fe=(Fe<0?-1:1)*z),isNaN(Fe)||G&&(w[P][Oe][Me]+=Fe)}else{var et=M.dataToPoint([Oe,xe]);Ve=et[0]+F,ut=Qe,Fe=U,ue=et[1]-q,Math.abs(ue)<z&&(ue=(ue<=0?-1:1)*z),isNaN(ue)||G&&(w[P][Oe][Me]+=ue)}k.setItemLayout(se,{x:Ve,y:ut,width:Fe,height:ue})}},this)}var g={seriesType:"bar",plan:p(),reset:function(E){if(!A(E)||!b(E))return;var C=E.getData(),_=E.coordinateSystem,T=_.grid.getRect(),w=_.getBaseAxis(),O=_.getOtherAxis(w),I=C.mapDimension(O.dim),k=C.mapDimension(w.dim),M=O.isHorizontal(),j=M?0:1,P=c(r([E]),w,E).width;return P>u||(P=u),{progress:X};function X(F,U){for(var K=F.count,z=new s(K*2),V=new s(K*2),Q=new s(K),G,te=[],q=[],se=0,re=0;(G=F.next())!=null;)q[j]=U.get(I,G),q[1-j]=U.get(k,G),te=_.dataToPoint(q,null,te),V[se]=M?T.x+T.width:te[0],z[se++]=te[0],V[se]=M?te[1]:T.y+T.height,z[se++]=te[1],Q[re++]=G;U.setLayout({largePoints:z,largeDataIndices:Q,largeBackgroundPoints:V,barWidth:P,valueAxisStart:S(w,O,!1),backgroundStart:M?T.x:T.y,valueAxisHorizontal:M})}}};function A(E){return E.coordinateSystem&&E.coordinateSystem.type==="cartesian2d"}function b(E){return E.pipelineContext&&E.pipelineContext.large}function S(E,C,_){return C.toGlobalCoord(C.dataToCoord(C.type==="log"?1:0))}D.getLayoutOnAxis=o,D.prepareLayoutBarSeries=e,D.makeColumnLayout=r,D.retrieveColumnLayout=c,D.layout=h,D.largeLayout=g},ngQI:function(R,D,n){"use strict";n.d(D,"a",function(){return gu}),n.d(D,"b",function(){return js}),n.d(D,"c",function(){return on});var y=n("q1tI"),f=n.n(y),x=n("dI71"),v=n("wx14"),m=n("ANjH"),p=n("/MKj");function d(Ue,ae){if(Ue.length!==ae.length)return!1;for(var _e=0;_e<Ue.length;_e++)if(Ue[_e]!==ae[_e])return!1;return!0}function u(Ue,ae){var _e=Object(y.useState)(function(){return{inputs:ae,result:Ue()}})[0],$e=Object(y.useRef)(!0),wt=Object(y.useRef)(_e),Vt=$e.current||Boolean(ae&&wt.current.inputs&&d(ae,wt.current.inputs)),rr=Vt?wt.current:{inputs:ae,result:Ue()};return Object(y.useEffect)(function(){$e.current=!1,wt.current=rr},[rr]),rr.result}function s(Ue,ae){return u(function(){return Ue},ae)}var i=u,t=s,o=n("9R94"),e=function(ae){var _e=ae.top,$e=ae.right,wt=ae.bottom,Vt=ae.left,rr=$e-Vt,ar=wt-_e,Vr={top:_e,right:$e,bottom:wt,left:Vt,width:rr,height:ar,x:Vt,y:_e,center:{x:($e+Vt)/2,y:(wt+_e)/2}};return Vr},l=function(ae,_e){return{top:ae.top-_e.top,left:ae.left-_e.left,bottom:ae.bottom+_e.bottom,right:ae.right+_e.right}},r=function(ae,_e){return{top:ae.top+_e.top,left:ae.left+_e.left,bottom:ae.bottom-_e.bottom,right:ae.right-_e.right}},a=function(ae,_e){return{top:ae.top+_e.y,left:ae.left+_e.x,bottom:ae.bottom+_e.y,right:ae.right+_e.x}},c={top:0,right:0,bottom:0,left:0},h=function(ae){var _e=ae.borderBox,$e=ae.margin,wt=$e===void 0?c:$e,Vt=ae.border,rr=Vt===void 0?c:Vt,ar=ae.padding,Vr=ar===void 0?c:ar,pn=e(l(_e,wt)),Wr=e(r(_e,rr)),jr=e(r(Wr,Vr));return{marginBox:pn,borderBox:e(_e),paddingBox:Wr,contentBox:jr,margin:wt,border:rr,padding:Vr}},g=function(ae){var _e=ae.slice(0,-2),$e=ae.slice(-2);if($e!=="px")return 0;var wt=Number(_e);return isNaN(wt)&&Object(o.a)(!1),wt},A=function(){return{x:window.pageXOffset,y:window.pageYOffset}},b=function(ae,_e){var $e=ae.borderBox,wt=ae.border,Vt=ae.margin,rr=ae.padding,ar=a($e,_e);return h({borderBox:ar,border:wt,margin:Vt,padding:rr})},S=function(ae,_e){return _e===void 0&&(_e=A()),b(ae,_e)},E=function(ae,_e){var $e={top:g(_e.marginTop),right:g(_e.marginRight),bottom:g(_e.marginBottom),left:g(_e.marginLeft)},wt={top:g(_e.paddingTop),right:g(_e.paddingRight),bottom:g(_e.paddingBottom),left:g(_e.paddingLeft)},Vt={top:g(_e.borderTopWidth),right:g(_e.borderRightWidth),bottom:g(_e.borderBottomWidth),left:g(_e.borderLeftWidth)};return h({borderBox:ae,margin:$e,padding:wt,border:Vt})},C=function(ae){var _e=ae.getBoundingClientRect(),$e=window.getComputedStyle(ae);return E(_e,$e)},_=Number.isNaN||function(ae){return typeof ae=="number"&&ae!==ae};function T(Ue,ae){return Ue===ae?!0:!!(_(Ue)&&_(ae))}function w(Ue,ae){if(Ue.length!==ae.length)return!1;for(var _e=0;_e<Ue.length;_e++)if(!T(Ue[_e],ae[_e]))return!1;return!0}function O(Ue,ae){ae===void 0&&(ae=w);var _e,$e=[],wt,Vt=!1;function rr(){for(var ar=[],Vr=0;Vr<arguments.length;Vr++)ar[Vr]=arguments[Vr];return Vt&&_e===this&&ae(ar,$e)||(wt=Ue.apply(this,ar),Vt=!0,_e=this,$e=ar),wt}return rr}var I=O,k=function(ae){var _e=[],$e=null,wt=function(){for(var rr=arguments.length,ar=new Array(rr),Vr=0;Vr<rr;Vr++)ar[Vr]=arguments[Vr];if(_e=ar,$e)return;$e=requestAnimationFrame(function(){$e=null,ae.apply(void 0,_e)})};return wt.cancel=function(){if(!$e)return;cancelAnimationFrame($e),$e=null},wt},M=k,j=n("i8i4"),P=n.n(j),X=!0,F=/[ \t]{2,}/g,U=/^[ \t]*/gm,K=function(ae){return ae.replace(F," ").replace(U,"").trim()},z=function(ae){return K(`
|
|
|
%creact-beautiful-dnd
|
|
|
|
|
|
%c`+K(ae)+`
|
|
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
|
`)},V=function(ae){return[z(ae),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Q="__react-beautiful-dnd-disable-dev-warnings";function G(Ue,ae){var _e;if(X)return;if(typeof window!="undefined"&&window[Q])return;(_e=console)[Ue].apply(_e,V(ae))}var te=G.bind(null,"warn"),q=G.bind(null,"error");function se(){}function re(Ue,ae){return Object(v.a)({},Ue,{},ae)}function xe(Ue,ae,_e){var $e=ae.map(function(wt){var Vt=re(_e,wt.options);return Ue.addEventListener(wt.eventName,wt.fn,Vt),function(){Ue.removeEventListener(wt.eventName,wt.fn,Vt)}});return function(){$e.forEach(function(Vt){Vt()})}}var Oe=!0,Me="Invariant failed";function Qe(Ue){this.message=Ue}Qe.prototype.toString=function(){return this.message};function Ve(Ue,ae){if(Ue)return;throw Oe?new Qe(Me):new Qe(Me+": "+(ae||""))}var ut=function(Ue){Object(x.a)(ae,Ue);function ae(){for(var $e,wt=arguments.length,Vt=new Array(wt),rr=0;rr<wt;rr++)Vt[rr]=arguments[rr];return $e=Ue.call.apply(Ue,[this].concat(Vt))||this,$e.callbacks=null,$e.unbind=se,$e.onWindowError=function(ar){var Vr=$e.getCallbacks();Vr.isDragging()&&Vr.tryAbort();var pn=ar.error;pn instanceof Qe&&ar.preventDefault()},$e.getCallbacks=function(){if(!$e.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return $e.callbacks},$e.setCallbacks=function(ar){$e.callbacks=ar},$e}var _e=ae.prototype;return _e.componentDidMount=function(){this.unbind=xe(window,[{eventName:"error",fn:this.onWindowError}])},_e.componentWillUnmount=function(){this.unbind()},_e.componentDidCatch=function(wt){if(wt instanceof Qe){this.setState({});return}throw wt},_e.render=function(){return this.props.children(this.setCallbacks)},ae}(f.a.Component),Fe=`
|
|
|
Press space bar to start a drag.
|
|
|
When dragging you can use the arrow keys to move the item around and escape to cancel.
|
|
|
Some screen readers may require you to be in focus mode or to use your pass through key
|
|
|
`,ue=function(ae){return ae+1},et=function(ae){return`
|
|
|
You have lifted an item in position `+ue(ae.source.index)+`
|
|
|
`},he=function(ae,_e){var $e=ae.droppableId===_e.droppableId,wt=ue(ae.index),Vt=ue(_e.index);return $e?`
|
|
|
You have moved the item from position `+wt+`
|
|
|
to position `+Vt+`
|
|
|
`:`
|
|
|
You have moved the item from position `+wt+`
|
|
|
in list `+ae.droppableId+`
|
|
|
to list `+_e.droppableId+`
|
|
|
in position `+Vt+`
|
|
|
`},J=function(ae,_e,$e){var wt=_e.droppableId===$e.droppableId;return wt?`
|
|
|
The item `+ae+`
|
|
|
has been combined with `+$e.draggableId:`
|
|
|
The item `+ae+`
|
|
|
in list `+_e.droppableId+`
|
|
|
has been combined with `+$e.draggableId+`
|
|
|
in list `+$e.droppableId+`
|
|
|
`},Y=function(ae){var _e=ae.destination;if(_e)return he(ae.source,_e);var $e=ae.combine;return $e?J(ae.draggableId,ae.source,$e):"You are over an area that cannot be dropped on"},$=function(ae){return`
|
|
|
The item has returned to its starting position
|
|
|
of `+ue(ae.index)+`
|
|
|
`},de=function(ae){if(ae.reason==="CANCEL")return`
|
|
|
Movement cancelled.
|
|
|
`+$(ae.source)+`
|
|
|
`;var _e=ae.destination,$e=ae.combine;return _e?`
|
|
|
You have dropped the item.
|
|
|
`+he(ae.source,_e)+`
|
|
|
`:$e?`
|
|
|
You have dropped the item.
|
|
|
`+J(ae.draggableId,ae.source,$e)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+$(ae.source)+`
|
|
|
`},be={dragHandleUsageInstructions:Fe,onDragStart:et,onDragUpdate:Y,onDragEnd:de},Ce={x:0,y:0},Be=function(ae,_e){return{x:ae.x+_e.x,y:ae.y+_e.y}},fe=function(ae,_e){return{x:ae.x-_e.x,y:ae.y-_e.y}},we=function(ae,_e){return ae.x===_e.x&&ae.y===_e.y},Re=function(ae){return{x:ae.x!==0?-ae.x:0,y:ae.y!==0?-ae.y:0}},rt=function(ae,_e,$e){var wt;return $e===void 0&&($e=0),wt={},wt[ae]=_e,wt[ae==="x"?"y":"x"]=$e,wt},St=function(ae,_e){return Math.sqrt(Math.pow(_e.x-ae.x,2)+Math.pow(_e.y-ae.y,2))},ft=function(ae,_e){return Math.min.apply(Math,_e.map(function($e){return St(ae,$e)}))},He=function(ae){return function(_e){return{x:ae(_e.x),y:ae(_e.y)}}},er=function(ae,_e){var $e=e({top:Math.max(_e.top,ae.top),right:Math.min(_e.right,ae.right),bottom:Math.min(_e.bottom,ae.bottom),left:Math.max(_e.left,ae.left)});return $e.width<=0||$e.height<=0?null:$e},ct=function(ae,_e){return{top:ae.top+_e.y,left:ae.left+_e.x,bottom:ae.bottom+_e.y,right:ae.right+_e.x}},Kt=function(ae){return[{x:ae.left,y:ae.top},{x:ae.right,y:ae.top},{x:ae.left,y:ae.bottom},{x:ae.right,y:ae.bottom}]},fr={top:0,right:0,bottom:0,left:0},Gt=function(ae,_e){return _e?ct(ae,_e.scroll.diff.displacement):ae},Pt=function(ae,_e,$e){if($e&&$e.increasedBy){var wt;return Object(v.a)({},ae,(wt={},wt[_e.end]=ae[_e.end]+$e.increasedBy[_e.line],wt))}return ae},Xt=function(ae,_e){return _e&&_e.shouldClipSubject?er(_e.pageMarginBox,ae):e(ae)},Ge=function(ae){var _e=ae.page,$e=ae.withPlaceholder,wt=ae.axis,Vt=ae.frame,rr=Gt(_e.marginBox,Vt),ar=Pt(rr,wt,$e),Vr=Xt(ar,Vt);return{page:_e,withPlaceholder:$e,active:Vr}},pe=function(ae,_e){ae.frame||Ve(!1);var $e=ae.frame,wt=fe(_e,$e.scroll.initial),Vt=Re(wt),rr=Object(v.a)({},$e,{scroll:{initial:$e.scroll.initial,current:_e,diff:{value:wt,displacement:Vt},max:$e.scroll.max}}),ar=Ge({page:ae.subject.page,withPlaceholder:ae.subject.withPlaceholder,axis:ae.axis,frame:rr}),Vr=Object(v.a)({},ae,{frame:rr,subject:ar});return Vr};function oe(Ue){return Number.isInteger?Number.isInteger(Ue):typeof Ue=="number"&&isFinite(Ue)&&Math.floor(Ue)===Ue}function lt(Ue){return Object.values?Object.values(Ue):Object.keys(Ue).map(function(ae){return Ue[ae]})}function qe(Ue,ae){if(Ue.findIndex)return Ue.findIndex(ae);for(var _e=0;_e<Ue.length;_e++)if(ae(Ue[_e]))return _e;return-1}function ge(Ue,ae){if(Ue.find)return Ue.find(ae);var _e=qe(Ue,ae);return _e!==-1?Ue[_e]:void 0}function Ht(Ue){return Array.prototype.slice.call(Ue)}var vr=I(function(Ue){return Ue.reduce(function(ae,_e){return ae[_e.descriptor.id]=_e,ae},{})}),At=I(function(Ue){return Ue.reduce(function(ae,_e){return ae[_e.descriptor.id]=_e,ae},{})}),ir=I(function(Ue){return lt(Ue)}),lr=I(function(Ue){return lt(Ue)}),dn=I(function(Ue,ae){var _e=lr(ae).filter(function($e){return Ue===$e.descriptor.droppableId}).sort(function($e,wt){return $e.descriptor.index-wt.descriptor.index});return _e});function Ft(Ue){return Ue.at&&Ue.at.type==="REORDER"?Ue.at.destination:null}function ur(Ue){return Ue.at&&Ue.at.type==="COMBINE"?Ue.at.combine:null}var Jt=I(function(Ue,ae){return ae.filter(function(_e){return _e.descriptor.id!==Ue.descriptor.id})}),pt=function(ae){var _e=ae.isMovingForward,$e=ae.draggable,wt=ae.destination,Vt=ae.insideDestination,rr=ae.previousImpact;if(!wt.isCombineEnabled)return null;var ar=Ft(rr);if(!ar)return null;function Vr(Mi){var da={type:"COMBINE",combine:{draggableId:Mi,droppableId:wt.descriptor.id}};return Object(v.a)({},rr,{at:da})}var pn=rr.displaced.all,Wr=pn.length?pn[0]:null;if(_e)return Wr?Vr(Wr):null;var jr=Jt($e,Vt);if(!Wr){if(!jr.length)return null;var sn=jr[jr.length-1];return Vr(sn.descriptor.id)}var yn=qe(jr,function(Mi){return Mi.descriptor.id===Wr});yn!==-1||Ve(!1);var Vn=yn-1;if(Vn<0)return null;var Li=jr[Vn];return Vr(Li.descriptor.id)},at=function(ae,_e){return ae.descriptor.droppableId===_e.descriptor.id},Pr={point:Ce,value:0},un={invisible:{},visible:{},all:[]},_n={displaced:un,displacedBy:Pr,at:null},Xn=function(ae,_e){return function($e){return ae<=$e&&$e<=_e}},xi=function(ae){var _e=Xn(ae.top,ae.bottom),$e=Xn(ae.left,ae.right);return function(wt){var Vt=_e(wt.top)&&_e(wt.bottom)&&$e(wt.left)&&$e(wt.right);if(Vt)return!0;var rr=_e(wt.top)||_e(wt.bottom),ar=$e(wt.left)||$e(wt.right),Vr=rr&&ar;if(Vr)return!0;var pn=wt.top<ae.top&&wt.bottom>ae.bottom,Wr=wt.left<ae.left&&wt.right>ae.right,jr=pn&&Wr;if(jr)return!0;var sn=pn&&ar||Wr&&rr;return sn}},Pn=function(ae){var _e=Xn(ae.top,ae.bottom),$e=Xn(ae.left,ae.right);return function(wt){var Vt=_e(wt.top)&&_e(wt.bottom)&&$e(wt.left)&&$e(wt.right);return Vt}},Un={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},$t={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},xt=function(ae){return function(_e){var $e=Xn(_e.top,_e.bottom),wt=Xn(_e.left,_e.right);return function(Vt){return ae===Un?$e(Vt.top)&&$e(Vt.bottom):wt(Vt.left)&&wt(Vt.right)}}},De=function(ae,_e){var $e=_e.frame?_e.frame.scroll.diff.displacement:Ce;return ct(ae,$e)},ke=function(ae,_e,$e){return _e.subject.active?$e(_e.subject.active)(ae):!1},Pe=function(ae,_e,$e){return $e(_e)(ae)},tt=function(ae){var _e=ae.target,$e=ae.destination,wt=ae.viewport,Vt=ae.withDroppableDisplacement,rr=ae.isVisibleThroughFrameFn,ar=Vt?De(_e,$e):_e;return ke(ar,$e,rr)&&Pe(ar,wt,rr)},yt=function(ae){return tt(Object(v.a)({},ae,{isVisibleThroughFrameFn:xi}))},Et=function(ae){return tt(Object(v.a)({},ae,{isVisibleThroughFrameFn:Pn}))},Yt=function(ae){return tt(Object(v.a)({},ae,{isVisibleThroughFrameFn:xt(ae.destination.axis)}))},Rr=function(ae,_e,$e){if(typeof $e=="boolean")return $e;if(!_e)return!0;var wt=_e.invisible,Vt=_e.visible;if(wt[ae])return!1;var rr=Vt[ae];return rr?rr.shouldAnimate:!0};function zr(Ue,ae){var _e=Ue.page.marginBox,$e={top:ae.point.y,right:0,bottom:0,left:ae.point.x};return e(l(_e,$e))}function hn(Ue){var ae=Ue.afterDragging,_e=Ue.destination,$e=Ue.displacedBy,wt=Ue.viewport,Vt=Ue.forceShouldAnimate,rr=Ue.last;return ae.reduce(function(Vr,pn){var Wr=zr(pn,$e),jr=pn.descriptor.id;Vr.all.push(jr);var sn=yt({target:Wr,destination:_e,viewport:wt,withDroppableDisplacement:!0});if(!sn)return Vr.invisible[pn.descriptor.id]=!0,Vr;var yn=Rr(jr,rr,Vt),Vn={draggableId:jr,shouldAnimate:yn};return Vr.visible[jr]=Vn,Vr},{all:[],visible:{},invisible:{}})}function jt(Ue,ae){if(!Ue.length)return 0;var _e=Ue[Ue.length-1].descriptor.index;return ae.inHomeList?_e:_e+1}function vt(Ue){var ae=Ue.insideDestination,_e=Ue.inHomeList,$e=Ue.displacedBy,wt=Ue.destination,Vt=jt(ae,{inHomeList:_e});return{displaced:un,displacedBy:$e,at:{type:"REORDER",destination:{droppableId:wt.descriptor.id,index:Vt}}}}function bt(Ue){var ae=Ue.draggable,_e=Ue.insideDestination,$e=Ue.destination,wt=Ue.viewport,Vt=Ue.displacedBy,rr=Ue.last,ar=Ue.index,Vr=Ue.forceShouldAnimate,pn=at(ae,$e);if(ar==null)return vt({insideDestination:_e,inHomeList:pn,displacedBy:Vt,destination:$e});var Wr=ge(_e,function(Li){return Li.descriptor.index===ar});if(!Wr)return vt({insideDestination:_e,inHomeList:pn,displacedBy:Vt,destination:$e});var jr=Jt(ae,_e),sn=_e.indexOf(Wr),yn=jr.slice(sn),Vn=hn({afterDragging:yn,destination:$e,displacedBy:Vt,last:rr,viewport:wt.frame,forceShouldAnimate:Vr});return{displaced:Vn,displacedBy:Vt,at:{type:"REORDER",destination:{droppableId:$e.descriptor.id,index:ar}}}}function cr(Ue,ae){return Boolean(ae.effected[Ue])}var Qt=function(ae){var _e=ae.isMovingForward,$e=ae.destination,wt=ae.draggables,Vt=ae.combine,rr=ae.afterCritical;if(!$e.isCombineEnabled)return null;var ar=Vt.draggableId,Vr=wt[ar],pn=Vr.descriptor.index,Wr=cr(ar,rr);return Wr?_e?pn:pn-1:_e?pn+1:pn},Mt=function(ae){var _e=ae.isMovingForward,$e=ae.isInHomeList,wt=ae.insideDestination,Vt=ae.location;if(!wt.length)return null;var rr=Vt.index,ar=_e?rr+1:rr-1,Vr=wt[0].descriptor.index,pn=wt[wt.length-1].descriptor.index,Wr=$e?pn:pn+1;return ar<Vr||ar>Wr?null:ar},tr=function(ae){var _e=ae.isMovingForward,$e=ae.isInHomeList,wt=ae.draggable,Vt=ae.draggables,rr=ae.destination,ar=ae.insideDestination,Vr=ae.previousImpact,pn=ae.viewport,Wr=ae.afterCritical,jr=Vr.at;if(jr||Ve(!1),jr.type==="REORDER"){var sn=Mt({isMovingForward:_e,isInHomeList:$e,location:jr.destination,insideDestination:ar});return sn==null?null:bt({draggable:wt,insideDestination:ar,destination:rr,viewport:pn,last:Vr.displaced,displacedBy:Vr.displacedBy,index:sn})}var yn=Qt({isMovingForward:_e,destination:rr,displaced:Vr.displaced,draggables:Vt,combine:jr.combine,afterCritical:Wr});return yn==null?null:bt({draggable:wt,insideDestination:ar,destination:rr,viewport:pn,last:Vr.displaced,displacedBy:Vr.displacedBy,index:yn})},Rt=function(ae){var _e=ae.displaced,$e=ae.afterCritical,wt=ae.combineWith,Vt=ae.displacedBy,rr=Boolean(_e.visible[wt]||_e.invisible[wt]);return cr(wt,$e)?rr?Ce:Re(Vt.point):rr?Vt.point:Ce},qt=function(ae){var _e=ae.afterCritical,$e=ae.impact,wt=ae.draggables,Vt=ur($e);Vt||Ve(!1);var rr=Vt.draggableId,ar=wt[rr].page.borderBox.center,Vr=Rt({displaced:$e.displaced,afterCritical:_e,combineWith:rr,displacedBy:$e.displacedBy});return Be(ar,Vr)},Hr=function(ae,_e){return _e.margin[ae.start]+_e.borderBox[ae.size]/2},Nr=function(ae,_e){return _e.margin[ae.end]+_e.borderBox[ae.size]/2},Dr=function(ae,_e,$e){return _e[ae.crossAxisStart]+$e.margin[ae.crossAxisStart]+$e.borderBox[ae.crossAxisSize]/2},cn=function(ae){var _e=ae.axis,$e=ae.moveRelativeTo,wt=ae.isMoving;return rt(_e.line,$e.marginBox[_e.end]+Hr(_e,wt),Dr(_e,$e.marginBox,wt))},An=function(ae){var _e=ae.axis,$e=ae.moveRelativeTo,wt=ae.isMoving;return rt(_e.line,$e.marginBox[_e.start]-Nr(_e,wt),Dr(_e,$e.marginBox,wt))},ri=function(ae){var _e=ae.axis,$e=ae.moveInto,wt=ae.isMoving;return rt(_e.line,$e.contentBox[_e.start]+Hr(_e,wt),Dr(_e,$e.contentBox,wt))},$n=function(ae){var _e=ae.impact,$e=ae.draggable,wt=ae.draggables,Vt=ae.droppable,rr=ae.afterCritical,ar=dn(Vt.descriptor.id,wt),Vr=$e.page,pn=Vt.axis;if(!ar.length)return ri({axis:pn,moveInto:Vt.page,isMoving:Vr});var Wr=_e.displaced,jr=_e.displacedBy,sn=Wr.all[0];if(sn){var yn=wt[sn];if(cr(sn,rr))return An({axis:pn,moveRelativeTo:yn.page,isMoving:Vr});var Vn=b(yn.page,jr.point);return An({axis:pn,moveRelativeTo:Vn,isMoving:Vr})}var Li=ar[ar.length-1];if(Li.descriptor.id===$e.descriptor.id)return Vr.borderBox.center;if(cr(Li.descriptor.id,rr)){var Mi=b(Li.page,Re(rr.displacedBy.point));return cn({axis:pn,moveRelativeTo:Mi,isMoving:Vr})}return cn({axis:pn,moveRelativeTo:Li.page,isMoving:Vr})},fi=function(ae,_e){var $e=ae.frame;return $e?Be(_e,$e.scroll.diff.displacement):_e},_i=function(ae){var _e=ae.impact,$e=ae.draggable,wt=ae.droppable,Vt=ae.draggables,rr=ae.afterCritical,ar=$e.page.borderBox.center,Vr=_e.at;return wt&&Vr?Vr.type==="REORDER"?$n({impact:_e,draggable:$e,draggables:Vt,droppable:wt,afterCritical:rr}):qt({impact:_e,draggables:Vt,afterCritical:rr}):ar},Di=function(ae){var _e=_i(ae),$e=ae.droppable,wt=$e?fi($e,_e):_e;return wt},Wi=function(ae,_e){var $e=fe(_e,ae.scroll.initial),wt=Re($e),Vt=e({top:_e.y,bottom:_e.y+ae.frame.height,left:_e.x,right:_e.x+ae.frame.width}),rr={frame:Vt,scroll:{initial:ae.scroll.initial,max:ae.scroll.max,current:_e,diff:{value:$e,displacement:wt}}};return rr};function it(Ue,ae){return Ue.map(function(_e){return ae[_e]})}function Le(Ue,ae){for(var _e=0;_e<ae.length;_e++){var $e=ae[_e].visible[Ue];if($e)return $e}return null}var je=function(ae){var _e=ae.impact,$e=ae.viewport,wt=ae.destination,Vt=ae.draggables,rr=ae.maxScrollChange,ar=Wi($e,Be($e.scroll.current,rr)),Vr=wt.frame?pe(wt,Be(wt.frame.scroll.current,rr)):wt,pn=_e.displaced,Wr=hn({afterDragging:it(pn.all,Vt),destination:wt,displacedBy:_e.displacedBy,viewport:ar.frame,last:pn,forceShouldAnimate:!1}),jr=hn({afterDragging:it(pn.all,Vt),destination:Vr,displacedBy:_e.displacedBy,viewport:$e.frame,last:pn,forceShouldAnimate:!1}),sn={},yn={},Vn=[pn,Wr,jr];pn.all.forEach(function(Mi){var da=Le(Mi,Vn);if(da){yn[Mi]=da;return}sn[Mi]=!0});var Li=Object(v.a)({},_e,{displaced:{all:pn.all,invisible:sn,visible:yn}});return Li},Xe=function(ae,_e){return Be(ae.scroll.diff.displacement,_e)},nt=function(ae){var _e=ae.pageBorderBoxCenter,$e=ae.draggable,wt=ae.viewport,Vt=Xe(wt,_e),rr=fe(Vt,$e.page.borderBox.center);return Be($e.client.borderBox.center,rr)},Ze=function(ae){var _e=ae.draggable,$e=ae.destination,wt=ae.newPageBorderBoxCenter,Vt=ae.viewport,rr=ae.withDroppableDisplacement,ar=ae.onlyOnMainAxis,Vr=ar===void 0?!1:ar,pn=fe(wt,_e.page.borderBox.center),Wr=ct(_e.page.borderBox,pn),jr={target:Wr,destination:$e,withDroppableDisplacement:rr,viewport:Vt};return Vr?Yt(jr):Et(jr)},ot=function(ae){var _e=ae.isMovingForward,$e=ae.draggable,wt=ae.destination,Vt=ae.draggables,rr=ae.previousImpact,ar=ae.viewport,Vr=ae.previousPageBorderBoxCenter,pn=ae.previousClientSelection,Wr=ae.afterCritical;if(!wt.isEnabled)return null;var jr=dn(wt.descriptor.id,Vt),sn=at($e,wt),yn=pt({isMovingForward:_e,draggable:$e,destination:wt,insideDestination:jr,previousImpact:rr})||tr({isMovingForward:_e,isInHomeList:sn,draggable:$e,draggables:Vt,destination:wt,insideDestination:jr,previousImpact:rr,viewport:ar,afterCritical:Wr});if(!yn)return null;var Vn=Di({impact:yn,draggable:$e,droppable:wt,draggables:Vt,afterCritical:Wr}),Li=Ze({draggable:$e,destination:wt,newPageBorderBoxCenter:Vn,viewport:ar.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(Li){var Mi=nt({pageBorderBoxCenter:Vn,draggable:$e,viewport:ar});return{clientSelection:Mi,impact:yn,scrollJumpRequest:null}}var da=fe(Vn,Vr),$i=je({impact:yn,viewport:ar,destination:wt,draggables:Vt,maxScrollChange:da});return{clientSelection:pn,impact:$i,scrollJumpRequest:da}},Ct=function(ae){var _e=ae.subject.active;return _e||Ve(!1),_e},gt=function(ae){var _e=ae.isMovingForward,$e=ae.pageBorderBoxCenter,wt=ae.source,Vt=ae.droppables,rr=ae.viewport,ar=wt.subject.active;if(!ar)return null;var Vr=wt.axis,pn=Xn(ar[Vr.start],ar[Vr.end]),Wr=ir(Vt).filter(function(sn){return sn!==wt}).filter(function(sn){return sn.isEnabled}).filter(function(sn){return Boolean(sn.subject.active)}).filter(function(sn){return xi(rr.frame)(Ct(sn))}).filter(function(sn){var yn=Ct(sn);return _e?ar[Vr.crossAxisEnd]<yn[Vr.crossAxisEnd]:yn[Vr.crossAxisStart]<ar[Vr.crossAxisStart]}).filter(function(sn){var yn=Ct(sn),Vn=Xn(yn[Vr.start],yn[Vr.end]);return pn(yn[Vr.start])||pn(yn[Vr.end])||Vn(ar[Vr.start])||Vn(ar[Vr.end])}).sort(function(sn,yn){var Vn=Ct(sn)[Vr.crossAxisStart],Li=Ct(yn)[Vr.crossAxisStart];return _e?Vn-Li:Li-Vn}).filter(function(sn,yn,Vn){return Ct(sn)[Vr.crossAxisStart]===Ct(Vn[0])[Vr.crossAxisStart]});if(!Wr.length)return null;if(Wr.length===1)return Wr[0];var jr=Wr.filter(function(sn){var yn=Xn(Ct(sn)[Vr.start],Ct(sn)[Vr.end]);return yn($e[Vr.line])});return jr.length===1?jr[0]:jr.length>1?jr.sort(function(sn,yn){return Ct(sn)[Vr.start]-Ct(yn)[Vr.start]})[0]:Wr.sort(function(sn,yn){var Vn=ft($e,Kt(Ct(sn))),Li=ft($e,Kt(Ct(yn)));return Vn!==Li?Vn-Li:Ct(sn)[Vr.start]-Ct(yn)[Vr.start]})[0]},pr=function(ae,_e){var $e=ae.page.borderBox.center;return cr(ae.descriptor.id,_e)?fe($e,_e.displacedBy.point):$e},$r=function(ae,_e){var $e=ae.page.borderBox;return cr(ae.descriptor.id,_e)?ct($e,Re(_e.displacedBy.point)):$e},Yr=function(ae){var _e=ae.pageBorderBoxCenter,$e=ae.viewport,wt=ae.destination,Vt=ae.insideDestination,rr=ae.afterCritical,ar=Vt.filter(function(Vr){return Et({target:$r(Vr,rr),destination:wt,viewport:$e.frame,withDroppableDisplacement:!0})}).sort(function(Vr,pn){var Wr=St(_e,fi(wt,pr(Vr,rr))),jr=St(_e,fi(wt,pr(pn,rr)));return Wr<jr?-1:jr<Wr?1:Vr.descriptor.index-pn.descriptor.index});return ar[0]||null},mn=I(function(ae,_e){var $e=_e[ae.line];return{value:$e,point:rt(ae.line,$e)}}),Ar=function(ae,_e,$e){var wt=ae.axis;if(ae.descriptor.mode==="virtual")return rt(wt.line,_e[wt.line]);var Vt=ae.subject.page.contentBox[wt.size],rr=dn(ae.descriptor.id,$e),ar=rr.reduce(function(Wr,jr){return Wr+jr.client.marginBox[wt.size]},0),Vr=ar+_e[wt.line],pn=Vr-Vt;return pn<=0?null:rt(wt.line,pn)},zn=function(ae,_e){return Object(v.a)({},ae,{scroll:Object(v.a)({},ae.scroll,{max:_e})})},Fr=function(ae,_e,$e){var wt=ae.frame;at(_e,ae)&&Ve(!1),ae.subject.withPlaceholder&&Ve(!1);var Vt=mn(ae.axis,_e.displaceBy).point,rr=Ar(ae,Vt,$e),ar={placeholderSize:Vt,increasedBy:rr,oldFrameMaxScroll:ae.frame?ae.frame.scroll.max:null};if(!wt){var Vr=Ge({page:ae.subject.page,withPlaceholder:ar,axis:ae.axis,frame:ae.frame});return Object(v.a)({},ae,{subject:Vr})}var pn=rr?Be(wt.scroll.max,rr):wt.scroll.max,Wr=zn(wt,pn),jr=Ge({page:ae.subject.page,withPlaceholder:ar,axis:ae.axis,frame:Wr});return Object(v.a)({},ae,{subject:jr,frame:Wr})},Bn=function(ae){var _e=ae.subject.withPlaceholder;_e||Ve(!1);var $e=ae.frame;if(!$e){var wt=Ge({page:ae.subject.page,axis:ae.axis,frame:null,withPlaceholder:null});return Object(v.a)({},ae,{subject:wt})}var Vt=_e.oldFrameMaxScroll;Vt||Ve(!1);var rr=zn($e,Vt),ar=Ge({page:ae.subject.page,axis:ae.axis,frame:rr,withPlaceholder:null});return Object(v.a)({},ae,{subject:ar,frame:rr})},bn=function(ae){var _e=ae.previousPageBorderBoxCenter,$e=ae.moveRelativeTo,wt=ae.insideDestination,Vt=ae.draggable,rr=ae.draggables,ar=ae.destination,Vr=ae.viewport,pn=ae.afterCritical;if(!$e){if(wt.length)return null;var Wr={displaced:un,displacedBy:Pr,at:{type:"REORDER",destination:{droppableId:ar.descriptor.id,index:0}}},jr=Di({impact:Wr,draggable:Vt,droppable:ar,draggables:rr,afterCritical:pn}),sn=at(Vt,ar)?ar:Fr(ar,Vt,rr),yn=Ze({draggable:Vt,destination:sn,newPageBorderBoxCenter:jr,viewport:Vr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return yn?Wr:null}var Vn=Boolean(_e[ar.axis.line]<=$e.page.borderBox.center[ar.axis.line]),Li=function(){var da=$e.descriptor.index;return $e.descriptor.id===Vt.descriptor.id||Vn?da:da+1}(),Mi=mn(ar.axis,Vt.displaceBy);return bt({draggable:Vt,insideDestination:wt,destination:ar,viewport:Vr,displacedBy:Mi,last:un,index:Li})},en=function(ae){var _e=ae.isMovingForward,$e=ae.previousPageBorderBoxCenter,wt=ae.draggable,Vt=ae.isOver,rr=ae.draggables,ar=ae.droppables,Vr=ae.viewport,pn=ae.afterCritical,Wr=gt({isMovingForward:_e,pageBorderBoxCenter:$e,source:Vt,droppables:ar,viewport:Vr});if(!Wr)return null;var jr=dn(Wr.descriptor.id,rr),sn=Yr({pageBorderBoxCenter:$e,viewport:Vr,destination:Wr,insideDestination:jr,afterCritical:pn}),yn=bn({previousPageBorderBoxCenter:$e,destination:Wr,draggable:wt,draggables:rr,moveRelativeTo:sn,insideDestination:jr,viewport:Vr,afterCritical:pn});if(!yn)return null;var Vn=Di({impact:yn,draggable:wt,droppable:Wr,draggables:rr,afterCritical:pn}),Li=nt({pageBorderBoxCenter:Vn,draggable:wt,viewport:Vr});return{clientSelection:Li,impact:yn,scrollJumpRequest:null}},ti=function(ae){var _e=ae.at;return _e?_e.type==="REORDER"?_e.destination.droppableId:_e.combine.droppableId:null},pi=function(ae,_e){var $e=ti(ae);return $e?_e[$e]:null},Pi=function(ae){var _e=ae.state,$e=ae.type,wt=pi(_e.impact,_e.dimensions.droppables),Vt=Boolean(wt),rr=_e.dimensions.droppables[_e.critical.droppable.id],ar=wt||rr,Vr=ar.axis.direction,pn=Vr==="vertical"&&($e==="MOVE_UP"||$e==="MOVE_DOWN")||Vr==="horizontal"&&($e==="MOVE_LEFT"||$e==="MOVE_RIGHT");if(pn&&!Vt)return null;var Wr=$e==="MOVE_DOWN"||$e==="MOVE_RIGHT",jr=_e.dimensions.draggables[_e.critical.draggable.id],sn=_e.current.page.borderBoxCenter,yn=_e.dimensions,Vn=yn.draggables,Li=yn.droppables;return pn?ot({isMovingForward:Wr,previousPageBorderBoxCenter:sn,draggable:jr,destination:ar,draggables:Vn,viewport:_e.viewport,previousClientSelection:_e.current.client.selection,previousImpact:_e.impact,afterCritical:_e.afterCritical}):en({isMovingForward:Wr,previousPageBorderBoxCenter:sn,draggable:jr,isOver:ar,draggables:Vn,droppables:Li,viewport:_e.viewport,afterCritical:_e.afterCritical})};function qr(Ue){return Ue.phase==="DRAGGING"||Ue.phase==="COLLECTING"}function En(Ue){var ae=Xn(Ue.top,Ue.bottom),_e=Xn(Ue.left,Ue.right);return function(wt){return ae(wt.y)&&_e(wt.x)}}function Yn(Ue,ae){return Ue.left<ae.right&&Ue.right>ae.left&&Ue.top<ae.bottom&&Ue.bottom>ae.top}function zt(Ue){var ae=Ue.pageBorderBox,_e=Ue.draggable,$e=Ue.candidates,wt=_e.page.borderBox.center,Vt=$e.map(function(rr){var ar=rr.axis,Vr=rt(rr.axis.line,ae.center[ar.line],rr.page.borderBox.center[ar.crossAxisLine]);return{id:rr.descriptor.id,distance:St(wt,Vr)}}).sort(function(rr,ar){return ar.distance-rr.distance});return Vt[0]?Vt[0].id:null}function Ot(Ue){var ae=Ue.pageBorderBox,_e=Ue.draggable,$e=Ue.droppables,wt=ir($e).filter(function(Vt){if(!Vt.isEnabled)return!1;var rr=Vt.subject.active;if(!rr)return!1;if(!Yn(ae,rr))return!1;if(En(rr)(ae.center))return!0;var ar=Vt.axis,Vr=rr.center[ar.crossAxisLine],pn=ae[ar.crossAxisStart],Wr=ae[ar.crossAxisEnd],jr=Xn(rr[ar.crossAxisStart],rr[ar.crossAxisEnd]),sn=jr(pn),yn=jr(Wr);return!sn&&!yn?!0:sn?pn<Vr:Wr>Vr});return wt.length?wt.length===1?wt[0].descriptor.id:zt({pageBorderBox:ae,draggable:_e,candidates:wt}):null}var kt=function(ae,_e){return e(ct(ae,_e))},Bt=function(ae,_e){var $e=ae.frame;return $e?kt(_e,$e.scroll.diff.value):_e};function Wt(Ue){var ae=Ue.displaced,_e=Ue.id;return Boolean(ae.visible[_e]||ae.invisible[_e])}function Lt(Ue){var ae=Ue.draggable,_e=Ue.closest,$e=Ue.inHomeList;return _e?$e&&_e.descriptor.index>ae.descriptor.index?_e.descriptor.index-1:_e.descriptor.index:null}var dr=function(ae){var _e=ae.pageBorderBoxWithDroppableScroll,$e=ae.draggable,wt=ae.destination,Vt=ae.insideDestination,rr=ae.last,ar=ae.viewport,Vr=ae.afterCritical,pn=wt.axis,Wr=mn(wt.axis,$e.displaceBy),jr=Wr.value,sn=_e[pn.start],yn=_e[pn.end],Vn=Jt($e,Vt),Li=ge(Vn,function(da){var $i=da.descriptor.id,Qa=da.page.borderBox.center[pn.line],ya=cr($i,Vr),fo=Wt({displaced:rr,id:$i});return ya?fo?yn<=Qa:sn<Qa-jr:fo?yn<=Qa+jr:sn<Qa}),Mi=Lt({draggable:$e,closest:Li,inHomeList:at($e,wt)});return bt({draggable:$e,insideDestination:Vt,destination:wt,viewport:ar,last:rr,displacedBy:Wr,index:Mi})},yr=4,br=function(ae){var _e=ae.draggable,$e=ae.pageBorderBoxWithDroppableScroll,wt=ae.previousImpact,Vt=ae.destination,rr=ae.insideDestination,ar=ae.afterCritical;if(!Vt.isCombineEnabled)return null;var Vr=Vt.axis,pn=mn(Vt.axis,_e.displaceBy),Wr=pn.value,jr=$e[Vr.start],sn=$e[Vr.end],yn=Jt(_e,rr),Vn=ge(yn,function(Mi){var da=Mi.descriptor.id,$i=Mi.page.borderBox,Qa=$i[Vr.size],ya=Qa/yr,fo=cr(da,ar),za=Wt({displaced:wt.displaced,id:da});return fo?za?sn>$i[Vr.start]+ya&&sn<$i[Vr.end]-ya:jr>$i[Vr.start]-Wr+ya&&jr<$i[Vr.end]-Wr-ya:za?sn>$i[Vr.start]+Wr+ya&&sn<$i[Vr.end]+Wr-ya:jr>$i[Vr.start]+ya&&jr<$i[Vr.end]-ya});if(!Vn)return null;var Li={displacedBy:pn,displaced:wt.displaced,at:{type:"COMBINE",combine:{draggableId:Vn.descriptor.id,droppableId:Vt.descriptor.id}}};return Li},Mr=function(ae){var _e=ae.pageOffset,$e=ae.draggable,wt=ae.draggables,Vt=ae.droppables,rr=ae.previousImpact,ar=ae.viewport,Vr=ae.afterCritical,pn=kt($e.page.borderBox,_e),Wr=Ot({pageBorderBox:pn,draggable:$e,droppables:Vt});if(!Wr)return _n;var jr=Vt[Wr],sn=dn(jr.descriptor.id,wt),yn=Bt(jr,pn);return br({pageBorderBoxWithDroppableScroll:yn,draggable:$e,previousImpact:rr,destination:jr,insideDestination:sn,afterCritical:Vr})||dr({pageBorderBoxWithDroppableScroll:yn,draggable:$e,destination:jr,insideDestination:sn,last:rr.displaced,viewport:ar,afterCritical:Vr})},Gn=function(ae,_e){var $e;return Object(v.a)({},ae,($e={},$e[_e.descriptor.id]=_e,$e))},Mn=function(ae){var _e=ae.previousImpact,$e=ae.impact,wt=ae.droppables,Vt=ti(_e),rr=ti($e);if(!Vt)return wt;if(Vt===rr)return wt;var ar=wt[Vt];if(!ar.subject.withPlaceholder)return wt;var Vr=Bn(ar);return Gn(wt,Vr)},di=function(ae){var _e=ae.draggable,$e=ae.draggables,wt=ae.droppables,Vt=ae.previousImpact,rr=ae.impact,ar=Mn({previousImpact:Vt,impact:rr,droppables:wt}),Vr=ti(rr);if(!Vr)return ar;var pn=wt[Vr];if(at(_e,pn))return ar;if(pn.subject.withPlaceholder)return ar;var Wr=Fr(pn,_e,$e);return Gn(ar,Wr)},vn=function(ae){var _e=ae.state,$e=ae.clientSelection,wt=ae.dimensions,Vt=ae.viewport,rr=ae.impact,ar=ae.scrollJumpRequest,Vr=Vt||_e.viewport,pn=wt||_e.dimensions,Wr=$e||_e.current.client.selection,jr=fe(Wr,_e.initial.client.selection),sn={offset:jr,selection:Wr,borderBoxCenter:Be(_e.initial.client.borderBoxCenter,jr)},yn={selection:Be(sn.selection,Vr.scroll.current),borderBoxCenter:Be(sn.borderBoxCenter,Vr.scroll.current),offset:Be(sn.offset,Vr.scroll.diff.value)},Vn={client:sn,page:yn};if(_e.phase==="COLLECTING")return Object(v.a)({phase:"COLLECTING"},_e,{dimensions:pn,viewport:Vr,current:Vn});var Li=pn.draggables[_e.critical.draggable.id],Mi=rr||Mr({pageOffset:yn.offset,draggable:Li,draggables:pn.draggables,droppables:pn.droppables,previousImpact:_e.impact,viewport:Vr,afterCritical:_e.afterCritical}),da=di({draggable:Li,impact:Mi,previousImpact:_e.impact,draggables:pn.draggables,droppables:pn.droppables}),$i=Object(v.a)({},_e,{current:Vn,dimensions:{draggables:pn.draggables,droppables:da},impact:Mi,viewport:Vr,scrollJumpRequest:ar||null,forceShouldAnimate:ar?!1:null});return $i};function Ur(Ue,ae){return Ue.map(function(_e){return ae[_e]})}var In=function(ae){var _e=ae.impact,$e=ae.viewport,wt=ae.draggables,Vt=ae.destination,rr=ae.forceShouldAnimate,ar=_e.displaced,Vr=Ur(ar.all,wt),pn=hn({afterDragging:Vr,destination:Vt,displacedBy:_e.displacedBy,viewport:$e.frame,forceShouldAnimate:rr,last:ar});return Object(v.a)({},_e,{displaced:pn})},Qn=function(ae){var _e=ae.impact,$e=ae.draggable,wt=ae.droppable,Vt=ae.draggables,rr=ae.viewport,ar=ae.afterCritical,Vr=Di({impact:_e,draggable:$e,draggables:Vt,droppable:wt,afterCritical:ar});return nt({pageBorderBoxCenter:Vr,draggable:$e,viewport:rr})},qn=function(ae){var _e=ae.state,$e=ae.dimensions,wt=ae.viewport;_e.movementMode==="SNAP"||Ve(!1);var Vt=_e.impact,rr=wt||_e.viewport,ar=$e||_e.dimensions,Vr=ar.draggables,pn=ar.droppables,Wr=Vr[_e.critical.draggable.id],jr=ti(Vt);jr||Ve(!1);var sn=pn[jr],yn=In({impact:Vt,viewport:rr,destination:sn,draggables:Vr}),Vn=Qn({impact:yn,draggable:Wr,droppable:sn,draggables:Vr,viewport:rr,afterCritical:_e.afterCritical});return vn({impact:yn,clientSelection:Vn,state:_e,dimensions:ar,viewport:rr})},oi=function(ae){return{index:ae.index,droppableId:ae.droppableId}},Ti=function(ae){var _e=ae.draggable,$e=ae.home,wt=ae.draggables,Vt=ae.viewport,rr=mn($e.axis,_e.displaceBy),ar=dn($e.descriptor.id,wt),Vr=ar.indexOf(_e);Vr!==-1||Ve(!1);var pn=ar.slice(Vr+1),Wr=pn.reduce(function(Vn,Li){return Vn[Li.descriptor.id]=!0,Vn},{}),jr={inVirtualList:$e.descriptor.mode==="virtual",displacedBy:rr,effected:Wr},sn=hn({afterDragging:pn,destination:$e,displacedBy:rr,last:null,viewport:Vt.frame,forceShouldAnimate:!1}),yn={displaced:sn,displacedBy:rr,at:{type:"REORDER",destination:oi(_e.descriptor)}};return{impact:yn,afterCritical:jr}},ki=function(ae,_e){return{draggables:ae.draggables,droppables:Gn(ae.droppables,_e)}},Ri=function(ae){},oa=function(ae){},ma=function(ae){var _e=ae.draggable,$e=ae.offset,wt=ae.initialWindowScroll,Vt=b(_e.client,$e),rr=S(Vt,wt),ar=Object(v.a)({},_e,{placeholder:Object(v.a)({},_e.placeholder,{client:Vt}),client:Vt,page:rr});return ar},aa=function(ae){var _e=ae.frame;return _e||Ve(!1),_e},ba=function(ae){var _e=ae.additions,$e=ae.updatedDroppables,wt=ae.viewport,Vt=wt.scroll.diff.value;return _e.map(function(rr){var ar=rr.descriptor.droppableId,Vr=$e[ar],pn=aa(Vr),Wr=pn.scroll.diff.value,jr=Be(Vt,Wr),sn=ma({draggable:rr,offset:jr,initialWindowScroll:wt.scroll.initial});return sn})},yi=function(ae){var _e=ae.state,$e=ae.published;Ri();var wt=$e.modified.map(function(ya){var fo=_e.dimensions.droppables[ya.droppableId],za=pe(fo,ya.scroll);return za}),Vt=Object(v.a)({},_e.dimensions.droppables,{},vr(wt)),rr=At(ba({additions:$e.additions,updatedDroppables:Vt,viewport:_e.viewport})),ar=Object(v.a)({},_e.dimensions.draggables,{},rr);$e.removals.forEach(function(ya){delete ar[ya]});var Vr={droppables:Vt,draggables:ar},pn=ti(_e.impact),Wr=pn?Vr.droppables[pn]:null,jr=Vr.draggables[_e.critical.draggable.id],sn=Vr.droppables[_e.critical.droppable.id],yn=Ti({draggable:jr,home:sn,draggables:ar,viewport:_e.viewport}),Vn=yn.impact,Li=yn.afterCritical,Mi=Wr&&Wr.isCombineEnabled?_e.impact:Vn,da=Mr({pageOffset:_e.current.page.offset,draggable:Vr.draggables[_e.critical.draggable.id],draggables:Vr.draggables,droppables:Vr.droppables,previousImpact:Mi,viewport:_e.viewport,afterCritical:Li});oa();var $i=Object(v.a)({phase:"DRAGGING"},_e,{phase:"DRAGGING",impact:da,onLiftImpact:Vn,dimensions:Vr,afterCritical:Li,forceShouldAnimate:!1});if(_e.phase==="COLLECTING")return $i;var Qa=Object(v.a)({phase:"DROP_PENDING"},$i,{phase:"DROP_PENDING",reason:_e.reason,isWaiting:!1});return Qa},kn=function(ae){return ae.movementMode==="SNAP"},ji=function(ae,_e,$e){var wt=ki(ae.dimensions,_e);return!kn(ae)||$e?vn({state:ae,dimensions:wt}):qn({state:ae,dimensions:wt})};function ha(Ue){return Ue.isDragging&&Ue.movementMode==="SNAP"?Object(v.a)({phase:"DRAGGING"},Ue,{scrollJumpRequest:null}):Ue}var ta={phase:"IDLE",completed:null,shouldFlush:!1},ra=function(ae,_e){if(ae===void 0&&(ae=ta),_e.type==="FLUSH")return Object(v.a)({},ta,{shouldFlush:!0});if(_e.type==="INITIAL_PUBLISH"){ae.phase==="IDLE"||Ve(!1);var $e=_e.payload,wt=$e.critical,Vt=$e.clientSelection,rr=$e.viewport,ar=$e.dimensions,Vr=$e.movementMode,pn=ar.draggables[wt.draggable.id],Wr=ar.droppables[wt.droppable.id],jr={selection:Vt,borderBoxCenter:pn.client.borderBox.center,offset:Ce},sn={client:jr,page:{selection:Be(jr.selection,rr.scroll.initial),borderBoxCenter:Be(jr.selection,rr.scroll.initial),offset:Be(jr.selection,rr.scroll.diff.value)}},yn=ir(ar.droppables).every(function(Ss){return!Ss.isFixedOnPage}),Vn=Ti({draggable:pn,home:Wr,draggables:ar.draggables,viewport:rr}),Li=Vn.impact,Mi=Vn.afterCritical,da={phase:"DRAGGING",isDragging:!0,critical:wt,movementMode:Vr,dimensions:ar,initial:sn,current:sn,isWindowScrollAllowed:yn,impact:Li,afterCritical:Mi,onLiftImpact:Li,viewport:rr,scrollJumpRequest:null,forceShouldAnimate:null};return da}if(_e.type==="COLLECTION_STARTING"){if(ae.phase==="COLLECTING"||ae.phase==="DROP_PENDING")return ae;ae.phase==="DRAGGING"||Ve(!1);var $i=Object(v.a)({phase:"COLLECTING"},ae,{phase:"COLLECTING"});return $i}if(_e.type==="PUBLISH_WHILE_DRAGGING")return ae.phase==="COLLECTING"||ae.phase==="DROP_PENDING"||Ve(!1),yi({state:ae,published:_e.payload});if(_e.type==="MOVE"){if(ae.phase==="DROP_PENDING")return ae;qr(ae)||Ve(!1);var Qa=_e.payload.client;return we(Qa,ae.current.client.selection)?ae:vn({state:ae,clientSelection:Qa,impact:kn(ae)?ae.impact:null})}if(_e.type==="UPDATE_DROPPABLE_SCROLL"){if(ae.phase==="DROP_PENDING")return ha(ae);if(ae.phase==="COLLECTING")return ha(ae);qr(ae)||Ve(!1);var ya=_e.payload,fo=ya.id,za=ya.newScroll,Xo=ae.dimensions.droppables[fo];if(!Xo)return ae;var ls=pe(Xo,za);return ji(ae,ls,!1)}if(_e.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(ae.phase==="DROP_PENDING")return ae;qr(ae)||Ve(!1);var N=_e.payload,B=N.id,ie=N.isEnabled,le=ae.dimensions.droppables[B];le||Ve(!1),le.isEnabled!==ie||Ve(!1);var me=Object(v.a)({},le,{isEnabled:ie});return ji(ae,me,!0)}if(_e.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(ae.phase==="DROP_PENDING")return ae;qr(ae)||Ve(!1);var Ke=_e.payload,It=Ke.id,nr=Ke.isCombineEnabled,wr=ae.dimensions.droppables[It];wr||Ve(!1),wr.isCombineEnabled!==nr||Ve(!1);var _r=Object(v.a)({},wr,{isCombineEnabled:nr});return ji(ae,_r,!0)}if(_e.type==="MOVE_BY_WINDOW_SCROLL"){if(ae.phase==="DROP_PENDING"||ae.phase==="DROP_ANIMATING")return ae;qr(ae)||Ve(!1),ae.isWindowScrollAllowed||Ve(!1);var Hn=_e.payload.newScroll;if(we(ae.viewport.scroll.current,Hn))return ha(ae);var ni=Wi(ae.viewport,Hn);return kn(ae)?qn({state:ae,viewport:ni}):vn({state:ae,viewport:ni})}if(_e.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!qr(ae))return ae;var Ei=_e.payload.maxScroll;if(we(Ei,ae.viewport.scroll.max))return ae;var Oi=Object(v.a)({},ae.viewport,{scroll:Object(v.a)({},ae.viewport.scroll,{max:Ei})});return Object(v.a)({phase:"DRAGGING"},ae,{viewport:Oi})}if(_e.type==="MOVE_UP"||_e.type==="MOVE_DOWN"||_e.type==="MOVE_LEFT"||_e.type==="MOVE_RIGHT"){if(ae.phase==="COLLECTING"||ae.phase==="DROP_PENDING")return ae;ae.phase==="DRAGGING"||Ve(!1);var la=Pi({state:ae,type:_e.type});return la?vn({state:ae,impact:la.impact,clientSelection:la.clientSelection,scrollJumpRequest:la.scrollJumpRequest}):ae}if(_e.type==="DROP_PENDING"){var Ta=_e.payload.reason;ae.phase==="COLLECTING"||Ve(!1);var Wa=Object(v.a)({phase:"DROP_PENDING"},ae,{phase:"DROP_PENDING",isWaiting:!0,reason:Ta});return Wa}if(_e.type==="DROP_ANIMATE"){var Ma=_e.payload,Na=Ma.completed,qa=Ma.dropDuration,ho=Ma.newHomeClientOffset;ae.phase==="DRAGGING"||ae.phase==="DROP_PENDING"||Ve(!1);var ns={phase:"DROP_ANIMATING",completed:Na,dropDuration:qa,newHomeClientOffset:ho,dimensions:ae.dimensions};return ns}if(_e.type==="DROP_COMPLETE"){var Mo=_e.payload.completed;return{phase:"IDLE",completed:Mo,shouldFlush:!1}}return ae},Ir=function(ae){return{type:"BEFORE_INITIAL_CAPTURE",payload:ae}},xr=function(ae){return{type:"LIFT",payload:ae}},Cn=function(ae){return{type:"INITIAL_PUBLISH",payload:ae}},mr=function(ae){return{type:"PUBLISH_WHILE_DRAGGING",payload:ae}},kr=function(){return{type:"COLLECTION_STARTING",payload:null}},Gr=function(ae){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ae}},ln=function(ae){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ae}},Fn=function(ae){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ae}},_t=function(ae){return{type:"MOVE",payload:ae}},Or=function(ae){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ae}},Lr=function(ae){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ae}},rn=function(){return{type:"MOVE_UP",payload:null}},xn=function(){return{type:"MOVE_DOWN",payload:null}},Ln=function(){return{type:"MOVE_RIGHT",payload:null}},Sn=function(){return{type:"MOVE_LEFT",payload:null}},ei=function(){return{type:"FLUSH",payload:null}},Kn=function(ae){return{type:"DROP_ANIMATE",payload:ae}},mi=function(ae){return{type:"DROP_COMPLETE",payload:ae}},Fi=function(ae){return{type:"DROP",payload:ae}},bi=function(ae){return{type:"DROP_PENDING",payload:ae}},Ii=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Vi(Ue){if(Ue.length<=1)return;for(var ae=Ue.map(function(ar){return ar.descriptor.index}),_e={},$e=1;$e<ae.length;$e++){var wt=ae[$e],Vt=ae[$e-1];wt!==Vt+1&&(_e[wt]=!0)}if(!Object.keys(_e).length)return;var rr=ae.map(function(ar){var Vr=Boolean(_e[ar]);return Vr?"[\u{1F525}"+ar+"]":""+ar}).join(", ")}function ea(Ue,ae){if(!1)var _e}var Xi=function(ae){return function(_e){var $e=_e.getState,wt=_e.dispatch;return function(Vt){return function(rr){if(rr.type!=="LIFT"){Vt(rr);return}var ar=rr.payload,Vr=ar.id,pn=ar.clientSelection,Wr=ar.movementMode,jr=$e();jr.phase==="DROP_ANIMATING"&&wt(mi({completed:jr.completed})),$e().phase==="IDLE"||Ve(!1),wt(ei()),wt(Ir({draggableId:Vr,movementMode:Wr}));var sn={shouldPublishImmediately:Wr==="SNAP"},yn={draggableId:Vr,scrollOptions:sn},Vn=ae.startPublishing(yn),Li=Vn.critical,Mi=Vn.dimensions,da=Vn.viewport;ea(Li,Mi),wt(Cn({critical:Li,dimensions:Mi,clientSelection:pn,movementMode:Wr,viewport:da}))}}}},zi=function(ae){return function(){return function(_e){return function($e){$e.type==="INITIAL_PUBLISH"&&ae.dragging(),$e.type==="DROP_ANIMATE"&&ae.dropping($e.payload.completed.result.reason),($e.type==="FLUSH"||$e.type==="DROP_COMPLETE")&&ae.resting(),_e($e)}}}},Hi={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ji={opacity:{drop:0,combining:.7},scale:{drop:.75}},ca={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Ca=ca.outOfTheWay+"s "+Hi.outOfTheWay,na={fluid:"opacity "+Ca,snap:"transform "+Ca+", opacity "+Ca,drop:function(ae){var _e=ae+"s "+Hi.drop;return"transform "+_e+", opacity "+_e},outOfTheWay:"transform "+Ca,placeholder:"height "+Ca+", width "+Ca+", margin "+Ca},Pa=function(ae){return we(ae,Ce)?null:"translate("+ae.x+"px, "+ae.y+"px)"},La={moveTo:Pa,drop:function(ae,_e){var $e=Pa(ae);return $e?_e?$e+" scale("+Ji.scale.drop+")":$e:null}},va=ca.minDropTime,ga=ca.maxDropTime,Oa=ga-va,Aa=1500,Xa=.6,_a=function(ae){var _e=ae.current,$e=ae.destination,wt=ae.reason,Vt=St(_e,$e);if(Vt<=0)return va;if(Vt>=Aa)return ga;var rr=Vt/Aa,ar=va+Oa*rr,Vr=wt==="CANCEL"?ar*Xa:ar;return Number(Vr.toFixed(2))},Va=function(ae){var _e=ae.impact,$e=ae.draggable,wt=ae.dimensions,Vt=ae.viewport,rr=ae.afterCritical,ar=wt.draggables,Vr=wt.droppables,pn=ti(_e),Wr=pn?Vr[pn]:null,jr=Vr[$e.descriptor.droppableId],sn=Qn({impact:_e,draggable:$e,draggables:ar,afterCritical:rr,droppable:Wr||jr,viewport:Vt}),yn=fe(sn,$e.client.borderBox.center);return yn},Bi=function(ae){var _e=ae.draggables,$e=ae.reason,wt=ae.lastImpact,Vt=ae.home,rr=ae.viewport,ar=ae.onLiftImpact;if(!wt.at||$e!=="DROP"){var Vr=In({draggables:_e,impact:ar,destination:Vt,viewport:rr,forceShouldAnimate:!0});return{impact:Vr,didDropInsideDroppable:!1}}if(wt.at.type==="REORDER")return{impact:wt,didDropInsideDroppable:!0};var pn=Object(v.a)({},wt,{displaced:un});return{impact:pn,didDropInsideDroppable:!0}},io=function(ae){var _e=ae.getState,$e=ae.dispatch;return function(wt){return function(Vt){if(Vt.type!=="DROP"){wt(Vt);return}var rr=_e(),ar=Vt.payload.reason;if(rr.phase==="COLLECTING"){$e(bi({reason:ar}));return}if(rr.phase==="IDLE")return;var Vr=rr.phase==="DROP_PENDING"&&rr.isWaiting;Vr&&Ve(!1),rr.phase==="DRAGGING"||rr.phase==="DROP_PENDING"||Ve(!1);var pn=rr.critical,Wr=rr.dimensions,jr=Wr.draggables[rr.critical.draggable.id],sn=Bi({reason:ar,lastImpact:rr.impact,afterCritical:rr.afterCritical,onLiftImpact:rr.onLiftImpact,home:rr.dimensions.droppables[rr.critical.droppable.id],viewport:rr.viewport,draggables:rr.dimensions.draggables}),yn=sn.impact,Vn=sn.didDropInsideDroppable,Li=Vn?Ft(yn):null,Mi=Vn?ur(yn):null,da={index:pn.draggable.index,droppableId:pn.droppable.id},$i={draggableId:jr.descriptor.id,type:jr.descriptor.type,source:da,reason:ar,mode:rr.movementMode,destination:Li,combine:Mi},Qa=Va({impact:yn,draggable:jr,dimensions:Wr,viewport:rr.viewport,afterCritical:rr.afterCritical}),ya={critical:rr.critical,afterCritical:rr.afterCritical,result:$i,impact:yn},fo=!we(rr.current.client.offset,Qa)||Boolean($i.combine);if(!fo){$e(mi({completed:ya}));return}var za=_a({current:rr.current.client.offset,destination:Qa,reason:ar}),Xo={newHomeClientOffset:Qa,dropDuration:za,completed:ya};$e(Kn(Xo))}}},oo=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Qo(Ue){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(_e){if(_e.target!==window&&_e.target!==window.document)return;Ue()}}}function mo(Ue){var ae=Ue.onWindowScroll;function _e(){ae(oo())}var $e=M(_e),wt=Qo($e),Vt=se;function rr(){return Vt!==se}function ar(){rr()&&Ve(!1),Vt=xe(window,[wt])}function Vr(){rr()||Ve(!1),$e.cancel(),Vt(),Vt=se}return{start:ar,stop:Vr,isActive:rr}}var To=function(ae){return ae.type==="DROP_COMPLETE"||ae.type==="DROP_ANIMATE"||ae.type==="FLUSH"},ao=function(ae){var _e=mo({onWindowScroll:function(wt){ae.dispatch(Or({newScroll:wt}))}});return function($e){return function(wt){!_e.isActive()&&wt.type==="INITIAL_PUBLISH"&&_e.start(),_e.isActive()&&To(wt)&&_e.stop(),$e(wt)}}},So=function(ae){var _e=!1,$e=!1,wt=setTimeout(function(){$e=!0}),Vt=function(ar){if(_e)return;if($e)return;_e=!0,ae(ar),clearTimeout(wt)};return Vt.wasCalled=function(){return _e},Vt},bo=function(){var ae=[],_e=function(rr){var ar=qe(ae,function(Wr){return Wr.timerId===rr});ar!==-1||Ve(!1);var Vr=ae.splice(ar,1),pn=Vr[0];pn.callback()},$e=function(rr){var ar=setTimeout(function(){return _e(ar)}),Vr={timerId:ar,callback:rr};ae.push(Vr)},wt=function(){if(!ae.length)return;var rr=[].concat(ae);ae.length=0,rr.forEach(function(ar){clearTimeout(ar.timerId),ar.callback()})};return{add:$e,flush:wt}},to=function(ae,_e){return ae==null&&_e==null?!0:ae==null||_e==null?!1:ae.droppableId===_e.droppableId&&ae.index===_e.index},Jo=function(ae,_e){return ae==null&&_e==null?!0:ae==null||_e==null?!1:ae.draggableId===_e.draggableId&&ae.droppableId===_e.droppableId},Uo=function(ae,_e){if(ae===_e)return!0;var $e=ae.draggable.id===_e.draggable.id&&ae.draggable.droppableId===_e.draggable.droppableId&&ae.draggable.type===_e.draggable.type&&ae.draggable.index===_e.draggable.index,wt=ae.droppable.id===_e.droppable.id&&ae.droppable.type===_e.droppable.type;return $e&&wt},wo=function(ae,_e){Ri(),_e(),oa()},ts=function(ae,_e){return{draggableId:ae.draggable.id,type:ae.droppable.type,source:{droppableId:ae.droppable.id,index:ae.draggable.index},mode:_e}},Ia=function(ae,_e,$e,wt){if(!ae){$e(wt(_e));return}var Vt=So($e),rr={announce:Vt};ae(_e,rr),Vt.wasCalled()||$e(wt(_e))},Oo=function(ae,_e){var $e=bo(),wt=null,Vt=function(yn,Vn){wt&&Ve(!1),wo("onBeforeCapture",function(){var Li=ae().onBeforeCapture;if(Li){var Mi={draggableId:yn,mode:Vn};Li(Mi)}})},rr=function(yn,Vn){wt&&Ve(!1),wo("onBeforeDragStart",function(){var Li=ae().onBeforeDragStart;Li&&Li(ts(yn,Vn))})},ar=function(yn,Vn){wt&&Ve(!1);var Li=ts(yn,Vn);wt={mode:Vn,lastCritical:yn,lastLocation:Li.source,lastCombine:null},$e.add(function(){wo("onDragStart",function(){return Ia(ae().onDragStart,Li,_e,be.onDragStart)})})},Vr=function(yn,Vn){var Li=Ft(Vn),Mi=ur(Vn);wt||Ve(!1);var da=!Uo(yn,wt.lastCritical);da&&(wt.lastCritical=yn);var $i=!to(wt.lastLocation,Li);$i&&(wt.lastLocation=Li);var Qa=!Jo(wt.lastCombine,Mi);if(Qa&&(wt.lastCombine=Mi),!da&&!$i&&!Qa)return;var ya=Object(v.a)({},ts(yn,wt.mode),{combine:Mi,destination:Li});$e.add(function(){wo("onDragUpdate",function(){return Ia(ae().onDragUpdate,ya,_e,be.onDragUpdate)})})},pn=function(){wt||Ve(!1),$e.flush()},Wr=function(yn){wt||Ve(!1),wt=null,wo("onDragEnd",function(){return Ia(ae().onDragEnd,yn,_e,be.onDragEnd)})},jr=function(){if(!wt)return;var yn=Object(v.a)({},ts(wt.lastCritical,wt.mode),{combine:null,destination:null,reason:"CANCEL"});Wr(yn)};return{beforeCapture:Vt,beforeStart:rr,start:ar,update:Vr,flush:pn,drop:Wr,abort:jr}},Io=function(ae,_e){var $e=Oo(ae,_e);return function(wt){return function(Vt){return function(rr){if(rr.type==="BEFORE_INITIAL_CAPTURE"){$e.beforeCapture(rr.payload.draggableId,rr.payload.movementMode);return}if(rr.type==="INITIAL_PUBLISH"){var ar=rr.payload.critical;$e.beforeStart(ar,rr.payload.movementMode),Vt(rr),$e.start(ar,rr.payload.movementMode);return}if(rr.type==="DROP_COMPLETE"){var Vr=rr.payload.completed.result;$e.flush(),Vt(rr),$e.drop(Vr);return}if(Vt(rr),rr.type==="FLUSH"){$e.abort();return}var pn=wt.getState();pn.phase==="DRAGGING"&&$e.update(pn.critical,pn.impact)}}}},os=function(ae){return function(_e){return function($e){if($e.type!=="DROP_ANIMATION_FINISHED"){_e($e);return}var wt=ae.getState();wt.phase==="DROP_ANIMATING"||Ve(!1),ae.dispatch(mi({completed:wt.completed}))}}},xo=function(ae){var _e=null,$e=null;function wt(){$e&&(cancelAnimationFrame($e),$e=null),_e&&(_e(),_e=null)}return function(Vt){return function(rr){if((rr.type==="FLUSH"||rr.type==="DROP_COMPLETE"||rr.type==="DROP_ANIMATION_FINISHED")&&wt(),Vt(rr),rr.type!=="DROP_ANIMATE")return;var ar={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var pn=ae.getState();pn.phase==="DROP_ANIMATING"&&ae.dispatch(Ii())}};$e=requestAnimationFrame(function(){$e=null,_e=xe(window,[ar])})}}},rs=function(ae){return function(){return function(_e){return function($e){($e.type==="DROP_COMPLETE"||$e.type==="FLUSH"||$e.type==="DROP_ANIMATE")&&ae.stopPublishing(),_e($e)}}}},Ho=function(ae){var _e=!1;return function(){return function($e){return function(wt){if(wt.type==="INITIAL_PUBLISH"){_e=!0,ae.tryRecordFocus(wt.payload.critical.draggable.id),$e(wt),ae.tryRestoreFocusRecorded();return}if($e(wt),!_e)return;if(wt.type==="FLUSH"){_e=!1,ae.tryRestoreFocusRecorded();return}if(wt.type==="DROP_COMPLETE"){_e=!1;var Vt=wt.payload.completed.result;Vt.combine&&ae.tryShiftRecord(Vt.draggableId,Vt.combine.draggableId),ae.tryRestoreFocusRecorded()}}}}},_o=function(ae){return ae.type==="DROP_COMPLETE"||ae.type==="DROP_ANIMATE"||ae.type==="FLUSH"},uo=function(ae){return function(_e){return function($e){return function(wt){if(_o(wt)){ae.stop(),$e(wt);return}if(wt.type==="INITIAL_PUBLISH"){$e(wt);var Vt=_e.getState();Vt.phase==="DRAGGING"||Ve(!1),ae.start(Vt);return}$e(wt),ae.scroll(_e.getState())}}}},Ha=function(ae){return function(_e){return function($e){if(_e($e),$e.type!=="PUBLISH_WHILE_DRAGGING")return;var wt=ae.getState();if(wt.phase!=="DROP_PENDING")return;if(wt.isWaiting)return;ae.dispatch(Fi({reason:wt.reason}))}}},mt=m.d,Tr=function(ae){var _e=ae.dimensionMarshal,$e=ae.focusMarshal,wt=ae.styleMarshal,Vt=ae.getResponders,rr=ae.announce,ar=ae.autoScroller;return Object(m.e)(ra,mt(Object(m.a)(zi(wt),rs(_e),Xi(_e),io,os,xo,Ha,uo(ar),ao,Ho($e),Io(Vt,rr))))},tn=function(){return{additions:{},removals:{},modified:{}}};function Qr(Ue){var ae=Ue.registry,_e=Ue.callbacks,$e=tn(),wt=null,Vt=function(){if(wt)return;_e.collectionStarting(),wt=requestAnimationFrame(function(){wt=null,Ri();var Wr=$e,jr=Wr.additions,sn=Wr.removals,yn=Wr.modified,Vn=Object.keys(jr).map(function(da){return ae.draggable.getById(da).getDimension(Ce)}).sort(function(da,$i){return da.descriptor.index-$i.descriptor.index}),Li=Object.keys(yn).map(function(da){var $i=ae.droppable.getById(da),Qa=$i.callbacks.getScrollWhileDragging();return{droppableId:da,scroll:Qa}}),Mi={additions:Vn,removals:Object.keys(sn),modified:Li};$e=tn(),oa(),_e.publish(Mi)})},rr=function(Wr){var jr=Wr.descriptor.id;$e.additions[jr]=Wr,$e.modified[Wr.descriptor.droppableId]=!0,$e.removals[jr]&&delete $e.removals[jr],Vt()},ar=function(Wr){var jr=Wr.descriptor;$e.removals[jr.id]=!0,$e.modified[jr.droppableId]=!0,$e.additions[jr.id]&&delete $e.additions[jr.id],Vt()},Vr=function(){if(!wt)return;cancelAnimationFrame(wt),wt=null,$e=tn()};return{add:rr,remove:ar,stop:Vr}}var Jn=function(ae){var _e=ae.scrollHeight,$e=ae.scrollWidth,wt=ae.height,Vt=ae.width,rr=fe({x:$e,y:_e},{x:Vt,y:wt}),ar={x:Math.max(0,rr.x),y:Math.max(0,rr.y)};return ar},fn=function(){var ae=document.documentElement;return ae||Ve(!1),ae},Xr=function(){var ae=fn(),_e=Jn({scrollHeight:ae.scrollHeight,scrollWidth:ae.scrollWidth,width:ae.clientWidth,height:ae.clientHeight});return _e},ii=function(){var ae=oo(),_e=Xr(),$e=ae.y,wt=ae.x,Vt=fn(),rr=Vt.clientWidth,ar=Vt.clientHeight,Vr=wt+rr,pn=$e+ar,Wr=e({top:$e,left:wt,right:Vr,bottom:pn}),jr={frame:Wr,scroll:{initial:ae,current:ae,max:_e,diff:{value:Ce,displacement:Ce}}};return jr},nn=function(ae){var _e=ae.critical,$e=ae.scrollOptions,wt=ae.registry;Ri();var Vt=ii(),rr=Vt.scroll.current,ar=_e.droppable,Vr=wt.droppable.getAllByType(ar.type).map(function(sn){return sn.callbacks.getDimensionAndWatchScroll(rr,$e)}),pn=wt.draggable.getAllByType(_e.draggable.type).map(function(sn){return sn.getDimension(rr)}),Wr={draggables:At(pn),droppables:vr(Vr)};oa();var jr={dimensions:Wr,critical:_e,viewport:Vt};return jr};function Wn(Ue,ae,_e){if(_e.descriptor.id===ae.id)return!1;if(_e.descriptor.type!==ae.type)return!1;var $e=Ue.droppable.getById(_e.descriptor.droppableId);return!($e.descriptor.mode!=="virtual")}var li=function(ae,_e){var $e=null,wt=Qr({callbacks:{publish:_e.publishWhileDragging,collectionStarting:_e.collectionStarting},registry:ae}),Vt=function(Vn,Li){if(ae.droppable.exists(Vn)||Ve(!1),!$e)return;_e.updateDroppableIsEnabled({id:Vn,isEnabled:Li})},rr=function(Vn,Li){if(!$e)return;ae.droppable.exists(Vn)||Ve(!1),_e.updateDroppableIsCombineEnabled({id:Vn,isCombineEnabled:Li})},ar=function(Vn,Li){if(!$e)return;ae.droppable.exists(Vn)||Ve(!1),_e.updateDroppableScroll({id:Vn,newScroll:Li})},Vr=function(Vn,Li){if(!$e)return;ae.droppable.getById(Vn).callbacks.scroll(Li)},pn=function(){if(!$e)return;wt.stop();var Vn=$e.critical.droppable;ae.droppable.getAllByType(Vn.type).forEach(function(Li){return Li.callbacks.dragStopped()}),$e.unsubscribe(),$e=null},Wr=function(Vn){$e||Ve(!1);var Li=$e.critical.draggable;Vn.type==="ADDITION"&&(Wn(ae,Li,Vn.value)&&wt.add(Vn.value)),Vn.type==="REMOVAL"&&(Wn(ae,Li,Vn.value)&&wt.remove(Vn.value))},jr=function(Vn){$e&&Ve(!1);var Li=ae.draggable.getById(Vn.draggableId),Mi=ae.droppable.getById(Li.descriptor.droppableId),da={draggable:Li.descriptor,droppable:Mi.descriptor},$i=ae.subscribe(Wr);return $e={critical:da,unsubscribe:$i},nn({critical:da,registry:ae,scrollOptions:Vn.scrollOptions})},sn={updateDroppableIsEnabled:Vt,updateDroppableIsCombineEnabled:rr,scrollDroppable:Vr,updateDroppableScroll:ar,startPublishing:jr,stopPublishing:pn};return sn},ci=function(ae,_e){return ae.phase==="IDLE"?!0:ae.phase!=="DROP_ANIMATING"||ae.completed.result.draggableId===_e?!1:ae.completed.result.reason==="DROP"},si=function(ae){window.scrollBy(ae.x,ae.y)},Ci=I(function(Ue){return ir(Ue).filter(function(ae){return ae.isEnabled?!!ae.frame:!1})}),gi=function(ae,_e){var $e=ge(Ci(_e),function(wt){return wt.frame||Ve(!1),En(wt.frame.pageMarginBox)(ae)});return $e},Ai=function(ae){var _e=ae.center,$e=ae.destination,wt=ae.droppables;if($e){var Vt=wt[$e];return Vt.frame?Vt:null}var rr=gi(_e,wt);return rr},Ni={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ae){return Math.pow(ae,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},ia=function(ae,_e){var $e=ae[_e.size]*Ni.startFromPercentage,wt=ae[_e.size]*Ni.maxScrollAtPercentage,Vt={startScrollingFrom:$e,maxScrollValueAt:wt};return Vt},Ki=function(ae){var _e=ae.startOfRange,$e=ae.endOfRange,wt=ae.current,Vt=$e-_e;if(Vt===0)return 0;var rr=wt-_e,ar=rr/Vt;return ar},fa=1,Ya=function(ae,_e){if(ae>_e.startScrollingFrom)return 0;if(ae<=_e.maxScrollValueAt)return Ni.maxPixelScroll;if(ae===_e.startScrollingFrom)return fa;var $e=Ki({startOfRange:_e.maxScrollValueAt,endOfRange:_e.startScrollingFrom,current:ae}),wt=1-$e,Vt=Ni.maxPixelScroll*Ni.ease(wt);return Math.ceil(Vt)},xa=Ni.durationDampening.accelerateAt,wa=Ni.durationDampening.stopDampeningAt,Da=function(ae,_e){var $e=_e,wt=wa,Vt=Date.now(),rr=Vt-$e;if(rr>=wa)return ae;if(rr<xa)return fa;var ar=Ki({startOfRange:xa,endOfRange:wt,current:rr}),Vr=ae*Ni.ease(ar);return Math.ceil(Vr)},ja=function(ae){var _e=ae.distanceToEdge,$e=ae.thresholds,wt=ae.dragStartTime,Vt=ae.shouldUseTimeDampening,rr=Ya(_e,$e);return rr===0?0:Vt?Math.max(Da(rr,wt),fa):rr},ko=function(ae){var _e=ae.container,$e=ae.distanceToEdges,wt=ae.dragStartTime,Vt=ae.axis,rr=ae.shouldUseTimeDampening,ar=ia(_e,Vt),Vr=$e[Vt.end]<$e[Vt.start];return Vr?ja({distanceToEdge:$e[Vt.end],thresholds:ar,dragStartTime:wt,shouldUseTimeDampening:rr}):-1*ja({distanceToEdge:$e[Vt.start],thresholds:ar,dragStartTime:wt,shouldUseTimeDampening:rr})},ro=function(ae){var _e=ae.container,$e=ae.subject,wt=ae.proposedScroll,Vt=$e.height>_e.height,rr=$e.width>_e.width;return!rr&&!Vt?wt:rr&&Vt?null:{x:rr?0:wt.x,y:Vt?0:wt.y}},pa=He(function(Ue){return Ue===0?0:Ue}),Ea=function(ae){var _e=ae.dragStartTime,$e=ae.container,wt=ae.subject,Vt=ae.center,rr=ae.shouldUseTimeDampening,ar={top:Vt.y-$e.top,right:$e.right-Vt.x,bottom:$e.bottom-Vt.y,left:Vt.x-$e.left},Vr=ko({container:$e,distanceToEdges:ar,dragStartTime:_e,axis:Un,shouldUseTimeDampening:rr}),pn=ko({container:$e,distanceToEdges:ar,dragStartTime:_e,axis:$t,shouldUseTimeDampening:rr}),Wr=pa({x:pn,y:Vr});if(we(Wr,Ce))return null;var jr=ro({container:$e,subject:wt,proposedScroll:Wr});return jr?we(jr,Ce)?null:jr:null},Fa=He(function(Ue){return Ue===0?0:Ue>0?1:-1}),Ka=function(){var Ue=function(_e,$e){return _e<0?_e:_e>$e?_e-$e:0};return function(ae){var _e=ae.current,$e=ae.max,wt=ae.change,Vt=Be(_e,wt),rr={x:Ue(Vt.x,$e.x),y:Ue(Vt.y,$e.y)};return we(rr,Ce)?null:rr}}(),lo=function(ae){var _e=ae.max,$e=ae.current,wt=ae.change,Vt={x:Math.max($e.x,_e.x),y:Math.max($e.y,_e.y)},rr=Fa(wt),ar=Ka({max:Vt,current:$e,change:rr});return ar?rr.x!==0&&ar.x===0?!0:rr.y!==0&&ar.y===0:!0},so=function(ae,_e){return lo({current:ae.scroll.current,max:ae.scroll.max,change:_e})},Co=function(ae,_e){if(!so(ae,_e))return null;var $e=ae.scroll.max,wt=ae.scroll.current;return Ka({current:wt,max:$e,change:_e})},Lo=function(ae,_e){var $e=ae.frame;return $e?lo({current:$e.scroll.current,max:$e.scroll.max,change:_e}):!1},is=function(ae,_e){var $e=ae.frame;return $e&&Lo(ae,_e)?Ka({current:$e.scroll.current,max:$e.scroll.max,change:_e}):null},cs=function(ae){var _e=ae.viewport,$e=ae.subject,wt=ae.center,Vt=ae.dragStartTime,rr=ae.shouldUseTimeDampening,ar=Ea({dragStartTime:Vt,container:_e.frame,subject:$e,center:wt,shouldUseTimeDampening:rr});return ar&&so(_e,ar)?ar:null},Rs=function(ae){var _e=ae.droppable,$e=ae.subject,wt=ae.center,Vt=ae.dragStartTime,rr=ae.shouldUseTimeDampening,ar=_e.frame;if(!ar)return null;var Vr=Ea({dragStartTime:Vt,container:ar.pageMarginBox,subject:$e,center:wt,shouldUseTimeDampening:rr});return Vr&&Lo(_e,Vr)?Vr:null},Ko=function(ae){var _e=ae.state,$e=ae.dragStartTime,wt=ae.shouldUseTimeDampening,Vt=ae.scrollWindow,rr=ae.scrollDroppable,ar=_e.current.page.borderBoxCenter,Vr=_e.dimensions.draggables[_e.critical.draggable.id],pn=Vr.page.marginBox;if(_e.isWindowScrollAllowed){var Wr=_e.viewport,jr=cs({dragStartTime:$e,viewport:Wr,subject:pn,center:ar,shouldUseTimeDampening:wt});if(jr){Vt(jr);return}}var sn=Ai({center:ar,destination:ti(_e.impact),droppables:_e.dimensions.droppables});if(!sn)return;var yn=Rs({dragStartTime:$e,droppable:sn,subject:pn,center:ar,shouldUseTimeDampening:wt});yn&&rr(sn.descriptor.id,yn)},as=function(ae){var _e=ae.scrollWindow,$e=ae.scrollDroppable,wt=M(_e),Vt=M($e),rr=null,ar=function(jr){rr||Ve(!1);var sn=rr,yn=sn.shouldUseTimeDampening,Vn=sn.dragStartTime;Ko({state:jr,scrollWindow:wt,scrollDroppable:Vt,dragStartTime:Vn,shouldUseTimeDampening:yn})},Vr=function(jr){Ri(),rr&&Ve(!1);var sn=Date.now(),yn=!1,Vn=function(){yn=!0};Ko({state:jr,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Vn,scrollDroppable:Vn}),rr={dragStartTime:sn,shouldUseTimeDampening:yn},oa(),yn&&ar(jr)},pn=function(){if(!rr)return;wt.cancel(),Vt.cancel(),rr=null};return{start:Vr,stop:pn,scroll:ar}},co=function(ae){var _e=ae.move,$e=ae.scrollDroppable,wt=ae.scrollWindow,Vt=function(Wr,jr){var sn=Be(Wr.current.client.selection,jr);_e({client:sn})},rr=function(Wr,jr){if(!Lo(Wr,jr))return jr;var sn=is(Wr,jr);if(!sn)return $e(Wr.descriptor.id,jr),null;var yn=fe(jr,sn);$e(Wr.descriptor.id,yn);var Vn=fe(jr,yn);return Vn},ar=function(Wr,jr,sn){if(!Wr)return sn;if(!so(jr,sn))return sn;var yn=Co(jr,sn);if(!yn)return wt(sn),null;var Vn=fe(sn,yn);wt(Vn);var Li=fe(sn,Vn);return Li},Vr=function(Wr){var jr=Wr.scrollJumpRequest;if(!jr)return;var sn=ti(Wr.impact);sn||Ve(!1);var yn=rr(Wr.dimensions.droppables[sn],jr);if(!yn)return;var Vn=Wr.viewport,Li=ar(Wr.isWindowScrollAllowed,Vn,yn);if(!Li)return;Vt(Wr,Li)};return Vr},Ao=function(ae){var _e=ae.scrollDroppable,$e=ae.scrollWindow,wt=ae.move,Vt=as({scrollWindow:$e,scrollDroppable:_e}),rr=co({move:wt,scrollWindow:$e,scrollDroppable:_e}),ar=function(Wr){if(Wr.phase!=="DRAGGING")return;if(Wr.movementMode==="FLUID"){Vt.scroll(Wr);return}if(!Wr.scrollJumpRequest)return;rr(Wr)},Vr={scroll:ar,start:Vt.start,stop:Vt.stop};return Vr},$a="data-rbd",ss=function(){var Ue=$a+"-drag-handle";return{base:Ue,draggableId:Ue+"-draggable-id",contextId:Ue+"-context-id"}}(),_s=function(){var Ue=$a+"-draggable";return{base:Ue,contextId:Ue+"-context-id",id:Ue+"-id"}}(),Fo=function(){var Ue=$a+"-droppable";return{base:Ue,contextId:Ue+"-context-id",id:Ue+"-id"}}(),il={contextId:$a+"-scroll-container-context-id"},Eo=function(ae){return function(_e){return"["+_e+'="'+ae+'"]'}},zo=function(ae,_e){return ae.map(function($e){var wt=$e.styles[_e];return wt?$e.selector+" { "+wt+" }":""}).join(" ")},Fs="pointer-events: none;",ms=function(ae){var _e=Eo(ae),$e=function(){var Vr=`
|
|
|
cursor: -webkit-grab;
|
|
|
cursor: grab;
|
|
|
`;return{selector:_e(ss.contextId),styles:{always:`
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
touch-action: manipulation;
|
|
|
`,resting:Vr,dragging:Fs,dropAnimating:Vr}}}(),wt=function(){var Vr=`
|
|
|
transition: `+na.outOfTheWay+`;
|
|
|
`;return{selector:_e(_s.contextId),styles:{dragging:Vr,dropAnimating:Vr,userCancel:Vr}}}(),Vt={selector:_e(Fo.contextId),styles:{always:"overflow-anchor: none;"}},rr={selector:"body",styles:{dragging:`
|
|
|
cursor: grabbing;
|
|
|
cursor: -webkit-grabbing;
|
|
|
user-select: none;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
overflow-anchor: none;
|
|
|
`}},ar=[wt,$e,Vt,rr];return{always:zo(ar,"always"),resting:zo(ar,"resting"),dragging:zo(ar,"dragging"),dropAnimating:zo(ar,"dropAnimating"),userCancel:zo(ar,"userCancel")}},hs=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?y.useLayoutEffect:y.useEffect,wn=function(){var ae=document.querySelector("head");return ae||Ve(!1),ae},Ns=function(ae){var _e=document.createElement("style");return ae&&_e.setAttribute("nonce",ae),_e.type="text/css",_e};function Ll(Ue,ae){var _e=i(function(){return ms(Ue)},[Ue]),$e=Object(y.useRef)(null),wt=Object(y.useRef)(null),Vt=t(I(function(jr){var sn=wt.current;sn||Ve(!1),sn.textContent=jr}),[]),rr=t(function(jr){var sn=$e.current;sn||Ve(!1),sn.textContent=jr},[]);hs(function(){!$e.current&&!wt.current||Ve(!1);var jr=Ns(ae),sn=Ns(ae);return $e.current=jr,wt.current=sn,jr.setAttribute($a+"-always",Ue),sn.setAttribute($a+"-dynamic",Ue),wn().appendChild(jr),wn().appendChild(sn),rr(_e.always),Vt(_e.resting),function(){var yn=function(Li){var Mi=Li.current;Mi||Ve(!1),wn().removeChild(Mi),Li.current=null};yn($e),yn(wt)}},[ae,rr,Vt,_e.always,_e.resting,Ue]);var ar=t(function(){return Vt(_e.dragging)},[Vt,_e.dragging]),Vr=t(function(jr){if(jr==="DROP"){Vt(_e.dropAnimating);return}Vt(_e.userCancel)},[Vt,_e.dropAnimating,_e.userCancel]),pn=t(function(){if(!wt.current)return;Vt(_e.resting)},[Vt,_e.resting]),Wr=i(function(){return{dragging:ar,dropping:Vr,resting:pn}},[ar,Vr,pn]);return Wr}var el=function(ae){return ae&&ae.ownerDocument?ae.ownerDocument.defaultView:window};function Gs(Ue){return Ue instanceof el(Ue).HTMLElement}function ds(Ue,ae){var _e="["+ss.contextId+'="'+Ue+'"]',$e=Ht(document.querySelectorAll(_e));if(!$e.length)return null;var wt=ge($e,function(Vt){return Vt.getAttribute(ss.draggableId)===ae});return wt&&Gs(wt)?wt:null}function ks(Ue){var ae=Object(y.useRef)({}),_e=Object(y.useRef)(null),$e=Object(y.useRef)(null),wt=Object(y.useRef)(!1),Vt=t(function(sn,yn){var Vn={id:sn,focus:yn};return ae.current[sn]=Vn,function(){var Mi=ae.current,da=Mi[sn];da!==Vn&&delete Mi[sn]}},[]),rr=t(function(sn){var yn=ds(Ue,sn);yn&&yn!==document.activeElement&&yn.focus()},[Ue]),ar=t(function(sn,yn){_e.current===sn&&(_e.current=yn)},[]),Vr=t(function(){if($e.current)return;if(!wt.current)return;$e.current=requestAnimationFrame(function(){$e.current=null;var sn=_e.current;sn&&rr(sn)})},[rr]),pn=t(function(sn){_e.current=null;var yn=document.activeElement;if(!yn)return;if(yn.getAttribute(ss.draggableId)!==sn)return;_e.current=sn},[]);hs(function(){return wt.current=!0,function(){wt.current=!1;var sn=$e.current;sn&&cancelAnimationFrame(sn)}},[]);var Wr=i(function(){return{register:Vt,tryRecordFocus:pn,tryRestoreFocusRecorded:Vr,tryShiftRecord:ar}},[Vt,pn,Vr,ar]);return Wr}function Qs(){var Ue={draggables:{},droppables:{}},ae=[];function _e(jr){return ae.push(jr),function(){var yn=ae.indexOf(jr);if(yn===-1)return;ae.splice(yn,1)}}function $e(jr){ae.length&&ae.forEach(function(sn){return sn(jr)})}function wt(jr){return Ue.draggables[jr]||null}function Vt(jr){var sn=wt(jr);return sn||Ve(!1),sn}var rr={register:function(sn){Ue.draggables[sn.descriptor.id]=sn,$e({type:"ADDITION",value:sn})},update:function(sn,yn){var Vn=Ue.draggables[yn.descriptor.id];if(!Vn)return;if(Vn.uniqueId!==sn.uniqueId)return;delete Ue.draggables[yn.descriptor.id],Ue.draggables[sn.descriptor.id]=sn},unregister:function(sn){var yn=sn.descriptor.id,Vn=wt(yn);if(!Vn)return;if(sn.uniqueId!==Vn.uniqueId)return;delete Ue.draggables[yn],$e({type:"REMOVAL",value:sn})},getById:Vt,findById:wt,exists:function(sn){return Boolean(wt(sn))},getAllByType:function(sn){return lt(Ue.draggables).filter(function(yn){return yn.descriptor.type===sn})}};function ar(jr){return Ue.droppables[jr]||null}function Vr(jr){var sn=ar(jr);return sn||Ve(!1),sn}var pn={register:function(sn){Ue.droppables[sn.descriptor.id]=sn},unregister:function(sn){var yn=ar(sn.descriptor.id);if(!yn)return;if(sn.uniqueId!==yn.uniqueId)return;delete Ue.droppables[sn.descriptor.id]},getById:Vr,findById:ar,exists:function(sn){return Boolean(ar(sn))},getAllByType:function(sn){return lt(Ue.droppables).filter(function(yn){return yn.descriptor.type===sn})}};function Wr(){Ue.draggables={},Ue.droppables={},ae.length=0}return{draggable:rr,droppable:pn,subscribe:_e,clean:Wr}}function tl(){var Ue=i(Qs,[]);return Object(y.useEffect)(function(){return function(){requestAnimationFrame(Ue.clean)}},[Ue]),Ue}var xs=f.a.createContext(null),Bs=function(){var ae=document.body;return ae||Ve(!1),ae},al={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Js=function(ae){return"rbd-announcement-"+ae};function Vo(Ue){var ae=i(function(){return Js(Ue)},[Ue]),_e=Object(y.useRef)(null);Object(y.useEffect)(function(){var Vt=document.createElement("div");return _e.current=Vt,Vt.id=ae,Vt.setAttribute("aria-live","assertive"),Vt.setAttribute("aria-atomic","true"),Object(v.a)(Vt.style,al),Bs().appendChild(Vt),function(){setTimeout(function(){var Vr=Bs();Vr.contains(Vt)&&Vr.removeChild(Vt),Vt===_e.current&&(_e.current=null)})}},[ae]);var $e=t(function(wt){var Vt=_e.current;if(Vt){Vt.textContent=wt;return}},[]);return $e}var No=0,fs={separator:"::"};function Ds(){No=0}function go(Ue,ae){return ae===void 0&&(ae=fs),i(function(){return""+Ue+ae.separator+No++},[ae.separator,Ue])}function Ut(Ue){var ae=Ue.contextId,_e=Ue.uniqueId;return"rbd-hidden-text-"+ae+"-"+_e}function or(Ue){var ae=Ue.contextId,_e=Ue.text,$e=go("hidden-text",{separator:"-"}),wt=i(function(){return Ut({contextId:ae,uniqueId:$e})},[$e,ae]);return Object(y.useEffect)(function(){var rr=document.createElement("div");return rr.id=wt,rr.textContent=_e,rr.style.display="none",Bs().appendChild(rr),function(){var Vr=Bs();Vr.contains(rr)&&Vr.removeChild(rr)}},[wt,_e]),wt}var Nn=f.a.createContext(null),hi={react:"^16.8.5","react-dom":"^16.8.5"},Nt=/(\d+)\.(\d+)\.(\d+)/,ce=function(ae){var _e=Nt.exec(ae);_e!=null||Ve(!1);var $e=Number(_e[1]),wt=Number(_e[2]),Vt=Number(_e[3]);return{major:$e,minor:wt,patch:Vt,raw:ae}},Se=function(ae,_e){return _e.major>ae.major?!0:_e.major<ae.major?!1:_e.minor>ae.minor?!0:_e.minor<ae.minor?!1:_e.patch>=ae.patch},Ie=function(ae,_e){var $e=ce(ae),wt=ce(_e);if(Se($e,wt))return},Je=`
|
|
|
We expect a html5 doctype: <!doctype html>
|
|
|
This is to ensure consistent browser layout and measurement
|
|
|
|
|
|
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
|
|
|
`,Dt=function(ae){var _e=ae.doctype;if(!_e)return;_e.name.toLowerCase()!=="html",_e.publicId!==""};function sr(Ue){}function Jr(Ue,ae){sr(function(){Object(y.useEffect)(function(){try{Ue()}catch(_e){q(`
|
|
|
A setup problem was encountered.
|
|
|
|
|
|
> `+_e.message+`
|
|
|
`)}},ae)})}function gn(){Jr(function(){Ie(hi.react,f.a.version),Dt(document)},[])}function Dn(Ue){var ae=Object(y.useRef)(Ue);return Object(y.useEffect)(function(){ae.current=Ue}),ae}function ui(){var Ue=null;function ae(){return Boolean(Ue)}function _e(rr){return rr===Ue}function $e(rr){Ue&&Ve(!1);var ar={abandon:rr};return Ue=ar,ar}function wt(){Ue||Ve(!1),Ue=null}function Vt(){Ue&&(Ue.abandon(),wt())}return{isClaimed:ae,isActive:_e,claim:$e,release:wt,tryAbandon:Vt}}var Si=9,vi=13,Qi=27,sa=32,Ua=33,no=34,Wo=35,Zo=36,Bo=37,Es=38,As=39,$o=40,Do,vo=(Do={},Do[vi]=!0,Do[Si]=!0,Do),Ms=function(ae){vo[ae.keyCode]&&ae.preventDefault()},rl=function(){var Ue="visibilitychange";if(typeof document=="undefined")return Ue;var ae=[Ue,"ms"+Ue,"webkit"+Ue,"moz"+Ue,"o"+Ue],_e=ge(ae,function($e){return"on"+$e in document});return _e||Ue}(),gs=0,Ra=5;function dl(Ue,ae){return Math.abs(ae.x-Ue.x)>=Ra||Math.abs(ae.y-Ue.y)>=Ra}var fl={type:"IDLE"};function Us(Ue){var ae=Ue.cancel,_e=Ue.completed,$e=Ue.getPhase,wt=Ue.setPhase;return[{eventName:"mousemove",fn:function(rr){var ar=rr.button,Vr=rr.clientX,pn=rr.clientY;if(ar!==gs)return;var Wr={x:Vr,y:pn},jr=$e();if(jr.type==="DRAGGING"){rr.preventDefault(),jr.actions.move(Wr);return}jr.type==="PENDING"||Ve(!1);var sn=jr.point;if(!dl(sn,Wr))return;rr.preventDefault();var yn=jr.actions.fluidLift(Wr);wt({type:"DRAGGING",actions:yn})}},{eventName:"mouseup",fn:function(rr){var ar=$e();if(ar.type!=="DRAGGING"){ae();return}rr.preventDefault(),ar.actions.drop({shouldBlockNextClick:!0}),_e()}},{eventName:"mousedown",fn:function(rr){$e().type==="DRAGGING"&&rr.preventDefault(),ae()}},{eventName:"keydown",fn:function(rr){var ar=$e();if(ar.type==="PENDING"){ae();return}if(rr.keyCode===Qi){rr.preventDefault(),ae();return}Ms(rr)}},{eventName:"resize",fn:ae},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){$e().type==="PENDING"&&ae()}},{eventName:"webkitmouseforcedown",fn:function(rr){var ar=$e();if(ar.type!=="IDLE"||Ve(!1),ar.actions.shouldRespectForcePress()){ae();return}rr.preventDefault()}},{eventName:rl,fn:ae}]}function Os(Ue){var ae=Object(y.useRef)(fl),_e=Object(y.useRef)(se),$e=i(function(){return{eventName:"mousedown",fn:function(jr){if(jr.defaultPrevented)return;if(jr.button!==gs)return;if(jr.ctrlKey||jr.metaKey||jr.shiftKey||jr.altKey)return;var sn=Ue.findClosestDraggableId(jr);if(!sn)return;var yn=Ue.tryGetLock(sn,rr,{sourceEvent:jr});if(!yn)return;jr.preventDefault();var Vn={x:jr.clientX,y:jr.clientY};_e.current(),pn(yn,Vn)}}},[Ue]),wt=i(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(jr){if(jr.defaultPrevented)return;var sn=Ue.findClosestDraggableId(jr);if(!sn)return;var yn=Ue.findOptionsForDraggable(sn);if(!yn)return;if(yn.shouldRespectForcePress)return;if(!Ue.canGetLock(sn))return;jr.preventDefault()}}},[Ue]),Vt=t(function(){var jr={passive:!1,capture:!0};_e.current=xe(window,[wt,$e],jr)},[wt,$e]),rr=t(function(){var Wr=ae.current;if(Wr.type==="IDLE")return;ae.current=fl,_e.current(),Vt()},[Vt]),ar=t(function(){var Wr=ae.current;rr(),Wr.type==="DRAGGING"&&Wr.actions.cancel({shouldBlockNextClick:!0}),Wr.type==="PENDING"&&Wr.actions.abort()},[rr]),Vr=t(function(){var jr={capture:!0,passive:!1},sn=Us({cancel:ar,completed:rr,getPhase:function(){return ae.current},setPhase:function(Vn){ae.current=Vn}});_e.current=xe(window,sn,jr)},[ar,rr]),pn=t(function(jr,sn){ae.current.type==="IDLE"||Ve(!1),ae.current={type:"PENDING",point:sn,actions:jr},Vr()},[Vr]);hs(function(){return Vt(),function(){_e.current()}},[Vt])}var Xs;function Ql(){}var Ul=(Xs={},Xs[no]=!0,Xs[Ua]=!0,Xs[Zo]=!0,Xs[Wo]=!0,Xs);function wl(Ue,ae){function _e(){ae(),Ue.cancel()}function $e(){ae(),Ue.drop()}return[{eventName:"keydown",fn:function(Vt){if(Vt.keyCode===Qi){Vt.preventDefault(),_e();return}if(Vt.keyCode===sa){Vt.preventDefault(),$e();return}if(Vt.keyCode===$o){Vt.preventDefault(),Ue.moveDown();return}if(Vt.keyCode===Es){Vt.preventDefault(),Ue.moveUp();return}if(Vt.keyCode===As){Vt.preventDefault(),Ue.moveRight();return}if(Vt.keyCode===Bo){Vt.preventDefault(),Ue.moveLeft();return}if(Ul[Vt.keyCode]){Vt.preventDefault();return}Ms(Vt)}},{eventName:"mousedown",fn:_e},{eventName:"mouseup",fn:_e},{eventName:"click",fn:_e},{eventName:"touchstart",fn:_e},{eventName:"resize",fn:_e},{eventName:"wheel",fn:_e,options:{passive:!0}},{eventName:rl,fn:_e}]}function Ts(Ue){var ae=Object(y.useRef)(Ql),_e=i(function(){return{eventName:"keydown",fn:function(Vt){if(Vt.defaultPrevented)return;if(Vt.keyCode!==sa)return;var rr=Ue.findClosestDraggableId(Vt);if(!rr)return;var ar=Ue.tryGetLock(rr,Wr,{sourceEvent:Vt});if(!ar)return;Vt.preventDefault();var Vr=!0,pn=ar.snapLift();ae.current();function Wr(){Vr||Ve(!1),Vr=!1,ae.current(),$e()}ae.current=xe(window,wl(pn,Wr),{capture:!0,passive:!1})}}},[Ue]),$e=t(function(){var Vt={passive:!1,capture:!0};ae.current=xe(window,[_e],Vt)},[_e]);hs(function(){return $e(),function(){ae.current()}},[$e])}var Ws={type:"IDLE"},Tl=120,pl=.15;function jo(Ue){var ae=Ue.cancel,_e=Ue.getPhase;return[{eventName:"orientationchange",fn:ae},{eventName:"resize",fn:ae},{eventName:"contextmenu",fn:function(wt){wt.preventDefault()}},{eventName:"keydown",fn:function(wt){if(_e().type!=="DRAGGING"){ae();return}wt.keyCode===Qi&&wt.preventDefault(),ae()}},{eventName:rl,fn:ae}]}function yo(Ue){var ae=Ue.cancel,_e=Ue.completed,$e=Ue.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Vt){var rr=$e();if(rr.type!=="DRAGGING"){ae();return}rr.hasMoved=!0;var ar=Vt.touches[0],Vr=ar.clientX,pn=ar.clientY,Wr={x:Vr,y:pn};Vt.preventDefault(),rr.actions.move(Wr)}},{eventName:"touchend",fn:function(Vt){var rr=$e();if(rr.type!=="DRAGGING"){ae();return}Vt.preventDefault(),rr.actions.drop({shouldBlockNextClick:!0}),_e()}},{eventName:"touchcancel",fn:function(Vt){if($e().type!=="DRAGGING"){ae();return}Vt.preventDefault(),ae()}},{eventName:"touchforcechange",fn:function(Vt){var rr=$e();rr.type!=="IDLE"||Ve(!1);var ar=Vt.touches[0];if(!ar)return;var Vr=ar.force>=pl;if(!Vr)return;var pn=rr.actions.shouldRespectForcePress();if(rr.type==="PENDING"){pn&&ae();return}if(pn){if(rr.hasMoved){Vt.preventDefault();return}ae();return}Vt.preventDefault()}},{eventName:rl,fn:ae}]}function qo(Ue){var ae=Object(y.useRef)(Ws),_e=Object(y.useRef)(se),$e=t(function(){return ae.current},[]),wt=t(function(yn){ae.current=yn},[]),Vt=i(function(){return{eventName:"touchstart",fn:function(yn){if(yn.defaultPrevented)return;var Vn=Ue.findClosestDraggableId(yn);if(!Vn)return;var Li=Ue.tryGetLock(Vn,ar,{sourceEvent:yn});if(!Li)return;var Mi=yn.touches[0],da=Mi.clientX,$i=Mi.clientY,Qa={x:da,y:$i};_e.current(),jr(Li,Qa)}}},[Ue]),rr=t(function(){var yn={capture:!0,passive:!1};_e.current=xe(window,[Vt],yn)},[Vt]),ar=t(function(){var sn=ae.current;if(sn.type==="IDLE")return;sn.type==="PENDING"&&clearTimeout(sn.longPressTimerId),wt(Ws),_e.current(),rr()},[rr,wt]),Vr=t(function(){var sn=ae.current;ar(),sn.type==="DRAGGING"&&sn.actions.cancel({shouldBlockNextClick:!0}),sn.type==="PENDING"&&sn.actions.abort()},[ar]),pn=t(function(){var yn={capture:!0,passive:!1},Vn={cancel:Vr,completed:ar,getPhase:$e},Li=xe(window,yo(Vn),yn),Mi=xe(window,jo(Vn),yn);_e.current=function(){Li(),Mi()}},[Vr,$e,ar]),Wr=t(function(){var yn=$e();yn.type==="PENDING"||Ve(!1);var Vn=yn.actions.fluidLift(yn.point);wt({type:"DRAGGING",actions:Vn,hasMoved:!1})},[$e,wt]),jr=t(function(yn,Vn){$e().type==="IDLE"||Ve(!1);var Li=setTimeout(Wr,Tl);wt({type:"PENDING",point:Vn,actions:yn,longPressTimerId:Li}),pn()},[pn,$e,wt,Wr]);hs(function(){return rr(),function(){_e.current();var Vn=$e();Vn.type==="PENDING"&&(clearTimeout(Vn.longPressTimerId),wt(Ws))}},[$e,rr,wt]),hs(function(){var yn=xe(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return yn},[])}function ps(Ue){sr(function(){var ae=Dn(Ue);Jr(function(){ae.current.length===Ue.length||Ve(!1)})})}var Is={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function es(Ue,ae){if(ae==null)return!1;var _e=Boolean(Is[ae.tagName.toLowerCase()]);if(_e)return!0;var $e=ae.getAttribute("contenteditable");return $e==="true"||$e===""?!0:ae===Ue?!1:es(Ue,ae.parentElement)}function Ls(Ue,ae){var _e=ae.target;return Gs(_e)?es(Ue,_e):!1}var Ps=function(ae){return e(ae.getBoundingClientRect()).center};function ml(Ue){return Ue instanceof el(Ue).Element}var Rl=function(){var Ue="matches";if(typeof document=="undefined")return Ue;var ae=[Ue,"msMatchesSelector","webkitMatchesSelector"],_e=ge(ae,function($e){return $e in Element.prototype});return _e||Ue}();function _l(Ue,ae){return Ue==null?null:Ue[Rl](ae)?Ue:_l(Ue.parentElement,ae)}function Bl(Ue,ae){return Ue.closest?Ue.closest(ae):_l(Ue,ae)}function jl(Ue){return"["+ss.contextId+'="'+Ue+'"]'}function kl(Ue,ae){var _e=ae.target;if(!ml(_e))return null;var $e=jl(Ue),wt=Bl(_e,$e);return wt&&Gs(wt)?wt:null}function Xl(Ue,ae){var _e=kl(Ue,ae);return _e?_e.getAttribute(ss.draggableId):null}function ol(Ue,ae){var _e="["+_s.contextId+'="'+Ue+'"]',$e=Ht(document.querySelectorAll(_e)),wt=ge($e,function(Vt){return Vt.getAttribute(_s.id)===ae});return wt&&Gs(wt)?wt:null}function Ys(Ue){Ue.preventDefault()}function sl(Ue){var ae=Ue.expected,_e=Ue.phase,$e=Ue.isLockActive,wt=Ue.shouldWarn;return $e()?!(ae!==_e):!1}function nl(Ue){var ae=Ue.lockAPI,_e=Ue.store,$e=Ue.registry,wt=Ue.draggableId;if(ae.isClaimed())return!1;var Vt=$e.draggable.findById(wt);return Vt&&Vt.options.isEnabled?!!ci(_e.getState(),wt):!1}function xl(Ue){var ae=Ue.lockAPI,_e=Ue.contextId,$e=Ue.store,wt=Ue.registry,Vt=Ue.draggableId,rr=Ue.forceSensorStop,ar=Ue.sourceEvent,Vr=nl({lockAPI:ae,store:$e,registry:wt,draggableId:Vt});if(!Vr)return null;var pn=wt.draggable.getById(Vt),Wr=ol(_e,pn.descriptor.id);if(!Wr)return null;if(ar&&!pn.options.canDragInteractiveElements&&Ls(Wr,ar))return null;var jr=ae.claim(rr||se),sn="PRE_DRAG";function yn(){return pn.options.shouldRespectForcePress}function Vn(){return ae.isActive(jr)}function Li(za,Xo){sl({expected:za,phase:sn,isLockActive:Vn,shouldWarn:!0})&&$e.dispatch(Xo())}var Mi=Li.bind(null,"DRAGGING");function da(za){function Xo(){ae.release(),sn="COMPLETED"}sn!=="PRE_DRAG"&&(Xo(),sn==="PRE_DRAG"||Ve(!1)),$e.dispatch(xr(za.liftActionArgs)),sn="DRAGGING";function ls(N,B){if(B===void 0&&(B={shouldBlockNextClick:!1}),za.cleanup(),B.shouldBlockNextClick){var ie=xe(window,[{eventName:"click",fn:Ys,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(ie)}Xo(),$e.dispatch(Fi({reason:N}))}return Object(v.a)({isActive:function(){return sl({expected:"DRAGGING",phase:sn,isLockActive:Vn,shouldWarn:!1})},shouldRespectForcePress:yn,drop:function(B){return ls("DROP",B)},cancel:function(B){return ls("CANCEL",B)}},za.actions)}function $i(za){var Xo=M(function(N){Mi(function(){return _t({client:N})})}),ls=da({liftActionArgs:{id:Vt,clientSelection:za,movementMode:"FLUID"},cleanup:function(){return Xo.cancel()},actions:{move:Xo}});return Object(v.a)({},ls,{move:Xo})}function Qa(){var za={moveUp:function(){return Mi(rn)},moveRight:function(){return Mi(Ln)},moveDown:function(){return Mi(xn)},moveLeft:function(){return Mi(Sn)}};return da({liftActionArgs:{id:Vt,clientSelection:Ps(Wr),movementMode:"SNAP"},cleanup:se,actions:za})}function ya(){var za=sl({expected:"PRE_DRAG",phase:sn,isLockActive:Vn,shouldWarn:!0});za&&ae.release()}var fo={isActive:function(){return sl({expected:"PRE_DRAG",phase:sn,isLockActive:Vn,shouldWarn:!1})},shouldRespectForcePress:yn,fluidLift:$i,snapLift:Qa,abort:ya};return fo}var Ml=[Os,Ts,qo];function Wl(Ue){var ae=Ue.contextId,_e=Ue.store,$e=Ue.registry,wt=Ue.customSensors,Vt=Ue.enableDefaultSensors,rr=[].concat(Vt?Ml:[],wt||[]),ar=Object(y.useState)(function(){return ui()})[0],Vr=t(function($i,Qa){$i.isDragging&&!Qa.isDragging&&ar.tryAbandon()},[ar]);hs(function(){var $i=_e.getState(),Qa=_e.subscribe(function(){var ya=_e.getState();Vr($i,ya),$i=ya});return Qa},[ar,_e,Vr]),hs(function(){return ar.tryAbandon},[ar.tryAbandon]);var pn=t(function(da){return nl({lockAPI:ar,registry:$e,store:_e,draggableId:da})},[ar,$e,_e]),Wr=t(function(da,$i,Qa){return xl({lockAPI:ar,registry:$e,contextId:ae,store:_e,draggableId:da,forceSensorStop:$i,sourceEvent:Qa&&Qa.sourceEvent?Qa.sourceEvent:null})},[ae,ar,$e,_e]),jr=t(function(da){return Xl(ae,da)},[ae]),sn=t(function(da){var $i=$e.draggable.findById(da);return $i?$i.options:null},[$e.draggable]),yn=t(function(){if(!ar.isClaimed())return;ar.tryAbandon(),_e.getState().phase!=="IDLE"&&_e.dispatch(ei())},[ar,_e]),Vn=t(ar.isClaimed,[ar]),Li=i(function(){return{canGetLock:pn,tryGetLock:Wr,findClosestDraggableId:jr,findOptionsForDraggable:sn,tryReleaseLock:yn,isLockClaimed:Vn}},[pn,Wr,jr,sn,yn,Vn]);ps(rr);for(var Mi=0;Mi<rr.length;Mi++)rr[Mi](Li)}var au=function(ae){return{onBeforeCapture:ae.onBeforeCapture,onBeforeDragStart:ae.onBeforeDragStart,onDragStart:ae.onDragStart,onDragEnd:ae.onDragEnd,onDragUpdate:ae.onDragUpdate}};function Nl(Ue){return Ue.current||Ve(!1),Ue.current}function $l(Ue){var ae=Ue.contextId,_e=Ue.setCallbacks,$e=Ue.sensors,wt=Ue.nonce,Vt=Ue.dragHandleUsageInstructions,rr=Object(y.useRef)(null);gn();var ar=Dn(Ue),Vr=t(function(){return au(ar.current)},[ar]),pn=Vo(ae),Wr=or({contextId:ae,text:Vt}),jr=Ll(ae,wt),sn=t(function(N){Nl(rr).dispatch(N)},[]),yn=i(function(){return Object(m.b)({publishWhileDragging:mr,updateDroppableScroll:Gr,updateDroppableIsEnabled:ln,updateDroppableIsCombineEnabled:Fn,collectionStarting:kr},sn)},[sn]),Vn=tl(),Li=i(function(){return li(Vn,yn)},[Vn,yn]),Mi=i(function(){return Ao(Object(v.a)({scrollWindow:si,scrollDroppable:Li.scrollDroppable},Object(m.b)({move:_t},sn)))},[Li.scrollDroppable,sn]),da=ks(ae),$i=i(function(){return Tr({announce:pn,autoScroller:Mi,dimensionMarshal:Li,focusMarshal:da,getResponders:Vr,styleMarshal:jr})},[pn,Mi,Li,da,Vr,jr]);rr.current=$i;var Qa=t(function(){var N=Nl(rr),B=N.getState();B.phase!=="IDLE"&&N.dispatch(ei())},[]),ya=t(function(){var N=Nl(rr).getState();return N.isDragging||N.phase==="DROP_ANIMATING"},[]),fo=i(function(){return{isDragging:ya,tryAbort:Qa}},[ya,Qa]);_e(fo);var za=t(function(N){return ci(Nl(rr).getState(),N)},[]),Xo=t(function(){return qr(Nl(rr).getState())},[]),ls=i(function(){return{marshal:Li,focus:da,contextId:ae,canLift:za,isMovementAllowed:Xo,dragHandleUsageInstructionsId:Wr,registry:Vn}},[ae,Li,Wr,da,za,Xo,Vn]);return Wl({contextId:ae,store:$i,registry:Vn,customSensors:$e,enableDefaultSensors:Ue.enableDefaultSensors!==!1}),Object(y.useEffect)(function(){return Qa},[Qa]),f.a.createElement(Nn.Provider,{value:ls},f.a.createElement(p.a,{context:xs,store:$i},Ue.children))}var tu=0;function Iu(){tu=0}function pu(){return i(function(){return""+tu++},[])}function mu(){Iu(),Ds()}function gu(Ue){var ae=pu(),_e=Ue.dragHandleUsageInstructions||be.dragHandleUsageInstructions;return f.a.createElement(ut,null,function($e){return f.a.createElement($l,{nonce:Ue.nonce,contextId:ae,setCallbacks:$e,dragHandleUsageInstructions:_e,enableDefaultSensors:Ue.enableDefaultSensors,sensors:Ue.sensors,onBeforeCapture:Ue.onBeforeCapture,onBeforeDragStart:Ue.onBeforeDragStart,onDragStart:Ue.onDragStart,onDragUpdate:Ue.onDragUpdate,onDragEnd:Ue.onDragEnd},Ue.children)})}var ql=function(ae){return function(_e){return ae===_e}},Cl=ql("scroll"),ll=ql("auto"),Hl=ql("visible"),Sl=function(ae,_e){return _e(ae.overflowX)||_e(ae.overflowY)},Su=function(ae,_e){return _e(ae.overflowX)&&_e(ae.overflowY)},vu=function(ae){var _e=window.getComputedStyle(ae),$e={overflowX:_e.overflowX,overflowY:_e.overflowY};return Sl($e,Cl)||Sl($e,ll)},Au=function(){return!1;var ae,_e;if(!vu(ae))return!1;var $e,wt;if(Su(wt,Hl))return!1},Ol=function Ue(ae){return ae==null?null:ae===document.body?Au()?ae:null:ae===document.documentElement?null:vu(ae)?ae:Ue(ae.parentElement)},cu=function(ae){if(!ae)return;var _e=Ol(ae.parentElement);if(!_e)return},du=function(ae){return{x:ae.scrollLeft,y:ae.scrollTop}},Lu=function Ue(ae){if(!ae)return!1;var _e=window.getComputedStyle(ae);return _e.position==="fixed"?!0:Ue(ae.parentElement)},zl=function(ae){var _e=Ol(ae),$e=Lu(ae);return{closestScrollable:_e,isFixedOnPage:$e}},ru=function(ae){var _e=ae.descriptor,$e=ae.isEnabled,wt=ae.isCombineEnabled,Vt=ae.isFixedOnPage,rr=ae.direction,ar=ae.client,Vr=ae.page,pn=ae.closest,Wr=function(){if(!pn)return null;var Vn=pn.scrollSize,Li=pn.client,Mi=Jn({scrollHeight:Vn.scrollHeight,scrollWidth:Vn.scrollWidth,height:Li.paddingBox.height,width:Li.paddingBox.width});return{pageMarginBox:pn.page.marginBox,frameClient:Li,scrollSize:Vn,shouldClipSubject:pn.shouldClipSubject,scroll:{initial:pn.scroll,current:pn.scroll,max:Mi,diff:{value:Ce,displacement:Ce}}}}(),jr=rr==="vertical"?Un:$t,sn=Ge({page:Vr,withPlaceholder:null,axis:jr,frame:Wr}),yn={descriptor:_e,isCombineEnabled:wt,isFixedOnPage:Vt,axis:jr,isEnabled:$e,client:ar,page:Vr,frame:Wr,subject:sn};return yn},ou=function(ae,_e){var $e=C(ae);if(!_e)return $e;if(ae!==_e)return $e;var wt=$e.paddingBox.top-_e.scrollTop,Vt=$e.paddingBox.left-_e.scrollLeft,rr=wt+_e.scrollHeight,ar=Vt+_e.scrollWidth,Vr={top:wt,right:ar,bottom:rr,left:Vt},pn=l(Vr,$e.border),Wr=h({borderBox:pn,margin:$e.margin,border:$e.border,padding:$e.padding});return Wr},su=function(ae){var _e=ae.ref,$e=ae.descriptor,wt=ae.env,Vt=ae.windowScroll,rr=ae.direction,ar=ae.isDropDisabled,Vr=ae.isCombineEnabled,pn=ae.shouldClipSubject,Wr=wt.closestScrollable,jr=ou(_e,Wr),sn=S(jr,Vt),yn=function(){if(!Wr)return null;var Li=C(Wr),Mi={scrollHeight:Wr.scrollHeight,scrollWidth:Wr.scrollWidth};return{client:Li,page:S(Li,Vt),scroll:du(Wr),scrollSize:Mi,shouldClipSubject:pn}}(),Vn=ru({descriptor:$e,isEnabled:!ar,isCombineEnabled:Vr,isFixedOnPage:wt.isFixedOnPage,direction:rr,client:jr,page:sn,closest:yn});return Vn},Jl={passive:!1},Du={passive:!0},Ru=function(ae){return ae.shouldPublishImmediately?Jl:Du};function Zl(Ue){var ae=Object(y.useContext)(Ue);return ae||Ve(!1),ae}var yu=function(ae){return ae&&ae.env.closestScrollable||null};function xu(Ue){var ae=Object(y.useRef)(null),_e=Zl(Nn),$e=go("droppable"),wt=_e.registry,Vt=_e.marshal,rr=Dn(Ue),ar=i(function(){return{id:Ue.droppableId,type:Ue.type,mode:Ue.mode}},[Ue.droppableId,Ue.mode,Ue.type]),Vr=Object(y.useRef)(ar),pn=i(function(){return I(function(ya,fo){ae.current||Ve(!1);var za={x:ya,y:fo};Vt.updateDroppableScroll(ar.id,za)})},[ar.id,Vt]),Wr=t(function(){var ya=ae.current;return!ya||!ya.env.closestScrollable?Ce:du(ya.env.closestScrollable)},[]),jr=t(function(){var ya=Wr();pn(ya.x,ya.y)},[Wr,pn]),sn=i(function(){return M(jr)},[jr]),yn=t(function(){var ya=ae.current,fo=yu(ya);ya&&fo||Ve(!1);var za=ya.scrollOptions;if(za.shouldPublishImmediately){jr();return}sn()},[sn,jr]),Vn=t(function(ya,fo){ae.current&&Ve(!1);var za=rr.current,Xo=za.getDroppableRef();Xo||Ve(!1);var ls=zl(Xo),N={ref:Xo,descriptor:ar,env:ls,scrollOptions:fo};ae.current=N;var B=su({ref:Xo,descriptor:ar,env:ls,windowScroll:ya,direction:za.direction,isDropDisabled:za.isDropDisabled,isCombineEnabled:za.isCombineEnabled,shouldClipSubject:!za.ignoreContainerClipping}),ie=ls.closestScrollable;return ie&&(ie.setAttribute(il.contextId,_e.contextId),ie.addEventListener("scroll",yn,Ru(N.scrollOptions))),B},[_e.contextId,ar,yn,rr]),Li=t(function(){var ya=ae.current,fo=yu(ya);return ya&&fo||Ve(!1),du(fo)},[]),Mi=t(function(){var ya=ae.current;ya||Ve(!1);var fo=yu(ya);if(ae.current=null,!fo)return;sn.cancel(),fo.removeAttribute(il.contextId),fo.removeEventListener("scroll",yn,Ru(ya.scrollOptions))},[yn,sn]),da=t(function(ya){var fo=ae.current;fo||Ve(!1);var za=yu(fo);za||Ve(!1),za.scrollTop+=ya.y,za.scrollLeft+=ya.x},[]),$i=i(function(){return{getDimensionAndWatchScroll:Vn,getScrollWhileDragging:Li,dragStopped:Mi,scroll:da}},[Mi,Vn,Li,da]),Qa=i(function(){return{uniqueId:$e,descriptor:ar,callbacks:$i}},[$i,ar,$e]);hs(function(){return Vr.current=Qa.descriptor,wt.droppable.register(Qa),function(){ae.current&&Mi(),wt.droppable.unregister(Qa)}},[$i,ar,Mi,Qa,Vt,wt.droppable]),hs(function(){if(!ae.current)return;Vt.updateDroppableIsEnabled(Vr.current.id,!Ue.isDropDisabled)},[Ue.isDropDisabled,Vt]),hs(function(){if(!ae.current)return;Vt.updateDroppableIsCombineEnabled(Vr.current.id,Ue.isCombineEnabled)},[Ue.isCombineEnabled,Vt])}function bu(){}var hl={width:0,height:0,margin:fr},Dl=function(ae){var _e=ae.isAnimatingOpenOnMount,$e=ae.placeholder,wt=ae.animate;return _e||wt==="close"?hl:{height:$e.client.borderBox.height,width:$e.client.borderBox.width,margin:$e.client.margin}},nu=function(ae){var _e=ae.isAnimatingOpenOnMount,$e=ae.placeholder,wt=ae.animate,Vt=Dl({isAnimatingOpenOnMount:_e,placeholder:$e,animate:wt});return{display:$e.display,boxSizing:"border-box",width:Vt.width,height:Vt.height,marginTop:Vt.margin.top,marginRight:Vt.margin.right,marginBottom:Vt.margin.bottom,marginLeft:Vt.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:wt!=="none"?na.placeholder:null}};function Nu(Ue){var ae=Object(y.useRef)(null),_e=t(function(){if(!ae.current)return;clearTimeout(ae.current),ae.current=null},[]),$e=Ue.animate,wt=Ue.onTransitionEnd,Vt=Ue.onClose,rr=Ue.contextId,ar=Object(y.useState)(Ue.animate==="open"),Vr=ar[0],pn=ar[1];Object(y.useEffect)(function(){return Vr?$e!=="open"?(_e(),pn(!1),bu):ae.current?bu:(ae.current=setTimeout(function(){ae.current=null,pn(!1)}),_e):bu},[$e,Vr,_e]);var Wr=t(function(sn){if(sn.propertyName!=="height")return;wt(),$e==="close"&&Vt()},[$e,Vt,wt]),jr=nu({isAnimatingOpenOnMount:Vr,animate:Ue.animate,placeholder:Ue.placeholder});return f.a.createElement(Ue.placeholder.tagName,{style:jr,"data-rbd-placeholder-context-id":rr,onTransitionEnd:Wr,ref:Ue.innerRef})}var hu=f.a.memo(Nu),fu=f.a.createContext(null);function iu(Ue){Ue&&Gs(Ue)||Ve(!1)}function Ae(Ue){return typeof Ue=="boolean"}function ee(Ue,ae){ae.forEach(function(_e){return _e(Ue)})}var L=[function(ae){var _e=ae.props;_e.droppableId||Ve(!1),typeof _e.droppableId=="string"||Ve(!1)},function(ae){var _e=ae.props;Ae(_e.isDropDisabled)||Ve(!1),Ae(_e.isCombineEnabled)||Ve(!1),Ae(_e.ignoreContainerClipping)||Ve(!1)},function(ae){var _e=ae.getDroppableRef;iu(_e())}],W=[function(ae){var _e=ae.props,$e=ae.getPlaceholderRef;if(!_e.placeholder)return;var wt=$e();if(wt)return}],H=[function(ae){var _e=ae.props;_e.renderClone||Ve(!1)},function(ae){var _e=ae.getPlaceholderRef;_e()&&Ve(!1)}];function Z(Ue){Jr(function(){ee(Ue,L),Ue.props.mode==="standard"&&ee(Ue,W),Ue.props.mode==="virtual"&&ee(Ue,H)})}var ne=function(Ue){Object(x.a)(ae,Ue);function ae(){for(var $e,wt=arguments.length,Vt=new Array(wt),rr=0;rr<wt;rr++)Vt[rr]=arguments[rr];return $e=Ue.call.apply(Ue,[this].concat(Vt))||this,$e.state={isVisible:Boolean($e.props.on),data:$e.props.on,animate:$e.props.shouldAnimate&&$e.props.on?"open":"none"},$e.onClose=function(){if($e.state.animate!=="close")return;$e.setState({isVisible:!1})},$e}ae.getDerivedStateFromProps=function(wt,Vt){return wt.shouldAnimate?wt.on?{isVisible:!0,data:wt.on,animate:"open"}:Vt.isVisible?{isVisible:!0,data:Vt.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(wt.on),data:wt.on,animate:"none"}};var _e=ae.prototype;return _e.render=function(){if(!this.state.isVisible)return null;var wt={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(wt)},ae}(f.a.PureComponent),ve={dragging:5e3,dropAnimating:4500},Te=function(ae,_e){return _e?na.drop(_e.duration):ae?na.snap:na.fluid},ze=function(ae,_e){return ae?_e?Ji.opacity.drop:Ji.opacity.combining:null},st=function(ae){return ae.forceShouldAnimate!=null?ae.forceShouldAnimate:ae.mode==="SNAP"};function ht(Ue){var ae=Ue.dimension,_e=ae.client,$e=Ue.offset,wt=Ue.combineWith,Vt=Ue.dropping,rr=Boolean(wt),ar=st(Ue),Vr=Boolean(Vt),pn=Vr?La.drop($e,rr):La.moveTo($e),Wr={position:"fixed",top:_e.marginBox.top,left:_e.marginBox.left,boxSizing:"border-box",width:_e.borderBox.width,height:_e.borderBox.height,transition:Te(ar,Vt),transform:pn,opacity:ze(rr,Vr),zIndex:Vr?ve.dropAnimating:ve.dragging,pointerEvents:"none"};return Wr}function Zt(Ue){return{transform:La.moveTo(Ue.offset),transition:Ue.shouldAnimateDisplacement?null:"none"}}function Cr(Ue){return Ue.type==="DRAGGING"?ht(Ue):Zt(Ue)}function Sr(Ue,ae,_e){_e===void 0&&(_e=Ce);var $e=window.getComputedStyle(ae),wt=ae.getBoundingClientRect(),Vt=E(wt,$e),rr=S(Vt,_e),ar={client:Vt,tagName:ae.tagName.toLowerCase(),display:$e.display},Vr={x:Vt.marginBox.width,y:Vt.marginBox.height},pn={descriptor:Ue,placeholder:ar,displaceBy:Vr,client:Vt,page:rr};return pn}function Kr(Ue){var ae=go("draggable"),_e=Ue.descriptor,$e=Ue.registry,wt=Ue.getDraggableRef,Vt=Ue.canDragInteractiveElements,rr=Ue.shouldRespectForcePress,ar=Ue.isEnabled,Vr=i(function(){return{canDragInteractiveElements:Vt,shouldRespectForcePress:rr,isEnabled:ar}},[Vt,ar,rr]),pn=t(function(yn){var Vn=wt();return Vn||Ve(!1),Sr(_e,Vn,yn)},[_e,wt]),Wr=i(function(){return{uniqueId:ae,descriptor:_e,options:Vr,getDimension:pn}},[_e,pn,Vr,ae]),jr=Object(y.useRef)(Wr),sn=Object(y.useRef)(!0);hs(function(){return $e.draggable.register(jr.current),function(){return $e.draggable.unregister(jr.current)}},[$e.draggable]),hs(function(){if(sn.current){sn.current=!1;return}var yn=jr.current;jr.current=Wr,$e.draggable.update(Wr,yn)},[Wr,$e.draggable])}function Zr(Ue,ae,_e){Jr(function(){function $e(Vt){return"Draggable[id: "+Vt+"]: "}var wt=Ue.draggableId;if(wt||Ve(!1),typeof wt=="string"||Ve(!1),oe(Ue.index)||Ve(!1),Ue.mapped.type==="DRAGGING")return;iu(_e()),Ue.isEnabled&&(ds(ae,wt)||Ve(!1))})}function On(Ue){sr(function(){var ae=Object(y.useRef)(Ue);Jr(function(){Ue===ae.current||Ve(!1)},[Ue])})}function Rn(Ue){Ue.preventDefault()}function Zn(Ue){var ae=Object(y.useRef)(null),_e=t(function(N){ae.current=N},[]),$e=t(function(){return ae.current},[]),wt=Zl(Nn),Vt=wt.contextId,rr=wt.dragHandleUsageInstructionsId,ar=wt.registry,Vr=Zl(fu),pn=Vr.type,Wr=Vr.droppableId,jr=i(function(){return{id:Ue.draggableId,index:Ue.index,type:pn,droppableId:Wr}},[Ue.draggableId,Ue.index,pn,Wr]),sn=Ue.children,yn=Ue.draggableId,Vn=Ue.isEnabled,Li=Ue.shouldRespectForcePress,Mi=Ue.canDragInteractiveElements,da=Ue.isClone,$i=Ue.mapped,Qa=Ue.dropAnimationFinished;if(Zr(Ue,Vt,$e),On(da),!da){var ya=i(function(){return{descriptor:jr,registry:ar,getDraggableRef:$e,canDragInteractiveElements:Mi,shouldRespectForcePress:Li,isEnabled:Vn}},[jr,ar,$e,Mi,Li,Vn]);Kr(ya)}var fo=i(function(){return Vn?{tabIndex:0,role:"button","aria-describedby":rr,"data-rbd-drag-handle-draggable-id":yn,"data-rbd-drag-handle-context-id":Vt,draggable:!1,onDragStart:Rn}:null},[Vt,rr,yn,Vn]),za=t(function(N){if($i.type!=="DRAGGING")return;if(!$i.dropping)return;if(N.propertyName!=="transform")return;Qa()},[Qa,$i]),Xo=i(function(){var N=Cr($i),B=$i.type==="DRAGGING"&&$i.dropping?za:null,ie={innerRef:_e,draggableProps:{"data-rbd-draggable-context-id":Vt,"data-rbd-draggable-id":yn,style:N,onTransitionEnd:B},dragHandleProps:fo};return ie},[Vt,fo,yn,$i,za,_e]),ls=i(function(){return{draggableId:jr.id,type:jr.type,source:{index:jr.index,droppableId:jr.droppableId}}},[jr.droppableId,jr.id,jr.index,jr.type]);return sn(Xo,$i.snapshot,ls)}var wi=function(ae,_e){return ae===_e},ua=function(ae){var _e=ae.combine,$e=ae.destination;return $e?$e.droppableId:_e?_e.droppableId:null},Gi=function(ae){return ae.combine?ae.combine.draggableId:null},Zi=function(ae){return ae.at&&ae.at.type==="COMBINE"?ae.at.combine.draggableId:null};function ka(){var Ue=I(function(wt,Vt){return{x:wt,y:Vt}}),ae=I(function(wt,Vt,rr,ar,Vr){return{isDragging:!0,isClone:Vt,isDropAnimating:Boolean(Vr),dropAnimation:Vr,mode:wt,draggingOver:rr,combineWith:ar,combineTargetFor:null}}),_e=I(function(wt,Vt,rr,ar,Vr,pn,Wr){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Vr,combineWith:pn,mode:Vt,offset:wt,dimension:rr,forceShouldAnimate:Wr,snapshot:ae(Vt,ar,Vr,pn,null)}}}),$e=function(Vt,rr){if(Vt.isDragging){if(Vt.critical.draggable.id!==rr.draggableId)return null;var ar=Vt.current.client.offset,Vr=Vt.dimensions.draggables[rr.draggableId],pn=ti(Vt.impact),Wr=Zi(Vt.impact),jr=Vt.forceShouldAnimate;return _e(Ue(ar.x,ar.y),Vt.movementMode,Vr,rr.isClone,pn,Wr,jr)}if(Vt.phase==="DROP_ANIMATING"){var sn=Vt.completed;if(sn.result.draggableId!==rr.draggableId)return null;var yn=rr.isClone,Vn=Vt.dimensions.draggables[rr.draggableId],Li=sn.result,Mi=Li.mode,da=ua(Li),$i=Gi(Li),Qa=Vt.dropDuration,ya={duration:Qa,curve:Hi.drop,moveTo:Vt.newHomeClientOffset,opacity:$i?Ji.opacity.drop:null,scale:$i?Ji.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Vt.newHomeClientOffset,dimension:Vn,dropping:ya,draggingOver:da,combineWith:$i,mode:Mi,forceShouldAnimate:null,snapshot:ae(Mi,yn,da,$i,ya)}}}return null};return $e}function Ga(Ue){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:Ue,combineWith:null}}var Ba={mapped:{type:"SECONDARY",offset:Ce,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Ga(null)}};function Sa(){var Ue=I(function(rr,ar){return{x:rr,y:ar}}),ae=I(Ga),_e=I(function(rr,ar,Vr){return ar===void 0&&(ar=null),{mapped:{type:"SECONDARY",offset:rr,combineTargetFor:ar,shouldAnimateDisplacement:Vr,snapshot:ae(ar)}}}),$e=function(ar){return ar?_e(Ce,ar,!0):null},wt=function(ar,Vr,pn,Wr){var jr=pn.displaced.visible[ar],sn=Boolean(Wr.inVirtualList&&Wr.effected[ar]),yn=ur(pn),Vn=yn&&yn.draggableId===ar?Vr:null;if(!jr){if(!sn)return $e(Vn);if(pn.displaced.invisible[ar])return null;var Li=Re(Wr.displacedBy.point),Mi=Ue(Li.x,Li.y);return _e(Mi,Vn,!0)}if(sn)return $e(Vn);var da=pn.displacedBy.point,$i=Ue(da.x,da.y);return _e($i,Vn,jr.shouldAnimate)},Vt=function(ar,Vr){if(ar.isDragging)return ar.critical.draggable.id===Vr.draggableId?null:wt(Vr.draggableId,ar.critical.draggable.id,ar.impact,ar.afterCritical);if(ar.phase==="DROP_ANIMATING"){var pn=ar.completed;return pn.result.draggableId===Vr.draggableId?null:wt(Vr.draggableId,pn.result.draggableId,pn.impact,pn.afterCritical)}return null};return Vt}var Go=function(){var ae=ka(),_e=Sa(),$e=function(Vt,rr){return ae(Vt,rr)||_e(Vt,rr)||Ba};return $e},bs={dropAnimationFinished:Ii},ys=Object(p.c)(Go,bs,null,{context:xs,pure:!0,areStatePropsEqual:wi})(Zn);function Cs(Ue){var ae=Zl(fu),_e=ae.isUsingCloneFor;return _e===Ue.draggableId&&!Ue.isClone?null:f.a.createElement(ys,Ue)}function js(Ue){var ae=typeof Ue.isDragDisabled=="boolean"?!Ue.isDragDisabled:!0,_e=Boolean(Ue.disableInteractiveElementBlocking),$e=Boolean(Ue.shouldRespectForcePress);return f.a.createElement(Cs,Object(v.a)({},Ue,{isClone:!1,isEnabled:ae,canDragInteractiveElements:_e,shouldRespectForcePress:$e}))}function ws(Ue){var ae=Object(y.useContext)(Nn);ae||Ve(!1);var _e=ae.contextId,$e=ae.isMovementAllowed,wt=Object(y.useRef)(null),Vt=Object(y.useRef)(null),rr=Ue.children,ar=Ue.droppableId,Vr=Ue.type,pn=Ue.mode,Wr=Ue.direction,jr=Ue.ignoreContainerClipping,sn=Ue.isDropDisabled,yn=Ue.isCombineEnabled,Vn=Ue.snapshot,Li=Ue.useClone,Mi=Ue.updateViewportMaxScroll,da=Ue.getContainerForClone,$i=t(function(){return wt.current},[]),Qa=t(function(le){wt.current=le},[]),ya=t(function(){return Vt.current},[]),fo=t(function(le){Vt.current=le},[]);Z({props:Ue,getDroppableRef:$i,getPlaceholderRef:ya});var za=t(function(){$e()&&Mi({maxScroll:Xr()})},[$e,Mi]);xu({droppableId:ar,type:Vr,mode:pn,direction:Wr,isDropDisabled:sn,isCombineEnabled:yn,ignoreContainerClipping:jr,getDroppableRef:$i});var Xo=f.a.createElement(ne,{on:Ue.placeholder,shouldAnimate:Ue.shouldAnimatePlaceholder},function(le){var me=le.onClose,Ke=le.data,It=le.animate;return f.a.createElement(hu,{placeholder:Ke,onClose:me,innerRef:fo,animate:It,contextId:_e,onTransitionEnd:za})}),ls=i(function(){return{innerRef:Qa,placeholder:Xo,droppableProps:{"data-rbd-droppable-id":ar,"data-rbd-droppable-context-id":_e}}},[_e,ar,Xo,Qa]),N=Li?Li.dragging.draggableId:null,B=i(function(){return{droppableId:ar,type:Vr,isUsingCloneFor:N}},[ar,N,Vr]);function ie(){if(!Li)return null;var le=Li.dragging,me=Li.render,Ke=f.a.createElement(Cs,{draggableId:le.draggableId,index:le.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(It,nr){return me(It,nr,le)});return P.a.createPortal(Ke,da())}return f.a.createElement(fu.Provider,{value:B},rr(ls,Vn),ie())}var Hs=function(ae,_e){return ae===_e.droppable.type},Ee=function(ae,_e){return _e.draggables[ae.draggable.id]},Ye=function(){var ae={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},_e=Object(v.a)({},ae,{shouldAnimatePlaceholder:!1}),$e=I(function(rr){return{draggableId:rr.id,type:rr.type,source:{index:rr.index,droppableId:rr.droppableId}}}),wt=I(function(rr,ar,Vr,pn,Wr,jr){var sn=Wr.descriptor.id,yn=Wr.descriptor.droppableId===rr;if(yn){var Vn=jr?{render:jr,dragging:$e(Wr.descriptor)}:null,Li={isDraggingOver:Vr,draggingOverWith:Vr?sn:null,draggingFromThisWith:sn,isUsingPlaceholder:!0};return{placeholder:Wr.placeholder,shouldAnimatePlaceholder:!1,snapshot:Li,useClone:Vn}}if(!ar)return _e;if(!pn)return ae;var Mi={isDraggingOver:Vr,draggingOverWith:sn,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Wr.placeholder,shouldAnimatePlaceholder:!0,snapshot:Mi,useClone:null}}),Vt=function(ar,Vr){var pn=Vr.droppableId,Wr=Vr.type,jr=!Vr.isDropDisabled,sn=Vr.renderClone;if(ar.isDragging){var yn=ar.critical;if(!Hs(Wr,yn))return _e;var Vn=Ee(yn,ar.dimensions),Li=ti(ar.impact)===pn;return wt(pn,jr,Li,Li,Vn,sn)}if(ar.phase==="DROP_ANIMATING"){var Mi=ar.completed;if(!Hs(Wr,Mi.critical))return _e;var da=Ee(Mi.critical,ar.dimensions);return wt(pn,jr,ua(Mi.result)===pn,ti(Mi.impact)===pn,da,sn)}if(ar.phase==="IDLE"&&ar.completed&&!ar.shouldFlush){var $i=ar.completed;if(!Hs(Wr,$i.critical))return _e;var Qa=ti($i.impact)===pn,ya=Boolean($i.impact.at&&$i.impact.at.type==="COMBINE"),fo=$i.critical.droppable.id===pn;return Qa?ya?ae:_e:fo?ae:_e}return _e};return Vt},Tt={updateViewportMaxScroll:Lr};function hr(){return document.body||Ve(!1),document.body}var Br={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:hr},on=Object(p.c)(Ye,Tt,null,{context:xs,pure:!0,areStatePropsEqual:wi})(ws);on.defaultProps=Br},ni6a:function(R,D,n){var y=n("pzxd"),f=n("mFDi"),x=n("gut8"),v=x.WILL_BE_RESTORED,m=new f,p=function(){};p.prototype={constructor:p,drawRectText:function(s,i){var t=this.style;i=t.textRect||i,this.__dirty&&y.normalizeTextStyle(t,!0);var o=t.text;if(o!=null&&(o+=""),!y.needDrawText(o,t))return;s.save();var e=this.transform;t.transformText?this.setTransform(s):e&&(m.copy(i),m.applyTransform(e),i=m),y.renderText(this,s,o,t,i,v),s.restore()}};var d=p;R.exports=d},nkfE:function(R,D,n){var y=n("bYtY"),f=n("ca2m"),x=n("bLfw"),v=n("+TT/"),m=v.getLayoutParams,p=v.mergeLayoutParam,d=n("jkPA"),u=["value","category","time","log"];function s(i,t,o,e){y.each(u,function(l){t.extend({type:i+"Axis."+l,mergeDefaultAndTheme:function(r,a){var c=this.layoutMode,h=c?m(r):{},g=a.getTheme();y.merge(r,g.get(l+"Axis")),y.merge(r,this.getDefaultOption()),r.type=o(i,r),c&&p(r,h,c)},optionUpdated:function(){var r=this.option;r.type==="category"&&(this.__ordinalMeta=d.createByAxisModel(this))},getCategories:function(r){var a=this.option;if(a.type==="category")return r?a.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:y.mergeAll([{},f[l+"Axis"],e],!0)})}),x.registerSubTypeDefaulter(i+"Axis",y.curry(o,i))}R.exports=s},noeP:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("UOVi");y.registerAction("dataZoom",function(v,m){var p=x.createLinkedNodesFinder(f.bind(m.eachComponent,m,"dataZoom"),x.eachAxisDim,function(u,s){return u.get(s.axisIndex)}),d=[];m.eachComponent({mainType:"dataZoom",query:v},function(u,s){d.push.apply(d,p(u).nodes)}),f.each(d,function(u,s){u.setRawRange({start:v.start,end:v.end,startValue:v.startValue,endValue:v.endValue})})})},o40c:function(R,D,n){var y=n("IwbS"),f=n("OS9S"),x=n("loD1"),v=n("aKvl"),m=y.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(s,i){var t=i.segs,o=i.curveness;if(i.polyline)for(var e=0;e<t.length;){var l=t[e++];if(l>0){s.moveTo(t[e++],t[e++]);for(var r=1;r<l;r++)s.lineTo(t[e++],t[e++])}}else for(var e=0;e<t.length;){var a=t[e++],c=t[e++],h=t[e++],g=t[e++];if(s.moveTo(a,c),o>0){var A=(a+h)/2-(c-g)*o,b=(c+g)/2-(h-a)*o;s.quadraticCurveTo(A,b,h,g)}else s.lineTo(h,g)}},findDataIndex:function(s,i){var t=this.shape,o=t.segs,e=t.curveness;if(t.polyline)for(var l=0,r=0;r<o.length;){var a=o[r++];if(a>0)for(var c=o[r++],h=o[r++],g=1;g<a;g++){var A=o[r++],b=o[r++];if(x.containStroke(c,h,A,b))return l}l++}else for(var l=0,r=0;r<o.length;){var c=o[r++],h=o[r++],A=o[r++],b=o[r++];if(e>0){var S=(c+A)/2-(h-b)*e,E=(h+b)/2-(A-c)*e;if(v.containStroke(c,h,S,E,A,b))return l}else if(x.containStroke(c,h,A,b))return l;l++}return-1}});function p(){this.group=new y.Group}var d=p.prototype;d.isPersistent=function(){return!this._incremental},d.updateData=function(s){this.group.removeAll();var i=new m({rectHover:!0,cursor:"default"});i.setShape({segs:s.getLayout("linesPoints")}),this._setCommon(i,s),this.group.add(i),this._incremental=null},d.incrementalPrepareUpdate=function(s){this.group.removeAll(),this._clearIncremental(),s.count()>5e5?(this._incremental||(this._incremental=new f({silent:!0})),this.group.add(this._incremental)):this._incremental=null},d.incrementalUpdate=function(s,i){var t=new m;t.setShape({segs:i.getLayout("linesPoints")}),this._setCommon(t,i,!!this._incremental),this._incremental?this._incremental.addDisplayable(t,!0):(t.rectHover=!0,t.cursor="default",t.__startIndex=s.start,this.group.add(t))},d.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},d._setCommon=function(s,i,t){var o=i.hostModel;s.setShape({polyline:o.get("polyline"),curveness:o.get("lineStyle.curveness")}),s.useStyle(o.getModel("lineStyle").getLineStyle()),s.style.strokeNoScale=!0;var e=i.getVisual("color");e&&s.setStyle("stroke",e),s.setStyle("fill"),t||(s.seriesIndex=o.seriesIndex,s.on("mousemove",function(l){s.dataIndex=null;var r=s.findDataIndex(l.offsetX,l.offsetY);r>0&&(s.dataIndex=r+s.__startIndex)}))},d._clearIncremental=function(){var s=this._incremental;s&&s.clearDisplaybles()};var u=p;R.exports=u},oBaM:function(R,D,n){var y=n("T4UG"),f=n("5GtS"),x=n("bYtY"),v=n("7aKB"),m=v.encodeHTML,p=n("xKMd"),d=y.extend({type:"series.radar",dependencies:["radar"],init:function(s){d.superApply(this,"init",arguments),this.legendVisualProvider=new p(x.bind(this.getData,this),x.bind(this.getRawData,this))},getInitialData:function(s,i){return f(this,{generateCoord:"indicator_",generateCoordCount:Infinity})},formatTooltip:function(s){var i=this.getData(),t=this.coordinateSystem,o=t.getIndicatorAxes(),e=this.getData().getName(s);return m(e===""?this.name:e)+"<br/>"+x.map(o,function(l,r){var a=i.get(i.mapDimension(l.dim),s);return m(l.name+" : "+a)}).join("<br />")},getTooltipPosition:function(s){if(s!=null){for(var i=this.getData(),t=this.coordinateSystem,o=i.getValues(x.map(t.dimensions,function(a){return i.mapDimension(a)}),s,!0),e=0,l=o.length;e<l;e++)if(!isNaN(o[e])){var r=t.getIndicatorAxes();return t.coordToPoint(r[e].dataToCoord(o[e]),e)}}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),u=d;R.exports=u},oE7X:function(R,D,n){var y=n("bLfw");y.registerSubTypeDefaulter("timeline",function(){return"slider"})},oIFs:function(R,D,n){},oRuE:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.Iso10126={pad:function(x,v){var m=v*4,p=m-x.sigBytes%m;x.concat(y.lib.WordArray.random(p-1)).concat(y.lib.WordArray.create([p<<24],1))},unpad:function(x){var v=x.words[x.sigBytes-1>>>2]&255;x.sigBytes-=v}},y.pad.Iso10126})},oVpE:function(R,D,n){var y=n("bYtY"),f=n("IwbS"),x=n("mFDi"),v=n("6GrX"),m=v.calculateTextPosition,p=f.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(a,c){var h=c.cx,g=c.cy,A=c.width/2,b=c.height/2;a.moveTo(h,g-b),a.lineTo(h+A,g+b),a.lineTo(h-A,g+b),a.closePath()}}),d=f.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(a,c){var h=c.cx,g=c.cy,A=c.width/2,b=c.height/2;a.moveTo(h,g-b),a.lineTo(h+A,g),a.lineTo(h,g+b),a.lineTo(h-A,g),a.closePath()}}),u=f.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(a,c){var h=c.x,g=c.y,A=c.width/5*3,b=Math.max(A,c.height),S=A/2,E=S*S/(b-S),C=g-b+S+E,_=Math.asin(E/S),T=Math.cos(_)*S,w=Math.sin(_),O=Math.cos(_),I=S*.6,k=S*.7;a.moveTo(h-T,C+E),a.arc(h,C,S,Math.PI-_,Math.PI*2+_),a.bezierCurveTo(h+T-w*I,C+E+O*I,h,g-k,h,g),a.bezierCurveTo(h,g-k,h-T+w*I,C+E+O*I,h-T,C+E),a.closePath()}}),s=f.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(a,c){var h=c.height,g=c.width,A=c.x,b=c.y,S=g/3*2;a.moveTo(A,b),a.lineTo(A+S,b+h),a.lineTo(A,b+h/4*3),a.lineTo(A-S,b+h),a.lineTo(A,b),a.closePath()}}),i={line:f.Line,rect:f.Rect,roundRect:f.Rect,square:f.Rect,circle:f.Circle,diamond:d,pin:u,arrow:s,triangle:p},t={line:function(a,c,h,g,A){A.x1=a,A.y1=c+g/2,A.x2=a+h,A.y2=c+g/2},rect:function(a,c,h,g,A){A.x=a,A.y=c,A.width=h,A.height=g},roundRect:function(a,c,h,g,A){A.x=a,A.y=c,A.width=h,A.height=g,A.r=Math.min(h,g)/4},square:function(a,c,h,g,A){var b=Math.min(h,g);A.x=a,A.y=c,A.width=b,A.height=b},circle:function(a,c,h,g,A){A.cx=a+h/2,A.cy=c+g/2,A.r=Math.min(h,g)/2},diamond:function(a,c,h,g,A){A.cx=a+h/2,A.cy=c+g/2,A.width=h,A.height=g},pin:function(a,c,h,g,A){A.x=a+h/2,A.y=c+g/2,A.width=h,A.height=g},arrow:function(a,c,h,g,A){A.x=a+h/2,A.y=c+g/2,A.width=h,A.height=g},triangle:function(a,c,h,g,A){A.cx=a+h/2,A.cy=c+g/2,A.width=h,A.height=g}},o={};y.each(i,function(a,c){o[c]=new a});var e=f.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(a,c,h){var g=m(a,c,h),A=this.shape;return A&&A.symbolType==="pin"&&c.textPosition==="inside"&&(g.y=h.y+h.height*.4),g},buildPath:function(a,c,h){var g=c.symbolType;if(g!=="none"){var A=o[g];A||(g="rect",A=o[g]),t[g](c.x,c.y,c.width,c.height,A.shape),A.buildPath(a,A.shape,h)}}});function l(a,c){if(this.type!=="image"){var h=this.style,g=this.shape;g&&g.symbolType==="line"?h.stroke=a:this.__isEmptyBrush?(h.stroke=a,h.fill=c||"#fff"):(h.fill&&(h.fill=a),h.stroke&&(h.stroke=a)),this.dirty(!1)}}function r(a,c,h,g,A,b,S){var E=a.indexOf("empty")===0;E&&(a=a.substr(5,1).toLowerCase()+a.substr(6));var C;return a.indexOf("image://")===0?C=f.makeImage(a.slice(8),new x(c,h,g,A),S?"center":"cover"):a.indexOf("path://")===0?C=f.makePath(a.slice(7),{},new x(c,h,g,A),S?"center":"cover"):C=new e({shape:{symbolType:a,x:c,y:h,width:g,height:A}}),C.__isEmptyBrush=E,C.setColor=l,C.setColor(b),C}D.createSymbol=r},oY9F:function(R,D,n){var y=n("OlYY"),f=y.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});R.exports=f},or5M:function(R,D,n){var y=n("1hJj"),f=n("QoRX"),x=n("xYSL"),v=1,m=2;function p(d,u,s,i,t,o){var e=s&v,l=d.length,r=u.length;if(l!=r&&!(e&&r>l))return!1;var a=o.get(d),c=o.get(u);if(a&&c)return a==u&&c==d;var h=-1,g=!0,A=s&m?new y:void 0;for(o.set(d,u),o.set(u,d);++h<l;){var b=d[h],S=u[h];if(i)var E=e?i(S,b,h,u,d,o):i(b,S,h,d,u,o);if(E!==void 0){if(E)continue;g=!1;break}if(A){if(!f(u,function(C,_){if(!x(A,_)&&(b===C||t(b,C,s,i,o)))return A.push(_)})){g=!1;break}}else if(!(b===S||t(b,S,s,i,o))){g=!1;break}}return o.delete(d),o.delete(u),g}R.exports=p},osHv:function(R,D,n){(function(y){y(n("VrN/"))})(function(y){"use strict";var f=y.Pos;function x(c,h){return c.line-h.line||c.ch-h.ch}var v="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",m=v+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",p=new RegExp("<(/?)(["+v+"]["+m+"]*)","g");function d(c,h,g,A){this.line=h,this.ch=g,this.cm=c,this.text=c.getLine(h),this.min=A?Math.max(A.from,c.firstLine()):c.firstLine(),this.max=A?Math.min(A.to-1,c.lastLine()):c.lastLine()}function u(c,h){var g=c.cm.getTokenTypeAt(f(c.line,h));return g&&/\btag\b/.test(g)}function s(c){return c.line>=c.max?void 0:(c.ch=0,c.text=c.cm.getLine(++c.line),!0)}function i(c){return c.line<=c.min?void 0:(c.text=c.cm.getLine(--c.line),c.ch=c.text.length,!0)}function t(c){for(;;){var h=c.text.indexOf(">",c.ch);if(h==-1){if(s(c))continue;return}if(!u(c,h+1)){c.ch=h+1;continue}var g=c.text.lastIndexOf("/",h),A=g>-1&&!/\S/.test(c.text.slice(g+1,h));return c.ch=h+1,A?"selfClose":"regular"}}function o(c){for(;;){var h=c.ch?c.text.lastIndexOf("<",c.ch-1):-1;if(h==-1){if(i(c))continue;return}if(!u(c,h+1)){c.ch=h;continue}p.lastIndex=h,c.ch=h;var g=p.exec(c.text);if(g&&g.index==h)return g}}function e(c){for(;;){p.lastIndex=c.ch;var h=p.exec(c.text);if(!h){if(s(c))continue;return}if(!u(c,h.index+1)){c.ch=h.index+1;continue}return c.ch=h.index+h[0].length,h}}function l(c){for(;;){var h=c.ch?c.text.lastIndexOf(">",c.ch-1):-1;if(h==-1){if(i(c))continue;return}if(!u(c,h+1)){c.ch=h;continue}var g=c.text.lastIndexOf("/",h),A=g>-1&&!/\S/.test(c.text.slice(g+1,h));return c.ch=h+1,A?"selfClose":"regular"}}function r(c,h){for(var g=[];;){var A=e(c),b,S=c.line,E=c.ch-(A?A[0].length:0);if(!A||!(b=t(c)))return;if(b=="selfClose")continue;if(A[1]){for(var C=g.length-1;C>=0;--C)if(g[C]==A[2]){g.length=C;break}if(C<0&&(!h||h==A[2]))return{tag:A[2],from:f(S,E),to:f(c.line,c.ch)}}else g.push(A[2])}}function a(c,h){for(var g=[];;){var A=l(c);if(!A)return;if(A=="selfClose"){o(c);continue}var b=c.line,S=c.ch,E=o(c);if(!E)return;if(E[1])g.push(E[2]);else{for(var C=g.length-1;C>=0;--C)if(g[C]==E[2]){g.length=C;break}if(C<0&&(!h||h==E[2]))return{tag:E[2],from:f(c.line,c.ch),to:f(b,S)}}}}y.registerHelper("fold","xml",function(c,h){for(var g=new d(c,h.line,0);;){var A=e(g);if(!A||g.line!=h.line)return;var b=t(g);if(!b)return;if(!A[1]&&b!="selfClose"){var S=f(g.line,g.ch),E=r(g,A[2]);return E&&x(E.from,S)>0?{from:S,to:E.from}:null}}}),y.findMatchingTag=function(c,h,g){var A=new d(c,h.line,h.ch,g);if(A.text.indexOf(">")==-1&&A.text.indexOf("<")==-1)return;var b=t(A),S=b&&f(A.line,A.ch),E=b&&o(A);if(!b||!E||x(A,h)>0)return;var C={from:f(A.line,A.ch),to:S,tag:E[2]};return b=="selfClose"?{open:C,close:null,at:"open"}:E[1]?{open:a(A,E[2]),close:C,at:"close"}:(A=new d(c,S.line,S.ch,g),{open:C,close:r(A,E[2]),at:"open"})},y.findEnclosingTag=function(c,h,g,A){for(var b=new d(c,h.line,h.ch,g);;){var S=a(b,A);if(!S)break;var E=new d(c,h.line,h.ch,g),C=r(E,S.tag);if(C)return{open:S,close:C}}},y.scanForClosingTag=function(c,h,g,A){var b=new d(c,h.line,h.ch,A?{from:0,to:A}:null);return r(b,g)}})},ozfa:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("KxFI"),v=n.n(x)},"p+If":function(R,D,n){var y=n("ProS");n("cpOr"),n("rkZ5");var f=n("ZYIC"),x=n("7ph2");y.registerLayout(f),y.registerVisual(x)},"p/La":function(R,D){var n=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function y(f,x){f==="china"&&x.name==="\u53F0\u6E7E"&&x.geometries.push({type:"polygon",exterior:n[0]})}R.exports=y},p1MT:function(R,D,n){var y=n("Hw7h"),f=n("IwbS"),x=n("6Ic6"),v=n("OELB"),m=v.parsePercent,p=v.round,d=v.linearMap;function u(e,l){var r=e.get("center"),a=l.getWidth(),c=l.getHeight(),h=Math.min(a,c),g=m(r[0],l.getWidth()),A=m(r[1],l.getHeight()),b=m(e.get("radius"),h/2);return{cx:g,cy:A,r:b}}function s(e,l){return l&&(typeof l=="string"?e=l.replace("{value}",e!=null?e:""):typeof l=="function"&&(e=l(e))),e}var i=Math.PI*2,t=x.extend({type:"gauge",render:function(e,l,r){this.group.removeAll();var a=e.get("axisLine.lineStyle.color"),c=u(e,r);this._renderMain(e,l,r,a,c)},dispose:function(){},_renderMain:function(e,l,r,a,c){for(var h=this.group,g=e.getModel("axisLine"),A=g.getModel("lineStyle"),b=e.get("clockwise"),S=-e.get("startAngle")/180*Math.PI,E=-e.get("endAngle")/180*Math.PI,C=(E-S)%i,_=S,T=A.get("width"),w=g.get("show"),O=0;w&&O<a.length;O++){var I=Math.min(Math.max(a[O][0],0),1),E=S+C*I,k=new f.Sector({shape:{startAngle:_,endAngle:E,cx:c.cx,cy:c.cy,clockwise:b,r0:c.r-T,r:c.r},silent:!0});k.setStyle({fill:a[O][1]}),k.setStyle(A.getLineStyle(["color","borderWidth","borderColor"])),h.add(k),_=E}var M=function(P){if(P<=0)return a[0][1];for(var X=0;X<a.length;X++)if(a[X][0]>=P&&(X===0?0:a[X-1][0])<P)return a[X][1];return a[X-1][1]};if(!b){var j=S;S=E,E=j}this._renderTicks(e,l,r,M,c,S,E,b),this._renderPointer(e,l,r,M,c,S,E,b),this._renderTitle(e,l,r,M,c),this._renderDetail(e,l,r,M,c)},_renderTicks:function(e,l,r,a,c,h,g,A){for(var b=this.group,S=c.cx,E=c.cy,C=c.r,_=+e.get("min"),T=+e.get("max"),w=e.getModel("splitLine"),O=e.getModel("axisTick"),I=e.getModel("axisLabel"),k=e.get("splitNumber"),M=O.get("splitNumber"),j=m(w.get("length"),C),P=m(O.get("length"),C),X=h,F=(g-h)/k,U=F/M,K=w.getModel("lineStyle").getLineStyle(),z=O.getModel("lineStyle").getLineStyle(),V=0;V<=k;V++){var Q=Math.cos(X),G=Math.sin(X);if(w.get("show")){var te=new f.Line({shape:{x1:Q*C+S,y1:G*C+E,x2:Q*(C-j)+S,y2:G*(C-j)+E},style:K,silent:!0});K.stroke==="auto"&&te.setStyle({stroke:a(V/k)}),b.add(te)}if(I.get("show")){var q=s(p(V/k*(T-_)+_),I.get("formatter")),se=I.get("distance"),re=a(V/k);b.add(new f.Text({style:f.setTextStyle({},I,{text:q,x:Q*(C-j-se)+S,y:G*(C-j-se)+E,textVerticalAlign:G<-.4?"top":G>.4?"bottom":"middle",textAlign:Q<-.4?"left":Q>.4?"right":"center"},{autoColor:re}),silent:!0}))}if(O.get("show")&&V!==k){for(var xe=0;xe<=M;xe++){var Q=Math.cos(X),G=Math.sin(X),Oe=new f.Line({shape:{x1:Q*C+S,y1:G*C+E,x2:Q*(C-P)+S,y2:G*(C-P)+E},silent:!0,style:z});z.stroke==="auto"&&Oe.setStyle({stroke:a((V+xe/M)/k)}),b.add(Oe),X+=U}X-=U}else X+=F}},_renderPointer:function(e,l,r,a,c,h,g,A){var b=this.group,S=this._data;if(!e.get("pointer.show")){S&&S.eachItemGraphicEl(function(w){b.remove(w)});return}var E=[+e.get("min"),+e.get("max")],C=[h,g],_=e.getData(),T=_.mapDimension("value");_.diff(S).add(function(w){var O=new y({shape:{angle:h}});f.initProps(O,{shape:{angle:d(_.get(T,w),E,C,!0)}},e),b.add(O),_.setItemGraphicEl(w,O)}).update(function(w,O){var I=S.getItemGraphicEl(O);f.updateProps(I,{shape:{angle:d(_.get(T,w),E,C,!0)}},e),b.add(I),_.setItemGraphicEl(w,I)}).remove(function(w){var O=S.getItemGraphicEl(w);b.remove(O)}).execute(),_.eachItemGraphicEl(function(w,O){var I=_.getItemModel(O),k=I.getModel("pointer");w.setShape({x:c.cx,y:c.cy,width:m(k.get("width"),c.r),r:m(k.get("length"),c.r)}),w.useStyle(I.getModel("itemStyle").getItemStyle()),w.style.fill==="auto"&&w.setStyle("fill",a(d(_.get(T,O),E,[0,1],!0))),f.setHoverStyle(w,I.getModel("emphasis.itemStyle").getItemStyle())}),this._data=_},_renderTitle:function(e,l,r,a,c){var h=e.getData(),g=h.mapDimension("value"),A=e.getModel("title");if(A.get("show")){var b=A.get("offsetCenter"),S=c.cx+m(b[0],c.r),E=c.cy+m(b[1],c.r),C=+e.get("min"),_=+e.get("max"),T=e.getData().get(g,0),w=a(d(T,[C,_],[0,1],!0));this.group.add(new f.Text({silent:!0,style:f.setTextStyle({},A,{x:S,y:E,text:h.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:w,forceRich:!0})}))}},_renderDetail:function(e,l,r,a,c){var h=e.getModel("detail"),g=+e.get("min"),A=+e.get("max");if(h.get("show")){var b=h.get("offsetCenter"),S=c.cx+m(b[0],c.r),E=c.cy+m(b[1],c.r),C=m(h.get("width"),c.r),_=m(h.get("height"),c.r),T=e.getData(),w=T.get(T.mapDimension("value"),0),O=a(d(w,[g,A],[0,1],!0));this.group.add(new f.Text({silent:!0,style:f.setTextStyle({},h,{x:S,y:E,text:s(w,h.get("formatter")),textWidth:isNaN(C)?null:C,textHeight:isNaN(_)?null:_,textAlign:"center",textVerticalAlign:"middle"},{autoColor:O,forceRich:!0})}))}}}),o=t;R.exports=o},"p77/":function(R,D,n){},pA7S:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var f=y,x=f.lib,v=x.WordArray,m=x.BlockCipher,p=f.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],s=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],i=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],t=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],o=p.DES=m.extend({_doReset:function(){for(var c=this._key,h=c.words,g=[],A=0;A<56;A++){var b=d[A]-1;g[A]=h[b>>>5]>>>31-b%32&1}for(var S=this._subKeys=[],E=0;E<16;E++){for(var C=S[E]=[],_=s[E],A=0;A<24;A++)C[A/6|0]|=g[(u[A]-1+_)%28]<<31-A%6,C[4+(A/6|0)]|=g[28+(u[A+24]-1+_)%28]<<31-A%6;C[0]=C[0]<<1|C[0]>>>31;for(var A=1;A<7;A++)C[A]=C[A]>>>(A-1)*4+3;C[7]=C[7]<<5|C[7]>>>27}for(var T=this._invSubKeys=[],A=0;A<16;A++)T[A]=S[15-A]},encryptBlock:function(c,h){this._doCryptBlock(c,h,this._subKeys)},decryptBlock:function(c,h){this._doCryptBlock(c,h,this._invSubKeys)},_doCryptBlock:function(c,h,g){this._lBlock=c[h],this._rBlock=c[h+1],e.call(this,4,252645135),e.call(this,16,65535),l.call(this,2,858993459),l.call(this,8,16711935),e.call(this,1,1431655765);for(var A=0;A<16;A++){for(var b=g[A],S=this._lBlock,E=this._rBlock,C=0,_=0;_<8;_++)C|=i[_][((E^b[_])&t[_])>>>0];this._lBlock=E,this._rBlock=S^C}var T=this._lBlock;this._lBlock=this._rBlock,this._rBlock=T,e.call(this,1,1431655765),l.call(this,8,16711935),l.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),c[h]=this._lBlock,c[h+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function e(a,c){var h=(this._lBlock>>>a^this._rBlock)&c;this._rBlock^=h,this._lBlock^=h<<a}function l(a,c){var h=(this._rBlock>>>a^this._lBlock)&c;this._lBlock^=h,this._rBlock^=h<<a}f.DES=m._createHelper(o);var r=p.TripleDES=m.extend({_doReset:function(){var c=this._key,h=c.words;if(h.length!==2&&h.length!==4&&h.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var g=h.slice(0,2),A=h.length<4?h.slice(0,2):h.slice(2,4),b=h.length<6?h.slice(0,2):h.slice(4,6);this._des1=o.createEncryptor(v.create(g)),this._des2=o.createEncryptor(v.create(A)),this._des3=o.createEncryptor(v.create(b))},encryptBlock:function(c,h){this._des1.encryptBlock(c,h),this._des2.decryptBlock(c,h),this._des3.encryptBlock(c,h)},decryptBlock:function(c,h){this._des3.decryptBlock(c,h),this._des2.encryptBlock(c,h),this._des1.decryptBlock(c,h)},keySize:192/32,ivSize:64/32,blockSize:64/32});f.TripleDES=m._createHelper(r)}(),y.TripleDES})},pC0b:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("xzDV"),v=n.n(x),m=n("5Dmo")},"pED+":function(R,D,n){},pG52:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("WXVj"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},pLH3:function(R,D,n){var y=n("ProS");n("ALo7"),n("TWL2");var f=n("mOdp"),x=n("JLnu"),v=n("0/Rx");y.registerVisual(f("funnel")),y.registerLayout(x),y.registerProcessor(v("funnel"))},pP6R:function(R,D,n){var y=n("ProS"),f="\0_ec_interaction_mutex";function x(d,u,s){var i=p(d);i[u]=s}function v(d,u,s){var i=p(d),t=i[u];t===s&&(i[u]=null)}function m(d,u){return!!p(d)[u]}function p(d){return d[f]||(d[f]={})}y.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),D.take=x,D.release=v,D.isTaken=m},pSRY:function(R,D,n){var y=n("QkVE");function f(x){return y(this,x).has(x)}R.exports=f},pWdF:function(R,D,n){"use strict";n.d(D,"a",function(){return iu});var y=n("oBTY"),f=n("rAM+"),x=n("tJVT"),v=n("tS8v"),m=n("oZsa"),p=n("iZzK");function d(Ae){return Function.toString.call(Ae).indexOf("[native code]")!==-1}var u=n("cHpt");function s(Ae,ee,L){return Object(u.a)()?s=Reflect.construct:s=function(H,Z,ne){var ve=[null];ve.push.apply(ve,Z);var Te=Function.bind.apply(H,ve),ze=new Te;return ne&&Object(p.a)(ze,ne.prototype),ze},s.apply(null,arguments)}function i(Ae){var ee=typeof Map=="function"?new Map:void 0;return i=function(W){if(W===null||!d(W))return W;if(typeof W!="function")throw new TypeError("Super expression must either be null or a function");if(typeof ee!="undefined"){if(ee.has(W))return ee.get(W);ee.set(W,H)}function H(){return s(W,arguments,Object(m.a)(this).constructor)}return H.prototype=Object.create(W.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),Object(p.a)(H,W)},i(Ae)}var t=n("w4Tj"),o=n("yKVA"),e=n("879j"),l=n("jrin"),r=n("fWQN"),a=n("mtLc");function c(Ae){return Ae&&Ae.__esModule&&Object.prototype.hasOwnProperty.call(Ae,"default")?Ae.default:Ae}var h={exports:{}};(function(Ae,ee){(function(L){var W=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,H=/^(?=([^\/?#]*))\1([^]*)$/,Z=/(?:\/|^)\.(?=\/)/g,ne=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,ve={buildAbsoluteURL:function(ze,st,ht){if(ht=ht||{},ze=ze.trim(),st=st.trim(),!st){if(!ht.alwaysNormalize)return ze;var Zt=ve.parseURL(ze);if(!Zt)throw new Error("Error trying to parse base URL.");return Zt.path=ve.normalizePath(Zt.path),ve.buildURLFromParts(Zt)}var Cr=ve.parseURL(st);if(!Cr)throw new Error("Error trying to parse relative URL.");if(Cr.scheme)return ht.alwaysNormalize?(Cr.path=ve.normalizePath(Cr.path),ve.buildURLFromParts(Cr)):st;var Sr=ve.parseURL(ze);if(!Sr)throw new Error("Error trying to parse base URL.");if(!Sr.netLoc&&Sr.path&&Sr.path[0]!=="/"){var Kr=H.exec(Sr.path);Sr.netLoc=Kr[1],Sr.path=Kr[2]}Sr.netLoc&&!Sr.path&&(Sr.path="/");var Zr={scheme:Sr.scheme,netLoc:Cr.netLoc,path:null,params:Cr.params,query:Cr.query,fragment:Cr.fragment};if(!Cr.netLoc&&(Zr.netLoc=Sr.netLoc,Cr.path[0]!=="/"))if(!Cr.path)Zr.path=Sr.path,Cr.params||(Zr.params=Sr.params,Cr.query||(Zr.query=Sr.query));else{var On=Sr.path,Rn=On.substring(0,On.lastIndexOf("/")+1)+Cr.path;Zr.path=ve.normalizePath(Rn)}return Zr.path===null&&(Zr.path=ht.alwaysNormalize?ve.normalizePath(Cr.path):Cr.path),ve.buildURLFromParts(Zr)},parseURL:function(ze){var st=W.exec(ze);return st?{scheme:st[1]||"",netLoc:st[2]||"",path:st[3]||"",params:st[4]||"",query:st[5]||"",fragment:st[6]||""}:null},normalizePath:function(ze){for(ze=ze.split("").reverse().join("").replace(Z,"");ze.length!==(ze=ze.replace(ne,"")).length;);return ze.split("").reverse().join("")},buildURLFromParts:function(ze){return ze.scheme+ze.netLoc+ze.path+ze.params+ze.query+ze.fragment}};Ae.exports=ve})()})(h);var g=h.exports;function A(Ae,ee){var L=Object.keys(Ae);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(Ae);ee&&(W=W.filter(function(H){return Object.getOwnPropertyDescriptor(Ae,H).enumerable})),L.push.apply(L,W)}return L}function b(Ae){for(var ee=1;ee<arguments.length;ee++){var L=arguments[ee]!=null?arguments[ee]:{};ee%2?A(Object(L),!0).forEach(function(W){S(Ae,W,L[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ae,Object.getOwnPropertyDescriptors(L)):A(Object(L)).forEach(function(W){Object.defineProperty(Ae,W,Object.getOwnPropertyDescriptor(L,W))})}return Ae}function S(Ae,ee,L){return ee=_(ee),ee in Ae?Object.defineProperty(Ae,ee,{value:L,enumerable:!0,configurable:!0,writable:!0}):Ae[ee]=L,Ae}function E(){return E=Object.assign?Object.assign.bind():function(Ae){for(var ee=1;ee<arguments.length;ee++){var L=arguments[ee];for(var W in L)Object.prototype.hasOwnProperty.call(L,W)&&(Ae[W]=L[W])}return Ae},E.apply(this,arguments)}function C(Ae,ee){if(typeof Ae!="object"||Ae===null)return Ae;var L=Ae[Symbol.toPrimitive];if(L!==void 0){var W=L.call(Ae,ee||"default");if(typeof W!="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ee==="string"?String:Number)(Ae)}function _(Ae){var ee=C(Ae,"string");return typeof ee=="symbol"?ee:String(ee)}var T=Number.isFinite||function(Ae){return typeof Ae=="number"&&isFinite(Ae)},w=function(Ae){return Ae.MEDIA_ATTACHING="hlsMediaAttaching",Ae.MEDIA_ATTACHED="hlsMediaAttached",Ae.MEDIA_DETACHING="hlsMediaDetaching",Ae.MEDIA_DETACHED="hlsMediaDetached",Ae.BUFFER_RESET="hlsBufferReset",Ae.BUFFER_CODECS="hlsBufferCodecs",Ae.BUFFER_CREATED="hlsBufferCreated",Ae.BUFFER_APPENDING="hlsBufferAppending",Ae.BUFFER_APPENDED="hlsBufferAppended",Ae.BUFFER_EOS="hlsBufferEos",Ae.BUFFER_FLUSHING="hlsBufferFlushing",Ae.BUFFER_FLUSHED="hlsBufferFlushed",Ae.MANIFEST_LOADING="hlsManifestLoading",Ae.MANIFEST_LOADED="hlsManifestLoaded",Ae.MANIFEST_PARSED="hlsManifestParsed",Ae.LEVEL_SWITCHING="hlsLevelSwitching",Ae.LEVEL_SWITCHED="hlsLevelSwitched",Ae.LEVEL_LOADING="hlsLevelLoading",Ae.LEVEL_LOADED="hlsLevelLoaded",Ae.LEVEL_UPDATED="hlsLevelUpdated",Ae.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",Ae.LEVELS_UPDATED="hlsLevelsUpdated",Ae.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",Ae.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",Ae.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",Ae.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",Ae.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",Ae.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",Ae.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",Ae.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",Ae.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",Ae.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",Ae.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",Ae.CUES_PARSED="hlsCuesParsed",Ae.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",Ae.INIT_PTS_FOUND="hlsInitPtsFound",Ae.FRAG_LOADING="hlsFragLoading",Ae.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",Ae.FRAG_LOADED="hlsFragLoaded",Ae.FRAG_DECRYPTED="hlsFragDecrypted",Ae.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",Ae.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",Ae.FRAG_PARSING_METADATA="hlsFragParsingMetadata",Ae.FRAG_PARSED="hlsFragParsed",Ae.FRAG_BUFFERED="hlsFragBuffered",Ae.FRAG_CHANGED="hlsFragChanged",Ae.FPS_DROP="hlsFpsDrop",Ae.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",Ae.ERROR="hlsError",Ae.DESTROYING="hlsDestroying",Ae.KEY_LOADING="hlsKeyLoading",Ae.KEY_LOADED="hlsKeyLoaded",Ae.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",Ae.BACK_BUFFER_REACHED="hlsBackBufferReached",Ae}({}),O=function(Ae){return Ae.NETWORK_ERROR="networkError",Ae.MEDIA_ERROR="mediaError",Ae.KEY_SYSTEM_ERROR="keySystemError",Ae.MUX_ERROR="muxError",Ae.OTHER_ERROR="otherError",Ae}({}),I=function(Ae){return Ae.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",Ae.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",Ae.KEY_SYSTEM_NO_SESSION="keySystemNoSession",Ae.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",Ae.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",Ae.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",Ae.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",Ae.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",Ae.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",Ae.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",Ae.MANIFEST_LOAD_ERROR="manifestLoadError",Ae.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",Ae.MANIFEST_PARSING_ERROR="manifestParsingError",Ae.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",Ae.LEVEL_EMPTY_ERROR="levelEmptyError",Ae.LEVEL_LOAD_ERROR="levelLoadError",Ae.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",Ae.LEVEL_PARSING_ERROR="levelParsingError",Ae.LEVEL_SWITCH_ERROR="levelSwitchError",Ae.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",Ae.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",Ae.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",Ae.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",Ae.FRAG_LOAD_ERROR="fragLoadError",Ae.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",Ae.FRAG_DECRYPT_ERROR="fragDecryptError",Ae.FRAG_PARSING_ERROR="fragParsingError",Ae.FRAG_GAP="fragGap",Ae.REMUX_ALLOC_ERROR="remuxAllocError",Ae.KEY_LOAD_ERROR="keyLoadError",Ae.KEY_LOAD_TIMEOUT="keyLoadTimeOut",Ae.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",Ae.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",Ae.BUFFER_APPEND_ERROR="bufferAppendError",Ae.BUFFER_APPENDING_ERROR="bufferAppendingError",Ae.BUFFER_STALLED_ERROR="bufferStalledError",Ae.BUFFER_FULL_ERROR="bufferFullError",Ae.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",Ae.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",Ae.INTERNAL_EXCEPTION="internalException",Ae.INTERNAL_ABORTED="aborted",Ae.UNKNOWN="unknown",Ae}({}),k=function(){},M={trace:k,debug:k,log:k,warn:k,info:k,error:k},j=M;function P(Ae){var ee=self.console[Ae];return ee?ee.bind(self.console,"[".concat(Ae,"] >")):k}function X(Ae){for(var ee=arguments.length,L=new Array(ee>1?ee-1:0),W=1;W<ee;W++)L[W-1]=arguments[W];L.forEach(function(H){j[H]=Ae[H]?Ae[H].bind(Ae):P(H)})}function F(Ae,ee){if(self.console&&Ae===!0||typeof Ae=="object"){X(Ae,"debug","log","info","warn","error");try{j.log('Debug logs enabled for "'.concat(ee,'" in hls.js version ',"1.4.12"))}catch(L){j=M}}else j=M}var U=j,K=/^(\d+)x(\d+)$/,z=/(.+?)=(".*?"|.*?)(?:,|$)/g,V=function(){function Ae(ee){Object(r.a)(this,Ae),typeof ee=="string"&&(ee=Ae.parseAttrList(ee));for(var L in ee)ee.hasOwnProperty(L)&&(L.substring(0,2)==="X-"&&(this.clientAttrs=this.clientAttrs||[],this.clientAttrs.push(L)),this[L]=ee[L])}return Object(a.a)(Ae,[{key:"decimalInteger",value:function(L){var W=parseInt(this[L],10);return W>Number.MAX_SAFE_INTEGER?Infinity:W}},{key:"hexadecimalInteger",value:function(L){if(this[L]){var W=(this[L]||"0x").slice(2);W=(W.length&1?"0":"")+W;for(var H=new Uint8Array(W.length/2),Z=0;Z<W.length/2;Z++)H[Z]=parseInt(W.slice(Z*2,Z*2+2),16);return H}else return null}},{key:"hexadecimalIntegerAsNumber",value:function(L){var W=parseInt(this[L],16);return W>Number.MAX_SAFE_INTEGER?Infinity:W}},{key:"decimalFloatingPoint",value:function(L){return parseFloat(this[L])}},{key:"optionalFloat",value:function(L,W){var H=this[L];return H?parseFloat(H):W}},{key:"enumeratedString",value:function(L){return this[L]}},{key:"bool",value:function(L){return this[L]==="YES"}},{key:"decimalResolution",value:function(L){var W=K.exec(this[L]);return W===null?void 0:{width:parseInt(W[1],10),height:parseInt(W[2],10)}}}],[{key:"parseAttrList",value:function(L){var W,H={},Z='"';for(z.lastIndex=0;(W=z.exec(L))!==null;){var ne=W[2];ne.indexOf(Z)===0&&ne.lastIndexOf(Z)===ne.length-1&&(ne=ne.slice(1,-1));var ve=W[1].trim();H[ve]=ne}return H}}]),Ae}();function Q(Ae){return Ae!=="ID"&&Ae!=="CLASS"&&Ae!=="START-DATE"&&Ae!=="DURATION"&&Ae!=="END-DATE"&&Ae!=="END-ON-NEXT"}function G(Ae){return Ae==="SCTE35-OUT"||Ae==="SCTE35-IN"}var te=function(){function Ae(ee,L){if(Object(r.a)(this,Ae),this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,L){var W=L.attr;for(var H in W)if(Object.prototype.hasOwnProperty.call(ee,H)&&ee[H]!==W[H]){U.warn('DATERANGE tag attribute: "'.concat(H,'" does not match for tags with ID: "').concat(ee.ID,'"')),this._badValueForSameId=H;break}ee=E(new V({}),W,ee)}if(this.attr=ee,this._startDate=new Date(ee["START-DATE"]),"END-DATE"in this.attr){var Z=new Date(this.attr["END-DATE"]);T(Z.getTime())&&(this._endDate=Z)}}return Object(a.a)(Ae,[{key:"id",get:function(){return this.attr.ID}},{key:"class",get:function(){return this.attr.CLASS}},{key:"startDate",get:function(){return this._startDate}},{key:"endDate",get:function(){if(this._endDate)return this._endDate;var L=this.duration;return L!==null?new Date(this._startDate.getTime()+L*1e3):null}},{key:"duration",get:function(){if("DURATION"in this.attr){var L=this.attr.decimalFloatingPoint("DURATION");if(T(L))return L}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}},{key:"plannedDuration",get:function(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}},{key:"endOnNext",get:function(){return this.attr.bool("END-ON-NEXT")}},{key:"isValid",get:function(){return!!this.id&&!this._badValueForSameId&&T(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}]),Ae}(),q=Object(a.a)(function Ae(){Object(r.a)(this,Ae),this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}),se={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"},re=function(){function Ae(ee){var L;Object(r.a)(this,Ae),this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(L={},Object(l.a)(L,se.AUDIO,null),Object(l.a)(L,se.VIDEO,null),Object(l.a)(L,se.AUDIOVIDEO,null),L),this.baseurl=ee}return Object(a.a)(Ae,[{key:"setByteRange",value:function(L,W){var H=L.split("@",2),Z=[];H.length===1?Z[0]=W?W.byteRangeEndOffset:0:Z[0]=parseInt(H[1]),Z[1]=parseInt(H[0])+Z[0],this._byteRange=Z}},{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=g.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(L){this._url=L}}]),Ae}(),xe=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H){var Z;return Object(r.a)(this,L),Z=ee.call(this,H),Z._decryptdata=null,Z.rawProgramDateTime=null,Z.programDateTime=null,Z.tagList=[],Z.duration=0,Z.sn=0,Z.levelkeys=void 0,Z.type=void 0,Z.loader=null,Z.keyLoader=null,Z.level=-1,Z.cc=0,Z.startPTS=void 0,Z.endPTS=void 0,Z.startDTS=void 0,Z.endDTS=void 0,Z.start=0,Z.deltaPTS=void 0,Z.maxStartPTS=void 0,Z.minEndPTS=void 0,Z.stats=new q,Z.urlId=0,Z.data=void 0,Z.bitrateTest=!1,Z.title=null,Z.initSegment=null,Z.endList=void 0,Z.gap=void 0,Z.type=W,Z}return Object(a.a)(L,[{key:"decryptdata",get:function(){var H=this.levelkeys;if(!H&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){var Z=this.levelkeys.identity;if(Z)this._decryptdata=Z.getDecryptData(this.sn);else{var ne=Object.keys(this.levelkeys);if(ne.length===1)return this._decryptdata=this.levelkeys[ne[0]].getDecryptData(this.sn)}}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!T(this.programDateTime))return null;var H=T(this.duration)?this.duration:0;return this.programDateTime+H*1e3}},{key:"encrypted",get:function(){var H;if((H=this._decryptdata)!=null&&H.encrypted)return!0;if(this.levelkeys){var Z=Object.keys(this.levelkeys),ne=Z.length;if(ne>1||ne===1&&this.levelkeys[Z[0]].encrypted)return!0}return!1}},{key:"setKeyFormat",value:function(H){if(this.levelkeys){var Z=this.levelkeys[H];Z&&!this._decryptdata&&(this._decryptdata=Z.getDecryptData(this.sn))}}},{key:"abortRequests",value:function(){var H,Z;(H=this.loader)==null||H.abort(),(Z=this.keyLoader)==null||Z.abort()}},{key:"setElementaryStreamInfo",value:function(H,Z,ne,ve,Te){var ze=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,st=this.elementaryStreams,ht=st[H];if(!ht){st[H]={startPTS:Z,endPTS:ne,startDTS:ve,endDTS:Te,partial:ze};return}ht.startPTS=Math.min(ht.startPTS,Z),ht.endPTS=Math.max(ht.endPTS,ne),ht.startDTS=Math.min(ht.startDTS,ve),ht.endDTS=Math.max(ht.endDTS,Te)}},{key:"clearElementaryStreamInfo",value:function(){var H=this.elementaryStreams;H[se.AUDIO]=null,H[se.VIDEO]=null,H[se.AUDIOVIDEO]=null}}]),L}(re),Oe=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H,Z,ne,ve){var Te;Object(r.a)(this,L),Te=ee.call(this,Z),Te.fragOffset=0,Te.duration=0,Te.gap=!1,Te.independent=!1,Te.relurl=void 0,Te.fragment=void 0,Te.index=void 0,Te.stats=new q,Te.duration=W.decimalFloatingPoint("DURATION"),Te.gap=W.bool("GAP"),Te.independent=W.bool("INDEPENDENT"),Te.relurl=W.enumeratedString("URI"),Te.fragment=H,Te.index=ne;var ze=W.enumeratedString("BYTERANGE");return ze&&Te.setByteRange(ze,ve),ve&&(Te.fragOffset=ve.fragOffset+ve.duration),Te}return Object(a.a)(L,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var H=this.elementaryStreams;return!!(H.audio||H.video||H.audiovideo)}}]),L}(re),Me=10,Qe=function(){function Ae(ee){Object(r.a)(this,Ae),this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=ee}return Object(a.a)(Ae,[{key:"reloaded",value:function(L){if(!L){this.advanced=!0,this.updated=!0;return}var W=this.lastPartSn-L.lastPartSn,H=this.lastPartIndex-L.lastPartIndex;this.updated=this.endSN!==L.endSN||!!H||!!W||!this.live,this.advanced=this.endSN>L.endSN||W>0||W===0&&H>0,this.updated||this.advanced?this.misses=Math.floor(L.misses*.6):this.misses=L.misses+1,this.availabilityDelay=L.availabilityDelay}},{key:"hasProgramDateTime",get:function(){return this.fragments.length?T(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||Me}},{key:"drift",get:function(){var L=this.driftEndTime-this.driftStartTime;if(L>0){var W=this.driftEnd-this.driftStart;return W*1e3/L}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var L;return(L=this.partList)!=null&&L.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var L;return(L=this.fragments)!=null&&L.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var L;return(L=this.partList)!=null&&L.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var L;return(L=this.partList)!=null&&L.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),Ae}();function Ve(Ae){return Uint8Array.from(atob(Ae),function(ee){return ee.charCodeAt(0)})}function ut(Ae){var ee=et(Ae).subarray(0,16),L=new Uint8Array(16);return L.set(ee,16-ee.length),L}function Fe(Ae){var ee=function(W,H,Z){var ne=W[H];W[H]=W[Z],W[Z]=ne};ee(Ae,0,3),ee(Ae,1,2),ee(Ae,4,5),ee(Ae,6,7)}function ue(Ae){var ee=Ae.split(":"),L=null;if(ee[0]==="data"&&ee.length===2){var W=ee[1].split(";"),H=W[W.length-1].split(",");if(H.length===2){var Z=H[0]==="base64",ne=H[1];Z?(W.splice(-1,1),L=Ve(ne)):L=ut(ne)}}return L}function et(Ae){return Uint8Array.from(unescape(encodeURIComponent(Ae)),function(ee){return ee.charCodeAt(0)})}var he={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},J={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Y(Ae){switch(Ae){case J.FAIRPLAY:return he.FAIRPLAY;case J.PLAYREADY:return he.PLAYREADY;case J.WIDEVINE:return he.WIDEVINE;case J.CLEARKEY:return he.CLEARKEY}}var $={WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function de(Ae){if(Ae===$.WIDEVINE)return he.WIDEVINE}function be(Ae){switch(Ae){case he.FAIRPLAY:return J.FAIRPLAY;case he.PLAYREADY:return J.PLAYREADY;case he.WIDEVINE:return J.WIDEVINE;case he.CLEARKEY:return J.CLEARKEY}}function Ce(Ae){var ee=Ae.drmSystems,L=Ae.widevineLicenseUrl,W=ee?[he.FAIRPLAY,he.WIDEVINE,he.PLAYREADY,he.CLEARKEY].filter(function(H){return!!ee[H]}):[];return!W[he.WIDEVINE]&&L&&W.push(he.WIDEVINE),W}var Be=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function fe(Ae,ee,L,W){var H;switch(Ae){case he.FAIRPLAY:H=["cenc","sinf"];break;case he.WIDEVINE:case he.PLAYREADY:H=["cenc"];break;case he.CLEARKEY:H=["cenc","keyids"];break;default:throw new Error("Unknown key-system: ".concat(Ae))}return we(H,ee,L,W)}function we(Ae,ee,L,W){var H={initDataTypes:Ae,persistentState:W.persistentState||"not-allowed",distinctiveIdentifier:W.distinctiveIdentifier||"not-allowed",sessionTypes:W.sessionTypes||[W.sessionType||"temporary"],audioCapabilities:ee.map(function(Z){return{contentType:'audio/mp4; codecs="'.concat(Z,'"'),robustness:W.audioRobustness||"",encryptionScheme:W.audioEncryptionScheme||null}}),videoCapabilities:L.map(function(Z){return{contentType:'video/mp4; codecs="'.concat(Z,'"'),robustness:W.videoRobustness||"",encryptionScheme:W.videoEncryptionScheme||null}})};return[H]}function Re(Ae,ee,L){return Uint8Array.prototype.slice?Ae.slice(ee,L):new Uint8Array(Array.prototype.slice.call(Ae,ee,L))}var rt=function(ee,L){return L+10<=ee.length&&(ee[L]===73&&ee[L+1]===68&&ee[L+2]===51&&(ee[L+3]<255&&ee[L+4]<255&&(ee[L+6]<128&&ee[L+7]<128&&ee[L+8]<128&&ee[L+9]<128)))},St=function(ee,L){return L+10<=ee.length&&(ee[L]===51&&ee[L+1]===68&&ee[L+2]===73&&(ee[L+3]<255&&ee[L+4]<255&&(ee[L+6]<128&&ee[L+7]<128&&ee[L+8]<128&&ee[L+9]<128)))},ft=function(ee,L){for(var W=L,H=0;rt(ee,L);){H+=10;var Z=He(ee,L+6);H+=Z,St(ee,L+10)&&(H+=10),L+=H}return H>0?ee.subarray(W,W+H):void 0},He=function(ee,L){var W=0;return W=(ee[L]&127)<<21,W|=(ee[L+1]&127)<<14,W|=(ee[L+2]&127)<<7,W|=ee[L+3]&127,W},er=function(ee,L){return rt(ee,L)&&He(ee,L+6)+10<=ee.length-L},ct=function(ee){for(var L=Gt(ee),W=0;W<L.length;W++){var H=L[W];if(Kt(H))return oe(H)}return},Kt=function(ee){return ee&&ee.key==="PRIV"&&ee.info==="com.apple.streaming.transportStreamTimestamp"},fr=function(ee){var L=String.fromCharCode(ee[0],ee[1],ee[2],ee[3]),W=He(ee,4),H=10;return{type:L,size:W,data:ee.subarray(H,H+W)}},Gt=function(ee){for(var L=0,W=[];rt(ee,L);){var H=He(ee,L+6);L+=10;for(var Z=L+H;L+8<Z;){var ne=fr(ee.subarray(L)),ve=Pt(ne);ve&&W.push(ve),L+=ne.size+10}St(ee,L)&&(L+=10)}return W},Pt=function(ee){return ee.type==="PRIV"?Xt(ee):ee.type[0]==="W"?pe(ee):Ge(ee)},Xt=function(ee){if(ee.size<2)return;var L=lt(ee.data,!0),W=new Uint8Array(ee.data.subarray(L.length+1));return{key:ee.type,info:L,data:W.buffer}},Ge=function(ee){if(ee.size<2)return;if(ee.type==="TXXX"){var L=1,W=lt(ee.data.subarray(L),!0);L+=W.length+1;var H=lt(ee.data.subarray(L));return{key:ee.type,info:W,data:H}}var Z=lt(ee.data.subarray(1));return{key:ee.type,data:Z}},pe=function(ee){if(ee.type==="WXXX"){if(ee.size<2)return;var L=1,W=lt(ee.data.subarray(L),!0);L+=W.length+1;var H=lt(ee.data.subarray(L));return{key:ee.type,info:W,data:H}}var Z=lt(ee.data);return{key:ee.type,data:Z}},oe=function(ee){if(ee.data.byteLength===8){var L=new Uint8Array(ee.data),W=L[3]&1,H=(L[4]<<23)+(L[5]<<15)+(L[6]<<7)+L[7];return H/=45,W&&(H+=4772185884e-2),Math.round(H)}return},lt=function(ee){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,W=ge();if(W){var H=W.decode(ee);if(L){var Z=H.indexOf("\0");return Z!==-1?H.substring(0,Z):H}return H.replace(/\0/g,"")}for(var ne=ee.length,ve,Te,ze,st="",ht=0;ht<ne;){if(ve=ee[ht++],ve===0&&L)return st;if(ve===0||ve===3)continue;switch(ve>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:st+=String.fromCharCode(ve);break;case 12:case 13:Te=ee[ht++],st+=String.fromCharCode((ve&31)<<6|Te&63);break;case 14:Te=ee[ht++],ze=ee[ht++],st+=String.fromCharCode((ve&15)<<12|(Te&63)<<6|(ze&63)<<0);break}}return st},qe;function ge(){return!qe&&typeof self.TextDecoder!="undefined"&&(qe=new self.TextDecoder("utf-8")),qe}var Ht={hexDump:function(ee){for(var L="",W=0;W<ee.length;W++){var H=ee[W].toString(16);H.length<2&&(H="0"+H),L+=H}return L}},vr=Math.pow(2,32)-1,At=[].push,ir={video:1,audio:2,id3:3,text:4};function lr(Ae){return String.fromCharCode.apply(null,Ae)}function dn(Ae,ee){var L=Ae[ee]<<8|Ae[ee+1];return L<0?65536+L:L}function Ft(Ae,ee){var L=ur(Ae,ee);return L<0?4294967296+L:L}function ur(Ae,ee){return Ae[ee]<<24|Ae[ee+1]<<16|Ae[ee+2]<<8|Ae[ee+3]}function Jt(Ae,ee,L){Ae[ee]=L>>24,Ae[ee+1]=L>>16&255,Ae[ee+2]=L>>8&255,Ae[ee+3]=L&255}function pt(Ae,ee){var L=[];if(!ee.length)return L;for(var W=Ae.byteLength,H=0;H<W;){var Z=Ft(Ae,H),ne=lr(Ae.subarray(H+4,H+8)),ve=Z>1?H+Z:W;if(ne===ee[0])if(ee.length===1)L.push(Ae.subarray(H+8,ve));else{var Te=pt(Ae.subarray(H+8,ve),ee.slice(1));Te.length&&At.apply(L,Te)}H=ve}return L}function at(Ae){var ee=[],L=Ae[0],W=8,H=Ft(Ae,W);W+=4;var Z=0,ne=0;L===0?W+=8:W+=16,W+=2;var ve=Ae.length+ne,Te=dn(Ae,W);W+=2;for(var ze=0;ze<Te;ze++){var st=W,ht=Ft(Ae,st);st+=4;var Zt=ht&2147483647,Cr=(ht&2147483648)>>>31;if(Cr===1)return U.warn("SIDX has hierarchical references (not supported)"),null;var Sr=Ft(Ae,st);st+=4,ee.push({referenceSize:Zt,subsegmentDuration:Sr,info:{duration:Sr/H,start:ve,end:ve+Zt-1}}),ve+=Zt,st+=4,W=st}return{earliestPresentationTime:Z,timescale:H,version:L,referencesCount:Te,references:ee}}function Pr(Ae){for(var ee=[],L=pt(Ae,["moov","trak"]),W=0;W<L.length;W++){var H=L[W],Z=pt(H,["tkhd"])[0];if(Z){var ne=Z[0],ve=ne===0?12:20,Te=Ft(Z,ve),ze=pt(H,["mdia","mdhd"])[0];if(ze){ne=ze[0],ve=ne===0?12:20;var st=Ft(ze,ve),ht=pt(H,["mdia","hdlr"])[0];if(ht){var Zt=lr(ht.subarray(8,12)),Cr={soun:se.AUDIO,vide:se.VIDEO}[Zt];if(Cr){var Sr=pt(H,["mdia","minf","stbl","stsd"])[0],Kr=void 0;Sr&&(Kr=lr(Sr.subarray(12,16))),ee[Te]={timescale:st,type:Cr},ee[Cr]={timescale:st,id:Te,codec:Kr}}}}}}var Zr=pt(Ae,["moov","mvex","trex"]);return Zr.forEach(function(On){var Rn=Ft(On,4),Zn=ee[Rn];Zn&&(Zn.default={duration:Ft(On,12),flags:Ft(On,20)})}),ee}function un(Ae,ee){if(!Ae||!ee)return Ae;var L=ee.keyId;if(L&&ee.isCommonEncryption){var W=pt(Ae,["moov","trak"]);W.forEach(function(H){var Z=pt(H,["mdia","minf","stbl","stsd"])[0],ne=Z.subarray(8),ve=pt(ne,["enca"]),Te=ve.length>0;Te||(ve=pt(ne,["encv"])),ve.forEach(function(ze){var st=Te?ze.subarray(28):ze.subarray(78),ht=pt(st,["sinf"]);ht.forEach(function(Zt){var Cr=_n(Zt);if(Cr){var Sr=Cr.subarray(8,24);Sr.some(function(Kr){return Kr!==0})||(U.log("[eme] Patching keyId in 'enc".concat(Te?"a":"v",">sinf>>tenc' box: ").concat(Ht.hexDump(Sr)," -> ").concat(Ht.hexDump(L))),Cr.set(L,8))}})})})}return Ae}function _n(Ae){var ee=pt(Ae,["schm"])[0];if(ee){var L=lr(ee.subarray(4,8));if(L==="cbcs"||L==="cenc")return pt(Ae,["schi","tenc"])[0]}return U.error("[eme] missing 'schm' box"),null}function Xn(Ae,ee){return pt(ee,["moof","traf"]).reduce(function(L,W){var H=pt(W,["tfdt"])[0],Z=H[0],ne=pt(W,["tfhd"]).reduce(function(ve,Te){var ze=Ft(Te,4),st=Ae[ze];if(st){var ht=Ft(H,4);if(Z===1){if(ht===vr)return U.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),ve;ht*=vr+1,ht+=Ft(H,8)}var Zt=st.timescale||9e4,Cr=ht/Zt;if(isFinite(Cr)&&(ve===null||Cr<ve))return Cr}return ve},null);return ne!==null&&isFinite(ne)&&(L===null||ne<L)?ne:L},null)}function xi(Ae,ee){for(var L=0,W=0,H=0,Z=pt(Ae,["moof","traf"]),ne=0;ne<Z.length;ne++){var ve=Z[ne],Te=pt(ve,["tfhd"])[0],ze=Ft(Te,4),st=ee[ze];if(!st)continue;var ht=st.default,Zt=Ft(Te,0)|(ht==null?void 0:ht.flags),Cr=ht==null?void 0:ht.duration;Zt&8&&(Zt&2?Cr=Ft(Te,12):Cr=Ft(Te,8));for(var Sr=st.timescale||9e4,Kr=pt(ve,["trun"]),Zr=0;Zr<Kr.length;Zr++){if(L=Pn(Kr[Zr]),!L&&Cr){var On=Ft(Kr[Zr],4);L=Cr*On}st.type===se.VIDEO?W+=L/Sr:st.type===se.AUDIO&&(H+=L/Sr)}}if(W===0&&H===0){for(var Rn=0,Zn=pt(Ae,["sidx"]),wi=0;wi<Zn.length;wi++){var ua=at(Zn[wi]);ua!=null&&ua.references&&(Rn+=ua.references.reduce(function(Gi,Zi){return Gi+Zi.info.duration||0},0))}return Rn}return W||H}function Pn(Ae){var ee=Ft(Ae,0),L=8;ee&1&&(L+=4),ee&4&&(L+=4);for(var W=0,H=Ft(Ae,4),Z=0;Z<H;Z++){if(ee&256){var ne=Ft(Ae,L);W+=ne,L+=4}ee&512&&(L+=4),ee&1024&&(L+=4),ee&2048&&(L+=4)}return W}function Un(Ae,ee,L){pt(ee,["moof","traf"]).forEach(function(W){pt(W,["tfhd"]).forEach(function(H){var Z=Ft(H,4),ne=Ae[Z];if(!ne)return;var ve=ne.timescale||9e4;pt(W,["tfdt"]).forEach(function(Te){var ze=Te[0],st=Ft(Te,4);if(ze===0)st-=L*ve,st=Math.max(st,0),Jt(Te,4,st);else{st*=Math.pow(2,32),st+=Ft(Te,8),st-=L*ve,st=Math.max(st,0);var ht=Math.floor(st/(vr+1)),Zt=Math.floor(st%(vr+1));Jt(Te,4,ht),Jt(Te,8,Zt)}})})})}function $t(Ae){var ee={valid:null,remainder:null},L=pt(Ae,["moof"]);if(L){if(L.length<2)return ee.remainder=Ae,ee}else return ee;var W=L[L.length-1];return ee.valid=Re(Ae,0,W.byteOffset-8),ee.remainder=Re(Ae,W.byteOffset-8),ee}function xt(Ae,ee){var L=new Uint8Array(Ae.length+ee.length);return L.set(Ae),L.set(ee,Ae.length),L}function De(Ae,ee){var L=[],W=ee.samples,H=ee.timescale,Z=ee.id,ne=!1,ve=pt(W,["moof"]);return ve.map(function(Te){var ze=Te.byteOffset-8,st=pt(Te,["traf"]);st.map(function(ht){var Zt=pt(ht,["tfdt"]).map(function(Cr){var Sr=Cr[0],Kr=Ft(Cr,4);return Sr===1&&(Kr*=Math.pow(2,32),Kr+=Ft(Cr,8)),Kr/H})[0];return Zt!==void 0&&(Ae=Zt),pt(ht,["tfhd"]).map(function(Cr){var Sr=Ft(Cr,4),Kr=Ft(Cr,0)&16777215,Zr=(Kr&1)!==0,On=(Kr&2)!==0,Rn=(Kr&8)!==0,Zn=0,wi=(Kr&16)!==0,ua=0,Gi=(Kr&32)!==0,Zi=8;Sr===Z&&(Zr&&(Zi+=8),On&&(Zi+=4),Rn&&(Zn=Ft(Cr,Zi),Zi+=4),wi&&(ua=Ft(Cr,Zi),Zi+=4),Gi&&(Zi+=4),ee.type==="video"&&(ne=ke(ee.codec)),pt(ht,["trun"]).map(function(ka){var Ga=ka[0],Ba=Ft(ka,0)&16777215,Sa=(Ba&1)!==0,Go=0,bs=(Ba&4)!==0,ys=(Ba&256)!==0,Cs=0,js=(Ba&512)!==0,ws=0,Hs=(Ba&1024)!==0,Ee=(Ba&2048)!==0,Ye=0,Tt=Ft(ka,4),hr=8;Sa&&(Go=Ft(ka,hr),hr+=4),bs&&(hr+=4);for(var Br=Go+ze,on=0;on<Tt;on++){if(ys?(Cs=Ft(ka,hr),hr+=4):Cs=Zn,js?(ws=Ft(ka,hr),hr+=4):ws=ua,Hs&&(hr+=4),Ee&&(Ga===0?Ye=Ft(ka,hr):Ye=ur(ka,hr),hr+=4),ee.type===se.VIDEO)for(var Ue=0;Ue<ws;){var ae=Ft(W,Br);if(Br+=4,Pe(ne,W[Br])){var _e=W.subarray(Br,Br+ae);tt(_e,ne?2:1,Ae+Ye/H,L)}Br+=ae,Ue+=ae+4}Ae+=Cs/H}}))})})}),L}function ke(Ae){if(!Ae)return!1;var ee=Ae.indexOf("."),L=ee<0?Ae:Ae.substring(0,ee);return L==="hvc1"||L==="hev1"||L==="dvh1"||L==="dvhe"}function Pe(Ae,ee){if(Ae){var L=ee>>1&63;return L===39||L===40}else{var W=ee&31;return W===6}}function tt(Ae,ee,L,W){var H=yt(Ae),Z=0;Z+=ee;for(var ne=0,ve=0,Te=!1,ze=0;Z<H.length;){ne=0;do{if(Z>=H.length)break;ze=H[Z++],ne+=ze}while(ze===255);ve=0;do{if(Z>=H.length)break;ze=H[Z++],ve+=ze}while(ze===255);var st=H.length-Z;if(!Te&&ne===4&&Z<H.length){Te=!0;var ht=H[Z++];if(ht===181){var Zt=dn(H,Z);if(Z+=2,Zt===49){var Cr=Ft(H,Z);if(Z+=4,Cr===1195456820){var Sr=H[Z++];if(Sr===3){var Kr=H[Z++],Zr=31&Kr,On=64&Kr,Rn=On?2+Zr*3:0,Zn=new Uint8Array(Rn);if(On){Zn[0]=Kr;for(var wi=1;wi<Rn;wi++)Zn[wi]=H[Z++]}W.push({type:Sr,payloadType:ne,pts:L,bytes:Zn})}}}}}else if(ne===5&&ve<st){if(Te=!0,ve>16){for(var ua=[],Gi=0;Gi<16;Gi++){var Zi=H[Z++].toString(16);ua.push(Zi.length==1?"0"+Zi:Zi),(Gi===3||Gi===5||Gi===7||Gi===9)&&ua.push("-")}for(var ka=ve-16,Ga=new Uint8Array(ka),Ba=0;Ba<ka;Ba++)Ga[Ba]=H[Z++];W.push({payloadType:ne,pts:L,uuid:ua.join(""),userData:lt(Ga),userDataBytes:Ga})}}else if(ve<st)Z+=ve;else if(ve>st)break}}function yt(Ae){for(var ee=Ae.byteLength,L=[],W=1;W<ee-2;)Ae[W]===0&&Ae[W+1]===0&&Ae[W+2]===3?(L.push(W+2),W+=2):W++;if(L.length===0)return Ae;var H=ee-L.length,Z=new Uint8Array(H),ne=0;for(W=0;W<H;ne++,W++)ne===L[0]&&(ne++,L.shift()),Z[W]=Ae[ne];return Z}function Et(Ae){var ee=Ae[0],L="",W="",H=0,Z=0,ne=0,ve=0,Te=0,ze=0;if(ee===0){for(;lr(Ae.subarray(ze,ze+1))!=="\0";)L+=lr(Ae.subarray(ze,ze+1)),ze+=1;for(L+=lr(Ae.subarray(ze,ze+1)),ze+=1;lr(Ae.subarray(ze,ze+1))!=="\0";)W+=lr(Ae.subarray(ze,ze+1)),ze+=1;W+=lr(Ae.subarray(ze,ze+1)),ze+=1,H=Ft(Ae,12),Z=Ft(Ae,16),ve=Ft(Ae,20),Te=Ft(Ae,24),ze=28}else if(ee===1){ze+=4,H=Ft(Ae,ze),ze+=4;var st=Ft(Ae,ze);ze+=4;var ht=Ft(Ae,ze);for(ze+=4,ne=Math.pow(2,32)*st+ht,Number.isSafeInteger(ne)||(ne=Number.MAX_SAFE_INTEGER,U.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),ve=Ft(Ae,ze),ze+=4,Te=Ft(Ae,ze),ze+=4;lr(Ae.subarray(ze,ze+1))!=="\0";)L+=lr(Ae.subarray(ze,ze+1)),ze+=1;for(L+=lr(Ae.subarray(ze,ze+1)),ze+=1;lr(Ae.subarray(ze,ze+1))!=="\0";)W+=lr(Ae.subarray(ze,ze+1)),ze+=1;W+=lr(Ae.subarray(ze,ze+1)),ze+=1}var Zt=Ae.subarray(ze,Ae.byteLength);return{schemeIdUri:L,value:W,timeScale:H,presentationTime:ne,presentationTimeDelta:Z,eventDuration:ve,id:Te,payload:Zt}}function Yt(Ae){for(var ee=arguments.length,L=new Array(ee>1?ee-1:0),W=1;W<ee;W++)L[W-1]=arguments[W];for(var H=L.length,Z=8,ne=H;ne--;)Z+=L[ne].byteLength;var ve=new Uint8Array(Z);for(ve[0]=Z>>24&255,ve[1]=Z>>16&255,ve[2]=Z>>8&255,ve[3]=Z&255,ve.set(Ae,4),ne=0,Z=8;ne<H;ne++)ve.set(L[ne],Z),Z+=L[ne].byteLength;return ve}function Rr(Ae,ee,L){if(Ae.byteLength!==16)throw new RangeError("Invalid system id");var W,H;if(ee){W=1,H=new Uint8Array(ee.length*16);for(var Z=0;Z<ee.length;Z++){var ne=ee[Z];if(ne.byteLength!==16)throw new RangeError("Invalid key");H.set(ne,Z*16)}}else W=0,H=new Uint8Array;var ve;W>0?(ve=new Uint8Array(4),ee.length>0&&new DataView(ve.buffer).setUint32(0,ee.length,!1)):ve=new Uint8Array;var Te=new Uint8Array(4);return L&&L.byteLength>0&&new DataView(Te.buffer).setUint32(0,L.byteLength,!1),Yt([112,115,115,104],new Uint8Array([W,0,0,0]),Ae,ve,H,Te,L||new Uint8Array)}function zr(Ae){if(!(Ae instanceof ArrayBuffer)||Ae.byteLength<32)return null;var ee={version:0,systemId:"",kids:null,data:null},L=new DataView(Ae),W=L.getUint32(0);if(Ae.byteLength!==W&&W>44)return null;var H=L.getUint32(4);if(H!==1886614376)return null;if(ee.version=L.getUint32(8)>>>24,ee.version>1)return null;ee.systemId=Ht.hexDump(new Uint8Array(Ae,12,16));var Z=L.getUint32(28);if(ee.version===0){if(W-32<Z)return null;ee.data=new Uint8Array(Ae,32,Z)}else if(ee.version===1){ee.kids=[];for(var ne=0;ne<Z;ne++)ee.kids.push(new Uint8Array(Ae,32+ne*16,16))}return ee}var hn={},jt=function(){function Ae(ee,L,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1],Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;Object(r.a)(this,Ae),this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=ee,this.uri=L,this.keyFormat=W,this.keyFormatVersions=H,this.iv=Z,this.encrypted=ee?ee!=="NONE":!1,this.isCommonEncryption=this.encrypted&&ee!=="AES-128"}return Object(a.a)(Ae,[{key:"isSupported",value:function(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case J.FAIRPLAY:case J.WIDEVINE:case J.PLAYREADY:case J.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}},{key:"getDecryptData",value:function(L){if(!this.encrypted||!this.uri)return null;if(this.method==="AES-128"&&this.uri&&!this.iv){typeof L!="number"&&(this.method==="AES-128"&&!this.iv&&U.warn('missing IV for initialization segment with method="'.concat(this.method,'" - compliance issue')),L=0);var W=vt(L),H=new Ae(this.method,this.uri,"identity",this.keyFormatVersions,W);return H}var Z=ue(this.uri);if(Z)switch(this.keyFormat){case J.WIDEVINE:this.pssh=Z,Z.length>=22&&(this.keyId=Z.subarray(Z.length-22,Z.length-6));break;case J.PLAYREADY:{var ne=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Rr(ne,null,Z);var ve=new Uint16Array(Z.buffer,Z.byteOffset,Z.byteLength/2),Te=String.fromCharCode.apply(null,Array.from(ve)),ze=Te.substring(Te.indexOf("<"),Te.length),st=new DOMParser,ht=st.parseFromString(ze,"text/xml"),Zt=ht.getElementsByTagName("KID")[0];if(Zt){var Cr=Zt.childNodes[0]?Zt.childNodes[0].nodeValue:Zt.getAttribute("VALUE");if(Cr){var Sr=Ve(Cr).subarray(0,16);Fe(Sr),this.keyId=Sr}}break}default:{var Kr=Z.subarray(0,16);if(Kr.length!==16){var Zr=new Uint8Array(16);Zr.set(Kr,16-Kr.length),Kr=Zr}this.keyId=Kr;break}}if(!this.keyId||this.keyId.byteLength!==16){var On=hn[this.uri];if(!On){var Rn=Object.keys(hn).length%Number.MAX_SAFE_INTEGER;On=new Uint8Array(16);var Zn=new DataView(On.buffer,12,4);Zn.setUint32(0,Rn),hn[this.uri]=On}this.keyId=On}return this}}],[{key:"clearKeyUriToKeyIdMap",value:function(){hn={}}}]),Ae}();function vt(Ae){for(var ee=new Uint8Array(16),L=12;L<16;L++)ee[L]=Ae>>8*(15-L)&255;return ee}var bt=/\{\$([a-zA-Z0-9-_]+)\}/g;function cr(Ae){return bt.test(Ae)}function Qt(Ae,ee,L){if(Ae.variableList!==null||Ae.hasVariableRefs)for(var W=L.length;W--;){var H=L[W],Z=ee[H];Z&&(ee[H]=Mt(Ae,Z))}}function Mt(Ae,ee){if(Ae.variableList!==null||Ae.hasVariableRefs){var L=Ae.variableList;return ee.replace(bt,function(W){var H=W.substring(2,W.length-1),Z=L==null?void 0:L[H];return Z===void 0?(Ae.playlistParsingError||(Ae.playlistParsingError=new Error('Missing preceding EXT-X-DEFINE tag for Variable Reference: "'.concat(H,'"'))),W):Z})}return ee}function tr(Ae,ee,L){var W=Ae.variableList;W||(Ae.variableList=W={});var H,Z;if("QUERYPARAM"in ee){H=ee.QUERYPARAM;try{var ne=new self.URL(L).searchParams;if(ne.has(H))Z=ne.get(H);else throw new Error('"'.concat(H,'" does not match any query parameter in URI: "').concat(L,'"'))}catch(ve){Ae.playlistParsingError||(Ae.playlistParsingError=new Error("EXT-X-DEFINE QUERYPARAM: ".concat(ve.message)))}}else H=ee.NAME,Z=ee.VALUE;H in W?Ae.playlistParsingError||(Ae.playlistParsingError=new Error('EXT-X-DEFINE duplicate Variable Name declarations: "'.concat(H,'"'))):W[H]=Z||""}function Rt(Ae,ee,L){var W=ee.IMPORT;if(L&&W in L){var H=Ae.variableList;H||(Ae.variableList=H={}),H[W]=L[W]}else Ae.playlistParsingError||(Ae.playlistParsingError=new Error('EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "'.concat(W,'"')))}function qt(){return typeof self=="undefined"?void 0:self.MediaSource||self.WebKitMediaSource}var Hr={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dva1:!0,dvav:!0,dvh1:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}},Nr=qt();function Dr(Ae,ee){var L=Hr[ee];return!!L&&L[Ae.slice(0,4)]===!0}function cn(Ae,ee){var L;return(L=Nr==null?void 0:Nr.isTypeSupported("".concat(ee||"video",'/mp4;codecs="').concat(Ae,'"')))!=null?L:!1}var An=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,ri=/#EXT-X-MEDIA:(.*)/g,$n=/^#EXT(?:INF|-X-TARGETDURATION):/m,fi=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),_i=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),Di=function(){function Ae(){Object(r.a)(this,Ae)}return Object(a.a)(Ae,null,[{key:"findGroup",value:function(L,W){for(var H=0;H<L.length;H++){var Z=L[H];if(Z.id===W)return Z}}},{key:"convertAVC1ToAVCOTI",value:function(L){var W=L.split(".");if(W.length>2){var H=W.shift()+".";return H+=parseInt(W.shift()).toString(16),H+=("000"+parseInt(W.shift()).toString(16)).slice(-4),H}return L}},{key:"resolve",value:function(L,W){return g.buildAbsoluteURL(W,L,{alwaysNormalize:!0})}},{key:"isMediaPlaylist",value:function(L){return $n.test(L)}},{key:"parseMasterPlaylist",value:function(L,W){var H=cr(L),Z={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:H},ne=[];An.lastIndex=0;for(var ve;(ve=An.exec(L))!=null;)if(ve[1]){var Te,ze=new V(ve[1]);Qt(Z,ze,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);var st=Mt(Z,ve[2]),ht={attrs:ze,bitrate:ze.decimalInteger("AVERAGE-BANDWIDTH")||ze.decimalInteger("BANDWIDTH"),name:ze.NAME,url:Ae.resolve(st,W)},Zt=ze.decimalResolution("RESOLUTION");Zt&&(ht.width=Zt.width,ht.height=Zt.height),Le((ze.CODECS||"").split(/[ ,]+/).filter(function(ua){return ua}),ht),ht.videoCodec&&ht.videoCodec.indexOf("avc1")!==-1&&(ht.videoCodec=Ae.convertAVC1ToAVCOTI(ht.videoCodec)),(Te=ht.unknownCodecs)!=null&&Te.length||ne.push(ht),Z.levels.push(ht)}else if(ve[3]){var Cr=ve[3],Sr=ve[4];switch(Cr){case"SESSION-DATA":{var Kr=new V(Sr);Qt(Z,Kr,["DATA-ID","LANGUAGE","VALUE","URI"]);var Zr=Kr["DATA-ID"];Zr&&(Z.sessionData===null&&(Z.sessionData={}),Z.sessionData[Zr]=Kr);break}case"SESSION-KEY":{var On=Wi(Sr,W,Z);On.encrypted&&On.isSupported()?(Z.sessionKeys===null&&(Z.sessionKeys=[]),Z.sessionKeys.push(On)):U.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'.concat(Sr,'"'));break}case"DEFINE":{{var Rn=new V(Sr);Qt(Z,Rn,["NAME","VALUE","QUERYPARAM"]),tr(Z,Rn,W)}break}case"CONTENT-STEERING":{var Zn=new V(Sr);Qt(Z,Zn,["SERVER-URI","PATHWAY-ID"]),Z.contentSteering={uri:Ae.resolve(Zn["SERVER-URI"],W),pathwayId:Zn["PATHWAY-ID"]||"."};break}case"START":{Z.startTimeOffset=it(Sr);break}}}var wi=ne.length>0&&ne.length<Z.levels.length;return Z.levels=wi?ne:Z.levels,Z.levels.length===0&&(Z.playlistParsingError=new Error("no levels found in manifest")),Z}},{key:"parseMasterPlaylistMedia",value:function(L,W,H){var Z,ne={},ve=H.levels,Te={AUDIO:ve.map(function(Zr){return{id:Zr.attrs.AUDIO,audioCodec:Zr.audioCodec}}),SUBTITLES:ve.map(function(Zr){return{id:Zr.attrs.SUBTITLES,textCodec:Zr.textCodec}}),"CLOSED-CAPTIONS":[]},ze=0;for(ri.lastIndex=0;(Z=ri.exec(L))!==null;){var st=new V(Z[1]),ht=st.TYPE;if(ht){var Zt=Te[ht],Cr=ne[ht]||[];ne[ht]=Cr,Qt(H,st,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);var Sr={attrs:st,bitrate:0,id:ze++,groupId:st["GROUP-ID"]||"",instreamId:st["INSTREAM-ID"],name:st.NAME||st.LANGUAGE||"",type:ht,default:st.bool("DEFAULT"),autoselect:st.bool("AUTOSELECT"),forced:st.bool("FORCED"),lang:st.LANGUAGE,url:st.URI?Ae.resolve(st.URI,W):""};if(Zt!=null&&Zt.length){var Kr=Ae.findGroup(Zt,Sr.groupId)||Zt[0];je(Sr,Kr,"audioCodec"),je(Sr,Kr,"textCodec")}Cr.push(Sr)}}return ne}},{key:"parseLevelPlaylist",value:function(L,W,H,Z,ne,ve){var Te=new Qe(W),ze=Te.fragments,st=null,ht=0,Zt=0,Cr=0,Sr=0,Kr=null,Zr=new xe(Z,W),On,Rn,Zn,wi=-1,ua=!1;for(fi.lastIndex=0,Te.m3u8=L,Te.hasVariableRefs=cr(L);(On=fi.exec(L))!==null;){ua&&(ua=!1,Zr=new xe(Z,W),Zr.start=Cr,Zr.sn=ht,Zr.cc=Sr,Zr.level=H,st&&(Zr.initSegment=st,Zr.rawProgramDateTime=st.rawProgramDateTime,st.rawProgramDateTime=null));var Gi=On[1];if(Gi){Zr.duration=parseFloat(Gi);var Zi=(" "+On[2]).slice(1);Zr.title=Zi||null,Zr.tagList.push(Zi?["INF",Gi,Zi]:["INF",Gi])}else if(On[3]){if(T(Zr.duration)){Zr.start=Cr,Zn&&ot(Zr,Zn,Te),Zr.sn=ht,Zr.level=H,Zr.cc=Sr,Zr.urlId=ne,ze.push(Zr);var ka=(" "+On[3]).slice(1);Zr.relurl=Mt(Te,ka),nt(Zr,Kr),Kr=Zr,Cr+=Zr.duration,ht++,Zt=0,ua=!0}}else if(On[4]){var Ga=(" "+On[4]).slice(1);Kr?Zr.setByteRange(Ga,Kr):Zr.setByteRange(Ga)}else if(On[5])Zr.rawProgramDateTime=(" "+On[5]).slice(1),Zr.tagList.push(["PROGRAM-DATE-TIME",Zr.rawProgramDateTime]),wi===-1&&(wi=ze.length);else{if(On=On[0].match(_i),!On){U.warn("No matches on slow regex match for level playlist!");continue}for(Rn=1;Rn<On.length&&!(typeof On[Rn]!="undefined");Rn++);var Ba=(" "+On[Rn]).slice(1),Sa=(" "+On[Rn+1]).slice(1),Go=On[Rn+2]?(" "+On[Rn+2]).slice(1):"";switch(Ba){case"PLAYLIST-TYPE":Te.type=Sa.toUpperCase();break;case"MEDIA-SEQUENCE":ht=Te.startSN=parseInt(Sa);break;case"SKIP":{var bs=new V(Sa);Qt(Te,bs,["RECENTLY-REMOVED-DATERANGES"]);var ys=bs.decimalInteger("SKIPPED-SEGMENTS");if(T(ys)){Te.skippedSegments=ys;for(var Cs=ys;Cs--;)ze.unshift(null);ht+=ys}var js=bs.enumeratedString("RECENTLY-REMOVED-DATERANGES");js&&(Te.recentlyRemovedDateranges=js.split(" "));break}case"TARGETDURATION":Te.targetduration=Math.max(parseInt(Sa),1);break;case"VERSION":Te.version=parseInt(Sa);break;case"EXTM3U":break;case"ENDLIST":Te.live=!1;break;case"#":(Sa||Go)&&Zr.tagList.push(Go?[Sa,Go]:[Sa]);break;case"DISCONTINUITY":Sr++,Zr.tagList.push(["DIS"]);break;case"GAP":Zr.gap=!0,Zr.tagList.push([Ba]);break;case"BITRATE":Zr.tagList.push([Ba,Sa]);break;case"DATERANGE":{var ws=new V(Sa);Qt(Te,ws,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Qt(Te,ws,ws.clientAttrs);var Hs=new te(ws,Te.dateRanges[ws.ID]);Hs.isValid||Te.skippedSegments?Te.dateRanges[Hs.id]=Hs:U.warn('Ignoring invalid DATERANGE tag: "'.concat(Sa,'"')),Zr.tagList.push(["EXT-X-DATERANGE",Sa]);break}case"DEFINE":{{var Ee=new V(Sa);Qt(Te,Ee,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in Ee?Rt(Te,Ee,ve):tr(Te,Ee,W)}break}case"DISCONTINUITY-SEQUENCE":Sr=parseInt(Sa);break;case"KEY":{var Ye=Wi(Sa,W,Te);if(Ye.isSupported()){if(Ye.method==="NONE"){Zn=void 0;break}Zn||(Zn={}),Zn[Ye.keyFormat]&&(Zn=E({},Zn)),Zn[Ye.keyFormat]=Ye}else U.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "'.concat(Sa,'"'));break}case"START":Te.startTimeOffset=it(Sa);break;case"MAP":{var Tt=new V(Sa);if(Qt(Te,Tt,["BYTERANGE","URI"]),Zr.duration){var hr=new xe(Z,W);Ze(hr,Tt,H,Zn),st=hr,Zr.initSegment=st,st.rawProgramDateTime&&!Zr.rawProgramDateTime&&(Zr.rawProgramDateTime=st.rawProgramDateTime)}else Ze(Zr,Tt,H,Zn),st=Zr,ua=!0;break}case"SERVER-CONTROL":{var Br=new V(Sa);Te.canBlockReload=Br.bool("CAN-BLOCK-RELOAD"),Te.canSkipUntil=Br.optionalFloat("CAN-SKIP-UNTIL",0),Te.canSkipDateRanges=Te.canSkipUntil>0&&Br.bool("CAN-SKIP-DATERANGES"),Te.partHoldBack=Br.optionalFloat("PART-HOLD-BACK",0),Te.holdBack=Br.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var on=new V(Sa);Te.partTarget=on.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ue=Te.partList;Ue||(Ue=Te.partList=[]);var ae=Zt>0?Ue[Ue.length-1]:void 0,_e=Zt++,$e=new V(Sa);Qt(Te,$e,["BYTERANGE","URI"]);var wt=new Oe($e,Zr,W,_e,ae);Ue.push(wt),Zr.duration+=wt.duration;break}case"PRELOAD-HINT":{var Vt=new V(Sa);Qt(Te,Vt,["URI"]),Te.preloadHint=Vt;break}case"RENDITION-REPORT":{var rr=new V(Sa);Qt(Te,rr,["URI"]),Te.renditionReports=Te.renditionReports||[],Te.renditionReports.push(rr);break}default:U.warn("line parsed but not handled: ".concat(On));break}}}Kr&&!Kr.relurl?(ze.pop(),Cr-=Kr.duration,Te.partList&&(Te.fragmentHint=Kr)):Te.partList&&(nt(Zr,Kr),Zr.cc=Sr,Te.fragmentHint=Zr,Zn&&ot(Zr,Zn,Te));var ar=ze.length,Vr=ze[0],pn=ze[ar-1];if(Cr+=Te.skippedSegments*Te.targetduration,Cr>0&&ar&&pn){Te.averagetargetduration=Cr/ar;var Wr=pn.sn;Te.endSN=Wr!=="initSegment"?Wr:0,Te.live||(pn.endList=!0),Vr&&(Te.startCC=Vr.cc)}else Te.endSN=0,Te.startCC=0;return Te.fragmentHint&&(Cr+=Te.fragmentHint.duration),Te.totalduration=Cr,Te.endCC=Sr,wi>0&&Xe(ze,wi),Te}}]),Ae}();function Wi(Ae,ee,L){var W,H,Z=new V(Ae);Qt(L,Z,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);var ne=(W=Z.METHOD)!=null?W:"",ve=Z.URI,Te=Z.hexadecimalInteger("IV"),ze=Z.KEYFORMATVERSIONS,st=(H=Z.KEYFORMAT)!=null?H:"identity";ve&&Z.IV&&!Te&&U.error("Invalid IV: ".concat(Z.IV));var ht=ve?Di.resolve(ve,ee):"",Zt=(ze||"1").split("/").map(Number).filter(Number.isFinite);return new jt(ne,ht,st,Zt,Te)}function it(Ae){var ee=new V(Ae),L=ee.decimalFloatingPoint("TIME-OFFSET");return T(L)?L:null}function Le(Ae,ee){["video","audio","text"].forEach(function(L){var W=Ae.filter(function(Z){return Dr(Z,L)});if(W.length){var H=W.filter(function(Z){return Z.lastIndexOf("avc1",0)===0||Z.lastIndexOf("mp4a",0)===0});ee["".concat(L,"Codec")]=H.length>0?H[0]:W[0],Ae=Ae.filter(function(Z){return W.indexOf(Z)===-1})}}),ee.unknownCodecs=Ae}function je(Ae,ee,L){var W=ee[L];W&&(Ae[L]=W)}function Xe(Ae,ee){for(var L=Ae[ee],W=ee;W--;){var H=Ae[W];if(!H)return;H.programDateTime=L.programDateTime-H.duration*1e3,L=H}}function nt(Ae,ee){Ae.rawProgramDateTime?Ae.programDateTime=Date.parse(Ae.rawProgramDateTime):ee!=null&&ee.programDateTime&&(Ae.programDateTime=ee.endProgramDateTime),T(Ae.programDateTime)||(Ae.programDateTime=null,Ae.rawProgramDateTime=null)}function Ze(Ae,ee,L,W){Ae.relurl=ee.URI,ee.BYTERANGE&&Ae.setByteRange(ee.BYTERANGE),Ae.level=L,Ae.sn="initSegment",W&&(Ae.levelkeys=W),Ae.initSegment=null}function ot(Ae,ee,L){Ae.levelkeys=ee;var W=L.encryptedFragments;(!W.length||W[W.length-1].levelkeys!==ee)&&Object.keys(ee).some(function(H){return ee[H].isCommonEncryption})&&W.push(Ae)}var Ct={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},gt={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function pr(Ae){var ee=Ae.type;switch(ee){case Ct.AUDIO_TRACK:return gt.AUDIO;case Ct.SUBTITLE_TRACK:return gt.SUBTITLE;default:return gt.MAIN}}function $r(Ae,ee){var L=Ae.url;return(L===void 0||L.indexOf("data:")===0)&&(L=ee.url),L}var Yr=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=ee,this.registerListeners()}return Object(a.a)(Ae,[{key:"startLoad",value:function(L){}},{key:"stopLoad",value:function(){this.destroyInternalLoaders()}},{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.LEVEL_LOADING,this.onLevelLoading,this),L.on(w.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),L.on(w.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.LEVEL_LOADING,this.onLevelLoading,this),L.off(w.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),L.off(w.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"createInternalLoader",value:function(L){var W=this.hls.config,H=W.pLoader,Z=W.loader,ne=H||Z,ve=new ne(W);return this.loaders[L.type]=ve,ve}},{key:"getInternalLoader",value:function(L){return this.loaders[L.type]}},{key:"resetInternalLoader",value:function(L){this.loaders[L]&&delete this.loaders[L]}},{key:"destroyInternalLoaders",value:function(){for(var L in this.loaders){var W=this.loaders[L];W&&W.destroy(),this.resetInternalLoader(L)}}},{key:"destroy",value:function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}},{key:"onManifestLoading",value:function(L,W){var H=W.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:Ct.MANIFEST,url:H,deliveryDirectives:null})}},{key:"onLevelLoading",value:function(L,W){var H=W.id,Z=W.level,ne=W.url,ve=W.deliveryDirectives;this.load({id:H,level:Z,responseType:"text",type:Ct.LEVEL,url:ne,deliveryDirectives:ve})}},{key:"onAudioTrackLoading",value:function(L,W){var H=W.id,Z=W.groupId,ne=W.url,ve=W.deliveryDirectives;this.load({id:H,groupId:Z,level:null,responseType:"text",type:Ct.AUDIO_TRACK,url:ne,deliveryDirectives:ve})}},{key:"onSubtitleTrackLoading",value:function(L,W){var H=W.id,Z=W.groupId,ne=W.url,ve=W.deliveryDirectives;this.load({id:H,groupId:Z,level:null,responseType:"text",type:Ct.SUBTITLE_TRACK,url:ne,deliveryDirectives:ve})}},{key:"load",value:function(L){var W=this,H,Z=this.hls.config,ne=this.getInternalLoader(L);if(ne){var ve=ne.context;if(ve&&ve.url===L.url){U.trace("[playlist-loader]: playlist request ongoing");return}U.log("[playlist-loader]: aborting previous loader for type: ".concat(L.type)),ne.abort()}var Te;if(L.type===Ct.MANIFEST?Te=Z.manifestLoadPolicy.default:Te=E({},Z.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),ne=this.createInternalLoader(L),(H=L.deliveryDirectives)!=null&&H.part){var ze;if(L.type===Ct.LEVEL&&L.level!==null?ze=this.hls.levels[L.level].details:L.type===Ct.AUDIO_TRACK&&L.id!==null?ze=this.hls.audioTracks[L.id].details:L.type===Ct.SUBTITLE_TRACK&&L.id!==null&&(ze=this.hls.subtitleTracks[L.id].details),ze){var st=ze.partTarget,ht=ze.targetduration;if(st&&ht){var Zt=Math.max(st*3,ht*.8)*1e3;Te=E({},Te,{maxTimeToFirstByteMs:Math.min(Zt,Te.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(Zt,Te.maxTimeToFirstByteMs)})}}}var Cr=Te.errorRetry||Te.timeoutRetry||{},Sr={loadPolicy:Te,timeout:Te.maxLoadTimeMs,maxRetry:Cr.maxNumRetry||0,retryDelay:Cr.retryDelayMs||0,maxRetryDelay:Cr.maxRetryDelayMs||0},Kr={onSuccess:function(On,Rn,Zn,wi){var ua=W.getInternalLoader(Zn);W.resetInternalLoader(Zn.type);var Gi=On.data;if(Gi.indexOf("#EXTM3U")!==0){W.handleManifestParsingError(On,Zn,new Error("no EXTM3U delimiter"),wi||null,Rn);return}Rn.parsing.start=performance.now(),Di.isMediaPlaylist(Gi)?W.handleTrackOrLevelPlaylist(On,Rn,Zn,wi||null,ua):W.handleMasterPlaylist(On,Rn,Zn,wi)},onError:function(On,Rn,Zn,wi){W.handleNetworkError(Rn,Zn,!1,On,wi)},onTimeout:function(On,Rn,Zn){W.handleNetworkError(Rn,Zn,!0,void 0,On)}};ne.load(L,Sr,Kr)}},{key:"handleMasterPlaylist",value:function(L,W,H,Z){var ne=this.hls,ve=L.data,Te=$r(L,H),ze=Di.parseMasterPlaylist(ve,Te);if(ze.playlistParsingError){this.handleManifestParsingError(L,H,ze.playlistParsingError,Z,W);return}var st=ze.contentSteering,ht=ze.levels,Zt=ze.sessionData,Cr=ze.sessionKeys,Sr=ze.startTimeOffset,Kr=ze.variableList;this.variableList=Kr;var Zr=Di.parseMasterPlaylistMedia(ve,Te,ze),On=Zr.AUDIO,Rn=On===void 0?[]:On,Zn=Zr.SUBTITLES,wi=Zr["CLOSED-CAPTIONS"];if(Rn.length){var ua=Rn.some(function(Gi){return!Gi.url});!ua&&ht[0].audioCodec&&!ht[0].attrs.AUDIO&&(U.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),Rn.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new V({}),bitrate:0,url:""}))}ne.trigger(w.MANIFEST_LOADED,{levels:ht,audioTracks:Rn,subtitles:Zn,captions:wi,contentSteering:st,url:Te,stats:W,networkDetails:Z,sessionData:Zt,sessionKeys:Cr,startTimeOffset:Sr,variableList:Kr})}},{key:"handleTrackOrLevelPlaylist",value:function(L,W,H,Z,ne){var ve=this.hls,Te=H.id,ze=H.level,st=H.type,ht=$r(L,H),Zt=T(Te)?Te:0,Cr=T(ze)?ze:Zt,Sr=pr(H),Kr=Di.parseLevelPlaylist(L.data,ht,Cr,Sr,Zt,this.variableList);if(st===Ct.MANIFEST){var Zr={attrs:new V({}),bitrate:0,details:Kr,name:"",url:ht};ve.trigger(w.MANIFEST_LOADED,{levels:[Zr],audioTracks:[],url:ht,stats:W,networkDetails:Z,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}W.parsing.end=performance.now(),H.levelDetails=Kr,this.handlePlaylistLoaded(Kr,L,W,H,Z,ne)}},{key:"handleManifestParsingError",value:function(L,W,H,Z,ne){this.hls.trigger(w.ERROR,{type:O.NETWORK_ERROR,details:I.MANIFEST_PARSING_ERROR,fatal:W.type===Ct.MANIFEST,url:L.url,err:H,error:H,reason:H.message,response:L,context:W,networkDetails:Z,stats:ne})}},{key:"handleNetworkError",value:function(L,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Z=arguments.length>3?arguments[3]:void 0,ne=arguments.length>4?arguments[4]:void 0,ve="A network ".concat(H?"timeout":"error"+(Z?" (status "+Z.code+")":"")," occurred while loading ").concat(L.type);L.type===Ct.LEVEL?ve+=": ".concat(L.level," id: ").concat(L.id):(L.type===Ct.AUDIO_TRACK||L.type===Ct.SUBTITLE_TRACK)&&(ve+=" id: ".concat(L.id,' group-id: "').concat(L.groupId,'"'));var Te=new Error(ve);U.warn("[playlist-loader]: ".concat(ve));var ze=I.UNKNOWN,st=!1,ht=this.getInternalLoader(L);switch(L.type){case Ct.MANIFEST:ze=H?I.MANIFEST_LOAD_TIMEOUT:I.MANIFEST_LOAD_ERROR,st=!0;break;case Ct.LEVEL:ze=H?I.LEVEL_LOAD_TIMEOUT:I.LEVEL_LOAD_ERROR,st=!1;break;case Ct.AUDIO_TRACK:ze=H?I.AUDIO_TRACK_LOAD_TIMEOUT:I.AUDIO_TRACK_LOAD_ERROR,st=!1;break;case Ct.SUBTITLE_TRACK:ze=H?I.SUBTITLE_TRACK_LOAD_TIMEOUT:I.SUBTITLE_LOAD_ERROR,st=!1;break}ht&&this.resetInternalLoader(L.type);var Zt={type:O.NETWORK_ERROR,details:ze,fatal:st,url:L.url,loader:ht,context:L,error:Te,networkDetails:W,stats:ne};if(Z){var Cr=(W==null?void 0:W.url)||L.url;Zt.response=b({url:Cr,data:void 0},Z)}this.hls.trigger(w.ERROR,Zt)}},{key:"handlePlaylistLoaded",value:function(L,W,H,Z,ne,ve){var Te=this.hls,ze=Z.type,st=Z.level,ht=Z.id,Zt=Z.groupId,Cr=Z.deliveryDirectives,Sr=$r(W,Z),Kr=pr(Z),Zr=typeof Z.level=="number"&&Kr===gt.MAIN?st:void 0;if(!L.fragments.length){var On=new Error("No Segments found in Playlist");Te.trigger(w.ERROR,{type:O.NETWORK_ERROR,details:I.LEVEL_EMPTY_ERROR,fatal:!1,url:Sr,error:On,reason:On.message,response:W,context:Z,level:Zr,parent:Kr,networkDetails:ne,stats:H});return}L.targetduration||(L.playlistParsingError=new Error("Missing Target Duration"));var Rn=L.playlistParsingError;if(Rn){Te.trigger(w.ERROR,{type:O.NETWORK_ERROR,details:I.LEVEL_PARSING_ERROR,fatal:!1,url:Sr,error:Rn,reason:Rn.message,response:W,context:Z,level:Zr,parent:Kr,networkDetails:ne,stats:H});return}L.live&&ve&&(ve.getCacheAge&&(L.ageHeader=ve.getCacheAge()||0),(!ve.getCacheAge||isNaN(L.ageHeader))&&(L.ageHeader=0));switch(ze){case Ct.MANIFEST:case Ct.LEVEL:Te.trigger(w.LEVEL_LOADED,{details:L,level:Zr||0,id:ht||0,stats:H,networkDetails:ne,deliveryDirectives:Cr});break;case Ct.AUDIO_TRACK:Te.trigger(w.AUDIO_TRACK_LOADED,{details:L,id:ht||0,groupId:Zt||"",stats:H,networkDetails:ne,deliveryDirectives:Cr});break;case Ct.SUBTITLE_TRACK:Te.trigger(w.SUBTITLE_TRACK_LOADED,{details:L,id:ht||0,groupId:Zt||"",stats:H,networkDetails:ne,deliveryDirectives:Cr});break}}}]),Ae}();function mn(Ae,ee){var L;try{L=new Event("addtrack")}catch(W){L=document.createEvent("Event"),L.initEvent("addtrack",!1,!1)}L.track=Ae,ee.dispatchEvent(L)}function Ar(Ae,ee){var L=Ae.mode;if(L==="disabled"&&(Ae.mode="hidden"),Ae.cues&&!Ae.cues.getCueById(ee.id))try{if(Ae.addCue(ee),!Ae.cues.getCueById(ee.id))throw new Error("addCue is failed for: ".concat(ee))}catch(H){U.debug("[texttrack-utils]: ".concat(H));try{var W=new self.TextTrackCue(ee.startTime,ee.endTime,ee.text);W.id=ee.id,Ae.addCue(W)}catch(Z){U.debug("[texttrack-utils]: Legacy TextTrackCue fallback failed: ".concat(Z))}}L==="disabled"&&(Ae.mode=L)}function zn(Ae){var ee=Ae.mode;if(ee==="disabled"&&(Ae.mode="hidden"),Ae.cues)for(var L=Ae.cues.length;L--;)Ae.removeCue(Ae.cues[L]);ee==="disabled"&&(Ae.mode=ee)}function Fr(Ae,ee,L,W){var H=Ae.mode;if(H==="disabled"&&(Ae.mode="hidden"),Ae.cues&&Ae.cues.length>0)for(var Z=bn(Ae.cues,ee,L),ne=0;ne<Z.length;ne++)(!W||W(Z[ne]))&&Ae.removeCue(Z[ne]);H==="disabled"&&(Ae.mode=H)}function Bn(Ae,ee){if(ee<Ae[0].startTime)return 0;var L=Ae.length-1;if(ee>Ae[L].endTime)return-1;for(var W=0,H=L;W<=H;){var Z=Math.floor((H+W)/2);if(ee<Ae[Z].startTime)H=Z-1;else if(ee>Ae[Z].startTime&&W<L)W=Z+1;else return Z}return Ae[W].startTime-ee<ee-Ae[H].startTime?W:H}function bn(Ae,ee,L){var W=[],H=Bn(Ae,ee);if(H>-1)for(var Z=H,ne=Ae.length;Z<ne;Z++){var ve=Ae[Z];if(ve.startTime>=ee&&ve.endTime<=L)W.push(ve);else if(ve.startTime>L)return W}return W}var en={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"},ti=.25;function pi(){return typeof self=="undefined"?void 0:self.WebKitDataCue||self.VTTCue||self.TextTrackCue}var Pi=function(){var Ae=pi();try{new Ae(0,Number.POSITIVE_INFINITY,"")}catch(ee){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}();function qr(Ae,ee){return Ae.getTime()/1e3-ee}function En(Ae){return Uint8Array.from(Ae.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}var Yn=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=ee,this._registerListeners()}return Object(a.a)(Ae,[{key:"destroy",value:function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}},{key:"_registerListeners",value:function(){var L=this.hls;L.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),L.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.on(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"_unregisterListeners",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),L.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.off(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"onMediaAttached",value:function(L,W){this.media=W.media}},{key:"onMediaDetaching",value:function(){if(!this.id3Track)return;zn(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={}}},{key:"onManifestLoading",value:function(){this.dateRangeCuesAppended={}}},{key:"createTrack",value:function(L){var W=this.getID3Track(L.textTracks);return W.mode="hidden",W}},{key:"getID3Track",value:function(L){if(!this.media)return;for(var W=0;W<L.length;W++){var H=L[W];if(H.kind==="metadata"&&H.label==="id3")return mn(H,this.media),H}return this.media.addTextTrack("metadata","id3")}},{key:"onFragParsingMetadata",value:function(L,W){if(!this.media)return;var H=this.hls.config,Z=H.enableEmsgMetadataCues,ne=H.enableID3MetadataCues;if(!Z&&!ne)return;var ve=W.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var Te=pi(),ze=0;ze<ve.length;ze++){var st=ve[ze].type;if(st===en.emsg&&!Z||!ne)continue;var ht=Gt(ve[ze].data);if(ht){var Zt=ve[ze].pts,Cr=Zt+ve[ze].duration;Cr>Pi&&(Cr=Pi);var Sr=Cr-Zt;Sr<=0&&(Cr=Zt+ti);for(var Kr=0;Kr<ht.length;Kr++){var Zr=ht[Kr];if(!Kt(Zr)){this.updateId3CueEnds(Zt,st);var On=new Te(Zt,Cr,"");On.value=Zr,st&&(On.type=st),this.id3Track.addCue(On)}}}}}},{key:"updateId3CueEnds",value:function(L,W){var H,Z=(H=this.id3Track)==null?void 0:H.cues;if(Z)for(var ne=Z.length;ne--;){var ve=Z[ne];ve.type===W&&ve.startTime<L&&ve.endTime===Pi&&(ve.endTime=L)}}},{key:"onBufferFlushing",value:function(L,W){var H=W.startOffset,Z=W.endOffset,ne=W.type,ve=this.id3Track,Te=this.hls;if(!Te)return;var ze=Te.config,st=ze.enableEmsgMetadataCues,ht=ze.enableID3MetadataCues;if(ve&&(st||ht)){var Zt;ne==="audio"?Zt=function(Sr){return Sr.type===en.audioId3&&ht}:ne==="video"?Zt=function(Sr){return Sr.type===en.emsg&&st}:Zt=function(Sr){return Sr.type===en.audioId3&&ht||Sr.type===en.emsg&&st},Fr(ve,H,Z,Zt)}}},{key:"onLevelUpdated",value:function(L,W){var H=this,Z=W.details;if(!this.media||!Z.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;var ne=this.dateRangeCuesAppended,ve=this.id3Track,Te=Z.dateRanges,ze=Object.keys(Te);if(ve)for(var st=Object.keys(ne).filter(function(Rn){return!ze.includes(Rn)}),ht=function(){var Zn=st[Zt];Object.keys(ne[Zn].cues).forEach(function(wi){ve.removeCue(ne[Zn].cues[wi])}),delete ne[Zn]},Zt=st.length;Zt--;)ht();var Cr=Z.fragments[Z.fragments.length-1];if(ze.length===0||!T(Cr==null?void 0:Cr.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var Sr=Cr.programDateTime/1e3-Cr.start,Kr=pi(),Zr=function(){var Zn=ze[On],wi=Te[Zn],ua=ne[Zn],Gi=(ua==null?void 0:ua.cues)||{},Zi=(ua==null?void 0:ua.durationKnown)||!1,ka=qr(wi.startDate,Sr),Ga=Pi,Ba=wi.endDate;if(Ba)Ga=qr(Ba,Sr),Zi=!0;else if(wi.endOnNext&&!Zi){var Sa=ze.reduce(function(ws,Hs){var Ee=Te[Hs];return Ee.class===wi.class&&Ee.id!==Hs&&Ee.startDate>wi.startDate&&ws.push(Ee),ws},[]).sort(function(ws,Hs){return ws.startDate.getTime()-Hs.startDate.getTime()})[0];Sa&&(Ga=qr(Sa.startDate,Sr),Zi=!0)}for(var Go=Object.keys(wi.attr),bs=0;bs<Go.length;bs++){var ys=Go[bs];if(!Q(ys))continue;var Cs=Gi[ys];if(Cs)Zi&&!ua.durationKnown&&(Cs.endTime=Ga);else{var js=wi.attr[ys];Cs=new Kr(ka,Ga,""),G(ys)&&(js=En(js)),Cs.value={key:ys,data:js},Cs.type=en.dateRange,Cs.id=Zn,H.id3Track.addCue(Cs),Gi[ys]=Cs}}ne[Zn]={cues:Gi,dateRange:wi,durationKnown:Zi}},On=0;On<ze.length;On++)Zr()}}]),Ae}(),zt=function(){function Ae(ee){var L=this;Object(r.a)(this,Ae),this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return L.timeupdate()},this.hls=ee,this.config=ee.config,this.registerListeners()}return Object(a.a)(Ae,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var L=this.config,W=this.levelDetails;return L.liveMaxLatencyDuration!==void 0?L.liveMaxLatencyDuration:W?L.liveMaxLatencyDurationCount*W.targetduration:0}},{key:"targetLatency",get:function(){var L=this.levelDetails;if(L===null)return null;var W=L.holdBack,H=L.partHoldBack,Z=L.targetduration,ne=this.config,ve=ne.liveSyncDuration,Te=ne.liveSyncDurationCount,ze=ne.lowLatencyMode,st=this.hls.userConfig,ht=ze&&H||W;(st.liveSyncDuration||st.liveSyncDurationCount||ht===0)&&(ht=ve!==void 0?ve:Te*Z);var Zt=Z,Cr=1;return ht+Math.min(this.stallCount*Cr,Zt)}},{key:"liveSyncPosition",get:function(){var L=this.estimateLiveEdge(),W=this.targetLatency,H=this.levelDetails;if(L===null||W===null||H===null)return null;var Z=H.edge,ne=L-W-this.edgeStalled,ve=Z-H.totalduration,Te=Z-(this.config.lowLatencyMode&&H.partTarget||H.targetduration);return Math.min(Math.max(ve,ne),Te)}},{key:"drift",get:function(){var L=this.levelDetails;return L===null?1:L.drift}},{key:"edgeStalled",get:function(){var L=this.levelDetails;if(L===null)return 0;var W=(this.config.lowLatencyMode&&L.partTarget||L.targetduration)*3;return Math.max(L.age-W,0)}},{key:"forwardBufferLength",get:function(){var L=this.media,W=this.levelDetails;if(!L||!W)return 0;var H=L.buffered.length;return(H?L.buffered.end(H-1):W.edge)-this.currentTime}},{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}},{key:"registerListeners",value:function(){this.hls.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(w.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){this.hls.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(w.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(w.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(L,W){this.media=W.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}},{key:"onMediaDetaching",value:function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}},{key:"onManifestLoading",value:function(){this.levelDetails=null,this._latency=null,this.stallCount=0}},{key:"onLevelUpdated",value:function(L,W){var H=W.details;this.levelDetails=H,H.advanced&&this.timeupdate(),!H.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}},{key:"onError",value:function(L,W){var H;if(W.details!==I.BUFFER_STALLED_ERROR)return;this.stallCount++,(H=this.levelDetails)!=null&&H.live&&U.warn("[playback-rate-controller]: Stall detected, adjusting target latency")}},{key:"timeupdate",value:function(){var L=this.media,W=this.levelDetails;if(!L||!W)return;this.currentTime=L.currentTime;var H=this.computeLatency();if(H===null)return;this._latency=H;var Z=this.config,ne=Z.lowLatencyMode,ve=Z.maxLiveSyncPlaybackRate;if(!ne||ve===1)return;var Te=this.targetLatency;if(Te===null)return;var ze=H-Te,st=Math.min(this.maxLatency,Te+W.targetduration),ht=ze<st;if(W.live&&ht&&ze>.05&&this.forwardBufferLength>1){var Zt=Math.min(2,Math.max(1,ve)),Cr=Math.round(2/(1+Math.exp(-.75*ze-this.edgeStalled))*20)/20;L.playbackRate=Math.min(Zt,Math.max(1,Cr))}else L.playbackRate!==1&&L.playbackRate!==0&&(L.playbackRate=1)}},{key:"estimateLiveEdge",value:function(){var L=this.levelDetails;return L===null?null:L.edge+L.age}},{key:"computeLatency",value:function(){var L=this.estimateLiveEdge();return L===null?null:L-this.currentTime}}]),Ae}(),Ot=["NONE","TYPE-0","TYPE-1",null],kt={No:"",Yes:"YES",v2:"v2"};function Bt(Ae,ee){var L=Ae.canSkipUntil,W=Ae.canSkipDateRanges,H=Ae.endSN,Z=ee!==void 0?ee-H:0;return L&&Z<L?W?kt.v2:kt.Yes:kt.No}var Wt=function(){function Ae(ee,L,W){Object(r.a)(this,Ae),this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=ee,this.part=L,this.skip=W}return Object(a.a)(Ae,[{key:"addDirectives",value:function(L){var W=new self.URL(L);return this.msn!==void 0&&W.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&W.searchParams.set("_HLS_part",this.part.toString()),this.skip&&W.searchParams.set("_HLS_skip",this.skip),W.href}}]),Ae}(),Lt=function(){function Ae(ee){Object(r.a)(this,Ae),this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[ee.url],this._attrs=[ee.attrs],this.bitrate=ee.bitrate,ee.details&&(this.details=ee.details),this.id=ee.id||0,this.name=ee.name,this.width=ee.width||0,this.height=ee.height||0,this.audioCodec=ee.audioCodec,this.videoCodec=ee.videoCodec,this.unknownCodecs=ee.unknownCodecs,this.codecSet=[ee.videoCodec,ee.audioCodec].filter(function(L){return L}).join(",").replace(/\.[^.,]+/g,"")}return Object(a.a)(Ae,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"attrs",get:function(){return this._attrs[this._urlId]}},{key:"pathwayId",get:function(){return this.attrs["PATHWAY-ID"]||"."}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(L){var W=L%this.url.length;this._urlId!==W&&(this.fragmentError=0,this.loadError=0,this.details=void 0,this._urlId=W)}},{key:"audioGroupId",get:function(){var L;return(L=this.audioGroupIds)==null?void 0:L[this.urlId]}},{key:"textGroupId",get:function(){var L;return(L=this.textGroupIds)==null?void 0:L[this.urlId]}},{key:"addFallback",value:function(L){this.url.push(L.url),this._attrs.push(L.attrs)}}]),Ae}();function dr(Ae,ee){var L=ee.startPTS;if(T(L)){var W=0,H;ee.sn>Ae.sn?(W=L-Ae.start,H=Ae):(W=Ae.start-L,H=ee),H.duration!==W&&(H.duration=W)}else if(ee.sn>Ae.sn){var Z=Ae.cc===ee.cc;Z&&Ae.minEndPTS?ee.start=Ae.start+(Ae.minEndPTS-Ae.start):ee.start=Ae.start+Ae.duration}else ee.start=Math.max(Ae.start-ee.duration,0)}function yr(Ae,ee,L,W,H,Z){var ne=W-L;ne<=0&&(U.warn("Fragment should have a positive duration",ee),W=L+ee.duration,Z=H+ee.duration);var ve=L,Te=W,ze=ee.startPTS,st=ee.endPTS;if(T(ze)){var ht=Math.abs(ze-L);T(ee.deltaPTS)?ee.deltaPTS=Math.max(ht,ee.deltaPTS):ee.deltaPTS=ht,ve=Math.max(L,ze),L=Math.min(L,ze),H=Math.min(H,ee.startDTS),Te=Math.min(W,st),W=Math.max(W,st),Z=Math.max(Z,ee.endDTS)}var Zt=L-ee.start;ee.start!==0&&(ee.start=L),ee.duration=W-ee.start,ee.startPTS=L,ee.maxStartPTS=ve,ee.startDTS=H,ee.endPTS=W,ee.minEndPTS=Te,ee.endDTS=Z;var Cr=ee.sn;if(!Ae||Cr<Ae.startSN||Cr>Ae.endSN)return 0;var Sr,Kr=Cr-Ae.startSN,Zr=Ae.fragments;for(Zr[Kr]=ee,Sr=Kr;Sr>0;Sr--)dr(Zr[Sr],Zr[Sr-1]);for(Sr=Kr;Sr<Zr.length-1;Sr++)dr(Zr[Sr],Zr[Sr+1]);return Ae.fragmentHint&&dr(Zr[Zr.length-1],Ae.fragmentHint),Ae.PTSKnown=Ae.alignedSliding=!0,Zt}function br(Ae,ee){for(var L=null,W=Ae.fragments,H=W.length-1;H>=0;H--){var Z=W[H].initSegment;if(Z){L=Z;break}}Ae.fragmentHint&&delete Ae.fragmentHint.endPTS;var ne=0,ve;if(Mn(Ae,ee,function(Sr,Kr){Sr.relurl&&(ne=Sr.cc-Kr.cc),T(Sr.startPTS)&&T(Sr.endPTS)&&(Kr.start=Kr.startPTS=Sr.startPTS,Kr.startDTS=Sr.startDTS,Kr.maxStartPTS=Sr.maxStartPTS,Kr.endPTS=Sr.endPTS,Kr.endDTS=Sr.endDTS,Kr.minEndPTS=Sr.minEndPTS,Kr.duration=Sr.endPTS-Sr.startPTS,Kr.duration&&(ve=Kr),ee.PTSKnown=ee.alignedSliding=!0),Kr.elementaryStreams=Sr.elementaryStreams,Kr.loader=Sr.loader,Kr.stats=Sr.stats,Kr.urlId=Sr.urlId,Sr.initSegment&&(Kr.initSegment=Sr.initSegment,L=Sr.initSegment)}),L){var Te=ee.fragmentHint?ee.fragments.concat(ee.fragmentHint):ee.fragments;Te.forEach(function(Sr){var Kr;(!Sr.initSegment||Sr.initSegment.relurl===((Kr=L)==null?void 0:Kr.relurl))&&(Sr.initSegment=L)})}if(ee.skippedSegments)if(ee.deltaUpdateFailed=ee.fragments.some(function(Sr){return!Sr}),ee.deltaUpdateFailed){U.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var ze=ee.skippedSegments;ze--;)ee.fragments.shift();ee.startSN=ee.fragments[0].sn,ee.startCC=ee.fragments[0].cc}else ee.canSkipDateRanges&&(ee.dateRanges=Mr(Ae.dateRanges,ee.dateRanges,ee.recentlyRemovedDateranges));var st=ee.fragments;if(ne){U.warn("discontinuity sliding from playlist, take drift into account");for(var ht=0;ht<st.length;ht++)st[ht].cc+=ne}ee.skippedSegments&&(ee.startCC=ee.fragments[0].cc),Gn(Ae.partList,ee.partList,function(Sr,Kr){Kr.elementaryStreams=Sr.elementaryStreams,Kr.stats=Sr.stats}),ve?yr(ee,ve,ve.startPTS,ve.endPTS,ve.startDTS,ve.endDTS):di(Ae,ee),st.length&&(ee.totalduration=ee.edge-st[0].start),ee.driftStartTime=Ae.driftStartTime,ee.driftStart=Ae.driftStart;var Zt=ee.advancedDateTime;if(ee.advanced&&Zt){var Cr=ee.edge;ee.driftStart||(ee.driftStartTime=Zt,ee.driftStart=Cr),ee.driftEndTime=Zt,ee.driftEnd=Cr}else ee.driftEndTime=Ae.driftEndTime,ee.driftEnd=Ae.driftEnd,ee.advancedDateTime=Ae.advancedDateTime}function Mr(Ae,ee,L){var W=E({},Ae);return L&&L.forEach(function(H){delete W[H]}),Object.keys(ee).forEach(function(H){var Z=new te(ee[H].attr,W[H]);Z.isValid?W[H]=Z:U.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'.concat(JSON.stringify(ee[H].attr),'"'))}),W}function Gn(Ae,ee,L){if(Ae&&ee)for(var W=0,H=0,Z=Ae.length;H<=Z;H++){var ne=Ae[H],ve=ee[H+W];ne&&ve&&ne.index===ve.index&&ne.fragment.sn===ve.fragment.sn?L(ne,ve):W--}}function Mn(Ae,ee,L){for(var W=ee.skippedSegments,H=Math.max(Ae.startSN,ee.startSN)-ee.startSN,Z=(Ae.fragmentHint?1:0)+(W?ee.endSN:Math.min(Ae.endSN,ee.endSN))-ee.startSN,ne=ee.startSN-Ae.startSN,ve=ee.fragmentHint?ee.fragments.concat(ee.fragmentHint):ee.fragments,Te=Ae.fragmentHint?Ae.fragments.concat(Ae.fragmentHint):Ae.fragments,ze=H;ze<=Z;ze++){var st=Te[ne+ze],ht=ve[ze];W&&!ht&&ze<W&&(ht=ee.fragments[ze]=st),st&&ht&&L(st,ht)}}function di(Ae,ee){var L=ee.startSN+ee.skippedSegments-Ae.startSN,W=Ae.fragments;if(L<0||L>=W.length)return;vn(ee,W[L].start)}function vn(Ae,ee){if(ee){for(var L=Ae.fragments,W=Ae.skippedSegments;W<L.length;W++)L[W].start+=ee;Ae.fragmentHint&&(Ae.fragmentHint.start+=ee)}}function Ur(Ae){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Infinity,L=1e3*Ae.targetduration;if(Ae.updated){var W=Ae.fragments,H=4;if(W.length&&L*H>ee){var Z=W[W.length-1].duration*1e3;Z<L&&(L=Z)}}else L/=2;return Math.round(L)}function In(Ae,ee,L){if(!(Ae!=null&&Ae.details))return null;var W=Ae.details,H=W.fragments[ee-W.startSN];return H||(H=W.fragmentHint,H&&H.sn===ee?H:ee<W.startSN&&L&&L.sn===ee?L:null)}function Qn(Ae,ee,L){var W;return Ae!=null&&Ae.details?qn((W=Ae.details)==null?void 0:W.partList,ee,L):null}function qn(Ae,ee,L){if(Ae)for(var W=Ae.length;W--;){var H=Ae[W];if(H.index===L&&H.fragment.sn===ee)return H}return null}function oi(Ae){switch(Ae.details){case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_TIMEOUT:case I.LEVEL_LOAD_TIMEOUT:case I.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Ti(Ae,ee){var L=oi(ee);return Ae.default["".concat(L?"timeout":"error","Retry")]}function ki(Ae,ee){var L=Ae.backoff==="linear"?1:Math.pow(2,ee);return Math.min(L*Ae.retryDelayMs,Ae.maxRetryDelayMs)}function Ri(Ae){return b(b({},Ae),{errorRetry:null,timeoutRetry:null})}function oa(Ae,ee,L,W){return!!Ae&&ee<Ae.maxNumRetry&&(ma(W)||!!L)}function ma(Ae){return Ae===0&&navigator.onLine===!1||!!Ae&&(Ae<400||Ae>499)}var aa={search:function(ee,L){for(var W=0,H=ee.length-1,Z=null,ne=null;W<=H;){Z=(W+H)/2|0,ne=ee[Z];var ve=L(ne);if(ve>0)W=Z+1;else if(ve<0)H=Z-1;else return ne}return null}};function ba(Ae,ee,L){if(ee===null||!Array.isArray(Ae)||!Ae.length||!T(ee))return null;var W=Ae[0].programDateTime;if(ee<(W||0))return null;var H=Ae[Ae.length-1].endProgramDateTime;if(ee>=(H||0))return null;L=L||0;for(var Z=0;Z<Ae.length;++Z){var ne=Ae[Z];if(ji(ee,L,ne))return ne}return null}function yi(Ae,ee){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,H=null;if(Ae?H=ee[Ae.sn-ee[0].sn+1]||null:L===0&&ee[0].start===0&&(H=ee[0]),H&&kn(L,W,H)===0)return H;var Z=aa.search(ee,kn.bind(null,L,W));return Z&&(Z!==Ae||!H)?Z:H}function kn(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=arguments.length>2?arguments[2]:void 0;if(L.start<=Ae&&L.start+L.duration>Ae)return 0;var W=Math.min(ee,L.duration+(L.deltaPTS?L.deltaPTS:0));return L.start+L.duration-W<=Ae?1:L.start-W>Ae&&L.start?-1:0}function ji(Ae,ee,L){var W=Math.min(ee,L.duration+(L.deltaPTS?L.deltaPTS:0))*1e3,H=L.endProgramDateTime||0;return H-W>Ae}function ha(Ae,ee){return aa.search(Ae,function(L){return L.cc<ee?1:L.cc>ee?-1:0})}var ta=3e5,ra={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Ir={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4},xr=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=ee,this.log=U.log.bind(U,"[info]:"),this.warn=U.warn.bind(U,"[warning]:"),this.error=U.error.bind(U,"[error]:"),this.registerListeners()}return Object(a.a)(Ae,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.ERROR,this.onError,this),L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;if(!L)return;L.off(w.ERROR,this.onError,this),L.off(w.ERROR,this.onErrorOut,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}},{key:"startLoad",value:function(L){this.playlistError=0}},{key:"stopLoad",value:function(){}},{key:"getVariantLevelIndex",value:function(L){return(L==null?void 0:L.type)===gt.MAIN?L.level:this.hls.loadLevel}},{key:"onManifestLoading",value:function(){this.playlistError=0,this.penalizedRenditions={}}},{key:"onLevelUpdated",value:function(){this.playlistError=0}},{key:"onError",value:function(L,W){var H,Z;if(W.fatal)return;var ne=this.hls,ve=W.context;switch(W.details){case I.FRAG_LOAD_ERROR:case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_ERROR:case I.KEY_LOAD_TIMEOUT:W.errorAction=this.getFragRetryOrSwitchAction(W);return;case I.FRAG_PARSING_ERROR:if((H=W.frag)!=null&&H.gap){W.errorAction={action:ra.DoNothing,flags:Ir.None};return}case I.FRAG_GAP:case I.FRAG_DECRYPT_ERROR:{W.errorAction=this.getFragRetryOrSwitchAction(W),W.errorAction.action=ra.SendAlternateToPenaltyBox;return}case I.LEVEL_EMPTY_ERROR:case I.LEVEL_PARSING_ERROR:{var Te,ze,st=W.parent===gt.MAIN?W.level:ne.loadLevel;W.details===I.LEVEL_EMPTY_ERROR&&!!((Te=W.context)!=null&&(ze=Te.levelDetails)!=null&&ze.live)?W.errorAction=this.getPlaylistRetryOrSwitchAction(W,st):(W.levelRetry=!1,W.errorAction=this.getLevelSwitchAction(W,st))}return;case I.LEVEL_LOAD_ERROR:case I.LEVEL_LOAD_TIMEOUT:typeof(ve==null?void 0:ve.level)=="number"&&(W.errorAction=this.getPlaylistRetryOrSwitchAction(W,ve.level));return;case I.AUDIO_TRACK_LOAD_ERROR:case I.AUDIO_TRACK_LOAD_TIMEOUT:case I.SUBTITLE_LOAD_ERROR:case I.SUBTITLE_TRACK_LOAD_TIMEOUT:if(ve){var ht=ne.levels[ne.loadLevel];if(ht&&(ve.type===Ct.AUDIO_TRACK&&ve.groupId===ht.audioGroupId||ve.type===Ct.SUBTITLE_TRACK&&ve.groupId===ht.textGroupId)){W.errorAction=this.getPlaylistRetryOrSwitchAction(W,ne.loadLevel),W.errorAction.action=ra.SendAlternateToPenaltyBox,W.errorAction.flags=Ir.MoveAllAlternatesMatchingHost;return}}return;case I.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{var Zt=ne.levels[ne.loadLevel],Cr=Zt==null?void 0:Zt.attrs["HDCP-LEVEL"];Cr&&(W.errorAction={action:ra.SendAlternateToPenaltyBox,flags:Ir.MoveAllAlternatesMatchingHDCP,hdcpLevel:Cr})}return;case I.BUFFER_ADD_CODEC_ERROR:case I.REMUX_ALLOC_ERROR:W.errorAction=this.getLevelSwitchAction(W,(Z=W.level)!=null?Z:ne.loadLevel);return;case I.INTERNAL_EXCEPTION:case I.BUFFER_APPENDING_ERROR:case I.BUFFER_APPEND_ERROR:case I.BUFFER_FULL_ERROR:case I.LEVEL_SWITCH_ERROR:case I.BUFFER_STALLED_ERROR:case I.BUFFER_SEEK_OVER_HOLE:case I.BUFFER_NUDGE_ON_STALL:W.errorAction={action:ra.DoNothing,flags:Ir.None};return}if(W.type===O.KEY_SYSTEM_ERROR){var Sr=this.getVariantLevelIndex(W.frag);W.levelRetry=!1,W.errorAction=this.getLevelSwitchAction(W,Sr);return}}},{key:"getPlaylistRetryOrSwitchAction",value:function(L,W){var H,Z=this.hls,ne=Ti(Z.config.playlistLoadPolicy,L),ve=this.playlistError++,Te=(H=L.response)==null?void 0:H.code,ze=oa(ne,ve,oi(L),Te);if(ze)return{action:ra.RetryRequest,flags:Ir.None,retryConfig:ne,retryCount:ve};var st=this.getLevelSwitchAction(L,W);return ne&&(st.retryConfig=ne,st.retryCount=ve),st}},{key:"getFragRetryOrSwitchAction",value:function(L){var W=this.hls,H=this.getVariantLevelIndex(L.frag),Z=W.levels[H],ne=W.config,ve=ne.fragLoadPolicy,Te=ne.keyLoadPolicy,ze=Ti(L.details.startsWith("key")?Te:ve,L),st=W.levels.reduce(function(Kr,Zr){return Kr+Zr.fragmentError},0);if(Z){var ht;L.details!==I.FRAG_GAP&&Z.fragmentError++;var Zt=(ht=L.response)==null?void 0:ht.code,Cr=oa(ze,st,oi(L),Zt);if(Cr)return{action:ra.RetryRequest,flags:Ir.None,retryConfig:ze,retryCount:st}}var Sr=this.getLevelSwitchAction(L,H);return ze&&(Sr.retryConfig=ze,Sr.retryCount=st),Sr}},{key:"getLevelSwitchAction",value:function(L,W){var H=this.hls;W==null&&(W=H.loadLevel);var Z=this.hls.levels[W];if(Z&&(Z.loadError++,H.autoLevelEnabled)){for(var ne,ve,Te=-1,ze=H.levels,st=H.loadLevel,ht=H.minAutoLevel,Zt=H.maxAutoLevel,Cr=(ne=L.frag)==null?void 0:ne.type,Sr=(ve=L.context)!=null?ve:{},Kr=Sr.type,Zr=Sr.groupId,On=ze.length;On--;){var Rn=(On+st)%ze.length;if(Rn!==st&&Rn>=ht&&Rn<=Zt&&ze[Rn].loadError===0){var Zn=ze[Rn];if(L.details===I.FRAG_GAP&&L.frag){var wi=ze[Rn].details;if(wi){var ua=yi(L.frag,wi.fragments,L.frag.start);if(ua!=null&&ua.gap)continue}}else{if(Kr===Ct.AUDIO_TRACK&&Zr===Zn.audioGroupId||Kr===Ct.SUBTITLE_TRACK&&Zr===Zn.textGroupId)continue;if(Cr===gt.AUDIO&&Z.audioGroupId===Zn.audioGroupId||Cr===gt.SUBTITLE&&Z.textGroupId===Zn.textGroupId)continue}Te=Rn;break}}if(Te>-1&&H.loadLevel!==Te)return L.levelRetry=!0,this.playlistError=0,{action:ra.SendAlternateToPenaltyBox,flags:Ir.None,nextAutoLevel:Te}}return{action:ra.SendAlternateToPenaltyBox,flags:Ir.MoveAllAlternatesMatchingHost}}},{key:"onErrorOut",value:function(L,W){var H;switch((H=W.errorAction)==null?void 0:H.action){case ra.DoNothing:break;case ra.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(W),!W.errorAction.resolved&&W.details!==I.FRAG_GAP&&(W.fatal=!0);break}if(W.fatal){this.hls.stopLoad();return}}},{key:"sendAlternateToPenaltyBox",value:function(L){var W=this.hls,H=L.errorAction;if(!H)return;var Z=H.flags,ne=H.hdcpLevel,ve=H.nextAutoLevel;switch(Z){case Ir.None:this.switchLevel(L,ve);break;case Ir.MoveAllAlternatesMatchingHost:H.resolved||(H.resolved=this.redundantFailover(L));break;case Ir.MoveAllAlternatesMatchingHDCP:ne&&(W.maxHdcpLevel=Ot[Ot.indexOf(ne)-1],H.resolved=!0),this.warn('Restricting playback to HDCP-LEVEL of "'.concat(W.maxHdcpLevel,'" or lower'));break}H.resolved||this.switchLevel(L,ve)}},{key:"switchLevel",value:function(L,W){W!==void 0&&L.errorAction&&(this.warn("switching to level ".concat(W," after ").concat(L.details)),this.hls.nextAutoLevel=W,L.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)}},{key:"redundantFailover",value:function(L){var W=this,H=this.hls,Z=this.penalizedRenditions,ne=L.parent===gt.MAIN?L.level:H.loadLevel,ve=H.levels[ne],Te=ve.url.length,ze=L.frag?L.frag.urlId:ve.urlId;ve.urlId===ze&&(!L.frag||ve.details)&&this.penalizeRendition(ve,L);for(var st=function(){var Sr=(ze+Zt)%Te,Kr=Z[Sr];if(!Kr||Cn(Kr,L,Z[ze]))return W.warn("Switching to Redundant Stream ".concat(Sr+1,"/").concat(Te,': "').concat(ve.url[Sr],'" after ').concat(L.details)),W.playlistError=0,H.levels.forEach(function(Zr){Zr.urlId=Sr}),H.nextLoadLevel=ne,{v:!0}},ht,Zt=1;Zt<Te;Zt++)if(ht=st(),ht)return ht.v;return!1}},{key:"penalizeRendition",value:function(L,W){var H=this.penalizedRenditions,Z=H[L.urlId]||{lastErrorPerfMs:0,errors:[],details:void 0};Z.lastErrorPerfMs=performance.now(),Z.errors.push(W),Z.details=L.details,H[L.urlId]=Z}}]),Ae}();function Cn(Ae,ee,L){if(performance.now()-Ae.lastErrorPerfMs>ta)return!0;var W=Ae.details;if(ee.details===I.FRAG_GAP&&W&&ee.frag){var H=ee.frag.start,Z=yi(null,W.fragments,H);if(Z&&!Z.gap)return!0}if(L&&Ae.errors.length<L.errors.length){var ne=Ae.errors[Ae.errors.length-1];if(W&&ne.frag&&ee.frag&&Math.abs(ne.frag.start-ee.frag.start)>W.targetduration*3)return!0}return!1}var mr=function(){function Ae(ee,L){Object(r.a)(this,Ae),this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=U.log.bind(U,"".concat(L,":")),this.warn=U.warn.bind(U,"".concat(L,":")),this.hls=ee}return Object(a.a)(Ae,[{key:"destroy",value:function(){this.clearTimer(),this.hls=this.log=this.warn=null}},{key:"clearTimer",value:function(){clearTimeout(this.timer),this.timer=-1}},{key:"startLoad",value:function(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()}},{key:"stopLoad",value:function(){this.canLoad=!1,this.clearTimer()}},{key:"switchParams",value:function(L,W){var H=W==null?void 0:W.renditionReports;if(H){for(var Z=-1,ne=0;ne<H.length;ne++){var ve=H[ne],Te=void 0;try{Te=new self.URL(ve.URI,W.url).href}catch(Cr){U.warn("Could not construct new URL for Rendition Report: ".concat(Cr)),Te=ve.URI||""}if(Te===L){Z=ne;break}else Te===L.substring(0,Te.length)&&(Z=ne)}if(Z!==-1){var ze=H[Z],st=parseInt(ze["LAST-MSN"])||(W==null?void 0:W.lastPartSn),ht=parseInt(ze["LAST-PART"])||(W==null?void 0:W.lastPartIndex);if(this.hls.config.lowLatencyMode){var Zt=Math.min(W.age-W.partTarget,W.targetduration);ht>=0&&Zt>W.partTarget&&(ht+=1)}return new Wt(st,ht>=0?ht:void 0,kt.No)}}}},{key:"loadPlaylist",value:function(L){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())}},{key:"shouldLoadPlaylist",value:function(L){return this.canLoad&&!!L&&!!L.url&&(!L.details||L.details.live)}},{key:"shouldReloadPlaylist",value:function(L){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(L)}},{key:"playlistLoaded",value:function(L,W,H){var Z=this,ne=W.details,ve=W.stats,Te=self.performance.now(),ze=ve.loading.first?Math.max(0,Te-ve.loading.first):0;if(ne.advancedDateTime=Date.now()-ze,ne.live||H!=null&&H.live){if(ne.reloaded(H),H&&this.log("live playlist ".concat(L," ").concat(ne.advanced?"REFRESHED "+ne.lastPartSn+"-"+ne.lastPartIndex:ne.updated?"UPDATED":"MISSED")),H&&ne.fragments.length>0&&br(H,ne),!this.canLoad||!ne.live)return;var st,ht=void 0,Zt=void 0;if(ne.canBlockReload&&ne.endSN&&ne.advanced){var Cr=this.hls.config.lowLatencyMode,Sr=ne.lastPartSn,Kr=ne.endSN,Zr=ne.lastPartIndex,On=Zr!==-1,Rn=Sr===Kr,Zn=Cr?0:Zr;On?(ht=Rn?Kr+1:Sr,Zt=Rn?Zn:Zr+1):ht=Kr+1;var wi=ne.age,ua=wi+ne.ageHeader,Gi=Math.min(ua-ne.partTarget,ne.targetduration*1.5);if(Gi>0){if(H&&Gi>H.tuneInGoal)this.warn("CDN Tune-in goal increased from: ".concat(H.tuneInGoal," to: ").concat(Gi," with playlist age: ").concat(ne.age)),Gi=0;else{var Zi=Math.floor(Gi/ne.targetduration);if(ht+=Zi,Zt!==void 0){var ka=Math.round(Gi%ne.targetduration/ne.partTarget);Zt+=ka}this.log("CDN Tune-in age: ".concat(ne.ageHeader,"s last advanced ").concat(wi.toFixed(2),"s goal: ").concat(Gi," skip sn ").concat(Zi," to part ").concat(Zt))}ne.tuneInGoal=Gi}if(st=this.getDeliveryDirectives(ne,W.deliveryDirectives,ht,Zt),Cr||!Rn){this.loadPlaylist(st);return}}else(ne.canBlockReload||ne.canSkipUntil)&&(st=this.getDeliveryDirectives(ne,W.deliveryDirectives,ht,Zt));var Ga=this.hls.mainForwardBufferInfo,Ba=Ga?Ga.end-Ga.len:0,Sa=(ne.edge-Ba)*1e3,Go=Ur(ne,Sa);ne.updated&&Te>this.requestScheduled+Go&&(this.requestScheduled=ve.loading.start),ht!==void 0&&ne.canBlockReload?this.requestScheduled=ve.loading.first+Go-(ne.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+Go<Te?this.requestScheduled=Te:this.requestScheduled-Te<=0&&(this.requestScheduled+=Go);var bs=this.requestScheduled-Te;bs=Math.max(0,bs),this.log("reload live playlist ".concat(L," in ").concat(Math.round(bs)," ms")),this.timer=self.setTimeout(function(){return Z.loadPlaylist(st)},bs)}else this.clearTimer()}},{key:"getDeliveryDirectives",value:function(L,W,H,Z){var ne=Bt(L,H);return W!=null&&W.skip&&L.deltaUpdateFailed&&(H=W.msn,Z=W.part,ne=kt.No),new Wt(H,Z,ne)}},{key:"checkRetry",value:function(L){var W=this,H=L.details,Z=oi(L),ne=L.errorAction,ve=ne||{},Te=ve.action,ze=ve.retryCount,st=ze===void 0?0:ze,ht=ve.retryConfig,Zt=!!ne&&!!ht&&(Te===ra.RetryRequest||!ne.resolved&&Te===ra.SendAlternateToPenaltyBox);if(Zt){var Cr;if(this.requestScheduled=-1,st>=ht.maxNumRetry)return!1;if(Z&&(Cr=L.context)!=null&&Cr.deliveryDirectives)this.warn("Retrying playlist loading ".concat(st+1,"/").concat(ht.maxNumRetry,' after "').concat(H,'" without delivery-directives')),this.loadPlaylist();else{var Sr=ki(ht,st);this.timer=self.setTimeout(function(){return W.loadPlaylist()},Sr),this.warn("Retrying playlist loading ".concat(st+1,"/").concat(ht.maxNumRetry,' after "').concat(H,'" in ').concat(Sr,"ms"))}L.levelRetry=!0,ne.resolved=!0}return Zt}}]),Ae}(),kr,Gr=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H){var Z;return Object(r.a)(this,L),Z=ee.call(this,W,"[level-controller]"),Z._levels=[],Z._firstLevel=-1,Z._startLevel=void 0,Z.currentLevel=null,Z.currentLevelIndex=-1,Z.manualLevelIndex=-1,Z.steering=void 0,Z.onParsedComplete=void 0,Z.steering=H,Z._registerListeners(),Z}return Object(a.a)(L,[{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_LOADED,this.onManifestLoaded,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.on(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.on(w.FRAG_LOADED,this.onFragLoaded,this),H.on(w.ERROR,this.onError,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_LOADED,this.onManifestLoaded,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.off(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.off(w.FRAG_LOADED,this.onFragLoaded,this),H.off(w.ERROR,this.onError,this)}},{key:"destroy",value:function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),Object(t.a)(Object(m.a)(L.prototype),"destroy",this).call(this)}},{key:"startLoad",value:function(){var H=this._levels;H.forEach(function(Z){Z.loadError=0,Z.fragmentError=0}),Object(t.a)(Object(m.a)(L.prototype),"startLoad",this).call(this)}},{key:"resetLevels",value:function(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[]}},{key:"onManifestLoading",value:function(H,Z){this.resetLevels()}},{key:"onManifestLoaded",value:function(H,Z){var ne=[],ve={},Te;Z.levels.forEach(function(ze){var st,ht=ze.attrs;((st=ze.audioCodec)==null?void 0:st.indexOf("mp4a.40.34"))!==-1&&(kr||(kr=/chrome|firefox/i.test(navigator.userAgent)),kr&&(ze.audioCodec=void 0));var Zt=ht.AUDIO,Cr=ht.CODECS,Sr=ht["FRAME-RATE"],Kr=ht["PATHWAY-ID"],Zr=ht.RESOLUTION,On=ht.SUBTITLES,Rn="".concat(Kr||".","-"),Zn="".concat(Rn).concat(ze.bitrate,"-").concat(Zr,"-").concat(Sr,"-").concat(Cr);Te=ve[Zn],Te?Te.addFallback(ze):(Te=new Lt(ze),ve[Zn]=Te,ne.push(Te)),ln(Te,"audio",Zt),ln(Te,"text",On)}),this.filterAndSortMediaOptions(ne,Z)}},{key:"filterAndSortMediaOptions",value:function(H,Z){var ne=this,ve=[],Te=[],ze=!1,st=!1,ht=!1,Zt=H.filter(function(Zn){var wi=Zn.audioCodec,ua=Zn.videoCodec,Gi=Zn.width,Zi=Zn.height,ka=Zn.unknownCodecs;return ze||(ze=!!(Gi&&Zi)),st||(st=!!ua),ht||(ht=!!wi),!(ka!=null&&ka.length)&&(!wi||cn(wi,"audio"))&&(!ua||cn(ua,"video"))});if((ze||st)&&ht&&(Zt=Zt.filter(function(Zn){var wi=Zn.videoCodec,ua=Zn.width,Gi=Zn.height;return!!wi||!!(ua&&Gi)})),Zt.length===0){Promise.resolve().then(function(){if(ne.hls){var Zn=new Error("no level with compatible codecs found in manifest");ne.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:Z.url,error:Zn,reason:Zn.message})}});return}Z.audioTracks&&(ve=Z.audioTracks.filter(function(Zn){return!Zn.audioCodec||cn(Zn.audioCodec,"audio")}),Fn(ve)),Z.subtitles&&(Te=Z.subtitles,Fn(Te));var Cr=Zt.slice(0);Zt.sort(function(Zn,wi){return Zn.attrs["HDCP-LEVEL"]!==wi.attrs["HDCP-LEVEL"]?(Zn.attrs["HDCP-LEVEL"]||"")>(wi.attrs["HDCP-LEVEL"]||"")?1:-1:Zn.bitrate!==wi.bitrate?Zn.bitrate-wi.bitrate:Zn.attrs["FRAME-RATE"]!==wi.attrs["FRAME-RATE"]?Zn.attrs.decimalFloatingPoint("FRAME-RATE")-wi.attrs.decimalFloatingPoint("FRAME-RATE"):Zn.attrs.SCORE!==wi.attrs.SCORE?Zn.attrs.decimalFloatingPoint("SCORE")-wi.attrs.decimalFloatingPoint("SCORE"):ze&&Zn.height!==wi.height?Zn.height-wi.height:0});var Sr=Cr[0];if(this.steering&&(Zt=this.steering.filterParsedLevels(Zt),Zt.length!==Cr.length)){for(var Kr=0;Kr<Cr.length;Kr++)if(Cr[Kr].pathwayId===Zt[0].pathwayId){Sr=Cr[Kr];break}}this._levels=Zt;for(var Zr=0;Zr<Zt.length;Zr++)if(Zt[Zr]===Sr){this._firstLevel=Zr,this.log("manifest loaded, ".concat(Zt.length," level(s) found, first bitrate: ").concat(Sr.bitrate));break}var On=ht&&!st,Rn={levels:Zt,audioTracks:ve,subtitleTracks:Te,sessionData:Z.sessionData,sessionKeys:Z.sessionKeys,firstLevel:this._firstLevel,stats:Z.stats,audio:ht,video:st,altAudio:!On&&ve.some(function(Zn){return!!Zn.url})};this.hls.trigger(w.MANIFEST_PARSED,Rn),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}},{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(H){var Z=this._levels;if(Z.length===0)return;if(H<0||H>=Z.length){var ne=new Error("invalid level idx"),ve=H<0;if(this.hls.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.LEVEL_SWITCH_ERROR,level:H,fatal:ve,error:ne,reason:ne.message}),ve)return;H=Math.min(H,Z.length-1)}var Te=this.currentLevelIndex,ze=this.currentLevel,st=ze?ze.attrs["PATHWAY-ID"]:void 0,ht=Z[H],Zt=ht.attrs["PATHWAY-ID"];if(this.currentLevelIndex=H,this.currentLevel=ht,Te===H&&ht.details&&ze&&st===Zt)return;this.log("Switching to level ".concat(H).concat(Zt?" with Pathway "+Zt:""," from level ").concat(Te).concat(st?" with Pathway "+st:""));var Cr=E({},ht,{level:H,maxBitrate:ht.maxBitrate,attrs:ht.attrs,uri:ht.uri,urlId:ht.urlId});delete Cr._attrs,delete Cr._urlId,this.hls.trigger(w.LEVEL_SWITCHING,Cr);var Sr=ht.details;if(!Sr||Sr.live){var Kr=this.switchParams(ht.uri,ze==null?void 0:ze.details);this.loadPlaylist(Kr)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(H){this.manualLevelIndex=H,this._startLevel===void 0&&(this._startLevel=H),H!==-1&&(this.level=H)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(H){this._firstLevel=H}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var H=this.hls.config.startLevel;return H!==void 0?H:this._firstLevel}else return this._startLevel},set:function(H){this._startLevel=H}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===Ct.LEVEL&&Z.context.level===this.level&&this.checkRetry(Z)}},{key:"onFragLoaded",value:function(H,Z){var ne=Z.frag;if(ne!==void 0&&ne.type===gt.MAIN){var ve=this._levels[ne.level];ve!==void 0&&(ve.loadError=0)}}},{key:"onLevelLoaded",value:function(H,Z){var ne,ve=Z.level,Te=Z.details,ze=this._levels[ve];if(!ze){var st;this.warn("Invalid level index ".concat(ve)),(st=Z.deliveryDirectives)!=null&&st.skip&&(Te.deltaUpdateFailed=!0);return}ve===this.currentLevelIndex?(ze.fragmentError===0&&(ze.loadError=0),this.playlistLoaded(ve,Z,ze.details)):(ne=Z.deliveryDirectives)!=null&&ne.skip&&(Te.deltaUpdateFailed=!0)}},{key:"onAudioTrackSwitched",value:function(H,Z){var ne=this.currentLevel;if(!ne)return;var ve=this.hls.audioTracks[Z.id].groupId;if(ne.audioGroupIds&&ne.audioGroupId!==ve){for(var Te=-1,ze=0;ze<ne.audioGroupIds.length;ze++)if(ne.audioGroupIds[ze]===ve){Te=ze;break}Te!==-1&&Te!==ne.urlId&&(ne.urlId=Te,this.canLoad&&this.startLoad())}}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(m.a)(L.prototype),"loadPlaylist",this).call(this);var Z=this.currentLevelIndex,ne=this.currentLevel;if(ne&&this.shouldLoadPlaylist(ne)){var ve=ne.urlId,Te=ne.uri;if(H)try{Te=H.addDirectives(Te)}catch(st){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(st))}var ze=ne.attrs["PATHWAY-ID"];this.log("Loading level index ".concat(Z).concat((H==null?void 0:H.msn)!==void 0?" at sn "+H.msn+" part "+H.part:""," with").concat(ze?" Pathway "+ze:""," URI ").concat(ve+1,"/").concat(ne.url.length," ").concat(Te)),this.clearTimer(),this.hls.trigger(w.LEVEL_LOADING,{url:Te,level:Z,id:ve,deliveryDirectives:H||null})}}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(H){this.level=H,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=H)}},{key:"removeLevel",value:function(H,Z){var ne=this,ve=function(st,ht){return ht!==Z},Te=this._levels.filter(function(ze,st){return st!==H?!0:ze.url.length>1&&Z!==void 0?(ze.url=ze.url.filter(ve),ze.audioGroupIds&&(ze.audioGroupIds=ze.audioGroupIds.filter(ve)),ze.textGroupIds&&(ze.textGroupIds=ze.textGroupIds.filter(ve)),ze.urlId=0,!0):(ne.steering&&ne.steering.removeLevel(ze),!1)});this.hls.trigger(w.LEVELS_UPDATED,{levels:Te})}},{key:"onLevelsUpdated",value:function(H,Z){var ne=Z.levels;ne.forEach(function(ve,Te){var ze=ve.details;ze!=null&&ze.fragments&&ze.fragments.forEach(function(st){st.level=Te})}),this._levels=ne}}]),L}(mr);function ln(Ae,ee,L){if(!L)return;ee==="audio"?(Ae.audioGroupIds||(Ae.audioGroupIds=[]),Ae.audioGroupIds[Ae.url.length-1]=L):ee==="text"&&(Ae.textGroupIds||(Ae.textGroupIds=[]),Ae.textGroupIds[Ae.url.length-1]=L)}function Fn(Ae){var ee={};Ae.forEach(function(L){var W=L.groupId||"";L.id=ee[W]=ee[W]||0,ee[W]++})}var _t={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"},Or=function(){function Ae(ee){Object(r.a)(this,Ae),this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=ee,this._registerListeners()}return Object(a.a)(Ae,[{key:"_registerListeners",value:function(){var L=this.hls;L.on(w.BUFFER_APPENDED,this.onBufferAppended,this),L.on(w.FRAG_BUFFERED,this.onFragBuffered,this),L.on(w.FRAG_LOADED,this.onFragLoaded,this)}},{key:"_unregisterListeners",value:function(){var L=this.hls;L.off(w.BUFFER_APPENDED,this.onBufferAppended,this),L.off(w.FRAG_BUFFERED,this.onFragBuffered,this),L.off(w.FRAG_LOADED,this.onFragLoaded,this)}},{key:"destroy",value:function(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}},{key:"getAppendedFrag",value:function(L,W){var H=this.activePartLists[W];if(H)for(var Z=H.length;Z--;){var ne=H[Z];if(!ne)break;var ve=ne.end;if(ne.start<=L&&ve!==null&&L<=ve)return ne}return this.getBufferedFrag(L,W)}},{key:"getBufferedFrag",value:function(L,W){for(var H=this.fragments,Z=Object.keys(H),ne=Z.length;ne--;){var ve=H[Z[ne]];if((ve==null?void 0:ve.body.type)===W&&ve.buffered){var Te=ve.body;if(Te.start<=L&&L<=Te.end)return Te}}return null}},{key:"detectEvictedFragments",value:function(L,W,H,Z){var ne=this;this.timeRanges&&(this.timeRanges[L]=W);var ve=(Z==null?void 0:Z.fragment.sn)||-1;Object.keys(this.fragments).forEach(function(Te){var ze=ne.fragments[Te];if(!ze)return;if(ve>=ze.body.sn)return;if(!ze.buffered&&!ze.loaded){ze.body.type===H&&ne.removeFragment(ze.body);return}var st=ze.range[L];if(!st)return;st.time.some(function(ht){var Zt=!ne.isTimeBuffered(ht.startPTS,ht.endPTS,W);return Zt&&ne.removeFragment(ze.body),Zt})})}},{key:"detectPartialFragments",value:function(L){var W=this,H=this.timeRanges,Z=L.frag,ne=L.part;if(!H||Z.sn==="initSegment")return;var ve=rn(Z),Te=this.fragments[ve];if(!Te||Te.buffered&&Z.gap)return;var ze=!Z.relurl;if(Object.keys(H).forEach(function(ht){var Zt=Z.elementaryStreams[ht];if(!Zt)return;var Cr=H[ht],Sr=ze||Zt.partial===!0;Te.range[ht]=W.getBufferedTimes(Z,ne,Sr,Cr)}),Te.loaded=null,Object.keys(Te.range).length){Te.buffered=!0;var st=Te.body.endList=Z.endList||Te.body.endList;st&&(this.endListFragments[Te.body.type]=Te),Lr(Te)||this.removeParts(Z.sn-1,Z.type)}else this.removeFragment(Te.body)}},{key:"removeParts",value:function(L,W){var H=this.activePartLists[W];if(!H)return;this.activePartLists[W]=H.filter(function(Z){return Z.fragment.sn>=L})}},{key:"fragBuffered",value:function(L,W){var H=rn(L),Z=this.fragments[H];!Z&&W&&(Z=this.fragments[H]={body:L,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},L.gap&&(this.hasGaps=!0)),Z&&(Z.loaded=null,Z.buffered=!0)}},{key:"getBufferedTimes",value:function(L,W,H,Z){for(var ne={time:[],partial:H},ve=L.start,Te=L.end,ze=L.minEndPTS||Te,st=L.maxStartPTS||ve,ht=0;ht<Z.length;ht++){var Zt=Z.start(ht)-this.bufferPadding,Cr=Z.end(ht)+this.bufferPadding;if(st>=Zt&&ze<=Cr){ne.time.push({startPTS:Math.max(ve,Z.start(ht)),endPTS:Math.min(Te,Z.end(ht))});break}else if(ve<Cr&&Te>Zt)ne.partial=!0,ne.time.push({startPTS:Math.max(ve,Z.start(ht)),endPTS:Math.min(Te,Z.end(ht))});else if(Te<=Zt)break}return ne}},{key:"getPartialFragment",value:function(L){var W=null,H,Z,ne,ve=0,Te=this.bufferPadding,ze=this.fragments;return Object.keys(ze).forEach(function(st){var ht=ze[st];if(!ht)return;Lr(ht)&&(Z=ht.body.start-Te,ne=ht.body.end+Te,L>=Z&&L<=ne&&(H=Math.min(L-Z,ne-L),ve<=H&&(W=ht.body,ve=H)))}),W}},{key:"isEndListAppended",value:function(L){var W=this.endListFragments[L];return W!==void 0&&(W.buffered||Lr(W))}},{key:"getState",value:function(L){var W=rn(L),H=this.fragments[W];return H?H.buffered?Lr(H)?_t.PARTIAL:_t.OK:_t.APPENDING:_t.NOT_LOADED}},{key:"isTimeBuffered",value:function(L,W,H){for(var Z,ne,ve=0;ve<H.length;ve++){if(Z=H.start(ve)-this.bufferPadding,ne=H.end(ve)+this.bufferPadding,L>=Z&&W<=ne)return!0;if(W<=Z)return!1}return!1}},{key:"onFragLoaded",value:function(L,W){var H=W.frag,Z=W.part;if(H.sn==="initSegment"||H.bitrateTest)return;var ne=Z?null:W,ve=rn(H);this.fragments[ve]={body:H,appendedPTS:null,loaded:ne,buffered:!1,range:Object.create(null)}}},{key:"onBufferAppended",value:function(L,W){var H=this,Z=W.frag,ne=W.part,ve=W.timeRanges;if(Z.sn==="initSegment")return;var Te=Z.type;if(ne){var ze=this.activePartLists[Te];ze||(this.activePartLists[Te]=ze=[]),ze.push(ne)}this.timeRanges=ve,Object.keys(ve).forEach(function(st){var ht=ve[st];H.detectEvictedFragments(st,ht,Te,ne)})}},{key:"onFragBuffered",value:function(L,W){this.detectPartialFragments(W)}},{key:"hasFragment",value:function(L){var W=rn(L);return!!this.fragments[W]}},{key:"hasParts",value:function(L){var W;return!!((W=this.activePartLists[L])!=null&&W.length)}},{key:"removeFragmentsInRange",value:function(L,W,H,Z,ne){var ve=this;if(Z&&!this.hasGaps)return;Object.keys(this.fragments).forEach(function(Te){var ze=ve.fragments[Te];if(!ze)return;var st=ze.body;if(st.type!==H||Z&&!st.gap)return;st.start<W&&st.end>L&&(ze.buffered||ne)&&ve.removeFragment(st)})}},{key:"removeFragment",value:function(L){var W=rn(L);L.stats.loaded=0,L.clearElementaryStreamInfo();var H=this.activePartLists[L.type];if(H){var Z=L.sn;this.activePartLists[L.type]=H.filter(function(ne){return ne.fragment.sn!==Z})}delete this.fragments[W],L.endList&&delete this.endListFragments[L.type]}},{key:"removeAllFragments",value:function(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}]),Ae}();function Lr(Ae){var ee,L,W;return Ae.buffered&&(Ae.body.gap||((ee=Ae.range.video)==null?void 0:ee.partial)||((L=Ae.range.audio)==null?void 0:L.partial)||((W=Ae.range.audiovideo)==null?void 0:W.partial))}function rn(Ae){return"".concat(Ae.type,"_").concat(Ae.level,"_").concat(Ae.urlId,"_").concat(Ae.sn)}var xn=Math.pow(2,17),Ln=function(){function Ae(ee){Object(r.a)(this,Ae),this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=ee}return Object(a.a)(Ae,[{key:"destroy",value:function(){this.loader&&(this.loader.destroy(),this.loader=null)}},{key:"abort",value:function(){this.loader&&this.loader.abort()}},{key:"load",value:function(L,W){var H=this,Z=L.url;if(!Z)return Promise.reject(new Kn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:L,error:new Error("Fragment does not have a ".concat(Z?"part list":"url")),networkDetails:null}));this.abort();var ne=this.config,ve=ne.fLoader,Te=ne.loader;return new Promise(function(ze,st){if(H.loader&&H.loader.destroy(),L.gap)if(L.tagList.some(function(Kr){return Kr[0]==="GAP"})){st(ei(L));return}else L.gap=!1;var ht=H.loader=L.loader=ve?new ve(ne):new Te(ne),Zt=Sn(L),Cr=Ri(ne.fragLoadPolicy.default),Sr={loadPolicy:Cr,timeout:Cr.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:L.sn==="initSegment"?Infinity:xn};L.stats=ht.stats,ht.load(Zt,Sr,{onSuccess:function(Zr,On,Rn,Zn){H.resetLoader(L,ht);var wi=Zr.data;Rn.resetIV&&L.decryptdata&&(L.decryptdata.iv=new Uint8Array(wi.slice(0,16)),wi=wi.slice(16)),ze({frag:L,part:null,payload:wi,networkDetails:Zn})},onError:function(Zr,On,Rn,Zn){H.resetLoader(L,ht),st(new Kn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:L,response:b({url:Z,data:void 0},Zr),error:new Error("HTTP Error ".concat(Zr.code," ").concat(Zr.text)),networkDetails:Rn,stats:Zn}))},onAbort:function(Zr,On,Rn){H.resetLoader(L,ht),st(new Kn({type:O.NETWORK_ERROR,details:I.INTERNAL_ABORTED,fatal:!1,frag:L,error:new Error("Aborted"),networkDetails:Rn,stats:Zr}))},onTimeout:function(Zr,On,Rn){H.resetLoader(L,ht),st(new Kn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_TIMEOUT,fatal:!1,frag:L,error:new Error("Timeout after ".concat(Sr.timeout,"ms")),networkDetails:Rn,stats:Zr}))},onProgress:function(Zr,On,Rn,Zn){W&&W({frag:L,part:null,payload:Rn,networkDetails:Zn})}})})}},{key:"loadPart",value:function(L,W,H){var Z=this;this.abort();var ne=this.config,ve=ne.fLoader,Te=ne.loader;return new Promise(function(ze,st){if(Z.loader&&Z.loader.destroy(),L.gap||W.gap){st(ei(L,W));return}var ht=Z.loader=L.loader=ve?new ve(ne):new Te(ne),Zt=Sn(L,W),Cr=Ri(ne.fragLoadPolicy.default),Sr={loadPolicy:Cr,timeout:Cr.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:xn};W.stats=ht.stats,ht.load(Zt,Sr,{onSuccess:function(Zr,On,Rn,Zn){Z.resetLoader(L,ht),Z.updateStatsFromPart(L,W);var wi={frag:L,part:W,payload:Zr.data,networkDetails:Zn};H(wi),ze(wi)},onError:function(Zr,On,Rn,Zn){Z.resetLoader(L,ht),st(new Kn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:L,part:W,response:b({url:Zt.url,data:void 0},Zr),error:new Error("HTTP Error ".concat(Zr.code," ").concat(Zr.text)),networkDetails:Rn,stats:Zn}))},onAbort:function(Zr,On,Rn){L.stats.aborted=W.stats.aborted,Z.resetLoader(L,ht),st(new Kn({type:O.NETWORK_ERROR,details:I.INTERNAL_ABORTED,fatal:!1,frag:L,part:W,error:new Error("Aborted"),networkDetails:Rn,stats:Zr}))},onTimeout:function(Zr,On,Rn){Z.resetLoader(L,ht),st(new Kn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_TIMEOUT,fatal:!1,frag:L,part:W,error:new Error("Timeout after ".concat(Sr.timeout,"ms")),networkDetails:Rn,stats:Zr}))}})})}},{key:"updateStatsFromPart",value:function(L,W){var H=L.stats,Z=W.stats,ne=Z.total;if(H.loaded+=Z.loaded,ne){var ve=Math.round(L.duration/W.duration),Te=Math.min(Math.round(H.loaded/ne),ve),ze=ve-Te,st=ze*Math.round(H.loaded/Te);H.total=H.loaded+st}else H.total=Math.max(H.loaded,H.total);var ht=H.loading,Zt=Z.loading;ht.start?ht.first+=Zt.first-Zt.start:(ht.start=Zt.start,ht.first=Zt.first),ht.end=Zt.end}},{key:"resetLoader",value:function(L,W){L.loader=null,this.loader===W&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),W.destroy()}}]),Ae}();function Sn(Ae){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,L=ee||Ae,W={frag:Ae,part:ee,responseType:"arraybuffer",url:L.url,headers:{},rangeStart:0,rangeEnd:0},H=L.byteRangeStartOffset,Z=L.byteRangeEndOffset;if(T(H)&&T(Z)){var ne,ve=H,Te=Z;if(Ae.sn==="initSegment"&&((ne=Ae.decryptdata)==null?void 0:ne.method)==="AES-128"){var ze=Z-H;ze%16&&(Te=Z+(16-ze%16)),H!==0&&(W.resetIV=!0,ve=H-16)}W.rangeStart=ve,W.rangeEnd=Te}return W}function ei(Ae,ee){var L=new Error("GAP ".concat(Ae.gap?"tag":"attribute"," found")),W={type:O.MEDIA_ERROR,details:I.FRAG_GAP,fatal:!1,frag:Ae,error:L,networkDetails:null};return ee&&(W.part=ee),(ee||Ae).stats.aborted=!0,new Kn(W)}var Kn=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W){var H;return Object(r.a)(this,L),H=ee.call(this,W.error.message),H.data=void 0,H.data=W,H}return Object(a.a)(L)}(i(Error)),mi=function(){function Ae(ee){Object(r.a)(this,Ae),this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=ee}return Object(a.a)(Ae,[{key:"abort",value:function(L){for(var W in this.keyUriToKeyInfo){var H=this.keyUriToKeyInfo[W].loader;if(H){if(L&&L!==H.context.frag.type)return;H.abort()}}}},{key:"detach",value:function(){for(var L in this.keyUriToKeyInfo){var W=this.keyUriToKeyInfo[L];(W.mediaKeySessionContext||W.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[L]}}},{key:"destroy",value:function(){this.detach();for(var L in this.keyUriToKeyInfo){var W=this.keyUriToKeyInfo[L].loader;W&&W.destroy()}this.keyUriToKeyInfo={}}},{key:"createKeyLoadError",value:function(L){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I.KEY_LOAD_ERROR,H=arguments.length>2?arguments[2]:void 0,Z=arguments.length>3?arguments[3]:void 0,ne=arguments.length>4?arguments[4]:void 0;return new Kn({type:O.NETWORK_ERROR,details:W,fatal:!1,frag:L,response:ne,error:H,networkDetails:Z})}},{key:"loadClear",value:function(L,W){var H=this;if(this.emeController&&this.config.emeEnabled)for(var Z=L.sn,ne=L.cc,ve=function(){var st=W[Te];if(ne<=st.cc&&(Z==="initSegment"||st.sn==="initSegment"||Z<st.sn))return H.emeController.selectKeySystemFormat(st).then(function(ht){st.setKeyFormat(ht)}),1},Te=0;Te<W.length&&!ve();Te++);}},{key:"load",value:function(L){var W=this;return!L.decryptdata&&L.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(L).then(function(H){return W.loadInternal(L,H)}):this.loadInternal(L)}},{key:"loadInternal",value:function(L,W){var H,Z;W&&L.setKeyFormat(W);var ne=L.decryptdata;if(!ne){var ve=new Error(W?"Expected frag.decryptdata to be defined after setting format ".concat(W):"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(L,I.KEY_LOAD_ERROR,ve))}var Te=ne.uri;if(!Te)return Promise.reject(this.createKeyLoadError(L,I.KEY_LOAD_ERROR,new Error('Invalid key URI: "'.concat(Te,'"'))));var ze=this.keyUriToKeyInfo[Te];if((H=ze)!=null&&H.decryptdata.key)return ne.key=ze.decryptdata.key,Promise.resolve({frag:L,keyInfo:ze});if((Z=ze)!=null&&Z.keyLoadPromise){var st;switch((st=ze.mediaKeySessionContext)==null?void 0:st.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return ze.keyLoadPromise.then(function(ht){return ne.key=ht.keyInfo.decryptdata.key,{frag:L,keyInfo:ze}})}}ze=this.keyUriToKeyInfo[Te]={decryptdata:ne,keyLoadPromise:null,loader:null,mediaKeySessionContext:null};switch(ne.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return ne.keyFormat==="identity"?this.loadKeyHTTP(ze,L):this.loadKeyEME(ze,L);case"AES-128":return this.loadKeyHTTP(ze,L);default:return Promise.reject(this.createKeyLoadError(L,I.KEY_LOAD_ERROR,new Error('Key supplied with unsupported METHOD: "'.concat(ne.method,'"'))))}}},{key:"loadKeyEME",value:function(L,W){var H={frag:W,keyInfo:L};if(this.emeController&&this.config.emeEnabled){var Z=this.emeController.loadKey(H);if(Z)return(L.keyLoadPromise=Z.then(function(ne){return L.mediaKeySessionContext=ne,H})).catch(function(ne){throw L.keyLoadPromise=null,ne})}return Promise.resolve(H)}},{key:"loadKeyHTTP",value:function(L,W){var H=this,Z=this.config,ne=Z.loader,ve=new ne(Z);return W.keyLoader=L.loader=ve,L.keyLoadPromise=new Promise(function(Te,ze){var st={keyInfo:L,frag:W,responseType:"arraybuffer",url:L.decryptdata.uri},ht=Z.keyLoadPolicy.default,Zt={loadPolicy:ht,timeout:ht.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Cr={onSuccess:function(Kr,Zr,On,Rn){var Zn=On.frag,wi=On.keyInfo,ua=On.url;if(!Zn.decryptdata||wi!==H.keyUriToKeyInfo[ua])return ze(H.createKeyLoadError(Zn,I.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Rn));wi.decryptdata.key=Zn.decryptdata.key=new Uint8Array(Kr.data),Zn.keyLoader=null,wi.loader=null,Te({frag:Zn,keyInfo:wi})},onError:function(Kr,Zr,On,Rn){H.resetLoader(Zr),ze(H.createKeyLoadError(W,I.KEY_LOAD_ERROR,new Error("HTTP Error ".concat(Kr.code," loading key ").concat(Kr.text)),On,b({url:st.url,data:void 0},Kr)))},onTimeout:function(Kr,Zr,On){H.resetLoader(Zr),ze(H.createKeyLoadError(W,I.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),On))},onAbort:function(Kr,Zr,On){H.resetLoader(Zr),ze(H.createKeyLoadError(W,I.INTERNAL_ABORTED,new Error("key loading aborted"),On))}};ve.load(st,Zt,Cr)})}},{key:"resetLoader",value:function(L){var W=L.frag,H=L.keyInfo,Z=L.url,ne=H.loader;W.keyLoader===ne&&(W.keyLoader=null,H.loader=null),delete this.keyUriToKeyInfo[Z],ne&&ne.destroy()}}]),Ae}(),Fi=function(){function Ae(){Object(r.a)(this,Ae),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}return Object(a.a)(Ae,[{key:"destroy",value:function(){this.onHandlerDestroying(),this.onHandlerDestroyed()}},{key:"onHandlerDestroying",value:function(){this.clearNextTick(),this.clearInterval()}},{key:"onHandlerDestroyed",value:function(){}},{key:"hasInterval",value:function(){return!!this._tickInterval}},{key:"hasNextTick",value:function(){return!!this._tickTimer}},{key:"setInterval",value:function(L){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,L),!0)}},{key:"clearInterval",value:function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}},{key:"clearNextTick",value:function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}},{key:"tick",value:function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}},{key:"tickImmediate",value:function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}},{key:"doTick",value:function(){}}]),Ae}(),bi={length:0,start:function(){return 0},end:function(){return 0}},Ii=function(){function Ae(){Object(r.a)(this,Ae)}return Object(a.a)(Ae,null,[{key:"isBuffered",value:function(L,W){try{if(L){for(var H=Ae.getBuffered(L),Z=0;Z<H.length;Z++)if(W>=H.start(Z)&&W<=H.end(Z))return!0}}catch(ne){}return!1}},{key:"bufferInfo",value:function(L,W,H){try{if(L){var Z=Ae.getBuffered(L),ne=[],ve;for(ve=0;ve<Z.length;ve++)ne.push({start:Z.start(ve),end:Z.end(ve)});return this.bufferedInfo(ne,W,H)}}catch(Te){}return{len:0,start:W,end:W,nextStart:void 0}}},{key:"bufferedInfo",value:function(L,W,H){W=Math.max(0,W),L.sort(function(Zr,On){var Rn=Zr.start-On.start;return Rn||On.end-Zr.end});var Z=[];if(H)for(var ne=0;ne<L.length;ne++){var ve=Z.length;if(ve){var Te=Z[ve-1].end;L[ne].start-Te<H?L[ne].end>Te&&(Z[ve-1].end=L[ne].end):Z.push(L[ne])}else Z.push(L[ne])}else Z=L;for(var ze=0,st,ht=W,Zt=W,Cr=0;Cr<Z.length;Cr++){var Sr=Z[Cr].start,Kr=Z[Cr].end;if(W+H>=Sr&&W<Kr)ht=Sr,Zt=Kr,ze=Zt-W;else if(W+H<Sr){st=Sr;break}}return{len:ze,start:ht||0,end:Zt||0,nextStart:st}}},{key:"getBuffered",value:function(L){try{return L.buffered}catch(W){return U.log("failed to get media.buffered",W),bi}}}]),Ae}(),Vi=Object(a.a)(function Ae(ee,L,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,ne=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;Object(r.a)(this,Ae),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=ea(),this.buffering={audio:ea(),video:ea(),audiovideo:ea()},this.level=ee,this.sn=L,this.id=W,this.size=H,this.part=Z,this.partial=ne});function ea(){return{start:0,executeStart:0,executeEnd:0,end:0}}function Xi(Ae,ee){for(var L=null,W=0,H=Ae.length;W<H;W++){var Z=Ae[W];if(Z&&Z.cc===ee){L=Z;break}}return L}function zi(Ae,ee,L){return!!(ee.details&&(L.endCC>L.startCC||Ae&&Ae.cc<L.startCC))}function Hi(Ae,ee){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,W=Ae.fragments,H=ee.fragments;if(!H.length||!W.length){U.log("No fragments to align");return}var Z=Xi(W,H[0].cc);if(!Z||Z&&!Z.startPTS){U.log("No frag in previous level to align on");return}return Z}function Ji(Ae,ee){if(Ae){var L=Ae.start+ee;Ae.start=Ae.startPTS=L,Ae.endPTS=L+Ae.duration}}function ca(Ae,ee){for(var L=ee.fragments,W=0,H=L.length;W<H;W++)Ji(L[W],Ae);ee.fragmentHint&&Ji(ee.fragmentHint,Ae),ee.alignedSliding=!0}function Ca(Ae,ee,L){if(!ee)return;na(Ae,L,ee),!L.alignedSliding&&ee.details&&Pa(L,ee.details),!L.alignedSliding&&ee.details&&!L.skippedSegments&&di(ee.details,L)}function na(Ae,ee,L){if(zi(Ae,L,ee)){var W=Hi(L.details,ee);W&&T(W.start)&&(U.log("Adjusting PTS using last level due to CC increase within current level ".concat(ee.url)),ca(W.start,ee))}}function Pa(Ae,ee){if(!ee.fragments.length||!Ae.hasProgramDateTime||!ee.hasProgramDateTime)return;var L=ee.fragments[0].programDateTime,W=Ae.fragments[0].programDateTime,H=(W-L)/1e3+ee.fragments[0].start;H&&T(H)&&(U.log("Adjusting PTS using programDateTime delta ".concat(W-L,"ms, sliding:").concat(H.toFixed(3)," ").concat(Ae.url," ")),ca(H,Ae))}function La(Ae,ee){if(!Ae.hasProgramDateTime||!ee.hasProgramDateTime)return;var L=Ae.fragments,W=ee.fragments;if(!L.length||!W.length)return;var H=Math.round(W.length/2)-1,Z=W[H],ne=Xi(L,Z.cc)||L[Math.round(L.length/2)-1],ve=Z.programDateTime,Te=ne.programDateTime;if(ve===null||Te===null)return;var ze=(Te-ve)/1e3-(ne.start-Z.start);ca(ze,Ae)}var va=function(){function Ae(ee,L){Object(r.a)(this,Ae),this.subtle=void 0,this.aesIV=void 0,this.subtle=ee,this.aesIV=L}return Object(a.a)(Ae,[{key:"decrypt",value:function(L,W){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},W,L)}}]),Ae}(),ga=function(){function Ae(ee,L){Object(r.a)(this,Ae),this.subtle=void 0,this.key=void 0,this.subtle=ee,this.key=L}return Object(a.a)(Ae,[{key:"expandKey",value:function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}]),Ae}();function Oa(Ae){var ee=Ae.byteLength,L=ee&&new DataView(Ae.buffer).getUint8(ee-1);return L?Re(Ae,0,ee-L):Ae}var Aa=function(){function Ae(){Object(r.a)(this,Ae),this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}return Object(a.a)(Ae,[{key:"uint8ArrayToUint32Array_",value:function(L){for(var W=new DataView(L),H=new Uint32Array(4),Z=0;Z<4;Z++)H[Z]=W.getUint32(Z*4);return H}},{key:"initTable",value:function(){var L=this.sBox,W=this.invSBox,H=this.subMix,Z=H[0],ne=H[1],ve=H[2],Te=H[3],ze=this.invSubMix,st=ze[0],ht=ze[1],Zt=ze[2],Cr=ze[3],Sr=new Uint32Array(256),Kr=0,Zr=0,On=0;for(On=0;On<256;On++)On<128?Sr[On]=On<<1:Sr[On]=On<<1^283;for(On=0;On<256;On++){var Rn=Zr^Zr<<1^Zr<<2^Zr<<3^Zr<<4;Rn=Rn>>>8^Rn&255^99,L[Kr]=Rn,W[Rn]=Kr;var Zn=Sr[Kr],wi=Sr[Zn],ua=Sr[wi],Gi=Sr[Rn]*257^Rn*16843008;Z[Kr]=Gi<<24|Gi>>>8,ne[Kr]=Gi<<16|Gi>>>16,ve[Kr]=Gi<<8|Gi>>>24,Te[Kr]=Gi,Gi=ua*16843009^wi*65537^Zn*257^Kr*16843008,st[Rn]=Gi<<24|Gi>>>8,ht[Rn]=Gi<<16|Gi>>>16,Zt[Rn]=Gi<<8|Gi>>>24,Cr[Rn]=Gi,Kr?(Kr=Zn^Sr[Sr[Sr[ua^Zn]]],Zr^=Sr[Sr[Zr]]):Kr=Zr=1}}},{key:"expandKey",value:function(L){for(var W=this.uint8ArrayToUint32Array_(L),H=!0,Z=0;Z<W.length&&H;)H=W[Z]===this.key[Z],Z++;if(H)return;this.key=W;var ne=this.keySize=W.length;if(ne!==4&&ne!==6&&ne!==8)throw new Error("Invalid aes key size="+ne);var ve=this.ksRows=(ne+6+1)*4,Te,ze,st=this.keySchedule=new Uint32Array(ve),ht=this.invKeySchedule=new Uint32Array(ve),Zt=this.sBox,Cr=this.rcon,Sr=this.invSubMix,Kr=Sr[0],Zr=Sr[1],On=Sr[2],Rn=Sr[3],Zn,wi;for(Te=0;Te<ve;Te++){if(Te<ne){Zn=st[Te]=W[Te];continue}wi=Zn,Te%ne===0?(wi=wi<<8|wi>>>24,wi=Zt[wi>>>24]<<24|Zt[wi>>>16&255]<<16|Zt[wi>>>8&255]<<8|Zt[wi&255],wi^=Cr[Te/ne|0]<<24):ne>6&&Te%ne===4&&(wi=Zt[wi>>>24]<<24|Zt[wi>>>16&255]<<16|Zt[wi>>>8&255]<<8|Zt[wi&255]),st[Te]=Zn=(st[Te-ne]^wi)>>>0}for(ze=0;ze<ve;ze++)Te=ve-ze,ze&3?wi=st[Te]:wi=st[Te-4],ze<4||Te<=4?ht[ze]=wi:ht[ze]=Kr[Zt[wi>>>24]]^Zr[Zt[wi>>>16&255]]^On[Zt[wi>>>8&255]]^Rn[Zt[wi&255]],ht[ze]=ht[ze]>>>0}},{key:"networkToHostOrderSwap",value:function(L){return L<<24|(L&65280)<<8|(L&16711680)>>8|L>>>24}},{key:"decrypt",value:function(L,W,H){for(var Z=this.keySize+6,ne=this.invKeySchedule,ve=this.invSBox,Te=this.invSubMix,ze=Te[0],st=Te[1],ht=Te[2],Zt=Te[3],Cr=this.uint8ArrayToUint32Array_(H),Sr=Cr[0],Kr=Cr[1],Zr=Cr[2],On=Cr[3],Rn=new Int32Array(L),Zn=new Int32Array(Rn.length),wi,ua,Gi,Zi,ka,Ga,Ba,Sa,Go,bs,ys,Cs,js,ws,Hs=this.networkToHostOrderSwap;W<Rn.length;){for(Go=Hs(Rn[W]),bs=Hs(Rn[W+1]),ys=Hs(Rn[W+2]),Cs=Hs(Rn[W+3]),ka=Go^ne[0],Ga=Cs^ne[1],Ba=ys^ne[2],Sa=bs^ne[3],js=4,ws=1;ws<Z;ws++)wi=ze[ka>>>24]^st[Ga>>16&255]^ht[Ba>>8&255]^Zt[Sa&255]^ne[js],ua=ze[Ga>>>24]^st[Ba>>16&255]^ht[Sa>>8&255]^Zt[ka&255]^ne[js+1],Gi=ze[Ba>>>24]^st[Sa>>16&255]^ht[ka>>8&255]^Zt[Ga&255]^ne[js+2],Zi=ze[Sa>>>24]^st[ka>>16&255]^ht[Ga>>8&255]^Zt[Ba&255]^ne[js+3],ka=wi,Ga=ua,Ba=Gi,Sa=Zi,js=js+4;wi=ve[ka>>>24]<<24^ve[Ga>>16&255]<<16^ve[Ba>>8&255]<<8^ve[Sa&255]^ne[js],ua=ve[Ga>>>24]<<24^ve[Ba>>16&255]<<16^ve[Sa>>8&255]<<8^ve[ka&255]^ne[js+1],Gi=ve[Ba>>>24]<<24^ve[Sa>>16&255]<<16^ve[ka>>8&255]<<8^ve[Ga&255]^ne[js+2],Zi=ve[Sa>>>24]<<24^ve[ka>>16&255]<<16^ve[Ga>>8&255]<<8^ve[Ba&255]^ne[js+3],Zn[W]=Hs(wi^Sr),Zn[W+1]=Hs(Zi^Kr),Zn[W+2]=Hs(Gi^Zr),Zn[W+3]=Hs(ua^On),Sr=Go,Kr=bs,Zr=ys,On=Cs,W=W+4}return Zn.buffer}}]),Ae}(),Xa=16,_a=function(){function Ae(ee){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=L.removePKCS7Padding,H=W===void 0?!0:W;if(Object(r.a)(this,Ae),this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=ee.enableSoftwareAES,this.removePKCS7Padding=H,H)try{var Z=self.crypto;Z&&(this.subtle=Z.subtle||Z.webkitSubtle)}catch(ne){}this.subtle===null&&(this.useSoftware=!0)}return Object(a.a)(Ae,[{key:"destroy",value:function(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}},{key:"isSync",value:function(){return this.useSoftware}},{key:"flush",value:function(){var L=this.currentResult,W=this.remainderData;if(!L||W)return this.reset(),null;var H=new Uint8Array(L);return this.reset(),this.removePKCS7Padding?Oa(H):H}},{key:"reset",value:function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}},{key:"decrypt",value:function(L,W,H){var Z=this;return this.useSoftware?new Promise(function(ne,ve){Z.softwareDecrypt(new Uint8Array(L),W,H);var Te=Z.flush();Te?ne(Te.buffer):ve(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(L),W,H)}},{key:"softwareDecrypt",value:function(L,W,H){var Z=this.currentIV,ne=this.currentResult,ve=this.remainderData;this.logOnce("JS AES decrypt"),ve&&(L=xt(ve,L),this.remainderData=null);var Te=this.getValidChunk(L);if(!Te.length)return null;Z&&(H=Z);var ze=this.softwareDecrypter;ze||(ze=this.softwareDecrypter=new Aa),ze.expandKey(W);var st=ne;return this.currentResult=ze.decrypt(Te.buffer,0,H),this.currentIV=Re(Te,-16).buffer,st||null}},{key:"webCryptoDecrypt",value:function(L,W,H){var Z=this,ne=this.subtle;return(this.key!==W||!this.fastAesKey)&&(this.key=W,this.fastAesKey=new ga(ne,W)),this.fastAesKey.expandKey().then(function(ve){if(!ne)return Promise.reject(new Error("web crypto not initialized"));Z.logOnce("WebCrypto AES decrypt");var Te=new va(ne,new Uint8Array(H));return Te.decrypt(L.buffer,ve)}).catch(function(ve){return U.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, ".concat(ve.name,": ").concat(ve.message)),Z.onWebCryptoError(L,W,H)})}},{key:"onWebCryptoError",value:function(L,W,H){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(L,W,H);var Z=this.flush();if(Z)return Z.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}},{key:"getValidChunk",value:function(L){var W=L,H=L.length-L.length%Xa;return H!==L.length&&(W=Re(L,0,H),this.remainderData=Re(L,H)),W}},{key:"logOnce",value:function(L){if(!this.logEnabled)return;U.log("[decrypter]: ".concat(L)),this.logEnabled=!1}}]),Ae}(),Va={toString:function(ee){for(var L="",W=ee.length,H=0;H<W;H++)L+="[".concat(ee.start(H).toFixed(3),"-").concat(ee.end(H).toFixed(3),"]");return L}},Bi={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},io=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H,Z,ne,ve){var Te;return Object(r.a)(this,L),Te=ee.call(this),Te.hls=void 0,Te.fragPrevious=null,Te.fragCurrent=null,Te.fragmentTracker=void 0,Te.transmuxer=null,Te._state=Bi.STOPPED,Te.playlistType=void 0,Te.media=null,Te.mediaBuffer=null,Te.config=void 0,Te.bitrateTest=!1,Te.lastCurrentTime=0,Te.nextLoadPosition=0,Te.startPosition=0,Te.startTimeOffset=null,Te.loadedmetadata=!1,Te.retryDate=0,Te.levels=null,Te.fragmentLoader=void 0,Te.keyLoader=void 0,Te.levelLastLoaded=null,Te.startFragRequested=!1,Te.decrypter=void 0,Te.initPTS=[],Te.onvseeking=null,Te.onvended=null,Te.logPrefix="",Te.log=void 0,Te.warn=void 0,Te.playlistType=ve,Te.logPrefix=ne,Te.log=U.log.bind(U,"".concat(ne,":")),Te.warn=U.warn.bind(U,"".concat(ne,":")),Te.hls=W,Te.fragmentLoader=new Ln(W.config),Te.keyLoader=Z,Te.fragmentTracker=H,Te.config=W.config,Te.decrypter=new _a(W.config),W.on(w.MANIFEST_LOADED,Te.onManifestLoaded,Object(v.a)(Te)),Te}return Object(a.a)(L,[{key:"doTick",value:function(){this.onTickEnd()}},{key:"onTickEnd",value:function(){}},{key:"startLoad",value:function(H){}},{key:"stopLoad",value:function(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);var H=this.fragCurrent;H!=null&&H.loader&&(H.abortRequests(),this.fragmentTracker.removeFragment(H)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Bi.STOPPED}},{key:"_streamEnded",value:function(H,Z){if(Z.live||H.nextStart||!H.end||!this.media)return!1;var ne=Z.partList;if(ne!=null&&ne.length){var ve=ne[ne.length-1],Te=Ii.isBuffered(this.media,ve.start+ve.duration/2);return Te}var ze=Z.fragments[Z.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(ze)}},{key:"getLevelDetails",value:function(){if(this.levels&&this.levelLastLoaded!==null){var H;return(H=this.levels[this.levelLastLoaded])==null?void 0:H.details}}},{key:"onMediaAttached",value:function(H,Z){var ne=this.media=this.mediaBuffer=Z.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),ne.addEventListener("seeking",this.onvseeking),ne.addEventListener("ended",this.onvended);var ve=this.config;this.levels&&ve.autoStartLoad&&this.state===Bi.STOPPED&&this.startLoad(ve.startPosition)}},{key:"onMediaDetaching",value:function(){var H=this.media;H!=null&&H.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),H&&this.onvseeking&&this.onvended&&(H.removeEventListener("seeking",this.onvseeking),H.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}},{key:"onMediaSeeking",value:function(){var H=this.config,Z=this.fragCurrent,ne=this.media,ve=this.mediaBuffer,Te=this.state,ze=ne?ne.currentTime:0,st=Ii.bufferInfo(ve||ne,ze,H.maxBufferHole);if(this.log("media seeking to ".concat(T(ze)?ze.toFixed(3):ze,", state: ").concat(Te)),this.state===Bi.ENDED)this.resetLoadingState();else if(Z){var ht=H.maxFragLookUpTolerance,Zt=Z.start-ht,Cr=Z.start+Z.duration+ht;if(!st.len||Cr<st.start||Zt>st.end){var Sr=ze>Cr;(ze<Zt||Sr)&&(Sr&&Z.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),Z.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}ne&&(this.fragmentTracker.removeFragmentsInRange(ze,Infinity,this.playlistType,!0),this.lastCurrentTime=ze),!this.loadedmetadata&&!st.len&&(this.nextLoadPosition=this.startPosition=ze),this.tickImmediate()}},{key:"onMediaEnded",value:function(){this.startPosition=this.lastCurrentTime=0}},{key:"onManifestLoaded",value:function(H,Z){this.startTimeOffset=Z.startTimeOffset,this.initPTS=[]}},{key:"onHandlerDestroying",value:function(){this.stopLoad(),Object(t.a)(Object(m.a)(L.prototype),"onHandlerDestroying",this).call(this)}},{key:"onHandlerDestroyed",value:function(){this.state=Bi.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,Object(t.a)(Object(m.a)(L.prototype),"onHandlerDestroyed",this).call(this)}},{key:"loadFragment",value:function(H,Z,ne){this._loadFragForPlayback(H,Z,ne)}},{key:"_loadFragForPlayback",value:function(H,Z,ne){var ve=this,Te=function(st){if(ve.fragContextChanged(H)){ve.warn("Fragment ".concat(H.sn).concat(st.part?" p: "+st.part.index:""," of level ").concat(H.level," was dropped during download.")),ve.fragmentTracker.removeFragment(H);return}H.stats.chunkCount++,ve._handleFragmentLoadProgress(st)};this._doFragLoad(H,Z,ne,Te).then(function(ze){if(!ze)return;var st=ve.state;if(ve.fragContextChanged(H)){(st===Bi.FRAG_LOADING||!ve.fragCurrent&&st===Bi.PARSING)&&(ve.fragmentTracker.removeFragment(H),ve.state=Bi.IDLE);return}"payload"in ze&&(ve.log("Loaded fragment ".concat(H.sn," of level ").concat(H.level)),ve.hls.trigger(w.FRAG_LOADED,ze)),ve._handleFragmentLoadComplete(ze)}).catch(function(ze){if(ve.state===Bi.STOPPED||ve.state===Bi.ERROR)return;ve.warn(ze),ve.resetFragmentLoading(H)})}},{key:"clearTrackerIfNeeded",value:function(H){var Z,ne=this.fragmentTracker,ve=ne.getState(H);if(ve===_t.APPENDING){var Te=H.type,ze=this.getFwdBufferInfo(this.mediaBuffer,Te),st=Math.max(H.duration,ze?ze.len:this.config.maxBufferLength);this.reduceMaxBufferLength(st)&&ne.removeFragment(H)}else((Z=this.mediaBuffer)==null?void 0:Z.buffered.length)===0?ne.removeAllFragments():ne.hasParts(H.type)&&(ne.detectPartialFragments({frag:H,part:null,stats:H.stats,id:H.type}),ne.getState(H)===_t.PARTIAL&&ne.removeFragment(H))}},{key:"checkLiveUpdate",value:function(H){if(H.updated&&!H.live){var Z=H.fragments[H.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:Z,part:null,stats:Z.stats,id:Z.type})}H.fragments[0]||(H.deltaUpdateFailed=!0)}},{key:"flushMainBuffer",value:function(H,Z){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!(H-Z))return;var ve={startOffset:H,endOffset:Z,type:ne};this.hls.trigger(w.BUFFER_FLUSHING,ve)}},{key:"_loadInitSegment",value:function(H,Z){var ne=this;this._doFragLoad(H,Z).then(function(ve){if(!ve||ne.fragContextChanged(H)||!ne.levels)throw new Error("init load aborted");return ve}).then(function(ve){var Te=ne.hls,ze=ve.payload,st=H.decryptdata;if(ze&&ze.byteLength>0&&st&&st.key&&st.iv&&st.method==="AES-128"){var ht=self.performance.now();return ne.decrypter.decrypt(new Uint8Array(ze),st.key.buffer,st.iv.buffer).catch(function(Zt){throw Te.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_DECRYPT_ERROR,fatal:!1,error:Zt,reason:Zt.message,frag:H}),Zt}).then(function(Zt){var Cr=self.performance.now();return Te.trigger(w.FRAG_DECRYPTED,{frag:H,payload:Zt,stats:{tstart:ht,tdecrypt:Cr}}),ve.payload=Zt,ve})}return ve}).then(function(ve){var Te=ne.fragCurrent,ze=ne.hls,st=ne.levels;if(!st)throw new Error("init load aborted, missing levels");var ht=H.stats;ne.state=Bi.IDLE,Z.fragmentError=0,H.data=new Uint8Array(ve.payload),ht.parsing.start=ht.buffering.start=self.performance.now(),ht.parsing.end=ht.buffering.end=self.performance.now(),ve.frag===Te&&ze.trigger(w.FRAG_BUFFERED,{stats:ht,frag:Te,part:null,id:H.type}),ne.tick()}).catch(function(ve){if(ne.state===Bi.STOPPED||ne.state===Bi.ERROR)return;ne.warn(ve),ne.resetFragmentLoading(H)})}},{key:"fragContextChanged",value:function(H){var Z=this.fragCurrent;return!H||!Z||H.level!==Z.level||H.sn!==Z.sn||H.urlId!==Z.urlId}},{key:"fragBufferedComplete",value:function(H,Z){var ne,ve,Te,ze,st=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log("Buffered ".concat(H.type," sn: ").concat(H.sn).concat(Z?" part: "+Z.index:""," of ").concat(this.playlistType===gt.MAIN?"level":"track"," ").concat(H.level," (frag:[").concat(((ne=H.startPTS)!=null?ne:NaN).toFixed(3),"-").concat(((ve=H.endPTS)!=null?ve:NaN).toFixed(3),"] > buffer:").concat(st?Va.toString(Ii.getBuffered(st)):"(detached)",")")),this.state=Bi.IDLE,!st)return;!this.loadedmetadata&&H.type==gt.MAIN&&st.buffered.length&&((Te=this.fragCurrent)==null?void 0:Te.sn)===((ze=this.fragPrevious)==null?void 0:ze.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick()}},{key:"seekToStartPos",value:function(){}},{key:"_handleFragmentLoadComplete",value:function(H){var Z=this.transmuxer;if(!Z)return;var ne=H.frag,ve=H.part,Te=H.partsLoaded,ze=!Te||Te.length===0||Te.some(function(ht){return!ht}),st=new Vi(ne.level,ne.sn,ne.stats.chunkCount+1,0,ve?ve.index:-1,!ze);Z.flush(st)}},{key:"_handleFragmentLoadProgress",value:function(H){}},{key:"_doFragLoad",value:function(H,Z){var ne=this,ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Te=arguments.length>3?arguments[3]:void 0,ze,st=Z==null?void 0:Z.details;if(!this.levels||!st)throw new Error("frag load aborted, missing level".concat(st?"":" detail","s"));var ht=null;if(H.encrypted&&!((ze=H.decryptdata)!=null&&ze.key)?(this.log("Loading key for ".concat(H.sn," of [").concat(st.startSN,"-").concat(st.endSN,"], ").concat(this.logPrefix==="[stream-controller]"?"level":"track"," ").concat(H.level)),this.state=Bi.KEY_LOADING,this.fragCurrent=H,ht=this.keyLoader.load(H).then(function(Rn){if(!ne.fragContextChanged(Rn.frag))return ne.hls.trigger(w.KEY_LOADED,Rn),ne.state===Bi.KEY_LOADING&&(ne.state=Bi.IDLE),Rn}),this.hls.trigger(w.KEY_LOADING,{frag:H}),this.fragCurrent===null&&(ht=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!H.encrypted&&st.encryptedFragments.length&&this.keyLoader.loadClear(H,st.encryptedFragments),ve=Math.max(H.start,ve||0),this.config.lowLatencyMode&&H.sn!=="initSegment"){var Zt=st.partList;if(Zt&&Te){ve>H.end&&st.fragmentHint&&(H=st.fragmentHint);var Cr=this.getNextPart(Zt,H,ve);if(Cr>-1){var Sr=Zt[Cr];this.log("Loading part sn: ".concat(H.sn," p: ").concat(Sr.index," cc: ").concat(H.cc," of playlist [").concat(st.startSN,"-").concat(st.endSN,"] parts [0-").concat(Cr,"-").concat(Zt.length-1,"] ").concat(this.logPrefix==="[stream-controller]"?"level":"track",": ").concat(H.level,", target: ").concat(parseFloat(ve.toFixed(3)))),this.nextLoadPosition=Sr.start+Sr.duration,this.state=Bi.FRAG_LOADING;var Kr;return ht?Kr=ht.then(function(Rn){return!Rn||ne.fragContextChanged(Rn.frag)?null:ne.doFragPartsLoad(H,Sr,Z,Te)}).catch(function(Rn){return ne.handleFragLoadError(Rn)}):Kr=this.doFragPartsLoad(H,Sr,Z,Te).catch(function(Rn){return ne.handleFragLoadError(Rn)}),this.hls.trigger(w.FRAG_LOADING,{frag:H,part:Sr,targetBufferTime:ve}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):Kr}else if(!H.url||this.loadedEndOfParts(Zt,ve))return Promise.resolve(null)}}this.log("Loading fragment ".concat(H.sn," cc: ").concat(H.cc," ").concat(st?"of ["+st.startSN+"-"+st.endSN+"] ":"").concat(this.logPrefix==="[stream-controller]"?"level":"track",": ").concat(H.level,", target: ").concat(parseFloat(ve.toFixed(3)))),T(H.sn)&&!this.bitrateTest&&(this.nextLoadPosition=H.start+H.duration),this.state=Bi.FRAG_LOADING;var Zr=this.config.progressive,On;return Zr&&ht?On=ht.then(function(Rn){return!Rn||ne.fragContextChanged(Rn==null?void 0:Rn.frag)?null:ne.fragmentLoader.load(H,Te)}).catch(function(Rn){return ne.handleFragLoadError(Rn)}):On=Promise.all([this.fragmentLoader.load(H,Zr?Te:void 0),ht]).then(function(Rn){var Zn=Object(x.a)(Rn,1),wi=Zn[0];return!Zr&&wi&&Te&&Te(wi),wi}).catch(function(Rn){return ne.handleFragLoadError(Rn)}),this.hls.trigger(w.FRAG_LOADING,{frag:H,targetBufferTime:ve}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):On}},{key:"doFragPartsLoad",value:function(H,Z,ne,ve){var Te=this;return new Promise(function(ze,st){var ht,Zt=[],Cr=(ht=ne.details)==null?void 0:ht.partList,Sr=function Kr(Zr){Te.fragmentLoader.loadPart(H,Zr,ve).then(function(On){Zt[Zr.index]=On;var Rn=On.part;Te.hls.trigger(w.FRAG_LOADED,On);var Zn=Qn(ne,H.sn,Zr.index+1)||qn(Cr,H.sn,Zr.index+1);if(Zn)Kr(Zn);else return ze({frag:H,part:Rn,partsLoaded:Zt})}).catch(st)};Sr(Z)})}},{key:"handleFragLoadError",value:function(H){if("data"in H){var Z=H.data;H.data&&Z.details===I.INTERNAL_ABORTED?this.handleFragLoadAborted(Z.frag,Z.part):this.hls.trigger(w.ERROR,Z)}else this.hls.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,err:H,error:H,fatal:!0});return null}},{key:"_handleTransmuxerFlush",value:function(H){var Z=this.getCurrentContext(H);if(!Z||this.state!==Bi.PARSING){!this.fragCurrent&&this.state!==Bi.STOPPED&&this.state!==Bi.ERROR&&(this.state=Bi.IDLE);return}var ne=Z.frag,ve=Z.part,Te=Z.level,ze=self.performance.now();ne.stats.parsing.end=ze,ve&&(ve.stats.parsing.end=ze),this.updateLevelTiming(ne,ve,Te,H.partial)}},{key:"getCurrentContext",value:function(H){var Z=this.levels,ne=this.fragCurrent,ve=H.level,Te=H.sn,ze=H.part;if(!(Z!=null&&Z[ve]))return this.warn("Levels object was unset while buffering fragment ".concat(Te," of level ").concat(ve,". The current chunk will not be buffered.")),null;var st=Z[ve],ht=ze>-1?Qn(st,Te,ze):null,Zt=ht?ht.fragment:In(st,Te,ne);return Zt?(ne&&ne!==Zt&&(Zt.stats=ne.stats),{frag:Zt,part:ht,level:st}):null}},{key:"bufferFragmentData",value:function(H,Z,ne,ve,Te){var ze;if(!H||this.state!==Bi.PARSING)return;var st=H.data1,ht=H.data2,Zt=st;if(st&&ht&&(Zt=xt(st,ht)),!((ze=Zt)!=null&&ze.length))return;var Cr={type:H.type,frag:Z,part:ne,chunkMeta:ve,parent:Z.type,data:Zt};if(this.hls.trigger(w.BUFFER_APPENDING,Cr),H.dropped&&H.independent&&!ne){if(Te)return;this.flushBufferGap(Z)}}},{key:"flushBufferGap",value:function(H){var Z=this.media;if(!Z)return;if(!Ii.isBuffered(Z,Z.currentTime)){this.flushMainBuffer(0,H.start);return}var ne=Z.currentTime,ve=Ii.bufferInfo(Z,ne,0),Te=H.duration,ze=Math.min(this.config.maxFragLookUpTolerance*2,Te*.25),st=Math.max(Math.min(H.start-ze,ve.end-ze),ne+ze);H.start-st>ze&&this.flushMainBuffer(st,H.start)}},{key:"getFwdBufferInfo",value:function(H,Z){var ne=this.getLoadPosition();return T(ne)?this.getFwdBufferInfoAtPos(H,ne,Z):null}},{key:"getFwdBufferInfoAtPos",value:function(H,Z,ne){var ve=this.config.maxBufferHole,Te=Ii.bufferInfo(H,Z,ve);if(Te.len===0&&Te.nextStart!==void 0){var ze=this.fragmentTracker.getBufferedFrag(Z,ne);if(ze&&Te.nextStart<ze.end)return Ii.bufferInfo(H,Z,Math.max(Te.nextStart,ve))}return Te}},{key:"getMaxBufferLength",value:function(H){var Z=this.config,ne;return H?ne=Math.max(8*Z.maxBufferSize/H,Z.maxBufferLength):ne=Z.maxBufferLength,Math.min(ne,Z.maxMaxBufferLength)}},{key:"reduceMaxBufferLength",value:function(H){var Z=this.config,ne=H||Z.maxBufferLength;return Z.maxMaxBufferLength>=ne?(Z.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to ".concat(Z.maxMaxBufferLength,"s")),!0):!1}},{key:"getAppendedFrag",value:function(H){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gt.MAIN,ne=this.fragmentTracker.getAppendedFrag(H,gt.MAIN);return ne&&"fragment"in ne?ne.fragment:ne}},{key:"getNextFragment",value:function(H,Z){var ne=Z.fragments,ve=ne.length;if(!ve)return null;var Te=this.config,ze=ne[0].start,st;if(Z.live){var ht=Te.initialLiveManifestSize;if(ve<ht)return this.warn("Not enough fragments to start playback (have: ".concat(ve,", need: ").concat(ht,")")),null;!Z.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(st=this.getInitialLiveFragment(Z,ne),this.startPosition=st?this.hls.liveSyncPosition||st.start:H)}else H<=ze&&(st=ne[0]);if(!st){var Zt=Te.lowLatencyMode?Z.partEnd:Z.fragmentEnd;st=this.getFragmentAtPosition(H,Zt,Z)}return this.mapToInitFragWhenRequired(st)}},{key:"isLoopLoading",value:function(H,Z){var ne=this.fragmentTracker.getState(H);return(ne===_t.OK||ne===_t.PARTIAL&&!!H.gap)&&this.nextLoadPosition>Z}},{key:"getNextFragmentLoopLoading",value:function(H,Z,ne,ve,Te){var ze=H.gap,st=this.getNextFragment(this.nextLoadPosition,Z);if(st===null)return st;if(H=st,ze&&H&&!H.gap&&ne.nextStart){var ht=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,ne.nextStart,ve);if(ht!==null&&ne.len+ht.len>=Te)return this.log('buffer full after gaps in "'.concat(ve,'" playlist starting at sn: ').concat(H.sn)),null}return H}},{key:"mapToInitFragWhenRequired",value:function(H){return H!=null&&H.initSegment&&!(H!=null&&H.initSegment.data)&&!this.bitrateTest?H.initSegment:H}},{key:"getNextPart",value:function(H,Z,ne){for(var ve=-1,Te=!1,ze=!0,st=0,ht=H.length;st<ht;st++){var Zt=H[st];if(ze=ze&&!Zt.independent,ve>-1&&ne<Zt.start)break;var Cr=Zt.loaded;Cr?ve=-1:(Te||Zt.independent||ze)&&Zt.fragment===Z&&(ve=st),Te=Cr}return ve}},{key:"loadedEndOfParts",value:function(H,Z){var ne=H[H.length-1];return ne&&Z>ne.start&&ne.loaded}},{key:"getInitialLiveFragment",value:function(H,Z){var ne=this.fragPrevious,ve=null;if(ne){if(H.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: ".concat(ne.programDateTime)),ve=ba(Z,ne.endProgramDateTime,this.config.maxFragLookUpTolerance)),!ve){var Te=ne.sn+1;if(Te>=H.startSN&&Te<=H.endSN){var ze=Z[Te-H.startSN];ne.cc===ze.cc&&(ve=ze,this.log("Live playlist, switching playlist, load frag with next SN: ".concat(ve.sn)))}ve||(ve=ha(Z,ne.cc),ve&&this.log("Live playlist, switching playlist, load frag with same CC: ".concat(ve.sn)))}}else{var st=this.hls.liveSyncPosition;st!==null&&(ve=this.getFragmentAtPosition(st,this.bitrateTest?H.fragmentEnd:H.edge,H))}return ve}},{key:"getFragmentAtPosition",value:function(H,Z,ne){var ve=this.config,Te=this.fragPrevious,ze=ne.fragments,st=ne.endSN,ht=ne.fragmentHint,Zt=ve.maxFragLookUpTolerance,Cr=ne.partList,Sr=!!(ve.lowLatencyMode&&Cr!=null&&Cr.length&&ht);Sr&&ht&&!this.bitrateTest&&(ze=ze.concat(ht),st=ht.sn);var Kr;if(H<Z){var Zr=H>Z-Zt?0:Zt;Kr=yi(Te,ze,H,Zr)}else Kr=ze[ze.length-1];if(Kr){var On=Kr.sn-ne.startSN,Rn=this.fragmentTracker.getState(Kr);if((Rn===_t.OK||Rn===_t.PARTIAL&&Kr.gap)&&(Te=Kr),Te&&Kr.sn===Te.sn&&(!Sr||Cr[0].fragment.sn>Kr.sn)){var Zn=Te&&Kr.level===Te.level;if(Zn){var wi=ze[On+1];Kr.sn<st&&this.fragmentTracker.getState(wi)!==_t.OK?Kr=wi:Kr=null}}}return Kr}},{key:"synchronizeToLiveEdge",value:function(H){var Z=this.config,ne=this.media;if(!ne)return;var ve=this.hls.liveSyncPosition,Te=ne.currentTime,ze=H.fragments[0].start,st=H.edge,ht=Te>=ze-Z.maxFragLookUpTolerance&&Te<=st;if(ve!==null&&ne.duration>ve&&(Te<ve||!ht)){var Zt=Z.liveMaxLatencyDuration!==void 0?Z.liveMaxLatencyDuration:Z.liveMaxLatencyDurationCount*H.targetduration;(!ht&&ne.readyState<4||Te<st-Zt)&&(this.loadedmetadata||(this.nextLoadPosition=ve),ne.readyState&&(this.warn("Playback: ".concat(Te.toFixed(3)," is located too far from the end of live sliding playlist: ").concat(st,", reset currentTime to : ").concat(ve.toFixed(3))),ne.currentTime=ve))}}},{key:"alignPlaylists",value:function(H,Z){var ne=this.levels,ve=this.levelLastLoaded,Te=this.fragPrevious,ze=ve!==null?ne[ve]:null,st=H.fragments.length;if(!st)return this.warn("No fragments in live playlist"),0;var ht=H.fragments[0].start,Zt=!Z,Cr=H.alignedSliding&&T(ht);if(Zt||!Cr&&!ht){Ca(Te,ze,H);var Sr=H.fragments[0].start;return this.log("Live playlist sliding: ".concat(Sr.toFixed(2)," start-sn: ").concat(Z?Z.startSN:"na","->").concat(H.startSN," prev-sn: ").concat(Te?Te.sn:"na"," fragments: ").concat(st)),Sr}return ht}},{key:"waitForCdnTuneIn",value:function(H){var Z=3;return H.live&&H.canBlockReload&&H.partTarget&&H.tuneInGoal>Math.max(H.partHoldBack,H.partTarget*Z)}},{key:"setStartPosition",value:function(H,Z){var ne=this.startPosition;if(ne<Z&&(ne=-1),ne===-1||this.lastCurrentTime===-1){var ve=this.startTimeOffset!==null,Te=ve?this.startTimeOffset:H.startTimeOffset;Te!==null&&T(Te)?(ne=Z+Te,Te<0&&(ne+=H.totalduration),ne=Math.min(Math.max(Z,ne),Z+H.totalduration),this.log("Start time offset ".concat(Te," found in ").concat(ve?"multivariant":"media"," playlist, adjust startPosition to ").concat(ne)),this.startPosition=ne):H.live?ne=this.hls.liveSyncPosition||Z:this.startPosition=ne=0,this.lastCurrentTime=ne}this.nextLoadPosition=ne}},{key:"getLoadPosition",value:function(){var H=this.media,Z=0;return this.loadedmetadata&&H?Z=H.currentTime:this.nextLoadPosition&&(Z=this.nextLoadPosition),Z}},{key:"handleFragLoadAborted",value:function(H,Z){this.transmuxer&&H.sn!=="initSegment"&&H.stats.aborted&&(this.warn("Fragment ".concat(H.sn).concat(Z?" part "+Z.index:""," of level ").concat(H.level," was aborted")),this.resetFragmentLoading(H))}},{key:"resetFragmentLoading",value:function(H){(!this.fragCurrent||!this.fragContextChanged(H)&&this.state!==Bi.FRAG_LOADING_WAITING_RETRY)&&(this.state=Bi.IDLE)}},{key:"onFragmentOrKeyLoadError",value:function(H,Z){if(Z.chunkMeta&&!Z.frag){var ne=this.getCurrentContext(Z.chunkMeta);ne&&(Z.frag=ne.frag)}var ve=Z.frag;if(!ve||ve.type!==H||!this.levels)return;if(this.fragContextChanged(ve)){var Te;this.warn("Frag load error must match current frag to retry ".concat(ve.url," > ").concat((Te=this.fragCurrent)==null?void 0:Te.url));return}var ze=Z.details===I.FRAG_GAP;ze&&this.fragmentTracker.fragBuffered(ve,!0);var st=Z.errorAction,ht=st||{},Zt=ht.action,Cr=ht.retryCount,Sr=Cr===void 0?0:Cr,Kr=ht.retryConfig;if(st&&Zt===ra.RetryRequest&&Kr){var Zr;this.resetStartWhenNotLoaded((Zr=this.levelLastLoaded)!=null?Zr:ve.level);var On=ki(Kr,Sr);this.warn("Fragment ".concat(ve.sn," of ").concat(H," ").concat(ve.level," errored with ").concat(Z.details,", retrying loading ").concat(Sr+1,"/").concat(Kr.maxNumRetry," in ").concat(On,"ms")),st.resolved=!0,this.retryDate=self.performance.now()+On,this.state=Bi.FRAG_LOADING_WAITING_RETRY}else Kr&&st?(this.resetFragmentErrors(H),Sr<Kr.maxNumRetry?ze||(st.resolved=!0):U.warn("".concat(Z.details," reached or exceeded max retry (").concat(Sr,")"))):(st==null?void 0:st.action)===ra.SendAlternateToPenaltyBox?this.state=Bi.WAITING_LEVEL:this.state=Bi.ERROR;this.tickImmediate()}},{key:"reduceLengthAndFlushBuffer",value:function(H){if(this.state===Bi.PARSING||this.state===Bi.PARSED){var Z=H.parent,ne=this.getFwdBufferInfo(this.mediaBuffer,Z),ve=ne&&ne.len>.5;ve&&this.reduceMaxBufferLength(ne.len);var Te=!ve;return Te&&this.warn("Buffer full error while media.currentTime is not buffered, flush ".concat(Z," buffer")),H.frag&&(this.fragmentTracker.removeFragment(H.frag),this.nextLoadPosition=H.frag.start),this.resetLoadingState(),Te}return!1}},{key:"resetFragmentErrors",value:function(H){H===gt.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Bi.STOPPED&&(this.state=Bi.IDLE)}},{key:"afterBufferFlushed",value:function(H,Z,ne){if(!H)return;var ve=Ii.getBuffered(H);this.fragmentTracker.detectEvictedFragments(Z,ve,ne),this.state===Bi.ENDED&&this.resetLoadingState()}},{key:"resetLoadingState",value:function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Bi.IDLE}},{key:"resetStartWhenNotLoaded",value:function(H){if(!this.loadedmetadata){this.startFragRequested=!1;var Z=this.levels?this.levels[H].details:null;Z!=null&&Z.live?(this.startPosition=-1,this.setStartPosition(Z,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}},{key:"resetWhenMissingContext",value:function(H){var Z;this.warn("The loading context changed while buffering fragment ".concat(H.sn," of level ").concat(H.level,". This chunk will not be buffered.")),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded((Z=this.levelLastLoaded)!=null?Z:H.level),this.resetLoadingState()}},{key:"removeUnbufferedFrags",value:function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.fragmentTracker.removeFragmentsInRange(H,Infinity,this.playlistType,!1,!0)}},{key:"updateLevelTiming",value:function(H,Z,ne,ve){var Te=this,ze,st=ne.details;if(!st){this.warn("level.details undefined");return}var ht=Object.keys(H.elementaryStreams).reduce(function(Cr,Sr){var Kr=H.elementaryStreams[Sr];if(Kr){var Zr=Kr.endPTS-Kr.startPTS;if(Zr<=0)return Te.warn("Could not parse fragment ".concat(H.sn," ").concat(Sr," duration reliably (").concat(Zr,")")),Cr||!1;var On=ve?0:yr(st,H,Kr.startPTS,Kr.endPTS,Kr.startDTS,Kr.endDTS);return Te.hls.trigger(w.LEVEL_PTS_UPDATED,{details:st,level:ne,drift:On,type:Sr,frag:H,start:Kr.startPTS,end:Kr.endPTS}),!0}return Cr},!1);if(ht)ne.fragmentError=0;else if(((ze=this.transmuxer)==null?void 0:ze.error)===null){var Zt=new Error("Found no media in fragment ".concat(H.sn," of level ").concat(H.level," resetting transmuxer to fallback to playlist timing"));if(ne.fragmentError===0&&(ne.fragmentError++,H.gap=!0,this.fragmentTracker.removeFragment(H),this.fragmentTracker.fragBuffered(H,!0)),this.warn(Zt.message),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:Zt,frag:H,reason:"Found no media in msn ".concat(H.sn,' of level "').concat(ne.url,'"')}),!this.hls)return;this.resetTransmuxer()}this.state=Bi.PARSED,this.hls.trigger(w.FRAG_PARSED,{frag:H,part:Z})}},{key:"resetTransmuxer",value:function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}},{key:"recoverWorkerError",value:function(H){if(H.event==="demuxerWorker"){var Z,ne,ve;this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded((Z=(ne=this.levelLastLoaded)!=null?ne:(ve=this.fragCurrent)==null?void 0:ve.level)!=null?Z:0),this.resetLoadingState()}}},{key:"state",get:function(){return this._state},set:function(H){var Z=this._state;Z!==H&&(this._state=H,this.log("".concat(Z,"->").concat(H)))}}]),L}(Fi);function oo(){return self.SourceBuffer||self.WebKitSourceBuffer}function Qo(){var Ae=qt();if(!Ae)return!1;var ee=oo(),L=Ae&&typeof Ae.isTypeSupported=="function"&&Ae.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),W=!ee||ee.prototype&&typeof ee.prototype.appendBuffer=="function"&&typeof ee.prototype.remove=="function";return!!L&&!!W}function mo(){var Ae,ee=oo();return typeof(ee==null||(Ae=ee.prototype)==null?void 0:Ae.changeType)=="function"}function To(){return typeof __HLS_WORKER_BUNDLE__=="function"}function ao(){var Ae=new self.Blob(["var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(".concat(__HLS_WORKER_BUNDLE__.toString(),")(true);")],{type:"text/javascript"}),ee=self.URL.createObjectURL(Ae),L=new self.Worker(ee);return{worker:L,objectURL:ee}}function So(Ae){var ee=new self.URL(Ae,self.location.href).href,L=new self.Worker(ee);return{worker:L,scriptURL:ee}}function bo(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:9e4;return{type:Ae,id:-1,pid:-1,inputTimeScale:ee,sequenceNumber:-1,samples:[],dropped:0}}var to=function(){function Ae(){Object(r.a)(this,Ae),this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}return Object(a.a)(Ae,[{key:"resetInitSegment",value:function(L,W,H,Z){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}},{key:"resetTimeStamp",value:function(L){this.initPTS=L,this.resetContiguity()}},{key:"resetContiguity",value:function(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}},{key:"canParse",value:function(L,W){return!1}},{key:"appendFrame",value:function(L,W,H){}},{key:"demux",value:function(L,W){this.cachedData&&(L=xt(this.cachedData,L),this.cachedData=null);var H=ft(L,0),Z=H?H.length:0,ne,ve=this._audioTrack,Te=this._id3Track,ze=H?ct(H):void 0,st=L.length;for((this.basePTS===null||this.frameIndex===0&&T(ze))&&(this.basePTS=Jo(ze,W,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),H&&H.length>0&&Te.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:H,type:en.audioId3,duration:Number.POSITIVE_INFINITY});Z<st;){if(this.canParse(L,Z)){var ht=this.appendFrame(ve,L,Z);ht?(this.frameIndex++,this.lastPTS=ht.sample.pts,Z+=ht.length,ne=Z):Z=st}else er(L,Z)?(H=ft(L,Z),Te.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:H,type:en.audioId3,duration:Number.POSITIVE_INFINITY}),Z+=H.length,ne=Z):Z++;if(Z===st&&ne!==st){var Zt=Re(L,ne);this.cachedData?this.cachedData=xt(this.cachedData,Zt):this.cachedData=Zt}}return{audioTrack:ve,videoTrack:bo(),id3Track:Te,textTrack:bo()}}},{key:"demuxSampleAes",value:function(L,W,H){return Promise.reject(new Error("[".concat(this,"] This demuxer does not support Sample-AES decryption")))}},{key:"flush",value:function(L){var W=this.cachedData;return W&&(this.cachedData=null,this.demux(W,0)),{audioTrack:this._audioTrack,videoTrack:bo(),id3Track:this._id3Track,textTrack:bo()}}},{key:"destroy",value:function(){}}]),Ae}(),Jo=function(ee,L,W){if(T(ee))return ee*90;var H=W?W.baseTime*9e4/W.timescale:0;return L*9e4+H};function Uo(Ae,ee,L,W){var H,Z,ne,ve,Te=navigator.userAgent.toLowerCase(),ze=W,st=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];H=((ee[L+2]&192)>>>6)+1;var ht=(ee[L+2]&60)>>>2;if(ht>st.length-1){Ae.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:".concat(ht)});return}return ne=(ee[L+2]&1)<<2,ne|=(ee[L+3]&192)>>>6,U.log("manifest codec:".concat(W,", ADTS type:").concat(H,", samplingIndex:").concat(ht)),/firefox/i.test(Te)?ht>=6?(H=5,ve=new Array(4),Z=ht-3):(H=2,ve=new Array(2),Z=ht):Te.indexOf("android")!==-1?(H=2,ve=new Array(2),Z=ht):(H=5,ve=new Array(4),W&&(W.indexOf("mp4a.40.29")!==-1||W.indexOf("mp4a.40.5")!==-1)||!W&&ht>=6?Z=ht-3:((W&&W.indexOf("mp4a.40.2")!==-1&&(ht>=6&&ne===1||/vivaldi/i.test(Te))||!W&&ne===1)&&(H=2,ve=new Array(2)),Z=ht)),ve[0]=H<<3,ve[0]|=(ht&14)>>1,ve[1]|=(ht&1)<<7,ve[1]|=ne<<3,H===5&&(ve[1]|=(Z&14)>>1,ve[2]=(Z&1)<<7,ve[2]|=2<<2,ve[3]=0),{config:ve,samplerate:st[ht],channelCount:ne,codec:"mp4a.40."+H,manifestCodec:ze}}function wo(Ae,ee){return Ae[ee]===255&&(Ae[ee+1]&246)===240}function ts(Ae,ee){return Ae[ee+1]&1?7:9}function Ia(Ae,ee){return(Ae[ee+3]&3)<<11|Ae[ee+4]<<3|(Ae[ee+5]&224)>>>5}function Oo(Ae,ee){return ee+5<Ae.length}function Io(Ae,ee){return ee+1<Ae.length&&wo(Ae,ee)}function os(Ae,ee){return Oo(Ae,ee)&&wo(Ae,ee)&&Ia(Ae,ee)<=Ae.length-ee}function xo(Ae,ee){if(Io(Ae,ee)){var L=ts(Ae,ee);if(ee+L>=Ae.length)return!1;var W=Ia(Ae,ee);if(W<=L)return!1;var H=ee+W;return H===Ae.length||Io(Ae,H)}return!1}function rs(Ae,ee,L,W,H){if(!Ae.samplerate){var Z=Uo(ee,L,W,H);if(!Z)return;Ae.config=Z.config,Ae.samplerate=Z.samplerate,Ae.channelCount=Z.channelCount,Ae.codec=Z.codec,Ae.manifestCodec=Z.manifestCodec,U.log("parsed codec:".concat(Ae.codec,", rate:").concat(Z.samplerate,", channels:").concat(Z.channelCount))}}function Ho(Ae){return 1024*9e4/Ae}function _o(Ae,ee){var L=ts(Ae,ee);if(ee+L<=Ae.length){var W=Ia(Ae,ee)-L;if(W>0)return{headerLength:L,frameLength:W}}}function uo(Ae,ee,L,W,H){var Z=Ho(Ae.samplerate),ne=W+H*Z,ve=_o(ee,L),Te;if(ve){var ze=ve.frameLength,st=ve.headerLength,ht=st+ze,Zt=Math.max(0,L+ht-ee.length);Zt?(Te=new Uint8Array(ht-st),Te.set(ee.subarray(L+st,ee.length),0)):Te=ee.subarray(L+st,L+ht);var Cr={unit:Te,pts:ne};return Zt||Ae.samples.push(Cr),{sample:Cr,length:ht,missing:Zt}}var Sr=ee.length-L;Te=new Uint8Array(Sr),Te.set(ee.subarray(L,ee.length),0);var Kr={unit:Te,pts:ne};return{sample:Kr,length:Sr,missing:-1}}var Ha=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H){var Z;return Object(r.a)(this,L),Z=ee.call(this),Z.observer=void 0,Z.config=void 0,Z.observer=W,Z.config=H,Z}return Object(a.a)(L,[{key:"resetInitSegment",value:function(H,Z,ne,ve){Object(t.a)(Object(m.a)(L.prototype),"resetInitSegment",this).call(this,H,Z,ne,ve),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:Z,duration:ve,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(H,Z){return os(H,Z)}},{key:"appendFrame",value:function(H,Z,ne){rs(H,this.observer,Z,ne,H.manifestCodec);var ve=uo(H,Z,ne,this.basePTS,this.frameIndex);if(ve&&ve.missing===0)return ve}}],[{key:"probe",value:function(H){if(!H)return!1;for(var Z=ft(H,0)||[],ne=Z.length,ve=H.length;ne<ve;ne++)if(xo(H,ne))return U.log("ADTS sync word found !"),!0;return!1}}]),L}(to),mt=/\/emsg[-/]ID3/i,Tr=function(){function Ae(ee,L){Object(r.a)(this,Ae),this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=L}return Object(a.a)(Ae,[{key:"resetTimeStamp",value:function(){}},{key:"resetInitSegment",value:function(L,W,H,Z){var ne=this.videoTrack=bo("video",1),ve=this.audioTrack=bo("audio",1),Te=this.txtTrack=bo("text",1);if(this.id3Track=bo("id3",1),this.timeOffset=0,!(L!=null&&L.byteLength))return;var ze=Pr(L);if(ze.video){var st=ze.video,ht=st.id,Zt=st.timescale,Cr=st.codec;ne.id=ht,ne.timescale=Te.timescale=Zt,ne.codec=Cr}if(ze.audio){var Sr=ze.audio,Kr=Sr.id,Zr=Sr.timescale,On=Sr.codec;ve.id=Kr,ve.timescale=Zr,ve.codec=On}Te.id=ir.text,ne.sampleDuration=0,ne.duration=ve.duration=Z}},{key:"resetContiguity",value:function(){this.remainderData=null}},{key:"demux",value:function(L,W){this.timeOffset=W;var H=L,Z=this.videoTrack,ne=this.txtTrack;if(this.config.progressive){this.remainderData&&(H=xt(this.remainderData,L));var ve=$t(H);this.remainderData=ve.remainder,Z.samples=ve.valid||new Uint8Array}else Z.samples=H;var Te=this.extractID3Track(Z,W);return ne.samples=De(W,Z),{videoTrack:Z,audioTrack:this.audioTrack,id3Track:Te,textTrack:this.txtTrack}}},{key:"flush",value:function(){var L=this.timeOffset,W=this.videoTrack,H=this.txtTrack;W.samples=this.remainderData||new Uint8Array,this.remainderData=null;var Z=this.extractID3Track(W,this.timeOffset);return H.samples=De(L,W),{videoTrack:W,audioTrack:bo(),id3Track:Z,textTrack:bo()}}},{key:"extractID3Track",value:function(L,W){var H=this.id3Track;if(L.samples.length){var Z=pt(L.samples,["emsg"]);Z&&Z.forEach(function(ne){var ve=Et(ne);if(mt.test(ve.schemeIdUri)){var Te=T(ve.presentationTime)?ve.presentationTime/ve.timeScale:W+ve.presentationTimeDelta/ve.timeScale,ze=ve.eventDuration===4294967295?Number.POSITIVE_INFINITY:ve.eventDuration/ve.timeScale;ze<=.001&&(ze=Number.POSITIVE_INFINITY);var st=ve.payload;H.samples.push({data:st,len:st.byteLength,dts:Te,pts:Te,type:en.emsg,duration:ze})}})}return H}},{key:"demuxSampleAes",value:function(L,W,H){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}},{key:"destroy",value:function(){}}],[{key:"probe",value:function(L){return L=L.length>16384?L.subarray(0,16384):L,pt(L,["moof"]).length>0}}]),Ae}(),tn=null,Qr=[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],Jn=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],fn=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Xr=[0,1,1,4];function ii(Ae,ee,L,W,H){if(L+24>ee.length)return;var Z=nn(ee,L);if(Z&&L+Z.frameLength<=ee.length){var ne=Z.samplesPerFrame*9e4/Z.sampleRate,ve=W+H*ne,Te={unit:ee.subarray(L,L+Z.frameLength),pts:ve,dts:ve};return Ae.config=[],Ae.channelCount=Z.channelCount,Ae.samplerate=Z.sampleRate,Ae.samples.push(Te),{sample:Te,length:Z.frameLength,missing:0}}}function nn(Ae,ee){var L=Ae[ee+1]>>3&3,W=Ae[ee+1]>>1&3,H=Ae[ee+2]>>4&15,Z=Ae[ee+2]>>2&3;if(L!==1&&H!==0&&H!==15&&Z!==3){var ne=Ae[ee+2]>>1&1,ve=Ae[ee+3]>>6,Te=L===3?3-W:W===3?3:4,ze=Qr[Te*14+H-1]*1e3,st=L===3?0:L===2?1:2,ht=Jn[st*3+Z],Zt=ve===3?1:2,Cr=fn[L][W],Sr=Xr[W],Kr=Cr*8*Sr,Zr=Math.floor(Cr*ze/ht+ne)*Sr;if(tn===null){var On=navigator.userAgent||"",Rn=On.match(/Chrome\/(\d+)/i);tn=Rn?parseInt(Rn[1]):0}var Zn=!!tn&&tn<=87;return Zn&&W===2&&ze>=224e3&&ve===0&&(Ae[ee+3]=Ae[ee+3]|128),{sampleRate:ht,channelCount:Zt,frameLength:Zr,samplesPerFrame:Kr}}}function Wn(Ae,ee){return Ae[ee]===255&&(Ae[ee+1]&224)===224&&(Ae[ee+1]&6)!==0}function li(Ae,ee){return ee+1<Ae.length&&Wn(Ae,ee)}function ci(Ae,ee){var L=4;return Wn(Ae,ee)&&L<=Ae.length-ee}function si(Ae,ee){if(ee+1<Ae.length&&Wn(Ae,ee)){var L=4,W=nn(Ae,ee),H=L;W!=null&&W.frameLength&&(H=W.frameLength);var Z=ee+H;return Z===Ae.length||li(Ae,Z)}return!1}var Ci=function(){function Ae(ee){Object(r.a)(this,Ae),this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=ee,this.bytesAvailable=ee.byteLength,this.word=0,this.bitsAvailable=0}return Object(a.a)(Ae,[{key:"loadWord",value:function(){var L=this.data,W=this.bytesAvailable,H=L.byteLength-W,Z=new Uint8Array(4),ne=Math.min(4,W);if(ne===0)throw new Error("no bytes available");Z.set(L.subarray(H,H+ne)),this.word=new DataView(Z.buffer).getUint32(0),this.bitsAvailable=ne*8,this.bytesAvailable-=ne}},{key:"skipBits",value:function(L){var W;L=Math.min(L,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>L?(this.word<<=L,this.bitsAvailable-=L):(L-=this.bitsAvailable,W=L>>3,L-=W<<3,this.bytesAvailable-=W,this.loadWord(),this.word<<=L,this.bitsAvailable-=L)}},{key:"readBits",value:function(L){var W=Math.min(this.bitsAvailable,L),H=this.word>>>32-W;if(L>32&&U.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=W,this.bitsAvailable>0)this.word<<=W;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return W=L-W,W>0&&this.bitsAvailable?H<<W|this.readBits(W):H}},{key:"skipLZ",value:function(){var L;for(L=0;L<this.bitsAvailable;++L)if((this.word&2147483648>>>L)!==0)return this.word<<=L,this.bitsAvailable-=L,L;return this.loadWord(),L+this.skipLZ()}},{key:"skipUEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"skipEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"readUEG",value:function(){var L=this.skipLZ();return this.readBits(L+1)-1}},{key:"readEG",value:function(){var L=this.readUEG();return 1&L?1+L>>>1:-1*(L>>>1)}},{key:"readBoolean",value:function(){return this.readBits(1)===1}},{key:"readUByte",value:function(){return this.readBits(8)}},{key:"readUShort",value:function(){return this.readBits(16)}},{key:"readUInt",value:function(){return this.readBits(32)}},{key:"skipScalingList",value:function(L){for(var W=8,H=8,Z,ne=0;ne<L;ne++)H!==0&&(Z=this.readEG(),H=(W+Z+256)%256),W=H===0?W:H}},{key:"readSPS",value:function(){var L=0,W=0,H=0,Z=0,ne,ve,Te,ze=this.readUByte.bind(this),st=this.readBits.bind(this),ht=this.readUEG.bind(this),Zt=this.readBoolean.bind(this),Cr=this.skipBits.bind(this),Sr=this.skipEG.bind(this),Kr=this.skipUEG.bind(this),Zr=this.skipScalingList.bind(this);ze();var On=ze();if(st(5),Cr(3),ze(),Kr(),On===100||On===110||On===122||On===244||On===44||On===83||On===86||On===118||On===128){var Rn=ht();if(Rn===3&&Cr(1),Kr(),Kr(),Cr(1),Zt())for(ve=Rn!==3?8:12,Te=0;Te<ve;Te++)Zt()&&(Te<6?Zr(16):Zr(64))}Kr();var Zn=ht();if(Zn===0)ht();else if(Zn===1)for(Cr(1),Sr(),Sr(),ne=ht(),Te=0;Te<ne;Te++)Sr();Kr(),Cr(1);var wi=ht(),ua=ht(),Gi=st(1);Gi===0&&Cr(1),Cr(1),Zt()&&(L=ht(),W=ht(),H=ht(),Z=ht());var Zi=[1,1];if(Zt()&&Zt()){var ka=ze();switch(ka){case 1:Zi=[1,1];break;case 2:Zi=[12,11];break;case 3:Zi=[10,11];break;case 4:Zi=[16,11];break;case 5:Zi=[40,33];break;case 6:Zi=[24,11];break;case 7:Zi=[20,11];break;case 8:Zi=[32,11];break;case 9:Zi=[80,33];break;case 10:Zi=[18,11];break;case 11:Zi=[15,11];break;case 12:Zi=[64,33];break;case 13:Zi=[160,99];break;case 14:Zi=[4,3];break;case 15:Zi=[3,2];break;case 16:Zi=[2,1];break;case 255:{Zi=[ze()<<8|ze(),ze()<<8|ze()];break}}}return{width:Math.ceil((wi+1)*16-L*2-W*2),height:(2-Gi)*(ua+1)*16-(Gi?2:4)*(H+Z),pixelRatio:Zi}}},{key:"readSliceType",value:function(){return this.readUByte(),this.readUEG(),this.readUEG()}}]),Ae}(),gi=function(){function Ae(ee,L,W){Object(r.a)(this,Ae),this.keyData=void 0,this.decrypter=void 0,this.keyData=W,this.decrypter=new _a(L,{removePKCS7Padding:!1})}return Object(a.a)(Ae,[{key:"decryptBuffer",value:function(L){return this.decrypter.decrypt(L,this.keyData.key.buffer,this.keyData.iv.buffer)}},{key:"decryptAacSample",value:function(L,W,H){var Z=this,ne=L[W].unit;if(ne.length<=16)return;var ve=ne.subarray(16,ne.length-ne.length%16),Te=ve.buffer.slice(ve.byteOffset,ve.byteOffset+ve.length);this.decryptBuffer(Te).then(function(ze){var st=new Uint8Array(ze);ne.set(st,16),Z.decrypter.isSync()||Z.decryptAacSamples(L,W+1,H)})}},{key:"decryptAacSamples",value:function(L,W,H){for(;;W++){if(W>=L.length){H();return}if(L[W].unit.length<32)continue;if(this.decryptAacSample(L,W,H),!this.decrypter.isSync())return}}},{key:"getAvcEncryptedData",value:function(L){for(var W=Math.floor((L.length-48)/160)*16+16,H=new Int8Array(W),Z=0,ne=32;ne<L.length-16;ne+=160,Z+=16)H.set(L.subarray(ne,ne+16),Z);return H}},{key:"getAvcDecryptedUnit",value:function(L,W){for(var H=new Uint8Array(W),Z=0,ne=32;ne<L.length-16;ne+=160,Z+=16)L.set(H.subarray(Z,Z+16),ne);return L}},{key:"decryptAvcSample",value:function(L,W,H,Z,ne){var ve=this,Te=yt(ne.data),ze=this.getAvcEncryptedData(Te);this.decryptBuffer(ze.buffer).then(function(st){ne.data=ve.getAvcDecryptedUnit(Te,st),ve.decrypter.isSync()||ve.decryptAvcSamples(L,W,H+1,Z)})}},{key:"decryptAvcSamples",value:function(L,W,H,Z){if(L instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;W++,H=0){if(W>=L.length){Z();return}for(var ne=L[W].units;!(H>=ne.length);H++){var ve=ne[H];if(ve.data.length<=48||ve.type!==1&&ve.type!==5)continue;if(this.decryptAvcSample(L,W,H,Z,ve),!this.decrypter.isSync())return}}}}]),Ae}(),Ai=188,Ni=function(){function Ae(ee,L,W){Object(r.a)(this,Ae),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=ee,this.config=L,this.typeSupported=W}return Object(a.a)(Ae,[{key:"resetInitSegment",value:function(L,W,H,Z){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=Ae.createTrack("video"),this._audioTrack=Ae.createTrack("audio",Z),this._id3Track=Ae.createTrack("id3"),this._txtTrack=Ae.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.audioCodec=W,this.videoCodec=H,this._duration=Z}},{key:"resetTimeStamp",value:function(){}},{key:"resetContiguity",value:function(){var L=this._audioTrack,W=this._avcTrack,H=this._id3Track;L&&(L.pesData=null),W&&(W.pesData=null),H&&(H.pesData=null),this.aacOverFlow=null,this.avcSample=null,this.remainderData=null}},{key:"demux",value:function(L,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;H||(this.sampleAes=null);var ne,ve=this._avcTrack,Te=this._audioTrack,ze=this._id3Track,st=this._txtTrack,ht=ve.pid,Zt=ve.pesData,Cr=Te.pid,Sr=ze.pid,Kr=Te.pesData,Zr=ze.pesData,On=null,Rn=this.pmtParsed,Zn=this._pmtId,wi=L.length;if(this.remainderData&&(L=xt(this.remainderData,L),wi=L.length,this.remainderData=null),wi<Ai&&!Z)return this.remainderData=L,{audioTrack:Te,videoTrack:ve,id3Track:ze,textTrack:st};var ua=Math.max(0,Ae.syncOffset(L));wi-=(wi-ua)%Ai,wi<L.byteLength&&!Z&&(this.remainderData=new Uint8Array(L.buffer,wi,L.buffer.byteLength-wi));for(var Gi=0,Zi=ua;Zi<wi;Zi+=Ai)if(L[Zi]===71){var ka=!!(L[Zi+1]&64),Ga=Ki(L,Zi),Ba=(L[Zi+3]&48)>>4,Sa=void 0;if(Ba>1){if(Sa=Zi+5+L[Zi+4],Sa===Zi+Ai)continue}else Sa=Zi+4;switch(Ga){case ht:ka&&(Zt&&(ne=xa(Zt))&&this.parseAVCPES(ve,st,ne,!1),Zt={data:[],size:0}),Zt&&(Zt.data.push(L.subarray(Sa,Zi+Ai)),Zt.size+=Zi+Ai-Sa);break;case Cr:if(ka){if(Kr&&(ne=xa(Kr)))switch(Te.segmentCodec){case"aac":this.parseAACPES(Te,ne);break;case"mp3":this.parseMPEGPES(Te,ne);break}Kr={data:[],size:0}}Kr&&(Kr.data.push(L.subarray(Sa,Zi+Ai)),Kr.size+=Zi+Ai-Sa);break;case Sr:ka&&(Zr&&(ne=xa(Zr))&&this.parseID3PES(ze,ne),Zr={data:[],size:0}),Zr&&(Zr.data.push(L.subarray(Sa,Zi+Ai)),Zr.size+=Zi+Ai-Sa);break;case 0:ka&&(Sa+=L[Sa]+1),Zn=this._pmtId=fa(L,Sa);break;case Zn:{ka&&(Sa+=L[Sa]+1);var Go=Ya(L,Sa,this.typeSupported,H);ht=Go.avc,ht>0&&(ve.pid=ht),Cr=Go.audio,Cr>0&&(Te.pid=Cr,Te.segmentCodec=Go.segmentCodec),Sr=Go.id3,Sr>0&&(ze.pid=Sr),On!==null&&!Rn&&(U.warn("MPEG-TS PMT found at ".concat(Zi," after unknown PID '").concat(On,"'. Backtracking to sync byte @").concat(ua," to parse all TS packets.")),On=null,Zi=ua-188),Rn=this.pmtParsed=!0;break}case 17:case 8191:break;default:On=Ga;break}}else Gi++;if(Gi>0){var bs=new Error("Found ".concat(Gi," TS packet/s that do not start with 0x47"));this.observer.emit(w.ERROR,w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:bs,reason:bs.message})}ve.pesData=Zt,Te.pesData=Kr,ze.pesData=Zr;var ys={audioTrack:Te,videoTrack:ve,id3Track:ze,textTrack:st};return Z&&this.extractRemainingSamples(ys),ys}},{key:"flush",value:function(){var L=this.remainderData;this.remainderData=null;var W;return L?W=this.demux(L,-1,!1,!0):W={videoTrack:this._avcTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(W),this.sampleAes?this.decrypt(W,this.sampleAes):W}},{key:"extractRemainingSamples",value:function(L){var W=L.audioTrack,H=L.videoTrack,Z=L.id3Track,ne=L.textTrack,ve=H.pesData,Te=W.pesData,ze=Z.pesData,st;if(ve&&(st=xa(ve))?(this.parseAVCPES(H,ne,st,!0),H.pesData=null):H.pesData=ve,Te&&(st=xa(Te))){switch(W.segmentCodec){case"aac":this.parseAACPES(W,st);break;case"mp3":this.parseMPEGPES(W,st);break}W.pesData=null}else Te!=null&&Te.size&&U.log("last AAC PES packet truncated,might overlap between fragments"),W.pesData=Te;ze&&(st=xa(ze))?(this.parseID3PES(Z,st),Z.pesData=null):Z.pesData=ze}},{key:"demuxSampleAes",value:function(L,W,H){var Z=this.demux(L,H,!0,!this.config.progressive),ne=this.sampleAes=new gi(this.observer,this.config,W);return this.decrypt(Z,ne)}},{key:"decrypt",value:function(L,W){return new Promise(function(H){var Z=L.audioTrack,ne=L.videoTrack;Z.samples&&Z.segmentCodec==="aac"?W.decryptAacSamples(Z.samples,0,function(){ne.samples?W.decryptAvcSamples(ne.samples,0,0,function(){H(L)}):H(L)}):ne.samples&&W.decryptAvcSamples(ne.samples,0,0,function(){H(L)})})}},{key:"destroy",value:function(){this._duration=0}},{key:"parseAVCPES",value:function(L,W,H,Z){var ne=this,ve=this.parseAVCNALu(L,H.data),Te=this.avcSample,ze,st=!1;H.data=null,Te&&ve.length&&!L.audFound&&(wa(Te,L),Te=this.avcSample=ia(!1,H.pts,H.dts,"")),ve.forEach(function(ht){var Zt;switch(ht.type){case 1:{var Cr=!1;ze=!0;var Sr=ht.data;if(st&&Sr.length>4){var Kr=new Ci(Sr).readSliceType();(Kr===2||Kr===4||Kr===7||Kr===9)&&(Cr=!0)}if(Cr){var Zr;(Zr=Te)!=null&&Zr.frame&&!Te.key&&(wa(Te,L),Te=ne.avcSample=null)}Te||(Te=ne.avcSample=ia(!0,H.pts,H.dts,"")),Te.frame=!0,Te.key=Cr;break}case 5:ze=!0,(Zt=Te)!=null&&Zt.frame&&!Te.key&&(wa(Te,L),Te=ne.avcSample=null),Te||(Te=ne.avcSample=ia(!0,H.pts,H.dts,"")),Te.key=!0,Te.frame=!0;break;case 6:{ze=!0,tt(ht.data,1,H.pts,W.samples);break}case 7:if(ze=!0,st=!0,!L.sps){var On=ht.data,Rn=new Ci(On),Zn=Rn.readSPS();L.width=Zn.width,L.height=Zn.height,L.pixelRatio=Zn.pixelRatio,L.sps=[On],L.duration=ne._duration;for(var wi=On.subarray(1,4),ua="avc1.",Gi=0;Gi<3;Gi++){var Zi=wi[Gi].toString(16);Zi.length<2&&(Zi="0"+Zi),ua+=Zi}L.codec=ua}break;case 8:ze=!0,L.pps||(L.pps=[ht.data]);break;case 9:ze=!1,L.audFound=!0,Te&&wa(Te,L),Te=ne.avcSample=ia(!1,H.pts,H.dts,"");break;case 12:ze=!0;break;default:ze=!1,Te&&(Te.debug+="unknown NAL "+ht.type+" ");break}if(Te&&ze){var ka=Te.units;ka.push(ht)}}),Z&&Te&&(wa(Te,L),this.avcSample=null)}},{key:"getLastNalUnit",value:function(L){var W,H=this.avcSample,Z;if((!H||H.units.length===0)&&(H=L[L.length-1]),(W=H)!=null&&W.units){var ne=H.units;Z=ne[ne.length-1]}return Z}},{key:"parseAVCNALu",value:function(L,W){var H=W.byteLength,Z=L.naluState||0,ne=Z,ve=[],Te=0,ze,st,ht,Zt=-1,Cr=0;for(Z===-1&&(Zt=0,Cr=W[0]&31,Z=0,Te=1);Te<H;){if(ze=W[Te++],!Z){Z=ze?0:1;continue}if(Z===1){Z=ze?0:2;continue}if(!ze)Z=3;else if(ze===1){if(Zt>=0){var Sr={data:W.subarray(Zt,Te-Z-1),type:Cr};ve.push(Sr)}else{var Kr=this.getLastNalUnit(L.samples);if(Kr&&(ne&&Te<=4-ne&&(Kr.state&&(Kr.data=Kr.data.subarray(0,Kr.data.byteLength-ne))),st=Te-Z-1,st>0)){var Zr=new Uint8Array(Kr.data.byteLength+st);Zr.set(Kr.data,0),Zr.set(W.subarray(0,st),Kr.data.byteLength),Kr.data=Zr,Kr.state=0}}Te<H?(ht=W[Te]&31,Zt=Te,Cr=ht,Z=0):Z=-1}else Z=0}if(Zt>=0&&Z>=0){var On={data:W.subarray(Zt,H),type:Cr,state:Z};ve.push(On)}if(ve.length===0){var Rn=this.getLastNalUnit(L.samples);if(Rn){var Zn=new Uint8Array(Rn.data.byteLength+W.byteLength);Zn.set(Rn.data,0),Zn.set(W,Rn.data.byteLength),Rn.data=Zn}}return L.naluState=Z,ve}},{key:"parseAACPES",value:function(L,W){var H=0,Z=this.aacOverFlow,ne=W.data;if(Z){this.aacOverFlow=null;var ve=Z.missing,Te=Z.sample.unit.byteLength;if(ve===-1){var ze=new Uint8Array(Te+ne.byteLength);ze.set(Z.sample.unit,0),ze.set(ne,Te),ne=ze}else{var st=Te-ve;Z.sample.unit.set(ne.subarray(0,ve),st),L.samples.push(Z.sample),H=Z.missing}}var ht,Zt;for(ht=H,Zt=ne.length;ht<Zt-1&&!Io(ne,ht);ht++);if(ht!==H){var Cr,Sr=ht<Zt-1;Sr?Cr="AAC PES did not start with ADTS header,offset:".concat(ht):Cr="No ADTS header found in AAC PES";var Kr=new Error(Cr);if(U.warn("parsing error: ".concat(Cr)),this.observer.emit(w.ERROR,w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,levelRetry:Sr,error:Kr,reason:Cr}),!Sr)return}rs(L,this.observer,ne,ht,this.audioCodec);var Zr;if(W.pts!==void 0)Zr=W.pts;else if(Z){var On=Ho(L.samplerate);Zr=Z.sample.pts+On}else{U.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var Rn=0,Zn;ht<Zt;)if(Zn=uo(L,ne,ht,Zr,Rn),ht+=Zn.length,Zn.missing){this.aacOverFlow=Zn;break}else for(Rn++;ht<Zt-1&&!Io(ne,ht);ht++);}},{key:"parseMPEGPES",value:function(L,W){var H=W.data,Z=H.length,ne=0,ve=0,Te=W.pts;if(Te===void 0){U.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;ve<Z;)if(li(H,ve)){var ze=ii(L,H,ve,Te,ne);if(ze)ve+=ze.length,ne++;else break}else ve++}},{key:"parseID3PES",value:function(L,W){if(W.pts===void 0){U.warn("[tsdemuxer]: ID3 PES unknown PTS");return}var H=E({},W,{type:this._avcTrack?en.emsg:en.audioId3,duration:Number.POSITIVE_INFINITY});L.samples.push(H)}}],[{key:"probe",value:function(L){var W=Ae.syncOffset(L);return W>0&&U.warn("MPEG2-TS detected but first sync word found @ offset ".concat(W)),W!==-1}},{key:"syncOffset",value:function(L){for(var W=L.length,H=Math.min(Ai*5,L.length-Ai)+1,Z=0;Z<H;){for(var ne=!1,ve=-1,Te=0,ze=Z;ze<W;ze+=Ai)if(L[ze]===71){if(Te++,ve===-1&&(ve=ze,ve!==0&&(H=Math.min(ve+Ai*99,L.length-Ai)+1)),ne||(ne=Ki(L,ze)===0),ne&&Te>1&&(ve===0&&Te>2||ze+Ai>H))return ve}else{if(Te)return-1;break}Z++}return-1}},{key:"createTrack",value:function(L,W){return{container:L==="video"||L==="audio"?"video/mp2t":void 0,type:L,id:ir[L],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:L==="audio"?W:void 0}}}]),Ae}();function ia(Ae,ee,L,W){return{key:Ae,frame:!1,pts:ee,dts:L,units:[],debug:W,length:0}}function Ki(Ae,ee){return((Ae[ee+1]&31)<<8)+Ae[ee+2]}function fa(Ae,ee){return(Ae[ee+10]&31)<<8|Ae[ee+11]}function Ya(Ae,ee,L,W){var H={audio:-1,avc:-1,id3:-1,segmentCodec:"aac"},Z=(Ae[ee+1]&15)<<8|Ae[ee+2],ne=ee+3+Z-4,ve=(Ae[ee+10]&15)<<8|Ae[ee+11];for(ee+=12+ve;ee<ne;){var Te=Ki(Ae,ee);switch(Ae[ee]){case 207:if(!W){U.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:H.audio===-1&&(H.audio=Te);break;case 21:H.id3===-1&&(H.id3=Te);break;case 219:if(!W){U.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:H.avc===-1&&(H.avc=Te);break;case 3:case 4:L.mpeg!==!0&&L.mp3!==!0?U.log("MPEG audio found, not supported in this browser"):H.audio===-1&&(H.audio=Te,H.segmentCodec="mp3");break;case 36:U.warn("Unsupported HEVC stream type found");break}ee+=((Ae[ee+3]&15)<<8|Ae[ee+4])+5}return H}function xa(Ae){var ee=0,L,W,H,Z,ne,ve=Ae.data;if(!Ae||Ae.size===0)return null;for(;ve[0].length<19&&ve.length>1;){var Te=new Uint8Array(ve[0].length+ve[1].length);Te.set(ve[0]),Te.set(ve[1],ve[0].length),ve[0]=Te,ve.splice(1,1)}L=ve[0];var ze=(L[0]<<16)+(L[1]<<8)+L[2];if(ze===1){if(W=(L[4]<<8)+L[5],W&&W>Ae.size-6)return null;var st=L[7];st&192&&(Z=(L[9]&14)*536870912+(L[10]&255)*4194304+(L[11]&254)*16384+(L[12]&255)*128+(L[13]&254)/2,st&64?(ne=(L[14]&14)*536870912+(L[15]&255)*4194304+(L[16]&254)*16384+(L[17]&255)*128+(L[18]&254)/2,Z-ne>60*9e4&&(U.warn("".concat(Math.round((Z-ne)/9e4),"s delta between PTS and DTS, align them")),Z=ne)):ne=Z),H=L[8];var ht=H+9;if(Ae.size<=ht)return null;Ae.size-=ht;for(var Zt=new Uint8Array(Ae.size),Cr=0,Sr=ve.length;Cr<Sr;Cr++){L=ve[Cr];var Kr=L.byteLength;if(ht)if(ht>Kr){ht-=Kr;continue}else L=L.subarray(ht),Kr-=ht,ht=0;Zt.set(L,ee),ee+=Kr}return W&&(W-=H+3),{data:Zt,pts:Z,dts:ne,len:W}}return null}function wa(Ae,ee){if(Ae.units.length&&Ae.frame){if(Ae.pts===void 0){var L=ee.samples,W=L.length;if(W){var H=L[W-1];Ae.pts=H.pts,Ae.dts=H.dts}else{ee.dropped++;return}}ee.samples.push(Ae)}Ae.debug.length&&U.log(Ae.pts+"/"+Ae.dts+":"+Ae.debug)}var Da=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(){return Object(r.a)(this,L),ee.apply(this,arguments)}return Object(a.a)(L,[{key:"resetInitSegment",value:function(H,Z,ne,ve){Object(t.a)(Object(m.a)(L.prototype),"resetInitSegment",this).call(this,H,Z,ne,ve),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:Z,duration:ve,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(H,Z){return ci(H,Z)}},{key:"appendFrame",value:function(H,Z,ne){return this.basePTS===null?void 0:ii(H,Z,ne,this.basePTS,this.frameIndex)}}],[{key:"probe",value:function(H){if(!H)return!1;for(var Z=ft(H,0)||[],ne=Z.length,ve=H.length;ne<ve;ne++)if(si(H,ne))return U.log("MPEG Audio sync word found !"),!0;return!1}}]),L}(to),ja=function(){function Ae(){Object(r.a)(this,Ae)}return Object(a.a)(Ae,null,[{key:"getSilentFrame",value:function(L,W){switch(L){case"mp4a.40.2":if(W===1)return new Uint8Array([0,200,0,128,35,128]);if(W===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(W===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(W===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(W===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(W===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(W===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(W===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(W===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return}}]),Ae}(),ko=Math.pow(2,32)-1,ro=function(){function Ae(){Object(r.a)(this,Ae)}return Object(a.a)(Ae,null,[{key:"init",value:function(){Ae.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var L;for(L in Ae.types)Ae.types.hasOwnProperty(L)&&(Ae.types[L]=[L.charCodeAt(0),L.charCodeAt(1),L.charCodeAt(2),L.charCodeAt(3)]);var W=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),H=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);Ae.HDLR_TYPES={video:W,audio:H};var Z=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ne=new Uint8Array([0,0,0,0,0,0,0,0]);Ae.STTS=Ae.STSC=Ae.STCO=ne,Ae.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ae.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Ae.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Ae.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var ve=new Uint8Array([105,115,111,109]),Te=new Uint8Array([97,118,99,49]),ze=new Uint8Array([0,0,0,1]);Ae.FTYP=Ae.box(Ae.types.ftyp,ve,ze,ve,Te),Ae.DINF=Ae.box(Ae.types.dinf,Ae.box(Ae.types.dref,Z))}},{key:"box",value:function(L){for(var W=8,H=arguments.length,Z=new Array(H>1?H-1:0),ne=1;ne<H;ne++)Z[ne-1]=arguments[ne];for(var ve=Z.length,Te=ve;ve--;)W+=Z[ve].byteLength;var ze=new Uint8Array(W);for(ze[0]=W>>24&255,ze[1]=W>>16&255,ze[2]=W>>8&255,ze[3]=W&255,ze.set(L,4),ve=0,W=8;ve<Te;ve++)ze.set(Z[ve],W),W+=Z[ve].byteLength;return ze}},{key:"hdlr",value:function(L){return Ae.box(Ae.types.hdlr,Ae.HDLR_TYPES[L])}},{key:"mdat",value:function(L){return Ae.box(Ae.types.mdat,L)}},{key:"mdhd",value:function(L,W){W*=L;var H=Math.floor(W/(ko+1)),Z=Math.floor(W%(ko+1));return Ae.box(Ae.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,L>>24&255,L>>16&255,L>>8&255,L&255,H>>24,H>>16&255,H>>8&255,H&255,Z>>24,Z>>16&255,Z>>8&255,Z&255,85,196,0,0]))}},{key:"mdia",value:function(L){return Ae.box(Ae.types.mdia,Ae.mdhd(L.timescale,L.duration),Ae.hdlr(L.type),Ae.minf(L))}},{key:"mfhd",value:function(L){return Ae.box(Ae.types.mfhd,new Uint8Array([0,0,0,0,L>>24,L>>16&255,L>>8&255,L&255]))}},{key:"minf",value:function(L){return L.type==="audio"?Ae.box(Ae.types.minf,Ae.box(Ae.types.smhd,Ae.SMHD),Ae.DINF,Ae.stbl(L)):Ae.box(Ae.types.minf,Ae.box(Ae.types.vmhd,Ae.VMHD),Ae.DINF,Ae.stbl(L))}},{key:"moof",value:function(L,W,H){return Ae.box(Ae.types.moof,Ae.mfhd(L),Ae.traf(H,W))}},{key:"moov",value:function(L){for(var W=L.length,H=[];W--;)H[W]=Ae.trak(L[W]);return Ae.box.apply(null,[Ae.types.moov,Ae.mvhd(L[0].timescale,L[0].duration)].concat(H).concat(Ae.mvex(L)))}},{key:"mvex",value:function(L){for(var W=L.length,H=[];W--;)H[W]=Ae.trex(L[W]);return Ae.box.apply(null,[Ae.types.mvex].concat(H))}},{key:"mvhd",value:function(L,W){W*=L;var H=Math.floor(W/(ko+1)),Z=Math.floor(W%(ko+1)),ne=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,L>>24&255,L>>16&255,L>>8&255,L&255,H>>24,H>>16&255,H>>8&255,H&255,Z>>24,Z>>16&255,Z>>8&255,Z&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return Ae.box(Ae.types.mvhd,ne)}},{key:"sdtp",value:function(L){var W=L.samples||[],H=new Uint8Array(4+W.length),Z,ne;for(Z=0;Z<W.length;Z++)ne=W[Z].flags,H[Z+4]=ne.dependsOn<<4|ne.isDependedOn<<2|ne.hasRedundancy;return Ae.box(Ae.types.sdtp,H)}},{key:"stbl",value:function(L){return Ae.box(Ae.types.stbl,Ae.stsd(L),Ae.box(Ae.types.stts,Ae.STTS),Ae.box(Ae.types.stsc,Ae.STSC),Ae.box(Ae.types.stsz,Ae.STSZ),Ae.box(Ae.types.stco,Ae.STCO))}},{key:"avc1",value:function(L){var W=[],H=[],Z,ne,ve;for(Z=0;Z<L.sps.length;Z++)ne=L.sps[Z],ve=ne.byteLength,W.push(ve>>>8&255),W.push(ve&255),W=W.concat(Array.prototype.slice.call(ne));for(Z=0;Z<L.pps.length;Z++)ne=L.pps[Z],ve=ne.byteLength,H.push(ve>>>8&255),H.push(ve&255),H=H.concat(Array.prototype.slice.call(ne));var Te=Ae.box(Ae.types.avcC,new Uint8Array([1,W[3],W[4],W[5],252|3,224|L.sps.length].concat(W).concat([L.pps.length]).concat(H))),ze=L.width,st=L.height,ht=L.pixelRatio[0],Zt=L.pixelRatio[1];return Ae.box(Ae.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,ze>>8&255,ze&255,st>>8&255,st&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),Te,Ae.box(Ae.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Ae.box(Ae.types.pasp,new Uint8Array([ht>>24,ht>>16&255,ht>>8&255,ht&255,Zt>>24,Zt>>16&255,Zt>>8&255,Zt&255])))}},{key:"esds",value:function(L){var W=L.config.length;return new Uint8Array([0,0,0,0,3,23+W,0,1,0,4,15+W,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([W]).concat(L.config).concat([6,1,2]))}},{key:"mp4a",value:function(L){var W=L.samplerate;return Ae.box(Ae.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,L.channelCount,0,16,0,0,0,0,W>>8&255,W&255,0,0]),Ae.box(Ae.types.esds,Ae.esds(L)))}},{key:"mp3",value:function(L){var W=L.samplerate;return Ae.box(Ae.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,L.channelCount,0,16,0,0,0,0,W>>8&255,W&255,0,0]))}},{key:"stsd",value:function(L){return L.type==="audio"?L.segmentCodec==="mp3"&&L.codec==="mp3"?Ae.box(Ae.types.stsd,Ae.STSD,Ae.mp3(L)):Ae.box(Ae.types.stsd,Ae.STSD,Ae.mp4a(L)):Ae.box(Ae.types.stsd,Ae.STSD,Ae.avc1(L))}},{key:"tkhd",value:function(L){var W=L.id,H=L.duration*L.timescale,Z=L.width,ne=L.height,ve=Math.floor(H/(ko+1)),Te=Math.floor(H%(ko+1));return Ae.box(Ae.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,W>>24&255,W>>16&255,W>>8&255,W&255,0,0,0,0,ve>>24,ve>>16&255,ve>>8&255,ve&255,Te>>24,Te>>16&255,Te>>8&255,Te&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,Z>>8&255,Z&255,0,0,ne>>8&255,ne&255,0,0]))}},{key:"traf",value:function(L,W){var H=Ae.sdtp(L),Z=L.id,ne=Math.floor(W/(ko+1)),ve=Math.floor(W%(ko+1));return Ae.box(Ae.types.traf,Ae.box(Ae.types.tfhd,new Uint8Array([0,0,0,0,Z>>24,Z>>16&255,Z>>8&255,Z&255])),Ae.box(Ae.types.tfdt,new Uint8Array([1,0,0,0,ne>>24,ne>>16&255,ne>>8&255,ne&255,ve>>24,ve>>16&255,ve>>8&255,ve&255])),Ae.trun(L,H.length+16+20+8+16+8+8),H)}},{key:"trak",value:function(L){return L.duration=L.duration||4294967295,Ae.box(Ae.types.trak,Ae.tkhd(L),Ae.mdia(L))}},{key:"trex",value:function(L){var W=L.id;return Ae.box(Ae.types.trex,new Uint8Array([0,0,0,0,W>>24,W>>16&255,W>>8&255,W&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"trun",value:function(L,W){var H=L.samples||[],Z=H.length,ne=12+16*Z,ve=new Uint8Array(ne),Te,ze,st,ht,Zt,Cr;for(W+=8+ne,ve.set([L.type==="video"?1:0,0,15,1,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z&255,W>>>24&255,W>>>16&255,W>>>8&255,W&255],0),Te=0;Te<Z;Te++)ze=H[Te],st=ze.duration,ht=ze.size,Zt=ze.flags,Cr=ze.cts,ve.set([st>>>24&255,st>>>16&255,st>>>8&255,st&255,ht>>>24&255,ht>>>16&255,ht>>>8&255,ht&255,Zt.isLeading<<2|Zt.dependsOn,Zt.isDependedOn<<6|Zt.hasRedundancy<<4|Zt.paddingValue<<1|Zt.isNonSync,Zt.degradPrio&240<<8,Zt.degradPrio&15,Cr>>>24&255,Cr>>>16&255,Cr>>>8&255,Cr&255],12+16*Te);return Ae.box(Ae.types.trun,ve)}},{key:"initSegment",value:function(L){Ae.types||Ae.init();var W=Ae.moov(L),H=new Uint8Array(Ae.FTYP.byteLength+W.byteLength);return H.set(Ae.FTYP),H.set(W,Ae.FTYP.byteLength),H}}]),Ae}();ro.types=void 0,ro.HDLR_TYPES=void 0,ro.STTS=void 0,ro.STSC=void 0,ro.STCO=void 0,ro.STSZ=void 0,ro.VMHD=void 0,ro.SMHD=void 0,ro.STSD=void 0,ro.FTYP=void 0,ro.DINF=void 0;var pa=9e4;function Ea(Ae,ee){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,H=Ae*ee*L;return W?Math.round(H):H}function Fa(Ae,ee){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ea(Ae,ee,1/L,W)}function Ka(Ae){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ea(Ae,1e3,1/pa,ee)}function lo(Ae){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Ea(Ae,pa,1/ee)}var so=10*1e3,Co=1024,Lo=1152,is=null,cs=null,Rs=function(){function Ae(ee,L,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";if(Object(r.a)(this,Ae),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=ee,this.config=L,this.typeSupported=W,this.ISGenerated=!1,is===null){var Z=navigator.userAgent||"",ne=Z.match(/Chrome\/(\d+)/i);is=ne?parseInt(ne[1]):0}if(cs===null){var ve=navigator.userAgent.match(/Safari\/(\d+)/i);cs=ve?parseInt(ve[1]):0}}return Object(a.a)(Ae,[{key:"destroy",value:function(){}},{key:"resetTimeStamp",value:function(L){U.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=L}},{key:"resetNextTimestamp",value:function(){U.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}},{key:"resetInitSegment",value:function(){U.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1}},{key:"getVideoStartPts",value:function(L){var W=!1,H=L.reduce(function(Z,ne){var ve=ne.pts-Z;return ve<-4294967296?(W=!0,Ko(Z,ne.pts)):ve>0?Z:ne.pts},L[0].pts);return W&&U.debug("PTS rollover detected"),H}},{key:"remux",value:function(L,W,H,Z,ne,ve,Te,ze){var st,ht,Zt,Cr,Sr,Kr,Zr=ne,On=ne,Rn=L.pid>-1,Zn=W.pid>-1,wi=W.samples.length,ua=L.samples.length>0,Gi=Te&&wi>0||wi>1,Zi=(!Rn||ua)&&(!Zn||Gi)||this.ISGenerated||Te;if(Zi){this.ISGenerated||(Zt=this.generateIS(L,W,ne,ve));var ka=this.isVideoContiguous,Ga=-1,Ba;if(Gi&&(Ga=as(W.samples),!ka&&this.config.forceKeyFrameOnDiscontinuity))if(Kr=!0,Ga>0){U.warn("[mp4-remuxer]: Dropped ".concat(Ga," out of ").concat(wi," video samples due to a missing keyframe"));var Sa=this.getVideoStartPts(W.samples);W.samples=W.samples.slice(Ga),W.dropped+=Ga,On+=(W.samples[0].pts-Sa)/W.inputTimeScale,Ba=On}else Ga===-1&&(U.warn("[mp4-remuxer]: No keyframe found out of ".concat(wi," video samples")),Kr=!1);if(this.ISGenerated){if(ua&&Gi){var Go=this.getVideoStartPts(W.samples),bs=Ko(L.samples[0].pts,Go)-Go,ys=bs/W.inputTimeScale;Zr+=Math.max(0,ys),On+=Math.max(0,-ys)}if(ua){if(L.samplerate||(U.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),Zt=this.generateIS(L,W,ne,ve)),ht=this.remuxAudio(L,Zr,this.isAudioContiguous,ve,Zn||Gi||ze===gt.AUDIO?On:void 0),Gi){var Cs=ht?ht.endPTS-ht.startPTS:0;W.inputTimeScale||(U.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),Zt=this.generateIS(L,W,ne,ve)),st=this.remuxVideo(W,On,ka,Cs)}}else Gi&&(st=this.remuxVideo(W,On,ka,0));st&&(st.firstKeyFrame=Ga,st.independent=Ga!==-1,st.firstKeyFramePTS=Ba)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(H.samples.length&&(Sr=co(H,ne,this._initPTS,this._initDTS)),Z.samples.length&&(Cr=Ao(Z,ne,this._initPTS))),{audio:ht,video:st,initSegment:Zt,independent:Kr,text:Cr,id3:Sr}}},{key:"generateIS",value:function(L,W,H,Z){var ne=L.samples,ve=W.samples,Te=this.typeSupported,ze={},st=this._initPTS,ht=!st||Z,Zt="audio/mp4",Cr,Sr,Kr;if(ht&&(Cr=Sr=Infinity),L.config&&ne.length){L.timescale=L.samplerate;switch(L.segmentCodec){case"mp3":Te.mpeg?(Zt="audio/mpeg",L.codec=""):Te.mp3&&(L.codec="mp3");break}ze.audio={id:"audio",container:Zt,codec:L.codec,initSegment:L.segmentCodec==="mp3"&&Te.mpeg?new Uint8Array(0):ro.initSegment([L]),metadata:{channelCount:L.channelCount}},ht&&(Kr=L.inputTimeScale,!st||Kr!==st.timescale?Cr=Sr=ne[0].pts-Math.round(Kr*H):ht=!1)}if(W.sps&&W.pps&&ve.length&&(W.timescale=W.inputTimeScale,ze.video={id:"main",container:"video/mp4",codec:W.codec,initSegment:ro.initSegment([W]),metadata:{width:W.width,height:W.height}},ht))if(Kr=W.inputTimeScale,!st||Kr!==st.timescale){var Zr=this.getVideoStartPts(ve),On=Math.round(Kr*H);Sr=Math.min(Sr,Ko(ve[0].dts,Zr)-On),Cr=Math.min(Cr,Zr-On)}else ht=!1;if(Object.keys(ze).length)return this.ISGenerated=!0,ht?(this._initPTS={baseTime:Cr,timescale:Kr},this._initDTS={baseTime:Sr,timescale:Kr}):Cr=Kr=void 0,{tracks:ze,initPTS:Cr,timescale:Kr}}},{key:"remuxVideo",value:function(L,W,H,Z){var ne=L.inputTimeScale,ve=L.samples,Te=[],ze=ve.length,st=this._initPTS,ht=this.nextAvcDts,Zt=8,Cr=this.videoSampleDuration,Sr,Kr,Zr=Number.POSITIVE_INFINITY,On=Number.NEGATIVE_INFINITY,Rn=!1;if(!H||ht===null){var Zn=W*ne,wi=ve[0].pts-Ko(ve[0].dts,ve[0].pts);ht=Zn-wi}for(var ua=st.baseTime*ne/st.timescale,Gi=0;Gi<ze;Gi++){var Zi=ve[Gi];Zi.pts=Ko(Zi.pts-ua,ht),Zi.dts=Ko(Zi.dts-ua,ht),Zi.dts<ve[Gi>0?Gi-1:Gi].dts&&(Rn=!0)}Rn&&ve.sort(function(Ke,It){var nr=Ke.dts-It.dts,wr=Ke.pts-It.pts;return nr||wr}),Sr=ve[0].dts,Kr=ve[ve.length-1].dts;var ka=Kr-Sr,Ga=ka?Math.round(ka/(ze-1)):Cr||L.inputTimeScale/30;if(H){var Ba=Sr-ht,Sa=Ba>Ga,Go=Ba<-1;if((Sa||Go)&&(Sa?U.warn("AVC: ".concat(Ka(Ba,!0)," ms (").concat(Ba,"dts) hole between fragments detected, filling it")):U.warn("AVC: ".concat(Ka(-Ba,!0)," ms (").concat(Ba,"dts) overlapping between fragments detected")),!Go||ht>=ve[0].pts)){Sr=ht;var bs=ve[0].pts-Ba;ve[0].dts=Sr,ve[0].pts=bs,U.log("Video: First PTS/DTS adjusted: ".concat(Ka(bs,!0),"/").concat(Ka(Sr,!0),", delta: ").concat(Ka(Ba,!0)," ms"))}}Sr=Math.max(0,Sr);for(var ys=0,Cs=0,js=0;js<ze;js++){for(var ws=ve[js],Hs=ws.units,Ee=Hs.length,Ye=0,Tt=0;Tt<Ee;Tt++)Ye+=Hs[Tt].data.length;Cs+=Ye,ys+=Ee,ws.length=Ye,ws.dts=Math.max(ws.dts,Sr),Zr=Math.min(ws.pts,Zr),On=Math.max(ws.pts,On)}Kr=ve[ze-1].dts;var hr=Cs+4*ys+8,Br;try{Br=new Uint8Array(hr)}catch(Ke){this.observer.emit(w.ERROR,w.ERROR,{type:O.MUX_ERROR,details:I.REMUX_ALLOC_ERROR,fatal:!1,error:Ke,bytes:hr,reason:"fail allocating video mdat ".concat(hr)});return}var on=new DataView(Br.buffer);on.setUint32(0,hr),Br.set(ro.types.mdat,4);for(var Ue=!1,ae=Number.POSITIVE_INFINITY,_e=Number.POSITIVE_INFINITY,$e=Number.NEGATIVE_INFINITY,wt=Number.NEGATIVE_INFINITY,Vt=0;Vt<ze;Vt++){for(var rr=ve[Vt],ar=rr.units,Vr=0,pn=0,Wr=ar.length;pn<Wr;pn++){var jr=ar[pn],sn=jr.data,yn=jr.data.byteLength;on.setUint32(Zt,yn),Zt+=4,Br.set(sn,Zt),Zt+=yn,Vr+=4+yn}var Vn=void 0;if(Vt<ze-1)Cr=ve[Vt+1].dts-rr.dts,Vn=ve[Vt+1].pts-rr.pts;else{var Li=this.config,Mi=Vt>0?rr.dts-ve[Vt-1].dts:Ga;if(Vn=Vt>0?rr.pts-ve[Vt-1].pts:Ga,Li.stretchShortVideoTrack&&this.nextAudioPts!==null){var da=Math.floor(Li.maxBufferHole*ne),$i=(Z?Zr+Z*ne:this.nextAudioPts)-rr.pts;$i>da?(Cr=$i-Mi,Cr<0?Cr=Mi:Ue=!0,U.log("[mp4-remuxer]: It is approximately ".concat($i/90," ms to the next segment; using duration ").concat(Cr/90," ms for the last video frame."))):Cr=Mi}else Cr=Mi}var Qa=Math.round(rr.pts-rr.dts);ae=Math.min(ae,Cr),$e=Math.max($e,Cr),_e=Math.min(_e,Vn),wt=Math.max(wt,Vn),Te.push(new $a(rr.key,Cr,Vr,Qa))}if(Te.length){if(is){if(is<70){var ya=Te[0].flags;ya.dependsOn=2,ya.isNonSync=0}}else if(cs&&(wt-_e<$e-ae&&Ga/$e<.025&&Te[0].cts===0)){U.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var fo=Sr,za=0,Xo=Te.length;za<Xo;za++){var ls=fo+Te[za].duration,N=fo+Te[za].cts;if(za<Xo-1){var B=ls+Te[za+1].cts;Te[za].duration=B-N}else Te[za].duration=za?Te[za-1].duration:Ga;Te[za].cts=0,fo=ls}}}Cr=Ue||!Cr?Ga:Cr,this.nextAvcDts=ht=Kr+Cr,this.videoSampleDuration=Cr,this.isVideoContiguous=!0;var ie=ro.moof(L.sequenceNumber++,Sr,E({},L,{samples:Te})),le="video",me={data1:ie,data2:Br,startPTS:Zr/ne,endPTS:(On+Cr)/ne,startDTS:Sr/ne,endDTS:ht/ne,type:le,hasAudio:!1,hasVideo:!0,nb:Te.length,dropped:L.dropped};return L.samples=[],L.dropped=0,me}},{key:"remuxAudio",value:function(L,W,H,Z,ne){var ve=L.inputTimeScale,Te=L.samplerate?L.samplerate:ve,ze=ve/Te,st=L.segmentCodec==="aac"?Co:Lo,ht=st*ze,Zt=this._initPTS,Cr=L.segmentCodec==="mp3"&&this.typeSupported.mpeg,Sr=[],Kr=ne!==void 0,Zr=L.samples,On=Cr?0:8,Rn=this.nextAudioPts||-1,Zn=W*ve,wi=Zt.baseTime*ve/Zt.timescale;if(this.isAudioContiguous=H=H||Zr.length&&Rn>0&&(Z&&Math.abs(Zn-Rn)<9e3||Math.abs(Ko(Zr[0].pts-wi,Zn)-Rn)<20*ht),Zr.forEach(function(jr){jr.pts=Ko(jr.pts-wi,Zn)}),!H||Rn<0){if(Zr=Zr.filter(function(jr){return jr.pts>=0}),!Zr.length)return;ne===0?Rn=0:Z&&!Kr?Rn=Math.max(0,Zn):Rn=Zr[0].pts}if(L.segmentCodec==="aac")for(var ua=this.config.maxAudioFramesDrift,Gi=0,Zi=Rn;Gi<Zr.length;Gi++){var ka=Zr[Gi],Ga=ka.pts,Ba=Ga-Zi,Sa=Math.abs(1e3*Ba/ve);if(Ba<=-ua*ht&&Kr)Gi===0&&(U.warn("Audio frame @ ".concat((Ga/ve).toFixed(3),"s overlaps nextAudioPts by ").concat(Math.round(1e3*Ba/ve)," ms.")),this.nextAudioPts=Rn=Zi=Ga);else if(Ba>=ua*ht&&Sa<so&&Kr){var Go=Math.round(Ba/ht);Zi=Ga-Go*ht,Zi<0&&(Go--,Zi+=ht),Gi===0&&(this.nextAudioPts=Rn=Zi),U.warn("[mp4-remuxer]: Injecting ".concat(Go," audio frame @ ").concat((Zi/ve).toFixed(3),"s due to ").concat(Math.round(1e3*Ba/ve)," ms gap."));for(var bs=0;bs<Go;bs++){var ys=Math.max(Zi,0),Cs=ja.getSilentFrame(L.manifestCodec||L.codec,L.channelCount);Cs||(U.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Cs=ka.unit.subarray()),Zr.splice(Gi,0,{unit:Cs,pts:ys}),Zi+=ht,Gi++}}ka.pts=Zi,Zi+=ht}for(var js=null,ws=null,Hs,Ee=0,Ye=Zr.length;Ye--;)Ee+=Zr[Ye].unit.byteLength;for(var Tt=0,hr=Zr.length;Tt<hr;Tt++){var Br=Zr[Tt],on=Br.unit,Ue=Br.pts;if(ws!==null){var ae=Sr[Tt-1];ae.duration=Math.round((Ue-ws)/ze)}else if(H&&L.segmentCodec==="aac"&&(Ue=Rn),js=Ue,Ee>0){Ee+=On;try{Hs=new Uint8Array(Ee)}catch(jr){this.observer.emit(w.ERROR,w.ERROR,{type:O.MUX_ERROR,details:I.REMUX_ALLOC_ERROR,fatal:!1,error:jr,bytes:Ee,reason:"fail allocating audio mdat ".concat(Ee)});return}if(!Cr){var _e=new DataView(Hs.buffer);_e.setUint32(0,Ee),Hs.set(ro.types.mdat,4)}}else return;Hs.set(on,On);var $e=on.byteLength;On+=$e,Sr.push(new $a(!0,st,$e,0)),ws=Ue}var wt=Sr.length;if(!wt)return;var Vt=Sr[Sr.length-1];this.nextAudioPts=Rn=ws+ze*Vt.duration;var rr=Cr?new Uint8Array(0):ro.moof(L.sequenceNumber++,js/ze,E({},L,{samples:Sr}));L.samples=[];var ar=js/ve,Vr=Rn/ve,pn="audio",Wr={data1:rr,data2:Hs,startPTS:ar,endPTS:Vr,startDTS:ar,endDTS:Vr,type:pn,hasAudio:!0,hasVideo:!1,nb:wt};return this.isAudioContiguous=!0,Wr}},{key:"remuxEmptyAudio",value:function(L,W,H,Z){var ne=L.inputTimeScale,ve=L.samplerate?L.samplerate:ne,Te=ne/ve,ze=this.nextAudioPts,st=this._initDTS,ht=st.baseTime*9e4/st.timescale,Zt=(ze!==null?ze:Z.startDTS*ne)+ht,Cr=Z.endDTS*ne+ht,Sr=Te*Co,Kr=Math.ceil((Cr-Zt)/Sr),Zr=ja.getSilentFrame(L.manifestCodec||L.codec,L.channelCount);if(U.warn("[mp4-remuxer]: remux empty Audio"),!Zr){U.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var On=[],Rn=0;Rn<Kr;Rn++){var Zn=Zt+Rn*Sr;On.push({unit:Zr,pts:Zn,dts:Zn})}return L.samples=On,this.remuxAudio(L,W,H,!1)}}]),Ae}();function Ko(Ae,ee){var L;if(ee===null)return Ae;for(ee<Ae?L=-8589934592:L=8589934592;Math.abs(Ae-ee)>4294967296;)Ae+=L;return Ae}function as(Ae){for(var ee=0;ee<Ae.length;ee++)if(Ae[ee].key)return ee;return-1}function co(Ae,ee,L,W){var H=Ae.samples.length;if(!H)return;for(var Z=Ae.inputTimeScale,ne=0;ne<H;ne++){var ve=Ae.samples[ne];ve.pts=Ko(ve.pts-L.baseTime*Z/L.timescale,ee*Z)/Z,ve.dts=Ko(ve.dts-W.baseTime*Z/W.timescale,ee*Z)/Z}var Te=Ae.samples;return Ae.samples=[],{samples:Te}}function Ao(Ae,ee,L){var W=Ae.samples.length;if(!W)return;for(var H=Ae.inputTimeScale,Z=0;Z<W;Z++){var ne=Ae.samples[Z];ne.pts=Ko(ne.pts-L.baseTime*H/L.timescale,ee*H)/H}Ae.samples.sort(function(Te,ze){return Te.pts-ze.pts});var ve=Ae.samples;return Ae.samples=[],{samples:ve}}var $a=Object(a.a)(function Ae(ee,L,W,H){Object(r.a)(this,Ae),this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=L,this.size=W,this.cts=H,this.flags=new ss(ee)}),ss=Object(a.a)(function Ae(ee){Object(r.a)(this,Ae),this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=ee?2:1,this.isNonSync=ee?0:1}),_s=function(){function Ae(){Object(r.a)(this,Ae),this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}return Object(a.a)(Ae,[{key:"destroy",value:function(){}},{key:"resetTimeStamp",value:function(L){this.initPTS=L,this.lastEndTime=null}},{key:"resetNextTimestamp",value:function(){this.lastEndTime=null}},{key:"resetInitSegment",value:function(L,W,H,Z){this.audioCodec=W,this.videoCodec=H,this.generateInitSegment(un(L,Z)),this.emitInitSegment=!0}},{key:"generateInitSegment",value:function(L){var W=this.audioCodec,H=this.videoCodec;if(!(L!=null&&L.byteLength)){this.initTracks=void 0,this.initData=void 0;return}var Z=this.initData=Pr(L);W||(W=il(Z.audio,se.AUDIO)),H||(H=il(Z.video,se.VIDEO));var ne={};Z.audio&&Z.video?ne.audiovideo={container:"video/mp4",codec:W+","+H,initSegment:L,id:"main"}:Z.audio?ne.audio={container:"audio/mp4",codec:W,initSegment:L,id:"audio"}:Z.video?ne.video={container:"video/mp4",codec:H,initSegment:L,id:"main"}:U.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=ne}},{key:"remux",value:function(L,W,H,Z,ne,ve){var Te,ze,st=this.initPTS,ht=this.lastEndTime,Zt={audio:void 0,video:void 0,text:Z,id3:H,initSegment:void 0};T(ht)||(ht=this.lastEndTime=ne||0);var Cr=W.samples;if(!(Cr!=null&&Cr.length))return Zt;var Sr={initPTS:void 0,timescale:1},Kr=this.initData;if((Te=Kr)!=null&&Te.length||(this.generateInitSegment(Cr),Kr=this.initData),!((ze=Kr)!=null&&ze.length))return U.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),Zt;this.emitInitSegment&&(Sr.tracks=this.initTracks,this.emitInitSegment=!1);var Zr=xi(Cr,Kr),On=Xn(Kr,Cr),Rn=On===null?ne:On;(Fo(st,Rn,ne,Zr)||Sr.timescale!==st.timescale&&ve)&&(Sr.initPTS=Rn-ne,st&&st.timescale===1&&U.warn("Adjusting initPTS by ".concat(Sr.initPTS-st.baseTime)),this.initPTS=st={baseTime:Sr.initPTS,timescale:1});var Zn=L?Rn-st.baseTime/st.timescale:ht,wi=Zn+Zr;Un(Kr,Cr,st.baseTime/st.timescale),Zr>0?this.lastEndTime=wi:(U.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var ua=!!Kr.audio,Gi=!!Kr.video,Zi="";ua&&(Zi+="audio"),Gi&&(Zi+="video");var ka={data1:Cr,startPTS:Zn,startDTS:Zn,endPTS:wi,endDTS:wi,type:Zi,hasAudio:ua,hasVideo:Gi,nb:1,dropped:0};return Zt.audio=ka.type==="audio"?ka:void 0,Zt.video=ka.type!=="audio"?ka:void 0,Zt.initSegment=Sr,Zt.id3=co(H,ne,st,st),Z.samples.length&&(Zt.text=Ao(Z,ne,st)),Zt}}]),Ae}();function Fo(Ae,ee,L,W){if(Ae===null)return!0;var H=Math.max(W,1),Z=ee-Ae.baseTime/Ae.timescale;return Math.abs(Z-L)>H}function il(Ae,ee){var L=Ae==null?void 0:Ae.codec;return L&&L.length>4?L:L==="hvc1"||L==="hev1"?"hvc1.1.6.L120.90":L==="av01"?"av01.0.04M.08":L==="avc1"||ee===se.VIDEO?"avc1.42e01e":"mp4a.40.5"}var Eo;try{Eo=self.performance.now.bind(self.performance)}catch(Ae){U.debug("Unable to use Performance API on this environment"),Eo=typeof self!="undefined"&&self.Date.now}var zo=[{demux:Tr,remux:_s},{demux:Ni,remux:Rs},{demux:Ha,remux:Rs},{demux:Da,remux:Rs}],Fs=function(){function Ae(ee,L,W,H,Z){Object(r.a)(this,Ae),this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=ee,this.typeSupported=L,this.config=W,this.vendor=H,this.id=Z}return Object(a.a)(Ae,[{key:"configure",value:function(L){this.transmuxConfig=L,this.decrypter&&this.decrypter.reset()}},{key:"push",value:function(L,W,H,Z){var ne=this,ve=H.transmuxing;ve.executeStart=Eo();var Te=new Uint8Array(L),ze=this.currentTransmuxState,st=this.transmuxConfig;Z&&(this.currentTransmuxState=Z);var ht=Z||ze,Zt=ht.contiguous,Cr=ht.discontinuity,Sr=ht.trackSwitch,Kr=ht.accurateTimeOffset,Zr=ht.timeOffset,On=ht.initSegmentChange,Rn=st.audioCodec,Zn=st.videoCodec,wi=st.defaultInitPts,ua=st.duration,Gi=st.initSegmentData,Zi=ms(Te,W);if(Zi&&Zi.method==="AES-128"){var ka=this.getDecrypter();if(ka.isSync()){var Ga=ka.softwareDecrypt(Te,Zi.key.buffer,Zi.iv.buffer),Ba=H.part>-1;if(Ba&&(Ga=ka.flush()),!Ga)return ve.executeEnd=Eo(),hs(H);Te=new Uint8Array(Ga)}else return this.decryptionPromise=ka.webCryptoDecrypt(Te,Zi.key.buffer,Zi.iv.buffer).then(function(Cs){var js=ne.push(Cs,null,H);return ne.decryptionPromise=null,js}),this.decryptionPromise}var Sa=this.needsProbing(Cr,Sr);if(Sa){var Go=this.configureTransmuxer(Te);if(Go)return U.warn("[transmuxer] ".concat(Go.message)),this.observer.emit(w.ERROR,w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:Go,reason:Go.message}),ve.executeEnd=Eo(),hs(H)}(Cr||Sr||On||Sa)&&this.resetInitSegment(Gi,Rn,Zn,ua,W),(Cr||On||Sa)&&this.resetInitialTimestamp(wi),Zt||this.resetContiguity();var bs=this.transmux(Te,Zi,Zr,Kr,H),ys=this.currentTransmuxState;return ys.contiguous=!0,ys.discontinuity=!1,ys.trackSwitch=!1,ve.executeEnd=Eo(),bs}},{key:"flush",value:function(L){var W=this,H=L.transmuxing;H.executeStart=Eo();var Z=this.decrypter,ne=this.currentTransmuxState,ve=this.decryptionPromise;if(ve)return ve.then(function(){return W.flush(L)});var Te=[],ze=ne.timeOffset;if(Z){var st=Z.flush();st&&Te.push(this.push(st,null,L))}var ht=this.demuxer,Zt=this.remuxer;if(!ht||!Zt)return H.executeEnd=Eo(),[hs(L)];var Cr=ht.flush(ze);return wn(Cr)?Cr.then(function(Sr){return W.flushRemux(Te,Sr,L),Te}):(this.flushRemux(Te,Cr,L),Te)}},{key:"flushRemux",value:function(L,W,H){var Z=W.audioTrack,ne=W.videoTrack,ve=W.id3Track,Te=W.textTrack,ze=this.currentTransmuxState,st=ze.accurateTimeOffset,ht=ze.timeOffset;U.log("[transmuxer.ts]: Flushed fragment ".concat(H.sn).concat(H.part>-1?" p: "+H.part:""," of level ").concat(H.level));var Zt=this.remuxer.remux(Z,ne,ve,Te,ht,st,!0,this.id);L.push({remuxResult:Zt,chunkMeta:H}),H.transmuxing.executeEnd=Eo()}},{key:"resetInitialTimestamp",value:function(L){var W=this.demuxer,H=this.remuxer;if(!W||!H)return;W.resetTimeStamp(L),H.resetTimeStamp(L)}},{key:"resetContiguity",value:function(){var L=this.demuxer,W=this.remuxer;if(!L||!W)return;L.resetContiguity(),W.resetNextTimestamp()}},{key:"resetInitSegment",value:function(L,W,H,Z,ne){var ve=this.demuxer,Te=this.remuxer;if(!ve||!Te)return;ve.resetInitSegment(L,W,H,Z),Te.resetInitSegment(L,W,H,ne)}},{key:"destroy",value:function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}},{key:"transmux",value:function(L,W,H,Z,ne){var ve;return W&&W.method==="SAMPLE-AES"?ve=this.transmuxSampleAes(L,W,H,Z,ne):ve=this.transmuxUnencrypted(L,H,Z,ne),ve}},{key:"transmuxUnencrypted",value:function(L,W,H,Z){var ne=this.demuxer.demux(L,W,!1,!this.config.progressive),ve=ne.audioTrack,Te=ne.videoTrack,ze=ne.id3Track,st=ne.textTrack,ht=this.remuxer.remux(ve,Te,ze,st,W,H,!1,this.id);return{remuxResult:ht,chunkMeta:Z}}},{key:"transmuxSampleAes",value:function(L,W,H,Z,ne){var ve=this;return this.demuxer.demuxSampleAes(L,W,H).then(function(Te){var ze=ve.remuxer.remux(Te.audioTrack,Te.videoTrack,Te.id3Track,Te.textTrack,H,Z,!1,ve.id);return{remuxResult:ze,chunkMeta:ne}})}},{key:"configureTransmuxer",value:function(L){for(var W=this.config,H=this.observer,Z=this.typeSupported,ne=this.vendor,ve,Te=0,ze=zo.length;Te<ze;Te++)if(zo[Te].demux.probe(L)){ve=zo[Te];break}if(!ve)return new Error("Failed to find demuxer by probing fragment data");var st=this.demuxer,ht=this.remuxer,Zt=ve.remux,Cr=ve.demux;(!ht||!(ht instanceof Zt))&&(this.remuxer=new Zt(H,W,Z,ne)),(!st||!(st instanceof Cr))&&(this.demuxer=new Cr(H,W,Z),this.probe=Cr.probe)}},{key:"needsProbing",value:function(L,W){return!this.demuxer||!this.remuxer||L||W}},{key:"getDecrypter",value:function(){var L=this.decrypter;return L||(L=this.decrypter=new _a(this.config)),L}}]),Ae}();function ms(Ae,ee){var L=null;return Ae.byteLength>0&&ee!=null&&ee.key!=null&&ee.iv!==null&&ee.method!=null&&(L=ee),L}var hs=function(ee){return{remuxResult:{},chunkMeta:ee}};function wn(Ae){return"then"in Ae&&Ae.then instanceof Function}var Ns=Object(a.a)(function Ae(ee,L,W,H,Z){Object(r.a)(this,Ae),this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=ee,this.videoCodec=L,this.initSegmentData=W,this.duration=H,this.defaultInitPts=Z||null}),Ll=Object(a.a)(function Ae(ee,L,W,H,Z,ne){Object(r.a)(this,Ae),this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=ee,this.contiguous=L,this.accurateTimeOffset=W,this.trackSwitch=H,this.timeOffset=Z,this.initSegmentChange=ne}),el={exports:{}};(function(Ae){var ee=Object.prototype.hasOwnProperty,L="~";function W(){}Object.create&&(W.prototype=Object.create(null),new W().__proto__||(L=!1));function H(Te,ze,st){this.fn=Te,this.context=ze,this.once=st||!1}function Z(Te,ze,st,ht,Zt){if(typeof st!="function")throw new TypeError("The listener must be a function");var Cr=new H(st,ht||Te,Zt),Sr=L?L+ze:ze;return Te._events[Sr]?Te._events[Sr].fn?Te._events[Sr]=[Te._events[Sr],Cr]:Te._events[Sr].push(Cr):(Te._events[Sr]=Cr,Te._eventsCount++),Te}function ne(Te,ze){--Te._eventsCount===0?Te._events=new W:delete Te._events[ze]}function ve(){this._events=new W,this._eventsCount=0}ve.prototype.eventNames=function(){var ze=[],st,ht;if(this._eventsCount===0)return ze;for(ht in st=this._events)ee.call(st,ht)&&ze.push(L?ht.slice(1):ht);return Object.getOwnPropertySymbols?ze.concat(Object.getOwnPropertySymbols(st)):ze},ve.prototype.listeners=function(ze){var st=L?L+ze:ze,ht=this._events[st];if(!ht)return[];if(ht.fn)return[ht.fn];for(var Zt=0,Cr=ht.length,Sr=new Array(Cr);Zt<Cr;Zt++)Sr[Zt]=ht[Zt].fn;return Sr},ve.prototype.listenerCount=function(ze){var st=L?L+ze:ze,ht=this._events[st];return ht?ht.fn?1:ht.length:0},ve.prototype.emit=function(ze,st,ht,Zt,Cr,Sr){var Kr=L?L+ze:ze;if(!this._events[Kr])return!1;var Zr=this._events[Kr],On=arguments.length,Rn,Zn;if(Zr.fn){Zr.once&&this.removeListener(ze,Zr.fn,void 0,!0);switch(On){case 1:return Zr.fn.call(Zr.context),!0;case 2:return Zr.fn.call(Zr.context,st),!0;case 3:return Zr.fn.call(Zr.context,st,ht),!0;case 4:return Zr.fn.call(Zr.context,st,ht,Zt),!0;case 5:return Zr.fn.call(Zr.context,st,ht,Zt,Cr),!0;case 6:return Zr.fn.call(Zr.context,st,ht,Zt,Cr,Sr),!0}for(Zn=1,Rn=new Array(On-1);Zn<On;Zn++)Rn[Zn-1]=arguments[Zn];Zr.fn.apply(Zr.context,Rn)}else{var wi=Zr.length,ua;for(Zn=0;Zn<wi;Zn++){Zr[Zn].once&&this.removeListener(ze,Zr[Zn].fn,void 0,!0);switch(On){case 1:Zr[Zn].fn.call(Zr[Zn].context);break;case 2:Zr[Zn].fn.call(Zr[Zn].context,st);break;case 3:Zr[Zn].fn.call(Zr[Zn].context,st,ht);break;case 4:Zr[Zn].fn.call(Zr[Zn].context,st,ht,Zt);break;default:if(!Rn)for(ua=1,Rn=new Array(On-1);ua<On;ua++)Rn[ua-1]=arguments[ua];Zr[Zn].fn.apply(Zr[Zn].context,Rn)}}}return!0},ve.prototype.on=function(ze,st,ht){return Z(this,ze,st,ht,!1)},ve.prototype.once=function(ze,st,ht){return Z(this,ze,st,ht,!0)},ve.prototype.removeListener=function(ze,st,ht,Zt){var Cr=L?L+ze:ze;if(!this._events[Cr])return this;if(!st)return ne(this,Cr),this;var Sr=this._events[Cr];if(Sr.fn)Sr.fn===st&&(!Zt||Sr.once)&&(!ht||Sr.context===ht)&&ne(this,Cr);else{for(var Kr=0,Zr=[],On=Sr.length;Kr<On;Kr++)(Sr[Kr].fn!==st||Zt&&!Sr[Kr].once||ht&&Sr[Kr].context!==ht)&&Zr.push(Sr[Kr]);Zr.length?this._events[Cr]=Zr.length===1?Zr[0]:Zr:ne(this,Cr)}return this},ve.prototype.removeAllListeners=function(ze){var st;return ze?(st=L?L+ze:ze,this._events[st]&&ne(this,st)):(this._events=new W,this._eventsCount=0),this},ve.prototype.off=ve.prototype.removeListener,ve.prototype.addListener=ve.prototype.on,ve.prefixed=L,ve.EventEmitter=ve,Ae.exports=ve})(el);var Gs=el.exports,ds=c(Gs),ks=qt()||{isTypeSupported:function(){return!1}},Qs=function(){function Ae(ee,L,W,H){var Z=this;Object(r.a)(this,Ae),this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;var ne=ee.config;this.hls=ee,this.id=L,this.useWorker=!!ne.enableWorker,this.onTransmuxComplete=W,this.onFlush=H;var ve=function(Cr,Sr){Sr=Sr||{},Sr.frag=Z.frag,Sr.id=Z.id,Cr===w.ERROR&&(Z.error=Sr.error),Z.hls.trigger(Cr,Sr)};this.observer=new ds,this.observer.on(w.FRAG_DECRYPTED,ve),this.observer.on(w.ERROR,ve);var Te={mp4:ks.isTypeSupported("video/mp4"),mpeg:ks.isTypeSupported("audio/mpeg"),mp3:ks.isTypeSupported('audio/mp4; codecs="mp3"')},ze=navigator.vendor;if(this.useWorker&&typeof Worker!="undefined"){var st=ne.workerPath||To();if(st){try{ne.workerPath?(U.log("loading Web Worker ".concat(ne.workerPath,' for "').concat(L,'"')),this.workerContext=So(ne.workerPath)):(U.log('injecting Web Worker for "'.concat(L,'"')),this.workerContext=ao()),this.onwmsg=function(Zt){return Z.onWorkerMessage(Zt)};var ht=this.workerContext.worker;ht.addEventListener("message",this.onwmsg),ht.onerror=function(Zt){var Cr=new Error("".concat(Zt.message," (").concat(Zt.filename,":").concat(Zt.lineno,")"));ne.enableWorker=!1,U.warn('Error in "'.concat(L,'" Web Worker, fallback to inline')),Z.hls.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:Cr})},ht.postMessage({cmd:"init",typeSupported:Te,vendor:ze,id:L,config:JSON.stringify(ne)})}catch(Zt){U.warn('Error setting up "'.concat(L,'" Web Worker, fallback to inline'),Zt),this.resetWorker(),this.error=null,this.transmuxer=new Fs(this.observer,Te,ne,ze,L)}return}}this.transmuxer=new Fs(this.observer,Te,ne,ze,L)}return Object(a.a)(Ae,[{key:"resetWorker",value:function(){if(this.workerContext){var L=this.workerContext,W=L.worker,H=L.objectURL;H&&self.URL.revokeObjectURL(H),W.removeEventListener("message",this.onwmsg),W.onerror=null,W.terminate(),this.workerContext=null}}},{key:"destroy",value:function(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{var L=this.transmuxer;L&&(L.destroy(),this.transmuxer=null)}var W=this.observer;W&&W.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}},{key:"push",value:function(L,W,H,Z,ne,ve,Te,ze,st,ht){var Zt=this,Cr,Sr;st.transmuxing.start=self.performance.now();var Kr=this.transmuxer,Zr=ve?ve.start:ne.start,On=ne.decryptdata,Rn=this.frag,Zn=!(Rn&&ne.cc===Rn.cc),wi=!(Rn&&st.level===Rn.level),ua=Rn?st.sn-Rn.sn:-1,Gi=this.part?st.part-this.part.index:-1,Zi=ua===0&&st.id>1&&st.id===(Rn==null?void 0:Rn.stats.chunkCount),ka=!wi&&(ua===1||ua===0&&(Gi===1||Zi&&Gi<=0)),Ga=self.performance.now();(wi||ua||ne.stats.parsing.start===0)&&(ne.stats.parsing.start=Ga),ve&&(Gi||!ka)&&(ve.stats.parsing.start=Ga);var Ba=!(Rn&&((Cr=ne.initSegment)==null?void 0:Cr.url)===((Sr=Rn.initSegment)==null?void 0:Sr.url)),Sa=new Ll(Zn,ka,ze,wi,Zr,Ba);if(!ka||Zn||Ba){U.log("[transmuxer-interface, ".concat(ne.type,"]: Starting new transmux session for sn: ").concat(st.sn," p: ").concat(st.part," level: ").concat(st.level," id: ").concat(st.id,`
|
|
|
discontinuity: `).concat(Zn,`
|
|
|
trackSwitch: `).concat(wi,`
|
|
|
contiguous: `).concat(ka,`
|
|
|
accurateTimeOffset: `).concat(ze,`
|
|
|
timeOffset: `).concat(Zr,`
|
|
|
initSegmentChange: `).concat(Ba));var Go=new Ns(H,Z,W,Te,ht);this.configureTransmuxer(Go)}if(this.frag=ne,this.part=ve,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:L,decryptdata:On,chunkMeta:st,state:Sa},L instanceof ArrayBuffer?[L]:[]);else if(Kr){var bs=Kr.push(L,On,st,Sa);wn(bs)?(Kr.async=!0,bs.then(function(ys){Zt.handleTransmuxComplete(ys)}).catch(function(ys){Zt.transmuxerError(ys,st,"transmuxer-interface push error")})):(Kr.async=!1,this.handleTransmuxComplete(bs))}}},{key:"flush",value:function(L){var W=this;L.transmuxing.start=self.performance.now();var H=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:L});else if(H){var Z=H.flush(L),ne=wn(Z);ne||H.async?(wn(Z)||(Z=Promise.resolve(Z)),Z.then(function(ve){W.handleFlushResult(ve,L)}).catch(function(ve){W.transmuxerError(ve,L,"transmuxer-interface flush error")})):this.handleFlushResult(Z,L)}}},{key:"transmuxerError",value:function(L,W,H){if(!this.hls)return;this.error=L,this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,chunkMeta:W,fatal:!1,error:L,err:L,reason:H})}},{key:"handleFlushResult",value:function(L,W){var H=this;L.forEach(function(Z){H.handleTransmuxComplete(Z)}),this.onFlush(W)}},{key:"onWorkerMessage",value:function(L){var W=L.data,H=this.hls;switch(W.event){case"init":{var Z,ne=(Z=this.workerContext)==null?void 0:Z.objectURL;ne&&self.URL.revokeObjectURL(ne);break}case"transmuxComplete":{this.handleTransmuxComplete(W.data);break}case"flush":{this.onFlush(W.data);break}case"workerLog":U[W.data.logType]&&U[W.data.logType](W.data.message);break;default:{W.data=W.data||{},W.data.frag=this.frag,W.data.id=this.id,H.trigger(W.event,W.data);break}}}},{key:"configureTransmuxer",value:function(L){var W=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:L}):W&&W.configure(L)}},{key:"handleTransmuxComplete",value:function(L){L.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(L)}}]),Ae}(),tl=250,xs=2,Bs=.1,al=.05,Js=function(){function Ae(ee,L,W,H){Object(r.a)(this,Ae),this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=ee,this.media=L,this.fragmentTracker=W,this.hls=H}return Object(a.a)(Ae,[{key:"destroy",value:function(){this.media=null,this.hls=this.fragmentTracker=null}},{key:"poll",value:function(L,W){var H=this.config,Z=this.media,ne=this.stalled;if(Z===null)return;var ve=Z.currentTime,Te=Z.seeking,ze=this.seeking&&!Te,st=!this.seeking&&Te;if(this.seeking=Te,ve!==L){if(this.moved=!0,ne!==null){if(this.stallReported){var ht=self.performance.now()-ne;U.warn("playback not stuck anymore @".concat(ve,", after ").concat(Math.round(ht),"ms")),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if(st||ze){this.stalled=null;return}if(Z.paused&&!Te||Z.ended||Z.playbackRate===0||!Ii.getBuffered(Z).length)return;var Zt=Ii.bufferInfo(Z,ve,0),Cr=Zt.len>0,Sr=Zt.nextStart||0;if(!Cr&&!Sr)return;if(Te){var Kr=Zt.len>xs,Zr=!Sr||W&&W.start<=ve||Sr-ve>xs&&!this.fragmentTracker.getPartialFragment(ve);if(Kr||Zr)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var On,Rn=Math.max(Sr,Zt.start||0)-ve,Zn=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,wi=Zn==null||(On=Zn.details)==null?void 0:On.live,ua=wi?Zn.details.targetduration*2:xs,Gi=this.fragmentTracker.getPartialFragment(ve);if(Rn>0&&(Rn<=ua||Gi)){this._trySkipBufferHole(Gi);return}}var Zi=self.performance.now();if(ne===null){this.stalled=Zi;return}var ka=Zi-ne;if(!Te&&ka>=tl&&(this._reportStall(Zt),!this.media))return;var Ga=Ii.bufferInfo(Z,ve,H.maxBufferHole);this._tryFixBufferStall(Ga,ka)}},{key:"_tryFixBufferStall",value:function(L,W){var H=this.config,Z=this.fragmentTracker,ne=this.media;if(ne===null)return;var ve=ne.currentTime,Te=Z.getPartialFragment(ve);if(Te){var ze=this._trySkipBufferHole(Te);if(ze||!this.media)return}(L.len>H.maxBufferHole||L.nextStart&&L.nextStart-ve<H.maxBufferHole)&&W>H.highBufferWatchdogPeriod*1e3&&(U.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},{key:"_reportStall",value:function(L){var W=this.hls,H=this.media,Z=this.stallReported;if(!Z&&H){this.stallReported=!0;var ne=new Error("Playback stalling at @".concat(H.currentTime," due to low buffer (").concat(JSON.stringify(L),")"));U.warn(ne.message),W.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_STALLED_ERROR,fatal:!1,error:ne,buffer:L.len})}}},{key:"_trySkipBufferHole",value:function(L){var W=this.config,H=this.hls,Z=this.media;if(Z===null)return 0;var ne=Z.currentTime,ve=Ii.bufferInfo(Z,ne,0),Te=ne<ve.start?ve.start:ve.nextStart;if(Te){var ze=ve.len<=W.maxBufferHole,st=ve.len>0&&ve.len<1&&Z.readyState<3,ht=Te-ne;if(ht>0&&(ze||st)){if(ht>W.maxBufferHole){var Zt=this.fragmentTracker,Cr=!1;if(ne===0){var Sr=Zt.getAppendedFrag(0,gt.MAIN);Sr&&Te<Sr.end&&(Cr=!0)}if(!Cr){var Kr=L||Zt.getAppendedFrag(ne,gt.MAIN);if(Kr){for(var Zr=!1,On=Kr.end;On<Te;){var Rn=Zt.getPartialFragment(On);if(Rn)On+=Rn.duration;else{Zr=!0;break}}if(Zr)return 0}}}var Zn=Math.max(Te+al,ne+Bs);if(U.warn("skipping hole, adjusting currentTime from ".concat(ne," to ").concat(Zn)),this.moved=!0,this.stalled=null,Z.currentTime=Zn,L&&!L.gap){var wi=new Error("fragment loaded with buffer holes, seeking from ".concat(ne," to ").concat(Zn));H.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:wi,reason:wi.message,frag:L})}return Zn}}return 0}},{key:"_tryNudgeBuffer",value:function(){var L=this.config,W=this.hls,H=this.media,Z=this.nudgeRetry;if(H===null)return;var ne=H.currentTime;if(this.nudgeRetry++,Z<L.nudgeMaxRetry){var ve=ne+(Z+1)*L.nudgeOffset,Te=new Error("Nudging 'currentTime' from ".concat(ne," to ").concat(ve));U.warn(Te.message),H.currentTime=ve,W.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_NUDGE_ON_STALL,error:Te,fatal:!1})}else{var ze=new Error("Playhead still not moving while enough data buffered @".concat(ne," after ").concat(L.nudgeMaxRetry," nudges"));U.error(ze.message),W.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_STALLED_ERROR,error:ze,fatal:!0})}}}]),Ae}(),Vo=100,No=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H,Z){var ne;return Object(r.a)(this,L),ne=ee.call(this,W,H,Z,"[stream-controller]",gt.MAIN),ne.audioCodecSwap=!1,ne.gapController=null,ne.level=-1,ne._forceStartLoad=!1,ne.altAudio=!1,ne.audioOnly=!1,ne.fragPlaying=null,ne.onvplaying=null,ne.onvseeked=null,ne.fragLastKbps=0,ne.couldBacktrack=!1,ne.backtrackFragment=null,ne.audioCodecSwitch=!1,ne.videoBuffer=null,ne._registerListeners(),ne}return Object(a.a)(L,[{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_PARSED,this.onManifestParsed,this),H.on(w.LEVEL_LOADING,this.onLevelLoading,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),H.on(w.ERROR,this.onError,this),H.on(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.on(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.on(w.BUFFER_CREATED,this.onBufferCreated,this),H.on(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.on(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.on(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_PARSED,this.onManifestParsed,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),H.off(w.ERROR,this.onError,this),H.off(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.off(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.off(w.BUFFER_CREATED,this.onBufferCreated,this),H.off(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.off(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.off(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.onMediaDetaching()}},{key:"startLoad",value:function(H){if(this.levels){var Z=this.lastCurrentTime,ne=this.hls;if(this.stopLoad(),this.setInterval(Vo),this.level=-1,!this.startFragRequested){var ve=ne.startLevel;ve===-1&&(ne.config.testBandwidth&&this.levels.length>1?(ve=0,this.bitrateTest=!0):ve=ne.nextAutoLevel),this.level=ne.nextLoadLevel=ve,this.loadedmetadata=!1}Z>0&&H===-1&&(this.log("Override startPosition with lastCurrentTime @".concat(Z.toFixed(3))),H=Z),this.state=Bi.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}else this._forceStartLoad=!0,this.state=Bi.STOPPED}},{key:"stopLoad",value:function(){this._forceStartLoad=!1,Object(t.a)(Object(m.a)(L.prototype),"stopLoad",this).call(this)}},{key:"doTick",value:function(){switch(this.state){case Bi.WAITING_LEVEL:{var H,Z=this.levels,ne=this.level,ve=Z==null||(H=Z[ne])==null?void 0:H.details;if(ve&&(!ve.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(ve))break;this.state=Bi.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Bi.IDLE;break}break}case Bi.FRAG_LOADING_WAITING_RETRY:{var Te,ze=self.performance.now(),st=this.retryDate;(!st||ze>=st||(Te=this.media)!=null&&Te.seeking)&&(this.resetStartWhenNotLoaded(this.level),this.state=Bi.IDLE)}break}this.state===Bi.IDLE&&this.doTickIdle(),this.onTickEnd()}},{key:"onTickEnd",value:function(){Object(t.a)(Object(m.a)(L.prototype),"onTickEnd",this).call(this),this.checkBuffer(),this.checkFragmentChanged()}},{key:"doTickIdle",value:function(){var H=this.hls,Z=this.levelLastLoaded,ne=this.levels,ve=this.media,Te=H.config,ze=H.nextLoadLevel;if(Z===null||!ve&&(this.startFragRequested||!Te.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!(ne!=null&&ne[ze]))return;var st=ne[ze],ht=this.getMainFwdBufferInfo();if(ht===null)return;var Zt=this.getLevelDetails();if(Zt&&this._streamEnded(ht,Zt)){var Cr={};this.altAudio&&(Cr.type="video"),this.hls.trigger(w.BUFFER_EOS,Cr),this.state=Bi.ENDED;return}H.loadLevel!==ze&&H.manualLevel===-1&&this.log("Adapting to level ".concat(ze," from level ").concat(this.level)),this.level=H.nextLoadLevel=ze;var Sr=st.details;if(!Sr||this.state===Bi.WAITING_LEVEL||Sr.live&&this.levelLastLoaded!==ze){this.level=ze,this.state=Bi.WAITING_LEVEL;return}var Kr=ht.len,Zr=this.getMaxBufferLength(st.maxBitrate);if(Kr>=Zr)return;this.backtrackFragment&&this.backtrackFragment.start>ht.end&&(this.backtrackFragment=null);var On=this.backtrackFragment?this.backtrackFragment.start:ht.end,Rn=this.getNextFragment(On,Sr);if(this.couldBacktrack&&!this.fragPrevious&&Rn&&Rn.sn!=="initSegment"&&this.fragmentTracker.getState(Rn)!==_t.OK){var Zn,wi=((Zn=this.backtrackFragment)!=null?Zn:Rn).sn,ua=wi-Sr.startSN,Gi=Sr.fragments[ua-1];Gi&&Rn.cc===Gi.cc&&(Rn=Gi,this.fragmentTracker.removeFragment(Gi))}else this.backtrackFragment&&ht.len&&(this.backtrackFragment=null);if(Rn&&this.isLoopLoading(Rn,On)){var Zi=Rn.gap;if(!Zi){var ka=this.audioOnly&&!this.altAudio?se.AUDIO:se.VIDEO,Ga=(ka===se.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Ga&&this.afterBufferFlushed(Ga,ka,gt.MAIN)}Rn=this.getNextFragmentLoopLoading(Rn,Sr,ht,gt.MAIN,Zr)}if(!Rn)return;Rn.initSegment&&!Rn.initSegment.data&&!this.bitrateTest&&(Rn=Rn.initSegment),this.loadFragment(Rn,st,On)}},{key:"loadFragment",value:function(H,Z,ne){var ve=this.fragmentTracker.getState(H);this.fragCurrent=H,ve===_t.NOT_LOADED||ve===_t.PARTIAL?H.sn==="initSegment"?this._loadInitSegment(H,Z):this.bitrateTest?(this.log("Fragment ".concat(H.sn," of level ").concat(H.level," is being downloaded to test bitrate and will not be buffered")),this._loadBitrateTestFrag(H,Z)):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(L.prototype),"loadFragment",this).call(this,H,Z,ne)):this.clearTrackerIfNeeded(H)}},{key:"getBufferedFrag",value:function(H){return this.fragmentTracker.getBufferedFrag(H,gt.MAIN)}},{key:"followingBufferedFrag",value:function(H){return H?this.getBufferedFrag(H.end+.5):null}},{key:"immediateLevelSwitch",value:function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}},{key:"nextLevelSwitch",value:function(){var H=this.levels,Z=this.media;if(Z!=null&&Z.readyState){var ne,ve=this.getAppendedFrag(Z.currentTime);ve&&ve.start>1&&this.flushMainBuffer(0,ve.start-1);var Te=this.getLevelDetails();if(Te!=null&&Te.live){var ze=this.getMainFwdBufferInfo();if(!ze||ze.len<Te.targetduration*2)return}if(!Z.paused&&H){var st=this.hls.nextLoadLevel,ht=H[st],Zt=this.fragLastKbps;Zt&&this.fragCurrent?ne=this.fragCurrent.duration*ht.maxBitrate/(1e3*Zt)+1:ne=0}else ne=0;var Cr=this.getBufferedFrag(Z.currentTime+ne);if(Cr){var Sr=this.followingBufferedFrag(Cr);if(Sr){this.abortCurrentFrag();var Kr=Sr.maxStartPTS?Sr.maxStartPTS:Sr.start,Zr=Sr.duration,On=Math.max(Cr.end,Kr+Math.min(Math.max(Zr-this.config.maxFragLookUpTolerance,Zr*.5),Zr*.75));this.flushMainBuffer(On,Number.POSITIVE_INFINITY)}}}}},{key:"abortCurrentFrag",value:function(){var H=this.fragCurrent;this.fragCurrent=null,this.backtrackFragment=null,H&&(H.abortRequests(),this.fragmentTracker.removeFragment(H));switch(this.state){case Bi.KEY_LOADING:case Bi.FRAG_LOADING:case Bi.FRAG_LOADING_WAITING_RETRY:case Bi.PARSING:case Bi.PARSED:this.state=Bi.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}},{key:"flushMainBuffer",value:function(H,Z){Object(t.a)(Object(m.a)(L.prototype),"flushMainBuffer",this).call(this,H,Z,this.altAudio?"video":null)}},{key:"onMediaAttached",value:function(H,Z){Object(t.a)(Object(m.a)(L.prototype),"onMediaAttached",this).call(this,H,Z);var ne=Z.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),ne.addEventListener("playing",this.onvplaying),ne.addEventListener("seeked",this.onvseeked),this.gapController=new Js(this.config,ne,this.fragmentTracker,this.hls)}},{key:"onMediaDetaching",value:function(){var H=this.media;H&&this.onvplaying&&this.onvseeked&&(H.removeEventListener("playing",this.onvplaying),H.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),Object(t.a)(Object(m.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onMediaPlaying",value:function(){this.tick()}},{key:"onMediaSeeked",value:function(){var H=this.media,Z=H?H.currentTime:null;T(Z)&&this.log("Media seeked to ".concat(Z.toFixed(3)));var ne=this.getMainFwdBufferInfo();if(ne===null||ne.len===0){this.warn('Main forward buffer length on "seeked" event '.concat(ne?ne.len:"empty",")"));return}this.tick()}},{key:"onManifestLoading",value:function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(w.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=0,this.levels=this.fragPlaying=this.backtrackFragment=null,this.altAudio=this.audioOnly=!1}},{key:"onManifestParsed",value:function(H,Z){var ne=!1,ve=!1,Te;Z.levels.forEach(function(ze){Te=ze.audioCodec,Te&&(Te.indexOf("mp4a.40.2")!==-1&&(ne=!0),Te.indexOf("mp4a.40.5")!==-1&&(ve=!0))}),this.audioCodecSwitch=ne&&ve&&!mo(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=Z.levels,this.startFragRequested=!1}},{key:"onLevelLoading",value:function(H,Z){var ne=this.levels;if(!ne||this.state!==Bi.IDLE)return;var ve=ne[Z.level];(!ve.details||ve.details.live&&this.levelLastLoaded!==Z.level||this.waitForCdnTuneIn(ve.details))&&(this.state=Bi.WAITING_LEVEL)}},{key:"onLevelLoaded",value:function(H,Z){var ne,ve=this.levels,Te=Z.level,ze=Z.details,st=ze.totalduration;if(!ve){this.warn("Levels were reset while loading level ".concat(Te));return}this.log("Level ".concat(Te," loaded [").concat(ze.startSN,",").concat(ze.endSN,"]").concat(ze.lastPartSn?"[part-".concat(ze.lastPartSn,"-").concat(ze.lastPartIndex,"]"):"",", cc [").concat(ze.startCC,", ").concat(ze.endCC,"] duration:").concat(st));var ht=ve[Te],Zt=this.fragCurrent;Zt&&(this.state===Bi.FRAG_LOADING||this.state===Bi.FRAG_LOADING_WAITING_RETRY)&&((Zt.level!==Z.level||Zt.urlId!==ht.urlId)&&Zt.loader&&this.abortCurrentFrag());var Cr=0;if(ze.live||(ne=ht.details)!=null&&ne.live){if(this.checkLiveUpdate(ze),ze.deltaUpdateFailed)return;Cr=this.alignPlaylists(ze,ht.details)}if(ht.details=ze,this.levelLastLoaded=Te,this.hls.trigger(w.LEVEL_UPDATED,{details:ze,level:Te}),this.state===Bi.WAITING_LEVEL){if(this.waitForCdnTuneIn(ze))return;this.state=Bi.IDLE}this.startFragRequested?ze.live&&this.synchronizeToLiveEdge(ze):this.setStartPosition(ze,Cr),this.tick()}},{key:"_handleFragmentLoadProgress",value:function(H){var Z,ne=H.frag,ve=H.part,Te=H.payload,ze=this.levels;if(!ze){this.warn("Levels were reset while fragment load was in progress. Fragment ".concat(ne.sn," of level ").concat(ne.level," will not be buffered"));return}var st=ze[ne.level],ht=st.details;if(!ht){this.warn("Dropping fragment ".concat(ne.sn," of level ").concat(ne.level," after level details were reset")),this.fragmentTracker.removeFragment(ne);return}var Zt=st.videoCodec,Cr=ht.PTSKnown||!ht.live,Sr=(Z=ne.initSegment)==null?void 0:Z.data,Kr=this._getAudioCodec(st),Zr=this.transmuxer=this.transmuxer||new Qs(this.hls,gt.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),On=ve?ve.index:-1,Rn=On!==-1,Zn=new Vi(ne.level,ne.sn,ne.stats.chunkCount,Te.byteLength,On,Rn),wi=this.initPTS[ne.cc];Zr.push(Te,Sr,Kr,Zt,ne,ve,ht.totalduration,Cr,Zn,wi)}},{key:"onAudioTrackSwitching",value:function(H,Z){var ne=this.altAudio,ve=!!Z.url;if(!ve){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var Te=this.fragCurrent;Te&&(this.log("Switching to main audio track, cancel main fragment load"),Te.abortRequests(),this.fragmentTracker.removeFragment(Te)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var ze=this.hls;ne&&(ze.trigger(w.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),ze.trigger(w.AUDIO_TRACK_SWITCHED,Z)}}},{key:"onAudioTrackSwitched",value:function(H,Z){var ne=Z.id,ve=!!this.hls.audioTracks[ne].url;if(ve){var Te=this.videoBuffer;Te&&this.mediaBuffer!==Te&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=Te)}this.altAudio=ve,this.tick()}},{key:"onBufferCreated",value:function(H,Z){var ne=Z.tracks,ve,Te,ze=!1;for(var st in ne){var ht=ne[st];if(ht.id==="main"){if(Te=st,ve=ht,st==="video"){var Zt=ne[st];Zt&&(this.videoBuffer=Zt.buffer)}}else ze=!0}ze&&ve?(this.log("Alternate track found, use ".concat(Te,".buffered to schedule main fragment loading")),this.mediaBuffer=ve.buffer):this.mediaBuffer=this.media}},{key:"onFragBuffered",value:function(H,Z){var ne=Z.frag,ve=Z.part;if(ne&&ne.type!==gt.MAIN)return;if(this.fragContextChanged(ne)){this.warn("Fragment ".concat(ne.sn).concat(ve?" p: "+ve.index:""," of level ").concat(ne.level," finished buffering, but was aborted. state: ").concat(this.state)),this.state===Bi.PARSED&&(this.state=Bi.IDLE);return}var Te=ve?ve.stats:ne.stats;this.fragLastKbps=Math.round(8*Te.total/(Te.buffering.end-Te.loading.first)),ne.sn!=="initSegment"&&(this.fragPrevious=ne),this.fragBufferedComplete(ne,ve)}},{key:"onError",value:function(H,Z){var ne;if(Z.fatal){this.state=Bi.ERROR;return}switch(Z.details){case I.FRAG_GAP:case I.FRAG_PARSING_ERROR:case I.FRAG_DECRYPT_ERROR:case I.FRAG_LOAD_ERROR:case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_ERROR:case I.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(gt.MAIN,Z);break;case I.LEVEL_LOAD_ERROR:case I.LEVEL_LOAD_TIMEOUT:case I.LEVEL_PARSING_ERROR:!Z.levelRetry&&this.state===Bi.WAITING_LEVEL&&((ne=Z.context)==null?void 0:ne.type)===Ct.LEVEL&&(this.state=Bi.IDLE);break;case I.BUFFER_FULL_ERROR:if(!Z.parent||Z.parent!=="main")return;this.reduceLengthAndFlushBuffer(Z)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case I.INTERNAL_EXCEPTION:this.recoverWorkerError(Z);break}}},{key:"checkBuffer",value:function(){var H=this.media,Z=this.gapController;if(!H||!Z||!H.readyState)return;if(this.loadedmetadata||!Ii.getBuffered(H).length){var ne=this.state!==Bi.IDLE?this.fragCurrent:null;Z.poll(this.lastCurrentTime,ne)}this.lastCurrentTime=H.currentTime}},{key:"onFragLoadEmergencyAborted",value:function(){this.state=Bi.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}},{key:"onBufferFlushed",value:function(H,Z){var ne=Z.type;if(ne!==se.AUDIO||this.audioOnly&&!this.altAudio){var ve=(ne===se.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(ve,ne,gt.MAIN)}}},{key:"onLevelsUpdated",value:function(H,Z){this.levels=Z.levels}},{key:"swapAudioCodec",value:function(){this.audioCodecSwap=!this.audioCodecSwap}},{key:"seekToStartPos",value:function(){var H=this.media;if(!H)return;var Z=H.currentTime,ne=this.startPosition;if(ne>=0&&Z<ne){if(H.seeking){this.log("could not seek to ".concat(ne,", already seeking at ").concat(Z));return}var ve=Ii.getBuffered(H),Te=ve.length?ve.start(0):0,ze=Te-ne;ze>0&&(ze<this.config.maxBufferHole||ze<this.config.maxFragLookUpTolerance)&&(this.log("adjusting start position by ".concat(ze," to match buffer start")),ne+=ze,this.startPosition=ne),this.log("seek to target start position ".concat(ne," from current time ").concat(Z)),H.currentTime=ne}}},{key:"_getAudioCodec",value:function(H){var Z=this.config.defaultAudioCodec||H.audioCodec;return this.audioCodecSwap&&Z&&(this.log("Swapping audio codec"),Z.indexOf("mp4a.40.5")!==-1?Z="mp4a.40.2":Z="mp4a.40.5"),Z}},{key:"_loadBitrateTestFrag",value:function(H,Z){var ne=this;H.bitrateTest=!0,this._doFragLoad(H,Z).then(function(ve){var Te=ne.hls;if(!ve||ne.fragContextChanged(H))return;Z.fragmentError=0,ne.state=Bi.IDLE,ne.startFragRequested=!1,ne.bitrateTest=!1;var ze=H.stats;ze.parsing.start=ze.parsing.end=ze.buffering.start=ze.buffering.end=self.performance.now(),Te.trigger(w.FRAG_LOADED,ve),H.bitrateTest=!1})}},{key:"_handleTransmuxComplete",value:function(H){var Z,ne="main",ve=this.hls,Te=H.remuxResult,ze=H.chunkMeta,st=this.getCurrentContext(ze);if(!st){this.resetWhenMissingContext(ze);return}var ht=st.frag,Zt=st.part,Cr=st.level,Sr=Te.video,Kr=Te.text,Zr=Te.id3,On=Te.initSegment,Rn=Cr.details,Zn=this.altAudio?void 0:Te.audio;if(this.fragContextChanged(ht)){this.fragmentTracker.removeFragment(ht);return}if(this.state=Bi.PARSING,On){if(On!=null&&On.tracks){var wi=ht.initSegment||ht;this._bufferInitSegment(Cr,On.tracks,wi,ze),ve.trigger(w.FRAG_PARSING_INIT_SEGMENT,{frag:wi,id:ne,tracks:On.tracks})}var ua=On.initPTS,Gi=On.timescale;T(ua)&&(this.initPTS[ht.cc]={baseTime:ua,timescale:Gi},ve.trigger(w.INIT_PTS_FOUND,{frag:ht,id:ne,initPTS:ua,timescale:Gi}))}if(Sr&&Rn&&ht.sn!=="initSegment"){var Zi=Rn.fragments[ht.sn-1-Rn.startSN],ka=ht.sn===Rn.startSN,Ga=!Zi||ht.cc>Zi.cc;if(Te.independent!==!1){var Ba=Sr.startPTS,Sa=Sr.endPTS,Go=Sr.startDTS,bs=Sr.endDTS;if(Zt)Zt.elementaryStreams[Sr.type]={startPTS:Ba,endPTS:Sa,startDTS:Go,endDTS:bs};else if(Sr.firstKeyFrame&&Sr.independent&&ze.id===1&&!Ga&&(this.couldBacktrack=!0),Sr.dropped&&Sr.independent){var ys=this.getMainFwdBufferInfo(),Cs=(ys?ys.end:this.getLoadPosition())+this.config.maxBufferHole,js=Sr.firstKeyFramePTS?Sr.firstKeyFramePTS:Ba;if(!ka&&Cs<js-this.config.maxBufferHole&&!Ga){this.backtrack(ht);return}else Ga&&(ht.gap=!0);ht.setElementaryStreamInfo(Sr.type,ht.start,Sa,ht.start,bs,!0)}ht.setElementaryStreamInfo(Sr.type,Ba,Sa,Go,bs),this.backtrackFragment&&(this.backtrackFragment=ht),this.bufferFragmentData(Sr,ht,Zt,ze,ka||Ga)}else if(ka||Ga)ht.gap=!0;else{this.backtrack(ht);return}}if(Zn){var ws=Zn.startPTS,Hs=Zn.endPTS,Ee=Zn.startDTS,Ye=Zn.endDTS;Zt&&(Zt.elementaryStreams[se.AUDIO]={startPTS:ws,endPTS:Hs,startDTS:Ee,endDTS:Ye}),ht.setElementaryStreamInfo(se.AUDIO,ws,Hs,Ee,Ye),this.bufferFragmentData(Zn,ht,Zt,ze)}if(Rn&&Zr!=null&&(Z=Zr.samples)!=null&&Z.length){var Tt={id:ne,frag:ht,details:Rn,samples:Zr.samples};ve.trigger(w.FRAG_PARSING_METADATA,Tt)}if(Rn&&Kr){var hr={id:ne,frag:ht,details:Rn,samples:Kr.samples};ve.trigger(w.FRAG_PARSING_USERDATA,hr)}}},{key:"_bufferInitSegment",value:function(H,Z,ne,ve){var Te=this;if(this.state!==Bi.PARSING)return;this.audioOnly=!!Z.audio&&!Z.video,this.altAudio&&!this.audioOnly&&delete Z.audio;var ze=Z.audio,st=Z.video,ht=Z.audiovideo;if(ze){var Zt=H.audioCodec,Cr=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(Zt&&(Zt.indexOf("mp4a.40.5")!==-1?Zt="mp4a.40.2":Zt="mp4a.40.5"),ze.metadata.channelCount!==1&&Cr.indexOf("firefox")===-1&&(Zt="mp4a.40.5")),Cr.indexOf("android")!==-1&&ze.container!=="audio/mpeg"&&(Zt="mp4a.40.2",this.log("Android: force audio codec to ".concat(Zt))),H.audioCodec&&H.audioCodec!==Zt&&this.log('Swapping manifest audio codec "'.concat(H.audioCodec,'" for "').concat(Zt,'"')),ze.levelCodec=Zt,ze.id="main",this.log("Init audio buffer, container:".concat(ze.container,", codecs[selected/level/parsed]=[").concat(Zt||"","/").concat(H.audioCodec||"","/").concat(ze.codec,"]"))}st&&(st.levelCodec=H.videoCodec,st.id="main",this.log("Init video buffer, container:".concat(st.container,", codecs[level/parsed]=[").concat(H.videoCodec||"","/").concat(st.codec,"]"))),ht&&this.log("Init audiovideo buffer, container:".concat(ht.container,", codecs[level/parsed]=[").concat(H.attrs.CODECS||"","/").concat(ht.codec,"]")),this.hls.trigger(w.BUFFER_CODECS,Z),Object.keys(Z).forEach(function(Sr){var Kr=Z[Sr],Zr=Kr.initSegment;Zr!=null&&Zr.byteLength&&Te.hls.trigger(w.BUFFER_APPENDING,{type:Sr,data:Zr,frag:ne,part:null,chunkMeta:ve,parent:ne.type})}),this.tick()}},{key:"getMainFwdBufferInfo",value:function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,gt.MAIN)}},{key:"backtrack",value:function(H){this.couldBacktrack=!0,this.backtrackFragment=H,this.resetTransmuxer(),this.flushBufferGap(H),this.fragmentTracker.removeFragment(H),this.fragPrevious=null,this.nextLoadPosition=H.start,this.state=Bi.IDLE}},{key:"checkFragmentChanged",value:function(){var H=this.media,Z=null;if(H&&H.readyState>1&&H.seeking===!1){var ne=H.currentTime;if(Ii.isBuffered(H,ne)?Z=this.getAppendedFrag(ne):Ii.isBuffered(H,ne+.1)&&(Z=this.getAppendedFrag(ne+.1)),Z){this.backtrackFragment=null;var ve=this.fragPlaying,Te=Z.level;(!ve||Z.sn!==ve.sn||ve.level!==Te||Z.urlId!==ve.urlId)&&(this.fragPlaying=Z,this.hls.trigger(w.FRAG_CHANGED,{frag:Z}),(!ve||ve.level!==Te)&&this.hls.trigger(w.LEVEL_SWITCHED,{level:Te}))}}}},{key:"nextLevel",get:function(){var H=this.nextBufferedFrag;return H?H.level:-1}},{key:"currentFrag",get:function(){var H=this.media;return H?this.fragPlaying||this.getAppendedFrag(H.currentTime):null}},{key:"currentProgramDateTime",get:function(){var H=this.media;if(H){var Z=H.currentTime,ne=this.currentFrag;if(ne&&T(Z)&&T(ne.programDateTime)){var ve=ne.programDateTime+(Z-ne.start)*1e3;return new Date(ve)}}return null}},{key:"currentLevel",get:function(){var H=this.currentFrag;return H?H.level:-1}},{key:"nextBufferedFrag",get:function(){var H=this.currentFrag;return H?this.followingBufferedFrag(H):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),L}(io),fs=function(){function Ae(ee){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Object(r.a)(this,Ae),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=ee,this.alpha_=ee?Math.exp(Math.log(.5)/ee):0,this.estimate_=L,this.totalWeight_=W}return Object(a.a)(Ae,[{key:"sample",value:function(L,W){var H=Math.pow(this.alpha_,L);this.estimate_=W*(1-H)+H*this.estimate_,this.totalWeight_+=L}},{key:"getTotalWeight",value:function(){return this.totalWeight_}},{key:"getEstimate",value:function(){if(this.alpha_){var L=1-Math.pow(this.alpha_,this.totalWeight_);if(L)return this.estimate_/L}return this.estimate_}}]),Ae}(),Ds=function(){function Ae(ee,L,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:100;Object(r.a)(this,Ae),this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=W,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new fs(ee),this.fast_=new fs(L),this.defaultTTFB_=H,this.ttfb_=new fs(ee)}return Object(a.a)(Ae,[{key:"update",value:function(L,W){var H=this.slow_,Z=this.fast_,ne=this.ttfb_;H.halfLife!==L&&(this.slow_=new fs(L,H.getEstimate(),H.getTotalWeight())),Z.halfLife!==W&&(this.fast_=new fs(W,Z.getEstimate(),Z.getTotalWeight())),ne.halfLife!==L&&(this.ttfb_=new fs(L,ne.getEstimate(),ne.getTotalWeight()))}},{key:"sample",value:function(L,W){L=Math.max(L,this.minDelayMs_);var H=8*W,Z=L/1e3,ne=H/Z;this.fast_.sample(Z,ne),this.slow_.sample(Z,ne)}},{key:"sampleTTFB",value:function(L){var W=L/1e3,H=Math.sqrt(2)*Math.exp(-Math.pow(W,2)/2);this.ttfb_.sample(H,Math.max(L,5))}},{key:"canEstimate",value:function(){return this.fast_.getTotalWeight()>=this.minWeight_}},{key:"getEstimate",value:function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}},{key:"getEstimateTTFB",value:function(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}},{key:"destroy",value:function(){}}]),Ae}(),go=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=-1,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=ee;var L=ee.config;this.bwEstimator=new Ds(L.abrEwmaSlowVoD,L.abrEwmaFastVoD,L.abrEwmaDefaultEstimate),this.registerListeners()}return Object(a.a)(Ae,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.FRAG_LOADING,this.onFragLoading,this),L.on(w.FRAG_LOADED,this.onFragLoaded,this),L.on(w.FRAG_BUFFERED,this.onFragBuffered,this),L.on(w.LEVEL_SWITCHING,this.onLevelSwitching,this),L.on(w.LEVEL_LOADED,this.onLevelLoaded,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.FRAG_LOADING,this.onFragLoading,this),L.off(w.FRAG_LOADED,this.onFragLoaded,this),L.off(w.FRAG_BUFFERED,this.onFragBuffered,this),L.off(w.LEVEL_SWITCHING,this.onLevelSwitching,this),L.off(w.LEVEL_LOADED,this.onLevelLoaded,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null}},{key:"onFragLoading",value:function(L,W){var H,Z=W.frag;if(this.ignoreFragment(Z))return;this.fragCurrent=Z,this.partCurrent=(H=W.part)!=null?H:null,this.clearTimer(),this.timer=self.setInterval(this.onCheck,100)}},{key:"onLevelSwitching",value:function(L,W){this.clearTimer()}},{key:"getTimeToLoadFrag",value:function(L,W,H,Z){var ne=L+H/W,ve=Z?this.lastLevelLoadSec:0;return ne+ve}},{key:"onLevelLoaded",value:function(L,W){var H=this.hls.config,Z=W.stats,ne=Z.total,ve=Z.bwEstimate;T(ne)&&T(ve)&&(this.lastLevelLoadSec=8*ne/ve),W.details.live?this.bwEstimator.update(H.abrEwmaSlowLive,H.abrEwmaFastLive):this.bwEstimator.update(H.abrEwmaSlowVoD,H.abrEwmaFastVoD)}},{key:"_abandonRulesCheck",value:function(){var L=this.fragCurrent,W=this.partCurrent,H=this.hls,Z=H.autoLevelEnabled,ne=H.media;if(!L||!ne)return;var ve=performance.now(),Te=W?W.stats:L.stats,ze=W?W.duration:L.duration,st=ve-Te.loading.start;if(Te.aborted||Te.loaded&&Te.loaded===Te.total||L.level===0){this.clearTimer(),this._nextAutoLevel=-1;return}if(!Z||ne.paused||!ne.playbackRate||!ne.readyState)return;var ht=H.mainForwardBufferInfo;if(ht===null)return;var Zt=this.bwEstimator.getEstimateTTFB(),Cr=Math.abs(ne.playbackRate);if(st<=Math.max(Zt,1e3*(ze/(Cr*2))))return;var Sr=ht.len/Cr;if(Sr>=2*ze/Cr)return;var Kr=Te.loading.first?Te.loading.first-Te.loading.start:-1,Zr=Te.loaded&&Kr>-1,On=this.bwEstimator.getEstimate(),Rn=H.levels,Zn=H.minAutoLevel,wi=Rn[L.level],ua=Te.total||Math.max(Te.loaded,Math.round(ze*wi.maxBitrate/8)),Gi=st-Kr;Gi<1&&Zr&&(Gi=Math.min(st,Te.loaded*8/On));var Zi=Zr?Te.loaded*1e3/Gi:0,ka=Zi?(ua-Te.loaded)/Zi:ua*8/On+Zt/1e3;if(ka<=Sr)return;var Ga=Zi?Zi*8:On,Ba=Number.POSITIVE_INFINITY,Sa;for(Sa=L.level-1;Sa>Zn;Sa--){var Go=Rn[Sa].maxBitrate;if(Ba=this.getTimeToLoadFrag(Zt/1e3,Ga,ze*Go,!Rn[Sa].details),Ba<Sr)break}if(Ba>=ka)return;if(Ba>ze*10)return;H.nextLoadLevel=Sa,Zr?this.bwEstimator.sample(st-Math.min(Zt,Kr),Te.loaded):this.bwEstimator.sampleTTFB(st),this.clearTimer(),U.warn("[abr] Fragment ".concat(L.sn).concat(W?" part "+W.index:""," of level ").concat(L.level,` is loading too slowly;
|
|
|
Time to underbuffer: `).concat(Sr.toFixed(3),` s
|
|
|
Estimated load time for current fragment: `).concat(ka.toFixed(3),` s
|
|
|
Estimated load time for down switch fragment: `).concat(Ba.toFixed(3),` s
|
|
|
TTFB estimate: `).concat(Kr,`
|
|
|
Current BW estimate: `).concat(T(On)?(On/1024).toFixed(3):"Unknown",` Kb/s
|
|
|
New BW estimate: `).concat((this.bwEstimator.getEstimate()/1024).toFixed(3),` Kb/s
|
|
|
Aborting and switching to level `).concat(Sa)),L.loader&&(this.fragCurrent=this.partCurrent=null,L.abortRequests()),H.trigger(w.FRAG_LOAD_EMERGENCY_ABORTED,{frag:L,part:W,stats:Te})}},{key:"onFragLoaded",value:function(L,W){var H=W.frag,Z=W.part,ne=Z?Z.stats:H.stats;if(H.type===gt.MAIN&&this.bwEstimator.sampleTTFB(ne.loading.first-ne.loading.start),this.ignoreFragment(H))return;if(this.clearTimer(),this.lastLoadedFragLevel=H.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var ve=Z?Z.duration:H.duration,Te=this.hls.levels[H.level],ze=(Te.loaded?Te.loaded.bytes:0)+ne.loaded,st=(Te.loaded?Te.loaded.duration:0)+ve;Te.loaded={bytes:ze,duration:st},Te.realBitrate=Math.round(8*ze/st)}if(H.bitrateTest){var ht={stats:ne,frag:H,part:Z,id:H.type};this.onFragBuffered(w.FRAG_BUFFERED,ht),H.bitrateTest=!1}}},{key:"onFragBuffered",value:function(L,W){var H=W.frag,Z=W.part,ne=Z!=null&&Z.stats.loaded?Z.stats:H.stats;if(ne.aborted)return;if(this.ignoreFragment(H))return;var ve=ne.parsing.end-ne.loading.start-Math.min(ne.loading.first-ne.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(ve,ne.loaded),ne.bwEstimate=this.bwEstimator.getEstimate(),H.bitrateTest?this.bitrateTestDelay=ve/1e3:this.bitrateTestDelay=0}},{key:"ignoreFragment",value:function(L){return L.type!==gt.MAIN||L.sn==="initSegment"}},{key:"clearTimer",value:function(){self.clearInterval(this.timer)}},{key:"nextAutoLevel",get:function(){var L=this._nextAutoLevel,W=this.bwEstimator;if(L!==-1&&!W.canEstimate())return L;var H=this.getNextABRAutoLevel();if(L!==-1){var Z=this.hls.levels;if(Z.length>Math.max(L,H)&&Z[L].loadError<=Z[H].loadError)return L}return L!==-1&&(H=Math.min(L,H)),H},set:function(L){this._nextAutoLevel=L}},{key:"getNextABRAutoLevel",value:function(){var L=this.fragCurrent,W=this.partCurrent,H=this.hls,Z=H.maxAutoLevel,ne=H.config,ve=H.minAutoLevel,Te=H.media,ze=W?W.duration:L?L.duration:0,st=Te&&Te.playbackRate!==0?Math.abs(Te.playbackRate):1,ht=this.bwEstimator?this.bwEstimator.getEstimate():ne.abrEwmaDefaultEstimate,Zt=H.mainForwardBufferInfo,Cr=(Zt?Zt.len:0)/st,Sr=this.findBestLevel(ht,ve,Z,Cr,ne.abrBandWidthFactor,ne.abrBandWidthUpFactor);if(Sr>=0)return Sr;U.trace("[abr] ".concat(Cr?"rebuffering expected":"buffer is empty",", finding optimal quality level"));var Kr=ze?Math.min(ze,ne.maxStarvationDelay):ne.maxStarvationDelay,Zr=ne.abrBandWidthFactor,On=ne.abrBandWidthUpFactor;if(!Cr){var Rn=this.bitrateTestDelay;if(Rn){var Zn=ze?Math.min(ze,ne.maxLoadingDelay):ne.maxLoadingDelay;Kr=Zn-Rn,U.trace("[abr] bitrate test took ".concat(Math.round(1e3*Rn),"ms, set first fragment max fetchDuration to ").concat(Math.round(1e3*Kr)," ms")),Zr=On=1}}return Sr=this.findBestLevel(ht,ve,Z,Cr+Kr,Zr,On),Math.max(Sr,0)}},{key:"findBestLevel",value:function(L,W,H,Z,ne,ve){for(var Te,ze=this.fragCurrent,st=this.partCurrent,ht=this.lastLoadedFragLevel,Zt=this.hls.levels,Cr=Zt[ht],Sr=!!(Cr!=null&&(Te=Cr.details)!=null&&Te.live),Kr=Cr==null?void 0:Cr.codecSet,Zr=st?st.duration:ze?ze.duration:0,On=this.bwEstimator.getEstimateTTFB()/1e3,Rn=W,Zn=-1,wi=H;wi>=W;wi--){var ua=Zt[wi];if(!ua||Kr&&ua.codecSet!==Kr){ua&&(Rn=Math.min(wi,Rn),Zn=Math.max(wi,Zn));continue}Zn!==-1&&U.trace("[abr] Skipped level(s) ".concat(Rn,"-").concat(Zn,' with CODECS:"').concat(Zt[Zn].attrs.CODECS,'"; not compatible with "').concat(Cr.attrs.CODECS,'"'));var Gi=ua.details,Zi=(st?Gi==null?void 0:Gi.partTarget:Gi==null?void 0:Gi.averagetargetduration)||Zr,ka=void 0;wi<=ht?ka=ne*L:ka=ve*L;var Ga=Zt[wi].maxBitrate,Ba=this.getTimeToLoadFrag(On,ka,Ga*Zi,Gi===void 0);if(U.trace("[abr] level:".concat(wi," adjustedbw-bitrate:").concat(Math.round(ka-Ga)," avgDuration:").concat(Zi.toFixed(1)," maxFetchDuration:").concat(Z.toFixed(1)," fetchDuration:").concat(Ba.toFixed(1))),ka>Ga&&(Ba===0||!T(Ba)||Sr&&!this.bitrateTestDelay||Ba<Z))return wi}return-1}}]),Ae}(),Ut=function(){function Ae(){Object(r.a)(this,Ae),this.chunks=[],this.dataLength=0}return Object(a.a)(Ae,[{key:"push",value:function(L){this.chunks.push(L),this.dataLength+=L.length}},{key:"flush",value:function(){var L=this.chunks,W=this.dataLength,H;if(L.length)L.length===1?H=L[0]:H=or(L,W);else return new Uint8Array(0);return this.reset(),H}},{key:"reset",value:function(){this.chunks.length=0,this.dataLength=0}}]),Ae}();function or(Ae,ee){for(var L=new Uint8Array(ee),W=0,H=0;H<Ae.length;H++){var Z=Ae[H];L.set(Z,W),W+=Z.length}return L}var Nn=100,hi=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H,Z){var ne;return Object(r.a)(this,L),ne=ee.call(this,W,H,Z,"[audio-stream-controller]",gt.AUDIO),ne.videoBuffer=null,ne.videoTrackCC=-1,ne.waitingVideoCC=-1,ne.bufferedTrack=null,ne.switchingTrack=null,ne.trackId=-1,ne.waitingData=null,ne.mainDetails=null,ne.bufferFlushed=!1,ne.cachedTrackLoadedData=null,ne._registerListeners(),ne}return Object(a.a)(L,[{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}},{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),H.on(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.on(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.on(w.ERROR,this.onError,this),H.on(w.BUFFER_RESET,this.onBufferReset,this),H.on(w.BUFFER_CREATED,this.onBufferCreated,this),H.on(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.on(w.INIT_PTS_FOUND,this.onInitPtsFound,this),H.on(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),H.off(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.off(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.off(w.ERROR,this.onError,this),H.off(w.BUFFER_RESET,this.onBufferReset,this),H.off(w.BUFFER_CREATED,this.onBufferCreated,this),H.off(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.off(w.INIT_PTS_FOUND,this.onInitPtsFound,this),H.off(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onInitPtsFound",value:function(H,Z){var ne=Z.frag,ve=Z.id,Te=Z.initPTS,ze=Z.timescale;if(ve==="main"){var st=ne.cc;this.initPTS[ne.cc]={baseTime:Te,timescale:ze},this.log("InitPTS for cc: ".concat(st," found from main: ").concat(Te)),this.videoTrackCC=st,this.state===Bi.WAITING_INIT_PTS&&this.tick()}}},{key:"startLoad",value:function(H){if(!this.levels){this.startPosition=H,this.state=Bi.STOPPED;return}var Z=this.lastCurrentTime;this.stopLoad(),this.setInterval(Nn),Z>0&&H===-1?(this.log("Override startPosition with lastCurrentTime @".concat(Z.toFixed(3))),H=Z,this.state=Bi.IDLE):(this.loadedmetadata=!1,this.state=Bi.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}},{key:"doTick",value:function(){switch(this.state){case Bi.IDLE:this.doTickIdle();break;case Bi.WAITING_TRACK:{var H,Z=this.levels,ne=this.trackId,ve=Z==null||(H=Z[ne])==null?void 0:H.details;if(ve){if(this.waitForCdnTuneIn(ve))break;this.state=Bi.WAITING_INIT_PTS}break}case Bi.FRAG_LOADING_WAITING_RETRY:{var Te,ze=performance.now(),st=this.retryDate;(!st||ze>=st||(Te=this.media)!=null&&Te.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded(this.trackId),this.state=Bi.IDLE);break}case Bi.WAITING_INIT_PTS:{var ht=this.waitingData;if(ht){var Zt=ht.frag,Cr=ht.part,Sr=ht.cache,Kr=ht.complete;if(this.initPTS[Zt.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=Bi.FRAG_LOADING;var Zr=Sr.flush(),On={frag:Zt,part:Cr,payload:Zr,networkDetails:null};this._handleFragmentLoadProgress(On),Kr&&Object(t.a)(Object(m.a)(L.prototype),"_handleFragmentLoadComplete",this).call(this,On)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc (".concat(Zt.cc,") cancelled because video is at cc ").concat(this.videoTrackCC)),this.clearWaitingFragment();else{var Rn=this.getLoadPosition(),Zn=Ii.bufferInfo(this.mediaBuffer,Rn,this.config.maxBufferHole),wi=kn(Zn.end,this.config.maxFragLookUpTolerance,Zt);wi<0&&(this.log("Waiting fragment cc (".concat(Zt.cc,") @ ").concat(Zt.start," cancelled because another fragment at ").concat(Zn.end," is needed")),this.clearWaitingFragment())}}else this.state=Bi.IDLE}}this.onTickEnd()}},{key:"clearWaitingFragment",value:function(){var H=this.waitingData;H&&(this.fragmentTracker.removeFragment(H.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=Bi.IDLE)}},{key:"resetLoadingState",value:function(){this.clearWaitingFragment(),Object(t.a)(Object(m.a)(L.prototype),"resetLoadingState",this).call(this)}},{key:"onTickEnd",value:function(){var H=this.media;if(!(H!=null&&H.readyState))return;this.lastCurrentTime=H.currentTime}},{key:"doTickIdle",value:function(){var H=this.hls,Z=this.levels,ne=this.media,ve=this.trackId,Te=H.config;if(!(Z!=null&&Z[ve]))return;if(!ne&&(this.startFragRequested||!Te.startFragPrefetch))return;var ze=Z[ve],st=ze.details;if(!st||st.live&&this.levelLastLoaded!==ve||this.waitForCdnTuneIn(st)){this.state=Bi.WAITING_TRACK;return}var ht=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&ht&&(this.bufferFlushed=!1,this.afterBufferFlushed(ht,se.AUDIO,gt.AUDIO));var Zt=this.getFwdBufferInfo(ht,gt.AUDIO);if(Zt===null)return;var Cr=this.bufferedTrack,Sr=this.switchingTrack;if(!Sr&&this._streamEnded(Zt,st)){H.trigger(w.BUFFER_EOS,{type:"audio"}),this.state=Bi.ENDED;return}var Kr=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,gt.MAIN),Zr=Zt.len,On=this.getMaxBufferLength(Kr==null?void 0:Kr.len);if(Zr>=On&&!Sr)return;var Rn=st.fragments,Zn=Rn[0].start,wi=Zt.end;if(Sr&&ne){var ua=this.getLoadPosition();Cr&&Sr.attrs!==Cr.attrs&&(wi=ua),st.PTSKnown&&ua<Zn&&((Zt.end>Zn||Zt.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),ne.currentTime=Zn+.05))}var Gi=this.getNextFragment(wi,st),Zi=!1;if(Gi&&this.isLoopLoading(Gi,wi)&&(Zi=!!Gi.gap,Gi=this.getNextFragmentLoopLoading(Gi,st,Zt,gt.MAIN,On)),!Gi){this.bufferFlushed=!0;return}var ka=Kr&&Gi.start>Kr.end+st.targetduration;if(ka||!(Kr!=null&&Kr.len)&&Zt.len){var Ga=this.getAppendedFrag(Gi.start,gt.MAIN);if(Ga===null)return;if(Zi||(Zi=!!Ga.gap||!!ka&&Kr.len===0),ka&&!Zi||Zi&&Zt.nextStart&&Zt.nextStart<Ga.end)return}this.loadFragment(Gi,ze,wi)}},{key:"getMaxBufferLength",value:function(H){var Z=Object(t.a)(Object(m.a)(L.prototype),"getMaxBufferLength",this).call(this);return H?Math.min(Math.max(Z,H),this.config.maxMaxBufferLength):Z}},{key:"onMediaDetaching",value:function(){this.videoBuffer=null,Object(t.a)(Object(m.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onAudioTracksUpdated",value:function(H,Z){var ne=Z.audioTracks;this.resetTransmuxer(),this.levels=ne.map(function(ve){return new Lt(ve)})}},{key:"onAudioTrackSwitching",value:function(H,Z){var ne=!!Z.url;this.trackId=Z.id;var ve=this.fragCurrent;ve&&(ve.abortRequests(),this.removeUnbufferedFrags(ve.start)),this.resetLoadingState(),ne?this.setInterval(Nn):this.resetTransmuxer(),ne?(this.switchingTrack=Z,this.state=Bi.IDLE):(this.switchingTrack=null,this.bufferedTrack=Z,this.state=Bi.STOPPED),this.tick()}},{key:"onManifestLoading",value:function(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}},{key:"onLevelLoaded",value:function(H,Z){this.mainDetails=Z.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(w.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}},{key:"onAudioTrackLoaded",value:function(H,Z){var ne;if(this.mainDetails==null){this.cachedTrackLoadedData=Z;return}var ve=this.levels,Te=Z.details,ze=Z.id;if(!ve){this.warn("Audio tracks were reset while loading level ".concat(ze));return}this.log("Track ".concat(ze," loaded [").concat(Te.startSN,",").concat(Te.endSN,"]").concat(Te.lastPartSn?"[part-".concat(Te.lastPartSn,"-").concat(Te.lastPartIndex,"]"):"",",duration:").concat(Te.totalduration));var st=ve[ze],ht=0;if(Te.live||(ne=st.details)!=null&&ne.live){this.checkLiveUpdate(Te);var Zt=this.mainDetails;if(Te.deltaUpdateFailed||!Zt)return;!st.details&&Te.hasProgramDateTime&&Zt.hasProgramDateTime?(La(Te,Zt),ht=Te.fragments[0].start):ht=this.alignPlaylists(Te,st.details)}st.details=Te,this.levelLastLoaded=ze,!this.startFragRequested&&(this.mainDetails||!Te.live)&&this.setStartPosition(st.details,ht),this.state===Bi.WAITING_TRACK&&!this.waitForCdnTuneIn(Te)&&(this.state=Bi.IDLE),this.tick()}},{key:"_handleFragmentLoadProgress",value:function(H){var Z,ne=H.frag,ve=H.part,Te=H.payload,ze=this.config,st=this.trackId,ht=this.levels;if(!ht){this.warn("Audio tracks were reset while fragment load was in progress. Fragment ".concat(ne.sn," of level ").concat(ne.level," will not be buffered"));return}var Zt=ht[st];if(!Zt){this.warn("Audio track is undefined on fragment load progress");return}var Cr=Zt.details;if(!Cr){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(ne.start);return}var Sr=ze.defaultAudioCodec||Zt.audioCodec||"mp4a.40.2",Kr=this.transmuxer;Kr||(Kr=this.transmuxer=new Qs(this.hls,gt.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var Zr=this.initPTS[ne.cc],On=(Z=ne.initSegment)==null?void 0:Z.data;if(Zr!==void 0){var Rn=!1,Zn=ve?ve.index:-1,wi=Zn!==-1,ua=new Vi(ne.level,ne.sn,ne.stats.chunkCount,Te.byteLength,Zn,wi);Kr.push(Te,On,Sr,"",ne,ve,Cr.totalduration,Rn,ua,Zr)}else{this.log("Unknown video PTS for cc ".concat(ne.cc,", waiting for video PTS before demuxing audio frag ").concat(ne.sn," of [").concat(Cr.startSN," ,").concat(Cr.endSN,"],track ").concat(st));var Gi=this.waitingData=this.waitingData||{frag:ne,part:ve,cache:new Ut,complete:!1},Zi=Gi.cache;Zi.push(new Uint8Array(Te)),this.waitingVideoCC=this.videoTrackCC,this.state=Bi.WAITING_INIT_PTS}}},{key:"_handleFragmentLoadComplete",value:function(H){if(this.waitingData){this.waitingData.complete=!0;return}Object(t.a)(Object(m.a)(L.prototype),"_handleFragmentLoadComplete",this).call(this,H)}},{key:"onBufferReset",value:function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}},{key:"onBufferCreated",value:function(H,Z){var ne=Z.tracks.audio;ne&&(this.mediaBuffer=ne.buffer||null),Z.tracks.video&&(this.videoBuffer=Z.tracks.video.buffer||null)}},{key:"onFragBuffered",value:function(H,Z){var ne=Z.frag,ve=Z.part;if(ne.type!==gt.AUDIO){if(!this.loadedmetadata&&ne.type===gt.MAIN){var Te=this.videoBuffer||this.media;if(Te){var ze=Ii.getBuffered(Te);ze.length&&(this.loadedmetadata=!0)}}return}if(this.fragContextChanged(ne)){this.warn("Fragment ".concat(ne.sn).concat(ve?" p: "+ve.index:""," of level ").concat(ne.level," finished buffering, but was aborted. state: ").concat(this.state,", audioSwitch: ").concat(this.switchingTrack?this.switchingTrack.name:"false"));return}if(ne.sn!=="initSegment"){this.fragPrevious=ne;var st=this.switchingTrack;st&&(this.bufferedTrack=st,this.switchingTrack=null,this.hls.trigger(w.AUDIO_TRACK_SWITCHED,b({},st)))}this.fragBufferedComplete(ne,ve)}},{key:"onError",value:function(H,Z){var ne;if(Z.fatal){this.state=Bi.ERROR;return}switch(Z.details){case I.FRAG_GAP:case I.FRAG_PARSING_ERROR:case I.FRAG_DECRYPT_ERROR:case I.FRAG_LOAD_ERROR:case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_ERROR:case I.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(gt.AUDIO,Z);break;case I.AUDIO_TRACK_LOAD_ERROR:case I.AUDIO_TRACK_LOAD_TIMEOUT:case I.LEVEL_PARSING_ERROR:!Z.levelRetry&&this.state===Bi.WAITING_TRACK&&((ne=Z.context)==null?void 0:ne.type)===Ct.AUDIO_TRACK&&(this.state=Bi.IDLE);break;case I.BUFFER_FULL_ERROR:if(!Z.parent||Z.parent!=="audio")return;this.reduceLengthAndFlushBuffer(Z)&&(this.bufferedTrack=null,Object(t.a)(Object(m.a)(L.prototype),"flushMainBuffer",this).call(this,0,Number.POSITIVE_INFINITY,"audio"));break;case I.INTERNAL_EXCEPTION:this.recoverWorkerError(Z);break}}},{key:"onBufferFlushed",value:function(H,Z){var ne=Z.type;ne===se.AUDIO&&(this.bufferFlushed=!0,this.state===Bi.ENDED&&(this.state=Bi.IDLE))}},{key:"_handleTransmuxComplete",value:function(H){var Z,ne="audio",ve=this.hls,Te=H.remuxResult,ze=H.chunkMeta,st=this.getCurrentContext(ze);if(!st){this.resetWhenMissingContext(ze);return}var ht=st.frag,Zt=st.part,Cr=st.level,Sr=Cr.details,Kr=Te.audio,Zr=Te.text,On=Te.id3,Rn=Te.initSegment;if(this.fragContextChanged(ht)||!Sr){this.fragmentTracker.removeFragment(ht);return}if(this.state=Bi.PARSING,this.switchingTrack&&Kr&&this.completeAudioSwitch(this.switchingTrack),Rn!=null&&Rn.tracks){var Zn=ht.initSegment||ht;this._bufferInitSegment(Rn.tracks,Zn,ze),ve.trigger(w.FRAG_PARSING_INIT_SEGMENT,{frag:Zn,id:ne,tracks:Rn.tracks})}if(Kr){var wi=Kr.startPTS,ua=Kr.endPTS,Gi=Kr.startDTS,Zi=Kr.endDTS;Zt&&(Zt.elementaryStreams[se.AUDIO]={startPTS:wi,endPTS:ua,startDTS:Gi,endDTS:Zi}),ht.setElementaryStreamInfo(se.AUDIO,wi,ua,Gi,Zi),this.bufferFragmentData(Kr,ht,Zt,ze)}if(On!=null&&(Z=On.samples)!=null&&Z.length){var ka=E({id:ne,frag:ht,details:Sr},On);ve.trigger(w.FRAG_PARSING_METADATA,ka)}if(Zr){var Ga=E({id:ne,frag:ht,details:Sr},Zr);ve.trigger(w.FRAG_PARSING_USERDATA,Ga)}}},{key:"_bufferInitSegment",value:function(H,Z,ne){if(this.state!==Bi.PARSING)return;H.video&&delete H.video;var ve=H.audio;if(!ve)return;ve.levelCodec=ve.codec,ve.id="audio",this.log("Init audio buffer, container:".concat(ve.container,", codecs[parsed]=[").concat(ve.codec,"]")),this.hls.trigger(w.BUFFER_CODECS,H);var Te=ve.initSegment;if(Te!=null&&Te.byteLength){var ze={type:"audio",frag:Z,part:null,chunkMeta:ne,parent:Z.type,data:Te};this.hls.trigger(w.BUFFER_APPENDING,ze)}this.tick()}},{key:"loadFragment",value:function(H,Z,ne){var ve=this.fragmentTracker.getState(H);if(this.fragCurrent=H,this.switchingTrack||ve===_t.NOT_LOADED||ve===_t.PARTIAL){var Te;H.sn==="initSegment"?this._loadInitSegment(H,Z):(Te=Z.details)!=null&&Te.live&&!this.initPTS[H.cc]?(this.log("Waiting for video PTS in continuity counter ".concat(H.cc," of live stream before loading audio fragment ").concat(H.sn," of level ").concat(this.trackId)),this.state=Bi.WAITING_INIT_PTS):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(L.prototype),"loadFragment",this).call(this,H,Z,ne))}else this.clearTrackerIfNeeded(H)}},{key:"completeAudioSwitch",value:function(H){var Z=this.hls,ne=this.media,ve=this.bufferedTrack,Te=ve==null?void 0:ve.attrs,ze=H.attrs;ne&&Te&&(Te.CHANNELS!==ze.CHANNELS||Te.NAME!==ze.NAME||Te.LANGUAGE!==ze.LANGUAGE)&&(this.log("Switching audio track : flushing all audio"),Object(t.a)(Object(m.a)(L.prototype),"flushMainBuffer",this).call(this,0,Number.POSITIVE_INFINITY,"audio")),this.bufferedTrack=H,this.switchingTrack=null,Z.trigger(w.AUDIO_TRACK_SWITCHED,b({},H))}}]),L}(io),Nt=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W){var H;return Object(r.a)(this,L),H=ee.call(this,W,"[audio-track-controller]"),H.tracks=[],H.groupId=null,H.tracksInGroup=[],H.trackId=-1,H.currentTrack=null,H.selectDefaultTrack=!0,H.registerListeners(),H}return Object(a.a)(L,[{key:"registerListeners",value:function(){var H=this.hls;H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_PARSED,this.onManifestParsed,this),H.on(w.LEVEL_LOADING,this.onLevelLoading,this),H.on(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.on(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var H=this.hls;H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_PARSED,this.onManifestParsed,this),H.off(w.LEVEL_LOADING,this.onLevelLoading,this),H.off(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.off(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.off(w.ERROR,this.onError,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,Object(t.a)(Object(m.a)(L.prototype),"destroy",this).call(this)}},{key:"onManifestLoading",value:function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}},{key:"onManifestParsed",value:function(H,Z){this.tracks=Z.audioTracks||[]}},{key:"onAudioTrackLoaded",value:function(H,Z){var ne=Z.id,ve=Z.groupId,Te=Z.details,ze=this.tracksInGroup[ne];if(!ze||ze.groupId!==ve){this.warn("Track with id:".concat(ne," and group:").concat(ve," not found in active group ").concat(ze.groupId));return}var st=ze.details;ze.details=Z.details,this.log("audio-track ".concat(ne,' "').concat(ze.name,'" lang:').concat(ze.lang," group:").concat(ve," loaded [").concat(Te.startSN,"-").concat(Te.endSN,"]")),ne===this.trackId&&this.playlistLoaded(ne,Z,st)}},{key:"onLevelLoading",value:function(H,Z){this.switchLevel(Z.level)}},{key:"onLevelSwitching",value:function(H,Z){this.switchLevel(Z.level)}},{key:"switchLevel",value:function(H){var Z=this.hls.levels[H];if(!(Z!=null&&Z.audioGroupIds))return;var ne=Z.audioGroupIds[Z.urlId];if(this.groupId!==ne){this.groupId=ne||null;var ve=this.tracks.filter(function(ze){return!ne||ze.groupId===ne});this.selectDefaultTrack&&!ve.some(function(ze){return ze.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=ve;var Te={audioTracks:ve};this.log("Updating audio tracks, ".concat(ve.length," track(s) found in group:").concat(ne)),this.hls.trigger(w.AUDIO_TRACKS_UPDATED,Te),this.selectInitialTrack()}else this.shouldReloadPlaylist(this.currentTrack)&&this.setAudioTrack(this.trackId)}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===Ct.AUDIO_TRACK&&Z.context.id===this.trackId&&Z.context.groupId===this.groupId&&(this.requestScheduled=-1,this.checkRetry(Z))}},{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(H){this.selectDefaultTrack=!1,this.setAudioTrack(H)}},{key:"setAudioTrack",value:function(H){var Z=this.tracksInGroup;if(H<0||H>=Z.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var ne=this.currentTrack;Z[this.trackId];var ve=Z[H],Te=ve.groupId,ze=ve.name;if(this.log("Switching to audio-track ".concat(H,' "').concat(ze,'" lang:').concat(ve.lang," group:").concat(Te)),this.trackId=H,this.currentTrack=ve,this.selectDefaultTrack=!1,this.hls.trigger(w.AUDIO_TRACK_SWITCHING,b({},ve)),ve.details&&!ve.details.live)return;var st=this.switchParams(ve.url,ne==null?void 0:ne.details);this.loadPlaylist(st)}},{key:"selectInitialTrack",value:function(){var H=this.tracksInGroup,Z=this.findTrackId(this.currentTrack)|this.findTrackId(null);if(Z!==-1)this.setAudioTrack(Z);else{var ne=new Error("No track found for running audio group-ID: ".concat(this.groupId," track count: ").concat(H.length));this.warn(ne.message),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:ne})}}},{key:"findTrackId",value:function(H){for(var Z=this.tracksInGroup,ne=0;ne<Z.length;ne++){var ve=Z[ne];if(!this.selectDefaultTrack||ve.default){if(!H||H.attrs["STABLE-RENDITION-ID"]!==void 0&&H.attrs["STABLE-RENDITION-ID"]===ve.attrs["STABLE-RENDITION-ID"])return ve.id;if(H.name===ve.name&&H.lang===ve.lang)return ve.id}}return-1}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(m.a)(L.prototype),"loadPlaylist",this).call(this);var Z=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(Z)){var ne=Z.id,ve=Z.groupId,Te=Z.url;if(H)try{Te=H.addDirectives(Te)}catch(ze){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(ze))}this.log("loading audio-track playlist ".concat(ne,' "').concat(Z.name,'" lang:').concat(Z.lang," group:").concat(ve)),this.clearTimer(),this.hls.trigger(w.AUDIO_TRACK_LOADING,{url:Te,id:ne,groupId:ve,deliveryDirectives:H||null})}}}]),L}(mr);function ce(Ae,ee){if(Ae.length!==ee.length)return!1;for(var L=0;L<Ae.length;L++)if(!Se(Ae[L].attrs,ee[L].attrs))return!1;return!0}function Se(Ae,ee){var L=Ae["STABLE-RENDITION-ID"];return L?L===ee["STABLE-RENDITION-ID"]:!["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED"].some(function(W){return Ae[W]!==ee[W]})}var Ie=500,Je=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H,Z){var ne;return Object(r.a)(this,L),ne=ee.call(this,W,H,Z,"[subtitle-stream-controller]",gt.SUBTITLE),ne.levels=[],ne.currentTrackId=-1,ne.tracksBuffered=[],ne.mainDetails=null,ne._registerListeners(),ne}return Object(a.a)(L,[{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.mainDetails=null}},{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.ERROR,this.onError,this),H.on(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),H.on(w.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),H.on(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.on(w.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),H.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this),H.on(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.ERROR,this.onError,this),H.off(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),H.off(w.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),H.off(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.off(w.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),H.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),H.off(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"startLoad",value:function(H){this.stopLoad(),this.state=Bi.IDLE,this.setInterval(Ie),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}},{key:"onManifestLoading",value:function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}},{key:"onMediaDetaching",value:function(){this.tracksBuffered=[],Object(t.a)(Object(m.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onLevelLoaded",value:function(H,Z){this.mainDetails=Z.details}},{key:"onSubtitleFragProcessed",value:function(H,Z){var ne=Z.frag,ve=Z.success;if(this.fragPrevious=ne,this.state=Bi.IDLE,!ve)return;var Te=this.tracksBuffered[this.currentTrackId];if(!Te)return;for(var ze,st=ne.start,ht=0;ht<Te.length;ht++)if(st>=Te[ht].start&&st<=Te[ht].end){ze=Te[ht];break}var Zt=ne.start+ne.duration;ze?ze.end=Zt:(ze={start:st,end:Zt},Te.push(ze)),this.fragmentTracker.fragBuffered(ne)}},{key:"onBufferFlushing",value:function(H,Z){var ne=Z.startOffset,ve=Z.endOffset;if(ne===0&&ve!==Number.POSITIVE_INFINITY){var Te=ve-1;if(Te<=0)return;Z.endOffsetSubtitles=Math.max(0,Te),this.tracksBuffered.forEach(function(ze){for(var st=0;st<ze.length;){if(ze[st].end<=Te){ze.shift();continue}else if(ze[st].start<Te)ze[st].start=Te;else break;st++}}),this.fragmentTracker.removeFragmentsInRange(ne,Te,gt.SUBTITLE)}}},{key:"onFragBuffered",value:function(H,Z){if(!this.loadedmetadata&&Z.frag.type===gt.MAIN){var ne;(ne=this.media)!=null&&ne.buffered.length&&(this.loadedmetadata=!0)}}},{key:"onError",value:function(H,Z){var ne=Z.frag;(ne==null?void 0:ne.type)===gt.SUBTITLE&&(this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Bi.STOPPED&&(this.state=Bi.IDLE))}},{key:"onSubtitleTracksUpdated",value:function(H,Z){var ne=this,ve=Z.subtitleTracks;if(ce(this.levels,ve)){this.levels=ve.map(function(Te){return new Lt(Te)});return}this.tracksBuffered=[],this.levels=ve.map(function(Te){var ze=new Lt(Te);return ne.tracksBuffered[ze.id]=[],ze}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,gt.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}},{key:"onSubtitleTrackSwitch",value:function(H,Z){if(this.currentTrackId=Z.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var ne=this.levels[this.currentTrackId];ne!=null&&ne.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,ne&&this.setInterval(Ie)}},{key:"onSubtitleTrackLoaded",value:function(H,Z){var ne,ve=Z.details,Te=Z.id,ze=this.currentTrackId,st=this.levels;if(!st.length)return;var ht=st[ze];if(Te>=st.length||Te!==ze||!ht)return;this.mediaBuffer=this.mediaBufferTimeRanges;var Zt=0;if(ve.live||(ne=ht.details)!=null&&ne.live){var Cr=this.mainDetails;if(ve.deltaUpdateFailed||!Cr)return;var Sr=Cr.fragments[0];ht.details?(Zt=this.alignPlaylists(ve,ht.details),Zt===0&&Sr&&(Zt=Sr.start,vn(ve,Zt))):ve.hasProgramDateTime&&Cr.hasProgramDateTime?(La(ve,Cr),Zt=ve.fragments[0].start):Sr&&(Zt=Sr.start,vn(ve,Zt))}if(ht.details=ve,this.levelLastLoaded=Te,!this.startFragRequested&&(this.mainDetails||!ve.live)&&this.setStartPosition(ht.details,Zt),this.tick(),ve.live&&!this.fragCurrent&&this.media&&this.state===Bi.IDLE){var Kr=yi(null,ve.fragments,this.media.currentTime,0);Kr||(this.warn("Subtitle playlist not aligned with playback"),ht.details=void 0)}}},{key:"_handleFragmentLoadComplete",value:function(H){var Z=this,ne=H.frag,ve=H.payload,Te=ne.decryptdata,ze=this.hls;if(this.fragContextChanged(ne))return;if(ve&&ve.byteLength>0&&Te&&Te.key&&Te.iv&&Te.method==="AES-128"){var st=performance.now();this.decrypter.decrypt(new Uint8Array(ve),Te.key.buffer,Te.iv.buffer).catch(function(ht){throw ze.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_DECRYPT_ERROR,fatal:!1,error:ht,reason:ht.message,frag:ne}),ht}).then(function(ht){var Zt=performance.now();ze.trigger(w.FRAG_DECRYPTED,{frag:ne,payload:ht,stats:{tstart:st,tdecrypt:Zt}})}).catch(function(ht){Z.warn("".concat(ht.name,": ").concat(ht.message)),Z.state=Bi.IDLE})}}},{key:"doTick",value:function(){if(!this.media){this.state=Bi.IDLE;return}if(this.state===Bi.IDLE){var H=this.currentTrackId,Z=this.levels,ne=Z[H];if(!Z.length||!ne||!ne.details)return;var ve=this.config,Te=this.getLoadPosition(),ze=Ii.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],Te,ve.maxBufferHole),st=ze.end,ht=ze.len,Zt=this.getFwdBufferInfo(this.media,gt.MAIN),Cr=ne.details,Sr=this.getMaxBufferLength(Zt==null?void 0:Zt.len)+Cr.levelTargetDuration;if(ht>Sr)return;var Kr=Cr.fragments,Zr=Kr.length,On=Cr.edge,Rn=null,Zn=this.fragPrevious;if(st<On){var wi=ve.maxFragLookUpTolerance,ua=st>On-wi?0:wi;Rn=yi(Zn,Kr,Math.max(Kr[0].start,st),ua),!Rn&&Zn&&Zn.start<Kr[0].start&&(Rn=Kr[0])}else Rn=Kr[Zr-1];if(!Rn)return;if(Rn=this.mapToInitFragWhenRequired(Rn),Rn.sn!=="initSegment"){var Gi=Rn.sn-Cr.startSN,Zi=Kr[Gi-1];Zi&&Zi.cc===Rn.cc&&this.fragmentTracker.getState(Zi)===_t.NOT_LOADED&&(Rn=Zi)}this.fragmentTracker.getState(Rn)===_t.NOT_LOADED&&this.loadFragment(Rn,ne,st)}}},{key:"getMaxBufferLength",value:function(H){var Z=Object(t.a)(Object(m.a)(L.prototype),"getMaxBufferLength",this).call(this);return H?Math.max(Z,H):Z}},{key:"loadFragment",value:function(H,Z,ne){this.fragCurrent=H,H.sn==="initSegment"?this._loadInitSegment(H,Z):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(L.prototype),"loadFragment",this).call(this,H,Z,ne))}},{key:"mediaBufferTimeRanges",get:function(){return new Dt(this.tracksBuffered[this.currentTrackId]||[])}}]),L}(io),Dt=Object(a.a)(function Ae(ee){Object(r.a)(this,Ae),this.buffered=void 0;var L=function(H,Z,ne){if(Z=Z>>>0,Z>ne-1)throw new DOMException("Failed to execute '".concat(H,"' on 'TimeRanges': The index provided (").concat(Z,") is greater than the maximum bound (").concat(ne,")"));return ee[Z][H]};this.buffered={get length(){return ee.length},end:function(H){return L("end",H,ee.length)},start:function(H){return L("start",H,ee.length)}}}),sr=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W){var H;return Object(r.a)(this,L),H=ee.call(this,W,"[subtitle-track-controller]"),H.media=null,H.tracks=[],H.groupId=null,H.tracksInGroup=[],H.trackId=-1,H.selectDefaultTrack=!0,H.queuedDefaultTrack=-1,H.trackChangeListener=function(){return H.onTextTracksChanged()},H.asyncPollTrackChange=function(){return H.pollTrackChange(0)},H.useTextTrackPolling=!1,H.subtitlePollingInterval=-1,H._subtitleDisplay=!0,H.registerListeners(),H}return Object(a.a)(L,[{key:"destroy",value:function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,Object(t.a)(Object(m.a)(L.prototype),"destroy",this).call(this)}},{key:"subtitleDisplay",get:function(){return this._subtitleDisplay},set:function(H){this._subtitleDisplay=H,this.trackId>-1&&this.toggleTrackModes(this.trackId)}},{key:"registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_PARSED,this.onManifestParsed,this),H.on(w.LEVEL_LOADING,this.onLevelLoading,this),H.on(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.on(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_PARSED,this.onManifestParsed,this),H.off(w.LEVEL_LOADING,this.onLevelLoading,this),H.off(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.off(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.off(w.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(H,Z){if(this.media=Z.media,!this.media)return;this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)}},{key:"pollTrackChange",value:function(H){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,H)}},{key:"onMediaDetaching",value:function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var H=Jr(this.media.textTracks);H.forEach(function(Z){zn(Z)}),this.subtitleTrack=-1,this.media=null}},{key:"onManifestLoading",value:function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0}},{key:"onManifestParsed",value:function(H,Z){this.tracks=Z.subtitleTracks}},{key:"onSubtitleTrackLoaded",value:function(H,Z){var ne=Z.id,ve=Z.details,Te=this.trackId,ze=this.tracksInGroup[Te];if(!ze){this.warn("Invalid subtitle track id ".concat(ne));return}var st=ze.details;ze.details=Z.details,this.log("subtitle track ".concat(ne," loaded [").concat(ve.startSN,"-").concat(ve.endSN,"]")),ne===this.trackId&&this.playlistLoaded(ne,Z,st)}},{key:"onLevelLoading",value:function(H,Z){this.switchLevel(Z.level)}},{key:"onLevelSwitching",value:function(H,Z){this.switchLevel(Z.level)}},{key:"switchLevel",value:function(H){var Z=this.hls.levels[H];if(!(Z!=null&&Z.textGroupIds))return;var ne=Z.textGroupIds[Z.urlId],ve=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;if(this.groupId!==ne){var Te=this.tracks.filter(function(ht){return!ne||ht.groupId===ne});this.tracksInGroup=Te;var ze=this.findTrackId(ve==null?void 0:ve.name)||this.findTrackId();this.groupId=ne||null;var st={subtitleTracks:Te};this.log("Updating subtitle tracks, ".concat(Te.length,' track(s) found in "').concat(ne,'" group-id')),this.hls.trigger(w.SUBTITLE_TRACKS_UPDATED,st),ze!==-1&&this.setSubtitleTrack(ze,ve)}else this.shouldReloadPlaylist(ve)&&this.setSubtitleTrack(this.trackId,ve)}},{key:"findTrackId",value:function(H){for(var Z=this.tracksInGroup,ne=0;ne<Z.length;ne++){var ve=Z[ne];if((!this.selectDefaultTrack||ve.default)&&(!H||H===ve.name))return ve.id}return-1}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===Ct.SUBTITLE_TRACK&&Z.context.id===this.trackId&&Z.context.groupId===this.groupId&&this.checkRetry(Z)}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(H){this.selectDefaultTrack=!1;var Z=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(H,Z)}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(m.a)(L.prototype),"loadPlaylist",this).call(this);var Z=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(Z)){var ne=Z.id,ve=Z.groupId,Te=Z.url;if(H)try{Te=H.addDirectives(Te)}catch(ze){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(ze))}this.log("Loading subtitle playlist for id ".concat(ne)),this.hls.trigger(w.SUBTITLE_TRACK_LOADING,{url:Te,id:ne,groupId:ve,deliveryDirectives:H||null})}}},{key:"toggleTrackModes",value:function(H){var Z=this,ne=this.media,ve=this.trackId;if(!ne)return;var Te=Jr(ne.textTracks),ze=Te.filter(function(Zt){return Zt.groupId===Z.groupId});if(H===-1)[].slice.call(Te).forEach(function(Zt){Zt.mode="disabled"});else{var st=ze[ve];st&&(st.mode="disabled")}var ht=ze[H];ht&&(ht.mode=this.subtitleDisplay?"showing":"hidden")}},{key:"setSubtitleTrack",value:function(H,Z){var ne,ve=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=H;return}if(this.trackId!==H&&this.toggleTrackModes(H),this.trackId===H&&(H===-1||(ne=ve[H])!=null&&ne.details)||H<-1||H>=ve.length)return;this.clearTimer();var Te=ve[H];if(this.log("Switching to subtitle-track ".concat(H)+(Te?' "'.concat(Te.name,'" lang:').concat(Te.lang," group:").concat(Te.groupId):"")),this.trackId=H,Te){var ze=Te.id,st=Te.groupId,ht=st===void 0?"":st,Zt=Te.name,Cr=Te.type,Sr=Te.url;this.hls.trigger(w.SUBTITLE_TRACK_SWITCH,{id:ze,groupId:ht,name:Zt,type:Cr,url:Sr});var Kr=this.switchParams(Te.url,Z==null?void 0:Z.details);this.loadPlaylist(Kr)}else this.hls.trigger(w.SUBTITLE_TRACK_SWITCH,{id:H})}},{key:"onTextTracksChanged",value:function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var H=-1,Z=Jr(this.media.textTracks),ne=0;ne<Z.length;ne++)if(Z[ne].mode==="hidden")H=ne;else if(Z[ne].mode==="showing"){H=ne;break}this.subtitleTrack!==H&&(this.subtitleTrack=H)}}]),L}(mr);function Jr(Ae){for(var ee=[],L=0;L<Ae.length;L++){var W=Ae[L];(W.kind==="subtitles"||W.kind==="captions")&&W.label&&ee.push(Ae[L])}return ee}var gn=function(){function Ae(ee){Object(r.a)(this,Ae),this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=ee}return Object(a.a)(Ae,[{key:"append",value:function(L,W){var H=this.queues[W];H.push(L),H.length===1&&this.buffers[W]&&this.executeNext(W)}},{key:"insertAbort",value:function(L,W){var H=this.queues[W];H.unshift(L),this.executeNext(W)}},{key:"appendBlocker",value:function(L){var W,H=new Promise(function(ne){W=ne}),Z={execute:W,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(Z,L),H}},{key:"executeNext",value:function(L){var W=this.buffers,H=this.queues,Z=W[L],ne=H[L];if(ne.length){var ve=ne[0];try{ve.execute()}catch(Te){U.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),ve.onError(Te),Z!=null&&Z.updating||(ne.shift(),this.executeNext(L))}}}},{key:"shiftAndExecuteNext",value:function(L){this.queues[L].shift(),this.executeNext(L)}},{key:"current",value:function(L){return this.queues[L][0]}}]),Ae}(),Dn=qt(),ui=/([ha]vc.)(?:\.[^.,]+)+/,Si=function(){function Ae(ee){var L=this;Object(r.a)(this,Ae),this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var W=L.media,H=L.mediaSource;U.log("[buffer-controller]: Media source opened"),W&&(W.removeEventListener("emptied",L._onMediaEmptied),L.updateMediaElementDuration(),L.hls.trigger(w.MEDIA_ATTACHED,{media:W})),H&&H.removeEventListener("sourceopen",L._onMediaSourceOpen),L.checkPendingTracks()},this._onMediaSourceClose=function(){U.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){U.log("[buffer-controller]: Media source ended")},this._onMediaEmptied=function(){var W=L.media,H=L._objectUrl;W&&W.src!==H&&U.error("Media element src was set while attaching MediaSource (".concat(H," > ").concat(W.src,")"))},this.hls=ee,this._initSourceBuffer(),this.registerListeners()}return Object(a.a)(Ae,[{key:"hasSourceTypes",value:function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}},{key:"destroy",value:function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null}},{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.MANIFEST_PARSED,this.onManifestParsed,this),L.on(w.BUFFER_RESET,this.onBufferReset,this),L.on(w.BUFFER_APPENDING,this.onBufferAppending,this),L.on(w.BUFFER_CODECS,this.onBufferCodecs,this),L.on(w.BUFFER_EOS,this.onBufferEos,this),L.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.on(w.LEVEL_UPDATED,this.onLevelUpdated,this),L.on(w.FRAG_PARSED,this.onFragParsed,this),L.on(w.FRAG_CHANGED,this.onFragChanged,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.MANIFEST_PARSED,this.onManifestParsed,this),L.off(w.BUFFER_RESET,this.onBufferReset,this),L.off(w.BUFFER_APPENDING,this.onBufferAppending,this),L.off(w.BUFFER_CODECS,this.onBufferCodecs,this),L.off(w.BUFFER_EOS,this.onBufferEos,this),L.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.off(w.LEVEL_UPDATED,this.onLevelUpdated,this),L.off(w.FRAG_PARSED,this.onFragParsed,this),L.off(w.FRAG_CHANGED,this.onFragChanged,this)}},{key:"_initSourceBuffer",value:function(){this.sourceBuffer={},this.operationQueue=new gn(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.lastMpegAudioChunk=null}},{key:"onManifestLoading",value:function(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}},{key:"onManifestParsed",value:function(L,W){var H=2;(W.audio&&!W.video||!W.altAudio||!1)&&(H=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=H,U.log("".concat(this.bufferCodecEventsExpected," bufferCodec event(s) expected"))}},{key:"onMediaAttaching",value:function(L,W){var H=this.media=W.media;if(H&&Dn){var Z=this.mediaSource=new Dn;Z.addEventListener("sourceopen",this._onMediaSourceOpen),Z.addEventListener("sourceended",this._onMediaSourceEnded),Z.addEventListener("sourceclose",this._onMediaSourceClose),H.src=self.URL.createObjectURL(Z),this._objectUrl=H.src,H.addEventListener("emptied",this._onMediaEmptied)}}},{key:"onMediaDetaching",value:function(){var L=this.media,W=this.mediaSource,H=this._objectUrl;if(W){if(U.log("[buffer-controller]: media source detaching"),W.readyState==="open")try{W.endOfStream()}catch(Z){U.warn("[buffer-controller]: onMediaDetaching: ".concat(Z.message," while calling endOfStream"))}this.onBufferReset(),W.removeEventListener("sourceopen",this._onMediaSourceOpen),W.removeEventListener("sourceended",this._onMediaSourceEnded),W.removeEventListener("sourceclose",this._onMediaSourceClose),L&&(L.removeEventListener("emptied",this._onMediaEmptied),H&&self.URL.revokeObjectURL(H),L.src===H?(L.removeAttribute("src"),L.load()):U.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(w.MEDIA_DETACHED,void 0)}},{key:"onBufferReset",value:function(){var L=this;this.getSourceBufferTypes().forEach(function(W){var H=L.sourceBuffer[W];try{H&&(L.removeBufferListeners(W),L.mediaSource&&L.mediaSource.removeSourceBuffer(H),L.sourceBuffer[W]=void 0)}catch(Z){U.warn("[buffer-controller]: Failed to reset the ".concat(W," buffer"),Z)}}),this._initSourceBuffer()}},{key:"onBufferCodecs",value:function(L,W){var H=this,Z=this.getSourceBufferTypes().length;if(Object.keys(W).forEach(function(ne){if(Z){var ve=H.tracks[ne];if(ve&&typeof ve.buffer.changeType=="function"){var Te=W[ne],ze=Te.id,st=Te.codec,ht=Te.levelCodec,Zt=Te.container,Cr=Te.metadata,Sr=(ve.levelCodec||ve.codec).replace(ui,"$1"),Kr=(ht||st).replace(ui,"$1");if(Sr!==Kr){var Zr="".concat(Zt,";codecs=").concat(ht||st);H.appendChangeType(ne,Zr),U.log("[buffer-controller]: switching codec ".concat(Sr," to ").concat(Kr)),H.tracks[ne]={buffer:ve.buffer,codec:st,container:Zt,levelCodec:ht,metadata:Cr,id:ze}}}}else H.pendingTracks[ne]=W[ne]}),Z)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}},{key:"appendChangeType",value:function(L,W){var H=this,Z=this.operationQueue,ne={execute:function(){var Te=H.sourceBuffer[L];Te&&(U.log("[buffer-controller]: changing ".concat(L," sourceBuffer type to ").concat(W)),Te.changeType(W)),Z.shiftAndExecuteNext(L)},onStart:function(){},onComplete:function(){},onError:function(Te){U.warn("[buffer-controller]: Failed to change ".concat(L," SourceBuffer type"),Te)}};Z.append(ne,L)}},{key:"onBufferAppending",value:function(L,W){var H=this,Z=this.hls,ne=this.operationQueue,ve=this.tracks,Te=W.data,ze=W.type,st=W.frag,ht=W.part,Zt=W.chunkMeta,Cr=Zt.buffering[ze],Sr=self.performance.now();Cr.start=Sr;var Kr=st.stats.buffering,Zr=ht?ht.stats.buffering:null;Kr.start===0&&(Kr.start=Sr),Zr&&Zr.start===0&&(Zr.start=Sr);var On=ve.audio,Rn=!1;ze==="audio"&&(On==null?void 0:On.container)==="audio/mpeg"&&(Rn=!this.lastMpegAudioChunk||Zt.id===1||this.lastMpegAudioChunk.sn!==Zt.sn,this.lastMpegAudioChunk=Zt);var Zn=st.start,wi={execute:function(){if(Cr.executeStart=self.performance.now(),Rn){var Gi=H.sourceBuffer[ze];if(Gi){var Zi=Zn-Gi.timestampOffset;Math.abs(Zi)>=.1&&(U.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to ".concat(Zn," (delta: ").concat(Zi,") sn: ").concat(st.sn,")")),Gi.timestampOffset=Zn)}}H.appendExecutor(Te,ze)},onStart:function(){},onComplete:function(){var Gi=self.performance.now();Cr.executeEnd=Cr.end=Gi,Kr.first===0&&(Kr.first=Gi),Zr&&Zr.first===0&&(Zr.first=Gi);var Zi=H.sourceBuffer,ka={};for(var Ga in Zi)ka[Ga]=Ii.getBuffered(Zi[Ga]);H.appendError=0,H.hls.trigger(w.BUFFER_APPENDED,{type:ze,frag:st,part:ht,chunkMeta:Zt,parent:st.type,timeRanges:ka})},onError:function(Gi){U.error("[buffer-controller]: Error encountered while trying to append to the ".concat(ze," SourceBuffer"),Gi);var Zi={type:O.MEDIA_ERROR,parent:st.type,details:I.BUFFER_APPEND_ERROR,frag:st,part:ht,chunkMeta:Zt,error:Gi,err:Gi,fatal:!1};Gi.code===DOMException.QUOTA_EXCEEDED_ERR?Zi.details=I.BUFFER_FULL_ERROR:(H.appendError++,Zi.details=I.BUFFER_APPEND_ERROR,H.appendError>Z.config.appendErrorMaxRetry&&(U.error("[buffer-controller]: Failed ".concat(Z.config.appendErrorMaxRetry," times to append segment in sourceBuffer")),Zi.fatal=!0)),Z.trigger(w.ERROR,Zi)}};ne.append(wi,ze)}},{key:"onBufferFlushing",value:function(L,W){var H=this,Z=this.operationQueue,ne=function(Te){return{execute:H.removeExecutor.bind(H,Te,W.startOffset,W.endOffset),onStart:function(){},onComplete:function(){H.hls.trigger(w.BUFFER_FLUSHED,{type:Te})},onError:function(st){U.warn("[buffer-controller]: Failed to remove from ".concat(Te," SourceBuffer"),st)}}};W.type?Z.append(ne(W.type),W.type):this.getSourceBufferTypes().forEach(function(ve){Z.append(ne(ve),ve)})}},{key:"onFragParsed",value:function(L,W){var H=this,Z=W.frag,ne=W.part,ve=[],Te=ne?ne.elementaryStreams:Z.elementaryStreams;Te[se.AUDIOVIDEO]?ve.push("audiovideo"):(Te[se.AUDIO]&&ve.push("audio"),Te[se.VIDEO]&&ve.push("video"));var ze=function(){var ht=self.performance.now();Z.stats.buffering.end=ht,ne&&(ne.stats.buffering.end=ht);var Zt=ne?ne.stats:Z.stats;H.hls.trigger(w.FRAG_BUFFERED,{frag:Z,part:ne,stats:Zt,id:Z.type})};ve.length===0&&U.warn("Fragments must have at least one ElementaryStreamType set. type: ".concat(Z.type," level: ").concat(Z.level," sn: ").concat(Z.sn)),this.blockBuffers(ze,ve)}},{key:"onFragChanged",value:function(L,W){this.flushBackBuffer()}},{key:"onBufferEos",value:function(L,W){var H=this,Z=this.getSourceBufferTypes().reduce(function(ne,ve){var Te=H.sourceBuffer[ve];return Te&&(!W.type||W.type===ve)&&(Te.ending=!0,Te.ended||(Te.ended=!0,U.log("[buffer-controller]: ".concat(ve," sourceBuffer now EOS")))),ne&&!!(!Te||Te.ended)},!0);Z&&(U.log("[buffer-controller]: Queueing mediaSource.endOfStream()"),this.blockBuffers(function(){H.getSourceBufferTypes().forEach(function(ve){var Te=H.sourceBuffer[ve];Te&&(Te.ending=!1)});var ne=H.mediaSource;if(!ne||ne.readyState!=="open"){ne&&U.info("[buffer-controller]: Could not call mediaSource.endOfStream(). mediaSource.readyState: ".concat(ne.readyState));return}U.log("[buffer-controller]: Calling mediaSource.endOfStream()"),ne.endOfStream()}))}},{key:"onLevelUpdated",value:function(L,W){var H=W.details;if(!H.fragments.length)return;this.details=H,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()}},{key:"flushBackBuffer",value:function(){var L=this.hls,W=this.details,H=this.media,Z=this.sourceBuffer;if(!H||W===null)return;var ne=this.getSourceBufferTypes();if(!ne.length)return;var ve=W.live&&L.config.liveBackBufferLength!==null?L.config.liveBackBufferLength:L.config.backBufferLength;if(!T(ve)||ve<0)return;var Te=H.currentTime,ze=W.levelTargetDuration,st=Math.max(ve,ze),ht=Math.floor(Te/ze)*ze-st;ne.forEach(function(Zt){var Cr=Z[Zt];if(Cr){var Sr=Ii.getBuffered(Cr);if(Sr.length>0&&ht>Sr.start(0)){if(L.trigger(w.BACK_BUFFER_REACHED,{bufferEnd:ht}),W.live)L.trigger(w.LIVE_BACK_BUFFER_REACHED,{bufferEnd:ht});else if(Cr.ended&&Sr.end(Sr.length-1)-Te<ze*2){U.info("[buffer-controller]: Cannot flush ".concat(Zt," back buffer while SourceBuffer is in ended state"));return}L.trigger(w.BUFFER_FLUSHING,{startOffset:0,endOffset:ht,type:Zt})}}})}},{key:"updateMediaElementDuration",value:function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var L=this.details,W=this.hls,H=this.media,Z=this.mediaSource,ne=L.fragments[0].start+L.totalduration,ve=H.duration,Te=T(Z.duration)?Z.duration:0;L.live&&W.config.liveDurationInfinity?(U.log("[buffer-controller]: Media Source duration is set to Infinity"),Z.duration=Infinity,this.updateSeekableRange(L)):(ne>Te&&ne>ve||!T(ve))&&(U.log("[buffer-controller]: Updating Media Source duration to ".concat(ne.toFixed(3))),Z.duration=ne)}},{key:"updateSeekableRange",value:function(L){var W=this.mediaSource,H=L.fragments,Z=H.length;if(Z&&L.live&&W!=null&&W.setLiveSeekableRange){var ne=Math.max(0,H[0].start),ve=Math.max(ne,ne+L.totalduration);W.setLiveSeekableRange(ne,ve)}}},{key:"checkPendingTracks",value:function(){var L=this.bufferCodecEventsExpected,W=this.operationQueue,H=this.pendingTracks,Z=Object.keys(H).length;if(Z&&!L||Z===2){this.createSourceBuffers(H),this.pendingTracks={};var ne=this.getSourceBufferTypes();if(ne.length)this.hls.trigger(w.BUFFER_CREATED,{tracks:this.tracks}),ne.forEach(function(Te){W.executeNext(Te)});else{var ve=new Error("could not create source buffer for media codec(s)");this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:ve,reason:ve.message})}}}},{key:"createSourceBuffers",value:function(L){var W=this.sourceBuffer,H=this.mediaSource;if(!H)throw Error("createSourceBuffers called when mediaSource was null");for(var Z in L)if(!W[Z]){var ne=L[Z];if(!ne)throw Error("source buffer exists for track ".concat(Z,", however track does not"));var ve=ne.levelCodec||ne.codec,Te="".concat(ne.container,";codecs=").concat(ve);U.log("[buffer-controller]: creating sourceBuffer(".concat(Te,")"));try{var ze=W[Z]=H.addSourceBuffer(Te),st=Z;this.addBufferListener(st,"updatestart",this._onSBUpdateStart),this.addBufferListener(st,"updateend",this._onSBUpdateEnd),this.addBufferListener(st,"error",this._onSBUpdateError),this.tracks[Z]={buffer:ze,codec:ve,container:ne.container,levelCodec:ne.levelCodec,metadata:ne.metadata,id:ne.id}}catch(ht){U.error("[buffer-controller]: error while trying to add sourceBuffer: ".concat(ht.message)),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:ht,mimeType:Te})}}}},{key:"_onSBUpdateStart",value:function(L){var W=this.operationQueue,H=W.current(L);H.onStart()}},{key:"_onSBUpdateEnd",value:function(L){var W=this.operationQueue,H=W.current(L);H.onComplete(),W.shiftAndExecuteNext(L)}},{key:"_onSBUpdateError",value:function(L,W){var H=new Error("".concat(L," SourceBuffer error"));U.error("[buffer-controller]: ".concat(H),W),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_APPENDING_ERROR,error:H,fatal:!1});var Z=this.operationQueue.current(L);Z&&Z.onError(W)}},{key:"removeExecutor",value:function(L,W,H){var Z=this.media,ne=this.mediaSource,ve=this.operationQueue,Te=this.sourceBuffer,ze=Te[L];if(!Z||!ne||!ze){U.warn("[buffer-controller]: Attempting to remove from the ".concat(L," SourceBuffer, but it does not exist")),ve.shiftAndExecuteNext(L);return}var st=T(Z.duration)?Z.duration:Infinity,ht=T(ne.duration)?ne.duration:Infinity,Zt=Math.max(0,W),Cr=Math.min(H,st,ht);Cr>Zt&&!ze.ending?(ze.ended=!1,U.log("[buffer-controller]: Removing [".concat(Zt,",").concat(Cr,"] from the ").concat(L," SourceBuffer")),ze.remove(Zt,Cr)):ve.shiftAndExecuteNext(L)}},{key:"appendExecutor",value:function(L,W){var H=this.operationQueue,Z=this.sourceBuffer,ne=Z[W];if(!ne){U.warn("[buffer-controller]: Attempting to append to the ".concat(W," SourceBuffer, but it does not exist")),H.shiftAndExecuteNext(W);return}ne.ended=!1,ne.appendBuffer(L)}},{key:"blockBuffers",value:function(L){var W=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getSourceBufferTypes();if(!H.length){U.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(L);return}var Z=this.operationQueue,ne=H.map(function(ve){return Z.appendBlocker(ve)});Promise.all(ne).then(function(){L(),H.forEach(function(ve){var Te=W.sourceBuffer[ve];Te!=null&&Te.updating||Z.shiftAndExecuteNext(ve)})})}},{key:"getSourceBufferTypes",value:function(){return Object.keys(this.sourceBuffer)}},{key:"addBufferListener",value:function(L,W,H){var Z=this.sourceBuffer[L];if(!Z)return;var ne=H.bind(this,L);this.listeners[L].push({event:W,listener:ne}),Z.addEventListener(W,ne)}},{key:"removeBufferListeners",value:function(L){var W=this.sourceBuffer[L];if(!W)return;this.listeners[L].forEach(function(H){W.removeEventListener(H.event,H.listener)})}}]),Ae}(),vi={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},Qi=function(ee){var L=ee;return vi.hasOwnProperty(ee)&&(L=vi[ee]),String.fromCharCode(L)},sa=15,Ua=100,no={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Wo={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Zo={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Bo={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Es=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],As=function(){function Ae(){Object(r.a)(this,Ae),this.time=null,this.verboseLevel=0}return Object(a.a)(Ae,[{key:"log",value:function(L,W){if(this.verboseLevel>=L){var H=typeof W=="function"?W():W;U.log("".concat(this.time," [").concat(L,"] ").concat(H))}}}]),Ae}(),$o=function(ee){for(var L=[],W=0;W<ee.length;W++)L.push(ee[W].toString(16));return L},Do=function(){function Ae(ee,L,W,H,Z){Object(r.a)(this,Ae),this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=ee||"white",this.underline=L||!1,this.italics=W||!1,this.background=H||"black",this.flash=Z||!1}return Object(a.a)(Ae,[{key:"reset",value:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}},{key:"setStyles",value:function(L){for(var W=["foreground","underline","italics","background","flash"],H=0;H<W.length;H++){var Z=W[H];L.hasOwnProperty(Z)&&(this[Z]=L[Z])}}},{key:"isDefault",value:function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}},{key:"equals",value:function(L){return this.foreground===L.foreground&&this.underline===L.underline&&this.italics===L.italics&&this.background===L.background&&this.flash===L.flash}},{key:"copy",value:function(L){this.foreground=L.foreground,this.underline=L.underline,this.italics=L.italics,this.background=L.background,this.flash=L.flash}},{key:"toString",value:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}]),Ae}(),vo=function(){function Ae(ee,L,W,H,Z,ne){Object(r.a)(this,Ae),this.uchar=void 0,this.penState=void 0,this.uchar=ee||" ",this.penState=new Do(L,W,H,Z,ne)}return Object(a.a)(Ae,[{key:"reset",value:function(){this.uchar=" ",this.penState.reset()}},{key:"setChar",value:function(L,W){this.uchar=L,this.penState.copy(W)}},{key:"setPenState",value:function(L){this.penState.copy(L)}},{key:"equals",value:function(L){return this.uchar===L.uchar&&this.penState.equals(L.penState)}},{key:"copy",value:function(L){this.uchar=L.uchar,this.penState.copy(L.penState)}},{key:"isEmpty",value:function(){return this.uchar===" "&&this.penState.isDefault()}}]),Ae}(),Ms=function(){function Ae(ee){Object(r.a)(this,Ae),this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var L=0;L<Ua;L++)this.chars.push(new vo);this.logger=ee,this.pos=0,this.currPenState=new Do}return Object(a.a)(Ae,[{key:"equals",value:function(L){for(var W=!0,H=0;H<Ua;H++)if(!this.chars[H].equals(L.chars[H])){W=!1;break}return W}},{key:"copy",value:function(L){for(var W=0;W<Ua;W++)this.chars[W].copy(L.chars[W])}},{key:"isEmpty",value:function(){for(var L=!0,W=0;W<Ua;W++)if(!this.chars[W].isEmpty()){L=!1;break}return L}},{key:"setCursor",value:function(L){this.pos!==L&&(this.pos=L),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>Ua&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Ua)}},{key:"moveCursor",value:function(L){var W=this.pos+L;if(L>1)for(var H=this.pos+1;H<W+1;H++)this.chars[H].setPenState(this.currPenState);this.setCursor(W)}},{key:"backSpace",value:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}},{key:"insertChar",value:function(L){var W=this;L>=144&&this.backSpace();var H=Qi(L);if(this.pos>=Ua){this.logger.log(0,function(){return"Cannot insert "+L.toString(16)+" ("+H+") at position "+W.pos+". Skipping it!"});return}this.chars[this.pos].setChar(H,this.currPenState),this.moveCursor(1)}},{key:"clearFromPos",value:function(L){var W;for(W=L;W<Ua;W++)this.chars[W].reset()}},{key:"clear",value:function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}},{key:"clearToEndOfRow",value:function(){this.clearFromPos(this.pos)}},{key:"getTextString",value:function(){for(var L=[],W=!0,H=0;H<Ua;H++){var Z=this.chars[H].uchar;Z!==" "&&(W=!1),L.push(Z)}return W?"":L.join("")}},{key:"setPenStyles",value:function(L){this.currPenState.setStyles(L);var W=this.chars[this.pos];W.setPenState(this.currPenState)}}]),Ae}(),rl=function(){function Ae(ee){Object(r.a)(this,Ae),this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var L=0;L<sa;L++)this.rows.push(new Ms(ee));this.logger=ee,this.currRow=sa-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}return Object(a.a)(Ae,[{key:"reset",value:function(){for(var L=0;L<sa;L++)this.rows[L].clear();this.currRow=sa-1}},{key:"equals",value:function(L){for(var W=!0,H=0;H<sa;H++)if(!this.rows[H].equals(L.rows[H])){W=!1;break}return W}},{key:"copy",value:function(L){for(var W=0;W<sa;W++)this.rows[W].copy(L.rows[W])}},{key:"isEmpty",value:function(){for(var L=!0,W=0;W<sa;W++)if(!this.rows[W].isEmpty()){L=!1;break}return L}},{key:"backSpace",value:function(){var L=this.rows[this.currRow];L.backSpace()}},{key:"clearToEndOfRow",value:function(){var L=this.rows[this.currRow];L.clearToEndOfRow()}},{key:"insertChar",value:function(L){var W=this.rows[this.currRow];W.insertChar(L)}},{key:"setPen",value:function(L){var W=this.rows[this.currRow];W.setPenStyles(L)}},{key:"moveCursor",value:function(L){var W=this.rows[this.currRow];W.moveCursor(L)}},{key:"setCursor",value:function(L){this.logger.log(2,"setCursor: "+L);var W=this.rows[this.currRow];W.setCursor(L)}},{key:"setPAC",value:function(L){this.logger.log(2,function(){return"pacData = "+JSON.stringify(L)});var W=L.row-1;if(this.nrRollUpRows&&W<this.nrRollUpRows-1&&(W=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==W){for(var H=0;H<sa;H++)this.rows[H].clear();var Z=this.currRow+1-this.nrRollUpRows,ne=this.lastOutputScreen;if(ne){var ve=ne.rows[Z].cueStartTime,Te=this.logger.time;if(ve&&Te!==null&&ve<Te)for(var ze=0;ze<this.nrRollUpRows;ze++)this.rows[W-this.nrRollUpRows+ze+1].copy(ne.rows[Z+ze])}}this.currRow=W;var st=this.rows[this.currRow];if(L.indent!==null){var ht=L.indent,Zt=Math.max(ht-1,0);st.setCursor(L.indent),L.color=st.chars[Zt].penState.foreground}var Cr={foreground:L.color,underline:L.underline,italics:L.italics,background:"black",flash:!1};this.setPen(Cr)}},{key:"setBkgData",value:function(L){this.logger.log(2,function(){return"bkgData = "+JSON.stringify(L)}),this.backSpace(),this.setPen(L),this.insertChar(32)}},{key:"setRollUpRows",value:function(L){this.nrRollUpRows=L}},{key:"rollUp",value:function(){var L=this;if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,function(){return L.getDisplayText()});var W=this.currRow+1-this.nrRollUpRows,H=this.rows.splice(W,1)[0];H.clear(),this.rows.splice(this.currRow,0,H),this.logger.log(2,"Rolling up")}},{key:"getDisplayText",value:function(L){L=L||!1;for(var W=[],H="",Z=-1,ne=0;ne<sa;ne++){var ve=this.rows[ne].getTextString();ve&&(Z=ne+1,L?W.push("Row "+Z+": '"+ve+"'"):W.push(ve.trim()))}return W.length>0&&(L?H="["+W.join(" | ")+"]":H=W.join(`
|
|
|
`)),H}},{key:"getTextAndFormat",value:function(){return this.rows}}]),Ae}(),gs=function(){function Ae(ee,L,W){Object(r.a)(this,Ae),this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=ee,this.outputFilter=L,this.mode=null,this.verbose=0,this.displayedMemory=new rl(W),this.nonDisplayedMemory=new rl(W),this.lastOutputScreen=new rl(W),this.currRollUpRow=this.displayedMemory.rows[sa-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=W}return Object(a.a)(Ae,[{key:"reset",value:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[sa-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}},{key:"getHandler",value:function(){return this.outputFilter}},{key:"setHandler",value:function(L){this.outputFilter=L}},{key:"setPAC",value:function(L){this.writeScreen.setPAC(L)}},{key:"setBkgData",value:function(L){this.writeScreen.setBkgData(L)}},{key:"setMode",value:function(L){if(L===this.mode)return;this.mode=L,this.logger.log(2,function(){return"MODE="+L}),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=L}},{key:"insertChars",value:function(L){for(var W=this,H=0;H<L.length;H++)this.writeScreen.insertChar(L[H]);var Z=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,function(){return Z+": "+W.writeScreen.getDisplayText(!0)}),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,function(){return"DISPLAYED: "+W.displayedMemory.getDisplayText(!0)}),this.outputDataUpdate())}},{key:"ccRCL",value:function(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}},{key:"ccBS",value:function(){if(this.logger.log(2,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()}},{key:"ccAOF",value:function(){}},{key:"ccAON",value:function(){}},{key:"ccDER",value:function(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}},{key:"ccRU",value:function(L){this.logger.log(2,"RU("+L+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(L)}},{key:"ccFON",value:function(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}},{key:"ccRDC",value:function(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}},{key:"ccTR",value:function(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}},{key:"ccRTD",value:function(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}},{key:"ccEDM",value:function(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}},{key:"ccCR",value:function(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}},{key:"ccENM",value:function(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}},{key:"ccEOC",value:function(){var L=this;if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var W=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=W,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,function(){return"DISP: "+L.displayedMemory.getDisplayText()})}this.outputDataUpdate(!0)}},{key:"ccTO",value:function(L){this.logger.log(2,"TO("+L+") - Tab Offset"),this.writeScreen.moveCursor(L)}},{key:"ccMIDROW",value:function(L){var W={flash:!1};if(W.underline=L%2===1,W.italics=L>=46,W.italics)W.foreground="white";else{var H=Math.floor(L/2)-16,Z=["white","green","blue","cyan","red","yellow","magenta"];W.foreground=Z[H]}this.logger.log(2,"MIDROW: "+JSON.stringify(W)),this.writeScreen.setPen(W)}},{key:"outputDataUpdate",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,W=this.logger.time;if(W===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=W:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,W,this.lastOutputScreen),L&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:W),this.lastOutputScreen.copy(this.displayedMemory))}},{key:"cueSplitAtTime",value:function(L){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,L,this.displayedMemory),this.cueStartTime=L))}}]),Ae}(),Ra=function(){function Ae(ee,L,W){Object(r.a)(this,Ae),this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var H=new As;this.channels=[null,new gs(ee,L,H),new gs(ee+1,W,H)],this.cmdHistory=Us(),this.logger=H}return Object(a.a)(Ae,[{key:"getHandler",value:function(L){return this.channels[L].getHandler()}},{key:"setHandler",value:function(L,W){this.channels[L].setHandler(W)}},{key:"addData",value:function(L,W){var H,Z,ne,ve=!1;this.logger.time=L;for(var Te=0;Te<W.length;Te+=2){if(Z=W[Te]&127,ne=W[Te+1]&127,Z===0&&ne===0)continue;if(this.logger.log(3,"["+$o([W[Te],W[Te+1]])+"] -> ("+$o([Z,ne])+")"),H=this.parseCmd(Z,ne),H||(H=this.parseMidrow(Z,ne)),H||(H=this.parsePAC(Z,ne)),H||(H=this.parseBackgroundAttributes(Z,ne)),!H&&(ve=this.parseChars(Z,ne),ve)){var ze=this.currentChannel;if(ze&&ze>0){var st=this.channels[ze];st.insertChars(ve)}else this.logger.log(2,"No channel found yet. TEXT-MODE?")}!H&&!ve&&this.logger.log(2,"Couldn't parse cleaned data "+$o([Z,ne])+" orig: "+$o([W[Te],W[Te+1]]))}}},{key:"parseCmd",value:function(L,W){var H=this.cmdHistory,Z=(L===20||L===28||L===21||L===29)&&W>=32&&W<=47,ne=(L===23||L===31)&&W>=33&&W<=35;if(!(Z||ne))return!1;if(fl(L,W,H))return dl(null,null,H),this.logger.log(3,"Repeated command ("+$o([L,W])+") is dropped"),!0;var ve=L===20||L===21||L===23?1:2,Te=this.channels[ve];return L===20||L===21||L===28||L===29?W===32?Te.ccRCL():W===33?Te.ccBS():W===34?Te.ccAOF():W===35?Te.ccAON():W===36?Te.ccDER():W===37?Te.ccRU(2):W===38?Te.ccRU(3):W===39?Te.ccRU(4):W===40?Te.ccFON():W===41?Te.ccRDC():W===42?Te.ccTR():W===43?Te.ccRTD():W===44?Te.ccEDM():W===45?Te.ccCR():W===46?Te.ccENM():W===47&&Te.ccEOC():Te.ccTO(W-32),dl(L,W,H),this.currentChannel=ve,!0}},{key:"parseMidrow",value:function(L,W){var H=0;if((L===17||L===25)&&W>=32&&W<=47){if(L===17?H=1:H=2,H!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;var Z=this.channels[H];return Z?(Z.ccMIDROW(W),this.logger.log(3,"MIDROW ("+$o([L,W])+")"),!0):!1}return!1}},{key:"parsePAC",value:function(L,W){var H,Z=this.cmdHistory,ne=(L>=17&&L<=23||L>=25&&L<=31)&&W>=64&&W<=127,ve=(L===16||L===24)&&W>=64&&W<=95;if(!(ne||ve))return!1;if(fl(L,W,Z))return dl(null,null,Z),!0;var Te=L<=23?1:2;W>=64&&W<=95?H=Te===1?no[L]:Zo[L]:H=Te===1?Wo[L]:Bo[L];var ze=this.channels[Te];return ze?(ze.setPAC(this.interpretPAC(H,W)),dl(L,W,Z),this.currentChannel=Te,!0):!1}},{key:"interpretPAC",value:function(L,W){var H,Z={color:null,italics:!1,indent:null,underline:!1,row:L};return W>95?H=W-96:H=W-64,Z.underline=(H&1)===1,H<=13?Z.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(H/2)]:H<=15?(Z.italics=!0,Z.color="white"):Z.indent=Math.floor((H-16)/2)*4,Z}},{key:"parseChars",value:function(L,W){var H,Z=null,ne=null;if(L>=25?(H=2,ne=L-8):(H=1,ne=L),ne>=17&&ne<=19){var ve;ne===17?ve=W+80:ne===18?ve=W+112:ve=W+144,this.logger.log(2,"Special char '"+Qi(ve)+"' in channel "+H),Z=[ve]}else L>=32&&L<=127&&(Z=W===0?[L]:[L,W]);if(Z){var Te=$o(Z);this.logger.log(3,"Char codes = "+Te.join(",")),dl(L,W,this.cmdHistory)}return Z}},{key:"parseBackgroundAttributes",value:function(L,W){var H=(L===16||L===24)&&W>=32&&W<=47,Z=(L===23||L===31)&&W>=45&&W<=47;if(!(H||Z))return!1;var ne,ve={};L===16||L===24?(ne=Math.floor((W-32)/2),ve.background=Es[ne],W%2===1&&(ve.background=ve.background+"_semi")):W===45?ve.background="transparent":(ve.foreground="black",W===47&&(ve.underline=!0));var Te=L<=23?1:2,ze=this.channels[Te];return ze.setBkgData(ve),dl(L,W,this.cmdHistory),!0}},{key:"reset",value:function(){for(var L=0;L<Object.keys(this.channels).length;L++){var W=this.channels[L];W&&W.reset()}this.cmdHistory=Us()}},{key:"cueSplitAtTime",value:function(L){for(var W=0;W<this.channels.length;W++){var H=this.channels[W];H&&H.cueSplitAtTime(L)}}}]),Ae}();function dl(Ae,ee,L){L.a=Ae,L.b=ee}function fl(Ae,ee,L){return L.a===Ae&&L.b===ee}function Us(){return{a:null,b:null}}var Os=function(){function Ae(ee,L){Object(r.a)(this,Ae),this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=ee,this.trackName=L}return Object(a.a)(Ae,[{key:"dispatchCue",value:function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null}},{key:"newCue",value:function(L,W,H){(this.startTime===null||this.startTime>L)&&(this.startTime=L),this.endTime=W,this.screen=H,this.timelineController.createCaptionsTrack(this.trackName)}},{key:"reset",value:function(){this.cueRanges=[],this.startTime=null}}]),Ae}(),Xs=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var Ae=["","lr","rl"],ee=["start","middle","end","left","right"];function L(ve,Te){if(typeof Te!="string")return!1;if(!Array.isArray(ve))return!1;var ze=Te.toLowerCase();return~ve.indexOf(ze)?ze:!1}function W(ve){return L(Ae,ve)}function H(ve){return L(ee,ve)}function Z(ve){for(var Te=arguments.length,ze=new Array(Te>1?Te-1:0),st=1;st<Te;st++)ze[st-1]=arguments[st];for(var ht=1;ht<arguments.length;ht++){var Zt=arguments[ht];for(var Cr in Zt)ve[Cr]=Zt[Cr]}return ve}function ne(ve,Te,ze){var st=this,ht={enumerable:!0};st.hasBeenReset=!1;var Zt="",Cr=!1,Sr=ve,Kr=Te,Zr=ze,On=null,Rn="",Zn=!0,wi="auto",ua="start",Gi=50,Zi="middle",ka=50,Ga="middle";Object.defineProperty(st,"id",Z({},ht,{get:function(){return Zt},set:function(Sa){Zt=""+Sa}})),Object.defineProperty(st,"pauseOnExit",Z({},ht,{get:function(){return Cr},set:function(Sa){Cr=!!Sa}})),Object.defineProperty(st,"startTime",Z({},ht,{get:function(){return Sr},set:function(Sa){if(typeof Sa!="number")throw new TypeError("Start time must be set to a number.");Sr=Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"endTime",Z({},ht,{get:function(){return Kr},set:function(Sa){if(typeof Sa!="number")throw new TypeError("End time must be set to a number.");Kr=Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"text",Z({},ht,{get:function(){return Zr},set:function(Sa){Zr=""+Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"region",Z({},ht,{get:function(){return On},set:function(Sa){On=Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"vertical",Z({},ht,{get:function(){return Rn},set:function(Sa){var Go=W(Sa);if(Go===!1)throw new SyntaxError("An invalid or illegal string was specified.");Rn=Go,this.hasBeenReset=!0}})),Object.defineProperty(st,"snapToLines",Z({},ht,{get:function(){return Zn},set:function(Sa){Zn=!!Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"line",Z({},ht,{get:function(){return wi},set:function(Sa){if(typeof Sa!="number"&&Sa!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");wi=Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"lineAlign",Z({},ht,{get:function(){return ua},set:function(Sa){var Go=H(Sa);if(!Go)throw new SyntaxError("An invalid or illegal string was specified.");ua=Go,this.hasBeenReset=!0}})),Object.defineProperty(st,"position",Z({},ht,{get:function(){return Gi},set:function(Sa){if(Sa<0||Sa>100)throw new Error("Position must be between 0 and 100.");Gi=Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"positionAlign",Z({},ht,{get:function(){return Zi},set:function(Sa){var Go=H(Sa);if(!Go)throw new SyntaxError("An invalid or illegal string was specified.");Zi=Go,this.hasBeenReset=!0}})),Object.defineProperty(st,"size",Z({},ht,{get:function(){return ka},set:function(Sa){if(Sa<0||Sa>100)throw new Error("Size must be between 0 and 100.");ka=Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"align",Z({},ht,{get:function(){return Ga},set:function(Sa){var Go=H(Sa);if(!Go)throw new SyntaxError("An invalid or illegal string was specified.");Ga=Go,this.hasBeenReset=!0}})),st.displayState=void 0}return ne.prototype.getCueAsHTML=function(){var ve=self.WebVTT;return ve.convertCueToDOMTree(self,this.text)},ne}(),Ql=function(){function Ae(){Object(r.a)(this,Ae)}return Object(a.a)(Ae,[{key:"decode",value:function(L,W){if(!L)return"";if(typeof L!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(L))}}]),Ae}();function Ul(Ae){function ee(W,H,Z,ne){return(W|0)*3600+(H|0)*60+(Z|0)+parseFloat(ne||0)}var L=Ae.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return L?parseFloat(L[2])>59?ee(L[2],L[3],0,L[4]):ee(L[1],L[2],L[3],L[4]):null}var wl=function(){function Ae(){Object(r.a)(this,Ae),this.values=Object.create(null)}return Object(a.a)(Ae,[{key:"set",value:function(L,W){!this.get(L)&&W!==""&&(this.values[L]=W)}},{key:"get",value:function(L,W,H){return H?this.has(L)?this.values[L]:W[H]:this.has(L)?this.values[L]:W}},{key:"has",value:function(L){return L in this.values}},{key:"alt",value:function(L,W,H){for(var Z=0;Z<H.length;++Z)if(W===H[Z]){this.set(L,W);break}}},{key:"integer",value:function(L,W){/^-?\d+$/.test(W)&&this.set(L,parseInt(W,10))}},{key:"percent",value:function(L,W){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(W)){var H=parseFloat(W);if(H>=0&&H<=100)return this.set(L,H),!0}return!1}}]),Ae}();function Ts(Ae,ee,L,W){var H=W?Ae.split(W):[Ae];for(var Z in H){if(typeof H[Z]!="string")continue;var ne=H[Z].split(L);if(ne.length!==2)continue;var ve=ne[0],Te=ne[1];ee(ve,Te)}}var Ws=new Xs(0,0,""),Tl=Ws.align==="middle"?"middle":"center";function pl(Ae,ee,L){var W=Ae;function H(){var ve=Ul(Ae);if(ve===null)throw new Error("Malformed timestamp: "+W);return Ae=Ae.replace(/^[^\sa-zA-Z-]+/,""),ve}function Z(ve,Te){var ze=new wl;Ts(ve,function(Zt,Cr){var Sr;switch(Zt){case"region":for(var Kr=L.length-1;Kr>=0;Kr--)if(L[Kr].id===Cr){ze.set(Zt,L[Kr].region);break}break;case"vertical":ze.alt(Zt,Cr,["rl","lr"]);break;case"line":Sr=Cr.split(","),ze.integer(Zt,Sr[0]),ze.percent(Zt,Sr[0])&&ze.set("snapToLines",!1),ze.alt(Zt,Sr[0],["auto"]),Sr.length===2&&ze.alt("lineAlign",Sr[1],["start",Tl,"end"]);break;case"position":Sr=Cr.split(","),ze.percent(Zt,Sr[0]),Sr.length===2&&ze.alt("positionAlign",Sr[1],["start",Tl,"end","line-left","line-right","auto"]);break;case"size":ze.percent(Zt,Cr);break;case"align":ze.alt(Zt,Cr,["start",Tl,"end","left","right"]);break}},/:/,/\s/),Te.region=ze.get("region",null),Te.vertical=ze.get("vertical","");var st=ze.get("line","auto");st==="auto"&&Ws.line===-1&&(st=-1),Te.line=st,Te.lineAlign=ze.get("lineAlign","start"),Te.snapToLines=ze.get("snapToLines",!0),Te.size=ze.get("size",100),Te.align=ze.get("align",Tl);var ht=ze.get("position","auto");ht==="auto"&&Ws.position===50&&(ht=Te.align==="start"||Te.align==="left"?0:Te.align==="end"||Te.align==="right"?100:50),Te.position=ht}function ne(){Ae=Ae.replace(/^\s+/,"")}if(ne(),ee.startTime=H(),ne(),Ae.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+W);Ae=Ae.slice(3),ne(),ee.endTime=H(),ne(),Z(Ae,ee)}function jo(Ae){return Ae.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}var yo=function(){function Ae(){Object(r.a)(this,Ae),this.state="INITIAL",this.buffer="",this.decoder=new Ql,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}return Object(a.a)(Ae,[{key:"parse",value:function(L){var W=this;L&&(W.buffer+=W.decoder.decode(L,{stream:!0}));function H(){var st=W.buffer,ht=0;for(st=jo(st);ht<st.length&&st[ht]!=="\r"&&st[ht]!==`
|
|
|
`;)++ht;var Zt=st.slice(0,ht);return st[ht]==="\r"&&++ht,st[ht]===`
|
|
|
`&&++ht,W.buffer=st.slice(ht),Zt}function Z(st){Ts(st,function(ht,Zt){},/:/)}try{var ne="";if(W.state==="INITIAL"){if(!/\r\n|\n/.test(W.buffer))return this;ne=H();var ve=ne.match(/^()?WEBVTT([ \t].*)?$/);if(!(ve!=null&&ve[0]))throw new Error("Malformed WebVTT signature.");W.state="HEADER"}for(var Te=!1;W.buffer;){if(!/\r\n|\n/.test(W.buffer))return this;Te?Te=!1:ne=H();switch(W.state){case"HEADER":/:/.test(ne)?Z(ne):ne||(W.state="ID");continue;case"NOTE":ne||(W.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(ne)){W.state="NOTE";break}if(!ne)continue;if(W.cue=new Xs(0,0,""),W.state="CUE",ne.indexOf("-->")===-1){W.cue.id=ne;continue}case"CUE":if(!W.cue){W.state="BADCUE";continue}try{pl(ne,W.cue,W.regionList)}catch(st){W.cue=null,W.state="BADCUE";continue}W.state="CUETEXT";continue;case"CUETEXT":{var ze=ne.indexOf("-->")!==-1;if(!ne||ze&&(Te=!0)){W.oncue&&W.cue&&W.oncue(W.cue),W.cue=null,W.state="ID";continue}if(W.cue===null)continue;W.cue.text&&(W.cue.text+=`
|
|
|
`),W.cue.text+=ne}continue;case"BADCUE":ne||(W.state="ID")}}}catch(st){W.state==="CUETEXT"&&W.cue&&W.oncue&&W.oncue(W.cue),W.cue=null,W.state=W.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}},{key:"flush",value:function(){var L=this;try{if((L.cue||L.state==="HEADER")&&(L.buffer+=`
|
|
|
|
|
|
`,L.parse()),L.state==="INITIAL"||L.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(W){L.onparsingerror&&L.onparsingerror(W)}return L.onflush&&L.onflush(),this}}]),Ae}(),qo=/\r\n|\n\r|\n|\r/g,ps=function(ee,L){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return ee.slice(W,W+L.length)===L},Is=function(ee){var L=parseInt(ee.slice(-3)),W=parseInt(ee.slice(-6,-4)),H=parseInt(ee.slice(-9,-7)),Z=ee.length>9?parseInt(ee.substring(0,ee.indexOf(":"))):0;if(!T(L)||!T(W)||!T(H)||!T(Z))throw Error("Malformed X-TIMESTAMP-MAP: Local:".concat(ee));return L+=1e3*W,L+=60*1e3*H,L+=60*60*1e3*Z,L},es=function(ee){for(var L=5381,W=ee.length;W;)L=L*33^ee.charCodeAt(--W);return(L>>>0).toString()};function Ls(Ae,ee,L){return es(Ae.toString())+es(ee.toString())+es(L)}var Ps=function(ee,L,W){var H=ee[L],Z=ee[H.prevCC];if(!Z||!Z.new&&H.new){ee.ccOffset=ee.presentationOffset=H.start,H.new=!1;return}for(;(ne=Z)!=null&&ne.new;){var ne;ee.ccOffset+=H.start-Z.start,H.new=!1,H=Z,Z=ee[H.prevCC]}ee.presentationOffset=W};function ml(Ae,ee,L,W,H,Z,ne){var ve=new yo,Te=lt(new Uint8Array(Ae)).trim().replace(qo,`
|
|
|
`).split(`
|
|
|
`),ze=[],st=ee?lo(ee.baseTime,ee.timescale):0,ht="00:00.000",Zt=0,Cr=0,Sr,Kr=!0;ve.oncue=function(Zr){var On=L[W],Rn=L.ccOffset,Zn=(Zt-st)/9e4;if(On!=null&&On.new&&(Cr!==void 0?Rn=L.ccOffset=On.start:Ps(L,W,Zn)),Zn){if(!ee){Sr=new Error("Missing initPTS for VTT MPEGTS");return}Rn=Zn-L.presentationOffset}var wi=Zr.endTime-Zr.startTime,ua=Ko((Zr.startTime+Rn-Cr)*9e4,H*9e4)/9e4;Zr.startTime=Math.max(ua,0),Zr.endTime=Math.max(ua+wi,0);var Gi=Zr.text.trim();Zr.text=decodeURIComponent(encodeURIComponent(Gi)),Zr.id||(Zr.id=Ls(Zr.startTime,Zr.endTime,Gi)),Zr.endTime>0&&ze.push(Zr)},ve.onparsingerror=function(Zr){Sr=Zr},ve.onflush=function(){if(Sr){ne(Sr);return}Z(ze)},Te.forEach(function(Zr){if(Kr)if(ps(Zr,"X-TIMESTAMP-MAP=")){Kr=!1,Zr.slice(16).split(",").forEach(function(On){ps(On,"LOCAL:")?ht=On.slice(6):ps(On,"MPEGTS:")&&(Zt=parseInt(On.slice(7)))});try{Cr=Is(ht)/1e3}catch(On){Sr=On}return}else Zr===""&&(Kr=!1);ve.parse(Zr+`
|
|
|
`)}),ve.flush()}var Rl="stpp.ttml.im1t",_l=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Bl=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,jl={left:"start",center:"center",right:"end",start:"start",end:"end"};function kl(Ae,ee,L,W){var H=pt(new Uint8Array(Ae),["mdat"]);if(H.length===0){W(new Error("Could not parse IMSC1 mdat"));return}var Z=H.map(function(ve){return lt(ve)}),ne=Fa(ee.baseTime,1,ee.timescale);try{Z.forEach(function(ve){return L(Xl(ve,ne))})}catch(ve){W(ve)}}function Xl(Ae,ee){var L=new DOMParser,W=L.parseFromString(Ae,"text/xml"),H=W.getElementsByTagName("tt")[0];if(!H)throw new Error("Invalid ttml");var Z={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},ne=Object.keys(Z).reduce(function(ht,Zt){return ht[Zt]=H.getAttribute("ttp:".concat(Zt))||Z[Zt],ht},{}),ve=H.getAttribute("xml:space")!=="preserve",Te=Ys(ol(H,"styling","style")),ze=Ys(ol(H,"layout","region")),st=ol(H,"body","[begin]");return[].map.call(st,function(ht){var Zt=sl(ht,ve);if(!Zt||!ht.hasAttribute("begin"))return null;var Cr=Wl(ht.getAttribute("begin"),ne),Sr=Wl(ht.getAttribute("dur"),ne),Kr=Wl(ht.getAttribute("end"),ne);if(Cr===null)throw Ml(ht);if(Kr===null){if(Sr===null)throw Ml(ht);Kr=Cr+Sr}var Zr=new Xs(Cr-ee,Kr-ee,Zt);Zr.id=Ls(Zr.startTime,Zr.endTime,Zr.text);var On=ze[ht.getAttribute("region")],Rn=Te[ht.getAttribute("style")],Zn=nl(On,Rn,Te),wi=Zn.textAlign;if(wi){var ua=jl[wi];ua&&(Zr.lineAlign=ua),Zr.align=wi}return E(Zr,Zn),Zr}).filter(function(ht){return ht!==null})}function ol(Ae,ee,L){var W=Ae.getElementsByTagName(ee)[0];return W?[].slice.call(W.querySelectorAll(L)):[]}function Ys(Ae){return Ae.reduce(function(ee,L){var W=L.getAttribute("xml:id");return W&&(ee[W]=L),ee},{})}function sl(Ae,ee){return[].slice.call(Ae.childNodes).reduce(function(L,W,H){var Z;return W.nodeName==="br"&&H?L+`
|
|
|
`:(Z=W.childNodes)!=null&&Z.length?sl(W,ee):ee?L+W.textContent.trim().replace(/\s+/g," "):L+W.textContent},"")}function nl(Ae,ee,L){var W="http://www.w3.org/ns/ttml#styling",H=null,Z=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],ne=Ae!=null&&Ae.hasAttribute("style")?Ae.getAttribute("style"):null;return ne&&L.hasOwnProperty(ne)&&(H=L[ne]),Z.reduce(function(ve,Te){var ze=xl(ee,W,Te)||xl(Ae,W,Te)||xl(H,W,Te);return ze&&(ve[Te]=ze),ve},{})}function xl(Ae,ee,L){return Ae&&Ae.hasAttributeNS(ee,L)?Ae.getAttributeNS(ee,L):null}function Ml(Ae){return new Error("Could not parse ttml timestamp ".concat(Ae))}function Wl(Ae,ee){if(!Ae)return null;var L=Ul(Ae);return L===null&&(_l.test(Ae)?L=au(Ae,ee):Bl.test(Ae)&&(L=Nl(Ae,ee))),L}function au(Ae,ee){var L=_l.exec(Ae),W=(L[4]|0)+(L[5]|0)/ee.subFrameRate;return(L[1]|0)*3600+(L[2]|0)*60+(L[3]|0)+W/ee.frameRate}function Nl(Ae,ee){var L=Bl.exec(Ae),W=Number(L[1]),H=L[2];switch(H){case"h":return W*3600;case"m":return W*60;case"ms":return W*1e3;case"f":return W/ee.frameRate;case"t":return W/ee.tickRate}return W}var $l=function(){function Ae(ee){if(Object(r.a)(this,Ae),this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=pu(),this.captionsProperties=void 0,this.hls=ee,this.config=ee.config,this.Cues=ee.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var L=new Os(this,"textTrack1"),W=new Os(this,"textTrack2"),H=new Os(this,"textTrack3"),Z=new Os(this,"textTrack4");this.cea608Parser1=new Ra(1,L,W),this.cea608Parser2=new Ra(3,H,Z)}ee.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this),ee.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),ee.on(w.MANIFEST_LOADING,this.onManifestLoading,this),ee.on(w.MANIFEST_LOADED,this.onManifestLoaded,this),ee.on(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),ee.on(w.FRAG_LOADING,this.onFragLoading,this),ee.on(w.FRAG_LOADED,this.onFragLoaded,this),ee.on(w.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),ee.on(w.FRAG_DECRYPTED,this.onFragDecrypted,this),ee.on(w.INIT_PTS_FOUND,this.onInitPtsFound,this),ee.on(w.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),ee.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this)}return Object(a.a)(Ae,[{key:"destroy",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.MANIFEST_LOADED,this.onManifestLoaded,this),L.off(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),L.off(w.FRAG_LOADING,this.onFragLoading,this),L.off(w.FRAG_LOADED,this.onFragLoaded,this),L.off(w.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),L.off(w.FRAG_DECRYPTED,this.onFragDecrypted,this),L.off(w.INIT_PTS_FOUND,this.onInitPtsFound,this),L.off(w.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),L.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null}},{key:"addCues",value:function(L,W,H,Z,ne){for(var ve=!1,Te=ne.length;Te--;){var ze=ne[Te],st=Iu(ze[0],ze[1],W,H);if(st>=0&&(ze[0]=Math.min(ze[0],W),ze[1]=Math.max(ze[1],H),ve=!0,st/(H-W)>.5))return}if(ve||ne.push([W,H]),this.config.renderTextTracksNatively){var ht=this.captionsTracks[L];this.Cues.newCue(ht,W,H,Z)}else{var Zt=this.Cues.newCue(null,W,H,Z);this.hls.trigger(w.CUES_PARSED,{type:"captions",cues:Zt,track:L})}}},{key:"onInitPtsFound",value:function(L,W){var H=this,Z=W.frag,ne=W.id,ve=W.initPTS,Te=W.timescale,ze=this.unparsedVttFrags;ne==="main"&&(this.initPTS[Z.cc]={baseTime:ve,timescale:Te}),ze.length&&(this.unparsedVttFrags=[],ze.forEach(function(st){H.onFragLoaded(w.FRAG_LOADED,st)}))}},{key:"getExistingTrack",value:function(L){var W=this.media;if(W)for(var H=0;H<W.textTracks.length;H++){var Z=W.textTracks[H];if(Z[L])return Z}return null}},{key:"createCaptionsTrack",value:function(L){this.config.renderTextTracksNatively?this.createNativeTrack(L):this.createNonNativeTrack(L)}},{key:"createNativeTrack",value:function(L){if(this.captionsTracks[L])return;var W=this.captionsProperties,H=this.captionsTracks,Z=this.media,ne=W[L],ve=ne.label,Te=ne.languageCode,ze=this.getExistingTrack(L);if(ze)H[L]=ze,zn(H[L]),mn(H[L],Z);else{var st=this.createTextTrack("captions",ve,Te);st&&(st[L]=!0,H[L]=st)}}},{key:"createNonNativeTrack",value:function(L){if(this.nonNativeCaptionsTracks[L])return;var W=this.captionsProperties[L];if(!W)return;var H=W.label,Z={_id:L,label:H,kind:"captions",default:W.media?!!W.media.default:!1,closedCaptions:W.media};this.nonNativeCaptionsTracks[L]=Z,this.hls.trigger(w.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[Z]})}},{key:"createTextTrack",value:function(L,W,H){var Z=this.media;return Z?Z.addTextTrack(L,W,H):void 0}},{key:"onMediaAttaching",value:function(L,W){this.media=W.media,this._cleanTracks()}},{key:"onMediaDetaching",value:function(){var L=this.captionsTracks;Object.keys(L).forEach(function(W){zn(L[W]),delete L[W]}),this.nonNativeCaptionsTracks={}}},{key:"onManifestLoading",value:function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=pu(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}},{key:"_cleanTracks",value:function(){var L=this.media;if(!L)return;var W=L.textTracks;if(W)for(var H=0;H<W.length;H++)zn(W[H])}},{key:"onSubtitleTracksUpdated",value:function(L,W){var H=this,Z=W.subtitleTracks||[],ne=Z.some(function(st){return st.textCodec===Rl});if(this.config.enableWebVTT||ne&&this.config.enableIMSC1){var ve=ce(this.tracks,Z);if(ve){this.tracks=Z;return}if(this.textTracks=[],this.tracks=Z,this.config.renderTextTracksNatively){var Te=this.media?this.media.textTracks:null;this.tracks.forEach(function(st,ht){var Zt;if(Te&&ht<Te.length){for(var Cr=null,Sr=0;Sr<Te.length;Sr++)if(tu(Te[Sr],st)){Cr=Te[Sr];break}Cr&&(Zt=Cr)}if(Zt)zn(Zt);else{var Kr=H._captionsOrSubtitlesFromCharacteristics(st);Zt=H.createTextTrack(Kr,st.name,st.lang),Zt&&(Zt.mode="disabled")}Zt&&(Zt.groupId=st.groupId,H.textTracks.push(Zt))})}else if(this.tracks.length){var ze=this.tracks.map(function(st){return{label:st.name,kind:st.type.toLowerCase(),default:st.default,subtitleTrack:st}});this.hls.trigger(w.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:ze})}}}},{key:"_captionsOrSubtitlesFromCharacteristics",value:function(L){if(L.attrs.CHARACTERISTICS){var W=/transcribes-spoken-dialog/gi.test(L.attrs.CHARACTERISTICS),H=/describes-music-and-sound/gi.test(L.attrs.CHARACTERISTICS);if(W&&H)return"captions"}return"subtitles"}},{key:"onManifestLoaded",value:function(L,W){var H=this;this.config.enableCEA708Captions&&W.captions&&W.captions.forEach(function(Z){var ne=/(?:CC|SERVICE)([1-4])/.exec(Z.instreamId);if(!ne)return;var ve="textTrack".concat(ne[1]),Te=H.captionsProperties[ve];if(!Te)return;Te.label=Z.name,Z.lang&&(Te.languageCode=Z.lang),Te.media=Z})}},{key:"closedCaptionsForLevel",value:function(L){var W=this.hls.levels[L.level];return W==null?void 0:W.attrs["CLOSED-CAPTIONS"]}},{key:"onFragLoading",value:function(L,W){var H=this.cea608Parser1,Z=this.cea608Parser2,ne=this.lastSn,ve=this.lastPartIndex;if(!this.enabled||!(H&&Z))return;if(W.frag.type===gt.MAIN){var Te,ze,st=W.frag.sn,ht=(Te=W==null||(ze=W.part)==null?void 0:ze.index)!=null?Te:-1;st===ne+1||st===ne&&ht===ve+1||(H.reset(),Z.reset()),this.lastSn=st,this.lastPartIndex=ht}}},{key:"onFragLoaded",value:function(L,W){var H=W.frag,Z=W.payload;if(H.type===gt.SUBTITLE)if(Z.byteLength){var ne=H.decryptdata,ve="stats"in W;if(ne==null||!ne.encrypted||ve){var Te=this.tracks[H.level],ze=this.vttCCs;ze[H.cc]||(ze[H.cc]={start:H.start,prevCC:this.prevCC,new:!0},this.prevCC=H.cc),Te&&Te.textCodec===Rl?this._parseIMSC1(H,Z):this._parseVTTs(W)}}else this.hls.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:H,error:new Error("Empty subtitle payload")})}},{key:"_parseIMSC1",value:function(L,W){var H=this,Z=this.hls;kl(W,this.initPTS[L.cc],function(ne){H._appendCues(ne,L.level),Z.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:L})},function(ne){U.log("Failed to parse IMSC1: ".concat(ne)),Z.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:L,error:ne})})}},{key:"_parseVTTs",value:function(L){var W=this,H,Z=L.frag,ne=L.payload,ve=this.initPTS,Te=this.unparsedVttFrags,ze=ve.length-1;if(!ve[Z.cc]&&ze===-1){Te.push(L);return}var st=this.hls,ht=(H=Z.initSegment)!=null&&H.data?xt(Z.initSegment.data,new Uint8Array(ne)):ne;ml(ht,this.initPTS[Z.cc],this.vttCCs,Z.cc,Z.start,function(Zt){W._appendCues(Zt,Z.level),st.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:Z})},function(Zt){var Cr=Zt.message==="Missing initPTS for VTT MPEGTS";if(Cr?Te.push(L):W._fallbackToIMSC1(Z,ne),U.log("Failed to parse VTT cue: ".concat(Zt)),Cr&&ze>Z.cc)return;st.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:Z,error:Zt})})}},{key:"_fallbackToIMSC1",value:function(L,W){var H=this,Z=this.tracks[L.level];Z.textCodec||kl(W,this.initPTS[L.cc],function(){Z.textCodec=Rl,H._parseIMSC1(L,W)},function(){Z.textCodec="wvtt"})}},{key:"_appendCues",value:function(L,W){var H=this.hls;if(this.config.renderTextTracksNatively){var Z=this.textTracks[W];if(!Z||Z.mode==="disabled")return;L.forEach(function(Te){return Ar(Z,Te)})}else{var ne=this.tracks[W];if(!ne)return;var ve=ne.default?"default":"subtitles"+W;H.trigger(w.CUES_PARSED,{type:"subtitles",cues:L,track:ve})}}},{key:"onFragDecrypted",value:function(L,W){var H=W.frag;H.type===gt.SUBTITLE&&this.onFragLoaded(w.FRAG_LOADED,W)}},{key:"onSubtitleTracksCleared",value:function(){this.tracks=[],this.captionsTracks={}}},{key:"onFragParsingUserdata",value:function(L,W){var H=this.cea608Parser1,Z=this.cea608Parser2;if(!this.enabled||!(H&&Z))return;var ne=W.frag,ve=W.samples;if(ne.type===gt.MAIN&&this.closedCaptionsForLevel(ne)==="NONE")return;for(var Te=0;Te<ve.length;Te++){var ze=ve[Te].bytes;if(ze){var st=this.extractCea608Data(ze);H.addData(ve[Te].pts,st[0]),Z.addData(ve[Te].pts,st[1])}}}},{key:"onBufferFlushing",value:function(L,W){var H=W.startOffset,Z=W.endOffset,ne=W.endOffsetSubtitles,ve=W.type,Te=this.media;if(!Te||Te.currentTime<Z)return;if(!ve||ve==="video"){var ze=this.captionsTracks;Object.keys(ze).forEach(function(ht){return Fr(ze[ht],H,Z)})}if(this.config.renderTextTracksNatively&&(H===0&&ne!==void 0)){var st=this.textTracks;Object.keys(st).forEach(function(ht){return Fr(st[ht],H,ne)})}}},{key:"extractCea608Data",value:function(L){for(var W=[[],[]],H=L[0]&31,Z=2,ne=0;ne<H;ne++){var ve=L[Z++],Te=127&L[Z++],ze=127&L[Z++];if(Te===0&&ze===0)continue;var st=(4&ve)!==0;if(st){var ht=3&ve;(ht===0||ht===1)&&(W[ht].push(Te),W[ht].push(ze))}}return W}}]),Ae}();function tu(Ae,ee){return!!Ae&&Ae.label===ee.name&&!(Ae.textTrack1||Ae.textTrack2)}function Iu(Ae,ee,L,W){return Math.min(ee,W)-Math.max(Ae,L)}function pu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}var mu=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=ee,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}return Object(a.a)(Ae,[{key:"setStreamController",value:function(L){this.streamController=L}},{key:"destroy",value:function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}},{key:"registerListeners",value:function(){var L=this.hls;L.on(w.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),L.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.on(w.MANIFEST_PARSED,this.onManifestParsed,this),L.on(w.BUFFER_CODECS,this.onBufferCodecs,this),L.on(w.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"unregisterListener",value:function(){var L=this.hls;L.off(w.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),L.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(w.MANIFEST_PARSED,this.onManifestParsed,this),L.off(w.BUFFER_CODECS,this.onBufferCodecs,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"onFpsDropLevelCapping",value:function(L,W){var H=this.hls.levels[W.droppedLevel];this.isLevelAllowed(H)&&this.restrictedLevels.push({bitrate:H.bitrate,height:H.height,width:H.width})}},{key:"onMediaAttaching",value:function(L,W){this.media=W.media instanceof HTMLVideoElement?W.media:null,this.clientRect=null}},{key:"onManifestParsed",value:function(L,W){var H=this.hls;this.restrictedLevels=[],this.firstLevel=W.firstLevel,H.config.capLevelToPlayerSize&&W.video&&this.startCapping()}},{key:"onBufferCodecs",value:function(L,W){var H=this.hls;H.config.capLevelToPlayerSize&&W.video&&this.startCapping()}},{key:"onMediaDetaching",value:function(){this.stopCapping()}},{key:"detectPlayerSize",value:function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var L=this.hls.levels;if(L.length){var W=this.hls;W.autoLevelCapping=this.getMaxLevel(L.length-1),W.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=W.autoLevelCapping}}}},{key:"getMaxLevel",value:function(L){var W=this,H=this.hls.levels;if(!H.length)return-1;var Z=H.filter(function(ne,ve){return W.isLevelAllowed(ne)&&ve<=L});return this.clientRect=null,Ae.getMaxLevelByMediaSize(Z,this.mediaWidth,this.mediaHeight)}},{key:"startCapping",value:function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()}},{key:"stopCapping",value:function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}},{key:"getDimensions",value:function(){if(this.clientRect)return this.clientRect;var L=this.media,W={width:0,height:0};if(L){var H=L.getBoundingClientRect();W.width=H.width,W.height=H.height,!W.width&&!W.height&&(W.width=H.right-H.left||L.width||0,W.height=H.bottom-H.top||L.height||0)}return this.clientRect=W,W}},{key:"mediaWidth",get:function(){return this.getDimensions().width*this.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*this.contentScaleFactor}},{key:"contentScaleFactor",get:function(){var L=1;if(!this.hls.config.ignoreDevicePixelRatio)try{L=self.devicePixelRatio}catch(W){}return L}},{key:"isLevelAllowed",value:function(L){var W=this.restrictedLevels;return!W.some(function(H){return L.bitrate===H.bitrate&&L.width===H.width&&L.height===H.height})}}],[{key:"getMaxLevelByMediaSize",value:function(L,W,H){if(!(L!=null&&L.length))return-1;for(var Z=function(st,ht){return ht?st.width!==ht.width||st.height!==ht.height:!0},ne=L.length-1,ve=0;ve<L.length;ve+=1){var Te=L[ve];if((Te.width>=W||Te.height>=H)&&Z(Te,L[ve+1])){ne=ve;break}}return ne}}]),Ae}(),gu=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=ee,this.registerListeners()}return Object(a.a)(Ae,[{key:"setStreamController",value:function(L){this.streamController=L}},{key:"registerListeners",value:function(){this.hls.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this)}},{key:"unregisterListeners",value:function(){this.hls.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this)}},{key:"destroy",value:function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}},{key:"onMediaAttaching",value:function(L,W){var H=this.hls.config;if(H.capLevelOnFPSDrop){var Z=W.media instanceof self.HTMLVideoElement?W.media:null;this.media=Z,Z&&typeof Z.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),H.fpsDroppedMonitoringPeriod)}}},{key:"checkFPS",value:function(L,W,H){var Z=performance.now();if(W){if(this.lastTime){var ne=Z-this.lastTime,ve=H-this.lastDroppedFrames,Te=W-this.lastDecodedFrames,ze=1e3*ve/ne,st=this.hls;if(st.trigger(w.FPS_DROP,{currentDropped:ve,currentDecoded:Te,totalDroppedFrames:H}),ze>0&&ve>st.config.fpsDroppedMonitoringThreshold*Te){var ht=st.currentLevel;U.warn("drop FPS ratio greater than max allowed value for currentLevel: "+ht),ht>0&&(st.autoLevelCapping===-1||st.autoLevelCapping>=ht)&&(ht=ht-1,st.trigger(w.FPS_DROP_LEVEL_CAPPING,{level:ht,droppedLevel:st.currentLevel}),st.autoLevelCapping=ht,this.streamController.nextLevelSwitch())}}this.lastTime=Z,this.lastDroppedFrames=H,this.lastDecodedFrames=W}}},{key:"checkFPSInterval",value:function(){var L=this.media;if(L)if(this.isVideoPlaybackQualityAvailable){var W=L.getVideoPlaybackQuality();this.checkFPS(L,W.totalVideoFrames,W.droppedVideoFrames)}else this.checkFPS(L,L.webkitDecodedFrameCount,L.webkitDroppedFrameCount)}}]),Ae}(),ql="[eme]",Cl=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=Ae.CDMCleanupPromise?[Ae.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=U.debug.bind(U,ql),this.log=U.log.bind(U,ql),this.warn=U.warn.bind(U,ql),this.error=U.error.bind(U,ql),this.hls=ee,this.config=ee.config,this.registerListeners()}return Object(a.a)(Ae,[{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetached();var L=this.config;L.requestMediaKeySystemAccessFunc=null,L.licenseXhrSetup=L.licenseResponseCallback=void 0,L.drmSystems=L.drmSystemOptions={},this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null,this.config=null}},{key:"registerListeners",value:function(){this.hls.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(w.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(w.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"unregisterListeners",value:function(){this.hls.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(w.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(w.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"getLicenseServerUrl",value:function(L){var W=this.config,H=W.drmSystems,Z=W.widevineLicenseUrl,ne=H[L];if(ne)return ne.licenseUrl;if(L===he.WIDEVINE&&Z)return Z;throw new Error('no license server URL configured for key-system "'.concat(L,'"'))}},{key:"getServerCertificateUrl",value:function(L){var W=this.config.drmSystems,H=W[L];if(H)return H.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'.concat(L,'"]'))}},{key:"attemptKeySystemAccess",value:function(L){var W=this,H=this.hls.levels,Z=function(ze,st,ht){return!!ze&&ht.indexOf(ze)===st},ne=H.map(function(Te){return Te.audioCodec}).filter(Z),ve=H.map(function(Te){return Te.videoCodec}).filter(Z);return ne.length+ve.length===0&&ve.push("avc1.42e01e"),new Promise(function(Te,ze){var st=function ht(Zt){var Cr=Zt.shift();W.getMediaKeysPromise(Cr,ne,ve).then(function(Sr){return Te({keySystem:Cr,mediaKeys:Sr})}).catch(function(Sr){Zt.length?ht(Zt):Sr instanceof ll?ze(Sr):ze(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_ACCESS,error:Sr,fatal:!0},Sr.message))})};st(L)})}},{key:"requestMediaKeySystemAccess",value:function(L,W){var H=this.config.requestMediaKeySystemAccessFunc;if(!(typeof H=="function")){var Z="Configured requestMediaKeySystemAccess is not a function ".concat(H);return Be===null&&self.location.protocol==="http:"&&(Z="navigator.requestMediaKeySystemAccess is not available over insecure protocol ".concat(location.protocol)),Promise.reject(new Error(Z))}return H(L,W)}},{key:"getMediaKeysPromise",value:function(L,W,H){var Z=this,ne=fe(L,W,H,this.config.drmSystemOptions),ve=this.keySystemAccessPromises[L],Te=ve==null?void 0:ve.keySystemAccess;if(!Te){this.log('Requesting encrypted media "'.concat(L,'" key-system access with config: ').concat(JSON.stringify(ne))),Te=this.requestMediaKeySystemAccess(L,ne);var ze=this.keySystemAccessPromises[L]={keySystemAccess:Te};return Te.catch(function(st){Z.log('Failed to obtain access to key-system "'.concat(L,'": ').concat(st))}),Te.then(function(st){Z.log('Access for key-system "'.concat(st.keySystem,'" obtained'));var ht=Z.fetchServerCertificate(L);return Z.log('Create media-keys for "'.concat(L,'"')),ze.mediaKeys=st.createMediaKeys().then(function(Zt){return Z.log('Media-keys created for "'.concat(L,'"')),ht.then(function(Cr){return Cr?Z.setMediaKeysServerCertificate(Zt,L,Cr):Zt})}),ze.mediaKeys.catch(function(Zt){Z.error('Failed to create media-keys for "'.concat(L,'"}: ').concat(Zt))}),ze.mediaKeys})}return Te.then(function(){return ve.mediaKeys})}},{key:"createMediaKeySessionContext",value:function(L){var W=L.decryptdata,H=L.keySystem,Z=L.mediaKeys;this.log('Creating key-system session "'.concat(H,'" keyId: ').concat(Ht.hexDump(W.keyId||[])));var ne=Z.createSession(),ve={decryptdata:W,keySystem:H,mediaKeys:Z,mediaKeysSession:ne,keyStatus:"status-pending"};return this.mediaKeySessions.push(ve),ve}},{key:"renewKeySession",value:function(L){var W=L.decryptdata;if(W.pssh){var H=this.createMediaKeySessionContext(L),Z=this.getKeyIdString(W),ne="cenc";this.keyIdToKeySessionPromise[Z]=this.generateRequestWithPreferredKeySession(H,ne,W.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(L)}},{key:"getKeyIdString",value:function(L){if(!L)throw new Error("Could not read keyId of undefined decryptdata");if(L.keyId===null)throw new Error("keyId is null");return Ht.hexDump(L.keyId)}},{key:"updateKeySession",value:function(L,W){var H,Z=L.mediaKeysSession;return this.log('Updating key-session "'.concat(Z.sessionId,'" for keyID ').concat(Ht.hexDump(((H=L.decryptdata)==null?void 0:H.keyId)||[]),`
|
|
|
} (data length: `).concat(W&&W.byteLength,")")),Z.update(W)}},{key:"selectKeySystemFormat",value:function(L){var W=Object.keys(L.levelkeys||{});return this.keyFormatPromise||(this.log("Selecting key-system from fragment (sn: ".concat(L.sn," ").concat(L.type,": ").concat(L.level,") key formats ").concat(W.join(", "))),this.keyFormatPromise=this.getKeyFormatPromise(W)),this.keyFormatPromise}},{key:"getKeyFormatPromise",value:function(L){var W=this;return new Promise(function(H,Z){var ne=Ce(W.config),ve=L.map(Y).filter(function(Te){return!!Te&&ne.indexOf(Te)!==-1});return W.getKeySystemSelectionPromise(ve).then(function(Te){var ze=Te.keySystem,st=be(ze);st?H(st):Z(new Error('Unable to find format for key-system "'.concat(ze,'"')))}).catch(Z)})}},{key:"loadKey",value:function(L){var W=this,H=L.keyInfo.decryptdata,Z=this.getKeyIdString(H),ne="(keyId: ".concat(Z,' format: "').concat(H.keyFormat,'" method: ').concat(H.method," uri: ").concat(H.uri,")");this.log("Starting session for key ".concat(ne));var ve=this.keyIdToKeySessionPromise[Z];return ve||(ve=this.keyIdToKeySessionPromise[Z]=this.getKeySystemForKeyPromise(H).then(function(Te){var ze=Te.keySystem,st=Te.mediaKeys;return W.throwIfDestroyed(),W.log("Handle encrypted media sn: ".concat(L.frag.sn," ").concat(L.frag.type,": ").concat(L.frag.level," using key ").concat(ne)),W.attemptSetMediaKeys(ze,st).then(function(){W.throwIfDestroyed();var ht=W.createMediaKeySessionContext({keySystem:ze,mediaKeys:st,decryptdata:H}),Zt="cenc";return W.generateRequestWithPreferredKeySession(ht,Zt,H.pssh,"playlist-key")})}),ve.catch(function(Te){return W.handleError(Te)})),ve}},{key:"throwIfDestroyed",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Invalid state";if(!this.hls)throw new Error("invalid state")}},{key:"handleError",value:function(L){if(!this.hls)return;this.error(L.message),L instanceof ll?this.hls.trigger(w.ERROR,L.data):this.hls.trigger(w.ERROR,{type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_KEYS,error:L,fatal:!0})}},{key:"getKeySystemForKeyPromise",value:function(L){var W=this.getKeyIdString(L),H=this.keyIdToKeySessionPromise[W];if(!H){var Z=Y(L.keyFormat),ne=Z?[Z]:Ce(this.config);return this.attemptKeySystemAccess(ne)}return H}},{key:"getKeySystemSelectionPromise",value:function(L){if(L.length||(L=Ce(this.config)),L.length===0)throw new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},"Missing key-system license configuration options ".concat(JSON.stringify({drmSystems:this.config.drmSystems})));return this.attemptKeySystemAccess(L)}},{key:"_onMediaEncrypted",value:function(L){var W=this,H=L.initDataType,Z=L.initData;if(this.debug('"'.concat(L.type,'" event: init data type: "').concat(H,'"')),Z===null)return;var ne,ve;if(H==="sinf"&&this.config.drmSystems[he.FAIRPLAY]){var Te=lr(new Uint8Array(Z));try{var ze=Ve(JSON.parse(Te).sinf),st=_n(new Uint8Array(ze));if(!st)return;ne=st.subarray(8,24),ve=he.FAIRPLAY}catch(Zn){this.warn('Failed to parse sinf "encrypted" event message initData');return}}else{var ht=zr(Z);if(ht===null)return;ht.version===0&&ht.systemId===$.WIDEVINE&&ht.data&&(ne=ht.data.subarray(8,24)),ve=de(ht.systemId)}if(!ve||!ne)return;for(var Zt=Ht.hexDump(ne),Cr=this.keyIdToKeySessionPromise,Sr=this.mediaKeySessions,Kr=Cr[Zt],Zr=function(){var wi=Sr[Rn],ua=wi.decryptdata;if(ua.pssh||!ua.keyId)return 0;var Gi=Ht.hexDump(ua.keyId);if(Zt===Gi||ua.uri.replace(/-/g,"").indexOf(Zt)!==-1)return Kr=Cr[Gi],delete Cr[Gi],ua.pssh=new Uint8Array(Z),ua.keyId=ne,Kr=Cr[Zt]=Kr.then(function(){return W.generateRequestWithPreferredKeySession(wi,H,Z,"encrypted-event-key-match")}),1},On,Rn=0;Rn<Sr.length;Rn++){if(On=Zr(),On===0)continue;if(On===1)break}Kr||(Kr=Cr[Zt]=this.getKeySystemSelectionPromise([ve]).then(function(Zn){var wi=Zn.keySystem,ua=Zn.mediaKeys,Gi;W.throwIfDestroyed();var Zi=new jt("ISO-23001-7",Zt,(Gi=be(wi))!=null?Gi:"");return Zi.pssh=new Uint8Array(Z),Zi.keyId=ne,W.attemptSetMediaKeys(wi,ua).then(function(){W.throwIfDestroyed();var ka=W.createMediaKeySessionContext({decryptdata:Zi,keySystem:wi,mediaKeys:ua});return W.generateRequestWithPreferredKeySession(ka,H,Z,"encrypted-event-no-match")})})),Kr.catch(function(Zn){return W.handleError(Zn)})}},{key:"_onWaitingForKey",value:function(L){this.log('"'.concat(L.type,'" event'))}},{key:"attemptSetMediaKeys",value:function(L,W){var H=this,Z=this.setMediaKeysQueue.slice();this.log('Setting media-keys for "'.concat(L,'"'));var ne=Promise.all(Z).then(function(){if(!H.media)throw new Error("Attempted to set mediaKeys without media element attached");return H.media.setMediaKeys(W)});return this.setMediaKeysQueue.push(ne),ne.then(function(){H.log('Media-keys set for "'.concat(L,'"')),Z.push(ne),H.setMediaKeysQueue=H.setMediaKeysQueue.filter(function(ve){return Z.indexOf(ve)===-1})})}},{key:"generateRequestWithPreferredKeySession",value:function(L,W,H,Z){var ne=this,ve,Te,ze=(ve=this.config.drmSystems)==null||(Te=ve[L.keySystem])==null?void 0:Te.generateRequest;if(ze)try{var st=ze.call(this.hls,W,H,L);if(!st)throw new Error("Invalid response from configured generateRequest filter");W=st.initDataType,H=L.decryptdata.pssh=st.initData?new Uint8Array(st.initData):null}catch(Kr){var ht;if(this.warn(Kr.message),(ht=this.hls)!=null&&ht.config.debug)throw Kr}if(H===null)return this.log('Skipping key-session request for "'.concat(Z,'" (no initData)')),Promise.resolve(L);var Zt=this.getKeyIdString(L.decryptdata);this.log('Generating key-session request for "'.concat(Z,'": ').concat(Zt," (init data type: ").concat(W," length: ").concat(H?H.byteLength:null,")"));var Cr=new ds;L.mediaKeysSession.onmessage=function(Kr){var Zr=L.mediaKeysSession;if(!Zr){Cr.emit("error",new Error("invalid state"));return}var On=Kr.messageType,Rn=Kr.message;ne.log('"'.concat(On,'" message event for session "').concat(Zr.sessionId,'" message size: ').concat(Rn.byteLength)),On==="license-request"||On==="license-renewal"?ne.renewLicense(L,Rn).catch(function(Zn){ne.handleError(Zn),Cr.emit("error",Zn)}):On==="license-release"?L.keySystem===he.FAIRPLAY&&(ne.updateKeySession(L,et("acknowledged")),ne.removeSession(L)):ne.warn('unhandled media key message type "'.concat(On,'"'))},L.mediaKeysSession.onkeystatuseschange=function(Kr){var Zr=L.mediaKeysSession;if(!Zr){Cr.emit("error",new Error("invalid state"));return}ne.onKeyStatusChange(L);var On=L.keyStatus;Cr.emit("keyStatus",On),On==="expired"&&(ne.warn("".concat(L.keySystem," expired for key ").concat(Zt)),ne.renewKeySession(L))};var Sr=new Promise(function(Kr,Zr){Cr.on("error",Zr),Cr.on("keyStatus",function(On){On.startsWith("usable")?Kr():On==="output-restricted"?Zr(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):On==="internal-error"?Zr(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},'key status changed to "'.concat(On,'"'))):On==="expired"?Zr(new Error("key expired while generating request")):ne.warn('unhandled key status change "'.concat(On,'"'))})});return L.mediaKeysSession.generateRequest(W,H).then(function(){var Kr;ne.log('Request generated for key-session "'.concat((Kr=L.mediaKeysSession)==null?void 0:Kr.sessionId,'" keyId: ').concat(Zt))}).catch(function(Kr){throw new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_SESSION,error:Kr,fatal:!1},"Error generating key-session request: ".concat(Kr))}).then(function(){return Sr}).catch(function(Kr){throw Cr.removeAllListeners(),ne.removeSession(L),Kr}).then(function(){return Cr.removeAllListeners(),L})}},{key:"onKeyStatusChange",value:function(L){var W=this;L.mediaKeysSession.keyStatuses.forEach(function(H,Z){W.log('key status change "'.concat(H,'" for keyStatuses keyId: ').concat(Ht.hexDump("buffer"in Z?new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength):new Uint8Array(Z))," session keyId: ").concat(Ht.hexDump(new Uint8Array(L.decryptdata.keyId||[]))," uri: ").concat(L.decryptdata.uri)),L.keyStatus=H})}},{key:"fetchServerCertificate",value:function(L){var W=this.config,H=W.loader,Z=new H(W),ne=this.getServerCertificateUrl(L);return ne?(this.log('Fetching serverCertificate for "'.concat(L,'"')),new Promise(function(ve,Te){var ze={responseType:"arraybuffer",url:ne},st=W.certLoadPolicy.default,ht={loadPolicy:st,timeout:st.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Zt={onSuccess:function(Sr,Kr,Zr,On){ve(Sr.data)},onError:function(Sr,Kr,Zr,On){Te(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Zr,response:b({url:ze.url,data:void 0},Sr)},'"'.concat(L,'" certificate request failed (').concat(ne,"). Status: ").concat(Sr.code," (").concat(Sr.text,")")))},onTimeout:function(Sr,Kr,Zr){Te(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Zr,response:{url:ze.url,data:void 0}},'"'.concat(L,'" certificate request timed out (').concat(ne,")")))},onAbort:function(Sr,Kr,Zr){Te(new Error("aborted"))}};Z.load(ze,ht,Zt)})):Promise.resolve()}},{key:"setMediaKeysServerCertificate",value:function(L,W,H){var Z=this;return new Promise(function(ne,ve){L.setServerCertificate(H).then(function(Te){Z.log("setServerCertificate ".concat(Te?"success":"not supported by CDM"," (").concat(H==null?void 0:H.byteLength,') on "').concat(W,'"')),ne(L)}).catch(function(Te){ve(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:Te,fatal:!0},Te.message))})})}},{key:"renewLicense",value:function(L,W){var H=this;return this.requestLicense(L,new Uint8Array(W)).then(function(Z){return H.updateKeySession(L,new Uint8Array(Z)).catch(function(ne){throw new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:ne,fatal:!0},ne.message)})})}},{key:"setupLicenseXHR",value:function(L,W,H,Z){var ne=this,ve=this.config.licenseXhrSetup;return ve?Promise.resolve().then(function(){if(!H.decryptdata)throw new Error("Key removed");return ve.call(ne.hls,L,W,H,Z)}).catch(function(Te){if(!H.decryptdata)throw Te;return L.open("POST",W,!0),ve.call(ne.hls,L,W,H,Z)}).then(function(Te){L.readyState||L.open("POST",W,!0);var ze=Te||Z;return{xhr:L,licenseChallenge:ze}}):(L.open("POST",W,!0),Promise.resolve({xhr:L,licenseChallenge:Z}))}},{key:"requestLicense",value:function(L,W){var H=this,Z=this.config.keyLoadPolicy.default;return new Promise(function(ne,ve){var Te=H.getLicenseServerUrl(L.keySystem);H.log("Sending license request to URL: ".concat(Te));var ze=new XMLHttpRequest;ze.responseType="arraybuffer",ze.onreadystatechange=function(){if(!H.hls||!L.mediaKeysSession)return ve(new Error("invalid state"));if(ze.readyState===4)if(ze.status===200){H._requestLicenseFailureCount=0;var st=ze.response;H.log("License received ".concat(st instanceof ArrayBuffer?st.byteLength:st));var ht=H.config.licenseResponseCallback;if(ht)try{st=ht.call(H.hls,ze,Te,L)}catch(Kr){H.error(Kr)}ne(st)}else{var Zt=Z.errorRetry,Cr=Zt?Zt.maxNumRetry:0;if(H._requestLicenseFailureCount++,H._requestLicenseFailureCount>Cr||ze.status>=400&&ze.status<500)ve(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:ze,response:{url:Te,data:void 0,code:ze.status,text:ze.statusText}},"License Request XHR failed (".concat(Te,"). Status: ").concat(ze.status," (").concat(ze.statusText,")")));else{var Sr=Cr-H._requestLicenseFailureCount+1;H.warn("Retrying license request, ".concat(Sr," attempts left")),H.requestLicense(L,W).then(ne,ve)}}},L.licenseXhr&&L.licenseXhr.readyState!==XMLHttpRequest.DONE&&L.licenseXhr.abort(),L.licenseXhr=ze,H.setupLicenseXHR(ze,Te,L,W).then(function(st){var ht=st.xhr,Zt=st.licenseChallenge;ht.send(Zt)})})}},{key:"onMediaAttached",value:function(L,W){if(!this.config.emeEnabled)return;var H=W.media;this.media=H,H.addEventListener("encrypted",this.onMediaEncrypted),H.addEventListener("waitingforkey",this.onWaitingForKey)}},{key:"onMediaDetached",value:function(){var L=this,W=this.media,H=this.mediaKeySessions;W&&(W.removeEventListener("encrypted",this.onMediaEncrypted),W.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},jt.clearKeyUriToKeyIdMap();var Z=H.length;Ae.CDMCleanupPromise=Promise.all(H.map(function(ne){return L.removeSession(ne)}).concat(W==null?void 0:W.setMediaKeys(null).catch(function(ne){L.log("Could not clear media keys: ".concat(ne,". media.src: ").concat(W==null?void 0:W.src))}))).then(function(){Z&&(L.log("finished closing key sessions and clearing media keys"),H.length=0)}).catch(function(ne){L.log("Could not close sessions and clear media keys: ".concat(ne,". media.src: ").concat(W==null?void 0:W.src))})}},{key:"onManifestLoading",value:function(){this.keyFormatPromise=null}},{key:"onManifestLoaded",value:function(L,W){var H=W.sessionKeys;if(!H||!this.config.emeEnabled)return;if(!this.keyFormatPromise){var Z=H.reduce(function(ne,ve){return ne.indexOf(ve.keyFormat)===-1&&ne.push(ve.keyFormat),ne},[]);this.log("Selecting key-system from session-keys ".concat(Z.join(", "))),this.keyFormatPromise=this.getKeyFormatPromise(Z)}}},{key:"removeSession",value:function(L){var W=this,H=L.mediaKeysSession,Z=L.licenseXhr;if(H){this.log("Remove licenses and keys and close session ".concat(H.sessionId)),H.onmessage=null,H.onkeystatuseschange=null,Z&&Z.readyState!==XMLHttpRequest.DONE&&Z.abort(),L.mediaKeysSession=L.decryptdata=L.licenseXhr=void 0;var ne=this.mediaKeySessions.indexOf(L);return ne>-1&&this.mediaKeySessions.splice(ne,1),H.remove().catch(function(ve){W.log("Could not remove session: ".concat(ve))}).then(function(){return H.close()}).catch(function(ve){W.log("Could not close session: ".concat(ve))})}}}]),Ae}();Cl.CDMCleanupPromise=void 0;var ll=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H){var Z;return Object(r.a)(this,L),Z=ee.call(this,H),Z.data=void 0,W.error||(W.error=new Error(H)),Z.data=W,W.err=W.error,Z}return Object(a.a)(L)}(i(Error)),Hl=1,Sl={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},Su="h",vu=function(){function Ae(ee){var L=this;Object(r.a)(this,Ae),this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){L.initialized&&(L.starved=!0),L.buffering=!0},this.onPlaying=function(){L.initialized||(L.initialized=!0),L.buffering=!1},this.applyPlaylistData=function(Z){try{L.apply(Z,{ot:Sl.MANIFEST,su:!L.initialized})}catch(ne){U.warn("Could not generate manifest CMCD data.",ne)}},this.applyFragmentData=function(Z){try{var ne=Z.frag,ve=L.hls.levels[ne.level],Te=L.getObjectType(ne),ze={d:ne.duration*1e3,ot:Te};(Te===Sl.VIDEO||Te===Sl.AUDIO||Te==Sl.MUXED)&&(ze.br=ve.bitrate/1e3,ze.tb=L.getTopBandwidth(Te)/1e3,ze.bl=L.getBufferLength(Te)),L.apply(Z,ze)}catch(st){U.warn("Could not generate segment CMCD data.",st)}},this.hls=ee;var W=this.config=ee.config,H=W.cmcd;H!=null&&(W.pLoader=this.createPlaylistLoader(),W.fLoader=this.createFragmentLoader(),this.sid=H.sessionId||Ae.uuid(),this.cid=H.contentId,this.useHeaders=H.useHeaders===!0,this.registerListeners())}return Object(a.a)(Ae,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.on(w.MEDIA_DETACHED,this.onMediaDetached,this),L.on(w.BUFFER_CREATED,this.onBufferCreated,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.off(w.MEDIA_DETACHED,this.onMediaDetached,this),L.off(w.BUFFER_CREATED,this.onBufferCreated,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null}},{key:"onMediaAttached",value:function(L,W){this.media=W.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}},{key:"onMediaDetached",value:function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null}},{key:"onBufferCreated",value:function(L,W){var H,Z;this.audioBuffer=(H=W.tracks.audio)==null?void 0:H.buffer,this.videoBuffer=(Z=W.tracks.video)==null?void 0:Z.buffer}},{key:"createData",value:function(){var L;return{v:Hl,sf:Su,sid:this.sid,cid:this.cid,pr:(L=this.media)==null?void 0:L.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}},{key:"apply",value:function(L){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E(W,this.createData());var H=W.ot===Sl.INIT||W.ot===Sl.VIDEO||W.ot===Sl.MUXED;if(this.starved&&H&&(W.bs=!0,W.su=!0,this.starved=!1),W.su==null&&(W.su=this.buffering),this.useHeaders){var Z=Ae.toHeaders(W);if(!Object.keys(Z).length)return;L.headers||(L.headers={}),E(L.headers,Z)}else{var ne=Ae.toQuery(W);if(!ne)return;L.url=Ae.appendQueryToUri(L.url,ne)}}},{key:"getObjectType",value:function(L){var W=L.type;return W==="subtitle"?Sl.TIMED_TEXT:L.sn==="initSegment"?Sl.INIT:W==="audio"?Sl.AUDIO:W==="main"?this.hls.audioTracks.length?Sl.VIDEO:Sl.MUXED:void 0}},{key:"getTopBandwidth",value:function(L){var W=0,H,Z=this.hls;if(L===Sl.AUDIO)H=Z.audioTracks;else{var ne=Z.maxAutoLevel,ve=ne>-1?ne+1:Z.levels.length;H=Z.levels.slice(0,ve)}var Te=Object(f.a)(H),ze;try{for(Te.s();!(ze=Te.n()).done;){var st=ze.value;st.bitrate>W&&(W=st.bitrate)}}catch(ht){Te.e(ht)}finally{Te.f()}return W>0?W:NaN}},{key:"getBufferLength",value:function(L){var W=this.hls.media,H=L===Sl.AUDIO?this.audioBuffer:this.videoBuffer;if(!H||!W)return NaN;var Z=Ii.bufferInfo(H,W.currentTime,this.config.maxBufferHole);return Z.len*1e3}},{key:"createPlaylistLoader",value:function(){var L=this.config.pLoader,W=this.applyPlaylistData,H=L||this.config.loader;return function(){function Z(ne){Object(r.a)(this,Z),this.loader=void 0,this.loader=new H(ne)}return Object(a.a)(Z,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}},{key:"destroy",value:function(){this.loader.destroy()}},{key:"abort",value:function(){this.loader.abort()}},{key:"load",value:function(ve,Te,ze){W(ve),this.loader.load(ve,Te,ze)}}]),Z}()}},{key:"createFragmentLoader",value:function(){var L=this.config.fLoader,W=this.applyFragmentData,H=L||this.config.loader;return function(){function Z(ne){Object(r.a)(this,Z),this.loader=void 0,this.loader=new H(ne)}return Object(a.a)(Z,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}},{key:"destroy",value:function(){this.loader.destroy()}},{key:"abort",value:function(){this.loader.abort()}},{key:"load",value:function(ve,Te,ze){W(ve),this.loader.load(ve,Te,ze)}}]),Z}()}}],[{key:"uuid",value:function(){var L=URL.createObjectURL(new Blob),W=L.toString();return URL.revokeObjectURL(L),W.slice(W.lastIndexOf("/")+1)}},{key:"serialize",value:function(L){var W=[],H=function(Rn){return!Number.isNaN(Rn)&&Rn!=null&&Rn!==""&&Rn!==!1},Z=function(Rn){return Math.round(Rn)},ne=function(Rn){return Z(Rn/100)*100},ve=function(Rn){return encodeURIComponent(Rn)},Te={br:Z,d:Z,bl:ne,dl:ne,mtp:ne,nor:ve,rtp:ne,tb:Z},ze=Object.keys(L||{}).sort(),st=Object(f.a)(ze),ht;try{for(st.s();!(ht=st.n()).done;){var Zt=ht.value,Cr=L[Zt];if(!H(Cr))continue;if(Zt==="v"&&Cr===1)continue;if(Zt=="pr"&&Cr===1)continue;var Sr=Te[Zt];Sr&&(Cr=Sr(Cr));var Kr=typeof Cr,Zr=void 0;Zt==="ot"||Zt==="sf"||Zt==="st"?Zr="".concat(Zt,"=").concat(Cr):Kr==="boolean"?Zr=Zt:Kr==="number"?Zr="".concat(Zt,"=").concat(Cr):Zr="".concat(Zt,"=").concat(JSON.stringify(Cr)),W.push(Zr)}}catch(On){st.e(On)}finally{st.f()}return W.join(",")}},{key:"toHeaders",value:function(L){for(var W=Object.keys(L),H={},Z=["Object","Request","Session","Status"],ne=[{},{},{},{}],ve={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},Te=0,ze=W;Te<ze.length;Te++){var st=ze[Te],ht=ve[st]!=null?ve[st]:1;ne[ht][st]=L[st]}for(var Zt=0;Zt<ne.length;Zt++){var Cr=Ae.serialize(ne[Zt]);Cr&&(H["CMCD-".concat(Z[Zt])]=Cr)}return H}},{key:"toQuery",value:function(L){return"CMCD=".concat(encodeURIComponent(Ae.serialize(L)))}},{key:"appendQueryToUri",value:function(L,W){if(!W)return L;var H=L.includes("?")?"&":"?";return"".concat(L).concat(H).concat(W)}}]),Ae}(),Au=3e5,Ol=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=ee,this.log=U.log.bind(U,"[content-steering]:"),this.registerListeners()}return Object(a.a)(Ae,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.MANIFEST_LOADED,this.onManifestLoaded,this),L.on(w.MANIFEST_PARSED,this.onManifestParsed,this),L.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;if(!L)return;L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.MANIFEST_LOADED,this.onManifestLoaded,this),L.off(w.MANIFEST_PARSED,this.onManifestParsed,this),L.off(w.ERROR,this.onError,this)}},{key:"startLoad",value:function(){if(this.started=!0,self.clearTimeout(this.reloadTimer),this.enabled&&this.uri)if(this.updated){var L=Math.max(this.timeToLoad*1e3-(performance.now()-this.updated),0);this.scheduleRefresh(this.uri,L)}else this.loadSteeringManifest(this.uri)}},{key:"stopLoad",value:function(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),self.clearTimeout(this.reloadTimer)}},{key:"destroy",value:function(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}},{key:"removeLevel",value:function(L){var W=this.levels;W&&(this.levels=W.filter(function(H){return H!==L}))}},{key:"onManifestLoading",value:function(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}},{key:"onManifestLoaded",value:function(L,W){var H=W.contentSteering;if(H===null)return;this.pathwayId=H.pathwayId,this.uri=H.uri,this.started&&this.startLoad()}},{key:"onManifestParsed",value:function(L,W){this.audioTracks=W.audioTracks,this.subtitleTracks=W.subtitleTracks}},{key:"onError",value:function(L,W){var H=W.errorAction;if((H==null?void 0:H.action)===ra.SendAlternateToPenaltyBox&&H.flags===Ir.MoveAllAlternatesMatchingHost){var Z=this.pathwayPriority,ne=this.pathwayId;this.penalizedPathways[ne]||(this.penalizedPathways[ne]=performance.now()),!Z&&this.levels&&(Z=this.levels.reduce(function(ve,Te){return ve.indexOf(Te.pathwayId)===-1&&ve.push(Te.pathwayId),ve},[])),Z&&Z.length>1&&(this.updatePathwayPriority(Z),H.resolved=this.pathwayId!==ne)}}},{key:"filterParsedLevels",value:function(L){this.levels=L;var W=this.getLevelsForPathway(this.pathwayId);if(W.length===0){var H=L[0].pathwayId;this.log("No levels found in Pathway ".concat(this.pathwayId,'. Setting initial Pathway to "').concat(H,'"')),W=this.getLevelsForPathway(H),this.pathwayId=H}return W.length!==L.length?(this.log("Found ".concat(W.length,"/").concat(L.length,' levels in Pathway "').concat(this.pathwayId,'"')),W):L}},{key:"getLevelsForPathway",value:function(L){return this.levels===null?[]:this.levels.filter(function(W){return L===W.pathwayId})}},{key:"updatePathwayPriority",value:function(L){this.pathwayPriority=L;var W,H=this.penalizedPathways,Z=performance.now();Object.keys(H).forEach(function(ht){Z-H[ht]>Au&&delete H[ht]});for(var ne=0;ne<L.length;ne++){var ve=L[ne];if(H[ve])continue;if(ve===this.pathwayId)return;var Te=this.hls.nextLoadLevel,ze=this.hls.levels[Te];if(W=this.getLevelsForPathway(ve),W.length>0){this.log('Setting Pathway to "'.concat(ve,'"')),this.pathwayId=ve,this.hls.trigger(w.LEVELS_UPDATED,{levels:W});var st=this.hls.levels[Te];ze&&st&&this.levels&&(st.attrs["STABLE-VARIANT-ID"]!==ze.attrs["STABLE-VARIANT-ID"]&&st.bitrate!==ze.bitrate&&this.log("Unstable Pathways change from bitrate ".concat(ze.bitrate," to ").concat(st.bitrate)),this.hls.nextLoadLevel=Te);break}}}},{key:"clonePathways",value:function(L){var W=this,H=this.levels;if(!H)return;var Z={},ne={};L.forEach(function(ve){var Te=ve.ID,ze=ve["BASE-ID"],st=ve["URI-REPLACEMENT"];if(H.some(function(Zt){return Zt.pathwayId===Te}))return;var ht=W.getLevelsForPathway(ze).map(function(Zt){var Cr=E({},Zt);Cr.details=void 0,Cr.url=du(Zt.uri,Zt.attrs["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",st);var Sr=new V(Zt.attrs);Sr["PATHWAY-ID"]=Te;var Kr=Sr.AUDIO&&"".concat(Sr.AUDIO,"_clone_").concat(Te),Zr=Sr.SUBTITLES&&"".concat(Sr.SUBTITLES,"_clone_").concat(Te);Kr&&(Z[Sr.AUDIO]=Kr,Sr.AUDIO=Kr),Zr&&(ne[Sr.SUBTITLES]=Zr,Sr.SUBTITLES=Zr),Cr.attrs=Sr;var On=new Lt(Cr);return ln(On,"audio",Kr),ln(On,"text",Zr),On});H.push.apply(H,Object(y.a)(ht)),cu(W.audioTracks,Z,st,Te),cu(W.subtitleTracks,ne,st,Te)})}},{key:"loadSteeringManifest",value:function(L){var W=this,H=this.hls.config,Z=H.loader;this.loader&&this.loader.destroy(),this.loader=new Z(H);var ne;try{ne=new self.URL(L)}catch(Cr){this.enabled=!1,this.log("Failed to parse Steering Manifest URI: ".concat(L));return}if(ne.protocol!=="data:"){var ve=(this.hls.bandwidthEstimate||H.abrEwmaDefaultEstimate)|0;ne.searchParams.set("_HLS_pathway",this.pathwayId),ne.searchParams.set("_HLS_throughput",""+ve)}var Te={responseType:"json",url:ne.href},ze=H.steeringManifestLoadPolicy.default,st=ze.errorRetry||ze.timeoutRetry||{},ht={loadPolicy:ze,timeout:ze.maxLoadTimeMs,maxRetry:st.maxNumRetry||0,retryDelay:st.retryDelayMs||0,maxRetryDelay:st.maxRetryDelayMs||0},Zt={onSuccess:function(Sr,Kr,Zr,On){W.log('Loaded steering manifest: "'.concat(ne,'"'));var Rn=Sr.data;if(Rn.VERSION!==1){W.log("Steering VERSION ".concat(Rn.VERSION," not supported!"));return}W.updated=performance.now(),W.timeToLoad=Rn.TTL;var Zn=Rn["RELOAD-URI"],wi=Rn["PATHWAY-CLONES"],ua=Rn["PATHWAY-PRIORITY"];if(Zn)try{W.uri=new self.URL(Zn,ne).href}catch(Gi){W.enabled=!1,W.log("Failed to parse Steering Manifest RELOAD-URI: ".concat(Zn));return}W.scheduleRefresh(W.uri||Zr.url),wi&&W.clonePathways(wi),ua&&W.updatePathwayPriority(ua)},onError:function(Sr,Kr,Zr,On){if(W.log("Error loading steering manifest: ".concat(Sr.code," ").concat(Sr.text," (").concat(Kr.url,")")),W.stopLoad(),Sr.code===410){W.enabled=!1,W.log("Steering manifest ".concat(Kr.url," no longer available"));return}var Rn=W.timeToLoad*1e3;if(Sr.code===429){var Zn=W.loader;if(typeof(Zn==null?void 0:Zn.getResponseHeader)=="function"){var wi=Zn.getResponseHeader("Retry-After");wi&&(Rn=parseFloat(wi)*1e3)}W.log("Steering manifest ".concat(Kr.url," rate limited"));return}W.scheduleRefresh(W.uri||Kr.url,Rn)},onTimeout:function(Sr,Kr,Zr){W.log("Timeout loading steering manifest (".concat(Kr.url,")")),W.scheduleRefresh(W.uri||Kr.url)}};this.log("Requesting steering manifest: ".concat(ne)),this.loader.load(Te,ht,Zt)}},{key:"scheduleRefresh",value:function(L){var W=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.timeToLoad*1e3;self.clearTimeout(this.reloadTimer),this.reloadTimer=self.setTimeout(function(){W.loadSteeringManifest(L)},H)}}]),Ae}();function cu(Ae,ee,L,W){if(!Ae)return;Object.keys(ee).forEach(function(H){var Z=Ae.filter(function(ne){return ne.groupId===H}).map(function(ne){var ve=E({},ne);return ve.details=void 0,ve.attrs=new V(ve.attrs),ve.url=ve.attrs.URI=du(ne.url,ne.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",L),ve.groupId=ve.attrs["GROUP-ID"]=ee[H],ve.attrs["PATHWAY-ID"]=W,ve});Ae.push.apply(Ae,Object(y.a)(Z))})}function du(Ae,ee,L,W){var H=W.HOST,Z=W.PARAMS,ne=W[L],ve;ee&&(ve=ne==null?void 0:ne[ee],ve&&(Ae=ve));var Te=new self.URL(Ae);return H&&!ve&&(Te.host=H),Z&&Object.keys(Z).sort().forEach(function(ze){ze&&Te.searchParams.set(ze,Z[ze])}),Te.href}var Lu=/^age:\s*[\d.]+\s*$/im,zl=function(){function Ae(ee){Object(r.a)(this,Ae),this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=ee&&ee.xhrSetup||null,this.stats=new q,this.retryDelay=0}return Object(a.a)(Ae,[{key:"destroy",value:function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null}},{key:"abortInternal",value:function(){var L=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),L&&(L.onreadystatechange=null,L.onprogress=null,L.readyState!==4&&(this.stats.aborted=!0,L.abort()))}},{key:"abort",value:function(){var L;this.abortInternal(),(L=this.callbacks)!=null&&L.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}},{key:"load",value:function(L,W,H){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=L,this.config=W,this.callbacks=H,this.loadInternal()}},{key:"loadInternal",value:function(){var L=this,W=this.config,H=this.context;if(!W)return;var Z=this.loader=new self.XMLHttpRequest,ne=this.stats;ne.loading.first=0,ne.loaded=0,ne.aborted=!1;var ve=this.xhrSetup;ve?Promise.resolve().then(function(){return L.stats.aborted?void 0:ve(Z,H.url)}).catch(function(Te){return Z.open("GET",H.url,!0),ve(Z,H.url)}).then(function(){if(L.stats.aborted)return;L.openAndSendXhr(Z,H,W)}).catch(function(Te){L.callbacks.onError({code:Z.status,text:Te.message},H,Z,ne);return}):this.openAndSendXhr(Z,H,W)}},{key:"openAndSendXhr",value:function(L,W,H){L.readyState||L.open("GET",W.url,!0);var Z=this.context.headers,ne=H.loadPolicy,ve=ne.maxTimeToFirstByteMs,Te=ne.maxLoadTimeMs;if(Z)for(var ze in Z)L.setRequestHeader(ze,Z[ze]);W.rangeEnd&&L.setRequestHeader("Range","bytes="+W.rangeStart+"-"+(W.rangeEnd-1)),L.onreadystatechange=this.readystatechange.bind(this),L.onprogress=this.loadprogress.bind(this),L.responseType=W.responseType,self.clearTimeout(this.requestTimeout),H.timeout=ve&&T(ve)?ve:Te,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),H.timeout),L.send()}},{key:"readystatechange",value:function(){var L=this.context,W=this.loader,H=this.stats;if(!L||!W)return;var Z=W.readyState,ne=this.config;if(H.aborted)return;if(Z>=2&&(H.loading.first===0&&(H.loading.first=Math.max(self.performance.now(),H.loading.start),ne.timeout!==ne.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),ne.timeout=ne.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),ne.loadPolicy.maxLoadTimeMs-(H.loading.first-H.loading.start)))),Z===4)){self.clearTimeout(this.requestTimeout),W.onreadystatechange=null,W.onprogress=null;var ve=W.status,Te=W.responseType!=="text";if(ve>=200&&ve<300&&(Te&&W.response||W.responseText!==null)){H.loading.end=Math.max(self.performance.now(),H.loading.first);var ze=Te?W.response:W.responseText,st=W.responseType==="arraybuffer"?ze.byteLength:ze.length;if(H.loaded=H.total=st,H.bwEstimate=H.total*8e3/(H.loading.end-H.loading.first),!this.callbacks)return;var ht=this.callbacks.onProgress;if(ht&&ht(H,L,ze,W),!this.callbacks)return;var Zt={url:W.responseURL,data:ze,code:ve};this.callbacks.onSuccess(Zt,H,L,W)}else{var Cr=ne.loadPolicy.errorRetry,Sr=H.retry;oa(Cr,Sr,!1,ve)?this.retry(Cr):(U.error("".concat(ve," while loading ").concat(L.url)),this.callbacks.onError({code:ve,text:W.statusText},L,W,H))}}}},{key:"loadtimeout",value:function(){var L,W=(L=this.config)==null?void 0:L.loadPolicy.timeoutRetry,H=this.stats.retry;if(oa(W,H,!0))this.retry(W);else{U.warn("timeout while loading ".concat(this.context.url));var Z=this.callbacks;Z&&(this.abortInternal(),Z.onTimeout(this.stats,this.context,this.loader))}}},{key:"retry",value:function(L){var W=this.context,H=this.stats;this.retryDelay=ki(L,H.retry),H.retry++,U.warn("".concat(status?"HTTP Status "+status:"Timeout"," while loading ").concat(W.url,", retrying ").concat(H.retry,"/").concat(L.maxNumRetry," in ").concat(this.retryDelay,"ms")),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}},{key:"loadprogress",value:function(L){var W=this.stats;W.loaded=L.loaded,L.lengthComputable&&(W.total=L.total)}},{key:"getCacheAge",value:function(){var L=null;if(this.loader&&Lu.test(this.loader.getAllResponseHeaders())){var W=this.loader.getResponseHeader("age");L=W?parseFloat(W):null}return L}},{key:"getResponseHeader",value:function(L){return this.loader&&new RegExp("^".concat(L,":\\s*[\\d.]+\\s*$"),"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(L):null}}]),Ae}();function ru(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(Ae){}return!1}var ou=/(\d+)-(\d+)\/(\d+)/,su=function(){function Ae(ee){Object(r.a)(this,Ae),this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=ee.fetchSetup||Zl,this.controller=new self.AbortController,this.stats=new q}return Object(a.a)(Ae,[{key:"destroy",value:function(){this.loader=this.callbacks=null,this.abortInternal()}},{key:"abortInternal",value:function(){var L=this.response;L!=null&&L.ok||(this.stats.aborted=!0,this.controller.abort())}},{key:"abort",value:function(){var L;this.abortInternal(),(L=this.callbacks)!=null&&L.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}},{key:"load",value:function(L,W,H){var Z=this,ne=this.stats;if(ne.loading.start)throw new Error("Loader can only be used once.");ne.loading.start=self.performance.now();var ve=Jl(L,this.controller.signal),Te=H.onProgress,ze=L.responseType==="arraybuffer",st=ze?"byteLength":"length",ht=W.loadPolicy,Zt=ht.maxTimeToFirstByteMs,Cr=ht.maxLoadTimeMs;this.context=L,this.config=W,this.callbacks=H,this.request=this.fetchSetup(L,ve),self.clearTimeout(this.requestTimeout),W.timeout=Zt&&T(Zt)?Zt:Cr,this.requestTimeout=self.setTimeout(function(){Z.abortInternal(),H.onTimeout(ne,L,Z.response)},W.timeout),self.fetch(this.request).then(function(Sr){Z.response=Z.loader=Sr;var Kr=Math.max(self.performance.now(),ne.loading.start);if(self.clearTimeout(Z.requestTimeout),W.timeout=Cr,Z.requestTimeout=self.setTimeout(function(){Z.abortInternal(),H.onTimeout(ne,L,Z.response)},Cr-(Kr-ne.loading.start)),!Sr.ok){var Zr=Sr.status,On=Sr.statusText;throw new yu(On||"fetch, bad network response",Zr,Sr)}return ne.loading.first=Kr,ne.total=Ru(Sr.headers)||ne.total,Te&&T(W.highWaterMark)?Z.loadProgressively(Sr,ne,L,W.highWaterMark,Te):ze?Sr.arrayBuffer():L.responseType==="json"?Sr.json():Sr.text()}).then(function(Sr){var Kr=Z.response;self.clearTimeout(Z.requestTimeout),ne.loading.end=Math.max(self.performance.now(),ne.loading.first);var Zr=Sr[st];Zr&&(ne.loaded=ne.total=Zr);var On={url:Kr.url,data:Sr,code:Kr.status};Te&&!T(W.highWaterMark)&&Te(ne,L,Sr,Kr),H.onSuccess(On,ne,L,Kr)}).catch(function(Sr){if(self.clearTimeout(Z.requestTimeout),ne.aborted)return;var Kr=Sr&&Sr.code||0,Zr=Sr?Sr.message:null;H.onError({code:Kr,text:Zr},L,Sr?Sr.details:null,ne)})}},{key:"getCacheAge",value:function(){var L=null;if(this.response){var W=this.response.headers.get("age");L=W?parseFloat(W):null}return L}},{key:"getResponseHeader",value:function(L){return this.response?this.response.headers.get(L):null}},{key:"loadProgressively",value:function(L,W,H){var Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,ne=arguments.length>4?arguments[4]:void 0,ve=new Ut,Te=L.body.getReader(),ze=function st(){return Te.read().then(function(ht){if(ht.done)return ve.dataLength&&ne(W,H,ve.flush(),L),Promise.resolve(new ArrayBuffer(0));var Zt=ht.value,Cr=Zt.length;return W.loaded+=Cr,Cr<Z||ve.dataLength?(ve.push(Zt),ve.dataLength>=Z&&ne(W,H,ve.flush(),L)):ne(W,H,Zt,L),st()}).catch(function(){return Promise.reject()})};return ze()}}]),Ae}();function Jl(Ae,ee){var L={method:"GET",mode:"cors",credentials:"same-origin",signal:ee,headers:new self.Headers(E({},Ae.headers))};return Ae.rangeEnd&&L.headers.set("Range","bytes="+Ae.rangeStart+"-"+String(Ae.rangeEnd-1)),L}function Du(Ae){var ee=ou.exec(Ae);if(ee)return parseInt(ee[2])-parseInt(ee[1])+1}function Ru(Ae){var ee=Ae.get("Content-Range");if(ee){var L=Du(ee);if(T(L))return L}var W=Ae.get("Content-Length");if(W)return parseInt(W)}function Zl(Ae,ee){return new self.Request(Ae.url,ee)}var yu=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H,Z){var ne;return Object(r.a)(this,L),ne=ee.call(this,W),ne.code=void 0,ne.details=void 0,ne.code=H,ne.details=Z,ne}return Object(a.a)(L)}(i(Error)),xu=/\s/,bu={newCue:function(ee,L,W,H){for(var Z=[],ne,ve,Te,ze,st,ht=self.VTTCue||self.TextTrackCue,Zt=0;Zt<H.rows.length;Zt++)if(ne=H.rows[Zt],Te=!0,ze=0,st="",!ne.isEmpty()){for(var Cr,Sr=0;Sr<ne.chars.length;Sr++)xu.test(ne.chars[Sr].uchar)&&Te?ze++:(st+=ne.chars[Sr].uchar,Te=!1);ne.cueStartTime=L,L===W&&(W+=1e-4),ze>=16?ze--:ze++;var Kr=jo(st.trim()),Zr=Ls(L,W,Kr);ee!=null&&(Cr=ee.cues)!=null&&Cr.getCueById(Zr)||(ve=new ht(L,W,Kr),ve.id=Zr,ve.line=Zt+1,ve.align="left",ve.position=10+Math.min(80,Math.floor(ze*8/32)*10),Z.push(ve))}return ee&&Z.length&&(Z.sort(function(On,Rn){return On.line==="auto"||Rn.line==="auto"?0:On.line>8&&Rn.line>8?Rn.line-On.line:On.line-Rn.line}),Z.forEach(function(On){return Ar(ee,On)})),Z}},hl={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Dl=b(b({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:Infinity,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:Infinity,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:zl,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:go,bufferController:Si,capLevelController:mu,errorController:xr,fpsController:gu,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:Be,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,certLoadPolicy:{default:hl},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:Infinity,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},nu()),{},{subtitleStreamController:Je,subtitleTrackController:sr,timelineController:$l,audioStreamController:hi,audioTrackController:Nt,emeController:Cl,cmcdController:vu,contentSteeringController:Ol});function nu(){return{cueHandler:bu,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function Nu(Ae,ee){if((ee.liveSyncDurationCount||ee.liveMaxLatencyDurationCount)&&(ee.liveSyncDuration||ee.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(ee.liveMaxLatencyDurationCount!==void 0&&(ee.liveSyncDurationCount===void 0||ee.liveMaxLatencyDurationCount<=ee.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(ee.liveMaxLatencyDuration!==void 0&&(ee.liveSyncDuration===void 0||ee.liveMaxLatencyDuration<=ee.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var L=hu(Ae),W=["manifest","level","frag"],H=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return W.forEach(function(Z){var ne="".concat(Z==="level"?"playlist":Z,"LoadPolicy"),ve=ee[ne]===void 0,Te=[];H.forEach(function(ze){var st="".concat(Z,"Loading").concat(ze),ht=ee[st];if(ht!==void 0&&ve){Te.push(st);var Zt=L[ne].default;ee[ne]={default:Zt};switch(ze){case"TimeOut":Zt.maxLoadTimeMs=ht,Zt.maxTimeToFirstByteMs=ht;break;case"MaxRetry":Zt.errorRetry.maxNumRetry=ht,Zt.timeoutRetry.maxNumRetry=ht;break;case"RetryDelay":Zt.errorRetry.retryDelayMs=ht,Zt.timeoutRetry.retryDelayMs=ht;break;case"MaxRetryTimeout":Zt.errorRetry.maxRetryDelayMs=ht,Zt.timeoutRetry.maxRetryDelayMs=ht;break}}}),Te.length&&U.warn('hls.js config: "'.concat(Te.join('", "'),'" setting(s) are deprecated, use "').concat(ne,'": ').concat(JSON.stringify(ee[ne])))}),b(b({},L),ee)}function hu(Ae){return Ae&&typeof Ae=="object"?Array.isArray(Ae)?Ae.map(hu):Object.keys(Ae).reduce(function(ee,L){return ee[L]=hu(Ae[L]),ee},{}):Ae}function fu(Ae){var ee=Ae.loader;if(ee!==su&&ee!==zl)U.log("[config]: Custom loader detected, cannot enable progressive streaming"),Ae.progressive=!1;else{var L=ru();L&&(Ae.loader=su,Ae.progressive=!0,Ae.enableSoftwareAES=!0,U.log("[config]: Progressive streaming enabled, using FetchLoader"))}}var iu=function(){function Ae(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object(r.a)(this,Ae),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new ds,this._autoLevelCapping=void 0,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,F(ee.debug||!1,"Hls instance");var L=this.config=Nu(Ae.DefaultConfig,ee);this.userConfig=ee,this._autoLevelCapping=-1,L.progressive&&fu(L);var W=L.abrController,H=L.bufferController,Z=L.capLevelController,ne=L.errorController,ve=L.fpsController,Te=new ne(this),ze=this.abrController=new W(this),st=this.bufferController=new H(this),ht=this.capLevelController=new Z(this),Zt=new ve(this),Cr=new Yr(this),Sr=new Yn(this),Kr=L.contentSteeringController,Zr=Kr?new Kr(this):null,On=this.levelController=new Gr(this,Zr),Rn=new Or(this),Zn=new mi(this.config),wi=this.streamController=new No(this,Rn,Zn);ht.setStreamController(wi),Zt.setStreamController(wi);var ua=[Cr,On,wi];Zr&&ua.splice(1,0,Zr),this.networkControllers=ua;var Gi=[ze,st,ht,Zt,Sr,Rn];this.audioTrackController=this.createController(L.audioTrackController,ua);var Zi=L.audioStreamController;Zi&&ua.push(new Zi(this,Rn,Zn)),this.subtitleTrackController=this.createController(L.subtitleTrackController,ua);var ka=L.subtitleStreamController;ka&&ua.push(new ka(this,Rn,Zn)),this.createController(L.timelineController,Gi),Zn.emeController=this.emeController=this.createController(L.emeController,Gi),this.cmcdController=this.createController(L.cmcdController,Gi),this.latencyController=this.createController(zt,Gi),this.coreComponents=Gi,ua.push(Te);var Ga=Te.onErrorOut;typeof Ga=="function"&&this.on(w.ERROR,Ga,Te)}return Object(a.a)(Ae,[{key:"createController",value:function(L,W){if(L){var H=new L(this);return W&&W.push(H),H}return null}},{key:"on",value:function(L,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this;this._emitter.on(L,W,H)}},{key:"once",value:function(L,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this;this._emitter.once(L,W,H)}},{key:"removeAllListeners",value:function(L){this._emitter.removeAllListeners(L)}},{key:"off",value:function(L,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this,Z=arguments.length>3?arguments[3]:void 0;this._emitter.off(L,W,H,Z)}},{key:"listeners",value:function(L){return this._emitter.listeners(L)}},{key:"emit",value:function(L,W,H){return this._emitter.emit(L,W,H)}},{key:"trigger",value:function(L,W){if(this.config.debug)return this.emit(L,L,W);try{return this.emit(L,L,W)}catch(H){U.error("An internal error happened while handling event "+L+'. Error message: "'+H.message+'". Here is a stacktrace:',H),this.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,fatal:!1,event:L,error:H})}return!1}},{key:"listenerCount",value:function(L){return this._emitter.listenerCount(L)}},{key:"destroy",value:function(){U.log("destroy"),this.trigger(w.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(W){return W.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(W){return W.destroy()}),this.coreComponents.length=0;var L=this.config;L.xhrSetup=L.fetchSetup=void 0,this.userConfig=null}},{key:"attachMedia",value:function(L){U.log("attachMedia"),this._media=L,this.trigger(w.MEDIA_ATTACHING,{media:L})}},{key:"detachMedia",value:function(){U.log("detachMedia"),this.trigger(w.MEDIA_DETACHING,void 0),this._media=null}},{key:"loadSource",value:function(L){this.stopLoad();var W=this.media,H=this.url,Z=this.url=g.buildAbsoluteURL(self.location.href,L,{alwaysNormalize:!0});U.log("loadSource:".concat(Z)),W&&H&&(H!==Z||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(W)),this.trigger(w.MANIFEST_LOADING,{url:L})}},{key:"startLoad",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;U.log("startLoad(".concat(L,")")),this.networkControllers.forEach(function(W){W.startLoad(L)})}},{key:"stopLoad",value:function(){U.log("stopLoad"),this.networkControllers.forEach(function(L){L.stopLoad()})}},{key:"swapAudioCodec",value:function(){U.log("swapAudioCodec"),this.streamController.swapAudioCodec()}},{key:"recoverMediaError",value:function(){U.log("recoverMediaError");var L=this._media;this.detachMedia(),L&&this.attachMedia(L)}},{key:"removeLevel",value:function(L){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.levelController.removeLevel(L,W)}},{key:"levels",get:function(){var L=this.levelController.levels;return L||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(L){U.log("set currentLevel:".concat(L)),this.loadLevel=L,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(L){U.log("set nextLevel:".concat(L)),this.levelController.manualLevel=L,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(L){U.log("set loadLevel:".concat(L)),this.levelController.manualLevel=L}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(L){this.levelController.nextLoadLevel=L}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(L){U.log("set firstLevel:".concat(L)),this.levelController.firstLevel=L}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(L){U.log("set startLevel:".concat(L)),L!==-1&&(L=Math.max(L,this.minAutoLevel)),this.levelController.startLevel=L}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(L){var W=!!L;W!==this.config.capLevelToPlayerSize&&(W?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=W)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(L){this._autoLevelCapping!==L&&(U.log("set autoLevelCapping:".concat(L)),this._autoLevelCapping=L)}},{key:"bandwidthEstimate",get:function(){var L=this.abrController.bwEstimator;return L?L.getEstimate():NaN}},{key:"ttfbEstimate",get:function(){var L=this.abrController.bwEstimator;return L?L.getEstimateTTFB():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(L){Ot.indexOf(L)>-1&&(this._maxHdcpLevel=L)}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var L=this.levels,W=this.config.minAutoBitrate;if(!L)return 0;for(var H=L.length,Z=0;Z<H;Z++)if(L[Z].maxBitrate>=W)return Z;return 0}},{key:"maxAutoLevel",get:function(){var L=this.levels,W=this.autoLevelCapping,H=this.maxHdcpLevel,Z;if(W===-1&&L&&L.length?Z=L.length-1:Z=W,H)for(var ne=Z;ne--;){var ve=L[ne].attrs["HDCP-LEVEL"];if(ve&&ve<=H)return ne}return Z}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(L){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,L)}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"audioTracks",get:function(){var L=this.audioTrackController;return L?L.audioTracks:[]}},{key:"audioTrack",get:function(){var L=this.audioTrackController;return L?L.audioTrack:-1},set:function(L){var W=this.audioTrackController;W&&(W.audioTrack=L)}},{key:"subtitleTracks",get:function(){var L=this.subtitleTrackController;return L?L.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var L=this.subtitleTrackController;return L?L.subtitleTrack:-1},set:function(L){var W=this.subtitleTrackController;W&&(W.subtitleTrack=L)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var L=this.subtitleTrackController;return L?L.subtitleDisplay:!1},set:function(L){var W=this.subtitleTrackController;W&&(W.subtitleDisplay=L)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(L){this.config.lowLatencyMode=L}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.4.12"}},{key:"isSupported",value:function(){return Qo()}},{key:"Events",get:function(){return w}},{key:"ErrorTypes",get:function(){return O}},{key:"ErrorDetails",get:function(){return I}},{key:"DefaultConfig",get:function(){return Ae.defaultConfig?Ae.defaultConfig:Dl},set:function(L){Ae.defaultConfig=L}}]),Ae}();iu.defaultConfig=void 0},pmaE:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("IwbS"),v=n("DEFe"),m="__seriesMapHighDown",p="__seriesMapCallKey",d=y.extendChartView({type:"map",render:function(i,t,o,e){if(e&&e.type==="mapToggleSelect"&&e.from===this.uid)return;var l=this.group;if(l.removeAll(),i.getHostGeoModel())return;if(e&&e.type==="geoRoam"&&e.componentType==="series"&&e.seriesId===i.id){var r=this._mapDraw;r&&l.add(r.group)}else if(i.needsDrawMap){var r=this._mapDraw||new v(o,!0);l.add(r.group),r.draw(i,t,o,this,e),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;i.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(i,t,o)},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(i,t,o){var e=i.originalData,l=this.group;e.each(e.mapDimension("value"),function(r,a){if(isNaN(r))return;var c=e.getItemLayout(a);if(!c||!c.point)return;var h=c.point,g=c.offset,A=new x.Circle({style:{fill:i.getData().getVisual("color")},shape:{cx:h[0]+g*9,cy:h[1],r:3},silent:!0,z2:8+(g?0:x.Z2_EMPHASIS_LIFT+1)});if(!g){var b=i.mainSeries.getData(),S=e.getName(a),E=b.indexOfName(S),C=e.getItemModel(a),_=C.getModel("label"),T=C.getModel("emphasis.label"),w=b.getItemGraphicEl(E),O=f.retrieve2(i.getFormattedLabel(E,"normal"),S),I=f.retrieve2(i.getFormattedLabel(E,"emphasis"),O),k=w[m],M=Math.random();if(!k){k=w[m]={};var j=f.curry(u,!0),P=f.curry(u,!1);w.on("mouseover",j).on("mouseout",P).on("emphasis",j).on("normal",P)}w[p]=M,f.extend(k,{recordVersion:M,circle:A,labelModel:_,hoverLabelModel:T,emphasisText:I,normalText:O}),s(k,!1)}l.add(A)})}});function u(i){var t=this[m];t&&t.recordVersion===this[p]&&s(t,i)}function s(i,t){var o=i.circle,e=i.labelModel,l=i.hoverLabelModel,r=i.emphasisText,a=i.normalText;t?(o.style.extendFrom(x.setTextStyle({},l,{text:l.get("show")?r:null},{isRectText:!0,useInsideStyle:!1},!0)),o.__mapOriginalZ2=o.z2,o.z2+=x.Z2_EMPHASIS_LIFT):(x.setTextStyle(o.style,e,{text:e.get("show")?a:null,textPosition:e.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),o.dirty(!1),o.__mapOriginalZ2!=null&&(o.z2=o.__mapOriginalZ2,o.__mapOriginalZ2=null))}R.exports=d},pwpV:function(R,D,n){},pzxd:function(R,D,n){var y=n("bYtY"),f=y.retrieve2,x=y.retrieve3,v=y.each,m=y.normalizeCssArray,p=y.isString,d=y.isObject,u=n("6GrX"),s=n("VpOo"),i=n("Xnb7"),t=n("fW2E"),o=n("gut8"),e=o.ContextCachedBy,l=o.WILL_BE_RESTORED,r=u.DEFAULT_FONT,a={left:1,right:1,center:1},c={top:1,bottom:1,middle:1},h=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],g={},A={};function b(V){return S(V),v(V.rich,S),V}function S(V){if(V){V.font=u.makeFont(V);var Q=V.textAlign;Q==="middle"&&(Q="center"),V.textAlign=Q==null||a[Q]?Q:"left";var G=V.textVerticalAlign||V.textBaseline;G==="center"&&(G="middle"),V.textVerticalAlign=G==null||c[G]?G:"top";var te=V.textPadding;te&&(V.textPadding=m(V.textPadding))}}function E(V,Q,G,te,q,se){te.rich?_(V,Q,G,te,q,se):C(V,Q,G,te,q,se)}function C(V,Q,G,te,q,se){"use strict";var re=I(te),xe,Oe=!1,Me=Q.__attrCachedBy===e.PLAIN_TEXT;se!==l?(se&&(xe=se.style,Oe=!re&&Me&&xe),Q.__attrCachedBy=re?e.NONE:e.PLAIN_TEXT):Me&&(Q.__attrCachedBy=e.NONE);var Qe=te.font||r;(!Oe||Qe!==(xe.font||r))&&(Q.font=Qe);var Ve=V.__computedFont;V.__styleFont!==Qe&&(V.__styleFont=Qe,Ve=V.__computedFont=Q.font);var ut=te.textPadding,Fe=te.textLineHeight,ue=V.__textCotentBlock;(!ue||V.__dirtyText)&&(ue=V.__textCotentBlock=u.parsePlainText(G,Ve,ut,Fe,te.truncate));var et=ue.outerHeight,he=ue.lines,J=ue.lineHeight,Y=j(A,V,te,q),$=Y.baseX,de=Y.baseY,be=Y.textAlign||"left",Ce=Y.textVerticalAlign;w(Q,te,q,$,de);var Be=u.adjustTextY(de,et,Ce),fe=$,we=Be;if(re||ut){var Re=u.getWidth(G,Ve),rt=Re;ut&&(rt+=ut[1]+ut[3]);var St=u.adjustTextX($,rt,be);re&&k(V,Q,te,St,Be,rt,et),ut&&(fe=K($,be,ut),we+=ut[0])}Q.textAlign=be,Q.textBaseline="middle",Q.globalAlpha=te.opacity||1;for(var ft=0;ft<h.length;ft++){var He=h[ft],er=He[0],ct=He[1],Kt=te[er];(!Oe||Kt!==xe[er])&&(Q[ct]=t(Q,ct,Kt||He[2]))}we+=J/2;var fr=te.textStrokeWidth,Gt=Oe?xe.textStrokeWidth:null,Pt=!Oe||fr!==Gt,Xt=!Oe||Pt||te.textStroke!==xe.textStroke,Ge=X(te.textStroke,fr),pe=F(te.textFill);if(Ge&&(Pt&&(Q.lineWidth=fr),Xt&&(Q.strokeStyle=Ge)),pe&&((!Oe||te.textFill!==xe.textFill)&&(Q.fillStyle=pe)),he.length===1)Ge&&Q.strokeText(he[0],fe,we),pe&&Q.fillText(he[0],fe,we);else for(var ft=0;ft<he.length;ft++)Ge&&Q.strokeText(he[ft],fe,we),pe&&Q.fillText(he[ft],fe,we),we+=J}function _(V,Q,G,te,q,se){se!==l&&(Q.__attrCachedBy=e.NONE);var re=V.__textCotentBlock;(!re||V.__dirtyText)&&(re=V.__textCotentBlock=u.parseRichText(G,te)),T(V,Q,re,te,q)}function T(V,Q,G,te,q){var se=G.width,re=G.outerWidth,xe=G.outerHeight,Oe=te.textPadding,Me=j(A,V,te,q),Qe=Me.baseX,Ve=Me.baseY,ut=Me.textAlign,Fe=Me.textVerticalAlign;w(Q,te,q,Qe,Ve);var ue=u.adjustTextX(Qe,re,ut),et=u.adjustTextY(Ve,xe,Fe),he=ue,J=et;Oe&&(he+=Oe[3],J+=Oe[0]);var Y=he+se;I(te)&&k(V,Q,te,ue,et,re,xe);for(var $=0;$<G.lines.length;$++){for(var de=G.lines[$],be=de.tokens,Ce=be.length,Be=de.lineHeight,fe=de.width,we=0,Re=he,rt=Y,St=Ce-1,ft;we<Ce&&(ft=be[we],!ft.textAlign||ft.textAlign==="left");)O(V,Q,ft,te,Be,J,Re,"left"),fe-=ft.width,Re+=ft.width,we++;for(;St>=0&&(ft=be[St],ft.textAlign==="right");)O(V,Q,ft,te,Be,J,rt,"right"),fe-=ft.width,rt-=ft.width,St--;for(Re+=(se-(Re-he)-(Y-rt)-fe)/2;we<=St;)ft=be[we],O(V,Q,ft,te,Be,J,Re+ft.width/2,"center"),Re+=ft.width,we++;J+=Be}}function w(V,Q,G,te,q){if(G&&Q.textRotation){var se=Q.textOrigin;se==="center"?(te=G.width/2+G.x,q=G.height/2+G.y):se&&(te=se[0]+G.x,q=se[1]+G.y),V.translate(te,q),V.rotate(-Q.textRotation),V.translate(-te,-q)}}function O(V,Q,G,te,q,se,re,xe){var Oe=te.rich[G.styleName]||{};Oe.text=G.text;var Me=G.textVerticalAlign,Qe=se+q/2;Me==="top"?Qe=se+G.height/2:Me==="bottom"&&(Qe=se+q-G.height/2),!G.isLineHolder&&I(Oe)&&k(V,Q,Oe,xe==="right"?re-G.width:xe==="center"?re-G.width/2:re,Qe-G.height/2,G.width,G.height);var Ve=G.textPadding;Ve&&(re=K(re,xe,Ve),Qe-=G.height/2-Ve[2]-G.textHeight/2),P(Q,"shadowBlur",x(Oe.textShadowBlur,te.textShadowBlur,0)),P(Q,"shadowColor",Oe.textShadowColor||te.textShadowColor||"transparent"),P(Q,"shadowOffsetX",x(Oe.textShadowOffsetX,te.textShadowOffsetX,0)),P(Q,"shadowOffsetY",x(Oe.textShadowOffsetY,te.textShadowOffsetY,0)),P(Q,"textAlign",xe),P(Q,"textBaseline","middle"),P(Q,"font",G.font||r);var ut=X(Oe.textStroke||te.textStroke,ue),Fe=F(Oe.textFill||te.textFill),ue=f(Oe.textStrokeWidth,te.textStrokeWidth);ut&&(P(Q,"lineWidth",ue),P(Q,"strokeStyle",ut),Q.strokeText(G.text,re,Qe)),Fe&&(P(Q,"fillStyle",Fe),Q.fillText(G.text,re,Qe))}function I(V){return!!(V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor)}function k(V,Q,G,te,q,se,re){var xe=G.textBackgroundColor,Oe=G.textBorderWidth,Me=G.textBorderColor,Qe=p(xe);if(P(Q,"shadowBlur",G.textBoxShadowBlur||0),P(Q,"shadowColor",G.textBoxShadowColor||"transparent"),P(Q,"shadowOffsetX",G.textBoxShadowOffsetX||0),P(Q,"shadowOffsetY",G.textBoxShadowOffsetY||0),Qe||Oe&&Me){Q.beginPath();var Ve=G.textBorderRadius;Ve?s.buildPath(Q,{x:te,y:q,width:se,height:re,r:Ve}):Q.rect(te,q,se,re),Q.closePath()}if(Qe)if(P(Q,"fillStyle",xe),G.fillOpacity!=null){var ut=Q.globalAlpha;Q.globalAlpha=G.fillOpacity*G.opacity,Q.fill(),Q.globalAlpha=ut}else Q.fill();else if(d(xe)){var Fe=xe.image;Fe=i.createOrUpdateImage(Fe,null,V,M,xe),Fe&&i.isImageReady(Fe)&&Q.drawImage(Fe,te,q,se,re)}if(Oe&&Me)if(P(Q,"lineWidth",Oe),P(Q,"strokeStyle",Me),G.strokeOpacity!=null){var ut=Q.globalAlpha;Q.globalAlpha=G.strokeOpacity*G.opacity,Q.stroke(),Q.globalAlpha=ut}else Q.stroke()}function M(V,Q){Q.image=V}function j(V,Q,G,te){var q=G.x||0,se=G.y||0,re=G.textAlign,xe=G.textVerticalAlign;if(te){var Oe=G.textPosition;if(Oe instanceof Array)q=te.x+U(Oe[0],te.width),se=te.y+U(Oe[1],te.height);else{var Me=Q&&Q.calculateTextPosition?Q.calculateTextPosition(g,G,te):u.calculateTextPosition(g,G,te);q=Me.x,se=Me.y,re=re||Me.textAlign,xe=xe||Me.textVerticalAlign}var Qe=G.textOffset;Qe&&(q+=Qe[0],se+=Qe[1])}return V=V||{},V.baseX=q,V.baseY=se,V.textAlign=re,V.textVerticalAlign=xe,V}function P(V,Q,G){return V[Q]=t(V,Q,G),V[Q]}function X(V,Q){return V==null||Q<=0||V==="transparent"||V==="none"?null:V.image||V.colorStops?"#000":V}function F(V){return V==null||V==="none"?null:V.image||V.colorStops?"#000":V}function U(V,Q){return typeof V=="string"?V.lastIndexOf("%")>=0?parseFloat(V)/100*Q:parseFloat(V):V}function K(V,Q,G){return Q==="right"?V-G[1]:Q==="center"?V+G[3]/2-G[1]/2:V+G[3]}function z(V,Q){return V!=null&&(V||Q.textBackgroundColor||Q.textBorderWidth&&Q.textBorderColor||Q.textPadding)}D.normalizeTextStyle=b,D.renderText=E,D.getBoxPosition=j,D.getStroke=X,D.getFill=F,D.parsePercent=U,D.needDrawText=z},"q/+u":function(R,D,n){var y=n("ProS"),f=n("9wZj"),x=n("yWXo"),v=n("h8O9");y.extendChartView({type:"scatter",render:function(m,p,d){var u=m.getData(),s=this._updateSymbolDraw(u,m);s.updateData(u,{clipShape:this._getClipShape(m)}),this._finished=!0},incrementalPrepareRender:function(m,p,d){var u=m.getData(),s=this._updateSymbolDraw(u,m);s.incrementalPrepareUpdate(u),this._finished=!1},incrementalRender:function(m,p,d){this._symbolDraw.incrementalUpdate(m,p.getData(),{clipShape:this._getClipShape(p)}),this._finished=m.end===p.getData().count()},updateTransform:function(m,p,d){var u=m.getData();if(this.group.dirty(),!this._finished||u.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var s=v().reset(m);s.progress&&s.progress({start:0,end:u.count()},u),this._symbolDraw.updateLayout(u)},_getClipShape:function(m){var p=m.coordinateSystem,d=p&&p.getArea&&p.getArea();return m.get("clip",!0)?d:null},_updateSymbolDraw:function(m,p){var d=this._symbolDraw,u=p.pipelineContext,s=u.large;return(!d||s!==this._isLargeDraw)&&(d&&d.remove(),d=this._symbolDraw=s?new x:new f,this._isLargeDraw=s,this.group.removeAll()),this.group.add(d.group),d},remove:function(m,p){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},q3GZ:function(R,D){var n=["lineStyle","normal","opacity"],y={seriesType:"parallel",reset:function(f,x,v){var m=f.getModel("itemStyle"),p=f.getModel("lineStyle"),d=x.get("color"),u=p.get("color")||m.get("color")||d[f.seriesIndex%d.length],s=f.get("inactiveOpacity"),i=f.get("activeOpacity"),t=f.getModel("lineStyle").getLineStyle(),o=f.coordinateSystem,e=f.getData(),l={normal:t.opacity,active:i,inactive:s};e.setVisual("color",u);function r(a,c){o.eachActiveState(c,function(h,g){var A=l[h];if(h==="normal"&&c.hasItemOption){var b=c.getItemModel(g).get(n,!0);b!=null&&(A=b)}c.setItemVisual(g,"opacity",A)},a.start,a.end)}return{progress:r}}};R.exports=y},q4HE:function(R,D){var n="\\ud800-\\udfff",y="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",x="\\u20d0-\\u20ff",v=y+f+x,m="\\ufe0e\\ufe0f",p="["+n+"]",d="["+v+"]",u="\\ud83c[\\udffb-\\udfff]",s="(?:"+d+"|"+u+")",i="[^"+n+"]",t="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",l=s+"?",r="["+m+"]?",a="(?:"+e+"(?:"+[i,t,o].join("|")+")"+r+l+")*",c=r+l+a,h="(?:"+[i+d+"?",d,t,o,p].join("|")+")",g=RegExp(u+"(?="+u+")|"+h+c,"g");function A(b){for(var S=g.lastIndex=0;g.test(b);)++S;return S}R.exports=A},q7KB:function(R,D,n){},qBft:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.AnsiX923={pad:function(x,v){var m=x.sigBytes,p=v*4,d=p-m%p,u=m+d-1;x.clamp(),x.words[u>>>2]|=d<<24-u%4*8,x.sigBytes+=d},unpad:function(x){var v=x.words[x.sigBytes-1>>>2]&255;x.sigBytes-=v}},y.pad.Ansix923})},qH13:function(R,D,n){var y=n("ItGF"),f=n("QBsz"),x=f.applyTransform,v=n("mFDi"),m=n("Qe9p"),p=n("6GrX"),d=n("pzxd"),u=n("ni6a"),s=n("Gev7"),i=n("Dagg"),t=n("dqUG"),o=n("y+Vt"),e=n("IMiH"),l=n("QuXc"),r=n("06Qe"),a=e.CMD,c=Math.round,h=Math.sqrt,g=Math.abs,A=Math.cos,b=Math.sin,S=Math.max;if(!y.canvasSupported){var E=",",C="progid:DXImageTransform.Microsoft",_=21600,T=_/2,w=1e5,O=1e3,I=function(de){de.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",de.coordsize=_+","+_,de.coordorigin="0,0"},k=function(de){return String(de).replace(/&/g,"&").replace(/"/g,""")},M=function(de,be,Ce){return"rgb("+[de,be,Ce].join(",")+")"},j=function(de,be){be&&de&&be.parentNode!==de&&de.appendChild(be)},P=function(de,be){be&&de&&be.parentNode===de&&de.removeChild(be)},X=function(de,be,Ce){return(parseFloat(de)||0)*w+(parseFloat(be)||0)*O+Ce},F=d.parsePercent,U=function(de,be,Ce){var Be=m.parse(be);Ce=+Ce,isNaN(Ce)&&(Ce=1),Be&&(de.color=M(Be[0],Be[1],Be[2]),de.opacity=Ce*Be[3])},K=function(de){var be=m.parse(de);return[M(be[0],be[1],be[2]),be[3]]},z=function(de,be,Ce){var Be=be.fill;if(Be!=null)if(Be instanceof l){var fe,we=0,Re=[0,0],rt=0,St=1,ft=Ce.getBoundingRect(),He=ft.width,er=ft.height;if(Be.type==="linear"){fe="gradient";var ct=Ce.transform,Kt=[Be.x*He,Be.y*er],fr=[Be.x2*He,Be.y2*er];ct&&(x(Kt,Kt,ct),x(fr,fr,ct));var Gt=fr[0]-Kt[0],Pt=fr[1]-Kt[1];we=Math.atan2(Gt,Pt)*180/Math.PI,we<0&&(we+=360),we<1e-6&&(we=0)}else{fe="gradientradial";var Kt=[Be.x*He,Be.y*er],ct=Ce.transform,Xt=Ce.scale,Ge=He,pe=er;Re=[(Kt[0]-ft.x)/Ge,(Kt[1]-ft.y)/pe],ct&&x(Kt,Kt,ct),Ge/=Xt[0]*_,pe/=Xt[1]*_;var oe=S(Ge,pe);rt=2*0/oe,St=2*Be.r/oe-rt}var lt=Be.colorStops.slice();lt.sort(function(Jt,pt){return Jt.offset-pt.offset});for(var qe=lt.length,ge=[],Ht=[],vr=0;vr<qe;vr++){var At=lt[vr],ir=K(At.color);Ht.push(At.offset*St+rt+" "+ir[0]),(vr===0||vr===qe-1)&&ge.push(ir)}if(qe>=2){var lr=ge[0][0],dn=ge[1][0],Ft=ge[0][1]*be.opacity,ur=ge[1][1]*be.opacity;de.type=fe,de.method="none",de.focus="100%",de.angle=we,de.color=lr,de.color2=dn,de.colors=Ht.join(","),de.opacity=ur,de.opacity2=Ft}fe==="radial"&&(de.focusposition=Re.join(","))}else U(de,Be,be.opacity)},V=function(de,be){be.lineDash&&(de.dashstyle=be.lineDash.join(" ")),be.stroke!=null&&!(be.stroke instanceof l)&&U(de,be.stroke,be.opacity)},Q=function(de,be,Ce,Be){var fe=be==="fill",we=de.getElementsByTagName(be)[0];Ce[be]!=null&&Ce[be]!=="none"&&(fe||!fe&&Ce.lineWidth)?(de[fe?"filled":"stroked"]="true",Ce[be]instanceof l&&P(de,we),we||(we=r.createNode(be)),fe?z(we,Ce,Be):V(we,Ce),j(de,we)):(de[fe?"filled":"stroked"]="false",P(de,we))},G=[[],[],[]],te=function(de,be){var Ce=a.M,Be=a.C,fe=a.L,we=a.A,Re=a.Q,rt=[],St,ft,He,er,ct,Kt,fr=de.data,Gt=de.len();for(er=0;er<Gt;){He=fr[er++],ft="",St=0;switch(He){case Ce:ft=" m ",St=1,ct=fr[er++],Kt=fr[er++],G[0][0]=ct,G[0][1]=Kt;break;case fe:ft=" l ",St=1,ct=fr[er++],Kt=fr[er++],G[0][0]=ct,G[0][1]=Kt;break;case Re:case Be:ft=" c ",St=3;var Pt=fr[er++],Xt=fr[er++],Ge=fr[er++],pe=fr[er++],oe,lt;He===Re?(oe=Ge,lt=pe,Ge=(Ge+2*Pt)/3,pe=(pe+2*Xt)/3,Pt=(ct+2*Pt)/3,Xt=(Kt+2*Xt)/3):(oe=fr[er++],lt=fr[er++]),G[0][0]=Pt,G[0][1]=Xt,G[1][0]=Ge,G[1][1]=pe,G[2][0]=oe,G[2][1]=lt,ct=oe,Kt=lt;break;case we:var qe=0,ge=0,Ht=1,vr=1,At=0;be&&(qe=be[4],ge=be[5],Ht=h(be[0]*be[0]+be[1]*be[1]),vr=h(be[2]*be[2]+be[3]*be[3]),At=Math.atan2(-be[1]/vr,be[0]/Ht));var ir=fr[er++],lr=fr[er++],dn=fr[er++],Ft=fr[er++],ur=fr[er++]+At,Jt=fr[er++]+ur+At;er++;var pt=fr[er++],at=ir+A(ur)*dn,Pr=lr+b(ur)*Ft,Pt=ir+A(Jt)*dn,Xt=lr+b(Jt)*Ft,un=pt?" wa ":" at ";Math.abs(at-Pt)<1e-4&&(Math.abs(Jt-ur)>.01?pt&&(at+=270/_):Math.abs(Pr-lr)<1e-4?pt&&at<ir||!pt&&at>ir?Xt-=270/_:Xt+=270/_:pt&&Pr<lr||!pt&&Pr>lr?Pt+=270/_:Pt-=270/_),rt.push(un,c(((ir-dn)*Ht+qe)*_-T),E,c(((lr-Ft)*vr+ge)*_-T),E,c(((ir+dn)*Ht+qe)*_-T),E,c(((lr+Ft)*vr+ge)*_-T),E,c((at*Ht+qe)*_-T),E,c((Pr*vr+ge)*_-T),E,c((Pt*Ht+qe)*_-T),E,c((Xt*vr+ge)*_-T)),ct=Pt,Kt=Xt;break;case a.R:var _n=G[0],Xn=G[1];_n[0]=fr[er++],_n[1]=fr[er++],Xn[0]=_n[0]+fr[er++],Xn[1]=_n[1]+fr[er++],be&&(x(_n,_n,be),x(Xn,Xn,be)),_n[0]=c(_n[0]*_-T),Xn[0]=c(Xn[0]*_-T),_n[1]=c(_n[1]*_-T),Xn[1]=c(Xn[1]*_-T),rt.push(" m ",_n[0],E,_n[1]," l ",Xn[0],E,_n[1]," l ",Xn[0],E,Xn[1]," l ",_n[0],E,Xn[1]);break;case a.Z:rt.push(" x ")}if(St>0){rt.push(ft);for(var xi=0;xi<St;xi++){var Pn=G[xi];be&&x(Pn,Pn,be),rt.push(c(Pn[0]*_-T),E,c(Pn[1]*_-T),xi<St-1?E:"")}}}return rt.join("")};o.prototype.brushVML=function($){var de=this.style,be=this._vmlEl;be||(be=r.createNode("shape"),I(be),this._vmlEl=be),Q(be,"fill",de,this),Q(be,"stroke",de,this);var Ce=this.transform,Be=Ce!=null,fe=be.getElementsByTagName("stroke")[0];if(fe){var we=de.lineWidth;if(Be&&!de.strokeNoScale){var Re=Ce[0]*Ce[3]-Ce[1]*Ce[2];we*=h(g(Re))}fe.weight=we+"px"}var rt=this.path||(this.path=new e);this.__dirtyPath&&(rt.beginPath(),rt.subPixelOptimize=!1,this.buildPath(rt,this.shape),rt.toStatic(),this.__dirtyPath=!1),be.path=te(rt,this.transform),be.style.zIndex=X(this.zlevel,this.z,this.z2),j($,be),de.text!=null?this.drawRectText($,this.getBoundingRect()):this.removeRectText($)},o.prototype.onRemove=function($){P($,this._vmlEl),this.removeRectText($)},o.prototype.onAdd=function($){j($,this._vmlEl),this.appendRectText($)};var q=function(de){return typeof de=="object"&&de.tagName&&de.tagName.toUpperCase()==="IMG"};i.prototype.brushVML=function($){var de=this.style,be=de.image,Ce,Be;if(q(be)){var fe=be.src;if(fe===this._imageSrc)Ce=this._imageWidth,Be=this._imageHeight;else{var we=be.runtimeStyle,Re=we.width,rt=we.height;we.width="auto",we.height="auto",Ce=be.width,Be=be.height,we.width=Re,we.height=rt,this._imageSrc=fe,this._imageWidth=Ce,this._imageHeight=Be}be=fe}else be===this._imageSrc&&(Ce=this._imageWidth,Be=this._imageHeight);if(!be)return;var St=de.x||0,ft=de.y||0,He=de.width,er=de.height,ct=de.sWidth,Kt=de.sHeight,fr=de.sx||0,Gt=de.sy||0,Pt=ct&&Kt,Xt=this._vmlEl;Xt||(Xt=r.doc.createElement("div"),I(Xt),this._vmlEl=Xt);var Ge=Xt.style,pe=!1,oe,lt=1,qe=1;if(this.transform&&(oe=this.transform,lt=h(oe[0]*oe[0]+oe[1]*oe[1]),qe=h(oe[2]*oe[2]+oe[3]*oe[3]),pe=oe[1]||oe[2]),pe){var ge=[St,ft],Ht=[St+He,ft],vr=[St,ft+er],At=[St+He,ft+er];x(ge,ge,oe),x(Ht,Ht,oe),x(vr,vr,oe),x(At,At,oe);var ir=S(ge[0],Ht[0],vr[0],At[0]),lr=S(ge[1],Ht[1],vr[1],At[1]),dn=[];dn.push("M11=",oe[0]/lt,E,"M12=",oe[2]/qe,E,"M21=",oe[1]/lt,E,"M22=",oe[3]/qe,E,"Dx=",c(St*lt+oe[4]),E,"Dy=",c(ft*qe+oe[5])),Ge.padding="0 "+c(ir)+"px "+c(lr)+"px 0",Ge.filter=C+".Matrix("+dn.join("")+", SizingMethod=clip)"}else oe&&(St=St*lt+oe[4],ft=ft*qe+oe[5]),Ge.filter="",Ge.left=c(St)+"px",Ge.top=c(ft)+"px";var Ft=this._imageEl,ur=this._cropEl;Ft||(Ft=r.doc.createElement("div"),this._imageEl=Ft);var Jt=Ft.style;if(Pt){if(Ce&&Be)Jt.width=c(lt*Ce*He/ct)+"px",Jt.height=c(qe*Be*er/Kt)+"px";else{var pt=new Image,at=this;pt.onload=function(){pt.onload=null,Ce=pt.width,Be=pt.height,Jt.width=c(lt*Ce*He/ct)+"px",Jt.height=c(qe*Be*er/Kt)+"px",at._imageWidth=Ce,at._imageHeight=Be,at._imageSrc=be},pt.src=be}ur||(ur=r.doc.createElement("div"),ur.style.overflow="hidden",this._cropEl=ur);var Pr=ur.style;Pr.width=c((He+fr*He/ct)*lt),Pr.height=c((er+Gt*er/Kt)*qe),Pr.filter=C+".Matrix(Dx="+-fr*He/ct*lt+",Dy="+-Gt*er/Kt*qe+")",ur.parentNode||Xt.appendChild(ur),Ft.parentNode!==ur&&ur.appendChild(Ft)}else Jt.width=c(lt*He)+"px",Jt.height=c(qe*er)+"px",Xt.appendChild(Ft),ur&&ur.parentNode&&(Xt.removeChild(ur),this._cropEl=null);var un="",_n=de.opacity;_n<1&&(un+=".Alpha(opacity="+c(_n*100)+") "),un+=C+".AlphaImageLoader(src="+be+", SizingMethod=scale)",Jt.filter=un,Xt.style.zIndex=X(this.zlevel,this.z,this.z2),j($,Xt),de.text!=null&&this.drawRectText($,this.getBoundingRect())},i.prototype.onRemove=function($){P($,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText($)},i.prototype.onAdd=function($){j($,this._vmlEl),this.appendRectText($)};var se="normal",re={},xe=0,Oe=100,Me=document.createElement("div"),Qe=function(de){var be=re[de];if(!be){xe>Oe&&(xe=0,re={});var Ce=Me.style,Be;try{Ce.font=de,Be=Ce.fontFamily.split(",")[0]}catch(fe){}be={style:Ce.fontStyle||se,variant:Ce.fontVariant||se,weight:Ce.fontWeight||se,size:parseFloat(Ce.fontSize||12)|0,family:Be||"Microsoft YaHei"},re[de]=be,xe++}return be},Ve;p.$override("measureText",function($,de){var be=r.doc;Ve||(Ve=be.createElement("div"),Ve.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",r.doc.body.appendChild(Ve));try{Ve.style.font=de}catch(Ce){}return Ve.innerHTML="",Ve.appendChild(be.createTextNode($)),{width:Ve.offsetWidth}});for(var ut=new v,Fe=function(de,be,Ce,Be){var fe=this.style;this.__dirty&&d.normalizeTextStyle(fe,!0);var we=fe.text;if(we!=null&&(we+=""),!we)return;if(fe.rich){var Re=p.parseRichText(we,fe);we=[];for(var rt=0;rt<Re.lines.length;rt++){for(var St=Re.lines[rt].tokens,ft=[],He=0;He<St.length;He++)ft.push(St[He].text);we.push(ft.join(""))}we=we.join(`
|
|
|
`)}var er,ct,Kt=fe.textAlign,fr=fe.textVerticalAlign,Gt=Qe(fe.font),Pt=Gt.style+" "+Gt.variant+" "+Gt.weight+" "+Gt.size+'px "'+Gt.family+'"';Ce=Ce||p.getBoundingRect(we,Pt,Kt,fr,fe.textPadding,fe.textLineHeight);var Xt=this.transform;if(Xt&&!Be&&(ut.copy(be),ut.applyTransform(Xt),be=ut),Be)er=be.x,ct=be.y;else{var Ge=fe.textPosition;if(Ge instanceof Array)er=be.x+F(Ge[0],be.width),ct=be.y+F(Ge[1],be.height),Kt=Kt||"left";else{var pe=this.calculateTextPosition?this.calculateTextPosition({},fe,be):p.calculateTextPosition({},fe,be);er=pe.x,ct=pe.y,Kt=Kt||pe.textAlign,fr=fr||pe.textVerticalAlign}}er=p.adjustTextX(er,Ce.width,Kt),ct=p.adjustTextY(ct,Ce.height,fr),ct+=Ce.height/2;var oe=r.createNode,lt=this._textVmlEl,qe,ge,Ht;lt?(Ht=lt.firstChild,qe=Ht.nextSibling,ge=qe.nextSibling):(lt=oe("line"),qe=oe("path"),ge=oe("textpath"),Ht=oe("skew"),ge.style["v-text-align"]="left",I(lt),qe.textpathok=!0,ge.on=!0,lt.from="0 0",lt.to="1000 0.05",j(lt,Ht),j(lt,qe),j(lt,ge),this._textVmlEl=lt);var vr=[er,ct],At=lt.style;Xt&&Be?(x(vr,vr,Xt),Ht.on=!0,Ht.matrix=Xt[0].toFixed(3)+E+Xt[2].toFixed(3)+E+Xt[1].toFixed(3)+E+Xt[3].toFixed(3)+",0,0",Ht.offset=(c(vr[0])||0)+","+(c(vr[1])||0),Ht.origin="0 0",At.left="0px",At.top="0px"):(Ht.on=!1,At.left=c(er)+"px",At.top=c(ct)+"px"),ge.string=k(we);try{ge.style.font=Pt}catch(ir){}Q(lt,"fill",{fill:fe.textFill,opacity:fe.opacity},this),Q(lt,"stroke",{stroke:fe.textStroke,opacity:fe.opacity,lineDash:fe.lineDash||null},this),lt.style.zIndex=X(this.zlevel,this.z,this.z2),j(de,lt)},ue=function(de){P(de,this._textVmlEl),this._textVmlEl=null},et=function(de){j(de,this._textVmlEl)},he=[u,s,i,o,t],J=0;J<he.length;J++){var Y=he[J].prototype;Y.drawRectText=Fe,Y.removeRectText=ue,Y.appendRectText=et}t.prototype.brushVML=function($){var de=this.style;de.text!=null?this.drawRectText($,{x:de.x||0,y:de.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText($)},t.prototype.onRemove=function($){this.removeRectText($)},t.prototype.onAdd=function($){this.appendRectText($)}}},qJCg:function(R,D,n){var y=n("BlVb"),f=n("mFDi"),x=n("IwbS"),v=x.linePolygonIntersect,m={lineX:p(0),lineY:p(1),rect:{point:function(s,i,t){return s&&t.boundingRect.contain(s[0],s[1])},rect:function(s,i,t){return s&&t.boundingRect.intersect(s)}},polygon:{point:function(s,i,t){return s&&t.boundingRect.contain(s[0],s[1])&&y.contain(t.range,s[0],s[1])},rect:function(s,i,t){var o=t.range;if(!s||o.length<=1)return!1;var e=s.x,l=s.y,r=s.width,a=s.height,c=o[0];if(y.contain(o,e,l)||y.contain(o,e+r,l)||y.contain(o,e,l+a)||y.contain(o,e+r,l+a)||f.create(s).contain(c[0],c[1])||v(e,l,e+r,l,o)||v(e,l,e,l+a,o)||v(e+r,l,e+r,l+a,o)||v(e,l+a,e+r,l+a,o))return!0}}};function p(s){var i=["x","y"],t=["width","height"];return{point:function(o,e,l){if(o){var r=l.range,a=o[s];return d(a,r)}},rect:function(o,e,l){if(o){var r=l.range,a=[o[i[s]],o[i[s]]+o[t[s]]];return a[1]<a[0]&&a.reverse(),d(a[0],r)||d(a[1],r)||d(r[0],a)||d(r[1],a)}}}}function d(s,i){return i[0]<=s&&s<=i[1]}var u=m;R.exports=u},qM6L:function(R,D,n){(function(y,f){R.exports=D=f(n("Ib8C"))})(this,function(y){return function(){var f=y,x=f.lib,v=x.WordArray,m=f.enc,p=m.Utf16=m.Utf16BE={stringify:function(s){for(var i=s.words,t=s.sigBytes,o=[],e=0;e<t;e+=2){var l=i[e>>>2]>>>16-e%4*8&65535;o.push(String.fromCharCode(l))}return o.join("")},parse:function(s){for(var i=s.length,t=[],o=0;o<i;o++)t[o>>>1]|=s.charCodeAt(o)<<16-o%2*16;return v.create(t,i*2)}};m.Utf16LE={stringify:function(s){for(var i=s.words,t=s.sigBytes,o=[],e=0;e<t;e+=2){var l=d(i[e>>>2]>>>16-e%4*8&65535);o.push(String.fromCharCode(l))}return o.join("")},parse:function(s){for(var i=s.length,t=[],o=0;o<i;o++)t[o>>>1]|=d(s.charCodeAt(o)<<16-o%2*16);return v.create(t,i*2)}};function d(u){return u<<8&4278255360|u>>>8&16711935}}(),y.enc.Utf16})},qMZE:function(R,D,n){var y=n("JEkh"),f=y.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});R.exports=f},qOx5:function(R,D,n){"use strict";n.d(D,"a",function(){return p});var y=n("Kwbf");function f(d,u){var s=new Set;return d.forEach(function(i){u.has(i)||s.add(i)}),s}function x(d){var u=d||{},s=u.disabled,i=u.disableCheckbox,t=u.checkable;return!!(s||i)||t===!1}function v(d,u,s,i){for(var t=new Set(d),o=new Set,e=0;e<=s;e+=1){var l=u.get(e)||new Set;l.forEach(function(h){var g=h.key,A=h.node,b=h.children,S=b===void 0?[]:b;t.has(g)&&!i(A)&&S.filter(function(E){return!i(E.node)}).forEach(function(E){t.add(E.key)})})}for(var r=new Set,a=s;a>=0;a-=1){var c=u.get(a)||new Set;c.forEach(function(h){var g=h.parent,A=h.node;if(i(A)||!h.parent||r.has(h.parent.key))return;if(i(h.parent.node)){r.add(g.key);return}var b=!0,S=!1;(g.children||[]).filter(function(E){return!i(E.node)}).forEach(function(E){var C=E.key,_=t.has(C);b&&!_&&(b=!1),!S&&(_||o.has(C))&&(S=!0)}),b&&t.add(g.key),S&&o.add(g.key),r.add(g.key)})}return{checkedKeys:Array.from(t),halfCheckedKeys:Array.from(f(o,t))}}function m(d,u,s,i,t){for(var o=new Set(d),e=new Set(u),l=0;l<=i;l+=1){var r=s.get(l)||new Set;r.forEach(function(g){var A=g.key,b=g.node,S=g.children,E=S===void 0?[]:S;!o.has(A)&&!e.has(A)&&!t(b)&&E.filter(function(C){return!t(C.node)}).forEach(function(C){o.delete(C.key)})})}e=new Set;for(var a=new Set,c=i;c>=0;c-=1){var h=s.get(c)||new Set;h.forEach(function(g){var A=g.parent,b=g.node;if(t(b)||!g.parent||a.has(g.parent.key))return;if(t(g.parent.node)){a.add(A.key);return}var S=!0,E=!1;(A.children||[]).filter(function(C){return!t(C.node)}).forEach(function(C){var _=C.key,T=o.has(_);S&&!T&&(S=!1),!E&&(T||e.has(_))&&(E=!0)}),S||o.delete(A.key),E&&e.add(A.key),a.add(A.key)})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(f(e,o))}}function p(d,u,s,i){var t=[],o;i?o=i:o=x;var e=new Set(d.filter(function(c){var h=!!s[c];return h||t.push(c),h})),l=new Map,r=0;Object.keys(s).forEach(function(c){var h=s[c],g=h.level,A=l.get(g);A||(A=new Set,l.set(g,A)),A.add(h),r=Math.max(r,g)}),Object(y.a)(!t.length,"Tree missing follow keys: ".concat(t.slice(0,100).map(function(c){return"'".concat(c,"'")}).join(", ")));var a;return u===!0?a=v(e,l,r,o):a=m(e,u.halfCheckedKeys,l,r,o),a}},qPY4:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("u4NN"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},qWUW:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("DL4k")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="CaretDownOutlined";var i=v.forwardRef(s);D.default=i},qWt2:function(R,D,n){var y=n("ProS"),f=y.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});R.exports=f},qZFw:function(R,D,n){var y=n("bYtY"),f=n("6GrX"),x=n("hM6l"),v=n("4NO4"),m=v.makeInner,p=m();function d(s,i){i=i||[0,360],x.call(this,"angle",s,i),this.type="category"}d.prototype={constructor:d,pointToData:function(s,i){return this.polar.pointToData(s,i)[this.dim==="radius"?0:1]},dataToAngle:x.prototype.dataToCoord,angleToData:x.prototype.coordToData,calculateCategoryInterval:function(){var s=this,i=s.getLabelModel(),t=s.scale,o=t.getExtent(),e=t.count();if(o[1]-o[0]<1)return 0;var l=o[0],r=s.dataToCoord(l+1)-s.dataToCoord(l),a=Math.abs(r),c=f.getBoundingRect(l,i.getFont(),"center","top"),h=Math.max(c.height,7),g=h/a;isNaN(g)&&(g=Infinity);var A=Math.max(0,Math.floor(g)),b=p(s.model),S=b.lastAutoInterval,E=b.lastTickCount;return S!=null&&E!=null&&Math.abs(S-A)<=1&&Math.abs(E-e)<=1&&S>A?A=S:(b.lastTickCount=e,b.lastAutoInterval=A),A}},y.inherits(d,x);var u=d;R.exports=u},qZTm:function(R,D,n){var y=n("fR/l"),f=n("MvSz"),x=n("7GkX");function v(m){return y(m,x,f)}R.exports=v},qgGe:function(R,D,n){var y=n("bYtY"),f=n("T4UG"),x=n("Bsck"),v=n("VaxA"),m=v.wrapTreePathInfo,p=f.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(u,s){var i={name:u.name,children:u.data};d(i);var t=u.levels||[],o={};return o.levels=t,x.createTree(i,this,o).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(u){var s=f.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(u);return s.treePathInfo=m(i,this),s},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(u){u?this._viewRoot=u:u=this._viewRoot;var s=this.getRawData().tree.root;(!u||u!==s&&!s.contains(u))&&(this._viewRoot=s)}});function d(u){var s=0;y.each(u.children,function(t){d(t);var o=t.value;y.isArray(o)&&(o=o[0]),s+=o});var i=u.value;y.isArray(i)&&(i=i[0]),(i==null||isNaN(i))&&(i=s),i<0&&(i=0),y.isArray(u.value)?u.value[0]=i:u.value=i}R.exports=p},qj72:function(R,D,n){var y=n("bYtY");function f(v,m){return m=m||[0,0],y.map(["x","y"],function(p,d){var u=this.getAxis(p),s=m[d],i=v[d]/2;return u.type==="category"?u.getBandWidth():Math.abs(u.dataToCoord(s-i)-u.dataToCoord(s+i))},this)}function x(v){var m=v.grid.getRect();return{coordSys:{type:"cartesian2d",x:m.x,y:m.y,width:m.width,height:m.height},api:{coord:function(p){return v.dataToPoint(p)},size:y.bind(f,v)}}}R.exports=x},"qt/9":function(R,D,n){var y=n("ProS"),f=n("bYtY");n("Wqna"),n("1tlw"),n("Mylv");var x=n("nVfU"),v=x.layout,m=n("f5Yq");n("Ae16"),y.registerLayout(f.curry(v,"pictorialBar")),y.registerVisual(m("pictorialBar","roundRect"))},qu8F:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("OLod"))})(this,function(y){/** @preserve
|
|
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
|
* derived from CryptoJS.mode.CTR
|
|
|
* Jan Hruby jhruby.web@gmail.com
|
|
|
*/return y.mode.CTRGladman=function(){var f=y.lib.BlockCipherMode.extend();function x(p){if((p>>24&255)===255){var d=p>>16&255,u=p>>8&255,s=p&255;d===255?(d=0,u===255?(u=0,s===255?s=0:++s):++u):++d,p=0,p+=d<<16,p+=u<<8,p+=s}else p+=1<<24;return p}function v(p){return(p[0]=x(p[0]))===0&&(p[1]=x(p[1])),p}var m=f.Encryptor=f.extend({processBlock:function(d,u){var s=this._cipher,i=s.blockSize,t=this._iv,o=this._counter;t&&(o=this._counter=t.slice(0),this._iv=void 0),v(o);var e=o.slice(0);s.encryptBlock(e,0);for(var l=0;l<i;l++)d[u+l]^=e[l]}});return f.Decryptor=m,f}(),y.mode.CTRGladman})},qwVE:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("K4ya"),v=n("XxSj"),m=y.PRIORITY.VISUAL.COMPONENT;y.registerVisual(m,{createOnAllSeries:!0,reset:function(d,u){var s=[];return u.eachComponent("visualMap",function(i){var t=d.pipelineContext;if(!i.isTargetSeries(d)||t&&t.large)return;s.push(x.incrementalApplyVisual(i.stateList,i.targetVisuals,f.bind(i.getValueState,i),i.getDataDimension(d.getData())))}),s}}),y.registerVisual(m,{createOnAllSeries:!0,reset:function(d,u){var s=d.getData(),i=[];u.eachComponent("visualMap",function(t){if(t.isTargetSeries(d)){var o=t.getVisualMeta(f.bind(p,null,d,t))||{stops:[],outerColors:[]},e=t.getDataDimension(s),l=s.getDimensionInfo(e);l!=null&&(o.dimension=l.index,i.push(o))}}),d.getData().setVisual("visualMeta",i)}});function p(d,u,s,i){for(var t=u.targetVisuals[i],o=v.prepareVisualTypes(t),e={color:d.getData().getVisual("color")},l=0,r=o.length;l<r;l++){var a=o[l],c=t[a==="opacity"?"__alphaForOpacity":a];c&&c.applyVisual(s,h,g)}return e.color;function h(A){return e[A]}function g(A,b){e[A]=b}}},"r+aA":function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("s2MQ")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="EyeInvisibleOutlined";var i=v.forwardRef(s);D.default=i},"r/2G":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("+Zaj"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},r6Bn:function(R,D,n){var y=n("bYtY"),f=n("ItGF"),x=n("4fz+"),v=n("BPZU");function m(u,s){return u.zlevel===s.zlevel?u.z===s.z?u.z2-s.z2:u.z-s.z:u.zlevel-s.zlevel}var p=function(){this._roots=[],this._displayList=[],this._displayListLen=0};p.prototype={constructor:p,traverse:function(s,i){for(var t=0;t<this._roots.length;t++)this._roots[t].traverse(s,i)},getDisplayList:function(s,i){return i=i||!1,s&&this.updateDisplayList(i),this._displayList},updateDisplayList:function(s){this._displayListLen=0;for(var i=this._roots,t=this._displayList,o=0,e=i.length;o<e;o++)this._updateAndAddDisplayable(i[o],null,s);t.length=this._displayListLen,f.canvasSupported&&v(t,m)},_updateAndAddDisplayable:function(s,i,t){if(s.ignore&&!t)return;s.beforeUpdate(),s.__dirty&&s.update(),s.afterUpdate();var o=s.clipPath;if(o){i?i=i.slice():i=[];for(var e=o,l=s;e;)e.parent=l,e.updateTransform(),i.push(e),l=e,e=e.clipPath}if(s.isGroup){for(var r=s._children,a=0;a<r.length;a++){var c=r[a];s.__dirty&&(c.__dirty=!0),this._updateAndAddDisplayable(c,i,t)}s.__dirty=!1}else s.__clipPaths=i,this._displayList[this._displayListLen++]=s},addRoot:function(s){if(s.__storage===this)return;s instanceof x&&s.addChildrenToStorage(this),this.addToStorage(s),this._roots.push(s)},delRoot:function(s){if(s==null){for(var i=0;i<this._roots.length;i++){var t=this._roots[i];t instanceof x&&t.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(s instanceof Array){for(var i=0,o=s.length;i<o;i++)this.delRoot(s[i]);return}var e=y.indexOf(this._roots,s);e>=0&&(this.delFromStorage(s),this._roots.splice(e,1),s instanceof x&&s.delChildrenFromStorage(this))},addToStorage:function(s){return s&&(s.__storage=this,s.dirty(!1)),this},delFromStorage:function(s){return s&&(s.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:m};var d=p;R.exports=d},rA99:function(R,D,n){var y=n("y+Vt"),f=n("QBsz"),x=n("Sj9i"),v=x.quadraticSubdivide,m=x.cubicSubdivide,p=x.quadraticAt,d=x.cubicAt,u=x.quadraticDerivativeAt,s=x.cubicDerivativeAt,i=[];function t(e,l,r){var a=e.cpx2,c=e.cpy2;return a===null||c===null?[(r?s:d)(e.x1,e.cpx1,e.cpx2,e.x2,l),(r?s:d)(e.y1,e.cpy1,e.cpy2,e.y2,l)]:[(r?u:p)(e.x1,e.cpx1,e.x2,l),(r?u:p)(e.y1,e.cpy1,e.y2,l)]}var o=y.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(l,r){var a=r.x1,c=r.y1,h=r.x2,g=r.y2,A=r.cpx1,b=r.cpy1,S=r.cpx2,E=r.cpy2,C=r.percent;if(C===0)return;l.moveTo(a,c),S==null||E==null?(C<1&&(v(a,A,h,C,i),A=i[1],h=i[2],v(c,b,g,C,i),b=i[1],g=i[2]),l.quadraticCurveTo(A,b,h,g)):(C<1&&(m(a,A,S,h,C,i),A=i[1],S=i[2],h=i[3],m(c,b,E,g,C,i),b=i[1],E=i[2],g=i[3]),l.bezierCurveTo(A,b,S,E,h,g))},pointAt:function(l){return t(this.shape,l,!1)},tangentAt:function(l){var r=t(this.shape,l,!0);return f.normalize(r,r)}});R.exports=o},"rAM+":function(R,D,n){"use strict";n.d(D,"a",function(){return f});var y=n("Qw5x");function f(x,v){var m;if(typeof Symbol=="undefined"||x[Symbol.iterator]==null){if(Array.isArray(x)||(m=Object(y.a)(x))||v&&x&&typeof x.length=="number"){m&&(x=m);var p=0,d=function(){};return{s:d,n:function(){return p>=x.length?{done:!0}:{done:!1,value:x[p++]}},e:function(o){throw o},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,s=!1,i;return{s:function(){m=x[Symbol.iterator]()},n:function(){var o=m.next();return u=o.done,o},e:function(o){s=!0,i=o},f:function(){try{!u&&m.return!=null&&m.return()}finally{if(s)throw i}}}}},rEGp:function(R,D){function n(y){var f=-1,x=Array(y.size);return y.forEach(function(v){x[++f]=v}),x}R.exports=n},rHrb:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CopyToClipboard=void 0;var y=x(n("q1tI")),f=x(n("+QRC"));function x(g){return g&&g.__esModule?g:{default:g}}function v(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(b){return typeof b}:v=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},v(g)}function m(g,A){var b=Object.keys(g);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(g);A&&(S=S.filter(function(E){return Object.getOwnPropertyDescriptor(g,E).enumerable})),b.push.apply(b,S)}return b}function p(g){for(var A=1;A<arguments.length;A++){var b=arguments[A]!=null?arguments[A]:{};A%2?m(b,!0).forEach(function(S){c(g,S,b[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(b)):m(b).forEach(function(S){Object.defineProperty(g,S,Object.getOwnPropertyDescriptor(b,S))})}return g}function d(g,A){if(g==null)return{};var b=u(g,A),S,E;if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(g);for(E=0;E<C.length;E++){if(S=C[E],A.indexOf(S)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(g,S))continue;b[S]=g[S]}}return b}function u(g,A){if(g==null)return{};var b={},S=Object.keys(g),E,C;for(C=0;C<S.length;C++){if(E=S[C],A.indexOf(E)>=0)continue;b[E]=g[E]}return b}function s(g,A){if(!(g instanceof A))throw new TypeError("Cannot call a class as a function")}function i(g,A){for(var b=0;b<A.length;b++){var S=A[b];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(g,S.key,S)}}function t(g,A,b){return A&&i(g.prototype,A),b&&i(g,b),g}function o(g,A){return A&&(v(A)==="object"||typeof A=="function")?A:l(g)}function e(g){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},e(g)}function l(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function r(g,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(A&&A.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),A&&a(g,A)}function a(g,A){return a=Object.setPrototypeOf||function(S,E){return S.__proto__=E,S},a(g,A)}function c(g,A,b){return A in g?Object.defineProperty(g,A,{value:b,enumerable:!0,configurable:!0,writable:!0}):g[A]=b,g}var h=function(g){r(A,g);function A(){var b,S;s(this,A);for(var E=arguments.length,C=new Array(E),_=0;_<E;_++)C[_]=arguments[_];return S=o(this,(b=e(A)).call.apply(b,[this].concat(C))),c(l(S),"onClick",function(T){var w=S.props,O=w.text,I=w.onCopy,k=w.children,M=w.options,j=y.default.Children.only(k),P=(0,f.default)(O,M);I&&I(O,P),j&&j.props&&typeof j.props.onClick=="function"&&j.props.onClick(T)}),S}return t(A,[{key:"render",value:function(){var S=this.props,E=S.text,C=S.onCopy,_=S.options,T=S.children,w=d(S,["text","onCopy","options","children"]),O=y.default.Children.only(T);return y.default.cloneElement(O,p({},w,{onClick:this.onClick}))}}]),A}(y.default.PureComponent);D.CopyToClipboard=h,c(h,"defaultProps",{onCopy:void 0,options:void 0})},rLCj:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="ReloadOutlined";var d=D.a=f.forwardRef(p)},rUJ1:function(R,D){var n=/[&<>"']/,y=/[&<>"']/g,f=/[<>"']|&(?!#?\w+;)/,x=/[<>"']|&(?!#?\w+;)/g,v={"&":"&","<":"<",">":">",'"':""","'":"'"},m=function(T){return v[T]};function p(_,T){if(T){if(n.test(_))return _.replace(y,m)}else if(f.test(_))return _.replace(x,m);return _}var d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function u(_){return _.replace(d,function(T,w){return w=w.toLowerCase(),w==="colon"?":":w.charAt(0)==="#"?w.charAt(1)==="x"?String.fromCharCode(parseInt(w.substring(2),16)):String.fromCharCode(+w.substring(1)):""})}var s=/(^|[^\[])\^/g;function i(_,T){_=_.source||_,T=T||"";var w={replace:function(I,k){return k=k.source||k,k=k.replace(s,"$1"),_=_.replace(I,k),w},getRegex:function(){return new RegExp(_,T)}};return w}var t=/[^\w:]/g,o=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function e(_,T,w){if(_){var O;try{O=decodeURIComponent(u(w)).replace(t,"").toLowerCase()}catch(I){return null}if(O.indexOf("javascript:")===0||O.indexOf("vbscript:")===0||O.indexOf("data:")===0)return null}T&&!o.test(w)&&(w=h(T,w));try{w=encodeURI(w).replace(/%25/g,"%")}catch(I){return null}return w}var l={},r=/^[^:]+:\/*[^/]*$/,a=/^([^:]+:)[\s\S]*$/,c=/^([^:]+:\/*[^/]*)[\s\S]*$/;function h(_,T){l[" "+_]||(r.test(_)?l[" "+_]=_+"/":l[" "+_]=S(_,"/",!0)),_=l[" "+_];var w=_.indexOf(":")===-1;return T.substring(0,2)==="//"?w?T:_.replace(a,"$1")+T:T.charAt(0)==="/"?w?T:_.replace(c,"$1")+T:_+T}var g={exec:function(){}};function A(_){for(var T=1,w,O;T<arguments.length;T++){w=arguments[T];for(O in w)Object.prototype.hasOwnProperty.call(w,O)&&(_[O]=w[O])}return _}function b(_,T){var w=_.replace(/\|/g,function(k,M,j){for(var P=!1,X=M;--X>=0&&j[X]==="\\";)P=!P;return P?"|":" |"}),O=w.split(/ \|/),I=0;if(O.length>T)O.splice(T);else for(;O.length<T;)O.push("");for(;I<O.length;I++)O[I]=O[I].trim().replace(/\\\|/g,"|");return O}function S(_,T,w){var O=_.length;if(O===0)return"";for(var I=0;I<O;){var k=_.charAt(O-I-1);if(k===T&&!w)I++;else if(k!==T&&w)I++;else break}return _.substr(0,O-I)}function E(_,T){if(_.indexOf(T[1])===-1)return-1;for(var w=_.length,O=0,I=0;I<w;I++)if(_[I]==="\\")I++;else if(_[I]===T[0])O++;else if(_[I]===T[1]&&(O--,O<0))return I;return-1}function C(_){_&&_.sanitize&&!_.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}R.exports={escape:p,unescape:u,edit:i,cleanUrl:e,resolveUrl:h,noopTest:g,merge:A,splitCells:b,rtrim:S,findClosingBracket:E,checkSanitizeDeprecation:C}},rdUC:function(R,D,n){var y=n("MFOe"),f=y.Global;R.exports={name:"localStorage",read:v,write:m,each:p,remove:d,clearAll:u};function x(){return f.localStorage}function v(s){return x().getItem(s)}function m(s,i){return x().setItem(s,i)}function p(s){for(var i=x().length-1;i>=0;i--){var t=x().key(i);s(v(t),t)}}function d(s){return x().removeItem(s)}function u(){return x().clear()}},rdor:function(R,D,n){var y=n("lOQZ"),f=y.circularLayout;function x(v){v.eachSeriesByType("graph",function(m){m.get("layout")==="circular"&&f(m,"symbolSize")})}R.exports=x},rfSb:function(R,D,n){var y=n("T4UG"),f=n("sdST"),x=n("L0Ub"),v=x.getDimensionTypeByAxis,m=n("YXkt"),p=n("bYtY"),d=n("4NO4"),u=d.groupData,s=n("7aKB"),i=s.encodeHTML,t=n("xKMd"),o=2,e=y.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(r){e.superApply(this,"init",arguments),this.legendVisualProvider=new t(p.bind(this.getData,this),p.bind(this.getRawData,this))},fixData:function(r){var a=r.length,c=u(r,function(j){return j[2]}),h=[];c.buckets.each(function(j,P){h.push({name:P,dataList:j})});for(var g=h.length,A=-1,b=-1,S=0;S<g;++S){var E=h[S].dataList.length;E>A&&(A=E,b=S)}for(var C=0;C<g;++C){if(C===b)continue;for(var _=h[C].name,T=0;T<A;++T){for(var w=h[b].dataList[T][0],O=h[C].dataList.length,I=-1,k=0;k<O;++k){var M=h[C].dataList[k][0];if(M===w){I=k;break}}I===-1&&(r[a]=[],r[a][0]=w,r[a][1]=0,r[a][2]=_,a++)}}return r},getInitialData:function(r,a){for(var c=a.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],h=c.get("type"),g=p.filter(r.data,function(w){return w[2]!==void 0}),A=this.fixData(g||[]),b=[],S=this.nameMap=p.createHashMap(),E=0,C=0;C<A.length;++C)b.push(A[C][o]),S.get(A[C][o])||(S.set(A[C][o],E),E++);var _=f(A,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:v(h)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),T=new m(_,this);return T.initData(A),T},getLayerSeries:function(){for(var r=this.getData(),a=r.count(),c=[],h=0;h<a;++h)c[h]=h;var g=r.mapDimension("single"),A=u(c,function(S){return r.get("name",S)}),b=[];return A.buckets.each(function(S,E){S.sort(function(C,_){return r.get(g,C)-r.get(g,_)}),b.push({name:E,indices:S})}),b},getAxisTooltipData:function(r,a,c){p.isArray(r)||(r=r?[r]:[]);for(var h=this.getData(),g=this.getLayerSeries(),A=[],b=g.length,S,E=0;E<b;++E){for(var C=Number.MAX_VALUE,_=-1,T=g[E].indices.length,w=0;w<T;++w){var O=h.get(r[0],g[E].indices[w]),I=Math.abs(O-a);I<=C&&(S=O,C=I,_=g[E].indices[w])}A.push(_)}return{dataIndices:A,nestestValue:S}},formatTooltip:function(r){var a=this.getData(),c=a.getName(r),h=a.get(a.mapDimension("value"),r);return(isNaN(h)||h==null)&&(h="-"),i(c+" : "+h)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}}),l=e;R.exports=l},rkZ5:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("ProS"),v=n("c8qY"),m=n("D9ME"),p=n("fls0"),d=n("RSch"),u=n("akwb"),s=n("o40c"),i=n("ZYIC"),t=n("sK/D"),o=t.createClipPath,e=x.extendChartView({type:"lines",init:function(){},render:function(l,r,a){var c=l.getData(),h=this._updateLineDraw(c,l),g=l.get("zlevel"),A=l.get("effect.trailLength"),b=a.getZr(),S=b.painter.getType()==="svg";S||b.painter.getLayer(g).clear(!0),this._lastZlevel!=null&&!S&&b.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(l)&&A&&(S||b.configLayer(g,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(A/10+.9,1),0)})),h.updateData(c);var E=l.get("clip",!0)&&o(l.coordinateSystem,!1,l);E?this.group.setClipPath(E):this.group.removeClipPath(),this._lastZlevel=g,this._finished=!0},incrementalPrepareRender:function(l,r,a){var c=l.getData(),h=this._updateLineDraw(c,l);h.incrementalPrepareUpdate(c),this._clearLayer(a),this._finished=!1},incrementalRender:function(l,r,a){this._lineDraw.incrementalUpdate(l,r.getData()),this._finished=l.end===r.getData().count()},updateTransform:function(l,r,a){var c=l.getData(),h=l.pipelineContext;if(!this._finished||h.large||h.progressiveRender)return{update:!0};var g=i.reset(l);g.progress&&g.progress({start:0,end:c.count()},c),this._lineDraw.updateLayout(),this._clearLayer(a)},_updateLineDraw:function(l,r){var a=this._lineDraw,c=this._showEffect(r),h=!!r.get("polyline"),g=r.pipelineContext,A=g.large;return(!a||c!==this._hasEffet||h!==this._isPolyline||A!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=A?new s:new v(h?c?u:d:c?m:p),this._hasEffet=c,this._isPolyline=h,this._isLargeDraw=A,this.group.removeAll()),this.group.add(a.group),a},_showEffect:function(l){return!!l.get("effect.show")},_clearLayer:function(l){var r=l.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(l,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},dispose:function(){}});R.exports=e},rmlV:function(R,D,n){var y=n("y+Vt"),f=y.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(v,m){var p=.5522848,d=m.cx,u=m.cy,s=m.rx,i=m.ry,t=s*p,o=i*p;v.moveTo(d-s,u),v.bezierCurveTo(d-s,u-o,d-t,u-i,d,u-i),v.bezierCurveTo(d+t,u-i,d+s,u-o,d+s,u),v.bezierCurveTo(d+s,u+o,d+t,u+i,d,u+i),v.bezierCurveTo(d-t,u+i,d-s,u+o,d-s,u),v.closePath()}});R.exports=f},rnVJ:function(R,D,n){var y=n("bYtY"),f=["rect","polygon","keep","clear"];function x(m,p){var d=m&&m.brush;if(y.isArray(d)||(d=d?[d]:[]),!d.length)return;var u=[];y.each(d,function(e){var l=e.hasOwnProperty("toolbox")?e.toolbox:[];l instanceof Array&&(u=u.concat(l))});var s=m&&m.toolbox;y.isArray(s)&&(s=s[0]),s||(s={feature:{}},m.toolbox=[s]);var i=s.feature||(s.feature={}),t=i.brush||(i.brush={}),o=t.type||(t.type=[]);o.push.apply(o,u),v(o),p&&!o.length&&o.push.apply(o,f)}function v(m){var p={};y.each(m,function(d){p[d]=1}),m.length=0,y.each(p,function(d,u){m.push(u)})}R.exports=x},rwxt:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("GdRQ");function f(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function x(d,u){for(var s=0;s<u.length;s++){var i=u[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(d,i.key,i)}}function v(d,u,s){return u&&x(d.prototype,u),s&&x(d,s),d}var m=!y.supportsCursorURIs||y.isTouchDevice,p=function(){function d(){f(this,d),this._target=null,this._canvas=document.createElement("canvas"),m&&(this._canvas.style.position="fixed",this._canvas.style.zIndex="65535",this._canvas.style.pointerEvents="none",this._canvas.style.visibility="hidden"),this._position={x:0,y:0},this._hotSpot={x:0,y:0},this._eventHandlers={mouseover:this._handleMouseOver.bind(this),mouseleave:this._handleMouseLeave.bind(this),mousemove:this._handleMouseMove.bind(this),mouseup:this._handleMouseUp.bind(this)}}return v(d,[{key:"attach",value:function(s){if(this._target&&this.detach(),this._target=s,m){document.body.appendChild(this._canvas);var i={capture:!0,passive:!0};this._target.addEventListener("mouseover",this._eventHandlers.mouseover,i),this._target.addEventListener("mouseleave",this._eventHandlers.mouseleave,i),this._target.addEventListener("mousemove",this._eventHandlers.mousemove,i),this._target.addEventListener("mouseup",this._eventHandlers.mouseup,i)}this.clear()}},{key:"detach",value:function(){if(!this._target)return;if(m){var s={capture:!0,passive:!0};this._target.removeEventListener("mouseover",this._eventHandlers.mouseover,s),this._target.removeEventListener("mouseleave",this._eventHandlers.mouseleave,s),this._target.removeEventListener("mousemove",this._eventHandlers.mousemove,s),this._target.removeEventListener("mouseup",this._eventHandlers.mouseup,s),document.body.removeChild(this._canvas)}this._target=null}},{key:"change",value:function(s,i,t,o,e){if(o===0||e===0){this.clear();return}this._position.x=this._position.x+this._hotSpot.x-i,this._position.y=this._position.y+this._hotSpot.y-t,this._hotSpot.x=i,this._hotSpot.y=t;var l=this._canvas.getContext("2d");this._canvas.width=o,this._canvas.height=e;var r;try{r=new ImageData(new Uint8ClampedArray(s),o,e)}catch(c){r=l.createImageData(o,e),r.data.set(new Uint8ClampedArray(s))}if(l.clearRect(0,0,o,e),l.putImageData(r,0,0),m)this._updatePosition();else{var a=this._canvas.toDataURL();this._target.style.cursor="url("+a+")"+i+" "+t+", default"}}},{key:"clear",value:function(){this._target.style.cursor="none",this._canvas.width=0,this._canvas.height=0,this._position.x=this._position.x+this._hotSpot.x,this._position.y=this._position.y+this._hotSpot.y,this._hotSpot.x=0,this._hotSpot.y=0}},{key:"move",value:function(s,i){if(!m)return;window.visualViewport?(this._position.x=s+window.visualViewport.offsetLeft,this._position.y=i+window.visualViewport.offsetTop):(this._position.x=s,this._position.y=i),this._updatePosition();var t=document.elementFromPoint(s,i);this._updateVisibility(t)}},{key:"_handleMouseOver",value:function(s){this._handleMouseMove(s)}},{key:"_handleMouseLeave",value:function(s){this._updateVisibility(s.relatedTarget)}},{key:"_handleMouseMove",value:function(s){this._updateVisibility(s.target),this._position.x=s.clientX-this._hotSpot.x,this._position.y=s.clientY-this._hotSpot.y,this._updatePosition()}},{key:"_handleMouseUp",value:function(s){var i=this,t=document.elementFromPoint(s.clientX,s.clientY);this._updateVisibility(t),this._captureIsActive()&&window.setTimeout(function(){if(!i._target)return;t=document.elementFromPoint(s.clientX,s.clientY),i._updateVisibility(t)},0)}},{key:"_showCursor",value:function(){this._canvas.style.visibility==="hidden"&&(this._canvas.style.visibility="")}},{key:"_hideCursor",value:function(){this._canvas.style.visibility!=="hidden"&&(this._canvas.style.visibility="hidden")}},{key:"_shouldShowCursor",value:function(s){return s?s===this._target?!0:this._target.contains(s)?!(window.getComputedStyle(s).cursor!=="none"):!1:!1}},{key:"_updateVisibility",value:function(s){this._captureIsActive()&&(s=document.captureElement),this._shouldShowCursor(s)?this._showCursor():this._hideCursor()}},{key:"_updatePosition",value:function(){this._canvas.style.left=this._position.x+"px",this._canvas.style.top=this._position.y+"px"}},{key:"_captureIsActive",value:function(){return document.captureElement&&document.documentElement.contains(document.captureElement)}}]),d}();D.default=p},rySg:function(R,D,n){n("SMc4"),n("8nMs")},"s/wZ":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("MUZu"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},s2MQ:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};D.default=y},s2lz:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("IwbS"),v=n("gPAo"),m=n("VaxA"),p=n("9hCq"),d=n("SgGq"),u=n("mFDi"),s=n("Fofx"),i=n("5s0K"),t=n("KCsZ"),o=n("7aKB"),e=o.windowOpen,l=f.bind,r=x.Group,a=x.Rect,c=f.each,h=3,g=["label"],A=["emphasis","label"],b=["upperLabel"],S=["emphasis","upperLabel"],E=10,C=1,_=2,T=t([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),w=function(j){var P=T(j);return P.stroke=P.fill=P.lineWidth=null,P},O=y.extendChartView({type:"treemap",init:function(j,P){this._containerGroup,this._storage=I(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(j,P,X,F){var U=P.findComponents({mainType:"series",subType:"treemap",query:F});if(f.indexOf(U,j)<0)return;this.seriesModel=j,this.api=X,this.ecModel=P;var K=["treemapZoomToNode","treemapRootToNode"],z=m.retrieveTargetInfo(F,K,j),V=F&&F.type,Q=j.layoutInfo,G=!this._oldTree,te=this._storage,q=V==="treemapRootToNode"&&z&&te?{rootNodeGroup:te.nodeGroup[z.node.getRawIndex()],direction:F.direction}:null,se=this._giveContainerGroup(Q),re=this._doRender(se,j,q);!G&&(!V||V==="treemapZoomToNode"||V==="treemapRootToNode")?this._doAnimation(se,re,j,q):re.renderFinally(),this._resetController(X),this._renderBreadcrumb(j,X,z)},_giveContainerGroup:function(j){var P=this._containerGroup;return P||(P=this._containerGroup=new r,this._initEvents(P),this.group.add(P)),P.attr("position",[j.x,j.y]),P},_doRender:function(j,P,X){var F=P.getData().tree,U=this._oldTree,K=I(),z=I(),V=this._storage,Q=[],G=f.curry(k,P,z,V,X,K,Q);q(F.root?[F.root]:[],U&&U.root?[U.root]:[],j,F===U||!U,0);var te=se(V);return this._oldTree=F,this._storage=z,{lastsForAnimation:K,willDeleteEls:te,renderFinally:re};function q(xe,Oe,Me,Qe,Ve){Qe?(Oe=xe,c(xe,function(ue,et){!ue.isRemoved()&&Fe(et,et)})):new v(Oe,xe,ut,ut).add(Fe).update(Fe).remove(f.curry(Fe,null)).execute();function ut(ue){return ue.getId()}function Fe(ue,et){var he=ue!=null?xe[ue]:null,J=et!=null?Oe[et]:null,Y=G(he,J,Me,Ve);Y&&q(he&&he.viewChildren||[],J&&J.viewChildren||[],Y,Qe,Ve+1)}}function se(xe){var Oe=I();return xe&&c(xe,function(Me,Qe){var Ve=Oe[Qe];c(Me,function(ut){ut&&(Ve.push(ut),ut.__tmWillDelete=1)})}),Oe}function re(){c(te,function(xe){c(xe,function(Oe){Oe.parent&&Oe.parent.remove(Oe)})}),c(Q,function(xe){xe.invisible=!0,xe.dirty()})}},_doAnimation:function(j,P,X,F){if(!X.get("animation"))return;var U=X.get("animationDurationUpdate"),K=X.get("animationEasing"),z=i.createWrap();c(P.willDeleteEls,function(V,Q){c(V,function(G,te){if(G.invisible)return;var q=G.parent,se;if(F&&F.direction==="drillDown")se=q===F.rootNodeGroup?{shape:{x:0,y:0,width:q.__tmNodeWidth,height:q.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var re=0,xe=0;q.__tmWillDelete||(re=q.__tmNodeWidth/2,xe=q.__tmNodeHeight/2),se=Q==="nodeGroup"?{position:[re,xe],style:{opacity:0}}:{shape:{x:re,y:xe,width:0,height:0},style:{opacity:0}}}se&&z.add(G,se,U,K)})}),c(this._storage,function(V,Q){c(V,function(G,te){var q=P.lastsForAnimation[Q][te],se={};if(!q)return;Q==="nodeGroup"?q.old&&(se.position=G.position.slice(),G.attr("position",q.old)):(q.old&&(se.shape=f.extend({},G.shape),G.setShape(q.old)),q.fadein?(G.setStyle("opacity",0),se.style={opacity:1}):G.style.opacity!==1&&(se.style={opacity:1})),z.add(G,se,U,K)})},this),this._state="animating",z.done(l(function(){this._state="ready",P.renderFinally()},this)).start()},_resetController:function(j){var P=this._controller;P||(P=this._controller=new d(j.getZr()),P.enable(this.seriesModel.get("roam")),P.on("pan",l(this._onPan,this)),P.on("zoom",l(this._onZoom,this)));var X=new u(0,0,j.getWidth(),j.getHeight());P.setPointerChecker(function(F,U,K){return X.contain(U,K)})},_clearController:function(){var j=this._controller;j&&(j.dispose(),j=null)},_onPan:function(j){if(this._state!=="animating"&&(Math.abs(j.dx)>h||Math.abs(j.dy)>h)){var P=this.seriesModel.getData().tree.root;if(!P)return;var X=P.getLayout();if(!X)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:X.x+j.dx,y:X.y+j.dy,width:X.width,height:X.height}})}},_onZoom:function(j){var P=j.originX,X=j.originY;if(this._state!=="animating"){var F=this.seriesModel.getData().tree.root;if(!F)return;var U=F.getLayout();if(!U)return;var K=new u(U.x,U.y,U.width,U.height),z=this.seriesModel.layoutInfo;P-=z.x,X-=z.y;var V=s.create();s.translate(V,V,[-P,-X]),s.scale(V,V,[j.scale,j.scale]),s.translate(V,V,[P,X]),K.applyTransform(V),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:K.x,y:K.y,width:K.width,height:K.height}})}},_initEvents:function(j){j.on("click",function(P){if(this._state!=="ready")return;var X=this.seriesModel.get("nodeClick",!0);if(!X)return;var F=this.findTarget(P.offsetX,P.offsetY);if(!F)return;var U=F.node;if(U.getLayout().isLeafRoot)this._rootToNode(F);else if(X==="zoomToNode")this._zoomToNode(F);else if(X==="link"){var K=U.hostTree.data.getItemModel(U.dataIndex),z=K.get("link",!0),V=K.get("target",!0)||"blank";z&&e(z,V)}},this)},_renderBreadcrumb:function(j,P,X){X||(X=j.get("leafDepth",!0)!=null?{node:j.getViewRoot()}:this.findTarget(P.getWidth()/2,P.getHeight()/2),X||(X={node:j.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new p(this.group))).render(j,P,X.node,l(F,this));function F(U){this._state!=="animating"&&(m.aboveViewRoot(j.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(j){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:j.node})},_rootToNode:function(j){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:j.node})},findTarget:function(j,P){var X,F=this.seriesModel.getViewRoot();return F.eachNode({attr:"viewChildren",order:"preorder"},function(U){var K=this._storage.background[U.getRawIndex()];if(K){var z=K.transformCoordToLocal(j,P),V=K.shape;if(V.x<=z[0]&&z[0]<=V.x+V.width&&V.y<=z[1]&&z[1]<=V.y+V.height)X={node:U,offsetX:z[0],offsetY:z[1]};else return!1}},this),X}});function I(){return{nodeGroup:[],background:[],content:[]}}function k(j,P,X,F,U,K,z,V,Q,G){if(!z)return;var te=z.getLayout(),q=j.getData();if(q.setItemGraphicEl(z.dataIndex,null),!te||!te.isInView)return;var se=te.width,re=te.height,xe=te.borderWidth,Oe=te.invisible,Me=z.getRawIndex(),Qe=V&&V.getRawIndex(),Ve=z.viewChildren,ut=te.upperHeight,Fe=Ve&&Ve.length,ue=z.getModel("itemStyle"),et=z.getModel("emphasis.itemStyle"),he=we("nodeGroup",r);if(!he)return;if(Q.add(he),he.attr("position",[te.x||0,te.y||0]),he.__tmNodeWidth=se,he.__tmNodeHeight=re,te.isAboveViewRoot)return he;var J=z.getModel(),Y=we("background",a,G,C);if(Y&&de(he,Y,Fe&&te.upperLabelHeight),Fe)x.isHighDownDispatcher(he)&&x.setAsHighDownDispatcher(he,!1),Y&&(x.setAsHighDownDispatcher(Y,!0),q.setItemGraphicEl(z.dataIndex,Y));else{var $=we("content",a,G,_);$&&be(he,$),Y&&x.isHighDownDispatcher(Y)&&x.setAsHighDownDispatcher(Y,!1),x.setAsHighDownDispatcher(he,!0),q.setItemGraphicEl(z.dataIndex,he)}return he;function de(St,ft,He){if(ft.dataIndex=z.dataIndex,ft.seriesIndex=j.seriesIndex,ft.setShape({x:0,y:0,width:se,height:re}),Oe)Ce(ft);else{ft.invisible=!1;var er=z.getVisual("borderColor",!0),ct=et.get("borderColor"),Kt=w(ue);Kt.fill=er;var fr=T(et);if(fr.fill=ct,He){var Gt=se-2*xe;Be(Kt,fr,er,Gt,ut,{x:xe,y:0,width:Gt,height:ut})}else Kt.text=fr.text=null;ft.setStyle(Kt),x.setElementHoverStyle(ft,fr)}St.add(ft)}function be(St,ft){ft.dataIndex=z.dataIndex,ft.seriesIndex=j.seriesIndex;var He=Math.max(se-2*xe,0),er=Math.max(re-2*xe,0);if(ft.culling=!0,ft.setShape({x:xe,y:xe,width:He,height:er}),Oe)Ce(ft);else{ft.invisible=!1;var ct=z.getVisual("color",!0),Kt=w(ue);Kt.fill=ct;var fr=T(et);Be(Kt,fr,ct,He,er),ft.setStyle(Kt),x.setElementHoverStyle(ft,fr)}St.add(ft)}function Ce(St){!St.invisible&&K.push(St)}function Be(St,ft,He,er,ct,Kt){var fr=J.get("name"),Gt=J.getModel(Kt?b:g),Pt=J.getModel(Kt?S:A),Xt=Gt.getShallow("show");x.setLabelStyle(St,ft,Gt,Pt,{defaultText:Xt?fr:null,autoColor:He,isRectText:!0,labelFetcher:j,labelDataIndex:z.dataIndex,labelProp:Kt?"upperLabel":"label"}),fe(St,Kt,te),fe(ft,Kt,te),Kt&&(St.textRect=f.clone(Kt)),St.truncate=Xt&&Gt.get("ellipsis")?{outerWidth:er,outerHeight:ct,minChar:2}:null}function fe(St,ft,He){var er=St.text;if(!ft&&He.isLeafRoot&&er!=null){var ct=j.get("drillDownIcon",!0);St.text=ct?ct+" "+er:er}}function we(St,ft,He,er){var ct=Qe!=null&&X[St][Qe],Kt=U[St];return ct?(X[St][Qe]=null,Re(Kt,ct,St)):Oe||(ct=new ft({z:M(He,er)}),ct.__tmDepth=He,ct.__tmStorageName=St,rt(Kt,ct,St)),P[St][Me]=ct}function Re(St,ft,He){var er=St[Me]={};er.old=He==="nodeGroup"?ft.position.slice():f.extend({},ft.shape)}function rt(St,ft,He){var er=St[Me]={},ct=z.parentNode;if(ct&&(!F||F.direction==="drillDown")){var Kt=0,fr=0,Gt=U.background[ct.getRawIndex()];!F&&Gt&&Gt.old&&(Kt=Gt.old.width,fr=Gt.old.height),er.old=He==="nodeGroup"?[0,fr]:{x:Kt,y:fr,width:0,height:0}}er.fadein=He!=="nodeGroup"}}function M(j,P){var X=j*E+P;return(X-1)/X}R.exports=O},sAZ8:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("+rIm"),v=n("/IIm"),m=n("9KIM"),p=n("IwbS"),d=["axisLine","axisTickLabel","axisName"],u=y.extendComponentView({type:"parallelAxis",init:function(e,l){u.superApply(this,"init",arguments),(this._brushController=new v(l.getZr())).on("brush",f.bind(this._onBrush,this))},render:function(e,l,r,a){if(s(e,l,a))return;this.axisModel=e,this.api=r,this.group.removeAll();var c=this._axisGroup;if(this._axisGroup=new p.Group,this.group.add(this._axisGroup),!e.get("show"))return;var h=t(e,l),g=h.coordinateSystem,A=e.getAreaSelectStyle(),b=A.width,S=e.axis.dim,E=g.getAxisLayout(S),C=f.extend({strokeContainThreshold:b},E),_=new x(e,C);f.each(d,_.add,_),this._axisGroup.add(_.getGroup()),this._refreshBrushController(C,A,e,h,b,r);var T=a&&a.animation===!1?null:e;p.groupTransition(c,this._axisGroup,T)},_refreshBrushController:function(e,l,r,a,c,h){var g=r.axis.getExtent(),A=g[1]-g[0],b=Math.min(30,Math.abs(A)*.1),S=p.BoundingRect.create({x:g[0],y:-c/2,width:A,height:c});S.x-=b,S.width+=2*b,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:m.makeRectPanelClipPath(S),isTargetByCursor:m.makeRectIsTargetByCursor(S,h,a),getLinearBrushOtherExtent:m.makeLinearBrushOtherExtent(S,0)}]).enableBrush({brushType:"lineX",brushStyle:l,removeOnClick:!0}).updateCovers(i(r))},_onBrush:function(e,l){var r=this.axisModel,a=r.axis,c=f.map(e,function(h){return[a.coordToData(h.range[0],!0),a.coordToData(h.range[1],!0)]});(!r.option.realtime===l.isEnd||l.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:r.id,intervals:c})},dispose:function(){this._brushController.dispose()}});function s(e,l,r){return r&&r.type==="axisAreaSelect"&&l.findComponents({mainType:"parallelAxis",query:r})[0]===e}function i(e){var l=e.axis;return f.map(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[l.dataToCoord(r[0],!0),l.dataToCoord(r[1],!0)]}})}function t(e,l){return l.getComponent("parallel",e.get("parallelIndex"))}var o=u;R.exports=o},sE09:function(R,D,n){},sEf8:function(R,D){function n(y){return function(f){return y(f)}}R.exports=n},sGsY:function(R,D,n){"use strict";var y=n("lSNA"),f=n.n(y),x=n("pVnL"),v=n.n(x),m=n("q1tI"),p=n("TSYQ"),d=n.n(p),u=n("H84U"),s=n("B6l+"),i=n.n(s),t=function(z){var V=z.value,Q=z.formatter,G=z.precision,te=z.decimalSeparator,q=z.groupSeparator,se=q===void 0?"":q,re=z.prefixCls,xe;if(typeof Q=="function")xe=Q(V);else{var Oe=String(V),Me=Oe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Me||Oe==="-")xe=Oe;else{var Qe=Me[1],Ve=Me[2]||"0",ut=Me[4]||"";Ve=Ve.replace(/\B(?=(\d{3})+(?!\d))/g,se),typeof G=="number"&&(ut=i()(ut,G,"0").slice(0,G)),ut&&(ut="".concat(te).concat(ut)),xe=[m.createElement("span",{key:"int",className:"".concat(re,"-content-value-int")},Qe,Ve),ut&&m.createElement("span",{key:"decimal",className:"".concat(re,"-content-value-decimal")},ut)]}}return m.createElement("span",{className:"".concat(re,"-content-value")},xe)},o=t,e=function(z){var V=z.prefixCls,Q=z.className,G=z.style,te=z.valueStyle,q=z.value,se=q===void 0?0:q,re=z.title,xe=z.valueRender,Oe=z.prefix,Me=z.suffix,Qe=z.direction,Ve=z.onMouseEnter,ut=z.onMouseLeave,Fe=m.createElement(o,v()({},z,{value:se})),ue=d()(V,Q,f()({},"".concat(V,"-rtl"),Qe==="rtl"));return m.createElement("div",{className:ue,style:G,onMouseEnter:Ve,onMouseLeave:ut},re&&m.createElement("div",{className:"".concat(V,"-title")},re),m.createElement("div",{style:te,className:"".concat(V,"-content")},Oe&&m.createElement("span",{className:"".concat(V,"-content-prefix")},Oe),xe?xe(Fe):Fe,Me&&m.createElement("span",{className:"".concat(V,"-content-suffix")},Me)))};e.defaultProps={decimalSeparator:".",groupSeparator:","};var l=Object(u.c)({prefixCls:"statistic"})(e),r=l,a=n("lwsE"),c=n.n(a),h=n("W8MJ"),g=n.n(h),A=n("7W2i"),b=n.n(A),S=n("LQ03"),E=n.n(S),C=n("J4zp"),_=n.n(C),T=n("QQZ/"),w=n.n(T),O=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function I(K,z){var V=K,Q=/\[[^\]]*]/g,G=(z.match(Q)||[]).map(function(re){return re.slice(1,-1)}),te=z.replace(Q,"[]"),q=O.reduce(function(re,xe){var Oe=_()(xe,2),Me=Oe[0],Qe=Oe[1];if(re.indexOf(Me)!==-1){var Ve=Math.floor(V/Qe);return V-=Ve*Qe,re.replace(new RegExp("".concat(Me,"+"),"g"),function(ut){var Fe=ut.length;return w()(Ve.toString(),Fe,"0")})}return re},te),se=0;return q.replace(Q,function(){var re=G[se];return se+=1,re})}function k(K,z){var V=z.format,Q=V===void 0?"":V,G=new Date(K).getTime(),te=Date.now(),q=Math.max(G-te,0);return I(q,Q)}var M=n("0n0R"),j=1e3/30;function P(K){return new Date(K).getTime()}var X=function(K){b()(V,K);var z=E()(V);function V(){var Q;return c()(this,V),Q=z.apply(this,arguments),Q.syncTimer=function(){var G=Q.props.value,te=P(G);te>=Date.now()?Q.startTimer():Q.stopTimer()},Q.startTimer=function(){if(Q.countdownId)return;Q.countdownId=window.setInterval(function(){Q.forceUpdate()},j)},Q.stopTimer=function(){var G=Q.props,te=G.onFinish,q=G.value;if(Q.countdownId){clearInterval(Q.countdownId),Q.countdownId=void 0;var se=P(q);te&&se<Date.now()&&te()}},Q.formatCountdown=function(G,te){var q=Q.props.format;return k(G,v()(v()({},te),{format:q}))},Q.valueRender=function(G){return Object(M.a)(G,{title:void 0})},Q}return g()(V,[{key:"componentDidMount",value:function(){this.syncTimer()}},{key:"componentDidUpdate",value:function(){this.syncTimer()}},{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){return m.createElement(r,v()({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),V}(m.Component);X.defaultProps={format:"HH:mm:ss"};var F=X;r.Countdown=F;var U=D.a=r},"sK/D":function(R,D,n){var y=n("IwbS"),f=n("OELB"),x=f.round;function v(d,u,s){var i=d.getArea(),t=d.getBaseAxis().isHorizontal(),o=i.x,e=i.y,l=i.width,r=i.height,a=s.get("lineStyle.width")||2;o-=a/2,e-=a/2,l+=a,r+=a,o=Math.floor(o),l=Math.round(l);var c=new y.Rect({shape:{x:o,y:e,width:l,height:r}});return u&&(c.shape[t?"width":"height"]=0,y.initProps(c,{shape:{width:l,height:r}},s)),c}function m(d,u,s){var i=d.getArea(),t=new y.Sector({shape:{cx:x(d.cx,1),cy:x(d.cy,1),r0:x(i.r0,1),r:x(i.r,1),startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return u&&(t.shape.endAngle=i.startAngle,y.initProps(t,{shape:{endAngle:i.endAngle}},s)),t}function p(d,u,s){if(d){if(d.type==="polar")return m(d,u,s);if(d.type==="cartesian2d")return v(d,u,s)}else return null;return null}D.createGridClipPath=v,D.createPolarClipPath=m,D.createClipPath=p},sKgW:function(R,D){var n=9007199254740991,y=Math.floor;function f(x,v){var m="";if(!x||v<1||v>n)return m;do v%2&&(m+=x),v=y(v/2),v&&(x+=x);while(v);return m}R.exports=f},sPJy:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("AOa7"),v=n.n(x),m=n("lUTK"),p=n("qVdP")},sPtV:function(R,D,n){"use strict";n.d(D,"a",function(){return v});var y=n("q1tI"),f=n.n(y),x=n("hkKa");function v(m){var p=y.useRef(m),d=Object(x.a)();return[function(){return p.current},function(u){p.current=u,d()}]}},sRwP:function(R,D,n){n("jsU+"),n("2548"),n("Tp9H"),n("06DH"),n("dnwI"),n("fE02"),n("33Ds")},"sS/r":function(R,D,n){var y=n("4fz+"),f=n("iRjW"),x=n("Yl7c"),v=function(){this.group=new y,this.uid=f.getUID("viewComponent")};v.prototype={constructor:v,init:function(d,u){},render:function(d,u,s,i){},dispose:function(){},filterForExposedEvent:null};var m=v.prototype;m.updateView=m.updateLayout=m.updateVisual=function(d,u,s,i){},x.enableClassExtend(v),x.enableClassManagement(v,{registerWhenExtend:!0});var p=v;R.exports=p},"sW+o":function(R,D,n){var y=n("SrGk"),f=n("bYtY"),x=n("SUKs"),v=n("Qe9p");function m(d,u){y.call(this,d,u,["linearGradient","radialGradient"],"__gradient_in_use__")}f.inherits(m,y),m.prototype.addWithoutUpdate=function(d,u){if(u&&u.style){var s=this;f.each(["fill","stroke"],function(i){if(u.style[i]&&(u.style[i].type==="linear"||u.style[i].type==="radial")){var t=u.style[i],o=s.getDefs(!0),e;t._dom?(e=t._dom,o.contains(t._dom)||s.addDom(e)):e=s.add(t),s.markUsed(u);var l=e.getAttribute("id");d.setAttribute(i,"url(#"+l+")")}})}},m.prototype.add=function(d){var u;if(d.type==="linear")u=this.createElement("linearGradient");else if(d.type==="radial")u=this.createElement("radialGradient");else return x("Illegal gradient type."),null;return d.id=d.id||this.nextId++,u.setAttribute("id","zr"+this._zrId+"-gradient-"+d.id),this.updateDom(d,u),this.addDom(u),u},m.prototype.update=function(d){var u=this;y.prototype.update.call(this,d,function(){var s=d.type,i=d._dom.tagName;s==="linear"&&i==="linearGradient"||s==="radial"&&i==="radialGradient"?u.updateDom(d,d._dom):(u.removeDom(d),u.add(d))})},m.prototype.updateDom=function(d,u){if(d.type==="linear")u.setAttribute("x1",d.x),u.setAttribute("y1",d.y),u.setAttribute("x2",d.x2),u.setAttribute("y2",d.y2);else if(d.type==="radial")u.setAttribute("cx",d.x),u.setAttribute("cy",d.y),u.setAttribute("r",d.r);else{x("Illegal gradient type.");return}d.global?u.setAttribute("gradientUnits","userSpaceOnUse"):u.setAttribute("gradientUnits","objectBoundingBox"),u.innerHTML="";for(var s=d.colorStops,i=0,t=s.length;i<t;++i){var o=this.createElement("stop");o.setAttribute("offset",s[i].offset*100+"%");var e=s[i].color;if(e.indexOf("rgba">-1)){var l=v.parse(e)[3],r=v.toHex(e);o.setAttribute("stop-color","#"+r),o.setAttribute("stop-opacity",l)}else o.setAttribute("stop-color",s[i].color);u.appendChild(o)}d._dom=u},m.prototype.markUsed=function(d){if(d.style){var u=d.style.fill;u&&u._dom&&y.prototype.markUsed.call(this,u._dom),u=d.style.stroke,u&&u._dom&&y.prototype.markUsed.call(this,u._dom)}};var p=m;R.exports=p},sdST:function(R,D,n){var y=n("hi0g");function f(x,v){return v=v||{},y(v.coordDimensions||[],x,{dimsDef:v.dimensionsDefine||x.dimensionsDefine,encodeDef:v.encodeDefine||x.encodeDefine,dimCount:v.dimensionsCount,encodeDefaulter:v.encodeDefaulter,generateCoord:v.generateCoord,generateCoordCount:v.generateCoordCount})}R.exports=f},seXi:function(R,D,n){var y=n("qZTm"),f=1,x=Object.prototype,v=x.hasOwnProperty;function m(p,d,u,s,i,t){var o=u&f,e=y(p),l=e.length,r=y(d),a=r.length;if(l!=a&&!o)return!1;for(var c=l;c--;){var h=e[c];if(!(o?h in d:v.call(d,h)))return!1}var g=t.get(p),A=t.get(d);if(g&&A)return g==d&&A==p;var b=!0;t.set(p,d),t.set(d,p);for(var S=o;++c<l;){h=e[c];var E=p[h],C=d[h];if(s)var _=o?s(C,E,h,d,p,t):s(E,C,h,p,d,t);if(!(_===void 0?E===C||i(E,C,u,s,t):_)){b=!1;break}S||(S=h=="constructor")}if(b&&!S){var T=p.constructor,w=d.constructor;T!=w&&"constructor"in p&&"constructor"in d&&!(typeof T=="function"&&T instanceof T&&typeof w=="function"&&w instanceof w)&&(b=!1)}return t.delete(p),t.delete(d),b}R.exports=m},shjB:function(R,D){var n=9007199254740991;function y(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=n}R.exports=y},sjKO:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=x;var y=30,f=12;function x(v,m){var p,d,u,s,i,t,o,e,l,r,a,c,h,g,A,b,S,E,C,_,T,w,O,I,k;p=v.state,d=v.next_in,I=v.input,u=d+(v.avail_in-5),s=v.next_out,k=v.output,i=s-(m-v.avail_out),t=s+(v.avail_out-257),o=p.dmax,e=p.wsize,l=p.whave,r=p.wnext,a=p.window,c=p.hold,h=p.bits,g=p.lencode,A=p.distcode,b=(1<<p.lenbits)-1,S=(1<<p.distbits)-1;e:do{h<15&&(c+=I[d++]<<h,h+=8,c+=I[d++]<<h,h+=8),E=g[c&b];t:for(;;){if(C=E>>>24,c>>>=C,h-=C,C=E>>>16&255,C===0)k[s++]=E&65535;else if(C&16){_=E&65535,C&=15,C&&(h<C&&(c+=I[d++]<<h,h+=8),_+=c&(1<<C)-1,c>>>=C,h-=C),h<15&&(c+=I[d++]<<h,h+=8,c+=I[d++]<<h,h+=8),E=A[c&S];r:for(;;){if(C=E>>>24,c>>>=C,h-=C,C=E>>>16&255,C&16){if(T=E&65535,C&=15,h<C&&(c+=I[d++]<<h,h+=8,h<C&&(c+=I[d++]<<h,h+=8)),T+=c&(1<<C)-1,T>o){v.msg="invalid distance too far back",p.mode=y;break e}if(c>>>=C,h-=C,C=s-i,T>C){if(C=T-C,C>l&&p.sane){v.msg="invalid distance too far back",p.mode=y;break e}if(w=0,O=a,r===0){if(w+=e-C,C<_){_-=C;do k[s++]=a[w++];while(--C);w=s-T,O=k}}else if(r<C){if(w+=e+r-C,C-=r,C<_){_-=C;do k[s++]=a[w++];while(--C);if(w=0,r<_){C=r,_-=C;do k[s++]=a[w++];while(--C);w=s-T,O=k}}}else if(w+=r-C,C<_){_-=C;do k[s++]=a[w++];while(--C);w=s-T,O=k}for(;_>2;)k[s++]=O[w++],k[s++]=O[w++],k[s++]=O[w++],_-=3;_&&(k[s++]=O[w++],_>1&&(k[s++]=O[w++]))}else{w=s-T;do k[s++]=k[w++],k[s++]=k[w++],k[s++]=k[w++],_-=3;while(_>2);_&&(k[s++]=k[w++],_>1&&(k[s++]=k[w++]))}}else if((C&64)===0){E=A[(E&65535)+(c&(1<<C)-1)];continue r}else{v.msg="invalid distance code",p.mode=y;break e}break}}else if((C&64)===0){E=g[(E&65535)+(c&(1<<C)-1)];continue t}else if(C&32){p.mode=f;break e}else{v.msg="invalid literal/length code",p.mode=y;break e}break}}while(d<u&&s<t);_=h>>3,d-=_,h-=_<<3,c&=(1<<h)-1,v.next_in=d,v.next_out=s,v.avail_in=d<u?5+(u-d):5-(d-u),v.avail_out=s<t?257+(t-s):257-(s-t),p.hold=c,p.bits=h;return}},szbU:function(R,D,n){var y=n("bYtY"),f=y.each;function x(m){var p=m&&m.visualMap;y.isArray(p)||(p=p?[p]:[]),f(p,function(d){if(!d)return;v(d,"splitList")&&!v(d,"pieces")&&(d.pieces=d.splitList,delete d.splitList);var u=d.pieces;u&&y.isArray(u)&&f(u,function(s){y.isObject(s)&&(v(s,"start")&&!v(s,"min")&&(s.min=s.start),v(s,"end")&&!v(s,"max")&&(s.max=s.end))})})}function v(m,p){return m&&m.hasOwnProperty&&m.hasOwnProperty(p)}R.exports=x},t23M:function(R,D,n){"use strict";var y=n("wx14"),f=n("q1tI"),x=n("Zm9Q"),v=n("Kwbf"),m=n("VTBJ"),p=n("U8pU"),d=n("m+aA"),u=n("c+Xe"),s=f.createContext(null);function i(M){var j=M.children,P=M.onBatchResize,X=f.useRef(0),F=f.useRef([]),U=f.useContext(s),K=f.useCallback(function(z,V,Q){X.current+=1;var G=X.current;F.current.push({size:z,element:V,data:Q}),Promise.resolve().then(function(){G===X.current&&(P==null||P(F.current),F.current=[])}),U==null||U(z,V,Q)},[P,U]);return f.createElement(s.Provider,{value:K},j)}var t=n("bdgK"),o=new Map;function e(M){M.forEach(function(j){var P,X=j.target;(P=o.get(X))===null||P===void 0||P.forEach(function(F){return F(X)})})}var l=new t.default(e),r=null,a=null;function c(M,j){o.has(M)||(o.set(M,new Set),l.observe(M)),o.get(M).add(j)}function h(M,j){o.has(M)&&(o.get(M).delete(j),o.get(M).size||(l.unobserve(M),o.delete(M)))}var g=n("1OyB"),A=n("vuIU"),b=n("Ji7U"),S=n("LK+K"),E=function(M){Object(b.a)(P,M);var j=Object(S.a)(P);function P(){return Object(g.a)(this,P),j.apply(this,arguments)}return Object(A.a)(P,[{key:"render",value:function(){return this.props.children}}]),P}(f.Component);function C(M,j){var P=M.children,X=M.disabled,F=f.useRef(null),U=f.useRef(null),K=f.useContext(s),z=typeof P=="function",V=z?P(F):P,Q=f.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),G=!z&&f.isValidElement(V)&&Object(u.c)(V),te=G?V.ref:null,q=Object(u.d)(te,F),se=function(){var Me;return Object(d.a)(F.current)||(F.current&&Object(p.a)(F.current)==="object"?Object(d.a)((Me=F.current)===null||Me===void 0?void 0:Me.nativeElement):null)||Object(d.a)(U.current)};f.useImperativeHandle(j,function(){return se()});var re=f.useRef(M);re.current=M;var xe=f.useCallback(function(Oe){var Me=re.current,Qe=Me.onResize,Ve=Me.data,ut=Oe.getBoundingClientRect(),Fe=ut.width,ue=ut.height,et=Oe.offsetWidth,he=Oe.offsetHeight,J=Math.floor(Fe),Y=Math.floor(ue);if(Q.current.width!==J||Q.current.height!==Y||Q.current.offsetWidth!==et||Q.current.offsetHeight!==he){var $={width:J,height:Y,offsetWidth:et,offsetHeight:he};Q.current=$;var de=et===Math.round(Fe)?Fe:et,be=he===Math.round(ue)?ue:he,Ce=Object(m.a)(Object(m.a)({},$),{},{offsetWidth:de,offsetHeight:be});K==null||K(Ce,Oe,Ve),Qe&&Promise.resolve().then(function(){Qe(Ce,Oe)})}},[]);return f.useEffect(function(){var Oe=se();return Oe&&!X&&c(Oe,xe),function(){return h(Oe,xe)}},[F.current,X]),f.createElement(E,{ref:U},G?f.cloneElement(V,{ref:q}):V)}var _=f.forwardRef(C),T=_,w="rc-observer-key";function O(M,j){var P=M.children,X=typeof P=="function"?[P]:Object(x.a)(P);return X.map(function(F,U){var K=(F==null?void 0:F.key)||"".concat(w,"-").concat(U);return f.createElement(T,Object(y.a)({},M,{key:K,ref:U===0?j:void 0}),F)})}var I=f.forwardRef(O);I.Collection=i;var k=D.a=I},t3Fx:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=Object.assign||function(a){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(a[g]=h[g])}return a},f=function(){function a(c,h){for(var g=0;g<h.length;g++){var A=h[g];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(c,A.key,A)}}return function(c,h,g){return h&&a(c.prototype,h),g&&a(c,g),c}}(),x=n("q1tI"),v=t(x),m=n("17x9"),p=t(m),d=n("tkwv"),u=t(d),s=n("u3os"),i=n("kzFp");function t(a){return a&&a.__esModule?a:{default:a}}function o(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function")}function e(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:a}function l(a,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}var r=function(a){l(c,a);function c(h){o(this,c);var g=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,h));return g.getEchartsInstance=function(){return g.echartsLib.getInstanceByDom(g.echartsElement)||g.echartsLib.init(g.echartsElement,g.props.theme,g.props.opts)},g.dispose=function(){if(g.echartsElement){try{(0,s.clear)(g.echartsElement)}catch(A){console.warn(A)}g.echartsLib.dispose(g.echartsElement)}},g.rerender=function(){var A=g.props,b=A.onEvents,S=A.onChartReady,E=g.renderEchartDom();g.bindEvents(E,b||{}),typeof S=="function"&&g.props.onChartReady(E),g.echartsElement&&(0,s.bind)(g.echartsElement,function(){try{E.resize()}catch(C){console.warn(C)}})},g.bindEvents=function(A,b){var S=function(_,T){typeof _=="string"&&typeof T=="function"&&A.on(_,function(w){T(w,A)})};for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&S(E,b[E])},g.renderEchartDom=function(){var A=g.getEchartsInstance();return A.setOption(g.props.option,g.props.notMerge||!1,g.props.lazyUpdate||!1),g.props.showLoading?A.showLoading(g.props.loadingOption||null):A.hideLoading(),A},g.echartsLib=h.echarts,g.echartsElement=null,g}return f(c,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(g){if(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(g,this.props))return;if(!(0,u.default)(g.theme,this.props.theme)||!(0,u.default)(g.opts,this.props.opts)||!(0,u.default)(g.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var A=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if((0,u.default)((0,i.pick)(this.props,A),(0,i.pick)(g,A)))return;var b=this.renderEchartDom();if(!(0,u.default)(g.style,this.props.style)||!(0,u.default)(g.className,this.props.className))try{b.resize()}catch(S){console.warn(S)}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var g=this,A=this.props,b=A.style,S=A.className,E=y({height:300},b);return v.default.createElement("div",{ref:function(_){g.echartsElement=_},style:E,className:"echarts-for-react "+S})}}]),c}(x.Component);D.default=r,r.propTypes={option:p.default.object.isRequired,echarts:p.default.object,notMerge:p.default.bool,lazyUpdate:p.default.bool,style:p.default.object,className:p.default.string,theme:p.default.oneOfType([p.default.string,p.default.object]),onChartReady:p.default.func,showLoading:p.default.bool,loadingOption:p.default.object,onEvents:p.default.object,opts:p.default.shape({devicePixelRatio:p.default.number,renderer:p.default.oneOf(["canvas","svg"]),width:p.default.oneOfType([p.default.number,p.default.oneOf([null,void 0,"auto"])]),height:p.default.oneOfType([p.default.number,p.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:p.default.func},r.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},tBnm:function(R,D,n){var y=n("bYtY"),f=n("IwbS"),x=n("Qxkt"),v=n("Znkb"),m=n("+rIm"),p=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function d(t,o,e){o[1]>o[0]&&(o=o.slice().reverse());var l=t.coordToPoint([o[0],e]),r=t.coordToPoint([o[1],e]);return{x1:l[0],y1:l[1],x2:r[0],y2:r[1]}}function u(t){var o=t.getRadiusAxis();return o.inverse?0:1}function s(t){var o=t[0],e=t[t.length-1];o&&e&&Math.abs(Math.abs(o.coord-e.coord)-360)<1e-4&&t.pop()}var i=v.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,o){if(this.group.removeAll(),!t.get("show"))return;var e=t.axis,l=e.polar,r=l.getRadiusAxis().getExtent(),a=e.getTicksCoords(),c=e.getMinorTicksCoords(),h=y.map(e.getViewLabels(),function(g){var g=y.clone(g);return g.coord=e.dataToCoord(g.tickValue),g});s(h),s(a),y.each(p,function(g){t.get(g+".show")&&(!e.scale.isBlank()||g==="axisLine")&&this["_"+g](t,l,a,c,r,h)},this)},_axisLine:function(t,o,e,l,r){var a=t.getModel("axisLine.lineStyle"),c=u(o),h=c?0:1,g;r[h]===0?g=new f.Circle({shape:{cx:o.cx,cy:o.cy,r:r[c]},style:a.getLineStyle(),z2:1,silent:!0}):g=new f.Ring({shape:{cx:o.cx,cy:o.cy,r:r[c],r0:r[h]},style:a.getLineStyle(),z2:1,silent:!0}),g.style.fill=null,this.group.add(g)},_axisTick:function(t,o,e,l,r){var a=t.getModel("axisTick"),c=(a.get("inside")?-1:1)*a.get("length"),h=r[u(o)],g=y.map(e,function(A){return new f.Line({shape:d(o,[h,h+c],A.coord)})});this.group.add(f.mergePath(g,{style:y.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_minorTick:function(t,o,e,l,r){if(!l.length)return;for(var a=t.getModel("axisTick"),c=t.getModel("minorTick"),h=(a.get("inside")?-1:1)*c.get("length"),g=r[u(o)],A=[],b=0;b<l.length;b++)for(var S=0;S<l[b].length;S++)A.push(new f.Line({shape:d(o,[g,g+h],l[b][S].coord)}));this.group.add(f.mergePath(A,{style:y.defaults(c.getModel("lineStyle").getLineStyle(),y.defaults(a.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}))}))},_axisLabel:function(t,o,e,l,r,a){var c=t.getCategories(!0),h=t.getModel("axisLabel"),g=h.get("margin"),A=t.get("triggerEvent");y.each(a,function(b,S){var E=h,C=b.tickValue,_=r[u(o)],T=o.coordToPoint([_+g,b.coord]),w=o.cx,O=o.cy,I=Math.abs(T[0]-w)/_<.3?"center":T[0]>w?"left":"right",k=Math.abs(T[1]-O)/_<.3?"middle":T[1]>O?"top":"bottom";c&&c[C]&&c[C].textStyle&&(E=new x(c[C].textStyle,h,h.ecModel));var M=new f.Text({silent:m.isLabelSilent(t)});this.group.add(M),f.setTextStyle(M.style,E,{x:T[0],y:T[1],textFill:E.getTextColor()||t.get("axisLine.lineStyle.color"),text:b.formattedLabel,textAlign:I,textVerticalAlign:k}),A&&(M.eventData=m.makeAxisEventDataBase(t),M.eventData.targetType="axisLabel",M.eventData.value=b.rawLabel)},this)},_splitLine:function(t,o,e,l,r){var a=t.getModel("splitLine"),c=a.getModel("lineStyle"),h=c.get("color"),g=0;h=h instanceof Array?h:[h];for(var A=[],b=0;b<e.length;b++){var S=g++%h.length;A[S]=A[S]||[],A[S].push(new f.Line({shape:d(o,r,e[b].coord)}))}for(var b=0;b<A.length;b++)this.group.add(f.mergePath(A[b],{style:y.defaults({stroke:h[b%h.length]},c.getLineStyle()),silent:!0,z:t.get("z")}))},_minorSplitLine:function(t,o,e,l,r){if(!l.length)return;for(var a=t.getModel("minorSplitLine"),c=a.getModel("lineStyle"),h=[],g=0;g<l.length;g++)for(var A=0;A<l[g].length;A++)h.push(new f.Line({shape:d(o,r,l[g][A].coord)}));this.group.add(f.mergePath(h,{style:c.getLineStyle(),silent:!0,z:t.get("z")}))},_splitArea:function(t,o,e,l,r){if(!e.length)return;var a=t.getModel("splitArea"),c=a.getModel("areaStyle"),h=c.get("color"),g=0;h=h instanceof Array?h:[h];for(var A=[],b=Math.PI/180,S=-e[0].coord*b,E=Math.min(r[0],r[1]),C=Math.max(r[0],r[1]),_=t.get("clockwise"),T=1;T<e.length;T++){var w=g++%h.length;A[w]=A[w]||[],A[w].push(new f.Sector({shape:{cx:o.cx,cy:o.cy,r0:E,r:C,startAngle:S,endAngle:-e[T].coord*b,clockwise:_},silent:!0})),S=-e[T].coord*b}for(var T=0;T<A.length;T++)this.group.add(f.mergePath(A[T],{style:y.defaults({fill:h[T%h.length]},c.getAreaStyle()),silent:!0}))}});R.exports=i},tMB7:function(R,D,n){var y=n("y1pI");function f(x){var v=this.__data__,m=y(v,x);return m<0?void 0:v[m][1]}R.exports=f},tSko:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("SRve")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="PlusOutlined";var i=v.forwardRef(s);D.default=i},tU7J:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("/qDX"),v=n.n(x),m=n("5Dmo"),p=n("5NDa")},tadb:function(R,D,n){var y=n("Cwc5"),f=n("Kz5y"),x=y(f,"DataView");R.exports=x},tceW:function(R,D,n){var y=n("KCsZ"),f=y([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),x={getBarItemStyle:function(v){var m=f(this,v);if(this.getBorderLineDash){var p=this.getBorderLineDash();p&&(m.lineDash=p)}return m}};R.exports=x},tkwv:function(R,D,n){"use strict";var y=Array.isArray,f=Object.keys,x=Object.prototype.hasOwnProperty;R.exports=function v(m,p){if(m===p)return!0;if(m&&p&&typeof m=="object"&&typeof p=="object"){var d=y(m),u=y(p),s,i,t;if(d&&u){if(i=m.length,i!=p.length)return!1;for(s=i;s--!==0;)if(!v(m[s],p[s]))return!1;return!0}if(d!=u)return!1;var o=m instanceof Date,e=p instanceof Date;if(o!=e)return!1;if(o&&e)return m.getTime()==p.getTime();var l=m instanceof RegExp,r=p instanceof RegExp;if(l!=r)return!1;if(l&&r)return m.toString()==p.toString();var a=f(m);if(i=a.length,i!==f(p).length)return!1;for(s=i;s--!==0;)if(!x.call(p,a[s]))return!1;for(s=i;s--!==0;)if(t=a[s],!v(m[t],p[t]))return!1;return!0}return m!==m&&p!==p}},txkQ:function(R,D,n){var y=n("aX58");D.zrender=y;var f=n("Fofx");D.matrix=f;var x=n("QBsz");D.vector=x;var v=n("bYtY"),m=n("Qe9p");D.color=m;var p=n("IwbS"),d=n("OELB");D.number=d;var u=n("7aKB");D.format=u;var s=n("iLNv"),i=s.throttle;D.throttle=s.throttle;var t=n("FUi9");D.helper=t;var o=n("vafp");D.parseGeoJSON=o;var e=n("YXkt");D.List=e;var l=n("Qxkt");D.Model=l;var r=n("hM6l");D.Axis=r;var a=n("ItGF");D.env=a;var c=o,h={};v.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(A){h[A]=v[A]});var g={};v.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(A){g[A]=p[A]}),D.parseGeoJson=c,D.util=h,D.graphic=g},u3DP:function(R,D,n){var y=n("6GrX"),f=n("OELB"),x=f.parsePercent,v=Math.PI/180;function m(s,i,t,o,e,l,r,a,c,h){s.sort(function(I,k){return I.y-k.y});function g(I,k,M,j){for(var P=I;P<k&&!(s[P].y+M>c+r);P++)if(s[P].y+=M,P>I&&P+1<k&&s[P+1].y>s[P].y+s[P].height){A(P,M/2);return}A(k-1,M/2)}function A(I,k){for(var M=I;M>=0&&!(s[M].y-k<c);M--)if(s[M].y-=k,M>0&&s[M].y>s[M-1].y+s[M-1].height)break}function b(I,k,M,j,P,X){for(var F=(X>0,k?Number.MAX_VALUE:0),U=0,K=I.length;U<K;U++){if(I[U].labelAlignTo!=="none")continue;var z=Math.abs(I[U].y-j),V=I[U].len,Q=I[U].len2,G=z<P+V?Math.sqrt((P+V+Q)*(P+V+Q)-z*z):Math.abs(I[U].x-M);k&&G>=F&&(G=F-10),!k&&G<=F&&(G=F+10),I[U].x=M+G*X,F=G}}for(var S=0,E,C=s.length,_=[],T=[],w=0;w<C;w++){if(s[w].position==="outer"&&s[w].labelAlignTo==="labelLine"){var O=s[w].x-h;s[w].linePoints[1][0]+=O,s[w].x=h}E=s[w].y-S,E<0&&g(w,C,-E,e),S=s[w].y+s[w].height}r-S<0&&A(C-1,S-r);for(var w=0;w<C;w++)s[w].y>=t?T.push(s[w]):_.push(s[w]);b(_,!1,i,t,o,e),b(T,!0,i,t,o,e)}function p(s,i,t,o,e,l,r,a){for(var c=[],h=[],g=Number.MAX_VALUE,A=-Number.MAX_VALUE,b=0;b<s.length;b++){if(d(s[b]))continue;s[b].x<i?(g=Math.min(g,s[b].x),c.push(s[b])):(A=Math.max(A,s[b].x),h.push(s[b]))}m(h,i,t,o,1,e,l,r,a,A),m(c,i,t,o,-1,e,l,r,a,g);for(var b=0;b<s.length;b++){var S=s[b];if(d(S))continue;var E=S.linePoints;if(E){var C=S.labelAlignTo==="edge",_=S.textRect.width,T;C?S.x<i?T=E[2][0]-S.labelDistance-r-S.labelMargin:T=r+e-S.labelMargin-E[2][0]-S.labelDistance:S.x<i?T=S.x-r-S.bleedMargin:T=r+e-S.x-S.bleedMargin,T<S.textRect.width&&(S.text=y.truncateText(S.text,T,S.font),S.labelAlignTo==="edge"&&(_=y.getWidth(S.text,S.font)));var w=E[1][0]-E[2][0];C?S.x<i?E[2][0]=r+S.labelMargin+_+S.labelDistance:E[2][0]=r+e-S.labelMargin-_-S.labelDistance:(S.x<i?E[2][0]=S.x+S.labelDistance:E[2][0]=S.x-S.labelDistance,E[1][0]=E[2][0]+w),E[1][1]=E[2][1]=S.y}}}function d(s){return s.position==="center"}function u(s,i,t,o,e,l){var r=s.getData(),a=[],c,h,g=!1,A=(s.get("minShowLabelAngle")||0)*v;r.each(function(b){var S=r.getItemLayout(b),E=r.getItemModel(b),C=E.getModel("label"),_=C.get("position")||E.get("emphasis.label.position"),T=C.get("distanceToLabelLine"),w=C.get("alignTo"),O=x(C.get("margin"),t),I=C.get("bleedMargin"),k=C.getFont(),M=E.getModel("labelLine"),j=M.get("length");j=x(j,t);var P=M.get("length2");if(P=x(P,t),S.angle<A)return;var X=(S.startAngle+S.endAngle)/2,F=Math.cos(X),U=Math.sin(X),K,z,V,Q;c=S.cx,h=S.cy;var G=s.getFormattedLabel(b,"normal")||r.getName(b),te=y.getBoundingRect(G,k,Q,"top"),q=_==="inside"||_==="inner";if(_==="center")K=S.cx,z=S.cy,Q="center";else{var se=(q?(S.r+S.r0)/2*F:S.r*F)+c,re=(q?(S.r+S.r0)/2*U:S.r*U)+h;if(K=se+F*3,z=re+U*3,!q){var xe=se+F*(j+i-S.r),Oe=re+U*(j+i-S.r),Me=xe+(F<0?-1:1)*P,Qe=Oe;w==="edge"?K=F<0?e+O:e+t-O:K=Me+(F<0?-T:T),z=Qe,V=[[se,re],[xe,Oe],[Me,Qe]]}Q=q?"center":w==="edge"?F>0?"right":"left":F>0?"left":"right"}var Ve,ut=C.get("rotate");typeof ut=="number"?Ve=ut*(Math.PI/180):Ve=ut?F<0?-X+Math.PI:-X:0,g=!!Ve,S.label={x:K,y:z,position:_,height:te.height,len:j,len2:P,linePoints:V,textAlign:Q,verticalAlign:"middle",rotation:Ve,inside:q,labelDistance:T,labelAlignTo:w,labelMargin:O,bleedMargin:I,textRect:te,text:G,font:k},q||a.push(S.label)}),!g&&s.get("avoidLabelOverlap")&&p(a,c,h,i,t,o,e,l)}R.exports=u},u3os:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ver=D.clear=D.bind=void 0;var y=n("P4Qj"),f=function(p,d){var u=(0,y.getSensor)(p);return u.bind(d),function(){u.unbind(d)}};D.bind=f;var x=function(p){var d=(0,y.getSensor)(p);(0,y.removeSensor)(d)};D.clear=x;var v="1.0.2";D.ver=v},u4NN:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("Uc92")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="EyeOutlined";var i=v.forwardRef(s);D.default=i},u8Dt:function(R,D,n){var y=n("YESw"),f="__lodash_hash_undefined__",x=Object.prototype,v=x.hasOwnProperty;function m(p){var d=this.__data__;if(y){var u=d[p];return u===f?void 0:u}return v.call(d,p)?d[p]:void 0}R.exports=m},u9fO:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("b80e"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},uAnK:function(R,D,n){var y=n("bYtY"),f=n("Kagy"),x=n("KxfA"),v=x.retrieveRawValue;function m(p,d){var u=d.getModel("aria");if(u.get("show")){if(u.get("description")){p.setAttribute("aria-label",u.get("description"));return}}else return;var s=0;d.eachSeries(function(b,S){++s},this);var i=u.get("data.maxCount")||10,t=u.get("series.maxCount")||10,o=Math.min(s,t),e;if(s<1)return;var l=g();l?e=c(h("general.withTitle"),{title:l}):e=h("general.withoutTitle");var r=[],a=s>1?"series.multiple.prefix":"series.single.prefix";e+=c(h(a),{seriesCount:s}),d.eachSeries(function(b,S){if(S<o){var E,C=b.get("name"),_="series."+(s>1?"multiple":"single")+".";E=h(C?_+"withName":_+"withoutName"),E=c(E,{seriesId:b.seriesIndex,seriesName:b.get("name"),seriesType:A(b.subType)});var T=b.getData();window.data=T,T.count()>i?E+=c(h("data.partialData"),{displayCnt:i}):E+=h("data.allData");for(var w=[],O=0;O<T.count();O++)if(O<i){var I=T.getName(O),k=v(T,O);w.push(c(h(I?"data.withName":"data.withoutName"),{name:I,value:k}))}E+=w.join(h("data.separator.middle"))+h("data.separator.end"),r.push(E)}}),e+=r.join(h("series.multiple.separator.middle"))+h("series.multiple.separator.end"),p.setAttribute("aria-label",e);function c(b,S){if(typeof b!="string")return b;var E=b;return y.each(S,function(C,_){E=E.replace(new RegExp("\\{\\s*"+_+"\\s*\\}","g"),C)}),E}function h(b){var S=u.get(b);if(S==null){for(var E=b.split("."),C=f.aria,_=0;_<E.length;++_)C=C[E[_]];return C}else return S}function g(){var b=d.getModel("title").option;return b&&b.length&&(b=b[0]),b&&b.text}function A(b){return f.series.typeNames[b]||"\u81EA\u5B9A\u4E49\u56FE"}}R.exports=m},uGsb:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("MlIO"),n("1uat"))})(this,function(y){return function(){var f=y,x=f.x64,v=x.Word,m=x.WordArray,p=f.algo,d=p.SHA512,u=p.SHA384=d.extend({_doReset:function(){this._hash=new m.init([new v.init(3418070365,3238371032),new v.init(1654270250,914150663),new v.init(2438529370,812702999),new v.init(355462360,4144912697),new v.init(1731405415,4290775857),new v.init(2394180231,1750603025),new v.init(3675008525,1694076839),new v.init(1203062813,3204075428)])},_doFinalize:function(){var i=d._doFinalize.call(this);return i.sigBytes-=16,i}});f.SHA384=d._createHelper(u),f.HmacSHA384=d._createHmacHelper(u)}(),y.SHA384})},uGxW:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.NoPadding={pad:function(){},unpad:function(){}},y.pad.NoPadding})},uK0f:function(R,D,n){(function(y,f){R.exports=f()})(this,function(){"use strict";function y(f,x,v){v=v||{},v.childrenKeyName=v.childrenKeyName||"children";var m=f||[],p=[],d=0;do{var u=m.filter(function(s){return x(s,d)})[0];if(!u)break;p.push(u),m=u[v.childrenKeyName]||[],d+=1}while(m.length>0);return p}return y})},uOyE:function(R,D,n){var y=n("ProS");y.registerAction({type:"brush",event:"brush"},function(f,x){x.eachComponent({mainType:"brush",query:f},function(v){v.setAreas(f.areas)})}),y.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),y.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})},uQRt:function(R,D,n){R.exports=y;function y(){return n("gaXo"),{}}},uciX:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("wx14"),x=n("1OyB"),v=n("vuIU"),m=n("JX7q"),p=n("Ji7U"),d=n("LK+K"),u=n("rePB"),s=n("q1tI"),i=n("i8i4"),t=n.n(i),o=n("wgJM"),e=n("l4aY"),l=n("m+aA"),r=n("c+Xe"),a=n("zT1h"),c=n("QC+M"),h=n("TSYQ"),g=n.n(h);function A(ue,et,he){return he?ue[0]===et[0]:ue[0]===et[0]&&ue[1]===et[1]}function b(ue,et,he){var J=ue[et]||{};return Object(y.a)(Object(y.a)({},J),he)}function S(ue,et,he,J){for(var Y=he.points,$=Object.keys(ue),de=0;de<$.length;de+=1){var be=$[de];if(A(ue[be].points,Y,J))return"".concat(et,"-placement-").concat(be)}return""}var E=n("ODXe"),C=n("Ff2n"),_=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ue=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(ue)||/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(ue==null?void 0:ue.substr(0,4))},T=n("8XRh");function w(ue){var et=ue.prefixCls,he=ue.motion,J=ue.animation,Y=ue.transitionName;return he||(J?{motionName:"".concat(et,"-").concat(J)}:Y?{motionName:Y}:null)}function O(ue){var et=ue.prefixCls,he=ue.visible,J=ue.zIndex,Y=ue.mask,$=ue.maskMotion,de=ue.maskAnimation,be=ue.maskTransitionName;if(!Y)return null;var Ce={};return($||be||de)&&(Ce=Object(y.a)({motionAppear:!0},w({motion:$,prefixCls:et,transitionName:be,animation:de}))),s.createElement(T.b,Object(f.a)({},Ce,{visible:he,removeOnLeave:!0}),function(Be){var fe=Be.className;return s.createElement("div",{style:{zIndex:J},className:g()("".concat(et,"-mask"),fe)})})}var I=n("9mu1"),k=n("TNol"),M=n("U8pU");function j(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */j=function(){return et};var ue,et={},he=Object.prototype,J=he.hasOwnProperty,Y=Object.defineProperty||function(At,ir,lr){At[ir]=lr.value},$=typeof Symbol=="function"?Symbol:{},de=$.iterator||"@@iterator",be=$.asyncIterator||"@@asyncIterator",Ce=$.toStringTag||"@@toStringTag";function Be(At,ir,lr){return Object.defineProperty(At,ir,{value:lr,enumerable:!0,configurable:!0,writable:!0}),At[ir]}try{Be({},"")}catch(At){Be=function(lr,dn,Ft){return lr[dn]=Ft}}function fe(At,ir,lr,dn){var Ft=ir&&ir.prototype instanceof er?ir:er,ur=Object.create(Ft.prototype),Jt=new Ht(dn||[]);return Y(ur,"_invoke",{value:oe(At,lr,Jt)}),ur}function we(At,ir,lr){try{return{type:"normal",arg:At.call(ir,lr)}}catch(dn){return{type:"throw",arg:dn}}}et.wrap=fe;var Re="suspendedStart",rt="suspendedYield",St="executing",ft="completed",He={};function er(){}function ct(){}function Kt(){}var fr={};Be(fr,de,function(){return this});var Gt=Object.getPrototypeOf,Pt=Gt&&Gt(Gt(vr([])));Pt&&Pt!==he&&J.call(Pt,de)&&(fr=Pt);var Xt=Kt.prototype=er.prototype=Object.create(fr);function Ge(At){["next","throw","return"].forEach(function(ir){Be(At,ir,function(lr){return this._invoke(ir,lr)})})}function pe(At,ir){function lr(Ft,ur,Jt,pt){var at=we(At[Ft],At,ur);if(at.type!=="throw"){var Pr=at.arg,un=Pr.value;return un&&Object(M.a)(un)=="object"&&J.call(un,"__await")?ir.resolve(un.__await).then(function(_n){lr("next",_n,Jt,pt)},function(_n){lr("throw",_n,Jt,pt)}):ir.resolve(un).then(function(_n){Pr.value=_n,Jt(Pr)},function(_n){return lr("throw",_n,Jt,pt)})}pt(at.arg)}var dn;Y(this,"_invoke",{value:function(ur,Jt){function pt(){return new ir(function(at,Pr){lr(ur,Jt,at,Pr)})}return dn=dn?dn.then(pt,pt):pt()}})}function oe(At,ir,lr){var dn=Re;return function(Ft,ur){if(dn===St)throw new Error("Generator is already running");if(dn===ft){if(Ft==="throw")throw ur;return{value:ue,done:!0}}for(lr.method=Ft,lr.arg=ur;;){var Jt=lr.delegate;if(Jt){var pt=lt(Jt,lr);if(pt){if(pt===He)continue;return pt}}if(lr.method==="next")lr.sent=lr._sent=lr.arg;else if(lr.method==="throw"){if(dn===Re)throw dn=ft,lr.arg;lr.dispatchException(lr.arg)}else lr.method==="return"&&lr.abrupt("return",lr.arg);dn=St;var at=we(At,ir,lr);if(at.type==="normal"){if(dn=lr.done?ft:rt,at.arg===He)continue;return{value:at.arg,done:lr.done}}at.type==="throw"&&(dn=ft,lr.method="throw",lr.arg=at.arg)}}}function lt(At,ir){var lr=ir.method,dn=At.iterator[lr];if(dn===ue)return ir.delegate=null,lr==="throw"&&At.iterator.return&&(ir.method="return",ir.arg=ue,lt(At,ir),ir.method==="throw")||lr!=="return"&&(ir.method="throw",ir.arg=new TypeError("The iterator does not provide a '"+lr+"' method")),He;var Ft=we(dn,At.iterator,ir.arg);if(Ft.type==="throw")return ir.method="throw",ir.arg=Ft.arg,ir.delegate=null,He;var ur=Ft.arg;return ur?ur.done?(ir[At.resultName]=ur.value,ir.next=At.nextLoc,ir.method!=="return"&&(ir.method="next",ir.arg=ue),ir.delegate=null,He):ur:(ir.method="throw",ir.arg=new TypeError("iterator result is not an object"),ir.delegate=null,He)}function qe(At){var ir={tryLoc:At[0]};1 in At&&(ir.catchLoc=At[1]),2 in At&&(ir.finallyLoc=At[2],ir.afterLoc=At[3]),this.tryEntries.push(ir)}function ge(At){var ir=At.completion||{};ir.type="normal",delete ir.arg,At.completion=ir}function Ht(At){this.tryEntries=[{tryLoc:"root"}],At.forEach(qe,this),this.reset(!0)}function vr(At){if(At||At===""){var ir=At[de];if(ir)return ir.call(At);if(typeof At.next=="function")return At;if(!isNaN(At.length)){var lr=-1,dn=function Ft(){for(;++lr<At.length;)if(J.call(At,lr))return Ft.value=At[lr],Ft.done=!1,Ft;return Ft.value=ue,Ft.done=!0,Ft};return dn.next=dn}}throw new TypeError(Object(M.a)(At)+" is not iterable")}return ct.prototype=Kt,Y(Xt,"constructor",{value:Kt,configurable:!0}),Y(Kt,"constructor",{value:ct,configurable:!0}),ct.displayName=Be(Kt,Ce,"GeneratorFunction"),et.isGeneratorFunction=function(At){var ir=typeof At=="function"&&At.constructor;return!!ir&&(ir===ct||(ir.displayName||ir.name)==="GeneratorFunction")},et.mark=function(At){return Object.setPrototypeOf?Object.setPrototypeOf(At,Kt):(At.__proto__=Kt,Be(At,Ce,"GeneratorFunction")),At.prototype=Object.create(Xt),At},et.awrap=function(At){return{__await:At}},Ge(pe.prototype),Be(pe.prototype,be,function(){return this}),et.AsyncIterator=pe,et.async=function(At,ir,lr,dn,Ft){Ft===void 0&&(Ft=Promise);var ur=new pe(fe(At,ir,lr,dn),Ft);return et.isGeneratorFunction(ir)?ur:ur.next().then(function(Jt){return Jt.done?Jt.value:ur.next()})},Ge(Xt),Be(Xt,Ce,"Generator"),Be(Xt,de,function(){return this}),Be(Xt,"toString",function(){return"[object Generator]"}),et.keys=function(At){var ir=Object(At),lr=[];for(var dn in ir)lr.push(dn);return lr.reverse(),function Ft(){for(;lr.length;){var ur=lr.pop();if(ur in ir)return Ft.value=ur,Ft.done=!1,Ft}return Ft.done=!0,Ft}},et.values=vr,Ht.prototype={constructor:Ht,reset:function(ir){if(this.prev=0,this.next=0,this.sent=this._sent=ue,this.done=!1,this.delegate=null,this.method="next",this.arg=ue,this.tryEntries.forEach(ge),!ir)for(var lr in this)lr.charAt(0)==="t"&&J.call(this,lr)&&!isNaN(+lr.slice(1))&&(this[lr]=ue)},stop:function(){this.done=!0;var ir=this.tryEntries[0].completion;if(ir.type==="throw")throw ir.arg;return this.rval},dispatchException:function(ir){if(this.done)throw ir;var lr=this;function dn(Pr,un){return Jt.type="throw",Jt.arg=ir,lr.next=Pr,un&&(lr.method="next",lr.arg=ue),!!un}for(var Ft=this.tryEntries.length-1;Ft>=0;--Ft){var ur=this.tryEntries[Ft],Jt=ur.completion;if(ur.tryLoc==="root")return dn("end");if(ur.tryLoc<=this.prev){var pt=J.call(ur,"catchLoc"),at=J.call(ur,"finallyLoc");if(pt&&at){if(this.prev<ur.catchLoc)return dn(ur.catchLoc,!0);if(this.prev<ur.finallyLoc)return dn(ur.finallyLoc)}else if(pt){if(this.prev<ur.catchLoc)return dn(ur.catchLoc,!0)}else{if(!at)throw new Error("try statement without catch or finally");if(this.prev<ur.finallyLoc)return dn(ur.finallyLoc)}}}},abrupt:function(ir,lr){for(var dn=this.tryEntries.length-1;dn>=0;--dn){var Ft=this.tryEntries[dn];if(Ft.tryLoc<=this.prev&&J.call(Ft,"finallyLoc")&&this.prev<Ft.finallyLoc){var ur=Ft;break}}ur&&(ir==="break"||ir==="continue")&&ur.tryLoc<=lr&&lr<=ur.finallyLoc&&(ur=null);var Jt=ur?ur.completion:{};return Jt.type=ir,Jt.arg=lr,ur?(this.method="next",this.next=ur.finallyLoc,He):this.complete(Jt)},complete:function(ir,lr){if(ir.type==="throw")throw ir.arg;return ir.type==="break"||ir.type==="continue"?this.next=ir.arg:ir.type==="return"?(this.rval=this.arg=ir.arg,this.method="return",this.next="end"):ir.type==="normal"&&lr&&(this.next=lr),He},finish:function(ir){for(var lr=this.tryEntries.length-1;lr>=0;--lr){var dn=this.tryEntries[lr];if(dn.finallyLoc===ir)return this.complete(dn.completion,dn.afterLoc),ge(dn),He}},catch:function(ir){for(var lr=this.tryEntries.length-1;lr>=0;--lr){var dn=this.tryEntries[lr];if(dn.tryLoc===ir){var Ft=dn.completion;if(Ft.type==="throw"){var ur=Ft.arg;ge(dn)}return ur}}throw new Error("illegal catch attempt")},delegateYield:function(ir,lr,dn){return this.delegate={iterator:vr(ir),resultName:lr,nextLoc:dn},this.method==="next"&&(this.arg=ue),He}},et}var P=n("HaE+"),X=n("dm2S"),F=["measure","alignPre","align",null,"motion"],U=function(ue,et){var he=Object(X.a)(null),J=Object(E.a)(he,2),Y=J[0],$=J[1],de=Object(s.useRef)();function be(fe){$(fe,!0)}function Ce(){o.a.cancel(de.current)}function Be(fe){Ce(),de.current=Object(o.a)(function(){be(function(we){switch(Y){case"align":return"motion";case"motion":return"stable";default:}return we}),fe==null||fe()})}return Object(s.useEffect)(function(){be("measure")},[ue]),Object(s.useEffect)(function(){switch(Y){case"measure":et();break;default:}Y&&(de.current=Object(o.a)(Object(P.a)(j().mark(function fe(){var we,Re;return j().wrap(function(St){for(;;)switch(St.prev=St.next){case 0:we=F.indexOf(Y),Re=F[we+1],Re&&we!==-1&&be(Re);case 3:case"end":return St.stop()}},fe)}))))},[Y]),Object(s.useEffect)(function(){return function(){Ce()}},[]),[Y,Be]},K=function(ue){var et=s.useState({width:0,height:0}),he=Object(E.a)(et,2),J=he[0],Y=he[1];function $(be){var Ce=be.offsetWidth,Be=be.offsetHeight,fe=be.getBoundingClientRect(),we=fe.width,Re=fe.height;Math.abs(Ce-we)<1&&Math.abs(Be-Re)<1&&(Ce=we,Be=Re),Y({width:Ce,height:Be})}var de=s.useMemo(function(){var be={};if(ue){var Ce=J.width,Be=J.height;ue.indexOf("height")!==-1&&Be?be.height=Be:ue.indexOf("minHeight")!==-1&&Be&&(be.minHeight=Be),ue.indexOf("width")!==-1&&Ce?be.width=Ce:ue.indexOf("minWidth")!==-1&&Ce&&(be.minWidth=Ce)}return be},[ue,J]);return[de,$]},z=s.forwardRef(function(ue,et){var he=ue.visible,J=ue.prefixCls,Y=ue.className,$=ue.style,de=ue.children,be=ue.zIndex,Ce=ue.stretch,Be=ue.destroyPopupOnHide,fe=ue.forceRender,we=ue.align,Re=ue.point,rt=ue.getRootDomNode,St=ue.getClassNameFromAlign,ft=ue.onAlign,He=ue.onMouseEnter,er=ue.onMouseLeave,ct=ue.onMouseDown,Kt=ue.onTouchStart,fr=ue.onClick,Gt=Object(s.useRef)(),Pt=Object(s.useRef)(),Xt=Object(s.useState)(),Ge=Object(E.a)(Xt,2),pe=Ge[0],oe=Ge[1],lt=K(Ce),qe=Object(E.a)(lt,2),ge=qe[0],Ht=qe[1];function vr(){Ce&&Ht(rt())}var At=U(he,vr),ir=Object(E.a)(At,2),lr=ir[0],dn=ir[1],Ft=Object(s.useState)(0),ur=Object(E.a)(Ft,2),Jt=ur[0],pt=ur[1],at=Object(s.useRef)();Object(k.a)(function(){lr==="alignPre"&&pt(0)},[lr]);function Pr(){return Re||rt}function un(){var xt;(xt=Gt.current)===null||xt===void 0||xt.forceAlign()}function _n(xt,De){var ke=St(De);pe!==ke&&oe(ke),pt(function(Pe){return Pe+1}),lr==="align"&&(ft==null||ft(xt,De))}Object(k.a)(function(){lr==="align"&&(Jt<3?un():dn(function(){var xt;(xt=at.current)===null||xt===void 0||xt.call(at)}))},[Jt]);var Xn=Object(y.a)({},w(ue));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(xt){var De=Xn[xt];Xn[xt]=function(ke,Pe){return dn(),De==null?void 0:De(ke,Pe)}});function xi(){return new Promise(function(xt){at.current=xt})}s.useEffect(function(){!Xn.motionName&&lr==="motion"&&dn()},[Xn.motionName,lr]),s.useImperativeHandle(et,function(){return{forceAlign:un,getElement:function(){return Pt.current}}});var Pn=Object(y.a)(Object(y.a)({},ge),{},{zIndex:be,opacity:lr==="motion"||lr==="stable"||!he?void 0:0,pointerEvents:!he&&lr!=="stable"?"none":void 0},$),Un=!0;we!=null&&we.points&&(lr==="align"||lr==="stable")&&(Un=!1);var $t=de;return s.Children.count(de)>1&&($t=s.createElement("div",{className:"".concat(J,"-content")},de)),s.createElement(T.b,Object(f.a)({visible:he,ref:Pt,leavedClassName:"".concat(J,"-hidden")},Xn,{onAppearPrepare:xi,onEnterPrepare:xi,removeOnLeave:Be,forceRender:fe}),function(xt,De){var ke=xt.className,Pe=xt.style,tt=g()(J,Y,pe,ke);return s.createElement(I.a,{target:Pr(),key:"popup",ref:Gt,monitorWindowResize:!0,disabled:Un,align:we,onAlign:_n},s.createElement("div",{ref:De,className:tt,onMouseEnter:He,onMouseLeave:er,onMouseDownCapture:ct,onTouchStartCapture:Kt,onClick:fr,style:Object(y.a)(Object(y.a)({},Pe),Pn)},$t))})});z.displayName="PopupInner";var V=z,Q=s.forwardRef(function(ue,et){var he=ue.prefixCls,J=ue.visible,Y=ue.zIndex,$=ue.children,de=ue.mobile;de=de===void 0?{}:de;var be=de.popupClassName,Ce=de.popupStyle,Be=de.popupMotion,fe=Be===void 0?{}:Be,we=de.popupRender,Re=ue.onClick,rt=s.useRef();s.useImperativeHandle(et,function(){return{forceAlign:function(){},getElement:function(){return rt.current}}});var St=Object(y.a)({zIndex:Y},Ce),ft=$;return s.Children.count($)>1&&(ft=s.createElement("div",{className:"".concat(he,"-content")},$)),we&&(ft=we(ft)),s.createElement(T.b,Object(f.a)({visible:J,ref:rt,removeOnLeave:!0},fe),function(He,er){var ct=He.className,Kt=He.style,fr=g()(he,be,ct);return s.createElement("div",{ref:er,className:fr,onClick:Re,style:Object(y.a)(Object(y.a)({},Kt),St)},ft)})});Q.displayName="MobilePopupInner";var G=Q,te=["visible","mobile"],q=s.forwardRef(function(ue,et){var he=ue.visible,J=ue.mobile,Y=Object(C.a)(ue,te),$=Object(s.useState)(he),de=Object(E.a)($,2),be=de[0],Ce=de[1],Be=Object(s.useState)(!1),fe=Object(E.a)(Be,2),we=fe[0],Re=fe[1],rt=Object(y.a)(Object(y.a)({},Y),{},{visible:be});Object(s.useEffect)(function(){Ce(he),he&&J&&Re(_())},[he,J]);var St=we?s.createElement(G,Object(f.a)({},rt,{mobile:J,ref:et})):s.createElement(V,Object(f.a)({},rt,{ref:et}));return s.createElement("div",null,s.createElement(O,rt),St)});q.displayName="Popup";var se=q,re=s.createContext(null),xe=re;function Oe(){}function Me(){return""}function Qe(ue){return ue?ue.ownerDocument:window.document}var Ve=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ut(ue){var et=function(he){Object(p.a)(Y,he);var J=Object(d.a)(Y);function Y($){var de;Object(x.a)(this,Y),de=J.call(this,$),Object(u.a)(Object(m.a)(de),"popupRef",s.createRef()),Object(u.a)(Object(m.a)(de),"triggerRef",s.createRef()),Object(u.a)(Object(m.a)(de),"portalContainer",void 0),Object(u.a)(Object(m.a)(de),"attachId",void 0),Object(u.a)(Object(m.a)(de),"clickOutsideHandler",void 0),Object(u.a)(Object(m.a)(de),"touchOutsideHandler",void 0),Object(u.a)(Object(m.a)(de),"contextMenuOutsideHandler1",void 0),Object(u.a)(Object(m.a)(de),"contextMenuOutsideHandler2",void 0),Object(u.a)(Object(m.a)(de),"mouseDownTimeout",void 0),Object(u.a)(Object(m.a)(de),"focusTime",void 0),Object(u.a)(Object(m.a)(de),"preClickTime",void 0),Object(u.a)(Object(m.a)(de),"preTouchTime",void 0),Object(u.a)(Object(m.a)(de),"delayTimer",void 0),Object(u.a)(Object(m.a)(de),"hasPopupMouseDown",void 0),Object(u.a)(Object(m.a)(de),"onMouseEnter",function(Ce){var Be=de.props.mouseEnterDelay;de.fireEvents("onMouseEnter",Ce),de.delaySetPopupVisible(!0,Be,Be?null:Ce)}),Object(u.a)(Object(m.a)(de),"onMouseMove",function(Ce){de.fireEvents("onMouseMove",Ce),de.setPoint(Ce)}),Object(u.a)(Object(m.a)(de),"onMouseLeave",function(Ce){de.fireEvents("onMouseLeave",Ce),de.delaySetPopupVisible(!1,de.props.mouseLeaveDelay)}),Object(u.a)(Object(m.a)(de),"onPopupMouseEnter",function(){de.clearDelayTimer()}),Object(u.a)(Object(m.a)(de),"onPopupMouseLeave",function(Ce){var Be;if(Ce.relatedTarget&&!Ce.relatedTarget.setTimeout&&Object(e.a)((Be=de.popupRef.current)===null||Be===void 0?void 0:Be.getElement(),Ce.relatedTarget))return;de.delaySetPopupVisible(!1,de.props.mouseLeaveDelay)}),Object(u.a)(Object(m.a)(de),"onFocus",function(Ce){de.fireEvents("onFocus",Ce),de.clearDelayTimer(),de.isFocusToShow()&&(de.focusTime=Date.now(),de.delaySetPopupVisible(!0,de.props.focusDelay))}),Object(u.a)(Object(m.a)(de),"onMouseDown",function(Ce){de.fireEvents("onMouseDown",Ce),de.preClickTime=Date.now()}),Object(u.a)(Object(m.a)(de),"onTouchStart",function(Ce){de.fireEvents("onTouchStart",Ce),de.preTouchTime=Date.now()}),Object(u.a)(Object(m.a)(de),"onBlur",function(Ce){de.fireEvents("onBlur",Ce),de.clearDelayTimer(),de.isBlurToHide()&&de.delaySetPopupVisible(!1,de.props.blurDelay)}),Object(u.a)(Object(m.a)(de),"onContextMenu",function(Ce){Ce.preventDefault(),de.fireEvents("onContextMenu",Ce),de.setPopupVisible(!0,Ce)}),Object(u.a)(Object(m.a)(de),"onContextMenuClose",function(){de.isContextMenuToShow()&&de.close()}),Object(u.a)(Object(m.a)(de),"onClick",function(Ce){if(de.fireEvents("onClick",Ce),de.focusTime){var Be;if(de.preClickTime&&de.preTouchTime?Be=Math.min(de.preClickTime,de.preTouchTime):de.preClickTime?Be=de.preClickTime:de.preTouchTime&&(Be=de.preTouchTime),Math.abs(Be-de.focusTime)<20)return;de.focusTime=0}de.preClickTime=0,de.preTouchTime=0,de.isClickToShow()&&(de.isClickToHide()||de.isBlurToHide())&&Ce&&Ce.preventDefault&&Ce.preventDefault();var fe=!de.state.popupVisible;(de.isClickToHide()&&!fe||fe&&de.isClickToShow())&&de.setPopupVisible(!de.state.popupVisible,Ce)}),Object(u.a)(Object(m.a)(de),"onPopupMouseDown",function(){if(de.hasPopupMouseDown=!0,clearTimeout(de.mouseDownTimeout),de.mouseDownTimeout=window.setTimeout(function(){de.hasPopupMouseDown=!1},0),de.context){var Ce;(Ce=de.context).onPopupMouseDown.apply(Ce,arguments)}}),Object(u.a)(Object(m.a)(de),"onDocumentClick",function(Ce){if(de.props.mask&&!de.props.maskClosable)return;var Be=Ce.target,fe=de.getRootDomNode(),we=de.getPopupDomNode();(!Object(e.a)(fe,Be)||de.isContextMenuOnly())&&!Object(e.a)(we,Be)&&!de.hasPopupMouseDown&&de.close()}),Object(u.a)(Object(m.a)(de),"getRootDomNode",function(){var Ce=de.props.getTriggerDOMNode;if(Ce)return Ce(de.triggerRef.current);try{var Be=Object(l.a)(de.triggerRef.current);if(Be)return Be}catch(fe){}return t.a.findDOMNode(Object(m.a)(de))}),Object(u.a)(Object(m.a)(de),"getPopupClassNameFromAlign",function(Ce){var Be=[],fe=de.props,we=fe.popupPlacement,Re=fe.builtinPlacements,rt=fe.prefixCls,St=fe.alignPoint,ft=fe.getPopupClassNameFromAlign;return we&&Re&&Be.push(S(Re,rt,Ce,St)),ft&&Be.push(ft(Ce)),Be.join(" ")}),Object(u.a)(Object(m.a)(de),"getComponent",function(){var Ce=de.props,Be=Ce.prefixCls,fe=Ce.destroyPopupOnHide,we=Ce.popupClassName,Re=Ce.onPopupAlign,rt=Ce.popupMotion,St=Ce.popupAnimation,ft=Ce.popupTransitionName,He=Ce.popupStyle,er=Ce.mask,ct=Ce.maskAnimation,Kt=Ce.maskTransitionName,fr=Ce.maskMotion,Gt=Ce.zIndex,Pt=Ce.popup,Xt=Ce.stretch,Ge=Ce.alignPoint,pe=Ce.mobile,oe=Ce.forceRender,lt=Ce.onPopupClick,qe=de.state,ge=qe.popupVisible,Ht=qe.point,vr=de.getPopupAlign(),At={};return de.isMouseEnterToShow()&&(At.onMouseEnter=de.onPopupMouseEnter),de.isMouseLeaveToHide()&&(At.onMouseLeave=de.onPopupMouseLeave),At.onMouseDown=de.onPopupMouseDown,At.onTouchStart=de.onPopupMouseDown,s.createElement(se,Object(f.a)({prefixCls:Be,destroyPopupOnHide:fe,visible:ge,point:Ge&&Ht,className:we,align:vr,onAlign:Re,animation:St,getClassNameFromAlign:de.getPopupClassNameFromAlign},At,{stretch:Xt,getRootDomNode:de.getRootDomNode,style:He,mask:er,zIndex:Gt,transitionName:ft,maskAnimation:ct,maskTransitionName:Kt,maskMotion:fr,ref:de.popupRef,motion:rt,mobile:pe,forceRender:oe,onClick:lt}),typeof Pt=="function"?Pt():Pt)}),Object(u.a)(Object(m.a)(de),"attachParent",function(Ce){o.a.cancel(de.attachId);var Be=de.props,fe=Be.getPopupContainer,we=Be.getDocument,Re=de.getRootDomNode(),rt;fe?(Re||fe.length===0)&&(rt=fe(Re)):rt=we(de.getRootDomNode()).body,rt?rt.appendChild(Ce):de.attachId=Object(o.a)(function(){de.attachParent(Ce)})}),Object(u.a)(Object(m.a)(de),"getContainer",function(){if(!de.portalContainer){var Ce=de.props.getDocument,Be=Ce(de.getRootDomNode()).createElement("div");Be.style.position="absolute",Be.style.top="0",Be.style.left="0",Be.style.width="100%",de.portalContainer=Be}return de.attachParent(de.portalContainer),de.portalContainer}),Object(u.a)(Object(m.a)(de),"setPoint",function(Ce){var Be=de.props.alignPoint;if(!Be||!Ce)return;de.setState({point:{pageX:Ce.pageX,pageY:Ce.pageY}})}),Object(u.a)(Object(m.a)(de),"handlePortalUpdate",function(){de.state.prevPopupVisible!==de.state.popupVisible&&de.props.afterPopupVisibleChange(de.state.popupVisible)}),Object(u.a)(Object(m.a)(de),"triggerContextValue",{onPopupMouseDown:de.onPopupMouseDown});var be;return"popupVisible"in $?be=!!$.popupVisible:be=!!$.defaultPopupVisible,de.state={prevPopupVisible:be,popupVisible:be},Ve.forEach(function(Ce){de["fire".concat(Ce)]=function(Be){de.fireEvents(Ce,Be)}}),de}return Object(v.a)(Y,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var de=this.props,be=this.state;if(be.popupVisible){var Ce;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ce=de.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(a.a)(Ce,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ce=Ce||de.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(a.a)(Ce,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ce=Ce||de.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(a.a)(Ce,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(a.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),o.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var de;return((de=this.popupRef.current)===null||de===void 0?void 0:de.getElement())||null}},{key:"getPopupAlign",value:function(){var de=this.props,be=de.popupPlacement,Ce=de.popupAlign,Be=de.builtinPlacements;return be&&Be?b(Be,be,Ce):Ce}},{key:"setPopupVisible",value:function(de,be){var Ce=this.props.alignPoint,Be=this.state.popupVisible;this.clearDelayTimer(),Be!==de&&("popupVisible"in this.props||this.setState({popupVisible:de,prevPopupVisible:Be}),this.props.onPopupVisibleChange(de)),Ce&&be&&de&&this.setPoint(be)}},{key:"delaySetPopupVisible",value:function(de,be,Ce){var Be=this,fe=be*1e3;if(this.clearDelayTimer(),fe){var we=Ce?{pageX:Ce.pageX,pageY:Ce.pageY}:null;this.delayTimer=window.setTimeout(function(){Be.setPopupVisible(de,we),Be.clearDelayTimer()},fe)}else this.setPopupVisible(de,Ce)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(de){var be=this.props.children.props,Ce=this.props;return be[de]&&Ce[de]?this["fire".concat(de)]:be[de]||Ce[de]}},{key:"isClickToShow",value:function(){var de=this.props,be=de.action,Ce=de.showAction;return be.indexOf("click")!==-1||Ce.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var de=this.props.action;return de==="contextMenu"||de.length===1&&de[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var de=this.props,be=de.action,Ce=de.showAction;return be.indexOf("contextMenu")!==-1||Ce.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var de=this.props,be=de.action,Ce=de.hideAction;return be.indexOf("click")!==-1||Ce.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var de=this.props,be=de.action,Ce=de.showAction;return be.indexOf("hover")!==-1||Ce.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var de=this.props,be=de.action,Ce=de.hideAction;return be.indexOf("hover")!==-1||Ce.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var de=this.props,be=de.action,Ce=de.showAction;return be.indexOf("focus")!==-1||Ce.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var de=this.props,be=de.action,Ce=de.hideAction;return be.indexOf("focus")!==-1||Ce.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var de;(de=this.popupRef.current)===null||de===void 0||de.forceAlign()}}},{key:"fireEvents",value:function(de,be){var Ce=this.props.children.props[de];Ce&&Ce(be);var Be=this.props[de];Be&&Be(be)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var de=this.state.popupVisible,be=this.props,Ce=be.children,Be=be.forceRender,fe=be.alignPoint,we=be.className,Re=be.autoDestroy,rt=s.Children.only(Ce),St={key:"trigger"};this.isContextMenuToShow()?St.onContextMenu=this.onContextMenu:St.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(St.onClick=this.onClick,St.onMouseDown=this.onMouseDown,St.onTouchStart=this.onTouchStart):(St.onClick=this.createTwoChains("onClick"),St.onMouseDown=this.createTwoChains("onMouseDown"),St.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(St.onMouseEnter=this.onMouseEnter,fe&&(St.onMouseMove=this.onMouseMove)):St.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?St.onMouseLeave=this.onMouseLeave:St.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(St.onFocus=this.onFocus,St.onBlur=this.onBlur):(St.onFocus=this.createTwoChains("onFocus"),St.onBlur=this.createTwoChains("onBlur"));var ft=g()(rt&&rt.props&&rt.props.className,we);ft&&(St.className=ft);var He=Object(y.a)({},St);Object(r.c)(rt)&&(He.ref=Object(r.a)(this.triggerRef,rt.ref));var er=s.cloneElement(rt,He),ct;return(de||this.popupRef.current||Be)&&(ct=s.createElement(ue,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!de&&Re&&(ct=null),s.createElement(xe.Provider,{value:this.triggerContextValue},er,ct)}}],[{key:"getDerivedStateFromProps",value:function(de,be){var Ce=de.popupVisible,Be={};return Ce!==void 0&&be.popupVisible!==Ce&&(Be.popupVisible=Ce,Be.prevPopupVisible=be.popupVisible),Be}}]),Y}(s.Component);return Object(u.a)(et,"contextType",xe),Object(u.a)(et,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Me,getDocument:Qe,onPopupVisibleChange:Oe,afterPopupVisibleChange:Oe,onPopupAlign:Oe,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),et}var Fe=D.a=ut(c.a)},ugBc:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};D.default=y},v56E:function(R,D,n){},v5uJ:function(R,D,n){var y=n("ProS"),f=n("2B6p"),x=f.updateCenterAndZoom;y.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(v,m){m.eachComponent({mainType:"series",subType:"tree",query:v},function(p){var d=v.dataIndex,u=p.getData().tree,s=u.getNodeByDataIndex(d);s.isExpand=!s.isExpand})}),y.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(v,m){m.eachComponent({mainType:"series",subType:"tree",query:v},function(p){var d=p.coordinateSystem,u=x(d,v);p.setCenter&&p.setCenter(u.center),p.setZoom&&p.setZoom(u.zoom)})})},"vF/C":function(R,D,n){var y=n("bLfw");y.registerSubTypeDefaulter("visualMap",function(f){return!f.categories&&(!(f.pieces?f.pieces.length>0:f.splitNumber>0)||f.calculable)?"continuous":"piecewise"})},vKoX:function(R,D,n){var y=n("SrGk"),f=n("bYtY");function x(p,d){y.call(this,p,d,["filter"],"__filter_in_use__","_shadowDom")}f.inherits(x,y),x.prototype.addWithoutUpdate=function(p,d){if(d&&v(d.style)){var u;if(d._shadowDom){u=d._shadowDom;var s=this.getDefs(!0);s.contains(d._shadowDom)||this.addDom(u)}else u=this.add(d);this.markUsed(d);var i=u.getAttribute("id");p.style.filter="url(#"+i+")"}},x.prototype.add=function(p){var d=this.createElement("filter");return p._shadowDomId=p._shadowDomId||this.nextId++,d.setAttribute("id","zr"+this._zrId+"-shadow-"+p._shadowDomId),this.updateDom(p,d),this.addDom(d),d},x.prototype.update=function(p,d){var u=d.style;if(v(u)){var s=this;y.prototype.update.call(this,d,function(){s.updateDom(d,d._shadowDom)})}else this.remove(p,d)},x.prototype.remove=function(p,d){d._shadowDomId!=null&&(this.removeDom(p),p.style.filter="")},x.prototype.updateDom=function(p,d){var u=d.getElementsByTagName("feDropShadow");u.length===0?u=this.createElement("feDropShadow"):u=u[0];var s=p.style,i=p.scale&&p.scale[0]||1,t=p.scale&&p.scale[1]||1,o,e,l,r;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)o=s.shadowOffsetX||0,e=s.shadowOffsetY||0,l=s.shadowBlur,r=s.shadowColor;else if(s.textShadowBlur)o=s.textShadowOffsetX||0,e=s.textShadowOffsetY||0,l=s.textShadowBlur,r=s.textShadowColor;else{this.removeDom(d,s);return}u.setAttribute("dx",o/i),u.setAttribute("dy",e/t),u.setAttribute("flood-color",r);var a=l/2/i,c=l/2/t,h=a+" "+c;u.setAttribute("stdDeviation",h),d.setAttribute("x","-100%"),d.setAttribute("y","-100%"),d.setAttribute("width",Math.ceil(l/2*200)+"%"),d.setAttribute("height",Math.ceil(l/2*200)+"%"),d.appendChild(u),p._shadowDom=d},x.prototype.markUsed=function(p){p._shadowDom&&y.prototype.markUsed.call(this,p._shadowDom)};function v(p){return p&&(p.shadowBlur||p.shadowOffsetX||p.shadowOffsetY||p.textShadowBlur||p.textShadowOffsetX||p.textShadowOffsetY)}var m=x;R.exports=m},vL6D:function(R,D,n){var y=n("bYtY"),f=n("+rIm"),x=n("IwbS"),v=n("7bkD"),m=n("Znkb"),p=n("WN+l"),d=p.rectCoordAxisBuildSplitArea,u=p.rectCoordAxisHandleRemove,s=["axisLine","axisTickLabel","axisName"],i=["splitArea","splitLine"],t=m.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,l,r,a){var c=this.group;c.removeAll();var h=this._axisGroup;this._axisGroup=new x.Group;var g=v.layout(e),A=new f(e,g);y.each(s,A.add,A),c.add(this._axisGroup),c.add(A.getGroup()),y.each(i,function(b){e.get(b+".show")&&this["_"+b](e)},this),x.groupTransition(h,this._axisGroup,e),t.superCall(this,"render",e,l,r,a)},remove:function(){u(this)},_splitLine:function(e){var l=e.axis;if(l.scale.isBlank())return;var r=e.getModel("splitLine"),a=r.getModel("lineStyle"),c=a.get("width"),h=a.get("color");h=h instanceof Array?h:[h];for(var g=e.coordinateSystem.getRect(),A=l.isHorizontal(),b=[],S=0,E=l.getTicksCoords({tickModel:r}),C=[],_=[],T=0;T<E.length;++T){var w=l.toGlobalCoord(E[T].coord);A?(C[0]=w,C[1]=g.y,_[0]=w,_[1]=g.y+g.height):(C[0]=g.x,C[1]=w,_[0]=g.x+g.width,_[1]=w);var O=S++%h.length;b[O]=b[O]||[],b[O].push(new x.Line({subPixelOptimize:!0,shape:{x1:C[0],y1:C[1],x2:_[0],y2:_[1]},style:{lineWidth:c},silent:!0}))}for(var T=0;T<b.length;++T)this.group.add(x.mergePath(b[T],{style:{stroke:h[T%h.length],lineDash:a.getLineDash(c),lineWidth:c},silent:!0}))},_splitArea:function(e){d(this,this._axisGroup,e,e)}}),o=t;R.exports=o},vWvF:function(R,D,n){var y=n("Bq2U"),f=n("SUKs"),x=n("bYtY"),v=x.isString,m=x.isFunction,p=x.isObject,d=x.isArrayLike,u=x.indexOf,s=function(){this.animators=[]};s.prototype={constructor:s,animate:function(r,a){var c,h=!1,g=this,A=this.__zr;if(r){var b=r.split("."),S=g;h=b[0]==="shape";for(var E=0,C=b.length;E<C;E++){if(!S)continue;S=S[b[E]]}S&&(c=S)}else c=g;if(!c){f('Property "'+r+'" is not existed in element '+g.id);return}var _=g.animators,T=new y(c,a);return T.during(function(w){g.dirty(h)}).done(function(){_.splice(u(_,T),1)}),_.push(T),A&&A.animation.addAnimator(T),T},stopAnimation:function(r){for(var a=this.animators,c=a.length,h=0;h<c;h++)a[h].stop(r);return a.length=0,this},animateTo:function(r,a,c,h,g,A){i(this,r,a,c,h,g,A)},animateFrom:function(r,a,c,h,g,A){i(this,r,a,c,h,g,A,!0)}};function i(l,r,a,c,h,g,A,b){v(c)?(g=h,h=c,c=0):m(h)?(g=h,h="linear",c=0):m(c)?(g=c,c=0):m(a)?(g=a,a=500):a||(a=500),l.stopAnimation(),t(l,"",l,r,a,c,b);var S=l.animators.slice(),E=S.length;function C(){E--,E||g&&g()}E||g&&g();for(var _=0;_<S.length;_++)S[_].done(C).start(h,A)}function t(l,r,a,c,h,g,A){var b={},S=0;for(var E in c){if(!c.hasOwnProperty(E))continue;a[E]!=null?p(c[E])&&!d(c[E])?t(l,r?r+"."+E:E,a[E],c[E],h,g,A):(A?(b[E]=a[E],o(l,r,E,c[E])):b[E]=c[E],S++):c[E]!=null&&!A&&o(l,r,E,c[E])}S>0&&l.animate(r,!1).when(h==null?500:h,b).delay(g||0)}function o(l,r,a,c){if(!r)l.attr(a,c);else{var h={};h[r]={},h[r][a]=c,l.attr(h)}}var e=s;R.exports=e},vZ6x:function(R,D,n){var y=n("Tghj"),f=y.__DEV__,x=n("bYtY"),v=n("IwbS"),m=n("4NO4"),p=n("9KIM"),d=x.each,u=x.indexOf,s=x.curry,i=["dataToPoint","pointToData"],t=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function o(T,w,O){var I=this._targetInfoList=[],k={},M=r(w,T);d(a,function(j,P){(!O||!O.include||u(O.include,P)>=0)&&j(M,I,k)})}var e=o.prototype;e.setOutputRanges=function(T,w){this.matchOutputRanges(T,w,function(O,I,k){if((O.coordRanges||(O.coordRanges=[])).push(I),!O.coordRange){O.coordRange=I;var M=g[O.brushType](0,k,I);O.__rangeOffset={offset:b[O.brushType](M.values,O.range,[1,1]),xyMinMax:M.xyMinMax}}})},e.matchOutputRanges=function(T,w,O){d(T,function(I){var k=this.findTargetInfo(I,w);k&&k!==!0&&x.each(k.coordSyses,function(M){var j=g[I.brushType](1,M,I.range);O(I,j.values,M,w)})},this)},e.setInputRanges=function(T,w){d(T,function(O){var I=this.findTargetInfo(O,w);if(O.range=O.range||[],I&&I!==!0){O.panelId=I.panelId;var k=g[O.brushType](0,I.coordSys,O.coordRange),M=O.__rangeOffset;O.range=M?b[O.brushType](k.values,M.offset,E(k.xyMinMax,M.xyMinMax)):k.values}},this)},e.makePanelOpts=function(T,w){return x.map(this._targetInfoList,function(O){var I=O.getPanelRect();return{panelId:O.panelId,defaultBrushType:w&&w(O),clipPath:p.makeRectPanelClipPath(I),isTargetByCursor:p.makeRectIsTargetByCursor(I,T,O.coordSysModel),getLinearBrushOtherExtent:p.makeLinearBrushOtherExtent(I)}})},e.controlSeries=function(T,w,O){var I=this.findTargetInfo(T,O);return I===!0||I&&u(I.coordSyses,w.coordinateSystem)>=0},e.findTargetInfo=function(T,w){for(var O=this._targetInfoList,I=r(w,T),k=0;k<O.length;k++){var M=O[k],j=T.panelId;if(j){if(M.panelId===j)return M}else for(var k=0;k<c.length;k++)if(c[k](I,M))return M}return!0};function l(T){return T[0]>T[1]&&T.reverse(),T}function r(T,w){return m.parseFinder(T,w,{includeMainTypes:t})}var a={grid:function(T,w){var O=T.xAxisModels,I=T.yAxisModels,k=T.gridModels,M=x.createHashMap(),j={},P={};if(!O&&!I&&!k)return;d(O,function(X){var F=X.axis.grid.model;M.set(F.id,F),j[F.id]=!0}),d(I,function(X){var F=X.axis.grid.model;M.set(F.id,F),P[F.id]=!0}),d(k,function(X){M.set(X.id,X),j[X.id]=!0,P[X.id]=!0}),M.each(function(X){var F=X.coordinateSystem,U=[];d(F.getCartesians(),function(K,z){(u(O,K.getAxis("x").model)>=0||u(I,K.getAxis("y").model)>=0)&&U.push(K)}),w.push({panelId:"grid--"+X.id,gridModel:X,coordSysModel:X,coordSys:U[0],coordSyses:U,getPanelRect:h.grid,xAxisDeclared:j[X.id],yAxisDeclared:P[X.id]})})},geo:function(T,w){d(T.geoModels,function(O){var I=O.coordinateSystem;w.push({panelId:"geo--"+O.id,geoModel:O,coordSysModel:O,coordSys:I,coordSyses:[I],getPanelRect:h.geo})})}},c=[function(T,w){var O=T.xAxisModel,I=T.yAxisModel,k=T.gridModel;return!k&&O&&(k=O.axis.grid.model),!k&&I&&(k=I.axis.grid.model),k&&k===w.gridModel},function(T,w){var O=T.geoModel;return O&&O===w.geoModel}],h={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var T=this.coordSys,w=T.getBoundingRect().clone();return w.applyTransform(v.getTransform(T)),w}},g={lineX:s(A,0),lineY:s(A,1),rect:function(T,w,O){var I=w[i[T]]([O[0][0],O[1][0]]),k=w[i[T]]([O[0][1],O[1][1]]),M=[l([I[0],k[0]]),l([I[1],k[1]])];return{values:M,xyMinMax:M}},polygon:function(T,w,O){var I=[[Infinity,-Infinity],[Infinity,-Infinity]],k=x.map(O,function(M){var j=w[i[T]](M);return I[0][0]=Math.min(I[0][0],j[0]),I[1][0]=Math.min(I[1][0],j[1]),I[0][1]=Math.max(I[0][1],j[0]),I[1][1]=Math.max(I[1][1],j[1]),j});return{values:k,xyMinMax:I}}};function A(T,w,O,I){var k=O.getAxis(["x","y"][T]),M=l(x.map([0,1],function(P){return w?k.coordToData(k.toLocalCoord(I[P])):k.toGlobalCoord(k.dataToCoord(I[P]))})),j=[];return j[T]=M,j[1-T]=[NaN,NaN],{values:M,xyMinMax:j}}var b={lineX:s(S,0),lineY:s(S,1),rect:function(T,w,O){return[[T[0][0]-O[0]*w[0][0],T[0][1]-O[0]*w[0][1]],[T[1][0]-O[1]*w[1][0],T[1][1]-O[1]*w[1][1]]]},polygon:function(T,w,O){return x.map(T,function(I,k){return[I[0]-O[0]*w[k][0],I[1]-O[1]*w[k][1]]})}};function S(T,w,O,I){return[w[0]-I[T]*O[0],w[1]-I[T]*O[1]]}function E(T,w){var O=C(T),I=C(w),k=[O[0]/I[0],O[1]/I[1]];return isNaN(k[0])&&(k[0]=1),isNaN(k[1])&&(k[1]=1),k}function C(T){return T?[T[0][1]-T[0][0],T[1][1]-T[1][0]]:[NaN,NaN]}var _=o;R.exports=_},vZI5:function(R,D,n){var y=n("bYtY"),f=n("T4UG"),x=n("5GhG"),v=x.seriesModelMixin,m=f.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(d,u,s){var i=u.getItemLayout(d);return i&&s.rect(i.brushRect)}});y.mixin(m,v,!0);var p=m;R.exports=p},vafp:function(R,D,n){var y=n("bYtY"),f=n("8nly");function x(p){if(!p.UTF8Encoding)return p;var d=p.UTF8Scale;d==null&&(d=1024);for(var u=p.features,s=0;s<u.length;s++)for(var i=u[s],t=i.geometry,o=t.coordinates,e=t.encodeOffsets,l=0;l<o.length;l++){var r=o[l];if(t.type==="Polygon")o[l]=v(r,e[l],d);else if(t.type==="MultiPolygon")for(var a=0;a<r.length;a++){var c=r[a];r[a]=v(c,e[l][a],d)}}return p.UTF8Encoding=!1,p}function v(p,d,u){for(var s=[],i=d[0],t=d[1],o=0;o<p.length;o+=2){var e=p.charCodeAt(o)-64,l=p.charCodeAt(o+1)-64;e=e>>1^-(e&1),l=l>>1^-(l&1),e+=i,l+=t,i=e,t=l,s.push([e/u,l/u])}return s}function m(p,d){return x(p),y.map(y.filter(p.features,function(u){return u.geometry&&u.properties&&u.geometry.coordinates.length>0}),function(u){var s=u.properties,i=u.geometry,t=i.coordinates,o=[];i.type==="Polygon"&&o.push({type:"polygon",exterior:t[0],interiors:t.slice(1)}),i.type==="MultiPolygon"&&y.each(t,function(l){l[0]&&o.push({type:"polygon",exterior:l[0],interiors:l.slice(1)})});var e=new f(s[d||"name"],o,s.cp);return e.properties=s,e})}R.exports=m},vcCh:function(R,D,n){var y=n("ProS");n("0qV/"),y.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(f,x){x.eachComponent({mainType:"series",subType:"sankey",query:f},function(v){v.setNodePosition(f.dataIndex,[f.localX,f.localY])})})},vewr:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.getPointerEvent=y,D.stopEvent=f,D.setCapture=u,D.releaseCapture=s;function y(i){return i.changedTouches?i.changedTouches[0]:i.touches?i.touches[0]:i}function f(i){i.stopPropagation(),i.preventDefault()}var x=!1,v=null;document.captureElement=null;function m(i){if(x)return;var t=new i.constructor(i.type,i);x=!0,document.captureElement?document.captureElement.dispatchEvent(t):v.dispatchEvent(t),x=!1,i.stopPropagation(),t.defaultPrevented&&i.preventDefault(),i.type==="mouseup"&&s()}function p(){var i=document.getElementById("noVNC_mouse_capture_elem");i.style.cursor=window.getComputedStyle(document.captureElement).cursor}var d=new MutationObserver(p);function u(i){if(i.setCapture)i.setCapture(),document.captureElement=i,i.addEventListener("mouseup",s);else{s();var t=document.getElementById("noVNC_mouse_capture_elem");t===null&&(t=document.createElement("div"),t.id="noVNC_mouse_capture_elem",t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.width="100%",t.style.height="100%",t.style.zIndex=1e4,t.style.display="none",document.body.appendChild(t),t.addEventListener("contextmenu",m),t.addEventListener("mousemove",m),t.addEventListener("mouseup",m)),document.captureElement=i,d.observe(i,{attributes:!0}),p(),t.style.display="",window.addEventListener("mousemove",m),window.addEventListener("mouseup",m)}}function s(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;v=document.captureElement,document.captureElement=null,d.disconnect();var i=document.getElementById("noVNC_mouse_capture_elem");i.style.display="none",window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",m)}}},vg9a:function(R,D,n){},"vk+C":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("RZPm"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},w4Tj:function(R,D,n){"use strict";n.d(D,"a",function(){return x});var y=n("oZsa");function f(v,m){for(;!Object.prototype.hasOwnProperty.call(v,m)&&!(v=Object(y.a)(v),v===null););return v}function x(v,m,p){return typeof Reflect!="undefined"&&Reflect.get?x=Reflect.get:x=function(u,s,i){var t=f(u,s);if(!t)return;var o=Object.getOwnPropertyDescriptor(t,s);return o.get?o.get.call(i):o.value},x(v,m,p||v)}},w5pM:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="PlusCircleOutlined";var d=D.a=f.forwardRef(p)},w6Tc:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("apAg"));function f(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},w7YG:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var f=y,x=f.lib,v=x.StreamCipher,m=f.algo,p=m.RC4=v.extend({_doReset:function(){for(var i=this._key,t=i.words,o=i.sigBytes,e=this._S=[],l=0;l<256;l++)e[l]=l;for(var l=0,r=0;l<256;l++){var a=l%o,c=t[a>>>2]>>>24-a%4*8&255;r=(r+e[l]+c)%256;var h=e[l];e[l]=e[r],e[r]=h}this._i=this._j=0},_doProcessBlock:function(i,t){i[t]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var s=this._S,i=this._i,t=this._j,o=0,e=0;e<4;e++){i=(i+1)%256,t=(t+s[i])%256;var l=s[i];s[i]=s[t],s[t]=l,o|=s[(s[i]+s[t])%256]<<24-e*8}return this._i=i,this._j=t,o}f.RC4=v._createHelper(p);var u=m.RC4Drop=p.extend({cfg:p.cfg.extend({drop:192}),_doReset:function(){p._doReset.call(this);for(var i=this.cfg.drop;i>0;i--)d.call(this)}});f.RC4Drop=v._createHelper(u)}(),y.RC4})},wCAj:function(R,D,n){"use strict";var y=n("cDf5"),f=n.n(y),x=n("lSNA"),v=n.n(x),m=n("J4zp"),p=n.n(m),d=n("pVnL"),u=n.n(d),s=n("q1tI"),i=n("TSYQ"),t=n.n(i),o=n("BGR+"),e=n("rePB"),l=n("VTBJ"),r=n("KQm4"),a=n("U8pU"),c=n("ODXe"),h=n("Gytx"),g=n.n(h),A=n("Kwbf"),b=n("1OyB"),S=n("vuIU"),E=n("Ji7U"),C=n("LK+K"),_=n("m+aA"),T=n("Zm9Q"),w=n("c+Xe"),O=n("bdgK"),I="rc-observer-key",k=function(_t){Object(E.a)(Lr,_t);var Or=Object(C.a)(Lr);function Lr(){var rn;return Object(b.a)(this,Lr),rn=Or.apply(this,arguments),rn.resizeObserver=null,rn.childNode=null,rn.currentElement=null,rn.state={width:0,height:0,offsetHeight:0,offsetWidth:0},rn.onResize=function(xn){var Ln=rn.props.onResize,Sn=xn[0].target,ei=Sn.getBoundingClientRect(),Kn=ei.width,mi=ei.height,Fi=Sn.offsetWidth,bi=Sn.offsetHeight,Ii=Math.floor(Kn),Vi=Math.floor(mi);if(rn.state.width!==Ii||rn.state.height!==Vi||rn.state.offsetWidth!==Fi||rn.state.offsetHeight!==bi){var ea={width:Ii,height:Vi,offsetWidth:Fi,offsetHeight:bi};rn.setState(ea),Ln&&Promise.resolve().then(function(){Ln(Object(l.a)(Object(l.a)({},ea),{},{offsetWidth:Fi,offsetHeight:bi}))})}},rn.setChildNode=function(xn){rn.childNode=xn},rn}return Object(S.a)(Lr,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var xn=this.props.disabled;if(xn){this.destroyObserver();return}var Ln=Object(_.a)(this.childNode||this),Sn=Ln!==this.currentElement;Sn&&(this.destroyObserver(),this.currentElement=Ln),!this.resizeObserver&&Ln&&(this.resizeObserver=new O.default(this.onResize),this.resizeObserver.observe(Ln))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var xn=this.props.children,Ln=Object(T.a)(xn);if(Ln.length>1)Object(A.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Ln.length===0)return Object(A.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Sn=Ln[0];if(s.isValidElement(Sn)&&Object(w.c)(Sn)){var ei=Sn.ref;Ln[0]=s.cloneElement(Sn,{ref:Object(w.a)(ei,this.setChildNode)})}return Ln.length===1?Ln[0]:Ln.map(function(Kn,mi){return!s.isValidElement(Kn)||"key"in Kn&&Kn.key!==null?Kn:s.cloneElement(Kn,{key:"".concat(I,"-").concat(mi)})})}}]),Lr}(s.Component);k.displayName="ResizeObserver";var M=k,j=n("qx4F");function P(_t){return null}var X=P;function F(_t){return null}var U=F,K=n("Ff2n"),z="RC_TABLE_KEY";function V(_t){return _t==null?[]:Array.isArray(_t)?_t:[_t]}function Q(_t,Or){if(!Or&&typeof Or!="number")return _t;for(var Lr=V(Or),rn=_t,xn=0;xn<Lr.length;xn+=1){if(!rn)return null;var Ln=Lr[xn];rn=rn[Ln]}return rn}function G(_t){var Or=[],Lr={};return _t.forEach(function(rn){for(var xn=rn||{},Ln=xn.key,Sn=xn.dataIndex,ei=Ln||V(Sn).join("-")||z;Lr[ei];)ei="".concat(ei,"_next");Lr[ei]=!0,Or.push(ei)}),Or}function te(){var _t={};function Or(Ln,Sn){Sn&&Object.keys(Sn).forEach(function(ei){var Kn=Sn[ei];Kn&&Object(a.a)(Kn)==="object"?(Ln[ei]=Ln[ei]||{},Or(Ln[ei],Kn)):Ln[ei]=Kn})}for(var Lr=arguments.length,rn=new Array(Lr),xn=0;xn<Lr;xn++)rn[xn]=arguments[xn];return rn.forEach(function(Ln){Or(_t,Ln)}),_t}function q(_t){return _t!=null}function se(_t){return _t&&Object(a.a)(_t)==="object"&&!Array.isArray(_t)&&!s.isValidElement(_t)}function re(_t){return typeof _t=="string"?!0:Object(w.c)(_t)}function xe(_t,Or){var Lr,rn=_t.prefixCls,xn=_t.className,Ln=_t.record,Sn=_t.index,ei=_t.dataIndex,Kn=_t.render,mi=_t.children,Fi=_t.component,bi=Fi===void 0?"td":Fi,Ii=_t.colSpan,Vi=_t.rowSpan,ea=_t.fixLeft,Xi=_t.fixRight,zi=_t.firstFixLeft,Hi=_t.lastFixLeft,Ji=_t.firstFixRight,ca=_t.lastFixRight,Ca=_t.appendNode,na=_t.additionalProps,Pa=na===void 0?{}:na,La=_t.ellipsis,va=_t.align,ga=_t.rowType,Oa=_t.isSticky,Aa="".concat(rn,"-cell"),Xa,_a;if(mi)_a=mi;else{var Va=Q(Ln,ei);if(_a=Va,Kn){var Bi=Kn(Va,Ln,Sn);se(Bi)?(_a=Bi.children,Xa=Bi.props):_a=Bi}}Object(a.a)(_a)==="object"&&!Array.isArray(_a)&&!s.isValidElement(_a)&&(_a=null),La&&(Hi||Ji)&&(_a=s.createElement("span",{className:"".concat(Aa,"-content")},_a));var io=Xa||{},oo=io.colSpan,Qo=io.rowSpan,mo=io.style,To=io.className,ao=Object(K.a)(io,["colSpan","rowSpan","style","className"]),So=oo!==void 0?oo:Ii,bo=Qo!==void 0?Qo:Vi;if(So===0||bo===0)return null;var to={},Jo=typeof ea=="number",Uo=typeof Xi=="number";Jo&&(to.position="sticky",to.left=ea),Uo&&(to.position="sticky",to.right=Xi);var wo={};va&&(wo.textAlign=va);var ts,Ia=La===!0?{showTitle:!0}:La;Ia&&(Ia.showTitle||ga==="header")&&(typeof _a=="string"||typeof _a=="number"?ts=_a.toString():s.isValidElement(_a)&&typeof _a.props.children=="string"&&(ts=_a.props.children));var Oo=Object(l.a)(Object(l.a)(Object(l.a)({title:ts},ao),Pa),{},{colSpan:So&&So!==1?So:null,rowSpan:bo&&bo!==1?bo:null,className:t()(Aa,xn,(Lr={},Object(e.a)(Lr,"".concat(Aa,"-fix-left"),Jo),Object(e.a)(Lr,"".concat(Aa,"-fix-left-first"),zi),Object(e.a)(Lr,"".concat(Aa,"-fix-left-last"),Hi),Object(e.a)(Lr,"".concat(Aa,"-fix-right"),Uo),Object(e.a)(Lr,"".concat(Aa,"-fix-right-first"),Ji),Object(e.a)(Lr,"".concat(Aa,"-fix-right-last"),ca),Object(e.a)(Lr,"".concat(Aa,"-ellipsis"),La),Object(e.a)(Lr,"".concat(Aa,"-with-append"),Ca),Object(e.a)(Lr,"".concat(Aa,"-fix-sticky"),(Jo||Uo)&&Oa),Lr),Pa.className,To),style:Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({},Pa.style),wo),to),mo),ref:re(bi)?Or:null});return s.createElement(bi,Object.assign({},Oo),Ca,_a)}var Oe=s.forwardRef(xe);Oe.displayName="Cell";var Me=s.memo(Oe,function(_t,Or){return Or.shouldCellUpdate?!Or.shouldCellUpdate(Or.record,_t.record):!1}),Qe=Me,Ve=s.createContext(null),ut=Ve;function Fe(_t,Or,Lr,rn,xn){var Ln=Lr[_t]||{},Sn=Lr[Or]||{},ei,Kn;Ln.fixed==="left"?ei=rn.left[_t]:Sn.fixed==="right"&&(Kn=rn.right[Or]);var mi=!1,Fi=!1,bi=!1,Ii=!1,Vi=Lr[Or+1],ea=Lr[_t-1];if(xn==="rtl"){if(ei!==void 0){var Xi=ea&&ea.fixed==="left";Ii=!Xi}else if(Kn!==void 0){var zi=Vi&&Vi.fixed==="right";bi=!zi}}else if(ei!==void 0){var Hi=Vi&&Vi.fixed==="left";mi=!Hi}else if(Kn!==void 0){var Ji=ea&&ea.fixed==="right";Fi=!Ji}return{fixLeft:ei,fixRight:Kn,lastFixLeft:mi,firstFixRight:Fi,lastFixRight:bi,firstFixLeft:Ii,isSticky:rn.isSticky}}function ue(_t){var Or=_t.cells,Lr=_t.stickyOffsets,rn=_t.flattenColumns,xn=_t.rowComponent,Ln=_t.cellComponent,Sn=_t.onHeaderRow,ei=_t.index,Kn=s.useContext(ut),mi=Kn.prefixCls,Fi=Kn.direction,bi;Sn&&(bi=Sn(Or.map(function(Vi){return Vi.column}),ei));var Ii=G(Or.map(function(Vi){return Vi.column}));return s.createElement(xn,Object.assign({},bi),Or.map(function(Vi,ea){var Xi=Vi.column,zi=Fe(Vi.colStart,Vi.colEnd,rn,Lr,Fi),Hi;return Xi&&Xi.onHeaderCell&&(Hi=Vi.column.onHeaderCell(Xi)),s.createElement(Qe,Object.assign({},Vi,{ellipsis:Xi.ellipsis,align:Xi.align,component:Ln,prefixCls:mi,key:Ii[ea]},zi,{additionalProps:Hi,rowType:"header"}))}))}ue.displayName="HeaderRow";var et=ue;function he(_t){var Or=[];function Lr(Sn,ei){var Kn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Or[Kn]=Or[Kn]||[];var mi=ei,Fi=Sn.filter(Boolean).map(function(bi){var Ii={key:bi.key,className:bi.className||"",children:bi.title,column:bi,colStart:mi},Vi=1,ea=bi.children;return ea&&ea.length>0&&(Vi=Lr(ea,mi,Kn+1).reduce(function(Xi,zi){return Xi+zi},0),Ii.hasSubColumns=!0),"colSpan"in bi&&(Vi=bi.colSpan),"rowSpan"in bi&&(Ii.rowSpan=bi.rowSpan),Ii.colSpan=Vi,Ii.colEnd=Ii.colStart+Vi-1,Or[Kn].push(Ii),mi+=Vi,Vi});return Fi}Lr(_t,0);for(var rn=Or.length,xn=function(ei){Or[ei].forEach(function(Kn){!("rowSpan"in Kn)&&!Kn.hasSubColumns&&(Kn.rowSpan=rn-ei)})},Ln=0;Ln<rn;Ln+=1)xn(Ln);return Or}function J(_t){var Or=_t.stickyOffsets,Lr=_t.columns,rn=_t.flattenColumns,xn=_t.onHeaderRow,Ln=s.useContext(ut),Sn=Ln.prefixCls,ei=Ln.getComponent,Kn=s.useMemo(function(){return he(Lr)},[Lr]),mi=ei(["header","wrapper"],"thead"),Fi=ei(["header","row"],"tr"),bi=ei(["header","cell"],"th");return s.createElement(mi,{className:"".concat(Sn,"-thead")},Kn.map(function(Ii,Vi){var ea=s.createElement(et,{key:Vi,flattenColumns:rn,cells:Ii,stickyOffsets:Or,rowComponent:Fi,cellComponent:bi,onHeaderRow:xn,index:Vi});return ea}))}var Y=J,$="RC_TABLE_INTERNAL_COL_DEFINE";function de(_t){var Or=_t.expandable,Lr=Object(K.a)(_t,["expandable"]);return"expandable"in _t?Object(l.a)(Object(l.a)({},Lr),Or):Lr}function be(_t){return Object.keys(_t).reduce(function(Or,Lr){return(Lr.substr(0,5)==="data-"||Lr.substr(0,5)==="aria-")&&(Or[Lr]=_t[Lr]),Or},{})}function Ce(_t){for(var Or=_t.colWidths,Lr=_t.columns,rn=_t.columCount,xn=[],Ln=rn||Lr.length,Sn=!1,ei=Ln-1;ei>=0;ei-=1){var Kn=Or[ei],mi=Lr&&Lr[ei],Fi=mi&&mi[$];(Kn||Fi||Sn)&&(xn.unshift(s.createElement("col",Object.assign({key:ei,style:{width:Kn,minWidth:Kn}},Fi))),Sn=!0)}return s.createElement("colgroup",null,xn)}var Be=Ce;function fe(_t,Or){return Object(s.useMemo)(function(){for(var Lr=[],rn=0;rn<Or;rn+=1){var xn=_t[rn];if(xn!==void 0)Lr[rn]=xn;else return null}return Lr},[_t.join("_"),Or])}var we=s.forwardRef(function(_t,Or){var Lr=_t.noData,rn=_t.columns,xn=_t.flattenColumns,Ln=_t.colWidths,Sn=_t.columCount,ei=_t.stickyOffsets,Kn=_t.direction,mi=_t.fixHeader,Fi=_t.offsetHeader,bi=_t.stickyClassName,Ii=_t.onScroll,Vi=Object(K.a)(_t,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),ea=s.useContext(ut),Xi=ea.prefixCls,zi=ea.scrollbarSize,Hi=ea.isSticky,Ji=Hi&&!mi?0:zi,ca=s.useRef(null),Ca=s.useCallback(function(Aa){Object(w.b)(Or,Aa),Object(w.b)(ca,Aa)},[]);s.useEffect(function(){var Aa;function Xa(_a){var Va=_a.currentTarget,Bi=_a.deltaX;Bi&&(Ii({currentTarget:Va,scrollLeft:Va.scrollLeft+Bi}),_a.preventDefault())}return(Aa=ca.current)===null||Aa===void 0||Aa.addEventListener("wheel",Xa),function(){var _a;(_a=ca.current)===null||_a===void 0||_a.removeEventListener("wheel",Xa)}},[]);var na=xn[xn.length-1],Pa={fixed:na?na.fixed:null,onHeaderCell:function(){return{className:"".concat(Xi,"-cell-scrollbar")}}},La=Object(s.useMemo)(function(){return Ji?[].concat(Object(r.a)(rn),[Pa]):rn},[Ji,rn]),va=Object(s.useMemo)(function(){return Ji?[].concat(Object(r.a)(xn),[Pa]):xn},[Ji,xn]),ga=Object(s.useMemo)(function(){var Aa=ei.right,Xa=ei.left;return Object(l.a)(Object(l.a)({},ei),{},{left:Kn==="rtl"?[].concat(Object(r.a)(Xa.map(function(_a){return _a+Ji})),[0]):Xa,right:Kn==="rtl"?Aa:[].concat(Object(r.a)(Aa.map(function(_a){return _a+Ji})),[0]),isSticky:Hi})},[Ji,ei,Hi]),Oa=fe(Ln,Sn);return s.createElement("div",{style:Object(l.a)({overflow:"hidden"},Hi?{top:Fi}:{}),ref:Ca,className:t()("".concat(Xi,"-header"),Object(e.a)({},bi,!!bi))},s.createElement("table",{style:{tableLayout:"fixed",visibility:Lr||Oa?null:"hidden"}},s.createElement(Be,{colWidths:Oa?[].concat(Object(r.a)(Oa),[Ji]):[],columCount:Sn+1,columns:va}),s.createElement(Y,Object.assign({},Vi,{stickyOffsets:ga,columns:La,flattenColumns:va}))))});we.displayName="FixedHeader";var Re=we,rt=s.createContext(null),St=rt;function ft(_t){var Or=_t.prefixCls,Lr=_t.children,rn=_t.component,xn=_t.cellComponent,Ln=_t.fixHeader,Sn=_t.fixColumn,ei=_t.horizonScroll,Kn=_t.className,mi=_t.expanded,Fi=_t.componentWidth,bi=_t.colSpan,Ii=s.useContext(ut),Vi=Ii.scrollbarSize;return s.useMemo(function(){var ea=Lr;return Sn&&(ea=s.createElement("div",{style:{width:Fi-(Ln?Vi:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Or,"-expanded-row-fixed")},ea)),s.createElement(rn,{className:Kn,style:{display:mi?null:"none"}},s.createElement(Qe,{component:xn,prefixCls:Or,colSpan:bi},ea))},[Lr,rn,Ln,ei,Kn,mi,Fi,bi,Vi])}var He=ft;function er(_t){var Or=_t.className,Lr=_t.style,rn=_t.record,xn=_t.index,Ln=_t.rowKey,Sn=_t.getRowKey,ei=_t.rowExpandable,Kn=_t.expandedKeys,mi=_t.onRow,Fi=_t.indent,bi=Fi===void 0?0:Fi,Ii=_t.rowComponent,Vi=_t.cellComponent,ea=_t.childrenColumnName,Xi=s.useContext(ut),zi=Xi.prefixCls,Hi=Xi.fixedInfoList,Ji=s.useContext(St),ca=Ji.fixHeader,Ca=Ji.fixColumn,na=Ji.horizonScroll,Pa=Ji.componentWidth,La=Ji.flattenColumns,va=Ji.expandableType,ga=Ji.expandRowByClick,Oa=Ji.onTriggerExpand,Aa=Ji.rowClassName,Xa=Ji.expandedRowClassName,_a=Ji.indentSize,Va=Ji.expandIcon,Bi=Ji.expandedRowRender,io=Ji.expandIconColumnIndex,oo=s.useState(!1),Qo=Object(c.a)(oo,2),mo=Qo[0],To=Qo[1],ao=Kn&&Kn.has(_t.recordKey);s.useEffect(function(){ao&&To(!0)},[ao]);var So=va==="row"&&(!ei||ei(rn)),bo=va==="nest",to=ea&&rn&&rn[ea],Jo=So||bo,Uo;mi&&(Uo=mi(rn,xn));var wo=function(_o){if(ga&&Jo&&Oa(rn,_o),Uo&&Uo.onClick){for(var uo,Ha=arguments.length,mt=new Array(Ha>1?Ha-1:0),Tr=1;Tr<Ha;Tr++)mt[Tr-1]=arguments[Tr];(uo=Uo).onClick.apply(uo,[_o].concat(mt))}},ts;typeof Aa=="string"?ts=Aa:typeof Aa=="function"&&(ts=Aa(rn,xn,bi));var Ia=G(La),Oo=s.createElement(Ii,Object.assign({},Uo,{"data-row-key":Ln,className:t()(Or,"".concat(zi,"-row"),"".concat(zi,"-row-level-").concat(bi),ts,Uo&&Uo.className),style:Object(l.a)(Object(l.a)({},Lr),Uo?Uo.style:null),onClick:wo}),La.map(function(Ho,_o){var uo=Ho.render,Ha=Ho.dataIndex,mt=Ho.className,Tr=Ia[_o],tn=Hi[_o],Qr;_o===(io||0)&&bo&&(Qr=s.createElement(s.Fragment,null,s.createElement("span",{style:{paddingLeft:"".concat(_a*bi,"px")},className:"".concat(zi,"-row-indent indent-level-").concat(bi)}),Va({prefixCls:zi,expanded:ao,expandable:to,record:rn,onExpand:Oa})));var Jn;return Ho.onCell&&(Jn=Ho.onCell(rn,xn)),s.createElement(Qe,Object.assign({className:mt,ellipsis:Ho.ellipsis,align:Ho.align,component:Vi,prefixCls:zi,key:Tr,record:rn,index:xn,dataIndex:Ha,render:uo,shouldCellUpdate:Ho.shouldCellUpdate},tn,{appendNode:Qr,additionalProps:Jn}))})),Io;if(So&&(mo||ao)){var os=Bi(rn,xn,bi+1,ao),xo=Xa&&Xa(rn,xn,bi);Io=s.createElement(He,{expanded:ao,className:t()("".concat(zi,"-expanded-row"),"".concat(zi,"-expanded-row-level-").concat(bi+1),xo),prefixCls:zi,fixHeader:ca,fixColumn:Ca,horizonScroll:na,component:Ii,componentWidth:Pa,cellComponent:Vi,colSpan:La.length},os)}var rs;return to&&ao&&(rs=(rn[ea]||[]).map(function(Ho,_o){var uo=Sn(Ho,_o);return s.createElement(er,Object.assign({},_t,{key:uo,rowKey:uo,record:Ho,recordKey:uo,index:_o,indent:bi+1}))})),s.createElement(s.Fragment,null,Oo,Io,rs)}er.displayName="BodyRow";var ct=er,Kt=s.createContext(null),fr=Kt;function Gt(_t){var Or=_t.columnKey,Lr=_t.onColumnResize,rn=s.useRef();return s.useEffect(function(){rn.current&&Lr(Or,rn.current.offsetWidth)},[]),s.createElement(M,{onResize:function(Ln){var Sn=Ln.offsetWidth;Lr(Or,Sn)}},s.createElement("td",{ref:rn,style:{padding:0,border:0,height:0}},s.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Pt(_t){var Or=_t.data,Lr=_t.getRowKey,rn=_t.measureColumnWidth,xn=_t.expandedKeys,Ln=_t.onRow,Sn=_t.rowExpandable,ei=_t.emptyNode,Kn=_t.childrenColumnName,mi=s.useContext(fr),Fi=mi.onColumnResize,bi=s.useContext(ut),Ii=bi.prefixCls,Vi=bi.getComponent,ea=s.useContext(St),Xi=ea.fixHeader,zi=ea.horizonScroll,Hi=ea.flattenColumns,Ji=ea.componentWidth;return s.useMemo(function(){var ca=Vi(["body","wrapper"],"tbody"),Ca=Vi(["body","row"],"tr"),na=Vi(["body","cell"],"td"),Pa;Or.length?Pa=Or.map(function(va,ga){var Oa=Lr(va,ga);return s.createElement(ct,{key:Oa,rowKey:Oa,record:va,recordKey:Oa,index:ga,rowComponent:Ca,cellComponent:na,expandedKeys:xn,onRow:Ln,getRowKey:Lr,rowExpandable:Sn,childrenColumnName:Kn})}):Pa=s.createElement(He,{expanded:!0,className:"".concat(Ii,"-placeholder"),prefixCls:Ii,fixHeader:Xi,fixColumn:zi,horizonScroll:zi,component:Ca,componentWidth:Ji,cellComponent:na,colSpan:Hi.length},ei);var La=G(Hi);return s.createElement(ca,{className:"".concat(Ii,"-tbody")},rn&&s.createElement("tr",{"aria-hidden":"true",className:"".concat(Ii,"-measure-row"),style:{height:0}},La.map(function(va){return s.createElement(Gt,{key:va,columnKey:va,onColumnResize:Fi})})),Pa)},[Or,Ii,Ln,rn,xn,Lr,Vi,Ji,ei,Hi])}var Xt=s.memo(Pt);Xt.displayName="Body";var Ge=Xt;function pe(_t){return Object(T.a)(_t).filter(function(Or){return s.isValidElement(Or)}).map(function(Or){var Lr=Or.key,rn=Or.props,xn=rn.children,Ln=Object(K.a)(rn,["children"]),Sn=Object(l.a)({key:Lr},Ln);return xn&&(Sn.children=pe(xn)),Sn})}function oe(_t){return _t.reduce(function(Or,Lr){var rn=Lr.fixed,xn=rn===!0?"left":rn,Ln=Lr.children;return Ln&&Ln.length>0?[].concat(Object(r.a)(Or),Object(r.a)(oe(Ln).map(function(Sn){return Object(l.a)({fixed:xn},Sn)}))):[].concat(Object(r.a)(Or),[Object(l.a)(Object(l.a)({},Lr),{},{fixed:xn})])},[])}function lt(_t){for(var Or=!0,Lr=0;Lr<_t.length;Lr+=1){var rn=_t[Lr];if(Or&&rn.fixed!=="left")Or=!1;else if(!Or&&rn.fixed==="left"){Object(A.a)(!1,"Index ".concat(Lr-1," of `columns` missing `fixed='left'` prop."));break}}for(var xn=!0,Ln=_t.length-1;Ln>=0;Ln-=1){var Sn=_t[Ln];if(xn&&Sn.fixed!=="right")xn=!1;else if(!xn&&Sn.fixed==="right"){Object(A.a)(!1,"Index ".concat(Ln+1," of `columns` missing `fixed='right'` prop."));break}}}function qe(_t){return _t.map(function(Or){var Lr=Or.fixed,rn=Object(K.a)(Or,["fixed"]),xn=Lr;return Lr==="left"?xn="right":Lr==="right"&&(xn="left"),Object(l.a)({fixed:xn},rn)})}function ge(_t,Or){var Lr=_t.prefixCls,rn=_t.columns,xn=_t.children,Ln=_t.expandable,Sn=_t.expandedKeys,ei=_t.getRowKey,Kn=_t.onTriggerExpand,mi=_t.expandIcon,Fi=_t.rowExpandable,bi=_t.expandIconColumnIndex,Ii=_t.direction,Vi=_t.expandRowByClick,ea=s.useMemo(function(){return rn||pe(xn)},[rn,xn]),Xi=s.useMemo(function(){if(Ln){var Ji,ca=bi||0,Ca=ea[ca],na=(Ji={},Object(e.a)(Ji,$,{className:"".concat(Lr,"-expand-icon-col")}),Object(e.a)(Ji,"title",""),Object(e.a)(Ji,"fixed",Ca?Ca.fixed:null),Object(e.a)(Ji,"className","".concat(Lr,"-row-expand-icon-cell")),Object(e.a)(Ji,"render",function(va,ga,Oa){var Aa=ei(ga,Oa),Xa=Sn.has(Aa),_a=Fi?Fi(ga):!0,Va=mi({prefixCls:Lr,expanded:Xa,expandable:_a,record:ga,onExpand:Kn});return Vi?s.createElement("span",{onClick:function(io){return io.stopPropagation()}},Va):Va}),Ji),Pa=ea.slice();return ca>=0&&Pa.splice(ca,0,na),Pa}return ea},[Ln,ea,ei,Sn,mi,Ii]),zi=s.useMemo(function(){var Ji=Xi;return Or&&(Ji=Or(Ji)),Ji.length||(Ji=[{render:function(){return null}}]),Ji},[Or,Xi,Ii]),Hi=s.useMemo(function(){return Ii==="rtl"?qe(oe(zi)):oe(zi)},[zi,Ii]);return[zi,Hi]}var Ht=ge,vr=n("xEkU"),At=n.n(vr);function ir(_t){var Or=Object(s.useRef)(_t),Lr=Object(s.useState)({}),rn=Object(c.a)(Lr,2),xn=rn[1],Ln=Object(s.useRef)(null),Sn=Object(s.useRef)([]);function ei(Kn){Ln.current===null&&(Sn.current=[],Ln.current=At()(function(){Sn.current.forEach(function(mi){Or.current=mi(Or.current)}),Ln.current=null,xn({})})),Sn.current.push(Kn)}return Object(s.useEffect)(function(){return function(){At.a.cancel(Ln.current)}},[]),[Or.current,ei]}function lr(_t){var Or=Object(s.useRef)(_t),Lr=Object(s.useRef)(null);function rn(){window.clearTimeout(Lr.current)}function xn(Sn){Or.current=Sn,rn(),Lr.current=window.setTimeout(function(){Or.current=null,Lr.current=null},100)}function Ln(){return Or.current}return Object(s.useEffect)(function(){return rn},[]),[xn,Ln]}function dn(_t,Or,Lr){var rn=Object(s.useMemo)(function(){for(var xn=[],Ln=[],Sn=0,ei=0,Kn=0;Kn<Or;Kn+=1)if(Lr==="rtl"){Ln[Kn]=ei,ei+=_t[Kn]||0;var mi=Or-Kn-1;xn[mi]=Sn,Sn+=_t[mi]||0}else{xn[Kn]=Sn,Sn+=_t[Kn]||0;var Fi=Or-Kn-1;Ln[Fi]=ei,ei+=_t[Fi]||0}return{left:xn,right:Ln}},[_t,Or,Lr]);return rn}var Ft=dn;function ur(_t){var Or=_t.className,Lr=_t.children;return s.createElement("div",{className:Or},Lr)}var Jt=ur;function pt(_t){var Or=_t.className,Lr=_t.index,rn=_t.children,xn=_t.colSpan,Ln=_t.rowSpan,Sn=s.useContext(ut),ei=Sn.prefixCls,Kn=Sn.fixedInfoList,mi=Kn[Lr];return s.createElement(Qe,Object.assign({className:Or,index:Lr,component:"td",prefixCls:ei,record:null,dataIndex:null,render:function(){return{children:rn,props:{colSpan:xn,rowSpan:Ln}}}},mi))}function at(_t){return s.createElement("tr",Object.assign({},_t))}function Pr(_t){var Or=_t.children,Lr=s.useContext(ut),rn=Lr.prefixCls;return s.createElement("tfoot",{className:"".concat(rn,"-summary")},Or)}var un=Pr,_n={Cell:pt,Row:at};function Xn(_t){var Or,Lr=_t.prefixCls,rn=_t.record,xn=_t.onExpand,Ln=_t.expanded,Sn=_t.expandable,ei="".concat(Lr,"-row-expand-icon");if(!Sn)return s.createElement("span",{className:t()(ei,"".concat(Lr,"-row-spaced"))});var Kn=function(Fi){xn(rn,Fi),Fi.stopPropagation()};return s.createElement("span",{className:t()(ei,(Or={},Object(e.a)(Or,"".concat(Lr,"-row-expanded"),Ln),Object(e.a)(Or,"".concat(Lr,"-row-collapsed"),!Ln),Or)),onClick:Kn})}function xi(_t,Or,Lr){var rn=[];function xn(Ln){(Ln||[]).forEach(function(Sn,ei){rn.push(Or(Sn,ei)),xn(Sn[Lr])})}return xn(_t),rn}var Pn=n("zT1h"),Un=n("y0+3"),$t=function(Or,Lr){var rn,xn,Ln=Or.scrollBodyRef,Sn=Or.onScroll,ei=Or.offsetScroll,Kn=s.useContext(ut),mi=Kn.prefixCls,Fi=((rn=Ln.current)===null||rn===void 0?void 0:rn.scrollWidth)||0,bi=((xn=Ln.current)===null||xn===void 0?void 0:xn.clientWidth)||0,Ii=Fi&&bi*(bi/Fi),Vi=s.useRef(),ea=ir({scrollLeft:0,isHiddenScrollBar:!1}),Xi=Object(c.a)(ea,2),zi=Xi[0],Hi=Xi[1],Ji=s.useRef({delta:0,x:0}),ca=s.useState(!1),Ca=Object(c.a)(ca,2),na=Ca[0],Pa=Ca[1],La=function(){Pa(!1)},va=function(_a){_a.persist(),Ji.current.delta=_a.pageX-zi.scrollLeft,Ji.current.x=0,Pa(!0),_a.preventDefault()},ga=function(_a){var Va,Bi=_a||((Va=window)===null||Va===void 0?void 0:Va.event),io=Bi.buttons;if(!na||io===0){na&&Pa(!1);return}var oo=Ji.current.x+_a.pageX-Ji.current.x-Ji.current.delta;oo<=0&&(oo=0),oo+Ii>=bi&&(oo=bi-Ii),Sn({scrollLeft:oo/bi*(Fi+2)}),Ji.current.x=_a.pageX},Oa=function(){var _a=Object(Un.b)(Ln.current).top,Va=_a+Ln.current.offsetHeight,Bi=document.documentElement.scrollTop+window.innerHeight;Va-Object(j.a)()<=Bi||_a>=Bi-ei?Hi(function(io){return Object(l.a)(Object(l.a)({},io),{},{isHiddenScrollBar:!0})}):Hi(function(io){return Object(l.a)(Object(l.a)({},io),{},{isHiddenScrollBar:!1})})},Aa=function(_a){Hi(function(Va){return Object(l.a)(Object(l.a)({},Va),{},{scrollLeft:_a/Fi*bi||0})})};return s.useImperativeHandle(Lr,function(){return{setScrollLeft:Aa}}),s.useEffect(function(){var Xa=Object(Pn.a)(document.body,"mouseup",La,!1),_a=Object(Pn.a)(document.body,"mousemove",ga,!1);return Oa(),function(){Xa.remove(),_a.remove()}},[Ii,na]),s.useEffect(function(){var Xa=Object(Pn.a)(window,"scroll",Oa,!1),_a=Object(Pn.a)(window,"resize",Oa,!1);return function(){Xa.remove(),_a.remove()}},[]),s.useEffect(function(){zi.isHiddenScrollBar||Hi(function(Xa){var _a,Va;return Object(l.a)(Object(l.a)({},Xa),{},{scrollLeft:Ln.current.scrollLeft/((_a=Ln.current)===null||_a===void 0?void 0:_a.scrollWidth)*((Va=Ln.current)===null||Va===void 0?void 0:Va.clientWidth)})})},[zi.isHiddenScrollBar]),Fi<=bi||!Ii||zi.isHiddenScrollBar?null:s.createElement("div",{style:{height:Object(j.a)(),width:bi,bottom:ei},className:"".concat(mi,"-sticky-scroll")},s.createElement("div",{onMouseDown:va,ref:Vi,className:t()("".concat(mi,"-sticky-scroll-bar"),Object(e.a)({},"".concat(mi,"-sticky-scroll-bar-active"),na)),style:{width:"".concat(Ii,"px"),transform:"translate3d(".concat(zi.scrollLeft,"px, 0, 0)")}}))},xt=s.forwardRef($t);function De(_t,Or){return s.useMemo(function(){var Lr=!!_t;return{isSticky:Lr,stickyClassName:Lr?"".concat(Or,"-sticky-header"):"",offsetHeader:Object(a.a)(_t)==="object"&&_t.offsetHeader||0,offsetScroll:Object(a.a)(_t)==="object"&&_t.offsetScroll||0}},[_t,Or])}var ke=[],Pe={},tt="rc-table-internal-hook",yt=s.memo(function(_t){var Or=_t.children;return Or},function(_t,Or){return g()(_t.props,Or.props)?_t.pingLeft!==Or.pingLeft||_t.pingRight!==Or.pingRight:!1});function Et(_t){var Or,Lr=_t.prefixCls,rn=_t.className,xn=_t.rowClassName,Ln=_t.style,Sn=_t.data,ei=_t.rowKey,Kn=_t.scroll,mi=_t.tableLayout,Fi=_t.direction,bi=_t.title,Ii=_t.footer,Vi=_t.summary,ea=_t.id,Xi=_t.showHeader,zi=_t.components,Hi=_t.emptyText,Ji=_t.onRow,ca=_t.onHeaderRow,Ca=_t.internalHooks,na=_t.transformColumns,Pa=_t.internalRefs,La=_t.sticky,va=Sn||ke,ga=!!va.length,Oa=s.useState(0),Aa=Object(c.a)(Oa,2),Xa=Aa[0],_a=Aa[1];s.useEffect(function(){_a(Object(j.a)())});var Va=s.useMemo(function(){return te(zi,{})},[zi]),Bi=s.useCallback(function(Vo,No){return Q(Va,Vo)||No},[Va]),io=s.useMemo(function(){return typeof ei=="function"?ei:function(Vo){var No=Vo&&Vo[ei];return No}},[ei]),oo=de(_t),Qo=oo.expandIcon,mo=oo.expandedRowKeys,To=oo.defaultExpandedRowKeys,ao=oo.defaultExpandAllRows,So=oo.expandedRowRender,bo=oo.onExpand,to=oo.onExpandedRowsChange,Jo=oo.expandRowByClick,Uo=oo.rowExpandable,wo=oo.expandIconColumnIndex,ts=oo.expandedRowClassName,Ia=oo.childrenColumnName,Oo=oo.indentSize,Io=Qo||Xn,os=Ia||"children",xo=s.useMemo(function(){return So?"row":_t.expandable&&Ca===tt&&_t.expandable.__PARENT_RENDER_ICON__||va.some(function(Vo){return Vo&&Object(a.a)(Vo)==="object"&&Vo[os]})?"nest":!1},[!!So,va]),rs=s.useState(function(){return To||(ao?xi(va,io,os):[])}),Ho=Object(c.a)(rs,2),_o=Ho[0],uo=Ho[1],Ha=s.useMemo(function(){return new Set(mo||_o||[])},[mo,_o]),mt=s.useCallback(function(Vo){var No=io(Vo,va.indexOf(Vo)),fs,Ds=Ha.has(No);Ds?(Ha.delete(No),fs=Object(r.a)(Ha)):fs=[].concat(Object(r.a)(Ha),[No]),uo(fs),bo&&bo(!Ds,Vo),to&&to(fs)},[io,Ha,va,bo,to]),Tr=s.useState(0),tn=Object(c.a)(Tr,2),Qr=tn[0],Jn=tn[1],fn=Ht(Object(l.a)(Object(l.a)(Object(l.a)({},_t),oo),{},{expandable:!!So,expandedKeys:Ha,getRowKey:io,onTriggerExpand:mt,expandIcon:Io,expandIconColumnIndex:wo,direction:Fi}),Ca===tt?na:null),Xr=Object(c.a)(fn,2),ii=Xr[0],nn=Xr[1],Wn=s.useMemo(function(){return{columns:ii,flattenColumns:nn}},[ii,nn]),li=s.useRef(),ci=s.useRef(),si=s.useRef(),Ci=s.useState(!1),gi=Object(c.a)(Ci,2),Ai=gi[0],Ni=gi[1],ia=s.useState(!1),Ki=Object(c.a)(ia,2),fa=Ki[0],Ya=Ki[1],xa=ir(new Map),wa=Object(c.a)(xa,2),Da=wa[0],ja=wa[1],ko=G(nn),ro=ko.map(function(Vo){return Da.get(Vo)}),pa=s.useMemo(function(){return ro},[ro.join("_")]),Ea=Ft(pa,nn.length,Fi),Fa=Kn&&q(Kn.y),Ka=Kn&&q(Kn.x),lo=Ka&&nn.some(function(Vo){var No=Vo.fixed;return No}),so=s.useRef(),Co=De(La,Lr),Lo=Co.isSticky,is=Co.offsetHeader,cs=Co.offsetScroll,Rs=Co.stickyClassName,Ko,as,co;Fa&&(as={overflowY:"scroll",maxHeight:Kn.y}),Ka&&(Ko={overflowX:"auto"},Fa||(as={overflowY:"hidden"}),co={width:Kn.x===!0?"auto":Kn.x,minWidth:"100%"});var Ao=s.useCallback(function(Vo,No){ja(function(fs){var Ds=new Map(fs);return Ds.set(Vo,No),Ds})},[]),$a=lr(null),ss=Object(c.a)($a,2),_s=ss[0],Fo=ss[1];function il(Vo,No){if(!No)return;typeof No=="function"?No(Vo):No.scrollLeft!==Vo&&(No.scrollLeft=Vo)}var Eo=function(No){var fs=No.currentTarget,Ds=No.scrollLeft,go=typeof Ds=="number"?Ds:fs.scrollLeft,Ut=fs||Pe;if(!Fo()||Fo()===Ut){var or;_s(Ut),il(go,ci.current),il(go,si.current),il(go,(or=so.current)===null||or===void 0?void 0:or.setScrollLeft)}if(fs){var Nn=fs.scrollWidth,hi=fs.clientWidth;Ni(go>0),Ya(go<Nn-hi)}},zo=function(){si.current&&Eo({currentTarget:si.current})},Fs=function(No){var fs=No.width;zo(),Jn(li.current?li.current.offsetWidth:fs)};s.useEffect(function(){return zo},[]),s.useEffect(function(){Ka&&zo()},[Ka]),s.useEffect(function(){Ca===tt&&Pa&&(Pa.body.current=si.current)});var ms=Bi(["table"],"table"),hs=s.useMemo(function(){return mi||(lo?Kn.x==="max-content"?"auto":"fixed":Fa||nn.some(function(Vo){var No=Vo.ellipsis;return No})?"fixed":"auto")},[Fa,lo,nn,mi]),wn,Ns={colWidths:pa,columCount:nn.length,stickyOffsets:Ea,onHeaderRow:ca,fixHeader:Fa},Ll=s.useMemo(function(){return ga?null:typeof Hi=="function"?Hi():Hi},[ga,Hi]),el=s.createElement(Ge,{data:va,measureColumnWidth:Fa||Ka||Lo,expandedKeys:Ha,rowExpandable:Uo,getRowKey:io,onRow:Ji,emptyNode:Ll,childrenColumnName:os}),Gs=s.createElement(Be,{colWidths:nn.map(function(Vo){var No=Vo.width;return No}),columns:nn}),ds=Vi&&s.createElement(un,null,Vi(va)),ks=Bi(["body"]);if(Fa||Lo){var Qs;typeof ks=="function"?(Qs=ks(va,{scrollbarSize:Xa,ref:si,onScroll:Eo}),Ns.colWidths=nn.map(function(Vo,No){var fs=Vo.width,Ds=No===ii.length-1?fs-Xa:fs;return typeof Ds=="number"&&!Number.isNaN(Ds)?Ds:(Object(A.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Qs=s.createElement("div",{style:Object(l.a)(Object(l.a)({},Ko),as),onScroll:Eo,ref:si,className:t()("".concat(Lr,"-body"))},s.createElement(ms,{style:Object(l.a)(Object(l.a)({},co),{},{tableLayout:hs})},Gs,el,ds),Lo&&s.createElement(xt,{ref:so,offsetScroll:cs,scrollBodyRef:si,onScroll:Eo})),wn=s.createElement(s.Fragment,null,Xi!==!1&&s.createElement(Re,Object.assign({noData:!va.length},Ns,Wn,{direction:Fi,offsetHeader:is,stickyClassName:Rs,ref:ci,onScroll:Eo})),Qs)}else wn=s.createElement("div",{style:Object(l.a)(Object(l.a)({},Ko),as),className:t()("".concat(Lr,"-content")),onScroll:Eo,ref:si},s.createElement(ms,{style:Object(l.a)(Object(l.a)({},co),{},{tableLayout:hs})},Gs,Xi!==!1&&s.createElement(Y,Object.assign({},Ns,Wn)),el,ds));var tl=be(_t),xs=s.createElement("div",Object.assign({className:t()(Lr,rn,(Or={},Object(e.a)(Or,"".concat(Lr,"-rtl"),Fi==="rtl"),Object(e.a)(Or,"".concat(Lr,"-ping-left"),Ai),Object(e.a)(Or,"".concat(Lr,"-ping-right"),fa),Object(e.a)(Or,"".concat(Lr,"-layout-fixed"),mi==="fixed"),Object(e.a)(Or,"".concat(Lr,"-fixed-header"),Fa),Object(e.a)(Or,"".concat(Lr,"-fixed-column"),lo),Object(e.a)(Or,"".concat(Lr,"-scroll-horizontal"),Ka),Object(e.a)(Or,"".concat(Lr,"-has-fix-left"),nn[0]&&nn[0].fixed),Object(e.a)(Or,"".concat(Lr,"-has-fix-right"),nn[nn.length-1]&&nn[nn.length-1].fixed==="right"),Or)),style:Ln,id:ea,ref:li},tl),s.createElement(yt,{pingLeft:Ai,pingRight:fa,props:Object(l.a)(Object(l.a)({},_t),{},{stickyOffsets:Ea,mergedExpandedKeys:Ha})},bi&&s.createElement(Jt,{className:"".concat(Lr,"-title")},bi(va)),s.createElement("div",{className:"".concat(Lr,"-container")},wn),Ii&&s.createElement(Jt,{className:"".concat(Lr,"-footer")},Ii(va))));Ka&&(xs=s.createElement(M,{onResize:Fs},xs));var Bs=s.useMemo(function(){return{prefixCls:Lr,getComponent:Bi,scrollbarSize:Xa,direction:Fi,fixedInfoList:nn.map(function(Vo,No){return Fe(No,No,nn,Ea,Fi)}),isSticky:Lo}},[Lr,Bi,Xa,Fi,nn,Ea,Fi,Lo]),al=s.useMemo(function(){return Object(l.a)(Object(l.a)({},Wn),{},{tableLayout:hs,rowClassName:xn,expandedRowClassName:ts,componentWidth:Qr,fixHeader:Fa,fixColumn:lo,horizonScroll:Ka,expandIcon:Io,expandableType:xo,expandRowByClick:Jo,expandedRowRender:So,onTriggerExpand:mt,expandIconColumnIndex:wo,indentSize:Oo})},[Wn,hs,xn,ts,Qr,Fa,lo,Ka,Io,xo,Jo,So,mt,wo,Oo]),Js=s.useMemo(function(){return{onColumnResize:Ao}},[Ao]);return s.createElement(ut.Provider,{value:Bs},s.createElement(St.Provider,{value:al},s.createElement(fr.Provider,{value:Js},xs)))}Et.Column=U,Et.ColumnGroup=X,Et.Summary=_n,Et.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var Yt=Et,Rr=Yt,zr=n("W9HT"),hn=n("NUBc"),jt=n("H84U"),vt=function(_t,Or){var Lr={};for(var rn in _t)Object.prototype.hasOwnProperty.call(_t,rn)&&Or.indexOf(rn)<0&&(Lr[rn]=_t[rn]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xn=0,rn=Object.getOwnPropertySymbols(_t);xn<rn.length;xn++)Or.indexOf(rn[xn])<0&&Object.prototype.propertyIsEnumerable.call(_t,rn[xn])&&(Lr[rn[xn]]=_t[rn[xn]]);return Lr},bt=10;function cr(_t,Or){var Lr={current:Or.current,pageSize:Or.pageSize},rn=_t&&f()(_t)==="object"?_t:{};return Object.keys(rn).forEach(function(xn){var Ln=Or[xn];typeof Ln!="function"&&(Lr[xn]=Ln)}),Lr}function Qt(){for(var _t={},Or=arguments.length,Lr=new Array(Or),rn=0;rn<Or;rn++)Lr[rn]=arguments[rn];return Lr.forEach(function(xn){xn&&Object.keys(xn).forEach(function(Ln){var Sn=xn[Ln];Sn!==void 0&&(_t[Ln]=Sn)})}),_t}function Mt(_t,Or,Lr){var rn=Or&&f()(Or)==="object"?Or:{},xn=rn.total,Ln=xn===void 0?0:xn,Sn=vt(rn,["total"]),ei=Object(s.useState)(function(){return{current:"defaultCurrent"in Sn?Sn.defaultCurrent:1,pageSize:"defaultPageSize"in Sn?Sn.defaultPageSize:bt}}),Kn=p()(ei,2),mi=Kn[0],Fi=Kn[1],bi=Qt(mi,Sn,{total:Ln>0?Ln:_t});if(!Ln){var Ii=Math.ceil(_t/bi.pageSize);Ii<bi.current&&(bi.current=1)}var Vi=function(){var zi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,Hi=arguments.length>1?arguments[1]:void 0;Fi(u()(u()({},bi),{current:zi,pageSize:Hi||bi.pageSize}))},ea=function(zi,Hi){var Ji=bi==null?void 0:bi.pageSize;Hi&&Hi!==Ji&&(zi=1,Or&&Or.onShowSizeChange&&Or.onShowSizeChange(zi,Hi)),Or&&Or.onChange&&Or.onChange(zi,Hi),Vi(zi,Hi),Lr(zi,Hi||Ji)};return Or===!1?[{},function(){}]:[u()(u()({},bi),{onChange:ea}),Vi]}function tr(_t,Or,Lr){var rn=s.useRef({});function xn(Ln){if(!rn.current||rn.current.data!==_t||rn.current.childrenColumnName!==Or||rn.current.getRowKey!==Lr){var Sn=function Kn(mi){mi.forEach(function(Fi,bi){var Ii=Lr(Fi,bi);ei.set(Ii,Fi),Fi&&f()(Fi)==="object"&&Or in Fi&&Kn(Fi[Or]||[])})},ei=new Map;Sn(_t),rn.current={data:_t,childrenColumnName:Or,kvMap:ei,getRowKey:Lr}}return rn.current.kvMap.get(Ln)}return[xn]}var Rt=n("SA+Z"),qt=n.n(Rt),Hr=n("RIqP"),Nr=n.n(Hr),Dr=n("HQEm"),cn=n.n(Dr),An=n("c3jg"),ri=n("qOx5"),$n=n("wPhX"),fi=n("6cGi"),_i=n("kaz8"),Di=n("jsC+"),Wi=n("BvKs"),it=n("9yH6"),Le=n("uaoM"),je="SELECT_ALL",Xe="SELECT_INVERT";function nt(_t){return _t&&_t.fixed}function Ze(_t,Or){var Lr=[];return(_t||[]).forEach(function(rn){Lr.push(rn),rn&&f()(rn)==="object"&&Or in rn&&(Lr=[].concat(Nr()(Lr),Nr()(Ze(rn[Or],Or))))}),Lr}function ot(_t,Or){var Lr=_t||{},rn=Lr.preserveSelectedRowKeys,xn=Lr.selectedRowKeys,Ln=Lr.getCheckboxProps,Sn=Lr.onChange,ei=Lr.onSelect,Kn=Lr.onSelectAll,mi=Lr.onSelectInvert,Fi=Lr.onSelectMultiple,bi=Lr.columnWidth,Ii=Lr.type,Vi=Lr.selections,ea=Lr.fixed,Xi=Lr.renderCell,zi=Lr.hideSelectAll,Hi=Lr.checkStrictly,Ji=Hi===void 0?!0:Hi,ca=Or.prefixCls,Ca=Or.data,na=Or.pageData,Pa=Or.getRecordByKey,La=Or.getRowKey,va=Or.expandType,ga=Or.childrenColumnName,Oa=Or.locale,Aa=Or.expandIconColumnIndex,Xa=Or.getPopupContainer,_a=s.useRef(new Map),Va=Object(fi.a)(xn||[],{value:xn}),Bi=p()(Va,2),io=Bi[0],oo=Bi[1],Qo=Object(s.useMemo)(function(){return Ji?{keyEntities:null}:Object(An.a)(Ca,void 0,La)},[Ca,La,Ji]),mo=Qo.keyEntities,To=Object(s.useMemo)(function(){return Ze(na,ga)},[na,ga]),ao=Object(s.useMemo)(function(){var uo=new Map;return To.forEach(function(Ha,mt){var Tr=La(Ha,mt),tn=(Ln?Ln(Ha):null)||{};uo.set(Tr,tn)}),uo},[To,La,Ln]),So=Object(s.useCallback)(function(uo){var Ha;return!!((Ha=ao.get(La(uo)))===null||Ha===void 0?void 0:Ha.disabled)},[ao,La]),bo=Object(s.useMemo)(function(){if(Ji)return[io,[]];var uo=Object(ri.a)(io,!0,mo,So),Ha=uo.checkedKeys,mt=uo.halfCheckedKeys;return[Ha,mt]},[io,Ji,mo,So]),to=p()(bo,2),Jo=to[0],Uo=to[1],wo=Object(s.useMemo)(function(){var uo=Ii==="radio"?Jo.slice(0,1):Jo;return new Set(uo)},[Jo,Ii]),ts=Object(s.useMemo)(function(){return Ii==="radio"?new Set:new Set(Uo)},[Uo,Ii]),Ia=Object(s.useState)(null),Oo=p()(Ia,2),Io=Oo[0],os=Oo[1];s.useEffect(function(){_t||oo([])},[!!_t]);var xo=Object(s.useCallback)(function(uo){var Ha,mt;if(rn){var Tr=new Map;Ha=uo,mt=uo.map(function(tn){var Qr=Pa(tn);return!Qr&&_a.current.has(tn)&&(Qr=_a.current.get(tn)),Tr.set(tn,Qr),Qr}),_a.current=Tr}else Ha=[],mt=[],uo.forEach(function(tn){var Qr=Pa(tn);Qr!==void 0&&(Ha.push(tn),mt.push(Qr))});oo(Ha),Sn&&Sn(Ha,mt)},[oo,Pa,Sn,rn]),rs=Object(s.useCallback)(function(uo,Ha,mt,Tr){if(ei){var tn=mt.map(function(Qr){return Pa(Qr)});ei(Pa(uo),Ha,tn,Tr)}xo(mt)},[ei,Pa,xo]),Ho=Object(s.useMemo)(function(){if(!Vi||zi)return null;var uo=Vi===!0?[je,Xe]:Vi;return uo.map(function(Ha){return Ha===je?{key:"all",text:Oa.selectionAll,onSelect:function(){xo(Ca.map(function(Tr,tn){return La(Tr,tn)}))}}:Ha===Xe?{key:"invert",text:Oa.selectInvert,onSelect:function(){var Tr=new Set(wo);na.forEach(function(Qr,Jn){var fn=La(Qr,Jn);Tr.has(fn)?Tr.delete(fn):Tr.add(fn)});var tn=Array.from(Tr);xo(tn),mi&&(Object(Le.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),mi(tn))}}:Ha})},[Vi,wo,na,La,mi,xo]),_o=Object(s.useCallback)(function(uo){if(!_t)return uo;var Ha=new Set(wo),mt=To.map(La).filter(function(Ai){return!ao.get(Ai).disabled}),Tr=mt.every(function(Ai){return Ha.has(Ai)}),tn=mt.some(function(Ai){return Ha.has(Ai)}),Qr=function(){var Ni=[];Tr?mt.forEach(function(Ki){Ha.delete(Ki),Ni.push(Ki)}):mt.forEach(function(Ki){Ha.has(Ki)||(Ha.add(Ki),Ni.push(Ki))});var ia=Array.from(Ha);xo(ia),Kn&&Kn(!Tr,ia.map(function(Ki){return Pa(Ki)}),Ni.map(function(Ki){return Pa(Ki)}))},Jn;if(Ii!=="radio"){var fn;if(Ho){var Xr=s.createElement(Wi.a,{getPopupContainer:Xa},Ho.map(function(Ai,Ni){var ia=Ai.key,Ki=Ai.text,fa=Ai.onSelect;return s.createElement(Wi.a.Item,{key:ia||Ni,onClick:function(){fa&&fa(mt)}},Ki)}));fn=s.createElement("div",{className:"".concat(ca,"-selection-extra")},s.createElement(Di.a,{overlay:Xr,getPopupContainer:Xa},s.createElement("span",null,s.createElement(cn.a,null))))}var ii=To.every(function(Ai,Ni){var ia=La(Ai,Ni),Ki=ao.get(ia)||{};return Ki.disabled});Jn=!zi&&s.createElement("div",{className:"".concat(ca,"-selection")},s.createElement(_i.a,{checked:!ii&&!!To.length&&Tr,indeterminate:!Tr&&tn,onChange:Qr,disabled:To.length===0||ii}),fn)}var nn;Ii==="radio"?nn=function(Ni,ia,Ki){var fa=La(ia,Ki),Ya=Ha.has(fa);return{node:s.createElement(it.a,u()({},ao.get(fa),{checked:Ya,onClick:function(wa){return wa.stopPropagation()},onChange:function(wa){Ha.has(fa)||rs(fa,!0,[fa],wa.nativeEvent)}})),checked:Ya}}:nn=function(Ni,ia,Ki){var fa,Ya=La(ia,Ki),xa=Ha.has(Ya),wa=ts.has(Ya),Da=ao.get(Ya),ja;return va==="nest"?(ja=wa,Object(Le.a)(!(typeof(Da==null?void 0:Da.indeterminate)=="boolean"),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):ja=(fa=Da==null?void 0:Da.indeterminate)!==null&&fa!==void 0?fa:wa,{node:s.createElement(_i.a,u()({},Da,{indeterminate:ja,checked:xa,onClick:function(ro){return ro.stopPropagation()},onChange:function(ro){var pa=ro.nativeEvent,Ea=pa.shiftKey,Fa=-1,Ka=-1;if(Ea&&Ji){var lo=new Set([Io,Ya]);mt.some(function($a,ss){if(lo.has($a))if(Fa===-1)Fa=ss;else return Ka=ss,!0;return!1})}if(Ka!==-1&&Fa!==Ka&&Ji){var so=mt.slice(Fa,Ka+1),Co=[];xa?so.forEach(function($a){Ha.has($a)&&(Co.push($a),Ha.delete($a))}):so.forEach(function($a){Ha.has($a)||(Co.push($a),Ha.add($a))});var Lo=Array.from(Ha);xo(Lo),Fi&&Fi(!xa,Lo.map(function($a){return Pa($a)}),Co.map(function($a){return Pa($a)}))}else{var is=Jo;if(Ji){var cs=xa?Object($n.b)(is,Ya):Object($n.a)(is,Ya);rs(Ya,!xa,cs,pa)}else{var Rs=Object(ri.a)([].concat(Nr()(is),[Ya]),!0,mo,So),Ko=Rs.checkedKeys,as=Rs.halfCheckedKeys,co=Ko;if(xa){var Ao=new Set(Ko);Ao.delete(Ya),co=Object(ri.a)(Array.from(Ao),{checked:!1,halfCheckedKeys:as},mo,So).checkedKeys}rs(Ya,!xa,co,pa)}}os(Ya)}})),checked:xa}};var Wn=function(Ni,ia,Ki){var fa=nn(Ni,ia,Ki),Ya=fa.node,xa=fa.checked;return Xi?Xi(xa,ia,Ki,Ya):Ya},li=v()({width:bi,className:"".concat(ca,"-selection-column"),title:_t.columnTitle||Jn,render:Wn},$,{className:"".concat(ca,"-selection-col")});if(va==="row"&&uo.length&&!Aa){var ci=qt()(uo),si=ci[0],Ci=ci.slice(1),gi=ea||nt(Ci[0]);return gi&&(si.fixed=gi),[si,u()(u()({},li),{fixed:gi})].concat(Nr()(Ci))}return[u()(u()({},li),{fixed:ea||nt(uo[0])})].concat(Nr()(uo))},[La,To,_t,Jo,wo,ts,bi,Ho,va,Io,ao,Fi,rs,So]);return[_o,wo]}var Ct=n("6SEX"),gt=n.n(Ct),pr=n("i8CU"),$r=n.n(pr),Yr=n("3S7+");function mn(_t,Or){return"key"in _t&&_t.key!==void 0&&_t.key!==null?_t.key:_t.dataIndex?Array.isArray(_t.dataIndex)?_t.dataIndex.join("."):_t.dataIndex:Or}function Ar(_t,Or){return Or?"".concat(Or,"-").concat(_t):"".concat(_t)}function zn(_t,Or){return typeof _t=="function"?_t(Or):_t}var Fr="ascend",Bn="descend";function bn(_t){return f()(_t.sorter)==="object"&&typeof _t.sorter.multiple=="number"?_t.sorter.multiple:!1}function en(_t){return typeof _t=="function"?_t:_t&&f()(_t)==="object"&&_t.compare?_t.compare:!1}function ti(_t,Or){return Or?_t[_t.indexOf(Or)+1]:_t[0]}function pi(_t,Or,Lr){var rn=[];function xn(Ln,Sn){rn.push({column:Ln,key:mn(Ln,Sn),multiplePriority:bn(Ln),sortOrder:Ln.sortOrder})}return(_t||[]).forEach(function(Ln,Sn){var ei=Ar(Sn,Lr);Ln.children?("sortOrder"in Ln&&xn(Ln,ei),rn=[].concat(Nr()(rn),Nr()(pi(Ln.children,Or,ei)))):Ln.sorter&&("sortOrder"in Ln?xn(Ln,ei):Or&&Ln.defaultSortOrder&&rn.push({column:Ln,key:mn(Ln,ei),multiplePriority:bn(Ln),sortOrder:Ln.defaultSortOrder}))}),rn}function Pi(_t,Or,Lr,rn,xn,Ln,Sn,ei){return(Or||[]).map(function(Kn,mi){var Fi=Ar(mi,ei),bi=Kn;if(bi.sorter){var Ii=bi.sortDirections||xn,Vi=bi.showSorterTooltip===void 0?Sn:bi.showSorterTooltip,ea=mn(bi,Fi),Xi=Lr.find(function(ga){var Oa=ga.key;return Oa===ea}),zi=Xi?Xi.sortOrder:null,Hi=ti(Ii,zi),Ji=Ii.includes(Fr)&&s.createElement($r.a,{className:t()("".concat(_t,"-column-sorter-up"),{active:zi===Fr})}),ca=Ii.includes(Bn)&&s.createElement(gt.a,{className:t()("".concat(_t,"-column-sorter-down"),{active:zi===Bn})}),Ca=Ln||{},na=Ca.cancelSort,Pa=Ca.triggerAsc,La=Ca.triggerDesc,va=na;Hi===Bn?va=La:Hi===Fr&&(va=Pa),bi=u()(u()({},bi),{className:t()(bi.className,v()({},"".concat(_t,"-column-sort"),zi)),title:function(Oa){var Aa=s.createElement("div",{className:"".concat(_t,"-column-sorters")},s.createElement("span",null,zn(Kn.title,Oa)),s.createElement("span",{className:t()("".concat(_t,"-column-sorter"),v()({},"".concat(_t,"-column-sorter-full"),Ji&&ca))},s.createElement("span",{className:"".concat(_t,"-column-sorter-inner")},Ji,ca)));return Vi?s.createElement(Yr.a,{title:va},s.createElement("div",{className:"".concat(_t,"-column-sorters-with-tooltip")},Aa)):Aa},onHeaderCell:function(Oa){var Aa=Kn.onHeaderCell&&Kn.onHeaderCell(Oa)||{},Xa=Aa.onClick;return Aa.onClick=function(_a){rn({column:Kn,key:ea,sortOrder:Hi,multiplePriority:bn(Kn)}),Xa&&Xa(_a)},Aa.className=t()(Aa.className,"".concat(_t,"-column-has-sorters")),Aa}})}return"children"in bi&&(bi=u()(u()({},bi),{children:Pi(_t,bi.children,Lr,rn,xn,Ln,Sn,Fi)})),bi})}function qr(_t){var Or=_t.column,Lr=_t.sortOrder;return{column:Or,order:Lr,field:Or.dataIndex,columnKey:Or.key}}function En(_t){var Or=_t.filter(function(Lr){var rn=Lr.sortOrder;return rn}).map(qr);return Or.length===0&&_t.length?u()(u()({},qr(_t[_t.length-1])),{column:void 0}):Or.length<=1?Or[0]||{}:Or}function Yn(_t,Or,Lr){var rn=Or.slice().sort(function(Sn,ei){return ei.multiplePriority-Sn.multiplePriority}),xn=_t.slice(),Ln=rn.filter(function(Sn){var ei=Sn.column.sorter,Kn=Sn.sortOrder;return en(ei)&&Kn});return Ln.length?xn.sort(function(Sn,ei){for(var Kn=0;Kn<Ln.length;Kn+=1){var mi=Ln[Kn],Fi=mi.column.sorter,bi=mi.sortOrder,Ii=en(Fi);if(Ii&&bi){var Vi=Ii(Sn,ei,bi);if(Vi!==0)return bi===Fr?Vi:-Vi}}return 0}).map(function(Sn){var ei=Sn[Lr];return ei?u()(u()({},Sn),v()({},Lr,Yn(ei,Or,Lr))):Sn}):xn}function zt(_t){var Or=_t.prefixCls,Lr=_t.mergedColumns,rn=_t.onSorterChange,xn=_t.sortDirections,Ln=_t.tableLocale,Sn=_t.showSorterTooltip,ei=s.useState(pi(Lr,!0)),Kn=p()(ei,2),mi=Kn[0],Fi=Kn[1],bi=s.useMemo(function(){var zi=!0,Hi=pi(Lr,!1);if(!Hi.length)return mi;var Ji=[];function ca(na){zi?Ji.push(na):Ji.push(u()(u()({},na),{sortOrder:null}))}var Ca=null;return Hi.forEach(function(na){Ca===null?(ca(na),na.sortOrder&&(na.multiplePriority===!1?zi=!1:Ca=!0)):(Ca&&na.multiplePriority!==!1||(zi=!1),ca(na))}),Ji},[Lr,mi]),Ii=s.useMemo(function(){var zi=bi.map(function(Hi){var Ji=Hi.column,ca=Hi.sortOrder;return{column:Ji,order:ca}});return{sortColumns:zi,sortColumn:zi[0]&&zi[0].column,sortOrder:zi[0]&&zi[0].order}},[bi]);function Vi(zi){var Hi;zi.multiplePriority===!1||!bi.length||bi[0].multiplePriority===!1?Hi=[zi]:Hi=[].concat(Nr()(bi.filter(function(Ji){var ca=Ji.key;return ca!==zi.key})),[zi]),Fi(Hi),rn(En(Hi),Hi)}var ea=function(Hi){return Pi(Or,Hi,bi,Vi,xn,Ln,Sn)},Xi=function(){return En(bi)};return[ea,bi,Ii,Xi]}var Ot=n("Y+p1"),kt=n.n(Ot),Bt=n("5Uyt"),Wt=n.n(Bt),Lt=n("2/Rp"),dr=n("ECub"),yr=function(Or){return s.createElement("div",{className:Or.className,onClick:function(rn){return rn.stopPropagation()}},Or.children)},br=yr,Mr=n("sPtV"),Gn=Wi.a.SubMenu,Mn=Wi.a.Item;function di(_t){return _t.some(function(Or){var Lr=Or.children;return Lr})}function vn(_t){var Or=_t.filters,Lr=_t.prefixCls,rn=_t.filteredKeys,xn=_t.filterMultiple,Ln=_t.locale;return Or.length===0?s.createElement(s.Fragment,null,s.createElement(dr.a,{image:dr.a.PRESENTED_IMAGE_SIMPLE,description:Ln.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}})):Or.map(function(Sn,ei){var Kn=String(Sn.value);if(Sn.children)return s.createElement(Gn,{key:Kn||ei,title:Sn.text,popupClassName:"".concat(Lr,"-dropdown-submenu")},vn({filters:Sn.children,prefixCls:Lr,filteredKeys:rn,filterMultiple:xn,locale:Ln}));var mi=xn?_i.a:it.a;return s.createElement(Mn,{key:Sn.value!==void 0?Kn:ei},s.createElement(mi,{checked:rn.includes(Kn)}),s.createElement("span",null,Sn.text))})}function Ur(_t){var Or,Lr=_t.prefixCls,rn=_t.column,xn=_t.dropdownPrefixCls,Ln=_t.columnKey,Sn=_t.filterMultiple,ei=_t.filterState,Kn=_t.triggerFilter,mi=_t.locale,Fi=_t.children,bi=_t.getPopupContainer,Ii=rn.filterDropdownVisible,Vi=rn.onFilterDropdownVisibleChange,ea=s.useState(!1),Xi=p()(ea,2),zi=Xi[0],Hi=Xi[1],Ji=!!(ei&&(((Or=ei.filteredKeys)===null||Or===void 0?void 0:Or.length)||ei.forceFiltered)),ca=function(Oo){Hi(Oo),Vi&&Vi(Oo)},Ca=typeof Ii=="boolean"?Ii:zi,na=ei&&ei.filteredKeys,Pa=Object(Mr.a)(na||[]),La=p()(Pa,2),va=La[0],ga=La[1],Oa=function(Oo){var Io=Oo.selectedKeys;ga(Io)};s.useEffect(function(){Oa({selectedKeys:na||[]})},[na]);var Aa=s.useState([]),Xa=p()(Aa,2),_a=Xa[0],Va=Xa[1],Bi=s.useRef(),io=function(Oo){Bi.current=window.setTimeout(function(){Va(Oo)})},oo=function(){window.clearTimeout(Bi.current)};s.useEffect(function(){return function(){window.clearTimeout(Bi.current)}},[]);var Qo=function(Oo){ca(!1);var Io=Oo&&Oo.length?Oo:null;if(Io===null&&(!ei||!ei.filteredKeys))return null;if(kt()(Io,ei==null?void 0:ei.filteredKeys))return null;Kn({column:rn,key:Ln,filteredKeys:Io})},mo=function(){Qo(va())},To=function(){ga([]),Qo([])},ao=function(Oo){Oo&&na!==void 0&&ga(na||[]),ca(Oo),!Oo&&!rn.filterDropdown&&mo()},So=t()(v()({},"".concat(xn,"-menu-without-submenu"),!di(rn.filters||[]))),bo;if(typeof rn.filterDropdown=="function")bo=rn.filterDropdown({prefixCls:"".concat(xn,"-custom"),setSelectedKeys:function(Oo){return Oa({selectedKeys:Oo})},selectedKeys:va(),confirm:mo,clearFilters:To,filters:rn.filters,visible:Ca});else if(rn.filterDropdown)bo=rn.filterDropdown;else{var to=va()||[];bo=s.createElement(s.Fragment,null,s.createElement(Wi.a,{multiple:Sn,prefixCls:"".concat(xn,"-menu"),className:So,onClick:oo,onSelect:Oa,onDeselect:Oa,selectedKeys:to,getPopupContainer:bi,openKeys:_a,onOpenChange:io},vn({filters:rn.filters||[],prefixCls:Lr,filteredKeys:va(),filterMultiple:Sn,locale:mi})),s.createElement("div",{className:"".concat(Lr,"-dropdown-btns")},s.createElement(Lt.a,{type:"link",size:"small",disabled:to.length===0,onClick:To},mi.filterReset),s.createElement(Lt.a,{type:"primary",size:"small",onClick:mo},mi.filterConfirm)))}var Jo=s.createElement(br,{className:"".concat(Lr,"-dropdown")},bo),Uo;typeof rn.filterIcon=="function"?Uo=rn.filterIcon(Ji):rn.filterIcon?Uo=rn.filterIcon:Uo=s.createElement(Wt.a,null);var wo=s.useContext(jt.b),ts=wo.direction;return s.createElement("div",{className:t()("".concat(Lr,"-column"))},s.createElement("span",{className:"".concat(Lr,"-column-title")},Fi),s.createElement("span",{className:t()("".concat(Lr,"-trigger-container"),v()({},"".concat(Lr,"-trigger-container-open"),Ca)),onClick:function(Oo){Oo.stopPropagation()}},s.createElement(Di.a,{overlay:Jo,trigger:["click"],visible:Ca,onVisibleChange:ao,getPopupContainer:bi,placement:ts==="rtl"?"bottomLeft":"bottomRight"},s.createElement("span",{role:"button",tabIndex:-1,className:t()("".concat(Lr,"-trigger"),{active:Ji})},Uo))))}var In=Ur;function Qn(_t,Or,Lr){var rn=[];return(_t||[]).forEach(function(xn,Ln){var Sn=Ar(Ln,Lr);"children"in xn?rn=[].concat(Nr()(rn),Nr()(Qn(xn.children,Or,Sn))):(xn.filters||"filterDropdown"in xn||"onFilter"in xn)&&("filteredValue"in xn?rn.push({column:xn,key:mn(xn,Sn),filteredKeys:xn.filteredValue,forceFiltered:xn.filtered}):rn.push({column:xn,key:mn(xn,Sn),filteredKeys:Or&&xn.defaultFilteredValue?xn.defaultFilteredValue:void 0,forceFiltered:xn.filtered}))}),rn}function qn(_t,Or,Lr,rn,xn,Ln,Sn,ei){return Lr.map(function(Kn,mi){var Fi=Ar(mi,ei),bi=Kn.filterMultiple,Ii=bi===void 0?!0:bi;if(Kn.filters||"filterDropdown"in Kn){var Vi=mn(Kn,Fi),ea=rn.find(function(Xi){var zi=Xi.key;return Vi===zi});return u()(u()({},Kn),{title:function(zi){return s.createElement(In,{prefixCls:"".concat(_t,"-filter"),dropdownPrefixCls:Or,column:Kn,columnKey:Vi,filterState:ea,filterMultiple:Ii,triggerFilter:xn,locale:Sn,getPopupContainer:Ln},zn(Kn.title,zi))}})}return"children"in Kn?u()(u()({},Kn),{children:qn(_t,Or,Kn.children,rn,xn,Ln,Sn,Fi)}):Kn})}function oi(_t){var Or={};return _t.forEach(function(Lr){var rn=Lr.key,xn=Lr.filteredKeys;Or[rn]=xn||null}),Or}function Ti(_t){var Or=[];return(_t||[]).forEach(function(Lr){var rn=Lr.value,xn=Lr.children;Or.push(rn),xn&&(Or=[].concat(Nr()(Or),Nr()(Ti(xn))))}),Or}function ki(_t,Or){return Or.reduce(function(Lr,rn){var xn=rn.column,Ln=xn.onFilter,Sn=xn.filters,ei=rn.filteredKeys;return Ln&&ei&&ei.length?Lr.filter(function(Kn){return ei.some(function(mi){var Fi=Ti(Sn),bi=Fi.findIndex(function(Vi){return String(Vi)===String(mi)}),Ii=bi!==-1?Fi[bi]:mi;return Ln(Ii,Kn)})}):Lr},_t)}function Ri(_t){var Or=_t.prefixCls,Lr=_t.dropdownPrefixCls,rn=_t.mergedColumns,xn=_t.onFilterChange,Ln=_t.getPopupContainer,Sn=_t.locale,ei=s.useState(Qn(rn,!0)),Kn=p()(ei,2),mi=Kn[0],Fi=Kn[1],bi=s.useMemo(function(){var Xi=Qn(rn,!1);return Xi.every(function(zi){var Hi=zi.filteredKeys;return Hi===void 0})?mi:Xi},[rn,mi]),Ii=s.useCallback(function(){return oi(bi)},[bi]),Vi=function(zi){var Hi=bi.filter(function(Ji){var ca=Ji.key;return ca!==zi.key});Hi.push(zi),Fi(Hi),xn(oi(Hi),Hi)},ea=function(zi){return qn(Or,Lr,zi,bi,Vi,Ln,Sn)};return[ea,bi,Ii]}var oa=Ri;function ma(_t,Or){return _t.map(function(Lr){var rn=u()({},Lr);return rn.title=zn(Lr.title,Or),"children"in rn&&(rn.children=ma(rn.children,Or)),rn})}function aa(_t){var Or=s.useCallback(function(Lr){return ma(Lr,_t)},[_t]);return[Or]}function ba(_t){return function(Lr){var rn,xn=Lr.prefixCls,Ln=Lr.onExpand,Sn=Lr.record,ei=Lr.expanded,Kn=Lr.expandable,mi="".concat(xn,"-row-expand-icon");return s.createElement("button",{type:"button",onClick:function(bi){Ln(Sn,bi),bi.stopPropagation()},className:t()(mi,(rn={},v()(rn,"".concat(mi,"-spaced"),!Kn),v()(rn,"".concat(mi,"-expanded"),Kn&&ei),v()(rn,"".concat(mi,"-collapsed"),Kn&&!ei),rn)),"aria-label":ei?_t.collapse:_t.expand})}}var yi=ba,kn=n("zAh6"),ji=n("ZvpZ"),ha=ji.a,ta=n("3Nzz");function ra(_t){return null}var Ir=ra;function xr(_t){return null}var Cn=xr,mr=n("5OYt"),kr=[];function Gr(_t){var Or,Lr=_t.prefixCls,rn=_t.className,xn=_t.style,Ln=_t.size,Sn=_t.bordered,ei=_t.dropdownPrefixCls,Kn=_t.dataSource,mi=_t.pagination,Fi=_t.rowSelection,bi=_t.rowKey,Ii=_t.rowClassName,Vi=_t.columns,ea=_t.children,Xi=_t.childrenColumnName,zi=_t.onChange,Hi=_t.getPopupContainer,Ji=_t.loading,ca=_t.expandIcon,Ca=_t.expandable,na=_t.expandedRowRender,Pa=_t.expandIconColumnIndex,La=_t.indentSize,va=_t.scroll,ga=_t.sortDirections,Oa=_t.locale,Aa=_t.showSorterTooltip,Xa=Aa===void 0?!0:Aa;Object(Le.a)(!(typeof bi=="function"&&bi.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var _a=Object(mr.a)(),Va=s.useMemo(function(){var Ao=new Set(Object.keys(_a).filter(function($a){return _a[$a]}));return(Vi||pe(ea)).filter(function($a){return!$a.responsive||$a.responsive.some(function(ss){return Ao.has(ss)})})},[ea,Vi,_a]),Bi=Object(o.default)(_t,["className","style","columns"]),io=s.useContext(ta.b),oo=s.useContext(jt.b),Qo=oo.locale,mo=Qo===void 0?ha:Qo,To=oo.renderEmpty,ao=oo.direction,So=Ln||io,bo=u()(u()({},mo.Table),Oa),to=Kn||kr,Jo=s.useContext(jt.b),Uo=Jo.getPrefixCls,wo=Uo("table",Lr),ts=Uo("dropdown",ei),Ia=u()({childrenColumnName:Xi,expandIconColumnIndex:Pa},Ca),Oo=Ia.childrenColumnName,Io=Oo===void 0?"children":Oo,os=s.useMemo(function(){return to.some(function(Ao){var $a;return($a=Ao)===null||$a===void 0?void 0:$a[Io]})?"nest":na||Ca&&Ca.expandedRowRender?"row":null},[to]),xo={body:s.useRef()},rs=s.useMemo(function(){return typeof bi=="function"?bi:function(Ao){var $a;return($a=Ao)===null||$a===void 0?void 0:$a[bi]}},[bi]),Ho=tr(to,Io,rs),_o=p()(Ho,1),uo=_o[0],Ha={},mt=function($a,ss){var _s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Fo=u()(u()({},Ha),$a);_s&&(Ha.resetPagination(),Fo.pagination.current&&(Fo.pagination.current=1),mi&&mi.onChange&&mi.onChange(1,Fo.pagination.pageSize)),va&&va.scrollToFirstRowOnChange!==!1&&xo.body.current&&Object(kn.a)(0,{getContainer:function(){return xo.body.current}}),zi&&zi(Fo.pagination,Fo.filters,Fo.sorter,{currentDataSource:ki(Yn(to,Fo.sorterStates,Io),Fo.filterStates),action:ss})},Tr=function($a,ss){mt({sorter:$a,sorterStates:ss},"sort",!1)},tn=zt({prefixCls:wo,mergedColumns:Va,onSorterChange:Tr,sortDirections:ga||["ascend","descend"],tableLocale:bo,showSorterTooltip:Xa}),Qr=p()(tn,4),Jn=Qr[0],fn=Qr[1],Xr=Qr[2],ii=Qr[3],nn=s.useMemo(function(){return Yn(to,fn,Io)},[to,fn]);Ha.sorter=ii(),Ha.sorterStates=fn;var Wn=function($a,ss){mt({filters:$a,filterStates:ss},"filter",!0)},li=oa({prefixCls:wo,locale:bo,dropdownPrefixCls:ts,mergedColumns:Va,onFilterChange:Wn,getPopupContainer:Hi}),ci=p()(li,3),si=ci[0],Ci=ci[1],gi=ci[2],Ai=ki(nn,Ci);Ha.filters=gi(),Ha.filterStates=Ci;var Ni=s.useMemo(function(){return u()({},Xr)},[Xr]),ia=aa(Ni),Ki=p()(ia,1),fa=Ki[0],Ya=function($a,ss){mt({pagination:u()(u()({},Ha.pagination),{current:$a,pageSize:ss})},"paginate")},xa=Mt(Ai.length,mi,Ya),wa=p()(xa,2),Da=wa[0],ja=wa[1];Ha.pagination=mi===!1?{}:cr(mi,Da),Ha.resetPagination=ja;var ko=s.useMemo(function(){if(mi===!1||!Da.pageSize)return Ai;var Ao=Da.current,$a=Ao===void 0?1:Ao,ss=Da.total,_s=Da.pageSize,Fo=_s===void 0?bt:_s;return Ai.length<ss?Ai.length>Fo?(Object(Le.a)(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),Ai.slice(($a-1)*Fo,$a*Fo)):Ai:Ai.slice(($a-1)*Fo,$a*Fo)},[!!mi,Ai,Da&&Da.current,Da&&Da.pageSize,Da&&Da.total]),ro=ot(Fi,{prefixCls:wo,data:Ai,pageData:ko,getRowKey:rs,getRecordByKey:uo,expandType:os,childrenColumnName:Io,locale:bo,expandIconColumnIndex:Ia.expandIconColumnIndex,getPopupContainer:Hi}),pa=p()(ro,2),Ea=pa[0],Fa=pa[1],Ka=function($a,ss,_s){var Fo;return typeof Ii=="function"?Fo=t()(Ii($a,ss,_s)):Fo=t()(Ii),t()(v()({},"".concat(wo,"-row-selected"),Fa.has(rs($a,ss))),Fo)};Ia.__PARENT_RENDER_ICON__=Ia.expandIcon,Ia.expandIcon=Ia.expandIcon||ca||yi(bo),os==="nest"&&Ia.expandIconColumnIndex===void 0?Ia.expandIconColumnIndex=Fi?1:0:Ia.expandIconColumnIndex>0&&Fi&&(Ia.expandIconColumnIndex-=1),typeof Ia.indentSize!="number"&&(Ia.indentSize=typeof La=="number"?La:15);var lo=s.useCallback(function(Ao){return fa(Ea(si(Jn(Ao))))},[Jn,si,Ea]),so,Co;if(mi!==!1){var Lo;Da.size?Lo=Da.size:Lo=So==="small"||So==="middle"?"small":void 0;var is=function($a){return s.createElement(hn.a,u()({className:"".concat(wo,"-pagination ").concat(wo,"-pagination-").concat($a)},Da,{size:Lo}))},cs=ao==="rtl"?"left":"right";if(Da.position!==null&&Array.isArray(Da.position)){var Rs=Da.position.find(function(Ao){return Ao.indexOf("top")!==-1}),Ko=Da.position.find(function(Ao){return Ao.indexOf("bottom")!==-1});!Rs&&!Ko?Co=is(cs):(Rs&&(so=is(Rs.toLowerCase().replace("top",""))),Ko&&(Co=is(Ko.toLowerCase().replace("bottom",""))))}else Co=is(cs)}var as;typeof Ji=="boolean"?as={spinning:Ji}:f()(Ji)==="object"&&(as=u()({spinning:!0},Ji));var co=t()("".concat(wo,"-wrapper"),rn,v()({},"".concat(wo,"-wrapper-rtl"),ao==="rtl"));return s.createElement("div",{className:co,style:xn},s.createElement(zr.a,u()({spinning:!1},as),so,s.createElement(Rr,u()({},Bi,{columns:Va,direction:ao,expandable:Ia,prefixCls:wo,className:t()((Or={},v()(Or,"".concat(wo,"-middle"),So==="middle"),v()(Or,"".concat(wo,"-small"),So==="small"),v()(Or,"".concat(wo,"-bordered"),Sn),v()(Or,"".concat(wo,"-empty"),to.length===0),Or)),data:ko,rowKey:rs,rowClassName:Ka,emptyText:Oa&&Oa.emptyText||To("Table"),internalHooks:tt,internalRefs:xo,transformColumns:lo})),Ai&&Ai.length>0&&Co))}Gr.defaultProps={rowKey:"key"},Gr.SELECTION_ALL=je,Gr.SELECTION_INVERT=Xe,Gr.Column=Ir,Gr.ColumnGroup=Cn,Gr.Summary=_n;var ln=Gr,Fn=D.a=ln},wDdD:function(R,D,n){var y=n("ProS"),f=n("bYtY");n("98bh"),n("GrNh");var x=n("d4KN"),v=n("mOdp"),m=n("KS52"),p=n("0/Rx");x("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),y.registerVisual(v("pie")),y.registerLayout(f.curry(m,"pie")),y.registerProcessor(p("pie"))},"wF/u":function(R,D,n){var y=n("e5cp"),f=n("ExA7");function x(v,m,p,d,u){return v===m?!0:v==null||m==null||!f(v)&&!f(m)?v!==v&&m!==m:y(v,m,p,d,x,u)}R.exports=x},wFql:function(R,D,n){"use strict";var y=n("pVnL"),f=n.n(y),x=n("lSNA"),v=n.n(x),m=n("q1tI"),p=n("TSYQ"),d=n.n(p),u=n("H84U"),s=n("uaoM"),i=n("ID/q"),t=function(Ft,ur){var Jt={};for(var pt in Ft)Object.prototype.hasOwnProperty.call(Ft,pt)&&ur.indexOf(pt)<0&&(Jt[pt]=Ft[pt]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,pt=Object.getOwnPropertySymbols(Ft);at<pt.length;at++)ur.indexOf(pt[at])<0&&Object.prototype.propertyIsEnumerable.call(Ft,pt[at])&&(Jt[pt[at]]=Ft[pt[at]]);return Jt},o=function(ur,Jt){var pt=ur.prefixCls,at=ur.component,Pr=at===void 0?"article":at,un=ur.className,_n=ur["aria-label"],Xn=ur.setContentRef,xi=ur.children,Pn=t(ur,["prefixCls","component","className","aria-label","setContentRef","children"]),Un=Jt;return Xn&&(Object(s.a)(!1,"Typography","`setContentRef` is deprecated. Please use `ref` instead."),Un=Object(i.a)(Jt,Xn)),m.createElement(u.a,null,function($t){var xt=$t.getPrefixCls,De=$t.direction,ke=Pr,Pe=xt("typography",pt),tt=d()(Pe,un,v()({},"".concat(Pe,"-rtl"),De==="rtl"));return m.createElement(ke,f()({className:tt,"aria-label":_n,ref:Un},Pn),xi)})},e=m.forwardRef(o);e.displayName="Typography";var l=e,r=l,a=n("cDf5"),c=n.n(a),h=n("RIqP"),g=n.n(h),A=n("lwsE"),b=n.n(A),S=n("W8MJ"),E=n.n(S),C=n("7W2i"),_=n.n(C),T=n("LQ03"),w=n.n(T),O=n("Zm9Q"),I=n("m+aA"),k=n("+QRC"),M=n.n(k),j=n("BGR+"),P=n("s/wZ"),X=n.n(P),F=n("NAnI"),U=n.n(F),K=n("0OKo"),z=n.n(K),V=n("6ner"),Q=n("wEI+"),G=n("YMnH"),te=n("4IlW"),q=function(Ft,ur){var Jt={};for(var pt in Ft)Object.prototype.hasOwnProperty.call(Ft,pt)&&ur.indexOf(pt)<0&&(Jt[pt]=Ft[pt]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,pt=Object.getOwnPropertySymbols(Ft);at<pt.length;at++)ur.indexOf(pt[at])<0&&Object.prototype.propertyIsEnumerable.call(Ft,pt[at])&&(Jt[pt[at]]=Ft[pt[at]]);return Jt},se={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},re=function(Ft){_()(Jt,Ft);var ur=w()(Jt);function Jt(){var pt;return b()(this,Jt),pt=ur.apply(this,arguments),pt.onKeyDown=function(at){var Pr=at.keyCode;Pr===te.a.ENTER&&at.preventDefault()},pt.onKeyUp=function(at){var Pr=at.keyCode,un=pt.props.onClick;Pr===te.a.ENTER&&un&&un()},pt.setRef=function(at){pt.div=at},pt}return E()(Jt,[{key:"componentDidMount",value:function(){var at=this.props.autoFocus;at&&this.focus()}},{key:"focus",value:function(){this.div&&this.div.focus()}},{key:"blur",value:function(){this.div&&this.div.blur()}},{key:"render",value:function(){var at=this.props,Pr=at.style,un=at.noStyle,_n=at.disabled,Xn=q(at,["style","noStyle","disabled"]),xi={};return un||(xi=f()({},se)),_n&&(xi.pointerEvents="none"),xi=f()(f()({},xi),Pr),m.createElement("div",f()({role:"button",tabIndex:0,ref:this.setRef},Xn,{onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,style:xi}))}}]),Jt}(m.Component),xe=re,Oe=n("oHiP"),Me=function(ur){if(typeof window!="undefined"&&window.document&&window.document.documentElement){var Jt=Array.isArray(ur)?ur:[ur],pt=window.document.documentElement;return Jt.some(function(at){return at in pt.style})}return!1},Qe=Me(["flex","webkitFlex","Flex","msFlex"]),Ve=Me,ut=n("3S7+"),Fe=n("FMes"),ue=n.n(Fe),et=n("whJP"),he=function(Ft){_()(Jt,Ft);var ur=w()(Jt);function Jt(){var pt;return b()(this,Jt),pt=ur.apply(this,arguments),pt.inComposition=!1,pt.state={current:""},pt.onChange=function(at){var Pr=at.target.value;pt.setState({current:Pr.replace(/[\n\r]/g,"")})},pt.onCompositionStart=function(){pt.inComposition=!0},pt.onCompositionEnd=function(){pt.inComposition=!1},pt.onKeyDown=function(at){var Pr=at.keyCode;if(pt.inComposition)return;pt.lastKeyCode=Pr},pt.onKeyUp=function(at){var Pr=at.keyCode,un=at.ctrlKey,_n=at.altKey,Xn=at.metaKey,xi=at.shiftKey,Pn=pt.props.onCancel;pt.lastKeyCode===Pr&&!pt.inComposition&&!un&&!_n&&!Xn&&!xi&&(Pr===te.a.ENTER?pt.confirmChange():Pr===te.a.ESC&&Pn())},pt.onBlur=function(){pt.confirmChange()},pt.confirmChange=function(){var at=pt.state.current,Pr=pt.props.onSave;Pr(at.trim())},pt.setTextarea=function(at){pt.textarea=at},pt}return E()(Jt,[{key:"componentDidMount",value:function(){if(this.textarea&&this.textarea.resizableTextArea){var at=this.textarea.resizableTextArea.textArea;at.focus();var Pr=at.value.length;at.setSelectionRange(Pr,Pr)}}},{key:"render",value:function(){var at=this.state.current,Pr=this.props,un=Pr.prefixCls,_n=Pr["aria-label"],Xn=Pr.className,xi=Pr.style,Pn=Pr.direction,Un=Pr.maxLength,$t=Pr.autoSize,xt=d()(un,Xn,"".concat(un,"-edit-content"),v()({},"".concat(un,"-rtl"),Pn==="rtl"));return m.createElement("div",{className:xt,style:xi},m.createElement(et.a,{ref:this.setTextarea,maxLength:Un,value:at,onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,onCompositionStart:this.onCompositionStart,onCompositionEnd:this.onCompositionEnd,onBlur:this.onBlur,"aria-label":_n,autoSize:$t===void 0||$t}),m.createElement(ue.a,{className:"".concat(un,"-edit-content-confirm")}))}}],[{key:"getDerivedStateFromProps",value:function(at,Pr){var un=Pr.prevValue,_n=at.value,Xn={prevValue:_n};return un!==_n&&(Xn.current=_n),Xn}}]),Jt}(m.Component),J=he,Y=n("i8i4"),$=1,de=3,be=8,Ce,Be={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function fe(Ft){if(!Ft)return 0;var ur=Ft.match(/^\d*(\.\d*)?/);return ur?Number(ur[0]):0}function we(Ft){var ur=Array.prototype.slice.apply(Ft);return ur.map(function(Jt){return"".concat(Jt,": ").concat(Ft.getPropertyValue(Jt),";")}).join("")}function Re(Ft){var ur=[];return Ft.forEach(function(Jt){var pt=ur[ur.length-1];typeof Jt=="string"&&typeof pt=="string"?ur[ur.length-1]+=Jt:ur.push(Jt)}),ur}var rt=function(Ft,ur,Jt,pt,at){Ce||(Ce=document.createElement("div"),Ce.setAttribute("aria-hidden","true"),document.body.appendChild(Ce));var Pr=ur.rows,un=ur.suffix,_n=un===void 0?"":un,Xn=window.getComputedStyle(Ft),xi=we(Xn),Pn=fe(Xn.lineHeight),Un=Math.round(Pn*(Pr+1)+fe(Xn.paddingTop)+fe(Xn.paddingBottom));Ce.setAttribute("style",xi),Ce.style.position="fixed",Ce.style.left="0",Ce.style.height="auto",Ce.style.minHeight="auto",Ce.style.maxHeight="auto",Ce.style.top="-999999px",Ce.style.zIndex="-1000",Ce.style.textOverflow="clip",Ce.style.whiteSpace="normal",Ce.style.webkitLineClamp="none";var $t=Re(Object(O.a)(Jt));Object(Y.render)(m.createElement("div",{style:Be},m.createElement("span",{style:Be},$t,_n),m.createElement("span",{style:Be},pt)),Ce);function xt(){return Ce.offsetHeight<Un}if(xt())return Object(Y.unmountComponentAtNode)(Ce),{content:Jt,text:Ce.innerHTML,ellipsis:!1};var De=Array.prototype.slice.apply(Ce.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(function(zr){var hn=zr.nodeType;return hn!==be}),ke=Array.prototype.slice.apply(Ce.childNodes[0].childNodes[1].cloneNode(!0).childNodes);Object(Y.unmountComponentAtNode)(Ce);var Pe=[];Ce.innerHTML="";var tt=document.createElement("span");Ce.appendChild(tt);var yt=document.createTextNode(at+_n);tt.appendChild(yt),ke.forEach(function(zr){Ce.appendChild(zr)});function Et(zr){tt.insertBefore(zr,yt)}function Yt(zr,hn){var jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:hn.length,bt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,cr=Math.floor((jt+vt)/2),Qt=hn.slice(0,cr);if(zr.textContent=Qt,jt>=vt-1)for(var Mt=vt;Mt>=jt;Mt-=1){var tr=hn.slice(0,Mt);if(zr.textContent=tr,xt()||!tr)return Mt===hn.length?{finished:!1,reactNode:hn}:{finished:!0,reactNode:tr}}return xt()?Yt(zr,hn,cr,vt,cr):Yt(zr,hn,jt,cr,bt)}function Rr(zr,hn){var jt=zr.nodeType;if(jt===$)return Et(zr),xt()?{finished:!1,reactNode:$t[hn]}:(tt.removeChild(zr),{finished:!0,reactNode:null});if(jt===de){var vt=zr.textContent||"",bt=document.createTextNode(vt);return Et(bt),Yt(bt,vt)}return{finished:!1,reactNode:null}}return De.some(function(zr,hn){var jt=Rr(zr,hn),vt=jt.finished,bt=jt.reactNode;return bt&&Pe.push(bt),vt}),{content:Pe,text:Ce.innerHTML,ellipsis:!0}},St=function(Ft,ur){var Jt={};for(var pt in Ft)Object.prototype.hasOwnProperty.call(Ft,pt)&&ur.indexOf(pt)<0&&(Jt[pt]=Ft[pt]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,pt=Object.getOwnPropertySymbols(Ft);at<pt.length;at++)ur.indexOf(pt[at])<0&&Object.prototype.propertyIsEnumerable.call(Ft,pt[at])&&(Jt[pt[at]]=Ft[pt[at]]);return Jt},ft=Ve("webkitLineClamp"),He=Ve("textOverflow");function er(Ft,ur){var Jt=Ft.mark,pt=Ft.code,at=Ft.underline,Pr=Ft.delete,un=Ft.strong,_n=Ft.keyboard,Xn=ur;function xi(Pn,Un){if(!Pn)return;Xn=m.createElement(Un,{},Xn)}return xi(un,"strong"),xi(at,"u"),xi(Pr,"del"),xi(pt,"code"),xi(Jt,"mark"),xi(_n,"kbd"),Xn}var ct="...",Kt=function(Ft){_()(Jt,Ft);var ur=w()(Jt);function Jt(){var pt;return b()(this,Jt),pt=ur.apply(this,arguments),pt.contentRef=m.createRef(),pt.state={edit:!1,copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1},pt.getPrefixCls=function(){var at=pt.props.prefixCls,Pr=pt.context.getPrefixCls;return Pr("typography",at)},pt.onExpandClick=function(at){var Pr=pt.getEllipsis(),un=Pr.onExpand;pt.setState({expanded:!0}),un&&un(at)},pt.onEditClick=function(){pt.triggerEdit(!0)},pt.onEditChange=function(at){var Pr=pt.getEditable(),un=Pr.onChange;un&&un(at),pt.triggerEdit(!1)},pt.onEditCancel=function(){pt.triggerEdit(!1)},pt.onCopyClick=function(){var at=pt.props,Pr=at.children,un=at.copyable,_n=f()({},c()(un)==="object"?un:null);_n.text===void 0&&(_n.text=String(Pr)),M()(_n.text||""),pt.setState({copied:!0},function(){_n.onCopy&&_n.onCopy(),pt.copyId=window.setTimeout(function(){pt.setState({copied:!1})},3e3)})},pt.setEditRef=function(at){pt.editIcon=at},pt.triggerEdit=function(at){var Pr=pt.getEditable(),un=Pr.onStart;at&&un&&un(),pt.setState({edit:at},function(){!at&&pt.editIcon&&pt.editIcon.focus()})},pt.resizeOnNextFrame=function(){Oe.a.cancel(pt.rafId),pt.rafId=Object(Oe.a)(function(){pt.syncEllipsis()})},pt}return E()(Jt,[{key:"componentDidMount",value:function(){this.setState({clientRendered:!0}),this.resizeOnNextFrame()}},{key:"componentDidUpdate",value:function(at){var Pr=this.props.children,un=this.getEllipsis(),_n=this.getEllipsis(at);(Pr!==at.children||un.rows!==_n.rows)&&this.resizeOnNextFrame()}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.copyId),Oe.a.cancel(this.rafId)}},{key:"getEditable",value:function(at){var Pr=this.state.edit,un=at||this.props,_n=un.editable;return _n?f()({editing:Pr},c()(_n)==="object"?_n:null):{editing:Pr}}},{key:"getEllipsis",value:function(at){var Pr=at||this.props,un=Pr.ellipsis;return un?f()({rows:1,expandable:!1},c()(un)==="object"?un:null):{}}},{key:"canUseCSSEllipsis",value:function(){var at=this.state.clientRendered,Pr=this.props,un=Pr.editable,_n=Pr.copyable,Xn=this.getEllipsis(),xi=Xn.rows,Pn=Xn.expandable,Un=Xn.suffix,$t=Xn.onEllipsis;return Un||(un||_n||Pn||!at||$t)?!1:xi===1?He:ft}},{key:"syncEllipsis",value:function(){var at=this.state,Pr=at.ellipsisText,un=at.isEllipsis,_n=at.expanded,Xn=this.getEllipsis(),xi=Xn.rows,Pn=Xn.suffix,Un=Xn.onEllipsis,$t=this.props.children;if(!xi||xi<0||!this.contentRef.current||_n)return;if(this.canUseCSSEllipsis())return;Object(s.a)(Object(O.a)($t).every(function(tt){return typeof tt=="string"}),"Typography","`ellipsis` should use string as children only.");var xt=rt(Object(I.a)(this.contentRef.current),{rows:xi,suffix:Pn},$t,this.renderOperations(!0),ct),De=xt.content,ke=xt.text,Pe=xt.ellipsis;(Pr!==ke||un!==Pe)&&(this.setState({ellipsisText:ke,ellipsisContent:De,isEllipsis:Pe}),un!==Pe&&Un&&Un(Pe))}},{key:"renderExpand",value:function(at){var Pr=this.getEllipsis(),un=Pr.expandable,_n=Pr.symbol,Xn=this.state,xi=Xn.expanded,Pn=Xn.isEllipsis;if(!un)return null;if(!at&&(xi||!Pn))return null;var Un;return _n?Un=_n:Un=this.expandStr,m.createElement("a",{key:"expand",className:"".concat(this.getPrefixCls(),"-expand"),onClick:this.onExpandClick,"aria-label":this.expandStr},Un)}},{key:"renderEdit",value:function(){var at=this.props.editable;if(!at)return;var Pr=at.icon,un=at.tooltip,_n=Object(O.a)(un)[0]||this.editStr,Xn=typeof _n=="string"?_n:"";return m.createElement(ut.a,{key:"edit",title:un===!1?"":_n},m.createElement(xe,{ref:this.setEditRef,className:"".concat(this.getPrefixCls(),"-edit"),onClick:this.onEditClick,"aria-label":Xn},Pr||m.createElement(X.a,{role:"button"})))}},{key:"renderCopy",value:function(){var at=this.state.copied,Pr=this.props.copyable;if(!Pr)return;var un=this.getPrefixCls(),_n=Pr.tooltips,Xn=Object(O.a)(_n);Xn.length===0&&(Xn=[this.copyStr,this.copiedStr]);var xi=at?Xn[1]:Xn[0],Pn=typeof xi=="string"?xi:"",Un=Object(O.a)(Pr.icon);return m.createElement(ut.a,{key:"copy",title:_n===!1?"":xi},m.createElement(xe,{className:d()("".concat(un,"-copy"),at&&"".concat(un,"-copy-success")),onClick:this.onCopyClick,"aria-label":Pn},at?Un[1]||m.createElement(U.a,null):Un[0]||m.createElement(z.a,null)))}},{key:"renderEditInput",value:function(){var at=this.props,Pr=at.children,un=at.className,_n=at.style,Xn=this.context.direction,xi=this.getEditable(),Pn=xi.maxLength,Un=xi.autoSize;return m.createElement(J,{value:typeof Pr=="string"?Pr:"",onSave:this.onEditChange,onCancel:this.onEditCancel,prefixCls:this.getPrefixCls(),className:un,style:_n,direction:Xn,maxLength:Pn,autoSize:Un})}},{key:"renderOperations",value:function(at){return[this.renderExpand(at),this.renderEdit(),this.renderCopy()].filter(function(Pr){return Pr})}},{key:"renderContent",value:function(){var at=this,Pr=this.state,un=Pr.ellipsisContent,_n=Pr.isEllipsis,Xn=Pr.expanded,xi=this.props,Pn=xi.component,Un=xi.children,$t=xi.className,xt=xi.type,De=xi.disabled,ke=xi.style,Pe=St(xi,["component","children","className","type","disabled","style"]),tt=this.context.direction,yt=this.getEllipsis(),Et=yt.rows,Yt=yt.suffix,Rr=this.getPrefixCls(),zr=Object(j.default)(Pe,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard"].concat(g()(Q.a))),hn=this.canUseCSSEllipsis(),jt=Et===1&&hn,vt=Et&&Et>1&&hn,bt=Un,cr;if(Et&&_n&&!Xn&&!hn){var Qt=Pe.title;cr=Qt,!Qt&&(typeof Un=="string"||typeof Un=="number")&&(cr=String(Un)),bt=m.createElement("span",{title:cr,"aria-hidden":"true"},un,ct,Yt)}else bt=m.createElement(m.Fragment,null,Un,Yt);return bt=er(this.props,bt),m.createElement(G.a,{componentName:"Text"},function(Mt){var tr,Rt=Mt.edit,qt=Mt.copy,Hr=Mt.copied,Nr=Mt.expand;return at.editStr=Rt,at.copyStr=qt,at.copiedStr=Hr,at.expandStr=Nr,m.createElement(V.a,{onResize:at.resizeOnNextFrame,disabled:!Et},m.createElement(r,f()({className:d()($t,(tr={},v()(tr,"".concat(Rr,"-").concat(xt),xt),v()(tr,"".concat(Rr,"-disabled"),De),v()(tr,"".concat(Rr,"-ellipsis"),Et),v()(tr,"".concat(Rr,"-ellipsis-single-line"),jt),v()(tr,"".concat(Rr,"-ellipsis-multiple-line"),vt),tr)),style:f()(f()({},ke),{WebkitLineClamp:vt?Et:null}),component:Pn,ref:at.contentRef,"aria-label":cr,direction:tt},zr),bt,at.renderOperations()))})}},{key:"render",value:function(){var at=this.getEditable(),Pr=at.editing;return Pr?this.renderEditInput():this.renderContent()}}],[{key:"getDerivedStateFromProps",value:function(at){var Pr=at.children,un=at.editable;return Object(s.a)(!un||typeof Pr=="string","Typography","When `editable` is enabled, the `children` should use string."),{}}}]),Jt}(m.Component);Kt.contextType=u.b,Kt.defaultProps={children:""};var fr=Kt,Gt=function(Ft,ur){var Jt={};for(var pt in Ft)Object.prototype.hasOwnProperty.call(Ft,pt)&&ur.indexOf(pt)<0&&(Jt[pt]=Ft[pt]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,pt=Object.getOwnPropertySymbols(Ft);at<pt.length;at++)ur.indexOf(pt[at])<0&&Object.prototype.propertyIsEnumerable.call(Ft,pt[at])&&(Jt[pt[at]]=Ft[pt[at]]);return Jt},Pt=function(ur){var Jt=ur.ellipsis,pt=Gt(ur,["ellipsis"]);return Object(s.a)(c()(Jt)!=="object","Typography.Text","`ellipsis` only supports boolean value."),m.createElement(fr,f()({},pt,{ellipsis:!!Jt,component:"span"}))},Xt=Pt,Ge=function(Ft,ur){var Jt={};for(var pt in Ft)Object.prototype.hasOwnProperty.call(Ft,pt)&&ur.indexOf(pt)<0&&(Jt[pt]=Ft[pt]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,pt=Object.getOwnPropertySymbols(Ft);at<pt.length;at++)ur.indexOf(pt[at])<0&&Object.prototype.propertyIsEnumerable.call(Ft,pt[at])&&(Jt[pt[at]]=Ft[pt[at]]);return Jt},pe=function(ur,Jt){var pt=ur.ellipsis,at=ur.rel,Pr=Ge(ur,["ellipsis","rel"]);Object(s.a)(c()(pt)!=="object","Typography.Link","`ellipsis` only supports boolean value.");var un=m.useRef(null);m.useImperativeHandle(Jt,function(){var Xn;return(Xn=un.current)===null||Xn===void 0?void 0:Xn.contentRef.current});var _n=f()(f()({},Pr),{rel:at===void 0&&Pr.target==="_blank"?"noopener noreferrer":at});return m.createElement(fr,f()({},_n,{ref:un,ellipsis:!!pt,component:"a"}))},oe=m.forwardRef(pe),lt=n("CWQg"),qe=function(Ft,ur){var Jt={};for(var pt in Ft)Object.prototype.hasOwnProperty.call(Ft,pt)&&ur.indexOf(pt)<0&&(Jt[pt]=Ft[pt]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,pt=Object.getOwnPropertySymbols(Ft);at<pt.length;at++)ur.indexOf(pt[at])<0&&Object.prototype.propertyIsEnumerable.call(Ft,pt[at])&&(Jt[pt[at]]=Ft[pt[at]]);return Jt},ge=Object(lt.b)(1,2,3,4,5),Ht=function(ur){var Jt=ur.level,pt=Jt===void 0?1:Jt,at=qe(ur,["level"]),Pr;return ge.indexOf(pt)!==-1?Pr="h".concat(pt):(Object(s.a)(!1,"Typography.Title","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version."),Pr="h1"),m.createElement(fr,f()({},at,{component:Pr}))},vr=Ht,At=function(ur){return m.createElement(fr,f()({},ur,{component:"div"}))},ir=At,lr=r;lr.Text=Xt,lr.Link=oe,lr.Title=vr,lr.Paragraph=ir;var dn=D.a=lr},wJg7:function(R,D){var n=9007199254740991,y=/^(?:0|[1-9]\d*)$/;function f(x,v){var m=typeof x;return v=v==null?n:v,!!v&&(m=="number"||m!="symbol"&&y.test(x))&&(x>-1&&x%1==0)&&x<v}R.exports=f},wOnQ:function(R,D,n){/*!
|
|
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
|
* Released under MIT License
|
|
|
*/(function(y,f){R.exports=f()})(this,function(){"use strict";/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation.
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
|
purpose with or without fee is hereby granted.
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
|
***************************************************************************** */var y=function(ye,Ne){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(We,dt){We.__proto__=dt}||function(We,dt){for(var gr in dt)Object.prototype.hasOwnProperty.call(dt,gr)&&(We[gr]=dt[gr])},y(ye,Ne)};function f(Er,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Class extends value "+String(ye)+" is not a constructor or null");y(Er,ye);function Ne(){this.constructor=Er}Er.prototype=ye===null?Object.create(ye):(Ne.prototype=ye.prototype,new Ne)}var x=function(){return x=Object.assign||function(Ne){for(var We,dt=1,gr=arguments.length;dt<gr;dt++){We=arguments[dt];for(var an in We)Object.prototype.hasOwnProperty.call(We,an)&&(Ne[an]=We[an])}return Ne},x.apply(this,arguments)};function v(Er,ye,Ne,We){function dt(gr){return gr instanceof Ne?gr:new Ne(function(an){an(gr)})}return new(Ne||(Ne=Promise))(function(gr,an){function Tn(Yi){try{ai(We.next(Yi))}catch(Ui){an(Ui)}}function jn(Yi){try{ai(We.throw(Yi))}catch(Ui){an(Ui)}}function ai(Yi){Yi.done?gr(Yi.value):dt(Yi.value).then(Tn,jn)}ai((We=We.apply(Er,ye||[])).next())})}function m(Er,ye){var Ne={label:0,sent:function(){if(gr[0]&1)throw gr[1];return gr[1]},trys:[],ops:[]},We,dt,gr,an;return an={next:Tn(0),throw:Tn(1),return:Tn(2)},typeof Symbol=="function"&&(an[Symbol.iterator]=function(){return this}),an;function Tn(ai){return function(Yi){return jn([ai,Yi])}}function jn(ai){if(We)throw new TypeError("Generator is already executing.");for(;Ne;)try{if(We=1,dt&&(gr=ai[0]&2?dt.return:ai[0]?dt.throw||((gr=dt.return)&&gr.call(dt),0):dt.next)&&!(gr=gr.call(dt,ai[1])).done)return gr;(dt=0,gr)&&(ai=[ai[0]&2,gr.value]);switch(ai[0]){case 0:case 1:gr=ai;break;case 4:return Ne.label++,{value:ai[1],done:!1};case 5:Ne.label++,dt=ai[1],ai=[0];continue;case 7:ai=Ne.ops.pop(),Ne.trys.pop();continue;default:if(!(gr=Ne.trys,gr=gr.length>0&&gr[gr.length-1])&&(ai[0]===6||ai[0]===2)){Ne=0;continue}if(ai[0]===3&&(!gr||ai[1]>gr[0]&&ai[1]<gr[3])){Ne.label=ai[1];break}if(ai[0]===6&&Ne.label<gr[1]){Ne.label=gr[1],gr=ai;break}if(gr&&Ne.label<gr[2]){Ne.label=gr[2],Ne.ops.push(ai);break}gr[2]&&Ne.ops.pop(),Ne.trys.pop();continue}ai=ye.call(Er,Ne)}catch(Yi){ai=[6,Yi],dt=0}finally{We=gr=0}if(ai[0]&5)throw ai[1];return{value:ai[0]?ai[1]:void 0,done:!0}}}function p(Er,ye,Ne){if(Ne||arguments.length===2)for(var We=0,dt=ye.length,gr;We<dt;We++)(gr||!(We in ye))&&(gr||(gr=Array.prototype.slice.call(ye,0,We)),gr[We]=ye[We]);return Er.concat(gr||ye)}for(var d=function(){function Er(ye,Ne,We,dt){this.left=ye,this.top=Ne,this.width=We,this.height=dt}return Er.prototype.add=function(ye,Ne,We,dt){return new Er(this.left+ye,this.top+Ne,this.width+We,this.height+dt)},Er.fromClientRect=function(ye,Ne){return new Er(Ne.left+ye.windowBounds.left,Ne.top+ye.windowBounds.top,Ne.width,Ne.height)},Er.fromDOMRectList=function(ye,Ne){var We=Array.from(Ne).find(function(dt){return dt.width!==0});return We?new Er(We.left+ye.windowBounds.left,We.top+ye.windowBounds.top,We.width,We.height):Er.EMPTY},Er.EMPTY=new Er(0,0,0,0),Er}(),u=function(ye,Ne){return d.fromClientRect(ye,Ne.getBoundingClientRect())},s=function(ye){var Ne=ye.body,We=ye.documentElement;if(!Ne||!We)throw new Error("Unable to get document size");var dt=Math.max(Math.max(Ne.scrollWidth,We.scrollWidth),Math.max(Ne.offsetWidth,We.offsetWidth),Math.max(Ne.clientWidth,We.clientWidth)),gr=Math.max(Math.max(Ne.scrollHeight,We.scrollHeight),Math.max(Ne.offsetHeight,We.offsetHeight),Math.max(Ne.clientHeight,We.clientHeight));return new d(0,0,dt,gr)},i=function(ye){for(var Ne=[],We=0,dt=ye.length;We<dt;){var gr=ye.charCodeAt(We++);if(gr>=55296&&gr<=56319&&We<dt){var an=ye.charCodeAt(We++);(an&64512)===56320?Ne.push(((gr&1023)<<10)+(an&1023)+65536):(Ne.push(gr),We--)}else Ne.push(gr)}return Ne},t=function(){for(var ye=[],Ne=0;Ne<arguments.length;Ne++)ye[Ne]=arguments[Ne];if(String.fromCodePoint)return String.fromCodePoint.apply(String,ye);var We=ye.length;if(!We)return"";for(var dt=[],gr=-1,an="";++gr<We;){var Tn=ye[gr];Tn<=65535?dt.push(Tn):(Tn-=65536,dt.push((Tn>>10)+55296,Tn%1024+56320)),(gr+1===We||dt.length>16384)&&(an+=String.fromCharCode.apply(String,dt),dt.length=0)}return an},o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),l=0;l<o.length;l++)e[o.charCodeAt(l)]=l;for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),c=0;c<r.length;c++)a[r.charCodeAt(c)]=c;for(var h=function(ye){var Ne=ye.length*.75,We=ye.length,dt,gr=0,an,Tn,jn,ai;ye[ye.length-1]==="="&&(Ne--,ye[ye.length-2]==="="&&Ne--);var Yi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Ne):new Array(Ne),Ui=Array.isArray(Yi)?Yi:new Uint8Array(Yi);for(dt=0;dt<We;dt+=4)an=a[ye.charCodeAt(dt)],Tn=a[ye.charCodeAt(dt+1)],jn=a[ye.charCodeAt(dt+2)],ai=a[ye.charCodeAt(dt+3)],Ui[gr++]=an<<2|Tn>>4,Ui[gr++]=(Tn&15)<<4|jn>>2,Ui[gr++]=(jn&3)<<6|ai&63;return Yi},g=function(ye){for(var Ne=ye.length,We=[],dt=0;dt<Ne;dt+=2)We.push(ye[dt+1]<<8|ye[dt]);return We},A=function(ye){for(var Ne=ye.length,We=[],dt=0;dt<Ne;dt+=4)We.push(ye[dt+3]<<24|ye[dt+2]<<16|ye[dt+1]<<8|ye[dt]);return We},b=5,S=6+5,E=2,C=S-b,_=65536>>b,T=1<<b,w=T-1,O=1024>>b,I=_+O,k=I,M=2048>>6,j=k+M,P=65536>>S,X=1<<C,F=X-1,U=function(ye,Ne,We){return ye.slice?ye.slice(Ne,We):new Uint16Array(Array.prototype.slice.call(ye,Ne,We))},K=function(ye,Ne,We){return ye.slice?ye.slice(Ne,We):new Uint32Array(Array.prototype.slice.call(ye,Ne,We))},z=function(ye,Ne){var We=h(ye),dt=Array.isArray(We)?A(We):new Uint32Array(We),gr=Array.isArray(We)?g(We):new Uint16Array(We),an=24,Tn=U(gr,an/2,dt[4]/2),jn=dt[5]===2?U(gr,(an+dt[4])/2):K(dt,Math.ceil((an+dt[4])/4));return new V(dt[0],dt[1],dt[2],dt[3],Tn,jn)},V=function(){function Er(ye,Ne,We,dt,gr,an){this.initialValue=ye,this.errorValue=Ne,this.highStart=We,this.highValueIndex=dt,this.index=gr,this.data=an}return Er.prototype.get=function(ye){var Ne;if(ye>=0){if(ye<55296||ye>56319&&ye<=65535)return Ne=this.index[ye>>b],Ne=(Ne<<E)+(ye&w),this.data[Ne];if(ye<=65535)return Ne=this.index[_+(ye-55296>>b)],Ne=(Ne<<E)+(ye&w),this.data[Ne];if(ye<this.highStart)return Ne=j-P+(ye>>S),Ne=this.index[Ne],Ne+=ye>>b&F,Ne=this.index[Ne],Ne=(Ne<<E)+(ye&w),this.data[Ne];if(ye<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Er}(),Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",G=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),te=0;te<Q.length;te++)G[Q.charCodeAt(te)]=te;var q="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",se=50,re=1,xe=2,Oe=3,Me=4,Qe=5,Ve=7,ut=8,Fe=9,ue=10,et=11,he=12,J=13,Y=14,$=15,de=16,be=17,Ce=18,Be=19,fe=20,we=21,Re=22,rt=23,St=24,ft=25,He=26,er=27,ct=28,Kt=29,fr=30,Gt=31,Pt=32,Xt=33,Ge=34,pe=35,oe=36,lt=37,qe=38,ge=39,Ht=40,vr=41,At=42,ir=43,lr=[9001,65288],dn="!",Ft="\xD7",ur="\xF7",Jt=z(q),pt=[fr,oe],at=[re,xe,Oe,Qe],Pr=[ue,ut],un=[er,He],_n=at.concat(Pr),Xn=[qe,ge,Ht,Ge,pe],xi=[$,J],Pn=function(ye,Ne){Ne===void 0&&(Ne="strict");var We=[],dt=[],gr=[];return ye.forEach(function(an,Tn){var jn=Jt.get(an);if(jn>se?(gr.push(!0),jn-=se):gr.push(!1),["normal","auto","loose"].indexOf(Ne)!==-1&&[8208,8211,12316,12448].indexOf(an)!==-1)return dt.push(Tn),We.push(de);if(jn===Me||jn===et){if(Tn===0)return dt.push(Tn),We.push(fr);var ai=We[Tn-1];return _n.indexOf(ai)===-1?(dt.push(dt[Tn-1]),We.push(ai)):(dt.push(Tn),We.push(fr))}if(dt.push(Tn),jn===Gt)return We.push(Ne==="strict"?we:lt);if(jn===At)return We.push(fr);if(jn===Kt)return We.push(fr);if(jn===ir)return an>=131072&&an<=196605||an>=196608&&an<=262141?We.push(lt):We.push(fr);We.push(jn)}),[dt,We,gr]},Un=function(ye,Ne,We,dt){var gr=dt[We];if(Array.isArray(ye)?ye.indexOf(gr)!==-1:ye===gr)for(var an=We;an<=dt.length;){an++;var Tn=dt[an];if(Tn===Ne)return!0;if(Tn!==ue)break}if(gr===ue)for(var an=We;an>0;){an--;var jn=dt[an];if(Array.isArray(ye)?ye.indexOf(jn)!==-1:ye===jn)for(var ai=We;ai<=dt.length;){ai++;var Tn=dt[ai];if(Tn===Ne)return!0;if(Tn!==ue)break}if(jn!==ue)break}return!1},$t=function(ye,Ne){for(var We=ye;We>=0;){var dt=Ne[We];if(dt===ue)We--;else return dt}return 0},xt=function(ye,Ne,We,dt,gr){if(We[dt]===0)return Ft;var an=dt-1;if(Array.isArray(gr)&&gr[an]===!0)return Ft;var Tn=an-1,jn=an+1,ai=Ne[an],Yi=Tn>=0?Ne[Tn]:0,Ui=Ne[jn];if(ai===xe&&Ui===Oe)return Ft;if(at.indexOf(ai)!==-1)return dn;if(at.indexOf(Ui)!==-1)return Ft;if(Pr.indexOf(Ui)!==-1)return Ft;if($t(an,Ne)===ut)return ur;if(Jt.get(ye[an])===et)return Ft;if((ai===Pt||ai===Xt)&&Jt.get(ye[jn])===et)return Ft;if(ai===Ve||Ui===Ve)return Ft;if(ai===Fe)return Ft;if([ue,J,$].indexOf(ai)===-1&&Ui===Fe)return Ft;if([be,Ce,Be,St,ct].indexOf(Ui)!==-1)return Ft;if($t(an,Ne)===Re)return Ft;if(Un(rt,Re,an,Ne))return Ft;if(Un([be,Ce],we,an,Ne))return Ft;if(Un(he,he,an,Ne))return Ft;if(ai===ue)return ur;if(ai===rt||Ui===rt)return Ft;if(Ui===de||ai===de)return ur;if([J,$,we].indexOf(Ui)!==-1||ai===Y)return Ft;if(Yi===oe&&xi.indexOf(ai)!==-1)return Ft;if(ai===ct&&Ui===oe)return Ft;if(Ui===fe)return Ft;if(pt.indexOf(Ui)!==-1&&ai===ft||pt.indexOf(ai)!==-1&&Ui===ft)return Ft;if(ai===er&&[lt,Pt,Xt].indexOf(Ui)!==-1||[lt,Pt,Xt].indexOf(ai)!==-1&&Ui===He)return Ft;if(pt.indexOf(ai)!==-1&&un.indexOf(Ui)!==-1||un.indexOf(ai)!==-1&&pt.indexOf(Ui)!==-1)return Ft;if([er,He].indexOf(ai)!==-1&&(Ui===ft||[Re,$].indexOf(Ui)!==-1&&Ne[jn+1]===ft)||[Re,$].indexOf(ai)!==-1&&Ui===ft||ai===ft&&[ft,ct,St].indexOf(Ui)!==-1)return Ft;if([ft,ct,St,be,Ce].indexOf(Ui)!==-1)for(var qi=an;qi>=0;){var Za=Ne[qi];if(Za===ft)return Ft;if([ct,St].indexOf(Za)!==-1)qi--;else break}if([er,He].indexOf(Ui)!==-1)for(var qi=[be,Ce].indexOf(ai)!==-1?Tn:an;qi>=0;){var Za=Ne[qi];if(Za===ft)return Ft;if([ct,St].indexOf(Za)!==-1)qi--;else break}if(qe===ai&&[qe,ge,Ge,pe].indexOf(Ui)!==-1||[ge,Ge].indexOf(ai)!==-1&&[ge,Ht].indexOf(Ui)!==-1||[Ht,pe].indexOf(ai)!==-1&&Ui===Ht)return Ft;if(Xn.indexOf(ai)!==-1&&[fe,He].indexOf(Ui)!==-1||Xn.indexOf(Ui)!==-1&&ai===er)return Ft;if(pt.indexOf(ai)!==-1&&pt.indexOf(Ui)!==-1)return Ft;if(ai===St&&pt.indexOf(Ui)!==-1)return Ft;if(pt.concat(ft).indexOf(ai)!==-1&&Ui===Re&&lr.indexOf(ye[jn])===-1||pt.concat(ft).indexOf(Ui)!==-1&&ai===Ce)return Ft;if(ai===vr&&Ui===vr){for(var eo=We[an],po=1;eo>0&&(eo--,Ne[eo]===vr);)po++;if(po%2!==0)return Ft}return ai===Pt&&Ui===Xt?Ft:ur},De=function(ye,Ne){Ne||(Ne={lineBreak:"normal",wordBreak:"normal"});var We=Pn(ye,Ne.lineBreak),dt=We[0],gr=We[1],an=We[2];(Ne.wordBreak==="break-all"||Ne.wordBreak==="break-word")&&(gr=gr.map(function(jn){return[ft,fr,At].indexOf(jn)!==-1?lt:jn}));var Tn=Ne.wordBreak==="keep-all"?an.map(function(jn,ai){return jn&&ye[ai]>=19968&&ye[ai]<=40959}):void 0;return[dt,gr,Tn]},ke=function(){function Er(ye,Ne,We,dt){this.codePoints=ye,this.required=Ne===dn,this.start=We,this.end=dt}return Er.prototype.slice=function(){return t.apply(void 0,this.codePoints.slice(this.start,this.end))},Er}(),Pe=function(ye,Ne){var We=i(ye),dt=De(We,Ne),gr=dt[0],an=dt[1],Tn=dt[2],jn=We.length,ai=0,Yi=0;return{next:function(){if(Yi>=jn)return{done:!0,value:null};for(var qi=Ft;Yi<jn&&(qi=xt(We,an,gr,++Yi,Tn))===Ft;);if(qi!==Ft||Yi===jn){var Za=new ke(We,qi,ai,Yi);return ai=Yi,{value:Za,done:!1}}return{done:!0,value:null}}}},tt=1<<0,yt=1<<1,Et=1<<2,Yt=1<<3,Rr=10,zr=47,hn=92,jt=9,vt=32,bt=34,cr=61,Qt=35,Mt=36,tr=37,Rt=39,qt=40,Hr=41,Nr=95,Dr=45,cn=33,An=60,ri=62,$n=64,fi=91,_i=93,Di=61,Wi=123,it=63,Le=125,je=124,Xe=126,nt=128,Ze=65533,ot=42,Ct=43,gt=44,pr=58,$r=59,Yr=46,mn=0,Ar=8,zn=11,Fr=14,Bn=31,bn=127,en=-1,ti=48,pi=97,Pi=101,qr=102,En=117,Yn=122,zt=65,Ot=69,kt=70,Bt=85,Wt=90,Lt=function(ye){return ye>=ti&&ye<=57},dr=function(ye){return ye>=55296&&ye<=57343},yr=function(ye){return Lt(ye)||ye>=zt&&ye<=kt||ye>=pi&&ye<=qr},br=function(ye){return ye>=pi&&ye<=Yn},Mr=function(ye){return ye>=zt&&ye<=Wt},Gn=function(ye){return br(ye)||Mr(ye)},Mn=function(ye){return ye>=nt},di=function(ye){return ye===Rr||ye===jt||ye===vt},vn=function(ye){return Gn(ye)||Mn(ye)||ye===Nr},Ur=function(ye){return vn(ye)||Lt(ye)||ye===Dr},In=function(ye){return ye>=mn&&ye<=Ar||ye===zn||ye>=Fr&&ye<=Bn||ye===bn},Qn=function(ye,Ne){return ye!==hn?!1:Ne!==Rr},qn=function(ye,Ne,We){return ye===Dr?vn(Ne)||Qn(Ne,We):vn(ye)?!0:!!(ye===hn&&Qn(ye,Ne))},oi=function(ye,Ne,We){return ye===Ct||ye===Dr?Lt(Ne)?!0:Ne===Yr&&Lt(We):ye===Yr?Lt(Ne):Lt(ye)},Ti=function(ye){var Ne=0,We=1;(ye[Ne]===Ct||ye[Ne]===Dr)&&(ye[Ne]===Dr&&(We=-1),Ne++);for(var dt=[];Lt(ye[Ne]);)dt.push(ye[Ne++]);var gr=dt.length?parseInt(t.apply(void 0,dt),10):0;ye[Ne]===Yr&&Ne++;for(var an=[];Lt(ye[Ne]);)an.push(ye[Ne++]);var Tn=an.length,jn=Tn?parseInt(t.apply(void 0,an),10):0;(ye[Ne]===Ot||ye[Ne]===Pi)&&Ne++;var ai=1;(ye[Ne]===Ct||ye[Ne]===Dr)&&(ye[Ne]===Dr&&(ai=-1),Ne++);for(var Yi=[];Lt(ye[Ne]);)Yi.push(ye[Ne++]);var Ui=Yi.length?parseInt(t.apply(void 0,Yi),10):0;return We*(gr+jn*Math.pow(10,-Tn))*Math.pow(10,ai*Ui)},ki={type:2},Ri={type:3},oa={type:4},ma={type:13},aa={type:8},ba={type:21},yi={type:9},kn={type:10},ji={type:11},ha={type:12},ta={type:14},ra={type:23},Ir={type:1},xr={type:25},Cn={type:24},mr={type:26},kr={type:27},Gr={type:28},ln={type:29},Fn={type:31},_t={type:32},Or=function(){function Er(){this._value=[]}return Er.prototype.write=function(ye){this._value=this._value.concat(i(ye))},Er.prototype.read=function(){for(var ye=[],Ne=this.consumeToken();Ne!==_t;)ye.push(Ne),Ne=this.consumeToken();return ye},Er.prototype.consumeToken=function(){var ye=this.consumeCodePoint();switch(ye){case bt:return this.consumeStringToken(bt);case Qt:var Ne=this.peekCodePoint(0),We=this.peekCodePoint(1),dt=this.peekCodePoint(2);if(Ur(Ne)||Qn(We,dt)){var gr=qn(Ne,We,dt)?yt:tt,an=this.consumeName();return{type:5,value:an,flags:gr}}break;case Mt:if(this.peekCodePoint(0)===cr)return this.consumeCodePoint(),ma;break;case Rt:return this.consumeStringToken(Rt);case qt:return ki;case Hr:return Ri;case ot:if(this.peekCodePoint(0)===cr)return this.consumeCodePoint(),ta;break;case Ct:if(oi(ye,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ye),this.consumeNumericToken();break;case gt:return oa;case Dr:var Tn=ye,jn=this.peekCodePoint(0),ai=this.peekCodePoint(1);if(oi(Tn,jn,ai))return this.reconsumeCodePoint(ye),this.consumeNumericToken();if(qn(Tn,jn,ai))return this.reconsumeCodePoint(ye),this.consumeIdentLikeToken();if(jn===Dr&&ai===ri)return this.consumeCodePoint(),this.consumeCodePoint(),Cn;break;case Yr:if(oi(ye,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ye),this.consumeNumericToken();break;case zr:if(this.peekCodePoint(0)===ot)for(this.consumeCodePoint();;){var Yi=this.consumeCodePoint();if(Yi===ot&&(Yi=this.consumeCodePoint(),Yi===zr))return this.consumeToken();if(Yi===en)return this.consumeToken()}break;case pr:return mr;case $r:return kr;case An:if(this.peekCodePoint(0)===cn&&this.peekCodePoint(1)===Dr&&this.peekCodePoint(2)===Dr)return this.consumeCodePoint(),this.consumeCodePoint(),xr;break;case $n:var Ui=this.peekCodePoint(0),qi=this.peekCodePoint(1),Za=this.peekCodePoint(2);if(qn(Ui,qi,Za)){var an=this.consumeName();return{type:7,value:an}}break;case fi:return Gr;case hn:if(Qn(ye,this.peekCodePoint(0)))return this.reconsumeCodePoint(ye),this.consumeIdentLikeToken();break;case _i:return ln;case Di:if(this.peekCodePoint(0)===cr)return this.consumeCodePoint(),aa;break;case Wi:return ji;case Le:return ha;case En:case Bt:var eo=this.peekCodePoint(0),po=this.peekCodePoint(1);return eo===Ct&&(yr(po)||po===it)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(ye),this.consumeIdentLikeToken();case je:if(this.peekCodePoint(0)===cr)return this.consumeCodePoint(),yi;if(this.peekCodePoint(0)===je)return this.consumeCodePoint(),ba;break;case Xe:if(this.peekCodePoint(0)===cr)return this.consumeCodePoint(),kn;break;case en:return _t}return di(ye)?(this.consumeWhiteSpace(),Fn):Lt(ye)?(this.reconsumeCodePoint(ye),this.consumeNumericToken()):vn(ye)?(this.reconsumeCodePoint(ye),this.consumeIdentLikeToken()):{type:6,value:t(ye)}},Er.prototype.consumeCodePoint=function(){var ye=this._value.shift();return typeof ye=="undefined"?-1:ye},Er.prototype.reconsumeCodePoint=function(ye){this._value.unshift(ye)},Er.prototype.peekCodePoint=function(ye){return ye>=this._value.length?-1:this._value[ye]},Er.prototype.consumeUnicodeRangeToken=function(){for(var ye=[],Ne=this.consumeCodePoint();yr(Ne)&&ye.length<6;)ye.push(Ne),Ne=this.consumeCodePoint();for(var We=!1;Ne===it&&ye.length<6;)ye.push(Ne),Ne=this.consumeCodePoint(),We=!0;if(We){var dt=parseInt(t.apply(void 0,ye.map(function(jn){return jn===it?ti:jn})),16),gr=parseInt(t.apply(void 0,ye.map(function(jn){return jn===it?kt:jn})),16);return{type:30,start:dt,end:gr}}var an=parseInt(t.apply(void 0,ye),16);if(this.peekCodePoint(0)===Dr&&yr(this.peekCodePoint(1))){this.consumeCodePoint(),Ne=this.consumeCodePoint();for(var Tn=[];yr(Ne)&&Tn.length<6;)Tn.push(Ne),Ne=this.consumeCodePoint();var gr=parseInt(t.apply(void 0,Tn),16);return{type:30,start:an,end:gr}}else return{type:30,start:an,end:an}},Er.prototype.consumeIdentLikeToken=function(){var ye=this.consumeName();return ye.toLowerCase()==="url"&&this.peekCodePoint(0)===qt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===qt?(this.consumeCodePoint(),{type:19,value:ye}):{type:20,value:ye}},Er.prototype.consumeUrlToken=function(){var ye=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===en)return{type:22,value:""};var Ne=this.peekCodePoint(0);if(Ne===Rt||Ne===bt){var We=this.consumeStringToken(this.consumeCodePoint());return We.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===en||this.peekCodePoint(0)===Hr)?(this.consumeCodePoint(),{type:22,value:We.value}):(this.consumeBadUrlRemnants(),ra)}for(;;){var dt=this.consumeCodePoint();if(dt===en||dt===Hr)return{type:22,value:t.apply(void 0,ye)};if(di(dt))return this.consumeWhiteSpace(),this.peekCodePoint(0)===en||this.peekCodePoint(0)===Hr?(this.consumeCodePoint(),{type:22,value:t.apply(void 0,ye)}):(this.consumeBadUrlRemnants(),ra);if(dt===bt||dt===Rt||dt===qt||In(dt))return this.consumeBadUrlRemnants(),ra;if(dt===hn)if(Qn(dt,this.peekCodePoint(0)))ye.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ra;else ye.push(dt)}},Er.prototype.consumeWhiteSpace=function(){for(;di(this.peekCodePoint(0));)this.consumeCodePoint()},Er.prototype.consumeBadUrlRemnants=function(){for(;;){var ye=this.consumeCodePoint();if(ye===Hr||ye===en)return;Qn(ye,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Er.prototype.consumeStringSlice=function(ye){for(var Ne=5e4,We="";ye>0;){var dt=Math.min(Ne,ye);We+=t.apply(void 0,this._value.splice(0,dt)),ye-=dt}return this._value.shift(),We},Er.prototype.consumeStringToken=function(ye){var Ne="",We=0;do{var dt=this._value[We];if(dt===en||dt===void 0||dt===ye)return Ne+=this.consumeStringSlice(We),{type:0,value:Ne};if(dt===Rr)return this._value.splice(0,We),Ir;if(dt===hn){var gr=this._value[We+1];gr!==en&&gr!==void 0&&(gr===Rr?(Ne+=this.consumeStringSlice(We),We=-1,this._value.shift()):Qn(dt,gr)&&(Ne+=this.consumeStringSlice(We),Ne+=t(this.consumeEscapedCodePoint()),We=-1))}We++}while(!0)},Er.prototype.consumeNumber=function(){var ye=[],Ne=Et,We=this.peekCodePoint(0);for((We===Ct||We===Dr)&&ye.push(this.consumeCodePoint());Lt(this.peekCodePoint(0));)ye.push(this.consumeCodePoint());We=this.peekCodePoint(0);var dt=this.peekCodePoint(1);if(We===Yr&&Lt(dt))for(ye.push(this.consumeCodePoint(),this.consumeCodePoint()),Ne=Yt;Lt(this.peekCodePoint(0));)ye.push(this.consumeCodePoint());We=this.peekCodePoint(0),dt=this.peekCodePoint(1);var gr=this.peekCodePoint(2);if((We===Ot||We===Pi)&&((dt===Ct||dt===Dr)&&Lt(gr)||Lt(dt)))for(ye.push(this.consumeCodePoint(),this.consumeCodePoint()),Ne=Yt;Lt(this.peekCodePoint(0));)ye.push(this.consumeCodePoint());return[Ti(ye),Ne]},Er.prototype.consumeNumericToken=function(){var ye=this.consumeNumber(),Ne=ye[0],We=ye[1],dt=this.peekCodePoint(0),gr=this.peekCodePoint(1),an=this.peekCodePoint(2);if(qn(dt,gr,an)){var Tn=this.consumeName();return{type:15,number:Ne,flags:We,unit:Tn}}return dt===tr?(this.consumeCodePoint(),{type:16,number:Ne,flags:We}):{type:17,number:Ne,flags:We}},Er.prototype.consumeEscapedCodePoint=function(){var ye=this.consumeCodePoint();if(yr(ye)){for(var Ne=t(ye);yr(this.peekCodePoint(0))&&Ne.length<6;)Ne+=t(this.consumeCodePoint());di(this.peekCodePoint(0))&&this.consumeCodePoint();var We=parseInt(Ne,16);return We===0||dr(We)||We>1114111?Ze:We}return ye===en?Ze:ye},Er.prototype.consumeName=function(){for(var ye="";;){var Ne=this.consumeCodePoint();if(Ur(Ne))ye+=t(Ne);else if(Qn(Ne,this.peekCodePoint(0)))ye+=t(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(Ne),ye}},Er}(),Lr=function(){function Er(ye){this._tokens=ye}return Er.create=function(ye){var Ne=new Or;return Ne.write(ye),new Er(Ne.read())},Er.parseValue=function(ye){return Er.create(ye).parseComponentValue()},Er.parseValues=function(ye){return Er.create(ye).parseComponentValues()},Er.prototype.parseComponentValue=function(){for(var ye=this.consumeToken();ye.type===31;)ye=this.consumeToken();if(ye.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(ye);var Ne=this.consumeComponentValue();do ye=this.consumeToken();while(ye.type===31);if(ye.type===32)return Ne;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Er.prototype.parseComponentValues=function(){for(var ye=[];;){var Ne=this.consumeComponentValue();if(Ne.type===32)return ye;ye.push(Ne),ye.push()}},Er.prototype.consumeComponentValue=function(){var ye=this.consumeToken();switch(ye.type){case 11:case 28:case 2:return this.consumeSimpleBlock(ye.type);case 19:return this.consumeFunction(ye)}return ye},Er.prototype.consumeSimpleBlock=function(ye){for(var Ne={type:ye,values:[]},We=this.consumeToken();;){if(We.type===32||bi(We,ye))return Ne;this.reconsumeToken(We),Ne.values.push(this.consumeComponentValue()),We=this.consumeToken()}},Er.prototype.consumeFunction=function(ye){for(var Ne={name:ye.value,values:[],type:18};;){var We=this.consumeToken();if(We.type===32||We.type===3)return Ne;this.reconsumeToken(We),Ne.values.push(this.consumeComponentValue())}},Er.prototype.consumeToken=function(){var ye=this._tokens.shift();return typeof ye=="undefined"?_t:ye},Er.prototype.reconsumeToken=function(ye){this._tokens.unshift(ye)},Er}(),rn=function(ye){return ye.type===15},xn=function(ye){return ye.type===17},Ln=function(ye){return ye.type===20},Sn=function(ye){return ye.type===0},ei=function(ye,Ne){return Ln(ye)&&ye.value===Ne},Kn=function(ye){return ye.type!==31},mi=function(ye){return ye.type!==31&&ye.type!==4},Fi=function(ye){var Ne=[],We=[];return ye.forEach(function(dt){if(dt.type===4){if(We.length===0)throw new Error("Error parsing function args, zero tokens for arg");Ne.push(We),We=[];return}dt.type!==31&&We.push(dt)}),We.length&&Ne.push(We),Ne},bi=function(ye,Ne){return Ne===11&&ye.type===12||Ne===28&&ye.type===29?!0:Ne===2&&ye.type===3},Ii=function(ye){return ye.type===17||ye.type===15},Vi=function(ye){return ye.type===16||Ii(ye)},ea=function(ye){return ye.length>1?[ye[0],ye[1]]:[ye[0]]},Xi={type:17,number:0,flags:Et},zi={type:16,number:50,flags:Et},Hi={type:16,number:100,flags:Et},Ji=function(ye,Ne,We){var dt=ye[0],gr=ye[1];return[ca(dt,Ne),ca(typeof gr!="undefined"?gr:dt,We)]},ca=function(ye,Ne){if(ye.type===16)return ye.number/100*Ne;if(rn(ye))switch(ye.unit){case"rem":case"em":return 16*ye.number;case"px":default:return ye.number}return ye.number},Ca="deg",na="grad",Pa="rad",La="turn",va={name:"angle",parse:function(ye,Ne){if(Ne.type===15)switch(Ne.unit){case Ca:return Math.PI*Ne.number/180;case na:return Math.PI/200*Ne.number;case Pa:return Ne.number;case La:return Math.PI*2*Ne.number}throw new Error("Unsupported angle type")}},ga=function(ye){return ye.type===15&&(ye.unit===Ca||ye.unit===na||ye.unit===Pa||ye.unit===La)},Oa=function(ye){var Ne=ye.filter(Ln).map(function(We){return We.value}).join(" ");switch(Ne){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Xi,Xi];case"to top":case"bottom":return Aa(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Xi,Hi];case"to right":case"left":return Aa(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Hi,Hi];case"to bottom":case"top":return Aa(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Hi,Xi];case"to left":case"right":return Aa(270)}return 0},Aa=function(ye){return Math.PI*ye/180},Xa={name:"color",parse:function(ye,Ne){if(Ne.type===18){var We=To[Ne.name];if(typeof We=="undefined")throw new Error('Attempting to parse an unsupported color function "'+Ne.name+'"');return We(ye,Ne.values)}if(Ne.type===5){if(Ne.value.length===3){var dt=Ne.value.substring(0,1),gr=Ne.value.substring(1,2),an=Ne.value.substring(2,3);return Bi(parseInt(dt+dt,16),parseInt(gr+gr,16),parseInt(an+an,16),1)}if(Ne.value.length===4){var dt=Ne.value.substring(0,1),gr=Ne.value.substring(1,2),an=Ne.value.substring(2,3),Tn=Ne.value.substring(3,4);return Bi(parseInt(dt+dt,16),parseInt(gr+gr,16),parseInt(an+an,16),parseInt(Tn+Tn,16)/255)}if(Ne.value.length===6){var dt=Ne.value.substring(0,2),gr=Ne.value.substring(2,4),an=Ne.value.substring(4,6);return Bi(parseInt(dt,16),parseInt(gr,16),parseInt(an,16),1)}if(Ne.value.length===8){var dt=Ne.value.substring(0,2),gr=Ne.value.substring(2,4),an=Ne.value.substring(4,6),Tn=Ne.value.substring(6,8);return Bi(parseInt(dt,16),parseInt(gr,16),parseInt(an,16),parseInt(Tn,16)/255)}}if(Ne.type===20){var jn=So[Ne.value.toUpperCase()];if(typeof jn!="undefined")return jn}return So.TRANSPARENT}},_a=function(ye){return(255&ye)===0},Va=function(ye){var Ne=255&ye,We=255&ye>>8,dt=255&ye>>16,gr=255&ye>>24;return Ne<255?"rgba("+gr+","+dt+","+We+","+Ne/255+")":"rgb("+gr+","+dt+","+We+")"},Bi=function(ye,Ne,We,dt){return(ye<<24|Ne<<16|We<<8|Math.round(dt*255)<<0)>>>0},io=function(ye,Ne){if(ye.type===17)return ye.number;if(ye.type===16){var We=Ne===3?1:255;return Ne===3?ye.number/100*We:Math.round(ye.number/100*We)}return 0},oo=function(ye,Ne){var We=Ne.filter(mi);if(We.length===3){var dt=We.map(io),gr=dt[0],an=dt[1],Tn=dt[2];return Bi(gr,an,Tn,1)}if(We.length===4){var jn=We.map(io),gr=jn[0],an=jn[1],Tn=jn[2],ai=jn[3];return Bi(gr,an,Tn,ai)}return 0};function Qo(Er,ye,Ne){return Ne<0&&(Ne+=1),Ne>=1&&(Ne-=1),Ne<1/6?(ye-Er)*Ne*6+Er:Ne<1/2?ye:Ne<2/3?(ye-Er)*6*(2/3-Ne)+Er:Er}var mo=function(ye,Ne){var We=Ne.filter(mi),dt=We[0],gr=We[1],an=We[2],Tn=We[3],jn=(dt.type===17?Aa(dt.number):va.parse(ye,dt))/(Math.PI*2),ai=Vi(gr)?gr.number/100:0,Yi=Vi(an)?an.number/100:0,Ui=typeof Tn!="undefined"&&Vi(Tn)?ca(Tn,1):1;if(ai===0)return Bi(Yi*255,Yi*255,Yi*255,1);var qi=Yi<=.5?Yi*(ai+1):Yi+ai-Yi*ai,Za=Yi*2-qi,eo=Qo(Za,qi,jn+1/3),po=Qo(Za,qi,jn),us=Qo(Za,qi,jn-1/3);return Bi(eo*255,po*255,us*255,Ui)},To={hsl:mo,hsla:mo,rgb:oo,rgba:oo},ao=function(ye,Ne){return Xa.parse(ye,Lr.create(Ne).parseComponentValue())},So={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},bo={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(ye,Ne){return Ne.map(function(We){if(Ln(We))switch(We.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},to={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Jo=function(ye,Ne){var We=Xa.parse(ye,Ne[0]),dt=Ne[1];return dt&&Vi(dt)?{color:We,stop:dt}:{color:We,stop:null}},Uo=function(ye,Ne){var We=ye[0],dt=ye[ye.length-1];We.stop===null&&(We.stop=Xi),dt.stop===null&&(dt.stop=Hi);for(var gr=[],an=0,Tn=0;Tn<ye.length;Tn++){var jn=ye[Tn].stop;if(jn!==null){var ai=ca(jn,Ne);ai>an?gr.push(ai):gr.push(an),an=ai}else gr.push(null)}for(var Yi=null,Tn=0;Tn<gr.length;Tn++){var Ui=gr[Tn];if(Ui===null)Yi===null&&(Yi=Tn);else if(Yi!==null){for(var qi=Tn-Yi,Za=gr[Yi-1],eo=(Ui-Za)/(qi+1),po=1;po<=qi;po++)gr[Yi+po-1]=eo*po;Yi=null}}return ye.map(function(us,Yo){var Po=us.color;return{color:Po,stop:Math.max(Math.min(1,gr[Yo]/Ne),0)}})},wo=function(ye,Ne,We){var dt=Ne/2,gr=We/2,an=ca(ye[0],Ne)-dt,Tn=gr-ca(ye[1],We);return(Math.atan2(Tn,an)+Math.PI*2)%(Math.PI*2)},ts=function(ye,Ne,We){var dt=typeof ye=="number"?ye:wo(ye,Ne,We),gr=Math.abs(Ne*Math.sin(dt))+Math.abs(We*Math.cos(dt)),an=Ne/2,Tn=We/2,jn=gr/2,ai=Math.sin(dt-Math.PI/2)*jn,Yi=Math.cos(dt-Math.PI/2)*jn;return[gr,an-Yi,an+Yi,Tn-ai,Tn+ai]},Ia=function(ye,Ne){return Math.sqrt(ye*ye+Ne*Ne)},Oo=function(ye,Ne,We,dt,gr){var an=[[0,0],[0,Ne],[ye,0],[ye,Ne]];return an.reduce(function(Tn,jn){var ai=jn[0],Yi=jn[1],Ui=Ia(We-ai,dt-Yi);return(gr?Ui<Tn.optimumDistance:Ui>Tn.optimumDistance)?{optimumCorner:jn,optimumDistance:Ui}:Tn},{optimumDistance:gr?Infinity:-Infinity,optimumCorner:null}).optimumCorner},Io=function(ye,Ne,We,dt,gr){var an=0,Tn=0;switch(ye.size){case 0:ye.shape===0?an=Tn=Math.min(Math.abs(Ne),Math.abs(Ne-dt),Math.abs(We),Math.abs(We-gr)):ye.shape===1&&(an=Math.min(Math.abs(Ne),Math.abs(Ne-dt)),Tn=Math.min(Math.abs(We),Math.abs(We-gr)));break;case 2:if(ye.shape===0)an=Tn=Math.min(Ia(Ne,We),Ia(Ne,We-gr),Ia(Ne-dt,We),Ia(Ne-dt,We-gr));else if(ye.shape===1){var jn=Math.min(Math.abs(We),Math.abs(We-gr))/Math.min(Math.abs(Ne),Math.abs(Ne-dt)),ai=Oo(dt,gr,Ne,We,!0),Yi=ai[0],Ui=ai[1];an=Ia(Yi-Ne,(Ui-We)/jn),Tn=jn*an}break;case 1:ye.shape===0?an=Tn=Math.max(Math.abs(Ne),Math.abs(Ne-dt),Math.abs(We),Math.abs(We-gr)):ye.shape===1&&(an=Math.max(Math.abs(Ne),Math.abs(Ne-dt)),Tn=Math.max(Math.abs(We),Math.abs(We-gr)));break;case 3:if(ye.shape===0)an=Tn=Math.max(Ia(Ne,We),Ia(Ne,We-gr),Ia(Ne-dt,We),Ia(Ne-dt,We-gr));else if(ye.shape===1){var jn=Math.max(Math.abs(We),Math.abs(We-gr))/Math.max(Math.abs(Ne),Math.abs(Ne-dt)),qi=Oo(dt,gr,Ne,We,!1),Yi=qi[0],Ui=qi[1];an=Ia(Yi-Ne,(Ui-We)/jn),Tn=jn*an}break}return Array.isArray(ye.size)&&(an=ca(ye.size[0],dt),Tn=ye.size.length===2?ca(ye.size[1],gr):an),[an,Tn]},os=function(ye,Ne){var We=Aa(180),dt=[];return Fi(Ne).forEach(function(gr,an){if(an===0){var Tn=gr[0];if(Tn.type===20&&Tn.value==="to"){We=Oa(gr);return}else if(ga(Tn)){We=va.parse(ye,Tn);return}}var jn=Jo(ye,gr);dt.push(jn)}),{angle:We,stops:dt,type:1}},xo=function(ye,Ne){var We=Aa(180),dt=[];return Fi(Ne).forEach(function(gr,an){if(an===0){var Tn=gr[0];if(Tn.type===20&&["top","left","right","bottom"].indexOf(Tn.value)!==-1){We=Oa(gr);return}else if(ga(Tn)){We=(va.parse(ye,Tn)+Aa(270))%Aa(360);return}}var jn=Jo(ye,gr);dt.push(jn)}),{angle:We,stops:dt,type:1}},rs=function(ye,Ne){var We=Aa(180),dt=[],gr=1,an=0,Tn=3,jn=[];return Fi(Ne).forEach(function(ai,Yi){var Ui=ai[0];if(Yi===0){if(Ln(Ui)&&Ui.value==="linear"){gr=1;return}else if(Ln(Ui)&&Ui.value==="radial"){gr=2;return}}if(Ui.type===18){if(Ui.name==="from"){var qi=Xa.parse(ye,Ui.values[0]);dt.push({stop:Xi,color:qi})}else if(Ui.name==="to"){var qi=Xa.parse(ye,Ui.values[0]);dt.push({stop:Hi,color:qi})}else if(Ui.name==="color-stop"){var Za=Ui.values.filter(mi);if(Za.length===2){var qi=Xa.parse(ye,Za[1]),eo=Za[0];xn(eo)&&dt.push({stop:{type:16,number:eo.number*100,flags:eo.flags},color:qi})}}}}),gr===1?{angle:(We+Aa(180))%Aa(360),stops:dt,type:gr}:{size:Tn,shape:an,stops:dt,position:jn,type:gr}},Ho="closest-side",_o="farthest-side",uo="closest-corner",Ha="farthest-corner",mt="circle",Tr="ellipse",tn="cover",Qr="contain",Jn=function(ye,Ne){var We=0,dt=3,gr=[],an=[];return Fi(Ne).forEach(function(Tn,jn){var ai=!0;if(jn===0){var Yi=!1;ai=Tn.reduce(function(qi,Za){if(Yi)if(Ln(Za))switch(Za.value){case"center":return an.push(zi),qi;case"top":case"left":return an.push(Xi),qi;case"right":case"bottom":return an.push(Hi),qi}else(Vi(Za)||Ii(Za))&&an.push(Za);else if(Ln(Za))switch(Za.value){case mt:return We=0,!1;case Tr:return We=1,!1;case"at":return Yi=!0,!1;case Ho:return dt=0,!1;case tn:case _o:return dt=1,!1;case Qr:case uo:return dt=2,!1;case Ha:return dt=3,!1}else if(Ii(Za)||Vi(Za))return Array.isArray(dt)||(dt=[]),dt.push(Za),!1;return qi},ai)}if(ai){var Ui=Jo(ye,Tn);gr.push(Ui)}}),{size:dt,shape:We,stops:gr,position:an,type:2}},fn=function(ye,Ne){var We=0,dt=3,gr=[],an=[];return Fi(Ne).forEach(function(Tn,jn){var ai=!0;if(jn===0?ai=Tn.reduce(function(Ui,qi){if(Ln(qi))switch(qi.value){case"center":return an.push(zi),!1;case"top":case"left":return an.push(Xi),!1;case"right":case"bottom":return an.push(Hi),!1}else if(Vi(qi)||Ii(qi))return an.push(qi),!1;return Ui},ai):jn===1&&(ai=Tn.reduce(function(Ui,qi){if(Ln(qi))switch(qi.value){case mt:return We=0,!1;case Tr:return We=1,!1;case Qr:case Ho:return dt=0,!1;case _o:return dt=1,!1;case uo:return dt=2,!1;case tn:case Ha:return dt=3,!1}else if(Ii(qi)||Vi(qi))return Array.isArray(dt)||(dt=[]),dt.push(qi),!1;return Ui},ai)),ai){var Yi=Jo(ye,Tn);gr.push(Yi)}}),{size:dt,shape:We,stops:gr,position:an,type:2}},Xr=function(ye){return ye.type===1},ii=function(ye){return ye.type===2},nn={name:"image",parse:function(ye,Ne){if(Ne.type===22){var We={url:Ne.value,type:0};return ye.cache.addImage(Ne.value),We}if(Ne.type===18){var dt=li[Ne.name];if(typeof dt=="undefined")throw new Error('Attempting to parse an unsupported image function "'+Ne.name+'"');return dt(ye,Ne.values)}throw new Error("Unsupported image type "+Ne.type)}};function Wn(Er){return!(Er.type===20&&Er.value==="none")&&(Er.type!==18||!!li[Er.name])}var li={"linear-gradient":os,"-moz-linear-gradient":xo,"-ms-linear-gradient":xo,"-o-linear-gradient":xo,"-webkit-linear-gradient":xo,"radial-gradient":Jn,"-moz-radial-gradient":fn,"-ms-radial-gradient":fn,"-o-radial-gradient":fn,"-webkit-radial-gradient":fn,"-webkit-gradient":rs},ci={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(ye,Ne){if(Ne.length===0)return[];var We=Ne[0];return We.type===20&&We.value==="none"?[]:Ne.filter(function(dt){return mi(dt)&&Wn(dt)}).map(function(dt){return nn.parse(ye,dt)})}},si={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(ye,Ne){return Ne.map(function(We){if(Ln(We))switch(We.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ci={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(ye,Ne){return Fi(Ne).map(function(We){return We.filter(Vi)}).map(ea)}},gi={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(ye,Ne){return Fi(Ne).map(function(We){return We.filter(Ln).map(function(dt){return dt.value}).join(" ")}).map(Ai)}},Ai=function(ye){switch(ye){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Ni;(function(Er){Er.AUTO="auto",Er.CONTAIN="contain",Er.COVER="cover"})(Ni||(Ni={}));var ia={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(ye,Ne){return Fi(Ne).map(function(We){return We.filter(Ki)})}},Ki=function(ye){return Ln(ye)||Vi(ye)},fa=function(ye){return{name:"border-"+ye+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ya=fa("top"),xa=fa("right"),wa=fa("bottom"),Da=fa("left"),ja=function(ye){return{name:"border-radius-"+ye,initialValue:"0 0",prefix:!1,type:1,parse:function(We,dt){return ea(dt.filter(Vi))}}},ko=ja("top-left"),ro=ja("top-right"),pa=ja("bottom-right"),Ea=ja("bottom-left"),Fa=function(ye){return{name:"border-"+ye+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(We,dt){switch(dt){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ka=Fa("top"),lo=Fa("right"),so=Fa("bottom"),Co=Fa("left"),Lo=function(ye){return{name:"border-"+ye+"-width",initialValue:"0",type:0,prefix:!1,parse:function(We,dt){return rn(dt)?dt.number:0}}},is=Lo("top"),cs=Lo("right"),Rs=Lo("bottom"),Ko=Lo("left"),as={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},co={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"rtl":return 1;case"ltr":default:return 0}}},Ao={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(ye,Ne){return Ne.filter(Ln).reduce(function(We,dt){return We|$a(dt.value)},0)}},$a=function(ye){switch(ye){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},ss={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},_s={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(ye,Ne){return Ne.type===20&&Ne.value==="normal"?0:Ne.type===17||Ne.type===15?Ne.number:0}},Fo;(function(Er){Er.NORMAL="normal",Er.STRICT="strict"})(Fo||(Fo={}));var il={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"strict":return Fo.STRICT;case"normal":default:return Fo.NORMAL}}},Eo={name:"line-height",initialValue:"normal",prefix:!1,type:4},zo=function(ye,Ne){return Ln(ye)&&ye.value==="normal"?1.2*Ne:ye.type===17?Ne*ye.number:Vi(ye)?ca(ye,Ne):Ne},Fs={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(ye,Ne){return Ne.type===20&&Ne.value==="none"?null:nn.parse(ye,Ne)}},ms={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"inside":return 0;case"outside":default:return 1}}},hs={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){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}}},wn=function(ye){return{name:"margin-"+ye,initialValue:"0",prefix:!1,type:4}},Ns=wn("top"),Ll=wn("right"),el=wn("bottom"),Gs=wn("left"),ds={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(ye,Ne){return Ne.filter(Ln).map(function(We){switch(We.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ks={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"break-word":return"break-word";case"normal":default:return"normal"}}},Qs=function(ye){return{name:"padding-"+ye,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},tl=Qs("top"),xs=Qs("right"),Bs=Qs("bottom"),al=Qs("left"),Js={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Vo={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},No={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ye,Ne){return Ne.length===1&&ei(Ne[0],"none")?[]:Fi(Ne).map(function(We){for(var dt={color:So.TRANSPARENT,offsetX:Xi,offsetY:Xi,blur:Xi},gr=0,an=0;an<We.length;an++){var Tn=We[an];Ii(Tn)?(gr===0?dt.offsetX=Tn:gr===1?dt.offsetY=Tn:dt.blur=Tn,gr++):dt.color=Xa.parse(ye,Tn)}return dt})}},fs={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Ds={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(ye,Ne){if(Ne.type===20&&Ne.value==="none")return null;if(Ne.type===18){var We=or[Ne.name];if(typeof We=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+Ne.name+'"');return We(Ne.values)}return null}},go=function(ye){var Ne=ye.filter(function(We){return We.type===17}).map(function(We){return We.number});return Ne.length===6?Ne:null},Ut=function(ye){var Ne=ye.filter(function(ai){return ai.type===17}).map(function(ai){return ai.number}),We=Ne[0],dt=Ne[1];Ne[2],Ne[3];var gr=Ne[4],an=Ne[5];Ne[6],Ne[7],Ne[8],Ne[9],Ne[10],Ne[11];var Tn=Ne[12],jn=Ne[13];return Ne[14],Ne[15],Ne.length===16?[We,dt,gr,an,Tn,jn]:null},or={matrix:go,matrix3d:Ut},Nn={type:16,number:50,flags:Et},hi=[Nn,Nn],Nt={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(ye,Ne){var We=Ne.filter(Vi);return We.length!==2?hi:[We[0],We[1]]}},ce={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Se;(function(Er){Er.NORMAL="normal",Er.BREAK_ALL="break-all",Er.KEEP_ALL="keep-all"})(Se||(Se={}));for(var Ie={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"break-all":return Se.BREAK_ALL;case"keep-all":return Se.KEEP_ALL;case"normal":default:return Se.NORMAL}}},Je={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(ye,Ne){if(Ne.type===20)return{auto:!0,order:0};if(xn(Ne))return{auto:!1,order:Ne.number};throw new Error("Invalid z-index number parsed")}},Dt={name:"time",parse:function(ye,Ne){if(Ne.type===15)switch(Ne.unit.toLowerCase()){case"s":return 1e3*Ne.number;case"ms":return Ne.number}throw new Error("Unsupported time type")}},sr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(ye,Ne){return xn(Ne)?Ne.number:1}},Jr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},gn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(ye,Ne){return Ne.filter(Ln).map(function(We){switch(We.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(We){return We!==0})}},Dn={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(ye,Ne){var We=[],dt=[];return Ne.forEach(function(gr){switch(gr.type){case 20:case 0:We.push(gr.value);break;case 17:We.push(gr.number.toString());break;case 4:dt.push(We.join(" ")),We.length=0;break}}),We.length&&dt.push(We.join(" ")),dt.map(function(gr){return gr.indexOf(" ")===-1?gr:"'"+gr+"'"})}},ui={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Si={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(ye,Ne){if(xn(Ne))return Ne.number;if(Ln(Ne))switch(Ne.value){case"bold":return 700;case"normal":default:return 400}return 400}},vi={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(ye,Ne){return Ne.filter(Ln).map(function(We){return We.value})}},Qi={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},sa=function(ye,Ne){return(ye&Ne)!==0},Ua={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(ye,Ne){if(Ne.length===0)return[];var We=Ne[0];return We.type===20&&We.value==="none"?[]:Ne}},no={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(ye,Ne){if(Ne.length===0)return null;var We=Ne[0];if(We.type===20&&We.value==="none")return null;for(var dt=[],gr=Ne.filter(Kn),an=0;an<gr.length;an++){var Tn=gr[an],jn=gr[an+1];if(Tn.type===20){var ai=jn&&xn(jn)?jn.number:1;dt.push({counter:Tn.value,increment:ai})}}return dt}},Wo={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(ye,Ne){if(Ne.length===0)return[];for(var We=[],dt=Ne.filter(Kn),gr=0;gr<dt.length;gr++){var an=dt[gr],Tn=dt[gr+1];if(Ln(an)&&an.value!=="none"){var jn=Tn&&xn(Tn)?Tn.number:0;We.push({counter:an.value,reset:jn})}}return We}},Zo={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(ye,Ne){return Ne.filter(rn).map(function(We){return Dt.parse(ye,We)})}},Bo={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(ye,Ne){if(Ne.length===0)return null;var We=Ne[0];if(We.type===20&&We.value==="none")return null;var dt=[],gr=Ne.filter(Sn);if(gr.length%2!==0)return null;for(var an=0;an<gr.length;an+=2){var Tn=gr[an].value,jn=gr[an+1].value;dt.push({open:Tn,close:jn})}return dt}},Es=function(ye,Ne,We){if(!ye)return"";var dt=ye[Math.min(Ne,ye.length-1)];return dt?We?dt.open:dt.close:""},As={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ye,Ne){return Ne.length===1&&ei(Ne[0],"none")?[]:Fi(Ne).map(function(We){for(var dt={color:255,offsetX:Xi,offsetY:Xi,blur:Xi,spread:Xi,inset:!1},gr=0,an=0;an<We.length;an++){var Tn=We[an];ei(Tn,"inset")?dt.inset=!0:Ii(Tn)?(gr===0?dt.offsetX=Tn:gr===1?dt.offsetY=Tn:gr===2?dt.blur=Tn:dt.spread=Tn,gr++):dt.color=Xa.parse(ye,Tn)}return dt})}},$o={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(ye,Ne){var We=[0,1,2],dt=[];return Ne.filter(Ln).forEach(function(gr){switch(gr.value){case"stroke":dt.push(1);break;case"fill":dt.push(0);break;case"markers":dt.push(2);break}}),We.forEach(function(gr){dt.indexOf(gr)===-1&&dt.push(gr)}),dt}},Do={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},vo={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(ye,Ne){return rn(Ne)?Ne.number:0}},Ms=function(){function Er(ye,Ne){var We,dt;this.animationDuration=Ra(ye,Zo,Ne.animationDuration),this.backgroundClip=Ra(ye,bo,Ne.backgroundClip),this.backgroundColor=Ra(ye,to,Ne.backgroundColor),this.backgroundImage=Ra(ye,ci,Ne.backgroundImage),this.backgroundOrigin=Ra(ye,si,Ne.backgroundOrigin),this.backgroundPosition=Ra(ye,Ci,Ne.backgroundPosition),this.backgroundRepeat=Ra(ye,gi,Ne.backgroundRepeat),this.backgroundSize=Ra(ye,ia,Ne.backgroundSize),this.borderTopColor=Ra(ye,Ya,Ne.borderTopColor),this.borderRightColor=Ra(ye,xa,Ne.borderRightColor),this.borderBottomColor=Ra(ye,wa,Ne.borderBottomColor),this.borderLeftColor=Ra(ye,Da,Ne.borderLeftColor),this.borderTopLeftRadius=Ra(ye,ko,Ne.borderTopLeftRadius),this.borderTopRightRadius=Ra(ye,ro,Ne.borderTopRightRadius),this.borderBottomRightRadius=Ra(ye,pa,Ne.borderBottomRightRadius),this.borderBottomLeftRadius=Ra(ye,Ea,Ne.borderBottomLeftRadius),this.borderTopStyle=Ra(ye,Ka,Ne.borderTopStyle),this.borderRightStyle=Ra(ye,lo,Ne.borderRightStyle),this.borderBottomStyle=Ra(ye,so,Ne.borderBottomStyle),this.borderLeftStyle=Ra(ye,Co,Ne.borderLeftStyle),this.borderTopWidth=Ra(ye,is,Ne.borderTopWidth),this.borderRightWidth=Ra(ye,cs,Ne.borderRightWidth),this.borderBottomWidth=Ra(ye,Rs,Ne.borderBottomWidth),this.borderLeftWidth=Ra(ye,Ko,Ne.borderLeftWidth),this.boxShadow=Ra(ye,As,Ne.boxShadow),this.color=Ra(ye,as,Ne.color),this.direction=Ra(ye,co,Ne.direction),this.display=Ra(ye,Ao,Ne.display),this.float=Ra(ye,ss,Ne.cssFloat),this.fontFamily=Ra(ye,Dn,Ne.fontFamily),this.fontSize=Ra(ye,ui,Ne.fontSize),this.fontStyle=Ra(ye,Qi,Ne.fontStyle),this.fontVariant=Ra(ye,vi,Ne.fontVariant),this.fontWeight=Ra(ye,Si,Ne.fontWeight),this.letterSpacing=Ra(ye,_s,Ne.letterSpacing),this.lineBreak=Ra(ye,il,Ne.lineBreak),this.lineHeight=Ra(ye,Eo,Ne.lineHeight),this.listStyleImage=Ra(ye,Fs,Ne.listStyleImage),this.listStylePosition=Ra(ye,ms,Ne.listStylePosition),this.listStyleType=Ra(ye,hs,Ne.listStyleType),this.marginTop=Ra(ye,Ns,Ne.marginTop),this.marginRight=Ra(ye,Ll,Ne.marginRight),this.marginBottom=Ra(ye,el,Ne.marginBottom),this.marginLeft=Ra(ye,Gs,Ne.marginLeft),this.opacity=Ra(ye,sr,Ne.opacity);var gr=Ra(ye,ds,Ne.overflow);this.overflowX=gr[0],this.overflowY=gr[gr.length>1?1:0],this.overflowWrap=Ra(ye,ks,Ne.overflowWrap),this.paddingTop=Ra(ye,tl,Ne.paddingTop),this.paddingRight=Ra(ye,xs,Ne.paddingRight),this.paddingBottom=Ra(ye,Bs,Ne.paddingBottom),this.paddingLeft=Ra(ye,al,Ne.paddingLeft),this.paintOrder=Ra(ye,$o,Ne.paintOrder),this.position=Ra(ye,Vo,Ne.position),this.textAlign=Ra(ye,Js,Ne.textAlign),this.textDecorationColor=Ra(ye,Jr,(We=Ne.textDecorationColor)!==null&&We!==void 0?We:Ne.color),this.textDecorationLine=Ra(ye,gn,(dt=Ne.textDecorationLine)!==null&&dt!==void 0?dt:Ne.textDecoration),this.textShadow=Ra(ye,No,Ne.textShadow),this.textTransform=Ra(ye,fs,Ne.textTransform),this.transform=Ra(ye,Ds,Ne.transform),this.transformOrigin=Ra(ye,Nt,Ne.transformOrigin),this.visibility=Ra(ye,ce,Ne.visibility),this.webkitTextStrokeColor=Ra(ye,Do,Ne.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ra(ye,vo,Ne.webkitTextStrokeWidth),this.wordBreak=Ra(ye,Ie,Ne.wordBreak),this.zIndex=Ra(ye,Je,Ne.zIndex)}return Er.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},Er.prototype.isTransparent=function(){return _a(this.backgroundColor)},Er.prototype.isTransformed=function(){return this.transform!==null},Er.prototype.isPositioned=function(){return this.position!==0},Er.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},Er.prototype.isFloating=function(){return this.float!==0},Er.prototype.isInlineLevel=function(){return sa(this.display,4)||sa(this.display,33554432)||sa(this.display,268435456)||sa(this.display,536870912)||sa(this.display,67108864)||sa(this.display,134217728)},Er}(),rl=function(){function Er(ye,Ne){this.content=Ra(ye,Ua,Ne.content),this.quotes=Ra(ye,Bo,Ne.quotes)}return Er}(),gs=function(){function Er(ye,Ne){this.counterIncrement=Ra(ye,no,Ne.counterIncrement),this.counterReset=Ra(ye,Wo,Ne.counterReset)}return Er}(),Ra=function(ye,Ne,We){var dt=new Or,gr=We!==null&&typeof We!="undefined"?We.toString():Ne.initialValue;dt.write(gr);var an=new Lr(dt.read());switch(Ne.type){case 2:var Tn=an.parseComponentValue();return Ne.parse(ye,Ln(Tn)?Tn.value:Ne.initialValue);case 0:return Ne.parse(ye,an.parseComponentValue());case 1:return Ne.parse(ye,an.parseComponentValues());case 4:return an.parseComponentValue();case 3:switch(Ne.format){case"angle":return va.parse(ye,an.parseComponentValue());case"color":return Xa.parse(ye,an.parseComponentValue());case"image":return nn.parse(ye,an.parseComponentValue());case"length":var jn=an.parseComponentValue();return Ii(jn)?jn:Xi;case"length-percentage":var ai=an.parseComponentValue();return Vi(ai)?ai:Xi;case"time":return Dt.parse(ye,an.parseComponentValue())}break}},dl="data-html2canvas-debug",fl=function(ye){var Ne=ye.getAttribute(dl);switch(Ne){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Us=function(ye,Ne){var We=fl(ye);return We===1||Ne===We},Os=function(){function Er(ye,Ne){if(this.context=ye,this.textNodes=[],this.elements=[],this.flags=0,Us(Ne,3))debugger;this.styles=new Ms(ye,window.getComputedStyle(Ne,null)),js(Ne)&&(this.styles.animationDuration.some(function(We){return We>0})&&(Ne.style.animationDuration="0s"),this.styles.transform!==null&&(Ne.style.transform="none")),this.bounds=u(this.context,Ne),Us(Ne,4)&&(this.flags|=16)}return Er}(),Xs="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ql="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ul=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),wl=0;wl<Ql.length;wl++)Ul[Ql.charCodeAt(wl)]=wl;for(var Ts=function(ye){var Ne=ye.length*.75,We=ye.length,dt,gr=0,an,Tn,jn,ai;ye[ye.length-1]==="="&&(Ne--,ye[ye.length-2]==="="&&Ne--);var Yi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Ne):new Array(Ne),Ui=Array.isArray(Yi)?Yi:new Uint8Array(Yi);for(dt=0;dt<We;dt+=4)an=Ul[ye.charCodeAt(dt)],Tn=Ul[ye.charCodeAt(dt+1)],jn=Ul[ye.charCodeAt(dt+2)],ai=Ul[ye.charCodeAt(dt+3)],Ui[gr++]=an<<2|Tn>>4,Ui[gr++]=(Tn&15)<<4|jn>>2,Ui[gr++]=(jn&3)<<6|ai&63;return Yi},Ws=function(ye){for(var Ne=ye.length,We=[],dt=0;dt<Ne;dt+=2)We.push(ye[dt+1]<<8|ye[dt]);return We},Tl=function(ye){for(var Ne=ye.length,We=[],dt=0;dt<Ne;dt+=4)We.push(ye[dt+3]<<24|ye[dt+2]<<16|ye[dt+1]<<8|ye[dt]);return We},pl=5,jo=6+5,yo=2,qo=jo-pl,ps=65536>>pl,Is=1<<pl,es=Is-1,Ls=1024>>pl,Ps=ps+Ls,ml=Ps,Rl=2048>>6,_l=ml+Rl,Bl=65536>>jo,jl=1<<qo,kl=jl-1,Xl=function(ye,Ne,We){return ye.slice?ye.slice(Ne,We):new Uint16Array(Array.prototype.slice.call(ye,Ne,We))},ol=function(ye,Ne,We){return ye.slice?ye.slice(Ne,We):new Uint32Array(Array.prototype.slice.call(ye,Ne,We))},Ys=function(ye,Ne){var We=Ts(ye),dt=Array.isArray(We)?Tl(We):new Uint32Array(We),gr=Array.isArray(We)?Ws(We):new Uint16Array(We),an=24,Tn=Xl(gr,an/2,dt[4]/2),jn=dt[5]===2?Xl(gr,(an+dt[4])/2):ol(dt,Math.ceil((an+dt[4])/4));return new sl(dt[0],dt[1],dt[2],dt[3],Tn,jn)},sl=function(){function Er(ye,Ne,We,dt,gr,an){this.initialValue=ye,this.errorValue=Ne,this.highStart=We,this.highValueIndex=dt,this.index=gr,this.data=an}return Er.prototype.get=function(ye){var Ne;if(ye>=0){if(ye<55296||ye>56319&&ye<=65535)return Ne=this.index[ye>>pl],Ne=(Ne<<yo)+(ye&es),this.data[Ne];if(ye<=65535)return Ne=this.index[ps+(ye-55296>>pl)],Ne=(Ne<<yo)+(ye&es),this.data[Ne];if(ye<this.highStart)return Ne=_l-Bl+(ye>>jo),Ne=this.index[Ne],Ne+=ye>>pl&kl,Ne=this.index[Ne],Ne=(Ne<<yo)+(ye&es),this.data[Ne];if(ye<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Er}(),nl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xl=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ml=0;Ml<nl.length;Ml++)xl[nl.charCodeAt(Ml)]=Ml;var Wl=1,au=2,Nl=3,$l=4,tu=5,Iu=7,pu=8,mu=9,gu=10,ql=11,Cl=12,ll=13,Hl=14,Sl=15,Su=function(ye){for(var Ne=[],We=0,dt=ye.length;We<dt;){var gr=ye.charCodeAt(We++);if(gr>=55296&&gr<=56319&&We<dt){var an=ye.charCodeAt(We++);(an&64512)===56320?Ne.push(((gr&1023)<<10)+(an&1023)+65536):(Ne.push(gr),We--)}else Ne.push(gr)}return Ne},vu=function(){for(var ye=[],Ne=0;Ne<arguments.length;Ne++)ye[Ne]=arguments[Ne];if(String.fromCodePoint)return String.fromCodePoint.apply(String,ye);var We=ye.length;if(!We)return"";for(var dt=[],gr=-1,an="";++gr<We;){var Tn=ye[gr];Tn<=65535?dt.push(Tn):(Tn-=65536,dt.push((Tn>>10)+55296,Tn%1024+56320)),(gr+1===We||dt.length>16384)&&(an+=String.fromCharCode.apply(String,dt),dt.length=0)}return an},Au=Ys(Xs),Ol="\xD7",cu="\xF7",du=function(ye){return Au.get(ye)},Lu=function(ye,Ne,We){var dt=We-2,gr=Ne[dt],an=Ne[We-1],Tn=Ne[We];if(an===au&&Tn===Nl)return Ol;if(an===au||an===Nl||an===$l)return cu;if(Tn===au||Tn===Nl||Tn===$l)return cu;if(an===pu&&[pu,mu,ql,Cl].indexOf(Tn)!==-1)return Ol;if((an===ql||an===mu)&&(Tn===mu||Tn===gu))return Ol;if((an===Cl||an===gu)&&Tn===gu)return Ol;if(Tn===ll||Tn===tu)return Ol;if(Tn===Iu)return Ol;if(an===Wl)return Ol;if(an===ll&&Tn===Hl){for(;gr===tu;)gr=Ne[--dt];if(gr===Hl)return Ol}if(an===Sl&&Tn===Sl){for(var jn=0;gr===Sl;)jn++,gr=Ne[--dt];if(jn%2===0)return Ol}return cu},zl=function(ye){var Ne=Su(ye),We=Ne.length,dt=0,gr=0,an=Ne.map(du);return{next:function(){if(dt>=We)return{done:!0,value:null};for(var jn=Ol;dt<We&&(jn=Lu(Ne,an,++dt))===Ol;);if(jn!==Ol||dt===We){var ai=vu.apply(null,Ne.slice(gr,dt));return gr=dt,{value:ai,done:!1}}return{done:!0,value:null}}}},ru=function(ye){for(var Ne=zl(ye),We=[],dt;!(dt=Ne.next()).done;)dt.value&&We.push(dt.value.slice());return We},ou=function(ye){var Ne=123;if(ye.createRange){var We=ye.createRange();if(We.getBoundingClientRect){var dt=ye.createElement("boundtest");dt.style.height=Ne+"px",dt.style.display="block",ye.body.appendChild(dt),We.selectNode(dt);var gr=We.getBoundingClientRect(),an=Math.round(gr.height);if(ye.body.removeChild(dt),an===Ne)return!0}}return!1},su=function(ye){var Ne=ye.createElement("boundtest");Ne.style.width="50px",Ne.style.display="block",Ne.style.fontSize="12px",Ne.style.letterSpacing="0px",Ne.style.wordSpacing="0px",ye.body.appendChild(Ne);var We=ye.createRange();Ne.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var dt=Ne.firstChild,gr=i(dt.data).map(function(ai){return t(ai)}),an=0,Tn={},jn=gr.every(function(ai,Yi){We.setStart(dt,an),We.setEnd(dt,an+ai.length);var Ui=We.getBoundingClientRect();an+=ai.length;var qi=Ui.x>Tn.x||Ui.y>Tn.y;return Tn=Ui,Yi===0?!0:qi});return ye.body.removeChild(Ne),jn},Jl=function(){return typeof new Image().crossOrigin!="undefined"},Du=function(){return typeof new XMLHttpRequest().responseType=="string"},Ru=function(ye){var Ne=new Image,We=ye.createElement("canvas"),dt=We.getContext("2d");if(!dt)return!1;Ne.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{dt.drawImage(Ne,0,0),We.toDataURL()}catch(gr){return!1}return!0},Zl=function(ye){return ye[0]===0&&ye[1]===255&&ye[2]===0&&ye[3]===255},yu=function(ye){var Ne=ye.createElement("canvas"),We=100;Ne.width=We,Ne.height=We;var dt=Ne.getContext("2d");if(!dt)return Promise.reject(!1);dt.fillStyle="rgb(0, 255, 0)",dt.fillRect(0,0,We,We);var gr=new Image,an=Ne.toDataURL();gr.src=an;var Tn=xu(We,We,0,0,gr);return dt.fillStyle="red",dt.fillRect(0,0,We,We),bu(Tn).then(function(jn){dt.drawImage(jn,0,0);var ai=dt.getImageData(0,0,We,We).data;dt.fillStyle="red",dt.fillRect(0,0,We,We);var Yi=ye.createElement("div");return Yi.style.backgroundImage="url("+an+")",Yi.style.height=We+"px",Zl(ai)?bu(xu(We,We,0,0,Yi)):Promise.reject(!1)}).then(function(jn){return dt.drawImage(jn,0,0),Zl(dt.getImageData(0,0,We,We).data)}).catch(function(){return!1})},xu=function(ye,Ne,We,dt,gr){var an="http://www.w3.org/2000/svg",Tn=document.createElementNS(an,"svg"),jn=document.createElementNS(an,"foreignObject");return Tn.setAttributeNS(null,"width",ye.toString()),Tn.setAttributeNS(null,"height",Ne.toString()),jn.setAttributeNS(null,"width","100%"),jn.setAttributeNS(null,"height","100%"),jn.setAttributeNS(null,"x",We.toString()),jn.setAttributeNS(null,"y",dt.toString()),jn.setAttributeNS(null,"externalResourcesRequired","true"),Tn.appendChild(jn),jn.appendChild(gr),Tn},bu=function(ye){return new Promise(function(Ne,We){var dt=new Image;dt.onload=function(){return Ne(dt)},dt.onerror=We,dt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ye))})},hl={get SUPPORT_RANGE_BOUNDS(){var Er=ou(document);return Object.defineProperty(hl,"SUPPORT_RANGE_BOUNDS",{value:Er}),Er},get SUPPORT_WORD_BREAKING(){var Er=hl.SUPPORT_RANGE_BOUNDS&&su(document);return Object.defineProperty(hl,"SUPPORT_WORD_BREAKING",{value:Er}),Er},get SUPPORT_SVG_DRAWING(){var Er=Ru(document);return Object.defineProperty(hl,"SUPPORT_SVG_DRAWING",{value:Er}),Er},get SUPPORT_FOREIGNOBJECT_DRAWING(){var Er=typeof Array.from=="function"&&typeof window.fetch=="function"?yu(document):Promise.resolve(!1);return Object.defineProperty(hl,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Er}),Er},get SUPPORT_CORS_IMAGES(){var Er=Jl();return Object.defineProperty(hl,"SUPPORT_CORS_IMAGES",{value:Er}),Er},get SUPPORT_RESPONSE_TYPE(){var Er=Du();return Object.defineProperty(hl,"SUPPORT_RESPONSE_TYPE",{value:Er}),Er},get SUPPORT_CORS_XHR(){var Er="withCredentials"in new XMLHttpRequest;return Object.defineProperty(hl,"SUPPORT_CORS_XHR",{value:Er}),Er},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var Er=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(hl,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:Er}),Er}},Dl=function(){function Er(ye,Ne){this.text=ye,this.bounds=Ne}return Er}(),nu=function(ye,Ne,We,dt){var gr=Ae(Ne,We),an=[],Tn=0;return gr.forEach(function(jn){if(We.textDecorationLine.length||jn.trim().length>0)if(hl.SUPPORT_RANGE_BOUNDS){var ai=hu(dt,Tn,jn.length).getClientRects();if(ai.length>1){var Yi=fu(jn),Ui=0;Yi.forEach(function(Za){an.push(new Dl(Za,d.fromDOMRectList(ye,hu(dt,Ui+Tn,Za.length).getClientRects()))),Ui+=Za.length})}else an.push(new Dl(jn,d.fromDOMRectList(ye,ai)))}else{var qi=dt.splitText(jn.length);an.push(new Dl(jn,Nu(ye,dt))),dt=qi}else hl.SUPPORT_RANGE_BOUNDS||(dt=dt.splitText(jn.length));Tn+=jn.length}),an},Nu=function(ye,Ne){var We=Ne.ownerDocument;if(We){var dt=We.createElement("html2canvaswrapper");dt.appendChild(Ne.cloneNode(!0));var gr=Ne.parentNode;if(gr){gr.replaceChild(dt,Ne);var an=u(ye,dt);return dt.firstChild&&gr.replaceChild(dt.firstChild,dt),an}}return d.EMPTY},hu=function(ye,Ne,We){var dt=ye.ownerDocument;if(!dt)throw new Error("Node has no owner document");var gr=dt.createRange();return gr.setStart(ye,Ne),gr.setEnd(ye,Ne+We),gr},fu=function(ye){if(hl.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Ne=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(Ne.segment(ye)).map(function(We){return We.segment})}return ru(ye)},iu=function(ye,Ne){if(hl.SUPPORT_NATIVE_TEXT_SEGMENTATION){var We=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(We.segment(ye)).map(function(dt){return dt.segment})}return L(ye,Ne)},Ae=function(ye,Ne){return Ne.letterSpacing!==0?fu(ye):iu(ye,Ne)},ee=[32,160,4961,65792,65793,4153,4241],L=function(ye,Ne){for(var We=Pe(ye,{lineBreak:Ne.lineBreak,wordBreak:Ne.overflowWrap==="break-word"?"break-word":Ne.wordBreak}),dt=[],gr,an=function(){if(gr.value){var jn=gr.value.slice(),ai=i(jn),Yi="";ai.forEach(function(Ui){ee.indexOf(Ui)===-1?Yi+=t(Ui):(Yi.length&&dt.push(Yi),dt.push(t(Ui)),Yi="")}),Yi.length&&dt.push(Yi)}};!(gr=We.next()).done;)an();return dt},W=function(){function Er(ye,Ne,We){this.text=H(Ne.data,We.textTransform),this.textBounds=nu(ye,this.text,We,Ne)}return Er}(),H=function(ye,Ne){switch(Ne){case 1:return ye.toLowerCase();case 3:return ye.replace(Z,ne);case 2:return ye.toUpperCase();default:return ye}},Z=/(^|\s|:|-|\(|\))([a-z])/g,ne=function(ye,Ne,We){return ye.length>0?Ne+We.toUpperCase():ye},ve=function(Er){f(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this;return dt.src=We.currentSrc||We.src,dt.intrinsicWidth=We.naturalWidth,dt.intrinsicHeight=We.naturalHeight,dt.context.cache.addImage(dt.src),dt}return ye}(Os),Te=function(Er){f(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this;return dt.canvas=We,dt.intrinsicWidth=We.width,dt.intrinsicHeight=We.height,dt}return ye}(Os),ze=function(Er){f(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this,gr=new XMLSerializer,an=u(Ne,We);return We.setAttribute("width",an.width+"px"),We.setAttribute("height",an.height+"px"),dt.svg="data:image/svg+xml,"+encodeURIComponent(gr.serializeToString(We)),dt.intrinsicWidth=We.width.baseVal.value,dt.intrinsicHeight=We.height.baseVal.value,dt.context.cache.addImage(dt.svg),dt}return ye}(Os),st=function(Er){f(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this;return dt.value=We.value,dt}return ye}(Os),ht=function(Er){f(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this;return dt.start=We.start,dt.reversed=typeof We.reversed=="boolean"&&We.reversed===!0,dt}return ye}(Os),Zt=[{type:15,flags:0,unit:"px",number:3}],Cr=[{type:16,flags:0,number:50}],Sr=function(ye){return ye.width>ye.height?new d(ye.left+(ye.width-ye.height)/2,ye.top,ye.height,ye.height):ye.width<ye.height?new d(ye.left,ye.top+(ye.height-ye.width)/2,ye.width,ye.width):ye},Kr=function(ye){var Ne=ye.type===Rn?new Array(ye.value.length+1).join("\u2022"):ye.value;return Ne.length===0?ye.placeholder||"":Ne},Zr="checkbox",On="radio",Rn="password",Zn=707406591,wi=function(Er){f(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this;dt.type=We.type.toLowerCase(),dt.checked=We.checked,dt.value=Kr(We),(dt.type===Zr||dt.type===On)&&(dt.styles.backgroundColor=3739148031,dt.styles.borderTopColor=dt.styles.borderRightColor=dt.styles.borderBottomColor=dt.styles.borderLeftColor=2779096575,dt.styles.borderTopWidth=dt.styles.borderRightWidth=dt.styles.borderBottomWidth=dt.styles.borderLeftWidth=1,dt.styles.borderTopStyle=dt.styles.borderRightStyle=dt.styles.borderBottomStyle=dt.styles.borderLeftStyle=1,dt.styles.backgroundClip=[0],dt.styles.backgroundOrigin=[0],dt.bounds=Sr(dt.bounds));switch(dt.type){case Zr:dt.styles.borderTopRightRadius=dt.styles.borderTopLeftRadius=dt.styles.borderBottomRightRadius=dt.styles.borderBottomLeftRadius=Zt;break;case On:dt.styles.borderTopRightRadius=dt.styles.borderTopLeftRadius=dt.styles.borderBottomRightRadius=dt.styles.borderBottomLeftRadius=Cr;break}return dt}return ye}(Os),ua=function(Er){f(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this,gr=We.options[We.selectedIndex||0];return dt.value=gr&&gr.text||"",dt}return ye}(Os),Gi=function(Er){f(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this;return dt.value=We.value,dt}return ye}(Os),Zi=function(Er){f(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this;dt.src=We.src,dt.width=parseInt(We.width,10)||0,dt.height=parseInt(We.height,10)||0,dt.backgroundColor=dt.styles.backgroundColor;try{if(We.contentWindow&&We.contentWindow.document&&We.contentWindow.document.documentElement){dt.tree=Sa(Ne,We.contentWindow.document.documentElement);var gr=We.contentWindow.document.documentElement?ao(Ne,getComputedStyle(We.contentWindow.document.documentElement).backgroundColor):So.TRANSPARENT,an=We.contentWindow.document.body?ao(Ne,getComputedStyle(We.contentWindow.document.body).backgroundColor):So.TRANSPARENT;dt.backgroundColor=_a(gr)?_a(an)?dt.styles.backgroundColor:an:gr}}catch(Tn){}return dt}return ye}(Os),ka=["OL","UL","MENU"],Ga=function Er(ye,Ne,We,dt){for(var gr=Ne.firstChild,an=void 0;gr;gr=an)if(an=gr.nextSibling,ys(gr)&&gr.data.trim().length>0)We.textNodes.push(new W(ye,gr,We.styles));else if(Cs(gr))if(ar(gr)&&gr.assignedNodes)gr.assignedNodes().forEach(function(jn){return Er(ye,jn,We,dt)});else{var Tn=Ba(ye,gr);Tn.styles.isVisible()&&(Go(gr,Tn,dt)?Tn.flags|=4:bs(Tn.styles)&&(Tn.flags|=2),ka.indexOf(gr.tagName)!==-1&&(Tn.flags|=8),We.elements.push(Tn),gr.slot,gr.shadowRoot?Er(ye,gr.shadowRoot,Tn,dt):!Vt(gr)&&!hr(gr)&&!rr(gr)&&Er(ye,gr,Tn,dt))}},Ba=function(ye,Ne){return ae(Ne)?new ve(ye,Ne):on(Ne)?new Te(ye,Ne):hr(Ne)?new ze(ye,Ne):Hs(Ne)?new st(ye,Ne):Ee(Ne)?new ht(ye,Ne):Ye(Ne)?new wi(ye,Ne):rr(Ne)?new ua(ye,Ne):Vt(Ne)?new Gi(ye,Ne):_e(Ne)?new Zi(ye,Ne):new Os(ye,Ne)},Sa=function(ye,Ne){var We=Ba(ye,Ne);return We.flags|=4,Ga(ye,Ne,We,We),We},Go=function(ye,Ne,We){return Ne.styles.isPositionedWithZIndex()||Ne.styles.opacity<1||Ne.styles.isTransformed()||Br(ye)&&We.styles.isTransparent()},bs=function(ye){return ye.isPositioned()||ye.isFloating()},ys=function(ye){return ye.nodeType===Node.TEXT_NODE},Cs=function(ye){return ye.nodeType===Node.ELEMENT_NODE},js=function(ye){return Cs(ye)&&typeof ye.style!="undefined"&&!ws(ye)},ws=function(ye){return typeof ye.className=="object"},Hs=function(ye){return ye.tagName==="LI"},Ee=function(ye){return ye.tagName==="OL"},Ye=function(ye){return ye.tagName==="INPUT"},Tt=function(ye){return ye.tagName==="HTML"},hr=function(ye){return ye.tagName==="svg"},Br=function(ye){return ye.tagName==="BODY"},on=function(ye){return ye.tagName==="CANVAS"},Ue=function(ye){return ye.tagName==="VIDEO"},ae=function(ye){return ye.tagName==="IMG"},_e=function(ye){return ye.tagName==="IFRAME"},$e=function(ye){return ye.tagName==="STYLE"},wt=function(ye){return ye.tagName==="SCRIPT"},Vt=function(ye){return ye.tagName==="TEXTAREA"},rr=function(ye){return ye.tagName==="SELECT"},ar=function(ye){return ye.tagName==="SLOT"},Vr=function(ye){return ye.tagName.indexOf("-")>0},pn=function(){function Er(){this.counters={}}return Er.prototype.getCounterValue=function(ye){var Ne=this.counters[ye];return Ne&&Ne.length?Ne[Ne.length-1]:1},Er.prototype.getCounterValues=function(ye){var Ne=this.counters[ye];return Ne||[]},Er.prototype.pop=function(ye){var Ne=this;ye.forEach(function(We){return Ne.counters[We].pop()})},Er.prototype.parse=function(ye){var Ne=this,We=ye.counterIncrement,dt=ye.counterReset,gr=!0;We!==null&&We.forEach(function(Tn){var jn=Ne.counters[Tn.counter];jn&&Tn.increment!==0&&(gr=!1,jn.length||jn.push(1),jn[Math.max(0,jn.length-1)]+=Tn.increment)});var an=[];return gr&&dt.forEach(function(Tn){var jn=Ne.counters[Tn.counter];an.push(Tn.counter),jn||(jn=Ne.counters[Tn.counter]=[]),jn.push(Tn.reset)}),an},Er}(),Wr={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"]},jr={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},sn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},yn={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"]},Vn=function(ye,Ne,We,dt,gr,an){return ye<Ne||ye>We?ie(ye,gr,an.length>0):dt.integers.reduce(function(Tn,jn,ai){for(;ye>=jn;)ye-=jn,Tn+=dt.values[ai];return Tn},"")+an},Li=function(ye,Ne,We,dt){var gr="";do We||ye--,gr=dt(ye)+gr,ye/=Ne;while(ye*Ne>=Ne);return gr},Mi=function(ye,Ne,We,dt,gr){var an=We-Ne+1;return(ye<0?"-":"")+(Li(Math.abs(ye),an,dt,function(Tn){return t(Math.floor(Tn%an)+Ne)})+gr)},da=function(ye,Ne,We){We===void 0&&(We=". ");var dt=Ne.length;return Li(Math.abs(ye),dt,!1,function(gr){return Ne[Math.floor(gr%dt)]})+We},$i=1<<0,Qa=1<<1,ya=1<<2,fo=1<<3,za=function(ye,Ne,We,dt,gr,an){if(ye<-9999||ye>9999)return ie(ye,4,gr.length>0);var Tn=Math.abs(ye),jn=gr;if(Tn===0)return Ne[0]+jn;for(var ai=0;Tn>0&&ai<=4;ai++){var Yi=Tn%10;Yi===0&&sa(an,$i)&&jn!==""?jn=Ne[Yi]+jn:Yi>1||Yi===1&&ai===0||Yi===1&&ai===1&&sa(an,Qa)||Yi===1&&ai===1&&sa(an,ya)&&ye>100||Yi===1&&ai>1&&sa(an,fo)?jn=Ne[Yi]+(ai>0?We[ai-1]:"")+jn:Yi===1&&ai>0&&(jn=We[ai-1]+jn),Tn=Math.floor(Tn/10)}return(ye<0?dt:"")+jn},Xo="\u5341\u767E\u5343\u842C",ls="\u62FE\u4F70\u4EDF\u842C",N="\u30DE\u30A4\u30CA\u30B9",B="\uB9C8\uC774\uB108\uC2A4",ie=function(ye,Ne,We){var dt=We?". ":"",gr=We?"\u3001":"",an=We?", ":"",Tn=We?" ":"";switch(Ne){case 0:return"\u2022"+Tn;case 1:return"\u25E6"+Tn;case 2:return"\u25FE"+Tn;case 5:var jn=Mi(ye,48,57,!0,dt);return jn.length<4?"0"+jn:jn;case 4:return da(ye,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",gr);case 6:return Vn(ye,1,3999,Wr,3,dt).toLowerCase();case 7:return Vn(ye,1,3999,Wr,3,dt);case 8:return Mi(ye,945,969,!1,dt);case 9:return Mi(ye,97,122,!1,dt);case 10:return Mi(ye,65,90,!1,dt);case 11:return Mi(ye,1632,1641,!0,dt);case 12:case 49:return Vn(ye,1,9999,jr,3,dt);case 35:return Vn(ye,1,9999,jr,3,dt).toLowerCase();case 13:return Mi(ye,2534,2543,!0,dt);case 14:case 30:return Mi(ye,6112,6121,!0,dt);case 15:return da(ye,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",gr);case 16:return da(ye,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",gr);case 17:case 48:return za(ye,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Xo,"\u8CA0",gr,Qa|ya|fo);case 47:return za(ye,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",ls,"\u8CA0",gr,$i|Qa|ya|fo);case 42:return za(ye,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Xo,"\u8D1F",gr,Qa|ya|fo);case 41:return za(ye,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",ls,"\u8D1F",gr,$i|Qa|ya|fo);case 26:return za(ye,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",N,gr,0);case 25:return za(ye,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",N,gr,$i|Qa|ya);case 31:return za(ye,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",B,an,$i|Qa|ya);case 33:return za(ye,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",B,an,0);case 32:return za(ye,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",B,an,$i|Qa|ya);case 18:return Mi(ye,2406,2415,!0,dt);case 20:return Vn(ye,1,19999,yn,3,dt);case 21:return Mi(ye,2790,2799,!0,dt);case 22:return Mi(ye,2662,2671,!0,dt);case 22:return Vn(ye,1,10999,sn,3,dt);case 23:return da(ye,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return da(ye,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Mi(ye,3302,3311,!0,dt);case 28:return da(ye,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",gr);case 29:return da(ye,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",gr);case 34:return Mi(ye,3792,3801,!0,dt);case 37:return Mi(ye,6160,6169,!0,dt);case 38:return Mi(ye,4160,4169,!0,dt);case 39:return Mi(ye,2918,2927,!0,dt);case 40:return Mi(ye,1776,1785,!0,dt);case 43:return Mi(ye,3046,3055,!0,dt);case 44:return Mi(ye,3174,3183,!0,dt);case 45:return Mi(ye,3664,3673,!0,dt);case 46:return Mi(ye,3872,3881,!0,dt);case 3:default:return Mi(ye,48,57,!0,dt)}},le="data-html2canvas-ignore",me=function(){function Er(ye,Ne,We){if(this.context=ye,this.options=We,this.scrolledElements=[],this.referenceElement=Ne,this.counters=new pn,this.quoteDepth=0,!Ne.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(Ne.ownerDocument.documentElement,!1)}return Er.prototype.toIFrame=function(ye,Ne){var We=this,dt=It(ye,Ne);if(!dt.contentWindow)return Promise.reject("Unable to find iframe window");var gr=ye.defaultView.pageXOffset,an=ye.defaultView.pageYOffset,Tn=dt.contentWindow,jn=Tn.document,ai=_r(dt).then(function(){return v(We,void 0,void 0,function(){var Yi,Ui;return m(this,function(qi){switch(qi.label){case 0:return this.scrolledElements.forEach(la),Tn&&(Tn.scrollTo(Ne.left,Ne.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Tn.scrollY!==Ne.top||Tn.scrollX!==Ne.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Tn.scrollX-Ne.left,Tn.scrollY-Ne.top,0,0))),Yi=this.options.onclone,Ui=this.clonedReferenceElement,typeof Ui=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:jn.fonts&&jn.fonts.ready?[4,jn.fonts.ready]:[3,2];case 1:qi.sent(),qi.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,wr(jn)]:[3,4];case 3:qi.sent(),qi.label=4;case 4:return typeof Yi=="function"?[2,Promise.resolve().then(function(){return Yi(jn,Ui)}).then(function(){return dt})]:[2,dt]}})})});return jn.open(),jn.write(Ei(document.doctype)+"<html></html>"),Oi(this.referenceElement.ownerDocument,gr,an),jn.replaceChild(jn.adoptNode(this.documentElement),jn.documentElement),jn.close(),ai},Er.prototype.createElementClone=function(ye){if(Us(ye,2))debugger;if(on(ye))return this.createCanvasClone(ye);if(Ue(ye))return this.createVideoClone(ye);if($e(ye))return this.createStyleClone(ye);var Ne=ye.cloneNode(!1);return ae(Ne)&&(ae(ye)&&ye.currentSrc&&ye.currentSrc!==ye.src&&(Ne.src=ye.currentSrc,Ne.srcset=""),Ne.loading==="lazy"&&(Ne.loading="eager")),Vr(Ne)?this.createCustomElementClone(Ne):Ne},Er.prototype.createCustomElementClone=function(ye){var Ne=document.createElement("html2canvascustomelement");return ni(ye.style,Ne),Ne},Er.prototype.createStyleClone=function(ye){try{var Ne=ye.sheet;if(Ne&&Ne.cssRules){var We=[].slice.call(Ne.cssRules,0).reduce(function(gr,an){return an&&typeof an.cssText=="string"?gr+an.cssText:gr},""),dt=ye.cloneNode(!1);return dt.textContent=We,dt}}catch(gr){if(this.context.logger.error("Unable to access cssRules property",gr),gr.name!=="SecurityError")throw gr}return ye.cloneNode(!1)},Er.prototype.createCanvasClone=function(ye){var Ne;if(this.options.inlineImages&&ye.ownerDocument){var We=ye.ownerDocument.createElement("img");try{return We.src=ye.toDataURL(),We}catch(ai){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",ye)}}var dt=ye.cloneNode(!1);try{dt.width=ye.width,dt.height=ye.height;var gr=ye.getContext("2d"),an=dt.getContext("2d");if(an)if(!this.options.allowTaint&&gr)an.putImageData(gr.getImageData(0,0,ye.width,ye.height),0,0);else{var Tn=(Ne=ye.getContext("webgl2"))!==null&&Ne!==void 0?Ne:ye.getContext("webgl");if(Tn){var jn=Tn.getContextAttributes();(jn==null?void 0:jn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",ye)}an.drawImage(ye,0,0)}return dt}catch(ai){this.context.logger.info("Unable to clone canvas as it is tainted",ye)}return dt},Er.prototype.createVideoClone=function(ye){var Ne=ye.ownerDocument.createElement("canvas");Ne.width=ye.offsetWidth,Ne.height=ye.offsetHeight;var We=Ne.getContext("2d");try{return We&&(We.drawImage(ye,0,0,Ne.width,Ne.height),this.options.allowTaint||We.getImageData(0,0,Ne.width,Ne.height)),Ne}catch(gr){this.context.logger.info("Unable to clone video as it is tainted",ye)}var dt=ye.ownerDocument.createElement("canvas");return dt.width=ye.offsetWidth,dt.height=ye.offsetHeight,dt},Er.prototype.appendChildNode=function(ye,Ne,We){(!Cs(Ne)||!wt(Ne)&&!Ne.hasAttribute(le)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(Ne)))&&((!this.options.copyStyles||!Cs(Ne)||!$e(Ne))&&ye.appendChild(this.cloneNode(Ne,We)))},Er.prototype.cloneChildNodes=function(ye,Ne,We){for(var dt=this,gr=ye.shadowRoot?ye.shadowRoot.firstChild:ye.firstChild;gr;gr=gr.nextSibling)if(Cs(gr)&&ar(gr)&&typeof gr.assignedNodes=="function"){var an=gr.assignedNodes();an.length&&an.forEach(function(Tn){return dt.appendChildNode(Ne,Tn,We)})}else this.appendChildNode(Ne,gr,We)},Er.prototype.cloneNode=function(ye,Ne){if(ys(ye))return document.createTextNode(ye.data);if(!ye.ownerDocument)return ye.cloneNode(!1);var We=ye.ownerDocument.defaultView;if(We&&Cs(ye)&&(js(ye)||ws(ye))){var dt=this.createElementClone(ye);dt.style.transitionProperty="none";var gr=We.getComputedStyle(ye),an=We.getComputedStyle(ye,":before"),Tn=We.getComputedStyle(ye,":after");this.referenceElement===ye&&js(dt)&&(this.clonedReferenceElement=dt),Br(dt)&&ho(dt);var jn=this.counters.parse(new gs(this.context,gr)),ai=this.resolvePseudoContent(ye,dt,an,Ke.BEFORE);Vr(ye)&&(Ne=!0),Ue(ye)||this.cloneChildNodes(ye,dt,Ne),ai&&dt.insertBefore(ai,dt.firstChild);var Yi=this.resolvePseudoContent(ye,dt,Tn,Ke.AFTER);return Yi&&dt.appendChild(Yi),this.counters.pop(jn),(gr&&(this.options.copyStyles||ws(ye))&&!_e(ye)||Ne)&&ni(gr,dt),(ye.scrollTop!==0||ye.scrollLeft!==0)&&this.scrolledElements.push([dt,ye.scrollLeft,ye.scrollTop]),(Vt(ye)||rr(ye))&&(Vt(dt)||rr(dt))&&(dt.value=ye.value),dt}return ye.cloneNode(!1)},Er.prototype.resolvePseudoContent=function(ye,Ne,We,dt){var gr=this;if(!We)return;var an=We.content,Tn=Ne.ownerDocument;if(!Tn||!an||an==="none"||an==="-moz-alt-content"||We.display==="none")return;this.counters.parse(new gs(this.context,We));var jn=new rl(this.context,We),ai=Tn.createElement("html2canvaspseudoelement");ni(We,ai),jn.content.forEach(function(Ui){if(Ui.type===0)ai.appendChild(Tn.createTextNode(Ui.value));else if(Ui.type===22){var qi=Tn.createElement("img");qi.src=Ui.value,qi.style.opacity="1",ai.appendChild(qi)}else if(Ui.type===18){if(Ui.name==="attr"){var Za=Ui.values.filter(Ln);Za.length&&ai.appendChild(Tn.createTextNode(ye.getAttribute(Za[0].value)||""))}else if(Ui.name==="counter"){var eo=Ui.values.filter(mi),po=eo[0],us=eo[1];if(po&&Ln(po)){var Yo=gr.counters.getCounterValue(po.value),Po=us&&Ln(us)?hs.parse(gr.context,us.value):3;ai.appendChild(Tn.createTextNode(ie(Yo,Po,!1)))}}else if(Ui.name==="counters"){var $s=Ui.values.filter(mi),po=$s[0],cl=$s[1],us=$s[2];if(po&&Ln(po)){var zs=gr.counters.getCounterValues(po.value),Ro=us&&Ln(us)?hs.parse(gr.context,us.value):3,Al=cl&&cl.type===0?cl.value:"",bl=zs.map(function(Mu){return ie(Mu,Ro,!1)}).join(Al);ai.appendChild(Tn.createTextNode(bl))}}}else if(Ui.type===20)switch(Ui.value){case"open-quote":ai.appendChild(Tn.createTextNode(Es(jn.quotes,gr.quoteDepth++,!0)));break;case"close-quote":ai.appendChild(Tn.createTextNode(Es(jn.quotes,--gr.quoteDepth,!1)));break;default:ai.appendChild(Tn.createTextNode(Ui.value))}}),ai.className=Ma+" "+Na;var Yi=dt===Ke.BEFORE?" "+Ma:" "+Na;return ws(Ne)?Ne.className.baseValue+=Yi:Ne.className+=Yi,ai},Er.destroy=function(ye){return ye.parentNode?(ye.parentNode.removeChild(ye),!0):!1},Er}(),Ke;(function(Er){Er[Er.BEFORE=0]="BEFORE",Er[Er.AFTER=1]="AFTER"})(Ke||(Ke={}));var It=function(ye,Ne){var We=ye.createElement("iframe");return We.className="html2canvas-container",We.style.visibility="hidden",We.style.position="fixed",We.style.left="-10000px",We.style.top="0px",We.style.border="0",We.width=Ne.width.toString(),We.height=Ne.height.toString(),We.scrolling="no",We.setAttribute(le,"true"),ye.body.appendChild(We),We},nr=function(ye){return new Promise(function(Ne){if(ye.complete){Ne();return}if(!ye.src){Ne();return}ye.onload=Ne,ye.onerror=Ne})},wr=function(ye){return Promise.all([].slice.call(ye.images,0).map(nr))},_r=function(ye){return new Promise(function(Ne,We){var dt=ye.contentWindow;if(!dt)return We("No window assigned for iframe");var gr=dt.document;dt.onload=ye.onload=function(){dt.onload=ye.onload=null;var an=setInterval(function(){gr.body.childNodes.length>0&&gr.readyState==="complete"&&(clearInterval(an),Ne(ye))},50)}})},Hn=["all","d","content"],ni=function(ye,Ne){for(var We=ye.length-1;We>=0;We--){var dt=ye.item(We);Hn.indexOf(dt)===-1&&Ne.style.setProperty(dt,ye.getPropertyValue(dt))}return Ne},Ei=function(ye){var Ne="";return ye&&(Ne+="<!DOCTYPE ",ye.name&&(Ne+=ye.name),ye.internalSubset&&(Ne+=ye.internalSubset),ye.publicId&&(Ne+='"'+ye.publicId+'"'),ye.systemId&&(Ne+='"'+ye.systemId+'"'),Ne+=">"),Ne},Oi=function(ye,Ne,We){ye&&ye.defaultView&&(Ne!==ye.defaultView.pageXOffset||We!==ye.defaultView.pageYOffset)&&ye.defaultView.scrollTo(Ne,We)},la=function(ye){var Ne=ye[0],We=ye[1],dt=ye[2];Ne.scrollLeft=We,Ne.scrollTop=dt},Ta=":before",Wa=":after",Ma="___html2canvas___pseudoelement_before",Na="___html2canvas___pseudoelement_after",qa=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,ho=function(ye){ns(ye,"."+Ma+Ta+qa+`
|
|
|
.`+Na+Wa+qa)},ns=function(ye,Ne){var We=ye.ownerDocument;if(We){var dt=We.createElement("style");dt.textContent=Ne,ye.appendChild(dt)}},Mo=function(){function Er(){}return Er.getOrigin=function(ye){var Ne=Er._link;return Ne?(Ne.href=ye,Ne.href=Ne.href,Ne.protocol+Ne.hostname+Ne.port):"about:blank"},Er.isSameOrigin=function(ye){return Er.getOrigin(ye)===Er._origin},Er.setContext=function(ye){Er._link=ye.document.createElement("a"),Er._origin=Er.getOrigin(ye.location.href)},Er._origin="about:blank",Er}(),Ss=function(){function Er(ye,Ne){this.context=ye,this._options=Ne,this._cache={}}return Er.prototype.addImage=function(ye){var Ne=Promise.resolve();return this.has(ye)||(Gl(ye)||Pl(ye))&&(this._cache[ye]=this.loadImage(ye)).catch(function(){}),Ne},Er.prototype.match=function(ye){return this._cache[ye]},Er.prototype.loadImage=function(ye){return v(this,void 0,void 0,function(){var Ne,We,dt,gr,an=this;return m(this,function(Tn){switch(Tn.label){case 0:return Ne=Mo.isSameOrigin(ye),We=!Vl(ye)&&this._options.useCORS===!0&&hl.SUPPORT_CORS_IMAGES&&!Ne,dt=!Vl(ye)&&!Ne&&!Gl(ye)&&typeof this._options.proxy=="string"&&hl.SUPPORT_CORS_XHR&&!We,!Ne&&this._options.allowTaint===!1&&!Vl(ye)&&!Gl(ye)&&!dt&&!We?[2]:(gr=ye,dt?[4,this.proxy(gr)]:[3,2]);case 1:gr=Tn.sent(),Tn.label=2;case 2:return this.context.logger.debug("Added image "+ye.substring(0,256)),[4,new Promise(function(jn,ai){var Yi=new Image;Yi.onload=function(){return jn(Yi)},Yi.onerror=ai,(Il(gr)||We)&&(Yi.crossOrigin="anonymous"),Yi.src=gr,Yi.complete===!0&&setTimeout(function(){return jn(Yi)},500),an._options.imageTimeout>0&&setTimeout(function(){return ai("Timed out ("+an._options.imageTimeout+"ms) loading image")},an._options.imageTimeout)})];case 3:return[2,Tn.sent()]}})})},Er.prototype.has=function(ye){return typeof this._cache[ye]!="undefined"},Er.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Er.prototype.proxy=function(ye){var Ne=this,We=this._options.proxy;if(!We)throw new Error("No proxy defined");var dt=ye.substring(0,256);return new Promise(function(gr,an){var Tn=hl.SUPPORT_RESPONSE_TYPE?"blob":"text",jn=new XMLHttpRequest;jn.onload=function(){if(jn.status===200)if(Tn==="text")gr(jn.response);else{var Ui=new FileReader;Ui.addEventListener("load",function(){return gr(Ui.result)},!1),Ui.addEventListener("error",function(qi){return an(qi)},!1),Ui.readAsDataURL(jn.response)}else an("Failed to proxy resource "+dt+" with status code "+jn.status)},jn.onerror=an;var ai=We.indexOf("?")>-1?"&":"?";if(jn.open("GET",""+We+ai+"url="+encodeURIComponent(ye)+"&responseType="+Tn),Tn!=="text"&&jn instanceof XMLHttpRequest&&(jn.responseType=Tn),Ne._options.imageTimeout){var Yi=Ne._options.imageTimeout;jn.timeout=Yi,jn.ontimeout=function(){return an("Timed out ("+Yi+"ms) proxying "+dt)}}jn.send()})},Er}(),Zs=/^data:image\/svg\+xml/i,yl=/^data:image\/.*;base64,/i,ul=/^data:image\/.*/i,Pl=function(ye){return hl.SUPPORT_SVG_DRAWING||!Fl(ye)},Vl=function(ye){return ul.test(ye)},Il=function(ye){return yl.test(ye)},Gl=function(ye){return ye.substr(0,4)==="blob"},Fl=function(ye){return ye.substr(-3).toLowerCase()==="svg"||Zs.test(ye)},Ja=function(){function Er(ye,Ne){this.type=0,this.x=ye,this.y=Ne}return Er.prototype.add=function(ye,Ne){return new Er(this.x+ye,this.y+Ne)},Er}(),vl=function(ye,Ne,We){return new Ja(ye.x+(Ne.x-ye.x)*We,ye.y+(Ne.y-ye.y)*We)},gl=function(){function Er(ye,Ne,We,dt){this.type=1,this.start=ye,this.startControl=Ne,this.endControl=We,this.end=dt}return Er.prototype.subdivide=function(ye,Ne){var We=vl(this.start,this.startControl,ye),dt=vl(this.startControl,this.endControl,ye),gr=vl(this.endControl,this.end,ye),an=vl(We,dt,ye),Tn=vl(dt,gr,ye),jn=vl(an,Tn,ye);return Ne?new Er(this.start,We,an,jn):new Er(jn,Tn,gr,this.end)},Er.prototype.add=function(ye,Ne){return new Er(this.start.add(ye,Ne),this.startControl.add(ye,Ne),this.endControl.add(ye,Ne),this.end.add(ye,Ne))},Er.prototype.reverse=function(){return new Er(this.end,this.endControl,this.startControl,this.start)},Er}(),El=function(ye){return ye.type===1},Bu=function(){function Er(ye){var Ne=ye.styles,We=ye.bounds,dt=Ji(Ne.borderTopLeftRadius,We.width,We.height),gr=dt[0],an=dt[1],Tn=Ji(Ne.borderTopRightRadius,We.width,We.height),jn=Tn[0],ai=Tn[1],Yi=Ji(Ne.borderBottomRightRadius,We.width,We.height),Ui=Yi[0],qi=Yi[1],Za=Ji(Ne.borderBottomLeftRadius,We.width,We.height),eo=Za[0],po=Za[1],us=[];us.push((gr+jn)/We.width),us.push((eo+Ui)/We.width),us.push((an+po)/We.height),us.push((ai+qi)/We.height);var Yo=Math.max.apply(Math,us);Yo>1&&(gr/=Yo,an/=Yo,jn/=Yo,ai/=Yo,Ui/=Yo,qi/=Yo,eo/=Yo,po/=Yo);var Po=We.width-jn,$s=We.height-qi,cl=We.width-Ui,zs=We.height-po,Ro=Ne.borderTopWidth,Al=Ne.borderRightWidth,bl=Ne.borderBottomWidth,Vs=Ne.borderLeftWidth,_u=ca(Ne.paddingTop,ye.bounds.width),Mu=ca(Ne.paddingRight,ye.bounds.width),Ou=ca(Ne.paddingBottom,ye.bounds.width),eu=ca(Ne.paddingLeft,ye.bounds.width);this.topLeftBorderDoubleOuterBox=gr>0||an>0?vs(We.left+Vs/3,We.top+Ro/3,gr-Vs/3,an-Ro/3,Ks.TOP_LEFT):new Ja(We.left+Vs/3,We.top+Ro/3),this.topRightBorderDoubleOuterBox=gr>0||an>0?vs(We.left+Po,We.top+Ro/3,jn-Al/3,ai-Ro/3,Ks.TOP_RIGHT):new Ja(We.left+We.width-Al/3,We.top+Ro/3),this.bottomRightBorderDoubleOuterBox=Ui>0||qi>0?vs(We.left+cl,We.top+$s,Ui-Al/3,qi-bl/3,Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-Al/3,We.top+We.height-bl/3),this.bottomLeftBorderDoubleOuterBox=eo>0||po>0?vs(We.left+Vs/3,We.top+zs,eo-Vs/3,po-bl/3,Ks.BOTTOM_LEFT):new Ja(We.left+Vs/3,We.top+We.height-bl/3),this.topLeftBorderDoubleInnerBox=gr>0||an>0?vs(We.left+Vs*2/3,We.top+Ro*2/3,gr-Vs*2/3,an-Ro*2/3,Ks.TOP_LEFT):new Ja(We.left+Vs*2/3,We.top+Ro*2/3),this.topRightBorderDoubleInnerBox=gr>0||an>0?vs(We.left+Po,We.top+Ro*2/3,jn-Al*2/3,ai-Ro*2/3,Ks.TOP_RIGHT):new Ja(We.left+We.width-Al*2/3,We.top+Ro*2/3),this.bottomRightBorderDoubleInnerBox=Ui>0||qi>0?vs(We.left+cl,We.top+$s,Ui-Al*2/3,qi-bl*2/3,Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-Al*2/3,We.top+We.height-bl*2/3),this.bottomLeftBorderDoubleInnerBox=eo>0||po>0?vs(We.left+Vs*2/3,We.top+zs,eo-Vs*2/3,po-bl*2/3,Ks.BOTTOM_LEFT):new Ja(We.left+Vs*2/3,We.top+We.height-bl*2/3),this.topLeftBorderStroke=gr>0||an>0?vs(We.left+Vs/2,We.top+Ro/2,gr-Vs/2,an-Ro/2,Ks.TOP_LEFT):new Ja(We.left+Vs/2,We.top+Ro/2),this.topRightBorderStroke=gr>0||an>0?vs(We.left+Po,We.top+Ro/2,jn-Al/2,ai-Ro/2,Ks.TOP_RIGHT):new Ja(We.left+We.width-Al/2,We.top+Ro/2),this.bottomRightBorderStroke=Ui>0||qi>0?vs(We.left+cl,We.top+$s,Ui-Al/2,qi-bl/2,Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-Al/2,We.top+We.height-bl/2),this.bottomLeftBorderStroke=eo>0||po>0?vs(We.left+Vs/2,We.top+zs,eo-Vs/2,po-bl/2,Ks.BOTTOM_LEFT):new Ja(We.left+Vs/2,We.top+We.height-bl/2),this.topLeftBorderBox=gr>0||an>0?vs(We.left,We.top,gr,an,Ks.TOP_LEFT):new Ja(We.left,We.top),this.topRightBorderBox=jn>0||ai>0?vs(We.left+Po,We.top,jn,ai,Ks.TOP_RIGHT):new Ja(We.left+We.width,We.top),this.bottomRightBorderBox=Ui>0||qi>0?vs(We.left+cl,We.top+$s,Ui,qi,Ks.BOTTOM_RIGHT):new Ja(We.left+We.width,We.top+We.height),this.bottomLeftBorderBox=eo>0||po>0?vs(We.left,We.top+zs,eo,po,Ks.BOTTOM_LEFT):new Ja(We.left,We.top+We.height),this.topLeftPaddingBox=gr>0||an>0?vs(We.left+Vs,We.top+Ro,Math.max(0,gr-Vs),Math.max(0,an-Ro),Ks.TOP_LEFT):new Ja(We.left+Vs,We.top+Ro),this.topRightPaddingBox=jn>0||ai>0?vs(We.left+Math.min(Po,We.width-Al),We.top+Ro,Po>We.width+Al?0:Math.max(0,jn-Al),Math.max(0,ai-Ro),Ks.TOP_RIGHT):new Ja(We.left+We.width-Al,We.top+Ro),this.bottomRightPaddingBox=Ui>0||qi>0?vs(We.left+Math.min(cl,We.width-Vs),We.top+Math.min($s,We.height-bl),Math.max(0,Ui-Al),Math.max(0,qi-bl),Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-Al,We.top+We.height-bl),this.bottomLeftPaddingBox=eo>0||po>0?vs(We.left+Vs,We.top+Math.min(zs,We.height-bl),Math.max(0,eo-Vs),Math.max(0,po-bl),Ks.BOTTOM_LEFT):new Ja(We.left+Vs,We.top+We.height-bl),this.topLeftContentBox=gr>0||an>0?vs(We.left+Vs+eu,We.top+Ro+_u,Math.max(0,gr-(Vs+eu)),Math.max(0,an-(Ro+_u)),Ks.TOP_LEFT):new Ja(We.left+Vs+eu,We.top+Ro+_u),this.topRightContentBox=jn>0||ai>0?vs(We.left+Math.min(Po,We.width+Vs+eu),We.top+Ro+_u,Po>We.width+Vs+eu?0:jn-Vs+eu,ai-(Ro+_u),Ks.TOP_RIGHT):new Ja(We.left+We.width-(Al+Mu),We.top+Ro+_u),this.bottomRightContentBox=Ui>0||qi>0?vs(We.left+Math.min(cl,We.width-(Vs+eu)),We.top+Math.min($s,We.height+Ro+_u),Math.max(0,Ui-(Al+Mu)),qi-(bl+Ou),Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-(Al+Mu),We.top+We.height-(bl+Ou)),this.bottomLeftContentBox=eo>0||po>0?vs(We.left+Vs+eu,We.top+zs,Math.max(0,eo-(Vs+eu)),po-(bl+Ou),Ks.BOTTOM_LEFT):new Ja(We.left+Vs+eu,We.top+We.height-(bl+Ou))}return Er}(),Ks;(function(Er){Er[Er.TOP_LEFT=0]="TOP_LEFT",Er[Er.TOP_RIGHT=1]="TOP_RIGHT",Er[Er.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",Er[Er.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ks||(Ks={}));var vs=function(ye,Ne,We,dt,gr){var an=4*((Math.sqrt(2)-1)/3),Tn=We*an,jn=dt*an,ai=ye+We,Yi=Ne+dt;switch(gr){case Ks.TOP_LEFT:return new gl(new Ja(ye,Yi),new Ja(ye,Yi-jn),new Ja(ai-Tn,Ne),new Ja(ai,Ne));case Ks.TOP_RIGHT:return new gl(new Ja(ye,Ne),new Ja(ye+Tn,Ne),new Ja(ai,Yi-jn),new Ja(ai,Yi));case Ks.BOTTOM_RIGHT:return new gl(new Ja(ai,Ne),new Ja(ai,Ne+jn),new Ja(ye+Tn,Yi),new Ja(ye,Yi));case Ks.BOTTOM_LEFT:default:return new gl(new Ja(ai,Yi),new Ja(ai-Tn,Yi),new Ja(ye,Ne+jn),new Ja(ye,Ne))}},lu=function(ye){return[ye.topLeftBorderBox,ye.topRightBorderBox,ye.bottomRightBorderBox,ye.bottomLeftBorderBox]},Kl=function(ye){return[ye.topLeftContentBox,ye.topRightContentBox,ye.bottomRightContentBox,ye.bottomLeftContentBox]},Uu=function(ye){return[ye.topLeftPaddingBox,ye.topRightPaddingBox,ye.bottomRightPaddingBox,ye.bottomLeftPaddingBox]},Eu=function(){function Er(ye,Ne,We){this.offsetX=ye,this.offsetY=Ne,this.matrix=We,this.type=0,this.target=2|4}return Er}(),uu=function(){function Er(ye,Ne){this.path=ye,this.target=Ne,this.type=1}return Er}(),ku=function(){function Er(ye){this.opacity=ye,this.type=2,this.target=2|4}return Er}(),Yl=function(ye){return ye.type===0},Tu=function(ye){return ye.type===1},Vu=function(ye){return ye.type===2},Ju=function(ye,Ne){return ye.length===Ne.length?ye.some(function(We,dt){return We===Ne[dt]}):!1},vc=function(ye,Ne,We,dt,gr){return ye.map(function(an,Tn){switch(Tn){case 0:return an.add(Ne,We);case 1:return an.add(Ne+dt,We);case 2:return an.add(Ne+dt,We+gr);case 3:return an.add(Ne,We+gr)}return an})},Ac=function(){function Er(ye){this.element=ye,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return Er}(),tc=function(){function Er(ye,Ne){if(this.container=ye,this.parent=Ne,this.effects=[],this.curves=new Bu(this.container),this.container.styles.opacity<1&&this.effects.push(new ku(this.container.styles.opacity)),this.container.styles.transform!==null){var We=this.container.bounds.left+this.container.styles.transformOrigin[0].number,dt=this.container.bounds.top+this.container.styles.transformOrigin[1].number,gr=this.container.styles.transform;this.effects.push(new Eu(We,dt,gr))}if(this.container.styles.overflowX!==0){var an=lu(this.curves),Tn=Uu(this.curves);Ju(an,Tn)?this.effects.push(new uu(an,2|4)):(this.effects.push(new uu(an,2)),this.effects.push(new uu(Tn,4)))}}return Er.prototype.getEffects=function(ye){for(var Ne=[2,3].indexOf(this.container.styles.position)===-1,We=this.parent,dt=this.effects.slice(0);We;){var gr=We.effects.filter(function(jn){return!Tu(jn)});if(Ne||We.container.styles.position!==0||!We.parent){if(dt.unshift.apply(dt,gr),Ne=[2,3].indexOf(We.container.styles.position)===-1,We.container.styles.overflowX!==0){var an=lu(We.curves),Tn=Uu(We.curves);Ju(an,Tn)||dt.unshift(new uu(Tn,2|4))}}else dt.unshift.apply(dt,gr);We=We.parent}return dt.filter(function(jn){return sa(jn.target,ye)})},Er}(),yc=function Er(ye,Ne,We,dt){ye.container.elements.forEach(function(gr){var an=sa(gr.flags,4),Tn=sa(gr.flags,2),jn=new tc(gr,ye);sa(gr.styles.display,2048)&&dt.push(jn);var ai=sa(gr.flags,8)?[]:dt;if(an||Tn){var Yi=an||gr.styles.isPositioned()?We:Ne,Ui=new Ac(jn);if(gr.styles.isPositioned()||gr.styles.opacity<1||gr.styles.isTransformed()){var qi=gr.styles.zIndex.order;if(qi<0){var Za=0;Yi.negativeZIndex.some(function(po,us){return qi>po.element.container.styles.zIndex.order?(Za=us,!1):Za>0}),Yi.negativeZIndex.splice(Za,0,Ui)}else if(qi>0){var eo=0;Yi.positiveZIndex.some(function(po,us){return qi>=po.element.container.styles.zIndex.order?(eo=us+1,!1):eo>0}),Yi.positiveZIndex.splice(eo,0,Ui)}else Yi.zeroOrAutoZIndexOrTransformedOrOpacity.push(Ui)}else gr.styles.isFloating()?Yi.nonPositionedFloats.push(Ui):Yi.nonPositionedInlineLevel.push(Ui);Er(jn,Ui,an?Ui:We,ai)}else gr.styles.isInlineLevel()?Ne.inlineLevel.push(jn):Ne.nonInlineLevel.push(jn),Er(jn,Ne,We,ai);sa(gr.flags,8)&&sc(gr,ai)})},sc=function(ye,Ne){for(var We=ye instanceof ht?ye.start:1,dt=ye instanceof ht?ye.reversed:!1,gr=0;gr<Ne.length;gr++){var an=Ne[gr];an.container instanceof st&&typeof an.container.value=="number"&&an.container.value!==0&&(We=an.container.value),an.listValue=ie(We,an.container.styles.listStyleType,!0),We+=dt?-1:1}},ju=function(ye){var Ne=new tc(ye,null),We=new Ac(Ne),dt=[];return yc(Ne,We,We,dt),sc(Ne.container,dt),We},hc=function(ye,Ne){switch(Ne){case 0:return Cu(ye.topLeftBorderBox,ye.topLeftPaddingBox,ye.topRightBorderBox,ye.topRightPaddingBox);case 1:return Cu(ye.topRightBorderBox,ye.topRightPaddingBox,ye.bottomRightBorderBox,ye.bottomRightPaddingBox);case 2:return Cu(ye.bottomRightBorderBox,ye.bottomRightPaddingBox,ye.bottomLeftBorderBox,ye.bottomLeftPaddingBox);case 3:default:return Cu(ye.bottomLeftBorderBox,ye.bottomLeftPaddingBox,ye.topLeftBorderBox,ye.topLeftPaddingBox)}},bc=function(ye,Ne){switch(Ne){case 0:return Cu(ye.topLeftBorderBox,ye.topLeftBorderDoubleOuterBox,ye.topRightBorderBox,ye.topRightBorderDoubleOuterBox);case 1:return Cu(ye.topRightBorderBox,ye.topRightBorderDoubleOuterBox,ye.bottomRightBorderBox,ye.bottomRightBorderDoubleOuterBox);case 2:return Cu(ye.bottomRightBorderBox,ye.bottomRightBorderDoubleOuterBox,ye.bottomLeftBorderBox,ye.bottomLeftBorderDoubleOuterBox);case 3:default:return Cu(ye.bottomLeftBorderBox,ye.bottomLeftBorderDoubleOuterBox,ye.topLeftBorderBox,ye.topLeftBorderDoubleOuterBox)}},Tc=function(ye,Ne){switch(Ne){case 0:return Cu(ye.topLeftBorderDoubleInnerBox,ye.topLeftPaddingBox,ye.topRightBorderDoubleInnerBox,ye.topRightPaddingBox);case 1:return Cu(ye.topRightBorderDoubleInnerBox,ye.topRightPaddingBox,ye.bottomRightBorderDoubleInnerBox,ye.bottomRightPaddingBox);case 2:return Cu(ye.bottomRightBorderDoubleInnerBox,ye.bottomRightPaddingBox,ye.bottomLeftBorderDoubleInnerBox,ye.bottomLeftPaddingBox);case 3:default:return Cu(ye.bottomLeftBorderDoubleInnerBox,ye.bottomLeftPaddingBox,ye.topLeftBorderDoubleInnerBox,ye.topLeftPaddingBox)}},wc=function(ye,Ne){switch(Ne){case 0:return Pu(ye.topLeftBorderStroke,ye.topRightBorderStroke);case 1:return Pu(ye.topRightBorderStroke,ye.bottomRightBorderStroke);case 2:return Pu(ye.bottomRightBorderStroke,ye.bottomLeftBorderStroke);case 3:default:return Pu(ye.bottomLeftBorderStroke,ye.topLeftBorderStroke)}},Pu=function(ye,Ne){var We=[];return El(ye)?We.push(ye.subdivide(.5,!1)):We.push(ye),El(Ne)?We.push(Ne.subdivide(.5,!0)):We.push(Ne),We},Cu=function(ye,Ne,We,dt){var gr=[];return El(ye)?gr.push(ye.subdivide(.5,!1)):gr.push(ye),El(We)?gr.push(We.subdivide(.5,!0)):gr.push(We),El(dt)?gr.push(dt.subdivide(.5,!0).reverse()):gr.push(dt),El(Ne)?gr.push(Ne.subdivide(.5,!1).reverse()):gr.push(Ne),gr},fc=function(ye){var Ne=ye.bounds,We=ye.styles;return Ne.add(We.borderLeftWidth,We.borderTopWidth,-(We.borderRightWidth+We.borderLeftWidth),-(We.borderTopWidth+We.borderBottomWidth))},lc=function(ye){var Ne=ye.styles,We=ye.bounds,dt=ca(Ne.paddingLeft,We.width),gr=ca(Ne.paddingRight,We.width),an=ca(Ne.paddingTop,We.width),Tn=ca(Ne.paddingBottom,We.width);return We.add(dt+Ne.borderLeftWidth,an+Ne.borderTopWidth,-(Ne.borderRightWidth+Ne.borderLeftWidth+dt+gr),-(Ne.borderTopWidth+Ne.borderBottomWidth+an+Tn))},Sc=function(ye,Ne){return ye===0?Ne.bounds:ye===2?lc(Ne):fc(Ne)},Cc=function(ye,Ne){return ye===0?Ne.bounds:ye===2?lc(Ne):fc(Ne)},Gu=function(ye,Ne,We){var dt=Sc(wu(ye.styles.backgroundOrigin,Ne),ye),gr=Cc(wu(ye.styles.backgroundClip,Ne),ye),an=Fu(wu(ye.styles.backgroundSize,Ne),We,dt),Tn=an[0],jn=an[1],ai=Ji(wu(ye.styles.backgroundPosition,Ne),dt.width-Tn,dt.height-jn),Yi=Ku(wu(ye.styles.backgroundRepeat,Ne),ai,an,dt,gr),Ui=Math.round(dt.left+ai[0]),qi=Math.round(dt.top+ai[1]);return[Yi,Ui,qi,Tn,jn]},Hu=function(ye){return Ln(ye)&&ye.value===Ni.AUTO},Xu=function(ye){return typeof ye=="number"},Fu=function(ye,Ne,We){var dt=Ne[0],gr=Ne[1],an=Ne[2],Tn=ye[0],jn=ye[1];if(!Tn)return[0,0];if(Vi(Tn)&&jn&&Vi(jn))return[ca(Tn,We.width),ca(jn,We.height)];var ai=Xu(an);if(Ln(Tn)&&(Tn.value===Ni.CONTAIN||Tn.value===Ni.COVER)){if(Xu(an)){var Yi=We.width/We.height;return Yi<an!==(Tn.value===Ni.COVER)?[We.width,We.width/an]:[We.height*an,We.height]}return[We.width,We.height]}var Ui=Xu(dt),qi=Xu(gr),Za=Ui||qi;if(Hu(Tn)&&(!jn||Hu(jn))){if(Ui&&qi)return[dt,gr];if(!ai&&!Za)return[We.width,We.height];if(Za&&ai){var eo=Ui?dt:gr*an,po=qi?gr:dt/an;return[eo,po]}var us=Ui?dt:We.width,Yo=qi?gr:We.height;return[us,Yo]}if(ai){var Po=0,$s=0;return Vi(Tn)?Po=ca(Tn,We.width):Vi(jn)&&($s=ca(jn,We.height)),Hu(Tn)?Po=$s*an:(!jn||Hu(jn))&&($s=Po/an),[Po,$s]}var cl=null,zs=null;if(Vi(Tn)?cl=ca(Tn,We.width):jn&&Vi(jn)&&(zs=ca(jn,We.height)),cl!==null&&(!jn||Hu(jn))&&(zs=Ui&&qi?cl/dt*gr:We.height),zs!==null&&Hu(Tn)&&(cl=Ui&&qi?zs/gr*dt:We.width),cl!==null&&zs!==null)return[cl,zs];throw new Error("Unable to calculate background-size for element")},wu=function(ye,Ne){var We=ye[Ne];return typeof We=="undefined"?ye[0]:We},Ku=function(ye,Ne,We,dt,gr){var an=Ne[0],Tn=Ne[1],jn=We[0],ai=We[1];switch(ye){case 2:return[new Ja(Math.round(dt.left),Math.round(dt.top+Tn)),new Ja(Math.round(dt.left+dt.width),Math.round(dt.top+Tn)),new Ja(Math.round(dt.left+dt.width),Math.round(ai+dt.top+Tn)),new Ja(Math.round(dt.left),Math.round(ai+dt.top+Tn))];case 3:return[new Ja(Math.round(dt.left+an),Math.round(dt.top)),new Ja(Math.round(dt.left+an+jn),Math.round(dt.top)),new Ja(Math.round(dt.left+an+jn),Math.round(dt.height+dt.top)),new Ja(Math.round(dt.left+an),Math.round(dt.height+dt.top))];case 1:return[new Ja(Math.round(dt.left+an),Math.round(dt.top+Tn)),new Ja(Math.round(dt.left+an+jn),Math.round(dt.top+Tn)),new Ja(Math.round(dt.left+an+jn),Math.round(dt.top+Tn+ai)),new Ja(Math.round(dt.left+an),Math.round(dt.top+Tn+ai))];default:return[new Ja(Math.round(gr.left),Math.round(gr.top)),new Ja(Math.round(gr.left+gr.width),Math.round(gr.top)),new Ja(Math.round(gr.left+gr.width),Math.round(gr.height+gr.top)),new Ja(Math.round(gr.left),Math.round(gr.height+gr.top))]}},uc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",cc="Hidden Text",xc=function(){function Er(ye){this._data={},this._document=ye}return Er.prototype.parseMetrics=function(ye,Ne){var We=this._document.createElement("div"),dt=this._document.createElement("img"),gr=this._document.createElement("span"),an=this._document.body;We.style.visibility="hidden",We.style.fontFamily=ye,We.style.fontSize=Ne,We.style.margin="0",We.style.padding="0",We.style.whiteSpace="nowrap",an.appendChild(We),dt.src=uc,dt.width=1,dt.height=1,dt.style.margin="0",dt.style.padding="0",dt.style.verticalAlign="baseline",gr.style.fontFamily=ye,gr.style.fontSize=Ne,gr.style.margin="0",gr.style.padding="0",gr.appendChild(this._document.createTextNode(cc)),We.appendChild(gr),We.appendChild(dt);var Tn=dt.offsetTop-gr.offsetTop+2;We.removeChild(gr),We.appendChild(this._document.createTextNode(cc)),We.style.lineHeight="normal",dt.style.verticalAlign="super";var jn=dt.offsetTop-We.offsetTop+2;return an.removeChild(We),{baseline:Tn,middle:jn}},Er.prototype.getMetrics=function(ye,Ne){var We=ye+" "+Ne;return typeof this._data[We]=="undefined"&&(this._data[We]=this.parseMetrics(ye,Ne)),this._data[We]},Er}(),Ec=function(){function Er(ye,Ne){this.context=ye,this.options=Ne}return Er}(),pc=1e4,mc=function(Er){f(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this;return dt._activeEffects=[],dt.canvas=We.canvas?We.canvas:document.createElement("canvas"),dt.ctx=dt.canvas.getContext("2d"),We.canvas||(dt.canvas.width=Math.floor(We.width*We.scale),dt.canvas.height=Math.floor(We.height*We.scale),dt.canvas.style.width=We.width+"px",dt.canvas.style.height=We.height+"px"),dt.fontMetrics=new xc(document),dt.ctx.scale(dt.options.scale,dt.options.scale),dt.ctx.translate(-We.x,-We.y),dt.ctx.textBaseline="bottom",dt._activeEffects=[],dt.context.logger.debug("Canvas renderer initialized ("+We.width+"x"+We.height+") with scale "+We.scale),dt}return ye.prototype.applyEffects=function(Ne){for(var We=this;this._activeEffects.length;)this.popEffect();Ne.forEach(function(dt){return We.applyEffect(dt)})},ye.prototype.applyEffect=function(Ne){this.ctx.save(),Vu(Ne)&&(this.ctx.globalAlpha=Ne.opacity),Yl(Ne)&&(this.ctx.translate(Ne.offsetX,Ne.offsetY),this.ctx.transform(Ne.matrix[0],Ne.matrix[1],Ne.matrix[2],Ne.matrix[3],Ne.matrix[4],Ne.matrix[5]),this.ctx.translate(-Ne.offsetX,-Ne.offsetY)),Tu(Ne)&&(this.path(Ne.path),this.ctx.clip()),this._activeEffects.push(Ne)},ye.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},ye.prototype.renderStack=function(Ne){return v(this,void 0,void 0,function(){var We;return m(this,function(dt){switch(dt.label){case 0:return We=Ne.element.container.styles,We.isVisible()?[4,this.renderStackContent(Ne)]:[3,2];case 1:dt.sent(),dt.label=2;case 2:return[2]}})})},ye.prototype.renderNode=function(Ne){return v(this,void 0,void 0,function(){return m(this,function(We){switch(We.label){case 0:if(sa(Ne.container.flags,16))debugger;return Ne.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(Ne)]:[3,3];case 1:return We.sent(),[4,this.renderNodeContent(Ne)];case 2:We.sent(),We.label=3;case 3:return[2]}})})},ye.prototype.renderTextWithLetterSpacing=function(Ne,We,dt){var gr=this;if(We===0)this.ctx.fillText(Ne.text,Ne.bounds.left,Ne.bounds.top+dt);else{var an=fu(Ne.text);an.reduce(function(Tn,jn){return gr.ctx.fillText(jn,Tn,Ne.bounds.top+dt),Tn+gr.ctx.measureText(jn).width},Ne.bounds.left)}},ye.prototype.createFontStyle=function(Ne){var We=Ne.fontVariant.filter(function(an){return an==="normal"||an==="small-caps"}).join(""),dt=Nc(Ne.fontFamily).join(", "),gr=rn(Ne.fontSize)?""+Ne.fontSize.number+Ne.fontSize.unit:Ne.fontSize.number+"px";return[[Ne.fontStyle,We,Ne.fontWeight,gr,dt].join(" "),dt,gr]},ye.prototype.renderTextNode=function(Ne,We){return v(this,void 0,void 0,function(){var dt,gr,an,Tn,jn,ai,Yi,Ui,qi=this;return m(this,function(Za){return dt=this.createFontStyle(We),gr=dt[0],an=dt[1],Tn=dt[2],this.ctx.font=gr,this.ctx.direction=We.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",jn=this.fontMetrics.getMetrics(an,Tn),ai=jn.baseline,Yi=jn.middle,Ui=We.paintOrder,Ne.textBounds.forEach(function(eo){Ui.forEach(function(po){switch(po){case 0:qi.ctx.fillStyle=Va(We.color),qi.renderTextWithLetterSpacing(eo,We.letterSpacing,ai);var us=We.textShadow;us.length&&eo.text.trim().length&&(us.slice(0).reverse().forEach(function(Yo){qi.ctx.shadowColor=Va(Yo.color),qi.ctx.shadowOffsetX=Yo.offsetX.number*qi.options.scale,qi.ctx.shadowOffsetY=Yo.offsetY.number*qi.options.scale,qi.ctx.shadowBlur=Yo.blur.number,qi.renderTextWithLetterSpacing(eo,We.letterSpacing,ai)}),qi.ctx.shadowColor="",qi.ctx.shadowOffsetX=0,qi.ctx.shadowOffsetY=0,qi.ctx.shadowBlur=0),We.textDecorationLine.length&&(qi.ctx.fillStyle=Va(We.textDecorationColor||We.color),We.textDecorationLine.forEach(function(Yo){switch(Yo){case 1:qi.ctx.fillRect(eo.bounds.left,Math.round(eo.bounds.top+ai),eo.bounds.width,1);break;case 2:qi.ctx.fillRect(eo.bounds.left,Math.round(eo.bounds.top),eo.bounds.width,1);break;case 3:qi.ctx.fillRect(eo.bounds.left,Math.ceil(eo.bounds.top+Yi),eo.bounds.width,1);break}}));break;case 1:We.webkitTextStrokeWidth&&eo.text.trim().length&&(qi.ctx.strokeStyle=Va(We.webkitTextStrokeColor),qi.ctx.lineWidth=We.webkitTextStrokeWidth,qi.ctx.lineJoin=window.chrome?"miter":"round",qi.ctx.strokeText(eo.text,eo.bounds.left,eo.bounds.top+ai)),qi.ctx.strokeStyle="",qi.ctx.lineWidth=0,qi.ctx.lineJoin="miter";break}})}),[2]})})},ye.prototype.renderReplacedElement=function(Ne,We,dt){if(dt&&Ne.intrinsicWidth>0&&Ne.intrinsicHeight>0){var gr=lc(Ne),an=Uu(We);this.path(an),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(dt,0,0,Ne.intrinsicWidth,Ne.intrinsicHeight,gr.left,gr.top,gr.width,gr.height),this.ctx.restore()}},ye.prototype.renderNodeContent=function(Ne){return v(this,void 0,void 0,function(){var We,dt,gr,an,Tn,jn,ai,ai,Yi,Ui,qi,Za,eo,po,us,Yo,Po,$s,cl,ai,zs,eo,Yo;return m(this,function(Ro){switch(Ro.label){case 0:this.applyEffects(Ne.getEffects(4)),We=Ne.container,dt=Ne.curves,gr=We.styles,an=0,Tn=We.textNodes,Ro.label=1;case 1:return an<Tn.length?(jn=Tn[an],[4,this.renderTextNode(jn,gr)]):[3,4];case 2:Ro.sent(),Ro.label=3;case 3:return an++,[3,1];case 4:if(!(We instanceof ve))return[3,8];Ro.label=5;case 5:return Ro.trys.push([5,7,,8]),[4,this.context.cache.match(We.src)];case 6:return ai=Ro.sent(),this.renderReplacedElement(We,dt,ai),[3,8];case 7:return Ro.sent(),this.context.logger.error("Error loading image "+We.src),[3,8];case 8:if(We instanceof Te&&this.renderReplacedElement(We,dt,We.canvas),!(We instanceof ze))return[3,12];Ro.label=9;case 9:return Ro.trys.push([9,11,,12]),[4,this.context.cache.match(We.svg)];case 10:return ai=Ro.sent(),this.renderReplacedElement(We,dt,ai),[3,12];case 11:return Ro.sent(),this.context.logger.error("Error loading svg "+We.svg.substring(0,255)),[3,12];case 12:return We instanceof Zi&&We.tree?(Yi=new ye(this.context,{scale:this.options.scale,backgroundColor:We.backgroundColor,x:0,y:0,width:We.width,height:We.height}),[4,Yi.render(We.tree)]):[3,14];case 13:Ui=Ro.sent(),We.width&&We.height&&this.ctx.drawImage(Ui,0,0,We.width,We.height,We.bounds.left,We.bounds.top,We.bounds.width,We.bounds.height),Ro.label=14;case 14:if(We instanceof wi&&(qi=Math.min(We.bounds.width,We.bounds.height),We.type===Zr?We.checked&&(this.ctx.save(),this.path([new Ja(We.bounds.left+qi*.39363,We.bounds.top+qi*.79),new Ja(We.bounds.left+qi*.16,We.bounds.top+qi*.5549),new Ja(We.bounds.left+qi*.27347,We.bounds.top+qi*.44071),new Ja(We.bounds.left+qi*.39694,We.bounds.top+qi*.5649),new Ja(We.bounds.left+qi*.72983,We.bounds.top+qi*.23),new Ja(We.bounds.left+qi*.84,We.bounds.top+qi*.34085),new Ja(We.bounds.left+qi*.39363,We.bounds.top+qi*.79)]),this.ctx.fillStyle=Va(Zn),this.ctx.fill(),this.ctx.restore()):We.type===On&&(We.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(We.bounds.left+qi/2,We.bounds.top+qi/2,qi/4,0,Math.PI*2,!0),this.ctx.fillStyle=Va(Zn),this.ctx.fill(),this.ctx.restore()))),_c(We)&&We.value.length){Za=this.createFontStyle(gr),eo=Za[0],po=Za[1],us=this.fontMetrics.getMetrics(eo,po).baseline,this.ctx.font=eo,this.ctx.fillStyle=Va(gr.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ic(We.styles.textAlign),Yo=lc(We),Po=0;switch(We.styles.textAlign){case 1:Po+=Yo.width/2;break;case 2:Po+=Yo.width;break}$s=Yo.add(Po,0,0,-Yo.height/2+1),this.ctx.save(),this.path([new Ja(Yo.left,Yo.top),new Ja(Yo.left+Yo.width,Yo.top),new Ja(Yo.left+Yo.width,Yo.top+Yo.height),new Ja(Yo.left,Yo.top+Yo.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Dl(We.value,$s),gr.letterSpacing,us),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!sa(We.styles.display,2048))return[3,20];if(!(We.styles.listStyleImage!==null))return[3,19];if(cl=We.styles.listStyleImage,!(cl.type===0))return[3,18];ai=void 0,zs=cl.url,Ro.label=15;case 15:return Ro.trys.push([15,17,,18]),[4,this.context.cache.match(zs)];case 16:return ai=Ro.sent(),this.ctx.drawImage(ai,We.bounds.left-(ai.width+10),We.bounds.top),[3,18];case 17:return Ro.sent(),this.context.logger.error("Error loading list-style-image "+zs),[3,18];case 18:return[3,20];case 19:Ne.listValue&&We.styles.listStyleType!==-1&&(eo=this.createFontStyle(gr)[0],this.ctx.font=eo,this.ctx.fillStyle=Va(gr.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Yo=new d(We.bounds.left,We.bounds.top+ca(We.styles.paddingTop,We.bounds.width),We.bounds.width,zo(gr.lineHeight,gr.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Dl(Ne.listValue,Yo),gr.letterSpacing,zo(gr.lineHeight,gr.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Ro.label=20;case 20:return[2]}})})},ye.prototype.renderStackContent=function(Ne){return v(this,void 0,void 0,function(){var We,dt,gr,an,Tn,gr,jn,ai,gr,Yi,Ui,gr,qi,Za,gr,eo,po,gr,us,Yo,gr;return m(this,function(Po){switch(Po.label){case 0:if(sa(Ne.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(Ne.element)];case 1:Po.sent(),We=0,dt=Ne.negativeZIndex,Po.label=2;case 2:return We<dt.length?(gr=dt[We],[4,this.renderStack(gr)]):[3,5];case 3:Po.sent(),Po.label=4;case 4:return We++,[3,2];case 5:return[4,this.renderNodeContent(Ne.element)];case 6:Po.sent(),an=0,Tn=Ne.nonInlineLevel,Po.label=7;case 7:return an<Tn.length?(gr=Tn[an],[4,this.renderNode(gr)]):[3,10];case 8:Po.sent(),Po.label=9;case 9:return an++,[3,7];case 10:jn=0,ai=Ne.nonPositionedFloats,Po.label=11;case 11:return jn<ai.length?(gr=ai[jn],[4,this.renderStack(gr)]):[3,14];case 12:Po.sent(),Po.label=13;case 13:return jn++,[3,11];case 14:Yi=0,Ui=Ne.nonPositionedInlineLevel,Po.label=15;case 15:return Yi<Ui.length?(gr=Ui[Yi],[4,this.renderStack(gr)]):[3,18];case 16:Po.sent(),Po.label=17;case 17:return Yi++,[3,15];case 18:qi=0,Za=Ne.inlineLevel,Po.label=19;case 19:return qi<Za.length?(gr=Za[qi],[4,this.renderNode(gr)]):[3,22];case 20:Po.sent(),Po.label=21;case 21:return qi++,[3,19];case 22:eo=0,po=Ne.zeroOrAutoZIndexOrTransformedOrOpacity,Po.label=23;case 23:return eo<po.length?(gr=po[eo],[4,this.renderStack(gr)]):[3,26];case 24:Po.sent(),Po.label=25;case 25:return eo++,[3,23];case 26:us=0,Yo=Ne.positiveZIndex,Po.label=27;case 27:return us<Yo.length?(gr=Yo[us],[4,this.renderStack(gr)]):[3,30];case 28:Po.sent(),Po.label=29;case 29:return us++,[3,27];case 30:return[2]}})})},ye.prototype.mask=function(Ne){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(Ne.slice(0).reverse()),this.ctx.closePath()},ye.prototype.path=function(Ne){this.ctx.beginPath(),this.formatPath(Ne),this.ctx.closePath()},ye.prototype.formatPath=function(Ne){var We=this;Ne.forEach(function(dt,gr){var an=El(dt)?dt.start:dt;gr===0?We.ctx.moveTo(an.x,an.y):We.ctx.lineTo(an.x,an.y),El(dt)&&We.ctx.bezierCurveTo(dt.startControl.x,dt.startControl.y,dt.endControl.x,dt.endControl.y,dt.end.x,dt.end.y)})},ye.prototype.renderRepeat=function(Ne,We,dt,gr){this.path(Ne),this.ctx.fillStyle=We,this.ctx.translate(dt,gr),this.ctx.fill(),this.ctx.translate(-dt,-gr)},ye.prototype.resizeImage=function(Ne,We,dt){var gr;if(Ne.width===We&&Ne.height===dt)return Ne;var an=(gr=this.canvas.ownerDocument)!==null&&gr!==void 0?gr:document,Tn=an.createElement("canvas");Tn.width=Math.max(1,We),Tn.height=Math.max(1,dt);var jn=Tn.getContext("2d");return jn.drawImage(Ne,0,0,Ne.width,Ne.height,0,0,We,dt),Tn},ye.prototype.renderBackgroundImage=function(Ne){return v(this,void 0,void 0,function(){var We,dt,gr,an,Tn,jn;return m(this,function(ai){switch(ai.label){case 0:We=Ne.styles.backgroundImage.length-1,dt=function(Ui){var qi,Za,eo,po,us,Yo,Po,$s,cl,zs,po,us,Yo,Po,$s,Ro,Al,bl,Vs,_u,Mu,Ou,eu,rc,cl,Wu,po,Zu,$u,Po,$s,qu,us,Yo,nc,zu,ec,ic,ac,Yu,oc,Qu;return m(this,function(dc){switch(dc.label){case 0:if(!(Ui.type===0))return[3,5];qi=void 0,Za=Ui.url,dc.label=1;case 1:return dc.trys.push([1,3,,4]),[4,gr.context.cache.match(Za)];case 2:return qi=dc.sent(),[3,4];case 3:return dc.sent(),gr.context.logger.error("Error loading background-image "+Za),[3,4];case 4:return qi&&(eo=Gu(Ne,We,[qi.width,qi.height,qi.width/qi.height]),po=eo[0],us=eo[1],Yo=eo[2],Po=eo[3],$s=eo[4],cl=gr.ctx.createPattern(gr.resizeImage(qi,Po,$s),"repeat"),gr.renderRepeat(po,cl,us,Yo)),[3,6];case 5:Xr(Ui)?(zs=Gu(Ne,We,[null,null,null]),po=zs[0],us=zs[1],Yo=zs[2],Po=zs[3],$s=zs[4],Ro=ts(Ui.angle,Po,$s),Al=Ro[0],bl=Ro[1],Vs=Ro[2],_u=Ro[3],Mu=Ro[4],Ou=document.createElement("canvas"),Ou.width=Po,Ou.height=$s,eu=Ou.getContext("2d"),rc=eu.createLinearGradient(bl,_u,Vs,Mu),Uo(Ui.stops,Al).forEach(function(gc){return rc.addColorStop(gc.stop,Va(gc.color))}),eu.fillStyle=rc,eu.fillRect(0,0,Po,$s),Po>0&&$s>0&&(cl=gr.ctx.createPattern(Ou,"repeat"),gr.renderRepeat(po,cl,us,Yo))):ii(Ui)&&(Wu=Gu(Ne,We,[null,null,null]),po=Wu[0],Zu=Wu[1],$u=Wu[2],Po=Wu[3],$s=Wu[4],qu=Ui.position.length===0?[zi]:Ui.position,us=ca(qu[0],Po),Yo=ca(qu[qu.length-1],$s),nc=Io(Ui,us,Yo,Po,$s),zu=nc[0],ec=nc[1],zu>0&&ec>0&&(ic=gr.ctx.createRadialGradient(Zu+us,$u+Yo,0,Zu+us,$u+Yo,zu),Uo(Ui.stops,zu*2).forEach(function(gc){return ic.addColorStop(gc.stop,Va(gc.color))}),gr.path(po),gr.ctx.fillStyle=ic,zu!==ec?(ac=Ne.bounds.left+.5*Ne.bounds.width,Yu=Ne.bounds.top+.5*Ne.bounds.height,oc=ec/zu,Qu=1/oc,gr.ctx.save(),gr.ctx.translate(ac,Yu),gr.ctx.transform(1,0,0,oc,0,0),gr.ctx.translate(-ac,-Yu),gr.ctx.fillRect(Zu,Qu*($u-Yu)+Yu,Po,$s*Qu),gr.ctx.restore()):gr.ctx.fill())),dc.label=6;case 6:return We--,[2]}})},gr=this,an=0,Tn=Ne.styles.backgroundImage.slice(0).reverse(),ai.label=1;case 1:return an<Tn.length?(jn=Tn[an],[5,dt(jn)]):[3,4];case 2:ai.sent(),ai.label=3;case 3:return an++,[3,1];case 4:return[2]}})})},ye.prototype.renderSolidBorder=function(Ne,We,dt){return v(this,void 0,void 0,function(){return m(this,function(gr){return this.path(hc(dt,We)),this.ctx.fillStyle=Va(Ne),this.ctx.fill(),[2]})})},ye.prototype.renderDoubleBorder=function(Ne,We,dt,gr){return v(this,void 0,void 0,function(){var an,Tn;return m(this,function(jn){switch(jn.label){case 0:return We<3?[4,this.renderSolidBorder(Ne,dt,gr)]:[3,2];case 1:return jn.sent(),[2];case 2:return an=bc(gr,dt),this.path(an),this.ctx.fillStyle=Va(Ne),this.ctx.fill(),Tn=Tc(gr,dt),this.path(Tn),this.ctx.fill(),[2]}})})},ye.prototype.renderNodeBackgroundAndBorders=function(Ne){return v(this,void 0,void 0,function(){var We,dt,gr,an,Tn,jn,ai,Yi,Ui=this;return m(this,function(qi){switch(qi.label){case 0:return this.applyEffects(Ne.getEffects(2)),We=Ne.container.styles,dt=!_a(We.backgroundColor)||We.backgroundImage.length,gr=[{style:We.borderTopStyle,color:We.borderTopColor,width:We.borderTopWidth},{style:We.borderRightStyle,color:We.borderRightColor,width:We.borderRightWidth},{style:We.borderBottomStyle,color:We.borderBottomColor,width:We.borderBottomWidth},{style:We.borderLeftStyle,color:We.borderLeftColor,width:We.borderLeftWidth}],an=Oc(wu(We.backgroundClip,0),Ne.curves),dt||We.boxShadow.length?(this.ctx.save(),this.path(an),this.ctx.clip(),_a(We.backgroundColor)||(this.ctx.fillStyle=Va(We.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Ne.container)]):[3,2];case 1:qi.sent(),this.ctx.restore(),We.boxShadow.slice(0).reverse().forEach(function(Za){Ui.ctx.save();var eo=lu(Ne.curves),po=Za.inset?0:pc,us=vc(eo,-po+(Za.inset?1:-1)*Za.spread.number,(Za.inset?1:-1)*Za.spread.number,Za.spread.number*(Za.inset?-2:2),Za.spread.number*(Za.inset?-2:2));Za.inset?(Ui.path(eo),Ui.ctx.clip(),Ui.mask(us)):(Ui.mask(eo),Ui.ctx.clip(),Ui.path(us)),Ui.ctx.shadowOffsetX=Za.offsetX.number+po,Ui.ctx.shadowOffsetY=Za.offsetY.number,Ui.ctx.shadowColor=Va(Za.color),Ui.ctx.shadowBlur=Za.blur.number,Ui.ctx.fillStyle=Za.inset?Va(Za.color):"rgba(0,0,0,1)",Ui.ctx.fill(),Ui.ctx.restore()}),qi.label=2;case 2:Tn=0,jn=0,ai=gr,qi.label=3;case 3:return jn<ai.length?(Yi=ai[jn],Yi.style!==0&&!_a(Yi.color)&&Yi.width>0?Yi.style===2?[4,this.renderDashedDottedBorder(Yi.color,Yi.width,Tn,Ne.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return qi.sent(),[3,11];case 5:return Yi.style===3?[4,this.renderDashedDottedBorder(Yi.color,Yi.width,Tn,Ne.curves,3)]:[3,7];case 6:return qi.sent(),[3,11];case 7:return Yi.style===4?[4,this.renderDoubleBorder(Yi.color,Yi.width,Tn,Ne.curves)]:[3,9];case 8:return qi.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Yi.color,Tn,Ne.curves)];case 10:qi.sent(),qi.label=11;case 11:Tn++,qi.label=12;case 12:return jn++,[3,3];case 13:return[2]}})})},ye.prototype.renderDashedDottedBorder=function(Ne,We,dt,gr,an){return v(this,void 0,void 0,function(){var Tn,jn,ai,Yi,Ui,qi,Za,eo,po,us,Yo,Po,$s,cl,zs,Ro,zs,Ro;return m(this,function(Al){return this.ctx.save(),Tn=wc(gr,dt),jn=hc(gr,dt),an===2&&(this.path(jn),this.ctx.clip()),El(jn[0])?(ai=jn[0].start.x,Yi=jn[0].start.y):(ai=jn[0].x,Yi=jn[0].y),El(jn[1])?(Ui=jn[1].end.x,qi=jn[1].end.y):(Ui=jn[1].x,qi=jn[1].y),dt===0||dt===2?Za=Math.abs(ai-Ui):Za=Math.abs(Yi-qi),this.ctx.beginPath(),an===3?this.formatPath(Tn):this.formatPath(jn.slice(0,2)),eo=We<3?We*3:We*2,po=We<3?We*2:We,an===3&&(eo=We,po=We),us=!0,Za<=eo*2?us=!1:Za<=eo*2+po?(Yo=Za/(2*eo+po),eo*=Yo,po*=Yo):(Po=Math.floor((Za+po)/(eo+po)),$s=(Za-Po*eo)/(Po-1),cl=(Za-(Po+1)*eo)/Po,po=cl<=0||Math.abs(po-$s)<Math.abs(po-cl)?$s:cl),us&&(an===3?this.ctx.setLineDash([0,eo+po]):this.ctx.setLineDash([eo,po])),an===3?(this.ctx.lineCap="round",this.ctx.lineWidth=We):this.ctx.lineWidth=We*2+1.1,this.ctx.strokeStyle=Va(Ne),this.ctx.stroke(),this.ctx.setLineDash([]),an===2&&(El(jn[0])&&(zs=jn[3],Ro=jn[0],this.ctx.beginPath(),this.formatPath([new Ja(zs.end.x,zs.end.y),new Ja(Ro.start.x,Ro.start.y)]),this.ctx.stroke()),El(jn[1])&&(zs=jn[1],Ro=jn[2],this.ctx.beginPath(),this.formatPath([new Ja(zs.end.x,zs.end.y),new Ja(Ro.start.x,Ro.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},ye.prototype.render=function(Ne){return v(this,void 0,void 0,function(){var We;return m(this,function(dt){switch(dt.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Va(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),We=ju(Ne),[4,this.renderStack(We)];case 1:return dt.sent(),this.applyEffects([]),[2,this.canvas]}})})},ye}(Ec),_c=function(ye){return ye instanceof Gi||ye instanceof ua?!0:ye instanceof wi&&ye.type!==On&&ye.type!==Zr},Oc=function(ye,Ne){switch(ye){case 0:return lu(Ne);case 2:return Kl(Ne);case 1:default:return Uu(Ne)}},Ic=function(ye){switch(ye){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Lc=["-apple-system","system-ui"],Nc=function(ye){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?ye.filter(function(Ne){return Lc.indexOf(Ne)===-1}):ye},Dc=function(Er){f(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this;return dt.canvas=We.canvas?We.canvas:document.createElement("canvas"),dt.ctx=dt.canvas.getContext("2d"),dt.options=We,dt.canvas.width=Math.floor(We.width*We.scale),dt.canvas.height=Math.floor(We.height*We.scale),dt.canvas.style.width=We.width+"px",dt.canvas.style.height=We.height+"px",dt.ctx.scale(dt.options.scale,dt.options.scale),dt.ctx.translate(-We.x,-We.y),dt.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+We.width+"x"+We.height+" at "+We.x+","+We.y+") with scale "+We.scale),dt}return ye.prototype.render=function(Ne){return v(this,void 0,void 0,function(){var We,dt;return m(this,function(gr){switch(gr.label){case 0:return We=xu(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,Ne),[4,Rc(We)];case 1:return dt=gr.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Va(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(dt,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},ye}(Ec),Rc=function(ye){return new Promise(function(Ne,We){var dt=new Image;dt.onload=function(){Ne(dt)},dt.onerror=We,dt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ye))})},kc=function(){function Er(ye){var Ne=ye.id,We=ye.enabled;this.id=Ne,this.enabled=We,this.start=Date.now()}return Er.prototype.debug=function(){for(var ye=[],Ne=0;Ne<arguments.length;Ne++)ye[Ne]=arguments[Ne];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,p([this.id,this.getTime()+"ms"],ye)):this.info.apply(this,ye))},Er.prototype.getTime=function(){return Date.now()-this.start},Er.prototype.info=function(){for(var ye=[],Ne=0;Ne<arguments.length;Ne++)ye[Ne]=arguments[Ne];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,p([this.id,this.getTime()+"ms"],ye)))},Er.prototype.warn=function(){for(var ye=[],Ne=0;Ne<arguments.length;Ne++)ye[Ne]=arguments[Ne];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,p([this.id,this.getTime()+"ms"],ye)):this.info.apply(this,ye))},Er.prototype.error=function(){for(var ye=[],Ne=0;Ne<arguments.length;Ne++)ye[Ne]=arguments[Ne];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,p([this.id,this.getTime()+"ms"],ye)):this.info.apply(this,ye))},Er.instances={},Er}(),Mc=function(){function Er(ye,Ne){var We;this.windowBounds=Ne,this.instanceName="#"+Er.instanceCount++,this.logger=new kc({id:this.instanceName,enabled:ye.logging}),this.cache=(We=ye.cache)!==null&&We!==void 0?We:new Ss(this,ye)}return Er.instanceCount=1,Er}(),Pc=function(ye,Ne){return Ne===void 0&&(Ne={}),Fc(ye,Ne)};typeof window!="undefined"&&Mo.setContext(window);var Fc=function(ye,Ne){return v(void 0,void 0,void 0,function(){var We,dt,gr,an,Tn,jn,ai,Yi,Ui,qi,Za,eo,po,us,Yo,Po,$s,cl,zs,Ro,Al,bl,Al,Vs,_u,Mu,Ou,eu,rc,Wu,Zu,$u,qu,nc,zu,ec,ic,ac,Yu,oc;return m(this,function(Qu){switch(Qu.label){case 0:if(!ye||typeof ye!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(We=ye.ownerDocument,!We)throw new Error("Element is not attached to a Document");if(dt=We.defaultView,!dt)throw new Error("Document is not attached to a Window");return gr={allowTaint:(Vs=Ne.allowTaint)!==null&&Vs!==void 0?Vs:!1,imageTimeout:(_u=Ne.imageTimeout)!==null&&_u!==void 0?_u:15e3,proxy:Ne.proxy,useCORS:(Mu=Ne.useCORS)!==null&&Mu!==void 0?Mu:!1},an=x({logging:(Ou=Ne.logging)!==null&&Ou!==void 0?Ou:!0,cache:Ne.cache},gr),Tn={windowWidth:(eu=Ne.windowWidth)!==null&&eu!==void 0?eu:dt.innerWidth,windowHeight:(rc=Ne.windowHeight)!==null&&rc!==void 0?rc:dt.innerHeight,scrollX:(Wu=Ne.scrollX)!==null&&Wu!==void 0?Wu:dt.pageXOffset,scrollY:(Zu=Ne.scrollY)!==null&&Zu!==void 0?Zu:dt.pageYOffset},jn=new d(Tn.scrollX,Tn.scrollY,Tn.windowWidth,Tn.windowHeight),ai=new Mc(an,jn),Yi=($u=Ne.foreignObjectRendering)!==null&&$u!==void 0?$u:!1,Ui={allowTaint:(qu=Ne.allowTaint)!==null&&qu!==void 0?qu:!1,onclone:Ne.onclone,ignoreElements:Ne.ignoreElements,inlineImages:Yi,copyStyles:Yi},ai.logger.debug("Starting document clone with size "+jn.width+"x"+jn.height+" scrolled to "+-jn.left+","+-jn.top),qi=new me(ai,ye,Ui),Za=qi.clonedReferenceElement,Za?[4,qi.toIFrame(We,jn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return eo=Qu.sent(),po=Br(Za)||Tt(Za)?s(Za.ownerDocument):u(ai,Za),us=po.width,Yo=po.height,Po=po.left,$s=po.top,cl=Bc(ai,Za,Ne.backgroundColor),zs={canvas:Ne.canvas,backgroundColor:cl,scale:(zu=(nc=Ne.scale)!==null&&nc!==void 0?nc:dt.devicePixelRatio)!==null&&zu!==void 0?zu:1,x:((ec=Ne.x)!==null&&ec!==void 0?ec:0)+Po,y:((ic=Ne.y)!==null&&ic!==void 0?ic:0)+$s,width:(ac=Ne.width)!==null&&ac!==void 0?ac:Math.ceil(us),height:(Yu=Ne.height)!==null&&Yu!==void 0?Yu:Math.ceil(Yo)},Yi?(ai.logger.debug("Document cloned, using foreign object rendering"),Al=new Dc(ai,zs),[4,Al.render(Za)]):[3,3];case 2:return Ro=Qu.sent(),[3,5];case 3:return ai.logger.debug("Document cloned, element located at "+Po+","+$s+" with size "+us+"x"+Yo+" using computed rendering"),ai.logger.debug("Starting DOM parsing"),bl=Sa(ai,Za),cl===bl.styles.backgroundColor&&(bl.styles.backgroundColor=So.TRANSPARENT),ai.logger.debug("Starting renderer for element at "+zs.x+","+zs.y+" with size "+zs.width+"x"+zs.height),Al=new mc(ai,zs),[4,Al.render(bl)];case 4:Ro=Qu.sent(),Qu.label=5;case 5:return((oc=Ne.removeContainer)!==null&&oc!==void 0?oc:!0)&&(me.destroy(eo)||ai.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),ai.logger.debug("Finished rendering"),[2,Ro]}})})},Bc=function(ye,Ne,We){var dt=Ne.ownerDocument,gr=dt.documentElement?ao(ye,getComputedStyle(dt.documentElement).backgroundColor):So.TRANSPARENT,an=dt.body?ao(ye,getComputedStyle(dt.body).backgroundColor):So.TRANSPARENT,Tn=typeof We=="string"?ao(ye,We):We===null?So.TRANSPARENT:4294967295;return Ne===dt.documentElement?_a(gr)?_a(an)?Tn:an:gr:Tn};return Pc})},wPhX:function(R,D,n){"use strict";n.d(D,"b",function(){return i}),n.d(D,"a",function(){return t}),n.d(D,"k",function(){return o}),n.d(D,"h",function(){return e}),n.d(D,"i",function(){return l}),n.d(D,"g",function(){return r}),n.d(D,"c",function(){return a}),n.d(D,"d",function(){return c}),n.d(D,"j",function(){return A}),n.d(D,"e",function(){return b}),n.d(D,"f",function(){return S});var y=n("KQm4"),f=n("U8pU"),x=n("Ff2n"),v=n("q1tI"),m=n.n(v),p=n("Kwbf"),d=n("lr6o"),u=.25,s=2;function i(E,C){var _=E.slice(),T=_.indexOf(C);return T>=0&&_.splice(T,1),_}function t(E,C){var _=E.slice();return _.indexOf(C)===-1&&_.push(C),_}function o(E){return E.split("-")}function e(E,C){return"".concat(E,"-").concat(C)}function l(E){return E&&E.type&&E.type.isTreeNode}function r(E,C){var _=[E],T=C[E];function w(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];O.forEach(function(I){var k=I.key,M=I.children;_.push(k),w(M)})}return w(T.children),_}function a(E,C){var _=E.clientY,T=C.selectHandle.getBoundingClientRect(),w=T.top,O=T.bottom,I=T.height,k=Math.max(I*u,s);return _<=w+k?-1:_>=O-k?1:0}function c(E,C){if(!E)return;var _=C.multiple;return _?E.slice():E.length?[E[0]]:E}var h=function(C){return C};function g(E,C){if(!E)return[];var _=C||{},T=_.processProps,w=T===void 0?h:T,O=Array.isArray(E)?E:[E];return O.map(function(I){var k=I.children,M=Object(x.a)(I,["children"]),j=g(k,C);return m.a.createElement(d.a,Object.assign({},w(M)),j)})}function A(E){if(!E)return null;var C;if(Array.isArray(E))C={checkedKeys:E,halfCheckedKeys:void 0};else if(Object(f.a)(E)==="object")C={checkedKeys:E.checked||void 0,halfCheckedKeys:E.halfChecked||void 0};else return Object(p.a)(!1,"`checkedKeys` is not an array or an object"),null;return C}function b(E,C){var _=new Set;function T(w){if(_.has(w))return;var O=C[w];if(!O)return;_.add(w);var I=O.parent,k=O.node;if(k.disabled)return;I&&T(I.key)}return(E||[]).forEach(function(w){T(w)}),Object(y.a)(_)}function S(E){var C={};return Object.keys(E).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(C[_]=E[_])}),C}},wXyp:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("ygfH")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="CheckOutlined";var i=v.forwardRef(s);D.default=i},wYyv:function(R,D,n){"use strict";var y=n("R5yR"),f=n("5wUe"),x=function(p,d,u){var s=d<0?p.length+d:d;if(s>=0&&s<p.length){var i=u<0?p.length+u:u,t=p.splice(d,1),o=f(t,1),e=o[0];p.splice(i,0,e)}},v=function(p,d,u){return p=y(p),x(p,d,u),p};R.exports=v,R.exports.mutate=x},wZgz:function(R,D,n){(function(y,f,x){R.exports=D=f(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var f=y,x=f.lib,v=x.BlockCipher,m=f.algo,p=[],d=[],u=[],s=[],i=[],t=[],o=[],e=[],l=[],r=[];(function(){for(var h=[],g=0;g<256;g++)g<128?h[g]=g<<1:h[g]=g<<1^283;for(var A=0,b=0,g=0;g<256;g++){var S=b^b<<1^b<<2^b<<3^b<<4;S=S>>>8^S&255^99,p[A]=S,d[S]=A;var E=h[A],C=h[E],_=h[C],T=h[S]*257^S*16843008;u[A]=T<<24|T>>>8,s[A]=T<<16|T>>>16,i[A]=T<<8|T>>>24,t[A]=T;var T=_*16843009^C*65537^E*257^A*16843008;o[S]=T<<24|T>>>8,e[S]=T<<16|T>>>16,l[S]=T<<8|T>>>24,r[S]=T,A?(A=E^h[h[h[_^E]]],b^=h[h[b]]):A=b=1}})();var a=[0,1,2,4,8,16,32,64,128,27,54],c=m.AES=v.extend({_doReset:function(){var g;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var A=this._keyPriorReset=this._key,b=A.words,S=A.sigBytes/4,E=this._nRounds=S+6,C=(E+1)*4,_=this._keySchedule=[],T=0;T<C;T++)T<S?_[T]=b[T]:(g=_[T-1],T%S?S>6&&T%S==4&&(g=p[g>>>24]<<24|p[g>>>16&255]<<16|p[g>>>8&255]<<8|p[g&255]):(g=g<<8|g>>>24,g=p[g>>>24]<<24|p[g>>>16&255]<<16|p[g>>>8&255]<<8|p[g&255],g^=a[T/S|0]<<24),_[T]=_[T-S]^g);for(var w=this._invKeySchedule=[],O=0;O<C;O++){var T=C-O;if(O%4)var g=_[T];else var g=_[T-4];O<4||T<=4?w[O]=g:w[O]=o[p[g>>>24]]^e[p[g>>>16&255]]^l[p[g>>>8&255]]^r[p[g&255]]}},encryptBlock:function(g,A){this._doCryptBlock(g,A,this._keySchedule,u,s,i,t,p)},decryptBlock:function(g,A){var b=g[A+1];g[A+1]=g[A+3],g[A+3]=b,this._doCryptBlock(g,A,this._invKeySchedule,o,e,l,r,d);var b=g[A+1];g[A+1]=g[A+3],g[A+3]=b},_doCryptBlock:function(g,A,b,S,E,C,_,T){for(var w=this._nRounds,O=g[A]^b[0],I=g[A+1]^b[1],k=g[A+2]^b[2],M=g[A+3]^b[3],j=4,P=1;P<w;P++){var X=S[O>>>24]^E[I>>>16&255]^C[k>>>8&255]^_[M&255]^b[j++],F=S[I>>>24]^E[k>>>16&255]^C[M>>>8&255]^_[O&255]^b[j++],U=S[k>>>24]^E[M>>>16&255]^C[O>>>8&255]^_[I&255]^b[j++],K=S[M>>>24]^E[O>>>16&255]^C[I>>>8&255]^_[k&255]^b[j++];O=X,I=F,k=U,M=K}var X=(T[O>>>24]<<24|T[I>>>16&255]<<16|T[k>>>8&255]<<8|T[M&255])^b[j++],F=(T[I>>>24]<<24|T[k>>>16&255]<<16|T[M>>>8&255]<<8|T[O&255])^b[j++],U=(T[k>>>24]<<24|T[M>>>16&255]<<16|T[O>>>8&255]<<8|T[I&255])^b[j++],K=(T[M>>>24]<<24|T[O>>>16&255]<<16|T[I>>>8&255]<<8|T[k&255])^b[j++];g[A]=X,g[A+1]=F,g[A+2]=U,g[A+3]=K},keySize:256/32});f.AES=v._createHelper(c)}(),y.AES})},wbyO:function(R,D,n){(function(y,f){R.exports=D=f(n("Ib8C"))})(this,function(y){return function(){var f=y,x=f.lib,v=x.WordArray,m=f.enc,p=m.Base64url={stringify:function(s){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=s.words,o=s.sigBytes,e=i?this._safe_map:this._map;s.clamp();for(var l=[],r=0;r<o;r+=3)for(var a=t[r>>>2]>>>24-r%4*8&255,c=t[r+1>>>2]>>>24-(r+1)%4*8&255,h=t[r+2>>>2]>>>24-(r+2)%4*8&255,g=a<<16|c<<8|h,A=0;A<4&&r+A*.75<o;A++)l.push(e.charAt(g>>>6*(3-A)&63));var b=e.charAt(64);if(b)for(;l.length%4;)l.push(b);return l.join("")},parse:function(s){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=s.length,o=i?this._safe_map:this._map,e=this._reverseMap;if(!e){e=this._reverseMap=[];for(var l=0;l<o.length;l++)e[o.charCodeAt(l)]=l}var r=o.charAt(64);if(r){var a=s.indexOf(r);a!==-1&&(t=a)}return d(s,t,e)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function d(u,s,i){for(var t=[],o=0,e=0;e<s;e++)if(e%4){var l=i[u.charCodeAt(e-1)]<<e%4*2,r=i[u.charCodeAt(e)]>>>6-e%4*2,a=l|r;t[o>>>2]|=a<<24-o%4*8,o++}return v.create(t,o)}}(),y.enc.Base64url})},wgjA:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};D.default=y},whJP:function(R,D,n){"use strict";var y=n("pVnL"),f=n.n(y),x=n("lSNA"),v=n.n(x),m=n("lwsE"),p=n.n(m),d=n("W8MJ"),u=n.n(d),s=n("7W2i"),i=n.n(s),t=n("LQ03"),o=n.n(t),e=n("q1tI"),l=n.n(e),r=n("Y1PL"),a=n("BGR+"),c=n("TSYQ"),h=n.n(c),g=n("LlR5"),A=n("H84U"),b=n("mh/l"),S=function(E){i()(_,E);var C=o()(_);function _(T){var w;p()(this,_),w=C.call(this,T),w.focus=function(){w.resizableTextArea.textArea.focus()},w.saveTextArea=function(I){w.resizableTextArea=I==null?void 0:I.resizableTextArea},w.saveClearableInput=function(I){w.clearableInput=I},w.handleChange=function(I){w.setValue(I.target.value),Object(b.d)(w.resizableTextArea.textArea,I,w.props.onChange)},w.handleReset=function(I){w.setValue("",function(){w.focus()}),Object(b.d)(w.resizableTextArea.textArea,I,w.props.onChange)},w.renderTextArea=function(I,k){return e.createElement(r.default,f()({},Object(a.default)(w.props,["allowClear","bordered"]),{className:h()(w.props.className,v()({},"".concat(I,"-borderless"),!k)),prefixCls:I,onChange:w.handleChange,ref:w.saveTextArea}))},w.renderComponent=function(I){var k=I.getPrefixCls,M=I.direction,j=w.state.value,P=w.props,X=P.prefixCls,F=P.bordered,U=F===void 0?!0:F,K=k("input",X);return e.createElement(g.a,f()({},w.props,{prefixCls:K,direction:M,inputType:"text",value:Object(b.b)(j),element:w.renderTextArea(K,U),handleReset:w.handleReset,ref:w.saveClearableInput,triggerFocus:w.focus,bordered:U}))};var O=typeof T.value=="undefined"?T.defaultValue:T.value;return w.state={value:O},w}return u()(_,[{key:"setValue",value:function(w,O){this.props.value===void 0&&this.setState({value:w},O)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return e.createElement(A.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(w){return w.value!==void 0?{value:w.value}:null}}]),_}(e.Component);D.a=S},whVF:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("lNSK"),f=x(n("1q3G"));function x(u){return u&&u.__esModule?u:{default:u}}function v(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function m(u,s){for(var i=0;i<s.length;i++){var t=s[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}function p(u,s,i){return s&&m(u.prototype,s),i&&m(u,i),u}var d=function(){function u(){v(this,u),this.strm=new f.default,this.chunkSize=1024*10*10,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,(0,y.deflateInit)(this.strm,this.windowBits)}return p(u,[{key:"deflate",value:function(i){this.strm.input=i,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0,this.strm.output=this.outputBuffer,this.strm.avail_out=this.chunkSize,this.strm.next_out=0;var t=(0,y.deflate)(this.strm,y.Z_FULL_FLUSH),o=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);if(t<0)throw new Error("zlib deflate failed");if(this.strm.avail_in>0){var e=[o],l=o.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,t=(0,y.deflate)(this.strm,y.Z_FULL_FLUSH),t<0)throw new Error("zlib deflate failed");var r=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);l+=r.length,e.push(r)}while(this.strm.avail_in>0);for(var a=new Uint8Array(l),c=0,h=0;h<e.length;h++)a.set(e[h],c),c+=e[h].length;o=a}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,o}}]),u}();D.default=d},wr5s:function(R,D,n){var y=n("IwbS"),f=y.extendShape,x=f({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(v,m){var p=m.cx,d=m.cy,u=Math.max(m.r0||0,0),s=Math.max(m.r,0),i=(s-u)*.5,t=u+i,o=m.startAngle,e=m.endAngle,l=m.clockwise,r=Math.cos(o),a=Math.sin(o),c=Math.cos(e),h=Math.sin(e),g=l?e-o<Math.PI*2:o-e<Math.PI*2;g&&(v.moveTo(r*u+p,a*u+d),v.arc(r*t+p,a*t+d,i,-Math.PI+o,o,!l)),v.arc(p,d,s,o,e,!l),v.moveTo(c*s+p,h*s+d),v.arc(c*t+p,h*t+d,i,e-Math.PI*2,e-Math.PI,!l),u!==0&&(v.arc(p,d,u,e,o,l),v.moveTo(r*u+p,h*u+d)),v.closePath()}});R.exports=x},wt3j:function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("/IIm"),v=n("EMyp"),m=v.layoutCovers,p=y.extendComponentView({type:"brush",init:function(u,s){this.ecModel=u,this.api=s,this.model,(this._brushController=new x(s.getZr())).on("brush",f.bind(this._onBrush,this)).mount()},render:function(u){return this.model=u,d.apply(this,arguments)},updateTransform:function(u,s){return m(s),d.apply(this,arguments)},updateView:d,dispose:function(){this._brushController.dispose()},_onBrush:function(u,s){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(u,this.ecModel),(!s.isEnd||s.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:f.clone(u),$from:i}),s.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:f.clone(u),$from:i})}});function d(u,s,i,t){(!t||t.$from!==u.id)&&this._brushController.setPanels(u.brushTargetManager.makePanelOpts(i)).enableBrush(u.brushOption).updateCovers(u.areas.slice())}R.exports=p},x3X8:function(R,D,n){var y=n("KxfA"),f=y.retrieveRawValue;function x(v,m){var p=v.mapDimension("defaultedLabel",!0),d=p.length;if(d===1)return f(v,m,p[0]);if(d){for(var u=[],s=0;s<p.length;s++){var i=f(v,m,p[s]);u.push(i)}return u.join(" ")}}D.getDefaultLabel=x},x54q:function(R,D,n){},x6Kt:function(R,D,n){var y=n("y+Vt"),f=n("VpOo"),x=n("nPnh"),v=x.subPixelOptimizeRect,m={},p=y.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(u,s){var i,t,o,e;this.subPixelOptimize?(v(m,s,this.style),i=m.x,t=m.y,o=m.width,e=m.height,m.r=s.r,s=m):(i=s.x,t=s.y,o=s.width,e=s.height),s.r?f.buildPath(u,s):u.rect(i,t,o,e),u.closePath();return}});R.exports=p},xGfz:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="PlusSquareOutlined";var d=D.a=f.forwardRef(p)},xKMd:function(R,D){function n(f,x){this.getAllNames=function(){var v=x();return v.mapArray(v.getName)},this.containName=function(v){var m=x();return m.indexOfName(v)>=0},this.indexOfName=function(v){var m=f();return m.indexOfName(v)},this.getItemVisual=function(v,m){var p=f();return p.getItemVisual(v,m)}}var y=n;R.exports=y},xO64:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=f(n("8K/p"));function f(r){return r&&r.__esModule?r:{default:r}}function x(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(c){return typeof c}:x=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},x(r)}function v(r,a){if(!(r instanceof a))throw new TypeError("Cannot call a class as a function")}function m(r,a){for(var c=0;c<a.length;c++){var h=a[c];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(r,h.key,h)}}function p(r,a,c){return a&&m(r.prototype,a),c&&m(r,c),r}function d(r,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(a&&a.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),a&&u(r,a)}function u(r,a){return u=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},u(r,a)}function s(r){var a=o();return function(){var h=e(r),g;if(a){var A=e(this).constructor;g=Reflect.construct(h,arguments,A)}else g=h.apply(this,arguments);return i(this,g)}}function i(r,a){return a&&(x(a)==="object"||typeof a=="function")?a:t(r)}function t(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function o(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(r){return!1}}function e(r){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},e(r)}var l=function(r){d(c,r);var a=s(c);function c(){return v(this,c),a.apply(this,arguments)}return p(c,[{key:"_pngRect",value:function(g,A,b,S,E,C,_){var T=this._readData(E);return T===null?!1:(C.imageRect(g,A,b,S,"image/png",T),!0)}},{key:"_basicRect",value:function(g,A,b,S,E,C,_,T){throw new Error("BasicCompression received in TightPNG rect")}}]),c}(y.default);D.default=l},xOOu:function(R,D,n){(function(y,f,x){var v,v;/*!
|
|
|
|
|
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
|
<http://stuartk.com/jszip>
|
|
|
|
|
|
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
|
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
|
|
|
|
|
JSZip uses the library pako released under the MIT license :
|
|
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
*/!function(m){R.exports=m()}(function(){return function m(p,d,u){function s(o,e){if(!d[o]){if(!p[o]){var l=typeof v=="function"&&v;if(!e&&l)return v(o,!0);if(i)return i(o,!0);var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r}var a=d[o]={exports:{}};p[o][0].call(a.exports,function(c){var h=p[o][1][c];return s(h||c)},a,a.exports,m,p,d,u)}return d[o].exports}for(var i=typeof v=="function"&&v,t=0;t<u.length;t++)s(u[t]);return s}({1:[function(m,p,d){"use strict";var u=m("./utils"),s=m("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";d.encode=function(t){for(var o,e,l,r,a,c,h,g=[],A=0,b=t.length,S=b,E=u.getTypeOf(t)!=="string";A<t.length;)S=b-A,l=E?(o=t[A++],e=A<b?t[A++]:0,A<b?t[A++]:0):(o=t.charCodeAt(A++),e=A<b?t.charCodeAt(A++):0,A<b?t.charCodeAt(A++):0),r=o>>2,a=(3&o)<<4|e>>4,c=1<S?(15&e)<<2|l>>6:64,h=2<S?63&l:64,g.push(i.charAt(r)+i.charAt(a)+i.charAt(c)+i.charAt(h));return g.join("")},d.decode=function(t){var o,e,l,r,a,c,h=0,g=0,A="data:";if(t.substr(0,A.length)===A)throw new Error("Invalid base64 input, it looks like a data url.");var b,S=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===i.charAt(64)&&S--,t.charAt(t.length-2)===i.charAt(64)&&S--,S%1!=0)throw new Error("Invalid base64 input, bad content length.");for(b=s.uint8array?new Uint8Array(0|S):new Array(0|S);h<t.length;)o=i.indexOf(t.charAt(h++))<<2|(r=i.indexOf(t.charAt(h++)))>>4,e=(15&r)<<4|(a=i.indexOf(t.charAt(h++)))>>2,l=(3&a)<<6|(c=i.indexOf(t.charAt(h++))),b[g++]=o,a!==64&&(b[g++]=e),c!==64&&(b[g++]=l);return b}},{"./support":30,"./utils":32}],2:[function(m,p,d){"use strict";var u=m("./external"),s=m("./stream/DataWorker"),i=m("./stream/Crc32Probe"),t=m("./stream/DataLengthProbe");function o(e,l,r,a,c){this.compressedSize=e,this.uncompressedSize=l,this.crc32=r,this.compression=a,this.compressedContent=c}o.prototype={getContentWorker:function(){var l=new s(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new t("data_length")),r=this;return l.on("end",function(){if(this.streamInfo.data_length!==r.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new s(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,l,r){return e.pipe(new i).pipe(new t("uncompressedSize")).pipe(l.compressWorker(r)).pipe(new t("compressedSize")).withStreamInfo("compression",l)},p.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(m,p,d){"use strict";var u=m("./stream/GenericWorker");d.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},d.DEFLATE=m("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(m,p,d){"use strict";var u=m("./utils"),s=function(){for(var i,t=[],o=0;o<256;o++){i=o;for(var e=0;e<8;e++)i=1&i?3988292384^i>>>1:i>>>1;t[o]=i}return t}();p.exports=function(i,t){return i!==void 0&&i.length?u.getTypeOf(i)!=="string"?function(o,e,l,r){var a=s,c=r+l;o^=-1;for(var h=r;h<c;h++)o=o>>>8^a[255&(o^e[h])];return-1^o}(0|t,i,i.length,0):function(o,e,l,r){var a=s,c=r+l;o^=-1;for(var h=r;h<c;h++)o=o>>>8^a[255&(o^e.charCodeAt(h))];return-1^o}(0|t,i,i.length,0):0}},{"./utils":32}],5:[function(m,p,d){"use strict";d.base64=!1,d.binary=!1,d.dir=!1,d.createFolders=!0,d.date=null,d.compression=null,d.compressionOptions=null,d.comment=null,d.unixPermissions=null,d.dosPermissions=null},{}],6:[function(m,p,d){"use strict";var u=null;u=typeof Promise!="undefined"?Promise:m("lie"),p.exports={Promise:u}},{lie:37}],7:[function(m,p,d){"use strict";var u=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",s=m("pako"),i=m("./utils"),t=m("./stream/GenericWorker"),o=u?"uint8array":"array";function e(l,r){t.call(this,"FlateWorker/"+l),this._pako=null,this._pakoAction=l,this._pakoOptions=r,this.meta={}}d.magic="\b\0",i.inherits(e,t),e.prototype.processChunk=function(l){this.meta=l.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(o,l.data),!1)},e.prototype.flush=function(){t.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},e.prototype.cleanUp=function(){t.prototype.cleanUp.call(this),this._pako=null},e.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var l=this;this._pako.onData=function(r){l.push({data:r,meta:l.meta})}},d.compressWorker=function(l){return new e("Deflate",l)},d.uncompressWorker=function(){return new e("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(m,p,d){"use strict";function u(a,c){var h,g="";for(h=0;h<c;h++)g+=String.fromCharCode(255&a),a>>>=8;return g}function s(a,c,h,g,A,b){var S,E,C=a.file,_=a.compression,T=b!==o.utf8encode,w=i.transformTo("string",b(C.name)),O=i.transformTo("string",o.utf8encode(C.name)),I=C.comment,k=i.transformTo("string",b(I)),M=i.transformTo("string",o.utf8encode(I)),j=O.length!==C.name.length,P=M.length!==I.length,X="",F="",U="",K=C.dir,z=C.date,V={crc32:0,compressedSize:0,uncompressedSize:0};c&&!h||(V.crc32=a.crc32,V.compressedSize=a.compressedSize,V.uncompressedSize=a.uncompressedSize);var Q=0;c&&(Q|=8),T||!j&&!P||(Q|=2048);var G=0,te=0;K&&(G|=16),A==="UNIX"?(te=798,G|=function(se,re){var xe=se;return se||(xe=re?16893:33204),(65535&xe)<<16}(C.unixPermissions,K)):(te=20,G|=function(se){return 63&(se||0)}(C.dosPermissions)),S=z.getUTCHours(),S<<=6,S|=z.getUTCMinutes(),S<<=5,S|=z.getUTCSeconds()/2,E=z.getUTCFullYear()-1980,E<<=4,E|=z.getUTCMonth()+1,E<<=5,E|=z.getUTCDate(),j&&(F=u(1,1)+u(e(w),4)+O,X+="up"+u(F.length,2)+F),P&&(U=u(1,1)+u(e(k),4)+M,X+="uc"+u(U.length,2)+U);var q="";return q+=`
|
|
|
\0`,q+=u(Q,2),q+=_.magic,q+=u(S,2),q+=u(E,2),q+=u(V.crc32,4),q+=u(V.compressedSize,4),q+=u(V.uncompressedSize,4),q+=u(w.length,2),q+=u(X.length,2),{fileRecord:l.LOCAL_FILE_HEADER+q+w+X,dirRecord:l.CENTRAL_FILE_HEADER+u(te,2)+q+u(k.length,2)+"\0\0\0\0"+u(G,4)+u(g,4)+w+X+k}}var i=m("../utils"),t=m("../stream/GenericWorker"),o=m("../utf8"),e=m("../crc32"),l=m("../signature");function r(a,c,h,g){t.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=c,this.zipPlatform=h,this.encodeFileName=g,this.streamFiles=a,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(r,t),r.prototype.push=function(a){var c=a.meta.percent||0,h=this.entriesCount,g=this._sources.length;this.accumulate?this.contentBuffer.push(a):(this.bytesWritten+=a.data.length,t.prototype.push.call(this,{data:a.data,meta:{currentFile:this.currentFile,percent:h?(c+100*(h-g-1))/h:100}}))},r.prototype.openedSource=function(a){this.currentSourceOffset=this.bytesWritten,this.currentFile=a.file.name;var c=this.streamFiles&&!a.file.dir;if(c){var h=s(a,c,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:h.fileRecord,meta:{percent:0}})}else this.accumulate=!0},r.prototype.closedSource=function(a){this.accumulate=!1;var c=this.streamFiles&&!a.file.dir,h=s(a,c,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(h.dirRecord),c)this.push({data:function(g){return l.DATA_DESCRIPTOR+u(g.crc32,4)+u(g.compressedSize,4)+u(g.uncompressedSize,4)}(a),meta:{percent:100}});else for(this.push({data:h.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},r.prototype.flush=function(){for(var a=this.bytesWritten,c=0;c<this.dirRecords.length;c++)this.push({data:this.dirRecords[c],meta:{percent:100}});var h=this.bytesWritten-a,g=function(A,b,S,E,C){var _=i.transformTo("string",C(E));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(A,2)+u(A,2)+u(b,4)+u(S,4)+u(_.length,2)+_}(this.dirRecords.length,h,a,this.zipComment,this.encodeFileName);this.push({data:g,meta:{percent:100}})},r.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},r.prototype.registerPrevious=function(a){this._sources.push(a);var c=this;return a.on("data",function(h){c.processChunk(h)}),a.on("end",function(){c.closedSource(c.previous.streamInfo),c._sources.length?c.prepareNextSource():c.end()}),a.on("error",function(h){c.error(h)}),this},r.prototype.resume=function(){return!!t.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},r.prototype.error=function(a){var c=this._sources;if(!t.prototype.error.call(this,a))return!1;for(var h=0;h<c.length;h++)try{c[h].error(a)}catch(g){}return!0},r.prototype.lock=function(){t.prototype.lock.call(this);for(var a=this._sources,c=0;c<a.length;c++)a[c].lock()},p.exports=r},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(m,p,d){"use strict";var u=m("../compressions"),s=m("./ZipFileWorker");d.generateWorker=function(i,t,o){var e=new s(t.streamFiles,o,t.platform,t.encodeFileName),l=0;try{i.forEach(function(r,a){l++;var c=function(b,S){var E=b||S,C=u[E];if(!C)throw new Error(E+" is not a valid compression method !");return C}(a.options.compression,t.compression),h=a.options.compressionOptions||t.compressionOptions||{},g=a.dir,A=a.date;a._compressWorker(c,h).withStreamInfo("file",{name:r,dir:g,date:A,comment:a.comment||"",unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions}).pipe(e)}),e.entriesCount=l}catch(r){e.error(r)}return e}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(m,p,d){"use strict";function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var s=new u;for(var i in this)typeof this[i]!="function"&&(s[i]=this[i]);return s}}(u.prototype=m("./object")).loadAsync=m("./load"),u.support=m("./support"),u.defaults=m("./defaults"),u.version="3.10.1",u.loadAsync=function(s,i){return new u().loadAsync(s,i)},u.external=m("./external"),p.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(m,p,d){"use strict";var u=m("./utils"),s=m("./external"),i=m("./utf8"),t=m("./zipEntries"),o=m("./stream/Crc32Probe"),e=m("./nodejsUtils");function l(r){return new s.Promise(function(a,c){var h=r.decompressed.getContentWorker().pipe(new o);h.on("error",function(g){c(g)}).on("end",function(){h.streamInfo.crc32!==r.decompressed.crc32?c(new Error("Corrupted zip : CRC32 mismatch")):a()}).resume()})}p.exports=function(r,a){var c=this;return a=u.extend(a||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),e.isNode&&e.isStream(r)?s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",r,!0,a.optimizedBinaryString,a.base64).then(function(h){var g=new t(a);return g.load(h),g}).then(function(h){var g=[s.Promise.resolve(h)],A=h.files;if(a.checkCRC32)for(var b=0;b<A.length;b++)g.push(l(A[b]));return s.Promise.all(g)}).then(function(h){for(var g=h.shift(),A=g.files,b=0;b<A.length;b++){var S=A[b],E=S.fileNameStr,C=u.resolve(S.fileNameStr);c.file(C,S.decompressed,{binary:!0,optimizedBinaryString:!0,date:S.date,dir:S.dir,comment:S.fileCommentStr.length?S.fileCommentStr:null,unixPermissions:S.unixPermissions,dosPermissions:S.dosPermissions,createFolders:a.createFolders}),S.dir||(c.file(C).unsafeOriginalName=E)}return g.zipComment.length&&(c.comment=g.zipComment),c})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(m,p,d){"use strict";var u=m("../utils"),s=m("../stream/GenericWorker");function i(t,o){s.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(o)}u.inherits(i,s),i.prototype._bindStream=function(t){var o=this;(this._stream=t).pause(),t.on("data",function(e){o.push({data:e,meta:{percent:0}})}).on("error",function(e){o.isPaused?this.generatedError=e:o.error(e)}).on("end",function(){o.isPaused?o._upstreamEnded=!0:o.end()})},i.prototype.pause=function(){return!!s.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},p.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(m,p,d){"use strict";var u=m("readable-stream").Readable;function s(i,t,o){u.call(this,t),this._helper=i;var e=this;i.on("data",function(l,r){e.push(l)||e._helper.pause(),o&&o(r)}).on("error",function(l){e.emit("error",l)}).on("end",function(){e.push(null)})}m("../utils").inherits(s,u),s.prototype._read=function(){this._helper.resume()},p.exports=s},{"../utils":32,"readable-stream":16}],14:[function(m,p,d){"use strict";p.exports={isNode:typeof y!="undefined",newBufferFrom:function(s,i){if(y.from&&y.from!==Uint8Array.from)return y.from(s,i);if(typeof s=="number")throw new Error('The "data" argument must not be a number');return new y(s,i)},allocBuffer:function(s){if(y.alloc)return y.alloc(s);var i=new y(s);return i.fill(0),i},isBuffer:function(s){return y.isBuffer(s)},isStream:function(s){return s&&typeof s.on=="function"&&typeof s.pause=="function"&&typeof s.resume=="function"}}},{}],15:[function(m,p,d){"use strict";function u(C,_,T){var w,O=i.getTypeOf(_),I=i.extend(T||{},e);I.date=I.date||new Date,I.compression!==null&&(I.compression=I.compression.toUpperCase()),typeof I.unixPermissions=="string"&&(I.unixPermissions=parseInt(I.unixPermissions,8)),I.unixPermissions&&16384&I.unixPermissions&&(I.dir=!0),I.dosPermissions&&16&I.dosPermissions&&(I.dir=!0),I.dir&&(C=A(C)),I.createFolders&&(w=g(C))&&b.call(this,w,!0);var k=O==="string"&&I.binary===!1&&I.base64===!1;T&&T.binary!==void 0||(I.binary=!k),(_ instanceof l&&_.uncompressedSize===0||I.dir||!_||_.length===0)&&(I.base64=!1,I.binary=!0,_="",I.compression="STORE",O="string");var M=null;M=_ instanceof l||_ instanceof t?_:c.isNode&&c.isStream(_)?new h(C,_):i.prepareContent(C,_,I.binary,I.optimizedBinaryString,I.base64);var j=new r(C,M,I);this.files[C]=j}var s=m("./utf8"),i=m("./utils"),t=m("./stream/GenericWorker"),o=m("./stream/StreamHelper"),e=m("./defaults"),l=m("./compressedObject"),r=m("./zipObject"),a=m("./generate"),c=m("./nodejsUtils"),h=m("./nodejs/NodejsStreamInputAdapter"),g=function(_){_.slice(-1)==="/"&&(_=_.substring(0,_.length-1));var T=_.lastIndexOf("/");return 0<T?_.substring(0,T):""},A=function(_){return _.slice(-1)!=="/"&&(_+="/"),_},b=function(_,T){return T=T!==void 0?T:e.createFolders,_=A(_),this.files[_]||u.call(this,_,null,{dir:!0,createFolders:T}),this.files[_]};function S(C){return Object.prototype.toString.call(C)==="[object RegExp]"}var E={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(_){var T,w,O;for(T in this.files)O=this.files[T],(w=T.slice(this.root.length,T.length))&&T.slice(0,this.root.length)===this.root&&_(w,O)},filter:function(_){var T=[];return this.forEach(function(w,O){_(w,O)&&T.push(O)}),T},file:function(_,T,w){if(arguments.length!==1)return _=this.root+_,u.call(this,_,T,w),this;if(S(_)){var O=_;return this.filter(function(k,M){return!M.dir&&O.test(k)})}var I=this.files[this.root+_];return I&&!I.dir?I:null},folder:function(_){if(!_)return this;if(S(_))return this.filter(function(I,k){return k.dir&&_.test(I)});var T=this.root+_,w=b.call(this,T),O=this.clone();return O.root=w.name,O},remove:function(_){_=this.root+_;var T=this.files[_];if(T||(_.slice(-1)!=="/"&&(_+="/"),T=this.files[_]),T&&!T.dir)delete this.files[_];else for(var w=this.filter(function(I,k){return k.name.slice(0,_.length)===_}),O=0;O<w.length;O++)delete this.files[w[O].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(_){var T,w={};try{if((w=i.extend(_||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode})).type=w.type.toLowerCase(),w.compression=w.compression.toUpperCase(),w.type==="binarystring"&&(w.type="string"),!w.type)throw new Error("No output type specified.");i.checkSupport(w.type),w.platform!=="darwin"&&w.platform!=="freebsd"&&w.platform!=="linux"&&w.platform!=="sunos"||(w.platform="UNIX"),w.platform==="win32"&&(w.platform="DOS");var O=w.comment||this.comment||"";T=a.generateWorker(this,w,O)}catch(I){(T=new t("error")).error(I)}return new o(T,w.type||"string",w.mimeType)},generateAsync:function(_,T){return this.generateInternalStream(_).accumulate(T)},generateNodeStream:function(_,T){return(_=_||{}).type||(_.type="nodebuffer"),this.generateInternalStream(_).toNodejsStream(T)}};p.exports=E},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(m,p,d){"use strict";p.exports=m("stream")},{stream:void 0}],17:[function(m,p,d){"use strict";var u=m("./DataReader");function s(i){u.call(this,i);for(var t=0;t<this.data.length;t++)i[t]=255&i[t]}m("../utils").inherits(s,u),s.prototype.byteAt=function(i){return this.data[this.zero+i]},s.prototype.lastIndexOfSignature=function(i){for(var t=i.charCodeAt(0),o=i.charCodeAt(1),e=i.charCodeAt(2),l=i.charCodeAt(3),r=this.length-4;0<=r;--r)if(this.data[r]===t&&this.data[r+1]===o&&this.data[r+2]===e&&this.data[r+3]===l)return r-this.zero;return-1},s.prototype.readAndCheckSignature=function(i){var t=i.charCodeAt(0),o=i.charCodeAt(1),e=i.charCodeAt(2),l=i.charCodeAt(3),r=this.readData(4);return t===r[0]&&o===r[1]&&e===r[2]&&l===r[3]},s.prototype.readData=function(i){if(this.checkOffset(i),i===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},p.exports=s},{"../utils":32,"./DataReader":18}],18:[function(m,p,d){"use strict";var u=m("../utils");function s(i){this.data=i,this.length=i.length,this.index=0,this.zero=0}s.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var o,e=0;for(this.checkOffset(t),o=this.index+t-1;o>=this.index;o--)e=(e<<8)+this.byteAt(o);return this.index+=t,e},readString:function(t){return u.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},p.exports=s},{"../utils":32}],19:[function(m,p,d){"use strict";var u=m("./Uint8ArrayReader");function s(i){u.call(this,i)}m("../utils").inherits(s,u),s.prototype.readData=function(i){this.checkOffset(i);var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},p.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(m,p,d){"use strict";var u=m("./DataReader");function s(i){u.call(this,i)}m("../utils").inherits(s,u),s.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},s.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},s.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},s.prototype.readData=function(i){this.checkOffset(i);var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},p.exports=s},{"../utils":32,"./DataReader":18}],21:[function(m,p,d){"use strict";var u=m("./ArrayReader");function s(i){u.call(this,i)}m("../utils").inherits(s,u),s.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},p.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(m,p,d){"use strict";var u=m("../utils"),s=m("../support"),i=m("./ArrayReader"),t=m("./StringReader"),o=m("./NodeBufferReader"),e=m("./Uint8ArrayReader");p.exports=function(l){var r=u.getTypeOf(l);return u.checkSupport(r),r!=="string"||s.uint8array?r==="nodebuffer"?new o(l):s.uint8array?new e(u.transformTo("uint8array",l)):new i(u.transformTo("array",l)):new t(l)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(m,p,d){"use strict";d.LOCAL_FILE_HEADER="PK",d.CENTRAL_FILE_HEADER="PK",d.CENTRAL_DIRECTORY_END="PK",d.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",d.ZIP64_CENTRAL_DIRECTORY_END="PK",d.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(m,p,d){"use strict";var u=m("./GenericWorker"),s=m("../utils");function i(t){u.call(this,"ConvertWorker to "+t),this.destType=t}s.inherits(i,u),i.prototype.processChunk=function(t){this.push({data:s.transformTo(this.destType,t.data),meta:t.meta})},p.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(m,p,d){"use strict";var u=m("./GenericWorker"),s=m("../crc32");function i(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}m("../utils").inherits(i,u),i.prototype.processChunk=function(t){this.streamInfo.crc32=s(t.data,this.streamInfo.crc32||0),this.push(t)},p.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(m,p,d){"use strict";var u=m("../utils"),s=m("./GenericWorker");function i(t){s.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}u.inherits(i,s),i.prototype.processChunk=function(t){if(t){var o=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=o+t.data.length}s.prototype.processChunk.call(this,t)},p.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(m,p,d){"use strict";var u=m("../utils"),s=m("./GenericWorker");function i(t){s.call(this,"DataWorker");var o=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(e){o.dataIsReady=!0,o.data=e,o.max=e&&e.length||0,o.type=u.getTypeOf(e),o.isPaused||o._tickAndRepeat()},function(e){o.error(e)})}u.inherits(i,s),i.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,o=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,o);break;case"uint8array":t=this.data.subarray(this.index,o);break;case"array":case"nodebuffer":t=this.data.slice(this.index,o)}return this.index=o,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},p.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(m,p,d){"use strict";function u(s){this.name=s||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(i){this.emit("data",i)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit("error",i)}return!0},error:function(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit("error",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)},on:function(i,t){return this._listeners[i].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(i,t){if(this._listeners[i])for(var o=0;o<this._listeners[i].length;o++)this._listeners[i][o].call(this,t)},pipe:function(i){return i.registerPrevious(this)},registerPrevious:function(i){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=i.streamInfo,this.mergeStreamInfo(),this.previous=i;var t=this;return i.on("data",function(o){t.processChunk(o)}),i.on("end",function(){t.end()}),i.on("error",function(o){t.error(o)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var i=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),i=!0),this.previous&&this.previous.resume(),!i},flush:function(){},processChunk:function(i){this.push(i)},withStreamInfo:function(i,t){return this.extraStreamInfo[i]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var i in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,i)&&(this.streamInfo[i]=this.extraStreamInfo[i])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var i="Worker "+this.name;return this.previous?this.previous+" -> "+i:i}},p.exports=u},{}],29:[function(m,p,d){"use strict";var u=m("../utils"),s=m("./ConvertWorker"),i=m("./GenericWorker"),t=m("../base64"),o=m("../support"),e=m("../external"),l=null;if(o.nodestream)try{l=m("../nodejs/NodejsStreamOutputAdapter")}catch(c){}function r(c,h){return new e.Promise(function(g,A){var b=[],S=c._internalType,E=c._outputType,C=c._mimeType;c.on("data",function(_,T){b.push(_),h&&h(T)}).on("error",function(_){b=[],A(_)}).on("end",function(){try{var _=function(T,w,O){switch(T){case"blob":return u.newBlob(u.transformTo("arraybuffer",w),O);case"base64":return t.encode(w);default:return u.transformTo(T,w)}}(E,function(T,w){var O,I=0,k=null,M=0;for(O=0;O<w.length;O++)M+=w[O].length;switch(T){case"string":return w.join("");case"array":return Array.prototype.concat.apply([],w);case"uint8array":for(k=new Uint8Array(M),O=0;O<w.length;O++)k.set(w[O],I),I+=w[O].length;return k;case"nodebuffer":return y.concat(w);default:throw new Error("concat : unsupported type '"+T+"'")}}(S,b),C);g(_)}catch(T){A(T)}b=[]}).resume()})}function a(c,h,g){var A=h;switch(h){case"blob":case"arraybuffer":A="uint8array";break;case"base64":A="string"}try{this._internalType=A,this._outputType=h,this._mimeType=g,u.checkSupport(A),this._worker=c.pipe(new s(A)),c.lock()}catch(b){this._worker=new i("error"),this._worker.error(b)}}a.prototype={accumulate:function(h){return r(this,h)},on:function(h,g){var A=this;return h==="data"?this._worker.on(h,function(b){g.call(A,b.data,b.meta)}):this._worker.on(h,function(){u.delay(g,arguments,A)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(h){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:this._outputType!=="nodebuffer"},h)}},p.exports=a},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(m,p,d){"use strict";if(d.base64=!0,d.array=!0,d.string=!0,d.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",d.nodebuffer=typeof y!="undefined",d.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")d.blob=!1;else{var u=new ArrayBuffer(0);try{d.blob=new Blob([u],{type:"application/zip"}).size===0}catch(i){try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(u),d.blob=s.getBlob("application/zip").size===0}catch(t){d.blob=!1}}}try{d.nodestream=!!m("readable-stream").Readable}catch(i){d.nodestream=!1}},{"readable-stream":16}],31:[function(m,p,d){"use strict";for(var u=m("./utils"),s=m("./support"),i=m("./nodejsUtils"),t=m("./stream/GenericWorker"),o=new Array(256),e=0;e<256;e++)o[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;o[254]=o[254]=1;function l(){t.call(this,"utf-8 decode"),this.leftOver=null}function r(){t.call(this,"utf-8 encode")}d.utf8encode=function(a){return s.nodebuffer?i.newBufferFrom(a,"utf-8"):function(c){var h,g,A,b,S,E=c.length,C=0;for(b=0;b<E;b++)(64512&(g=c.charCodeAt(b)))==55296&&b+1<E&&(64512&(A=c.charCodeAt(b+1)))==56320&&(g=65536+(g-55296<<10)+(A-56320),b++),C+=g<128?1:g<2048?2:g<65536?3:4;for(h=s.uint8array?new Uint8Array(C):new Array(C),b=S=0;S<C;b++)(64512&(g=c.charCodeAt(b)))==55296&&b+1<E&&(64512&(A=c.charCodeAt(b+1)))==56320&&(g=65536+(g-55296<<10)+(A-56320),b++),g<128?h[S++]=g:(g<2048?h[S++]=192|g>>>6:(g<65536?h[S++]=224|g>>>12:(h[S++]=240|g>>>18,h[S++]=128|g>>>12&63),h[S++]=128|g>>>6&63),h[S++]=128|63&g);return h}(a)},d.utf8decode=function(a){return s.nodebuffer?u.transformTo("nodebuffer",a).toString("utf-8"):function(c){var h,g,A,b,S=c.length,E=new Array(2*S);for(h=g=0;h<S;)if((A=c[h++])<128)E[g++]=A;else if(4<(b=o[A]))E[g++]=65533,h+=b-1;else{for(A&=b===2?31:b===3?15:7;1<b&&h<S;)A=A<<6|63&c[h++],b--;1<b?E[g++]=65533:A<65536?E[g++]=A:(A-=65536,E[g++]=55296|A>>10&1023,E[g++]=56320|1023&A)}return E.length!==g&&(E.subarray?E=E.subarray(0,g):E.length=g),u.applyFromCharCode(E)}(a=u.transformTo(s.uint8array?"uint8array":"array",a))},u.inherits(l,t),l.prototype.processChunk=function(a){var c=u.transformTo(s.uint8array?"uint8array":"array",a.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var h=c;(c=new Uint8Array(h.length+this.leftOver.length)).set(this.leftOver,0),c.set(h,this.leftOver.length)}else c=this.leftOver.concat(c);this.leftOver=null}var g=function(b,S){var E;for((S=S||b.length)>b.length&&(S=b.length),E=S-1;0<=E&&(192&b[E])==128;)E--;return E<0||E===0?S:E+o[b[E]]>S?E:S}(c),A=c;g!==c.length&&(s.uint8array?(A=c.subarray(0,g),this.leftOver=c.subarray(g,c.length)):(A=c.slice(0,g),this.leftOver=c.slice(g,c.length))),this.push({data:d.utf8decode(A),meta:a.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:d.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},d.Utf8DecodeWorker=l,u.inherits(r,t),r.prototype.processChunk=function(a){this.push({data:d.utf8encode(a.data),meta:a.meta})},d.Utf8EncodeWorker=r},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(m,p,d){"use strict";var u=m("./support"),s=m("./base64"),i=m("./nodejsUtils"),t=m("./external");function o(h){return h}function e(h,g){for(var A=0;A<h.length;++A)g[A]=255&h.charCodeAt(A);return g}m("setimmediate"),d.newBlob=function(h,g){d.checkSupport("blob");try{return new Blob([h],{type:g})}catch(b){try{var A=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return A.append(h),A.getBlob(g)}catch(S){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(g,A,b){var S=[],E=0,C=g.length;if(C<=b)return String.fromCharCode.apply(null,g);for(;E<C;)A==="array"||A==="nodebuffer"?S.push(String.fromCharCode.apply(null,g.slice(E,Math.min(E+b,C)))):S.push(String.fromCharCode.apply(null,g.subarray(E,Math.min(E+b,C)))),E+=b;return S.join("")},stringifyByChar:function(g){for(var A="",b=0;b<g.length;b++)A+=String.fromCharCode(g[b]);return A},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(h){return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,i.allocBuffer(1)).length===1}catch(h){return!1}}()}};function r(h){var g=65536,A=d.getTypeOf(h),b=!0;if(A==="uint8array"?b=l.applyCanBeUsed.uint8array:A==="nodebuffer"&&(b=l.applyCanBeUsed.nodebuffer),b)for(;1<g;)try{return l.stringifyByChunk(h,A,g)}catch(S){g=Math.floor(g/2)}return l.stringifyByChar(h)}function a(h,g){for(var A=0;A<h.length;A++)g[A]=h[A];return g}d.applyFromCharCode=r;var c={};c.string={string:o,array:function(g){return e(g,new Array(g.length))},arraybuffer:function(g){return c.string.uint8array(g).buffer},uint8array:function(g){return e(g,new Uint8Array(g.length))},nodebuffer:function(g){return e(g,i.allocBuffer(g.length))}},c.array={string:r,array:o,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return i.newBufferFrom(g)}},c.arraybuffer={string:function(g){return r(new Uint8Array(g))},array:function(g){return a(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:o,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return i.newBufferFrom(new Uint8Array(g))}},c.uint8array={string:r,array:function(g){return a(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:o,nodebuffer:function(g){return i.newBufferFrom(g)}},c.nodebuffer={string:r,array:function(g){return a(g,new Array(g.length))},arraybuffer:function(g){return c.nodebuffer.uint8array(g).buffer},uint8array:function(g){return a(g,new Uint8Array(g.length))},nodebuffer:o},d.transformTo=function(h,g){if(g=g||"",!h)return g;d.checkSupport(h);var A=d.getTypeOf(g);return c[A][h](g)},d.resolve=function(h){for(var g=h.split("/"),A=[],b=0;b<g.length;b++){var S=g[b];S==="."||S===""&&b!==0&&b!==g.length-1||(S===".."?A.pop():A.push(S))}return A.join("/")},d.getTypeOf=function(h){return typeof h=="string"?"string":Object.prototype.toString.call(h)==="[object Array]"?"array":u.nodebuffer&&i.isBuffer(h)?"nodebuffer":u.uint8array&&h instanceof Uint8Array?"uint8array":u.arraybuffer&&h instanceof ArrayBuffer?"arraybuffer":void 0},d.checkSupport=function(h){if(!u[h.toLowerCase()])throw new Error(h+" is not supported by this platform")},d.MAX_VALUE_16BITS=65535,d.MAX_VALUE_32BITS=-1,d.pretty=function(h){var g,A,b="";for(A=0;A<(h||"").length;A++)b+="\\x"+((g=h.charCodeAt(A))<16?"0":"")+g.toString(16).toUpperCase();return b},d.delay=function(h,g,A){setImmediate(function(){h.apply(A||null,g||[])})},d.inherits=function(h,g){function A(){}A.prototype=g.prototype,h.prototype=new A},d.extend=function(){var h,g,A={};for(h=0;h<arguments.length;h++)for(g in arguments[h])Object.prototype.hasOwnProperty.call(arguments[h],g)&&A[g]===void 0&&(A[g]=arguments[h][g]);return A},d.prepareContent=function(h,g,A,b,S){return t.Promise.resolve(g).then(function(E){return u.blob&&(E instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(E))!==-1)&&typeof FileReader!="undefined"?new t.Promise(function(C,_){var T=new FileReader;T.onload=function(w){C(w.target.result)},T.onerror=function(w){_(w.target.error)},T.readAsArrayBuffer(E)}):E}).then(function(E){var C=d.getTypeOf(E);return C?(C==="arraybuffer"?E=d.transformTo("uint8array",E):C==="string"&&(S?E=s.decode(E):A&&b!==!0&&(E=function(_){return e(_,u.uint8array?new Uint8Array(_.length):new Array(_.length))}(E))),E):t.Promise.reject(new Error("Can't read the data of '"+h+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(m,p,d){"use strict";var u=m("./reader/readerFor"),s=m("./utils"),i=m("./signature"),t=m("./zipEntry"),o=m("./support");function e(l){this.files=[],this.loadOptions=l}e.prototype={checkSignature:function(r){if(!this.reader.readAndCheckSignature(r)){this.reader.index-=4;var a=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+s.pretty(a)+", expected "+s.pretty(r)+")")}},isSignature:function(r,a){var c=this.reader.index;this.reader.setIndex(r);var h=this.reader.readString(4)===a;return this.reader.setIndex(c),h},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var r=this.reader.readData(this.zipCommentLength),a=o.uint8array?"uint8array":"array",c=s.transformTo(a,r);this.zipComment=this.loadOptions.decodeFileName(c)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var r,a,c,h=this.zip64EndOfCentralSize-44;0<h;)r=this.reader.readInt(2),a=this.reader.readInt(4),c=this.reader.readData(a),this.zip64ExtensibleData[r]={id:r,length:a,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var r,a;for(r=0;r<this.files.length;r++)a=this.files[r],this.reader.setIndex(a.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),a.readLocalPart(this.reader),a.handleUTF8(),a.processAttributes()},readCentralDir:function(){var r;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(r=new t({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(r);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var r=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(r<0)throw this.isSignature(0,i.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(r);var a=r;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,(r=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(r),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var c=this.centralDirOffset+this.centralDirSize;this.zip64&&(c+=20,c+=12+this.zip64EndOfCentralSize);var h=a-c;if(0<h)this.isSignature(a,i.CENTRAL_FILE_HEADER)||(this.reader.zero=h);else if(h<0)throw new Error("Corrupted zip: missing "+Math.abs(h)+" bytes.")},prepareReader:function(r){this.reader=u(r)},load:function(r){this.prepareReader(r),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},p.exports=e},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(m,p,d){"use strict";var u=m("./reader/readerFor"),s=m("./utils"),i=m("./compressedObject"),t=m("./crc32"),o=m("./utf8"),e=m("./compressions"),l=m("./support");function r(a,c){this.options=a,this.loadOptions=c}r.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(c){var h,g;if(c.skip(22),this.fileNameLength=c.readInt(2),g=c.readInt(2),this.fileName=c.readData(this.fileNameLength),c.skip(g),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((h=function(A){for(var b in e)if(Object.prototype.hasOwnProperty.call(e,b)&&e[b].magic===A)return e[b];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,h,c.readData(this.compressedSize))},readCentralPart:function(c){this.versionMadeBy=c.readInt(2),c.skip(2),this.bitFlag=c.readInt(2),this.compressionMethod=c.readString(2),this.date=c.readDate(),this.crc32=c.readInt(4),this.compressedSize=c.readInt(4),this.uncompressedSize=c.readInt(4);var h=c.readInt(2);if(this.extraFieldsLength=c.readInt(2),this.fileCommentLength=c.readInt(2),this.diskNumberStart=c.readInt(2),this.internalFileAttributes=c.readInt(2),this.externalFileAttributes=c.readInt(4),this.localHeaderOffset=c.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");c.skip(h),this.readExtraFields(c),this.parseZIP64ExtraField(c),this.fileComment=c.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var c=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),c==0&&(this.dosPermissions=63&this.externalFileAttributes),c==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var c=u(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=c.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=c.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=c.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=c.readInt(4))}},readExtraFields:function(c){var h,g,A,b=c.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});c.index+4<b;)h=c.readInt(2),g=c.readInt(2),A=c.readData(g),this.extraFields[h]={id:h,length:g,value:A};c.setIndex(b)},handleUTF8:function(){var c=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var h=this.findExtraFieldUnicodePath();if(h!==null)this.fileNameStr=h;else{var g=s.transformTo(c,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var A=this.findExtraFieldUnicodeComment();if(A!==null)this.fileCommentStr=A;else{var b=s.transformTo(c,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(b)}}},findExtraFieldUnicodePath:function(){var c=this.extraFields[28789];if(c){var h=u(c.value);return h.readInt(1)!==1||t(this.fileName)!==h.readInt(4)?null:o.utf8decode(h.readData(c.length-5))}return null},findExtraFieldUnicodeComment:function(){var c=this.extraFields[25461];if(c){var h=u(c.value);return h.readInt(1)!==1||t(this.fileComment)!==h.readInt(4)?null:o.utf8decode(h.readData(c.length-5))}return null}},p.exports=r},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(m,p,d){"use strict";function u(c,h,g){this.name=c,this.dir=g.dir,this.date=g.date,this.comment=g.comment,this.unixPermissions=g.unixPermissions,this.dosPermissions=g.dosPermissions,this._data=h,this._dataBinary=g.binary,this.options={compression:g.compression,compressionOptions:g.compressionOptions}}var s=m("./stream/StreamHelper"),i=m("./stream/DataWorker"),t=m("./utf8"),o=m("./compressedObject"),e=m("./stream/GenericWorker");u.prototype={internalStream:function(h){var g=null,A="string";try{if(!h)throw new Error("No output type specified.");var b=(A=h.toLowerCase())==="string"||A==="text";A!=="binarystring"&&A!=="text"||(A="string"),g=this._decompressWorker();var S=!this._dataBinary;S&&!b&&(g=g.pipe(new t.Utf8EncodeWorker)),!S&&b&&(g=g.pipe(new t.Utf8DecodeWorker))}catch(E){(g=new e("error")).error(E)}return new s(g,A,"")},async:function(h,g){return this.internalStream(h).accumulate(g)},nodeStream:function(h,g){return this.internalStream(h||"nodebuffer").toNodejsStream(g)},_compressWorker:function(h,g){if(this._data instanceof o&&this._data.compression.magic===h.magic)return this._data.getCompressedWorker();var A=this._decompressWorker();return this._dataBinary||(A=A.pipe(new t.Utf8EncodeWorker)),o.createWorkerFrom(A,h,g)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof e?this._data:new i(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],r=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},a=0;a<l.length;a++)u.prototype[l[a]]=r;p.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(m,p,d){(function(u){"use strict";var s,i,t=u.MutationObserver||u.WebKitMutationObserver;if(t){var o=0,e=new t(c),l=u.document.createTextNode("");e.observe(l,{characterData:!0}),s=function(){l.data=o=++o%2}}else if(u.setImmediate||u.MessageChannel===void 0)s="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var h=u.document.createElement("script");h.onreadystatechange=function(){c(),h.onreadystatechange=null,h.parentNode.removeChild(h),h=null},u.document.documentElement.appendChild(h)}:function(){setTimeout(c,0)};else{var r=new u.MessageChannel;r.port1.onmessage=c,s=function(){r.port2.postMessage(0)}}var a=[];function c(){var h,g;i=!0;for(var A=a.length;A;){for(g=a,a=[],h=-1;++h<A;)g[h]();A=a.length}i=!1}p.exports=function(h){a.push(h)!==1||i||s()}}).call(this,typeof f!="undefined"?f:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(m,p,d){"use strict";var u=m("immediate");function s(){}var i={},t=["REJECTED"],o=["FULFILLED"],e=["PENDING"];function l(A){if(typeof A!="function")throw new TypeError("resolver must be a function");this.state=e,this.queue=[],this.outcome=void 0,A!==s&&h(this,A)}function r(A,b,S){this.promise=A,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof S=="function"&&(this.onRejected=S,this.callRejected=this.otherCallRejected)}function a(A,b,S){u(function(){var E;try{E=b(S)}catch(C){return i.reject(A,C)}E===A?i.reject(A,new TypeError("Cannot resolve promise with itself")):i.resolve(A,E)})}function c(A){var b=A&&A.then;if(A&&(typeof A=="object"||typeof A=="function")&&typeof b=="function")return function(){b.apply(A,arguments)}}function h(A,b){var S=!1;function E(T){S||(S=!0,i.reject(A,T))}function C(T){S||(S=!0,i.resolve(A,T))}var _=g(function(){b(C,E)});_.status==="error"&&E(_.value)}function g(A,b){var S={};try{S.value=A(b),S.status="success"}catch(E){S.status="error",S.value=E}return S}(p.exports=l).prototype.finally=function(A){if(typeof A!="function")return this;var b=this.constructor;return this.then(function(S){return b.resolve(A()).then(function(){return S})},function(S){return b.resolve(A()).then(function(){throw S})})},l.prototype.catch=function(A){return this.then(null,A)},l.prototype.then=function(A,b){if(typeof A!="function"&&this.state===o||typeof b!="function"&&this.state===t)return this;var S=new this.constructor(s);return this.state!==e?a(S,this.state===o?A:b,this.outcome):this.queue.push(new r(S,A,b)),S},r.prototype.callFulfilled=function(A){i.resolve(this.promise,A)},r.prototype.otherCallFulfilled=function(A){a(this.promise,this.onFulfilled,A)},r.prototype.callRejected=function(A){i.reject(this.promise,A)},r.prototype.otherCallRejected=function(A){a(this.promise,this.onRejected,A)},i.resolve=function(A,b){var S=g(c,b);if(S.status==="error")return i.reject(A,S.value);var E=S.value;if(E)h(A,E);else{A.state=o,A.outcome=b;for(var C=-1,_=A.queue.length;++C<_;)A.queue[C].callFulfilled(b)}return A},i.reject=function(A,b){A.state=t,A.outcome=b;for(var S=-1,E=A.queue.length;++S<E;)A.queue[S].callRejected(b);return A},l.resolve=function(A){return A instanceof this?A:i.resolve(new this(s),A)},l.reject=function(A){var b=new this(s);return i.reject(b,A)},l.all=function(A){var b=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=A.length,E=!1;if(!S)return this.resolve([]);for(var C=new Array(S),_=0,T=-1,w=new this(s);++T<S;)O(A[T],T);return w;function O(I,k){b.resolve(I).then(function(M){C[k]=M,++_!==S||E||(E=!0,i.resolve(w,C))},function(M){E||(E=!0,i.reject(w,M))})}},l.race=function(A){var b=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=A.length,E=!1;if(!S)return this.resolve([]);for(var C=-1,_=new this(s);++C<S;)T=A[C],b.resolve(T).then(function(w){E||(E=!0,i.resolve(_,w))},function(w){E||(E=!0,i.reject(_,w))});var T;return _}},{immediate:36}],38:[function(m,p,d){"use strict";var u={};(0,m("./lib/utils/common").assign)(u,m("./lib/deflate"),m("./lib/inflate"),m("./lib/zlib/constants")),p.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(m,p,d){"use strict";var u=m("./zlib/deflate"),s=m("./utils/common"),i=m("./utils/strings"),t=m("./zlib/messages"),o=m("./zlib/zstream"),e=Object.prototype.toString,l=0,r=-1,a=0,c=8;function h(A){if(!(this instanceof h))return new h(A);this.options=s.assign({level:r,method:c,chunkSize:16384,windowBits:15,memLevel:8,strategy:a,to:""},A||{});var b=this.options;b.raw&&0<b.windowBits?b.windowBits=-b.windowBits:b.gzip&&0<b.windowBits&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var S=u.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(S!==l)throw new Error(t[S]);if(b.header&&u.deflateSetHeader(this.strm,b.header),b.dictionary){var E;if(E=typeof b.dictionary=="string"?i.string2buf(b.dictionary):e.call(b.dictionary)==="[object ArrayBuffer]"?new Uint8Array(b.dictionary):b.dictionary,(S=u.deflateSetDictionary(this.strm,E))!==l)throw new Error(t[S]);this._dict_set=!0}}function g(A,b){var S=new h(b);if(S.push(A,!0),S.err)throw S.msg||t[S.err];return S.result}h.prototype.push=function(A,b){var S,E,C=this.strm,_=this.options.chunkSize;if(this.ended)return!1;E=b===~~b?b:b===!0?4:0,typeof A=="string"?C.input=i.string2buf(A):e.call(A)==="[object ArrayBuffer]"?C.input=new Uint8Array(A):C.input=A,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new s.Buf8(_),C.next_out=0,C.avail_out=_),(S=u.deflate(C,E))!==1&&S!==l)return this.onEnd(S),!(this.ended=!0);C.avail_out!==0&&(C.avail_in!==0||E!==4&&E!==2)||(this.options.to==="string"?this.onData(i.buf2binstring(s.shrinkBuf(C.output,C.next_out))):this.onData(s.shrinkBuf(C.output,C.next_out)))}while((0<C.avail_in||C.avail_out===0)&&S!==1);return E===4?(S=u.deflateEnd(this.strm),this.onEnd(S),this.ended=!0,S===l):E!==2||(this.onEnd(l),!(C.avail_out=0))},h.prototype.onData=function(A){this.chunks.push(A)},h.prototype.onEnd=function(A){A===l&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg},d.Deflate=h,d.deflate=g,d.deflateRaw=function(A,b){return(b=b||{}).raw=!0,g(A,b)},d.gzip=function(A,b){return(b=b||{}).gzip=!0,g(A,b)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(m,p,d){"use strict";var u=m("./zlib/inflate"),s=m("./utils/common"),i=m("./utils/strings"),t=m("./zlib/constants"),o=m("./zlib/messages"),e=m("./zlib/zstream"),l=m("./zlib/gzheader"),r=Object.prototype.toString;function a(h){if(!(this instanceof a))return new a(h);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},h||{});var g=this.options;g.raw&&0<=g.windowBits&&g.windowBits<16&&(g.windowBits=-g.windowBits,g.windowBits===0&&(g.windowBits=-15)),!(0<=g.windowBits&&g.windowBits<16)||h&&h.windowBits||(g.windowBits+=32),15<g.windowBits&&g.windowBits<48&&(15&g.windowBits)==0&&(g.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new e,this.strm.avail_out=0;var A=u.inflateInit2(this.strm,g.windowBits);if(A!==t.Z_OK)throw new Error(o[A]);this.header=new l,u.inflateGetHeader(this.strm,this.header)}function c(h,g){var A=new a(g);if(A.push(h,!0),A.err)throw A.msg||o[A.err];return A.result}a.prototype.push=function(h,g){var A,b,S,E,C,_,T=this.strm,w=this.options.chunkSize,O=this.options.dictionary,I=!1;if(this.ended)return!1;b=g===~~g?g:g===!0?t.Z_FINISH:t.Z_NO_FLUSH,typeof h=="string"?T.input=i.binstring2buf(h):r.call(h)==="[object ArrayBuffer]"?T.input=new Uint8Array(h):T.input=h,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new s.Buf8(w),T.next_out=0,T.avail_out=w),(A=u.inflate(T,t.Z_NO_FLUSH))===t.Z_NEED_DICT&&O&&(_=typeof O=="string"?i.string2buf(O):r.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,A=u.inflateSetDictionary(this.strm,_)),A===t.Z_BUF_ERROR&&I===!0&&(A=t.Z_OK,I=!1),A!==t.Z_STREAM_END&&A!==t.Z_OK)return this.onEnd(A),!(this.ended=!0);T.next_out&&(T.avail_out!==0&&A!==t.Z_STREAM_END&&(T.avail_in!==0||b!==t.Z_FINISH&&b!==t.Z_SYNC_FLUSH)||(this.options.to==="string"?(S=i.utf8border(T.output,T.next_out),E=T.next_out-S,C=i.buf2string(T.output,S),T.next_out=E,T.avail_out=w-E,E&&s.arraySet(T.output,T.output,S,E,0),this.onData(C)):this.onData(s.shrinkBuf(T.output,T.next_out)))),T.avail_in===0&&T.avail_out===0&&(I=!0)}while((0<T.avail_in||T.avail_out===0)&&A!==t.Z_STREAM_END);return A===t.Z_STREAM_END&&(b=t.Z_FINISH),b===t.Z_FINISH?(A=u.inflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===t.Z_OK):b!==t.Z_SYNC_FLUSH||(this.onEnd(t.Z_OK),!(T.avail_out=0))},a.prototype.onData=function(h){this.chunks.push(h)},a.prototype.onEnd=function(h){h===t.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg},d.Inflate=a,d.inflate=c,d.inflateRaw=function(h,g){return(g=g||{}).raw=!0,c(h,g)},d.ungzip=c},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(m,p,d){"use strict";var u=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";d.assign=function(t){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var e=o.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(var l in e)e.hasOwnProperty(l)&&(t[l]=e[l])}}return t},d.shrinkBuf=function(t,o){return t.length===o?t:t.subarray?t.subarray(0,o):(t.length=o,t)};var s={arraySet:function(o,e,l,r,a){if(e.subarray&&o.subarray)o.set(e.subarray(l,l+r),a);else for(var c=0;c<r;c++)o[a+c]=e[l+c]},flattenChunks:function(o){var e,l,r,a,c,h;for(e=r=0,l=o.length;e<l;e++)r+=o[e].length;for(h=new Uint8Array(r),e=a=0,l=o.length;e<l;e++)c=o[e],h.set(c,a),a+=c.length;return h}},i={arraySet:function(o,e,l,r,a){for(var c=0;c<r;c++)o[a+c]=e[l+c]},flattenChunks:function(o){return[].concat.apply([],o)}};d.setTyped=function(t){t?(d.Buf8=Uint8Array,d.Buf16=Uint16Array,d.Buf32=Int32Array,d.assign(d,s)):(d.Buf8=Array,d.Buf16=Array,d.Buf32=Array,d.assign(d,i))},d.setTyped(u)},{}],42:[function(m,p,d){"use strict";var u=m("./common"),s=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(l){s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(l){i=!1}for(var t=new u.Buf8(256),o=0;o<256;o++)t[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function e(l,r){if(r<65537&&(l.subarray&&i||!l.subarray&&s))return String.fromCharCode.apply(null,u.shrinkBuf(l,r));for(var a="",c=0;c<r;c++)a+=String.fromCharCode(l[c]);return a}t[254]=t[254]=1,d.string2buf=function(l){var r,a,c,h,g,A=l.length,b=0;for(h=0;h<A;h++)(64512&(a=l.charCodeAt(h)))==55296&&h+1<A&&(64512&(c=l.charCodeAt(h+1)))==56320&&(a=65536+(a-55296<<10)+(c-56320),h++),b+=a<128?1:a<2048?2:a<65536?3:4;for(r=new u.Buf8(b),h=g=0;g<b;h++)(64512&(a=l.charCodeAt(h)))==55296&&h+1<A&&(64512&(c=l.charCodeAt(h+1)))==56320&&(a=65536+(a-55296<<10)+(c-56320),h++),a<128?r[g++]=a:(a<2048?r[g++]=192|a>>>6:(a<65536?r[g++]=224|a>>>12:(r[g++]=240|a>>>18,r[g++]=128|a>>>12&63),r[g++]=128|a>>>6&63),r[g++]=128|63&a);return r},d.buf2binstring=function(l){return e(l,l.length)},d.binstring2buf=function(l){for(var r=new u.Buf8(l.length),a=0,c=r.length;a<c;a++)r[a]=l.charCodeAt(a);return r},d.buf2string=function(l,r){var a,c,h,g,A=r||l.length,b=new Array(2*A);for(a=c=0;a<A;)if((h=l[a++])<128)b[c++]=h;else if(4<(g=t[h]))b[c++]=65533,a+=g-1;else{for(h&=g===2?31:g===3?15:7;1<g&&a<A;)h=h<<6|63&l[a++],g--;1<g?b[c++]=65533:h<65536?b[c++]=h:(h-=65536,b[c++]=55296|h>>10&1023,b[c++]=56320|1023&h)}return e(b,c)},d.utf8border=function(l,r){var a;for((r=r||l.length)>l.length&&(r=l.length),a=r-1;0<=a&&(192&l[a])==128;)a--;return a<0||a===0?r:a+t[l[a]]>r?a:r}},{"./common":41}],43:[function(m,p,d){"use strict";p.exports=function(u,s,i,t){for(var o=65535&u|0,e=u>>>16&65535|0,l=0;i!==0;){for(i-=l=2e3<i?2e3:i;e=e+(o=o+s[t++]|0)|0,--l;);o%=65521,e%=65521}return o|e<<16|0}},{}],44:[function(m,p,d){"use strict";p.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(m,p,d){"use strict";var u=function(){for(var s,i=[],t=0;t<256;t++){s=t;for(var o=0;o<8;o++)s=1&s?3988292384^s>>>1:s>>>1;i[t]=s}return i}();p.exports=function(s,i,t,o){var e=u,l=o+t;s^=-1;for(var r=o;r<l;r++)s=s>>>8^e[255&(s^i[r])];return-1^s}},{}],46:[function(m,p,d){"use strict";var u,s=m("../utils/common"),i=m("./trees"),t=m("./adler32"),o=m("./crc32"),e=m("./messages"),l=0,r=4,a=0,c=-2,h=-1,g=4,A=2,b=8,S=9,E=286,C=30,_=19,T=2*E+1,w=15,O=3,I=258,k=I+O+1,M=42,j=113,P=1,X=2,F=3,U=4;function K(ue,et){return ue.msg=e[et],et}function z(ue){return(ue<<1)-(4<ue?9:0)}function V(ue){for(var et=ue.length;0<=--et;)ue[et]=0}function Q(ue){var et=ue.state,he=et.pending;he>ue.avail_out&&(he=ue.avail_out),he!==0&&(s.arraySet(ue.output,et.pending_buf,et.pending_out,he,ue.next_out),ue.next_out+=he,et.pending_out+=he,ue.total_out+=he,ue.avail_out-=he,et.pending-=he,et.pending===0&&(et.pending_out=0))}function G(ue,et){i._tr_flush_block(ue,0<=ue.block_start?ue.block_start:-1,ue.strstart-ue.block_start,et),ue.block_start=ue.strstart,Q(ue.strm)}function te(ue,et){ue.pending_buf[ue.pending++]=et}function q(ue,et){ue.pending_buf[ue.pending++]=et>>>8&255,ue.pending_buf[ue.pending++]=255&et}function se(ue,et){var he,J,Y=ue.max_chain_length,$=ue.strstart,de=ue.prev_length,be=ue.nice_match,Ce=ue.strstart>ue.w_size-k?ue.strstart-(ue.w_size-k):0,Be=ue.window,fe=ue.w_mask,we=ue.prev,Re=ue.strstart+I,rt=Be[$+de-1],St=Be[$+de];ue.prev_length>=ue.good_match&&(Y>>=2),be>ue.lookahead&&(be=ue.lookahead);do if(Be[(he=et)+de]===St&&Be[he+de-1]===rt&&Be[he]===Be[$]&&Be[++he]===Be[$+1]){$+=2,he++;do;while(Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&$<Re);if(J=I-(Re-$),$=Re-I,de<J){if(ue.match_start=et,be<=(de=J))break;rt=Be[$+de-1],St=Be[$+de]}}while((et=we[et&fe])>Ce&&--Y!=0);return de<=ue.lookahead?de:ue.lookahead}function re(ue){var et,he,J,Y,$,de,be,Ce,Be,fe,we=ue.w_size;do{if(Y=ue.window_size-ue.lookahead-ue.strstart,ue.strstart>=we+(we-k)){for(s.arraySet(ue.window,ue.window,we,we,0),ue.match_start-=we,ue.strstart-=we,ue.block_start-=we,et=he=ue.hash_size;J=ue.head[--et],ue.head[et]=we<=J?J-we:0,--he;);for(et=he=we;J=ue.prev[--et],ue.prev[et]=we<=J?J-we:0,--he;);Y+=we}if(ue.strm.avail_in===0)break;if(de=ue.strm,be=ue.window,Ce=ue.strstart+ue.lookahead,Be=Y,fe=void 0,fe=de.avail_in,Be<fe&&(fe=Be),he=fe===0?0:(de.avail_in-=fe,s.arraySet(be,de.input,de.next_in,fe,Ce),de.state.wrap===1?de.adler=t(de.adler,be,fe,Ce):de.state.wrap===2&&(de.adler=o(de.adler,be,fe,Ce)),de.next_in+=fe,de.total_in+=fe,fe),ue.lookahead+=he,ue.lookahead+ue.insert>=O)for($=ue.strstart-ue.insert,ue.ins_h=ue.window[$],ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[$+1])&ue.hash_mask;ue.insert&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[$+O-1])&ue.hash_mask,ue.prev[$&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=$,$++,ue.insert--,!(ue.lookahead+ue.insert<O)););}while(ue.lookahead<k&&ue.strm.avail_in!==0)}function xe(ue,et){for(var he,J;;){if(ue.lookahead<k){if(re(ue),ue.lookahead<k&&et===l)return P;if(ue.lookahead===0)break}if(he=0,ue.lookahead>=O&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+O-1])&ue.hash_mask,he=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart),he!==0&&ue.strstart-he<=ue.w_size-k&&(ue.match_length=se(ue,he)),ue.match_length>=O)if(J=i._tr_tally(ue,ue.strstart-ue.match_start,ue.match_length-O),ue.lookahead-=ue.match_length,ue.match_length<=ue.max_lazy_match&&ue.lookahead>=O){for(ue.match_length--;ue.strstart++,ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+O-1])&ue.hash_mask,he=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart,--ue.match_length!=0;);ue.strstart++}else ue.strstart+=ue.match_length,ue.match_length=0,ue.ins_h=ue.window[ue.strstart],ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+1])&ue.hash_mask;else J=i._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++;if(J&&(G(ue,!1),ue.strm.avail_out===0))return P}return ue.insert=ue.strstart<O-1?ue.strstart:O-1,et===r?(G(ue,!0),ue.strm.avail_out===0?F:U):ue.last_lit&&(G(ue,!1),ue.strm.avail_out===0)?P:X}function Oe(ue,et){for(var he,J,Y;;){if(ue.lookahead<k){if(re(ue),ue.lookahead<k&&et===l)return P;if(ue.lookahead===0)break}if(he=0,ue.lookahead>=O&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+O-1])&ue.hash_mask,he=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart),ue.prev_length=ue.match_length,ue.prev_match=ue.match_start,ue.match_length=O-1,he!==0&&ue.prev_length<ue.max_lazy_match&&ue.strstart-he<=ue.w_size-k&&(ue.match_length=se(ue,he),ue.match_length<=5&&(ue.strategy===1||ue.match_length===O&&4096<ue.strstart-ue.match_start)&&(ue.match_length=O-1)),ue.prev_length>=O&&ue.match_length<=ue.prev_length){for(Y=ue.strstart+ue.lookahead-O,J=i._tr_tally(ue,ue.strstart-1-ue.prev_match,ue.prev_length-O),ue.lookahead-=ue.prev_length-1,ue.prev_length-=2;++ue.strstart<=Y&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+O-1])&ue.hash_mask,he=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart),--ue.prev_length!=0;);if(ue.match_available=0,ue.match_length=O-1,ue.strstart++,J&&(G(ue,!1),ue.strm.avail_out===0))return P}else if(ue.match_available){if((J=i._tr_tally(ue,0,ue.window[ue.strstart-1]))&&G(ue,!1),ue.strstart++,ue.lookahead--,ue.strm.avail_out===0)return P}else ue.match_available=1,ue.strstart++,ue.lookahead--}return ue.match_available&&(J=i._tr_tally(ue,0,ue.window[ue.strstart-1]),ue.match_available=0),ue.insert=ue.strstart<O-1?ue.strstart:O-1,et===r?(G(ue,!0),ue.strm.avail_out===0?F:U):ue.last_lit&&(G(ue,!1),ue.strm.avail_out===0)?P:X}function Me(ue,et,he,J,Y){this.good_length=ue,this.max_lazy=et,this.nice_length=he,this.max_chain=J,this.func=Y}function Qe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=b,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new s.Buf16(2*T),this.dyn_dtree=new s.Buf16(2*(2*C+1)),this.bl_tree=new s.Buf16(2*(2*_+1)),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new s.Buf16(w+1),this.heap=new s.Buf16(2*E+1),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new s.Buf16(2*E+1),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ve(ue){var et;return ue&&ue.state?(ue.total_in=ue.total_out=0,ue.data_type=A,(et=ue.state).pending=0,et.pending_out=0,et.wrap<0&&(et.wrap=-et.wrap),et.status=et.wrap?M:j,ue.adler=et.wrap===2?0:1,et.last_flush=l,i._tr_init(et),a):K(ue,c)}function ut(ue){var et=Ve(ue);return et===a&&function(he){he.window_size=2*he.w_size,V(he.head),he.max_lazy_match=u[he.level].max_lazy,he.good_match=u[he.level].good_length,he.nice_match=u[he.level].nice_length,he.max_chain_length=u[he.level].max_chain,he.strstart=0,he.block_start=0,he.lookahead=0,he.insert=0,he.match_length=he.prev_length=O-1,he.match_available=0,he.ins_h=0}(ue.state),et}function Fe(ue,et,he,J,Y,$){if(!ue)return c;var de=1;if(et===h&&(et=6),J<0?(de=0,J=-J):15<J&&(de=2,J-=16),Y<1||S<Y||he!==b||J<8||15<J||et<0||9<et||$<0||g<$)return K(ue,c);J===8&&(J=9);var be=new Qe;return(ue.state=be).strm=ue,be.wrap=de,be.gzhead=null,be.w_bits=J,be.w_size=1<<be.w_bits,be.w_mask=be.w_size-1,be.hash_bits=Y+7,be.hash_size=1<<be.hash_bits,be.hash_mask=be.hash_size-1,be.hash_shift=~~((be.hash_bits+O-1)/O),be.window=new s.Buf8(2*be.w_size),be.head=new s.Buf16(be.hash_size),be.prev=new s.Buf16(be.w_size),be.lit_bufsize=1<<Y+6,be.pending_buf_size=4*be.lit_bufsize,be.pending_buf=new s.Buf8(be.pending_buf_size),be.d_buf=1*be.lit_bufsize,be.l_buf=3*be.lit_bufsize,be.level=et,be.strategy=$,be.method=he,ut(ue)}u=[new Me(0,0,0,0,function(ue,et){var he=65535;for(he>ue.pending_buf_size-5&&(he=ue.pending_buf_size-5);;){if(ue.lookahead<=1){if(re(ue),ue.lookahead===0&&et===l)return P;if(ue.lookahead===0)break}ue.strstart+=ue.lookahead,ue.lookahead=0;var J=ue.block_start+he;if((ue.strstart===0||ue.strstart>=J)&&(ue.lookahead=ue.strstart-J,ue.strstart=J,G(ue,!1),ue.strm.avail_out===0))return P;if(ue.strstart-ue.block_start>=ue.w_size-k&&(G(ue,!1),ue.strm.avail_out===0))return P}return ue.insert=0,et===r?(G(ue,!0),ue.strm.avail_out===0?F:U):(ue.strstart>ue.block_start&&(G(ue,!1),ue.strm.avail_out),P)}),new Me(4,4,8,4,xe),new Me(4,5,16,8,xe),new Me(4,6,32,32,xe),new Me(4,4,16,16,Oe),new Me(8,16,32,32,Oe),new Me(8,16,128,128,Oe),new Me(8,32,128,256,Oe),new Me(32,128,258,1024,Oe),new Me(32,258,258,4096,Oe)],d.deflateInit=function(ue,et){return Fe(ue,et,b,15,8,0)},d.deflateInit2=Fe,d.deflateReset=ut,d.deflateResetKeep=Ve,d.deflateSetHeader=function(ue,et){return ue&&ue.state?ue.state.wrap!==2?c:(ue.state.gzhead=et,a):c},d.deflate=function(ue,et){var he,J,Y,$;if(!ue||!ue.state||5<et||et<0)return ue?K(ue,c):c;if(J=ue.state,!ue.output||!ue.input&&ue.avail_in!==0||J.status===666&&et!==r)return K(ue,ue.avail_out===0?-5:c);if(J.strm=ue,he=J.last_flush,J.last_flush=et,J.status===M)if(J.wrap===2)ue.adler=0,te(J,31),te(J,139),te(J,8),J.gzhead?(te(J,(J.gzhead.text?1:0)+(J.gzhead.hcrc?2:0)+(J.gzhead.extra?4:0)+(J.gzhead.name?8:0)+(J.gzhead.comment?16:0)),te(J,255&J.gzhead.time),te(J,J.gzhead.time>>8&255),te(J,J.gzhead.time>>16&255),te(J,J.gzhead.time>>24&255),te(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),te(J,255&J.gzhead.os),J.gzhead.extra&&J.gzhead.extra.length&&(te(J,255&J.gzhead.extra.length),te(J,J.gzhead.extra.length>>8&255)),J.gzhead.hcrc&&(ue.adler=o(ue.adler,J.pending_buf,J.pending,0)),J.gzindex=0,J.status=69):(te(J,0),te(J,0),te(J,0),te(J,0),te(J,0),te(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),te(J,3),J.status=j);else{var de=b+(J.w_bits-8<<4)<<8;de|=(2<=J.strategy||J.level<2?0:J.level<6?1:J.level===6?2:3)<<6,J.strstart!==0&&(de|=32),de+=31-de%31,J.status=j,q(J,de),J.strstart!==0&&(q(J,ue.adler>>>16),q(J,65535&ue.adler)),ue.adler=1}if(J.status===69)if(J.gzhead.extra){for(Y=J.pending;J.gzindex<(65535&J.gzhead.extra.length)&&(J.pending!==J.pending_buf_size||(J.gzhead.hcrc&&J.pending>Y&&(ue.adler=o(ue.adler,J.pending_buf,J.pending-Y,Y)),Q(ue),Y=J.pending,J.pending!==J.pending_buf_size));)te(J,255&J.gzhead.extra[J.gzindex]),J.gzindex++;J.gzhead.hcrc&&J.pending>Y&&(ue.adler=o(ue.adler,J.pending_buf,J.pending-Y,Y)),J.gzindex===J.gzhead.extra.length&&(J.gzindex=0,J.status=73)}else J.status=73;if(J.status===73)if(J.gzhead.name){Y=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>Y&&(ue.adler=o(ue.adler,J.pending_buf,J.pending-Y,Y)),Q(ue),Y=J.pending,J.pending===J.pending_buf_size)){$=1;break}$=J.gzindex<J.gzhead.name.length?255&J.gzhead.name.charCodeAt(J.gzindex++):0,te(J,$)}while($!==0);J.gzhead.hcrc&&J.pending>Y&&(ue.adler=o(ue.adler,J.pending_buf,J.pending-Y,Y)),$===0&&(J.gzindex=0,J.status=91)}else J.status=91;if(J.status===91)if(J.gzhead.comment){Y=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>Y&&(ue.adler=o(ue.adler,J.pending_buf,J.pending-Y,Y)),Q(ue),Y=J.pending,J.pending===J.pending_buf_size)){$=1;break}$=J.gzindex<J.gzhead.comment.length?255&J.gzhead.comment.charCodeAt(J.gzindex++):0,te(J,$)}while($!==0);J.gzhead.hcrc&&J.pending>Y&&(ue.adler=o(ue.adler,J.pending_buf,J.pending-Y,Y)),$===0&&(J.status=103)}else J.status=103;if(J.status===103&&(J.gzhead.hcrc?(J.pending+2>J.pending_buf_size&&Q(ue),J.pending+2<=J.pending_buf_size&&(te(J,255&ue.adler),te(J,ue.adler>>8&255),ue.adler=0,J.status=j)):J.status=j),J.pending!==0){if(Q(ue),ue.avail_out===0)return J.last_flush=-1,a}else if(ue.avail_in===0&&z(et)<=z(he)&&et!==r)return K(ue,-5);if(J.status===666&&ue.avail_in!==0)return K(ue,-5);if(ue.avail_in!==0||J.lookahead!==0||et!==l&&J.status!==666){var be=J.strategy===2?function(Ce,Be){for(var fe;;){if(Ce.lookahead===0&&(re(Ce),Ce.lookahead===0)){if(Be===l)return P;break}if(Ce.match_length=0,fe=i._tr_tally(Ce,0,Ce.window[Ce.strstart]),Ce.lookahead--,Ce.strstart++,fe&&(G(Ce,!1),Ce.strm.avail_out===0))return P}return Ce.insert=0,Be===r?(G(Ce,!0),Ce.strm.avail_out===0?F:U):Ce.last_lit&&(G(Ce,!1),Ce.strm.avail_out===0)?P:X}(J,et):J.strategy===3?function(Ce,Be){for(var fe,we,Re,rt,St=Ce.window;;){if(Ce.lookahead<=I){if(re(Ce),Ce.lookahead<=I&&Be===l)return P;if(Ce.lookahead===0)break}if(Ce.match_length=0,Ce.lookahead>=O&&0<Ce.strstart&&(we=St[Re=Ce.strstart-1])===St[++Re]&&we===St[++Re]&&we===St[++Re]){rt=Ce.strstart+I;do;while(we===St[++Re]&&we===St[++Re]&&we===St[++Re]&&we===St[++Re]&&we===St[++Re]&&we===St[++Re]&&we===St[++Re]&&we===St[++Re]&&Re<rt);Ce.match_length=I-(rt-Re),Ce.match_length>Ce.lookahead&&(Ce.match_length=Ce.lookahead)}if(Ce.match_length>=O?(fe=i._tr_tally(Ce,1,Ce.match_length-O),Ce.lookahead-=Ce.match_length,Ce.strstart+=Ce.match_length,Ce.match_length=0):(fe=i._tr_tally(Ce,0,Ce.window[Ce.strstart]),Ce.lookahead--,Ce.strstart++),fe&&(G(Ce,!1),Ce.strm.avail_out===0))return P}return Ce.insert=0,Be===r?(G(Ce,!0),Ce.strm.avail_out===0?F:U):Ce.last_lit&&(G(Ce,!1),Ce.strm.avail_out===0)?P:X}(J,et):u[J.level].func(J,et);if(be!==F&&be!==U||(J.status=666),be===P||be===F)return ue.avail_out===0&&(J.last_flush=-1),a;if(be===X&&(et===1?i._tr_align(J):et!==5&&(i._tr_stored_block(J,0,0,!1),et===3&&(V(J.head),J.lookahead===0&&(J.strstart=0,J.block_start=0,J.insert=0))),Q(ue),ue.avail_out===0))return J.last_flush=-1,a}return et!==r?a:J.wrap<=0?1:(J.wrap===2?(te(J,255&ue.adler),te(J,ue.adler>>8&255),te(J,ue.adler>>16&255),te(J,ue.adler>>24&255),te(J,255&ue.total_in),te(J,ue.total_in>>8&255),te(J,ue.total_in>>16&255),te(J,ue.total_in>>24&255)):(q(J,ue.adler>>>16),q(J,65535&ue.adler)),Q(ue),0<J.wrap&&(J.wrap=-J.wrap),J.pending!==0?a:1)},d.deflateEnd=function(ue){var et;return ue&&ue.state?(et=ue.state.status)!==M&&et!==69&&et!==73&&et!==91&&et!==103&&et!==j&&et!==666?K(ue,c):(ue.state=null,et===j?K(ue,-3):a):c},d.deflateSetDictionary=function(ue,et){var he,J,Y,$,de,be,Ce,Be,fe=et.length;if(!ue||!ue.state)return c;if(($=(he=ue.state).wrap)===2||$===1&&he.status!==M||he.lookahead)return c;for($===1&&(ue.adler=t(ue.adler,et,fe,0)),he.wrap=0,fe>=he.w_size&&($===0&&(V(he.head),he.strstart=0,he.block_start=0,he.insert=0),Be=new s.Buf8(he.w_size),s.arraySet(Be,et,fe-he.w_size,he.w_size,0),et=Be,fe=he.w_size),de=ue.avail_in,be=ue.next_in,Ce=ue.input,ue.avail_in=fe,ue.next_in=0,ue.input=et,re(he);he.lookahead>=O;){for(J=he.strstart,Y=he.lookahead-(O-1);he.ins_h=(he.ins_h<<he.hash_shift^he.window[J+O-1])&he.hash_mask,he.prev[J&he.w_mask]=he.head[he.ins_h],he.head[he.ins_h]=J,J++,--Y;);he.strstart=J,he.lookahead=O-1,re(he)}return he.strstart+=he.lookahead,he.block_start=he.strstart,he.insert=he.lookahead,he.lookahead=0,he.match_length=he.prev_length=O-1,he.match_available=0,ue.next_in=be,ue.input=Ce,ue.avail_in=de,he.wrap=$,a},d.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(m,p,d){"use strict";p.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(m,p,d){"use strict";p.exports=function(u,s){var i,t,o,e,l,r,a,c,h,g,A,b,S,E,C,_,T,w,O,I,k,M,j,P,X;i=u.state,t=u.next_in,P=u.input,o=t+(u.avail_in-5),e=u.next_out,X=u.output,l=e-(s-u.avail_out),r=e+(u.avail_out-257),a=i.dmax,c=i.wsize,h=i.whave,g=i.wnext,A=i.window,b=i.hold,S=i.bits,E=i.lencode,C=i.distcode,_=(1<<i.lenbits)-1,T=(1<<i.distbits)-1;e:do{S<15&&(b+=P[t++]<<S,S+=8,b+=P[t++]<<S,S+=8),w=E[b&_];t:for(;;){if(b>>>=O=w>>>24,S-=O,(O=w>>>16&255)===0)X[e++]=65535&w;else{if(!(16&O)){if((64&O)==0){w=E[(65535&w)+(b&(1<<O)-1)];continue t}if(32&O){i.mode=12;break e}u.msg="invalid literal/length code",i.mode=30;break e}I=65535&w,(O&=15)&&(S<O&&(b+=P[t++]<<S,S+=8),I+=b&(1<<O)-1,b>>>=O,S-=O),S<15&&(b+=P[t++]<<S,S+=8,b+=P[t++]<<S,S+=8),w=C[b&T];r:for(;;){if(b>>>=O=w>>>24,S-=O,!(16&(O=w>>>16&255))){if((64&O)==0){w=C[(65535&w)+(b&(1<<O)-1)];continue r}u.msg="invalid distance code",i.mode=30;break e}if(k=65535&w,S<(O&=15)&&(b+=P[t++]<<S,(S+=8)<O&&(b+=P[t++]<<S,S+=8)),a<(k+=b&(1<<O)-1)){u.msg="invalid distance too far back",i.mode=30;break e}if(b>>>=O,S-=O,(O=e-l)<k){if(h<(O=k-O)&&i.sane){u.msg="invalid distance too far back",i.mode=30;break e}if(j=A,(M=0)===g){if(M+=c-O,O<I){for(I-=O;X[e++]=A[M++],--O;);M=e-k,j=X}}else if(g<O){if(M+=c+g-O,(O-=g)<I){for(I-=O;X[e++]=A[M++],--O;);if(M=0,g<I){for(I-=O=g;X[e++]=A[M++],--O;);M=e-k,j=X}}}else if(M+=g-O,O<I){for(I-=O;X[e++]=A[M++],--O;);M=e-k,j=X}for(;2<I;)X[e++]=j[M++],X[e++]=j[M++],X[e++]=j[M++],I-=3;I&&(X[e++]=j[M++],1<I&&(X[e++]=j[M++]))}else{for(M=e-k;X[e++]=X[M++],X[e++]=X[M++],X[e++]=X[M++],2<(I-=3););I&&(X[e++]=X[M++],1<I&&(X[e++]=X[M++]))}break}}break}}while(t<o&&e<r);t-=I=S>>3,b&=(1<<(S-=I<<3))-1,u.next_in=t,u.next_out=e,u.avail_in=t<o?o-t+5:5-(t-o),u.avail_out=e<r?r-e+257:257-(e-r),i.hold=b,i.bits=S}},{}],49:[function(m,p,d){"use strict";var u=m("../utils/common"),s=m("./adler32"),i=m("./crc32"),t=m("./inffast"),o=m("./inftrees"),e=1,l=2,r=0,a=-2,c=1,h=852,g=592;function A(M){return(M>>>24&255)+(M>>>8&65280)+((65280&M)<<8)+((255&M)<<24)}function b(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function S(M){var j;return M&&M.state?(j=M.state,M.total_in=M.total_out=j.total=0,M.msg="",j.wrap&&(M.adler=1&j.wrap),j.mode=c,j.last=0,j.havedict=0,j.dmax=32768,j.head=null,j.hold=0,j.bits=0,j.lencode=j.lendyn=new u.Buf32(h),j.distcode=j.distdyn=new u.Buf32(g),j.sane=1,j.back=-1,r):a}function E(M){var j;return M&&M.state?((j=M.state).wsize=0,j.whave=0,j.wnext=0,S(M)):a}function C(M,j){var P,X;return M&&M.state?(X=M.state,j<0?(P=0,j=-j):(P=1+(j>>4),j<48&&(j&=15)),j&&(j<8||15<j)?a:(X.window!==null&&X.wbits!==j&&(X.window=null),X.wrap=P,X.wbits=j,E(M))):a}function _(M,j){var P,X;return M?(X=new b,(M.state=X).window=null,(P=C(M,j))!==r&&(M.state=null),P):a}var T,w,O=!0;function I(M){if(O){var j;for(T=new u.Buf32(512),w=new u.Buf32(32),j=0;j<144;)M.lens[j++]=8;for(;j<256;)M.lens[j++]=9;for(;j<280;)M.lens[j++]=7;for(;j<288;)M.lens[j++]=8;for(o(e,M.lens,0,288,T,0,M.work,{bits:9}),j=0;j<32;)M.lens[j++]=5;o(l,M.lens,0,32,w,0,M.work,{bits:5}),O=!1}M.lencode=T,M.lenbits=9,M.distcode=w,M.distbits=5}function k(M,j,P,X){var F,U=M.state;return U.window===null&&(U.wsize=1<<U.wbits,U.wnext=0,U.whave=0,U.window=new u.Buf8(U.wsize)),X>=U.wsize?(u.arraySet(U.window,j,P-U.wsize,U.wsize,0),U.wnext=0,U.whave=U.wsize):(X<(F=U.wsize-U.wnext)&&(F=X),u.arraySet(U.window,j,P-X,F,U.wnext),(X-=F)?(u.arraySet(U.window,j,P-X,X,0),U.wnext=X,U.whave=U.wsize):(U.wnext+=F,U.wnext===U.wsize&&(U.wnext=0),U.whave<U.wsize&&(U.whave+=F))),0}d.inflateReset=E,d.inflateReset2=C,d.inflateResetKeep=S,d.inflateInit=function(M){return _(M,15)},d.inflateInit2=_,d.inflate=function(M,j){var P,X,F,U,K,z,V,Q,G,te,q,se,re,xe,Oe,Me,Qe,Ve,ut,Fe,ue,et,he,J,Y=0,$=new u.Buf8(4),de=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!M||!M.state||!M.output||!M.input&&M.avail_in!==0)return a;(P=M.state).mode===12&&(P.mode=13),K=M.next_out,F=M.output,V=M.avail_out,U=M.next_in,X=M.input,z=M.avail_in,Q=P.hold,G=P.bits,te=z,q=V,et=r;e:for(;;)switch(P.mode){case c:if(P.wrap===0){P.mode=13;break}for(;G<16;){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}if(2&P.wrap&&Q===35615){$[P.check=0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0),G=Q=0,P.mode=2;break}if(P.flags=0,P.head&&(P.head.done=!1),!(1&P.wrap)||(((255&Q)<<8)+(Q>>8))%31){M.msg="incorrect header check",P.mode=30;break}if((15&Q)!=8){M.msg="unknown compression method",P.mode=30;break}if(G-=4,ue=8+(15&(Q>>>=4)),P.wbits===0)P.wbits=ue;else if(ue>P.wbits){M.msg="invalid window size",P.mode=30;break}P.dmax=1<<ue,M.adler=P.check=1,P.mode=512&Q?10:12,G=Q=0;break;case 2:for(;G<16;){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}if(P.flags=Q,(255&P.flags)!=8){M.msg="unknown compression method",P.mode=30;break}if(57344&P.flags){M.msg="unknown header flags set",P.mode=30;break}P.head&&(P.head.text=Q>>8&1),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0)),G=Q=0,P.mode=3;case 3:for(;G<32;){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}P.head&&(P.head.time=Q),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,$[2]=Q>>>16&255,$[3]=Q>>>24&255,P.check=i(P.check,$,4,0)),G=Q=0,P.mode=4;case 4:for(;G<16;){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}P.head&&(P.head.xflags=255&Q,P.head.os=Q>>8),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0)),G=Q=0,P.mode=5;case 5:if(1024&P.flags){for(;G<16;){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}P.length=Q,P.head&&(P.head.extra_len=Q),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0)),G=Q=0}else P.head&&(P.head.extra=null);P.mode=6;case 6:if(1024&P.flags&&(z<(se=P.length)&&(se=z),se&&(P.head&&(ue=P.head.extra_len-P.length,P.head.extra||(P.head.extra=new Array(P.head.extra_len)),u.arraySet(P.head.extra,X,U,se,ue)),512&P.flags&&(P.check=i(P.check,X,se,U)),z-=se,U+=se,P.length-=se),P.length))break e;P.length=0,P.mode=7;case 7:if(2048&P.flags){if(z===0)break e;for(se=0;ue=X[U+se++],P.head&&ue&&P.length<65536&&(P.head.name+=String.fromCharCode(ue)),ue&&se<z;);if(512&P.flags&&(P.check=i(P.check,X,se,U)),z-=se,U+=se,ue)break e}else P.head&&(P.head.name=null);P.length=0,P.mode=8;case 8:if(4096&P.flags){if(z===0)break e;for(se=0;ue=X[U+se++],P.head&&ue&&P.length<65536&&(P.head.comment+=String.fromCharCode(ue)),ue&&se<z;);if(512&P.flags&&(P.check=i(P.check,X,se,U)),z-=se,U+=se,ue)break e}else P.head&&(P.head.comment=null);P.mode=9;case 9:if(512&P.flags){for(;G<16;){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}if(Q!==(65535&P.check)){M.msg="header crc mismatch",P.mode=30;break}G=Q=0}P.head&&(P.head.hcrc=P.flags>>9&1,P.head.done=!0),M.adler=P.check=0,P.mode=12;break;case 10:for(;G<32;){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}M.adler=P.check=A(Q),G=Q=0,P.mode=11;case 11:if(P.havedict===0)return M.next_out=K,M.avail_out=V,M.next_in=U,M.avail_in=z,P.hold=Q,P.bits=G,2;M.adler=P.check=1,P.mode=12;case 12:if(j===5||j===6)break e;case 13:if(P.last){Q>>>=7&G,G-=7&G,P.mode=27;break}for(;G<3;){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}switch(P.last=1&Q,G-=1,3&(Q>>>=1)){case 0:P.mode=14;break;case 1:if(I(P),P.mode=20,j!==6)break;Q>>>=2,G-=2;break e;case 2:P.mode=17;break;case 3:M.msg="invalid block type",P.mode=30}Q>>>=2,G-=2;break;case 14:for(Q>>>=7&G,G-=7&G;G<32;){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}if((65535&Q)!=(Q>>>16^65535)){M.msg="invalid stored block lengths",P.mode=30;break}if(P.length=65535&Q,G=Q=0,P.mode=15,j===6)break e;case 15:P.mode=16;case 16:if(se=P.length){if(z<se&&(se=z),V<se&&(se=V),se===0)break e;u.arraySet(F,X,U,se,K),z-=se,U+=se,V-=se,K+=se,P.length-=se;break}P.mode=12;break;case 17:for(;G<14;){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}if(P.nlen=257+(31&Q),Q>>>=5,G-=5,P.ndist=1+(31&Q),Q>>>=5,G-=5,P.ncode=4+(15&Q),Q>>>=4,G-=4,286<P.nlen||30<P.ndist){M.msg="too many length or distance symbols",P.mode=30;break}P.have=0,P.mode=18;case 18:for(;P.have<P.ncode;){for(;G<3;){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}P.lens[de[P.have++]]=7&Q,Q>>>=3,G-=3}for(;P.have<19;)P.lens[de[P.have++]]=0;if(P.lencode=P.lendyn,P.lenbits=7,he={bits:P.lenbits},et=o(0,P.lens,0,19,P.lencode,0,P.work,he),P.lenbits=he.bits,et){M.msg="invalid code lengths set",P.mode=30;break}P.have=0,P.mode=19;case 19:for(;P.have<P.nlen+P.ndist;){for(;Me=(Y=P.lencode[Q&(1<<P.lenbits)-1])>>>16&255,Qe=65535&Y,!((Oe=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}if(Qe<16)Q>>>=Oe,G-=Oe,P.lens[P.have++]=Qe;else{if(Qe===16){for(J=Oe+2;G<J;){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}if(Q>>>=Oe,G-=Oe,P.have===0){M.msg="invalid bit length repeat",P.mode=30;break}ue=P.lens[P.have-1],se=3+(3&Q),Q>>>=2,G-=2}else if(Qe===17){for(J=Oe+3;G<J;){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}G-=Oe,ue=0,se=3+(7&(Q>>>=Oe)),Q>>>=3,G-=3}else{for(J=Oe+7;G<J;){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}G-=Oe,ue=0,se=11+(127&(Q>>>=Oe)),Q>>>=7,G-=7}if(P.have+se>P.nlen+P.ndist){M.msg="invalid bit length repeat",P.mode=30;break}for(;se--;)P.lens[P.have++]=ue}}if(P.mode===30)break;if(P.lens[256]===0){M.msg="invalid code -- missing end-of-block",P.mode=30;break}if(P.lenbits=9,he={bits:P.lenbits},et=o(e,P.lens,0,P.nlen,P.lencode,0,P.work,he),P.lenbits=he.bits,et){M.msg="invalid literal/lengths set",P.mode=30;break}if(P.distbits=6,P.distcode=P.distdyn,he={bits:P.distbits},et=o(l,P.lens,P.nlen,P.ndist,P.distcode,0,P.work,he),P.distbits=he.bits,et){M.msg="invalid distances set",P.mode=30;break}if(P.mode=20,j===6)break e;case 20:P.mode=21;case 21:if(6<=z&&258<=V){M.next_out=K,M.avail_out=V,M.next_in=U,M.avail_in=z,P.hold=Q,P.bits=G,t(M,q),K=M.next_out,F=M.output,V=M.avail_out,U=M.next_in,X=M.input,z=M.avail_in,Q=P.hold,G=P.bits,P.mode===12&&(P.back=-1);break}for(P.back=0;Me=(Y=P.lencode[Q&(1<<P.lenbits)-1])>>>16&255,Qe=65535&Y,!((Oe=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}if(Me&&(240&Me)==0){for(Ve=Oe,ut=Me,Fe=Qe;Me=(Y=P.lencode[Fe+((Q&(1<<Ve+ut)-1)>>Ve)])>>>16&255,Qe=65535&Y,!(Ve+(Oe=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}Q>>>=Ve,G-=Ve,P.back+=Ve}if(Q>>>=Oe,G-=Oe,P.back+=Oe,P.length=Qe,Me===0){P.mode=26;break}if(32&Me){P.back=-1,P.mode=12;break}if(64&Me){M.msg="invalid literal/length code",P.mode=30;break}P.extra=15&Me,P.mode=22;case 22:if(P.extra){for(J=P.extra;G<J;){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}P.length+=Q&(1<<P.extra)-1,Q>>>=P.extra,G-=P.extra,P.back+=P.extra}P.was=P.length,P.mode=23;case 23:for(;Me=(Y=P.distcode[Q&(1<<P.distbits)-1])>>>16&255,Qe=65535&Y,!((Oe=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}if((240&Me)==0){for(Ve=Oe,ut=Me,Fe=Qe;Me=(Y=P.distcode[Fe+((Q&(1<<Ve+ut)-1)>>Ve)])>>>16&255,Qe=65535&Y,!(Ve+(Oe=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}Q>>>=Ve,G-=Ve,P.back+=Ve}if(Q>>>=Oe,G-=Oe,P.back+=Oe,64&Me){M.msg="invalid distance code",P.mode=30;break}P.offset=Qe,P.extra=15&Me,P.mode=24;case 24:if(P.extra){for(J=P.extra;G<J;){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}P.offset+=Q&(1<<P.extra)-1,Q>>>=P.extra,G-=P.extra,P.back+=P.extra}if(P.offset>P.dmax){M.msg="invalid distance too far back",P.mode=30;break}P.mode=25;case 25:if(V===0)break e;if(se=q-V,P.offset>se){if((se=P.offset-se)>P.whave&&P.sane){M.msg="invalid distance too far back",P.mode=30;break}re=se>P.wnext?(se-=P.wnext,P.wsize-se):P.wnext-se,se>P.length&&(se=P.length),xe=P.window}else xe=F,re=K-P.offset,se=P.length;for(V<se&&(se=V),V-=se,P.length-=se;F[K++]=xe[re++],--se;);P.length===0&&(P.mode=21);break;case 26:if(V===0)break e;F[K++]=P.length,V--,P.mode=21;break;case 27:if(P.wrap){for(;G<32;){if(z===0)break e;z--,Q|=X[U++]<<G,G+=8}if(q-=V,M.total_out+=q,P.total+=q,q&&(M.adler=P.check=P.flags?i(P.check,F,q,K-q):s(P.check,F,q,K-q)),q=V,(P.flags?Q:A(Q))!==P.check){M.msg="incorrect data check",P.mode=30;break}G=Q=0}P.mode=28;case 28:if(P.wrap&&P.flags){for(;G<32;){if(z===0)break e;z--,Q+=X[U++]<<G,G+=8}if(Q!==(4294967295&P.total)){M.msg="incorrect length check",P.mode=30;break}G=Q=0}P.mode=29;case 29:et=1;break e;case 30:et=-3;break e;case 31:return-4;case 32:default:return a}return M.next_out=K,M.avail_out=V,M.next_in=U,M.avail_in=z,P.hold=Q,P.bits=G,(P.wsize||q!==M.avail_out&&P.mode<30&&(P.mode<27||j!==4))&&k(M,M.output,M.next_out,q-M.avail_out)?(P.mode=31,-4):(te-=M.avail_in,q-=M.avail_out,M.total_in+=te,M.total_out+=q,P.total+=q,P.wrap&&q&&(M.adler=P.check=P.flags?i(P.check,F,q,M.next_out-q):s(P.check,F,q,M.next_out-q)),M.data_type=P.bits+(P.last?64:0)+(P.mode===12?128:0)+(P.mode===20||P.mode===15?256:0),(te==0&&q===0||j===4)&&et===r&&(et=-5),et)},d.inflateEnd=function(M){if(!M||!M.state)return a;var j=M.state;return j.window&&(j.window=null),M.state=null,r},d.inflateGetHeader=function(M,j){var P;return M&&M.state?(2&(P=M.state).wrap)==0?a:((P.head=j).done=!1,r):a},d.inflateSetDictionary=function(M,j){var P,X=j.length;return M&&M.state?(P=M.state).wrap!==0&&P.mode!==11?a:P.mode===11&&s(1,j,X,0)!==P.check?-3:k(M,j,X,X)?(P.mode=31,-4):(P.havedict=1,r):a},d.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(m,p,d){"use strict";var u=m("../utils/common"),s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],t=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];p.exports=function(e,l,r,a,c,h,g,A){var b,S,E,C,_,T,w,O,I,k=A.bits,M=0,j=0,P=0,X=0,F=0,U=0,K=0,z=0,V=0,Q=0,G=null,te=0,q=new u.Buf16(16),se=new u.Buf16(16),re=null,xe=0;for(M=0;M<=15;M++)q[M]=0;for(j=0;j<a;j++)q[l[r+j]]++;for(F=k,X=15;1<=X&&q[X]===0;X--);if(X<F&&(F=X),X===0)return c[h++]=20971520,c[h++]=20971520,A.bits=1,0;for(P=1;P<X&&q[P]===0;P++);for(F<P&&(F=P),M=z=1;M<=15;M++)if(z<<=1,(z-=q[M])<0)return-1;if(0<z&&(e===0||X!==1))return-1;for(se[1]=0,M=1;M<15;M++)se[M+1]=se[M]+q[M];for(j=0;j<a;j++)l[r+j]!==0&&(g[se[l[r+j]]++]=j);if(T=e===0?(G=re=g,19):e===1?(G=s,te-=257,re=i,xe-=257,256):(G=t,re=o,-1),M=P,_=h,K=j=Q=0,E=-1,C=(V=1<<(U=F))-1,e===1&&852<V||e===2&&592<V)return 1;for(;;){for(w=M-K,I=g[j]<T?(O=0,g[j]):g[j]>T?(O=re[xe+g[j]],G[te+g[j]]):(O=96,0),b=1<<M-K,P=S=1<<U;c[_+(Q>>K)+(S-=b)]=w<<24|O<<16|I|0,S!==0;);for(b=1<<M-1;Q&b;)b>>=1;if(b!==0?(Q&=b-1,Q+=b):Q=0,j++,--q[M]==0){if(M===X)break;M=l[r+g[j]]}if(F<M&&(Q&C)!==E){for(K===0&&(K=F),_+=P,z=1<<(U=M-K);U+K<X&&!((z-=q[U+K])<=0);)U++,z<<=1;if(V+=1<<U,e===1&&852<V||e===2&&592<V)return 1;c[E=Q&C]=F<<24|U<<16|_-h|0}}return Q!==0&&(c[_+Q]=M-K<<24|64<<16|0),A.bits=F,0}},{"../utils/common":41}],51:[function(m,p,d){"use strict";p.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(m,p,d){"use strict";var u=m("../utils/common"),s=0,i=1;function t(Y){for(var $=Y.length;0<=--$;)Y[$]=0}var o=0,e=29,l=256,r=l+1+e,a=30,c=19,h=2*r+1,g=15,A=16,b=7,S=256,E=16,C=17,_=18,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],w=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(r+2));t(k);var M=new Array(2*a);t(M);var j=new Array(512);t(j);var P=new Array(256);t(P);var X=new Array(e);t(X);var F,U,K,z=new Array(a);function V(Y,$,de,be,Ce){this.static_tree=Y,this.extra_bits=$,this.extra_base=de,this.elems=be,this.max_length=Ce,this.has_stree=Y&&Y.length}function Q(Y,$){this.dyn_tree=Y,this.max_code=0,this.stat_desc=$}function G(Y){return Y<256?j[Y]:j[256+(Y>>>7)]}function te(Y,$){Y.pending_buf[Y.pending++]=255&$,Y.pending_buf[Y.pending++]=$>>>8&255}function q(Y,$,de){Y.bi_valid>A-de?(Y.bi_buf|=$<<Y.bi_valid&65535,te(Y,Y.bi_buf),Y.bi_buf=$>>A-Y.bi_valid,Y.bi_valid+=de-A):(Y.bi_buf|=$<<Y.bi_valid&65535,Y.bi_valid+=de)}function se(Y,$,de){q(Y,de[2*$],de[2*$+1])}function re(Y,$){for(var de=0;de|=1&Y,Y>>>=1,de<<=1,0<--$;);return de>>>1}function xe(Y,$,de){var be,Ce,Be=new Array(g+1),fe=0;for(be=1;be<=g;be++)Be[be]=fe=fe+de[be-1]<<1;for(Ce=0;Ce<=$;Ce++){var we=Y[2*Ce+1];we!==0&&(Y[2*Ce]=re(Be[we]++,we))}}function Oe(Y){var $;for($=0;$<r;$++)Y.dyn_ltree[2*$]=0;for($=0;$<a;$++)Y.dyn_dtree[2*$]=0;for($=0;$<c;$++)Y.bl_tree[2*$]=0;Y.dyn_ltree[2*S]=1,Y.opt_len=Y.static_len=0,Y.last_lit=Y.matches=0}function Me(Y){8<Y.bi_valid?te(Y,Y.bi_buf):0<Y.bi_valid&&(Y.pending_buf[Y.pending++]=Y.bi_buf),Y.bi_buf=0,Y.bi_valid=0}function Qe(Y,$,de,be){var Ce=2*$,Be=2*de;return Y[Ce]<Y[Be]||Y[Ce]===Y[Be]&&be[$]<=be[de]}function Ve(Y,$,de){for(var be=Y.heap[de],Ce=de<<1;Ce<=Y.heap_len&&(Ce<Y.heap_len&&Qe($,Y.heap[Ce+1],Y.heap[Ce],Y.depth)&&Ce++,!Qe($,be,Y.heap[Ce],Y.depth));)Y.heap[de]=Y.heap[Ce],de=Ce,Ce<<=1;Y.heap[de]=be}function ut(Y,$,de){var be,Ce,Be,fe,we=0;if(Y.last_lit!==0)for(;be=Y.pending_buf[Y.d_buf+2*we]<<8|Y.pending_buf[Y.d_buf+2*we+1],Ce=Y.pending_buf[Y.l_buf+we],we++,be===0?se(Y,Ce,$):(se(Y,(Be=P[Ce])+l+1,$),(fe=T[Be])!==0&&q(Y,Ce-=X[Be],fe),se(Y,Be=G(--be),de),(fe=w[Be])!==0&&q(Y,be-=z[Be],fe)),we<Y.last_lit;);se(Y,S,$)}function Fe(Y,$){var de,be,Ce,Be=$.dyn_tree,fe=$.stat_desc.static_tree,we=$.stat_desc.has_stree,Re=$.stat_desc.elems,rt=-1;for(Y.heap_len=0,Y.heap_max=h,de=0;de<Re;de++)Be[2*de]!==0?(Y.heap[++Y.heap_len]=rt=de,Y.depth[de]=0):Be[2*de+1]=0;for(;Y.heap_len<2;)Be[2*(Ce=Y.heap[++Y.heap_len]=rt<2?++rt:0)]=1,Y.depth[Ce]=0,Y.opt_len--,we&&(Y.static_len-=fe[2*Ce+1]);for($.max_code=rt,de=Y.heap_len>>1;1<=de;de--)Ve(Y,Be,de);for(Ce=Re;de=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],Ve(Y,Be,1),be=Y.heap[1],Y.heap[--Y.heap_max]=de,Y.heap[--Y.heap_max]=be,Be[2*Ce]=Be[2*de]+Be[2*be],Y.depth[Ce]=(Y.depth[de]>=Y.depth[be]?Y.depth[de]:Y.depth[be])+1,Be[2*de+1]=Be[2*be+1]=Ce,Y.heap[1]=Ce++,Ve(Y,Be,1),2<=Y.heap_len;);Y.heap[--Y.heap_max]=Y.heap[1],function(St,ft){var He,er,ct,Kt,fr,Gt,Pt=ft.dyn_tree,Xt=ft.max_code,Ge=ft.stat_desc.static_tree,pe=ft.stat_desc.has_stree,oe=ft.stat_desc.extra_bits,lt=ft.stat_desc.extra_base,qe=ft.stat_desc.max_length,ge=0;for(Kt=0;Kt<=g;Kt++)St.bl_count[Kt]=0;for(Pt[2*St.heap[St.heap_max]+1]=0,He=St.heap_max+1;He<h;He++)qe<(Kt=Pt[2*Pt[2*(er=St.heap[He])+1]+1]+1)&&(Kt=qe,ge++),Pt[2*er+1]=Kt,Xt<er||(St.bl_count[Kt]++,fr=0,lt<=er&&(fr=oe[er-lt]),Gt=Pt[2*er],St.opt_len+=Gt*(Kt+fr),pe&&(St.static_len+=Gt*(Ge[2*er+1]+fr)));if(ge!==0){do{for(Kt=qe-1;St.bl_count[Kt]===0;)Kt--;St.bl_count[Kt]--,St.bl_count[Kt+1]+=2,St.bl_count[qe]--,ge-=2}while(0<ge);for(Kt=qe;Kt!==0;Kt--)for(er=St.bl_count[Kt];er!==0;)Xt<(ct=St.heap[--He])||(Pt[2*ct+1]!==Kt&&(St.opt_len+=(Kt-Pt[2*ct+1])*Pt[2*ct],Pt[2*ct+1]=Kt),er--)}}(Y,$),xe(Be,rt,Y.bl_count)}function ue(Y,$,de){var be,Ce,Be=-1,fe=$[1],we=0,Re=7,rt=4;for(fe===0&&(Re=138,rt=3),$[2*(de+1)+1]=65535,be=0;be<=de;be++)Ce=fe,fe=$[2*(be+1)+1],++we<Re&&Ce===fe||(we<rt?Y.bl_tree[2*Ce]+=we:Ce!==0?(Ce!==Be&&Y.bl_tree[2*Ce]++,Y.bl_tree[2*E]++):we<=10?Y.bl_tree[2*C]++:Y.bl_tree[2*_]++,Be=Ce,rt=(we=0)===fe?(Re=138,3):Ce===fe?(Re=6,3):(Re=7,4))}function et(Y,$,de){var be,Ce,Be=-1,fe=$[1],we=0,Re=7,rt=4;for(fe===0&&(Re=138,rt=3),be=0;be<=de;be++)if(Ce=fe,fe=$[2*(be+1)+1],!(++we<Re&&Ce===fe)){if(we<rt)for(;se(Y,Ce,Y.bl_tree),--we!=0;);else Ce!==0?(Ce!==Be&&(se(Y,Ce,Y.bl_tree),we--),se(Y,E,Y.bl_tree),q(Y,we-3,2)):we<=10?(se(Y,C,Y.bl_tree),q(Y,we-3,3)):(se(Y,_,Y.bl_tree),q(Y,we-11,7));Be=Ce,rt=(we=0)===fe?(Re=138,3):Ce===fe?(Re=6,3):(Re=7,4)}}t(z);var he=!1;function J(Y,$,de,be){q(Y,(o<<1)+(be?1:0),3),function(Ce,Be,fe,we){Me(Ce),we&&(te(Ce,fe),te(Ce,~fe)),u.arraySet(Ce.pending_buf,Ce.window,Be,fe,Ce.pending),Ce.pending+=fe}(Y,$,de,!0)}d._tr_init=function(Y){he||(function(){var $,de,be,Ce,Be,fe=new Array(g+1);for(Ce=be=0;Ce<e-1;Ce++)for(X[Ce]=be,$=0;$<1<<T[Ce];$++)P[be++]=Ce;for(P[be-1]=Ce,Ce=Be=0;Ce<16;Ce++)for(z[Ce]=Be,$=0;$<1<<w[Ce];$++)j[Be++]=Ce;for(Be>>=7;Ce<a;Ce++)for(z[Ce]=Be<<7,$=0;$<1<<w[Ce]-7;$++)j[256+Be++]=Ce;for(de=0;de<=g;de++)fe[de]=0;for($=0;$<=143;)k[2*$+1]=8,$++,fe[8]++;for(;$<=255;)k[2*$+1]=9,$++,fe[9]++;for(;$<=279;)k[2*$+1]=7,$++,fe[7]++;for(;$<=287;)k[2*$+1]=8,$++,fe[8]++;for(xe(k,r+1,fe),$=0;$<a;$++)M[2*$+1]=5,M[2*$]=re($,5);F=new V(k,T,l+1,r,g),U=new V(M,w,0,a,g),K=new V(new Array(0),O,0,c,b)}(),he=!0),Y.l_desc=new Q(Y.dyn_ltree,F),Y.d_desc=new Q(Y.dyn_dtree,U),Y.bl_desc=new Q(Y.bl_tree,K),Y.bi_buf=0,Y.bi_valid=0,Oe(Y)},d._tr_stored_block=J,d._tr_flush_block=function(Y,$,de,be){var Ce,Be,fe=0;0<Y.level?(Y.strm.data_type===2&&(Y.strm.data_type=function(we){var Re,rt=4093624447;for(Re=0;Re<=31;Re++,rt>>>=1)if(1&rt&&we.dyn_ltree[2*Re]!==0)return s;if(we.dyn_ltree[18]!==0||we.dyn_ltree[20]!==0||we.dyn_ltree[26]!==0)return i;for(Re=32;Re<l;Re++)if(we.dyn_ltree[2*Re]!==0)return i;return s}(Y)),Fe(Y,Y.l_desc),Fe(Y,Y.d_desc),fe=function(we){var Re;for(ue(we,we.dyn_ltree,we.l_desc.max_code),ue(we,we.dyn_dtree,we.d_desc.max_code),Fe(we,we.bl_desc),Re=c-1;3<=Re&&we.bl_tree[2*I[Re]+1]===0;Re--);return we.opt_len+=3*(Re+1)+5+5+4,Re}(Y),Ce=Y.opt_len+3+7>>>3,(Be=Y.static_len+3+7>>>3)<=Ce&&(Ce=Be)):Ce=Be=de+5,de+4<=Ce&&$!==-1?J(Y,$,de,be):Y.strategy===4||Be===Ce?(q(Y,2+(be?1:0),3),ut(Y,k,M)):(q(Y,4+(be?1:0),3),function(we,Re,rt,St){var ft;for(q(we,Re-257,5),q(we,rt-1,5),q(we,St-4,4),ft=0;ft<St;ft++)q(we,we.bl_tree[2*I[ft]+1],3);et(we,we.dyn_ltree,Re-1),et(we,we.dyn_dtree,rt-1)}(Y,Y.l_desc.max_code+1,Y.d_desc.max_code+1,fe+1),ut(Y,Y.dyn_ltree,Y.dyn_dtree)),Oe(Y),be&&Me(Y)},d._tr_tally=function(Y,$,de){return Y.pending_buf[Y.d_buf+2*Y.last_lit]=$>>>8&255,Y.pending_buf[Y.d_buf+2*Y.last_lit+1]=255&$,Y.pending_buf[Y.l_buf+Y.last_lit]=255&de,Y.last_lit++,$===0?Y.dyn_ltree[2*de]++:(Y.matches++,$--,Y.dyn_ltree[2*(P[de]+l+1)]++,Y.dyn_dtree[2*G($)]++),Y.last_lit===Y.lit_bufsize-1},d._tr_align=function(Y){q(Y,2,3),se(Y,S,k),function($){$.bi_valid===16?(te($,$.bi_buf),$.bi_buf=0,$.bi_valid=0):8<=$.bi_valid&&($.pending_buf[$.pending++]=255&$.bi_buf,$.bi_buf>>=8,$.bi_valid-=8)}(Y)}},{"../utils/common":41}],53:[function(m,p,d){"use strict";p.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(m,p,d){(function(u){!function(s,i){"use strict";if(!s.setImmediate){var t,o,e,l,r=1,a={},c=!1,h=s.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(s);g=g&&g.setTimeout?g:s,t={}.toString.call(s.process)==="[object process]"?function(E){x.nextTick(function(){b(E)})}:function(){if(s.postMessage&&!s.importScripts){var E=!0,C=s.onmessage;return s.onmessage=function(){E=!1},s.postMessage("","*"),s.onmessage=C,E}}()?(l="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",S,!1):s.attachEvent("onmessage",S),function(E){s.postMessage(l+E,"*")}):s.MessageChannel?((e=new MessageChannel).port1.onmessage=function(E){b(E.data)},function(E){e.port2.postMessage(E)}):h&&"onreadystatechange"in h.createElement("script")?(o=h.documentElement,function(E){var C=h.createElement("script");C.onreadystatechange=function(){b(E),C.onreadystatechange=null,o.removeChild(C),C=null},o.appendChild(C)}):function(E){setTimeout(b,0,E)},g.setImmediate=function(E){typeof E!="function"&&(E=new Function(""+E));for(var C=new Array(arguments.length-1),_=0;_<C.length;_++)C[_]=arguments[_+1];var T={callback:E,args:C};return a[r]=T,t(r),r++},g.clearImmediate=A}function A(E){delete a[E]}function b(E){if(c)setTimeout(b,0,E);else{var C=a[E];if(C){c=!0;try{!function(_){var T=_.callback,w=_.args;switch(w.length){case 0:T();break;case 1:T(w[0]);break;case 2:T(w[0],w[1]);break;case 3:T(w[0],w[1],w[2]);break;default:T.apply(i,w)}}(C)}finally{A(E),c=!1}}}}function S(E){E.source===s&&typeof E.data=="string"&&E.data.indexOf(l)===0&&b(+E.data.slice(l.length))}}(typeof self=="undefined"?u===void 0?this:u:self)}).call(this,typeof f!="undefined"?f:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}).call(this,n("HDXh").Buffer,n("yLpj"),n("Q2Ig"))},xRUu:function(R,D,n){n("hJvP"),n("hFmY"),n("sAZ8")},xSIq:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};D.default=y},xSat:function(R,D){var n={axisPointer:1,tooltip:1,brush:1};function y(f,x,v){var m=x.getComponentByElement(f.topTarget),p=m&&m.coordinateSystem;return m&&m!==v&&!n[m.mainType]&&p&&p.model!==v}D.onIrrelevantElement=y},xTNl:function(R,D){var n=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],y={color:n,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],n]};R.exports=y},xYSL:function(R,D){function n(y,f){return y.has(f)}R.exports=n},xb2K:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("5yev")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="RedoOutlined";var i=v.forwardRef(s);D.default=i},xiyX:function(R,D,n){var y=n("bYtY"),f=n("bLfw"),x=n("nkfE"),v=n("ICMv"),m=f.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),p={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};function d(s,i){return i.type||(i.data?"category":"value")}y.merge(m.prototype,v),x("single",m,d,p);var u=m;R.exports=u},xlC8:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=y;function y(f,x,v,m){for(var p=f&65535|0,d=f>>>16&65535|0,u=0;v!==0;){u=v>2e3?2e3:v,v-=u;do p=p+x[m++]|0,d=d+p|0;while(--u);p%=65521,d%=65521}return p|d<<16|0}},xvlK:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="PlusOutlined";var d=D.a=f.forwardRef(p)},xzDV:function(R,D,n){},"y+Vt":function(R,D,n){var y=n("Gev7"),f=n("bYtY"),x=n("IMiH"),v=n("2DNl"),m=n("3C/r"),p=m.prototype.getCanvasPattern,d=Math.abs,u=new x(!0);function s(t){y.call(this,t),this.path=null}s.prototype={constructor:s,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(o,e){var l=this.style,r=this.path||u,a=l.hasStroke(),c=l.hasFill(),h=l.fill,g=l.stroke,A=c&&!!h.colorStops,b=a&&!!g.colorStops,S=c&&!!h.image,E=a&&!!g.image;if(l.bind(o,this,e),this.setTransform(o),this.__dirty){var C;A&&(C=C||this.getBoundingRect(),this._fillGradient=l.getGradient(o,h,C)),b&&(C=C||this.getBoundingRect(),this._strokeGradient=l.getGradient(o,g,C))}A?o.fillStyle=this._fillGradient:S&&(o.fillStyle=p.call(h,o)),b?o.strokeStyle=this._strokeGradient:E&&(o.strokeStyle=p.call(g,o));var _=l.lineDash,T=l.lineDashOffset,w=!!o.setLineDash,O=this.getGlobalScale();if(r.setScale(O[0],O[1],this.segmentIgnoreThreshold),this.__dirtyPath||_&&!w&&a?(r.beginPath(o),_&&!w&&(r.setLineDash(_),r.setLineDashOffset(T)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(o.beginPath(),this.path.rebuildPath(o)),c)if(l.fillOpacity!=null){var I=o.globalAlpha;o.globalAlpha=l.fillOpacity*l.opacity,r.fill(o),o.globalAlpha=I}else r.fill(o);if(_&&w&&(o.setLineDash(_),o.lineDashOffset=T),a)if(l.strokeOpacity!=null){var I=o.globalAlpha;o.globalAlpha=l.strokeOpacity*l.opacity,r.stroke(o),o.globalAlpha=I}else r.stroke(o);_&&w&&o.setLineDash([]),l.text!=null&&(this.restoreTransform(o),this.drawRectText(o,this.getBoundingRect()))},buildPath:function(o,e,l){},createPathProxy:function(){this.path=new x},getBoundingRect:function(){var o=this._rect,e=this.style,l=!o;if(l){var r=this.path;r||(r=this.path=new x),this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape,!1)),o=r.getBoundingRect()}if(this._rect=o,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=o.clone());if(this.__dirty||l){a.copy(o);var c=e.lineWidth,h=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(c=Math.max(c,this.strokeContainThreshold||4)),h>1e-10&&(a.width+=c/h,a.height+=c/h,a.x-=c/h/2,a.y-=c/h/2)}return a}return o},contain:function(o,e){var l=this.transformCoordToLocal(o,e),r=this.getBoundingRect(),a=this.style;if(o=l[0],e=l[1],r.contain(o,e)){var c=this.path.data;if(a.hasStroke()){var h=a.lineWidth,g=a.strokeNoScale?this.getLineScale():1;if(g>1e-10&&(a.hasFill()||(h=Math.max(h,this.strokeContainThreshold)),v.containStroke(c,h/g,o,e)))return!0}if(a.hasFill())return v.contain(c,o,e)}return!1},dirty:function(o){o==null&&(o=!0),o&&(this.__dirtyPath=o,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(o){return this.animate("shape",o)},attrKV:function(o,e){o==="shape"?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):y.prototype.attrKV.call(this,o,e)},setShape:function(o,e){var l=this.shape;if(l){if(f.isObject(o))for(var r in o)o.hasOwnProperty(r)&&(l[r]=o[r]);else l[o]=e;this.dirty(!0)}return this},getLineScale:function(){var o=this.transform;return o&&d(o[0]-1)>1e-10&&d(o[3]-1)>1e-10?Math.sqrt(d(o[0]*o[3]-o[2]*o[1])):1}},s.extend=function(t){var o=function(r){s.call(this,r),t.style&&this.style.extendFrom(t.style,!1);var a=t.shape;if(a){this.shape=this.shape||{};var c=this.shape;for(var h in a)!c.hasOwnProperty(h)&&a.hasOwnProperty(h)&&(c[h]=a[h])}t.init&&t.init.call(this,r)};f.inherits(o,s);for(var e in t)e!=="style"&&e!=="shape"&&(o.prototype[e]=t[e]);return o},f.inherits(s,y);var i=s;R.exports=i},"y+lR":function(R,D,n){var y=n("bYtY"),f=n("mFDi"),x=n("z35g");function v(p){x.call(this,p)}v.prototype={constructor:v,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(p){var d=this.getAxis("x"),u=this.getAxis("y");return d.contain(d.toLocalCoord(p[0]))&&u.contain(u.toLocalCoord(p[1]))},containData:function(p){return this.getAxis("x").containData(p[0])&&this.getAxis("y").containData(p[1])},dataToPoint:function(p,d,u){var s=this.getAxis("x"),i=this.getAxis("y");return u=u||[],u[0]=s.toGlobalCoord(s.dataToCoord(p[0])),u[1]=i.toGlobalCoord(i.dataToCoord(p[1])),u},clampData:function(p,d){var u=this.getAxis("x").scale,s=this.getAxis("y").scale,i=u.getExtent(),t=s.getExtent(),o=u.parse(p[0]),e=s.parse(p[1]);return d=d||[],d[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),d[1]=Math.min(Math.max(Math.min(t[0],t[1]),e),Math.max(t[0],t[1])),d},pointToData:function(p,d){var u=this.getAxis("x"),s=this.getAxis("y");return d=d||[],d[0]=u.coordToData(u.toLocalCoord(p[0])),d[1]=s.coordToData(s.toLocalCoord(p[1])),d},getOtherAxis:function(p){return this.getAxis(p.dim==="x"?"y":"x")},getArea:function(){var p=this.getAxis("x").getGlobalExtent(),d=this.getAxis("y").getGlobalExtent(),u=Math.min(p[0],p[1]),s=Math.min(d[0],d[1]),i=Math.max(p[0],p[1])-u,t=Math.max(d[0],d[1])-s,o=new f(u,s,i,t);return o}},y.inherits(v,x);var m=v;R.exports=m},"y0+3":function(R,D,n){"use strict";n.d(D,"a",function(){return t}),n.d(D,"b",function(){return e});var y=/margin|padding|width|height|max|min|offset/,f={left:!0,top:!0},x={cssFloat:1,styleFloat:1,float:1};function v(l){return l.nodeType===1?l.ownerDocument.defaultView.getComputedStyle(l,null):{}}function m(l,r,a){if(r=r.toLowerCase(),a==="auto"){if(r==="height")return l.offsetHeight;if(r==="width")return l.offsetWidth}return r in f||(f[r]=y.test(r)),f[r]?parseFloat(a)||0:a}function p(l,r){var a=arguments.length,c=v(l);return r=x[r]?"cssFloat"in l.style?"cssFloat":"styleFloat":r,a===1?c:m(l,r,c[r]||l.style[r])}function d(l,r,a){var c=arguments.length;if(r=x[r]?"cssFloat"in l.style?"cssFloat":"styleFloat":r,c===3)return typeof a=="number"&&y.test(r)&&(a="".concat(a,"px")),l.style[r]=a,a;for(var h in r)r.hasOwnProperty(h)&&d(l,h,r[h]);return v(l)}function u(l){return l===document.body?document.documentElement.clientWidth:l.offsetWidth}function s(l){return l===document.body?window.innerHeight||document.documentElement.clientHeight:l.offsetHeight}function i(){var l=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:l,height:r}}function t(){var l=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:l,height:r}}function o(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function e(l){var r=l.getBoundingClientRect(),a=document.documentElement;return{left:r.left+(window.pageXOffset||a.scrollLeft)-(a.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||a.scrollTop)-(a.clientTop||document.body.clientTop||0)}}},y1pI:function(R,D,n){var y=n("ljhN");function f(x,v){for(var m=x.length;m--;)if(y(x[m][0],v))return m;return-1}R.exports=f},y23F:function(R,D){function n(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}n.prototype={constructor:n,_dragStart:function(v){for(var m=v.target;m&&!m.draggable;)m=m.parent;m&&(this._draggingTarget=m,m.dragging=!0,this._x=v.offsetX,this._y=v.offsetY,this.dispatchToElement(y(m,v),"dragstart",v.event))},_drag:function(v){var m=this._draggingTarget;if(m){var p=v.offsetX,d=v.offsetY,u=p-this._x,s=d-this._y;this._x=p,this._y=d,m.drift(u,s,v),this.dispatchToElement(y(m,v),"drag",v.event);var i=this.findHover(p,d,m).target,t=this._dropTarget;this._dropTarget=i,m!==i&&(t&&i!==t&&this.dispatchToElement(y(t,v),"dragleave",v.event),i&&i!==t&&this.dispatchToElement(y(i,v),"dragenter",v.event))}},_dragEnd:function(v){var m=this._draggingTarget;m&&(m.dragging=!1),this.dispatchToElement(y(m,v),"dragend",v.event),this._dropTarget&&this.dispatchToElement(y(this._dropTarget,v),"drop",v.event),this._draggingTarget=null,this._dropTarget=null}};function y(x,v){return{target:x,topTarget:v&&v.topTarget}}var f=n;R.exports=f},y2l5:function(R,D,n){var y=n("MwEJ"),f=n("T4UG"),x=f.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(v,m){return y(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var v=this.option.progressive;return v==null?this.option.large?5e3:this.get("progressive"):v},getProgressiveThreshold:function(){var v=this.option.progressiveThreshold;return v==null?this.option.large?1e4:this.get("progressiveThreshold"):v},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});R.exports=x},y3Kf:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="UpOutlined";var d=D.a=f.forwardRef(p)},y3NT:function(R,D,n){var y=n("OELB"),f=y.parsePercent,x=n("bYtY"),v=Math.PI/180;function m(u,s,i,t){s.eachSeriesByType(u,function(o){var e=o.get("center"),l=o.get("radius");x.isArray(l)||(l=[0,l]),x.isArray(e)||(e=[e,e]);var r=i.getWidth(),a=i.getHeight(),c=Math.min(r,a),h=f(e[0],r),g=f(e[1],a),A=f(l[0],c/2),b=f(l[1],c/2),S=-o.get("startAngle")*v,E=o.get("minAngle")*v,C=o.getData().tree.root,_=o.getViewRoot(),T=_.depth,w=o.get("sort");w!=null&&p(_,w);var O=0;x.each(_.children,function(G){!isNaN(G.getValue())&&O++});var I=_.getValue(),k=Math.PI/(I||O)*2,M=_.depth>0,j=_.height-(M?-1:1),P=(b-A)/(j||1),X=o.get("clockwise"),F=o.get("stillShowZeroSum"),U=X?1:-1,K=function(G,te){if(!G)return;var q=te;if(G!==C){var se=G.getValue(),re=I===0&&F?k:se*k;re<E&&(re=E),q=te+U*re;var xe=G.depth-T-(M?-1:1),Oe=A+P*xe,Me=A+P*(xe+1),Qe=G.getModel();Qe.get("r0")!=null&&(Oe=f(Qe.get("r0"),c/2)),Qe.get("r")!=null&&(Me=f(Qe.get("r"),c/2)),G.setLayout({angle:re,startAngle:te,endAngle:q,clockwise:X,cx:h,cy:g,r0:Oe,r:Me})}if(G.children&&G.children.length){var Ve=0;x.each(G.children,function(ut){Ve+=K(ut,te+Ve)})}return q-te};if(M){var z=A,V=A+P,Q=Math.PI*2;C.setLayout({angle:Q,startAngle:S,endAngle:S+Q,clockwise:X,cx:h,cy:g,r0:z,r:V})}K(_,S)})}function p(u,s){var i=u.children||[];u.children=d(i,s),i.length&&x.each(u.children,function(t){p(t,s)})}function d(u,s){if(typeof s=="function")return u.sort(s);var i=s==="asc";return u.sort(function(t,o){var e=(t.getValue()-o.getValue())*(i?1:-1);return e===0?(t.dataIndex-o.dataIndex)*(i?-1:1):e})}R.exports=m},y3Yb:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("HBhm")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="PaperClipOutlined";var i=v.forwardRef(s);D.default=i},"y4/Y":function(R,D,n){var y=n("ProS"),f=n("bYtY"),x=n("zTMp"),v=n("62sa");n("SKx+"),n("1LEl"),n("Sp2Z"),y.registerPreprocessor(function(m){if(m){(!m.axisPointer||m.axisPointer.length===0)&&(m.axisPointer={});var p=m.axisPointer.link;p&&!f.isArray(p)&&(m.axisPointer.link=[p])}}),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,function(m,p){m.getComponent("axisPointer").coordSysAxesInfo=x.collect(m,p)}),y.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},v)},y7Aq:function(R,D,n){var y=n("bYtY"),f=n("+TT/"),x=f.getLayoutRect;function v(p,d,u){var s=p.option,i=s.align;if(i!=null&&i!=="auto")return i;for(var t={width:d.getWidth(),height:d.getHeight()},o=s.orient==="horizontal"?1:0,e=[["left","right","width"],["top","bottom","height"]],l=e[o],r=[0,null,10],a={},c=0;c<3;c++)a[e[1-o][c]]=r[c],a[l[c]]=c===2?u[0]:s[l[c]];var h=[["x","width",3],["y","height",0]][o],g=x(a,t,s.padding);return l[(g.margin[h[2]]||0)+g[h[0]]+g[h[1]]*.5<t[h[1]]*.5?0:1]}function m(p,d){return y.each(p||[],function(u){u.dataIndex!=null&&(u.dataIndexInside=u.dataIndex,u.dataIndex=null),u.highlightKey="visualMap"+(d?d.componentIndex:"")}),p}D.getItemAlign=v,D.makeHighDownBatch=m},y8nQ:function(R,D,n){"use strict";var y=n("cIOH"),f=n.n(y),x=n("gwTy"),v=n.n(x),m=n("1GLa")},yEEn:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="ArrowDownOutlined";var d=D.a=f.forwardRef(p)},yGk4:function(R,D,n){var y=n("Cwc5"),f=n("Kz5y"),x=y(f,"Set");R.exports=x},yO87:function(R,D,n){var y=n("bYtY"),f=n("oVpE"),x=f.createSymbol,v=n("IwbS"),m=v.Group,p=n("OELB"),d=p.parsePercent,u=n("FBjb"),s=3;function i(r){return y.isArray(r)||(r=[+r,+r]),r}function t(r,a){var c=a.rippleEffectColor||a.color;r.eachChild(function(h){h.attr({z:a.z,zlevel:a.zlevel,style:{stroke:a.brushType==="stroke"?c:null,fill:a.brushType==="fill"?c:null}})})}function o(r,a){m.call(this);var c=new u(r,a),h=new m;this.add(c),this.add(h),h.beforeUpdate=function(){this.attr(c.getScale())},this.updateData(r,a)}var e=o.prototype;e.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.startEffectAnimation=function(r){for(var a=r.symbolType,c=r.color,h=this.childAt(1),g=0;g<s;g++){var A=x(a,-1,-1,2,2,c);A.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var b=-g/s*r.period+r.effectOffset;A.animate("",!0).when(r.period,{scale:[r.rippleScale/2,r.rippleScale/2]}).delay(b).start(),A.animateStyle(!0).when(r.period,{opacity:0}).delay(b).start(),h.add(A)}t(h,r)},e.updateEffectAnimation=function(r){for(var a=this._effectCfg,c=this.childAt(1),h=["symbolType","period","rippleScale"],g=0;g<h.length;g++){var A=h[g];if(a[A]!==r[A]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}t(c,r)},e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.updateData=function(r,a){var c=r.hostModel;this.childAt(0).updateData(r,a);var h=this.childAt(1),g=r.getItemModel(a),A=r.getItemVisual(a,"symbol"),b=i(r.getItemVisual(a,"symbolSize")),S=r.getItemVisual(a,"color");h.attr("scale",b),h.traverse(function(k){k.attr({fill:S})});var E=g.getShallow("symbolOffset");if(E){var C=h.position;C[0]=d(E[0],b[0]),C[1]=d(E[1],b[1])}var _=r.getItemVisual(a,"symbolRotate");h.rotation=(_||0)*Math.PI/180||0;var T={};if(T.showEffectOn=c.get("showEffectOn"),T.rippleScale=g.get("rippleEffect.scale"),T.brushType=g.get("rippleEffect.brushType"),T.period=g.get("rippleEffect.period")*1e3,T.effectOffset=a/r.count(),T.z=g.getShallow("z")||0,T.zlevel=g.getShallow("zlevel")||0,T.symbolType=A,T.color=S,T.rippleEffectColor=g.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),T.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(T):this.startEffectAnimation(T),this._effectCfg=T;else{this._effectCfg=null,this.stopEffectAnimation();var w=this.childAt(0),O=function(){w.highlight(),T.showEffectOn!=="render"&&this.startEffectAnimation(T)},I=function(){w.downplay(),T.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",O,this).on("mouseout",I,this).on("emphasis",O,this).on("normal",I,this)}this._effectCfg=T},e.fadeOut=function(r){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),r&&r()},y.inherits(o,m);var l=o;R.exports=l},yS9w:function(R,D,n){var y=n("MEGo"),f=y.parseSVG,x=y.makeViewBoxTransform,v=n("4fz+"),m=n("x6Kt"),p=n("bYtY"),d=p.assert,u=p.createHashMap,s=n("mFDi"),i=n("4NO4"),t=i.makeInner,o=t(),e={load:function(r,a){var c=o(a).originRoot;if(c)return{root:c,boundingRect:o(a).boundingRect};var h=l(a);return o(a).originRoot=h.root,o(a).boundingRect=h.boundingRect,h},makeGraphic:function(r,a,c){var h=o(a),g=h.rootMap||(h.rootMap=u()),A=g.get(c);if(A)return A;var b=h.originRoot,S=h.boundingRect;return h.originRootHostKey?A=l(a,S).root:(h.originRootHostKey=c,A=b),g.set(c,A)},removeGraphic:function(r,a,c){var h=o(a),g=h.rootMap;g&&g.removeKey(c),c===h.originRootHostKey&&(h.originRootHostKey=null)}};function l(r,a){var c=r.svgXML,h,g;try{h=c&&f(c,{ignoreViewBox:!0,ignoreRootClip:!0})||{},g=h.root,d(g!=null)}catch(_){throw new Error(`Invalid svg format
|
|
|
`+_.message)}var A=h.width,b=h.height,S=h.viewBoxRect;if(a||(a=A==null||b==null?g.getBoundingRect():new s(0,0,0,0),A!=null&&(a.width=A),b!=null&&(a.height=b)),S){var E=x(S,a.width,a.height),C=g;g=new v,g.add(C),C.scale=E.scale,C.position=E.position}return g.setClipPath(new m({shape:a.plain()})),{root:g,boundingRect:a}}R.exports=e},yWXo:function(R,D,n){var y=n("IwbS"),f=n("oVpE"),x=f.createSymbol,v=n("OS9S"),m=4,p=y.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(i,t){var o=t.points,e=t.size,l=this.symbolProxy,r=l.shape,a=i.getContext?i.getContext():i,c=a&&e[0]<m;if(c)return;for(var h=0;h<o.length;){var g=o[h++],A=o[h++];if(isNaN(g)||isNaN(A))continue;if(this.softClipShape&&!this.softClipShape.contain(g,A))continue;r.x=g-e[0]/2,r.y=A-e[1]/2,r.width=e[0],r.height=e[1],l.buildPath(i,r,!0)}},afterBrush:function(i){var t=this.shape,o=t.points,e=t.size,l=e[0]<m;if(!l)return;this.setTransform(i);for(var r=0;r<o.length;){var a=o[r++],c=o[r++];if(isNaN(a)||isNaN(c))continue;if(this.softClipShape&&!this.softClipShape.contain(a,c))continue;i.fillRect(a-e[0]/2,c-e[1]/2,e[0],e[1])}this.restoreTransform(i)},findDataIndex:function(i,t){for(var o=this.shape,e=o.points,l=o.size,r=Math.max(l[0],4),a=Math.max(l[1],4),c=e.length/2-1;c>=0;c--){var h=c*2,g=e[h]-r/2,A=e[h+1]-a/2;if(i>=g&&t>=A&&i<=g+r&&t<=A+a)return c}return-1}});function d(){this.group=new y.Group}var u=d.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(i,t){this.group.removeAll();var o=new p({rectHover:!0,cursor:"default"});o.setShape({points:i.getLayout("symbolPoints")}),this._setCommon(o,i,!1,t),this.group.add(o),this._incremental=null},u.updateLayout=function(i){if(this._incremental)return;var t=i.getLayout("symbolPoints");this.group.eachChild(function(o){if(o.startIndex!=null){var e=(o.endIndex-o.startIndex)*2,l=o.startIndex*4*2;t=new Float32Array(t.buffer,l,e)}o.setShape("points",t)})},u.incrementalPrepareUpdate=function(i){this.group.removeAll(),this._clearIncremental(),i.count()>2e6?(this._incremental||(this._incremental=new v({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(i,t,o){var e;this._incremental?(e=new p,this._incremental.addDisplayable(e,!0)):(e=new p({rectHover:!0,cursor:"default",startIndex:i.start,endIndex:i.end}),e.incremental=!0,this.group.add(e)),e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t,!!this._incremental,o)},u._setCommon=function(i,t,o,e){var l=t.hostModel;e=e||{};var r=t.getVisual("symbolSize");i.setShape("size",r instanceof Array?r:[r,r]),i.softClipShape=e.clipShape||null,i.symbolProxy=x(t.getVisual("symbol"),0,0,0,0),i.setColor=i.symbolProxy.setColor;var a=i.shape.size[0]<m;i.useStyle(l.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var c=t.getVisual("color");c&&i.setColor(c),o||(i.seriesIndex=l.seriesIndex,i.on("mousemove",function(h){i.dataIndex=null;var g=i.findDataIndex(h.offsetX,h.offsetY);g>=0&&(i.dataIndex=g+(i.startIndex||0))}))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._clearIncremental=function(){var i=this._incremental;i&&i.clearDisplaybles()};var s=d;R.exports=s},ycre:function(R,D,n){var y=n("711d"),f=y("length");R.exports=f},ye1Q:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="LoadingOutlined";var d=D.a=f.forwardRef(p)},ygfH:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};D.default=y},yik8:function(R,D,n){var y=n("bZqE"),f=y.eachAfter,x=y.eachBefore,v=n("Itpr"),m=v.init,p=v.firstWalk,d=v.secondWalk,u=v.separation,s=v.radialCoordinate,i=v.getViewRect;function t(e,l){e.eachSeriesByType("tree",function(r){o(r,l)})}function o(e,l){var r=i(e,l);e.layoutInfo=r;var a=e.get("layout"),c=0,h=0,g=null;a==="radial"?(c=2*Math.PI,h=Math.min(r.height,r.width)/2,g=u(function(j,P){return(j.parentNode===P.parentNode?1:2)/j.depth})):(c=r.width,h=r.height,g=u());var A=e.getData().tree.root,b=A.children[0];if(b){m(A),f(b,p,g),A.hierNode.modifier=-b.hierNode.prelim,x(b,d);var S=b,E=b,C=b;x(b,function(j){var P=j.getLayout().x;P<S.getLayout().x&&(S=j),P>E.getLayout().x&&(E=j),j.depth>C.depth&&(C=j)});var _=S===E?1:g(S,E)/2,T=_-S.getLayout().x,w=0,O=0,I=0,k=0;if(a==="radial")w=c/(E.getLayout().x+_+T),O=h/(C.depth-1||1),x(b,function(j){I=(j.getLayout().x+T)*w,k=(j.depth-1)*O;var P=s(I,k);j.setLayout({x:P.x,y:P.y,rawX:I,rawY:k},!0)});else{var M=e.getOrient();M==="RL"||M==="LR"?(O=h/(E.getLayout().x+_+T),w=c/(C.depth-1||1),x(b,function(j){k=(j.getLayout().x+T)*O,I=M==="LR"?(j.depth-1)*w:c-(j.depth-1)*w,j.setLayout({x:I,y:k},!0)})):(M==="TB"||M==="BT")&&(w=c/(E.getLayout().x+_+T),O=h/(C.depth-1||1),x(b,function(j){I=(j.getLayout().x+T)*w,k=M==="TB"?(j.depth-1)*O:h-(j.depth-1)*O,j.setLayout({x:I,y:k},!0)}))}}}R.exports=t},ynwM:function(R,D,n){var y=n("MFOe"),f=y.Global;R.exports={name:"oldFF-globalStorage",read:v,write:m,each:p,remove:d,clearAll:u};var x=f.globalStorage;function v(s){return x[s]}function m(s,i){x[s]=i}function p(s){for(var i=x.length-1;i>=0;i--){var t=x.key(i);s(x[t],t)}}function d(s){return x.removeItem(s)}function u(){p(function(s,i){delete x[s]})}},ypgQ:function(R,D,n){var y=n("bYtY"),f=n("4NO4"),x=n("bLfw"),v=y.each,m=y.clone,p=y.map,d=y.merge,u=/^(min|max)?(.+)$/;function s(a){this._api=a,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}s.prototype={constructor:s,setOption:function(a,c){a&&y.each(f.normalizeToArray(a.series),function(A){A&&A.data&&y.isTypedArray(A.data)&&y.setAsPrimitive(A.data)}),a=m(a);var h=this._optionBackup,g=i.call(this,a,c,!h);this._newBaseOption=g.baseOption,h?(l(h.baseOption,g.baseOption),g.timelineOptions.length&&(h.timelineOptions=g.timelineOptions),g.mediaList.length&&(h.mediaList=g.mediaList),g.mediaDefault&&(h.mediaDefault=g.mediaDefault)):this._optionBackup=g},mountOption:function(a){var c=this._optionBackup;return this._timelineOptions=p(c.timelineOptions,m),this._mediaList=p(c.mediaList,m),this._mediaDefault=m(c.mediaDefault),this._currentMediaIndices=[],m(a?c.baseOption:this._newBaseOption)},getTimelineOption:function(a){var c,h=this._timelineOptions;if(h.length){var g=a.getComponent("timeline");g&&(c=m(h[g.getCurrentIndex()],!0))}return c},getMediaOption:function(a){var c=this._api.getWidth(),h=this._api.getHeight(),g=this._mediaList,A=this._mediaDefault,b=[],S=[];if(!g.length&&!A)return S;for(var E=0,C=g.length;E<C;E++)t(g[E].query,c,h)&&b.push(E);return!b.length&&A&&(b=[-1]),b.length&&!e(b,this._currentMediaIndices)&&(S=p(b,function(_){return m(_===-1?A.option:g[_].option)})),this._currentMediaIndices=b,S}};function i(a,c,h){var g=[],A=[],b,S,E=a.timeline;if(a.baseOption&&(S=a.baseOption),(E||a.options)&&(S=S||{},g=(a.options||[]).slice()),a.media){S=S||{};var C=a.media;v(C,function(_){_&&_.option&&(_.query?A.push(_):b||(b=_))})}return S||(S=a),S.timeline||(S.timeline=E),v([S].concat(g).concat(y.map(A,function(_){return _.option})),function(_){v(c,function(T){T(_,h)})}),{baseOption:S,timelineOptions:g,mediaDefault:b,mediaList:A}}function t(a,c,h){var g={width:c,height:h,aspectratio:c/h},A=!0;return y.each(a,function(b,S){var E=S.match(u);if(!E||!E[1]||!E[2])return;var C=E[1],_=E[2].toLowerCase();o(g[_],b,C)||(A=!1)}),A}function o(a,c,h){return h==="min"?a>=c:h==="max"?a<=c:a===c}function e(a,c){return a.join(",")===c.join(",")}function l(a,c){c=c||{},v(c,function(h,g){if(h==null)return;var A=a[g];if(!x.hasClass(g))a[g]=d(A,h,!0);else{h=f.normalizeToArray(h),A=f.normalizeToArray(A);var b=f.mappingToExists(A,h);a[g]=p(b,function(S){return S.option&&S.exist?d(S.exist,S.option,!0):S.exist||S.option})}})}var r=s;R.exports=r},yxFR:function(R,D,n){var y=n("y+Vt"),f=n("nPnh"),x=f.subPixelOptimizeLine,v={},m=y.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(d,u){var s,i,t,o;this.subPixelOptimize?(x(v,u,this.style),s=v.x1,i=v.y1,t=v.x2,o=v.y2):(s=u.x1,i=u.y1,t=u.x2,o=u.y2);var e=u.percent;if(e===0)return;d.moveTo(s,i),e<1&&(t=s*(1-e)+t*e,o=i*(1-e)+o*e),d.lineTo(t,o)},pointAt:function(d){var u=this.shape;return[u.x1*(1-d)+u.x2*d,u.y1*(1-d)+u.y2*d]}});R.exports=m},z35g:function(R,D,n){var y=n("bYtY");function f(m){return this._axes[m]}var x=function(m){this._axes={},this._dimList=[],this.name=m||""};x.prototype={constructor:x,type:"cartesian",getAxis:function(m){return this._axes[m]},getAxes:function(){return y.map(this._dimList,f,this)},getAxesByScale:function(m){return m=m.toLowerCase(),y.filter(this.getAxes(),function(p){return p.scale.type===m})},addAxis:function(m){var p=m.dim;this._axes[p]=m,this._dimList.push(p)},dataToCoord:function(m){return this._dataCoordConvert(m,"dataToCoord")},coordToData:function(m){return this._dataCoordConvert(m,"coordToData")},_dataCoordConvert:function(m,p){for(var d=this._dimList,u=m instanceof Array?[]:{},s=0;s<d.length;s++){var i=d[s],t=this._axes[i];u[i]=t[p](m[i])}return u}};var v=x;R.exports=v},z7Xi:function(R,D,n){"use strict";var y=n("VTBJ"),f=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},v=x,m=n("6VBw"),p=function(s,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},s),{},{ref:i,icon:v}))};p.displayName="UploadOutlined";var d=D.a=f.forwardRef(p)},zAh6:function(R,D,n){"use strict";n.d(D,"a",function(){return m});var y=n("xEkU"),f=n.n(y),x=n("i6bk");function v(p,d,u,s){var i=u-d;return p/=s/2,p<1?i/2*p*p*p+d:i/2*((p-=2)*p*p+2)+d}function m(p){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=d.getContainer,s=u===void 0?function(){return window}:u,i=d.callback,t=d.duration,o=t===void 0?450:t,e=s(),l=Object(x.a)(e,!0),r=Date.now(),a=function c(){var h=Date.now(),g=h-r,A=v(g>o?o:g,l,p,o);Object(x.b)(e)?e.scrollTo(window.pageXOffset,A):e instanceof HTMLDocument||e.constructor.name==="HTMLDocument"?e.documentElement.scrollTop=A:e.scrollTop=A,g<o?f()(c):typeof i=="function"&&i()};f()(a)}},zDms:function(R,D,n){var y=n("bYtY"),f=n("OELB"),x=n("UOVi"),v=n("72pK"),m=y.each,p=f.asc,d=function(e,l,r,a){this._dimName=e,this._axisIndex=l,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=a,this._dataZoomModel=r};d.prototype={constructor:d,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],l=this.ecModel;return l.eachSeries(function(r){if(x.isCoordSupported(r.get("coordinateSystem"))){var a=this._dimName,c=l.queryComponents({mainType:a+"Axis",index:r.get(a+"AxisIndex"),id:r.get(a+"AxisId")})[0];this._axisIndex===(c&&c.componentIndex)&&e.push(r)}},this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e=this._dimName,l=this.ecModel,r=this.getAxisModel(),a=e==="x"||e==="y",c,h;a?(h="gridIndex",c=e==="x"?"y":"x"):(h="polarIndex",c=e==="angle"?"radius":"angle");var g;return l.eachComponent(c+"Axis",function(A){(A.get(h)||0)===(r.get(h)||0)&&(g=A)}),g},getMinMaxSpan:function(){return y.clone(this._minMaxSpan)},calculateDataWindow:function(e){var l=this._dataExtent,r=this.getAxisModel(),a=r.axis.scale,c=this._dataZoomModel.getRangePropMode(),h=[0,100],g=[],A=[],b;m(["start","end"],function(C,_){var T=e[C],w=e[C+"Value"];c[_]==="percent"?(T==null&&(T=h[_]),w=a.parse(f.linearMap(T,h,l))):(b=!0,w=w==null?l[_]:a.parse(w),T=f.linearMap(w,l,h)),A[_]=w,g[_]=T}),p(A),p(g);var S=this._minMaxSpan;b?E(A,g,l,h,!1):E(g,A,h,l,!0);function E(C,_,T,w,O){var I=O?"Span":"ValueSpan";v(0,C,T,"all",S["min"+I],S["max"+I]);for(var k=0;k<2;k++)_[k]=f.linearMap(C[k],T,w,!0),O&&(_[k]=a.parse(_[k]))}return{valueWindow:A,percentWindow:g}},reset:function(e){if(e!==this._dataZoomModel)return;var l=this.getTargetSeriesModels();this._dataExtent=u(this,this._dimName,l),t(this);var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,i(this)},restore:function(e){if(e!==this._dataZoomModel)return;this._valueWindow=this._percentWindow=null,i(this,!0)},filterData:function(e,l){if(e!==this._dataZoomModel)return;var r=this._dimName,a=this.getTargetSeriesModels(),c=e.get("filterMode"),h=this._valueWindow;if(c==="none")return;m(a,function(A){var b=A.getData(),S=b.mapDimension(r,!0);if(!S.length)return;c==="weakFilter"?b.filterSelf(function(E){for(var C,_,T,w=0;w<S.length;w++){var O=b.get(S[w],E),I=!isNaN(O),k=O<h[0],M=O>h[1];if(I&&!k&&!M)return!0;I&&(T=!0),k&&(C=!0),M&&(_=!0)}return T&&C&&_}):m(S,function(E){if(c==="empty")A.setData(b=b.map(E,function(_){return g(_)?_:NaN}));else{var C={};C[E]=h,b.selectRange(C)}}),m(S,function(E){b.setApproximateExtent(h,E)})});function g(A){return A>=h[0]&&A<=h[1]}}};function u(e,l,r){var a=[Infinity,-Infinity];return m(r,function(c){var h=c.getData();h&&m(h.mapDimension(l,!0),function(g){var A=h.getApproximateExtent(g);A[0]<a[0]&&(a[0]=A[0]),A[1]>a[1]&&(a[1]=A[1])})}),a[1]<a[0]&&(a=[NaN,NaN]),s(e,a),a}function s(e,l){var r=e.getAxisModel(),a=r.getMin(!0),c=r.get("type")==="category",h=c&&r.getCategories().length;a!=null&&a!=="dataMin"&&typeof a!="function"?l[0]=a:c&&(l[0]=h>0?0:NaN);var g=r.getMax(!0);return g!=null&&g!=="dataMax"&&typeof g!="function"?l[1]=g:c&&(l[1]=h>0?h-1:NaN),r.get("scale",!0)||(l[0]>0&&(l[0]=0),l[1]<0&&(l[1]=0)),l}function i(e,l){var r=e.getAxisModel(),a=e._percentWindow,c=e._valueWindow;if(!a)return;var h=f.getPixelPrecision(c,[0,500]);h=Math.min(h,20);var g=l||a[0]===0&&a[1]===100;r.setRange(g?null:+c[0].toFixed(h),g?null:+c[1].toFixed(h))}function t(e){var l=e._minMaxSpan={},r=e._dataZoomModel,a=e._dataExtent;m(["min","max"],function(c){var h=r.get(c+"Span"),g=r.get(c+"ValueSpan");g!=null&&(g=e.getAxisModel().axis.scale.parse(g)),g!=null?h=f.linearMap(a[0]+g,a,[0,100],!0):h!=null&&(g=f.linearMap(h,[0,100],a,!0)-a[0]),l[c+"Span"]=h,l[c+"ValueSpan"]=g})}var o=d;R.exports=o},zM3Q:function(R,D,n){var y=n("4NO4"),f=y.makeInner;function x(){var v=f();return function(m){var p=v(m),d=m.pipelineContext,u=p.large,s=p.progressiveRender,i=p.large=d&&d.large,t=p.progressiveRender=d&&d.progressiveRender;return!!(u^i||s^t)&&"reset"}}R.exports=x},zRKj:function(R,D,n){n("Ae16"),n("Sp2Z"),n("y4/Y")},zTMp:function(R,D,n){var y=n("bYtY"),f=n("Qxkt"),x=y.each,v=y.curry;function m(a,c){var h={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return p(h,a,c),h.seriesInvolved&&u(h,a),h}function p(a,c,h){var g=c.getComponent("tooltip"),A=c.getComponent("axisPointer"),b=A.get("link",!0)||[],S=[];x(h.getCoordinateSystems(),function(E){if(!E.axisPointerEnabled)return;var C=r(E.model),_=a.coordSysAxesInfo[C]={};a.coordSysMap[C]=E;var T=E.model,w=T.getModel("tooltip",g);if(x(E.getAxes(),v(M,!1,null)),E.getTooltipAxes&&g&&w.get("show")){var O=w.get("trigger")==="axis",I=w.get("axisPointer.type")==="cross",k=E.getTooltipAxes(w.get("axisPointer.axis"));(O||I)&&x(k.baseAxes,v(M,I?"cross":!0,O)),I&&x(k.otherAxes,v(M,"cross",!1))}function M(j,P,X){var F=X.model.getModel("axisPointer",A),U=F.get("show");if(!U||U==="auto"&&!j&&!l(F))return;P==null&&(P=F.get("triggerTooltip")),F=j?d(X,w,A,c,j,P):F;var K=F.get("snap"),z=r(X.model),V=P||K||X.type==="category",Q=a.axesInfo[z]={key:z,axis:X,coordSys:E,axisPointerModel:F,triggerTooltip:P,involveSeries:V,snap:K,useHandle:l(F),seriesModels:[]};_[z]=Q,a.seriesInvolved|=V;var G=s(b,X);if(G!=null){var te=S[G]||(S[G]={axesInfo:{}});te.axesInfo[z]=Q,te.mapper=b[G].mapper,Q.linkGroup=te}}})}function d(a,c,h,g,A,b){var S=c.getModel("axisPointer"),E={};x(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(w){E[w]=y.clone(S.get(w))}),E.snap=a.type!=="category"&&!!b,S.get("type")==="cross"&&(E.type="line");var C=E.label||(E.label={});if(C.show==null&&(C.show=!1),A==="cross"){var _=S.get("label.show");if(C.show=_!=null?_:!0,!b){var T=E.lineStyle=S.get("crossStyle");T&&y.defaults(C,T.textStyle)}}return a.model.getModel("axisPointer",new f(E,h,g))}function u(a,c){c.eachSeries(function(h){var g=h.coordinateSystem,A=h.get("tooltip.trigger",!0),b=h.get("tooltip.show",!0);if(!g||A==="none"||A===!1||A==="item"||b===!1||h.get("axisPointer.show",!0)===!1)return;x(a.coordSysAxesInfo[r(g.model)],function(S){var E=S.axis;g.getAxis(E.dim)===E&&(S.seriesModels.push(h),S.seriesDataCount==null&&(S.seriesDataCount=0),S.seriesDataCount+=h.getData().count())})},this)}function s(a,c){for(var h=c.model,g=c.dim,A=0;A<a.length;A++){var b=a[A]||{};if(i(b[g+"AxisId"],h.id)||i(b[g+"AxisIndex"],h.componentIndex)||i(b[g+"AxisName"],h.name))return A}}function i(a,c){return a==="all"||y.isArray(a)&&y.indexOf(a,c)>=0||a===c}function t(a){var c=o(a);if(!c)return;var h=c.axisPointerModel,g=c.axis.scale,A=h.option,b=h.get("status"),S=h.get("value");S!=null&&(S=g.parse(S));var E=l(h);b==null&&(A.status=E?"show":"hide");var C=g.getExtent().slice();C[0]>C[1]&&C.reverse(),(S==null||S>C[1])&&(S=C[1]),S<C[0]&&(S=C[0]),A.value=S,E&&(A.status=c.axis.scale.isBlank()?"hide":"show")}function o(a){var c=(a.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return c&&c.axesInfo[r(a)]}function e(a){var c=o(a);return c&&c.axisPointerModel}function l(a){return!!a.get("handle.show")}function r(a){return a.type+"||"+a.id}D.collect=m,D.fixValue=t,D.getAxisInfo=o,D.getAxisPointerModel=e,D.makeKey=r},zYTA:function(R,D,n){var y=n("bYtY"),f=256;function x(){var m=y.createCanvas();this.canvas=m,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}x.prototype={update:function(m,p,d,u,s,i){var t=this._getBrush(),o=this._getGradient(m,s,"inRange"),e=this._getGradient(m,s,"outOfRange"),l=this.pointSize+this.blurSize,r=this.canvas,a=r.getContext("2d"),c=m.length;r.width=p,r.height=d;for(var h=0;h<c;++h){var g=m[h],A=g[0],b=g[1],S=g[2],E=u(S);a.globalAlpha=E,a.drawImage(t,A-l,b-l)}if(!r.width||!r.height)return r;for(var C=a.getImageData(0,0,r.width,r.height),_=C.data,T=0,w=_.length,O=this.minOpacity,I=this.maxOpacity,k=I-O;T<w;){var E=_[T+3]/256,M=Math.floor(E*(f-1))*4;if(E>0){var j=i(E)?o:e;E>0&&(E=E*k+O),_[T++]=j[M],_[T++]=j[M+1],_[T++]=j[M+2],_[T++]=j[M+3]*E*256}else T+=4}return a.putImageData(C,0,0),r},_getBrush:function(){var m=this._brushCanvas||(this._brushCanvas=y.createCanvas()),p=this.pointSize+this.blurSize,d=p*2;m.width=d,m.height=d;var u=m.getContext("2d");return u.clearRect(0,0,d,d),u.shadowOffsetX=d,u.shadowBlur=this.blurSize,u.shadowColor="#000",u.beginPath(),u.arc(-p,p,this.pointSize,0,Math.PI*2,!0),u.closePath(),u.fill(),m},_getGradient:function(m,p,d){for(var u=this._gradientPixels,s=u[d]||(u[d]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],t=0,o=0;o<256;o++)p[d](o/255,!0,i),s[t++]=i[0],s[t++]=i[1],s[t++]=i[2],s[t++]=i[3];return s}};var v=x;R.exports=v},zarK:function(R,D,n){var y=n("YH21"),f=y.addEventListener,x=y.removeEventListener,v=y.normalizeEvent,m=y.getNativeEvent,p=n("bYtY"),d=n("H6uX"),u=n("ItGF"),s=300,i=u.domSupported,t=function(){var j=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],P=["touchstart","touchend","touchmove"],X={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},F=p.map(j,function(U){var K=U.replace("mouse","pointer");return X.hasOwnProperty(K)?K:U});return{mouse:j,touch:P,pointer:F}}(),o={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function e(j){return j==="mousewheel"&&u.browser.firefox?"DOMMouseScroll":j}function l(j){var P=j.pointerType;return P==="pen"||P==="touch"}function r(j){j.touching=!0,j.touchTimer!=null&&(clearTimeout(j.touchTimer),j.touchTimer=null),j.touchTimer=setTimeout(function(){j.touching=!1,j.touchTimer=null},700)}function a(j){j&&(j.zrByTouch=!0)}function c(j,P){return v(j.dom,new g(j,P),!0)}function h(j,P){for(var X=P,F=!1;X&&X.nodeType!==9&&!(F=X.domBelongToZr||X!==P&&X===j.painterRoot);)X=X.parentNode;return F}function g(j,P){this.type=P.type,this.target=this.currentTarget=j.dom,this.pointerType=P.pointerType,this.clientX=P.clientX,this.clientY=P.clientY}var A=g.prototype;A.stopPropagation=A.stopImmediatePropagation=A.preventDefault=p.noop;var b={mousedown:function(P){P=v(this.dom,P),this._mayPointerCapture=[P.zrX,P.zrY],this.trigger("mousedown",P)},mousemove:function(P){P=v(this.dom,P);var X=this._mayPointerCapture;X&&(P.zrX!==X[0]||P.zrY!==X[1])&&w(this,!0),this.trigger("mousemove",P)},mouseup:function(P){P=v(this.dom,P),w(this,!1),this.trigger("mouseup",P)},mouseout:function(P){P=v(this.dom,P),this._pointerCapturing&&(P.zrEventControl="no_globalout");var X=P.toElement||P.relatedTarget;P.zrIsToLocalDOM=h(this,X),this.trigger("mouseout",P)},touchstart:function(P){P=v(this.dom,P),a(P),this._lastTouchMoment=new Date,this.handler.processGesture(P,"start"),b.mousemove.call(this,P),b.mousedown.call(this,P)},touchmove:function(P){P=v(this.dom,P),a(P),this.handler.processGesture(P,"change"),b.mousemove.call(this,P)},touchend:function(P){P=v(this.dom,P),a(P),this.handler.processGesture(P,"end"),b.mouseup.call(this,P),+new Date-this._lastTouchMoment<s&&b.click.call(this,P)},pointerdown:function(P){b.mousedown.call(this,P)},pointermove:function(P){l(P)||b.mousemove.call(this,P)},pointerup:function(P){b.mouseup.call(this,P)},pointerout:function(P){l(P)||b.mouseout.call(this,P)}};p.each(["click","mousewheel","dblclick","contextmenu"],function(j){b[j]=function(P){P=v(this.dom,P),this.trigger(j,P)}});var S={pointermove:function(P){l(P)||S.mousemove.call(this,P)},pointerup:function(P){S.mouseup.call(this,P)},mousemove:function(P){this.trigger("mousemove",P)},mouseup:function(P){var X=this._pointerCapturing;w(this,!1),this.trigger("mouseup",P),X&&(P.zrEventControl="only_globalout",this.trigger("mouseout",P))}};function E(j,P){var X=P.domHandlers;u.pointerEventsSupported?p.each(t.pointer,function(F){_(P,F,function(U){X[F].call(j,U)})}):(u.touchEventsSupported&&p.each(t.touch,function(F){_(P,F,function(U){X[F].call(j,U),r(P)})}),p.each(t.mouse,function(F){_(P,F,function(U){U=m(U),P.touching||X[F].call(j,U)})}))}function C(j,P){u.pointerEventsSupported?p.each(o.pointer,X):u.touchEventsSupported||p.each(o.mouse,X);function X(F){function U(K){K=m(K),h(j,K.target)||(K=c(j,K),P.domHandlers[F].call(j,K))}_(P,F,U,{capture:!0})}}function _(j,P,X,F){j.mounted[P]=X,j.listenerOpts[P]=F,f(j.domTarget,e(P),X,F)}function T(j){var P=j.mounted;for(var X in P)P.hasOwnProperty(X)&&x(j.domTarget,e(X),P[X],j.listenerOpts[X]);j.mounted={}}function w(j,P){if(j._mayPointerCapture=null,i&&j._pointerCapturing^P){j._pointerCapturing=P;var X=j._globalHandlerScope;P?C(j,X):T(X)}}function O(j,P){this.domTarget=j,this.domHandlers=P,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function I(j,P){d.call(this),this.dom=j,this.painterRoot=P,this._localHandlerScope=new O(j,b),i&&(this._globalHandlerScope=new O(document,S)),this._pointerCapturing=!1,this._mayPointerCapture=null,E(this,this._localHandlerScope)}var k=I.prototype;k.dispose=function(){T(this._localHandlerScope),i&&T(this._globalHandlerScope)},k.setCursor=function(j){this.dom.style&&(this.dom.style.cursor=j||"default")},p.mixin(I,d);var M=I;R.exports=M},zdCA:function(R,D,n){"use strict";var y=n("TqRt"),f=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("PSzr")),p=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var s=function(o,e){return v.createElement(p.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};s.displayName="BarsOutlined";var i=v.forwardRef(s);D.default=i},zeV3:function(R,D,n){"use strict";var y=n("pVnL"),f=n.n(y),x=n("lSNA"),v=n.n(x),m=n("q1tI"),p=n.n(m),d=n("TSYQ"),u=n.n(d),s=n("H84U"),i=function(e,l){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&l.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(e);c<a.length;c++)l.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(e,a[c])&&(r[a[c]]=e[a[c]]);return r},t={small:8,middle:16,large:24},o=function(l){var r,a=m.useContext(s.b),c=a.getPrefixCls,h=a.space,g=a.direction,A=l.size,b=A===void 0?(h==null?void 0:h.size)||"small":A,S=l.align,E=l.className,C=l.children,_=l.direction,T=_===void 0?"horizontal":_,w=l.prefixCls,O=i(l,["size","align","className","children","direction","prefixCls"]),I=m.Children.count(C);if(I===0)return null;var k=S===void 0&&T==="horizontal"?"center":S,M=c("space",w),j=u()(M,"".concat(M,"-").concat(T),(r={},v()(r,"".concat(M,"-rtl"),g==="rtl"),v()(r,"".concat(M,"-align-").concat(k),k),r),E),P="".concat(M,"-item"),X=g==="rtl"?"marginLeft":"marginRight";return m.createElement("div",f()({className:j},O),m.Children.map(C,function(F,U){return m.createElement("div",{className:P,key:"".concat(P,"-").concat(U),style:U===I-1||F===null||F===void 0?{}:v()({},T==="vertical"?"marginBottom":X,typeof b=="string"?t[b]:b)},F)}))};D.a=o},zuHt:function(R,D,n){var y=n("bYtY");function f(x){var v={};x.eachSeriesByType("map",function(m){var p=m.getMapType();if(m.getHostGeoModel()||v[p])return;var d={};y.each(m.seriesGroup,function(s){var i=s.coordinateSystem,t=s.originalData;s.get("showLegendSymbol")&&x.getComponent("legend")&&t.each(t.mapDimension("value"),function(o,e){var l=t.getName(e),r=i.getRegion(l);if(!r||isNaN(o))return;var a=d[l]||0,c=i.dataToPoint(r.center);d[l]=a+1,t.setItemLayout(e,{point:c,offset:a})})});var u=m.getData();u.each(function(s){var i=u.getName(s),t=u.getItemLayout(s)||{};t.showLabel=!d[i],u.setItemLayout(s,t)}),v[p]=!0})}R.exports=f}}]);
|