|
- (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2668],{57817:function(ne,Ir,qt){"use strict";qt.d(Ir,{Z:function(){return xt}});function xt(Y,K,tt){if(Y){if(typeof Y.addEventListener=="function")return Y.addEventListener(K,tt,!1),{remove:function(){Y.removeEventListener(K,tt,!1)}};if(typeof Y.attachEvent=="function")return Y.attachEvent("on"+K,tt),{remove:function(){Y.detachEvent("on"+K,tt)}}}}},6056:function(ne,Ir,qt){"use strict";qt.d(Ir,{Z:function(){return _t}});var xt,Y,K,tt;function gr(){xt=document.createElement("table"),Y=document.createElement("tr"),K=/^\s*<(\w+|!)[^>]*>/,tt={tr:document.createElement("tbody"),tbody:xt,thead:xt,tfoot:xt,td:Y,th:Y,"*":document.createElement("div")}}function _t(dr){xt||gr();var Qt=K.test(dr)&&RegExp.$1;(!Qt||!(Qt in tt))&&(Qt="*");var br=tt[Qt];dr=typeof dr=="string"?dr.replace(/(^\s*)|(\s*$)/g,""):dr,br.innerHTML=""+dr;var mr=br.childNodes[0];return mr&&br.contains(mr)&&br.removeChild(mr),mr}},45442:function(ne,Ir,qt){"use strict";qt.d(Ir,{Z:function(){return xt}});function xt(Y,K){if(Y)for(var tt in K)K.hasOwnProperty(tt)&&(Y.style[tt]=K[tt]);return Y}},90494:function(ne,Ir){"use strict";var qt="*",xt=function(){function Y(){this._events={}}return Y.prototype.on=function(K,tt,gr){return this._events[K]||(this._events[K]=[]),this._events[K].push({callback:tt,once:!!gr}),this},Y.prototype.once=function(K,tt){return this.on(K,tt,!0)},Y.prototype.emit=function(K){for(var tt=this,gr=[],_t=1;_t<arguments.length;_t++)gr[_t-1]=arguments[_t];var dr=this._events[K]||[],Qt=this._events[qt]||[],br=function(mr){for(var lr=mr.length,bt=0;bt<lr;bt++)if(!!mr[bt]){var jt=mr[bt],Kt=jt.callback,ir=jt.once;ir&&(mr.splice(bt,1),mr.length===0&&delete tt._events[K],lr--,bt--),Kt.apply(tt,gr)}};br(dr),br(Qt)},Y.prototype.off=function(K,tt){if(!K)this._events={};else if(!tt)delete this._events[K];else{for(var gr=this._events[K]||[],_t=gr.length,dr=0;dr<_t;dr++)gr[dr].callback===tt&&(gr.splice(dr,1),_t--,dr--);gr.length===0&&delete this._events[K]}return this},Y.prototype.getEvents=function(){return this._events},Y}();Ir.Z=xt},3232:function(ne,Ir,qt){"use strict";qt.d(Ir,{$Z:function(){return sa},pA:function(){return fa},zr:function(){return la},XY:function(){return s},ju:function(){return sr},Gk:function(){return xt},$O:function(){return Wn},bj:function(){return ha},LF:function(){return zn},FE:function(){return Gn},U_:function(){return ot},pP:function(){return y},rG:function(){return W},WZ:function(){return _e},CW:function(){return H}});var xt={};qt.r(xt),qt.d(xt,{catmullRomToBezier:function(){return Qt},fillPath:function(){return Tt},fillPathByDiff:function(){return dt},formatPath:function(){return Wt},intersection:function(){return ut},parsePathArray:function(){return yr},parsePathString:function(){return dr},pathToAbsolute:function(){return mr},pathToCurve:function(){return Kt},rectPath:function(){return _r}});var Y={};qt.r(Y),qt.d(Y,{easeBack:function(){return cn},easeBackIn:function(){return Tn},easeBackInOut:function(){return cn},easeBackOut:function(){return Pn},easeBounce:function(){return ze},easeBounceIn:function(){return En},easeBounceInOut:function(){return Ze},easeBounceOut:function(){return ze},easeCircle:function(){return tn},easeCircleIn:function(){return yn},easeCircleInOut:function(){return tn},easeCircleOut:function(){return je},easeCubic:function(){return be},easeCubicIn:function(){return Ge},easeCubicInOut:function(){return be},easeCubicOut:function(){return Le},easeElastic:function(){return ln},easeElasticIn:function(){return In},easeElasticInOut:function(){return kn},easeElasticOut:function(){return ln},easeExp:function(){return fn},easeExpIn:function(){return dn},easeExpInOut:function(){return fn},easeExpOut:function(){return mn},easeLinear:function(){return Qe},easePoly:function(){return on},easePolyIn:function(){return Ke},easePolyInOut:function(){return on},easePolyOut:function(){return an},easeQuad:function(){return qe},easeQuadIn:function(){return Ne},easeQuadInOut:function(){return qe},easeQuadOut:function(){return Ee},easeSin:function(){return un},easeSinIn:function(){return pn},easeSinInOut:function(){return un},easeSinOut:function(){return gn}});var K=qt(49242),tt=`
- \v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,gr=new RegExp("([a-z])["+tt+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+tt+"]*,?["+tt+"]*)+)","ig"),_t=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+tt+"]*,?["+tt+"]*","ig"),dr=function(e){if(!e)return null;if((0,K.isArray)(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},r=[];return String(e).replace(gr,function(n,i,c){var w=[],_=i.toLowerCase();if(c.replace(_t,function(I,j){j&&w.push(+j)}),_==="m"&&w.length>2&&(r.push([i].concat(w.splice(0,2))),_="l",i=i==="m"?"l":"L"),_==="o"&&w.length===1&&r.push([i,w[0]]),_==="r")r.push([i].concat(w));else for(;w.length>=t[_]&&(r.push([i].concat(w.splice(0,t[_]))),!!t[_]););return e}),r},Qt=function(e,t){for(var r=[],n=0,i=e.length;i-2*!t>n;n+=2){var c=[{x:+e[n-2],y:+e[n-1]},{x:+e[n],y:+e[n+1]},{x:+e[n+2],y:+e[n+3]},{x:+e[n+4],y:+e[n+5]}];t?n?i-4===n?c[3]={x:+e[0],y:+e[1]}:i-2===n&&(c[2]={x:+e[0],y:+e[1]},c[3]={x:+e[2],y:+e[3]}):c[0]={x:+e[i-2],y:+e[i-1]}:i-4===n?c[3]=c[2]:n||(c[0]={x:+e[n],y:+e[n+1]}),r.push(["C",(-c[0].x+6*c[1].x+c[2].x)/6,(-c[0].y+6*c[1].y+c[2].y)/6,(c[1].x+6*c[2].x-c[3].x)/6,(c[1].y+6*c[2].y-c[3].y)/6,c[2].x,c[2].y])}return r},br=function(e,t,r,n,i){var c=[];if(i===null&&n===null&&(n=r),e=+e,t=+t,r=+r,n=+n,i!==null){var w=Math.PI/180,_=e+r*Math.cos(-n*w),I=e+r*Math.cos(-i*w),j=t+r*Math.sin(-n*w),J=t+r*Math.sin(-i*w);c=[["M",_,j],["A",r,r,0,+(i-n>180),0,I,J]]}else c=[["M",e,t],["m",0,-n],["a",r,n,0,1,1,0,2*n],["a",r,n,0,1,1,0,-2*n],["z"]];return c},mr=function(e){if(e=dr(e),!e||!e.length)return[["M",0,0]];var t=[],r=0,n=0,i=0,c=0,w=0,_,I;e[0][0]==="M"&&(r=+e[0][1],n=+e[0][2],i=r,c=n,w++,t[0]=["M",r,n]);for(var j=e.length===3&&e[0][0]==="M"&&e[1][0].toUpperCase()==="R"&&e[2][0].toUpperCase()==="Z",J=void 0,it=void 0,Dt=w,Pt=e.length;Dt<Pt;Dt++){if(t.push(J=[]),it=e[Dt],_=it[0],_!==_.toUpperCase())switch(J[0]=_.toUpperCase(),J[0]){case"A":J[1]=it[1],J[2]=it[2],J[3]=it[3],J[4]=it[4],J[5]=it[5],J[6]=+it[6]+r,J[7]=+it[7]+n;break;case"V":J[1]=+it[1]+n;break;case"H":J[1]=+it[1]+r;break;case"R":I=[r,n].concat(it.slice(1));for(var ht=2,ar=I.length;ht<ar;ht++)I[ht]=+I[ht]+r,I[++ht]=+I[ht]+n;t.pop(),t=t.concat(Qt(I,j));break;case"O":t.pop(),I=br(r,n,it[1],it[2]),I.push(I[0]),t=t.concat(I);break;case"U":t.pop(),t=t.concat(br(r,n,it[1],it[2],it[3])),J=["U"].concat(t[t.length-1].slice(-2));break;case"M":i=+it[1]+r,c=+it[2]+n;break;default:for(var ht=1,ar=it.length;ht<ar;ht++)J[ht]=+it[ht]+(ht%2?r:n)}else if(_==="R")I=[r,n].concat(it.slice(1)),t.pop(),t=t.concat(Qt(I,j)),J=["R"].concat(it.slice(-2));else if(_==="O")t.pop(),I=br(r,n,it[1],it[2]),I.push(I[0]),t=t.concat(I);else if(_==="U")t.pop(),t=t.concat(br(r,n,it[1],it[2],it[3])),J=["U"].concat(t[t.length-1].slice(-2));else for(var vr=0,Mr=it.length;vr<Mr;vr++)J[vr]=it[vr];if(_=_.toUpperCase(),_!=="O")switch(J[0]){case"Z":r=+i,n=+c;break;case"H":r=J[1];break;case"V":n=J[1];break;case"M":i=J[J.length-2],c=J[J.length-1];break;default:r=J[J.length-2],n=J[J.length-1]}}return t},lr=function(e,t,r,n){return[e,t,r,n,r,n]},bt=function(e,t,r,n,i,c){var w=1/3,_=2/3;return[w*e+_*r,w*t+_*n,w*i+_*r,w*c+_*n,i,c]},jt=function(e,t,r,n,i,c,w,_,I,j){r===n&&(r+=1);var J=Math.PI*120/180,it=Math.PI/180*(+i||0),Dt=[],Pt,ht,ar,vr,Mr,Pr=function(jn,ta,vn){var ka=jn*Math.cos(vn)-ta*Math.sin(vn),Da=jn*Math.sin(vn)+ta*Math.cos(vn);return{x:ka,y:Da}};if(j)ht=j[0],ar=j[1],vr=j[2],Mr=j[3];else{Pt=Pr(e,t,-it),e=Pt.x,t=Pt.y,Pt=Pr(_,I,-it),_=Pt.x,I=Pt.y,e===_&&t===I&&(_+=1,I+=1);var $t=(e-_)/2,Bt=(t-I)/2,Cr=$t*$t/(r*r)+Bt*Bt/(n*n);Cr>1&&(Cr=Math.sqrt(Cr),r=Cr*r,n=Cr*n);var Vr=r*r,ee=n*n,Re=(c===w?-1:1)*Math.sqrt(Math.abs((Vr*ee-Vr*Bt*Bt-ee*$t*$t)/(Vr*Bt*Bt+ee*$t*$t)));vr=Re*r*Bt/n+(e+_)/2,Mr=Re*-n*$t/r+(t+I)/2,ht=Math.asin(((t-Mr)/n).toFixed(9)),ar=Math.asin(((I-Mr)/n).toFixed(9)),ht=e<vr?Math.PI-ht:ht,ar=_<vr?Math.PI-ar:ar,ht<0&&(ht=Math.PI*2+ht),ar<0&&(ar=Math.PI*2+ar),w&&ht>ar&&(ht=ht-Math.PI*2),!w&&ar>ht&&(ar=ar-Math.PI*2)}var Bn=ar-ht;if(Math.abs(Bn)>J){var Ca=ar,ba=_,_a=I;ar=ht+J*(w&&ar>ht?1:-1),_=vr+r*Math.cos(ar),I=Mr+n*Math.sin(ar),Dt=jt(_,I,r,n,i,0,w,ba,_a,[ar,Ca,vr,Mr])}Bn=ar-ht;var Sa=Math.cos(ht),Ea=Math.sin(ht),Ta=Math.cos(ar),Pa=Math.sin(ar),Vn=Math.tan(Bn/4),Zn=4/3*r*Vn,Un=4/3*n*Vn,$n=[e,t],$e=[e+Zn*Ea,t-Un*Sa],Qn=[_+Zn*Pa,I-Un*Ta],Kn=[_,I];if($e[0]=2*$n[0]-$e[0],$e[1]=2*$n[1]-$e[1],j)return[$e,Qn,Kn].concat(Dt);Dt=[$e,Qn,Kn].concat(Dt).join().split(",");for(var Jn=[],Xe=0,Ia=Dt.length;Xe<Ia;Xe++)Jn[Xe]=Xe%2?Pr(Dt[Xe-1],Dt[Xe],it).y:Pr(Dt[Xe],Dt[Xe+1],it).x;return Jn},Kt=function(e,t){var r=mr(e),n=t&&mr(t),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},w=[],_=[],I="",j="",J,it=function($t,Bt,Cr){var Vr,ee;if(!$t)return["C",Bt.x,Bt.y,Bt.x,Bt.y,Bt.x,Bt.y];switch(!($t[0]in{T:1,Q:1})&&(Bt.qx=Bt.qy=null),$t[0]){case"M":Bt.X=$t[1],Bt.Y=$t[2];break;case"A":$t=["C"].concat(jt.apply(0,[Bt.x,Bt.y].concat($t.slice(1))));break;case"S":Cr==="C"||Cr==="S"?(Vr=Bt.x*2-Bt.bx,ee=Bt.y*2-Bt.by):(Vr=Bt.x,ee=Bt.y),$t=["C",Vr,ee].concat($t.slice(1));break;case"T":Cr==="Q"||Cr==="T"?(Bt.qx=Bt.x*2-Bt.qx,Bt.qy=Bt.y*2-Bt.qy):(Bt.qx=Bt.x,Bt.qy=Bt.y),$t=["C"].concat(bt(Bt.x,Bt.y,Bt.qx,Bt.qy,$t[1],$t[2]));break;case"Q":Bt.qx=$t[1],Bt.qy=$t[2],$t=["C"].concat(bt(Bt.x,Bt.y,$t[1],$t[2],$t[3],$t[4]));break;case"L":$t=["C"].concat(lr(Bt.x,Bt.y,$t[1],$t[2]));break;case"H":$t=["C"].concat(lr(Bt.x,Bt.y,$t[1],Bt.y));break;case"V":$t=["C"].concat(lr(Bt.x,Bt.y,Bt.x,$t[1]));break;case"Z":$t=["C"].concat(lr(Bt.x,Bt.y,Bt.X,Bt.Y));break;default:break}return $t},Dt=function($t,Bt){if($t[Bt].length>7){$t[Bt].shift();for(var Cr=$t[Bt];Cr.length;)w[Bt]="A",n&&(_[Bt]="A"),$t.splice(Bt++,0,["C"].concat(Cr.splice(0,6)));$t.splice(Bt,1),J=Math.max(r.length,n&&n.length||0)}},Pt=function($t,Bt,Cr,Vr,ee){$t&&Bt&&$t[ee][0]==="M"&&Bt[ee][0]!=="M"&&(Bt.splice(ee,0,["M",Vr.x,Vr.y]),Cr.bx=0,Cr.by=0,Cr.x=$t[ee][1],Cr.y=$t[ee][2],J=Math.max(r.length,n&&n.length||0))};J=Math.max(r.length,n&&n.length||0);for(var ht=0;ht<J;ht++){r[ht]&&(I=r[ht][0]),I!=="C"&&(w[ht]=I,ht&&(j=w[ht-1])),r[ht]=it(r[ht],i,j),w[ht]!=="A"&&I==="C"&&(w[ht]="C"),Dt(r,ht),n&&(n[ht]&&(I=n[ht][0]),I!=="C"&&(_[ht]=I,ht&&(j=_[ht-1])),n[ht]=it(n[ht],c,j),_[ht]!=="A"&&I==="C"&&(_[ht]="C"),Dt(n,ht)),Pt(r,n,i,c,ht),Pt(n,r,c,i,ht);var ar=r[ht],vr=n&&n[ht],Mr=ar.length,Pr=n&&vr.length;i.x=ar[Mr-2],i.y=ar[Mr-1],i.bx=parseFloat(ar[Mr-4])||i.x,i.by=parseFloat(ar[Mr-3])||i.y,c.bx=n&&(parseFloat(vr[Pr-4])||c.x),c.by=n&&(parseFloat(vr[Pr-3])||c.y),c.x=n&&vr[Pr-2],c.y=n&&vr[Pr-1]}return n?[r,n]:r},ir=/,?([a-z]),?/gi,yr=function(e){return e.join(",").replace(ir,"$1")},Lr=function(e,t,r,n,i){var c=-3*t+9*r-9*n+3*i,w=e*c+6*t-12*r+6*n;return e*w-3*t+3*r},Nr=function(e,t,r,n,i,c,w,_,I){I===null&&(I=1),I=I>1?1:I<0?0:I;for(var j=I/2,J=12,it=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],Dt=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],Pt=0,ht=0;ht<J;ht++){var ar=j*it[ht]+j,vr=Lr(ar,e,r,i,w),Mr=Lr(ar,t,n,c,_),Pr=vr*vr+Mr*Mr;Pt+=Dt[ht]*Math.sqrt(Pr)}return j*Pt},Zr=function(e,t,r,n,i,c,w,_){for(var I=[],j=[[],[]],J,it,Dt,Pt,ht=0;ht<2;++ht){if(ht===0?(it=6*e-12*r+6*i,J=-3*e+9*r-9*i+3*w,Dt=3*r-3*e):(it=6*t-12*n+6*c,J=-3*t+9*n-9*c+3*_,Dt=3*n-3*t),Math.abs(J)<1e-12){if(Math.abs(it)<1e-12)continue;Pt=-Dt/it,Pt>0&&Pt<1&&I.push(Pt);continue}var ar=it*it-4*Dt*J,vr=Math.sqrt(ar);if(!(ar<0)){var Mr=(-it+vr)/(2*J);Mr>0&&Mr<1&&I.push(Mr);var Pr=(-it-vr)/(2*J);Pr>0&&Pr<1&&I.push(Pr)}}for(var $t=I.length,Bt=$t,Cr;$t--;)Pt=I[$t],Cr=1-Pt,j[0][$t]=Cr*Cr*Cr*e+3*Cr*Cr*Pt*r+3*Cr*Pt*Pt*i+Pt*Pt*Pt*w,j[1][$t]=Cr*Cr*Cr*t+3*Cr*Cr*Pt*n+3*Cr*Pt*Pt*c+Pt*Pt*Pt*_;return j[0][Bt]=e,j[1][Bt]=t,j[0][Bt+1]=w,j[1][Bt+1]=_,j[0].length=j[1].length=Bt+2,{min:{x:Math.min.apply(0,j[0]),y:Math.min.apply(0,j[1])},max:{x:Math.max.apply(0,j[0]),y:Math.max.apply(0,j[1])}}},Xt=function(e,t,r,n,i,c,w,_){if(!(Math.max(e,r)<Math.min(i,w)||Math.min(e,r)>Math.max(i,w)||Math.max(t,n)<Math.min(c,_)||Math.min(t,n)>Math.max(c,_))){var I=(e*n-t*r)*(i-w)-(e-r)*(i*_-c*w),j=(e*n-t*r)*(c-_)-(t-n)*(i*_-c*w),J=(e-r)*(c-_)-(t-n)*(i-w);if(!!J){var it=I/J,Dt=j/J,Pt=+it.toFixed(2),ht=+Dt.toFixed(2);if(!(Pt<+Math.min(e,r).toFixed(2)||Pt>+Math.max(e,r).toFixed(2)||Pt<+Math.min(i,w).toFixed(2)||Pt>+Math.max(i,w).toFixed(2)||ht<+Math.min(t,n).toFixed(2)||ht>+Math.max(t,n).toFixed(2)||ht<+Math.min(c,_).toFixed(2)||ht>+Math.max(c,_).toFixed(2)))return{x:it,y:Dt}}}},ur=function(e,t,r){return t>=e.x&&t<=e.x+e.width&&r>=e.y&&r<=e.y+e.height},_r=function(e,t,r,n,i){if(i)return[["M",+e+ +i,t],["l",r-i*2,0],["a",i,i,0,0,1,i,i],["l",0,n-i*2],["a",i,i,0,0,1,-i,i],["l",i*2-r,0],["a",i,i,0,0,1,-i,-i],["l",0,i*2-n],["a",i,i,0,0,1,i,-i],["z"]];var c=[["M",e,t],["l",r,0],["l",0,n],["l",-r,0],["z"]];return c.parsePathArray=yr,c},Er=function(e,t,r,n){return e===null&&(e=t=r=n=0),t===null&&(t=e.y,r=e.width,n=e.height,e=e.x),{x:e,y:t,width:r,w:r,height:n,h:n,x2:e+r,y2:t+n,cx:e+r/2,cy:t+n/2,r1:Math.min(r,n)/2,r2:Math.max(r,n)/2,r0:Math.sqrt(r*r+n*n)/2,path:_r(e,t,r,n),vb:[e,t,r,n].join(" ")}},Sr=function(e,t){return e=Er(e),t=Er(t),ur(t,e.x,e.y)||ur(t,e.x2,e.y)||ur(t,e.x,e.y2)||ur(t,e.x2,e.y2)||ur(e,t.x,t.y)||ur(e,t.x2,t.y)||ur(e,t.x,t.y2)||ur(e,t.x2,t.y2)||(e.x<t.x2&&e.x>t.x||t.x<e.x2&&t.x>e.x)&&(e.y<t.y2&&e.y>t.y||t.y<e.y2&&t.y>e.y)},Tr=function(e,t,r,n,i,c,w,_){(0,K.isArray)(e)||(e=[e,t,r,n,i,c,w,_]);var I=Zr.apply(null,e);return Er(I.min.x,I.min.y,I.max.x-I.min.x,I.max.y-I.min.y)},Dr=function(e,t,r,n,i,c,w,_,I){var j=1-I,J=Math.pow(j,3),it=Math.pow(j,2),Dt=I*I,Pt=Dt*I,ht=J*e+it*3*I*r+j*3*I*I*i+Pt*w,ar=J*t+it*3*I*n+j*3*I*I*c+Pt*_,vr=e+2*I*(r-e)+Dt*(i-2*r+e),Mr=t+2*I*(n-t)+Dt*(c-2*n+t),Pr=r+2*I*(i-r)+Dt*(w-2*i+r),$t=n+2*I*(c-n)+Dt*(_-2*c+n),Bt=j*e+I*r,Cr=j*t+I*n,Vr=j*i+I*w,ee=j*c+I*_,Re=90-Math.atan2(vr-Pr,Mr-$t)*180/Math.PI;return{x:ht,y:ar,m:{x:vr,y:Mr},n:{x:Pr,y:$t},start:{x:Bt,y:Cr},end:{x:Vr,y:ee},alpha:Re}},Gr=function(e,t,r){var n=Tr(e),i=Tr(t);if(!Sr(n,i))return r?0:[];for(var c=Nr.apply(0,e),w=Nr.apply(0,t),_=~~(c/8),I=~~(w/8),j=[],J=[],it={},Dt=r?0:[],Pt=0;Pt<_+1;Pt++){var ht=Dr.apply(0,e.concat(Pt/_));j.push({x:ht.x,y:ht.y,t:Pt/_})}for(var Pt=0;Pt<I+1;Pt++){var ht=Dr.apply(0,t.concat(Pt/I));J.push({x:ht.x,y:ht.y,t:Pt/I})}for(var Pt=0;Pt<_;Pt++)for(var ar=0;ar<I;ar++){var vr=j[Pt],Mr=j[Pt+1],Pr=J[ar],$t=J[ar+1],Bt=Math.abs(Mr.x-vr.x)<.001?"y":"x",Cr=Math.abs($t.x-Pr.x)<.001?"y":"x",Vr=Xt(vr.x,vr.y,Mr.x,Mr.y,Pr.x,Pr.y,$t.x,$t.y);if(Vr){if(it[Vr.x.toFixed(4)]===Vr.y.toFixed(4))continue;it[Vr.x.toFixed(4)]=Vr.y.toFixed(4);var ee=vr.t+Math.abs((Vr[Bt]-vr[Bt])/(Mr[Bt]-vr[Bt]))*(Mr.t-vr.t),Re=Pr.t+Math.abs((Vr[Cr]-Pr[Cr])/($t[Cr]-Pr[Cr]))*($t.t-Pr.t);ee>=0&&ee<=1&&Re>=0&&Re<=1&&(r?Dt+=1:Dt.push({x:Vr.x,y:Vr.y,t1:ee,t2:Re}))}}return Dt},ct=function(e,t,r){e=Kt(e),t=Kt(t);for(var n,i,c,w,_,I,j,J,it,Dt,Pt=r?0:[],ht=0,ar=e.length;ht<ar;ht++){var vr=e[ht];if(vr[0]==="M")n=_=vr[1],i=I=vr[2];else{vr[0]==="C"?(it=[n,i].concat(vr.slice(1)),n=it[6],i=it[7]):(it=[n,i,n,i,_,I,_,I],n=_,i=I);for(var Mr=0,Pr=t.length;Mr<Pr;Mr++){var $t=t[Mr];if($t[0]==="M")c=j=$t[1],w=J=$t[2];else{$t[0]==="C"?(Dt=[c,w].concat($t.slice(1)),c=Dt[6],w=Dt[7]):(Dt=[c,w,c,w,j,J,j,J],c=j,w=J);var Bt=Gr(it,Dt,r);if(r)Pt+=Bt;else{for(var Cr=0,Vr=Bt.length;Cr<Vr;Cr++)Bt[Cr].segment1=ht,Bt[Cr].segment2=Mr,Bt[Cr].bez1=it,Bt[Cr].bez2=Dt;Pt=Pt.concat(Bt)}}}}}return Pt},ut=function(e,t){return ct(e,t)};function Mt(e,t){var r=[],n=[];function i(c,w){if(c.length===1)r.push(c[0]),n.push(c[0]);else{for(var _=[],I=0;I<c.length-1;I++)I===0&&r.push(c[0]),I===c.length-2&&n.push(c[I+1]),_[I]=[(1-w)*c[I][0]+w*c[I+1][0],(1-w)*c[I][1]+w*c[I+1][1]];i(_,w)}}return e.length&&i(e,t),{left:r,right:n.reverse()}}function At(e,t,r){var n=[[e[1],e[2]]];r=r||2;var i=[];t[0]==="A"?(n.push(t[6]),n.push(t[7])):t[0]==="C"?(n.push([t[1],t[2]]),n.push([t[3],t[4]]),n.push([t[5],t[6]])):t[0]==="S"||t[0]==="Q"?(n.push([t[1],t[2]]),n.push([t[3],t[4]])):n.push([t[1],t[2]]);for(var c=n,w=1/r,_=0;_<r-1;_++){var I=w/(1-w*_),j=Mt(c,I);i.push(j.left),c=j.right}i.push(c);var J=i.map(function(it){var Dt=[];return it.length===4&&(Dt.push("C"),Dt=Dt.concat(it[2])),it.length>=3&&(it.length===3&&Dt.push("Q"),Dt=Dt.concat(it[1])),it.length===2&&Dt.push("L"),Dt=Dt.concat(it[it.length-1]),Dt});return J}var Nt=function(e,t,r){if(r===1)return[[].concat(e)];var n=[];if(t[0]==="L"||t[0]==="C"||t[0]==="Q")n=n.concat(At(e,t,r));else{var i=[].concat(e);i[0]==="M"&&(i[0]="L");for(var c=0;c<=r-1;c++)n.push(i)}return n},Tt=function(e,t){if(e.length===1)return e;var r=e.length-1,n=t.length-1,i=r/n,c=[];if(e.length===1&&e[0][0]==="M"){for(var w=0;w<n-r;w++)e.push(e[0]);return e}for(var w=0;w<n;w++){var _=Math.floor(i*w);c[_]=(c[_]||0)+1}var I=c.reduce(function(j,J,it){return it===r?j.concat(e[r]):j.concat(Nt(e[it],e[it+1],J))},[]);return I.unshift(e[0]),(t[n]==="Z"||t[n]==="z")&&I.push("Z"),I},v=function(e,t){if(e.length!==t.length)return!1;var r=!0;return(0,K.each)(e,function(n,i){if(n!==t[i])return r=!1,!1}),r};function O(e,t,r){var n=null,i=r;return t<i&&(i=t,n="add"),e<i&&(i=e,n="del"),{type:n,min:i}}var gt=function(e,t){var r=e.length,n=t.length,i,c,w=0;if(r===0||n===0)return null;for(var _=[],I=0;I<=r;I++)_[I]=[],_[I][0]={min:I};for(var j=0;j<=n;j++)_[0][j]={min:j};for(var I=1;I<=r;I++){i=e[I-1];for(var j=1;j<=n;j++){c=t[j-1],v(i,c)?w=0:w=1;var J=_[I-1][j].min+1,it=_[I][j-1].min+1,Dt=_[I-1][j-1].min+w;_[I][j]=O(J,it,Dt)}}return _},dt=function(e,t){var r=gt(e,t),n=e.length,i=t.length,c=[],w=1,_=1;if(r[n][i].min!==n){for(var I=1;I<=n;I++){var j=r[I][I].min;_=I;for(var J=w;J<=i;J++)r[I][J].min<j&&(j=r[I][J].min,_=J);w=_,r[I][w].type&&c.push({index:I-1,type:r[I][w].type})}for(var I=c.length-1;I>=0;I--)w=c[I].index,c[I].type==="add"?e.splice(w,0,[].concat(e[w])):e.splice(w,1)}n=e.length;var it=i-n;if(n<i)for(var I=0;I<it;I++)e[n-1][0]==="z"||e[n-1][0]==="Z"?e.splice(n-2,0,e[n-2]):e.push(e[n-1]),n+=1;return e};function Ht(e,t,r){for(var n=[].concat(e),i,c=1/(r+1),w=or(t)[0],_=1;_<=r;_++)c*=_,i=Math.floor(e.length*c),i===0?n.unshift([w[0]*c+e[i][0]*(1-c),w[1]*c+e[i][1]*(1-c)]):n.splice(i,0,[w[0]*c+e[i][0]*(1-c),w[1]*c+e[i][1]*(1-c)]);return n}function or(e){var t=[];switch(e[0]){case"M":t.push([e[1],e[2]]);break;case"L":t.push([e[1],e[2]]);break;case"A":t.push([e[6],e[7]]);break;case"Q":t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case"T":t.push([e[1],e[2]]);break;case"C":t.push([e[5],e[6]]),t.push([e[1],e[2]]),t.push([e[3],e[4]]);break;case"S":t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case"H":t.push([e[1],e[1]]);break;case"V":t.push([e[1],e[1]]);break;default:}return t}var Wt=function(e,t){if(e.length<=1)return e;for(var r,n=0;n<t.length;n++)if(e[n][0]!==t[n][0])switch(r=or(e[n]),t[n][0]){case"M":e[n]=["M"].concat(r[0]);break;case"L":e[n]=["L"].concat(r[0]);break;case"A":e[n]=[].concat(t[n]),e[n][6]=r[0][0],e[n][7]=r[0][1];break;case"Q":if(r.length<2)if(n>0)r=Ht(r,e[n-1],1);else{e[n]=t[n];break}e[n]=["Q"].concat(r.reduce(function(i,c){return i.concat(c)},[]));break;case"T":e[n]=["T"].concat(r[0]);break;case"C":if(r.length<3)if(n>0)r=Ht(r,e[n-1],2);else{e[n]=t[n];break}e[n]=["C"].concat(r.reduce(function(i,c){return i.concat(c)},[]));break;case"S":if(r.length<2)if(n>0)r=Ht(r,e[n-1],1);else{e[n]=t[n];break}e[n]=["S"].concat(r.reduce(function(i,c){return i.concat(c)},[]));break;default:e[n]=t[n]}return e},cr=function(){function e(t,r){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=r,this.timeStamp=r.timeStamp}return e.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e.prototype.toString=function(){var t=this.type;return"[Event (type="+t+")]"},e.prototype.save=function(){},e.prototype.restore=function(){},e}(),sr=cr,er=qt(70655),wr=qt(90494);function Or(e,t){var r=e.indexOf(t);r!==-1&&e.splice(r,1)}var L=typeof window!="undefined"&&typeof window.document!="undefined";function p(e,t){if(e.isCanvas())return!0;for(var r=t.getParent(),n=!1;r;){if(r===e){n=!0;break}r=r.getParent()}return n}function y(e){return e.cfg.visible&&e.cfg.capture}var S=function(e){(0,er.__extends)(t,e);function t(r){var n=e.call(this)||this;n.destroyed=!1;var i=n.getDefaultCfg();return n.cfg=(0,K.mix)(i,r),n}return t.prototype.getDefaultCfg=function(){return{}},t.prototype.get=function(r){return this.cfg[r]},t.prototype.set=function(r,n){this.cfg[r]=n},t.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},t}(wr.Z),s=S,d=qt(43631),T=qt(31506);function R(e,t){var r=[],n=e[0],i=e[1],c=e[2],w=e[3],_=e[4],I=e[5],j=e[6],J=e[7],it=e[8],Dt=t[0],Pt=t[1],ht=t[2],ar=t[3],vr=t[4],Mr=t[5],Pr=t[6],$t=t[7],Bt=t[8];return r[0]=Dt*n+Pt*w+ht*j,r[1]=Dt*i+Pt*_+ht*J,r[2]=Dt*c+Pt*I+ht*it,r[3]=ar*n+vr*w+Mr*j,r[4]=ar*i+vr*_+Mr*J,r[5]=ar*c+vr*I+Mr*it,r[6]=Pr*n+$t*w+Bt*j,r[7]=Pr*i+$t*_+Bt*J,r[8]=Pr*c+$t*I+Bt*it,r}function W(e,t){var r=[],n=t[0],i=t[1];return r[0]=e[0]*n+e[3]*i+e[6],r[1]=e[1]*n+e[4]*i+e[7],r}function ot(e){var t=[],r=e[0],n=e[1],i=e[2],c=e[3],w=e[4],_=e[5],I=e[6],j=e[7],J=e[8],it=J*w-_*j,Dt=-J*c+_*I,Pt=j*c-w*I,ht=r*it+n*Dt+i*Pt;return ht?(ht=1/ht,t[0]=it*ht,t[1]=(-J*n+i*j)*ht,t[2]=(_*n-i*w)*ht,t[3]=Dt*ht,t[4]=(J*r-i*I)*ht,t[5]=(-_*r+i*c)*ht,t[6]=Pt*ht,t[7]=(-j*r+n*I)*ht,t[8]=(w*r-n*c)*ht,t):null}var Lt=T.vs,Ot="matrix",Zt=["zIndex","capture","visible","type"],pr=["repeat"],A=":",E="*";function N(e){for(var t=[],r=0;r<e.length;r++)(0,K.isArray)(e[r])?t.push([].concat(e[r])):t.push(e[r]);return t}function G(e,t){var r={},n=t.attrs;for(var i in e)r[i]=n[i];return r}function Z(e,t){var r={},n=t.attr();return(0,K.each)(e,function(i,c){pr.indexOf(c)===-1&&!(0,K.isEqual)(n[c],i)&&(r[c]=i)}),r}function nt(e,t){if(t.onFrame)return e;var r=t.startTime,n=t.delay,i=t.duration,c=Object.prototype.hasOwnProperty;return(0,K.each)(e,function(w){r+n<w.startTime+w.delay+w.duration&&i>w.delay&&(0,K.each)(t.toAttrs,function(_,I){c.call(w.toAttrs,I)&&(delete w.toAttrs[I],delete w.fromAttrs[I])})}),e}var rt=function(e){(0,er.__extends)(t,e);function t(r){var n=e.call(this,r)||this;n.attrs={};var i=n.getDefaultAttrs();return(0,K.mix)(i,r.attrs),n.attrs=i,n.initAttrs(i),n.initAnimate(),n}return t.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},t.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},t.prototype.onCanvasChange=function(r){},t.prototype.initAttrs=function(r){},t.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},t.prototype.isGroup=function(){return!1},t.prototype.getParent=function(){return this.get("parent")},t.prototype.getCanvas=function(){return this.get("canvas")},t.prototype.attr=function(){for(var r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var c=n[0],w=n[1];if(!c)return this.attrs;if((0,K.isObject)(c)){for(var _ in c)this.setAttr(_,c[_]);return this.afterAttrsChange(c),this}return n.length===2?(this.setAttr(c,w),this.afterAttrsChange((r={},r[c]=w,r)),this):this.attrs[c]},t.prototype.isClipped=function(r,n){var i=this.getClip();return i&&!i.isHit(r,n)},t.prototype.setAttr=function(r,n){var i=this.attrs[r];i!==n&&(this.attrs[r]=n,this.onAttrChange(r,n,i))},t.prototype.onAttrChange=function(r,n,i){r==="matrix"&&this.set("totalMatrix",null)},t.prototype.afterAttrsChange=function(r){if(this.cfg.isClipShape){var n=this.cfg.applyTo;n&&n.onCanvasChange("clip")}else this.onCanvasChange("attr")},t.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},t.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},t.prototype.setZIndex=function(r){this.set("zIndex",r);var n=this.getParent();return n&&n.sort(),this},t.prototype.toFront=function(){var r=this.getParent();if(!!r){var n=r.getChildren(),i=this.get("el"),c=n.indexOf(this);n.splice(c,1),n.push(this),this.onCanvasChange("zIndex")}},t.prototype.toBack=function(){var r=this.getParent();if(!!r){var n=r.getChildren(),i=this.get("el"),c=n.indexOf(this);n.splice(c,1),n.unshift(this),this.onCanvasChange("zIndex")}},t.prototype.remove=function(r){r===void 0&&(r=!0);var n=this.getParent();n?(Or(n.getChildren(),this),n.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),r&&this.destroy()},t.prototype.resetMatrix=function(){this.attr(Ot,this.getDefaultMatrix()),this.onCanvasChange("matrix")},t.prototype.getMatrix=function(){return this.attr(Ot)},t.prototype.setMatrix=function(r){this.attr(Ot,r),this.onCanvasChange("matrix")},t.prototype.getTotalMatrix=function(){var r=this.cfg.totalMatrix;if(!r){var n=this.attr("matrix"),i=this.cfg.parentMatrix;i&&n?r=R(i,n):r=n||i,this.set("totalMatrix",r)}return r},t.prototype.applyMatrix=function(r){var n=this.attr("matrix"),i=null;r&&n?i=R(r,n):i=n||r,this.set("totalMatrix",i),this.set("parentMatrix",r)},t.prototype.getDefaultMatrix=function(){return null},t.prototype.applyToMatrix=function(r){var n=this.attr("matrix");return n?W(n,r):r},t.prototype.invertFromMatrix=function(r){var n=this.attr("matrix");if(n){var i=ot(n);if(i)return W(i,r)}return r},t.prototype.setClip=function(r){var n=this.getCanvas(),i=null;if(r){var c=this.getShapeBase(),w=(0,K.upperFirst)(r.type),_=c[w];_&&(i=new _({type:r.type,isClipShape:!0,applyTo:this,attrs:r.attrs,canvas:n}))}return this.set("clipShape",i),this.onCanvasChange("clip"),i},t.prototype.getClip=function(){var r=this.cfg.clipShape;return r||null},t.prototype.clone=function(){var r=this,n=this.attrs,i={};(0,K.each)(n,function(_,I){(0,K.isArray)(n[I])?i[I]=N(n[I]):i[I]=n[I]});var c=this.constructor,w=new c({attrs:i});return(0,K.each)(Zt,function(_){w.set(_,r.get(_))}),w},t.prototype.destroy=function(){var r=this.destroyed;r||(this.attrs={},e.prototype.destroy.call(this))},t.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},t.prototype.animate=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(!(!this.get("timeline")&&!this.get("canvas"))){this.set("animating",!0);var i=this.get("timeline");i||(i=this.get("canvas").get("timeline"),this.set("timeline",i));var c=this.get("animations")||[];i.timer||i.initTimer();var w=r[0],_=r[1],I=r[2],j=I===void 0?"easeLinear":I,J=r[3],it=J===void 0?K.noop:J,Dt=r[4],Pt=Dt===void 0?0:Dt,ht,ar,vr,Mr,Pr;(0,K.isFunction)(w)?(ht=w,w={}):(0,K.isObject)(w)&&w.onFrame&&(ht=w.onFrame,ar=w.repeat),(0,K.isObject)(_)?(Pr=_,_=Pr.duration,j=Pr.easing||"easeLinear",Pt=Pr.delay||0,ar=Pr.repeat||ar||!1,it=Pr.callback||K.noop,vr=Pr.pauseCallback||K.noop,Mr=Pr.resumeCallback||K.noop):((0,K.isNumber)(it)&&(Pt=it,it=null),(0,K.isFunction)(j)?(it=j,j="easeLinear"):j=j||"easeLinear");var $t=Z(w,this),Bt={fromAttrs:G($t,this),toAttrs:$t,duration:_,easing:j,repeat:ar,callback:it,pauseCallback:vr,resumeCallback:Mr,delay:Pt,startTime:i.getTime(),id:(0,K.uniqueId)(),onFrame:ht,pathFormatted:!1};c.length>0?c=nt(c,Bt):i.addAnimator(this),c.push(Bt),this.set("animations",c),this.set("_pause",{isPaused:!1})}},t.prototype.stopAnimate=function(r){var n=this;r===void 0&&(r=!0);var i=this.get("animations");(0,K.each)(i,function(c){r&&(c.onFrame?n.attr(c.onFrame(1)):n.attr(c.toAttrs)),c.callback&&c.callback()}),this.set("animating",!1),this.set("animations",[])},t.prototype.pauseAnimate=function(){var r=this.get("timeline"),n=this.get("animations"),i=r.getTime();return(0,K.each)(n,function(c){c._paused=!0,c._pauseTime=i,c.pauseCallback&&c.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:i}),this},t.prototype.resumeAnimate=function(){var r=this.get("timeline"),n=r.getTime(),i=this.get("animations"),c=this.get("_pause").pauseTime;return(0,K.each)(i,function(w){w.startTime=w.startTime+(n-c),w._paused=!1,w._pauseTime=null,w.resumeCallback&&w.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",i),this},t.prototype.emitDelegation=function(r,n){var i=this,c=n.propagationPath,w=this.getEvents(),_;r==="mouseenter"?_=n.fromShape:r==="mouseleave"&&(_=n.toShape);for(var I=function(Dt){var Pt=c[Dt],ht=Pt.get("name");if(ht){if((Pt.isGroup()||Pt.isCanvas&&Pt.isCanvas())&&_&&p(Pt,_))return"break";(0,K.isArray)(ht)?(0,K.each)(ht,function(ar){i.emitDelegateEvent(Pt,ar,n)}):j.emitDelegateEvent(Pt,ht,n)}},j=this,J=0;J<c.length;J++){var it=I(J);if(it==="break")break}},t.prototype.emitDelegateEvent=function(r,n,i){var c=this.getEvents(),w=n+A+i.type;(c[w]||c[E])&&(i.name=w,i.currentTarget=r,i.delegateTarget=this,i.delegateObject=r.get("delegateObject"),this.emit(w,i))},t.prototype.translate=function(r,n){r===void 0&&(r=0),n===void 0&&(n=0);var i=this.getMatrix(),c=Lt(i,[["t",r,n]]);return this.setMatrix(c),this},t.prototype.move=function(r,n){var i=this.attr("x")||0,c=this.attr("y")||0;return this.translate(r-i,n-c),this},t.prototype.moveTo=function(r,n){return this.move(r,n)},t.prototype.scale=function(r,n){var i=this.getMatrix(),c=Lt(i,[["s",r,n||r]]);return this.setMatrix(c),this},t.prototype.rotate=function(r){var n=this.getMatrix(),i=Lt(n,[["r",r]]);return this.setMatrix(i),this},t.prototype.rotateAtStart=function(r){var n=this.attr(),i=n.x,c=n.y,w=this.getMatrix(),_=Lt(w,[["t",-i,-c],["r",r],["t",i,c]]);return this.setMatrix(_),this},t.prototype.rotateAtPoint=function(r,n,i){var c=this.getMatrix(),w=Lt(c,[["t",-r,-n],["r",i],["t",r,n]]);return this.setMatrix(w),this},t}(s),st=rt,Q={},mt="_INDEX";function lt(e,t){if(e.set("canvas",t),e.isGroup()){var r=e.get("children");r.length&&r.forEach(function(n){lt(n,t)})}}function Ft(e,t){if(e.set("timeline",t),e.isGroup()){var r=e.get("children");r.length&&r.forEach(function(n){Ft(n,t)})}}function tr(e,t){var r=e.getChildren();return r.indexOf(t)>=0}function It(e,t,r){r===void 0&&(r=!0),r?t.destroy():(t.set("parent",null),t.set("canvas",null)),Or(e.getChildren(),t)}function zt(e){return function(t,r){var n=e(t,r);return n===0?t[mt]-r[mt]:n}}var Gt=function(e){(0,er.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isCanvas=function(){return!1},t.prototype.getBBox=function(){var r=Infinity,n=-Infinity,i=Infinity,c=-Infinity,w=[],_=[],I=this.getChildren().filter(function(J){return J.get("visible")&&(!J.isGroup()||J.isGroup()&&J.getChildren().length>0)});I.length>0?((0,K.each)(I,function(J){var it=J.getBBox();w.push(it.minX,it.maxX),_.push(it.minY,it.maxY)}),r=(0,K.min)(w),n=(0,K.max)(w),i=(0,K.min)(_),c=(0,K.max)(_)):(r=0,n=0,i=0,c=0);var j={x:r,y:i,minX:r,minY:i,maxX:n,maxY:c,width:n-r,height:c-i};return j},t.prototype.getCanvasBBox=function(){var r=Infinity,n=-Infinity,i=Infinity,c=-Infinity,w=[],_=[],I=this.getChildren().filter(function(J){return J.get("visible")&&(!J.isGroup()||J.isGroup()&&J.getChildren().length>0)});I.length>0?((0,K.each)(I,function(J){var it=J.getCanvasBBox();w.push(it.minX,it.maxX),_.push(it.minY,it.maxY)}),r=(0,K.min)(w),n=(0,K.max)(w),i=(0,K.min)(_),c=(0,K.max)(_)):(r=0,n=0,i=0,c=0);var j={x:r,y:i,minX:r,minY:i,maxX:n,maxY:c,width:n-r,height:c-i};return j},t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return r.children=[],r},t.prototype.onAttrChange=function(r,n,i){if(e.prototype.onAttrChange.call(this,r,n,i),r==="matrix"){var c=this.getTotalMatrix();this._applyChildrenMarix(c)}},t.prototype.applyMatrix=function(r){var n=this.getTotalMatrix();e.prototype.applyMatrix.call(this,r);var i=this.getTotalMatrix();i!==n&&this._applyChildrenMarix(i)},t.prototype._applyChildrenMarix=function(r){var n=this.getChildren();(0,K.each)(n,function(i){i.applyMatrix(r)})},t.prototype.addShape=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=r[0],c=r[1];(0,K.isObject)(i)?c=i:c.type=i;var w=Q[c.type];w||(w=(0,K.upperFirst)(c.type),Q[c.type]=w);var _=this.getShapeBase(),I=new _[w](c);return this.add(I),I},t.prototype.addGroup=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=r[0],c=r[1],w;if((0,K.isFunction)(i))c?w=new i(c):w=new i({parent:this});else{var _=i||{},I=this.getGroupBase();w=new I(_)}return this.add(w),w},t.prototype.getCanvas=function(){var r;return this.isCanvas()?r=this:r=this.get("canvas"),r},t.prototype.getShape=function(r,n,i){if(!y(this))return null;var c=this.getChildren(),w;if(this.isCanvas())w=this._findShape(c,r,n,i);else{var _=[r,n,1];_=this.invertFromMatrix(_),this.isClipped(_[0],_[1])||(w=this._findShape(c,_[0],_[1],i))}return w},t.prototype._findShape=function(r,n,i,c){for(var w=null,_=r.length-1;_>=0;_--){var I=r[_];if(y(I)&&(I.isGroup()?w=I.getShape(n,i,c):I.isHit(n,i)&&(w=I)),w)break}return w},t.prototype.add=function(r){var n=this.getCanvas(),i=this.getChildren(),c=this.get("timeline"),w=r.getParent();w&&It(w,r,!1),r.set("parent",this),n&<(r,n),c&&Ft(r,c),i.push(r),r.onCanvasChange("add"),this._applyElementMatrix(r)},t.prototype._applyElementMatrix=function(r){var n=this.getTotalMatrix();n&&r.applyMatrix(n)},t.prototype.getChildren=function(){return this.get("children")},t.prototype.sort=function(){var r=this.getChildren();(0,K.each)(r,function(n,i){return n[mt]=i,n}),r.sort(zt(function(n,i){return n.get("zIndex")-i.get("zIndex")})),this.onCanvasChange("sort")},t.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var r=this.getChildren(),n=r.length-1;n>=0;n--)r[n].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},t.prototype.destroy=function(){this.get("destroyed")||(this.clear(),e.prototype.destroy.call(this))},t.prototype.getFirst=function(){return this.getChildByIndex(0)},t.prototype.getLast=function(){var r=this.getChildren();return this.getChildByIndex(r.length-1)},t.prototype.getChildByIndex=function(r){var n=this.getChildren();return n[r]},t.prototype.getCount=function(){var r=this.getChildren();return r.length},t.prototype.contain=function(r){var n=this.getChildren();return n.indexOf(r)>-1},t.prototype.removeChild=function(r,n){n===void 0&&(n=!0),this.contain(r)&&r.remove(n)},t.prototype.findAll=function(r){var n=[],i=this.getChildren();return(0,K.each)(i,function(c){r(c)&&n.push(c),c.isGroup()&&(n=n.concat(c.findAll(r)))}),n},t.prototype.find=function(r){var n=null,i=this.getChildren();return(0,K.each)(i,function(c){if(r(c)?n=c:c.isGroup()&&(n=c.find(r)),n)return!1}),n},t.prototype.findById=function(r){return this.find(function(n){return n.get("id")===r})},t.prototype.findByClassName=function(r){return this.find(function(n){return n.get("className")===r})},t.prototype.findAllByName=function(r){return this.findAll(function(n){return n.get("name")===r})},t}(st),rr=Gt,kt=0,Ut=0,B=0,x=1e3,o,C,D=0,U=0,et=0,at=typeof performance=="object"&&performance.now?performance:Date,vt=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ar(){return U||(vt(xr),U=at.now()+et)}function xr(){U=0}function zr(){this._call=this._time=this._next=null}zr.prototype=Wr.prototype={constructor:zr,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Ar():+r)+(t==null?0:+t),!this._next&&C!==this&&(C?C._next=this:o=this,C=this),this._call=e,this._time=r,me()},stop:function(){this._call&&(this._call=null,this._time=Infinity,me())}};function Wr(e,t,r){var n=new zr;return n.restart(e,t,r),n}function ae(){Ar(),++kt;for(var e=o,t;e;)(t=U-e._time)>=0&&e._call.call(null,t),e=e._next;--kt}function he(){U=(D=at.now())+et,kt=Ut=0;try{ae()}finally{kt=0,Me(),U=0}}function re(){var e=at.now(),t=e-D;t>x&&(et-=t,D=e)}function Me(){for(var e,t=o,r,n=Infinity;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:o=r);C=e,me(n)}function me(e){if(!kt){Ut&&(Ut=clearTimeout(Ut));var t=e-U;t>24?(e<Infinity&&(Ut=setTimeout(he,e-at.now()-et)),B&&(B=clearInterval(B))):(B||(D=at.now(),B=setInterval(re,x)),kt=1,vt(he))}}function ye(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Se(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ae(){}var Ce=.7,M=1/Ce,l="\\s*([+-]?\\d+)\\s*",a="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",f="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",g=/^#([0-9a-f]{3,8})$/,k=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),F=new RegExp("^rgb\\("+[f,f,f]+"\\)$"),z=new RegExp("^rgba\\("+[l,l,l,a]+"\\)$"),pt=new RegExp("^rgba\\("+[f,f,f,a]+"\\)$"),wt=new RegExp("^hsl\\("+[a,f,f]+"\\)$"),St=new RegExp("^hsla\\("+[a,f,f,a]+"\\)$"),yt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ye(Ae,Hr,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Vt,formatHex:Vt,formatHsl:fr,formatRgb:Xr,toString:Xr});function Vt(){return this.rgb().formatHex()}function fr(){return h(this).formatHsl()}function Xr(){return this.rgb().formatRgb()}function Hr(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=g.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Jr(t):r===3?new kr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?qr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?qr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=k.exec(e))?new kr(t[1],t[2],t[3],1):(t=F.exec(e))?new kr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=z.exec(e))?qr(t[1],t[2],t[3],t[4]):(t=pt.exec(e))?qr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=wt.exec(e))?we(t[1],t[2]/100,t[3]/100,1):(t=St.exec(e))?we(t[1],t[2]/100,t[3]/100,t[4]):yt.hasOwnProperty(e)?Jr(yt[e]):e==="transparent"?new kr(NaN,NaN,NaN,0):null}function Jr(e){return new kr(e>>16&255,e>>8&255,e&255,1)}function qr(e,t,r,n){return n<=0&&(e=t=r=NaN),new kr(e,t,r,n)}function Kr(e){return e instanceof Ae||(e=Hr(e)),e?(e=e.rgb(),new kr(e.r,e.g,e.b,e.opacity)):new kr}function Ur(e,t,r,n){return arguments.length===1?Kr(e):new kr(e,t,r,n==null?1:n)}function kr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}ye(kr,Ur,Se(Ae,{brighter:function(e){return e=e==null?M:Math.pow(M,e),new kr(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Ce:Math.pow(Ce,e),new kr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:te,formatHex:te,formatRgb:ge,toString:ge}));function te(){return"#"+$r(this.r)+$r(this.g)+$r(this.b)}function ge(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function $r(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function we(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new b(e,t,r,n)}function h(e){if(e instanceof b)return new b(e.h,e.s,e.l,e.opacity);if(e instanceof Ae||(e=Hr(e)),!e)return new b;if(e instanceof b)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),c=Math.max(t,r,n),w=NaN,_=c-i,I=(c+i)/2;return _?(t===c?w=(r-n)/_+(r<n)*6:r===c?w=(n-t)/_+2:w=(t-r)/_+4,_/=I<.5?c+i:2-c-i,w*=60):_=I>0&&I<1?0:w,new b(w,_,I,e.opacity)}function m(e,t,r,n){return arguments.length===1?h(e):new b(e,t,r,n==null?1:n)}function b(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}ye(b,m,Se(Ae,{brighter:function(e){return e=e==null?M:Math.pow(M,e),new b(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Ce:Math.pow(Ce,e),new b(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new kr(q(e>=240?e-240:e+120,i,n),q(e,i,n),q(e<120?e+240:e-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function q(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function X(e,t,r,n,i){var c=e*e,w=c*e;return((1-3*e+3*c-w)*t+(4-6*c+3*w)*r+(1+3*e+3*c-3*w)*n+w*i)/6}function $(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],c=e[n+1],w=n>0?e[n-1]:2*i-c,_=n<t-1?e[n+2]:2*c-i;return X((r-n/t)*t,w,i,c,_)}}function Ct(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],c=e[n%t],w=e[(n+1)%t],_=e[(n+2)%t];return X((r-n/t)*t,i,c,w,_)}}function Et(e){return function(){return e}}function nr(e,t){return function(r){return e+r*t}}function Rt(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Jt(e,t){var r=t-e;return r?nr(e,r>180||r<-180?r-360*Math.round(r/360):r):constant(isNaN(e)?t:e)}function Fr(e){return(e=+e)==1?Br:function(t,r){return r-t?Rt(t,r,e):Et(isNaN(t)?r:t)}}function Br(e,t){var r=t-e;return r?nr(e,r):Et(isNaN(e)?t:e)}var Qr=function e(t){var r=Fr(t);function n(i,c){var w=r((i=Ur(i)).r,(c=Ur(c)).r),_=r(i.g,c.g),I=r(i.b,c.b),j=Br(i.opacity,c.opacity);return function(J){return i.r=w(J),i.g=_(J),i.b=I(J),i.opacity=j(J),i+""}}return n.gamma=e,n}(1);function Rr(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),c=new Array(r),w,_;for(w=0;w<r;++w)_=Ur(t[w]),n[w]=_.r||0,i[w]=_.g||0,c[w]=_.b||0;return n=e(n),i=e(i),c=e(c),_.opacity=1,function(I){return _.r=n(I),_.g=i(I),_.b=c(I),_+""}}}var oe=Rr($),se=Rr(Ct);function ve(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(c){for(i=0;i<r;++i)n[i]=e[i]*(1-c)+t[i]*c;return n}}function jr(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Pe(e,t){return(jr(t)?ve:ue)(e,t)}function ue(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),c=new Array(r),w;for(w=0;w<n;++w)i[w]=Be(e[w],t[w]);for(;w<r;++w)c[w]=t[w];return function(_){for(w=0;w<n;++w)c[w]=i[w](_);return c}}function fe(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ce(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function Ie(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Be(e[i],t[i]):n[i]=t[i];return function(c){for(i in r)n[i]=r[i](c);return n}}var ie=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pe=new RegExp(ie.source,"g");function De(e){return function(){return e}}function He(e){return function(t){return e(t)+""}}function Oe(e,t){var r=ie.lastIndex=pe.lastIndex=0,n,i,c,w=-1,_=[],I=[];for(e=e+"",t=t+"";(n=ie.exec(e))&&(i=pe.exec(t));)(c=i.index)>r&&(c=t.slice(r,c),_[w]?_[w]+=c:_[++w]=c),(n=n[0])===(i=i[0])?_[w]?_[w]+=i:_[++w]=i:(_[++w]=null,I.push({i:w,x:ce(n,i)})),r=pe.lastIndex;return r<t.length&&(c=t.slice(r),_[w]?_[w]+=c:_[++w]=c),_.length<2?I[0]?He(I[0].x):De(t):(t=I.length,function(j){for(var J=0,it;J<t;++J)_[(it=I[J]).i]=it.x(j);return _.join("")})}function Be(e,t){var r=typeof t,n;return t==null||r==="boolean"?Et(t):(r==="number"?ce:r==="string"?(n=Hr(t))?(t=n,Qr):Oe:t instanceof Hr?Qr:t instanceof Date?fe:jr(t)?ve:Array.isArray(t)?ue:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Ie:ce)(e,t)}function Qe(e){return+e}function Ne(e){return e*e}function Ee(e){return e*(2-e)}function qe(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function Ge(e){return e*e*e}function Le(e){return--e*e*e+1}function be(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var We=3,Ke=function e(t){t=+t;function r(n){return Math.pow(n,t)}return r.exponent=e,r}(We),an=function e(t){t=+t;function r(n){return 1-Math.pow(1-n,t)}return r.exponent=e,r}(We),on=function e(t){t=+t;function r(n){return((n*=2)<=1?Math.pow(n,t):2-Math.pow(2-n,t))/2}return r.exponent=e,r}(We),Je=Math.PI,sn=Je/2;function pn(e){return+e==1?1:1-Math.cos(e*sn)}function gn(e){return Math.sin(e*sn)}function un(e){return(1-Math.cos(Je*e))/2}function Te(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function dn(e){return Te(1-+e)}function mn(e){return 1-Te(e)}function fn(e){return((e*=2)<=1?Te(1-e):2-Te(e-1))/2}function yn(e){return 1-Math.sqrt(1-e*e)}function je(e){return Math.sqrt(1- --e*e)}function tn(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var rn=4/11,xn=6/11,Mn=8/11,wn=3/4,An=9/11,Cn=10/11,bn=15/16,_n=21/22,Sn=63/64,Ve=1/rn/rn;function En(e){return 1-ze(1-e)}function ze(e){return(e=+e)<rn?Ve*e*e:e<Mn?Ve*(e-=xn)*e+wn:e<Cn?Ve*(e-=An)*e+bn:Ve*(e-=_n)*e+Sn}function Ze(e){return((e*=2)<=1?1-ze(1-e):ze(e-1)+1)/2}var en=1.70158,Tn=function e(t){t=+t;function r(n){return(n=+n)*n*(t*(n-1)+n)}return r.overshoot=e,r}(en),Pn=function e(t){t=+t;function r(n){return--n*n*((n+1)*t+n)+1}return r.overshoot=e,r}(en),cn=function e(t){t=+t;function r(n){return((n*=2)<1?n*n*((t+1)*n-t):(n-=2)*n*((t+1)*n+t)+2)/2}return r.overshoot=e,r}(en),Fe=2*Math.PI,Ye=1,ke=.3,In=function e(t,r){var n=Math.asin(1/(t=Math.max(1,t)))*(r/=Fe);function i(c){return t*Te(- --c)*Math.sin((n-c)/r)}return i.amplitude=function(c){return e(c,r*Fe)},i.period=function(c){return e(t,c)},i}(Ye,ke),ln=function e(t,r){var n=Math.asin(1/(t=Math.max(1,t)))*(r/=Fe);function i(c){return 1-t*Te(c=+c)*Math.sin((c+n)/r)}return i.amplitude=function(c){return e(c,r*Fe)},i.period=function(c){return e(t,c)},i}(Ye,ke),kn=function e(t,r){var n=Math.asin(1/(t=Math.max(1,t)))*(r/=Fe);function i(c){return((c=c*2-1)<0?t*Te(-c)*Math.sin((n-c)/r):2-t*Te(c)*Math.sin((n+c)/r))/2}return i.amplitude=function(c){return e(c,r*Fe)},i.period=function(c){return e(t,c)},i}(Ye,ke),u={};function P(e){return u[e.toLowerCase()]||Y[e]}function H(e,t){u[e.toLowerCase()]=t}var V=function(e){return["fill","stroke","fillStyle","strokeStyle"].includes(e)},ft=function(e){return/^[r,R,L,l]{1}[\s]*\(/.test(e)},Yt=[1,0,0,0,1,0,0,0,1];function hr(e,t,r){var n={},i=t.fromAttrs,c=t.toAttrs;if(!e.destroyed){var w;for(var _ in c)if(!(0,K.isEqual)(i[_],c[_]))if(_==="path"){var I=c[_],j=i[_];I.length>j.length?(I=dr(c[_]),j=dr(i[_]),j=dt(j,I),j=Wt(j,I),t.fromAttrs.path=j,t.toAttrs.path=I):t.pathFormatted||(I=dr(c[_]),j=dr(i[_]),j=Wt(j,I),t.fromAttrs.path=j,t.toAttrs.path=I,t.pathFormatted=!0),n[_]=[];for(var J=0;J<I.length;J++){for(var it=I[J],Dt=j[J],Pt=[],ht=0;ht<it.length;ht++)(0,K.isNumber)(it[ht])&&Dt&&(0,K.isNumber)(Dt[ht])?(w=Be(Dt[ht],it[ht]),Pt.push(w(r))):Pt.push(it[ht]);n[_].push(Pt)}}else if(_==="matrix"){var ar=Pe(i[_]||Yt,c[_]||Yt),vr=ar(r);n[_]=vr}else V(_)&&ft(c[_])?n[_]=c[_]:(0,K.isFunction)(c[_])||(w=Be(i[_],c[_]),n[_]=w(r));e.attr(n)}}function Yr(e,t,r){var n=t.startTime,i=t.delay;if(r<n+i||t._paused)return!1;var c,w=t.duration,_=t.easing,I=P(_);if(r=r-n-t.delay,t.repeat)c=r%w/w,c=I(c);else if(c=r/w,c<1)c=I(c);else return t.onFrame?e.attr(t.onFrame(1)):e.attr(t.toAttrs),!0;if(t.onFrame){var j=t.onFrame(c);e.attr(j)}else hr(e,t,c);return!1}var le=function(){function e(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return e.prototype.initTimer=function(){var t=this,r=!1,n,i,c;this.timer=Wr(function(w){if(t.current=w,t.animators.length>0){for(var _=t.animators.length-1;_>=0;_--){if(n=t.animators[_],n.destroyed){t.removeAnimator(_);continue}if(!n.isAnimatePaused()){i=n.get("animations");for(var I=i.length-1;I>=0;I--)c=i[I],r=Yr(n,c,w),r&&(i.splice(I,1),r=!1,c.callback&&c.callback())}i.length===0&&t.removeAnimator(_)}var j=t.canvas.get("autoDraw");j||t.canvas.draw()}})},e.prototype.addAnimator=function(t){this.animators.push(t)},e.prototype.removeAnimator=function(t){this.animators.splice(t,1)},e.prototype.isAnimating=function(){return!!this.animators.length},e.prototype.stop=function(){this.timer&&this.timer.stop()},e.prototype.stopAllAnimations=function(t){t===void 0&&(t=!0),this.animators.forEach(function(r){r.stopAnimate(t)}),this.animators=[],this.canvas.draw()},e.prototype.getTime=function(){return this.current},e}(),de=le,xe=40,Ue=0,ra=":",Nn=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Oa(e,t){for(var r in e)if(e.hasOwnProperty(r)&&r.indexOf(ra+t)>=0)return!0;return!1}function Ln(e,t,r){r.name=t,r.target=e,r.currentTarget=e,r.delegateTarget=e,e.emit(t,r)}function ea(e,t,r){if(r.bubbles){var n=void 0,i=!1;if(t==="mouseenter"?(n=r.fromShape,i=!0):t==="mouseleave"&&(i=!0,n=r.toShape),e.isCanvas()&&i)return;if(n&&p(e,n)){r.bubbles=!1;return}r.name=t,r.currentTarget=e,r.delegateTarget=e,e.emit(t,r)}}var na=function(){function e(t){var r=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(n){var i=n.type;r._triggerEvent(i,n)},this._onDocumentMove=function(n){var i=r.canvas,c=i.get("el");if(c!==n.target&&(r.dragging||r.currentShape)){var w=r._getPointInfo(n);r.dragging&&r._emitEvent("drag",n,w,r.draggingShape)}},this._onDocumentMouseUp=function(n){var i=r.canvas,c=i.get("el");if(c!==n.target&&r.dragging){var w=r._getPointInfo(n);r.draggingShape&&r._emitEvent("drop",n,w,null),r._emitEvent("dragend",n,w,r.draggingShape),r._afterDrag(r.draggingShape,w,n)}},this.canvas=t.canvas}return e.prototype.init=function(){this._bindEvents()},e.prototype._bindEvents=function(){var t=this,r=this.canvas.get("el");(0,K.each)(Nn,function(n){r.addEventListener(n,t._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},e.prototype._clearEvents=function(){var t=this,r=this.canvas.get("el");(0,K.each)(Nn,function(n){r.removeEventListener(n,t._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},e.prototype._getEventObj=function(t,r,n,i,c,w){var _=new sr(t,r);return _.fromShape=c,_.toShape=w,_.x=n.x,_.y=n.y,_.clientX=n.clientX,_.clientY=n.clientY,_.propagationPath.push(i),_},e.prototype._getShape=function(t,r){return this.canvas.getShape(t.x,t.y,r)},e.prototype._getPointInfo=function(t){var r=this.canvas,n=r.getClientByEvent(t),i=r.getPointByEvent(t);return{x:i.x,y:i.y,clientX:n.x,clientY:n.y}},e.prototype._triggerEvent=function(t,r){var n=this._getPointInfo(r),i=this._getShape(n,r),c=this["_on"+t],w=!1;if(c)c.call(this,n,i,r);else{var _=this.currentShape;t==="mouseenter"||t==="dragenter"||t==="mouseover"?(this._emitEvent(t,r,n,null,null,i),i&&this._emitEvent(t,r,n,i,null,i),t==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",r,n,null)):t==="mouseleave"||t==="dragleave"||t==="mouseout"?(w=!0,_&&this._emitEvent(t,r,n,_,_,null),this._emitEvent(t,r,n,null,_,null),t==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",r,n,null)):this._emitEvent(t,r,n,i,null,null)}if(w||(this.currentShape=i),i&&!i.get("destroyed")){var I=this.canvas,j=I.get("el");j.style.cursor=i.attr("cursor")||I.get("cursor")}},e.prototype._onmousedown=function(t,r,n){n.button===Ue&&(this.mousedownShape=r,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,r,null,null)},e.prototype._emitMouseoverEvents=function(t,r,n,i){var c=this.canvas.get("el");n!==i&&(n&&(this._emitEvent("mouseout",t,r,n,n,i),this._emitEvent("mouseleave",t,r,n,n,i),(!i||i.get("destroyed"))&&(c.style.cursor=this.canvas.get("cursor"))),i&&(this._emitEvent("mouseover",t,r,i,n,i),this._emitEvent("mouseenter",t,r,i,n,i)))},e.prototype._emitDragoverEvents=function(t,r,n,i,c){i?(i!==n&&(n&&this._emitEvent("dragleave",t,r,n,n,i),this._emitEvent("dragenter",t,r,i,n,i)),c||this._emitEvent("dragover",t,r,i)):n&&this._emitEvent("dragleave",t,r,n,n,i),c&&this._emitEvent("dragover",t,r,i)},e.prototype._afterDrag=function(t,r,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var i=this._getShape(r,n);i!==t&&this._emitMouseoverEvents(n,r,t,i),this.currentShape=i},e.prototype._onmouseup=function(t,r,n){if(n.button===Ue){var i=this.draggingShape;this.dragging?(i&&this._emitEvent("drop",n,t,r),this._emitEvent("dragend",n,t,i),this._afterDrag(i,t,n)):(this._emitEvent("mouseup",n,t,r),r===this.mousedownShape&&this._emitEvent("click",n,t,r),this.mousedownShape=null,this.mousedownPoint=null)}},e.prototype._ondragover=function(t,r,n){n.preventDefault();var i=this.currentShape;this._emitDragoverEvents(n,t,i,r,!0)},e.prototype._onmousemove=function(t,r,n){var i=this.canvas,c=this.currentShape,w=this.draggingShape;if(this.dragging)w&&this._emitDragoverEvents(n,t,c,r,!1),this._emitEvent("drag",n,t,w);else{var _=this.mousedownPoint;if(_){var I=this.mousedownShape,j=n.timeStamp,J=j-this.mousedownTimeStamp,it=_.clientX-t.clientX,Dt=_.clientY-t.clientY,Pt=it*it+Dt*Dt;J>120||Pt>xe?I&&I.get("draggable")?(w=this.mousedownShape,w.set("capture",!1),this.draggingShape=w,this.dragging=!0,this._emitEvent("dragstart",n,t,w),this.mousedownShape=null,this.mousedownPoint=null):!I&&i.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,c,r),this._emitEvent("mousemove",n,t,r)):(this._emitMouseoverEvents(n,t,c,r),this._emitEvent("mousemove",n,t,r))}else this._emitMouseoverEvents(n,t,c,r),this._emitEvent("mousemove",n,t,r)}},e.prototype._emitEvent=function(t,r,n,i,c,w){var _=this._getEventObj(t,r,n,i,c,w);if(i){_.shape=i,Ln(i,t,_);for(var I=i.getParent();I;)I.emitDelegation(t,_),_.propagationStopped||ea(I,t,_),_.propagationPath.push(I),I=I.getParent()}else{var j=this.canvas;Ln(j,t,_)}},e.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},e}(),aa=na,Fn="px",Yn=(0,d.qY)(),ia=Yn&&Yn.name==="firefox",oa=function(e){(0,er.__extends)(t,e);function t(r){var n=e.call(this,r)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return r.cursor="default",r.supportCSSTransform=!1,r},t.prototype.initContainer=function(){var r=this.get("container");(0,K.isString)(r)&&(r=document.getElementById(r),this.set("container",r))},t.prototype.initDom=function(){var r=this.createDom();this.set("el",r);var n=this.get("container");n.appendChild(r),this.setDOMSize(this.get("width"),this.get("height"))},t.prototype.initEvents=function(){var r=new aa({canvas:this});r.init(),this.set("eventController",r)},t.prototype.initTimeline=function(){var r=new de(this);this.set("timeline",r)},t.prototype.setDOMSize=function(r,n){var i=this.get("el");L&&(i.style.width=r+Fn,i.style.height=n+Fn)},t.prototype.changeSize=function(r,n){this.setDOMSize(r,n),this.set("width",r),this.set("height",n),this.onCanvasChange("changeSize")},t.prototype.getRenderer=function(){return this.get("renderer")},t.prototype.getCursor=function(){return this.get("cursor")},t.prototype.setCursor=function(r){this.set("cursor",r);var n=this.get("el");L&&n&&(n.style.cursor=r)},t.prototype.getPointByEvent=function(r){var n=this.get("supportCSSTransform");if(n){if(ia&&!(0,K.isNil)(r.layerX)&&r.layerX!==r.offsetX)return{x:r.layerX,y:r.layerY};if(!(0,K.isNil)(r.offsetX))return{x:r.offsetX,y:r.offsetY}}var i=this.getClientByEvent(r),c=i.x,w=i.y;return this.getPointByClient(c,w)},t.prototype.getClientByEvent=function(r){var n=r;return r.touches&&(r.type==="touchend"?n=r.changedTouches[0]:n=r.touches[0]),{x:n.clientX,y:n.clientY}},t.prototype.getPointByClient=function(r,n){var i=this.get("el"),c=i.getBoundingClientRect();return{x:r-c.left,y:n-c.top}},t.prototype.getClientByPoint=function(r,n){var i=this.get("el"),c=i.getBoundingClientRect();return{x:r+c.left,y:n+c.top}},t.prototype.draw=function(){},t.prototype.removeDom=function(){var r=this.get("el");r.parentNode.removeChild(r)},t.prototype.clearEvents=function(){var r=this.get("eventController");r.destroy()},t.prototype.isCanvas=function(){return!0},t.prototype.getParent=function(){return null},t.prototype.destroy=function(){var r=this.get("timeline");this.get("destroyed")||(this.clear(),r&&r.stop(),this.clearEvents(),this.removeDom(),e.prototype.destroy.call(this))},t}(rr),sa=oa,ua=function(e){(0,er.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isGroup=function(){return!0},t.prototype.isEntityGroup=function(){return!1},t.prototype.clone=function(){for(var r=e.prototype.clone.call(this),n=this.getChildren(),i=0;i<n.length;i++){var c=n[i];r.add(c.clone())}return r},t}(rr),fa=ua,ca=function(e){(0,er.__extends)(t,e);function t(r){return e.call(this,r)||this}return t.prototype._isInBBox=function(r,n){var i=this.getBBox();return i.minX<=r&&i.maxX>=r&&i.minY<=n&&i.maxY>=n},t.prototype.afterAttrsChange=function(r){e.prototype.afterAttrsChange.call(this,r),this.clearCacheBBox()},t.prototype.getBBox=function(){var r=this.cfg.bbox;return r||(r=this.calculateBBox(),this.set("bbox",r)),r},t.prototype.getCanvasBBox=function(){var r=this.cfg.canvasBBox;return r||(r=this.calculateCanvasBBox(),this.set("canvasBBox",r)),r},t.prototype.applyMatrix=function(r){e.prototype.applyMatrix.call(this,r),this.set("canvasBBox",null)},t.prototype.calculateCanvasBBox=function(){var r=this.getBBox(),n=this.getTotalMatrix(),i=r.minX,c=r.minY,w=r.maxX,_=r.maxY;if(n){var I=W(n,[r.minX,r.minY]),j=W(n,[r.maxX,r.minY]),J=W(n,[r.minX,r.maxY]),it=W(n,[r.maxX,r.maxY]);i=Math.min(I[0],j[0],J[0],it[0]),w=Math.max(I[0],j[0],J[0],it[0]),c=Math.min(I[1],j[1],J[1],it[1]),_=Math.max(I[1],j[1],J[1],it[1])}var Dt=this.attrs;if(Dt.shadowColor){var Pt=Dt.shadowBlur,ht=Pt===void 0?0:Pt,ar=Dt.shadowOffsetX,vr=ar===void 0?0:ar,Mr=Dt.shadowOffsetY,Pr=Mr===void 0?0:Mr,$t=i-ht+vr,Bt=w+ht+vr,Cr=c-ht+Pr,Vr=_+ht+Pr;i=Math.min(i,$t),w=Math.max(w,Bt),c=Math.min(c,Cr),_=Math.max(_,Vr)}return{x:i,y:c,minX:i,minY:c,maxX:w,maxY:_,width:w-i,height:_-c}},t.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},t.prototype.isClipShape=function(){return this.get("isClipShape")},t.prototype.isInShape=function(r,n){return!1},t.prototype.isOnlyHitBox=function(){return!1},t.prototype.isHit=function(r,n){var i=this.get("startArrowShape"),c=this.get("endArrowShape"),w=[r,n,1];w=this.invertFromMatrix(w);var _=w[0],I=w[1],j=this._isInBBox(_,I);return this.isOnlyHitBox()?j:!!(j&&!this.isClipped(_,I)&&(this.isInShape(_,I)||i&&i.isHit(_,I)||c&&c.isHit(_,I)))},t}(st),la=ca,Rn=new Map;function _e(e,t){Rn.set(e,t)}function ha(e){return Rn.get(e)}function Xn(e){var t=e.attr(),r=t.x,n=t.y,i=t.width,c=t.height;return{x:r,y:n,width:i,height:c}}function Hn(e){var t=e.attr(),r=t.x,n=t.y,i=t.r;return{x:r-i,y:n-i,width:i*2,height:i*2}}var nn=qt(89838);function qn(e,t){return!e||!t?e||t:{minX:Math.min(e.minX,t.minX),minY:Math.min(e.minY,t.minY),maxX:Math.max(e.maxX,t.maxX),maxY:Math.max(e.maxY,t.maxY)}}function Dn(e,t){var r=e.get("startArrowShape"),n=e.get("endArrowShape"),i=null,c=null;return r&&(i=r.getCanvasBBox(),t=qn(t,i)),n&&(c=n.getCanvasBBox(),t=qn(t,c)),t}function va(e){for(var t=e.attr(),r=t.points,n=[],i=[],c=0;c<r.length;c++){var w=r[c];n.push(w[0]),i.push(w[1])}var _=nn.Zr.getBBoxByArray(n,i),I=_.x,j=_.y,J=_.width,it=_.height,Dt={minX:I,minY:j,maxX:I+J,maxY:j+it};return Dt=Dn(e,Dt),{x:Dt.minX,y:Dt.minY,width:Dt.maxX-Dt.minX,height:Dt.maxY-Dt.minY}}function pa(e){for(var t=e.attr(),r=t.points,n=[],i=[],c=0;c<r.length;c++){var w=r[c];n.push(w[0]),i.push(w[1])}return nn.Zr.getBBoxByArray(n,i)}var On=null;function zn(){if(!On){var e=document.createElement("canvas");e.width=1,e.height=1,On=e.getContext("2d")}return On}function Gn(e,t,r){var n=1;if((0,K.isString)(e)&&(n=e.split(`
- `).length),n>1){var i=ga(t,r);return t*n+i*(n-1)}return t}function ga(e,t){return t?t-e:e*.14}function da(e,t){var r=zn(),n=0;if((0,K.isNil)(e)||e==="")return n;if(r.save(),r.font=t,(0,K.isString)(e)&&e.includes(`
- `)){var i=e.split(`
- `);(0,K.each)(i,function(c){var w=r.measureText(c).width;n<w&&(n=w)})}else n=r.measureText(e).width;return r.restore(),n}function Wn(e){var t=e.fontSize,r=e.fontFamily,n=e.fontWeight,i=e.fontStyle,c=e.fontVariant;return[i,c,n,t+"px",r].join(" ").trim()}function ma(e){var t=e.attr(),r=t.x,n=t.y,i=t.text,c=t.fontSize,w=t.lineHeight,_=t.font;_||(_=Wn(t));var I=da(i,_),j;if(!I)j={x:r,y:n,width:0,height:0};else{var J=t.textAlign,it=t.textBaseline,Dt=Gn(i,c,w),Pt={x:r,y:n-Dt};J&&(J==="end"||J==="right"?Pt.x-=I:J==="center"&&(Pt.x-=I/2)),it&&(it==="top"?Pt.y+=Dt:it==="middle"&&(Pt.y+=Dt/2)),j={x:Pt.x,y:Pt.y,width:I,height:Dt}}return j}var ya=qt(80389);function xa(e,t){for(var r=[],n=[],i=[],c=0;c<e.length;c++){var w=e[c],_=w.currentPoint,I=w.params,j=w.prePoint,J=void 0;switch(w.command){case"Q":J=nn.lD.box(j[0],j[1],I[1],I[2],I[3],I[4]);break;case"C":J=nn.Ll.box(j[0],j[1],I[1],I[2],I[3],I[4],I[5],I[6]);break;case"A":var it=w.arcParams;J=nn.wN.box(it.cx,it.cy,it.rx,it.ry,it.xRotation,it.startAngle,it.endAngle);break;default:r.push(_[0]),n.push(_[1]);break}J&&(w.box=J,r.push(J.x,J.x+J.width),n.push(J.y,J.y+J.height)),t&&(w.command==="L"||w.command==="M")&&w.prePoint&&w.nextPoint&&i.push(w)}r=r.filter(function(Mr){return!Number.isNaN(Mr)&&Mr!==Infinity&&Mr!==-Infinity}),n=n.filter(function(Mr){return!Number.isNaN(Mr)&&Mr!==Infinity&&Mr!==-Infinity});var Dt=(0,K.min)(r),Pt=(0,K.min)(n),ht=(0,K.max)(r),ar=(0,K.max)(n);if(i.length===0)return{x:Dt,y:Pt,width:ht-Dt,height:ar-Pt};for(var c=0;c<i.length;c++){var w=i[c],_=w.currentPoint,vr=void 0;_[0]===Dt?(vr=hn(w,t),Dt=Dt-vr.xExtra):_[0]===ht&&(vr=hn(w,t),ht=ht+vr.xExtra),_[1]===Pt?(vr=hn(w,t),Pt=Pt-vr.yExtra):_[1]===ar&&(vr=hn(w,t),ar=ar+vr.yExtra)}return{x:Dt,y:Pt,width:ht-Dt,height:ar-Pt}}function hn(e,t){var r=e.prePoint,n=e.currentPoint,i=e.nextPoint,c=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2),w=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),_=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),I=Math.acos((c+w-_)/(2*Math.sqrt(c)*Math.sqrt(w)));if(!I||Math.sin(I)===0||(0,K.isNumberEqual)(I,0))return{xExtra:0,yExtra:0};var j=Math.abs(Math.atan2(i[1]-n[1],i[0]-n[0])),J=Math.abs(Math.atan2(i[0]-n[0],i[1]-n[1]));j=j>Math.PI/2?Math.PI-j:j,J=J>Math.PI/2?Math.PI-J:J;var it={xExtra:Math.cos(I/2-j)*(t/2*(1/Math.sin(I/2)))-t/2||0,yExtra:Math.cos(J-I/2)*(t/2*(1/Math.sin(I/2)))-t/2||0};return it}function Ma(e){var t=e.attr(),r=t.path,n=t.stroke,i=n?t.lineWidth:0,c=e.get("segments")||(0,ya.zx)(r),w=xa(c,i),_=w.x,I=w.y,j=w.width,J=w.height,it={minX:_,minY:I,maxX:_+j,maxY:I+J};return it=Dn(e,it),{x:it.minX,y:it.minY,width:it.maxX-it.minX,height:it.maxY-it.minY}}function wa(e){var t=e.attr(),r=t.x1,n=t.y1,i=t.x2,c=t.y2,w=Math.min(r,i),_=Math.max(r,i),I=Math.min(n,c),j=Math.max(n,c),J={minX:w,maxX:_,minY:I,maxY:j};return J=Dn(e,J),{x:J.minX,y:J.minY,width:J.maxX-J.minX,height:J.maxY-J.minY}}function Aa(e){var t=e.attr(),r=t.x,n=t.y,i=t.rx,c=t.ry;return{x:r-i,y:n-c,width:i*2,height:c*2}}_e("rect",Xn),_e("image",Xn),_e("circle",Hn),_e("marker",Hn),_e("polyline",va),_e("polygon",pa),_e("text",ma),_e("path",Ma),_e("line",wa),_e("ellipse",Aa);var Ba="0.5.11"},13063:function(ne,Ir,qt){"use strict";qt.r(Ir),qt.d(Ir,{AbstractCanvas:function(){return K.$Z},AbstractGroup:function(){return K.pA},AbstractShape:function(){return K.zr},Base:function(){return K.XY},Canvas:function(){return Ae},Event:function(){return K.ju},Group:function(){return y},PathUtil:function(){return K.Gk},Shape:function(){return xt},assembleFont:function(){return K.$O},getArcParams:function(){return Sr},getBBoxMethod:function(){return K.bj},getOffScreenContext:function(){return K.LF},getTextHeight:function(){return K.FE},invert:function(){return K.U_},isAllowCapture:function(){return K.pP},multiplyVec2:function(){return K.rG},registerBBox:function(){return K.WZ},registerEasing:function(){return K.CW},version:function(){return Ce}});var xt={};qt.r(xt),qt.d(xt,{Base:function(){return s},Circle:function(){return T},Ellipse:function(){return ot},Image:function(){return Zt},Line:function(){return N},Marker:function(){return rt},Path:function(){return C},Polygon:function(){return et},Polyline:function(){return vt},Rect:function(){return Wr},Text:function(){return he}});var Y=qt(70655),K=qt(3232),tt=qt(49242);function gr(){return window?window.devicePixelRatio:1}function _t(M,l,a,f){var g=M-a,k=l-f;return Math.sqrt(g*g+k*k)}function dr(M,l,a,f,g,k){return g>=M&&g<=M+a&&k>=l&&k<=l+f}function Qt(M,l){return!(l.minX>M.maxX||l.maxX<M.minX||l.minY>M.maxY||l.maxY<M.minY)}function br(M,l){return!M||!l?M||l:{minX:Math.min(M.minX,l.minX),minY:Math.min(M.minY,l.minY),maxX:Math.max(M.maxX,l.maxX),maxY:Math.max(M.maxY,l.maxY)}}function mr(M,l){return M[0]===l[0]&&M[1]===l[1]}var lr=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,bt=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,jt=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,Kt=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function ir(M,l){var a=M.match(Kt);(0,tt.each)(a,function(f){var g=f.split(":");l.addColorStop(g[0],g[1])})}function yr(M,l,a){var f=lr.exec(a),g=parseFloat(f[1])%360*(Math.PI/180),k=f[2],F=l.getBBox(),z,pt;g>=0&&g<1/2*Math.PI?(z={x:F.minX,y:F.minY},pt={x:F.maxX,y:F.maxY}):1/2*Math.PI<=g&&g<Math.PI?(z={x:F.maxX,y:F.minY},pt={x:F.minX,y:F.maxY}):Math.PI<=g&&g<3/2*Math.PI?(z={x:F.maxX,y:F.maxY},pt={x:F.minX,y:F.minY}):(z={x:F.minX,y:F.maxY},pt={x:F.maxX,y:F.minY});var wt=Math.tan(g),St=wt*wt,yt=(pt.x-z.x+wt*(pt.y-z.y))/(St+1)+z.x,Vt=wt*(pt.x-z.x+wt*(pt.y-z.y))/(St+1)+z.y,fr=M.createLinearGradient(z.x,z.y,yt,Vt);return ir(k,fr),fr}function Lr(M,l,a){var f=bt.exec(a),g=parseFloat(f[1]),k=parseFloat(f[2]),F=parseFloat(f[3]),z=f[4];if(F===0){var pt=z.match(Kt);return pt[pt.length-1].split(":")[1]}var wt=l.getBBox(),St=wt.maxX-wt.minX,yt=wt.maxY-wt.minY,Vt=Math.sqrt(St*St+yt*yt)/2,fr=M.createRadialGradient(wt.minX+St*g,wt.minY+yt*k,0,wt.minX+St/2,wt.minY+yt/2,F*Vt);return ir(z,fr),fr}function Nr(M,l,a){if(l.get("patternSource")&&l.get("patternSource")===a)return l.get("pattern");var f,g,k=jt.exec(a),F=k[1],z=k[2];function pt(){f=M.createPattern(g,F),l.set("pattern",f),l.set("patternSource",a)}switch(F){case"a":F="repeat";break;case"x":F="repeat-x";break;case"y":F="repeat-y";break;case"n":F="no-repeat";break;default:F="no-repeat"}return g=new Image,z.match(/^data:/i)||(g.crossOrigin="Anonymous"),g.src=z,g.complete?pt():(g.onload=pt,g.src=g.src),f}function Zr(M,l,a){var f=l.getBBox();if(isNaN(f.x)||isNaN(f.y)||isNaN(f.width)||isNaN(f.height))return a;if((0,tt.isString)(a)){if(a[1]==="("||a[2]==="("){if(a[0]==="l")return yr(M,l,a);if(a[0]==="r")return Lr(M,l,a);if(a[0]==="p")return Nr(M,l,a)}return a}if(a instanceof CanvasPattern)return a}function Xt(M){var l=0,a=0,f=0,g=0;return(0,tt.isArray)(M)?M.length===1?l=a=f=g=M[0]:M.length===2?(l=f=M[0],a=g=M[1]):M.length===3?(l=M[0],a=g=M[1],f=M[2]):(l=M[0],a=M[1],f=M[2],g=M[3]):l=a=f=g=M,[l,a,f,g]}function ur(M){return Math.sqrt(M[0]*M[0]+M[1]*M[1])}function _r(M,l){return ur(M)*ur(l)?(M[0]*l[0]+M[1]*l[1])/(ur(M)*ur(l)):1}function Er(M,l){return(M[0]*l[1]<M[1]*l[0]?-1:1)*Math.acos(_r(M,l))}function Sr(M,l){var a=l[1],f=l[2],g=(0,tt.mod)((0,tt.toRadian)(l[3]),Math.PI*2),k=l[4],F=l[5],z=M[0],pt=M[1],wt=l[6],St=l[7],yt=Math.cos(g)*(z-wt)/2+Math.sin(g)*(pt-St)/2,Vt=-1*Math.sin(g)*(z-wt)/2+Math.cos(g)*(pt-St)/2,fr=yt*yt/(a*a)+Vt*Vt/(f*f);fr>1&&(a*=Math.sqrt(fr),f*=Math.sqrt(fr));var Xr=a*a*(Vt*Vt)+f*f*(yt*yt),Hr=Xr?Math.sqrt((a*a*(f*f)-Xr)/Xr):1;k===F&&(Hr*=-1),isNaN(Hr)&&(Hr=0);var Jr=f?Hr*a*Vt/f:0,qr=a?Hr*-f*yt/a:0,Kr=(z+wt)/2+Math.cos(g)*Jr-Math.sin(g)*qr,Ur=(pt+St)/2+Math.sin(g)*Jr+Math.cos(g)*qr,kr=[(yt-Jr)/a,(Vt-qr)/f],te=[(-1*yt-Jr)/a,(-1*Vt-qr)/f],ge=Er([1,0],kr),$r=Er(kr,te);return _r(kr,te)<=-1&&($r=Math.PI),_r(kr,te)>=1&&($r=0),F===0&&$r>0&&($r=$r-2*Math.PI),F===1&&$r<0&&($r=$r+2*Math.PI),{cx:Kr,cy:Ur,rx:mr(M,[wt,St])?0:a,ry:mr(M,[wt,St])?0:f,startAngle:ge,endAngle:ge+$r,xRotation:g,arcFlag:k,sweepFlag:F}}var Tr=Math.sin,Dr=Math.cos,Gr=Math.atan2,ct=Math.PI;function ut(M,l,a,f,g,k,F){var z=l.stroke,pt=l.lineWidth,wt=a-g,St=f-k,yt=Gr(St,wt),Vt=new C({type:"path",canvas:M.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Dr(ct/6)+","+10*Tr(ct/6)+" L0,0 L"+10*Dr(ct/6)+",-"+10*Tr(ct/6),stroke:z,lineWidth:pt}});Vt.translate(g,k),Vt.rotateAtPoint(g,k,yt),M.set(F?"startArrowShape":"endArrowShape",Vt)}function Mt(M,l,a,f,g,k,F){var z=l.startArrow,pt=l.endArrow,wt=l.stroke,St=l.lineWidth,yt=F?z:pt,Vt=yt.d,fr=yt.fill,Xr=yt.stroke,Hr=yt.lineWidth,Jr=(0,Y.__rest)(yt,["d","fill","stroke","lineWidth"]),qr=a-g,Kr=f-k,Ur=Gr(Kr,qr);Vt&&(g=g-Dr(Ur)*Vt,k=k-Tr(Ur)*Vt);var kr=new C({type:"path",canvas:M.get("canvas"),isArrowShape:!0,attrs:(0,Y.__assign)((0,Y.__assign)({},Jr),{stroke:Xr||wt,lineWidth:Hr||St,fill:fr})});kr.translate(g,k),kr.rotateAtPoint(g,k,Ur),M.set(F?"startArrowShape":"endArrowShape",kr)}function At(M,l,a,f,g){var k=Gr(f-l,a-M);return{dx:Dr(k)*g,dy:Tr(k)*g}}function Nt(M,l,a,f,g,k){typeof l.startArrow=="object"?Mt(M,l,a,f,g,k,!0):l.startArrow?ut(M,l,a,f,g,k,!0):M.set("startArrowShape",null)}function Tt(M,l,a,f,g,k){typeof l.endArrow=="object"?Mt(M,l,a,f,g,k,!1):l.endArrow?ut(M,l,a,f,g,k,!1):M.set("startArrowShape",null)}var v={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function O(M,l){var a=l.attr();for(var f in a){var g=a[f],k=v[f]?v[f]:f;k==="matrix"&&g?M.transform(g[0],g[1],g[3],g[4],g[6],g[7]):k==="lineDash"&&M.setLineDash?(0,tt.isArray)(g)&&M.setLineDash(g):(k==="strokeStyle"||k==="fillStyle"?g=Zr(M,l,g):k==="globalAlpha"&&(g=g*M.globalAlpha),M[k]=g)}}function gt(M,l,a){for(var f=0;f<l.length;f++){var g=l[f];g.cfg.visible?g.draw(M,a):g.skipDraw()}}function dt(M,l,a){var f=M.get("refreshElements");(0,tt.each)(f,function(g){if(g!==M)for(var k=g.cfg.parent;k&&k!==M&&!k.cfg.refresh;)k.cfg.refresh=!0,k=k.cfg.parent}),f[0]===M?Wt(l,a):Ht(l,a)}function Ht(M,l){for(var a=0;a<M.length;a++){var f=M[a];if(f.cfg.visible)if(f.cfg.hasChanged)f.cfg.refresh=!0,f.isGroup()&&Wt(f.cfg.children,l);else if(f.cfg.refresh)f.isGroup()&&Ht(f.cfg.children,l);else{var g=cr(f,l);f.cfg.refresh=g,g&&f.isGroup()&&Ht(f.cfg.children,l)}}}function or(M){for(var l=0;l<M.length;l++){var a=M[l];a.cfg.hasChanged=!1,a.isGroup()&&!a.destroyed&&or(a.cfg.children)}}function Wt(M,l){for(var a=0;a<M.length;a++){var f=M[a];f.cfg.refresh=!0,f.isGroup()&&Wt(f.get("children"),l)}}function cr(M,l){var a=M.cfg.cacheCanvasBBox,f=M.cfg.isInView&&a&&Qt(a,l);return f}function sr(M,l,a,f){var g=a.path,k=a.startArrow,F=a.endArrow;if(!!g){var z=[0,0],pt=[0,0],wt={dx:0,dy:0};l.beginPath();for(var St=0;St<g.length;St++){var yt=g[St],Vt=yt[0];if(St===0&&k&&k.d){var fr=M.getStartTangent();wt=At(fr[0][0],fr[0][1],fr[1][0],fr[1][1],k.d)}else if(St===g.length-2&&g[St+1][0]==="Z"&&F&&F.d){var Xr=g[St+1];if(Xr[0]==="Z"){var fr=M.getEndTangent();wt=At(fr[0][0],fr[0][1],fr[1][0],fr[1][1],F.d)}}else if(St===g.length-1&&F&&F.d&&g[0]!=="Z"){var fr=M.getEndTangent();wt=At(fr[0][0],fr[0][1],fr[1][0],fr[1][1],F.d)}var Hr=wt.dx,Jr=wt.dy;switch(Vt){case"M":l.moveTo(yt[1]-Hr,yt[2]-Jr),pt=[yt[1],yt[2]];break;case"L":l.lineTo(yt[1]-Hr,yt[2]-Jr);break;case"Q":l.quadraticCurveTo(yt[1],yt[2],yt[3]-Hr,yt[4]-Jr);break;case"C":l.bezierCurveTo(yt[1],yt[2],yt[3],yt[4],yt[5]-Hr,yt[6]-Jr);break;case"A":{var qr=void 0;f?(qr=f[St],qr||(qr=Sr(z,yt),f[St]=qr)):qr=Sr(z,yt);var Kr=qr.cx,Ur=qr.cy,kr=qr.rx,te=qr.ry,ge=qr.startAngle,$r=qr.endAngle,we=qr.xRotation,h=qr.sweepFlag;if(l.ellipse)l.ellipse(Kr,Ur,kr,te,we,ge,$r,1-h);else{var m=kr>te?kr:te,b=kr>te?1:kr/te,q=kr>te?te/kr:1;l.translate(Kr,Ur),l.rotate(we),l.scale(b,q),l.arc(0,0,m,ge,$r,1-h),l.scale(1/b,1/q),l.rotate(-we),l.translate(-Kr,-Ur)}break}case"Z":l.closePath();break;default:break}if(Vt==="Z")z=pt;else{var X=yt.length;z=[yt[X-2],yt[X-1]]}}}}function er(M,l){var a=M.get("canvas");a&&(l==="remove"&&(M._cacheCanvasBBox=M.get("cacheCanvasBBox")),M.get("hasChanged")||(M.set("hasChanged",!0),M.cfg.parent&&M.cfg.parent.get("hasChanged")||(a.refreshElement(M,l,a),a.get("autoDraw")&&a.draw())))}function wr(M){var l;if(M.destroyed)l=M._cacheCanvasBBox;else{var a=M.get("cacheCanvasBBox"),f=a&&!!(a.width&&a.height),g=M.getCanvasBBox(),k=g&&!!(g.width&&g.height);f&&k?l=br(a,g):f?l=a:k&&(l=g)}return l}function Or(M){if(!M.length)return null;var l=[],a=[],f=[],g=[];return(0,tt.each)(M,function(k){var F=wr(k);F&&(l.push(F.minX),a.push(F.minY),f.push(F.maxX),g.push(F.maxY))}),{minX:(0,tt.min)(l),minY:(0,tt.min)(a),maxX:(0,tt.max)(f),maxY:(0,tt.max)(g)}}function L(M,l){return!M||!l||!Qt(M,l)?null:{minX:Math.max(M.minX,l.minX),minY:Math.max(M.minY,l.minY),maxX:Math.min(M.maxX,l.maxX),maxY:Math.min(M.maxY,l.maxY)}}var p=function(M){(0,Y.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.onCanvasChange=function(a){er(this,a)},l.prototype.getShapeBase=function(){return xt},l.prototype.getGroupBase=function(){return l},l.prototype._applyClip=function(a,f){f&&(a.save(),O(a,f),f.createPath(a),a.restore(),a.clip(),f._afterDraw())},l.prototype.cacheCanvasBBox=function(){var a=this.cfg.children,f=[],g=[];(0,tt.each)(a,function(Vt){var fr=Vt.cfg.cacheCanvasBBox;fr&&Vt.cfg.isInView&&(f.push(fr.minX,fr.maxX),g.push(fr.minY,fr.maxY))});var k=null;if(f.length){var F=(0,tt.min)(f),z=(0,tt.max)(f),pt=(0,tt.min)(g),wt=(0,tt.max)(g);k={minX:F,minY:pt,x:F,y:pt,maxX:z,maxY:wt,width:z-F,height:wt-pt};var St=this.cfg.canvas;if(St){var yt=St.getViewRange();this.set("isInView",Qt(k,yt))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",k)},l.prototype.draw=function(a,f){var g=this.cfg.children,k=f?this.cfg.refresh:!0;g.length&&k&&(a.save(),O(a,this),this._applyClip(a,this.getClip()),gt(a,g,f),a.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},l.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},l}(K.pA),y=p,S=function(M){(0,Y.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.getDefaultAttrs=function(){var a=M.prototype.getDefaultAttrs.call(this);return(0,Y.__assign)((0,Y.__assign)({},a),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},l.prototype.getShapeBase=function(){return xt},l.prototype.getGroupBase=function(){return y},l.prototype.onCanvasChange=function(a){er(this,a)},l.prototype.calculateBBox=function(){var a=this.get("type"),f=this.getHitLineWidth(),g=(0,K.bj)(a),k=g(this),F=f/2,z=k.x-F,pt=k.y-F,wt=k.x+k.width+F,St=k.y+k.height+F;return{x:z,minX:z,y:pt,minY:pt,width:k.width+f,height:k.height+f,maxX:wt,maxY:St}},l.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},l.prototype.isStroke=function(){return!!this.attrs.stroke},l.prototype._applyClip=function(a,f){f&&(a.save(),O(a,f),f.createPath(a),a.restore(),a.clip(),f._afterDraw())},l.prototype.draw=function(a,f){var g=this.cfg.clipShape;if(f){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var k=this.getCanvasBBox();if(!Qt(f,k)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}a.save(),O(a,this),this._applyClip(a,g),this.drawPath(a),a.restore(),this._afterDraw()},l.prototype.getCanvasViewBox=function(){var a=this.cfg.canvas;return a?a.getViewRange():null},l.prototype.cacheCanvasBBox=function(){var a=this.getCanvasViewBox();if(a){var f=this.getCanvasBBox(),g=Qt(f,a);this.set("isInView",g),g?this.set("cacheCanvasBBox",f):this.set("cacheCanvasBBox",null)}},l.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},l.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},l.prototype.drawPath=function(a){this.createPath(a),this.strokeAndFill(a),this.afterDrawPath(a)},l.prototype.fill=function(a){a.fill()},l.prototype.stroke=function(a){a.stroke()},l.prototype.strokeAndFill=function(a){var f=this.attrs,g=f.lineWidth,k=f.opacity,F=f.strokeOpacity,z=f.fillOpacity;this.isFill()&&(!(0,tt.isNil)(z)&&z!==1?(a.globalAlpha=z,this.fill(a),a.globalAlpha=k):this.fill(a)),this.isStroke()&&g>0&&(!(0,tt.isNil)(F)&&F!==1&&(a.globalAlpha=F),this.stroke(a)),this.afterDrawPath(a)},l.prototype.createPath=function(a){},l.prototype.afterDrawPath=function(a){},l.prototype.isInShape=function(a,f){var g=this.isStroke(),k=this.isFill(),F=this.getHitLineWidth();return this.isInStrokeOrPath(a,f,g,k,F)},l.prototype.isInStrokeOrPath=function(a,f,g,k,F){return!1},l.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var a=this.attrs;return a.lineWidth+a.lineAppendWidth},l}(K.zr),s=S,d=function(M){(0,Y.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.getDefaultAttrs=function(){var a=M.prototype.getDefaultAttrs.call(this);return(0,Y.__assign)((0,Y.__assign)({},a),{x:0,y:0,r:0})},l.prototype.isInStrokeOrPath=function(a,f,g,k,F){var z=this.attr(),pt=z.x,wt=z.y,St=z.r,yt=F/2,Vt=_t(pt,wt,a,f);return k&&g?Vt<=St+yt:k?Vt<=St:g?Vt>=St-yt&&Vt<=St+yt:!1},l.prototype.createPath=function(a){var f=this.attr(),g=f.x,k=f.y,F=f.r;a.beginPath(),a.arc(g,k,F,0,Math.PI*2,!1),a.closePath()},l}(s),T=d;function R(M,l,a,f){return M/(a*a)+l/(f*f)}var W=function(M){(0,Y.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.getDefaultAttrs=function(){var a=M.prototype.getDefaultAttrs.call(this);return(0,Y.__assign)((0,Y.__assign)({},a),{x:0,y:0,rx:0,ry:0})},l.prototype.isInStrokeOrPath=function(a,f,g,k,F){var z=this.attr(),pt=F/2,wt=z.x,St=z.y,yt=z.rx,Vt=z.ry,fr=(a-wt)*(a-wt),Xr=(f-St)*(f-St);return k&&g?R(fr,Xr,yt+pt,Vt+pt)<=1:k?R(fr,Xr,yt,Vt)<=1:g?R(fr,Xr,yt-pt,Vt-pt)>=1&&R(fr,Xr,yt+pt,Vt+pt)<=1:!1},l.prototype.createPath=function(a){var f=this.attr(),g=f.x,k=f.y,F=f.rx,z=f.ry;if(a.beginPath(),a.ellipse)a.ellipse(g,k,F,z,0,0,Math.PI*2,!1);else{var pt=F>z?F:z,wt=F>z?1:F/z,St=F>z?z/F:1;a.save(),a.translate(g,k),a.scale(wt,St),a.arc(0,0,pt,0,Math.PI*2),a.restore(),a.closePath()}},l}(s),ot=W;function Lt(M){return M instanceof HTMLElement&&(0,tt.isString)(M.nodeName)&&M.nodeName.toUpperCase()==="CANVAS"}var Ot=function(M){(0,Y.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.getDefaultAttrs=function(){var a=M.prototype.getDefaultAttrs.call(this);return(0,Y.__assign)((0,Y.__assign)({},a),{x:0,y:0,width:0,height:0})},l.prototype.initAttrs=function(a){this._setImage(a.img)},l.prototype.isStroke=function(){return!1},l.prototype.isOnlyHitBox=function(){return!0},l.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var a=this.get("canvas");a?a.draw():this.createPath(this.get("context"))}},l.prototype._setImage=function(a){var f=this,g=this.attrs;if((0,tt.isString)(a)){var k=new Image;k.onload=function(){if(f.destroyed)return!1;f.attr("img",k),f.set("loading",!1),f._afterLoading();var F=f.get("callback");F&&F.call(f)},k.crossOrigin="Anonymous",k.src=a,this.set("loading",!0)}else a instanceof Image?(g.width||(g.width=a.width),g.height||(g.height=a.height)):Lt(a)&&(g.width||(g.width=Number(a.getAttribute("width"))),g.height||(g.height,Number(a.getAttribute("height"))))},l.prototype.onAttrChange=function(a,f,g){M.prototype.onAttrChange.call(this,a,f,g),a==="img"&&this._setImage(f)},l.prototype.createPath=function(a){if(this.get("loading")){this.set("toDraw",!0),this.set("context",a);return}var f=this.attr(),g=f.x,k=f.y,F=f.width,z=f.height,pt=f.sx,wt=f.sy,St=f.swidth,yt=f.sheight,Vt=f.img;(Vt instanceof Image||Lt(Vt))&&(!(0,tt.isNil)(pt)&&!(0,tt.isNil)(wt)&&!(0,tt.isNil)(St)&&!(0,tt.isNil)(yt)?a.drawImage(Vt,pt,wt,St,yt,g,k,F,z):a.drawImage(Vt,g,k,F,z))},l}(s),Zt=Ot,pr=qt(89838);function A(M,l,a,f,g,k,F){var z=Math.min(M,a),pt=Math.max(M,a),wt=Math.min(l,f),St=Math.max(l,f),yt=g/2;return k>=z-yt&&k<=pt+yt&&F>=wt-yt&&F<=St+yt?pr.x1.pointToLine(M,l,a,f,k,F)<=g/2:!1}var E=function(M){(0,Y.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.getDefaultAttrs=function(){var a=M.prototype.getDefaultAttrs.call(this);return(0,Y.__assign)((0,Y.__assign)({},a),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},l.prototype.initAttrs=function(a){this.setArrow()},l.prototype.onAttrChange=function(a,f,g){M.prototype.onAttrChange.call(this,a,f,g),this.setArrow()},l.prototype.setArrow=function(){var a=this.attr(),f=a.x1,g=a.y1,k=a.x2,F=a.y2,z=a.startArrow,pt=a.endArrow;z&&Nt(this,a,k,F,f,g),pt&&Tt(this,a,f,g,k,F)},l.prototype.isInStrokeOrPath=function(a,f,g,k,F){if(!g||!F)return!1;var z=this.attr(),pt=z.x1,wt=z.y1,St=z.x2,yt=z.y2;return A(pt,wt,St,yt,F,a,f)},l.prototype.createPath=function(a){var f=this.attr(),g=f.x1,k=f.y1,F=f.x2,z=f.y2,pt=f.startArrow,wt=f.endArrow,St={dx:0,dy:0},yt={dx:0,dy:0};pt&&pt.d&&(St=At(g,k,F,z,f.startArrow.d)),wt&&wt.d&&(yt=At(g,k,F,z,f.endArrow.d)),a.beginPath(),a.moveTo(g+St.dx,k+St.dy),a.lineTo(F-yt.dx,z-yt.dy)},l.prototype.afterDrawPath=function(a){var f=this.get("startArrowShape"),g=this.get("endArrowShape");f&&f.draw(a),g&&g.draw(a)},l.prototype.getTotalLength=function(){var a=this.attr(),f=a.x1,g=a.y1,k=a.x2,F=a.y2;return pr.x1.length(f,g,k,F)},l.prototype.getPoint=function(a){var f=this.attr(),g=f.x1,k=f.y1,F=f.x2,z=f.y2;return pr.x1.pointAt(g,k,F,z,a)},l}(s),N=E,G=qt(80389),Z={circle:function(M,l,a){return[["M",M-a,l],["A",a,a,0,1,0,M+a,l],["A",a,a,0,1,0,M-a,l]]},square:function(M,l,a){return[["M",M-a,l-a],["L",M+a,l-a],["L",M+a,l+a],["L",M-a,l+a],["Z"]]},diamond:function(M,l,a){return[["M",M-a,l],["L",M,l-a],["L",M+a,l],["L",M,l+a],["Z"]]},triangle:function(M,l,a){var f=a*Math.sin(1/3*Math.PI);return[["M",M-a,l+f],["L",M,l-f],["L",M+a,l+f],["Z"]]},"triangle-down":function(M,l,a){var f=a*Math.sin(1/3*Math.PI);return[["M",M-a,l-f],["L",M+a,l-f],["L",M,l+f],["Z"]]}},nt=function(M){(0,Y.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.initAttrs=function(a){this._resetParamsCache()},l.prototype._resetParamsCache=function(){this.set("paramsCache",{})},l.prototype.onAttrChange=function(a,f,g){M.prototype.onAttrChange.call(this,a,f,g),["symbol","x","y","r","radius"].indexOf(a)!==-1&&this._resetParamsCache()},l.prototype.isOnlyHitBox=function(){return!0},l.prototype._getR=function(a){return(0,tt.isNil)(a.r)?a.radius:a.r},l.prototype._getPath=function(){var a=this.attr(),f=a.x,g=a.y,k=a.symbol||"circle",F=this._getR(a),z,pt;if((0,tt.isFunction)(k))z=k,pt=z(f,g,F),pt=(0,G.wb)(pt);else{if(z=l.Symbols[k],!z)return console.warn(k+" marker is not supported."),null;pt=z(f,g,F)}return pt},l.prototype.createPath=function(a){var f=this._getPath(),g=this.get("paramsCache");sr(this,a,{path:f},g)},l.Symbols=Z,l}(s),rt=nt;function st(M,l,a){var f=(0,K.LF)();return M.createPath(f),f.isPointInPath(l,a)}var Q=1e-6;function mt(M){return Math.abs(M)<Q?0:M<0?-1:1}function lt(M,l,a){return(a[0]-M[0])*(l[1]-M[1])==(l[0]-M[0])*(a[1]-M[1])&&Math.min(M[0],l[0])<=a[0]&&a[0]<=Math.max(M[0],l[0])&&Math.min(M[1],l[1])<=a[1]&&a[1]<=Math.max(M[1],l[1])}function Ft(M,l,a){var f=!1,g=M.length;if(g<=2)return!1;for(var k=0;k<g;k++){var F=M[k],z=M[(k+1)%g];if(lt(F,z,[l,a]))return!0;mt(F[1]-a)>0!=mt(z[1]-a)>0&&mt(l-(a-F[1])*(F[0]-z[0])/(F[1]-z[1])-F[0])<0&&(f=!f)}return f}var tr=qt(31506),It=qt(77160);function zt(M,l,a,f,g,k,F,z){var pt=(Math.atan2(z-l,F-M)+Math.PI*2)%(Math.PI*2);if(pt<f||pt>g)return!1;var wt={x:M+a*Math.cos(pt),y:l+a*Math.sin(pt)};return _t(wt.x,wt.y,F,z)<=k/2}var Gt=tr.vs;function rr(M){for(var l=!1,a=M.length,f=0;f<a;f++){var g=M[f],k=g[0];if(k==="C"||k==="A"||k==="Q"){l=!0;break}}return l}function kt(M,l,a,f,g){for(var k=!1,F=l/2,z=0;z<M.length;z++){var pt=M[z],wt=pt.currentPoint,St=pt.params,yt=pt.prePoint,Vt=pt.box;if(!(Vt&&!dr(Vt.x-F,Vt.y-F,Vt.width+l,Vt.height+l,a,f))){switch(pt.command){case"L":case"Z":k=A(yt[0],yt[1],wt[0],wt[1],l,a,f);break;case"Q":var fr=pr.lD.pointDistance(yt[0],yt[1],St[1],St[2],St[3],St[4],a,f);k=fr<=l/2;break;case"C":var Xr=pr.Ll.pointDistance(yt[0],yt[1],St[1],St[2],St[3],St[4],St[5],St[6],a,f,g);k=Xr<=l/2;break;case"A":var Hr=pt.arcParams,Jr=Hr.cx,qr=Hr.cy,Kr=Hr.rx,Ur=Hr.ry,kr=Hr.startAngle,te=Hr.endAngle,ge=Hr.xRotation,$r=[a,f,1],we=Kr>Ur?Kr:Ur,h=Kr>Ur?1:Kr/Ur,m=Kr>Ur?Ur/Kr:1,b=Gt(null,[["t",-Jr,-qr],["r",-ge],["s",1/h,1/m]]);It.kK($r,$r,b),k=zt(0,0,we,kr,te,l,$r[0],$r[1]);break;default:break}if(k)break}}return k}function Ut(M){for(var l=M.length,a=[],f=[],g=[],k=0;k<l;k++){var F=M[k],z=F[0];z==="M"?(g.length&&(f.push(g),g=[]),g.push([F[1],F[2]])):z==="Z"?g.length&&(a.push(g),g=[]):g.push([F[1],F[2]])}return g.length>0&&f.push(g),{polygons:a,polylines:f}}var B=(0,Y.__assign)({hasArc:rr,extractPolygons:Ut,isPointInStroke:kt},K.Gk);function x(M,l,a){for(var f=!1,g=0;g<M.length;g++){var k=M[g];if(f=Ft(k,l,a),f)break}return f}var o=function(M){(0,Y.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.getDefaultAttrs=function(){var a=M.prototype.getDefaultAttrs.call(this);return(0,Y.__assign)((0,Y.__assign)({},a),{startArrow:!1,endArrow:!1})},l.prototype.initAttrs=function(a){this._setPathArr(a.path),this.setArrow()},l.prototype.onAttrChange=function(a,f,g){M.prototype.onAttrChange.call(this,a,f,g),a==="path"&&this._setPathArr(f),this.setArrow()},l.prototype._setPathArr=function(a){this.attrs.path=(0,G.wb)(a);var f=B.hasArc(a);this.set("hasArc",f),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},l.prototype.getSegments=function(){var a=this.get("segements");return a||(a=(0,G.zx)(this.attr("path")),this.set("segments",a)),a},l.prototype.setArrow=function(){var a=this.attr(),f=a.startArrow,g=a.endArrow;if(f){var k=this.getStartTangent();Nt(this,a,k[0][0],k[0][1],k[1][0],k[1][1])}if(g){var k=this.getEndTangent();Tt(this,a,k[0][0],k[0][1],k[1][0],k[1][1])}},l.prototype.isInStrokeOrPath=function(a,f,g,k,F){var z=this.getSegments(),pt=this.get("hasArc"),wt=!1;if(g){var St=this.getTotalLength();wt=B.isPointInStroke(z,F,a,f,St)}if(!wt&&k)if(pt)wt=st(this,a,f);else{var yt=this.attr("path"),Vt=B.extractPolygons(yt);wt=x(Vt.polygons,a,f)||x(Vt.polylines,a,f)}return wt},l.prototype.createPath=function(a){var f=this.attr(),g=this.get("paramsCache");sr(this,a,f,g)},l.prototype.afterDrawPath=function(a){var f=this.get("startArrowShape"),g=this.get("endArrowShape");f&&f.draw(a),g&&g.draw(a)},l.prototype.getTotalLength=function(){var a=this.get("totalLength");return(0,tt.isNil)(a)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):a},l.prototype.getPoint=function(a){var f=this.get("tCache");f||(this._calculateCurve(),this._setTcache(),f=this.get("tCache"));var g,k,F=this.get("curve");if(!f||f.length===0)return F?{x:F[0][1],y:F[0][2]}:null;(0,tt.each)(f,function(St,yt){a>=St[0]&&a<=St[1]&&(g=(a-St[0])/(St[1]-St[0]),k=yt)});var z=F[k];if((0,tt.isNil)(z)||(0,tt.isNil)(k))return null;var pt=z.length,wt=F[k+1];return pr.Ll.pointAt(z[pt-2],z[pt-1],wt[1],wt[2],wt[3],wt[4],wt[5],wt[6],g)},l.prototype._calculateCurve=function(){var a=this.attr().path;this.set("curve",B.pathToCurve(a))},l.prototype._setTcache=function(){var a=0,f=0,g=[],k,F,z,pt,wt=this.get("curve");if(!!wt){if((0,tt.each)(wt,function(St,yt){z=wt[yt+1],pt=St.length,z&&(a+=pr.Ll.length(St[pt-2],St[pt-1],z[1],z[2],z[3],z[4],z[5],z[6])||0)}),this.set("totalLength",a),a===0){this.set("tCache",[]);return}(0,tt.each)(wt,function(St,yt){z=wt[yt+1],pt=St.length,z&&(k=[],k[0]=f/a,F=pr.Ll.length(St[pt-2],St[pt-1],z[1],z[2],z[3],z[4],z[5],z[6]),f+=F||0,k[1]=f/a,g.push(k))}),this.set("tCache",g)}},l.prototype.getStartTangent=function(){var a=this.getSegments(),f;if(a.length>1){var g=a[0].currentPoint,k=a[1].currentPoint,F=a[1].startTangent;f=[],F?(f.push([g[0]-F[0],g[1]-F[1]]),f.push([g[0],g[1]])):(f.push([k[0],k[1]]),f.push([g[0],g[1]]))}return f},l.prototype.getEndTangent=function(){var a=this.getSegments(),f=a.length,g;if(f>1){var k=a[f-2].currentPoint,F=a[f-1].currentPoint,z=a[f-1].endTangent;g=[],z?(g.push([F[0]-z[0],F[1]-z[1]]),g.push([F[0],F[1]])):(g.push([k[0],k[1]]),g.push([F[0],F[1]]))}return g},l}(s),C=o;function D(M,l,a,f,g){var k=M.length;if(k<2)return!1;for(var F=0;F<k-1;F++){var z=M[F][0],pt=M[F][1],wt=M[F+1][0],St=M[F+1][1];if(A(z,pt,wt,St,l,a,f))return!0}if(g){var yt=M[0],Vt=M[k-1];if(A(yt[0],yt[1],Vt[0],Vt[1],l,a,f))return!0}return!1}var U=function(M){(0,Y.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.isInStrokeOrPath=function(a,f,g,k,F){var z=this.attr().points,pt=!1;return g&&(pt=D(z,F,a,f,!0)),!pt&&k&&(pt=Ft(z,a,f)),pt},l.prototype.createPath=function(a){var f=this.attr(),g=f.points;if(!(g.length<2)){a.beginPath();for(var k=0;k<g.length;k++){var F=g[k];k===0?a.moveTo(F[0],F[1]):a.lineTo(F[0],F[1])}a.closePath()}},l}(s),et=U,at=function(M){(0,Y.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.getDefaultAttrs=function(){var a=M.prototype.getDefaultAttrs.call(this);return(0,Y.__assign)((0,Y.__assign)({},a),{startArrow:!1,endArrow:!1})},l.prototype.initAttrs=function(a){this.setArrow()},l.prototype.onAttrChange=function(a,f,g){M.prototype.onAttrChange.call(this,a,f,g),this.setArrow(),["points"].indexOf(a)!==-1&&this._resetCache()},l.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},l.prototype.setArrow=function(){var a=this.attr(),f=this.attrs,g=f.points,k=f.startArrow,F=f.endArrow,z=g.length,pt=g[0][0],wt=g[0][1],St=g[z-1][0],yt=g[z-1][1];k&&Nt(this,a,g[1][0],g[1][1],pt,wt),F&&Tt(this,a,g[z-2][0],g[z-2][1],St,yt)},l.prototype.isFill=function(){return!1},l.prototype.isInStrokeOrPath=function(a,f,g,k,F){if(!g||!F)return!1;var z=this.attr().points;return D(z,F,a,f,!1)},l.prototype.isStroke=function(){return!0},l.prototype.createPath=function(a){var f=this.attr(),g=f.points,k=f.startArrow,F=f.endArrow,z=g.length;if(!(g.length<2)){var pt=g[0][0],wt=g[0][1],St=g[z-1][0],yt=g[z-1][1];if(k&&k.d){var Vt=At(pt,wt,g[1][0],g[1][1],k.d);pt+=Vt.dx,wt+=Vt.dy}if(F&&F.d){var Vt=At(g[z-2][0],g[z-2][1],St,yt,F.d);St-=Vt.dx,yt-=Vt.dy}a.beginPath(),a.moveTo(pt,wt);for(var fr=0;fr<z-1;fr++){var Xr=g[fr];a.lineTo(Xr[0],Xr[1])}a.lineTo(St,yt)}},l.prototype.afterDrawPath=function(a){var f=this.get("startArrowShape"),g=this.get("endArrowShape");f&&f.draw(a),g&&g.draw(a)},l.prototype.getTotalLength=function(){var a=this.attr().points,f=this.get("totalLength");return(0,tt.isNil)(f)?(this.set("totalLength",pr.aH.length(a)),this.get("totalLength")):f},l.prototype.getPoint=function(a){var f=this.attr().points,g=this.get("tCache");g||(this._setTcache(),g=this.get("tCache"));var k,F;return(0,tt.each)(g,function(z,pt){a>=z[0]&&a<=z[1]&&(k=(a-z[0])/(z[1]-z[0]),F=pt)}),pr.x1.pointAt(f[F][0],f[F][1],f[F+1][0],f[F+1][1],k)},l.prototype._setTcache=function(){var a=this.attr().points;if(!(!a||a.length===0)){var f=this.getTotalLength();if(!(f<=0)){var g=0,k=[],F,z;(0,tt.each)(a,function(pt,wt){a[wt+1]&&(F=[],F[0]=g/f,z=pr.x1.length(pt[0],pt[1],a[wt+1][0],a[wt+1][1]),g+=z,F[1]=g/f,k.push(F))}),this.set("tCache",k)}}},l.prototype.getStartTangent=function(){var a=this.attr().points,f=[];return f.push([a[1][0],a[1][1]]),f.push([a[0][0],a[0][1]]),f},l.prototype.getEndTangent=function(){var a=this.attr().points,f=a.length-1,g=[];return g.push([a[f-1][0],a[f-1][1]]),g.push([a[f][0],a[f][1]]),g},l}(s),vt=at;function Ar(M,l,a,f,g,k,F){var z=g/2;return dr(M-z,l-z,a,g,k,F)||dr(M+a-z,l-z,g,f,k,F)||dr(M+z,l+f-z,a,g,k,F)||dr(M-z,l+z,g,f,k,F)}function xr(M,l,a,f,g,k,F,z){var pt=k/2;return A(M+g,l,M+a-g,l,k,F,z)||A(M+a,l+g,M+a,l+f-g,k,F,z)||A(M+a-g,l+f,M+g,l+f,k,F,z)||A(M,l+f-g,M,l+g,k,F,z)||zt(M+a-g,l+g,g,1.5*Math.PI,2*Math.PI,k,F,z)||zt(M+a-g,l+f-g,g,0,.5*Math.PI,k,F,z)||zt(M+g,l+f-g,g,.5*Math.PI,Math.PI,k,F,z)||zt(M+g,l+g,g,Math.PI,1.5*Math.PI,k,F,z)}var zr=function(M){(0,Y.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.getDefaultAttrs=function(){var a=M.prototype.getDefaultAttrs.call(this);return(0,Y.__assign)((0,Y.__assign)({},a),{x:0,y:0,width:0,height:0,radius:0})},l.prototype.isInStrokeOrPath=function(a,f,g,k,F){var z=this.attr(),pt=z.x,wt=z.y,St=z.width,yt=z.height,Vt=z.radius;if(Vt){var Xr=!1;return g&&(Xr=xr(pt,wt,St,yt,Vt,F,a,f)),!Xr&&k&&(Xr=st(this,a,f)),Xr}else{var fr=F/2;if(k&&g)return dr(pt-fr,wt-fr,St+fr,yt+fr,a,f);if(k)return dr(pt,wt,St,yt,a,f);if(g)return Ar(pt,wt,St,yt,F,a,f)}},l.prototype.createPath=function(a){var f=this.attr(),g=f.x,k=f.y,F=f.width,z=f.height,pt=f.radius;if(a.beginPath(),pt===0)a.rect(g,k,F,z);else{var wt=Xt(pt),St=wt[0],yt=wt[1],Vt=wt[2],fr=wt[3];a.moveTo(g+St,k),a.lineTo(g+F-yt,k),yt!==0&&a.arc(g+F-yt,k+yt,yt,-Math.PI/2,0),a.lineTo(g+F,k+z-Vt),Vt!==0&&a.arc(g+F-Vt,k+z-Vt,Vt,0,Math.PI/2),a.lineTo(g+fr,k+z),fr!==0&&a.arc(g+fr,k+z-fr,fr,Math.PI/2,Math.PI),a.lineTo(g,k+St),St!==0&&a.arc(g+St,k+St,St,Math.PI,Math.PI*1.5),a.closePath()}},l}(s),Wr=zr,ae=function(M){(0,Y.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.getDefaultAttrs=function(){var a=M.prototype.getDefaultAttrs.call(this);return(0,Y.__assign)((0,Y.__assign)({},a),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},l.prototype.isOnlyHitBox=function(){return!0},l.prototype.initAttrs=function(a){this._assembleFont(),a.text&&this._setText(a.text)},l.prototype._assembleFont=function(){var a=this.attrs;a.font=(0,K.$O)(a)},l.prototype._setText=function(a){var f=null;(0,tt.isString)(a)&&a.indexOf(`
- `)!==-1&&(f=a.split(`
- `)),this.set("textArr",f)},l.prototype.onAttrChange=function(a,f,g){M.prototype.onAttrChange.call(this,a,f,g),a.startsWith("font")&&this._assembleFont(),a==="text"&&this._setText(f)},l.prototype._getSpaceingY=function(){var a=this.attrs,f=a.lineHeight,g=a.fontSize*1;return f?f-g:g*.14},l.prototype._drawTextArr=function(a,f,g){var k=this.attrs,F=k.textBaseline,z=k.x,pt=k.y,wt=k.fontSize*1,St=this._getSpaceingY(),yt=(0,K.FE)(k.text,k.fontSize,k.lineHeight),Vt;(0,tt.each)(f,function(fr,Xr){Vt=pt+Xr*(St+wt)-yt+wt,F==="middle"&&(Vt+=yt-wt-(yt-wt)/2),F==="top"&&(Vt+=yt-wt),(0,tt.isNil)(fr)||(g?a.fillText(fr,z,Vt):a.strokeText(fr,z,Vt))})},l.prototype._drawText=function(a,f){var g=this.attr(),k=g.x,F=g.y,z=this.get("textArr");if(z)this._drawTextArr(a,z,f);else{var pt=g.text;(0,tt.isNil)(pt)||(f?a.fillText(pt,k,F):a.strokeText(pt,k,F))}},l.prototype.strokeAndFill=function(a){var f=this.attrs,g=f.lineWidth,k=f.opacity,F=f.strokeOpacity,z=f.fillOpacity;this.isStroke()&&g>0&&(!(0,tt.isNil)(F)&&F!==1&&(a.globalAlpha=k),this.stroke(a)),this.isFill()&&(!(0,tt.isNil)(z)&&z!==1?(a.globalAlpha=z,this.fill(a),a.globalAlpha=k):this.fill(a)),this.afterDrawPath(a)},l.prototype.fill=function(a){this._drawText(a,!0)},l.prototype.stroke=function(a){this._drawText(a,!1)},l}(s),he=ae;function re(M,l){if(l){var a=(0,K.U_)(l);return(0,K.rG)(a,M)}return M}function Me(M,l,a){var f=M.getTotalMatrix();if(f){var g=re([l,a,1],f),k=g[0],F=g[1];return[k,F]}return[l,a]}function me(M,l,a){if(M.isCanvas&&M.isCanvas())return!0;if(!(0,K.pP)(M)||M.cfg.isInView===!1)return!1;if(M.cfg.clipShape){var f=Me(M,l,a),g=f[0],k=f[1];if(M.isClipped(g,k))return!1}var F=M.cfg.cacheCanvasBBox||M.getCanvasBBox();return l>=F.minX&&l<=F.maxX&&a>=F.minY&&a<=F.maxY}function ye(M,l,a){if(!me(M,l,a))return null;for(var f=null,g=M.getChildren(),k=g.length,F=k-1;F>=0;F--){var z=g[F];if(z.isGroup())f=ye(z,l,a);else if(me(z,l,a)){var pt=z,wt=Me(z,l,a),St=wt[0],yt=wt[1];pt.isInShape(St,yt)&&(f=z)}if(f)break}return f}var Se=function(M){(0,Y.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.getDefaultCfg=function(){var a=M.prototype.getDefaultCfg.call(this);return a.renderer="canvas",a.autoDraw=!0,a.localRefresh=!0,a.refreshElements=[],a.clipView=!0,a.quickHit=!1,a},l.prototype.onCanvasChange=function(a){(a==="attr"||a==="sort"||a==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},l.prototype.getShapeBase=function(){return xt},l.prototype.getGroupBase=function(){return y},l.prototype.getPixelRatio=function(){var a=this.get("pixelRatio")||gr();return a>=1?Math.ceil(a):1},l.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},l.prototype.createDom=function(){var a=document.createElement("canvas"),f=a.getContext("2d");return this.set("context",f),a},l.prototype.setDOMSize=function(a,f){M.prototype.setDOMSize.call(this,a,f);var g=this.get("context"),k=this.get("el"),F=this.getPixelRatio();k.width=F*a,k.height=F*f,F>1&&g.scale(F,F)},l.prototype.clear=function(){M.prototype.clear.call(this),this._clearFrame();var a=this.get("context"),f=this.get("el");a.clearRect(0,0,f.width,f.height)},l.prototype.getShape=function(a,f){var g;return this.get("quickHit")?g=ye(this,a,f):g=M.prototype.getShape.call(this,a,f,null),g},l.prototype._getRefreshRegion=function(){var a=this.get("refreshElements"),f=this.getViewRange(),g;if(a.length&&a[0]===this)g=f;else if(g=Or(a),g){g.minX=Math.floor(g.minX),g.minY=Math.floor(g.minY),g.maxX=Math.ceil(g.maxX),g.maxY=Math.ceil(g.maxY),g.maxY+=1;var k=this.get("clipView");k&&(g=L(g,f))}return g},l.prototype.refreshElement=function(a){var f=this.get("refreshElements");f.push(a)},l.prototype._clearFrame=function(){var a=this.get("drawFrame");a&&((0,tt.clearAnimationFrame)(a),this.set("drawFrame",null),this.set("refreshElements",[]))},l.prototype.draw=function(){var a=this.get("drawFrame");this.get("autoDraw")&&a||this._startDraw()},l.prototype._drawAll=function(){var a=this.get("context"),f=this.get("el"),g=this.getChildren();a.clearRect(0,0,f.width,f.height),O(a,this),gt(a,g),this.set("refreshElements",[])},l.prototype._drawRegion=function(){var a=this.get("context"),f=this.get("refreshElements"),g=this.getChildren(),k=this._getRefreshRegion();k?(a.clearRect(k.minX,k.minY,k.maxX-k.minX,k.maxY-k.minY),a.save(),a.beginPath(),a.rect(k.minX,k.minY,k.maxX-k.minX,k.maxY-k.minY),a.clip(),O(a,this),dt(this,g,k),gt(a,g,k),a.restore()):f.length&&or(f),(0,tt.each)(f,function(F){F.get("hasChanged")&&F.set("hasChanged",!1)}),this.set("refreshElements",[])},l.prototype._startDraw=function(){var a=this,f=this.get("drawFrame");f||(f=(0,tt.requestAnimationFrame)(function(){a.get("localRefresh")?a._drawRegion():a._drawAll(),a.set("drawFrame",null)}),this.set("drawFrame",f))},l.prototype.skipDraw=function(){},l.prototype.removeDom=function(){var a=this.get("el");a.width=0,a.height=0,a.parentNode.removeChild(a)},l}(K.$Z),Ae=Se,Ce="0.5.12"},89838:function(ne,Ir,qt){"use strict";qt.d(Ir,{wN:function(){return dt},Ll:function(){return Tr},x1:function(){return mr},aH:function(){return er},lD:function(){return Zr},Zr:function(){return xt}});var xt={};qt.r(xt),qt.d(xt,{distance:function(){return tt},getBBoxByArray:function(){return _t},getBBoxRange:function(){return dr},isNumberEqual:function(){return gr},piMod:function(){return Qt}});function Y(L){return Math.min.apply(null,L)}function K(L){return Math.max.apply(null,L)}function tt(L,p,y,S){var s=L-y,d=p-S;return Math.sqrt(s*s+d*d)}function gr(L,p){return Math.abs(L-p)<.001}function _t(L,p){var y=Y(L),S=Y(p),s=K(L),d=K(p);return{x:y,y:S,width:s-y,height:d-S}}function dr(L,p,y,S){return{minX:Y([L,y]),maxX:K([L,y]),minY:Y([p,S]),maxY:K([p,S])}}function Qt(L){return(L+Math.PI*2)%(Math.PI*2)}var br=qt(31437),mr={box:function(L,p,y,S){return _t([L,y],[p,S])},length:function(L,p,y,S){return tt(L,p,y,S)},pointAt:function(L,p,y,S,s){return{x:(1-s)*L+s*y,y:(1-s)*p+s*S}},pointDistance:function(L,p,y,S,s,d){var T=(y-L)*(s-L)+(S-p)*(d-p);if(T<0)return tt(L,p,s,d);var R=(y-L)*(y-L)+(S-p)*(S-p);return T>R?tt(y,S,s,d):this.pointToLine(L,p,y,S,s,d)},pointToLine:function(L,p,y,S,s,d){var T=[y-L,S-p];if(br.I6(T,[0,0]))return Math.sqrt((s-L)*(s-L)+(d-p)*(d-p));var R=[-T[1],T[0]];br.Fv(R,R);var W=[s-L,d-p];return Math.abs(br.AK(W,R))},tangentAngle:function(L,p,y,S){return Math.atan2(S-p,y-L)}},lr=1e-4;function bt(L,p,y,S,s,d){var T,R=Infinity,W=[y,S],ot=20;d&&d>200&&(ot=d/10);for(var Lt=1/ot,Ot=Lt/10,Zt=0;Zt<=ot;Zt++){var pr=Zt*Lt,A=[s.apply(null,L.concat([pr])),s.apply(null,p.concat([pr]))],E=tt(W[0],W[1],A[0],A[1]);E<R&&(T=pr,R=E)}if(T===0)return{x:L[0],y:p[0]};if(T===1){var N=L.length;return{x:L[N-1],y:p[N-1]}}R=Infinity;for(var Zt=0;Zt<32&&!(Ot<lr);Zt++){var G=T-Ot,Z=T+Ot,A=[s.apply(null,L.concat([G])),s.apply(null,p.concat([G]))],E=tt(W[0],W[1],A[0],A[1]);if(G>=0&&E<R)T=G,R=E;else{var nt=[s.apply(null,L.concat([Z])),s.apply(null,p.concat([Z]))],rt=tt(W[0],W[1],nt[0],nt[1]);Z<=1&&rt<R?(T=Z,R=rt):Ot*=.5}}return{x:s.apply(null,L.concat([T])),y:s.apply(null,p.concat([T]))}}function jt(L,p){for(var y=0,S=L.length,s=0;s<S;s++){var d=L[s],T=p[s],R=L[(s+1)%S],W=p[(s+1)%S];y+=tt(d,T,R,W)}return y/2}function Kt(L,p,y,S){var s=1-S;return s*s*L+2*S*s*p+S*S*y}function ir(L,p,y){var S=L+y-2*p;if(gr(S,0))return[.5];var s=(L-p)/S;return s<=1&&s>=0?[s]:[]}function yr(L,p,y,S){return 2*(1-S)*(p-L)+2*S*(y-p)}function Lr(L,p,y,S,s,d,T){var R=Kt(L,y,s,T),W=Kt(p,S,d,T),ot=mr.pointAt(L,p,y,S,T),Lt=mr.pointAt(y,S,s,d,T);return[[L,p,ot.x,ot.y,R,W],[R,W,Lt.x,Lt.y,s,d]]}function Nr(L,p,y,S,s,d,T){if(T===0)return(tt(L,p,y,S)+tt(y,S,s,d)+tt(L,p,s,d))/2;var R=Lr(L,p,y,S,s,d,.5),W=R[0],ot=R[1];return W.push(T-1),ot.push(T-1),Nr.apply(null,W)+Nr.apply(null,ot)}var Zr={box:function(L,p,y,S,s,d){var T=ir(L,y,s)[0],R=ir(p,S,d)[0],W=[L,s],ot=[p,d];return T!==void 0&&W.push(Kt(L,y,s,T)),R!==void 0&&ot.push(Kt(p,S,d,R)),_t(W,ot)},length:function(L,p,y,S,s,d){return Nr(L,p,y,S,s,d,3)},nearestPoint:function(L,p,y,S,s,d,T,R){return bt([L,y,s],[p,S,d],T,R,Kt)},pointDistance:function(L,p,y,S,s,d,T,R){var W=this.nearestPoint(L,p,y,S,s,d,T,R);return tt(W.x,W.y,T,R)},interpolationAt:Kt,pointAt:function(L,p,y,S,s,d,T){return{x:Kt(L,y,s,T),y:Kt(p,S,d,T)}},divide:function(L,p,y,S,s,d,T){return Lr(L,p,y,S,s,d,T)},tangentAngle:function(L,p,y,S,s,d,T){var R=yr(L,y,s,T),W=yr(p,S,d,T),ot=Math.atan2(W,R);return Qt(ot)}};function Xt(L,p,y,S,s){var d=1-s;return d*d*d*L+3*p*s*d*d+3*y*s*s*d+S*s*s*s}function ur(L,p,y,S,s){var d=1-s;return 3*(d*d*(p-L)+2*d*s*(y-p)+s*s*(S-y))}function _r(L,p,y,S){var s=-3*L+9*p-9*y+3*S,d=6*L-12*p+6*y,T=3*p-3*L,R=[],W,ot,Lt;if(gr(s,0))gr(d,0)||(W=-T/d,W>=0&&W<=1&&R.push(W));else{var Ot=d*d-4*s*T;gr(Ot,0)?R.push(-d/(2*s)):Ot>0&&(Lt=Math.sqrt(Ot),W=(-d+Lt)/(2*s),ot=(-d-Lt)/(2*s),W>=0&&W<=1&&R.push(W),ot>=0&&ot<=1&&R.push(ot))}return R}function Er(L,p,y,S,s,d,T,R,W){var ot=Xt(L,y,s,T,W),Lt=Xt(p,S,d,R,W),Ot=mr.pointAt(L,p,y,S,W),Zt=mr.pointAt(y,S,s,d,W),pr=mr.pointAt(s,d,T,R,W),A=mr.pointAt(Ot.x,Ot.y,Zt.x,Zt.y,W),E=mr.pointAt(Zt.x,Zt.y,pr.x,pr.y,W);return[[L,p,Ot.x,Ot.y,A.x,A.y,ot,Lt],[ot,Lt,E.x,E.y,pr.x,pr.y,T,R]]}function Sr(L,p,y,S,s,d,T,R,W){if(W===0)return jt([L,y,s,T],[p,S,d,R]);var ot=Er(L,p,y,S,s,d,T,R,.5),Lt=ot[0],Ot=ot[1];return Lt.push(W-1),Ot.push(W-1),Sr.apply(null,Lt)+Sr.apply(null,Ot)}var Tr={extrema:_r,box:function(L,p,y,S,s,d,T,R){for(var W=[L,T],ot=[p,R],Lt=_r(L,y,s,T),Ot=_r(p,S,d,R),Zt=0;Zt<Lt.length;Zt++)W.push(Xt(L,y,s,T,Lt[Zt]));for(var Zt=0;Zt<Ot.length;Zt++)ot.push(Xt(p,S,d,R,Ot[Zt]));return _t(W,ot)},length:function(L,p,y,S,s,d,T,R){return Sr(L,p,y,S,s,d,T,R,3)},nearestPoint:function(L,p,y,S,s,d,T,R,W,ot,Lt){return bt([L,y,s,T],[p,S,d,R],W,ot,Xt,Lt)},pointDistance:function(L,p,y,S,s,d,T,R,W,ot,Lt){var Ot=this.nearestPoint(L,p,y,S,s,d,T,R,W,ot,Lt);return tt(Ot.x,Ot.y,W,ot)},interpolationAt:Xt,pointAt:function(L,p,y,S,s,d,T,R,W){return{x:Xt(L,y,s,T,W),y:Xt(p,S,d,R,W)}},divide:function(L,p,y,S,s,d,T,R,W){return Er(L,p,y,S,s,d,T,R,W)},tangentAngle:function(L,p,y,S,s,d,T,R,W){var ot=ur(L,y,s,T,W),Lt=ur(p,S,d,R,W);return Qt(Math.atan2(Lt,ot))}};function Dr(L,p){var y=Math.abs(L);return p>0?y:y*-1}var Gr={box:function(L,p,y,S){return{x:L-y,y:p-S,width:y*2,height:S*2}},length:function(L,p,y,S){return Math.PI*(3*(y+S)-Math.sqrt((3*y+S)*(y+3*S)))},nearestPoint:function(L,p,y,S,s,d){var T=y,R=S;if(T===0||R===0)return{x:L,y:p};for(var W=s-L,ot=d-p,Lt=Math.abs(W),Ot=Math.abs(ot),Zt=T*T,pr=R*R,A=Math.PI/4,E,N,G=0;G<4;G++){E=T*Math.cos(A),N=R*Math.sin(A);var Z=(Zt-pr)*Math.pow(Math.cos(A),3)/T,nt=(pr-Zt)*Math.pow(Math.sin(A),3)/R,rt=E-Z,st=N-nt,Q=Lt-Z,mt=Ot-nt,lt=Math.hypot(st,rt),Ft=Math.hypot(mt,Q),tr=lt*Math.asin((rt*mt-st*Q)/(lt*Ft)),It=tr/Math.sqrt(Zt+pr-E*E-N*N);A+=It,A=Math.min(Math.PI/2,Math.max(0,A))}return{x:L+Dr(E,W),y:p+Dr(N,ot)}},pointDistance:function(L,p,y,S,s,d){var T=this.nearestPoint(L,p,y,S,s,d);return tt(T.x,T.y,s,d)},pointAt:function(L,p,y,S,s){var d=2*Math.PI*s;return{x:L+y*Math.cos(d),y:p+S*Math.sin(d)}},tangentAngle:function(L,p,y,S,s){var d=2*Math.PI*s,T=Math.atan2(S*Math.cos(d),-y*Math.sin(d));return Qt(T)}};function ct(L,p,y,S,s,d,T,R){return-1*y*Math.cos(s)*Math.sin(R)-S*Math.sin(s)*Math.cos(R)}function ut(L,p,y,S,s,d,T,R){return-1*y*Math.sin(s)*Math.sin(R)+S*Math.cos(s)*Math.cos(R)}function Mt(L,p,y){return Math.atan(-p/L*Math.tan(y))}function At(L,p,y){return Math.atan(p/(L*Math.tan(y)))}function Nt(L,p,y,S,s,d){return y*Math.cos(s)*Math.cos(d)-S*Math.sin(s)*Math.sin(d)+L}function Tt(L,p,y,S,s,d){return y*Math.sin(s)*Math.cos(d)+S*Math.cos(s)*Math.sin(d)+p}function v(L,p,y,S){var s=Math.atan2(S*L,y*p);return(s+Math.PI*2)%(Math.PI*2)}function O(L,p,y){return{x:L*Math.cos(y),y:p*Math.sin(y)}}function gt(L,p,y){var S=Math.cos(y),s=Math.sin(y);return[L*S-p*s,L*s+p*S]}var dt={box:function(L,p,y,S,s,d,T){for(var R=Mt(y,S,s),W=Infinity,ot=-Infinity,Lt=[d,T],Ot=-Math.PI*2;Ot<=Math.PI*2;Ot+=Math.PI){var Zt=R+Ot;d<T?d<Zt&&Zt<T&&Lt.push(Zt):T<Zt&&Zt<d&&Lt.push(Zt)}for(var Ot=0;Ot<Lt.length;Ot++){var pr=Nt(L,p,y,S,s,Lt[Ot]);pr<W&&(W=pr),pr>ot&&(ot=pr)}for(var A=At(y,S,s),E=Infinity,N=-Infinity,G=[d,T],Ot=-Math.PI*2;Ot<=Math.PI*2;Ot+=Math.PI){var Z=A+Ot;d<T?d<Z&&Z<T&&G.push(Z):T<Z&&Z<d&&G.push(Z)}for(var Ot=0;Ot<G.length;Ot++){var nt=Tt(L,p,y,S,s,G[Ot]);nt<E&&(E=nt),nt>N&&(N=nt)}return{x:W,y:E,width:ot-W,height:N-E}},length:function(L,p,y,S,s,d,T){},nearestPoint:function(L,p,y,S,s,d,T,R,W){var ot=gt(R-L,W-p,-s),Lt=ot[0],Ot=ot[1],Zt=Gr.nearestPoint(0,0,y,S,Lt,Ot),pr=v(y,S,Zt.x,Zt.y);pr<d?Zt=O(y,S,d):pr>T&&(Zt=O(y,S,T));var A=gt(Zt.x,Zt.y,s);return{x:A[0]+L,y:A[1]+p}},pointDistance:function(L,p,y,S,s,d,T,R,W){var ot=this.nearestPoint(L,p,y,S,R,W);return tt(ot.x,ot.y,R,W)},pointAt:function(L,p,y,S,s,d,T,R){var W=(T-d)*R+d;return{x:Nt(L,p,y,S,s,W),y:Tt(L,p,y,S,s,W)}},tangentAngle:function(L,p,y,S,s,d,T,R){var W=(T-d)*R+d,ot=ct(L,p,y,S,s,d,T,W),Lt=ut(L,p,y,S,s,d,T,W);return Qt(Math.atan2(Lt,ot))}};function Ht(L){for(var p=0,y=[],S=0;S<L.length-1;S++){var s=L[S],d=L[S+1],T=tt(s[0],s[1],d[0],d[1]),R={from:s,to:d,length:T};y.push(R),p+=T}return{segments:y,totalLength:p}}function or(L){if(L.length<2)return 0;for(var p=0,y=0;y<L.length-1;y++){var S=L[y],s=L[y+1];p+=tt(S[0],S[1],s[0],s[1])}return p}function Wt(L,p){if(p>1||p<0||L.length<2)return null;var y=Ht(L),S=y.segments,s=y.totalLength;if(s===0)return{x:L[0][0],y:L[0][1]};for(var d=0,T=null,R=0;R<S.length;R++){var W=S[R],ot=W.from,Lt=W.to,Ot=W.length/s;if(p>=d&&p<=d+Ot){var Zt=(p-d)/Ot;T=mr.pointAt(ot[0],ot[1],Lt[0],Lt[1],Zt);break}d+=Ot}return T}function cr(L,p){if(p>1||p<0||L.length<2)return 0;for(var y=Ht(L),S=y.segments,s=y.totalLength,d=0,T=0,R=0;R<S.length;R++){var W=S[R],ot=W.from,Lt=W.to,Ot=W.length/s;if(p>=d&&p<=d+Ot){T=Math.atan2(Lt[1]-ot[1],Lt[0]-ot[0]);break}d+=Ot}return T}function sr(L,p,y){for(var S=Infinity,s=0;s<L.length-1;s++){var d=L[s],T=L[s+1],R=mr.pointDistance(d[0],d[1],T[0],T[1],p,y);R<S&&(S=R)}return S}var er={box:function(L){for(var p=[],y=[],S=0;S<L.length;S++){var s=L[S];p.push(s[0]),y.push(s[1])}return _t(p,y)},length:function(L){return or(L)},pointAt:function(L,p){return Wt(L,p)},pointDistance:function(L,p,y){return sr(L,p,y)},tangentAngle:function(L,p){return cr(L,p)}};function wr(L){var p=L.slice(0);return L.length&&p.push(L[0]),p}var Or={box:function(L){return er.box(L)},length:function(L){return or(wr(L))},pointAt:function(L,p){return Wt(wr(L),p)},pointDistance:function(L,p,y){return sr(wr(L),p,y)},tangentAngle:function(L,p){return cr(wr(L),p)}}},73578:function(ne,Ir,qt){"use strict";qt.r(Ir),qt.d(Ir,{AbstractCanvas:function(){return K.$Z},AbstractGroup:function(){return K.pA},AbstractShape:function(){return K.zr},Base:function(){return K.XY},Canvas:function(){return kt},Event:function(){return K.ju},Group:function(){return Nr},PathUtil:function(){return K.Gk},Shape:function(){return xt},assembleFont:function(){return K.$O},getBBoxMethod:function(){return K.bj},getOffScreenContext:function(){return K.LF},getTextHeight:function(){return K.FE},invert:function(){return K.U_},isAllowCapture:function(){return K.pP},multiplyVec2:function(){return K.rG},registerBBox:function(){return K.WZ},registerEasing:function(){return K.CW},version:function(){return Ut}});var xt={};qt.r(xt),qt.d(xt,{Base:function(){return Xt},Circle:function(){return _r},Dom:function(){return Sr},Ellipse:function(){return Dr},Image:function(){return ct},Line:function(){return At},Marker:function(){return O},Path:function(){return dt},Polygon:function(){return or},Polyline:function(){return cr},Rect:function(){return p},Text:function(){return W}});var Y=qt(70655),K=qt(3232),tt=qt(49242),gr={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},_t={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},dr=null;function Qt(B){return document.createElementNS("http://www.w3.org/2000/svg",B)}function br(B){var x=gr[B.type],o=B.getParent();if(!x)throw new Error("the type "+B.type+" is not supported by svg");var C=Qt(x);if(B.get("id")&&(C.id=B.get("id")),B.set("el",C),B.set("attrs",{}),o){var D=o.get("el");D||(D=o.createDom(),o.set("el",D)),D.appendChild(C)}return C}function mr(B,x){var o=B.get("el"),C=(0,tt.toArray)(o.children).sort(x),D=document.createDocumentFragment();C.forEach(function(U){D.appendChild(U)}),o.appendChild(D)}function lr(B,x){var o=B.parentNode,C=Array.from(o.childNodes).filter(function(at){return at.nodeType===1&&at.nodeName.toLowerCase()!=="defs"}),D=C[x],U=C.indexOf(B);if(D){if(U>x)o.insertBefore(B,D);else if(U<x){var et=C[x+1];et?o.insertBefore(B,et):o.appendChild(B)}}else o.appendChild(B)}function bt(B,x){var o=B.cfg.el,C=B.attr(),D={dx:C.shadowOffsetX,dy:C.shadowOffsetY,blur:C.shadowBlur,color:C.shadowColor};if(!D.dx&&!D.dy&&!D.blur&&!D.color)o.removeAttribute("filter");else{var U=x.find("filter",D);U||(U=x.addShadow(D)),o.setAttribute("filter","url(#"+U+")")}}function jt(B){var x=B.attr().matrix;if(x){for(var o=B.cfg.el,C=[],D=0;D<9;D+=3)C.push(x[D]+","+x[D+1]);C=C.join(","),C.indexOf("NaN")===-1?o.setAttribute("transform","matrix("+C+")"):console.warn("invalid matrix:",x)}}function Kt(B,x){var o=B.getClip(),C=B.get("el");if(!o)C.removeAttribute("clip-path");else if(o&&!C.hasAttribute("clip-path")){br(o),o.createPath(x);var D=x.addClip(o);C.setAttribute("clip-path","url(#"+D+")")}}function ir(B,x){x.forEach(function(o){o.draw(B)})}function yr(B,x){var o=B.get("canvas");if(o&&o.get("autoDraw")){var C=o.get("context"),D=B.getParent(),U=D?D.getChildren():[o],et=B.get("el");if(x==="remove"){var at=B.get("isClipShape");if(at){var vt=et&&et.parentNode,Ar=vt&&vt.parentNode;vt&&Ar&&Ar.removeChild(vt)}else et&&et.parentNode&&et.parentNode.removeChild(et)}else if(x==="show")et.setAttribute("visibility","visible");else if(x==="hide")et.setAttribute("visibility","hidden");else if(x==="zIndex")lr(et,U.indexOf(B));else if(x==="sort"){var xr=B.get("children");xr&&xr.length&&mr(B,function(zr,Wr){return xr.indexOf(zr)-xr.indexOf(Wr)?1:0})}else x==="clear"?et&&(et.innerHTML=""):x==="matrix"?jt(B):x==="clip"?Kt(B,C):x==="attr"||x==="add"&&B.draw(C)}}var Lr=function(B){(0,Y.__extends)(x,B);function x(){return B!==null&&B.apply(this,arguments)||this}return x.prototype.isEntityGroup=function(){return!0},x.prototype.createDom=function(){var o=Qt("g");this.set("el",o);var C=this.getParent();if(C){var D=C.get("el");D||(D=C.createDom(),C.set("el",D)),D.appendChild(o)}return o},x.prototype.afterAttrsChange=function(o){B.prototype.afterAttrsChange.call(this,o);var C=this.get("canvas");if(C&&C.get("autoDraw")){var D=C.get("context");this.createPath(D,o)}},x.prototype.onCanvasChange=function(o){yr(this,o)},x.prototype.getShapeBase=function(){return xt},x.prototype.getGroupBase=function(){return x},x.prototype.draw=function(o){var C=this.getChildren(),D=this.get("el");this.get("destroyed")?D&&D.parentNode.removeChild(D):(D||this.createDom(),Kt(this,o),this.createPath(o),C.length&&ir(o,C))},x.prototype.createPath=function(o,C){var D=this.attr(),U=this.get("el");(0,tt.each)(C||D,function(et,at){_t[at]&&U.setAttribute(_t[at],et)}),jt(this)},x}(K.pA),Nr=Lr,Zr=function(B){(0,Y.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="svg",o.canFill=!1,o.canStroke=!1,o}return x.prototype.getDefaultAttrs=function(){var o=B.prototype.getDefaultAttrs.call(this);return(0,Y.__assign)((0,Y.__assign)({},o),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},x.prototype.afterAttrsChange=function(o){B.prototype.afterAttrsChange.call(this,o);var C=this.get("canvas");if(C&&C.get("autoDraw")){var D=C.get("context");this.draw(D,o)}},x.prototype.getShapeBase=function(){return xt},x.prototype.getGroupBase=function(){return Nr},x.prototype.onCanvasChange=function(o){yr(this,o)},x.prototype.calculateBBox=function(){var o=this.get("el"),C=null;if(o)C=o.getBBox();else{var D=(0,K.bj)(this.get("type"));D&&(C=D(this))}if(C){var U=C.x,et=C.y,at=C.width,vt=C.height,Ar=this.getHitLineWidth(),xr=Ar/2,zr=U-xr,Wr=et-xr,ae=U+at+xr,he=et+vt+xr;return{x:zr,y:Wr,minX:zr,minY:Wr,maxX:ae,maxY:he,width:at+Ar,height:vt+Ar}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},x.prototype.isFill=function(){var o=this.attr(),C=o.fill,D=o.fillStyle;return(C||D||this.isClipShape())&&this.canFill},x.prototype.isStroke=function(){var o=this.attr(),C=o.stroke,D=o.strokeStyle;return(C||D)&&this.canStroke},x.prototype.draw=function(o,C){var D=this.get("el");this.get("destroyed")?D&&D.parentNode.removeChild(D):(D||br(this),Kt(this,o),this.createPath(o,C),this.shadow(o,C),this.strokeAndFill(o,C),this.transform(C))},x.prototype.createPath=function(o,C){},x.prototype.strokeAndFill=function(o,C){var D=C||this.attr(),U=D.fill,et=D.fillStyle,at=D.stroke,vt=D.strokeStyle,Ar=D.fillOpacity,xr=D.strokeOpacity,zr=D.lineWidth,Wr=this.get("el");this.canFill&&(C?"fill"in D?this._setColor(o,"fill",U):"fillStyle"in D&&this._setColor(o,"fill",et):this._setColor(o,"fill",U||et),Ar&&Wr.setAttribute(_t.fillOpacity,Ar)),this.canStroke&&zr>0&&(C?"stroke"in D?this._setColor(o,"stroke",at):"strokeStyle"in D&&this._setColor(o,"stroke",vt):this._setColor(o,"stroke",at||vt),xr&&Wr.setAttribute(_t.strokeOpacity,xr),zr&&Wr.setAttribute(_t.lineWidth,zr))},x.prototype._setColor=function(o,C,D){var U=this.get("el");if(!D){U.setAttribute(_t[C],"none");return}if(D=D.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(D)){var et=o.find("gradient",D);et||(et=o.addGradient(D)),U.setAttribute(_t[C],"url(#"+et+")")}else if(/^[p,P]{1}[\s]*\(/.test(D)){var et=o.find("pattern",D);et||(et=o.addPattern(D)),U.setAttribute(_t[C],"url(#"+et+")")}else U.setAttribute(_t[C],D)},x.prototype.shadow=function(o,C){var D=this.attr(),U=C||D,et=U.shadowOffsetX,at=U.shadowOffsetY,vt=U.shadowBlur,Ar=U.shadowColor;(et||at||vt||Ar)&&bt(this,o)},x.prototype.transform=function(o){var C=this.attr(),D=(o||C).matrix;D&&jt(this)},x.prototype.isInShape=function(o,C){return this.isPointInPath(o,C)},x.prototype.isPointInPath=function(o,C){var D=this.get("el"),U=this.get("canvas"),et=U.get("el").getBoundingClientRect(),at=o+et.left,vt=C+et.top,Ar=document.elementFromPoint(at,vt);return!!(Ar&&Ar.isEqualNode(D))},x.prototype.getHitLineWidth=function(){var o=this.attrs,C=o.lineWidth,D=o.lineAppendWidth;return this.isStroke()?C+D:0},x}(K.zr),Xt=Zr,ur=function(B){(0,Y.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="circle",o.canFill=!0,o.canStroke=!0,o}return x.prototype.getDefaultAttrs=function(){var o=B.prototype.getDefaultAttrs.call(this);return(0,Y.__assign)((0,Y.__assign)({},o),{x:0,y:0,r:0})},x.prototype.createPath=function(o,C){var D=this.attr(),U=this.get("el");(0,tt.each)(C||D,function(et,at){at==="x"||at==="y"?U.setAttribute("c"+at,et):_t[at]&&U.setAttribute(_t[at],et)})},x}(Xt),_r=ur,Er=function(B){(0,Y.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="dom",o.canFill=!1,o.canStroke=!1,o}return x.prototype.createPath=function(o,C){var D=this.attr(),U=this.get("el");if((0,tt.each)(C||D,function(Ar,xr){_t[xr]&&U.setAttribute(_t[xr],Ar)}),typeof D.html=="function"){var et=D.html.call(this,D);if(et instanceof Element||et instanceof HTMLDocument){for(var at=U.childNodes,vt=at.length-1;vt>=0;vt--)U.removeChild(at[vt]);U.appendChild(et)}else U.innerHTML=et}else U.innerHTML=D.html},x}(Xt),Sr=Er,Tr=function(B){(0,Y.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="ellipse",o.canFill=!0,o.canStroke=!0,o}return x.prototype.getDefaultAttrs=function(){var o=B.prototype.getDefaultAttrs.call(this);return(0,Y.__assign)((0,Y.__assign)({},o),{x:0,y:0,rx:0,ry:0})},x.prototype.createPath=function(o,C){var D=this.attr(),U=this.get("el");(0,tt.each)(C||D,function(et,at){at==="x"||at==="y"?U.setAttribute("c"+at,et):_t[at]&&U.setAttribute(_t[at],et)})},x}(Xt),Dr=Tr,Gr=function(B){(0,Y.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="image",o.canFill=!1,o.canStroke=!1,o}return x.prototype.getDefaultAttrs=function(){var o=B.prototype.getDefaultAttrs.call(this);return(0,Y.__assign)((0,Y.__assign)({},o),{x:0,y:0,width:0,height:0})},x.prototype.createPath=function(o,C){var D=this,U=this.attr(),et=this.get("el");(0,tt.each)(C||U,function(at,vt){vt==="img"?D._setImage(U.img):_t[vt]&&et.setAttribute(_t[vt],at)})},x.prototype.setAttr=function(o,C){this.attrs[o]=C,o==="img"&&this._setImage(C)},x.prototype._setImage=function(o){var C=this.attr(),D=this.get("el");if((0,tt.isString)(o))D.setAttribute("href",o);else if(o instanceof window.Image)C.width||(D.setAttribute("width",o.width),this.attr("width",o.width)),C.height||(D.setAttribute("height",o.height),this.attr("height",o.height)),D.setAttribute("href",o.src);else if(o instanceof HTMLElement&&(0,tt.isString)(o.nodeName)&&o.nodeName.toUpperCase()==="CANVAS")D.setAttribute("href",o.toDataURL());else if(o instanceof ImageData){var U=document.createElement("canvas");U.setAttribute("width",""+o.width),U.setAttribute("height",""+o.height),U.getContext("2d").putImageData(o,0,0),C.width||(D.setAttribute("width",""+o.width),this.attr("width",o.width)),C.height||(D.setAttribute("height",""+o.height),this.attr("height",o.height)),D.setAttribute("href",U.toDataURL())}},x}(Xt),ct=Gr,ut=qt(89838),Mt=function(B){(0,Y.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="line",o.canFill=!1,o.canStroke=!0,o}return x.prototype.getDefaultAttrs=function(){var o=B.prototype.getDefaultAttrs.call(this);return(0,Y.__assign)((0,Y.__assign)({},o),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},x.prototype.createPath=function(o,C){var D=this.attr(),U=this.get("el");(0,tt.each)(C||D,function(et,at){if(at==="startArrow"||at==="endArrow")if(et){var vt=(0,tt.isObject)(et)?o.addArrow(D,_t[at]):o.getDefaultArrow(D,_t[at]);U.setAttribute(_t[at],"url(#"+vt+")")}else U.removeAttribute(_t[at]);else _t[at]&&U.setAttribute(_t[at],et)})},x.prototype.getTotalLength=function(){var o=this.attr(),C=o.x1,D=o.y1,U=o.x2,et=o.y2;return ut.x1.length(C,D,U,et)},x.prototype.getPoint=function(o){var C=this.attr(),D=C.x1,U=C.y1,et=C.x2,at=C.y2;return ut.x1.pointAt(D,U,et,at,o)},x}(Xt),At=Mt,Nt={circle:function(B,x,o){return[["M",B,x],["m",-o,0],["a",o,o,0,1,0,o*2,0],["a",o,o,0,1,0,-o*2,0]]},square:function(B,x,o){return[["M",B-o,x-o],["L",B+o,x-o],["L",B+o,x+o],["L",B-o,x+o],["Z"]]},diamond:function(B,x,o){return[["M",B-o,x],["L",B,x-o],["L",B+o,x],["L",B,x+o],["Z"]]},triangle:function(B,x,o){var C=o*Math.sin(1/3*Math.PI);return[["M",B-o,x+C],["L",B,x-C],["L",B+o,x+C],["z"]]},triangleDown:function(B,x,o){var C=o*Math.sin(1/3*Math.PI);return[["M",B-o,x-C],["L",B+o,x-C],["L",B,x+C],["Z"]]}},Tt={get:function(B){return Nt[B]},register:function(B,x){Nt[B]=x},remove:function(B){delete Nt[B]},getAll:function(){return Nt}},v=function(B){(0,Y.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="marker",o.canFill=!0,o.canStroke=!0,o}return x.prototype.createPath=function(o){var C=this.get("el");C.setAttribute("d",this._assembleMarker())},x.prototype._assembleMarker=function(){var o=this._getPath();return(0,tt.isArray)(o)?o.map(function(C){return C.join(" ")}).join(""):o},x.prototype._getPath=function(){var o=this.attr(),C=o.x,D=o.y,U=o.r||o.radius,et=o.symbol||"circle",at;return(0,tt.isFunction)(et)?at=et:at=Tt.get(et),at?at(C,D,U):(console.warn(at+" symbol is not exist."),null)},x.symbolsFactory=Tt,x}(Xt),O=v,gt=function(B){(0,Y.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="path",o.canFill=!0,o.canStroke=!0,o}return x.prototype.getDefaultAttrs=function(){var o=B.prototype.getDefaultAttrs.call(this);return(0,Y.__assign)((0,Y.__assign)({},o),{startArrow:!1,endArrow:!1})},x.prototype.createPath=function(o,C){var D=this,U=this.attr(),et=this.get("el");(0,tt.each)(C||U,function(at,vt){if(vt==="path"&&(0,tt.isArray)(at))et.setAttribute("d",D._formatPath(at));else if(vt==="startArrow"||vt==="endArrow")if(at){var Ar=(0,tt.isObject)(at)?o.addArrow(U,_t[vt]):o.getDefaultArrow(U,_t[vt]);et.setAttribute(_t[vt],"url(#"+Ar+")")}else et.removeAttribute(_t[vt]);else _t[vt]&&et.setAttribute(_t[vt],at)})},x.prototype._formatPath=function(o){var C=o.map(function(D){return D.join(" ")}).join("");return~C.indexOf("NaN")?"":C},x.prototype.getTotalLength=function(){var o=this.get("el");return o?o.getTotalLength():null},x.prototype.getPoint=function(o){var C=this.get("el"),D=this.getTotalLength();if(D===0)return null;var U=C?C.getPointAtLength(o*D):null;return U?{x:U.x,y:U.y}:null},x}(Xt),dt=gt,Ht=function(B){(0,Y.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="polygon",o.canFill=!0,o.canStroke=!0,o}return x.prototype.createPath=function(o,C){var D=this.attr(),U=this.get("el");(0,tt.each)(C||D,function(et,at){at==="points"&&(0,tt.isArray)(et)&&et.length>=2?U.setAttribute("points",et.map(function(vt){return vt[0]+","+vt[1]}).join(" ")):_t[at]&&U.setAttribute(_t[at],et)})},x}(Xt),or=Ht,Wt=function(B){(0,Y.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="polyline",o.canFill=!0,o.canStroke=!0,o}return x.prototype.getDefaultAttrs=function(){var o=B.prototype.getDefaultAttrs.call(this);return(0,Y.__assign)((0,Y.__assign)({},o),{startArrow:!1,endArrow:!1})},x.prototype.onAttrChange=function(o,C,D){B.prototype.onAttrChange.call(this,o,C,D),["points"].indexOf(o)!==-1&&this._resetCache()},x.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},x.prototype.createPath=function(o,C){var D=this.attr(),U=this.get("el");(0,tt.each)(C||D,function(et,at){at==="points"&&(0,tt.isArray)(et)&&et.length>=2?U.setAttribute("points",et.map(function(vt){return vt[0]+","+vt[1]}).join(" ")):_t[at]&&U.setAttribute(_t[at],et)})},x.prototype.getTotalLength=function(){var o=this.attr().points,C=this.get("totalLength");return(0,tt.isNil)(C)?(this.set("totalLength",ut.aH.length(o)),this.get("totalLength")):C},x.prototype.getPoint=function(o){var C=this.attr().points,D=this.get("tCache");D||(this._setTcache(),D=this.get("tCache"));var U,et;return(0,tt.each)(D,function(at,vt){o>=at[0]&&o<=at[1]&&(U=(o-at[0])/(at[1]-at[0]),et=vt)}),ut.x1.pointAt(C[et][0],C[et][1],C[et+1][0],C[et+1][1],U)},x.prototype._setTcache=function(){var o=this.attr().points;if(!(!o||o.length===0)){var C=this.getTotalLength();if(!(C<=0)){var D=0,U=[],et,at;(0,tt.each)(o,function(vt,Ar){o[Ar+1]&&(et=[],et[0]=D/C,at=ut.x1.length(vt[0],vt[1],o[Ar+1][0],o[Ar+1][1]),D+=at,et[1]=D/C,U.push(et))}),this.set("tCache",U)}}},x.prototype.getStartTangent=function(){var o=this.attr().points,C=[];return C.push([o[1][0],o[1][1]]),C.push([o[0][0],o[0][1]]),C},x.prototype.getEndTangent=function(){var o=this.attr().points,C=o.length-1,D=[];return D.push([o[C-1][0],o[C-1][1]]),D.push([o[C][0],o[C][1]]),D},x}(Xt),cr=Wt,sr=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,er=/[^\s,]+/gi;function wr(B){var x=0,o=0,C=0,D=0;return(0,tt.isArray)(B)?B.length===1?x=o=C=D=B[0]:B.length===2?(x=C=B[0],o=D=B[1]):B.length===3?(x=B[0],o=D=B[1],C=B[2]):(x=B[0],o=B[1],C=B[2],D=B[3]):x=o=C=D=B,{r1:x,r2:o,r3:C,r4:D}}function Or(B){if(B=B||[],isArray(B))return B;if(isString(B))return B=B.match(sr),each(B,function(x,o){if(x=x.match(er),x[0].length>1){var C=x[0].charAt(0);x.splice(1,0,x[0].substr(1)),x[0]=C}each(x,function(D,U){isNaN(D)||(x[U]=+D)}),B[o]=x}),B}var L=function(B){(0,Y.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="rect",o.canFill=!0,o.canStroke=!0,o}return x.prototype.getDefaultAttrs=function(){var o=B.prototype.getDefaultAttrs.call(this);return(0,Y.__assign)((0,Y.__assign)({},o),{x:0,y:0,width:0,height:0,radius:0})},x.prototype.createPath=function(o,C){var D=this,U=this.attr(),et=this.get("el"),at=!1,vt=["x","y","width","height","radius"];(0,tt.each)(C||U,function(Ar,xr){vt.indexOf(xr)!==-1&&!at?(et.setAttribute("d",D._assembleRect(U)),at=!0):vt.indexOf(xr)===-1&&_t[xr]&&et.setAttribute(_t[xr],Ar)})},x.prototype._assembleRect=function(o){var C=o.x,D=o.y,U=o.width,et=o.height,at=o.radius;if(!at)return"M "+C+","+D+" l "+U+",0 l 0,"+et+" l"+-U+" 0 z";var vt=wr(at);(0,tt.isArray)(at)?at.length===1?vt.r1=vt.r2=vt.r3=vt.r4=at[0]:at.length===2?(vt.r1=vt.r3=at[0],vt.r2=vt.r4=at[1]):at.length===3?(vt.r1=at[0],vt.r2=vt.r4=at[1],vt.r3=at[2]):(vt.r1=at[0],vt.r2=at[1],vt.r3=at[2],vt.r4=at[3]):vt.r1=vt.r2=vt.r3=vt.r4=at;var Ar=[["M "+(C+vt.r1)+","+D],["l "+(U-vt.r1-vt.r2)+",0"],["a "+vt.r2+","+vt.r2+",0,0,1,"+vt.r2+","+vt.r2],["l 0,"+(et-vt.r2-vt.r3)],["a "+vt.r3+","+vt.r3+",0,0,1,"+-vt.r3+","+vt.r3],["l "+(vt.r3+vt.r4-U)+",0"],["a "+vt.r4+","+vt.r4+",0,0,1,"+-vt.r4+","+-vt.r4],["l 0,"+(vt.r4+vt.r1-et)],["a "+vt.r1+","+vt.r1+",0,0,1,"+vt.r1+","+-vt.r1],["z"]];return Ar.join(" ")},x}(Xt),p=L,y=qt(43631),S=.3,s={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},d={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},T={left:"left",start:"left",center:"middle",right:"end",end:"end"},R=function(B){(0,Y.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="text",o.canFill=!0,o.canStroke=!0,o}return x.prototype.getDefaultAttrs=function(){var o=B.prototype.getDefaultAttrs.call(this);return(0,Y.__assign)((0,Y.__assign)({},o),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},x.prototype.createPath=function(o,C){var D=this,U=this.attr(),et=this.get("el");this._setFont(),(0,tt.each)(C||U,function(at,vt){vt==="text"?D._setText(""+at):vt==="matrix"&&at?jt(D):_t[vt]&&et.setAttribute(_t[vt],at)}),et.setAttribute("paint-order","stroke"),et.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},x.prototype._setFont=function(){var o=this.get("el"),C=this.attr(),D=C.textBaseline,U=C.textAlign,et=(0,y.qY)();et&&et.name==="firefox"?o.setAttribute("dominant-baseline",d[D]||"alphabetic"):o.setAttribute("alignment-baseline",s[D]||"baseline"),o.setAttribute("text-anchor",T[U]||"left")},x.prototype._setText=function(o){var C=this.get("el"),D=this.attr(),U=D.x,et=D.textBaseline,at=et===void 0?"bottom":et;if(!o)C.innerHTML="";else if(~o.indexOf(`
- `)){var vt=o.split(`
- `),Ar=vt.length-1,xr="";(0,tt.each)(vt,function(zr,Wr){Wr===0?at==="alphabetic"?xr+='<tspan x="'+U+'" dy="'+-Ar+'em">'+zr+"</tspan>":at==="top"?xr+='<tspan x="'+U+'" dy="0.9em">'+zr+"</tspan>":at==="middle"?xr+='<tspan x="'+U+'" dy="'+-(Ar-1)/2+'em">'+zr+"</tspan>":at==="bottom"?xr+='<tspan x="'+U+'" dy="-'+(Ar+S)+'em">'+zr+"</tspan>":at==="hanging"&&(xr+='<tspan x="'+U+'" dy="'+(-(Ar-1)-S)+'em">'+zr+"</tspan>"):xr+='<tspan x="'+U+'" dy="1em">'+zr+"</tspan>"}),C.innerHTML=xr}else C.innerHTML=o},x}(Xt),W=R,ot=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Lt=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Ot=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function Zt(B){var x=B.match(Ot);if(!x)return"";var o="";return x.sort(function(C,D){return C=C.split(":"),D=D.split(":"),Number(C[0])-Number(D[0])}),(0,tt.each)(x,function(C){C=C.split(":"),o+='<stop offset="'+C[0]+'" stop-color="'+C[1]+'"></stop>'}),o}function pr(B,x){var o=ot.exec(B),C=(0,tt.mod)((0,tt.toRadian)(parseFloat(o[1])),Math.PI*2),D=o[2],U,et;C>=0&&C<.5*Math.PI?(U={x:0,y:0},et={x:1,y:1}):.5*Math.PI<=C&&C<Math.PI?(U={x:1,y:0},et={x:0,y:1}):Math.PI<=C&&C<1.5*Math.PI?(U={x:1,y:1},et={x:0,y:0}):(U={x:0,y:1},et={x:1,y:0});var at=Math.tan(C),vt=at*at,Ar=(et.x-U.x+at*(et.y-U.y))/(vt+1)+U.x,xr=at*(et.x-U.x+at*(et.y-U.y))/(vt+1)+U.y;x.setAttribute("x1",U.x),x.setAttribute("y1",U.y),x.setAttribute("x2",Ar),x.setAttribute("y2",xr),x.innerHTML=Zt(D)}function A(B,x){var o=Lt.exec(B),C=parseFloat(o[1]),D=parseFloat(o[2]),U=parseFloat(o[3]),et=o[4];x.setAttribute("cx",C),x.setAttribute("cy",D),x.setAttribute("r",U),x.innerHTML=Zt(et)}var E=function(){function B(x){this.cfg={};var o=null,C=(0,tt.uniqueId)("gradient_");return x.toLowerCase()[0]==="l"?(o=Qt("linearGradient"),pr(x,o)):(o=Qt("radialGradient"),A(x,o)),o.setAttribute("id",C),this.el=o,this.id=C,this.cfg=x,this}return B.prototype.match=function(x,o){return this.cfg===o},B}(),N=E,G={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},Z={x:"-40%",y:"-40%",width:"200%",height:"200%"},nt=function(){function B(x){this.type="filter",this.cfg={},this.type="filter";var o=Qt("filter");return(0,tt.each)(Z,function(C,D){o.setAttribute(D,C)}),this.el=o,this.id=(0,tt.uniqueId)("filter_"),this.el.id=this.id,this.cfg=x,this._parseShadow(x,o),this}return B.prototype.match=function(x,o){if(this.type!==x)return!1;var C=!0,D=this.cfg;return(0,tt.each)(Object.keys(D),function(U){if(D[U]!==o[U])return C=!1,!1}),C},B.prototype.update=function(x,o){var C=this.cfg;return C[G[x]]=o,this._parseShadow(C,this.el),this},B.prototype._parseShadow=function(x,o){var C=`<feDropShadow
- dx="`+(x.dx||0)+`"
- dy="`+(x.dy||0)+`"
- stdDeviation="`+(x.blur?x.blur/10:0)+`"
- flood-color="`+(x.color?x.color:"#000")+`"
- flood-opacity="`+(x.opacity?x.opacity:1)+`"
- />`;o.innerHTML=C},B}(),rt=nt,st=function(){function B(x,o){this.cfg={};var C=Qt("marker"),D=(0,tt.uniqueId)("marker_");C.setAttribute("id",D);var U=Qt("path");U.setAttribute("stroke",x.stroke||"none"),U.setAttribute("fill",x.fill||"none"),C.appendChild(U),C.setAttribute("overflow","visible"),C.setAttribute("orient","auto-start-reverse"),this.el=C,this.child=U,this.id=D;var et=x[o==="marker-start"?"startArrow":"endArrow"];return this.stroke=x.stroke||"#000",et===!0?this._setDefaultPath(o,U):(this.cfg=et,this._setMarker(x.lineWidth,U)),this}return B.prototype.match=function(){return!1},B.prototype._setDefaultPath=function(x,o){var C=this.el;o.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),C.setAttribute("refX",""+10*Math.cos(Math.PI/6)),C.setAttribute("refY",""+5)},B.prototype._setMarker=function(x,o){var C=this.el,D=this.cfg.path,U=this.cfg.d;(0,tt.isArray)(D)&&(D=D.map(function(et){return et.join(" ")}).join("")),o.setAttribute("d",D),C.appendChild(o),U&&C.setAttribute("refX",""+U/x)},B.prototype.update=function(x){var o=this.child;o.attr?o.attr("fill",x):o.setAttribute("fill",x)},B}(),Q=st,mt=function(){function B(x){this.type="clip",this.cfg={};var o=Qt("clipPath");this.el=o,this.id=(0,tt.uniqueId)("clip_"),o.id=this.id;var C=x.cfg.el;return o.appendChild(C),this.cfg=x,this}return B.prototype.match=function(){return!1},B.prototype.remove=function(){var x=this.el;x.parentNode.removeChild(x)},B}(),lt=mt,Ft=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,tr=function(){function B(x){this.cfg={};var o=Qt("pattern");o.setAttribute("patternUnits","userSpaceOnUse");var C=Qt("image");o.appendChild(C);var D=(0,tt.uniqueId)("pattern_");o.id=D,this.el=o,this.id=D,this.cfg=x;var U=Ft.exec(x),et=U[2];C.setAttribute("href",et);var at=new Image;et.match(/^data:/i)||(at.crossOrigin="Anonymous"),at.src=et;function vt(){o.setAttribute("width",""+at.width),o.setAttribute("height",""+at.height)}return at.complete?vt():(at.onload=vt,at.src=at.src),this}return B.prototype.match=function(x,o){return this.cfg===o},B}(),It=tr,zt=function(){function B(x){var o=Qt("defs"),C=(0,tt.uniqueId)("defs_");o.id=C,x.appendChild(o),this.children=[],this.defaultArrow={},this.el=o,this.canvas=x}return B.prototype.find=function(x,o){for(var C=this.children,D=null,U=0;U<C.length;U++)if(C[U].match(x,o)){D=C[U].id;break}return D},B.prototype.findById=function(x){for(var o=this.children,C=null,D=0;D<o.length;D++)if(o[D].id===x){C=o[D];break}return C},B.prototype.add=function(x){this.children.push(x),x.canvas=this.canvas,x.parent=this},B.prototype.getDefaultArrow=function(x,o){var C=x.stroke||x.strokeStyle;if(this.defaultArrow[C])return this.defaultArrow[C].id;var D=new Q(x,o);return this.defaultArrow[C]=D,this.el.appendChild(D.el),this.add(D),D.id},B.prototype.addGradient=function(x){var o=new N(x);return this.el.appendChild(o.el),this.add(o),o.id},B.prototype.addArrow=function(x,o){var C=new Q(x,o);return this.el.appendChild(C.el),this.add(C),C.id},B.prototype.addShadow=function(x){var o=new rt(x);return this.el.appendChild(o.el),this.add(o),o.id},B.prototype.addPattern=function(x){var o=new It(x);return this.el.appendChild(o.el),this.add(o),o.id},B.prototype.addClip=function(x){var o=new lt(x);return this.el.appendChild(o.el),this.add(o),o.id},B}(),Gt=zt,rr=function(B){(0,Y.__extends)(x,B);function x(o){return B.call(this,(0,Y.__assign)((0,Y.__assign)({},o),{autoDraw:!0,renderer:"svg"}))||this}return x.prototype.getShapeBase=function(){return xt},x.prototype.getGroupBase=function(){return Nr},x.prototype.getShape=function(o,C,D){var U=D.target||D.srcElement;if(!gr[U.tagName]){for(var et=U.parentNode;et&&!gr[et.tagName];)et=et.parentNode;U=et}return this.find(function(at){return at.get("el")===U})},x.prototype.createDom=function(){var o=Qt("svg"),C=new Gt(o);return o.setAttribute("width",""+this.get("width")),o.setAttribute("height",""+this.get("height")),this.set("context",C),o},x.prototype.onCanvasChange=function(o){var C=this.get("context"),D=this.get("el");if(o==="sort"){var U=this.get("children");U&&U.length&&mr(this,function(at,vt){return U.indexOf(at)-U.indexOf(vt)?1:0})}else if(o==="clear"){if(D){D.innerHTML="";var et=C.el;et.innerHTML="",D.appendChild(et)}}else o==="matrix"?jt(this):o==="clip"?Kt(this,C):o==="changeSize"&&(D.setAttribute("width",""+this.get("width")),D.setAttribute("height",""+this.get("height")))},x.prototype.draw=function(){var o=this.get("context"),C=this.getChildren();Kt(this,o),C.length&&ir(o,C)},x}(K.$Z),kt=rr,Ut="0.5.6"},31506:function(ne,Ir,qt){"use strict";qt.d(Ir,{m$:function(){return K},zu:function(){return tt},lh:function(){return gr},vs:function(){return dr},Dg:function(){return br}});var xt=qt(35600),Y=qt(31437);function K(lr,bt,jt){var Kt=[0,0,0,0,0,0,0,0,0];return xt.fromTranslation(Kt,jt),xt.multiply(lr,Kt,bt)}function tt(lr,bt,jt){var Kt=[0,0,0,0,0,0,0,0,0];return xt.fromRotation(Kt,jt),xt.multiply(lr,Kt,bt)}function gr(lr,bt,jt){var Kt=[0,0,0,0,0,0,0,0,0];return xt.fromScaling(Kt,jt),xt.multiply(lr,Kt,bt)}function _t(lr,bt,jt){return xt.multiply(lr,jt,bt)}function dr(lr,bt){for(var jt=lr?[].concat(lr):[1,0,0,0,1,0,0,0,1],Kt=0,ir=bt.length;Kt<ir;Kt++){var yr=bt[Kt];switch(yr[0]){case"t":K(jt,jt,[yr[1],yr[2]]);break;case"s":gr(jt,jt,[yr[1],yr[2]]);break;case"r":tt(jt,jt,yr[1]);break;case"m":_t(jt,jt,yr[1]);break;default:break}}return jt}function Qt(lr,bt){return lr[0]*bt[1]-bt[0]*lr[1]}function br(lr,bt,jt){var Kt=Y.EU(lr,bt),ir=Qt(lr,bt)>=0;return jt?ir?Math.PI*2-Kt:Kt:ir?Kt:Math.PI*2-Kt}function mr(lr,bt,jt){return jt?(lr[0]=bt[1],lr[1]=-1*bt[0]):(lr[0]=-1*bt[1],lr[1]=bt[0]),lr}},80389:function(ne,Ir,qt){"use strict";qt.d(Ir,{e9:function(){return br},Wq:function(){return pr},tr:function(){return yr},wb:function(){return Zr},zx:function(){return y}});var xt=qt(49242),Y=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,K=/[^\s\,]+/ig;function tt(A){var E=A||[];if((0,xt.isArray)(E))return E;if((0,xt.isString)(E))return E=E.match(Y),(0,xt.each)(E,function(N,G){if(N=N.match(K),N[0].length>1){var Z=N[0].charAt(0);N.splice(1,0,N[0].substr(1)),N[0]=Z}(0,xt.each)(N,function(nt,rt){isNaN(nt)||(N[rt]=+nt)}),E[G]=N}),E}var gr=tt,_t=qt(31437);function dr(A,E,N,G){var Z=[],nt=!!G,rt,st,Q,mt,lt,Ft,tr;if(nt){Q=G[0],mt=G[1];for(var It=0,zt=A.length;It<zt;It+=1){var Gt=A[It];Q=_t.VV([0,0],Q,Gt),mt=_t.Fp([0,0],mt,Gt)}}for(var It=0,rr=A.length;It<rr;It+=1){var Gt=A[It];if(It===0&&!N)tr=Gt;else if(It===rr-1&&!N)Ft=Gt,Z.push(tr),Z.push(Ft);else{var kt=[It?It-1:rr-1,It-1][N?0:1];rt=A[kt],st=A[N?(It+1)%rr:It+1];var Ut=[0,0];Ut=_t.lu(Ut,st,rt),Ut=_t.bA(Ut,Ut,E);var B=_t.TE(Gt,rt),x=_t.TE(Gt,st),o=B+x;o!==0&&(B/=o,x/=o);var C=_t.bA([0,0],Ut,-B),D=_t.bA([0,0],Ut,x);Ft=_t.IH([0,0],Gt,C),lt=_t.IH([0,0],Gt,D),lt=_t.VV([0,0],lt,_t.Fp([0,0],st,Gt)),lt=_t.Fp([0,0],lt,_t.VV([0,0],st,Gt)),C=_t.lu([0,0],lt,Gt),C=_t.bA([0,0],C,-B/x),Ft=_t.IH([0,0],Gt,C),Ft=_t.VV([0,0],Ft,_t.Fp([0,0],rt,Gt)),Ft=_t.Fp([0,0],Ft,_t.VV([0,0],rt,Gt)),D=_t.lu([0,0],Gt,Ft),D=_t.bA([0,0],D,x/B),lt=_t.IH([0,0],Gt,D),nt&&(Ft=_t.Fp([0,0],Ft,Q),Ft=_t.VV([0,0],Ft,mt),lt=_t.Fp([0,0],lt,Q),lt=_t.VV([0,0],lt,mt)),Z.push(tr),Z.push(Ft),tr=lt}}return N&&Z.push(Z.shift()),Z}function Qt(A,E,N){E===void 0&&(E=!1),N===void 0&&(N=[[0,0],[1,1]]);for(var G=!!E,Z=[],nt=0,rt=A.length;nt<rt;nt+=2)Z.push([A[nt],A[nt+1]]);for(var st=dr(Z,.4,G,N),Q=Z.length,mt=[],lt,Ft,tr,nt=0;nt<Q-1;nt+=1)lt=st[nt*2],Ft=st[nt*2+1],tr=Z[nt+1],mt.push(["C",lt[0],lt[1],Ft[0],Ft[1],tr[0],tr[1]]);return G&&(lt=st[Q],Ft=st[Q+1],tr=Z[0],mt.push(["C",lt[0],lt[1],Ft[0],Ft[1],tr[0],tr[1]])),mt}var br=Qt;function mr(A,E,N){var G=null,Z=N;return E<Z&&(Z=E,G="add"),A<Z&&(Z=A,G="del"),{type:G,min:Z}}var lr=function(A,E){var N=A.length,G=E.length,Z,nt,rt=0;if(N===0||G===0)return null;for(var st=[],Q=0;Q<=N;Q++)st[Q]=[],st[Q][0]={min:Q};for(var mt=0;mt<=G;mt++)st[0][mt]={min:mt};for(var Q=1;Q<=N;Q++){Z=A[Q-1];for(var mt=1;mt<=G;mt++){nt=E[mt-1],isEqual(Z,nt)?rt=0:rt=1;var lt=st[Q-1][mt].min+1,Ft=st[Q][mt-1].min+1,tr=st[Q-1][mt-1].min+rt;st[Q][mt]=mr(lt,Ft,tr)}}return st};function bt(A,E){var N=lr(A,E),G=A.length,Z=E.length,nt=[],rt=1,st=1;if(N[G][Z]!==G){for(var Q=1;Q<=G;Q++){var mt=N[Q][Q].min;st=Q;for(var lt=rt;lt<=Z;lt++)N[Q][lt].min<mt&&(mt=N[Q][lt].min,st=lt);rt=st,N[Q][rt].type&&nt.push({index:Q-1,type:N[Q][rt].type})}for(var Q=nt.length-1;Q>=0;Q--)rt=nt[Q].index,nt[Q].type==="add"?A.splice(rt,0,[].concat(A[rt])):A.splice(rt,1)}if(G=A.length,G<Z)for(var Q=0;Q<Z-G;Q++)A[G-1][0]==="z"||A[G-1][0]==="Z"?A.splice(G-2,0,A[G-2]):A.push(A[G-1]);return A}var jt=`
- \v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,Kt=new RegExp("([a-z])["+jt+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+jt+"]*,?["+jt+"]*)+)","ig"),ir=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+jt+"]*,?["+jt+"]*","ig");function yr(A){if(!A)return null;if((0,xt.isArray)(A))return A;var E={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},N=[];return String(A).replace(Kt,function(G,Z,nt){var rt=[],st=Z.toLowerCase();if(nt.replace(ir,function(Q,mt){mt&&rt.push(+mt)}),st==="m"&&rt.length>2&&(N.push([Z].concat(rt.splice(0,2))),st="l",Z=Z==="m"?"l":"L"),st==="o"&&rt.length===1&&N.push([Z,rt[0]]),st==="r")N.push([Z].concat(rt));else for(;rt.length>=E[st]&&(N.push([Z].concat(rt.splice(0,E[st]))),!!E[st]););return""}),N}var Lr=/[a-z]/;function Nr(A,E){return[E[0]+(E[0]-A[0]),E[1]+(E[1]-A[1])]}function Zr(A){var E=yr(A);if(!E||!E.length)return[["M",0,0]];for(var N=!1,G=0;G<E.length;G++){var Z=E[G][0];if(Lr.test(Z)||["V","H","T","S"].indexOf(Z)>=0){N=!0;break}}if(!N)return E;var nt=[],rt=0,st=0,Q=0,mt=0,lt=0,Ft,tr,It=E[0];(It[0]==="M"||It[0]==="m")&&(rt=+It[1],st=+It[2],Q=rt,mt=st,lt++,nt[0]=["M",rt,st]);for(var G=lt,zt=E.length;G<zt;G++){var Gt=E[G],rr=nt[G-1],kt=[],Z=Gt[0],Ut=Z.toUpperCase();if(Z!==Ut)switch(kt[0]=Ut,Ut){case"A":kt[1]=Gt[1],kt[2]=Gt[2],kt[3]=Gt[3],kt[4]=Gt[4],kt[5]=Gt[5],kt[6]=+Gt[6]+rt,kt[7]=+Gt[7]+st;break;case"V":kt[1]=+Gt[1]+st;break;case"H":kt[1]=+Gt[1]+rt;break;case"M":Q=+Gt[1]+rt,mt=+Gt[2]+st,kt[1]=Q,kt[2]=mt;break;default:for(var B=1,x=Gt.length;B<x;B++)kt[B]=+Gt[B]+(B%2?rt:st)}else kt=E[G];switch(Ut){case"Z":rt=+Q,st=+mt;break;case"H":rt=kt[1],kt=["L",rt,st];break;case"V":st=kt[1],kt=["L",rt,st];break;case"T":rt=kt[1],st=kt[2];var o=Nr([rr[1],rr[2]],[rr[3],rr[4]]);kt=["Q",o[0],o[1],rt,st];break;case"S":rt=kt[kt.length-2],st=kt[kt.length-1];var C=rr.length,D=Nr([rr[C-4],rr[C-3]],[rr[C-2],rr[C-1]]);kt=["C",D[0],D[1],kt[1],kt[2],rt,st];break;case"M":Q=kt[kt.length-2],mt=kt[kt.length-1];break;default:rt=kt[kt.length-2],st=kt[kt.length-1]}nt.push(kt)}return nt}var Xt=Math.PI*2,ur=function(A,E,N,G,Z,nt,rt){var st=A.x,Q=A.y;st*=E,Q*=N;var mt=G*st-Z*Q,lt=Z*st+G*Q;return{x:mt+nt,y:lt+rt}},_r=function(A,E){var N=E===1.5707963267948966?.551915024494:E===-1.5707963267948966?-.551915024494:4/3*Math.tan(E/4),G=Math.cos(A),Z=Math.sin(A),nt=Math.cos(A+E),rt=Math.sin(A+E);return[{x:G-Z*N,y:Z+G*N},{x:nt+rt*N,y:rt-nt*N},{x:nt,y:rt}]},Er=function(A,E,N,G){var Z=A*G-E*N<0?-1:1,nt=A*N+E*G;return nt>1&&(nt=1),nt<-1&&(nt=-1),Z*Math.acos(nt)},Sr=function(A,E,N,G,Z,nt,rt,st,Q,mt,lt,Ft){var tr=Math.pow(Z,2),It=Math.pow(nt,2),zt=Math.pow(lt,2),Gt=Math.pow(Ft,2),rr=tr*It-tr*Gt-It*zt;rr<0&&(rr=0),rr/=tr*Gt+It*zt,rr=Math.sqrt(rr)*(rt===st?-1:1);var kt=rr*Z/nt*Ft,Ut=rr*-nt/Z*lt,B=mt*kt-Q*Ut+(A+N)/2,x=Q*kt+mt*Ut+(E+G)/2,o=(lt-kt)/Z,C=(Ft-Ut)/nt,D=(-lt-kt)/Z,U=(-Ft-Ut)/nt,et=Er(1,0,o,C),at=Er(o,C,D,U);return st===0&&at>0&&(at-=Xt),st===1&&at<0&&(at+=Xt),[B,x,et,at]},Tr=function(A){var E=A.px,N=A.py,G=A.cx,Z=A.cy,nt=A.rx,rt=A.ry,st=A.xAxisRotation,Q=st===void 0?0:st,mt=A.largeArcFlag,lt=mt===void 0?0:mt,Ft=A.sweepFlag,tr=Ft===void 0?0:Ft,It=[];if(nt===0||rt===0)return[{x1:0,y1:0,x2:0,y2:0,x:G,y:Z}];var zt=Math.sin(Q*Xt/360),Gt=Math.cos(Q*Xt/360),rr=Gt*(E-G)/2+zt*(N-Z)/2,kt=-zt*(E-G)/2+Gt*(N-Z)/2;if(rr===0&&kt===0)return[{x1:0,y1:0,x2:0,y2:0,x:G,y:Z}];nt=Math.abs(nt),rt=Math.abs(rt);var Ut=Math.pow(rr,2)/Math.pow(nt,2)+Math.pow(kt,2)/Math.pow(rt,2);Ut>1&&(nt*=Math.sqrt(Ut),rt*=Math.sqrt(Ut));var B=Sr(E,N,G,Z,nt,rt,lt,tr,zt,Gt,rr,kt),x=B[0],o=B[1],C=B[2],D=B[3],U=Math.abs(D)/(Xt/4);Math.abs(1-U)<1e-7&&(U=1);var et=Math.max(Math.ceil(U),1);D/=et;for(var at=0;at<et;at++)It.push(_r(C,D)),C+=D;return It.map(function(vt){var Ar=ur(vt[0],nt,rt,Gt,zt,x,o),xr=Ar.x,zr=Ar.y,Wr=ur(vt[1],nt,rt,Gt,zt,x,o),ae=Wr.x,he=Wr.y,re=ur(vt[2],nt,rt,Gt,zt,x,o),Me=re.x,me=re.y;return{x1:xr,y1:zr,x2:ae,y2:he,x:Me,y:me}})};function Dr(A,E,N,G,Z,nt,rt,st,Q){var mt=Tr({px:A,py:E,cx:st,cy:Q,rx:N,ry:G,xAxisRotation:Z,largeArcFlag:nt,sweepFlag:rt});return mt.reduce(function(lt,Ft){var tr=Ft.x1,It=Ft.y1,zt=Ft.x2,Gt=Ft.y2,rr=Ft.x,kt=Ft.y;return lt.push(tr,It,zt,Gt,rr,kt),lt},[])}function Gr(A,E){"TQ".indexOf(A[0])<0&&(E.qx=null,E.qy=null);var N=A.slice(1),G=N[0],Z=N[1];switch(A[0]){case"M":return E.x=G,E.y=Z,A;case"A":return["C"].concat(arcToCubic.apply(0,[E.x1,E.y1].concat(A.slice(1))));case"Q":return E.qx=G,E.qy=Z,["C"].concat(quadToCubic.apply(0,[E.x1,E.y1].concat(A.slice(1))));case"L":return["C"].concat(lineToCubic(E.x1,E.y1,A[1],A[2]));case"H":return["C"].concat(lineToCubic(E.x1,E.y1,A[1],E.y1));case"V":return["C"].concat(lineToCubic(E.x1,E.y1,E.x1,A[1]));case"Z":return["C"].concat(lineToCubic(E.x1,E.y1,E.x,E.y));default:}return A}function ct(A,E){E===void 0&&(E=!1);for(var N=path2Absolute(A),G={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},Z=[],nt="",rt=N.length,st,Q,mt=[],lt=0;lt<rt;lt+=1)N[lt]&&(nt=N[lt][0]),Z[lt]=nt,N[lt]=segmentToCubic(N[lt],G),ut(N,Z,lt),rt=N.length,nt==="Z"&&mt.push(lt),st=N[lt],Q=st.length,G.x1=+st[Q-2],G.y1=+st[Q-1],G.x2=+st[Q-4]||G.x1,G.y2=+st[Q-3]||G.y1;return E?[N,mt]:N}function ut(A,E,N){if(A[N].length>7){A[N].shift();for(var G=A[N],Z=N;G.length;)E[N]="A",A.splice(Z+=1,0,["C"].concat(G.splice(0,6)));A.splice(N,1)}}var Mt=function(A,E,N,G,Z){var nt=-3*E+9*N-9*G+3*Z,rt=A*nt+6*E-12*N+6*G;return A*rt-3*E+3*N},At=function(A,E,N,G,Z,nt,rt,st,Q){Q===null&&(Q=1),Q=Q>1?1:Q<0?0:Q;for(var mt=Q/2,lt=12,Ft=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],tr=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],It=0,zt=0;zt<lt;zt++){var Gt=mt*Ft[zt]+mt,rr=Mt(Gt,A,N,Z,rt),kt=Mt(Gt,E,G,nt,st),Ut=rr*rr+kt*kt;It+=tr[zt]*Math.sqrt(Ut)}return mt*It},Nt=function(A,E,N,G,Z,nt,rt,st){for(var Q=[],mt=[[],[]],lt,Ft,tr,It,zt=0;zt<2;++zt){if(zt===0?(Ft=6*A-12*N+6*Z,lt=-3*A+9*N-9*Z+3*rt,tr=3*N-3*A):(Ft=6*E-12*G+6*nt,lt=-3*E+9*G-9*nt+3*st,tr=3*G-3*E),Math.abs(lt)<1e-12){if(Math.abs(Ft)<1e-12)continue;It=-tr/Ft,It>0&&It<1&&Q.push(It);continue}var Gt=Ft*Ft-4*tr*lt,rr=Math.sqrt(Gt);if(!(Gt<0)){var kt=(-Ft+rr)/(2*lt);kt>0&&kt<1&&Q.push(kt);var Ut=(-Ft-rr)/(2*lt);Ut>0&&Ut<1&&Q.push(Ut)}}for(var B=Q.length,x=B,o;B--;)It=Q[B],o=1-It,mt[0][B]=o*o*o*A+3*o*o*It*N+3*o*It*It*Z+It*It*It*rt,mt[1][B]=o*o*o*E+3*o*o*It*G+3*o*It*It*nt+It*It*It*st;return mt[0][x]=A,mt[1][x]=E,mt[0][x+1]=rt,mt[1][x+1]=st,mt[0].length=mt[1].length=x+2,{min:{x:Math.min.apply(0,mt[0]),y:Math.min.apply(0,mt[1])},max:{x:Math.max.apply(0,mt[0]),y:Math.max.apply(0,mt[1])}}},Tt=function(A,E,N,G,Z,nt,rt,st){if(!(Math.max(A,N)<Math.min(Z,rt)||Math.min(A,N)>Math.max(Z,rt)||Math.max(E,G)<Math.min(nt,st)||Math.min(E,G)>Math.max(nt,st))){var Q=(A*G-E*N)*(Z-rt)-(A-N)*(Z*st-nt*rt),mt=(A*G-E*N)*(nt-st)-(E-G)*(Z*st-nt*rt),lt=(A-N)*(nt-st)-(E-G)*(Z-rt);if(!!lt){var Ft=Q/lt,tr=mt/lt,It=+Ft.toFixed(2),zt=+tr.toFixed(2);if(!(It<+Math.min(A,N).toFixed(2)||It>+Math.max(A,N).toFixed(2)||It<+Math.min(Z,rt).toFixed(2)||It>+Math.max(Z,rt).toFixed(2)||zt<+Math.min(E,G).toFixed(2)||zt>+Math.max(E,G).toFixed(2)||zt<+Math.min(nt,st).toFixed(2)||zt>+Math.max(nt,st).toFixed(2)))return{x:Ft,y:tr}}}},v=function(A,E,N){return E>=A.x&&E<=A.x+A.width&&N>=A.y&&N<=A.y+A.height},O=function(A,E,N,G){return A===null&&(A=E=N=G=0),E===null&&(E=A.y,N=A.width,G=A.height,A=A.x),{x:A,y:E,width:N,w:N,height:G,h:G,x2:A+N,y2:E+G,cx:A+N/2,cy:E+G/2,r1:Math.min(N,G)/2,r2:Math.max(N,G)/2,r0:Math.sqrt(N*N+G*G)/2,path:rectPath(A,E,N,G),vb:[A,E,N,G].join(" ")}},gt=function(A,E){return A=O(A),E=O(E),v(E,A.x,A.y)||v(E,A.x2,A.y)||v(E,A.x,A.y2)||v(E,A.x2,A.y2)||v(A,E.x,E.y)||v(A,E.x2,E.y)||v(A,E.x,E.y2)||v(A,E.x2,E.y2)||(A.x<E.x2&&A.x>E.x||E.x<A.x2&&E.x>A.x)&&(A.y<E.y2&&A.y>E.y||E.y<A.y2&&E.y>A.y)},dt=function(A,E,N,G,Z,nt,rt,st){isArray(A)||(A=[A,E,N,G,Z,nt,rt,st]);var Q=Nt.apply(null,A);return O(Q.min.x,Q.min.y,Q.max.x-Q.min.x,Q.max.y-Q.min.y)},Ht=function(A,E,N,G,Z,nt,rt,st,Q){var mt=1-Q,lt=Math.pow(mt,3),Ft=Math.pow(mt,2),tr=Q*Q,It=tr*Q,zt=lt*A+Ft*3*Q*N+mt*3*Q*Q*Z+It*rt,Gt=lt*E+Ft*3*Q*G+mt*3*Q*Q*nt+It*st,rr=A+2*Q*(N-A)+tr*(Z-2*N+A),kt=E+2*Q*(G-E)+tr*(nt-2*G+E),Ut=N+2*Q*(Z-N)+tr*(rt-2*Z+N),B=G+2*Q*(nt-G)+tr*(st-2*nt+G),x=mt*A+Q*N,o=mt*E+Q*G,C=mt*Z+Q*rt,D=mt*nt+Q*st,U=90-Math.atan2(rr-Ut,kt-B)*180/Math.PI;return{x:zt,y:Gt,m:{x:rr,y:kt},n:{x:Ut,y:B},start:{x,y:o},end:{x:C,y:D},alpha:U}},or=function(A,E,N){var G=dt(A),Z=dt(E);if(!gt(G,Z))return N?0:[];for(var nt=At.apply(0,A),rt=At.apply(0,E),st=~~(nt/8),Q=~~(rt/8),mt=[],lt=[],Ft={},tr=N?0:[],It=0;It<st+1;It++){var zt=Ht.apply(0,A.concat(It/st));mt.push({x:zt.x,y:zt.y,t:It/st})}for(var It=0;It<Q+1;It++){var zt=Ht.apply(0,E.concat(It/Q));lt.push({x:zt.x,y:zt.y,t:It/Q})}for(var It=0;It<st;It++)for(var Gt=0;Gt<Q;Gt++){var rr=mt[It],kt=mt[It+1],Ut=lt[Gt],B=lt[Gt+1],x=Math.abs(kt.x-rr.x)<.001?"y":"x",o=Math.abs(B.x-Ut.x)<.001?"y":"x",C=Tt(rr.x,rr.y,kt.x,kt.y,Ut.x,Ut.y,B.x,B.y);if(C){if(Ft[C.x.toFixed(4)]===C.y.toFixed(4))continue;Ft[C.x.toFixed(4)]=C.y.toFixed(4);var D=rr.t+Math.abs((C[x]-rr[x])/(kt[x]-rr[x]))*(kt.t-rr.t),U=Ut.t+Math.abs((C[o]-Ut[o])/(B[o]-Ut[o]))*(B.t-Ut.t);D>=0&&D<=1&&U>=0&&U<=1&&(N?tr++:tr.push({x:C.x,y:C.y,t1:D,t2:U}))}}return tr},Wt=function(A,E,N){A=path2Curve(A),E=path2Curve(E);for(var G,Z,nt,rt,st,Q,mt,lt,Ft,tr,It=N?0:[],zt=0,Gt=A.length;zt<Gt;zt++){var rr=A[zt];if(rr[0]==="M")G=st=rr[1],Z=Q=rr[2];else{rr[0]==="C"?(Ft=[G,Z].concat(rr.slice(1)),G=Ft[6],Z=Ft[7]):(Ft=[G,Z,G,Z,st,Q,st,Q],G=st,Z=Q);for(var kt=0,Ut=E.length;kt<Ut;kt++){var B=E[kt];if(B[0]==="M")nt=mt=B[1],rt=lt=B[2];else{B[0]==="C"?(tr=[nt,rt].concat(B.slice(1)),nt=tr[6],rt=tr[7]):(tr=[nt,rt,nt,rt,mt,lt,mt,lt],nt=mt,rt=lt);var x=or(Ft,tr,N);if(N)It+=x;else{for(var o=0,C=x.length;o<C;o++)x[o].segment1=zt,x[o].segment2=kt,x[o].bez1=Ft,x[o].bez2=tr;It=It.concat(x)}}}}}return It};function cr(A,E){return Wt(A,E)}function sr(A){return Math.sqrt(A[0]*A[0]+A[1]*A[1])}function er(A,E){return sr(A)*sr(E)?(A[0]*E[0]+A[1]*E[1])/(sr(A)*sr(E)):1}function wr(A,E){return(A[0]*E[1]<A[1]*E[0]?-1:1)*Math.acos(er(A,E))}function Or(A,E){return A[0]===E[0]&&A[1]===E[1]}function L(A,E){var N=E[1],G=E[2],Z=(0,xt.mod)((0,xt.toRadian)(E[3]),Math.PI*2),nt=E[4],rt=E[5],st=A[0],Q=A[1],mt=E[6],lt=E[7],Ft=Math.cos(Z)*(st-mt)/2+Math.sin(Z)*(Q-lt)/2,tr=-1*Math.sin(Z)*(st-mt)/2+Math.cos(Z)*(Q-lt)/2,It=Ft*Ft/(N*N)+tr*tr/(G*G);It>1&&(N*=Math.sqrt(It),G*=Math.sqrt(It));var zt=N*N*(tr*tr)+G*G*(Ft*Ft),Gt=zt?Math.sqrt((N*N*(G*G)-zt)/zt):1;nt===rt&&(Gt*=-1),isNaN(Gt)&&(Gt=0);var rr=G?Gt*N*tr/G:0,kt=N?Gt*-G*Ft/N:0,Ut=(st+mt)/2+Math.cos(Z)*rr-Math.sin(Z)*kt,B=(Q+lt)/2+Math.sin(Z)*rr+Math.cos(Z)*kt,x=[(Ft-rr)/N,(tr-kt)/G],o=[(-1*Ft-rr)/N,(-1*tr-kt)/G],C=wr([1,0],x),D=wr(x,o);return er(x,o)<=-1&&(D=Math.PI),er(x,o)>=1&&(D=0),rt===0&&D>0&&(D=D-2*Math.PI),rt===1&&D<0&&(D=D+2*Math.PI),{cx:Ut,cy:B,rx:Or(A,[mt,lt])?0:N,ry:Or(A,[mt,lt])?0:G,startAngle:C,endAngle:C+D,xRotation:Z,arcFlag:nt,sweepFlag:rt}}function p(A,E){return[E[0]+(E[0]-A[0]),E[1]+(E[1]-A[1])]}function y(A){A=gr(A);for(var E=[],N=null,G=null,Z=null,nt=0,rt=A.length,st=0;st<rt;st++){var Q=A[st];G=A[st+1];var mt=Q[0],lt={command:mt,prePoint:N,params:Q,startTangent:null,endTangent:null};switch(mt){case"M":Z=[Q[1],Q[2]],nt=st;break;case"A":var Ft=L(N,Q);lt.arcParams=Ft;break;default:break}if(mt==="Z")N=Z,G=A[nt+1];else{var tr=Q.length;N=[Q[tr-2],Q[tr-1]]}G&&G[0]==="Z"&&(G=A[nt],E[nt]&&(E[nt].prePoint=N)),lt.currentPoint=N,E[nt]&&Or(N,E[nt].currentPoint)&&(E[nt].prePoint=lt.prePoint);var It=G?[G[G.length-2],G[G.length-1]]:null;lt.nextPoint=It;var zt=lt.prePoint;if(["L","H","V"].includes(mt))lt.startTangent=[zt[0]-N[0],zt[1]-N[1]],lt.endTangent=[N[0]-zt[0],N[1]-zt[1]];else if(mt==="Q"){var Gt=[Q[1],Q[2]];lt.startTangent=[zt[0]-Gt[0],zt[1]-Gt[1]],lt.endTangent=[N[0]-Gt[0],N[1]-Gt[1]]}else if(mt==="T"){var rr=E[st-1],Gt=p(rr.currentPoint,zt);rr.command==="Q"?(lt.command="Q",lt.startTangent=[zt[0]-Gt[0],zt[1]-Gt[1]],lt.endTangent=[N[0]-Gt[0],N[1]-Gt[1]]):(lt.command="TL",lt.startTangent=[zt[0]-N[0],zt[1]-N[1]],lt.endTangent=[N[0]-zt[0],N[1]-zt[1]])}else if(mt==="C"){var kt=[Q[1],Q[2]],Ut=[Q[3],Q[4]];lt.startTangent=[zt[0]-kt[0],zt[1]-kt[1]],lt.endTangent=[N[0]-Ut[0],N[1]-Ut[1]],lt.startTangent[0]===0&<.startTangent[1]===0&&(lt.startTangent=[kt[0]-Ut[0],kt[1]-Ut[1]]),lt.endTangent[0]===0&<.endTangent[1]===0&&(lt.endTangent=[Ut[0]-kt[0],Ut[1]-kt[1]])}else if(mt==="S"){var rr=E[st-1],kt=p(rr.currentPoint,zt),Ut=[Q[1],Q[2]];rr.command==="C"?(lt.command="C",lt.startTangent=[zt[0]-kt[0],zt[1]-kt[1]],lt.endTangent=[N[0]-Ut[0],N[1]-Ut[1]]):(lt.command="SQ",lt.startTangent=[zt[0]-Ut[0],zt[1]-Ut[1]],lt.endTangent=[N[0]-Ut[0],N[1]-Ut[1]])}else if(mt==="A"){var B=.001,x=lt.arcParams||{},o=x.cx,C=o===void 0?0:o,D=x.cy,U=D===void 0?0:D,et=x.rx,at=et===void 0?0:et,vt=x.ry,Ar=vt===void 0?0:vt,xr=x.sweepFlag,zr=xr===void 0?0:xr,Wr=x.startAngle,ae=Wr===void 0?0:Wr,he=x.endAngle,re=he===void 0?0:he;zr===0&&(B*=-1);var Me=at*Math.cos(ae-B)+C,me=Ar*Math.sin(ae-B)+U;lt.startTangent=[Me-Z[0],me-Z[1]];var ye=at*Math.cos(ae+re+B)+C,Se=Ar*Math.sin(ae+re-B)+U;lt.endTangent=[zt[0]-ye,zt[1]-Se]}E.push(lt)}return E}var S=1e-6;function s(A){return Math.abs(A)<S?0:A<0?-1:1}function d(A,E,N){return(N[0]-A[0])*(E[1]-A[1])==(E[0]-A[0])*(N[1]-A[1])&&Math.min(A[0],E[0])<=N[0]&&N[0]<=Math.max(A[0],E[0])&&Math.min(A[1],E[1])<=N[1]&&N[1]<=Math.max(A[1],E[1])}function T(A,E,N){var G=!1,Z=A.length;if(Z<=2)return!1;for(var nt=0;nt<Z;nt++){var rt=A[nt],st=A[(nt+1)%Z];if(d(rt,st,[E,N]))return!0;s(rt[1]-N)>0!=s(st[1]-N)>0&&s(E-(N-rt[1])*(rt[0]-st[0])/(rt[1]-st[1])-rt[0])<0&&(G=!G)}return G}var R=function(A,E,N){return A>=E&&A<=N};function W(A,E,N,G){var Z=.001,nt={x:N.x-A.x,y:N.y-A.y},rt={x:E.x-A.x,y:E.y-A.y},st={x:G.x-N.x,y:G.y-N.y},Q=rt.x*st.y-rt.y*st.x,mt=Q*Q,lt=rt.x*rt.x+rt.y*rt.y,Ft=st.x*st.x+st.y*st.y,tr=null;if(mt>Z*lt*Ft){var It=(nt.x*st.y-nt.y*st.x)/Q,zt=(nt.x*rt.y-nt.y*rt.x)/Q;R(It,0,1)&&R(zt,0,1)&&(tr={x:A.x+It*rt.x,y:A.y+It*rt.y})}return tr}function ot(A){for(var E=[],N=A.length,G=0;G<N-1;G++){var Z=A[G],nt=A[G+1];E.push({from:{x:Z[0],y:Z[1]},to:{x:nt[0],y:nt[1]}})}if(E.length>1){var rt=A[0],st=A[N-1];E.push({from:{x:st[0],y:st[1]},to:{x:rt[0],y:rt[1]}})}return E}function Lt(A,E){var N=!1;return(0,xt.each)(A,function(G){if(W(G.from,G.to,E.from,E.to))return N=!0,!1}),N}function Ot(A){var E=A.map(function(G){return G[0]}),N=A.map(function(G){return G[1]});return{minX:Math.min.apply(null,E),maxX:Math.max.apply(null,E),minY:Math.min.apply(null,N),maxY:Math.max.apply(null,N)}}function Zt(A,E){return!(E.minX>A.maxX||E.maxX<A.minX||E.minY>A.maxY||E.maxY<A.minY)}function pr(A,E){if(A.length<2||E.length<2)return!1;var N=Ot(A),G=Ot(E);if(!Zt(N,G))return!1;var Z=!1;if((0,xt.each)(E,function(Q){if(T(A,Q[0],Q[1]))return Z=!0,!1}),Z||((0,xt.each)(A,function(Q){if(T(E,Q[0],Q[1]))return Z=!0,!1}),Z))return!0;var nt=ot(A),rt=ot(E),st=!1;return(0,xt.each)(rt,function(Q){if(Lt(nt,Q))return st=!0,!1}),st}},86429:function(ne,Ir,qt){"use strict";qt.d(Ir,{WD:function(){return mr},bJ:function(){return A},yZ:function(){return kt}});var xt={};qt.r(xt),qt.d(xt,{assign:function(){return Xt},default:function(){return sr},defaultI18n:function(){return Tr},format:function(){return or},parse:function(){return Wt},setGlobalDateI18n:function(){return Gr},setGlobalDateMasks:function(){return Ht}});var Y=qt(49242),K={};function tt(h){return K[h]}function gr(h,m){K[h]=m}var _t=function(){function h(m){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=m,this.initCfg(),this.init()}return h.prototype.translate=function(m){return m},h.prototype.change=function(m){(0,Y.assign)(this.__cfg__,m),this.init()},h.prototype.clone=function(){return this.constructor(this.__cfg__)},h.prototype.getTicks=function(){var m=this;return(0,Y.map)(this.ticks,function(b,q){return(0,Y.isObject)(b)?b:{text:m.getText(b,q),tickValue:b,value:m.scale(b)}})},h.prototype.getText=function(m,b){var q=this.formatter,X=q?q(m,b):m;return(0,Y.isNil)(X)||!(0,Y.isFunction)(X.toString)?"":X.toString()},h.prototype.getConfig=function(m){return this.__cfg__[m]},h.prototype.init=function(){(0,Y.assign)(this,this.__cfg__),this.setDomain(),(0,Y.isEmpty)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},h.prototype.initCfg=function(){},h.prototype.setDomain=function(){},h.prototype.calculateTicks=function(){var m=this.tickMethod,b=[];if((0,Y.isString)(m)){var q=tt(m);if(!q)throw new Error("There is no method to to calculate ticks!");b=q(this)}else(0,Y.isFunction)(m)&&(b=m(this));return b},h.prototype.rangeMin=function(){return this.range[0]},h.prototype.rangeMax=function(){return this.range[1]},h.prototype.calcPercent=function(m,b,q){return(0,Y.isNumber)(m)?(m-b)/(q-b):NaN},h.prototype.calcValue=function(m,b,q){return b+m*(q-b)},h}(),dr=_t,Qt=qt(70655),br=function(h){(0,Qt.__extends)(m,h);function m(){var b=h!==null&&h.apply(this,arguments)||this;return b.type="cat",b.isCategory=!0,b}return m.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var b=0;b<this.values.length;b++)this.translateIndexMap.set(this.values[b],b)}},m.prototype.translate=function(b){this.buildIndexMap();var q=this.translateIndexMap.get(b);return q===void 0&&(q=(0,Y.isNumber)(b)?b:NaN),q},m.prototype.scale=function(b){var q=this.translate(b),X=this.calcPercent(q,this.min,this.max);return this.calcValue(X,this.rangeMin(),this.rangeMax())},m.prototype.invert=function(b){var q=this.max-this.min,X=this.calcPercent(b,this.rangeMin(),this.rangeMax()),$=Math.round(q*X)+this.min;return $<this.min||$>this.max?NaN:this.values[$]},m.prototype.getText=function(b){for(var q=[],X=1;X<arguments.length;X++)q[X-1]=arguments[X];var $=b;return(0,Y.isNumber)(b)&&!this.values.includes(b)&&($=this.values[$]),h.prototype.getText.apply(this,(0,Qt.__spreadArrays)([$],q))},m.prototype.initCfg=function(){this.tickMethod="cat"},m.prototype.setDomain=function(){if((0,Y.isNil)(this.getConfig("min"))&&(this.min=0),(0,Y.isNil)(this.getConfig("max"))){var b=this.values.length;this.max=b>1?b-1:b}this.translateIndexMap&&(this.translateIndexMap=void 0)},m}(dr),mr=br,lr=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,bt="\\d\\d?",jt="\\d\\d",Kt="\\d{3}",ir="\\d{4}",yr="[^\\s]+",Lr=/\[([^]*?)\]/gm;function Nr(h,m){for(var b=[],q=0,X=h.length;q<X;q++)b.push(h[q].substr(0,m));return b}var Zr=function(h){return function(m,b){var q=b[h].map(function($){return $.toLowerCase()}),X=q.indexOf(m.toLowerCase());return X>-1?X:null}};function Xt(h){for(var m=[],b=1;b<arguments.length;b++)m[b-1]=arguments[b];for(var q=0,X=m;q<X.length;q++){var $=X[q];for(var Ct in $)h[Ct]=$[Ct]}return h}var ur=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],_r=["January","February","March","April","May","June","July","August","September","October","November","December"],Er=Nr(_r,3),Sr=Nr(ur,3),Tr={dayNamesShort:Sr,dayNames:ur,monthNamesShort:Er,monthNames:_r,amPm:["am","pm"],DoFn:function(h){return h+["th","st","nd","rd"][h%10>3?0:(h-h%10!=10?1:0)*h%10]}},Dr=Xt({},Tr),Gr=function(h){return Dr=Xt(Dr,h)},ct=function(h){return h.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},ut=function(h,m){for(m===void 0&&(m=2),h=String(h);h.length<m;)h="0"+h;return h},Mt={D:function(h){return String(h.getDate())},DD:function(h){return ut(h.getDate())},Do:function(h,m){return m.DoFn(h.getDate())},d:function(h){return String(h.getDay())},dd:function(h){return ut(h.getDay())},ddd:function(h,m){return m.dayNamesShort[h.getDay()]},dddd:function(h,m){return m.dayNames[h.getDay()]},M:function(h){return String(h.getMonth()+1)},MM:function(h){return ut(h.getMonth()+1)},MMM:function(h,m){return m.monthNamesShort[h.getMonth()]},MMMM:function(h,m){return m.monthNames[h.getMonth()]},YY:function(h){return ut(String(h.getFullYear()),4).substr(2)},YYYY:function(h){return ut(h.getFullYear(),4)},h:function(h){return String(h.getHours()%12||12)},hh:function(h){return ut(h.getHours()%12||12)},H:function(h){return String(h.getHours())},HH:function(h){return ut(h.getHours())},m:function(h){return String(h.getMinutes())},mm:function(h){return ut(h.getMinutes())},s:function(h){return String(h.getSeconds())},ss:function(h){return ut(h.getSeconds())},S:function(h){return String(Math.round(h.getMilliseconds()/100))},SS:function(h){return ut(Math.round(h.getMilliseconds()/10),2)},SSS:function(h){return ut(h.getMilliseconds(),3)},a:function(h,m){return h.getHours()<12?m.amPm[0]:m.amPm[1]},A:function(h,m){return h.getHours()<12?m.amPm[0].toUpperCase():m.amPm[1].toUpperCase()},ZZ:function(h){var m=h.getTimezoneOffset();return(m>0?"-":"+")+ut(Math.floor(Math.abs(m)/60)*100+Math.abs(m)%60,4)},Z:function(h){var m=h.getTimezoneOffset();return(m>0?"-":"+")+ut(Math.floor(Math.abs(m)/60),2)+":"+ut(Math.abs(m)%60,2)}},At=function(h){return+h-1},Nt=[null,bt],Tt=[null,yr],v=["isPm",yr,function(h,m){var b=h.toLowerCase();return b===m.amPm[0]?0:b===m.amPm[1]?1:null}],O=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(h){var m=(h+"").match(/([+-]|\d\d)/gi);if(m){var b=+m[1]*60+parseInt(m[2],10);return m[0]==="+"?b:-b}return 0}],gt={D:["day",bt],DD:["day",jt],Do:["day",bt+yr,function(h){return parseInt(h,10)}],M:["month",bt,At],MM:["month",jt,At],YY:["year",jt,function(h){var m=new Date,b=+(""+m.getFullYear()).substr(0,2);return+(""+(+h>68?b-1:b)+h)}],h:["hour",bt,void 0,"isPm"],hh:["hour",jt,void 0,"isPm"],H:["hour",bt],HH:["hour",jt],m:["minute",bt],mm:["minute",jt],s:["second",bt],ss:["second",jt],YYYY:["year",ir],S:["millisecond","\\d",function(h){return+h*100}],SS:["millisecond",jt,function(h){return+h*10}],SSS:["millisecond",Kt],d:Nt,dd:Nt,ddd:Tt,dddd:Tt,MMM:["month",yr,Zr("monthNamesShort")],MMMM:["month",yr,Zr("monthNames")],a:v,A:v,ZZ:O,Z:O},dt={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",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Ht=function(h){return Xt(dt,h)},or=function(h,m,b){if(m===void 0&&(m=dt.default),b===void 0&&(b={}),typeof h=="number"&&(h=new Date(h)),Object.prototype.toString.call(h)!=="[object Date]"||isNaN(h.getTime()))throw new Error("Invalid Date pass to format");m=dt[m]||m;var q=[];m=m.replace(Lr,function($,Ct){return q.push(Ct),"@@@"});var X=Xt(Xt({},Dr),b);return m=m.replace(lr,function($){return Mt[$](h,X)}),m.replace(/@@@/g,function(){return q.shift()})};function Wt(h,m,b){if(b===void 0&&(b={}),typeof m!="string")throw new Error("Invalid format in fecha parse");if(m=dt[m]||m,h.length>1e3)return null;var q=new Date,X={year:q.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},$=[],Ct=[],Et=m.replace(Lr,function(ue,fe){return Ct.push(ct(fe)),"@@@"}),nr={},Rt={};Et=ct(Et).replace(lr,function(ue){var fe=gt[ue],ce=fe[0],Ie=fe[1],ie=fe[3];if(nr[ce])throw new Error("Invalid format. "+ce+" specified twice in format");return nr[ce]=!0,ie&&(Rt[ie]=!0),$.push(fe),"("+Ie+")"}),Object.keys(Rt).forEach(function(ue){if(!nr[ue])throw new Error("Invalid format. "+ue+" is required in specified format")}),Et=Et.replace(/@@@/g,function(){return Ct.shift()});var Jt=h.match(new RegExp(Et,"i"));if(!Jt)return null;for(var Fr=Xt(Xt({},Dr),b),Br=1;Br<Jt.length;Br++){var Qr=$[Br-1],Rr=Qr[0],oe=Qr[2],se=oe?oe(Jt[Br],Fr):+Jt[Br];if(se==null)return null;X[Rr]=se}X.isPm===1&&X.hour!=null&&+X.hour!=12?X.hour=+X.hour+12:X.isPm===0&&+X.hour==12&&(X.hour=0);var ve;if(X.timezoneOffset==null){ve=new Date(X.year,X.month,X.day,X.hour,X.minute,X.second,X.millisecond);for(var jr=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],Br=0,Pe=jr.length;Br<Pe;Br++)if(nr[jr[Br][0]]&&X[jr[Br][0]]!==ve[jr[Br][1]]())return null}else if(ve=new Date(Date.UTC(X.year,X.month,X.day,X.hour,X.minute-X.timezoneOffset,X.second,X.millisecond)),X.month>11||X.month<0||X.day>31||X.day<1||X.hour>23||X.hour<0||X.minute>59||X.minute<0||X.second>59||X.second<0)return null;return ve}var cr={format:or,parse:Wt,defaultI18n:Tr,setGlobalDateI18n:Gr,setGlobalDateMasks:Ht},sr=cr;function er(h){return function(m,b,q,X){for(var $=(0,Y.isNil)(q)?0:q,Ct=(0,Y.isNil)(X)?m.length:X;$<Ct;){var Et=$+Ct>>>1;h(m[Et])>b?Ct=Et:$=Et+1}return $}}var wr="format";function Or(h,m){var b=xt[wr]||sr[wr];return b(h,m)}function L(h){return(0,Y.isString)(h)&&(h.indexOf("T")>0?h=new Date(h).getTime():h=new Date(h.replace(/-/gi,"/")).getTime()),(0,Y.isDate)(h)&&(h=h.getTime()),h}var p=1e3,y=60*p,S=60*y,s=24*S,d=s*31,T=s*365,R=[["HH:mm:ss",p],["HH:mm:ss",p*10],["HH:mm:ss",p*30],["HH:mm",y],["HH:mm",y*10],["HH:mm",y*30],["HH",S],["HH",S*6],["HH",S*12],["YYYY-MM-DD",s],["YYYY-MM-DD",s*4],["YYYY-WW",s*7],["YYYY-MM",d],["YYYY-MM",d*4],["YYYY-MM",d*6],["YYYY",s*380]];function W(h,m,b){var q=(m-h)/b,X=er(function(Ct){return Ct[1]})(R,q)-1,$=R[X];return X<0?$=R[0]:X>=R.length&&($=(0,Y.last)(R)),$}var ot=function(h){(0,Qt.__extends)(m,h);function m(){var b=h!==null&&h.apply(this,arguments)||this;return b.type="timeCat",b}return m.prototype.translate=function(b){b=L(b);var q=this.values.indexOf(b);return q===-1&&((0,Y.isNumber)(b)&&b<this.values.length?q=b:q=NaN),q},m.prototype.getText=function(b,q){var X=this.translate(b);if(X>-1){var $=this.values[X],Ct=this.formatter;return $=Ct?Ct($,q):Or($,this.mask),$}return b},m.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},m.prototype.setDomain=function(){var b=this.values;(0,Y.each)(b,function(q,X){b[X]=L(q)}),b.sort(function(q,X){return q-X}),h.prototype.setDomain.call(this)},m}(mr),Lt=ot,Ot=function(h){(0,Qt.__extends)(m,h);function m(){var b=h!==null&&h.apply(this,arguments)||this;return b.isContinuous=!0,b}return m.prototype.scale=function(b){if((0,Y.isNil)(b))return NaN;var q=this.rangeMin(),X=this.rangeMax(),$=this.max,Ct=this.min;if($===Ct)return q;var Et=this.getScalePercent(b);return q+Et*(X-q)},m.prototype.init=function(){h.prototype.init.call(this);var b=this.ticks,q=(0,Y.head)(b),X=(0,Y.last)(b);q<this.min&&(this.min=q),X>this.max&&(this.max=X),(0,Y.isNil)(this.minLimit)||(this.min=q),(0,Y.isNil)(this.maxLimit)||(this.max=X)},m.prototype.setDomain=function(){var b=(0,Y.getRange)(this.values),q=b.min,X=b.max;(0,Y.isNil)(this.min)&&(this.min=q),(0,Y.isNil)(this.max)&&(this.max=X),this.min>this.max&&(this.min=q,this.max=X)},m.prototype.calculateTicks=function(){var b=this,q=h.prototype.calculateTicks.call(this);return this.nice||(q=(0,Y.filter)(q,function(X){return X>=b.min&&X<=b.max})),q},m.prototype.getScalePercent=function(b){var q=this.max,X=this.min;return(b-X)/(q-X)},m.prototype.getInvertPercent=function(b){return(b-this.rangeMin())/(this.rangeMax()-this.rangeMin())},m}(dr),Zt=Ot,pr=function(h){(0,Qt.__extends)(m,h);function m(){var b=h!==null&&h.apply(this,arguments)||this;return b.type="linear",b.isLinear=!0,b}return m.prototype.invert=function(b){var q=this.getInvertPercent(b);return this.min+q*(this.max-this.min)},m.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},m}(Zt),A=pr;function E(h,m){var b=Math.E,q;return m>=0?q=Math.pow(b,Math.log(m)/h):q=Math.pow(b,Math.log(-m)/h)*-1,q}function N(h,m){return h===1?1:Math.log(m)/Math.log(h)}function G(h,m,b){(0,Y.isNil)(b)&&(b=Math.max.apply(null,h));var q=b;return(0,Y.each)(h,function(X){X>0&&X<q&&(q=X)}),q===b&&(q=b/m),q>1&&(q=1),q}function Z(h){var m=h.toString().split(/[eE]/),b=(m[0].split(".")[1]||"").length-+(m[1]||0);return b>0?b:0}function nt(h,m){var b=Z(h),q=Z(m),X=Math.pow(10,Math.max(b,q));return(h*X+m*X)/X}var rt=function(h){(0,Qt.__extends)(m,h);function m(){var b=h!==null&&h.apply(this,arguments)||this;return b.type="log",b}return m.prototype.invert=function(b){var q=this.base,X=N(q,this.max),$=this.rangeMin(),Ct=this.rangeMax()-$,Et,nr=this.positiveMin;if(nr){if(b===0)return 0;Et=N(q,nr/q);var Rt=1/(X-Et)*Ct;if(b<Rt)return b/Rt*nr}else Et=N(q,this.min);var Jt=(b-$)/Ct,Fr=Jt*(X-Et)+Et;return Math.pow(q,Fr)},m.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},m.prototype.setDomain=function(){h.prototype.setDomain.call(this);var b=this.min;if(b<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");b===0&&(this.positiveMin=G(this.values,this.base,this.max))},m.prototype.getScalePercent=function(b){var q=this.max,X=this.min;if(q===X||b<=0)return 0;var $=this.base,Ct=this.positiveMin;Ct&&(X=Ct*1/$);var Et;return b<Ct?Et=b/Ct/(N($,q)-N($,X)):Et=(N($,b)-N($,X))/(N($,q)-N($,X)),Et},m}(Zt),st=rt,Q=function(h){(0,Qt.__extends)(m,h);function m(){var b=h!==null&&h.apply(this,arguments)||this;return b.type="pow",b}return m.prototype.invert=function(b){var q=this.getInvertPercent(b),X=this.exponent,$=E(X,this.max),Ct=E(X,this.min),Et=q*($-Ct)+Ct,nr=Et>=0?1:-1;return Math.pow(Et,X)*nr},m.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},m.prototype.getScalePercent=function(b){var q=this.max,X=this.min;if(q===X)return 0;var $=this.exponent,Ct=(E($,b)-E($,X))/(E($,q)-E($,X));return Ct},m}(Zt),mt=Q,lt=function(h){(0,Qt.__extends)(m,h);function m(){var b=h!==null&&h.apply(this,arguments)||this;return b.type="time",b}return m.prototype.getText=function(b,q){var X=this.translate(b),$=this.formatter;return $?$(X,q):Or(X,this.mask)},m.prototype.scale=function(b){var q=b;return((0,Y.isString)(q)||(0,Y.isDate)(q))&&(q=this.translate(q)),h.prototype.scale.call(this,q)},m.prototype.translate=function(b){return L(b)},m.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},m.prototype.setDomain=function(){var b=this.values,q=this.getConfig("min"),X=this.getConfig("max");if((!(0,Y.isNil)(q)||!(0,Y.isNumber)(q))&&(this.min=this.translate(this.min)),(!(0,Y.isNil)(X)||!(0,Y.isNumber)(X))&&(this.max=this.translate(this.max)),b&&b.length){var $=[],Ct=Infinity,Et=Ct,nr=0;(0,Y.each)(b,function(Rt){var Jt=L(Rt);if(isNaN(Jt))throw new TypeError("Invalid Time: "+Rt+" in time scale!");Ct>Jt?(Et=Ct,Ct=Jt):Et>Jt&&(Et=Jt),nr<Jt&&(nr=Jt),$.push(Jt)}),b.length>1&&(this.minTickInterval=Et-Ct),(0,Y.isNil)(q)&&(this.min=Ct),(0,Y.isNil)(X)&&(this.max=nr)}},m}(A),Ft=lt,tr=function(h){(0,Qt.__extends)(m,h);function m(){var b=h!==null&&h.apply(this,arguments)||this;return b.type="quantize",b}return m.prototype.invert=function(b){var q=this.ticks,X=q.length,$=this.getInvertPercent(b),Ct=Math.floor($*(X-1));if(Ct>=X-1)return(0,Y.last)(q);if(Ct<0)return(0,Y.head)(q);var Et=q[Ct],nr=q[Ct+1],Rt=Ct/(X-1),Jt=(Ct+1)/(X-1);return Et+($-Rt)/(Jt-Rt)*(nr-Et)},m.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},m.prototype.calculateTicks=function(){var b=h.prototype.calculateTicks.call(this);return this.nice||((0,Y.last)(b)!==this.max&&b.push(this.max),(0,Y.head)(b)!==this.min&&b.unshift(this.min)),b},m.prototype.getScalePercent=function(b){var q=this.ticks;if(b<(0,Y.head)(q))return 0;if(b>(0,Y.last)(q))return 1;var X=0;return(0,Y.each)(q,function($,Ct){if(b>=$)X=Ct;else return!1}),X/(q.length-1)},m}(Zt),It=tr,zt=function(h){(0,Qt.__extends)(m,h);function m(){var b=h!==null&&h.apply(this,arguments)||this;return b.type="quantile",b}return m.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},m}(It),Gt=zt,rr={};function kt(h){return rr[h]}function Ut(h,m){if(kt(h))throw new Error("type '"+h+"' existed.");rr[h]=m}var B=function(h){(0,Qt.__extends)(m,h);function m(){var b=h!==null&&h.apply(this,arguments)||this;return b.type="identity",b.isIdentity=!0,b}return m.prototype.calculateTicks=function(){return this.values},m.prototype.scale=function(b){return this.values[0]!==b&&(0,Y.isNumber)(b)?b:this.range[0]},m.prototype.invert=function(b){var q=this.range;return b<q[0]||b>q[1]?NaN:this.values[0]},m}(dr),x=B;function o(h){var m=h.values,b=h.tickInterval,q=h.tickCount,X=h.showLast;if((0,Y.isNumber)(b)){var $=(0,Y.filter)(m,function(Rr,oe){return oe%b==0}),Ct=(0,Y.last)(m);return X&&(0,Y.last)($)!==Ct&&$.push(Ct),$}var Et=m.length,nr=h.min,Rt=h.max;if((0,Y.isNil)(nr)&&(nr=0),(0,Y.isNil)(Rt)&&(Rt=m.length-1),!(0,Y.isNumber)(q)||q>=Et)return m.slice(nr,Rt+1);if(q<=0||Rt<=0)return[];for(var Jt=q===1?Et:Math.floor(Et/(q-1)),Fr=[],Br=nr,Qr=0;Qr<q&&!(Br>=Rt);Qr++)Br=Math.min(nr+Qr*Jt,Rt),Qr===q-1&&X?Fr.push(m[Rt]):Fr.push(m[Br]);return Fr}function C(h){var m=h.min,b=h.max,q=h.nice,X=h.tickCount,$=new vt;return $.domain([m,b]),q&&$.nice(X),$.ticks(X)}var D=5,U=Math.sqrt(50),et=Math.sqrt(10),at=Math.sqrt(2),vt=function(){function h(){this._domain=[0,1]}return h.prototype.domain=function(m){return m?(this._domain=Array.from(m,Number),this):this._domain.slice()},h.prototype.nice=function(m){var b,q;m===void 0&&(m=D);var X=this._domain.slice(),$=0,Ct=this._domain.length-1,Et=this._domain[$],nr=this._domain[Ct],Rt;return nr<Et&&(b=[nr,Et],Et=b[0],nr=b[1],q=[Ct,$],$=q[0],Ct=q[1]),Rt=xr(Et,nr,m),Rt>0?(Et=Math.floor(Et/Rt)*Rt,nr=Math.ceil(nr/Rt)*Rt,Rt=xr(Et,nr,m)):Rt<0&&(Et=Math.ceil(Et*Rt)/Rt,nr=Math.floor(nr*Rt)/Rt,Rt=xr(Et,nr,m)),Rt>0?(X[$]=Math.floor(Et/Rt)*Rt,X[Ct]=Math.ceil(nr/Rt)*Rt,this.domain(X)):Rt<0&&(X[$]=Math.ceil(Et*Rt)/Rt,X[Ct]=Math.floor(nr*Rt)/Rt,this.domain(X)),this},h.prototype.ticks=function(m){return m===void 0&&(m=D),Ar(this._domain[0],this._domain[this._domain.length-1],m||D)},h}();function Ar(h,m,b){var q,X=-1,$,Ct,Et;if(m=+m,h=+h,b=+b,h===m&&b>0)return[h];if((q=m<h)&&($=h,h=m,m=$),(Et=xr(h,m,b))===0||!isFinite(Et))return[];if(Et>0)for(h=Math.ceil(h/Et),m=Math.floor(m/Et),Ct=new Array($=Math.ceil(m-h+1));++X<$;)Ct[X]=(h+X)*Et;else for(h=Math.floor(h*Et),m=Math.ceil(m*Et),Ct=new Array($=Math.ceil(h-m+1));++X<$;)Ct[X]=(h-X)/Et;return q&&Ct.reverse(),Ct}function xr(h,m,b){var q=(m-h)/Math.max(0,b),X=Math.floor(Math.log(q)/Math.LN10),$=q/Math.pow(10,X);return X>=0?($>=U?10:$>=et?5:$>=at?2:1)*Math.pow(10,X):-Math.pow(10,-X)/($>=U?10:$>=et?5:$>=at?2:1)}function zr(h,m,b){var q;return b==="ceil"?q=Math.ceil(h/m):b==="floor"?q=Math.floor(h/m):q=Math.round(h/m),q*m}function Wr(h,m,b){var q=zr(h,b,"floor"),X=zr(m,b,"ceil");q=(0,Y.fixedBase)(q,b),X=(0,Y.fixedBase)(X,b);for(var $=[],Ct=Math.max((X-q)/(Math.pow(2,12)-1),b),Et=q;Et<=X;Et=Et+Ct){var nr=(0,Y.fixedBase)(Et,Ct);$.push(nr)}return{min:q,max:X,ticks:$}}function ae(h,m,b){var q,X=h.minLimit,$=h.maxLimit,Ct=h.min,Et=h.max,nr=h.tickCount,Rt=nr===void 0?5:nr,Jt=(0,Y.isNil)(X)?(0,Y.isNil)(m)?Ct:m:X,Fr=(0,Y.isNil)($)?(0,Y.isNil)(b)?Et:b:$;if(Jt>Fr&&(q=[Jt,Fr],Fr=q[0],Jt=q[1]),Rt<=2)return[Jt,Fr];for(var Br=(Fr-Jt)/(Rt-1),Qr=[],Rr=0;Rr<Rt;Rr++)Qr.push(Jt+Br*Rr);return Qr}function he(h){var m=h.min,b=h.max,q=h.tickInterval,X=h.minLimit,$=h.maxLimit,Ct=C(h);return!(0,Y.isNil)(X)||!(0,Y.isNil)($)?ae(h,(0,Y.head)(Ct),(0,Y.last)(Ct)):q?Wr(m,b,q).ticks:Ct}function re(h){return Math.abs(h)<1e-15?h:parseFloat(h.toFixed(15))}var Me=[1,5,2,2.5,4,3],me=null,ye=Number.EPSILON*100;function Se(h,m){return(h%m+m)%m}function Ae(h){return Math.round(h*1e12)/1e12}function Ce(h,m,b,q,X,$){var Ct=(0,Y.size)(m),Et=(0,Y.indexOf)(m,h),nr=0,Rt=Se(q,$);return(Rt<ye||$-Rt<ye)&&q<=0&&X>=0&&(nr=1),1-Et/(Ct-1)-b+nr}function M(h,m,b){var q=(0,Y.size)(m),X=(0,Y.indexOf)(m,h),$=1;return 1-X/(q-1)-b+$}function l(h,m,b,q,X,$){var Ct=(h-1)/($-X),Et=(m-1)/(Math.max($,q)-Math.min(b,X));return 2-Math.max(Ct/Et,Et/Ct)}function a(h,m){return h>=m?2-(h-1)/(m-1):1}function f(h,m,b,q){var X=m-h;return 1-.5*(Math.pow(m-q,2)+Math.pow(h-b,2))/Math.pow(.1*X,2)}function g(h,m,b){var q=m-h;if(b>q){var X=(b-q)/2;return 1-Math.pow(X,2)/Math.pow(.1*q,2)}return 1}function k(){return 1}function F(h,m,b,q,X,$){b===void 0&&(b=5),q===void 0&&(q=!0),X===void 0&&(X=Me),$===void 0&&($=[.25,.2,.5,.05]);var Ct=b<0?0:Math.round(b);if(Number.isNaN(h)||Number.isNaN(m)||typeof h!="number"||typeof m!="number"||!Ct)return{min:0,max:0,ticks:[]};if(m-h<1e-15||Ct===1)return{min:h,max:m,ticks:[h]};if(m-h>1e148){var Et=b||5,nr=(m-h)/Et;return{min:h,max:m,ticks:Array(Et).fill(null).map(function(We,Ke){return re(h+nr*Ke)})}}for(var Rt={score:-2,lmin:0,lmax:0,lstep:0},Jt=1;Jt<Infinity;){for(var Fr=0;Fr<X.length;Fr+=1){var Br=X[Fr],Qr=M(Br,X,Jt);if($[0]*Qr+$[1]+$[2]+$[3]<Rt.score){Jt=Infinity;break}for(var Rr=2;Rr<Infinity;){var oe=a(Rr,Ct);if($[0]*Qr+$[1]+$[2]*oe+$[3]<Rt.score)break;for(var se=(m-h)/(Rr+1)/Jt/Br,ve=Math.ceil(Math.log10(se));ve<Infinity;){var jr=Jt*Br*Math.pow(10,ve),Pe=g(h,m,jr*(Rr-1));if($[0]*Qr+$[1]*Pe+$[2]*oe+$[3]<Rt.score)break;var ue=Math.floor(m/jr)*Jt-(Rr-1)*Jt,fe=Math.ceil(h/jr)*Jt;if(ue<=fe)for(var Et=fe-ue,ce=0;ce<=Et;ce+=1){var Ie=ue+ce,ie=Ie*(jr/Jt),pe=ie+jr*(Rr-1),De=jr,He=Ce(Br,X,Jt,ie,pe,De),Oe=f(h,m,ie,pe),Be=l(Rr,Ct,h,m,ie,pe),Qe=k(),Ne=$[0]*He+$[1]*Oe+$[2]*Be+$[3]*Qe;Ne>Rt.score&&(!q||ie<=h&&pe>=m)&&(Rt.lmin=ie,Rt.lmax=pe,Rt.lstep=De,Rt.score=Ne)}ve+=1}Rr+=1}}Jt+=1}var Ee=re(Rt.lmax),qe=re(Rt.lmin),Ge=re(Rt.lstep),Le=Math.floor(Ae((Ee-qe)/Ge))+1,be=new Array(Le);be[0]=re(qe);for(var Fr=1;Fr<Le;Fr++)be[Fr]=re(be[Fr-1]+Ge);return{min:Math.min(h,(0,Y.head)(be)),max:Math.max(m,(0,Y.last)(be)),ticks:be}}function z(h){var m=h.min,b=h.max,q=h.tickCount,X=h.nice,$=h.tickInterval,Ct=h.minLimit,Et=h.maxLimit,nr=F(m,b,q,X).ticks;return!(0,Y.isNil)(Ct)||!(0,Y.isNil)(Et)?ae(h,(0,Y.head)(nr),(0,Y.last)(nr)):$?Wr(m,b,$).ticks:nr}function pt(h){var m=h.base,b=h.tickCount,q=h.min,X=h.max,$=h.values,Ct,Et=N(m,X);if(q>0)Ct=Math.floor(N(m,q));else{var nr=G($,m,X);Ct=Math.floor(N(m,nr))}for(var Rt=Et-Ct,Jt=Math.ceil(Rt/b),Fr=[],Br=Ct;Br<Et+Jt;Br=Br+Jt)Fr.push(Math.pow(m,Br));return q<=0&&Fr.unshift(0),Fr}function wt(h,m,b){if(b===void 0&&(b=5),h===m)return{max:m,min:h,ticks:[h]};var q=b<0?0:Math.round(b);if(q===0)return{max:m,min:h,ticks:[]};var X=1.5,$=.5+1.5*X,Ct=m-h,Et=Ct/q,nr=Math.pow(10,Math.floor(Math.log10(Et))),Rt=nr;2*nr-Et<X*(Et-Rt)&&(Rt=2*nr,5*nr-Et<$*(Et-Rt)&&(Rt=5*nr,10*nr-Et<X*(Et-Rt)&&(Rt=10*nr)));for(var Jt=Math.ceil(m/Rt),Fr=Math.floor(h/Rt),Br=Math.max(Jt*Rt,m),Qr=Math.min(Fr*Rt,h),Rr=Math.floor((Br-Qr)/Rt)+1,oe=new Array(Rr),se=0;se<Rr;se++)oe[se]=re(Qr+se*Rt);return{min:Qr,max:Br,ticks:oe}}function St(h){var m=h.exponent,b=h.tickCount,q=Math.ceil(E(m,h.max)),X=Math.floor(E(m,h.min)),$=wt(X,q,b).ticks;return $.map(function(Ct){var Et=Ct>=0?1:-1;return Math.pow(Ct,m)*Et})}function yt(h,m){var b=h.length*m;return m===1?h[h.length-1]:m===0?h[0]:b%1!=0?h[Math.ceil(b)-1]:h.length%2==0?(h[b-1]+h[b])/2:h[b]}function Vt(h){var m=h.tickCount,b=h.values;if(!b||!b.length)return[];for(var q=b.slice().sort(function(Et,nr){return Et-nr}),X=[],$=0;$<m;$++){var Ct=$/(m-1);X.push(yt(q,Ct))}return X}function fr(h){var m=h.min,b=h.max,q=h.tickCount,X=h.tickInterval,$=h.minLimit,Ct=h.maxLimit,Et=wt(m,b,q).ticks;return!(0,Y.isNil)($)||!(0,Y.isNil)(Ct)?ae(h,(0,Y.head)(Et),(0,Y.last)(Et)):X?Wr(m,b,X).ticks:Et}function Xr(h){var m=h.min,b=h.max,q=h.minTickInterval,X=h.tickInterval,$=h.tickCount;if(X)$=Math.ceil((b-m)/X);else{X=W(m,b,$)[1];var Ct=(b-m)/X,Et=Ct/$;Et>1&&(X=X*Math.ceil(Et)),q&&X<q&&(X=q)}X=Math.max(Math.floor((b-m)/(Math.pow(2,12)-1)),X);for(var nr=[],Rt=m;Rt<b+X;Rt+=X)nr.push(Rt);return nr}function Hr(h){var m=o((0,Qt.__assign)({showLast:!0},h));return m}function Jr(h){return new Date(h).getFullYear()}function qr(h){return new Date(h,0,1).getTime()}function Kr(h){return new Date(h).getMonth()}function Ur(h,m){var b=Jr(h),q=Jr(m),X=Kr(h),$=Kr(m);return(q-b)*12+($-X)%12}function kr(h,m){return new Date(h,m,1).getTime()}function te(h,m){return Math.ceil((m-h)/s)}function ge(h,m){return Math.ceil((m-h)/S)}function $r(h,m){return Math.ceil((m-h)/(60*1e3))}function we(h){var m=h.min,b=h.max,q=h.minTickInterval,X=h.tickCount,$=h.tickInterval,Ct=[];$||($=(b-m)/X,q&&$<q&&($=q)),$=Math.max(Math.floor((b-m)/(Math.pow(2,12)-1)),$);var Et=Jr(m);if($>T)for(var nr=Jr(b),Rt=Math.ceil($/T),Jt=Et;Jt<=nr+Rt;Jt=Jt+Rt)Ct.push(qr(Jt));else if($>d)for(var Fr=Math.ceil($/d),Br=Kr(m),Qr=Ur(m,b),Jt=0;Jt<=Qr+Fr;Jt=Jt+Fr)Ct.push(kr(Et,Jt+Br));else if($>s)for(var Rr=new Date(m),oe=Rr.getFullYear(),se=Rr.getMonth(),ve=Rr.getDate(),jr=Math.ceil($/s),Pe=te(m,b),Jt=0;Jt<Pe+jr;Jt=Jt+jr)Ct.push(new Date(oe,se,ve+Jt).getTime());else if($>S)for(var Rr=new Date(m),oe=Rr.getFullYear(),se=Rr.getMonth(),jr=Rr.getDate(),ue=Rr.getHours(),fe=Math.ceil($/S),ce=ge(m,b),Jt=0;Jt<=ce+fe;Jt=Jt+fe)Ct.push(new Date(oe,se,jr,ue+Jt).getTime());else if($>y)for(var Ie=$r(m,b),ie=Math.ceil($/y),Jt=0;Jt<=Ie+ie;Jt=Jt+ie)Ct.push(m+Jt*y);else{var pe=$;pe<p&&(pe=p);for(var De=Math.floor(m/p)*p,He=Math.ceil((b-m)/p),Oe=Math.ceil(pe/p),Jt=0;Jt<He+Oe;Jt=Jt+Oe)Ct.push(De+Jt*p)}return Ct.length>=512&&console.warn("Notice: current ticks length("+Ct.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+$+") is too small, increase the value to solve the problem!"),Ct}gr("cat",o),gr("time-cat",Hr),gr("wilkinson-extended",z),gr("r-pretty",fr),gr("time",Xr),gr("time-pretty",we),gr("log",pt),gr("pow",St),gr("quantile",Vt),gr("d3-linear",he),Ut("cat",mr),Ut("category",mr),Ut("identity",x),Ut("linear",A),Ut("log",st),Ut("pow",mt),Ut("time",Ft),Ut("timeCat",Lt),Ut("quantize",It),Ut("quantile",Gt)},49242:function(ne,Ir,qt){"use strict";qt.r(Ir),qt.d(Ir,{Cache:function(){return kn},assign:function(){return Ee},augment:function(){return Ge},clamp:function(){return et},clearAnimationFrame:function(){return Qe},clone:function(){return be},contains:function(){return tt},debounce:function(){return Ke},deepMix:function(){return pn},difference:function(){return Qt},each:function(){return Nr},endsWith:function(){return nt},every:function(){return st},extend:function(){return un},filter:function(){return _t},find:function(){return ct},findIndex:function(){return Mt},firstValue:function(){return Nt},fixedBase:function(){return vt},flatten:function(){return v},flattenDeep:function(){return gt},forIn:function(){return Xr},get:function(){return Cn},getEllipsisText:function(){return In},getRange:function(){return Wt},getType:function(){return nr},getWrapBehavior:function(){return rr},group:function(){return zt},groupBy:function(){return tr},groupToMap:function(){return It},has:function(){return Hr},hasKey:function(){return Jr},hasValue:function(){return Ur},head:function(){return A},identity:function(){return Pn},includes:function(){return tt},indexOf:function(){return dn},isArguments:function(){return Jt},isArray:function(){return ir},isArrayLike:function(){return Y},isBoolean:function(){return Br},isDate:function(){return Rr},isDecimal:function(){return Wr},isElement:function(){return Oe},isEmpty:function(){return yn},isEqual:function(){return tn},isEqualWith:function(){return rn},isError:function(){return se},isEven:function(){return he},isFinite:function(){return ve},isFunction:function(){return bt},isInteger:function(){return Me},isMatch:function(){return _r},isNegative:function(){return ye},isNil:function(){return Kt},isNull:function(){return Pe},isNumber:function(){return xr},isNumberEqual:function(){return Ae},isObject:function(){return yr},isObjectLike:function(){return Sr},isOdd:function(){return M},isPlainObject:function(){return Dr},isPositive:function(){return a},isPrototype:function(){return ce},isRegExp:function(){return ie},isString:function(){return R},isType:function(){return lr},isUndefined:function(){return De},keys:function(){return Xt},last:function(){return E},lowerCase:function(){return ge},lowerFirst:function(){return we},map:function(){return Mn},mapValues:function(){return An},max:function(){return dt},maxBy:function(){return f},measureTextWidth:function(){return ke},memoize:function(){return an},min:function(){return Ht},minBy:function(){return g},mix:function(){return Ee},mod:function(){return F},noop:function(){return Tn},number2color:function(){return o},omit:function(){return Ve},parseRadius:function(){return D},pick:function(){return Sn},pull:function(){return Or},pullAt:function(){return y},reduce:function(){return s},remove:function(){return T},requestAnimationFrame:function(){return Be},set:function(){return bn},size:function(){return cn},some:function(){return mt},sortBy:function(){return ot},startsWith:function(){return G},substitute:function(){return m},throttle:function(){return En},toArray:function(){return ze},toDegree:function(){return wt},toInteger:function(){return St},toRadian:function(){return fr},toString:function(){return kr},union:function(){return Zt},uniq:function(){return Lt},uniqueId:function(){return en},upperCase:function(){return q},upperFirst:function(){return $},values:function(){return Kr},valuesOfKey:function(){return pr},wrapBehavior:function(){return Ut}});var xt=function(u){return u!==null&&typeof u!="function"&&isFinite(u.length)},Y=xt,K=function(u,P){return Y(u)?u.indexOf(P)>-1:!1},tt=K,gr=function(u,P){if(!Y(u))return u;for(var H=[],V=0;V<u.length;V++){var ft=u[V];P(ft,V)&&H.push(ft)}return H},_t=gr,dr=function(u,P){return P===void 0&&(P=[]),_t(u,function(H){return!tt(P,H)})},Qt=dr,br={}.toString,mr=function(u,P){return br.call(u)==="[object "+P+"]"},lr=mr,bt=function(u){return lr(u,"Function")},jt=function(u){return u==null},Kt=jt,ir=function(u){return Array.isArray?Array.isArray(u):lr(u,"Array")},yr=function(u){var P=typeof u;return u!==null&&P==="object"||P==="function"};function Lr(u,P){if(!!u){var H;if(ir(u))for(var V=0,ft=u.length;V<ft&&(H=P(u[V],V),H!==!1);V++);else if(yr(u)){for(var Yt in u)if(u.hasOwnProperty(Yt)&&(H=P(u[Yt],Yt),H===!1))break}}}var Nr=Lr,Zr=Object.keys?function(u){return Object.keys(u)}:function(u){var P=[];return Nr(u,function(H,V){bt(u)&&V==="prototype"||P.push(V)}),P},Xt=Zr;function ur(u,P){var H=Xt(P),V=H.length;if(Kt(u))return!V;for(var ft=0;ft<V;ft+=1){var Yt=H[ft];if(P[Yt]!==u[Yt]||!(Yt in u))return!1}return!0}var _r=ur,Er=function(u){return typeof u=="object"&&u!==null},Sr=Er,Tr=function(u){if(!Sr(u)||!lr(u,"Object"))return!1;if(Object.getPrototypeOf(u)===null)return!0;for(var P=u;Object.getPrototypeOf(P)!==null;)P=Object.getPrototypeOf(P);return Object.getPrototypeOf(u)===P},Dr=Tr;function Gr(u,P){if(!ir(u))return null;var H;if(bt(P)&&(H=P),Dr(P)&&(H=function(ft){return _r(ft,P)}),H){for(var V=0;V<u.length;V+=1)if(H(u[V]))return u[V]}return null}var ct=Gr;function ut(u,P,H){H===void 0&&(H=0);for(var V=H;V<u.length;V++)if(P(u[V],V))return V;return-1}var Mt=ut,At=function(u,P){for(var H=null,V=0;V<u.length;V++){var ft=u[V],Yt=ft[P];if(!Kt(Yt)){ir(Yt)?H=Yt[0]:H=Yt;break}}return H},Nt=At,Tt=function(u){if(!ir(u))return[];for(var P=[],H=0;H<u.length;H++)P=P.concat(u[H]);return P},v=Tt,O=function(u,P){if(P===void 0&&(P=[]),!ir(u))P.push(u);else for(var H=0;H<u.length;H+=1)O(u[H],P);return P},gt=O,dt=function(u){if(!!ir(u))return u.reduce(function(P,H){return Math.max(P,H)},u[0])},Ht=function(u){if(!!ir(u))return u.reduce(function(P,H){return Math.min(P,H)},u[0])},or=function(u){var P=u.filter(function(hr){return!isNaN(hr)});if(!P.length)return{min:0,max:0};if(ir(u[0])){for(var H=[],V=0;V<u.length;V++)H=H.concat(u[V]);P=H}var ft=dt(P),Yt=Ht(P);return{min:Yt,max:ft}},Wt=or,cr=Array.prototype,sr=cr.splice,er=cr.indexOf,wr=function(u){for(var P=[],H=1;H<arguments.length;H++)P[H-1]=arguments[H];for(var V=0;V<P.length;V++)for(var ft=P[V],Yt=-1;(Yt=er.call(u,ft))>-1;)sr.call(u,Yt,1);return u},Or=wr,L=Array.prototype.splice,p=function(P,H){if(!Y(P))return[];for(var V=P?H.length:0,ft=V-1;V--;){var Yt=void 0,hr=H[V];(V===ft||hr!==Yt)&&(Yt=hr,L.call(P,hr,1))}return P},y=p,S=function(u,P,H){if(!ir(u)&&!Dr(u))return u;var V=H;return Nr(u,function(ft,Yt){V=P(V,ft,Yt)}),V},s=S,d=function(u,P){var H=[];if(!Y(u))return H;for(var V=-1,ft=[],Yt=u.length;++V<Yt;){var hr=u[V];P(hr,V,u)&&(H.push(hr),ft.push(V))}return y(u,ft),H},T=d,R=function(u){return lr(u,"String")};function W(u,P){var H;if(bt(P))H=function(ft,Yt){return P(ft)-P(Yt)};else{var V=[];R(P)?V.push(P):ir(P)&&(V=P),H=function(ft,Yt){for(var hr=0;hr<V.length;hr+=1){var Yr=V[hr];if(ft[Yr]>Yt[Yr])return 1;if(ft[Yr]<Yt[Yr])return-1}return 0}}return u.sort(H),u}var ot=W;function Lt(u,P){P===void 0&&(P=new Map);var H=[];if(Array.isArray(u))for(var V=0,ft=u.length;V<ft;V++){var Yt=u[V];P.has(Yt)||(H.push(Yt),P.set(Yt,!0))}return H}var Ot=function(){for(var u=[],P=0;P<arguments.length;P++)u[P]=arguments[P];return Lt([].concat.apply([],u))},Zt=Ot,pr=function(u,P){for(var H=[],V={},ft=0;ft<u.length;ft++){var Yt=u[ft],hr=Yt[P];if(!Kt(hr)){ir(hr)||(hr=[hr]);for(var Yr=0;Yr<hr.length;Yr++){var le=hr[Yr];V[le]||(H.push(le),V[le]=!0)}}}return H};function A(u){if(Y(u))return u[0]}function E(u){if(Y(u)){var P=u;return P[P.length-1]}}function N(u,P){return ir(u)||R(u)?u[0]===P:!1}var G=N;function Z(u,P){return ir(u)||R(u)?u[u.length-1]===P:!1}var nt=Z,rt=function(u,P){for(var H=0;H<u.length;H++)if(!P(u[H],H))return!1;return!0},st=rt,Q=function(u,P){for(var H=0;H<u.length;H++)if(P(u[H],H))return!0;return!1},mt=Q,lt=Object.prototype.hasOwnProperty;function Ft(u,P){if(!P||!ir(u))return{};for(var H={},V=bt(P)?P:function(Yr){return Yr[P]},ft,Yt=0;Yt<u.length;Yt++){var hr=u[Yt];ft=V(hr),lt.call(H,ft)?H[ft].push(hr):H[ft]=[hr]}return H}var tr=Ft;function It(u,P){if(!P)return{0:u};if(!bt(P)){var H=ir(P)?P:P.replace(/\s+/g,"").split("*");P=function(V){for(var ft="_",Yt=0,hr=H.length;Yt<hr;Yt++)ft+=V[H[Yt]]&&V[H[Yt]].toString();return ft}}return tr(u,P)}var zt=function(u,P){if(!P)return[u];var H=It(u,P),V=[];for(var ft in H)V.push(H[ft]);return V};function Gt(u,P){return u["_wrap_"+P]}var rr=Gt;function kt(u,P){if(u["_wrap_"+P])return u["_wrap_"+P];var H=function(V){u[P](V)};return u["_wrap_"+P]=H,H}var Ut=kt,B={};function x(u){var P=B[u];if(!P){for(var H=u.toString(16),V=H.length;V<6;V++)H="0"+H;P="#"+H,B[u]=P}return P}var o=x;function C(u){var P=0,H=0,V=0,ft=0;return ir(u)?u.length===1?P=H=V=ft=u[0]:u.length===2?(P=V=u[0],H=ft=u[1]):u.length===3?(P=u[0],H=ft=u[1],V=u[2]):(P=u[0],H=u[1],V=u[2],ft=u[3]):P=H=V=ft=u,{r1:P,r2:H,r3:V,r4:ft}}var D=C,U=function(u,P,H){return u<P?P:u>H?H:u},et=U,at=function(u,P){var H=P.toString(),V=H.indexOf(".");if(V===-1)return Math.round(u);var ft=H.substr(V+1).length;return ft>20&&(ft=20),parseFloat(u.toFixed(ft))},vt=at,Ar=function(u){return lr(u,"Number")},xr=Ar,zr=function(u){return xr(u)&&u%1!=0},Wr=zr,ae=function(u){return xr(u)&&u%2==0},he=ae,re=Number.isInteger?Number.isInteger:function(u){return xr(u)&&u%1==0},Me=re,me=function(u){return xr(u)&&u<0},ye=me,Se=1e-5;function Ae(u,P,H){return H===void 0&&(H=Se),Math.abs(u-P)<H}var Ce=function(u){return xr(u)&&u%2!=0},M=Ce,l=function(u){return xr(u)&&u>0},a=l,f=function(u,P){if(!!ir(u)){for(var H,V=-Infinity,ft=0;ft<u.length;ft++){var Yt=u[ft],hr=bt(P)?P(Yt):Yt[P];hr>V&&(H=Yt,V=hr)}return H}},g=function(u,P){if(!!ir(u)){for(var H,V=Infinity,ft=0;ft<u.length;ft++){var Yt=u[ft],hr=bt(P)?P(Yt):Yt[P];hr<V&&(H=Yt,V=hr)}return H}},k=function(u,P){return(u%P+P)%P},F=k,z=180/Math.PI,pt=function(u){return z*u},wt=pt,St=parseInt,yt=Math.PI/180,Vt=function(u){return yt*u},fr=Vt,Xr=Nr,Hr=function(u,P){return u.hasOwnProperty(P)},Jr=Hr,qr=Object.values?function(u){return Object.values(u)}:function(u){var P=[];return Nr(u,function(H,V){bt(u)&&V==="prototype"||P.push(H)}),P},Kr=qr,Ur=function(u,P){return tt(Kr(u),P)},kr=function(u){return Kt(u)?"":u.toString()},te=function(u){return kr(u).toLowerCase()},ge=te,$r=function(u){var P=kr(u);return P.charAt(0).toLowerCase()+P.substring(1)},we=$r;function h(u,P){return!u||!P?u:u.replace(/\\?\{([^{}]+)\}/g,function(H,V){return H.charAt(0)==="\\"?H.slice(1):P[V]===void 0?"":P[V]})}var m=h,b=function(u){return kr(u).toUpperCase()},q=b,X=function(u){var P=kr(u);return P.charAt(0).toUpperCase()+P.substring(1)},$=X,Ct={}.toString,Et=function(u){return Ct.call(u).replace(/^\[object /,"").replace(/]$/,"")},nr=Et,Rt=function(u){return lr(u,"Arguments")},Jt=Rt,Fr=function(u){return lr(u,"Boolean")},Br=Fr,Qr=function(u){return lr(u,"Date")},Rr=Qr,oe=function(u){return lr(u,"Error")},se=oe;function ve(u){return xr(u)&&isFinite(u)}var jr=function(u){return u===null},Pe=jr,ue=Object.prototype,fe=function(u){var P=u&&u.constructor,H=typeof P=="function"&&P.prototype||ue;return u===H},ce=fe,Ie=function(u){return lr(u,"RegExp")},ie=Ie,pe=function(u){return u===void 0},De=pe,He=function(u){return u instanceof Element||u instanceof HTMLDocument},Oe=He;function Be(u){var P=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(H){return setTimeout(H,16)};return P(u)}function Qe(u){var P=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;P(u)}function Ne(u,P){for(var H in P)P.hasOwnProperty(H)&&H!=="constructor"&&P[H]!==void 0&&(u[H]=P[H])}function Ee(u,P,H,V){return P&&Ne(u,P),H&&Ne(u,H),V&&Ne(u,V),u}var qe=function(){for(var u=[],P=0;P<arguments.length;P++)u[P]=arguments[P];for(var H=u[0],V=1;V<u.length;V++){var ft=u[V];bt(ft)&&(ft=ft.prototype),Ee(H.prototype,ft)}},Ge=qe,Le=function(u){if(typeof u!="object"||u===null)return u;var P;if(ir(u)){P=[];for(var H=0,V=u.length;H<V;H++)typeof u[H]=="object"&&u[H]!=null?P[H]=Le(u[H]):P[H]=u[H]}else{P={};for(var ft in u)typeof u[ft]=="object"&&u[ft]!=null?P[ft]=Le(u[ft]):P[ft]=u[ft]}return P},be=Le;function We(u,P,H){var V;return function(){var ft=this,Yt=arguments,hr=function(){V=null,H||u.apply(ft,Yt)},Yr=H&&!V;clearTimeout(V),V=setTimeout(hr,P),Yr&&u.apply(ft,Yt)}}var Ke=We,an=function(u,P){if(!bt(u))throw new TypeError("Expected a function");var H=function(){for(var V=[],ft=0;ft<arguments.length;ft++)V[ft]=arguments[ft];var Yt=P?P.apply(this,V):V[0],hr=H.cache;if(hr.has(Yt))return hr.get(Yt);var Yr=u.apply(this,V);return hr.set(Yt,Yr),Yr};return H.cache=new Map,H},on=5;function Je(u,P,H,V){H=H||0,V=V||on;for(var ft in P)if(P.hasOwnProperty(ft)){var Yt=P[ft];Yt!==null&&Dr(Yt)?(Dr(u[ft])||(u[ft]={}),H<V?Je(u[ft],Yt,H+1,V):u[ft]=P[ft]):ir(Yt)?(u[ft]=[],u[ft]=u[ft].concat(Yt)):Yt!==void 0&&(u[ft]=Yt)}}var sn=function(u){for(var P=[],H=1;H<arguments.length;H++)P[H-1]=arguments[H];for(var V=0;V<P.length;V+=1)Je(u,P[V]);return u},pn=sn,gn=function(u,P,H,V){bt(P)||(H=P,P=u,u=function(){});var ft=Object.create?function(hr,Yr){return Object.create(hr,{constructor:{value:Yr}})}:function(hr,Yr){function le(){}le.prototype=hr;var de=new le;return de.constructor=Yr,de},Yt=ft(P.prototype,u);return u.prototype=Ee(Yt,u.prototype),u.superclass=ft(P.prototype,P),Ee(Yt,H),Ee(u,V),u},un=gn,Te=function(u,P){if(!Y(u))return-1;var H=Array.prototype.indexOf;if(H)return H.call(u,P);for(var V=-1,ft=0;ft<u.length;ft++)if(u[ft]===P){V=ft;break}return V},dn=Te,mn=Object.prototype.hasOwnProperty;function fn(u){if(Kt(u))return!0;if(Y(u))return!u.length;var P=nr(u);if(P==="Map"||P==="Set")return!u.size;if(ce(u))return!Object.keys(u).length;for(var H in u)if(mn.call(u,H))return!1;return!0}var yn=fn,je=function(u,P){if(u===P)return!0;if(!u||!P||R(u)||R(P))return!1;if(Y(u)||Y(P)){if(u.length!==P.length)return!1;for(var H=!0,V=0;V<u.length&&(H=je(u[V],P[V]),!!H);V++);return H}if(Sr(u)||Sr(P)){var ft=Object.keys(u),Yt=Object.keys(P);if(ft.length!==Yt.length)return!1;for(var H=!0,V=0;V<ft.length&&(H=je(u[ft[V]],P[ft[V]]),!!H);V++);return H}return!1},tn=je,rn=function(u,P,H){return bt(H)?!!H(u,P):tn(u,P)},xn=function(u,P){if(!Y(u))return u;for(var H=[],V=0;V<u.length;V++){var ft=u[V];H.push(P(ft,V))}return H},Mn=xn,wn=function(u){return u},An=function(u,P){P===void 0&&(P=wn);var H={};return yr(u)&&!Kt(u)&&Object.keys(u).forEach(function(V){H[V]=P(u[V],V)}),H},Cn=function(u,P,H){for(var V=0,ft=R(P)?P.split("."):P;u&&V<ft.length;)u=u[ft[V++]];return u===void 0||V<ft.length?H:u},bn=function(u,P,H){var V=u,ft=R(P)?P.split("."):P;return ft.forEach(function(Yt,hr){hr<ft.length-1?(yr(V[Yt])||(V[Yt]=xr(ft[hr+1])?[]:{}),V=V[Yt]):V[Yt]=H}),u},_n=Object.prototype.hasOwnProperty,Sn=function(u,P){if(u===null||!Dr(u))return{};var H={};return Nr(P,function(V){_n.call(u,V)&&(H[V]=u[V])}),H},Ve=function(u,P){return s(u,function(H,V,ft){return P.includes(ft)||(H[ft]=V),H},{})},En=function(u,P,H){var V,ft,Yt,hr,Yr=0;H||(H={});var le=function(){Yr=H.leading===!1?0:Date.now(),V=null,hr=u.apply(ft,Yt),V||(ft=Yt=null)},de=function(){var xe=Date.now();!Yr&&H.leading===!1&&(Yr=xe);var Ue=P-(xe-Yr);return ft=this,Yt=arguments,Ue<=0||Ue>P?(V&&(clearTimeout(V),V=null),Yr=xe,hr=u.apply(ft,Yt),V||(ft=Yt=null)):!V&&H.trailing!==!1&&(V=setTimeout(le,Ue)),hr};return de.cancel=function(){clearTimeout(V),Yr=0,V=ft=Yt=null},de},ze=function(u){return Y(u)?Array.prototype.slice.call(u):[]},Ze={},en=function(u){return u=u||"g",Ze[u]?Ze[u]+=1:Ze[u]=1,u+Ze[u]},Tn=function(){},Pn=function(u){return u};function cn(u){return Kt(u)?0:Y(u)?u.length:Object.keys(u).length}var Fe=qt(70655),Ye,ke=an(function(u,P){P===void 0&&(P={});var H=P.fontSize,V=P.fontFamily,ft=P.fontWeight,Yt=P.fontStyle,hr=P.fontVariant;return Ye||(Ye=document.createElement("canvas").getContext("2d")),Ye.font=[Yt,hr,ft,H+"px",V].join(" "),Ye.measureText(R(u)?u:"").width},function(u,P){return P===void 0&&(P={}),(0,Fe.__spreadArrays)([u],Kr(P)).join("")}),In=function(u,P,H,V){V===void 0&&(V="...");var ft=16,Yt=ke(V,H),hr=R(u)?u:kr(u),Yr=P,le=[],de,xe;if(ke(u,H)<=P)return u;for(;de=hr.substr(0,ft),xe=ke(de,H),!(xe+Yt>Yr&&xe>Yr);)if(le.push(de),Yr-=xe,hr=hr.substr(ft),!hr)return le.join("");for(;de=hr.substr(0,1),xe=ke(de,H),!(xe+Yt>Yr);)if(le.push(de),Yr-=xe,hr=hr.substr(1),!hr)return le.join("");return""+le.join("")+V},ln=function(){function u(){this.map={}}return u.prototype.has=function(P){return this.map[P]!==void 0},u.prototype.get=function(P,H){var V=this.map[P];return V===void 0?H:V},u.prototype.set=function(P,H){this.map[P]=H},u.prototype.clear=function(){this.map={}},u.prototype.delete=function(P){delete this.map[P]},u.prototype.size=function(){return Object.keys(this.map).length},u}(),kn=ln},43631:function(ne,Ir,qt){"use strict";qt.d(Ir,{qY:function(){return jt}});var xt=qt(34155),Y=function(Xt,ur,_r){if(_r||arguments.length===2)for(var Er=0,Sr=ur.length,Tr;Er<Sr;Er++)(Tr||!(Er in ur))&&(Tr||(Tr=Array.prototype.slice.call(ur,0,Er)),Tr[Er]=ur[Er]);return Xt.concat(Tr||Array.prototype.slice.call(ur))},K=function(){function Xt(ur,_r,Er){this.name=ur,this.version=_r,this.os=Er,this.type="browser"}return Xt}(),tt=function(){function Xt(ur){this.version=ur,this.type="node",this.name="node",this.os=xt.platform}return Xt}(),gr=function(){function Xt(ur,_r,Er,Sr){this.name=ur,this.version=_r,this.os=Er,this.bot=Sr,this.type="bot-device"}return Xt}(),_t=function(){function Xt(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return Xt}(),dr=function(){function Xt(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return Xt}(),Qt=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,br=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,mr=3,lr=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",Qt]],bt=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function jt(Xt){return Xt?yr(Xt):typeof document=="undefined"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"?new dr:typeof navigator!="undefined"?yr(navigator.userAgent):Nr()}function Kt(Xt){return Xt!==""&&lr.reduce(function(ur,_r){var Er=_r[0],Sr=_r[1];if(ur)return ur;var Tr=Sr.exec(Xt);return!!Tr&&[Er,Tr]},!1)}function ir(Xt){var ur=Kt(Xt);return ur?ur[0]:null}function yr(Xt){var ur=Kt(Xt);if(!ur)return null;var _r=ur[0],Er=ur[1];if(_r==="searchbot")return new _t;var Sr=Er[1]&&Er[1].split(".").join("_").split("_").slice(0,3);Sr?Sr.length<mr&&(Sr=Y(Y([],Sr,!0),Zr(mr-Sr.length),!0)):Sr=[];var Tr=Sr.join("."),Dr=Lr(Xt),Gr=br.exec(Xt);return Gr&&Gr[1]?new gr(_r,Tr,Dr,Gr[1]):new K(_r,Tr,Dr)}function Lr(Xt){for(var ur=0,_r=bt.length;ur<_r;ur++){var Er=bt[ur],Sr=Er[0],Tr=Er[1],Dr=Tr.exec(Xt);if(Dr)return Sr}return null}function Nr(){var Xt=typeof xt!="undefined"&&xt.version;return Xt?new tt(xt.version.slice(1)):null}function Zr(Xt){for(var ur=[],_r=0;_r<Xt;_r++)ur.push("0");return ur}},49685:function(ne,Ir,qt){"use strict";qt.d(Ir,{Ib:function(){return xt},WT:function(){return Y}});var xt=1e-6,Y=typeof Float32Array!="undefined"?Float32Array:Array,K=Math.random;function tt(Qt){Y=Qt}var gr=Math.PI/180;function _t(Qt){return Qt*gr}function dr(Qt,br){return Math.abs(Qt-br)<=xt*Math.max(1,Math.abs(Qt),Math.abs(br))}Math.hypot||(Math.hypot=function(){for(var Qt=0,br=arguments.length;br--;)Qt+=arguments[br]*arguments[br];return Math.sqrt(Qt)})},35600:function(ne,Ir,qt){"use strict";qt.r(Ir),qt.d(Ir,{create:function(){return Y},fromMat4:function(){return K},clone:function(){return tt},copy:function(){return gr},fromValues:function(){return _t},set:function(){return dr},identity:function(){return Qt},transpose:function(){return br},invert:function(){return mr},adjoint:function(){return lr},determinant:function(){return bt},multiply:function(){return jt},translate:function(){return Kt},rotate:function(){return ir},scale:function(){return yr},fromTranslation:function(){return Lr},fromRotation:function(){return Nr},fromScaling:function(){return Zr},fromMat2d:function(){return Xt},fromQuat:function(){return ur},normalFromMat4:function(){return _r},projection:function(){return Er},str:function(){return Sr},frob:function(){return Tr},add:function(){return Dr},subtract:function(){return Gr},multiplyScalar:function(){return ct},multiplyScalarAndAdd:function(){return ut},exactEquals:function(){return Mt},equals:function(){return At},mul:function(){return Nt},sub:function(){return Tt}});var xt=qt(49685);function Y(){var v=new xt.WT(9);return xt.WT!=Float32Array&&(v[1]=0,v[2]=0,v[3]=0,v[5]=0,v[6]=0,v[7]=0),v[0]=1,v[4]=1,v[8]=1,v}function K(v,O){return v[0]=O[0],v[1]=O[1],v[2]=O[2],v[3]=O[4],v[4]=O[5],v[5]=O[6],v[6]=O[8],v[7]=O[9],v[8]=O[10],v}function tt(v){var O=new xt.WT(9);return O[0]=v[0],O[1]=v[1],O[2]=v[2],O[3]=v[3],O[4]=v[4],O[5]=v[5],O[6]=v[6],O[7]=v[7],O[8]=v[8],O}function gr(v,O){return v[0]=O[0],v[1]=O[1],v[2]=O[2],v[3]=O[3],v[4]=O[4],v[5]=O[5],v[6]=O[6],v[7]=O[7],v[8]=O[8],v}function _t(v,O,gt,dt,Ht,or,Wt,cr,sr){var er=new xt.WT(9);return er[0]=v,er[1]=O,er[2]=gt,er[3]=dt,er[4]=Ht,er[5]=or,er[6]=Wt,er[7]=cr,er[8]=sr,er}function dr(v,O,gt,dt,Ht,or,Wt,cr,sr,er){return v[0]=O,v[1]=gt,v[2]=dt,v[3]=Ht,v[4]=or,v[5]=Wt,v[6]=cr,v[7]=sr,v[8]=er,v}function Qt(v){return v[0]=1,v[1]=0,v[2]=0,v[3]=0,v[4]=1,v[5]=0,v[6]=0,v[7]=0,v[8]=1,v}function br(v,O){if(v===O){var gt=O[1],dt=O[2],Ht=O[5];v[1]=O[3],v[2]=O[6],v[3]=gt,v[5]=O[7],v[6]=dt,v[7]=Ht}else v[0]=O[0],v[1]=O[3],v[2]=O[6],v[3]=O[1],v[4]=O[4],v[5]=O[7],v[6]=O[2],v[7]=O[5],v[8]=O[8];return v}function mr(v,O){var gt=O[0],dt=O[1],Ht=O[2],or=O[3],Wt=O[4],cr=O[5],sr=O[6],er=O[7],wr=O[8],Or=wr*Wt-cr*er,L=-wr*or+cr*sr,p=er*or-Wt*sr,y=gt*Or+dt*L+Ht*p;return y?(y=1/y,v[0]=Or*y,v[1]=(-wr*dt+Ht*er)*y,v[2]=(cr*dt-Ht*Wt)*y,v[3]=L*y,v[4]=(wr*gt-Ht*sr)*y,v[5]=(-cr*gt+Ht*or)*y,v[6]=p*y,v[7]=(-er*gt+dt*sr)*y,v[8]=(Wt*gt-dt*or)*y,v):null}function lr(v,O){var gt=O[0],dt=O[1],Ht=O[2],or=O[3],Wt=O[4],cr=O[5],sr=O[6],er=O[7],wr=O[8];return v[0]=Wt*wr-cr*er,v[1]=Ht*er-dt*wr,v[2]=dt*cr-Ht*Wt,v[3]=cr*sr-or*wr,v[4]=gt*wr-Ht*sr,v[5]=Ht*or-gt*cr,v[6]=or*er-Wt*sr,v[7]=dt*sr-gt*er,v[8]=gt*Wt-dt*or,v}function bt(v){var O=v[0],gt=v[1],dt=v[2],Ht=v[3],or=v[4],Wt=v[5],cr=v[6],sr=v[7],er=v[8];return O*(er*or-Wt*sr)+gt*(-er*Ht+Wt*cr)+dt*(sr*Ht-or*cr)}function jt(v,O,gt){var dt=O[0],Ht=O[1],or=O[2],Wt=O[3],cr=O[4],sr=O[5],er=O[6],wr=O[7],Or=O[8],L=gt[0],p=gt[1],y=gt[2],S=gt[3],s=gt[4],d=gt[5],T=gt[6],R=gt[7],W=gt[8];return v[0]=L*dt+p*Wt+y*er,v[1]=L*Ht+p*cr+y*wr,v[2]=L*or+p*sr+y*Or,v[3]=S*dt+s*Wt+d*er,v[4]=S*Ht+s*cr+d*wr,v[5]=S*or+s*sr+d*Or,v[6]=T*dt+R*Wt+W*er,v[7]=T*Ht+R*cr+W*wr,v[8]=T*or+R*sr+W*Or,v}function Kt(v,O,gt){var dt=O[0],Ht=O[1],or=O[2],Wt=O[3],cr=O[4],sr=O[5],er=O[6],wr=O[7],Or=O[8],L=gt[0],p=gt[1];return v[0]=dt,v[1]=Ht,v[2]=or,v[3]=Wt,v[4]=cr,v[5]=sr,v[6]=L*dt+p*Wt+er,v[7]=L*Ht+p*cr+wr,v[8]=L*or+p*sr+Or,v}function ir(v,O,gt){var dt=O[0],Ht=O[1],or=O[2],Wt=O[3],cr=O[4],sr=O[5],er=O[6],wr=O[7],Or=O[8],L=Math.sin(gt),p=Math.cos(gt);return v[0]=p*dt+L*Wt,v[1]=p*Ht+L*cr,v[2]=p*or+L*sr,v[3]=p*Wt-L*dt,v[4]=p*cr-L*Ht,v[5]=p*sr-L*or,v[6]=er,v[7]=wr,v[8]=Or,v}function yr(v,O,gt){var dt=gt[0],Ht=gt[1];return v[0]=dt*O[0],v[1]=dt*O[1],v[2]=dt*O[2],v[3]=Ht*O[3],v[4]=Ht*O[4],v[5]=Ht*O[5],v[6]=O[6],v[7]=O[7],v[8]=O[8],v}function Lr(v,O){return v[0]=1,v[1]=0,v[2]=0,v[3]=0,v[4]=1,v[5]=0,v[6]=O[0],v[7]=O[1],v[8]=1,v}function Nr(v,O){var gt=Math.sin(O),dt=Math.cos(O);return v[0]=dt,v[1]=gt,v[2]=0,v[3]=-gt,v[4]=dt,v[5]=0,v[6]=0,v[7]=0,v[8]=1,v}function Zr(v,O){return v[0]=O[0],v[1]=0,v[2]=0,v[3]=0,v[4]=O[1],v[5]=0,v[6]=0,v[7]=0,v[8]=1,v}function Xt(v,O){return v[0]=O[0],v[1]=O[1],v[2]=0,v[3]=O[2],v[4]=O[3],v[5]=0,v[6]=O[4],v[7]=O[5],v[8]=1,v}function ur(v,O){var gt=O[0],dt=O[1],Ht=O[2],or=O[3],Wt=gt+gt,cr=dt+dt,sr=Ht+Ht,er=gt*Wt,wr=dt*Wt,Or=dt*cr,L=Ht*Wt,p=Ht*cr,y=Ht*sr,S=or*Wt,s=or*cr,d=or*sr;return v[0]=1-Or-y,v[3]=wr-d,v[6]=L+s,v[1]=wr+d,v[4]=1-er-y,v[7]=p-S,v[2]=L-s,v[5]=p+S,v[8]=1-er-Or,v}function _r(v,O){var gt=O[0],dt=O[1],Ht=O[2],or=O[3],Wt=O[4],cr=O[5],sr=O[6],er=O[7],wr=O[8],Or=O[9],L=O[10],p=O[11],y=O[12],S=O[13],s=O[14],d=O[15],T=gt*cr-dt*Wt,R=gt*sr-Ht*Wt,W=gt*er-or*Wt,ot=dt*sr-Ht*cr,Lt=dt*er-or*cr,Ot=Ht*er-or*sr,Zt=wr*S-Or*y,pr=wr*s-L*y,A=wr*d-p*y,E=Or*s-L*S,N=Or*d-p*S,G=L*d-p*s,Z=T*G-R*N+W*E+ot*A-Lt*pr+Ot*Zt;return Z?(Z=1/Z,v[0]=(cr*G-sr*N+er*E)*Z,v[1]=(sr*A-Wt*G-er*pr)*Z,v[2]=(Wt*N-cr*A+er*Zt)*Z,v[3]=(Ht*N-dt*G-or*E)*Z,v[4]=(gt*G-Ht*A+or*pr)*Z,v[5]=(dt*A-gt*N-or*Zt)*Z,v[6]=(S*Ot-s*Lt+d*ot)*Z,v[7]=(s*W-y*Ot-d*R)*Z,v[8]=(y*Lt-S*W+d*T)*Z,v):null}function Er(v,O,gt){return v[0]=2/O,v[1]=0,v[2]=0,v[3]=0,v[4]=-2/gt,v[5]=0,v[6]=-1,v[7]=1,v[8]=1,v}function Sr(v){return"mat3("+v[0]+", "+v[1]+", "+v[2]+", "+v[3]+", "+v[4]+", "+v[5]+", "+v[6]+", "+v[7]+", "+v[8]+")"}function Tr(v){return Math.hypot(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8])}function Dr(v,O,gt){return v[0]=O[0]+gt[0],v[1]=O[1]+gt[1],v[2]=O[2]+gt[2],v[3]=O[3]+gt[3],v[4]=O[4]+gt[4],v[5]=O[5]+gt[5],v[6]=O[6]+gt[6],v[7]=O[7]+gt[7],v[8]=O[8]+gt[8],v}function Gr(v,O,gt){return v[0]=O[0]-gt[0],v[1]=O[1]-gt[1],v[2]=O[2]-gt[2],v[3]=O[3]-gt[3],v[4]=O[4]-gt[4],v[5]=O[5]-gt[5],v[6]=O[6]-gt[6],v[7]=O[7]-gt[7],v[8]=O[8]-gt[8],v}function ct(v,O,gt){return v[0]=O[0]*gt,v[1]=O[1]*gt,v[2]=O[2]*gt,v[3]=O[3]*gt,v[4]=O[4]*gt,v[5]=O[5]*gt,v[6]=O[6]*gt,v[7]=O[7]*gt,v[8]=O[8]*gt,v}function ut(v,O,gt,dt){return v[0]=O[0]+gt[0]*dt,v[1]=O[1]+gt[1]*dt,v[2]=O[2]+gt[2]*dt,v[3]=O[3]+gt[3]*dt,v[4]=O[4]+gt[4]*dt,v[5]=O[5]+gt[5]*dt,v[6]=O[6]+gt[6]*dt,v[7]=O[7]+gt[7]*dt,v[8]=O[8]+gt[8]*dt,v}function Mt(v,O){return v[0]===O[0]&&v[1]===O[1]&&v[2]===O[2]&&v[3]===O[3]&&v[4]===O[4]&&v[5]===O[5]&&v[6]===O[6]&&v[7]===O[7]&&v[8]===O[8]}function At(v,O){var gt=v[0],dt=v[1],Ht=v[2],or=v[3],Wt=v[4],cr=v[5],sr=v[6],er=v[7],wr=v[8],Or=O[0],L=O[1],p=O[2],y=O[3],S=O[4],s=O[5],d=O[6],T=O[7],R=O[8];return Math.abs(gt-Or)<=xt.Ib*Math.max(1,Math.abs(gt),Math.abs(Or))&&Math.abs(dt-L)<=xt.Ib*Math.max(1,Math.abs(dt),Math.abs(L))&&Math.abs(Ht-p)<=xt.Ib*Math.max(1,Math.abs(Ht),Math.abs(p))&&Math.abs(or-y)<=xt.Ib*Math.max(1,Math.abs(or),Math.abs(y))&&Math.abs(Wt-S)<=xt.Ib*Math.max(1,Math.abs(Wt),Math.abs(S))&&Math.abs(cr-s)<=xt.Ib*Math.max(1,Math.abs(cr),Math.abs(s))&&Math.abs(sr-d)<=xt.Ib*Math.max(1,Math.abs(sr),Math.abs(d))&&Math.abs(er-T)<=xt.Ib*Math.max(1,Math.abs(er),Math.abs(T))&&Math.abs(wr-R)<=xt.Ib*Math.max(1,Math.abs(wr),Math.abs(R))}var Nt=jt,Tt=Gr},31437:function(ne,Ir,qt){"use strict";qt.d(Ir,{IH:function(){return dr},$X:function(){return Qt},VV:function(){return jt},Fp:function(){return Kt},bA:function(){return yr},TE:function(){return Nr},kE:function(){return Xt},Fv:function(){return Sr},AK:function(){return Tr},kK:function(){return At},EU:function(){return v},I6:function(){return dt},lu:function(){return Wt}});var xt=qt(49685);function Y(){var p=new xt.WT(2);return xt.WT!=Float32Array&&(p[0]=0,p[1]=0),p}function K(p){var y=new glMatrix.ARRAY_TYPE(2);return y[0]=p[0],y[1]=p[1],y}function tt(p,y){var S=new glMatrix.ARRAY_TYPE(2);return S[0]=p,S[1]=y,S}function gr(p,y){return p[0]=y[0],p[1]=y[1],p}function _t(p,y,S){return p[0]=y,p[1]=S,p}function dr(p,y,S){return p[0]=y[0]+S[0],p[1]=y[1]+S[1],p}function Qt(p,y,S){return p[0]=y[0]-S[0],p[1]=y[1]-S[1],p}function br(p,y,S){return p[0]=y[0]*S[0],p[1]=y[1]*S[1],p}function mr(p,y,S){return p[0]=y[0]/S[0],p[1]=y[1]/S[1],p}function lr(p,y){return p[0]=Math.ceil(y[0]),p[1]=Math.ceil(y[1]),p}function bt(p,y){return p[0]=Math.floor(y[0]),p[1]=Math.floor(y[1]),p}function jt(p,y,S){return p[0]=Math.min(y[0],S[0]),p[1]=Math.min(y[1],S[1]),p}function Kt(p,y,S){return p[0]=Math.max(y[0],S[0]),p[1]=Math.max(y[1],S[1]),p}function ir(p,y){return p[0]=Math.round(y[0]),p[1]=Math.round(y[1]),p}function yr(p,y,S){return p[0]=y[0]*S,p[1]=y[1]*S,p}function Lr(p,y,S,s){return p[0]=y[0]+S[0]*s,p[1]=y[1]+S[1]*s,p}function Nr(p,y){var S=y[0]-p[0],s=y[1]-p[1];return Math.hypot(S,s)}function Zr(p,y){var S=y[0]-p[0],s=y[1]-p[1];return S*S+s*s}function Xt(p){var y=p[0],S=p[1];return Math.hypot(y,S)}function ur(p){var y=p[0],S=p[1];return y*y+S*S}function _r(p,y){return p[0]=-y[0],p[1]=-y[1],p}function Er(p,y){return p[0]=1/y[0],p[1]=1/y[1],p}function Sr(p,y){var S=y[0],s=y[1],d=S*S+s*s;return d>0&&(d=1/Math.sqrt(d)),p[0]=y[0]*d,p[1]=y[1]*d,p}function Tr(p,y){return p[0]*y[0]+p[1]*y[1]}function Dr(p,y,S){var s=y[0]*S[1]-y[1]*S[0];return p[0]=p[1]=0,p[2]=s,p}function Gr(p,y,S,s){var d=y[0],T=y[1];return p[0]=d+s*(S[0]-d),p[1]=T+s*(S[1]-T),p}function ct(p,y){y=y||1;var S=glMatrix.RANDOM()*2*Math.PI;return p[0]=Math.cos(S)*y,p[1]=Math.sin(S)*y,p}function ut(p,y,S){var s=y[0],d=y[1];return p[0]=S[0]*s+S[2]*d,p[1]=S[1]*s+S[3]*d,p}function Mt(p,y,S){var s=y[0],d=y[1];return p[0]=S[0]*s+S[2]*d+S[4],p[1]=S[1]*s+S[3]*d+S[5],p}function At(p,y,S){var s=y[0],d=y[1];return p[0]=S[0]*s+S[3]*d+S[6],p[1]=S[1]*s+S[4]*d+S[7],p}function Nt(p,y,S){var s=y[0],d=y[1];return p[0]=S[0]*s+S[4]*d+S[12],p[1]=S[1]*s+S[5]*d+S[13],p}function Tt(p,y,S,s){var d=y[0]-S[0],T=y[1]-S[1],R=Math.sin(s),W=Math.cos(s);return p[0]=d*W-T*R+S[0],p[1]=d*R+T*W+S[1],p}function v(p,y){var S=p[0],s=p[1],d=y[0],T=y[1],R=Math.sqrt(S*S+s*s)*Math.sqrt(d*d+T*T),W=R&&(S*d+s*T)/R;return Math.acos(Math.min(Math.max(W,-1),1))}function O(p){return p[0]=0,p[1]=0,p}function gt(p){return"vec2("+p[0]+", "+p[1]+")"}function dt(p,y){return p[0]===y[0]&&p[1]===y[1]}function Ht(p,y){var S=p[0],s=p[1],d=y[0],T=y[1];return Math.abs(S-d)<=glMatrix.EPSILON*Math.max(1,Math.abs(S),Math.abs(d))&&Math.abs(s-T)<=glMatrix.EPSILON*Math.max(1,Math.abs(s),Math.abs(T))}var or=null,Wt=Qt,cr=null,sr=null,er=null,wr=null,Or=null,L=function(){var p=Y();return function(y,S,s,d,T,R){var W,ot;for(S||(S=2),s||(s=0),d?ot=Math.min(d*S+s,y.length):ot=y.length,W=s;W<ot;W+=S)p[0]=y[W],p[1]=y[W+1],T(p,p,R),y[W]=p[0],y[W+1]=p[1];return y}}()},77160:function(ne,Ir,qt){"use strict";qt.d(Ir,{Ue:function(){return Y},d9:function(){return K},kE:function(){return tt},al:function(){return gr},JG:function(){return _t},t8:function(){return dr},IH:function(){return Qt},$X:function(){return br},Jp:function(){return mr},bA:function(){return Lr},Fv:function(){return Sr},AK:function(){return Tr},kC:function(){return Dr},t7:function(){return Gr},fF:function(){return At},kK:function(){return Nt},VC:function(){return Tt},lu:function(){return sr},TK:function(){return Or},Zh:function(){return p}});var xt=qt(49685);function Y(){var s=new xt.WT(3);return xt.WT!=Float32Array&&(s[0]=0,s[1]=0,s[2]=0),s}function K(s){var d=new xt.WT(3);return d[0]=s[0],d[1]=s[1],d[2]=s[2],d}function tt(s){var d=s[0],T=s[1],R=s[2];return Math.hypot(d,T,R)}function gr(s,d,T){var R=new xt.WT(3);return R[0]=s,R[1]=d,R[2]=T,R}function _t(s,d){return s[0]=d[0],s[1]=d[1],s[2]=d[2],s}function dr(s,d,T,R){return s[0]=d,s[1]=T,s[2]=R,s}function Qt(s,d,T){return s[0]=d[0]+T[0],s[1]=d[1]+T[1],s[2]=d[2]+T[2],s}function br(s,d,T){return s[0]=d[0]-T[0],s[1]=d[1]-T[1],s[2]=d[2]-T[2],s}function mr(s,d,T){return s[0]=d[0]*T[0],s[1]=d[1]*T[1],s[2]=d[2]*T[2],s}function lr(s,d,T){return s[0]=d[0]/T[0],s[1]=d[1]/T[1],s[2]=d[2]/T[2],s}function bt(s,d){return s[0]=Math.ceil(d[0]),s[1]=Math.ceil(d[1]),s[2]=Math.ceil(d[2]),s}function jt(s,d){return s[0]=Math.floor(d[0]),s[1]=Math.floor(d[1]),s[2]=Math.floor(d[2]),s}function Kt(s,d,T){return s[0]=Math.min(d[0],T[0]),s[1]=Math.min(d[1],T[1]),s[2]=Math.min(d[2],T[2]),s}function ir(s,d,T){return s[0]=Math.max(d[0],T[0]),s[1]=Math.max(d[1],T[1]),s[2]=Math.max(d[2],T[2]),s}function yr(s,d){return s[0]=Math.round(d[0]),s[1]=Math.round(d[1]),s[2]=Math.round(d[2]),s}function Lr(s,d,T){return s[0]=d[0]*T,s[1]=d[1]*T,s[2]=d[2]*T,s}function Nr(s,d,T,R){return s[0]=d[0]+T[0]*R,s[1]=d[1]+T[1]*R,s[2]=d[2]+T[2]*R,s}function Zr(s,d){var T=d[0]-s[0],R=d[1]-s[1],W=d[2]-s[2];return Math.hypot(T,R,W)}function Xt(s,d){var T=d[0]-s[0],R=d[1]-s[1],W=d[2]-s[2];return T*T+R*R+W*W}function ur(s){var d=s[0],T=s[1],R=s[2];return d*d+T*T+R*R}function _r(s,d){return s[0]=-d[0],s[1]=-d[1],s[2]=-d[2],s}function Er(s,d){return s[0]=1/d[0],s[1]=1/d[1],s[2]=1/d[2],s}function Sr(s,d){var T=d[0],R=d[1],W=d[2],ot=T*T+R*R+W*W;return ot>0&&(ot=1/Math.sqrt(ot)),s[0]=d[0]*ot,s[1]=d[1]*ot,s[2]=d[2]*ot,s}function Tr(s,d){return s[0]*d[0]+s[1]*d[1]+s[2]*d[2]}function Dr(s,d,T){var R=d[0],W=d[1],ot=d[2],Lt=T[0],Ot=T[1],Zt=T[2];return s[0]=W*Zt-ot*Ot,s[1]=ot*Lt-R*Zt,s[2]=R*Ot-W*Lt,s}function Gr(s,d,T,R){var W=d[0],ot=d[1],Lt=d[2];return s[0]=W+R*(T[0]-W),s[1]=ot+R*(T[1]-ot),s[2]=Lt+R*(T[2]-Lt),s}function ct(s,d,T,R,W,ot){var Lt=ot*ot,Ot=Lt*(2*ot-3)+1,Zt=Lt*(ot-2)+ot,pr=Lt*(ot-1),A=Lt*(3-2*ot);return s[0]=d[0]*Ot+T[0]*Zt+R[0]*pr+W[0]*A,s[1]=d[1]*Ot+T[1]*Zt+R[1]*pr+W[1]*A,s[2]=d[2]*Ot+T[2]*Zt+R[2]*pr+W[2]*A,s}function ut(s,d,T,R,W,ot){var Lt=1-ot,Ot=Lt*Lt,Zt=ot*ot,pr=Ot*Lt,A=3*ot*Ot,E=3*Zt*Lt,N=Zt*ot;return s[0]=d[0]*pr+T[0]*A+R[0]*E+W[0]*N,s[1]=d[1]*pr+T[1]*A+R[1]*E+W[1]*N,s[2]=d[2]*pr+T[2]*A+R[2]*E+W[2]*N,s}function Mt(s,d){d=d||1;var T=glMatrix.RANDOM()*2*Math.PI,R=glMatrix.RANDOM()*2-1,W=Math.sqrt(1-R*R)*d;return s[0]=Math.cos(T)*W,s[1]=Math.sin(T)*W,s[2]=R*d,s}function At(s,d,T){var R=d[0],W=d[1],ot=d[2],Lt=T[3]*R+T[7]*W+T[11]*ot+T[15];return Lt=Lt||1,s[0]=(T[0]*R+T[4]*W+T[8]*ot+T[12])/Lt,s[1]=(T[1]*R+T[5]*W+T[9]*ot+T[13])/Lt,s[2]=(T[2]*R+T[6]*W+T[10]*ot+T[14])/Lt,s}function Nt(s,d,T){var R=d[0],W=d[1],ot=d[2];return s[0]=R*T[0]+W*T[3]+ot*T[6],s[1]=R*T[1]+W*T[4]+ot*T[7],s[2]=R*T[2]+W*T[5]+ot*T[8],s}function Tt(s,d,T){var R=T[0],W=T[1],ot=T[2],Lt=T[3],Ot=d[0],Zt=d[1],pr=d[2],A=W*pr-ot*Zt,E=ot*Ot-R*pr,N=R*Zt-W*Ot,G=W*N-ot*E,Z=ot*A-R*N,nt=R*E-W*A,rt=Lt*2;return A*=rt,E*=rt,N*=rt,G*=2,Z*=2,nt*=2,s[0]=Ot+A+G,s[1]=Zt+E+Z,s[2]=pr+N+nt,s}function v(s,d,T,R){var W=[],ot=[];return W[0]=d[0]-T[0],W[1]=d[1]-T[1],W[2]=d[2]-T[2],ot[0]=W[0],ot[1]=W[1]*Math.cos(R)-W[2]*Math.sin(R),ot[2]=W[1]*Math.sin(R)+W[2]*Math.cos(R),s[0]=ot[0]+T[0],s[1]=ot[1]+T[1],s[2]=ot[2]+T[2],s}function O(s,d,T,R){var W=[],ot=[];return W[0]=d[0]-T[0],W[1]=d[1]-T[1],W[2]=d[2]-T[2],ot[0]=W[2]*Math.sin(R)+W[0]*Math.cos(R),ot[1]=W[1],ot[2]=W[2]*Math.cos(R)-W[0]*Math.sin(R),s[0]=ot[0]+T[0],s[1]=ot[1]+T[1],s[2]=ot[2]+T[2],s}function gt(s,d,T,R){var W=[],ot=[];return W[0]=d[0]-T[0],W[1]=d[1]-T[1],W[2]=d[2]-T[2],ot[0]=W[0]*Math.cos(R)-W[1]*Math.sin(R),ot[1]=W[0]*Math.sin(R)+W[1]*Math.cos(R),ot[2]=W[2],s[0]=ot[0]+T[0],s[1]=ot[1]+T[1],s[2]=ot[2]+T[2],s}function dt(s,d){var T=s[0],R=s[1],W=s[2],ot=d[0],Lt=d[1],Ot=d[2],Zt=Math.sqrt(T*T+R*R+W*W),pr=Math.sqrt(ot*ot+Lt*Lt+Ot*Ot),A=Zt*pr,E=A&&Tr(s,d)/A;return Math.acos(Math.min(Math.max(E,-1),1))}function Ht(s){return s[0]=0,s[1]=0,s[2]=0,s}function or(s){return"vec3("+s[0]+", "+s[1]+", "+s[2]+")"}function Wt(s,d){return s[0]===d[0]&&s[1]===d[1]&&s[2]===d[2]}function cr(s,d){var T=s[0],R=s[1],W=s[2],ot=d[0],Lt=d[1],Ot=d[2];return Math.abs(T-ot)<=glMatrix.EPSILON*Math.max(1,Math.abs(T),Math.abs(ot))&&Math.abs(R-Lt)<=glMatrix.EPSILON*Math.max(1,Math.abs(R),Math.abs(Lt))&&Math.abs(W-Ot)<=glMatrix.EPSILON*Math.max(1,Math.abs(W),Math.abs(Ot))}var sr=br,er=null,wr=null,Or=Zr,L=null,p=tt,y=null,S=function(){var s=Y();return function(d,T,R,W,ot,Lt){var Ot,Zt;for(T||(T=3),R||(R=0),W?Zt=Math.min(W*T+R,d.length):Zt=d.length,Ot=R;Ot<Zt;Ot+=T)s[0]=d[Ot],s[1]=d[Ot+1],s[2]=d[Ot+2],ot(s,s,Lt),d[Ot]=s[0],d[Ot+1]=s[1],d[Ot+2]=s[2];return d}}()},24561:function(ne,Ir,qt){"use strict";var xt=qt(67294);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- 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
-
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
-
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */var Y=function(){return Y=Object.assign||function(jt){for(var Kt,ir=1,yr=arguments.length;ir<yr;ir++){Kt=arguments[ir];for(var Lr in Kt)Object.prototype.hasOwnProperty.call(Kt,Lr)&&(jt[Lr]=Kt[Lr])}return jt},Y.apply(this,arguments)};function K(bt,jt){var Kt={};for(var ir in bt)Object.prototype.hasOwnProperty.call(bt,ir)&&jt.indexOf(ir)<0&&(Kt[ir]=bt[ir]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yr=0,ir=Object.getOwnPropertySymbols(bt);yr<ir.length;yr++)jt.indexOf(ir[yr])<0&&Object.prototype.propertyIsEnumerable.call(bt,ir[yr])&&(Kt[ir[yr]]=bt[ir[yr]]);return Kt}var tt=function(){return Math.random().toString(36).substring(6)},gr=function(bt){var jt=bt.animate,Kt=bt.backgroundColor,ir=bt.backgroundOpacity,yr=bt.baseUrl,Lr=bt.children,Nr=bt.foregroundColor,Zr=bt.foregroundOpacity,Xt=bt.gradientRatio,ur=bt.uniqueKey,_r=bt.interval,Er=bt.rtl,Sr=bt.speed,Tr=bt.style,Dr=bt.title,Gr=K(bt,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","interval","rtl","speed","style","title"]),ct=ur||tt(),ut=ct+"-diff",Mt=ct+"-animated-diff",At=ct+"-aria",Nt=Er?{transform:"scaleX(-1)"}:null,Tt="0; "+_r+"; 1",v=Sr+"s";return(0,xt.createElement)("svg",Y({"aria-labelledby":At,role:"img",style:Y(Y({},Tr),Nt)},Gr),Dr?(0,xt.createElement)("title",{id:At},Dr):null,(0,xt.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+yr+"#"+ut+")",style:{fill:"url("+yr+"#"+Mt+")"}}),(0,xt.createElement)("defs",{role:"presentation"},(0,xt.createElement)("clipPath",{id:ut},Lr),(0,xt.createElement)("linearGradient",{id:Mt},(0,xt.createElement)("stop",{offset:"0%",stopColor:Kt,stopOpacity:ir},jt&&(0,xt.createElement)("animate",{attributeName:"offset",values:-Xt+"; "+-Xt+"; 1",keyTimes:Tt,dur:v,repeatCount:"indefinite"})),(0,xt.createElement)("stop",{offset:"50%",stopColor:Nr,stopOpacity:Zr},jt&&(0,xt.createElement)("animate",{attributeName:"offset",values:-Xt/2+"; "+-Xt/2+"; "+(1+Xt/2),keyTimes:Tt,dur:v,repeatCount:"indefinite"})),(0,xt.createElement)("stop",{offset:"100%",stopColor:Kt,stopOpacity:ir},jt&&(0,xt.createElement)("animate",{attributeName:"offset",values:"0; 0; "+(1+Xt),keyTimes:Tt,dur:v,repeatCount:"indefinite"})))))};gr.defaultProps={animate:!0,backgroundColor:"#f5f6f7",backgroundOpacity:1,baseUrl:"",foregroundColor:"#eee",foregroundOpacity:1,gradientRatio:2,id:null,interval:.25,rtl:!1,speed:1.2,style:{},title:"Loading..."};var _t=function(bt){return bt.children?(0,xt.createElement)(gr,Y({},bt)):(0,xt.createElement)(dr,Y({},bt))},dr=function(bt){return(0,xt.createElement)(_t,Y({viewBox:"0 0 476 124"},bt),(0,xt.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),(0,xt.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),(0,xt.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),(0,xt.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),(0,xt.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),(0,xt.createElement)("circle",{cx:"20",cy:"20",r:"20"}))},Qt=function(bt){return createElement(_t,Y({viewBox:"0 0 400 460"},bt),createElement("circle",{cx:"31",cy:"31",r:"15"}),createElement("rect",{x:"58",y:"18",rx:"2",ry:"2",width:"140",height:"10"}),createElement("rect",{x:"58",y:"34",rx:"2",ry:"2",width:"140",height:"10"}),createElement("rect",{x:"0",y:"60",rx:"2",ry:"2",width:"400",height:"400"}))},br=function(bt){return createElement(_t,Y({viewBox:"0 0 340 84"},bt),createElement("rect",{x:"0",y:"0",width:"67",height:"11",rx:"3"}),createElement("rect",{x:"76",y:"0",width:"140",height:"11",rx:"3"}),createElement("rect",{x:"127",y:"48",width:"53",height:"11",rx:"3"}),createElement("rect",{x:"187",y:"48",width:"72",height:"11",rx:"3"}),createElement("rect",{x:"18",y:"48",width:"100",height:"11",rx:"3"}),createElement("rect",{x:"0",y:"71",width:"37",height:"11",rx:"3"}),createElement("rect",{x:"18",y:"23",width:"140",height:"11",rx:"3"}),createElement("rect",{x:"166",y:"23",width:"173",height:"11",rx:"3"}))},mr=function(bt){return createElement(_t,Y({viewBox:"0 0 400 110"},bt),createElement("rect",{x:"0",y:"0",rx:"3",ry:"3",width:"250",height:"10"}),createElement("rect",{x:"20",y:"20",rx:"3",ry:"3",width:"220",height:"10"}),createElement("rect",{x:"20",y:"40",rx:"3",ry:"3",width:"170",height:"10"}),createElement("rect",{x:"0",y:"60",rx:"3",ry:"3",width:"250",height:"10"}),createElement("rect",{x:"20",y:"80",rx:"3",ry:"3",width:"200",height:"10"}),createElement("rect",{x:"20",y:"100",rx:"3",ry:"3",width:"80",height:"10"}))},lr=function(bt){return createElement(_t,Y({viewBox:"0 0 245 125"},bt),createElement("circle",{cx:"10",cy:"20",r:"8"}),createElement("rect",{x:"25",y:"15",rx:"5",ry:"5",width:"220",height:"10"}),createElement("circle",{cx:"10",cy:"50",r:"8"}),createElement("rect",{x:"25",y:"45",rx:"5",ry:"5",width:"220",height:"10"}),createElement("circle",{cx:"10",cy:"80",r:"8"}),createElement("rect",{x:"25",y:"75",rx:"5",ry:"5",width:"220",height:"10"}),createElement("circle",{cx:"10",cy:"110",r:"8"}),createElement("rect",{x:"25",y:"105",rx:"5",ry:"5",width:"220",height:"10"}))};Ir.ZP=_t},70655:function(ne,Ir,qt){"use strict";qt.r(Ir),qt.d(Ir,{__extends:function(){return Y},__assign:function(){return K},__rest:function(){return tt},__decorate:function(){return gr},__param:function(){return _t},__metadata:function(){return dr},__awaiter:function(){return Qt},__generator:function(){return br},__createBinding:function(){return mr},__exportStar:function(){return lr},__values:function(){return bt},__read:function(){return jt},__spread:function(){return Kt},__spreadArrays:function(){return ir},__spreadArray:function(){return yr},__await:function(){return Lr},__asyncGenerator:function(){return Nr},__asyncDelegator:function(){return Zr},__asyncValues:function(){return Xt},__makeTemplateObject:function(){return ur},__importStar:function(){return Er},__importDefault:function(){return Sr},__classPrivateFieldGet:function(){return Tr},__classPrivateFieldSet:function(){return Dr},__classPrivateFieldIn:function(){return Gr}});var xt=function(ct,ut){return xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Mt,At){Mt.__proto__=At}||function(Mt,At){for(var Nt in At)Object.prototype.hasOwnProperty.call(At,Nt)&&(Mt[Nt]=At[Nt])},xt(ct,ut)};function Y(ct,ut){if(typeof ut!="function"&&ut!==null)throw new TypeError("Class extends value "+String(ut)+" is not a constructor or null");xt(ct,ut);function Mt(){this.constructor=ct}ct.prototype=ut===null?Object.create(ut):(Mt.prototype=ut.prototype,new Mt)}var K=function(){return K=Object.assign||function(ut){for(var Mt,At=1,Nt=arguments.length;At<Nt;At++){Mt=arguments[At];for(var Tt in Mt)Object.prototype.hasOwnProperty.call(Mt,Tt)&&(ut[Tt]=Mt[Tt])}return ut},K.apply(this,arguments)};function tt(ct,ut){var Mt={};for(var At in ct)Object.prototype.hasOwnProperty.call(ct,At)&&ut.indexOf(At)<0&&(Mt[At]=ct[At]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,At=Object.getOwnPropertySymbols(ct);Nt<At.length;Nt++)ut.indexOf(At[Nt])<0&&Object.prototype.propertyIsEnumerable.call(ct,At[Nt])&&(Mt[At[Nt]]=ct[At[Nt]]);return Mt}function gr(ct,ut,Mt,At){var Nt=arguments.length,Tt=Nt<3?ut:At===null?At=Object.getOwnPropertyDescriptor(ut,Mt):At,v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Tt=Reflect.decorate(ct,ut,Mt,At);else for(var O=ct.length-1;O>=0;O--)(v=ct[O])&&(Tt=(Nt<3?v(Tt):Nt>3?v(ut,Mt,Tt):v(ut,Mt))||Tt);return Nt>3&&Tt&&Object.defineProperty(ut,Mt,Tt),Tt}function _t(ct,ut){return function(Mt,At){ut(Mt,At,ct)}}function dr(ct,ut){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(ct,ut)}function Qt(ct,ut,Mt,At){function Nt(Tt){return Tt instanceof Mt?Tt:new Mt(function(v){v(Tt)})}return new(Mt||(Mt=Promise))(function(Tt,v){function O(Ht){try{dt(At.next(Ht))}catch(or){v(or)}}function gt(Ht){try{dt(At.throw(Ht))}catch(or){v(or)}}function dt(Ht){Ht.done?Tt(Ht.value):Nt(Ht.value).then(O,gt)}dt((At=At.apply(ct,ut||[])).next())})}function br(ct,ut){var Mt={label:0,sent:function(){if(Tt[0]&1)throw Tt[1];return Tt[1]},trys:[],ops:[]},At,Nt,Tt,v;return v={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function O(dt){return function(Ht){return gt([dt,Ht])}}function gt(dt){if(At)throw new TypeError("Generator is already executing.");for(;Mt;)try{if(At=1,Nt&&(Tt=dt[0]&2?Nt.return:dt[0]?Nt.throw||((Tt=Nt.return)&&Tt.call(Nt),0):Nt.next)&&!(Tt=Tt.call(Nt,dt[1])).done)return Tt;switch(Nt=0,Tt&&(dt=[dt[0]&2,Tt.value]),dt[0]){case 0:case 1:Tt=dt;break;case 4:return Mt.label++,{value:dt[1],done:!1};case 5:Mt.label++,Nt=dt[1],dt=[0];continue;case 7:dt=Mt.ops.pop(),Mt.trys.pop();continue;default:if(Tt=Mt.trys,!(Tt=Tt.length>0&&Tt[Tt.length-1])&&(dt[0]===6||dt[0]===2)){Mt=0;continue}if(dt[0]===3&&(!Tt||dt[1]>Tt[0]&&dt[1]<Tt[3])){Mt.label=dt[1];break}if(dt[0]===6&&Mt.label<Tt[1]){Mt.label=Tt[1],Tt=dt;break}if(Tt&&Mt.label<Tt[2]){Mt.label=Tt[2],Mt.ops.push(dt);break}Tt[2]&&Mt.ops.pop(),Mt.trys.pop();continue}dt=ut.call(ct,Mt)}catch(Ht){dt=[6,Ht],Nt=0}finally{At=Tt=0}if(dt[0]&5)throw dt[1];return{value:dt[0]?dt[1]:void 0,done:!0}}}var mr=Object.create?function(ct,ut,Mt,At){At===void 0&&(At=Mt);var Nt=Object.getOwnPropertyDescriptor(ut,Mt);(!Nt||("get"in Nt?!ut.__esModule:Nt.writable||Nt.configurable))&&(Nt={enumerable:!0,get:function(){return ut[Mt]}}),Object.defineProperty(ct,At,Nt)}:function(ct,ut,Mt,At){At===void 0&&(At=Mt),ct[At]=ut[Mt]};function lr(ct,ut){for(var Mt in ct)Mt!=="default"&&!Object.prototype.hasOwnProperty.call(ut,Mt)&&mr(ut,ct,Mt)}function bt(ct){var ut=typeof Symbol=="function"&&Symbol.iterator,Mt=ut&&ct[ut],At=0;if(Mt)return Mt.call(ct);if(ct&&typeof ct.length=="number")return{next:function(){return ct&&At>=ct.length&&(ct=void 0),{value:ct&&ct[At++],done:!ct}}};throw new TypeError(ut?"Object is not iterable.":"Symbol.iterator is not defined.")}function jt(ct,ut){var Mt=typeof Symbol=="function"&&ct[Symbol.iterator];if(!Mt)return ct;var At=Mt.call(ct),Nt,Tt=[],v;try{for(;(ut===void 0||ut-- >0)&&!(Nt=At.next()).done;)Tt.push(Nt.value)}catch(O){v={error:O}}finally{try{Nt&&!Nt.done&&(Mt=At.return)&&Mt.call(At)}finally{if(v)throw v.error}}return Tt}function Kt(){for(var ct=[],ut=0;ut<arguments.length;ut++)ct=ct.concat(jt(arguments[ut]));return ct}function ir(){for(var ct=0,ut=0,Mt=arguments.length;ut<Mt;ut++)ct+=arguments[ut].length;for(var At=Array(ct),Nt=0,ut=0;ut<Mt;ut++)for(var Tt=arguments[ut],v=0,O=Tt.length;v<O;v++,Nt++)At[Nt]=Tt[v];return At}function yr(ct,ut,Mt){if(Mt||arguments.length===2)for(var At=0,Nt=ut.length,Tt;At<Nt;At++)(Tt||!(At in ut))&&(Tt||(Tt=Array.prototype.slice.call(ut,0,At)),Tt[At]=ut[At]);return ct.concat(Tt||Array.prototype.slice.call(ut))}function Lr(ct){return this instanceof Lr?(this.v=ct,this):new Lr(ct)}function Nr(ct,ut,Mt){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var At=Mt.apply(ct,ut||[]),Nt,Tt=[];return Nt={},v("next"),v("throw"),v("return"),Nt[Symbol.asyncIterator]=function(){return this},Nt;function v(Wt){At[Wt]&&(Nt[Wt]=function(cr){return new Promise(function(sr,er){Tt.push([Wt,cr,sr,er])>1||O(Wt,cr)})})}function O(Wt,cr){try{gt(At[Wt](cr))}catch(sr){or(Tt[0][3],sr)}}function gt(Wt){Wt.value instanceof Lr?Promise.resolve(Wt.value.v).then(dt,Ht):or(Tt[0][2],Wt)}function dt(Wt){O("next",Wt)}function Ht(Wt){O("throw",Wt)}function or(Wt,cr){Wt(cr),Tt.shift(),Tt.length&&O(Tt[0][0],Tt[0][1])}}function Zr(ct){var ut,Mt;return ut={},At("next"),At("throw",function(Nt){throw Nt}),At("return"),ut[Symbol.iterator]=function(){return this},ut;function At(Nt,Tt){ut[Nt]=ct[Nt]?function(v){return(Mt=!Mt)?{value:Lr(ct[Nt](v)),done:Nt==="return"}:Tt?Tt(v):v}:Tt}}function Xt(ct){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ut=ct[Symbol.asyncIterator],Mt;return ut?ut.call(ct):(ct=typeof bt=="function"?bt(ct):ct[Symbol.iterator](),Mt={},At("next"),At("throw"),At("return"),Mt[Symbol.asyncIterator]=function(){return this},Mt);function At(Tt){Mt[Tt]=ct[Tt]&&function(v){return new Promise(function(O,gt){v=ct[Tt](v),Nt(O,gt,v.done,v.value)})}}function Nt(Tt,v,O,gt){Promise.resolve(gt).then(function(dt){Tt({value:dt,done:O})},v)}}function ur(ct,ut){return Object.defineProperty?Object.defineProperty(ct,"raw",{value:ut}):ct.raw=ut,ct}var _r=Object.create?function(ct,ut){Object.defineProperty(ct,"default",{enumerable:!0,value:ut})}:function(ct,ut){ct.default=ut};function Er(ct){if(ct&&ct.__esModule)return ct;var ut={};if(ct!=null)for(var Mt in ct)Mt!=="default"&&Object.prototype.hasOwnProperty.call(ct,Mt)&&mr(ut,ct,Mt);return _r(ut,ct),ut}function Sr(ct){return ct&&ct.__esModule?ct:{default:ct}}function Tr(ct,ut,Mt,At){if(Mt==="a"&&!At)throw new TypeError("Private accessor was defined without a getter");if(typeof ut=="function"?ct!==ut||!At:!ut.has(ct))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Mt==="m"?At:Mt==="a"?At.call(ct):At?At.value:ut.get(ct)}function Dr(ct,ut,Mt,At,Nt){if(At==="m")throw new TypeError("Private method is not writable");if(At==="a"&&!Nt)throw new TypeError("Private accessor was defined without a setter");if(typeof ut=="function"?ct!==ut||!Nt:!ut.has(ct))throw new TypeError("Cannot write private member to an object whose class did not declare it");return At==="a"?Nt.call(ct,Mt):Nt?Nt.value=Mt:ut.set(ct,Mt),Mt}function Gr(ct,ut){if(ut===null||typeof ut!="object"&&typeof ut!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof ct=="function"?ut===ct:ct.has(ut)}}}]);
|