17 lines
195 KiB
JavaScript
17 lines
195 KiB
JavaScript
(self.webpackChunk=self.webpackChunk||[]).push([[1408],{60798:function(Jt,St,H){"use strict";H.d(St,{Z:function(){return ft}});function ft(S,dt,ot){if(S){if(typeof S.addEventListener=="function")return S.addEventListener(dt,ot,!1),{remove:function(){S.removeEventListener(dt,ot,!1)}};if(typeof S.attachEvent=="function")return S.attachEvent("on"+dt,ot),{remove:function(){S.detachEvent("on"+dt,ot)}}}}},24714:function(Jt,St,H){"use strict";H.d(St,{Z:function(){return $}});var ft,S,dt,ot;function ht(){ft=document.createElement("table"),S=document.createElement("tr"),dt=/^\s*<(\w+|!)[^>]*>/,ot={tr:document.createElement("tbody"),tbody:ft,thead:ft,tfoot:ft,td:S,th:S,"*":document.createElement("div")}}function $(N){ft||ht();var J=dt.test(N)&&RegExp.$1;(!J||!(J in ot))&&(J="*");var tt=ot[J];N=typeof N=="string"?N.replace(/(^\s*)|(\s*$)/g,""):N,tt.innerHTML=""+N;var ct=tt.childNodes[0];return ct&&tt.contains(ct)&&tt.removeChild(ct),ct}},10818:function(Jt,St,H){"use strict";H.d(St,{Z:function(){return ft}});function ft(S,dt){if(S)for(var ot in dt)dt.hasOwnProperty(ot)&&(S.style[ot]=dt[ot]);return S}},92561:function(Jt,St,H){"use strict";var ft=H(99938),S=H(80216),dt=H(16089),ot=function(ht){(0,ft.__extends)($,ht);function $(N){var J=ht.call(this)||this;J.destroyed=!1;var tt=J.getDefaultCfg();return J.cfg=(0,dt.CD)(tt,N),J}return $.prototype.getDefaultCfg=function(){return{}},$.prototype.get=function(N){return this.cfg[N]},$.prototype.set=function(N,J){this.cfg[N]=J},$.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},$}(S.Z);St.Z=ot},8280:function(Jt,St,H){"use strict";H.d(St,{Z:function(){return zr}});var ft=H(99938),S=H(81365),dt=H(10888),ot=H(16089),ht=H(13526),$=0,N=0,J=0,tt=1e3,ct,nt,j=0,B=0,b=0,L=typeof performance=="object"&&performance.now?performance:Date,Q=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(O){setTimeout(O,17)};function st(){return B||(Q(at),B=L.now()+b)}function at(){B=0}function R(){this._call=this._time=this._next=null}R.prototype=y.prototype={constructor:R,restart:function(O,h,T){if(typeof O!="function")throw new TypeError("callback is not a function");T=(T==null?st():+T)+(h==null?0:+h),!this._next&&nt!==this&&(nt?nt._next=this:ct=this,nt=this),this._call=O,this._time=T,yt()},stop:function(){this._call&&(this._call=null,this._time=1/0,yt())}};function y(O,h,T){var G=new R;return G.restart(O,h,T),G}function w(){st(),++$;for(var O=ct,h;O;)(h=B-O._time)>=0&&O._call.call(null,h),O=O._next;--$}function X(){B=(j=L.now())+b,$=N=0;try{w()}finally{$=0,ut(),B=0}}function W(){var O=L.now(),h=O-j;h>tt&&(b-=h,j=O)}function ut(){for(var O,h=ct,T,G=1/0;h;)h._call?(G>h._time&&(G=h._time),O=h,h=h._next):(T=h._next,h._next=null,h=O?O._next=T:ct=T);nt=O,yt(G)}function yt(O){if(!$){N&&(N=clearTimeout(N));var h=O-B;h>24?(O<1/0&&(N=setTimeout(X,O-L.now()-b)),J&&(J=clearInterval(J))):(J||(j=L.now(),J=setInterval(W,tt)),$=1,Q(X))}}var Pt=H(37635);function Ht(O,h,T){O.prototype=h.prototype=T,T.constructor=O}function Wt(O,h){var T=Object.create(O.prototype);for(var G in h)T[G]=h[G];return T}function Tt(){}var _t=.7,Ut=1/_t,Yt="\\s*([+-]?\\d+)\\s*",Ot="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",a="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",d=/^#([0-9a-f]{3,8})$/,K=new RegExp("^rgb\\(".concat(Yt,",").concat(Yt,",").concat(Yt,"\\)$")),gt=new RegExp("^rgb\\(".concat(a,",").concat(a,",").concat(a,"\\)$")),xt=new RegExp("^rgba\\(".concat(Yt,",").concat(Yt,",").concat(Yt,",").concat(Ot,"\\)$")),p=new RegExp("^rgba\\(".concat(a,",").concat(a,",").concat(a,",").concat(Ot,"\\)$")),_=new RegExp("^hsl\\(".concat(Ot,",").concat(a,",").concat(a,"\\)$")),k=new RegExp("^hsla\\(".concat(Ot,",").concat(a,",").concat(a,",").concat(Ot,"\\)$")),E={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};Ht(Tt,e,{copy:function(h){return Object.assign(new this.constructor,this,h)},displayable:function(){return this.rgb().displayable()},hex:Z,formatHex:Z,formatHex8:it,formatHsl:M,formatRgb:s,toString:s});function Z(){return this.rgb().formatHex()}function it(){return this.rgb().formatHex8()}function M(){return r(this).formatHsl()}function s(){return this.rgb().formatRgb()}function e(O){var h,T;return O=(O+"").trim().toLowerCase(),(h=d.exec(O))?(T=h[1].length,h=parseInt(h[1],16),T===6?t(h):T===3?new C(h>>8&15|h>>4&240,h>>4&15|h&240,(h&15)<<4|h&15,1):T===8?u(h>>24&255,h>>16&255,h>>8&255,(h&255)/255):T===4?u(h>>12&15|h>>8&240,h>>8&15|h>>4&240,h>>4&15|h&240,((h&15)<<4|h&15)/255):null):(h=K.exec(O))?new C(h[1],h[2],h[3],1):(h=gt.exec(O))?new C(h[1]*255/100,h[2]*255/100,h[3]*255/100,1):(h=xt.exec(O))?u(h[1],h[2],h[3],h[4]):(h=p.exec(O))?u(h[1]*255/100,h[2]*255/100,h[3]*255/100,h[4]):(h=_.exec(O))?m(h[1],h[2]/100,h[3]/100,1):(h=k.exec(O))?m(h[1],h[2]/100,h[3]/100,h[4]):E.hasOwnProperty(O)?t(E[O]):O==="transparent"?new C(NaN,NaN,NaN,0):null}function t(O){return new C(O>>16&255,O>>8&255,O&255,1)}function u(O,h,T,G){return G<=0&&(O=h=T=NaN),new C(O,h,T,G)}function c(O){return O instanceof Tt||(O=e(O)),O?(O=O.rgb(),new C(O.r,O.g,O.b,O.opacity)):new C}function l(O,h,T,G){return arguments.length===1?c(O):new C(O,h,T,G==null?1:G)}function C(O,h,T,G){this.r=+O,this.g=+h,this.b=+T,this.opacity=+G}Ht(C,l,Wt(Tt,{brighter:function(h){return h=h==null?Ut:Math.pow(Ut,h),new C(this.r*h,this.g*h,this.b*h,this.opacity)},darker:function(h){return h=h==null?_t:Math.pow(_t,h),new C(this.r*h,this.g*h,this.b*h,this.opacity)},rgb:function(){return this},clamp:function(){return new C(n(this.r),n(this.g),n(this.b),g(this.opacity))},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:A,formatHex:A,formatHex8:Y,formatRgb:I,toString:I}));function A(){return"#".concat(v(this.r)).concat(v(this.g)).concat(v(this.b))}function Y(){return"#".concat(v(this.r)).concat(v(this.g)).concat(v(this.b)).concat(v((isNaN(this.opacity)?1:this.opacity)*255))}function I(){var O=g(this.opacity);return"".concat(O===1?"rgb(":"rgba(").concat(n(this.r),", ").concat(n(this.g),", ").concat(n(this.b)).concat(O===1?")":", ".concat(O,")"))}function g(O){return isNaN(O)?1:Math.max(0,Math.min(1,O))}function n(O){return Math.max(0,Math.min(255,Math.round(O)||0))}function v(O){return O=n(O),(O<16?"0":"")+O.toString(16)}function m(O,h,T,G){return G<=0?O=h=T=NaN:T<=0||T>=1?O=h=NaN:h<=0&&(O=NaN),new o(O,h,T,G)}function r(O){if(O instanceof o)return new o(O.h,O.s,O.l,O.opacity);if(O instanceof Tt||(O=e(O)),!O)return new o;if(O instanceof o)return O;O=O.rgb();var h=O.r/255,T=O.g/255,G=O.b/255,vt=Math.min(h,T,G),At=Math.max(h,T,G),It=NaN,Et=At-vt,Vt=(At+vt)/2;return Et?(h===At?It=(T-G)/Et+(T<G)*6:T===At?It=(G-h)/Et+2:It=(h-T)/Et+4,Et/=Vt<.5?At+vt:2-At-vt,It*=60):Et=Vt>0&&Vt<1?0:It,new o(It,Et,Vt,O.opacity)}function i(O,h,T,G){return arguments.length===1?r(O):new o(O,h,T,G==null?1:G)}function o(O,h,T,G){this.h=+O,this.s=+h,this.l=+T,this.opacity=+G}Ht(o,i,Wt(Tt,{brighter:function(h){return h=h==null?Ut:Math.pow(Ut,h),new o(this.h,this.s,this.l*h,this.opacity)},darker:function(h){return h=h==null?_t:Math.pow(_t,h),new o(this.h,this.s,this.l*h,this.opacity)},rgb:function(){var h=this.h%360+(this.h<0)*360,T=isNaN(h)||isNaN(this.s)?0:this.s,G=this.l,vt=G+(G<.5?G:1-G)*T,At=2*G-vt;return new C(V(h>=240?h-240:h+120,At,vt),V(h,At,vt),V(h<120?h+240:h-120,At,vt),this.opacity)},clamp:function(){return new o(P(this.h),F(this.s),F(this.l),g(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 h=g(this.opacity);return"".concat(h===1?"hsl(":"hsla(").concat(P(this.h),", ").concat(F(this.s)*100,"%, ").concat(F(this.l)*100,"%").concat(h===1?")":", ".concat(h,")"))}}));function P(O){return O=(O||0)%360,O<0?O+360:O}function F(O){return Math.max(0,Math.min(1,O||0))}function V(O,h,T){return(O<60?h+(T-h)*O/60:O<180?T:O<240?h+(T-h)*(240-O)/60:h)*255}function q(O,h,T,G,vt){var At=O*O,It=At*O;return((1-3*O+3*At-It)*h+(4-6*At+3*It)*T+(1+3*O+3*At-3*It)*G+It*vt)/6}function rt(O){var h=O.length-1;return function(T){var G=T<=0?T=0:T>=1?(T=1,h-1):Math.floor(T*h),vt=O[G],At=O[G+1],It=G>0?O[G-1]:2*vt-At,Et=G<h-1?O[G+2]:2*At-vt;return q((T-G/h)*h,It,vt,At,Et)}}function et(O){var h=O.length;return function(T){var G=Math.floor(((T%=1)<0?++T:T)*h),vt=O[(G+h-1)%h],At=O[G%h],It=O[(G+1)%h],Et=O[(G+2)%h];return q((T-G/h)*h,vt,At,It,Et)}}var mt=function(O){return function(){return O}};function pt(O,h){return function(T){return O+T*h}}function bt(O,h,T){return O=Math.pow(O,T),h=Math.pow(h,T)-O,T=1/T,function(G){return Math.pow(O+G*h,T)}}function Ft(O,h){var T=h-O;return T?pt(O,T>180||T<-180?T-360*Math.round(T/360):T):constant(isNaN(O)?h:O)}function Ct(O){return(O=+O)==1?Bt:function(h,T){return T-h?bt(h,T,O):mt(isNaN(h)?T:h)}}function Bt(O,h){var T=h-O;return T?pt(O,T):mt(isNaN(O)?h:O)}var Lt=function O(h){var T=Ct(h);function G(vt,At){var It=T((vt=l(vt)).r,(At=l(At)).r),Et=T(vt.g,At.g),Vt=T(vt.b,At.b),tr=Bt(vt.opacity,At.opacity);return function(f){return vt.r=It(f),vt.g=Et(f),vt.b=Vt(f),vt.opacity=tr(f),vt+""}}return G.gamma=O,G}(1);function Nt(O){return function(h){var T=h.length,G=new Array(T),vt=new Array(T),At=new Array(T),It,Et;for(It=0;It<T;++It)Et=l(h[It]),G[It]=Et.r||0,vt[It]=Et.g||0,At[It]=Et.b||0;return G=O(G),vt=O(vt),At=O(At),Et.opacity=1,function(Vt){return Et.r=G(Vt),Et.g=vt(Vt),Et.b=At(Vt),Et+""}}}var Dt=Nt(rt),Rt=Nt(et);function Zt(O,h){h||(h=[]);var T=O?Math.min(h.length,O.length):0,G=h.slice(),vt;return function(At){for(vt=0;vt<T;++vt)G[vt]=O[vt]*(1-At)+h[vt]*At;return G}}function Gt(O){return ArrayBuffer.isView(O)&&!(O instanceof DataView)}function zt(O,h){return(Gt(h)?Zt:Qt)(O,h)}function Qt(O,h){var T=h?h.length:0,G=O?Math.min(T,O.length):0,vt=new Array(G),At=new Array(T),It;for(It=0;It<G;++It)vt[It]=ur(O[It],h[It]);for(;It<T;++It)At[It]=h[It];return function(Et){for(It=0;It<G;++It)At[It]=vt[It](Et);return At}}function $t(O,h){var T=new Date;return O=+O,h=+h,function(G){return T.setTime(O*(1-G)+h*G),T}}function er(O,h){return O=+O,h=+h,function(T){return O*(1-T)+h*T}}function or(O,h){var T={},G={},vt;(O===null||Pt(O)!=="object")&&(O={}),(h===null||Pt(h)!=="object")&&(h={});for(vt in h)vt in O?T[vt]=ur(O[vt],h[vt]):G[vt]=h[vt];return function(At){for(vt in T)G[vt]=T[vt](At);return G}}var nr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,cr=new RegExp(nr.source,"g");function xr(O){return function(){return O}}function dr(O){return function(h){return O(h)+""}}function Cr(O,h){var T=nr.lastIndex=cr.lastIndex=0,G,vt,At,It=-1,Et=[],Vt=[];for(O=O+"",h=h+"";(G=nr.exec(O))&&(vt=cr.exec(h));)(At=vt.index)>T&&(At=h.slice(T,At),Et[It]?Et[It]+=At:Et[++It]=At),(G=G[0])===(vt=vt[0])?Et[It]?Et[It]+=vt:Et[++It]=vt:(Et[++It]=null,Vt.push({i:It,x:er(G,vt)})),T=cr.lastIndex;return T<h.length&&(At=h.slice(T),Et[It]?Et[It]+=At:Et[++It]=At),Et.length<2?Vt[0]?dr(Vt[0].x):xr(h):(h=Vt.length,function(tr){for(var f=0,x;f<h;++f)Et[(x=Vt[f]).i]=x.x(tr);return Et.join("")})}function ur(O,h){var T=Pt(h),G;return h==null||T==="boolean"?mt(h):(T==="number"?er:T==="string"?(G=e(h))?(h=G,Lt):Cr:h instanceof e?Lt:h instanceof Date?$t:Gt(h)?Zt:Array.isArray(h)?Qt:typeof h.valueOf!="function"&&typeof h.toString!="function"||isNaN(h)?or:er)(O,h)}var vr=H(66143),fr=H(37925),sr=function(O){return["fill","stroke","fillStyle","strokeStyle"].includes(O)},wr=function(O){return/^[r,R,L,l]{1}[\s]*\(/.test(O)},Er=[1,0,0,0,1,0,0,0,1];function Pr(O,h,T){var G={},vt=h.fromAttrs,At=h.toAttrs;if(!O.destroyed){var It;for(var Et in At)if(!(0,ht.isEqual)(vt[Et],At[Et]))if(Et==="path"){var Vt=At[Et],tr=vt[Et];Vt.length>tr.length?(Vt=fr.parsePathString(At[Et]),tr=fr.parsePathString(vt[Et]),tr=fr.fillPathByDiff(tr,Vt),tr=fr.formatPath(tr,Vt),h.fromAttrs.path=tr,h.toAttrs.path=Vt):h.pathFormatted||(Vt=fr.parsePathString(At[Et]),tr=fr.parsePathString(vt[Et]),tr=fr.formatPath(tr,Vt),h.fromAttrs.path=tr,h.toAttrs.path=Vt,h.pathFormatted=!0),G[Et]=[];for(var f=0;f<Vt.length;f++){for(var x=Vt[f],D=tr[f],z=[],U=0;U<x.length;U++)(0,ht.isNumber)(x[U])&&D&&(0,ht.isNumber)(D[U])?(It=ur(D[U],x[U]),z.push(It(T))):z.push(x[U]);G[Et].push(z)}}else if(Et==="matrix"){var lt=zt(vt[Et]||Er,At[Et]||Er),Mt=lt(T);G[Et]=Mt}else sr(Et)&&wr(At[Et])?G[Et]=At[Et]:(0,ht.isFunction)(At[Et])||(It=ur(vt[Et],At[Et]),G[Et]=It(T));O.attr(G)}}function Sr(O,h,T){var G=h.startTime,vt=h.delay;if(T<G+vt||h._paused)return!1;var At,It=h.duration,Et=h.easing,Vt=(0,vr._)(Et);if(T=T-G-h.delay,h.repeat)At=T%It/It,At=Vt(At);else if(At=T/It,At<1)At=Vt(At);else return h.onFrame?O.attr(h.onFrame(1)):O.attr(h.toAttrs),!0;if(h.onFrame){var tr=h.onFrame(At);O.attr(tr)}else Pr(O,h,At);return!1}var Rr=function(){function O(h){this.animators=[],this.current=0,this.timer=null,this.canvas=h}return O.prototype.initTimer=function(){var h=this,T=!1,G,vt,At;this.timer=y(function(It){if(h.current=It,h.animators.length>0){for(var Et=h.animators.length-1;Et>=0;Et--){if(G=h.animators[Et],G.destroyed){h.removeAnimator(Et);continue}if(!G.isAnimatePaused()){vt=G.get("animations");for(var Vt=vt.length-1;Vt>=0;Vt--)At=vt[Vt],T=Sr(G,At,It),T&&(vt.splice(Vt,1),T=!1,At.callback&&At.callback())}vt.length===0&&h.removeAnimator(Et)}var tr=h.canvas.get("autoDraw");tr||h.canvas.draw()}})},O.prototype.addAnimator=function(h){this.animators.push(h)},O.prototype.removeAnimator=function(h){this.animators.splice(h,1)},O.prototype.isAnimating=function(){return!!this.animators.length},O.prototype.stop=function(){this.timer&&this.timer.stop()},O.prototype.stopAllAnimations=function(h){h===void 0&&(h=!0),this.animators.forEach(function(T){T.stopAnimate(h)}),this.animators=[],this.canvas.draw()},O.prototype.getTime=function(){return this.current},O}(),Fr=Rr,Xr=H(79160),Hr=40,Ir=0,Wr=":",br=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Qr(O,h){for(var T in O)if(O.hasOwnProperty(T)&&T.indexOf(Wr+h)>=0)return!0;return!1}function Or(O,h,T){T.name=h,T.target=O,T.currentTarget=O,T.delegateTarget=O,O.emit(h,T)}function Ur(O,h,T){if(T.bubbles){var G=void 0,vt=!1;if(h==="mouseenter"?(G=T.fromShape,vt=!0):h==="mouseleave"&&(vt=!0,G=T.toShape),O.isCanvas()&&vt)return;if(G&&(0,ot.UY)(O,G)){T.bubbles=!1;return}T.name=h,T.currentTarget=O,T.delegateTarget=O,O.emit(h,T)}}var Kr=function(){function O(h){var T=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(G){var vt=G.type;T._triggerEvent(vt,G)},this._onDocumentMove=function(G){var vt=T.canvas,At=vt.get("el");if(At!==G.target&&(T.dragging||T.currentShape)){var It=T._getPointInfo(G);T.dragging&&T._emitEvent("drag",G,It,T.draggingShape)}},this._onDocumentMouseUp=function(G){var vt=T.canvas,At=vt.get("el");if(At!==G.target&&T.dragging){var It=T._getPointInfo(G);T.draggingShape&&T._emitEvent("drop",G,It,null),T._emitEvent("dragend",G,It,T.draggingShape),T._afterDrag(T.draggingShape,It,G)}},this.canvas=h.canvas}return O.prototype.init=function(){this._bindEvents()},O.prototype._bindEvents=function(){var h=this,T=this.canvas.get("el");(0,ot.S6)(br,function(G){T.addEventListener(G,h._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},O.prototype._clearEvents=function(){var h=this,T=this.canvas.get("el");(0,ot.S6)(br,function(G){T.removeEventListener(G,h._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},O.prototype._getEventObj=function(h,T,G,vt,At,It){var Et=new Xr.Z(h,T);return Et.fromShape=At,Et.toShape=It,Et.x=G.x,Et.y=G.y,Et.clientX=G.clientX,Et.clientY=G.clientY,Et.propagationPath.push(vt),Et},O.prototype._getShape=function(h,T){return this.canvas.getShape(h.x,h.y,T)},O.prototype._getPointInfo=function(h){var T=this.canvas,G=T.getClientByEvent(h),vt=T.getPointByEvent(h);return{x:vt.x,y:vt.y,clientX:G.x,clientY:G.y}},O.prototype._triggerEvent=function(h,T){var G=this._getPointInfo(T),vt=this._getShape(G,T),At=this["_on"+h],It=!1;if(At)At.call(this,G,vt,T);else{var Et=this.currentShape;h==="mouseenter"||h==="dragenter"||h==="mouseover"?(this._emitEvent(h,T,G,null,null,vt),vt&&this._emitEvent(h,T,G,vt,null,vt),h==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",T,G,null)):h==="mouseleave"||h==="dragleave"||h==="mouseout"?(It=!0,Et&&this._emitEvent(h,T,G,Et,Et,null),this._emitEvent(h,T,G,null,Et,null),h==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",T,G,null)):this._emitEvent(h,T,G,vt,null,null)}if(It||(this.currentShape=vt),vt&&!vt.get("destroyed")){var Vt=this.canvas,tr=Vt.get("el");tr.style.cursor=vt.attr("cursor")||Vt.get("cursor")}},O.prototype._onmousedown=function(h,T,G){G.button===Ir&&(this.mousedownShape=T,this.mousedownPoint=h,this.mousedownTimeStamp=G.timeStamp),this._emitEvent("mousedown",G,h,T,null,null)},O.prototype._emitMouseoverEvents=function(h,T,G,vt){var At=this.canvas.get("el");G!==vt&&(G&&(this._emitEvent("mouseout",h,T,G,G,vt),this._emitEvent("mouseleave",h,T,G,G,vt),(!vt||vt.get("destroyed"))&&(At.style.cursor=this.canvas.get("cursor"))),vt&&(this._emitEvent("mouseover",h,T,vt,G,vt),this._emitEvent("mouseenter",h,T,vt,G,vt)))},O.prototype._emitDragoverEvents=function(h,T,G,vt,At){vt?(vt!==G&&(G&&this._emitEvent("dragleave",h,T,G,G,vt),this._emitEvent("dragenter",h,T,vt,G,vt)),At||this._emitEvent("dragover",h,T,vt)):G&&this._emitEvent("dragleave",h,T,G,G,vt),At&&this._emitEvent("dragover",h,T,vt)},O.prototype._afterDrag=function(h,T,G){h&&(h.set("capture",!0),this.draggingShape=null),this.dragging=!1;var vt=this._getShape(T,G);vt!==h&&this._emitMouseoverEvents(G,T,h,vt),this.currentShape=vt},O.prototype._onmouseup=function(h,T,G){if(G.button===Ir){var vt=this.draggingShape;this.dragging?(vt&&this._emitEvent("drop",G,h,T),this._emitEvent("dragend",G,h,vt),this._afterDrag(vt,h,G)):(this._emitEvent("mouseup",G,h,T),T===this.mousedownShape&&this._emitEvent("click",G,h,T),this.mousedownShape=null,this.mousedownPoint=null)}},O.prototype._ondragover=function(h,T,G){G.preventDefault();var vt=this.currentShape;this._emitDragoverEvents(G,h,vt,T,!0)},O.prototype._onmousemove=function(h,T,G){var vt=this.canvas,At=this.currentShape,It=this.draggingShape;if(this.dragging)It&&this._emitDragoverEvents(G,h,At,T,!1),this._emitEvent("drag",G,h,It);else{var Et=this.mousedownPoint;if(Et){var Vt=this.mousedownShape,tr=G.timeStamp,f=tr-this.mousedownTimeStamp,x=Et.clientX-h.clientX,D=Et.clientY-h.clientY,z=x*x+D*D;f>120||z>Hr?Vt&&Vt.get("draggable")?(It=this.mousedownShape,It.set("capture",!1),this.draggingShape=It,this.dragging=!0,this._emitEvent("dragstart",G,h,It),this.mousedownShape=null,this.mousedownPoint=null):!Vt&&vt.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",G,h,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(G,h,At,T),this._emitEvent("mousemove",G,h,T)):(this._emitMouseoverEvents(G,h,At,T),this._emitEvent("mousemove",G,h,T))}else this._emitMouseoverEvents(G,h,At,T),this._emitEvent("mousemove",G,h,T)}},O.prototype._emitEvent=function(h,T,G,vt,At,It){var Et=this._getEventObj(h,T,G,vt,At,It);if(vt){Et.shape=vt,Or(vt,h,Et);for(var Vt=vt.getParent();Vt;)Vt.emitDelegation(h,Et),Et.propagationStopped||Ur(Vt,h,Et),Et.propagationPath.push(Vt),Vt=Vt.getParent()}else{var tr=this.canvas;Or(tr,h,Et)}},O.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},O}(),Br=Kr,Lr="px",kr=(0,S.qY)(),Gr=kr&&kr.name==="firefox",Zr=function(O){(0,ft.__extends)(h,O);function h(T){var G=O.call(this,T)||this;return G.initContainer(),G.initDom(),G.initEvents(),G.initTimeline(),G}return h.prototype.getDefaultCfg=function(){var T=O.prototype.getDefaultCfg.call(this);return T.cursor="default",T.supportCSSTransform=!1,T},h.prototype.initContainer=function(){var T=this.get("container");(0,ot.HD)(T)&&(T=document.getElementById(T),this.set("container",T))},h.prototype.initDom=function(){var T=this.createDom();this.set("el",T);var G=this.get("container");G.appendChild(T),this.setDOMSize(this.get("width"),this.get("height"))},h.prototype.initEvents=function(){var T=new Br({canvas:this});T.init(),this.set("eventController",T)},h.prototype.initTimeline=function(){var T=new Fr(this);this.set("timeline",T)},h.prototype.setDOMSize=function(T,G){var vt=this.get("el");ot.jU&&(vt.style.width=T+Lr,vt.style.height=G+Lr)},h.prototype.changeSize=function(T,G){this.setDOMSize(T,G),this.set("width",T),this.set("height",G),this.onCanvasChange("changeSize")},h.prototype.getRenderer=function(){return this.get("renderer")},h.prototype.getCursor=function(){return this.get("cursor")},h.prototype.setCursor=function(T){this.set("cursor",T);var G=this.get("el");ot.jU&&G&&(G.style.cursor=T)},h.prototype.getPointByEvent=function(T){var G=this.get("supportCSSTransform");if(G){if(Gr&&!(0,ot.kK)(T.layerX)&&T.layerX!==T.offsetX)return{x:T.layerX,y:T.layerY};if(!(0,ot.kK)(T.offsetX))return{x:T.offsetX,y:T.offsetY}}var vt=this.getClientByEvent(T),At=vt.x,It=vt.y;return this.getPointByClient(At,It)},h.prototype.getClientByEvent=function(T){var G=T;return T.touches&&(T.type==="touchend"?G=T.changedTouches[0]:G=T.touches[0]),{x:G.clientX,y:G.clientY}},h.prototype.getPointByClient=function(T,G){var vt=this.get("el"),At=vt.getBoundingClientRect();return{x:T-At.left,y:G-At.top}},h.prototype.getClientByPoint=function(T,G){var vt=this.get("el"),At=vt.getBoundingClientRect();return{x:T+At.left,y:G+At.top}},h.prototype.draw=function(){},h.prototype.removeDom=function(){var T=this.get("el");T.parentNode.removeChild(T)},h.prototype.clearEvents=function(){var T=this.get("eventController");T.destroy()},h.prototype.isCanvas=function(){return!0},h.prototype.getParent=function(){return null},h.prototype.destroy=function(){var T=this.get("timeline");this.get("destroyed")||(this.clear(),T&&T.stop(),this.clearEvents(),this.removeDom(),O.prototype.destroy.call(this))},h}(dt.Z),zr=Zr},10888:function(Jt,St,H){"use strict";var ft=H(99938),S=H(7178),dt=H(16089),ot={},ht="_INDEX";function $(j,B){if(j.set("canvas",B),j.isGroup()){var b=j.get("children");b.length&&b.forEach(function(L){$(L,B)})}}function N(j,B){if(j.set("timeline",B),j.isGroup()){var b=j.get("children");b.length&&b.forEach(function(L){N(L,B)})}}function J(j,B){var b=j.getChildren();return b.indexOf(B)>=0}function tt(j,B,b){b===void 0&&(b=!0),b?B.destroy():(B.set("parent",null),B.set("canvas",null)),(0,dt.As)(j.getChildren(),B)}function ct(j){return function(B,b){var L=j(B,b);return L===0?B[ht]-b[ht]:L}}var nt=function(j){(0,ft.__extends)(B,j);function B(){return j!==null&&j.apply(this,arguments)||this}return B.prototype.isCanvas=function(){return!1},B.prototype.getBBox=function(){var b=1/0,L=-1/0,Q=1/0,st=-1/0,at=this.getChildren().filter(function(y){return y.get("visible")&&(!y.isGroup()||y.isGroup()&&y.getChildren().length>0)});at.length>0?(0,dt.S6)(at,function(y){var w=y.getBBox(),X=w.minX,W=w.maxX,ut=w.minY,yt=w.maxY;X<b&&(b=X),W>L&&(L=W),ut<Q&&(Q=ut),yt>st&&(st=yt)}):(b=0,L=0,Q=0,st=0);var R={x:b,y:Q,minX:b,minY:Q,maxX:L,maxY:st,width:L-b,height:st-Q};return R},B.prototype.getCanvasBBox=function(){var b=1/0,L=-1/0,Q=1/0,st=-1/0,at=this.getChildren().filter(function(y){return y.get("visible")&&(!y.isGroup()||y.isGroup()&&y.getChildren().length>0)});at.length>0?(0,dt.S6)(at,function(y){var w=y.getCanvasBBox(),X=w.minX,W=w.maxX,ut=w.minY,yt=w.maxY;X<b&&(b=X),W>L&&(L=W),ut<Q&&(Q=ut),yt>st&&(st=yt)}):(b=0,L=0,Q=0,st=0);var R={x:b,y:Q,minX:b,minY:Q,maxX:L,maxY:st,width:L-b,height:st-Q};return R},B.prototype.getDefaultCfg=function(){var b=j.prototype.getDefaultCfg.call(this);return b.children=[],b},B.prototype.onAttrChange=function(b,L,Q){if(j.prototype.onAttrChange.call(this,b,L,Q),b==="matrix"){var st=this.getTotalMatrix();this._applyChildrenMarix(st)}},B.prototype.applyMatrix=function(b){var L=this.getTotalMatrix();j.prototype.applyMatrix.call(this,b);var Q=this.getTotalMatrix();Q!==L&&this._applyChildrenMarix(Q)},B.prototype._applyChildrenMarix=function(b){var L=this.getChildren();(0,dt.S6)(L,function(Q){Q.applyMatrix(b)})},B.prototype.addShape=function(){for(var b=[],L=0;L<arguments.length;L++)b[L]=arguments[L];var Q=b[0],st=b[1];(0,dt.Kn)(Q)?st=Q:st.type=Q;var at=ot[st.type];at||(at=(0,dt.jC)(st.type),ot[st.type]=at);var R=this.getShapeBase(),y=new R[at](st);return this.add(y),y},B.prototype.addGroup=function(){for(var b=[],L=0;L<arguments.length;L++)b[L]=arguments[L];var Q=b[0],st=b[1],at;if((0,dt.mf)(Q))st?at=new Q(st):at=new Q({parent:this});else{var R=Q||{},y=this.getGroupBase();at=new y(R)}return this.add(at),at},B.prototype.getCanvas=function(){var b;return this.isCanvas()?b=this:b=this.get("canvas"),b},B.prototype.getShape=function(b,L,Q){if(!(0,dt.pP)(this))return null;var st=this.getChildren(),at;if(this.isCanvas())at=this._findShape(st,b,L,Q);else{var R=[b,L,1];R=this.invertFromMatrix(R),this.isClipped(R[0],R[1])||(at=this._findShape(st,R[0],R[1],Q))}return at},B.prototype._findShape=function(b,L,Q,st){for(var at=null,R=b.length-1;R>=0;R--){var y=b[R];if((0,dt.pP)(y)&&(y.isGroup()?at=y.getShape(L,Q,st):y.isHit(L,Q)&&(at=y)),at)break}return at},B.prototype.add=function(b){var L=this.getCanvas(),Q=this.getChildren(),st=this.get("timeline"),at=b.getParent();at&&tt(at,b,!1),b.set("parent",this),L&&$(b,L),st&&N(b,st),Q.push(b),b.onCanvasChange("add"),this._applyElementMatrix(b)},B.prototype._applyElementMatrix=function(b){var L=this.getTotalMatrix();L&&b.applyMatrix(L)},B.prototype.getChildren=function(){return this.get("children")},B.prototype.sort=function(){var b=this.getChildren();(0,dt.S6)(b,function(L,Q){return L[ht]=Q,L}),b.sort(ct(function(L,Q){return L.get("zIndex")-Q.get("zIndex")})),this.onCanvasChange("sort")},B.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var b=this.getChildren(),L=b.length-1;L>=0;L--)b[L].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},B.prototype.destroy=function(){this.get("destroyed")||(this.clear(),j.prototype.destroy.call(this))},B.prototype.getFirst=function(){return this.getChildByIndex(0)},B.prototype.getLast=function(){var b=this.getChildren();return this.getChildByIndex(b.length-1)},B.prototype.getChildByIndex=function(b){var L=this.getChildren();return L[b]},B.prototype.getCount=function(){var b=this.getChildren();return b.length},B.prototype.contain=function(b){var L=this.getChildren();return L.indexOf(b)>-1},B.prototype.removeChild=function(b,L){L===void 0&&(L=!0),this.contain(b)&&b.remove(L)},B.prototype.findAll=function(b){var L=[],Q=this.getChildren();return(0,dt.S6)(Q,function(st){b(st)&&L.push(st),st.isGroup()&&(L=L.concat(st.findAll(b)))}),L},B.prototype.find=function(b){var L=null,Q=this.getChildren();return(0,dt.S6)(Q,function(st){if(b(st)?L=st:st.isGroup()&&(L=st.find(b)),L)return!1}),L},B.prototype.findById=function(b){return this.find(function(L){return L.get("id")===b})},B.prototype.findByClassName=function(b){return this.find(function(L){return L.get("className")===b})},B.prototype.findAllByName=function(b){return this.findAll(function(L){return L.get("name")===b})},B}(S.Z);St.Z=nt},7178:function(Jt,St,H){"use strict";var ft=H(99938),S=H(13526),dt=H(67516),ot=H(16089),ht=H(71676),$=H(92561),N=dt.vs,J="matrix",tt=["zIndex","capture","visible","type"],ct=["repeat"],nt=":",j="*";function B(at){for(var R=[],y=0;y<at.length;y++)(0,S.isArray)(at[y])?R.push([].concat(at[y])):R.push(at[y]);return R}function b(at,R){var y={},w=R.attrs;for(var X in at)y[X]=w[X];return y}function L(at,R){var y={},w=R.attr();return(0,S.each)(at,function(X,W){ct.indexOf(W)===-1&&!(0,S.isEqual)(w[W],X)&&(y[W]=X)}),y}function Q(at,R){if(R.onFrame)return at;var y=R.startTime,w=R.delay,X=R.duration,W=Object.prototype.hasOwnProperty;return(0,S.each)(at,function(ut){y+w<ut.startTime+ut.delay+ut.duration&&X>ut.delay&&(0,S.each)(R.toAttrs,function(yt,Pt){W.call(ut.toAttrs,Pt)&&(delete ut.toAttrs[Pt],delete ut.fromAttrs[Pt])})}),at}var st=function(at){(0,ft.__extends)(R,at);function R(y){var w=at.call(this,y)||this;w.attrs={};var X=w.getDefaultAttrs();return(0,S.mix)(X,y.attrs),w.attrs=X,w.initAttrs(X),w.initAnimate(),w}return R.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},R.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},R.prototype.onCanvasChange=function(y){},R.prototype.initAttrs=function(y){},R.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},R.prototype.isGroup=function(){return!1},R.prototype.getParent=function(){return this.get("parent")},R.prototype.getCanvas=function(){return this.get("canvas")},R.prototype.attr=function(){for(var y,w=[],X=0;X<arguments.length;X++)w[X]=arguments[X];var W=w[0],ut=w[1];if(!W)return this.attrs;if((0,S.isObject)(W)){for(var yt in W)this.setAttr(yt,W[yt]);return this.afterAttrsChange(W),this}return w.length===2?(this.setAttr(W,ut),this.afterAttrsChange((y={},y[W]=ut,y)),this):this.attrs[W]},R.prototype.isClipped=function(y,w){var X=this.getClip();return X&&!X.isHit(y,w)},R.prototype.setAttr=function(y,w){var X=this.attrs[y];X!==w&&(this.attrs[y]=w,this.onAttrChange(y,w,X))},R.prototype.onAttrChange=function(y,w,X){y==="matrix"&&this.set("totalMatrix",null)},R.prototype.afterAttrsChange=function(y){if(this.cfg.isClipShape){var w=this.cfg.applyTo;w&&w.onCanvasChange("clip")}else this.onCanvasChange("attr")},R.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},R.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},R.prototype.setZIndex=function(y){this.set("zIndex",y);var w=this.getParent();return w&&w.sort(),this},R.prototype.toFront=function(){var y=this.getParent();if(y){var w=y.getChildren(),X=this.get("el"),W=w.indexOf(this);w.splice(W,1),w.push(this),this.onCanvasChange("zIndex")}},R.prototype.toBack=function(){var y=this.getParent();if(y){var w=y.getChildren(),X=this.get("el"),W=w.indexOf(this);w.splice(W,1),w.unshift(this),this.onCanvasChange("zIndex")}},R.prototype.remove=function(y){y===void 0&&(y=!0);var w=this.getParent();w?((0,ot.As)(w.getChildren(),this),w.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),y&&this.destroy()},R.prototype.resetMatrix=function(){this.attr(J,this.getDefaultMatrix()),this.onCanvasChange("matrix")},R.prototype.getMatrix=function(){return this.attr(J)},R.prototype.setMatrix=function(y){this.attr(J,y),this.onCanvasChange("matrix")},R.prototype.getTotalMatrix=function(){var y=this.cfg.totalMatrix;if(!y){var w=this.attr("matrix"),X=this.cfg.parentMatrix;X&&w?y=(0,ht.xq)(X,w):y=w||X,this.set("totalMatrix",y)}return y},R.prototype.applyMatrix=function(y){var w=this.attr("matrix"),X=null;y&&w?X=(0,ht.xq)(y,w):X=w||y,this.set("totalMatrix",X),this.set("parentMatrix",y)},R.prototype.getDefaultMatrix=function(){return null},R.prototype.applyToMatrix=function(y){var w=this.attr("matrix");return w?(0,ht.rG)(w,y):y},R.prototype.invertFromMatrix=function(y){var w=this.attr("matrix");if(w){var X=(0,ht.U_)(w);if(X)return(0,ht.rG)(X,y)}return y},R.prototype.setClip=function(y){var w=this.getCanvas(),X=null;if(y){var W=this.getShapeBase(),ut=(0,S.upperFirst)(y.type),yt=W[ut];yt&&(X=new yt({type:y.type,isClipShape:!0,applyTo:this,attrs:y.attrs,canvas:w}))}return this.set("clipShape",X),this.onCanvasChange("clip"),X},R.prototype.getClip=function(){var y=this.cfg.clipShape;return y||null},R.prototype.clone=function(){var y=this,w=this.attrs,X={};(0,S.each)(w,function(yt,Pt){(0,S.isArray)(w[Pt])?X[Pt]=B(w[Pt]):X[Pt]=w[Pt]});var W=this.constructor,ut=new W({attrs:X});return(0,S.each)(tt,function(yt){ut.set(yt,y.get(yt))}),ut},R.prototype.destroy=function(){var y=this.destroyed;y||(this.attrs={},at.prototype.destroy.call(this))},R.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},R.prototype.animate=function(){for(var y=[],w=0;w<arguments.length;w++)y[w]=arguments[w];if(!(!this.get("timeline")&&!this.get("canvas"))){this.set("animating",!0);var X=this.get("timeline");X||(X=this.get("canvas").get("timeline"),this.set("timeline",X));var W=this.get("animations")||[];X.timer||X.initTimer();var ut=y[0],yt=y[1],Pt=y[2],Ht=Pt===void 0?"easeLinear":Pt,Wt=y[3],Tt=Wt===void 0?S.noop:Wt,_t=y[4],Ut=_t===void 0?0:_t,Yt,Ot,a,d,K;(0,S.isFunction)(ut)?(Yt=ut,ut={}):(0,S.isObject)(ut)&&ut.onFrame&&(Yt=ut.onFrame,Ot=ut.repeat),(0,S.isObject)(yt)?(K=yt,yt=K.duration,Ht=K.easing||"easeLinear",Ut=K.delay||0,Ot=K.repeat||Ot||!1,Tt=K.callback||S.noop,a=K.pauseCallback||S.noop,d=K.resumeCallback||S.noop):((0,S.isNumber)(Tt)&&(Ut=Tt,Tt=null),(0,S.isFunction)(Ht)?(Tt=Ht,Ht="easeLinear"):Ht=Ht||"easeLinear");var gt=L(ut,this),xt={fromAttrs:b(gt,this),toAttrs:gt,duration:yt,easing:Ht,repeat:Ot,callback:Tt,pauseCallback:a,resumeCallback:d,delay:Ut,startTime:X.getTime(),id:(0,S.uniqueId)(),onFrame:Yt,pathFormatted:!1};W.length>0?W=Q(W,xt):X.addAnimator(this),W.push(xt),this.set("animations",W),this.set("_pause",{isPaused:!1})}},R.prototype.stopAnimate=function(y){var w=this;y===void 0&&(y=!0);var X=this.get("animations");(0,S.each)(X,function(W){y&&(W.onFrame?w.attr(W.onFrame(1)):w.attr(W.toAttrs)),W.callback&&W.callback()}),this.set("animating",!1),this.set("animations",[])},R.prototype.pauseAnimate=function(){var y=this.get("timeline"),w=this.get("animations"),X=y.getTime();return(0,S.each)(w,function(W){W._paused=!0,W._pauseTime=X,W.pauseCallback&&W.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:X}),this},R.prototype.resumeAnimate=function(){var y=this.get("timeline"),w=y.getTime(),X=this.get("animations"),W=this.get("_pause").pauseTime;return(0,S.each)(X,function(ut){ut.startTime=ut.startTime+(w-W),ut._paused=!1,ut._pauseTime=null,ut.resumeCallback&&ut.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",X),this},R.prototype.emitDelegation=function(y,w){var X=this,W=w.propagationPath,ut=this.getEvents(),yt;y==="mouseenter"?yt=w.fromShape:y==="mouseleave"&&(yt=w.toShape);for(var Pt=function(_t){var Ut=W[_t],Yt=Ut.get("name");if(Yt){if((Ut.isGroup()||Ut.isCanvas&&Ut.isCanvas())&&yt&&(0,ot.UY)(Ut,yt))return"break";(0,S.isArray)(Yt)?(0,S.each)(Yt,function(Ot){X.emitDelegateEvent(Ut,Ot,w)}):Ht.emitDelegateEvent(Ut,Yt,w)}},Ht=this,Wt=0;Wt<W.length;Wt++){var Tt=Pt(Wt);if(Tt==="break")break}},R.prototype.emitDelegateEvent=function(y,w,X){var W=this.getEvents(),ut=w+nt+X.type;(W[ut]||W[j])&&(X.name=ut,X.currentTarget=y,X.delegateTarget=this,X.delegateObject=y.get("delegateObject"),this.emit(ut,X))},R.prototype.translate=function(y,w){y===void 0&&(y=0),w===void 0&&(w=0);var X=this.getMatrix(),W=N(X,[["t",y,w]]);return this.setMatrix(W),this},R.prototype.move=function(y,w){var X=this.attr("x")||0,W=this.attr("y")||0;return this.translate(y-X,w-W),this},R.prototype.moveTo=function(y,w){return this.move(y,w)},R.prototype.scale=function(y,w){var X=this.getMatrix(),W=N(X,[["s",y,w||y]]);return this.setMatrix(W),this},R.prototype.rotate=function(y){var w=this.getMatrix(),X=N(w,[["r",y]]);return this.setMatrix(X),this},R.prototype.rotateAtStart=function(y){var w=this.attr(),X=w.x,W=w.y,ut=this.getMatrix(),yt=N(ut,[["t",-X,-W],["r",y],["t",X,W]]);return this.setMatrix(yt),this},R.prototype.rotateAtPoint=function(y,w,X){var W=this.getMatrix(),ut=N(W,[["t",-y,-w],["r",X],["t",y,w]]);return this.setMatrix(ut),this},R}($.Z);St.Z=st},92381:function(Jt,St,H){"use strict";var ft=H(99938),S=H(10888),dt=function(ot){(0,ft.__extends)(ht,ot);function ht(){return ot!==null&&ot.apply(this,arguments)||this}return ht.prototype.isGroup=function(){return!0},ht.prototype.isEntityGroup=function(){return!1},ht.prototype.clone=function(){for(var $=ot.prototype.clone.call(this),N=this.getChildren(),J=0;J<N.length;J++){var tt=N[J];$.add(tt.clone())}return $},ht}(S.Z);St.Z=dt},37253:function(Jt,St,H){"use strict";var ft=H(99938),S=H(7178),dt=H(71676),ot=function(ht){(0,ft.__extends)($,ht);function $(N){return ht.call(this,N)||this}return $.prototype._isInBBox=function(N,J){var tt=this.getBBox();return tt.minX<=N&&tt.maxX>=N&&tt.minY<=J&&tt.maxY>=J},$.prototype.afterAttrsChange=function(N){ht.prototype.afterAttrsChange.call(this,N),this.clearCacheBBox()},$.prototype.getBBox=function(){var N=this.cfg.bbox;return N||(N=this.calculateBBox(),this.set("bbox",N)),N},$.prototype.getCanvasBBox=function(){var N=this.cfg.canvasBBox;return N||(N=this.calculateCanvasBBox(),this.set("canvasBBox",N)),N},$.prototype.applyMatrix=function(N){ht.prototype.applyMatrix.call(this,N),this.set("canvasBBox",null)},$.prototype.calculateCanvasBBox=function(){var N=this.getBBox(),J=this.getTotalMatrix(),tt=N.minX,ct=N.minY,nt=N.maxX,j=N.maxY;if(J){var B=(0,dt.rG)(J,[N.minX,N.minY]),b=(0,dt.rG)(J,[N.maxX,N.minY]),L=(0,dt.rG)(J,[N.minX,N.maxY]),Q=(0,dt.rG)(J,[N.maxX,N.maxY]);tt=Math.min(B[0],b[0],L[0],Q[0]),nt=Math.max(B[0],b[0],L[0],Q[0]),ct=Math.min(B[1],b[1],L[1],Q[1]),j=Math.max(B[1],b[1],L[1],Q[1])}var st=this.attrs;if(st.shadowColor){var at=st.shadowBlur,R=at===void 0?0:at,y=st.shadowOffsetX,w=y===void 0?0:y,X=st.shadowOffsetY,W=X===void 0?0:X,ut=tt-R+w,yt=nt+R+w,Pt=ct-R+W,Ht=j+R+W;tt=Math.min(tt,ut),nt=Math.max(nt,yt),ct=Math.min(ct,Pt),j=Math.max(j,Ht)}return{x:tt,y:ct,minX:tt,minY:ct,maxX:nt,maxY:j,width:nt-tt,height:j-ct}},$.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},$.prototype.isClipShape=function(){return this.get("isClipShape")},$.prototype.isInShape=function(N,J){return!1},$.prototype.isOnlyHitBox=function(){return!1},$.prototype.isHit=function(N,J){var tt=this.get("startArrowShape"),ct=this.get("endArrowShape"),nt=[N,J,1];nt=this.invertFromMatrix(nt);var j=nt[0],B=nt[1],b=this._isInBBox(j,B);return this.isOnlyHitBox()?b:!!(b&&!this.isClipped(j,B)&&(this.isInShape(j,B)||tt&&tt.isHit(j,B)||ct&&ct.isHit(j,B)))},$}(S.Z);St.Z=ot},66143:function(Jt,St,H){"use strict";H.d(St,{_:function(){return u},C:function(){return c}});var ft={};H.r(ft),H.d(ft,{easeBack:function(){return k},easeBackIn:function(){return p},easeBackInOut:function(){return k},easeBackOut:function(){return _},easeBounce:function(){return K},easeBounceIn:function(){return d},easeBounceInOut:function(){return gt},easeBounceOut:function(){return K},easeCircle:function(){return ut},easeCircleIn:function(){return X},easeCircleInOut:function(){return ut},easeCircleOut:function(){return W},easeCubic:function(){return J},easeCubicIn:function(){return $},easeCubicInOut:function(){return J},easeCubicOut:function(){return N},easeElastic:function(){return s},easeElasticIn:function(){return M},easeElasticInOut:function(){return e},easeElasticOut:function(){return s},easeExp:function(){return w},easeExpIn:function(){return R},easeExpInOut:function(){return w},easeExpOut:function(){return y},easeLinear:function(){return S},easePoly:function(){return j},easePolyIn:function(){return ct},easePolyInOut:function(){return j},easePolyOut:function(){return nt},easeQuad:function(){return ht},easeQuadIn:function(){return dt},easeQuadInOut:function(){return ht},easeQuadOut:function(){return ot},easeSin:function(){return st},easeSinIn:function(){return L},easeSinInOut:function(){return st},easeSinOut:function(){return Q}});function S(l){return+l}function dt(l){return l*l}function ot(l){return l*(2-l)}function ht(l){return((l*=2)<=1?l*l:--l*(2-l)+1)/2}function $(l){return l*l*l}function N(l){return--l*l*l+1}function J(l){return((l*=2)<=1?l*l*l:(l-=2)*l*l+2)/2}var tt=3,ct=function l(C){C=+C;function A(Y){return Math.pow(Y,C)}return A.exponent=l,A}(tt),nt=function l(C){C=+C;function A(Y){return 1-Math.pow(1-Y,C)}return A.exponent=l,A}(tt),j=function l(C){C=+C;function A(Y){return((Y*=2)<=1?Math.pow(Y,C):2-Math.pow(2-Y,C))/2}return A.exponent=l,A}(tt),B=Math.PI,b=B/2;function L(l){return+l==1?1:1-Math.cos(l*b)}function Q(l){return Math.sin(l*b)}function st(l){return(1-Math.cos(B*l))/2}function at(l){return(Math.pow(2,-10*l)-.0009765625)*1.0009775171065494}function R(l){return at(1-+l)}function y(l){return 1-at(l)}function w(l){return((l*=2)<=1?at(1-l):2-at(l-1))/2}function X(l){return 1-Math.sqrt(1-l*l)}function W(l){return Math.sqrt(1- --l*l)}function ut(l){return((l*=2)<=1?1-Math.sqrt(1-l*l):Math.sqrt(1-(l-=2)*l)+1)/2}var yt=4/11,Pt=6/11,Ht=8/11,Wt=3/4,Tt=9/11,_t=10/11,Ut=15/16,Yt=21/22,Ot=63/64,a=1/yt/yt;function d(l){return 1-K(1-l)}function K(l){return(l=+l)<yt?a*l*l:l<Ht?a*(l-=Pt)*l+Wt:l<_t?a*(l-=Tt)*l+Ut:a*(l-=Yt)*l+Ot}function gt(l){return((l*=2)<=1?1-K(1-l):K(l-1)+1)/2}var xt=1.70158,p=function l(C){C=+C;function A(Y){return(Y=+Y)*Y*(C*(Y-1)+Y)}return A.overshoot=l,A}(xt),_=function l(C){C=+C;function A(Y){return--Y*Y*((Y+1)*C+Y)+1}return A.overshoot=l,A}(xt),k=function l(C){C=+C;function A(Y){return((Y*=2)<1?Y*Y*((C+1)*Y-C):(Y-=2)*Y*((C+1)*Y+C)+2)/2}return A.overshoot=l,A}(xt),E=2*Math.PI,Z=1,it=.3,M=function l(C,A){var Y=Math.asin(1/(C=Math.max(1,C)))*(A/=E);function I(g){return C*at(- --g)*Math.sin((Y-g)/A)}return I.amplitude=function(g){return l(g,A*E)},I.period=function(g){return l(C,g)},I}(Z,it),s=function l(C,A){var Y=Math.asin(1/(C=Math.max(1,C)))*(A/=E);function I(g){return 1-C*at(g=+g)*Math.sin((g+Y)/A)}return I.amplitude=function(g){return l(g,A*E)},I.period=function(g){return l(C,g)},I}(Z,it),e=function l(C,A){var Y=Math.asin(1/(C=Math.max(1,C)))*(A/=E);function I(g){return((g=g*2-1)<0?C*at(-g)*Math.sin((Y-g)/A):2-C*at(g)*Math.sin((Y+g)/A))/2}return I.amplitude=function(g){return l(g,A*E)},I.period=function(g){return l(C,g)},I}(Z,it),t={};function u(l){return t[l.toLowerCase()]||ft[l]}function c(l,C){t[l.toLowerCase()]=C}},2894:function(Jt,St,H){"use strict";H.d(St,{b:function(){return dt},W:function(){return S}});var ft=new Map;function S(y,w){ft.set(y,w)}function dt(y){return ft.get(y)}function ot(y){var w=y.attr(),X=w.x,W=w.y,ut=w.width,yt=w.height;return{x:X,y:W,width:ut,height:yt}}function ht(y){var w=y.attr(),X=w.x,W=w.y,ut=w.r;return{x:X-ut,y:W-ut,width:ut*2,height:ut*2}}var $=H(86031);function N(y,w){return!y||!w?y||w:{minX:Math.min(y.minX,w.minX),minY:Math.min(y.minY,w.minY),maxX:Math.max(y.maxX,w.maxX),maxY:Math.max(y.maxY,w.maxY)}}function J(y,w){var X=y.get("startArrowShape"),W=y.get("endArrowShape"),ut=null,yt=null;return X&&(ut=X.getCanvasBBox(),w=N(w,ut)),W&&(yt=W.getCanvasBBox(),w=N(w,yt)),w}function tt(y){for(var w=y.attr(),X=w.points,W=[],ut=[],yt=0;yt<X.length;yt++){var Pt=X[yt];W.push(Pt[0]),ut.push(Pt[1])}var Ht=$.Zr.getBBoxByArray(W,ut),Wt=Ht.x,Tt=Ht.y,_t=Ht.width,Ut=Ht.height,Yt={minX:Wt,minY:Tt,maxX:Wt+_t,maxY:Tt+Ut};return Yt=J(y,Yt),{x:Yt.minX,y:Yt.minY,width:Yt.maxX-Yt.minX,height:Yt.maxY-Yt.minY}}function ct(y){for(var w=y.attr(),X=w.points,W=[],ut=[],yt=0;yt<X.length;yt++){var Pt=X[yt];W.push(Pt[0]),ut.push(Pt[1])}return $.Zr.getBBoxByArray(W,ut)}var nt=H(54143);function j(y){var w=y.attr(),X=w.x,W=w.y,ut=w.text,yt=w.fontSize,Pt=w.lineHeight,Ht=w.font;Ht||(Ht=(0,nt.$O)(w));var Wt=(0,nt.mY)(ut,Ht),Tt;if(!Wt)Tt={x:X,y:W,width:0,height:0};else{var _t=w.textAlign,Ut=w.textBaseline,Yt=(0,nt.FE)(ut,yt,Pt),Ot={x:X,y:W-Yt};_t&&(_t==="end"||_t==="right"?Ot.x-=Wt:_t==="center"&&(Ot.x-=Wt/2)),Ut&&(Ut==="top"?Ot.y+=Yt:Ut==="middle"&&(Ot.y+=Yt/2)),Tt={x:Ot.x,y:Ot.y,width:Wt,height:Yt}}return Tt}var B=H(81182),b=H(13526);function L(y,w){for(var X=[],W=[],ut=[],yt=0;yt<y.length;yt++){var Pt=y[yt],Ht=Pt.currentPoint,Wt=Pt.params,Tt=Pt.prePoint,_t=void 0;switch(Pt.command){case"Q":_t=$.lD.box(Tt[0],Tt[1],Wt[1],Wt[2],Wt[3],Wt[4]);break;case"C":_t=$.Ll.box(Tt[0],Tt[1],Wt[1],Wt[2],Wt[3],Wt[4],Wt[5],Wt[6]);break;case"A":var Ut=Pt.arcParams;_t=$.wN.box(Ut.cx,Ut.cy,Ut.rx,Ut.ry,Ut.xRotation,Ut.startAngle,Ut.endAngle);break;default:X.push(Ht[0]),W.push(Ht[1]);break}_t&&(Pt.box=_t,X.push(_t.x,_t.x+_t.width),W.push(_t.y,_t.y+_t.height)),w&&(Pt.command==="L"||Pt.command==="M")&&Pt.prePoint&&Pt.nextPoint&&ut.push(Pt)}X=X.filter(function(gt){return!Number.isNaN(gt)&>!==1/0&>!==-1/0}),W=W.filter(function(gt){return!Number.isNaN(gt)&>!==1/0&>!==-1/0});var Yt=(0,b.min)(X),Ot=(0,b.min)(W),a=(0,b.max)(X),d=(0,b.max)(W);if(ut.length===0)return{x:Yt,y:Ot,width:a-Yt,height:d-Ot};for(var yt=0;yt<ut.length;yt++){var Pt=ut[yt],Ht=Pt.currentPoint,K=void 0;Ht[0]===Yt?(K=Q(Pt,w),Yt=Yt-K.xExtra):Ht[0]===a&&(K=Q(Pt,w),a=a+K.xExtra),Ht[1]===Ot?(K=Q(Pt,w),Ot=Ot-K.yExtra):Ht[1]===d&&(K=Q(Pt,w),d=d+K.yExtra)}return{x:Yt,y:Ot,width:a-Yt,height:d-Ot}}function Q(y,w){var X=y.prePoint,W=y.currentPoint,ut=y.nextPoint,yt=Math.pow(W[0]-X[0],2)+Math.pow(W[1]-X[1],2),Pt=Math.pow(W[0]-ut[0],2)+Math.pow(W[1]-ut[1],2),Ht=Math.pow(X[0]-ut[0],2)+Math.pow(X[1]-ut[1],2),Wt=Math.acos((yt+Pt-Ht)/(2*Math.sqrt(yt)*Math.sqrt(Pt)));if(!Wt||Math.sin(Wt)===0||(0,b.isNumberEqual)(Wt,0))return{xExtra:0,yExtra:0};var Tt=Math.abs(Math.atan2(ut[1]-W[1],ut[0]-W[0])),_t=Math.abs(Math.atan2(ut[0]-W[0],ut[1]-W[1]));Tt=Tt>Math.PI/2?Math.PI-Tt:Tt,_t=_t>Math.PI/2?Math.PI-_t:_t;var Ut={xExtra:Math.cos(Wt/2-Tt)*(w/2*(1/Math.sin(Wt/2)))-w/2||0,yExtra:Math.cos(_t-Wt/2)*(w/2*(1/Math.sin(Wt/2)))-w/2||0};return Ut}function st(y){var w=y.attr(),X=w.path,W=w.stroke,ut=W?w.lineWidth:0,yt=y.get("segments")||(0,B.zx)(X),Pt=L(yt,ut),Ht=Pt.x,Wt=Pt.y,Tt=Pt.width,_t=Pt.height,Ut={minX:Ht,minY:Wt,maxX:Ht+Tt,maxY:Wt+_t};return Ut=J(y,Ut),{x:Ut.minX,y:Ut.minY,width:Ut.maxX-Ut.minX,height:Ut.maxY-Ut.minY}}function at(y){var w=y.attr(),X=w.x1,W=w.y1,ut=w.x2,yt=w.y2,Pt=Math.min(X,ut),Ht=Math.max(X,ut),Wt=Math.min(W,yt),Tt=Math.max(W,yt),_t={minX:Pt,maxX:Ht,minY:Wt,maxY:Tt};return _t=J(y,_t),{x:_t.minX,y:_t.minY,width:_t.maxX-_t.minX,height:_t.maxY-_t.minY}}function R(y){var w=y.attr(),X=w.x,W=w.y,ut=w.rx,yt=w.ry;return{x:X-ut,y:W-yt,width:ut*2,height:yt*2}}S("rect",ot),S("image",ot),S("circle",ht),S("marker",ht),S("polyline",tt),S("polygon",ct),S("text",j),S("path",st),S("line",at),S("ellipse",R)},79160:function(Jt,St){"use strict";var H=function(){function ft(S,dt){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=S,this.name=S,this.originalEvent=dt,this.timeStamp=dt.timeStamp}return ft.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},ft.prototype.stopPropagation=function(){this.propagationStopped=!0},ft.prototype.toString=function(){var S=this.type;return"[Event (type="+S+")]"},ft.prototype.save=function(){},ft.prototype.restore=function(){},ft}();St.Z=H},25099:function(Jt,St,H){"use strict";H.r(St),H.d(St,{AbstractCanvas:function(){return ct.Z},AbstractGroup:function(){return nt.Z},AbstractShape:function(){return j.Z},Base:function(){return tt.Z},Event:function(){return J.Z},PathUtil:function(){return ft},assembleFont:function(){return b.$O},getBBoxMethod:function(){return B.b},getOffScreenContext:function(){return st.L},getTextHeight:function(){return b.FE},invert:function(){return Q.U_},isAllowCapture:function(){return L.pP},multiplyVec2:function(){return Q.rG},registerBBox:function(){return B.W},registerEasing:function(){return at.C},version:function(){return R}});var ft=H(37925),S=H(55530),dt=H.n(S),N={};for(var ot in S)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(ot)<0&&(N[ot]=function(y){return S[y]}.bind(0,ot));H.d(St,N);var ht=H(99303),$=H.n(ht),N={};for(var ot in ht)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(ot)<0&&(N[ot]=function(w){return ht[w]}.bind(0,ot));H.d(St,N);var J=H(79160),tt=H(92561),ct=H(8280),nt=H(92381),j=H(37253),B=H(2894),b=H(54143),L=H(16089),Q=H(71676),st=H(58971),at=H(66143),R="0.5.11"},99303:function(){},55530:function(){},71676:function(Jt,St,H){"use strict";H.d(St,{U_:function(){return dt},rG:function(){return S},xq:function(){return ft}});function ft(ot,ht){var $=[],N=ot[0],J=ot[1],tt=ot[2],ct=ot[3],nt=ot[4],j=ot[5],B=ot[6],b=ot[7],L=ot[8],Q=ht[0],st=ht[1],at=ht[2],R=ht[3],y=ht[4],w=ht[5],X=ht[6],W=ht[7],ut=ht[8];return $[0]=Q*N+st*ct+at*B,$[1]=Q*J+st*nt+at*b,$[2]=Q*tt+st*j+at*L,$[3]=R*N+y*ct+w*B,$[4]=R*J+y*nt+w*b,$[5]=R*tt+y*j+w*L,$[6]=X*N+W*ct+ut*B,$[7]=X*J+W*nt+ut*b,$[8]=X*tt+W*j+ut*L,$}function S(ot,ht){var $=[],N=ht[0],J=ht[1];return $[0]=ot[0]*N+ot[3]*J+ot[6],$[1]=ot[1]*N+ot[4]*J+ot[7],$}function dt(ot){var ht=[],$=ot[0],N=ot[1],J=ot[2],tt=ot[3],ct=ot[4],nt=ot[5],j=ot[6],B=ot[7],b=ot[8],L=b*ct-nt*B,Q=-b*tt+nt*j,st=B*tt-ct*j,at=$*L+N*Q+J*st;return at?(at=1/at,ht[0]=L*at,ht[1]=(-b*N+J*B)*at,ht[2]=(nt*N-J*ct)*at,ht[3]=Q*at,ht[4]=(b*$-J*j)*at,ht[5]=(-nt*$+J*tt)*at,ht[6]=st*at,ht[7]=(-B*$+N*j)*at,ht[8]=(ct*$-N*tt)*at,ht):null}},58971:function(Jt,St,H){"use strict";H.d(St,{L:function(){return S}});var ft=null;function S(){if(!ft){var dt=document.createElement("canvas");dt.width=1,dt.height=1,ft=dt.getContext("2d")}return ft}},37925:function(Jt,St,H){"use strict";H.r(St),H.d(St,{catmullRomToBezier:function(){return $},fillPath:function(){return Ut},fillPathByDiff:function(){return d},formatPath:function(){return xt},intersection:function(){return Ht},parsePathArray:function(){return b},parsePathString:function(){return ht},pathToAbsolute:function(){return J},pathToCurve:function(){return j},rectPath:function(){return y}});var ft=H(13526),S=`
|
|
\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,dt=new RegExp("([a-z])["+S+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+S+"]*,?["+S+"]*)+)","ig"),ot=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+S+"]*,?["+S+"]*","ig"),ht=function(p){if(!p)return null;if((0,ft.isArray)(p))return p;var _={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},k=[];return String(p).replace(dt,function(E,Z,it){var M=[],s=Z.toLowerCase();if(it.replace(ot,function(e,t){t&&M.push(+t)}),s==="m"&&M.length>2&&(k.push([Z].concat(M.splice(0,2))),s="l",Z=Z==="m"?"l":"L"),s==="o"&&M.length===1&&k.push([Z,M[0]]),s==="r")k.push([Z].concat(M));else for(;M.length>=_[s]&&(k.push([Z].concat(M.splice(0,_[s]))),!!_[s]););return p}),k},$=function(p,_){for(var k=[],E=0,Z=p.length;Z-2*!_>E;E+=2){var it=[{x:+p[E-2],y:+p[E-1]},{x:+p[E],y:+p[E+1]},{x:+p[E+2],y:+p[E+3]},{x:+p[E+4],y:+p[E+5]}];_?E?Z-4===E?it[3]={x:+p[0],y:+p[1]}:Z-2===E&&(it[2]={x:+p[0],y:+p[1]},it[3]={x:+p[2],y:+p[3]}):it[0]={x:+p[Z-2],y:+p[Z-1]}:Z-4===E?it[3]=it[2]:E||(it[0]={x:+p[E],y:+p[E+1]}),k.push(["C",(-it[0].x+6*it[1].x+it[2].x)/6,(-it[0].y+6*it[1].y+it[2].y)/6,(it[1].x+6*it[2].x-it[3].x)/6,(it[1].y+6*it[2].y-it[3].y)/6,it[2].x,it[2].y])}return k},N=function(p,_,k,E,Z){var it=[];if(Z===null&&E===null&&(E=k),p=+p,_=+_,k=+k,E=+E,Z!==null){var M=Math.PI/180,s=p+k*Math.cos(-E*M),e=p+k*Math.cos(-Z*M),t=_+k*Math.sin(-E*M),u=_+k*Math.sin(-Z*M);it=[["M",s,t],["A",k,k,0,+(Z-E>180),0,e,u]]}else it=[["M",p,_],["m",0,-E],["a",k,E,0,1,1,0,2*E],["a",k,E,0,1,1,0,-2*E],["z"]];return it},J=function(p){if(p=ht(p),!p||!p.length)return[["M",0,0]];var _=[],k=0,E=0,Z=0,it=0,M=0,s,e;p[0][0]==="M"&&(k=+p[0][1],E=+p[0][2],Z=k,it=E,M++,_[0]=["M",k,E]);for(var t=p.length===3&&p[0][0]==="M"&&p[1][0].toUpperCase()==="R"&&p[2][0].toUpperCase()==="Z",u=void 0,c=void 0,l=M,C=p.length;l<C;l++){if(_.push(u=[]),c=p[l],s=c[0],s!==s.toUpperCase())switch(u[0]=s.toUpperCase(),u[0]){case"A":u[1]=c[1],u[2]=c[2],u[3]=c[3],u[4]=c[4],u[5]=c[5],u[6]=+c[6]+k,u[7]=+c[7]+E;break;case"V":u[1]=+c[1]+E;break;case"H":u[1]=+c[1]+k;break;case"R":e=[k,E].concat(c.slice(1));for(var A=2,Y=e.length;A<Y;A++)e[A]=+e[A]+k,e[++A]=+e[A]+E;_.pop(),_=_.concat($(e,t));break;case"O":_.pop(),e=N(k,E,c[1],c[2]),e.push(e[0]),_=_.concat(e);break;case"U":_.pop(),_=_.concat(N(k,E,c[1],c[2],c[3])),u=["U"].concat(_[_.length-1].slice(-2));break;case"M":Z=+c[1]+k,it=+c[2]+E;break;default:for(var A=1,Y=c.length;A<Y;A++)u[A]=+c[A]+(A%2?k:E)}else if(s==="R")e=[k,E].concat(c.slice(1)),_.pop(),_=_.concat($(e,t)),u=["R"].concat(c.slice(-2));else if(s==="O")_.pop(),e=N(k,E,c[1],c[2]),e.push(e[0]),_=_.concat(e);else if(s==="U")_.pop(),_=_.concat(N(k,E,c[1],c[2],c[3])),u=["U"].concat(_[_.length-1].slice(-2));else for(var I=0,g=c.length;I<g;I++)u[I]=c[I];if(s=s.toUpperCase(),s!=="O")switch(u[0]){case"Z":k=+Z,E=+it;break;case"H":k=u[1];break;case"V":E=u[1];break;case"M":Z=u[u.length-2],it=u[u.length-1];break;default:k=u[u.length-2],E=u[u.length-1]}}return _},tt=function(p,_,k,E){return[p,_,k,E,k,E]},ct=function(p,_,k,E,Z,it){var M=.3333333333333333,s=2/3;return[M*p+s*k,M*_+s*E,M*Z+s*k,M*it+s*E,Z,it]},nt=function(p,_,k,E,Z,it,M,s,e,t){k===E&&(k+=1);var u=Math.PI*120/180,c=Math.PI/180*(+Z||0),l=[],C,A,Y,I,g,n=function(Qt,$t,er){var or=Qt*Math.cos(er)-$t*Math.sin(er),nr=Qt*Math.sin(er)+$t*Math.cos(er);return{x:or,y:nr}};if(t)A=t[0],Y=t[1],I=t[2],g=t[3];else{C=n(p,_,-c),p=C.x,_=C.y,C=n(s,e,-c),s=C.x,e=C.y,p===s&&_===e&&(s+=1,e+=1);var v=(p-s)/2,m=(_-e)/2,r=v*v/(k*k)+m*m/(E*E);r>1&&(r=Math.sqrt(r),k=r*k,E=r*E);var i=k*k,o=E*E,P=(it===M?-1:1)*Math.sqrt(Math.abs((i*o-i*m*m-o*v*v)/(i*m*m+o*v*v)));I=P*k*m/E+(p+s)/2,g=P*-E*v/k+(_+e)/2,A=Math.asin(((_-g)/E).toFixed(9)),Y=Math.asin(((e-g)/E).toFixed(9)),A=p<I?Math.PI-A:A,Y=s<I?Math.PI-Y:Y,A<0&&(A=Math.PI*2+A),Y<0&&(Y=Math.PI*2+Y),M&&A>Y&&(A=A-Math.PI*2),!M&&Y>A&&(Y=Y-Math.PI*2)}var F=Y-A;if(Math.abs(F)>u){var V=Y,q=s,rt=e;Y=A+u*(M&&Y>A?1:-1),s=I+k*Math.cos(Y),e=g+E*Math.sin(Y),l=nt(s,e,k,E,Z,0,M,q,rt,[Y,V,I,g])}F=Y-A;var et=Math.cos(A),mt=Math.sin(A),pt=Math.cos(Y),bt=Math.sin(Y),Ft=Math.tan(F/4),Ct=4/3*k*Ft,Bt=4/3*E*Ft,Lt=[p,_],Nt=[p+Ct*mt,_-Bt*et],Dt=[s+Ct*bt,e-Bt*pt],Rt=[s,e];if(Nt[0]=2*Lt[0]-Nt[0],Nt[1]=2*Lt[1]-Nt[1],t)return[Nt,Dt,Rt].concat(l);l=[Nt,Dt,Rt].concat(l).join().split(",");for(var Zt=[],Gt=0,zt=l.length;Gt<zt;Gt++)Zt[Gt]=Gt%2?n(l[Gt-1],l[Gt],c).y:n(l[Gt],l[Gt+1],c).x;return Zt},j=function(p,_){var k=J(p),E=_&&J(_),Z={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},it={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},M=[],s=[],e="",t="",u,c=function(v,m,r){var i,o;if(!v)return["C",m.x,m.y,m.x,m.y,m.x,m.y];switch(!(v[0]in{T:1,Q:1})&&(m.qx=m.qy=null),v[0]){case"M":m.X=v[1],m.Y=v[2];break;case"A":v=["C"].concat(nt.apply(0,[m.x,m.y].concat(v.slice(1))));break;case"S":r==="C"||r==="S"?(i=m.x*2-m.bx,o=m.y*2-m.by):(i=m.x,o=m.y),v=["C",i,o].concat(v.slice(1));break;case"T":r==="Q"||r==="T"?(m.qx=m.x*2-m.qx,m.qy=m.y*2-m.qy):(m.qx=m.x,m.qy=m.y),v=["C"].concat(ct(m.x,m.y,m.qx,m.qy,v[1],v[2]));break;case"Q":m.qx=v[1],m.qy=v[2],v=["C"].concat(ct(m.x,m.y,v[1],v[2],v[3],v[4]));break;case"L":v=["C"].concat(tt(m.x,m.y,v[1],v[2]));break;case"H":v=["C"].concat(tt(m.x,m.y,v[1],m.y));break;case"V":v=["C"].concat(tt(m.x,m.y,m.x,v[1]));break;case"Z":v=["C"].concat(tt(m.x,m.y,m.X,m.Y));break;default:break}return v},l=function(v,m){if(v[m].length>7){v[m].shift();for(var r=v[m];r.length;)M[m]="A",E&&(s[m]="A"),v.splice(m++,0,["C"].concat(r.splice(0,6)));v.splice(m,1),u=Math.max(k.length,E&&E.length||0)}},C=function(v,m,r,i,o){v&&m&&v[o][0]==="M"&&m[o][0]!=="M"&&(m.splice(o,0,["M",i.x,i.y]),r.bx=0,r.by=0,r.x=v[o][1],r.y=v[o][2],u=Math.max(k.length,E&&E.length||0))};u=Math.max(k.length,E&&E.length||0);for(var A=0;A<u;A++){k[A]&&(e=k[A][0]),e!=="C"&&(M[A]=e,A&&(t=M[A-1])),k[A]=c(k[A],Z,t),M[A]!=="A"&&e==="C"&&(M[A]="C"),l(k,A),E&&(E[A]&&(e=E[A][0]),e!=="C"&&(s[A]=e,A&&(t=s[A-1])),E[A]=c(E[A],it,t),s[A]!=="A"&&e==="C"&&(s[A]="C"),l(E,A)),C(k,E,Z,it,A),C(E,k,it,Z,A);var Y=k[A],I=E&&E[A],g=Y.length,n=E&&I.length;Z.x=Y[g-2],Z.y=Y[g-1],Z.bx=parseFloat(Y[g-4])||Z.x,Z.by=parseFloat(Y[g-3])||Z.y,it.bx=E&&(parseFloat(I[n-4])||it.x),it.by=E&&(parseFloat(I[n-3])||it.y),it.x=E&&I[n-2],it.y=E&&I[n-1]}return E?[k,E]:k},B=/,?([a-z]),?/gi,b=function(p){return p.join(",").replace(B,"$1")},L=function(p,_,k,E,Z){var it=-3*_+9*k-9*E+3*Z,M=p*it+6*_-12*k+6*E;return p*M-3*_+3*k},Q=function(p,_,k,E,Z,it,M,s,e){e===null&&(e=1),e=e>1?1:e<0?0:e;for(var t=e/2,u=12,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],l=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],C=0,A=0;A<u;A++){var Y=t*c[A]+t,I=L(Y,p,k,Z,M),g=L(Y,_,E,it,s),n=I*I+g*g;C+=l[A]*Math.sqrt(n)}return t*C},st=function(p,_,k,E,Z,it,M,s){for(var e=[],t=[[],[]],u,c,l,C,A=0;A<2;++A){if(A===0?(c=6*p-12*k+6*Z,u=-3*p+9*k-9*Z+3*M,l=3*k-3*p):(c=6*_-12*E+6*it,u=-3*_+9*E-9*it+3*s,l=3*E-3*_),Math.abs(u)<1e-12){if(Math.abs(c)<1e-12)continue;C=-l/c,C>0&&C<1&&e.push(C);continue}var Y=c*c-4*l*u,I=Math.sqrt(Y);if(!(Y<0)){var g=(-c+I)/(2*u);g>0&&g<1&&e.push(g);var n=(-c-I)/(2*u);n>0&&n<1&&e.push(n)}}for(var v=e.length,m=v,r;v--;)C=e[v],r=1-C,t[0][v]=r*r*r*p+3*r*r*C*k+3*r*C*C*Z+C*C*C*M,t[1][v]=r*r*r*_+3*r*r*C*E+3*r*C*C*it+C*C*C*s;return t[0][m]=p,t[1][m]=_,t[0][m+1]=M,t[1][m+1]=s,t[0].length=t[1].length=m+2,{min:{x:Math.min.apply(0,t[0]),y:Math.min.apply(0,t[1])},max:{x:Math.max.apply(0,t[0]),y:Math.max.apply(0,t[1])}}},at=function(p,_,k,E,Z,it,M,s){if(!(Math.max(p,k)<Math.min(Z,M)||Math.min(p,k)>Math.max(Z,M)||Math.max(_,E)<Math.min(it,s)||Math.min(_,E)>Math.max(it,s))){var e=(p*E-_*k)*(Z-M)-(p-k)*(Z*s-it*M),t=(p*E-_*k)*(it-s)-(_-E)*(Z*s-it*M),u=(p-k)*(it-s)-(_-E)*(Z-M);if(u){var c=e/u,l=t/u,C=+c.toFixed(2),A=+l.toFixed(2);if(!(C<+Math.min(p,k).toFixed(2)||C>+Math.max(p,k).toFixed(2)||C<+Math.min(Z,M).toFixed(2)||C>+Math.max(Z,M).toFixed(2)||A<+Math.min(_,E).toFixed(2)||A>+Math.max(_,E).toFixed(2)||A<+Math.min(it,s).toFixed(2)||A>+Math.max(it,s).toFixed(2)))return{x:c,y:l}}}},R=function(p,_,k){return _>=p.x&&_<=p.x+p.width&&k>=p.y&&k<=p.y+p.height},y=function(p,_,k,E,Z){if(Z)return[["M",+p+ +Z,_],["l",k-Z*2,0],["a",Z,Z,0,0,1,Z,Z],["l",0,E-Z*2],["a",Z,Z,0,0,1,-Z,Z],["l",Z*2-k,0],["a",Z,Z,0,0,1,-Z,-Z],["l",0,Z*2-E],["a",Z,Z,0,0,1,Z,-Z],["z"]];var it=[["M",p,_],["l",k,0],["l",0,E],["l",-k,0],["z"]];return it.parsePathArray=b,it},w=function(p,_,k,E){return p===null&&(p=_=k=E=0),_===null&&(_=p.y,k=p.width,E=p.height,p=p.x),{x:p,y:_,width:k,w:k,height:E,h:E,x2:p+k,y2:_+E,cx:p+k/2,cy:_+E/2,r1:Math.min(k,E)/2,r2:Math.max(k,E)/2,r0:Math.sqrt(k*k+E*E)/2,path:y(p,_,k,E),vb:[p,_,k,E].join(" ")}},X=function(p,_){return p=w(p),_=w(_),R(_,p.x,p.y)||R(_,p.x2,p.y)||R(_,p.x,p.y2)||R(_,p.x2,p.y2)||R(p,_.x,_.y)||R(p,_.x2,_.y)||R(p,_.x,_.y2)||R(p,_.x2,_.y2)||(p.x<_.x2&&p.x>_.x||_.x<p.x2&&_.x>p.x)&&(p.y<_.y2&&p.y>_.y||_.y<p.y2&&_.y>p.y)},W=function(p,_,k,E,Z,it,M,s){(0,ft.isArray)(p)||(p=[p,_,k,E,Z,it,M,s]);var e=st.apply(null,p);return w(e.min.x,e.min.y,e.max.x-e.min.x,e.max.y-e.min.y)},ut=function(p,_,k,E,Z,it,M,s,e){var t=1-e,u=Math.pow(t,3),c=Math.pow(t,2),l=e*e,C=l*e,A=u*p+c*3*e*k+t*3*e*e*Z+C*M,Y=u*_+c*3*e*E+t*3*e*e*it+C*s,I=p+2*e*(k-p)+l*(Z-2*k+p),g=_+2*e*(E-_)+l*(it-2*E+_),n=k+2*e*(Z-k)+l*(M-2*Z+k),v=E+2*e*(it-E)+l*(s-2*it+E),m=t*p+e*k,r=t*_+e*E,i=t*Z+e*M,o=t*it+e*s,P=90-Math.atan2(I-n,g-v)*180/Math.PI;return{x:A,y:Y,m:{x:I,y:g},n:{x:n,y:v},start:{x:m,y:r},end:{x:i,y:o},alpha:P}},yt=function(p,_,k){var E=W(p),Z=W(_);if(!X(E,Z))return k?0:[];for(var it=Q.apply(0,p),M=Q.apply(0,_),s=~~(it/8),e=~~(M/8),t=[],u=[],c={},l=k?0:[],C=0;C<s+1;C++){var A=ut.apply(0,p.concat(C/s));t.push({x:A.x,y:A.y,t:C/s})}for(var C=0;C<e+1;C++){var A=ut.apply(0,_.concat(C/e));u.push({x:A.x,y:A.y,t:C/e})}for(var C=0;C<s;C++)for(var Y=0;Y<e;Y++){var I=t[C],g=t[C+1],n=u[Y],v=u[Y+1],m=Math.abs(g.x-I.x)<.001?"y":"x",r=Math.abs(v.x-n.x)<.001?"y":"x",i=at(I.x,I.y,g.x,g.y,n.x,n.y,v.x,v.y);if(i){if(c[i.x.toFixed(4)]===i.y.toFixed(4))continue;c[i.x.toFixed(4)]=i.y.toFixed(4);var o=I.t+Math.abs((i[m]-I[m])/(g[m]-I[m]))*(g.t-I.t),P=n.t+Math.abs((i[r]-n[r])/(v[r]-n[r]))*(v.t-n.t);o>=0&&o<=1&&P>=0&&P<=1&&(k?l+=1:l.push({x:i.x,y:i.y,t1:o,t2:P}))}}return l},Pt=function(p,_,k){p=j(p),_=j(_);for(var E,Z,it,M,s,e,t,u,c,l,C=k?0:[],A=0,Y=p.length;A<Y;A++){var I=p[A];if(I[0]==="M")E=s=I[1],Z=e=I[2];else{I[0]==="C"?(c=[E,Z].concat(I.slice(1)),E=c[6],Z=c[7]):(c=[E,Z,E,Z,s,e,s,e],E=s,Z=e);for(var g=0,n=_.length;g<n;g++){var v=_[g];if(v[0]==="M")it=t=v[1],M=u=v[2];else{v[0]==="C"?(l=[it,M].concat(v.slice(1)),it=l[6],M=l[7]):(l=[it,M,it,M,t,u,t,u],it=t,M=u);var m=yt(c,l,k);if(k)C+=m;else{for(var r=0,i=m.length;r<i;r++)m[r].segment1=A,m[r].segment2=g,m[r].bez1=c,m[r].bez2=l;C=C.concat(m)}}}}}return C},Ht=function(p,_){return Pt(p,_)};function Wt(p,_){var k=[],E=[];function Z(it,M){if(it.length===1)k.push(it[0]),E.push(it[0]);else{for(var s=[],e=0;e<it.length-1;e++)e===0&&k.push(it[0]),e===it.length-2&&E.push(it[e+1]),s[e]=[(1-M)*it[e][0]+M*it[e+1][0],(1-M)*it[e][1]+M*it[e+1][1]];Z(s,M)}}return p.length&&Z(p,_),{left:k,right:E.reverse()}}function Tt(p,_,k){var E=[[p[1],p[2]]];k=k||2;var Z=[];_[0]==="A"?(E.push(_[6]),E.push(_[7])):_[0]==="C"?(E.push([_[1],_[2]]),E.push([_[3],_[4]]),E.push([_[5],_[6]])):_[0]==="S"||_[0]==="Q"?(E.push([_[1],_[2]]),E.push([_[3],_[4]])):E.push([_[1],_[2]]);for(var it=E,M=1/k,s=0;s<k-1;s++){var e=M/(1-M*s),t=Wt(it,e);Z.push(t.left),it=t.right}Z.push(it);var u=Z.map(function(c){var l=[];return c.length===4&&(l.push("C"),l=l.concat(c[2])),c.length>=3&&(c.length===3&&l.push("Q"),l=l.concat(c[1])),c.length===2&&l.push("L"),l=l.concat(c[c.length-1]),l});return u}var _t=function(p,_,k){if(k===1)return[[].concat(p)];var E=[];if(_[0]==="L"||_[0]==="C"||_[0]==="Q")E=E.concat(Tt(p,_,k));else{var Z=[].concat(p);Z[0]==="M"&&(Z[0]="L");for(var it=0;it<=k-1;it++)E.push(Z)}return E},Ut=function(p,_){if(p.length===1)return p;var k=p.length-1,E=_.length-1,Z=k/E,it=[];if(p.length===1&&p[0][0]==="M"){for(var M=0;M<E-k;M++)p.push(p[0]);return p}for(var M=0;M<E;M++){var s=Math.floor(Z*M);it[s]=(it[s]||0)+1}var e=it.reduce(function(t,u,c){return c===k?t.concat(p[k]):t.concat(_t(p[c],p[c+1],u))},[]);return e.unshift(p[0]),(_[E]==="Z"||_[E]==="z")&&e.push("Z"),e},Yt=function(p,_){if(p.length!==_.length)return!1;var k=!0;return(0,ft.each)(p,function(E,Z){if(E!==_[Z])return k=!1,!1}),k};function Ot(p,_,k){var E=null,Z=k;return _<Z&&(Z=_,E="add"),p<Z&&(Z=p,E="del"),{type:E,min:Z}}var a=function(p,_){var k=p.length,E=_.length,Z,it,M=0;if(k===0||E===0)return null;for(var s=[],e=0;e<=k;e++)s[e]=[],s[e][0]={min:e};for(var t=0;t<=E;t++)s[0][t]={min:t};for(var e=1;e<=k;e++){Z=p[e-1];for(var t=1;t<=E;t++){it=_[t-1],Yt(Z,it)?M=0:M=1;var u=s[e-1][t].min+1,c=s[e][t-1].min+1,l=s[e-1][t-1].min+M;s[e][t]=Ot(u,c,l)}}return s},d=function(p,_){var k=a(p,_),E=p.length,Z=_.length,it=[],M=1,s=1;if(k[E][Z].min!==E){for(var e=1;e<=E;e++){var t=k[e][e].min;s=e;for(var u=M;u<=Z;u++)k[e][u].min<t&&(t=k[e][u].min,s=u);M=s,k[e][M].type&&it.push({index:e-1,type:k[e][M].type})}for(var e=it.length-1;e>=0;e--)M=it[e].index,it[e].type==="add"?p.splice(M,0,[].concat(p[M])):p.splice(M,1)}E=p.length;var c=Z-E;if(E<Z)for(var e=0;e<c;e++)p[E-1][0]==="z"||p[E-1][0]==="Z"?p.splice(E-2,0,p[E-2]):p.push(p[E-1]),E+=1;return p};function K(p,_,k){for(var E=[].concat(p),Z,it=1/(k+1),M=gt(_)[0],s=1;s<=k;s++)it*=s,Z=Math.floor(p.length*it),Z===0?E.unshift([M[0]*it+p[Z][0]*(1-it),M[1]*it+p[Z][1]*(1-it)]):E.splice(Z,0,[M[0]*it+p[Z][0]*(1-it),M[1]*it+p[Z][1]*(1-it)]);return E}function gt(p){var _=[];switch(p[0]){case"M":_.push([p[1],p[2]]);break;case"L":_.push([p[1],p[2]]);break;case"A":_.push([p[6],p[7]]);break;case"Q":_.push([p[3],p[4]]),_.push([p[1],p[2]]);break;case"T":_.push([p[1],p[2]]);break;case"C":_.push([p[5],p[6]]),_.push([p[1],p[2]]),_.push([p[3],p[4]]);break;case"S":_.push([p[3],p[4]]),_.push([p[1],p[2]]);break;case"H":_.push([p[1],p[1]]);break;case"V":_.push([p[1],p[1]]);break;default:}return _}var xt=function(p,_){if(p.length<=1)return p;for(var k,E=0;E<_.length;E++)if(p[E][0]!==_[E][0])switch(k=gt(p[E]),_[E][0]){case"M":p[E]=["M"].concat(k[0]);break;case"L":p[E]=["L"].concat(k[0]);break;case"A":p[E]=[].concat(_[E]),p[E][6]=k[0][0],p[E][7]=k[0][1];break;case"Q":if(k.length<2)if(E>0)k=K(k,p[E-1],1);else{p[E]=_[E];break}p[E]=["Q"].concat(k.reduce(function(Z,it){return Z.concat(it)},[]));break;case"T":p[E]=["T"].concat(k[0]);break;case"C":if(k.length<3)if(E>0)k=K(k,p[E-1],2);else{p[E]=_[E];break}p[E]=["C"].concat(k.reduce(function(Z,it){return Z.concat(it)},[]));break;case"S":if(k.length<2)if(E>0)k=K(k,p[E-1],1);else{p[E]=_[E];break}p[E]=["S"].concat(k.reduce(function(Z,it){return Z.concat(it)},[]));break;default:p[E]=_[E]}return p}},54143:function(Jt,St,H){"use strict";H.d(St,{$O:function(){return $},FE:function(){return dt},mY:function(){return ht}});var ft=H(16089),S=H(58971);function dt(N,J,tt){var ct=1;if((0,ft.HD)(N)&&(ct=N.split(`
|
|
`).length),ct>1){var nt=ot(J,tt);return J*ct+nt*(ct-1)}return J}function ot(N,J){return J?J-N:N*.14}function ht(N,J){var tt=(0,S.L)(),ct=0;if((0,ft.kK)(N)||N==="")return ct;if(tt.save(),tt.font=J,(0,ft.HD)(N)&&N.includes(`
|
|
`)){var nt=N.split(`
|
|
`);(0,ft.S6)(nt,function(j){var B=tt.measureText(j).width;ct<B&&(ct=B)})}else ct=tt.measureText(N).width;return tt.restore(),ct}function $(N){var J=N.fontSize,tt=N.fontFamily,ct=N.fontWeight,nt=N.fontStyle,j=N.fontVariant;return[nt,j,ct,J+"px",tt].join(" ").trim()}},16089:function(Jt,St,H){"use strict";H.d(St,{As:function(){return S},CD:function(){return ft.mix},HD:function(){return ft.isString},Kn:function(){return ft.isObject},S6:function(){return ft.each},UY:function(){return ot},jC:function(){return ft.upperFirst},jU:function(){return dt},kK:function(){return ft.isNil},mf:function(){return ft.isFunction},pP:function(){return ht}});var ft=H(13526);function S($,N){var J=$.indexOf(N);J!==-1&&$.splice(J,1)}var dt=typeof window!="undefined"&&typeof window.document!="undefined";function ot($,N){if($.isCanvas())return!0;for(var J=N.getParent(),tt=!1;J;){if(J===$){tt=!0;break}J=J.getParent()}return tt}function ht($){return $.cfg.visible&&$.cfg.capture}},73219:function(Jt,St,H){"use strict";H.d(St,{Z:function(){return j}});var ft=H(99938),S=H(25099);function dt(B,b){if(b){var L=(0,S.invert)(b);return(0,S.multiplyVec2)(L,B)}return B}function ot(B,b,L){var Q=B.getTotalMatrix();if(Q){var st=dt([b,L,1],Q),at=st[0],R=st[1];return[at,R]}return[b,L]}function ht(B,b,L){if(B.isCanvas&&B.isCanvas())return!0;if(!(0,S.isAllowCapture)(B)||B.cfg.isInView===!1)return!1;if(B.cfg.clipShape){var Q=ot(B,b,L),st=Q[0],at=Q[1];if(B.isClipped(st,at))return!1}var R=B.cfg.cacheCanvasBBox||B.getCanvasBBox();return b>=R.minX&&b<=R.maxX&&L>=R.minY&&L<=R.maxY}function $(B,b,L){if(!ht(B,b,L))return null;for(var Q=null,st=B.getChildren(),at=st.length,R=at-1;R>=0;R--){var y=st[R];if(y.isGroup())Q=$(y,b,L);else if(ht(y,b,L)){var w=y,X=ot(y,b,L),W=X[0],ut=X[1];w.isInShape(W,ut)&&(Q=y)}if(Q)break}return Q}var N=H(10541),J=H(85842),tt=H(76141),ct=H(29246),nt=function(B){(0,ft.__extends)(b,B);function b(){return B!==null&&B.apply(this,arguments)||this}return b.prototype.getDefaultCfg=function(){var L=B.prototype.getDefaultCfg.call(this);return L.renderer="canvas",L.autoDraw=!0,L.localRefresh=!0,L.refreshElements=[],L.clipView=!0,L.quickHit=!1,L},b.prototype.onCanvasChange=function(L){(L==="attr"||L==="sort"||L==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},b.prototype.getShapeBase=function(){return N},b.prototype.getGroupBase=function(){return J.Z},b.prototype.getPixelRatio=function(){var L=this.get("pixelRatio")||(0,tt.mX)();return L>=1?Math.ceil(L):1},b.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},b.prototype.createDom=function(){var L=document.createElement("canvas"),Q=L.getContext("2d");return this.set("context",Q),L},b.prototype.setDOMSize=function(L,Q){B.prototype.setDOMSize.call(this,L,Q);var st=this.get("context"),at=this.get("el"),R=this.getPixelRatio();at.width=R*L,at.height=R*Q,R>1&&st.scale(R,R)},b.prototype.clear=function(){B.prototype.clear.call(this),this._clearFrame();var L=this.get("context"),Q=this.get("el");L.clearRect(0,0,Q.width,Q.height)},b.prototype.getShape=function(L,Q){var st;return this.get("quickHit")?st=$(this,L,Q):st=B.prototype.getShape.call(this,L,Q,null),st},b.prototype._getRefreshRegion=function(){var L=this.get("refreshElements"),Q=this.getViewRange(),st;if(L.length&&L[0]===this)st=Q;else if(st=(0,ct.tJ)(L),st){st.minX=Math.floor(st.minX),st.minY=Math.floor(st.minY),st.maxX=Math.ceil(st.maxX),st.maxY=Math.ceil(st.maxY),st.maxY+=1;var at=this.get("clipView");at&&(st=(0,ct.T2)(st,Q))}return st},b.prototype.refreshElement=function(L){var Q=this.get("refreshElements");Q.push(L)},b.prototype._clearFrame=function(){var L=this.get("drawFrame");L&&((0,tt.VS)(L),this.set("drawFrame",null),this.set("refreshElements",[]))},b.prototype.draw=function(){var L=this.get("drawFrame");this.get("autoDraw")&&L||this._startDraw()},b.prototype._drawAll=function(){var L=this.get("context"),Q=this.get("el"),st=this.getChildren();L.clearRect(0,0,Q.width,Q.height),(0,ct.DE)(L,this),(0,ct.NX)(L,st),this.set("refreshElements",[])},b.prototype._drawRegion=function(){var L=this.get("context"),Q=this.get("refreshElements"),st=this.getChildren(),at=this._getRefreshRegion();at?(L.clearRect(at.minX,at.minY,at.maxX-at.minX,at.maxY-at.minY),L.save(),L.beginPath(),L.rect(at.minX,at.minY,at.maxX-at.minX,at.maxY-at.minY),L.clip(),(0,ct.DE)(L,this),(0,ct.kU)(this,st,at),(0,ct.NX)(L,st,at),L.restore()):Q.length&&(0,ct.sT)(Q),(0,tt.S6)(Q,function(R){R.get("hasChanged")&&R.set("hasChanged",!1)}),this.set("refreshElements",[])},b.prototype._startDraw=function(){var L=this,Q=this.get("drawFrame");Q||(Q=(0,tt.U7)(function(){L.get("localRefresh")?L._drawRegion():L._drawAll(),L.set("drawFrame",null)}),this.set("drawFrame",Q))},b.prototype.skipDraw=function(){},b.prototype.removeDom=function(){var L=this.get("el");L.width=0,L.height=0,L.parentNode.removeChild(L)},b}(S.AbstractCanvas),j=nt},85842:function(Jt,St,H){"use strict";var ft=H(99938),S=H(25099),dt=H(10541),ot=H(29246),ht=H(13526),$=H(76141),N=function(J){(0,ft.__extends)(tt,J);function tt(){return J!==null&&J.apply(this,arguments)||this}return tt.prototype.onCanvasChange=function(ct){(0,ot.md)(this,ct)},tt.prototype.getShapeBase=function(){return dt},tt.prototype.getGroupBase=function(){return tt},tt.prototype._applyClip=function(ct,nt){nt&&(ct.save(),(0,ot.DE)(ct,nt),nt.createPath(ct),ct.restore(),ct.clip(),nt._afterDraw())},tt.prototype.cacheCanvasBBox=function(){var ct=this.cfg.children,nt=[],j=[];(0,ht.each)(ct,function(y){var w=y.cfg.cacheCanvasBBox;w&&y.cfg.isInView&&(nt.push(w.minX,w.maxX),j.push(w.minY,w.maxY))});var B=null;if(nt.length){var b=(0,ht.min)(nt),L=(0,ht.max)(nt),Q=(0,ht.min)(j),st=(0,ht.max)(j);B={minX:b,minY:Q,x:b,y:Q,maxX:L,maxY:st,width:L-b,height:st-Q};var at=this.cfg.canvas;if(at){var R=at.getViewRange();this.set("isInView",(0,$.qb)(B,R))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",B)},tt.prototype.draw=function(ct,nt){var j=this.cfg.children,B=nt?this.cfg.refresh:!0;j.length&&B&&(ct.save(),(0,ot.DE)(ct,this),this._applyClip(ct,this.getClip()),(0,ot.NX)(ct,j,nt),ct.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},tt.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},tt}(S.AbstractGroup);St.Z=N},67938:function(Jt,St,H){"use strict";H.r(St),H.d(St,{Canvas:function(){return ht.Z},Group:function(){return $.Z},Shape:function(){return ft},getArcParams:function(){return N.Z},version:function(){return J}});var ft=H(10541),S=H(25099),dt={};for(var ot in S)["default","Canvas","Group","Shape","getArcParams","version"].indexOf(ot)<0&&(dt[ot]=function(tt){return S[tt]}.bind(0,ot));H.d(St,dt);var ht=H(73219),$=H(85842),N=H(61472),J="0.5.12"},10541:function(Jt,St,H){"use strict";H.r(St),H.d(St,{Base:function(){return J},Circle:function(){return ct},Ellipse:function(){return B},Image:function(){return Q},Line:function(){return w},Marker:function(){return Pt},Path:function(){return E},Polygon:function(){return M},Polyline:function(){return e},Rect:function(){return C},Text:function(){return Y}});var ft={};H.r(ft),H.d(ft,{Base:function(){return J},Circle:function(){return ct},Ellipse:function(){return B},Image:function(){return Q},Line:function(){return w},Marker:function(){return Pt},Path:function(){return E},Polygon:function(){return M},Polyline:function(){return e},Rect:function(){return C},Text:function(){return Y}});var S=H(99938),dt=H(25099),ot=H(76141),ht=H(29246),$=H(85842),N=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.getDefaultAttrs=function(){var n=I.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},n),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},g.prototype.getShapeBase=function(){return ft},g.prototype.getGroupBase=function(){return $.Z},g.prototype.onCanvasChange=function(n){(0,ht.md)(this,n)},g.prototype.calculateBBox=function(){var n=this.get("type"),v=this.getHitLineWidth(),m=(0,dt.getBBoxMethod)(n),r=m(this),i=v/2,o=r.x-i,P=r.y-i,F=r.x+r.width+i,V=r.y+r.height+i;return{x:o,minX:o,y:P,minY:P,width:r.width+v,height:r.height+v,maxX:F,maxY:V}},g.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},g.prototype.isStroke=function(){return!!this.attrs.stroke},g.prototype._applyClip=function(n,v){v&&(n.save(),(0,ht.DE)(n,v),v.createPath(n),n.restore(),n.clip(),v._afterDraw())},g.prototype.draw=function(n,v){var m=this.cfg.clipShape;if(v){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var r=this.getCanvasBBox();if(!(0,ot.qb)(v,r)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}n.save(),(0,ht.DE)(n,this),this._applyClip(n,m),this.drawPath(n),n.restore(),this._afterDraw()},g.prototype.getCanvasViewBox=function(){var n=this.cfg.canvas;return n?n.getViewRange():null},g.prototype.cacheCanvasBBox=function(){var n=this.getCanvasViewBox();if(n){var v=this.getCanvasBBox(),m=(0,ot.qb)(v,n);this.set("isInView",m),m?this.set("cacheCanvasBBox",v):this.set("cacheCanvasBBox",null)}},g.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},g.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},g.prototype.drawPath=function(n){this.createPath(n),this.strokeAndFill(n),this.afterDrawPath(n)},g.prototype.fill=function(n){n.fill()},g.prototype.stroke=function(n){n.stroke()},g.prototype.strokeAndFill=function(n){var v=this.attrs,m=v.lineWidth,r=v.opacity,i=v.strokeOpacity,o=v.fillOpacity;this.isFill()&&(!(0,ot.kK)(o)&&o!==1?(n.globalAlpha=o,this.fill(n),n.globalAlpha=r):this.fill(n)),this.isStroke()&&m>0&&(!(0,ot.kK)(i)&&i!==1&&(n.globalAlpha=i),this.stroke(n)),this.afterDrawPath(n)},g.prototype.createPath=function(n){},g.prototype.afterDrawPath=function(n){},g.prototype.isInShape=function(n,v){var m=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(n,v,m,r,i)},g.prototype.isInStrokeOrPath=function(n,v,m,r,i){return!1},g.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var n=this.attrs;return n.lineWidth+n.lineAppendWidth},g}(dt.AbstractShape),J=N,tt=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.getDefaultAttrs=function(){var n=I.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},n),{x:0,y:0,r:0})},g.prototype.isInStrokeOrPath=function(n,v,m,r,i){var o=this.attr(),P=o.x,F=o.y,V=o.r,q=i/2,rt=(0,ot.TE)(P,F,n,v);return r&&m?rt<=V+q:r?rt<=V:m?rt>=V-q&&rt<=V+q:!1},g.prototype.createPath=function(n){var v=this.attr(),m=v.x,r=v.y,i=v.r;n.beginPath(),n.arc(m,r,i,0,Math.PI*2,!1),n.closePath()},g}(J),ct=tt;function nt(I,g,n,v){return I/(n*n)+g/(v*v)}var j=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.getDefaultAttrs=function(){var n=I.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},n),{x:0,y:0,rx:0,ry:0})},g.prototype.isInStrokeOrPath=function(n,v,m,r,i){var o=this.attr(),P=i/2,F=o.x,V=o.y,q=o.rx,rt=o.ry,et=(n-F)*(n-F),mt=(v-V)*(v-V);return r&&m?nt(et,mt,q+P,rt+P)<=1:r?nt(et,mt,q,rt)<=1:m?nt(et,mt,q-P,rt-P)>=1&&nt(et,mt,q+P,rt+P)<=1:!1},g.prototype.createPath=function(n){var v=this.attr(),m=v.x,r=v.y,i=v.rx,o=v.ry;if(n.beginPath(),n.ellipse)n.ellipse(m,r,i,o,0,0,Math.PI*2,!1);else{var P=i>o?i:o,F=i>o?1:i/o,V=i>o?o/i:1;n.save(),n.translate(m,r),n.scale(F,V),n.arc(0,0,P,0,Math.PI*2),n.restore(),n.closePath()}},g}(J),B=j;function b(I){return I instanceof HTMLElement&&(0,ot.HD)(I.nodeName)&&I.nodeName.toUpperCase()==="CANVAS"}var L=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.getDefaultAttrs=function(){var n=I.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},n),{x:0,y:0,width:0,height:0})},g.prototype.initAttrs=function(n){this._setImage(n.img)},g.prototype.isStroke=function(){return!1},g.prototype.isOnlyHitBox=function(){return!0},g.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var n=this.get("canvas");n?n.draw():this.createPath(this.get("context"))}},g.prototype._setImage=function(n){var v=this,m=this.attrs;if((0,ot.HD)(n)){var r=new Image;r.onload=function(){if(v.destroyed)return!1;v.attr("img",r),v.set("loading",!1),v._afterLoading();var i=v.get("callback");i&&i.call(v)},r.crossOrigin="Anonymous",r.src=n,this.set("loading",!0)}else n instanceof Image?(m.width||(m.width=n.width),m.height||(m.height=n.height)):b(n)&&(m.width||(m.width=Number(n.getAttribute("width"))),m.height||(m.height,Number(n.getAttribute("height"))))},g.prototype.onAttrChange=function(n,v,m){I.prototype.onAttrChange.call(this,n,v,m),n==="img"&&this._setImage(v)},g.prototype.createPath=function(n){if(this.get("loading")){this.set("toDraw",!0),this.set("context",n);return}var v=this.attr(),m=v.x,r=v.y,i=v.width,o=v.height,P=v.sx,F=v.sy,V=v.swidth,q=v.sheight,rt=v.img;(rt instanceof Image||b(rt))&&(!(0,ot.kK)(P)&&!(0,ot.kK)(F)&&!(0,ot.kK)(V)&&!(0,ot.kK)(q)?n.drawImage(rt,P,F,V,q,m,r,i,o):n.drawImage(rt,m,r,i,o))},g}(J),Q=L,st=H(86031);function at(I,g,n,v,m,r,i){var o=Math.min(I,n),P=Math.max(I,n),F=Math.min(g,v),V=Math.max(g,v),q=m/2;return r>=o-q&&r<=P+q&&i>=F-q&&i<=V+q?st.x1.pointToLine(I,g,n,v,r,i)<=m/2:!1}var R=H(55274),y=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.getDefaultAttrs=function(){var n=I.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},n),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},g.prototype.initAttrs=function(n){this.setArrow()},g.prototype.onAttrChange=function(n,v,m){I.prototype.onAttrChange.call(this,n,v,m),this.setArrow()},g.prototype.setArrow=function(){var n=this.attr(),v=n.x1,m=n.y1,r=n.x2,i=n.y2,o=n.startArrow,P=n.endArrow;o&&R.Yf(this,n,r,i,v,m),P&&R.YR(this,n,v,m,r,i)},g.prototype.isInStrokeOrPath=function(n,v,m,r,i){if(!m||!i)return!1;var o=this.attr(),P=o.x1,F=o.y1,V=o.x2,q=o.y2;return at(P,F,V,q,i,n,v)},g.prototype.createPath=function(n){var v=this.attr(),m=v.x1,r=v.y1,i=v.x2,o=v.y2,P=v.startArrow,F=v.endArrow,V={dx:0,dy:0},q={dx:0,dy:0};P&&P.d&&(V=R.jF(m,r,i,o,v.startArrow.d)),F&&F.d&&(q=R.jF(m,r,i,o,v.endArrow.d)),n.beginPath(),n.moveTo(m+V.dx,r+V.dy),n.lineTo(i-q.dx,o-q.dy)},g.prototype.afterDrawPath=function(n){var v=this.get("startArrowShape"),m=this.get("endArrowShape");v&&v.draw(n),m&&m.draw(n)},g.prototype.getTotalLength=function(){var n=this.attr(),v=n.x1,m=n.y1,r=n.x2,i=n.y2;return st.x1.length(v,m,r,i)},g.prototype.getPoint=function(n){var v=this.attr(),m=v.x1,r=v.y1,i=v.x2,o=v.y2;return st.x1.pointAt(m,r,i,o,n)},g}(J),w=y,X=H(13526),W=H(81182),ut={circle:function(I,g,n){return[["M",I-n,g],["A",n,n,0,1,0,I+n,g],["A",n,n,0,1,0,I-n,g]]},square:function(I,g,n){return[["M",I-n,g-n],["L",I+n,g-n],["L",I+n,g+n],["L",I-n,g+n],["Z"]]},diamond:function(I,g,n){return[["M",I-n,g],["L",I,g-n],["L",I+n,g],["L",I,g+n],["Z"]]},triangle:function(I,g,n){var v=n*Math.sin(.3333333333333333*Math.PI);return[["M",I-n,g+v],["L",I,g-v],["L",I+n,g+v],["Z"]]},"triangle-down":function(I,g,n){var v=n*Math.sin(.3333333333333333*Math.PI);return[["M",I-n,g-v],["L",I+n,g-v],["L",I,g+v],["Z"]]}},yt=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.initAttrs=function(n){this._resetParamsCache()},g.prototype._resetParamsCache=function(){this.set("paramsCache",{})},g.prototype.onAttrChange=function(n,v,m){I.prototype.onAttrChange.call(this,n,v,m),["symbol","x","y","r","radius"].indexOf(n)!==-1&&this._resetParamsCache()},g.prototype.isOnlyHitBox=function(){return!0},g.prototype._getR=function(n){return(0,X.isNil)(n.r)?n.radius:n.r},g.prototype._getPath=function(){var n=this.attr(),v=n.x,m=n.y,r=n.symbol||"circle",i=this._getR(n),o,P;if((0,ot.mf)(r))o=r,P=o(v,m,i),P=(0,W.wb)(P);else{if(o=g.Symbols[r],!o)return console.warn(r+" marker is not supported."),null;P=o(v,m,i)}return P},g.prototype.createPath=function(n){var v=this._getPath(),m=this.get("paramsCache");(0,ht.MC)(this,n,{path:v},m)},g.Symbols=ut,g}(J),Pt=yt;function Ht(I,g,n){var v=(0,dt.getOffScreenContext)();return I.createPath(v),v.isPointInPath(g,n)}var Wt=1e-6;function Tt(I){return Math.abs(I)<Wt?0:I<0?-1:1}function _t(I,g,n){return(n[0]-I[0])*(g[1]-I[1])===(g[0]-I[0])*(n[1]-I[1])&&Math.min(I[0],g[0])<=n[0]&&n[0]<=Math.max(I[0],g[0])&&Math.min(I[1],g[1])<=n[1]&&n[1]<=Math.max(I[1],g[1])}function Ut(I,g,n){var v=!1,m=I.length;if(m<=2)return!1;for(var r=0;r<m;r++){var i=I[r],o=I[(r+1)%m];if(_t(i,o,[g,n]))return!0;Tt(i[1]-n)>0!=Tt(o[1]-n)>0&&Tt(g-(n-i[1])*(i[0]-o[0])/(i[1]-o[1])-i[0])<0&&(v=!v)}return v}var Yt=H(67516),Ot=H(54442);function a(I,g,n,v,m,r,i,o){var P=(Math.atan2(o-g,i-I)+Math.PI*2)%(Math.PI*2);if(P<v||P>m)return!1;var F={x:I+n*Math.cos(P),y:g+n*Math.sin(P)};return(0,ot.TE)(F.x,F.y,i,o)<=r/2}var d=Yt.vs;function K(I){for(var g=!1,n=I.length,v=0;v<n;v++){var m=I[v],r=m[0];if(r==="C"||r==="A"||r==="Q"){g=!0;break}}return g}function gt(I,g,n,v,m){for(var r=!1,i=g/2,o=0;o<I.length;o++){var P=I[o],F=P.currentPoint,V=P.params,q=P.prePoint,rt=P.box;if(!(rt&&!(0,ot.mh)(rt.x-i,rt.y-i,rt.width+g,rt.height+g,n,v))){switch(P.command){case"L":case"Z":r=at(q[0],q[1],F[0],F[1],g,n,v);break;case"Q":var et=st.lD.pointDistance(q[0],q[1],V[1],V[2],V[3],V[4],n,v);r=et<=g/2;break;case"C":var mt=st.Ll.pointDistance(q[0],q[1],V[1],V[2],V[3],V[4],V[5],V[6],n,v,m);r=mt<=g/2;break;case"A":var pt=P.arcParams,bt=pt.cx,Ft=pt.cy,Ct=pt.rx,Bt=pt.ry,Lt=pt.startAngle,Nt=pt.endAngle,Dt=pt.xRotation,Rt=[n,v,1],Zt=Ct>Bt?Ct:Bt,Gt=Ct>Bt?1:Ct/Bt,zt=Ct>Bt?Bt/Ct:1,Qt=d(null,[["t",-bt,-Ft],["r",-Dt],["s",1/Gt,1/zt]]);Ot.transformMat3(Rt,Rt,Qt),r=a(0,0,Zt,Lt,Nt,g,Rt[0],Rt[1]);break;default:break}if(r)break}}return r}function xt(I){for(var g=I.length,n=[],v=[],m=[],r=0;r<g;r++){var i=I[r],o=i[0];o==="M"?(m.length&&(v.push(m),m=[]),m.push([i[1],i[2]])):o==="Z"?m.length&&(n.push(m),m=[]):m.push([i[1],i[2]])}return m.length>0&&v.push(m),{polygons:n,polylines:v}}var p=(0,S.__assign)({hasArc:K,extractPolygons:xt,isPointInStroke:gt},dt.PathUtil);function _(I,g,n){for(var v=!1,m=0;m<I.length;m++){var r=I[m];if(v=Ut(r,g,n),v)break}return v}var k=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.getDefaultAttrs=function(){var n=I.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},n),{startArrow:!1,endArrow:!1})},g.prototype.initAttrs=function(n){this._setPathArr(n.path),this.setArrow()},g.prototype.onAttrChange=function(n,v,m){I.prototype.onAttrChange.call(this,n,v,m),n==="path"&&this._setPathArr(v),this.setArrow()},g.prototype._setPathArr=function(n){this.attrs.path=(0,W.wb)(n);var v=p.hasArc(n);this.set("hasArc",v),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},g.prototype.getSegments=function(){var n=this.get("segements");return n||(n=(0,W.zx)(this.attr("path")),this.set("segments",n)),n},g.prototype.setArrow=function(){var n=this.attr(),v=n.startArrow,m=n.endArrow;if(v){var r=this.getStartTangent();R.Yf(this,n,r[0][0],r[0][1],r[1][0],r[1][1])}if(m){var r=this.getEndTangent();R.YR(this,n,r[0][0],r[0][1],r[1][0],r[1][1])}},g.prototype.isInStrokeOrPath=function(n,v,m,r,i){var o=this.getSegments(),P=this.get("hasArc"),F=!1;if(m){var V=this.getTotalLength();F=p.isPointInStroke(o,i,n,v,V)}if(!F&&r)if(P)F=Ht(this,n,v);else{var q=this.attr("path"),rt=p.extractPolygons(q);F=_(rt.polygons,n,v)||_(rt.polylines,n,v)}return F},g.prototype.createPath=function(n){var v=this.attr(),m=this.get("paramsCache");(0,ht.MC)(this,n,v,m)},g.prototype.afterDrawPath=function(n){var v=this.get("startArrowShape"),m=this.get("endArrowShape");v&&v.draw(n),m&&m.draw(n)},g.prototype.getTotalLength=function(){var n=this.get("totalLength");return(0,X.isNil)(n)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):n},g.prototype.getPoint=function(n){var v=this.get("tCache");v||(this._calculateCurve(),this._setTcache(),v=this.get("tCache"));var m,r,i=this.get("curve");if(!v||v.length===0)return i?{x:i[0][1],y:i[0][2]}:null;(0,X.each)(v,function(V,q){n>=V[0]&&n<=V[1]&&(m=(n-V[0])/(V[1]-V[0]),r=q)});var o=i[r];if((0,X.isNil)(o)||(0,X.isNil)(r))return null;var P=o.length,F=i[r+1];return st.Ll.pointAt(o[P-2],o[P-1],F[1],F[2],F[3],F[4],F[5],F[6],m)},g.prototype._calculateCurve=function(){var n=this.attr().path;this.set("curve",p.pathToCurve(n))},g.prototype._setTcache=function(){var n=0,v=0,m=[],r,i,o,P,F=this.get("curve");if(F){if((0,X.each)(F,function(V,q){o=F[q+1],P=V.length,o&&(n+=st.Ll.length(V[P-2],V[P-1],o[1],o[2],o[3],o[4],o[5],o[6])||0)}),this.set("totalLength",n),n===0){this.set("tCache",[]);return}(0,X.each)(F,function(V,q){o=F[q+1],P=V.length,o&&(r=[],r[0]=v/n,i=st.Ll.length(V[P-2],V[P-1],o[1],o[2],o[3],o[4],o[5],o[6]),v+=i||0,r[1]=v/n,m.push(r))}),this.set("tCache",m)}},g.prototype.getStartTangent=function(){var n=this.getSegments(),v;if(n.length>1){var m=n[0].currentPoint,r=n[1].currentPoint,i=n[1].startTangent;v=[],i?(v.push([m[0]-i[0],m[1]-i[1]]),v.push([m[0],m[1]])):(v.push([r[0],r[1]]),v.push([m[0],m[1]]))}return v},g.prototype.getEndTangent=function(){var n=this.getSegments(),v=n.length,m;if(v>1){var r=n[v-2].currentPoint,i=n[v-1].currentPoint,o=n[v-1].endTangent;m=[],o?(m.push([i[0]-o[0],i[1]-o[1]]),m.push([i[0],i[1]])):(m.push([r[0],r[1]]),m.push([i[0],i[1]]))}return m},g}(J),E=k;function Z(I,g,n,v,m){var r=I.length;if(r<2)return!1;for(var i=0;i<r-1;i++){var o=I[i][0],P=I[i][1],F=I[i+1][0],V=I[i+1][1];if(at(o,P,F,V,g,n,v))return!0}if(m){var q=I[0],rt=I[r-1];if(at(q[0],q[1],rt[0],rt[1],g,n,v))return!0}return!1}var it=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.isInStrokeOrPath=function(n,v,m,r,i){var o=this.attr().points,P=!1;return m&&(P=Z(o,i,n,v,!0)),!P&&r&&(P=Ut(o,n,v)),P},g.prototype.createPath=function(n){var v=this.attr(),m=v.points;if(!(m.length<2)){n.beginPath();for(var r=0;r<m.length;r++){var i=m[r];r===0?n.moveTo(i[0],i[1]):n.lineTo(i[0],i[1])}n.closePath()}},g}(J),M=it,s=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.getDefaultAttrs=function(){var n=I.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},n),{startArrow:!1,endArrow:!1})},g.prototype.initAttrs=function(n){this.setArrow()},g.prototype.onAttrChange=function(n,v,m){I.prototype.onAttrChange.call(this,n,v,m),this.setArrow(),["points"].indexOf(n)!==-1&&this._resetCache()},g.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},g.prototype.setArrow=function(){var n=this.attr(),v=this.attrs,m=v.points,r=v.startArrow,i=v.endArrow,o=m.length,P=m[0][0],F=m[0][1],V=m[o-1][0],q=m[o-1][1];r&&R.Yf(this,n,m[1][0],m[1][1],P,F),i&&R.YR(this,n,m[o-2][0],m[o-2][1],V,q)},g.prototype.isFill=function(){return!1},g.prototype.isInStrokeOrPath=function(n,v,m,r,i){if(!m||!i)return!1;var o=this.attr().points;return Z(o,i,n,v,!1)},g.prototype.isStroke=function(){return!0},g.prototype.createPath=function(n){var v=this.attr(),m=v.points,r=v.startArrow,i=v.endArrow,o=m.length;if(!(m.length<2)){var P=m[0][0],F=m[0][1],V=m[o-1][0],q=m[o-1][1];if(r&&r.d){var rt=R.jF(P,F,m[1][0],m[1][1],r.d);P+=rt.dx,F+=rt.dy}if(i&&i.d){var rt=R.jF(m[o-2][0],m[o-2][1],V,q,i.d);V-=rt.dx,q-=rt.dy}n.beginPath(),n.moveTo(P,F);for(var et=0;et<o-1;et++){var mt=m[et];n.lineTo(mt[0],mt[1])}n.lineTo(V,q)}},g.prototype.afterDrawPath=function(n){var v=this.get("startArrowShape"),m=this.get("endArrowShape");v&&v.draw(n),m&&m.draw(n)},g.prototype.getTotalLength=function(){var n=this.attr().points,v=this.get("totalLength");return(0,X.isNil)(v)?(this.set("totalLength",st.aH.length(n)),this.get("totalLength")):v},g.prototype.getPoint=function(n){var v=this.attr().points,m=this.get("tCache");m||(this._setTcache(),m=this.get("tCache"));var r,i;return(0,X.each)(m,function(o,P){n>=o[0]&&n<=o[1]&&(r=(n-o[0])/(o[1]-o[0]),i=P)}),st.x1.pointAt(v[i][0],v[i][1],v[i+1][0],v[i+1][1],r)},g.prototype._setTcache=function(){var n=this.attr().points;if(!(!n||n.length===0)){var v=this.getTotalLength();if(!(v<=0)){var m=0,r=[],i,o;(0,X.each)(n,function(P,F){n[F+1]&&(i=[],i[0]=m/v,o=st.x1.length(P[0],P[1],n[F+1][0],n[F+1][1]),m+=o,i[1]=m/v,r.push(i))}),this.set("tCache",r)}}},g.prototype.getStartTangent=function(){var n=this.attr().points,v=[];return v.push([n[1][0],n[1][1]]),v.push([n[0][0],n[0][1]]),v},g.prototype.getEndTangent=function(){var n=this.attr().points,v=n.length-1,m=[];return m.push([n[v-1][0],n[v-1][1]]),m.push([n[v][0],n[v][1]]),m},g}(J),e=s,t=H(95578);function u(I,g,n,v,m,r,i){var o=m/2;return(0,ot.mh)(I-o,g-o,n,m,r,i)||(0,ot.mh)(I+n-o,g-o,m,v,r,i)||(0,ot.mh)(I+o,g+v-o,n,m,r,i)||(0,ot.mh)(I-o,g+o,m,v,r,i)}function c(I,g,n,v,m,r,i,o){var P=r/2;return at(I+m,g,I+n-m,g,r,i,o)||at(I+n,g+m,I+n,g+v-m,r,i,o)||at(I+n-m,g+v,I+m,g+v,r,i,o)||at(I,g+v-m,I,g+m,r,i,o)||a(I+n-m,g+m,m,1.5*Math.PI,2*Math.PI,r,i,o)||a(I+n-m,g+v-m,m,0,.5*Math.PI,r,i,o)||a(I+m,g+v-m,m,.5*Math.PI,Math.PI,r,i,o)||a(I+m,g+m,m,Math.PI,1.5*Math.PI,r,i,o)}var l=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.getDefaultAttrs=function(){var n=I.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},n),{x:0,y:0,width:0,height:0,radius:0})},g.prototype.isInStrokeOrPath=function(n,v,m,r,i){var o=this.attr(),P=o.x,F=o.y,V=o.width,q=o.height,rt=o.radius;if(rt){var mt=!1;return m&&(mt=c(P,F,V,q,rt,i,n,v)),!mt&&r&&(mt=Ht(this,n,v)),mt}else{var et=i/2;if(r&&m)return(0,ot.mh)(P-et,F-et,V+et,q+et,n,v);if(r)return(0,ot.mh)(P,F,V,q,n,v);if(m)return u(P,F,V,q,i,n,v)}},g.prototype.createPath=function(n){var v=this.attr(),m=v.x,r=v.y,i=v.width,o=v.height,P=v.radius;if(n.beginPath(),P===0)n.rect(m,r,i,o);else{var F=(0,t.Fy)(P),V=F[0],q=F[1],rt=F[2],et=F[3];n.moveTo(m+V,r),n.lineTo(m+i-q,r),q!==0&&n.arc(m+i-q,r+q,q,-Math.PI/2,0),n.lineTo(m+i,r+o-rt),rt!==0&&n.arc(m+i-rt,r+o-rt,rt,0,Math.PI/2),n.lineTo(m+et,r+o),et!==0&&n.arc(m+et,r+o-et,et,Math.PI/2,Math.PI),n.lineTo(m,r+V),V!==0&&n.arc(m+V,r+V,V,Math.PI,Math.PI*1.5),n.closePath()}},g}(J),C=l,A=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.getDefaultAttrs=function(){var n=I.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},n),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},g.prototype.isOnlyHitBox=function(){return!0},g.prototype.initAttrs=function(n){this._assembleFont(),n.text&&this._setText(n.text)},g.prototype._assembleFont=function(){var n=this.attrs;n.font=(0,dt.assembleFont)(n)},g.prototype._setText=function(n){var v=null;(0,ot.HD)(n)&&n.indexOf(`
|
|
`)!==-1&&(v=n.split(`
|
|
`)),this.set("textArr",v)},g.prototype.onAttrChange=function(n,v,m){I.prototype.onAttrChange.call(this,n,v,m),n.startsWith("font")&&this._assembleFont(),n==="text"&&this._setText(v)},g.prototype._getSpaceingY=function(){var n=this.attrs,v=n.lineHeight,m=n.fontSize*1;return v?v-m:m*.14},g.prototype._drawTextArr=function(n,v,m){var r=this.attrs,i=r.textBaseline,o=r.x,P=r.y,F=r.fontSize*1,V=this._getSpaceingY(),q=(0,dt.getTextHeight)(r.text,r.fontSize,r.lineHeight),rt;(0,ot.S6)(v,function(et,mt){rt=P+mt*(V+F)-q+F,i==="middle"&&(rt+=q-F-(q-F)/2),i==="top"&&(rt+=q-F),(0,ot.kK)(et)||(m?n.fillText(et,o,rt):n.strokeText(et,o,rt))})},g.prototype._drawText=function(n,v){var m=this.attr(),r=m.x,i=m.y,o=this.get("textArr");if(o)this._drawTextArr(n,o,v);else{var P=m.text;(0,ot.kK)(P)||(v?n.fillText(P,r,i):n.strokeText(P,r,i))}},g.prototype.strokeAndFill=function(n){var v=this.attrs,m=v.lineWidth,r=v.opacity,i=v.strokeOpacity,o=v.fillOpacity;this.isStroke()&&m>0&&(!(0,ot.kK)(i)&&i!==1&&(n.globalAlpha=r),this.stroke(n)),this.isFill()&&(!(0,ot.kK)(o)&&o!==1?(n.globalAlpha=o,this.fill(n),n.globalAlpha=r):this.fill(n)),this.afterDrawPath(n)},g.prototype.fill=function(n){this._drawText(n,!0)},g.prototype.stroke=function(n){this._drawText(n,!1)},g}(J),Y=A},61472:function(Jt,St,H){"use strict";H.d(St,{Z:function(){return ht}});var ft=H(76141);function S($){return Math.sqrt($[0]*$[0]+$[1]*$[1])}function dt($,N){return S($)*S(N)?($[0]*N[0]+$[1]*N[1])/(S($)*S(N)):1}function ot($,N){return($[0]*N[1]<$[1]*N[0]?-1:1)*Math.acos(dt($,N))}function ht($,N){var J=N[1],tt=N[2],ct=(0,ft.wQ)((0,ft.c$)(N[3]),Math.PI*2),nt=N[4],j=N[5],B=$[0],b=$[1],L=N[6],Q=N[7],st=Math.cos(ct)*(B-L)/2+Math.sin(ct)*(b-Q)/2,at=-1*Math.sin(ct)*(B-L)/2+Math.cos(ct)*(b-Q)/2,R=st*st/(J*J)+at*at/(tt*tt);R>1&&(J*=Math.sqrt(R),tt*=Math.sqrt(R));var y=J*J*(at*at)+tt*tt*(st*st),w=y?Math.sqrt((J*J*(tt*tt)-y)/y):1;nt===j&&(w*=-1),isNaN(w)&&(w=0);var X=tt?w*J*at/tt:0,W=J?w*-tt*st/J:0,ut=(B+L)/2+Math.cos(ct)*X-Math.sin(ct)*W,yt=(b+Q)/2+Math.sin(ct)*X+Math.cos(ct)*W,Pt=[(st-X)/J,(at-W)/tt],Ht=[(-1*st-X)/J,(-1*at-W)/tt],Wt=ot([1,0],Pt),Tt=ot(Pt,Ht);return dt(Pt,Ht)<=-1&&(Tt=Math.PI),dt(Pt,Ht)>=1&&(Tt=0),j===0&&Tt>0&&(Tt=Tt-2*Math.PI),j===1&&Tt<0&&(Tt=Tt+2*Math.PI),{cx:ut,cy:yt,rx:(0,ft.CF)($,[L,Q])?0:J,ry:(0,ft.CF)($,[L,Q])?0:tt,startAngle:Wt,endAngle:Wt+Tt,xRotation:ct,arcFlag:nt,sweepFlag:j}}},55274:function(Jt,St,H){"use strict";H.d(St,{YR:function(){return nt},Yf:function(){return ct},jF:function(){return tt}});var ft=H(99938),S=H(10541),dt=Math.sin,ot=Math.cos,ht=Math.atan2,$=Math.PI;function N(j,B,b,L,Q,st,at){var R=B.stroke,y=B.lineWidth,w=b-Q,X=L-st,W=ht(X,w),ut=new S.Path({type:"path",canvas:j.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*ot($/6)+","+10*dt($/6)+" L0,0 L"+10*ot($/6)+",-"+10*dt($/6),stroke:R,lineWidth:y}});ut.translate(Q,st),ut.rotateAtPoint(Q,st,W),j.set(at?"startArrowShape":"endArrowShape",ut)}function J(j,B,b,L,Q,st,at){var R=B.startArrow,y=B.endArrow,w=B.stroke,X=B.lineWidth,W=at?R:y,ut=W.d,yt=W.fill,Pt=W.stroke,Ht=W.lineWidth,Wt=(0,ft.__rest)(W,["d","fill","stroke","lineWidth"]),Tt=b-Q,_t=L-st,Ut=ht(_t,Tt);ut&&(Q=Q-ot(Ut)*ut,st=st-dt(Ut)*ut);var Yt=new S.Path({type:"path",canvas:j.get("canvas"),isArrowShape:!0,attrs:(0,ft.__assign)((0,ft.__assign)({},Wt),{stroke:Pt||w,lineWidth:Ht||X,fill:yt})});Yt.translate(Q,st),Yt.rotateAtPoint(Q,st,Ut),j.set(at?"startArrowShape":"endArrowShape",Yt)}function tt(j,B,b,L,Q){var st=ht(L-B,b-j);return{dx:ot(st)*Q,dy:dt(st)*Q}}function ct(j,B,b,L,Q,st){typeof B.startArrow=="object"?J(j,B,b,L,Q,st,!0):B.startArrow?N(j,B,b,L,Q,st,!0):j.set("startArrowShape",null)}function nt(j,B,b,L,Q,st){typeof B.endArrow=="object"?J(j,B,b,L,Q,st,!1):B.endArrow?N(j,B,b,L,Q,st,!1):j.set("startArrowShape",null)}},29246:function(Jt,St,H){"use strict";H.d(St,{DE:function(){return N},MC:function(){return b},NX:function(){return J},T2:function(){return at},kU:function(){return tt},md:function(){return L},sT:function(){return nt},tJ:function(){return st}});var ft=H(13526),S=H(95578),dt=H(61472),ot=H(76141),ht=H(55274),$={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function N(R,y){var w=y.attr();for(var X in w){var W=w[X],ut=$[X]?$[X]:X;ut==="matrix"&&W?R.transform(W[0],W[1],W[3],W[4],W[6],W[7]):ut==="lineDash"&&R.setLineDash?(0,ft.isArray)(W)&&R.setLineDash(W):(ut==="strokeStyle"||ut==="fillStyle"?W=(0,S.QK)(R,y,W):ut==="globalAlpha"&&(W=W*R.globalAlpha),R[ut]=W)}}function J(R,y,w){for(var X=0;X<y.length;X++){var W=y[X];W.cfg.visible?W.draw(R,w):W.skipDraw()}}function tt(R,y,w){var X=R.get("refreshElements");(0,ft.each)(X,function(W){if(W!==R)for(var ut=W.cfg.parent;ut&&ut!==R&&!ut.cfg.refresh;)ut.cfg.refresh=!0,ut=ut.cfg.parent}),X[0]===R?j(y,w):ct(y,w)}function ct(R,y){for(var w=0;w<R.length;w++){var X=R[w];if(X.cfg.visible)if(X.cfg.hasChanged)X.cfg.refresh=!0,X.isGroup()&&j(X.cfg.children,y);else if(X.cfg.refresh)X.isGroup()&&ct(X.cfg.children,y);else{var W=B(X,y);X.cfg.refresh=W,W&&X.isGroup()&&ct(X.cfg.children,y)}}}function nt(R){for(var y=0;y<R.length;y++){var w=R[y];w.cfg.hasChanged=!1,w.isGroup()&&!w.destroyed&&nt(w.cfg.children)}}function j(R,y){for(var w=0;w<R.length;w++){var X=R[w];X.cfg.visible&&(X.cfg.refresh=!0,X.isGroup()&&j(X.get("children"),y))}}function B(R,y){var w=R.cfg.cacheCanvasBBox,X=R.cfg.isInView&&w&&(0,ot.qb)(w,y);return X}function b(R,y,w,X){var W=w.path,ut=w.startArrow,yt=w.endArrow;if(W){var Pt=[0,0],Ht=[0,0],Wt={dx:0,dy:0};y.beginPath();for(var Tt=0;Tt<W.length;Tt++){var _t=W[Tt],Ut=_t[0];if(Tt===0&&ut&&ut.d){var Yt=R.getStartTangent();Wt=ht.jF(Yt[0][0],Yt[0][1],Yt[1][0],Yt[1][1],ut.d)}else if(Tt===W.length-2&&W[Tt+1][0]==="Z"&&yt&&yt.d){var Ot=W[Tt+1];if(Ot[0]==="Z"){var Yt=R.getEndTangent();Wt=ht.jF(Yt[0][0],Yt[0][1],Yt[1][0],Yt[1][1],yt.d)}}else if(Tt===W.length-1&&yt&&yt.d&&W[0]!=="Z"){var Yt=R.getEndTangent();Wt=ht.jF(Yt[0][0],Yt[0][1],Yt[1][0],Yt[1][1],yt.d)}var a=Wt.dx,d=Wt.dy;switch(Ut){case"M":y.moveTo(_t[1]-a,_t[2]-d),Ht=[_t[1],_t[2]];break;case"L":y.lineTo(_t[1]-a,_t[2]-d);break;case"Q":y.quadraticCurveTo(_t[1],_t[2],_t[3]-a,_t[4]-d);break;case"C":y.bezierCurveTo(_t[1],_t[2],_t[3],_t[4],_t[5]-a,_t[6]-d);break;case"A":{var K=void 0;X?(K=X[Tt],K||(K=(0,dt.Z)(Pt,_t),X[Tt]=K)):K=(0,dt.Z)(Pt,_t);var gt=K.cx,xt=K.cy,p=K.rx,_=K.ry,k=K.startAngle,E=K.endAngle,Z=K.xRotation,it=K.sweepFlag;if(y.ellipse)y.ellipse(gt,xt,p,_,Z,k,E,1-it);else{var M=p>_?p:_,s=p>_?1:p/_,e=p>_?_/p:1;y.translate(gt,xt),y.rotate(Z),y.scale(s,e),y.arc(0,0,M,k,E,1-it),y.scale(1/s,1/e),y.rotate(-Z),y.translate(-gt,-xt)}break}case"Z":y.closePath();break;default:break}if(Ut==="Z")Pt=Ht;else{var t=_t.length;Pt=[_t[t-2],_t[t-1]]}}}}function L(R,y){var w=R.get("canvas");w&&(y==="remove"&&(R._cacheCanvasBBox=R.get("cacheCanvasBBox")),R.get("hasChanged")||(R.set("hasChanged",!0),R.cfg.parent&&R.cfg.parent.get("hasChanged")||(w.refreshElement(R,y,w),w.get("autoDraw")&&w.draw())))}function Q(R){var y;if(R.destroyed)y=R._cacheCanvasBBox;else{var w=R.get("cacheCanvasBBox"),X=w&&!!(w.width&&w.height),W=R.getCanvasBBox(),ut=W&&!!(W.width&&W.height);X&&ut?y=(0,ot.Me)(w,W):X?y=w:ut&&(y=W)}return y}function st(R){if(!R.length)return null;var y=[],w=[],X=[],W=[];return(0,ft.each)(R,function(ut){var yt=Q(ut);yt&&(y.push(yt.minX),w.push(yt.minY),X.push(yt.maxX),W.push(yt.maxY))}),{minX:(0,ft.min)(y),minY:(0,ft.min)(w),maxX:(0,ft.max)(X),maxY:(0,ft.max)(W)}}function at(R,y){return!R||!y||!(0,ot.qb)(R,y)?null:{minX:Math.max(R.minX,y.minX),minY:Math.max(R.minY,y.minY),maxX:Math.min(R.maxX,y.maxX),maxY:Math.min(R.maxY,y.maxY)}}},95578:function(Jt,St,H){"use strict";H.d(St,{Fy:function(){return nt},QK:function(){return ct}});var ft=H(76141),S=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,dt=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,ot=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,ht=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function $(j,B){var b=j.match(ht);(0,ft.S6)(b,function(L){var Q=L.split(":");B.addColorStop(Q[0],Q[1])})}function N(j,B,b){var L=S.exec(b),Q=parseFloat(L[1])%360*(Math.PI/180),st=L[2],at=B.getBBox(),R,y;Q>=0&&Q<1/2*Math.PI?(R={x:at.minX,y:at.minY},y={x:at.maxX,y:at.maxY}):1/2*Math.PI<=Q&&Q<Math.PI?(R={x:at.maxX,y:at.minY},y={x:at.minX,y:at.maxY}):Math.PI<=Q&&Q<3/2*Math.PI?(R={x:at.maxX,y:at.maxY},y={x:at.minX,y:at.minY}):(R={x:at.minX,y:at.maxY},y={x:at.maxX,y:at.minY});var w=Math.tan(Q),X=w*w,W=(y.x-R.x+w*(y.y-R.y))/(X+1)+R.x,ut=w*(y.x-R.x+w*(y.y-R.y))/(X+1)+R.y,yt=j.createLinearGradient(R.x,R.y,W,ut);return $(st,yt),yt}function J(j,B,b){var L=dt.exec(b),Q=parseFloat(L[1]),st=parseFloat(L[2]),at=parseFloat(L[3]),R=L[4];if(at===0){var y=R.match(ht);return y[y.length-1].split(":")[1]}var w=B.getBBox(),X=w.maxX-w.minX,W=w.maxY-w.minY,ut=Math.sqrt(X*X+W*W)/2,yt=j.createRadialGradient(w.minX+X*Q,w.minY+W*st,0,w.minX+X/2,w.minY+W/2,at*ut);return $(R,yt),yt}function tt(j,B,b){if(B.get("patternSource")&&B.get("patternSource")===b)return B.get("pattern");var L,Q,st=ot.exec(b),at=st[1],R=st[2];function y(){L=j.createPattern(Q,at),B.set("pattern",L),B.set("patternSource",b)}switch(at){case"a":at="repeat";break;case"x":at="repeat-x";break;case"y":at="repeat-y";break;case"n":at="no-repeat";break;default:at="no-repeat"}return Q=new Image,R.match(/^data:/i)||(Q.crossOrigin="Anonymous"),Q.src=R,Q.complete?y():(Q.onload=y,Q.src=Q.src),L}function ct(j,B,b){var L=B.getBBox();if(isNaN(L.x)||isNaN(L.y)||isNaN(L.width)||isNaN(L.height))return b;if((0,ft.HD)(b)){if(b[1]==="("||b[2]==="("){if(b[0]==="l")return N(j,B,b);if(b[0]==="r")return J(j,B,b);if(b[0]==="p")return tt(j,B,b)}return b}if(b instanceof CanvasPattern)return b}function nt(j){var B=0,b=0,L=0,Q=0;return(0,ft.kJ)(j)?j.length===1?B=b=L=Q=j[0]:j.length===2?(B=L=j[0],b=Q=j[1]):j.length===3?(B=j[0],b=Q=j[1],L=j[2]):(B=j[0],b=j[1],L=j[2],Q=j[3]):B=b=L=Q=j,[B,b,L,Q]}},76141:function(Jt,St,H){"use strict";H.d(St,{CF:function(){return N},HD:function(){return ft.isString},Me:function(){return $},S6:function(){return ft.each},TE:function(){return dt},U7:function(){return ft.requestAnimationFrame},VS:function(){return ft.clearAnimationFrame},c$:function(){return ft.toRadian},kJ:function(){return ft.isArray},kK:function(){return ft.isNil},mX:function(){return S},mf:function(){return ft.isFunction},mh:function(){return ot},qb:function(){return ht},wQ:function(){return ft.mod}});var ft=H(13526);function S(){return window?window.devicePixelRatio:1}function dt(J,tt,ct,nt){var j=J-ct,B=tt-nt;return Math.sqrt(j*j+B*B)}function ot(J,tt,ct,nt,j,B){return j>=J&&j<=J+ct&&B>=tt&&B<=tt+nt}function ht(J,tt){return!(tt.minX>J.maxX||tt.maxX<J.minX||tt.minY>J.maxY||tt.maxY<J.minY)}function $(J,tt){return!J||!tt?J||tt:{minX:Math.min(J.minX,tt.minX),minY:Math.min(J.minY,tt.minY),maxX:Math.max(J.maxX,tt.maxX),maxY:Math.max(J.maxY,tt.maxY)}}function N(J,tt){return J[0]===tt[0]&&J[1]===tt[1]}},86031:function(Jt,St,H){"use strict";H.d(St,{wN:function(){return K},Ll:function(){return ut},x1:function(){return tt},aH:function(){return E},lD:function(){return at},Zr:function(){return ft}});var ft={};H.r(ft),H.d(ft,{distance:function(){return dt},getBBoxByArray:function(){return ht},getBBoxRange:function(){return $},isNumberEqual:function(){return ot},piMod:function(){return N}});var S=H(13526);function dt(M,s,e,t){var u=M-e,c=s-t;return Math.sqrt(u*u+c*c)}function ot(M,s){return Math.abs(M-s)<.001}function ht(M,s){var e=(0,S.min)(M),t=(0,S.min)(s),u=(0,S.max)(M),c=(0,S.max)(s);return{x:e,y:t,width:u-e,height:c-t}}function $(M,s,e,t){return{minX:(0,S.min)([M,e]),maxX:(0,S.max)([M,e]),minY:(0,S.min)([s,t]),maxY:(0,S.max)([s,t])}}function N(M){return(M+Math.PI*2)%(Math.PI*2)}var J=H(38015),tt={box:function(M,s,e,t){return ht([M,e],[s,t])},length:function(M,s,e,t){return dt(M,s,e,t)},pointAt:function(M,s,e,t,u){return{x:(1-u)*M+u*e,y:(1-u)*s+u*t}},pointDistance:function(M,s,e,t,u,c){var l=(e-M)*(u-M)+(t-s)*(c-s);if(l<0)return dt(M,s,u,c);var C=(e-M)*(e-M)+(t-s)*(t-s);return l>C?dt(e,t,u,c):this.pointToLine(M,s,e,t,u,c)},pointToLine:function(M,s,e,t,u,c){var l=[e-M,t-s];if(J.exactEquals(l,[0,0]))return Math.sqrt((u-M)*(u-M)+(c-s)*(c-s));var C=[-l[1],l[0]];J.normalize(C,C);var A=[u-M,c-s];return Math.abs(J.dot(A,C))},tangentAngle:function(M,s,e,t){return Math.atan2(t-s,e-M)}},ct=1e-4;function nt(M,s,e,t,u,c){var l,C=1/0,A=[e,t],Y=20;c&&c>200&&(Y=c/10);for(var I=1/Y,g=I/10,n=0;n<=Y;n++){var v=n*I,m=[u.apply(null,M.concat([v])),u.apply(null,s.concat([v]))],r=dt(A[0],A[1],m[0],m[1]);r<C&&(l=v,C=r)}if(l===0)return{x:M[0],y:s[0]};if(l===1){var i=M.length;return{x:M[i-1],y:s[i-1]}}C=1/0;for(var n=0;n<32&&!(g<ct);n++){var o=l-g,P=l+g,m=[u.apply(null,M.concat([o])),u.apply(null,s.concat([o]))],r=dt(A[0],A[1],m[0],m[1]);if(o>=0&&r<C)l=o,C=r;else{var F=[u.apply(null,M.concat([P])),u.apply(null,s.concat([P]))],V=dt(A[0],A[1],F[0],F[1]);P<=1&&V<C?(l=P,C=V):g*=.5}}return{x:u.apply(null,M.concat([l])),y:u.apply(null,s.concat([l]))}}function j(M,s){for(var e=0,t=M.length,u=0;u<t;u++){var c=M[u],l=s[u],C=M[(u+1)%t],A=s[(u+1)%t];e+=dt(c,l,C,A)}return e/2}function B(M,s,e,t){var u=1-t;return u*u*M+2*t*u*s+t*t*e}function b(M,s,e){var t=M+e-2*s;if(ot(t,0))return[.5];var u=(M-s)/t;return u<=1&&u>=0?[u]:[]}function L(M,s,e,t){return 2*(1-t)*(s-M)+2*t*(e-s)}function Q(M,s,e,t,u,c,l){var C=B(M,e,u,l),A=B(s,t,c,l),Y=tt.pointAt(M,s,e,t,l),I=tt.pointAt(e,t,u,c,l);return[[M,s,Y.x,Y.y,C,A],[C,A,I.x,I.y,u,c]]}function st(M,s,e,t,u,c,l){if(l===0)return(dt(M,s,e,t)+dt(e,t,u,c)+dt(M,s,u,c))/2;var C=Q(M,s,e,t,u,c,.5),A=C[0],Y=C[1];return A.push(l-1),Y.push(l-1),st.apply(null,A)+st.apply(null,Y)}var at={box:function(M,s,e,t,u,c){var l=b(M,e,u)[0],C=b(s,t,c)[0],A=[M,u],Y=[s,c];return l!==void 0&&A.push(B(M,e,u,l)),C!==void 0&&Y.push(B(s,t,c,C)),ht(A,Y)},length:function(M,s,e,t,u,c){return st(M,s,e,t,u,c,3)},nearestPoint:function(M,s,e,t,u,c,l,C){return nt([M,e,u],[s,t,c],l,C,B)},pointDistance:function(M,s,e,t,u,c,l,C){var A=this.nearestPoint(M,s,e,t,u,c,l,C);return dt(A.x,A.y,l,C)},interpolationAt:B,pointAt:function(M,s,e,t,u,c,l){return{x:B(M,e,u,l),y:B(s,t,c,l)}},divide:function(M,s,e,t,u,c,l){return Q(M,s,e,t,u,c,l)},tangentAngle:function(M,s,e,t,u,c,l){var C=L(M,e,u,l),A=L(s,t,c,l),Y=Math.atan2(A,C);return N(Y)}};function R(M,s,e,t,u){var c=1-u;return c*c*c*M+3*s*u*c*c+3*e*u*u*c+t*u*u*u}function y(M,s,e,t,u){var c=1-u;return 3*(c*c*(s-M)+2*c*u*(e-s)+u*u*(t-e))}function w(M,s,e,t){var u=-3*M+9*s-9*e+3*t,c=6*M-12*s+6*e,l=3*s-3*M,C=[],A,Y,I;if(ot(u,0))ot(c,0)||(A=-l/c,A>=0&&A<=1&&C.push(A));else{var g=c*c-4*u*l;ot(g,0)?C.push(-c/(2*u)):g>0&&(I=Math.sqrt(g),A=(-c+I)/(2*u),Y=(-c-I)/(2*u),A>=0&&A<=1&&C.push(A),Y>=0&&Y<=1&&C.push(Y))}return C}function X(M,s,e,t,u,c,l,C,A){var Y=R(M,e,u,l,A),I=R(s,t,c,C,A),g=tt.pointAt(M,s,e,t,A),n=tt.pointAt(e,t,u,c,A),v=tt.pointAt(u,c,l,C,A),m=tt.pointAt(g.x,g.y,n.x,n.y,A),r=tt.pointAt(n.x,n.y,v.x,v.y,A);return[[M,s,g.x,g.y,m.x,m.y,Y,I],[Y,I,r.x,r.y,v.x,v.y,l,C]]}function W(M,s,e,t,u,c,l,C,A){if(A===0)return j([M,e,u,l],[s,t,c,C]);var Y=X(M,s,e,t,u,c,l,C,.5),I=Y[0],g=Y[1];return I.push(A-1),g.push(A-1),W.apply(null,I)+W.apply(null,g)}var ut={extrema:w,box:function(M,s,e,t,u,c,l,C){for(var A=[M,l],Y=[s,C],I=w(M,e,u,l),g=w(s,t,c,C),n=0;n<I.length;n++)A.push(R(M,e,u,l,I[n]));for(var n=0;n<g.length;n++)Y.push(R(s,t,c,C,g[n]));return ht(A,Y)},length:function(M,s,e,t,u,c,l,C){return W(M,s,e,t,u,c,l,C,3)},nearestPoint:function(M,s,e,t,u,c,l,C,A,Y,I){return nt([M,e,u,l],[s,t,c,C],A,Y,R,I)},pointDistance:function(M,s,e,t,u,c,l,C,A,Y,I){var g=this.nearestPoint(M,s,e,t,u,c,l,C,A,Y,I);return dt(g.x,g.y,A,Y)},interpolationAt:R,pointAt:function(M,s,e,t,u,c,l,C,A){return{x:R(M,e,u,l,A),y:R(s,t,c,C,A)}},divide:function(M,s,e,t,u,c,l,C,A){return X(M,s,e,t,u,c,l,C,A)},tangentAngle:function(M,s,e,t,u,c,l,C,A){var Y=y(M,e,u,l,A),I=y(s,t,c,C,A);return N(Math.atan2(I,Y))}};function yt(M,s){var e=Math.abs(M);return s>0?e:e*-1}var Pt={box:function(M,s,e,t){return{x:M-e,y:s-t,width:e*2,height:t*2}},length:function(M,s,e,t){return Math.PI*(3*(e+t)-Math.sqrt((3*e+t)*(e+3*t)))},nearestPoint:function(M,s,e,t,u,c){var l=e,C=t;if(l===0||C===0)return{x:M,y:s};for(var A=u-M,Y=c-s,I=Math.abs(A),g=Math.abs(Y),n=l*l,v=C*C,m=Math.PI/4,r,i,o=0;o<4;o++){r=l*Math.cos(m),i=C*Math.sin(m);var P=(n-v)*Math.pow(Math.cos(m),3)/l,F=(v-n)*Math.pow(Math.sin(m),3)/C,V=r-P,q=i-F,rt=I-P,et=g-F,mt=Math.hypot(q,V),pt=Math.hypot(et,rt),bt=mt*Math.asin((V*et-q*rt)/(mt*pt)),Ft=bt/Math.sqrt(n+v-r*r-i*i);m+=Ft,m=Math.min(Math.PI/2,Math.max(0,m))}return{x:M+yt(r,A),y:s+yt(i,Y)}},pointDistance:function(M,s,e,t,u,c){var l=this.nearestPoint(M,s,e,t,u,c);return dt(l.x,l.y,u,c)},pointAt:function(M,s,e,t,u){var c=2*Math.PI*u;return{x:M+e*Math.cos(c),y:s+t*Math.sin(c)}},tangentAngle:function(M,s,e,t,u){var c=2*Math.PI*u,l=Math.atan2(t*Math.cos(c),-e*Math.sin(c));return N(l)}};function Ht(M,s,e,t,u,c,l,C){return-1*e*Math.cos(u)*Math.sin(C)-t*Math.sin(u)*Math.cos(C)}function Wt(M,s,e,t,u,c,l,C){return-1*e*Math.sin(u)*Math.sin(C)+t*Math.cos(u)*Math.cos(C)}function Tt(M,s,e){return Math.atan(-s/M*Math.tan(e))}function _t(M,s,e){return Math.atan(s/(M*Math.tan(e)))}function Ut(M,s,e,t,u,c){return e*Math.cos(u)*Math.cos(c)-t*Math.sin(u)*Math.sin(c)+M}function Yt(M,s,e,t,u,c){return e*Math.sin(u)*Math.cos(c)+t*Math.cos(u)*Math.sin(c)+s}function Ot(M,s,e,t){var u=Math.atan2(t*M,e*s);return(u+Math.PI*2)%(Math.PI*2)}function a(M,s,e){return{x:M*Math.cos(e),y:s*Math.sin(e)}}function d(M,s,e){var t=Math.cos(e),u=Math.sin(e);return[M*t-s*u,M*u+s*t]}var K={box:function(M,s,e,t,u,c,l){for(var C=Tt(e,t,u),A=1/0,Y=-1/0,I=[c,l],g=-Math.PI*2;g<=Math.PI*2;g+=Math.PI){var n=C+g;c<l?c<n&&n<l&&I.push(n):l<n&&n<c&&I.push(n)}for(var g=0;g<I.length;g++){var v=Ut(M,s,e,t,u,I[g]);v<A&&(A=v),v>Y&&(Y=v)}for(var m=_t(e,t,u),r=1/0,i=-1/0,o=[c,l],g=-Math.PI*2;g<=Math.PI*2;g+=Math.PI){var P=m+g;c<l?c<P&&P<l&&o.push(P):l<P&&P<c&&o.push(P)}for(var g=0;g<o.length;g++){var F=Yt(M,s,e,t,u,o[g]);F<r&&(r=F),F>i&&(i=F)}return{x:A,y:r,width:Y-A,height:i-r}},length:function(M,s,e,t,u,c,l){},nearestPoint:function(M,s,e,t,u,c,l,C,A){var Y=d(C-M,A-s,-u),I=Y[0],g=Y[1],n=Pt.nearestPoint(0,0,e,t,I,g),v=Ot(e,t,n.x,n.y);v<c?n=a(e,t,c):v>l&&(n=a(e,t,l));var m=d(n.x,n.y,u);return{x:m[0]+M,y:m[1]+s}},pointDistance:function(M,s,e,t,u,c,l,C,A){var Y=this.nearestPoint(M,s,e,t,C,A);return dt(Y.x,Y.y,C,A)},pointAt:function(M,s,e,t,u,c,l,C){var A=(l-c)*C+c;return{x:Ut(M,s,e,t,u,A),y:Yt(M,s,e,t,u,A)}},tangentAngle:function(M,s,e,t,u,c,l,C){var A=(l-c)*C+c,Y=Ht(M,s,e,t,u,c,l,A),I=Wt(M,s,e,t,u,c,l,A);return N(Math.atan2(I,Y))}};function gt(M){for(var s=0,e=[],t=0;t<M.length-1;t++){var u=M[t],c=M[t+1],l=dt(u[0],u[1],c[0],c[1]),C={from:u,to:c,length:l};e.push(C),s+=l}return{segments:e,totalLength:s}}function xt(M){if(M.length<2)return 0;for(var s=0,e=0;e<M.length-1;e++){var t=M[e],u=M[e+1];s+=dt(t[0],t[1],u[0],u[1])}return s}function p(M,s){if(s>1||s<0||M.length<2)return null;var e=gt(M),t=e.segments,u=e.totalLength;if(u===0)return{x:M[0][0],y:M[0][1]};for(var c=0,l=null,C=0;C<t.length;C++){var A=t[C],Y=A.from,I=A.to,g=A.length/u;if(s>=c&&s<=c+g){var n=(s-c)/g;l=tt.pointAt(Y[0],Y[1],I[0],I[1],n);break}c+=g}return l}function _(M,s){if(s>1||s<0||M.length<2)return 0;for(var e=gt(M),t=e.segments,u=e.totalLength,c=0,l=0,C=0;C<t.length;C++){var A=t[C],Y=A.from,I=A.to,g=A.length/u;if(s>=c&&s<=c+g){l=Math.atan2(I[1]-Y[1],I[0]-Y[0]);break}c+=g}return l}function k(M,s,e){for(var t=1/0,u=0;u<M.length-1;u++){var c=M[u],l=M[u+1],C=tt.pointDistance(c[0],c[1],l[0],l[1],s,e);C<t&&(t=C)}return t}var E={box:function(M){for(var s=[],e=[],t=0;t<M.length;t++){var u=M[t];s.push(u[0]),e.push(u[1])}return ht(s,e)},length:function(M){return xt(M)},pointAt:function(M,s){return p(M,s)},pointDistance:function(M,s,e){return k(M,s,e)},tangentAngle:function(M,s){return _(M,s)}};function Z(M){var s=M.slice(0);return M.length&&s.push(M[0]),s}var it={box:function(M){return E.box(M)},length:function(M){return xt(Z(M))},pointAt:function(M,s){return p(Z(M),s)},pointDistance:function(M,s,e){return k(Z(M),s,e)},tangentAngle:function(M,s){return _(Z(M),s)}}},87234:function(Jt,St,H){"use strict";H.d(St,{Z:function(){return Yt}});var ft=H(99938),S=H(25099),dt=H(29242),ot=H(22372),ht=H(26607),$=H(85033),N=H(43544),J=H(31615),tt=H(13526),ct=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,nt=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,j=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function B(Ot){var a=Ot.match(j);if(!a)return"";var d="";return a.sort(function(K,gt){return K=K.split(":"),gt=gt.split(":"),Number(K[0])-Number(gt[0])}),(0,tt.each)(a,function(K){K=K.split(":"),d+='<stop offset="'+K[0]+'" stop-color="'+K[1]+'"></stop>'}),d}function b(Ot,a){var d=ct.exec(Ot),K=(0,tt.mod)((0,tt.toRadian)(parseFloat(d[1])),Math.PI*2),gt=d[2],xt,p;K>=0&&K<.5*Math.PI?(xt={x:0,y:0},p={x:1,y:1}):.5*Math.PI<=K&&K<Math.PI?(xt={x:1,y:0},p={x:0,y:1}):Math.PI<=K&&K<1.5*Math.PI?(xt={x:1,y:1},p={x:0,y:0}):(xt={x:0,y:1},p={x:1,y:0});var _=Math.tan(K),k=_*_,E=(p.x-xt.x+_*(p.y-xt.y))/(k+1)+xt.x,Z=_*(p.x-xt.x+_*(p.y-xt.y))/(k+1)+xt.y;a.setAttribute("x1",xt.x),a.setAttribute("y1",xt.y),a.setAttribute("x2",E),a.setAttribute("y2",Z),a.innerHTML=B(gt)}function L(Ot,a){var d=nt.exec(Ot),K=parseFloat(d[1]),gt=parseFloat(d[2]),xt=parseFloat(d[3]),p=d[4];a.setAttribute("cx",K),a.setAttribute("cy",gt),a.setAttribute("r",xt),a.innerHTML=B(p)}var Q=function(){function Ot(a){this.cfg={};var d=null,K=(0,tt.uniqueId)("gradient_");return a.toLowerCase()[0]==="l"?(d=(0,$.rS)("linearGradient"),b(a,d)):(d=(0,$.rS)("radialGradient"),L(a,d)),d.setAttribute("id",K),this.el=d,this.id=K,this.cfg=a,this}return Ot.prototype.match=function(a,d){return this.cfg===d},Ot}(),st=Q,at={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},R={x:"-40%",y:"-40%",width:"200%",height:"200%"},y=function(){function Ot(a){this.type="filter",this.cfg={},this.type="filter";var d=(0,$.rS)("filter");return(0,tt.each)(R,function(K,gt){d.setAttribute(gt,K)}),this.el=d,this.id=(0,tt.uniqueId)("filter_"),this.el.id=this.id,this.cfg=a,this._parseShadow(a,d),this}return Ot.prototype.match=function(a,d){if(this.type!==a)return!1;var K=!0,gt=this.cfg;return(0,tt.each)(Object.keys(gt),function(xt){if(gt[xt]!==d[xt])return K=!1,!1}),K},Ot.prototype.update=function(a,d){var K=this.cfg;return K[at[a]]=d,this._parseShadow(K,this.el),this},Ot.prototype._parseShadow=function(a,d){var K=`<feDropShadow
|
|
dx="`+(a.dx||0)+`"
|
|
dy="`+(a.dy||0)+`"
|
|
stdDeviation="`+(a.blur?a.blur/10:0)+`"
|
|
flood-color="`+(a.color?a.color:"#000")+`"
|
|
flood-opacity="`+(a.opacity?a.opacity:1)+`"
|
|
/>`;d.innerHTML=K},Ot}(),w=y,X=function(){function Ot(a,d){this.cfg={};var K=(0,$.rS)("marker"),gt=(0,tt.uniqueId)("marker_");K.setAttribute("id",gt);var xt=(0,$.rS)("path");xt.setAttribute("stroke",a.stroke||"none"),xt.setAttribute("fill",a.fill||"none"),K.appendChild(xt),K.setAttribute("overflow","visible"),K.setAttribute("orient","auto-start-reverse"),this.el=K,this.child=xt,this.id=gt;var p=a[d==="marker-start"?"startArrow":"endArrow"];return this.stroke=a.stroke||"#000",p===!0?this._setDefaultPath(d,xt):(this.cfg=p,this._setMarker(a.lineWidth,xt)),this}return Ot.prototype.match=function(){return!1},Ot.prototype._setDefaultPath=function(a,d){var K=this.el;d.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),K.setAttribute("refX",""+10*Math.cos(Math.PI/6)),K.setAttribute("refY","5")},Ot.prototype._setMarker=function(a,d){var K=this.el,gt=this.cfg.path,xt=this.cfg.d;(0,tt.isArray)(gt)&&(gt=gt.map(function(p){return p.join(" ")}).join("")),d.setAttribute("d",gt),K.appendChild(d),xt&&K.setAttribute("refX",""+xt/a)},Ot.prototype.update=function(a){var d=this.child;d.attr?d.attr("fill",a):d.setAttribute("fill",a)},Ot}(),W=X,ut=function(){function Ot(a){this.type="clip",this.cfg={};var d=(0,$.rS)("clipPath");this.el=d,this.id=(0,tt.uniqueId)("clip_"),d.id=this.id;var K=a.cfg.el;return d.appendChild(K),this.cfg=a,this}return Ot.prototype.match=function(){return!1},Ot.prototype.remove=function(){var a=this.el;a.parentNode.removeChild(a)},Ot}(),yt=ut,Pt=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,Ht=function(){function Ot(a){this.cfg={};var d=(0,$.rS)("pattern");d.setAttribute("patternUnits","userSpaceOnUse");var K=(0,$.rS)("image");d.appendChild(K);var gt=(0,tt.uniqueId)("pattern_");d.id=gt,this.el=d,this.id=gt,this.cfg=a;var xt=Pt.exec(a),p=xt[2];K.setAttribute("href",p);var _=new Image;p.match(/^data:/i)||(_.crossOrigin="Anonymous"),_.src=p;function k(){d.setAttribute("width",""+_.width),d.setAttribute("height",""+_.height)}return _.complete?k():(_.onload=k,_.src=_.src),this}return Ot.prototype.match=function(a,d){return this.cfg===d},Ot}(),Wt=Ht,Tt=function(){function Ot(a){var d=(0,$.rS)("defs"),K=(0,tt.uniqueId)("defs_");d.id=K,a.appendChild(d),this.children=[],this.defaultArrow={},this.el=d,this.canvas=a}return Ot.prototype.find=function(a,d){for(var K=this.children,gt=null,xt=0;xt<K.length;xt++)if(K[xt].match(a,d)){gt=K[xt].id;break}return gt},Ot.prototype.findById=function(a){for(var d=this.children,K=null,gt=0;gt<d.length;gt++)if(d[gt].id===a){K=d[gt];break}return K},Ot.prototype.add=function(a){this.children.push(a),a.canvas=this.canvas,a.parent=this},Ot.prototype.getDefaultArrow=function(a,d){var K=a.stroke||a.strokeStyle;if(this.defaultArrow[K])return this.defaultArrow[K].id;var gt=new W(a,d);return this.defaultArrow[K]=gt,this.el.appendChild(gt.el),this.add(gt),gt.id},Ot.prototype.addGradient=function(a){var d=new st(a);return this.el.appendChild(d.el),this.add(d),d.id},Ot.prototype.addArrow=function(a,d){var K=new W(a,d);return this.el.appendChild(K.el),this.add(K),K.id},Ot.prototype.addShadow=function(a){var d=new w(a);return this.el.appendChild(d.el),this.add(d),d.id},Ot.prototype.addPattern=function(a){var d=new Wt(a);return this.el.appendChild(d.el),this.add(d),d.id},Ot.prototype.addClip=function(a){var d=new yt(a);return this.el.appendChild(d.el),this.add(d),d.id},Ot}(),_t=Tt,Ut=function(Ot){(0,ft.__extends)(a,Ot);function a(d){return Ot.call(this,(0,ft.__assign)((0,ft.__assign)({},d),{autoDraw:!0,renderer:"svg"}))||this}return a.prototype.getShapeBase=function(){return N},a.prototype.getGroupBase=function(){return J.Z},a.prototype.getShape=function(d,K,gt){var xt=gt.target||gt.srcElement;if(!dt.CX[xt.tagName]){for(var p=xt.parentNode;p&&!dt.CX[p.tagName];)p=p.parentNode;xt=p}return this.find(function(_){return _.get("el")===xt})},a.prototype.createDom=function(){var d=(0,$.rS)("svg"),K=new _t(d);return d.setAttribute("width",""+this.get("width")),d.setAttribute("height",""+this.get("height")),this.set("context",K),d},a.prototype.onCanvasChange=function(d){var K=this.get("context"),gt=this.get("el");if(d==="sort"){var xt=this.get("children");xt&&xt.length&&(0,$.ZL)(this,function(_,k){return xt.indexOf(_)-xt.indexOf(k)?1:0})}else if(d==="clear"){if(gt){gt.innerHTML="";var p=K.el;p.innerHTML="",gt.appendChild(p)}}else d==="matrix"?(0,ht.B2)(this):d==="clip"?(0,ht.r7)(this,K):d==="changeSize"&&(gt.setAttribute("width",""+this.get("width")),gt.setAttribute("height",""+this.get("height")))},a.prototype.draw=function(){var d=this.get("context"),K=this.getChildren();(0,ht.r7)(this,d),K.length&&(0,ot.N)(d,K)},a}(S.AbstractCanvas),Yt=Ut},29242:function(Jt,St,H){"use strict";H.d(St,{A8:function(){return S},CX:function(){return ft}});var ft={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},S={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"},dt=null},31615:function(Jt,St,H){"use strict";var ft=H(99938),S=H(25099),dt=H(13526),ot=H(43544),ht=H(22372),$=H(26607),N=H(29242),J=H(85033),tt=function(ct){(0,ft.__extends)(nt,ct);function nt(){return ct!==null&&ct.apply(this,arguments)||this}return nt.prototype.isEntityGroup=function(){return!0},nt.prototype.createDom=function(){var j=(0,J.rS)("g");this.set("el",j);var B=this.getParent();if(B){var b=B.get("el");b||(b=B.createDom(),B.set("el",b)),b.appendChild(j)}return j},nt.prototype.afterAttrsChange=function(j){ct.prototype.afterAttrsChange.call(this,j);var B=this.get("canvas");if(B&&B.get("autoDraw")){var b=B.get("context");this.createPath(b,j)}},nt.prototype.onCanvasChange=function(j){(0,ht.m)(this,j)},nt.prototype.getShapeBase=function(){return ot},nt.prototype.getGroupBase=function(){return nt},nt.prototype.draw=function(j){var B=this.getChildren(),b=this.get("el");this.get("destroyed")?b&&b.parentNode.removeChild(b):(b||this.createDom(),(0,$.r7)(this,j),this.createPath(j),B.length&&(0,ht.N)(j,B))},nt.prototype.createPath=function(j,B){var b=this.attr(),L=this.get("el");(0,dt.each)(B||b,function(Q,st){N.A8[st]&&L.setAttribute(N.A8[st],Q)}),(0,$.B2)(this)},nt}(S.AbstractGroup);St.Z=tt},42423:function(Jt,St,H){"use strict";H.r(St),H.d(St,{Canvas:function(){return ht.Z},Group:function(){return $.Z},Shape:function(){return ft},version:function(){return N}});var ft=H(43544),S=H(25099),dt={};for(var ot in S)["default","Canvas","Group","Shape","version"].indexOf(ot)<0&&(dt[ot]=function(J){return S[J]}.bind(0,ot));H.d(St,dt);var ht=H(87234),$=H(31615),N="0.5.6"},43544:function(Jt,St,H){"use strict";H.r(St),H.d(St,{Base:function(){return ct},Circle:function(){return B},Dom:function(){return L},Ellipse:function(){return st},Image:function(){return R},Line:function(){return X},Marker:function(){return Pt},Path:function(){return Wt},Polygon:function(){return _t},Polyline:function(){return Yt},Rect:function(){return xt},Text:function(){return M}});var ft={};H.r(ft),H.d(ft,{Base:function(){return ct},Circle:function(){return B},Dom:function(){return L},Ellipse:function(){return st},Image:function(){return R},Line:function(){return X},Marker:function(){return Pt},Path:function(){return Wt},Polygon:function(){return _t},Polyline:function(){return Yt},Rect:function(){return xt},Text:function(){return M}});var S=H(99938),dt=H(25099),ot=H(26607),ht=H(85033),$=H(22372),N=H(29242),J=H(31615),tt=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="svg",t.canFill=!1,t.canStroke=!1,t}return e.prototype.getDefaultAttrs=function(){var t=s.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(t){s.prototype.afterAttrsChange.call(this,t);var u=this.get("canvas");if(u&&u.get("autoDraw")){var c=u.get("context");this.draw(c,t)}},e.prototype.getShapeBase=function(){return ft},e.prototype.getGroupBase=function(){return J.Z},e.prototype.onCanvasChange=function(t){(0,$.m)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),u=null;if(t)u=t.getBBox();else{var c=(0,dt.getBBoxMethod)(this.get("type"));c&&(u=c(this))}if(u){var l=u.x,C=u.y,A=u.width,Y=u.height,I=this.getHitLineWidth(),g=I/2,n=l-g,v=C-g,m=l+A+g,r=C+Y+g;return{x:n,y:v,minX:n,minY:v,maxX:m,maxY:r,width:A+I,height:Y+I}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),u=t.fill,c=t.fillStyle;return(u||c||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),u=t.stroke,c=t.strokeStyle;return(u||c)&&this.canStroke},e.prototype.draw=function(t,u){var c=this.get("el");this.get("destroyed")?c&&c.parentNode.removeChild(c):(c||(0,ht.WV)(this),(0,ot.r7)(this,t),this.createPath(t,u),this.shadow(t,u),this.strokeAndFill(t,u),this.transform(u))},e.prototype.createPath=function(t,u){},e.prototype.strokeAndFill=function(t,u){var c=u||this.attr(),l=c.fill,C=c.fillStyle,A=c.stroke,Y=c.strokeStyle,I=c.fillOpacity,g=c.strokeOpacity,n=c.lineWidth,v=this.get("el");this.canFill&&(u?"fill"in c?this._setColor(t,"fill",l):"fillStyle"in c&&this._setColor(t,"fill",C):this._setColor(t,"fill",l||C),I&&v.setAttribute(N.A8.fillOpacity,I)),this.canStroke&&n>0&&(u?"stroke"in c?this._setColor(t,"stroke",A):"strokeStyle"in c&&this._setColor(t,"stroke",Y):this._setColor(t,"stroke",A||Y),g&&v.setAttribute(N.A8.strokeOpacity,g),n&&v.setAttribute(N.A8.lineWidth,n))},e.prototype._setColor=function(t,u,c){var l=this.get("el");if(!c){l.setAttribute(N.A8[u],"none");return}if(c=c.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(c)){var C=t.find("gradient",c);C||(C=t.addGradient(c)),l.setAttribute(N.A8[u],"url(#"+C+")")}else if(/^[p,P]{1}[\s]*\(/.test(c)){var C=t.find("pattern",c);C||(C=t.addPattern(c)),l.setAttribute(N.A8[u],"url(#"+C+")")}else l.setAttribute(N.A8[u],c)},e.prototype.shadow=function(t,u){var c=this.attr(),l=u||c,C=l.shadowOffsetX,A=l.shadowOffsetY,Y=l.shadowBlur,I=l.shadowColor;(C||A||Y||I)&&(0,ot.kr)(this,t)},e.prototype.transform=function(t){var u=this.attr(),c=(t||u).matrix;c&&(0,ot.B2)(this)},e.prototype.isInShape=function(t,u){return this.isPointInPath(t,u)},e.prototype.isPointInPath=function(t,u){var c=this.get("el"),l=this.get("canvas"),C=l.get("el").getBoundingClientRect(),A=t+C.left,Y=u+C.top,I=document.elementFromPoint(A,Y);return!!(I&&I.isEqualNode(c))},e.prototype.getHitLineWidth=function(){var t=this.attrs,u=t.lineWidth,c=t.lineAppendWidth;return this.isStroke()?u+c:0},e}(dt.AbstractShape),ct=tt,nt=H(13526),j=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=s.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},t),{x:0,y:0,r:0})},e.prototype.createPath=function(t,u){var c=this.attr(),l=this.get("el");(0,nt.each)(u||c,function(C,A){A==="x"||A==="y"?l.setAttribute("c"+A,C):N.A8[A]&&l.setAttribute(N.A8[A],C)})},e}(ct),B=j,b=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return e.prototype.createPath=function(t,u){var c=this.attr(),l=this.get("el");if((0,nt.each)(u||c,function(I,g){N.A8[g]&&l.setAttribute(N.A8[g],I)}),typeof c.html=="function"){var C=c.html.call(this,c);if(C instanceof Element||C instanceof HTMLDocument){for(var A=l.childNodes,Y=A.length-1;Y>=0;Y--)l.removeChild(A[Y]);l.appendChild(C)}else l.innerHTML=C}else l.innerHTML=c.html},e}(ct),L=b,Q=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=s.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},t),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,u){var c=this.attr(),l=this.get("el");(0,nt.each)(u||c,function(C,A){A==="x"||A==="y"?l.setAttribute("c"+A,C):N.A8[A]&&l.setAttribute(N.A8[A],C)})},e}(ct),st=Q,at=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return e.prototype.getDefaultAttrs=function(){var t=s.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},t),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,u){var c=this,l=this.attr(),C=this.get("el");(0,nt.each)(u||l,function(A,Y){Y==="img"?c._setImage(l.img):N.A8[Y]&&C.setAttribute(N.A8[Y],A)})},e.prototype.setAttr=function(t,u){this.attrs[t]=u,t==="img"&&this._setImage(u)},e.prototype._setImage=function(t){var u=this.attr(),c=this.get("el");if((0,nt.isString)(t))c.setAttribute("href",t);else if(t instanceof window.Image)u.width||(c.setAttribute("width",t.width),this.attr("width",t.width)),u.height||(c.setAttribute("height",t.height),this.attr("height",t.height)),c.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,nt.isString)(t.nodeName)&&t.nodeName.toUpperCase()==="CANVAS")c.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var l=document.createElement("canvas");l.setAttribute("width",""+t.width),l.setAttribute("height",""+t.height),l.getContext("2d").putImageData(t,0,0),u.width||(c.setAttribute("width",""+t.width),this.attr("width",t.width)),u.height||(c.setAttribute("height",""+t.height),this.attr("height",t.height)),c.setAttribute("href",l.toDataURL())}},e}(ct),R=at,y=H(86031),w=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="line",t.canFill=!1,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=s.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,u){var c=this.attr(),l=this.get("el");(0,nt.each)(u||c,function(C,A){if(A==="startArrow"||A==="endArrow")if(C){var Y=(0,nt.isObject)(C)?t.addArrow(c,N.A8[A]):t.getDefaultArrow(c,N.A8[A]);l.setAttribute(N.A8[A],"url(#"+Y+")")}else l.removeAttribute(N.A8[A]);else N.A8[A]&&l.setAttribute(N.A8[A],C)})},e.prototype.getTotalLength=function(){var t=this.attr(),u=t.x1,c=t.y1,l=t.x2,C=t.y2;return y.x1.length(u,c,l,C)},e.prototype.getPoint=function(t){var u=this.attr(),c=u.x1,l=u.y1,C=u.x2,A=u.y2;return y.x1.pointAt(c,l,C,A,t)},e}(ct),X=w,W={circle:function(s,e,t){return[["M",s,e],["m",-t,0],["a",t,t,0,1,0,t*2,0],["a",t,t,0,1,0,-t*2,0]]},square:function(s,e,t){return[["M",s-t,e-t],["L",s+t,e-t],["L",s+t,e+t],["L",s-t,e+t],["Z"]]},diamond:function(s,e,t){return[["M",s-t,e],["L",s,e-t],["L",s+t,e],["L",s,e+t],["Z"]]},triangle:function(s,e,t){var u=t*Math.sin(.3333333333333333*Math.PI);return[["M",s-t,e+u],["L",s,e-u],["L",s+t,e+u],["z"]]},triangleDown:function(s,e,t){var u=t*Math.sin(.3333333333333333*Math.PI);return[["M",s-t,e-u],["L",s+t,e-u],["L",s,e+u],["Z"]]}},ut={get:function(s){return W[s]},register:function(s,e){W[s]=e},remove:function(s){delete W[s]},getAll:function(){return W}},yt=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="marker",t.canFill=!0,t.canStroke=!0,t}return e.prototype.createPath=function(t){var u=this.get("el");u.setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return(0,nt.isArray)(t)?t.map(function(u){return u.join(" ")}).join(""):t},e.prototype._getPath=function(){var t=this.attr(),u=t.x,c=t.y,l=t.r||t.radius,C=t.symbol||"circle",A;return(0,nt.isFunction)(C)?A=C:A=ut.get(C),A?A(u,c,l):(console.warn(A+" symbol is not exist."),null)},e.symbolsFactory=ut,e}(ct),Pt=yt,Ht=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="path",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=s.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},t),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,u){var c=this,l=this.attr(),C=this.get("el");(0,nt.each)(u||l,function(A,Y){if(Y==="path"&&(0,nt.isArray)(A))C.setAttribute("d",c._formatPath(A));else if(Y==="startArrow"||Y==="endArrow")if(A){var I=(0,nt.isObject)(A)?t.addArrow(l,N.A8[Y]):t.getDefaultArrow(l,N.A8[Y]);C.setAttribute(N.A8[Y],"url(#"+I+")")}else C.removeAttribute(N.A8[Y]);else N.A8[Y]&&C.setAttribute(N.A8[Y],A)})},e.prototype._formatPath=function(t){var u=t.map(function(c){return c.join(" ")}).join("");return~u.indexOf("NaN")?"":u},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var u=this.get("el"),c=this.getTotalLength();if(c===0)return null;var l=u?u.getPointAtLength(t*c):null;return l?{x:l.x,y:l.y}:null},e}(ct),Wt=Ht,Tt=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="polygon",t.canFill=!0,t.canStroke=!0,t}return e.prototype.createPath=function(t,u){var c=this.attr(),l=this.get("el");(0,nt.each)(u||c,function(C,A){A==="points"&&(0,nt.isArray)(C)&&C.length>=2?l.setAttribute("points",C.map(function(Y){return Y[0]+","+Y[1]}).join(" ")):N.A8[A]&&l.setAttribute(N.A8[A],C)})},e}(ct),_t=Tt,Ut=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=s.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},t),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(t,u,c){s.prototype.onAttrChange.call(this,t,u,c),["points"].indexOf(t)!==-1&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,u){var c=this.attr(),l=this.get("el");(0,nt.each)(u||c,function(C,A){A==="points"&&(0,nt.isArray)(C)&&C.length>=2?l.setAttribute("points",C.map(function(Y){return Y[0]+","+Y[1]}).join(" ")):N.A8[A]&&l.setAttribute(N.A8[A],C)})},e.prototype.getTotalLength=function(){var t=this.attr().points,u=this.get("totalLength");return(0,nt.isNil)(u)?(this.set("totalLength",y.aH.length(t)),this.get("totalLength")):u},e.prototype.getPoint=function(t){var u=this.attr().points,c=this.get("tCache");c||(this._setTcache(),c=this.get("tCache"));var l,C;return(0,nt.each)(c,function(A,Y){t>=A[0]&&t<=A[1]&&(l=(t-A[0])/(A[1]-A[0]),C=Y)}),y.x1.pointAt(u[C][0],u[C][1],u[C+1][0],u[C+1][1],l)},e.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var u=this.getTotalLength();if(!(u<=0)){var c=0,l=[],C,A;(0,nt.each)(t,function(Y,I){t[I+1]&&(C=[],C[0]=c/u,A=y.x1.length(Y[0],Y[1],t[I+1][0],t[I+1][1]),c+=A,C[1]=c/u,l.push(C))}),this.set("tCache",l)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,u=[];return u.push([t[1][0],t[1][1]]),u.push([t[0][0],t[0][1]]),u},e.prototype.getEndTangent=function(){var t=this.attr().points,u=t.length-1,c=[];return c.push([t[u-1][0],t[u-1][1]]),c.push([t[u][0],t[u][1]]),c},e}(ct),Yt=Ut,Ot=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s,]+/gi;function d(s){var e=0,t=0,u=0,c=0;return(0,nt.isArray)(s)?s.length===1?e=t=u=c=s[0]:s.length===2?(e=u=s[0],t=c=s[1]):s.length===3?(e=s[0],t=c=s[1],u=s[2]):(e=s[0],t=s[1],u=s[2],c=s[3]):e=t=u=c=s,{r1:e,r2:t,r3:u,r4:c}}function K(s){if(s=s||[],isArray(s))return s;if(isString(s))return s=s.match(Ot),each(s,function(e,t){if(e=e.match(a),e[0].length>1){var u=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=u}each(e,function(c,l){isNaN(c)||(e[l]=+c)}),s[t]=e}),s}var gt=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=s.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},t),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,u){var c=this,l=this.attr(),C=this.get("el"),A=!1,Y=["x","y","width","height","radius"];(0,nt.each)(u||l,function(I,g){Y.indexOf(g)!==-1&&!A?(C.setAttribute("d",c._assembleRect(l)),A=!0):Y.indexOf(g)===-1&&N.A8[g]&&C.setAttribute(N.A8[g],I)})},e.prototype._assembleRect=function(t){var u=t.x,c=t.y,l=t.width,C=t.height,A=t.radius;if(!A)return"M "+u+","+c+" l "+l+",0 l 0,"+C+" l"+-l+" 0 z";var Y=d(A);(0,nt.isArray)(A)?A.length===1?Y.r1=Y.r2=Y.r3=Y.r4=A[0]:A.length===2?(Y.r1=Y.r3=A[0],Y.r2=Y.r4=A[1]):A.length===3?(Y.r1=A[0],Y.r2=Y.r4=A[1],Y.r3=A[2]):(Y.r1=A[0],Y.r2=A[1],Y.r3=A[2],Y.r4=A[3]):Y.r1=Y.r2=Y.r3=Y.r4=A;var I=[["M "+(u+Y.r1)+","+c],["l "+(l-Y.r1-Y.r2)+",0"],["a "+Y.r2+","+Y.r2+",0,0,1,"+Y.r2+","+Y.r2],["l 0,"+(C-Y.r2-Y.r3)],["a "+Y.r3+","+Y.r3+",0,0,1,"+-Y.r3+","+Y.r3],["l "+(Y.r3+Y.r4-l)+",0"],["a "+Y.r4+","+Y.r4+",0,0,1,"+-Y.r4+","+-Y.r4],["l 0,"+(Y.r4+Y.r1-C)],["a "+Y.r1+","+Y.r1+",0,0,1,"+Y.r1+","+-Y.r1],["z"]];return I.join(" ")},e}(ct),xt=gt,p=H(81365),_=.3,k={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},E={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},Z={left:"left",start:"left",center:"middle",right:"end",end:"end"},it=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=s.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,u){var c=this,l=this.attr(),C=this.get("el");this._setFont(),(0,nt.each)(u||l,function(A,Y){Y==="text"?c._setText(""+A):Y==="matrix"&&A?(0,ot.B2)(c):N.A8[Y]&&C.setAttribute(N.A8[Y],A)}),C.setAttribute("paint-order","stroke"),C.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),u=this.attr(),c=u.textBaseline,l=u.textAlign,C=(0,p.qY)();C&&C.name==="firefox"?t.setAttribute("dominant-baseline",E[c]||"alphabetic"):t.setAttribute("alignment-baseline",k[c]||"baseline"),t.setAttribute("text-anchor",Z[l]||"left")},e.prototype._setText=function(t){var u=this.get("el"),c=this.attr(),l=c.x,C=c.textBaseline,A=C===void 0?"bottom":C;if(!t)u.innerHTML="";else if(~t.indexOf(`
|
|
`)){var Y=t.split(`
|
|
`),I=Y.length-1,g="";(0,nt.each)(Y,function(n,v){v===0?A==="alphabetic"?g+='<tspan x="'+l+'" dy="'+-I+'em">'+n+"</tspan>":A==="top"?g+='<tspan x="'+l+'" dy="0.9em">'+n+"</tspan>":A==="middle"?g+='<tspan x="'+l+'" dy="'+-(I-1)/2+'em">'+n+"</tspan>":A==="bottom"?g+='<tspan x="'+l+'" dy="-'+(I+_)+'em">'+n+"</tspan>":A==="hanging"&&(g+='<tspan x="'+l+'" dy="'+(-(I-1)-_)+'em">'+n+"</tspan>"):g+='<tspan x="'+l+'" dy="1em">'+n+"</tspan>"}),u.innerHTML=g}else u.innerHTML=t},e}(ct),M=it},85033:function(Jt,St,H){"use strict";H.d(St,{Ao:function(){return $},WV:function(){return ot},ZL:function(){return ht},rS:function(){return dt}});var ft=H(13526),S=H(29242);function dt(N){return document.createElementNS("http://www.w3.org/2000/svg",N)}function ot(N){var J=S.CX[N.type],tt=N.getParent();if(!J)throw new Error("the type "+N.type+" is not supported by svg");var ct=dt(J);if(N.get("id")&&(ct.id=N.get("id")),N.set("el",ct),N.set("attrs",{}),tt){var nt=tt.get("el");nt||(nt=tt.createDom(),tt.set("el",nt)),nt.appendChild(ct)}return ct}function ht(N,J){var tt=N.get("el"),ct=(0,ft.toArray)(tt.children).sort(J),nt=document.createDocumentFragment();ct.forEach(function(j){nt.appendChild(j)}),tt.appendChild(nt)}function $(N,J){var tt=N.parentNode,ct=Array.from(tt.childNodes).filter(function(b){return b.nodeType===1&&b.nodeName.toLowerCase()!=="defs"}),nt=ct[J],j=ct.indexOf(N);if(nt){if(j>J)tt.insertBefore(N,nt);else if(j<J){var B=ct[J+1];B?tt.insertBefore(N,B):tt.appendChild(N)}}else tt.appendChild(N)}},22372:function(Jt,St,H){"use strict";H.d(St,{N:function(){return dt},m:function(){return ot}});var ft=H(26607),S=H(85033);function dt(ht,$){$.forEach(function(N){N.draw(ht)})}function ot(ht,$){var N=ht.get("canvas");if(N&&N.get("autoDraw")){var J=N.get("context"),tt=ht.getParent(),ct=tt?tt.getChildren():[N],nt=ht.get("el");if($==="remove"){var j=ht.get("isClipShape");if(j){var B=nt&&nt.parentNode,b=B&&B.parentNode;B&&b&&b.removeChild(B)}else nt&&nt.parentNode&&nt.parentNode.removeChild(nt)}else if($==="show")nt.setAttribute("visibility","visible");else if($==="hide")nt.setAttribute("visibility","hidden");else if($==="zIndex")(0,S.Ao)(nt,ct.indexOf(ht));else if($==="sort"){var L=ht.get("children");L&&L.length&&(0,S.ZL)(ht,function(Q,st){return L.indexOf(Q)-L.indexOf(st)?1:0})}else $==="clear"?nt&&(nt.innerHTML=""):$==="matrix"?(0,ft.B2)(ht):$==="clip"?(0,ft.r7)(ht,J):$==="attr"||$==="add"&&ht.draw(J)}}},26607:function(Jt,St,H){"use strict";H.d(St,{B2:function(){return dt},kr:function(){return S},r7:function(){return ot}});var ft=H(85033);function S(ht,$){var N=ht.cfg.el,J=ht.attr(),tt={dx:J.shadowOffsetX,dy:J.shadowOffsetY,blur:J.shadowBlur,color:J.shadowColor};if(!tt.dx&&!tt.dy&&!tt.blur&&!tt.color)N.removeAttribute("filter");else{var ct=$.find("filter",tt);ct||(ct=$.addShadow(tt)),N.setAttribute("filter","url(#"+ct+")")}}function dt(ht){var $=ht.attr().matrix;if($){for(var N=ht.cfg.el,J=[],tt=0;tt<9;tt+=3)J.push($[tt]+","+$[tt+1]);J=J.join(","),J.indexOf("NaN")===-1?N.setAttribute("transform","matrix("+J+")"):console.warn("invalid matrix:",$)}}function ot(ht,$){var N=ht.getClip(),J=ht.get("el");if(!N)J.removeAttribute("clip-path");else if(N&&!J.hasAttribute("clip-path")){(0,ft.WV)(N),N.createPath($);var tt=$.addClip(N);J.setAttribute("clip-path","url(#"+tt+")")}}},67516:function(Jt,St,H){"use strict";H.d(St,{Dg:function(){return tt},lh:function(){return ht},m$:function(){return dt},vs:function(){return N},zu:function(){return ot}});var ft=H(73485),S=H(38015);function dt(nt,j,B){var b=[0,0,0,0,0,0,0,0,0];return ft.fromTranslation(b,B),ft.multiply(nt,b,j)}function ot(nt,j,B){var b=[0,0,0,0,0,0,0,0,0];return ft.fromRotation(b,B),ft.multiply(nt,b,j)}function ht(nt,j,B){var b=[0,0,0,0,0,0,0,0,0];return ft.fromScaling(b,B),ft.multiply(nt,b,j)}function $(nt,j,B){return ft.multiply(nt,B,j)}function N(nt,j){for(var B=nt?[].concat(nt):[1,0,0,0,1,0,0,0,1],b=0,L=j.length;b<L;b++){var Q=j[b];switch(Q[0]){case"t":dt(B,B,[Q[1],Q[2]]);break;case"s":ht(B,B,[Q[1],Q[2]]);break;case"r":ot(B,B,Q[1]);break;case"m":$(B,B,Q[1]);break;default:break}}return B}function J(nt,j){return nt[0]*j[1]-j[0]*nt[1]}function tt(nt,j,B){var b=S.angle(nt,j),L=J(nt,j)>=0;return B?L?Math.PI*2-b:b:L?b:Math.PI*2-b}function ct(nt,j,B){return B?(nt[0]=j[1],nt[1]=-1*j[0]):(nt[0]=-1*j[1],nt[1]=j[0]),nt}},81182:function(Jt,St,H){"use strict";H.d(St,{e9:function(){return tt},Wq:function(){return m},tr:function(){return Q},wb:function(){return R},zx:function(){return t}});var ft=H(13526),S=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,dt=/[^\s\,]+/ig;function ot(r){var i=r||[];if((0,ft.isArray)(i))return i;if((0,ft.isString)(i))return i=i.match(S),(0,ft.each)(i,function(o,P){if(o=o.match(dt),o[0].length>1){var F=o[0].charAt(0);o.splice(1,0,o[0].substr(1)),o[0]=F}(0,ft.each)(o,function(V,q){isNaN(V)||(o[q]=+V)}),i[P]=o}),i}var ht=ot,$=H(38015);function N(r,i,o,P){var F=[],V=!!P,q,rt,et,mt,pt,bt,Ft;if(V){et=P[0],mt=P[1];for(var Ct=0,Bt=r.length;Ct<Bt;Ct+=1){var Lt=r[Ct];et=$.min([0,0],et,Lt),mt=$.max([0,0],mt,Lt)}}for(var Ct=0,Nt=r.length;Ct<Nt;Ct+=1){var Lt=r[Ct];if(Ct===0&&!o)Ft=Lt;else if(Ct===Nt-1&&!o)bt=Lt,F.push(Ft),F.push(bt);else{var Dt=[Ct?Ct-1:Nt-1,Ct-1][o?0:1];q=r[Dt],rt=r[o?(Ct+1)%Nt:Ct+1];var Rt=[0,0];Rt=$.sub(Rt,rt,q),Rt=$.scale(Rt,Rt,i);var Zt=$.distance(Lt,q),Gt=$.distance(Lt,rt),zt=Zt+Gt;zt!==0&&(Zt/=zt,Gt/=zt);var Qt=$.scale([0,0],Rt,-Zt),$t=$.scale([0,0],Rt,Gt);bt=$.add([0,0],Lt,Qt),pt=$.add([0,0],Lt,$t),pt=$.min([0,0],pt,$.max([0,0],rt,Lt)),pt=$.max([0,0],pt,$.min([0,0],rt,Lt)),Qt=$.sub([0,0],pt,Lt),Qt=$.scale([0,0],Qt,-Zt/Gt),bt=$.add([0,0],Lt,Qt),bt=$.min([0,0],bt,$.max([0,0],q,Lt)),bt=$.max([0,0],bt,$.min([0,0],q,Lt)),$t=$.sub([0,0],Lt,bt),$t=$.scale([0,0],$t,Gt/Zt),pt=$.add([0,0],Lt,$t),V&&(bt=$.max([0,0],bt,et),bt=$.min([0,0],bt,mt),pt=$.max([0,0],pt,et),pt=$.min([0,0],pt,mt)),F.push(Ft),F.push(bt),Ft=pt}}return o&&F.push(F.shift()),F}function J(r,i,o){i===void 0&&(i=!1),o===void 0&&(o=[[0,0],[1,1]]);for(var P=!!i,F=[],V=0,q=r.length;V<q;V+=2)F.push([r[V],r[V+1]]);for(var rt=N(F,.4,P,o),et=F.length,mt=[],pt,bt,Ft,V=0;V<et-1;V+=1)pt=rt[V*2],bt=rt[V*2+1],Ft=F[V+1],mt.push(["C",pt[0],pt[1],bt[0],bt[1],Ft[0],Ft[1]]);return P&&(pt=rt[et],bt=rt[et+1],Ft=F[0],mt.push(["C",pt[0],pt[1],bt[0],bt[1],Ft[0],Ft[1]])),mt}var tt=J;function ct(r,i,o){var P=null,F=o;return i<F&&(F=i,P="add"),r<F&&(F=r,P="del"),{type:P,min:F}}var nt=function(r,i){var o=r.length,P=i.length,F,V,q=0;if(o===0||P===0)return null;for(var rt=[],et=0;et<=o;et++)rt[et]=[],rt[et][0]={min:et};for(var mt=0;mt<=P;mt++)rt[0][mt]={min:mt};for(var et=1;et<=o;et++){F=r[et-1];for(var mt=1;mt<=P;mt++){V=i[mt-1],isEqual(F,V)?q=0:q=1;var pt=rt[et-1][mt].min+1,bt=rt[et][mt-1].min+1,Ft=rt[et-1][mt-1].min+q;rt[et][mt]=ct(pt,bt,Ft)}}return rt};function j(r,i){var o=nt(r,i),P=r.length,F=i.length,V=[],q=1,rt=1;if(o[P][F]!==P){for(var et=1;et<=P;et++){var mt=o[et][et].min;rt=et;for(var pt=q;pt<=F;pt++)o[et][pt].min<mt&&(mt=o[et][pt].min,rt=pt);q=rt,o[et][q].type&&V.push({index:et-1,type:o[et][q].type})}for(var et=V.length-1;et>=0;et--)q=V[et].index,V[et].type==="add"?r.splice(q,0,[].concat(r[q])):r.splice(q,1)}if(P=r.length,P<F)for(var et=0;et<F-P;et++)r[P-1][0]==="z"||r[P-1][0]==="Z"?r.splice(P-2,0,r[P-2]):r.push(r[P-1]);return r}var B=`
|
|
\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,b=new RegExp("([a-z])["+B+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+B+"]*,?["+B+"]*)+)","ig"),L=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+B+"]*,?["+B+"]*","ig");function Q(r){if(!r)return null;if((0,ft.isArray)(r))return r;var i={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},o=[];return String(r).replace(b,function(P,F,V){var q=[],rt=F.toLowerCase();if(V.replace(L,function(et,mt){mt&&q.push(+mt)}),rt==="m"&&q.length>2&&(o.push([F].concat(q.splice(0,2))),rt="l",F=F==="m"?"l":"L"),rt==="o"&&q.length===1&&o.push([F,q[0]]),rt==="r")o.push([F].concat(q));else for(;q.length>=i[rt]&&(o.push([F].concat(q.splice(0,i[rt]))),!!i[rt]););return""}),o}var st=/[a-z]/;function at(r,i){return[i[0]+(i[0]-r[0]),i[1]+(i[1]-r[1])]}function R(r){var i=Q(r);if(!i||!i.length)return[["M",0,0]];for(var o=!1,P=0;P<i.length;P++){var F=i[P][0];if(st.test(F)||["V","H","T","S"].indexOf(F)>=0){o=!0;break}}if(!o)return i;var V=[],q=0,rt=0,et=0,mt=0,pt=0,bt,Ft,Ct=i[0];(Ct[0]==="M"||Ct[0]==="m")&&(q=+Ct[1],rt=+Ct[2],et=q,mt=rt,pt++,V[0]=["M",q,rt]);for(var P=pt,Bt=i.length;P<Bt;P++){var Lt=i[P],Nt=V[P-1],Dt=[],F=Lt[0],Rt=F.toUpperCase();if(F!==Rt)switch(Dt[0]=Rt,Rt){case"A":Dt[1]=Lt[1],Dt[2]=Lt[2],Dt[3]=Lt[3],Dt[4]=Lt[4],Dt[5]=Lt[5],Dt[6]=+Lt[6]+q,Dt[7]=+Lt[7]+rt;break;case"V":Dt[1]=+Lt[1]+rt;break;case"H":Dt[1]=+Lt[1]+q;break;case"M":et=+Lt[1]+q,mt=+Lt[2]+rt,Dt[1]=et,Dt[2]=mt;break;default:for(var Zt=1,Gt=Lt.length;Zt<Gt;Zt++)Dt[Zt]=+Lt[Zt]+(Zt%2?q:rt)}else Dt=i[P];switch(Rt){case"Z":q=+et,rt=+mt;break;case"H":q=Dt[1],Dt=["L",q,rt];break;case"V":rt=Dt[1],Dt=["L",q,rt];break;case"T":q=Dt[1],rt=Dt[2];var zt=at([Nt[1],Nt[2]],[Nt[3],Nt[4]]);Dt=["Q",zt[0],zt[1],q,rt];break;case"S":q=Dt[Dt.length-2],rt=Dt[Dt.length-1];var Qt=Nt.length,$t=at([Nt[Qt-4],Nt[Qt-3]],[Nt[Qt-2],Nt[Qt-1]]);Dt=["C",$t[0],$t[1],Dt[1],Dt[2],q,rt];break;case"M":et=Dt[Dt.length-2],mt=Dt[Dt.length-1];break;default:q=Dt[Dt.length-2],rt=Dt[Dt.length-1]}V.push(Dt)}return V}var y=Math.PI*2,w=function(r,i,o,P,F,V,q){var rt=r.x,et=r.y;rt*=i,et*=o;var mt=P*rt-F*et,pt=F*rt+P*et;return{x:mt+V,y:pt+q}},X=function(r,i){var o=i===1.5707963267948966?.551915024494:i===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(i/4),P=Math.cos(r),F=Math.sin(r),V=Math.cos(r+i),q=Math.sin(r+i);return[{x:P-F*o,y:F+P*o},{x:V+q*o,y:q-V*o},{x:V,y:q}]},W=function(r,i,o,P){var F=r*P-i*o<0?-1:1,V=r*o+i*P;return V>1&&(V=1),V<-1&&(V=-1),F*Math.acos(V)},ut=function(r,i,o,P,F,V,q,rt,et,mt,pt,bt){var Ft=Math.pow(F,2),Ct=Math.pow(V,2),Bt=Math.pow(pt,2),Lt=Math.pow(bt,2),Nt=Ft*Ct-Ft*Lt-Ct*Bt;Nt<0&&(Nt=0),Nt/=Ft*Lt+Ct*Bt,Nt=Math.sqrt(Nt)*(q===rt?-1:1);var Dt=Nt*F/V*bt,Rt=Nt*-V/F*pt,Zt=mt*Dt-et*Rt+(r+o)/2,Gt=et*Dt+mt*Rt+(i+P)/2,zt=(pt-Dt)/F,Qt=(bt-Rt)/V,$t=(-pt-Dt)/F,er=(-bt-Rt)/V,or=W(1,0,zt,Qt),nr=W(zt,Qt,$t,er);return rt===0&&nr>0&&(nr-=y),rt===1&&nr<0&&(nr+=y),[Zt,Gt,or,nr]},yt=function(r){var i=r.px,o=r.py,P=r.cx,F=r.cy,V=r.rx,q=r.ry,rt=r.xAxisRotation,et=rt===void 0?0:rt,mt=r.largeArcFlag,pt=mt===void 0?0:mt,bt=r.sweepFlag,Ft=bt===void 0?0:bt,Ct=[];if(V===0||q===0)return[{x1:0,y1:0,x2:0,y2:0,x:P,y:F}];var Bt=Math.sin(et*y/360),Lt=Math.cos(et*y/360),Nt=Lt*(i-P)/2+Bt*(o-F)/2,Dt=-Bt*(i-P)/2+Lt*(o-F)/2;if(Nt===0&&Dt===0)return[{x1:0,y1:0,x2:0,y2:0,x:P,y:F}];V=Math.abs(V),q=Math.abs(q);var Rt=Math.pow(Nt,2)/Math.pow(V,2)+Math.pow(Dt,2)/Math.pow(q,2);Rt>1&&(V*=Math.sqrt(Rt),q*=Math.sqrt(Rt));var Zt=ut(i,o,P,F,V,q,pt,Ft,Bt,Lt,Nt,Dt),Gt=Zt[0],zt=Zt[1],Qt=Zt[2],$t=Zt[3],er=Math.abs($t)/(y/4);Math.abs(1-er)<1e-7&&(er=1);var or=Math.max(Math.ceil(er),1);$t/=or;for(var nr=0;nr<or;nr++)Ct.push(X(Qt,$t)),Qt+=$t;return Ct.map(function(cr){var xr=w(cr[0],V,q,Lt,Bt,Gt,zt),dr=xr.x,Cr=xr.y,ur=w(cr[1],V,q,Lt,Bt,Gt,zt),vr=ur.x,fr=ur.y,sr=w(cr[2],V,q,Lt,Bt,Gt,zt),wr=sr.x,Er=sr.y;return{x1:dr,y1:Cr,x2:vr,y2:fr,x:wr,y:Er}})};function Pt(r,i,o,P,F,V,q,rt,et){var mt=yt({px:r,py:i,cx:rt,cy:et,rx:o,ry:P,xAxisRotation:F,largeArcFlag:V,sweepFlag:q});return mt.reduce(function(pt,bt){var Ft=bt.x1,Ct=bt.y1,Bt=bt.x2,Lt=bt.y2,Nt=bt.x,Dt=bt.y;return pt.push(Ft,Ct,Bt,Lt,Nt,Dt),pt},[])}function Ht(r,i){"TQ".indexOf(r[0])<0&&(i.qx=null,i.qy=null);var o=r.slice(1),P=o[0],F=o[1];switch(r[0]){case"M":return i.x=P,i.y=F,r;case"A":return["C"].concat(arcToCubic.apply(0,[i.x1,i.y1].concat(r.slice(1))));case"Q":return i.qx=P,i.qy=F,["C"].concat(quadToCubic.apply(0,[i.x1,i.y1].concat(r.slice(1))));case"L":return["C"].concat(lineToCubic(i.x1,i.y1,r[1],r[2]));case"H":return["C"].concat(lineToCubic(i.x1,i.y1,r[1],i.y1));case"V":return["C"].concat(lineToCubic(i.x1,i.y1,i.x1,r[1]));case"Z":return["C"].concat(lineToCubic(i.x1,i.y1,i.x,i.y));default:}return r}function Wt(r,i){i===void 0&&(i=!1);for(var o=path2Absolute(r),P={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},F=[],V="",q=o.length,rt,et,mt=[],pt=0;pt<q;pt+=1)o[pt]&&(V=o[pt][0]),F[pt]=V,o[pt]=segmentToCubic(o[pt],P),Tt(o,F,pt),q=o.length,V==="Z"&&mt.push(pt),rt=o[pt],et=rt.length,P.x1=+rt[et-2],P.y1=+rt[et-1],P.x2=+rt[et-4]||P.x1,P.y2=+rt[et-3]||P.y1;return i?[o,mt]:o}function Tt(r,i,o){if(r[o].length>7){r[o].shift();for(var P=r[o],F=o;P.length;)i[o]="A",r.splice(F+=1,0,["C"].concat(P.splice(0,6)));r.splice(o,1)}}var _t=function(r,i,o,P,F){var V=-3*i+9*o-9*P+3*F,q=r*V+6*i-12*o+6*P;return r*q-3*i+3*o},Ut=function(r,i,o,P,F,V,q,rt,et){et===null&&(et=1),et=et>1?1:et<0?0:et;for(var mt=et/2,pt=12,bt=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],Ft=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],Ct=0,Bt=0;Bt<pt;Bt++){var Lt=mt*bt[Bt]+mt,Nt=_t(Lt,r,o,F,q),Dt=_t(Lt,i,P,V,rt),Rt=Nt*Nt+Dt*Dt;Ct+=Ft[Bt]*Math.sqrt(Rt)}return mt*Ct},Yt=function(r,i,o,P,F,V,q,rt){for(var et=[],mt=[[],[]],pt,bt,Ft,Ct,Bt=0;Bt<2;++Bt){if(Bt===0?(bt=6*r-12*o+6*F,pt=-3*r+9*o-9*F+3*q,Ft=3*o-3*r):(bt=6*i-12*P+6*V,pt=-3*i+9*P-9*V+3*rt,Ft=3*P-3*i),Math.abs(pt)<1e-12){if(Math.abs(bt)<1e-12)continue;Ct=-Ft/bt,Ct>0&&Ct<1&&et.push(Ct);continue}var Lt=bt*bt-4*Ft*pt,Nt=Math.sqrt(Lt);if(!(Lt<0)){var Dt=(-bt+Nt)/(2*pt);Dt>0&&Dt<1&&et.push(Dt);var Rt=(-bt-Nt)/(2*pt);Rt>0&&Rt<1&&et.push(Rt)}}for(var Zt=et.length,Gt=Zt,zt;Zt--;)Ct=et[Zt],zt=1-Ct,mt[0][Zt]=zt*zt*zt*r+3*zt*zt*Ct*o+3*zt*Ct*Ct*F+Ct*Ct*Ct*q,mt[1][Zt]=zt*zt*zt*i+3*zt*zt*Ct*P+3*zt*Ct*Ct*V+Ct*Ct*Ct*rt;return mt[0][Gt]=r,mt[1][Gt]=i,mt[0][Gt+1]=q,mt[1][Gt+1]=rt,mt[0].length=mt[1].length=Gt+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])}}},Ot=function(r,i,o,P,F,V,q,rt){if(!(Math.max(r,o)<Math.min(F,q)||Math.min(r,o)>Math.max(F,q)||Math.max(i,P)<Math.min(V,rt)||Math.min(i,P)>Math.max(V,rt))){var et=(r*P-i*o)*(F-q)-(r-o)*(F*rt-V*q),mt=(r*P-i*o)*(V-rt)-(i-P)*(F*rt-V*q),pt=(r-o)*(V-rt)-(i-P)*(F-q);if(pt){var bt=et/pt,Ft=mt/pt,Ct=+bt.toFixed(2),Bt=+Ft.toFixed(2);if(!(Ct<+Math.min(r,o).toFixed(2)||Ct>+Math.max(r,o).toFixed(2)||Ct<+Math.min(F,q).toFixed(2)||Ct>+Math.max(F,q).toFixed(2)||Bt<+Math.min(i,P).toFixed(2)||Bt>+Math.max(i,P).toFixed(2)||Bt<+Math.min(V,rt).toFixed(2)||Bt>+Math.max(V,rt).toFixed(2)))return{x:bt,y:Ft}}}},a=function(r,i,o){return i>=r.x&&i<=r.x+r.width&&o>=r.y&&o<=r.y+r.height},d=function(r,i,o,P){return r===null&&(r=i=o=P=0),i===null&&(i=r.y,o=r.width,P=r.height,r=r.x),{x:r,y:i,width:o,w:o,height:P,h:P,x2:r+o,y2:i+P,cx:r+o/2,cy:i+P/2,r1:Math.min(o,P)/2,r2:Math.max(o,P)/2,r0:Math.sqrt(o*o+P*P)/2,path:rectPath(r,i,o,P),vb:[r,i,o,P].join(" ")}},K=function(r,i){return r=d(r),i=d(i),a(i,r.x,r.y)||a(i,r.x2,r.y)||a(i,r.x,r.y2)||a(i,r.x2,r.y2)||a(r,i.x,i.y)||a(r,i.x2,i.y)||a(r,i.x,i.y2)||a(r,i.x2,i.y2)||(r.x<i.x2&&r.x>i.x||i.x<r.x2&&i.x>r.x)&&(r.y<i.y2&&r.y>i.y||i.y<r.y2&&i.y>r.y)},gt=function(r,i,o,P,F,V,q,rt){isArray(r)||(r=[r,i,o,P,F,V,q,rt]);var et=Yt.apply(null,r);return d(et.min.x,et.min.y,et.max.x-et.min.x,et.max.y-et.min.y)},xt=function(r,i,o,P,F,V,q,rt,et){var mt=1-et,pt=Math.pow(mt,3),bt=Math.pow(mt,2),Ft=et*et,Ct=Ft*et,Bt=pt*r+bt*3*et*o+mt*3*et*et*F+Ct*q,Lt=pt*i+bt*3*et*P+mt*3*et*et*V+Ct*rt,Nt=r+2*et*(o-r)+Ft*(F-2*o+r),Dt=i+2*et*(P-i)+Ft*(V-2*P+i),Rt=o+2*et*(F-o)+Ft*(q-2*F+o),Zt=P+2*et*(V-P)+Ft*(rt-2*V+P),Gt=mt*r+et*o,zt=mt*i+et*P,Qt=mt*F+et*q,$t=mt*V+et*rt,er=90-Math.atan2(Nt-Rt,Dt-Zt)*180/Math.PI;return{x:Bt,y:Lt,m:{x:Nt,y:Dt},n:{x:Rt,y:Zt},start:{x:Gt,y:zt},end:{x:Qt,y:$t},alpha:er}},p=function(r,i,o){var P=gt(r),F=gt(i);if(!K(P,F))return o?0:[];for(var V=Ut.apply(0,r),q=Ut.apply(0,i),rt=~~(V/8),et=~~(q/8),mt=[],pt=[],bt={},Ft=o?0:[],Ct=0;Ct<rt+1;Ct++){var Bt=xt.apply(0,r.concat(Ct/rt));mt.push({x:Bt.x,y:Bt.y,t:Ct/rt})}for(var Ct=0;Ct<et+1;Ct++){var Bt=xt.apply(0,i.concat(Ct/et));pt.push({x:Bt.x,y:Bt.y,t:Ct/et})}for(var Ct=0;Ct<rt;Ct++)for(var Lt=0;Lt<et;Lt++){var Nt=mt[Ct],Dt=mt[Ct+1],Rt=pt[Lt],Zt=pt[Lt+1],Gt=Math.abs(Dt.x-Nt.x)<.001?"y":"x",zt=Math.abs(Zt.x-Rt.x)<.001?"y":"x",Qt=Ot(Nt.x,Nt.y,Dt.x,Dt.y,Rt.x,Rt.y,Zt.x,Zt.y);if(Qt){if(bt[Qt.x.toFixed(4)]===Qt.y.toFixed(4))continue;bt[Qt.x.toFixed(4)]=Qt.y.toFixed(4);var $t=Nt.t+Math.abs((Qt[Gt]-Nt[Gt])/(Dt[Gt]-Nt[Gt]))*(Dt.t-Nt.t),er=Rt.t+Math.abs((Qt[zt]-Rt[zt])/(Zt[zt]-Rt[zt]))*(Zt.t-Rt.t);$t>=0&&$t<=1&&er>=0&&er<=1&&(o?Ft++:Ft.push({x:Qt.x,y:Qt.y,t1:$t,t2:er}))}}return Ft},_=function(r,i,o){r=path2Curve(r),i=path2Curve(i);for(var P,F,V,q,rt,et,mt,pt,bt,Ft,Ct=o?0:[],Bt=0,Lt=r.length;Bt<Lt;Bt++){var Nt=r[Bt];if(Nt[0]==="M")P=rt=Nt[1],F=et=Nt[2];else{Nt[0]==="C"?(bt=[P,F].concat(Nt.slice(1)),P=bt[6],F=bt[7]):(bt=[P,F,P,F,rt,et,rt,et],P=rt,F=et);for(var Dt=0,Rt=i.length;Dt<Rt;Dt++){var Zt=i[Dt];if(Zt[0]==="M")V=mt=Zt[1],q=pt=Zt[2];else{Zt[0]==="C"?(Ft=[V,q].concat(Zt.slice(1)),V=Ft[6],q=Ft[7]):(Ft=[V,q,V,q,mt,pt,mt,pt],V=mt,q=pt);var Gt=p(bt,Ft,o);if(o)Ct+=Gt;else{for(var zt=0,Qt=Gt.length;zt<Qt;zt++)Gt[zt].segment1=Bt,Gt[zt].segment2=Dt,Gt[zt].bez1=bt,Gt[zt].bez2=Ft;Ct=Ct.concat(Gt)}}}}}return Ct};function k(r,i){return _(r,i)}function E(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Z(r,i){return E(r)*E(i)?(r[0]*i[0]+r[1]*i[1])/(E(r)*E(i)):1}function it(r,i){return(r[0]*i[1]<r[1]*i[0]?-1:1)*Math.acos(Z(r,i))}function M(r,i){return r[0]===i[0]&&r[1]===i[1]}function s(r,i){var o=i[1],P=i[2],F=(0,ft.mod)((0,ft.toRadian)(i[3]),Math.PI*2),V=i[4],q=i[5],rt=r[0],et=r[1],mt=i[6],pt=i[7],bt=Math.cos(F)*(rt-mt)/2+Math.sin(F)*(et-pt)/2,Ft=-1*Math.sin(F)*(rt-mt)/2+Math.cos(F)*(et-pt)/2,Ct=bt*bt/(o*o)+Ft*Ft/(P*P);Ct>1&&(o*=Math.sqrt(Ct),P*=Math.sqrt(Ct));var Bt=o*o*(Ft*Ft)+P*P*(bt*bt),Lt=Bt?Math.sqrt((o*o*(P*P)-Bt)/Bt):1;V===q&&(Lt*=-1),isNaN(Lt)&&(Lt=0);var Nt=P?Lt*o*Ft/P:0,Dt=o?Lt*-P*bt/o:0,Rt=(rt+mt)/2+Math.cos(F)*Nt-Math.sin(F)*Dt,Zt=(et+pt)/2+Math.sin(F)*Nt+Math.cos(F)*Dt,Gt=[(bt-Nt)/o,(Ft-Dt)/P],zt=[(-1*bt-Nt)/o,(-1*Ft-Dt)/P],Qt=it([1,0],Gt),$t=it(Gt,zt);return Z(Gt,zt)<=-1&&($t=Math.PI),Z(Gt,zt)>=1&&($t=0),q===0&&$t>0&&($t=$t-2*Math.PI),q===1&&$t<0&&($t=$t+2*Math.PI),{cx:Rt,cy:Zt,rx:M(r,[mt,pt])?0:o,ry:M(r,[mt,pt])?0:P,startAngle:Qt,endAngle:Qt+$t,xRotation:F,arcFlag:V,sweepFlag:q}}function e(r,i){return[i[0]+(i[0]-r[0]),i[1]+(i[1]-r[1])]}function t(r){r=ht(r);for(var i=[],o=null,P=null,F=null,V=0,q=r.length,rt=0;rt<q;rt++){var et=r[rt];P=r[rt+1];var mt=et[0],pt={command:mt,prePoint:o,params:et,startTangent:null,endTangent:null};switch(mt){case"M":F=[et[1],et[2]],V=rt;break;case"A":var bt=s(o,et);pt.arcParams=bt;break;default:break}if(mt==="Z")o=F,P=r[V+1];else{var Ft=et.length;o=[et[Ft-2],et[Ft-1]]}P&&P[0]==="Z"&&(P=r[V],i[V]&&(i[V].prePoint=o)),pt.currentPoint=o,i[V]&&M(o,i[V].currentPoint)&&(i[V].prePoint=pt.prePoint);var Ct=P?[P[P.length-2],P[P.length-1]]:null;pt.nextPoint=Ct;var Bt=pt.prePoint;if(["L","H","V"].includes(mt))pt.startTangent=[Bt[0]-o[0],Bt[1]-o[1]],pt.endTangent=[o[0]-Bt[0],o[1]-Bt[1]];else if(mt==="Q"){var Lt=[et[1],et[2]];pt.startTangent=[Bt[0]-Lt[0],Bt[1]-Lt[1]],pt.endTangent=[o[0]-Lt[0],o[1]-Lt[1]]}else if(mt==="T"){var Nt=i[rt-1],Lt=e(Nt.currentPoint,Bt);Nt.command==="Q"?(pt.command="Q",pt.startTangent=[Bt[0]-Lt[0],Bt[1]-Lt[1]],pt.endTangent=[o[0]-Lt[0],o[1]-Lt[1]]):(pt.command="TL",pt.startTangent=[Bt[0]-o[0],Bt[1]-o[1]],pt.endTangent=[o[0]-Bt[0],o[1]-Bt[1]])}else if(mt==="C"){var Dt=[et[1],et[2]],Rt=[et[3],et[4]];pt.startTangent=[Bt[0]-Dt[0],Bt[1]-Dt[1]],pt.endTangent=[o[0]-Rt[0],o[1]-Rt[1]],pt.startTangent[0]===0&&pt.startTangent[1]===0&&(pt.startTangent=[Dt[0]-Rt[0],Dt[1]-Rt[1]]),pt.endTangent[0]===0&&pt.endTangent[1]===0&&(pt.endTangent=[Rt[0]-Dt[0],Rt[1]-Dt[1]])}else if(mt==="S"){var Nt=i[rt-1],Dt=e(Nt.currentPoint,Bt),Rt=[et[1],et[2]];Nt.command==="C"?(pt.command="C",pt.startTangent=[Bt[0]-Dt[0],Bt[1]-Dt[1]],pt.endTangent=[o[0]-Rt[0],o[1]-Rt[1]]):(pt.command="SQ",pt.startTangent=[Bt[0]-Rt[0],Bt[1]-Rt[1]],pt.endTangent=[o[0]-Rt[0],o[1]-Rt[1]])}else if(mt==="A"){var Zt=.001,Gt=pt.arcParams||{},zt=Gt.cx,Qt=zt===void 0?0:zt,$t=Gt.cy,er=$t===void 0?0:$t,or=Gt.rx,nr=or===void 0?0:or,cr=Gt.ry,xr=cr===void 0?0:cr,dr=Gt.sweepFlag,Cr=dr===void 0?0:dr,ur=Gt.startAngle,vr=ur===void 0?0:ur,fr=Gt.endAngle,sr=fr===void 0?0:fr;Cr===0&&(Zt*=-1);var wr=nr*Math.cos(vr-Zt)+Qt,Er=xr*Math.sin(vr-Zt)+er;pt.startTangent=[wr-F[0],Er-F[1]];var Pr=nr*Math.cos(vr+sr+Zt)+Qt,Sr=xr*Math.sin(vr+sr-Zt)+er;pt.endTangent=[Bt[0]-Pr,Bt[1]-Sr]}i.push(pt)}return i}var u=1e-6;function c(r){return Math.abs(r)<u?0:r<0?-1:1}function l(r,i,o){return(o[0]-r[0])*(i[1]-r[1])===(i[0]-r[0])*(o[1]-r[1])&&Math.min(r[0],i[0])<=o[0]&&o[0]<=Math.max(r[0],i[0])&&Math.min(r[1],i[1])<=o[1]&&o[1]<=Math.max(r[1],i[1])}function C(r,i,o){var P=!1,F=r.length;if(F<=2)return!1;for(var V=0;V<F;V++){var q=r[V],rt=r[(V+1)%F];if(l(q,rt,[i,o]))return!0;c(q[1]-o)>0!=c(rt[1]-o)>0&&c(i-(o-q[1])*(q[0]-rt[0])/(q[1]-rt[1])-q[0])<0&&(P=!P)}return P}var A=function(r,i,o){return r>=i&&r<=o};function Y(r,i,o,P){var F=.001,V={x:o.x-r.x,y:o.y-r.y},q={x:i.x-r.x,y:i.y-r.y},rt={x:P.x-o.x,y:P.y-o.y},et=q.x*rt.y-q.y*rt.x,mt=et*et,pt=q.x*q.x+q.y*q.y,bt=rt.x*rt.x+rt.y*rt.y,Ft=null;if(mt>F*pt*bt){var Ct=(V.x*rt.y-V.y*rt.x)/et,Bt=(V.x*q.y-V.y*q.x)/et;A(Ct,0,1)&&A(Bt,0,1)&&(Ft={x:r.x+Ct*q.x,y:r.y+Ct*q.y})}return Ft}function I(r){for(var i=[],o=r.length,P=0;P<o-1;P++){var F=r[P],V=r[P+1];i.push({from:{x:F[0],y:F[1]},to:{x:V[0],y:V[1]}})}if(i.length>1){var q=r[0],rt=r[o-1];i.push({from:{x:rt[0],y:rt[1]},to:{x:q[0],y:q[1]}})}return i}function g(r,i){var o=!1;return(0,ft.each)(r,function(P){if(Y(P.from,P.to,i.from,i.to))return o=!0,!1}),o}function n(r){var i=r.map(function(P){return P[0]}),o=r.map(function(P){return P[1]});return{minX:Math.min.apply(null,i),maxX:Math.max.apply(null,i),minY:Math.min.apply(null,o),maxY:Math.max.apply(null,o)}}function v(r,i){return!(i.minX>r.maxX||i.maxX<r.minX||i.minY>r.maxY||i.maxY<r.minY)}function m(r,i){if(r.length<2||i.length<2)return!1;var o=n(r),P=n(i);if(!v(o,P))return!1;var F=!1;if((0,ft.each)(i,function(et){if(C(r,et[0],et[1]))return F=!0,!1}),F||((0,ft.each)(r,function(et){if(C(i,et[0],et[1]))return F=!0,!1}),F))return!0;var V=I(r),q=I(i),rt=!1;return(0,ft.each)(q,function(et){if(g(V,et))return rt=!0,!1}),rt}},21851:function(Jt,St,H){"use strict";H.d(St,{WD:function(){return ct},bJ:function(){return r},yZ:function(){return Dt}});var ft={};H.r(ft),H.d(ft,{assign:function(){return y},default:function(){return E},defaultI18n:function(){return yt},format:function(){return p},parse:function(){return _},setGlobalDateI18n:function(){return Ht},setGlobalDateMasks:function(){return xt}});var S=H(13526),dt={};function ot(f){return dt[f]}function ht(f,x){dt[f]=x}var $=function(){function f(x){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__=x,this.initCfg(),this.init()}return f.prototype.translate=function(x){return x},f.prototype.change=function(x){(0,S.assign)(this.__cfg__,x),this.init()},f.prototype.clone=function(){return this.constructor(this.__cfg__)},f.prototype.getTicks=function(){var x=this;return(0,S.map)(this.ticks,function(D,z){return(0,S.isObject)(D)?D:{text:x.getText(D,z),tickValue:D,value:x.scale(D)}})},f.prototype.getText=function(x,D){var z=this.formatter,U=z?z(x,D):x;return(0,S.isNil)(U)||!(0,S.isFunction)(U.toString)?"":U.toString()},f.prototype.getConfig=function(x){return this.__cfg__[x]},f.prototype.init=function(){(0,S.assign)(this,this.__cfg__),this.setDomain(),(0,S.isEmpty)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},f.prototype.initCfg=function(){},f.prototype.setDomain=function(){},f.prototype.calculateTicks=function(){var x=this.tickMethod,D=[];if((0,S.isString)(x)){var z=ot(x);if(!z)throw new Error("There is no method to to calculate ticks!");D=z(this)}else(0,S.isFunction)(x)&&(D=x(this));return D},f.prototype.rangeMin=function(){return this.range[0]},f.prototype.rangeMax=function(){return this.range[1]},f.prototype.calcPercent=function(x,D,z){return(0,S.isNumber)(x)?(x-D)/(z-D):NaN},f.prototype.calcValue=function(x,D,z){return D+x*(z-D)},f}(),N=$,J=H(99938),tt=function(f){(0,J.__extends)(x,f);function x(){var D=f!==null&&f.apply(this,arguments)||this;return D.type="cat",D.isCategory=!0,D}return x.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var D=0;D<this.values.length;D++)this.translateIndexMap.set(this.values[D],D)}},x.prototype.translate=function(D){this.buildIndexMap();var z=this.translateIndexMap.get(D);return z===void 0&&(z=(0,S.isNumber)(D)?D:NaN),z},x.prototype.scale=function(D){var z=this.translate(D),U=this.calcPercent(z,this.min,this.max);return this.calcValue(U,this.rangeMin(),this.rangeMax())},x.prototype.invert=function(D){var z=this.max-this.min,U=this.calcPercent(D,this.rangeMin(),this.rangeMax()),lt=Math.round(z*U)+this.min;return lt<this.min||lt>this.max?NaN:this.values[lt]},x.prototype.getText=function(D){for(var z=[],U=1;U<arguments.length;U++)z[U-1]=arguments[U];var lt=D;return(0,S.isNumber)(D)&&!this.values.includes(D)&&(lt=this.values[lt]),f.prototype.getText.apply(this,(0,J.__spreadArrays)([lt],z))},x.prototype.initCfg=function(){this.tickMethod="cat"},x.prototype.setDomain=function(){if((0,S.isNil)(this.getConfig("min"))&&(this.min=0),(0,S.isNil)(this.getConfig("max"))){var D=this.values.length;this.max=D>1?D-1:D}this.translateIndexMap&&(this.translateIndexMap=void 0)},x}(N),ct=tt,nt=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,j="\\d\\d?",B="\\d\\d",b="\\d{3}",L="\\d{4}",Q="[^\\s]+",st=/\[([^]*?)\]/gm;function at(f,x){for(var D=[],z=0,U=f.length;z<U;z++)D.push(f[z].substr(0,x));return D}var R=function(f){return function(x,D){var z=D[f].map(function(lt){return lt.toLowerCase()}),U=z.indexOf(x.toLowerCase());return U>-1?U:null}};function y(f){for(var x=[],D=1;D<arguments.length;D++)x[D-1]=arguments[D];for(var z=0,U=x;z<U.length;z++){var lt=U[z];for(var Mt in lt)f[Mt]=lt[Mt]}return f}var w=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],X=["January","February","March","April","May","June","July","August","September","October","November","December"],W=at(X,3),ut=at(w,3),yt={dayNamesShort:ut,dayNames:w,monthNamesShort:W,monthNames:X,amPm:["am","pm"],DoFn:function(f){return f+["th","st","nd","rd"][f%10>3?0:(f-f%10!==10?1:0)*f%10]}},Pt=y({},yt),Ht=function(f){return Pt=y(Pt,f)},Wt=function(f){return f.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Tt=function(f,x){for(x===void 0&&(x=2),f=String(f);f.length<x;)f="0"+f;return f},_t={D:function(f){return String(f.getDate())},DD:function(f){return Tt(f.getDate())},Do:function(f,x){return x.DoFn(f.getDate())},d:function(f){return String(f.getDay())},dd:function(f){return Tt(f.getDay())},ddd:function(f,x){return x.dayNamesShort[f.getDay()]},dddd:function(f,x){return x.dayNames[f.getDay()]},M:function(f){return String(f.getMonth()+1)},MM:function(f){return Tt(f.getMonth()+1)},MMM:function(f,x){return x.monthNamesShort[f.getMonth()]},MMMM:function(f,x){return x.monthNames[f.getMonth()]},YY:function(f){return Tt(String(f.getFullYear()),4).substr(2)},YYYY:function(f){return Tt(f.getFullYear(),4)},h:function(f){return String(f.getHours()%12||12)},hh:function(f){return Tt(f.getHours()%12||12)},H:function(f){return String(f.getHours())},HH:function(f){return Tt(f.getHours())},m:function(f){return String(f.getMinutes())},mm:function(f){return Tt(f.getMinutes())},s:function(f){return String(f.getSeconds())},ss:function(f){return Tt(f.getSeconds())},S:function(f){return String(Math.round(f.getMilliseconds()/100))},SS:function(f){return Tt(Math.round(f.getMilliseconds()/10),2)},SSS:function(f){return Tt(f.getMilliseconds(),3)},a:function(f,x){return f.getHours()<12?x.amPm[0]:x.amPm[1]},A:function(f,x){return f.getHours()<12?x.amPm[0].toUpperCase():x.amPm[1].toUpperCase()},ZZ:function(f){var x=f.getTimezoneOffset();return(x>0?"-":"+")+Tt(Math.floor(Math.abs(x)/60)*100+Math.abs(x)%60,4)},Z:function(f){var x=f.getTimezoneOffset();return(x>0?"-":"+")+Tt(Math.floor(Math.abs(x)/60),2)+":"+Tt(Math.abs(x)%60,2)}},Ut=function(f){return+f-1},Yt=[null,j],Ot=[null,Q],a=["isPm",Q,function(f,x){var D=f.toLowerCase();return D===x.amPm[0]?0:D===x.amPm[1]?1:null}],d=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(f){var x=(f+"").match(/([+-]|\d\d)/gi);if(x){var D=+x[1]*60+parseInt(x[2],10);return x[0]==="+"?D:-D}return 0}],K={D:["day",j],DD:["day",B],Do:["day",j+Q,function(f){return parseInt(f,10)}],M:["month",j,Ut],MM:["month",B,Ut],YY:["year",B,function(f){var x=new Date,D=+(""+x.getFullYear()).substr(0,2);return+(""+(+f>68?D-1:D)+f)}],h:["hour",j,void 0,"isPm"],hh:["hour",B,void 0,"isPm"],H:["hour",j],HH:["hour",B],m:["minute",j],mm:["minute",B],s:["second",j],ss:["second",B],YYYY:["year",L],S:["millisecond","\\d",function(f){return+f*100}],SS:["millisecond",B,function(f){return+f*10}],SSS:["millisecond",b],d:Yt,dd:Yt,ddd:Ot,dddd:Ot,MMM:["month",Q,R("monthNamesShort")],MMMM:["month",Q,R("monthNames")],a,A:a,ZZ:d,Z:d},gt={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"},xt=function(f){return y(gt,f)},p=function(f,x,D){if(x===void 0&&(x=gt.default),D===void 0&&(D={}),typeof f=="number"&&(f=new Date(f)),Object.prototype.toString.call(f)!=="[object Date]"||isNaN(f.getTime()))throw new Error("Invalid Date pass to format");x=gt[x]||x;var z=[];x=x.replace(st,function(lt,Mt){return z.push(Mt),"@@@"});var U=y(y({},Pt),D);return x=x.replace(nt,function(lt){return _t[lt](f,U)}),x.replace(/@@@/g,function(){return z.shift()})};function _(f,x,D){if(D===void 0&&(D={}),typeof x!="string")throw new Error("Invalid format in fecha parse");if(x=gt[x]||x,f.length>1e3)return null;var z=new Date,U={year:z.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},lt=[],Mt=[],wt=x.replace(st,function(mr,gr){return Mt.push(Wt(gr)),"@@@"}),Kt={},kt={};wt=Wt(wt).replace(nt,function(mr){var gr=K[mr],Mr=gr[0],_r=gr[1],pr=gr[3];if(Kt[Mr])throw new Error("Invalid format. "+Mr+" specified twice in format");return Kt[Mr]=!0,pr&&(kt[pr]=!0),lt.push(gr),"("+_r+")"}),Object.keys(kt).forEach(function(mr){if(!Kt[mr])throw new Error("Invalid format. "+mr+" is required in specified format")}),wt=wt.replace(/@@@/g,function(){return Mt.shift()});var Xt=f.match(new RegExp(wt,"i"));if(!Xt)return null;for(var jt=y(y({},Pt),D),qt=1;qt<Xt.length;qt++){var ar=lt[qt-1],rr=ar[0],lr=ar[2],hr=lr?lr(Xt[qt],jt):+Xt[qt];if(hr==null)return null;U[rr]=hr}U.isPm===1&&U.hour!=null&&+U.hour!=12?U.hour=+U.hour+12:U.isPm===0&&+U.hour==12&&(U.hour=0);var yr;if(U.timezoneOffset==null){yr=new Date(U.year,U.month,U.day,U.hour,U.minute,U.second,U.millisecond);for(var ir=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],qt=0,Tr=ir.length;qt<Tr;qt++)if(Kt[ir[qt][0]]&&U[ir[qt][0]]!==yr[ir[qt][1]]())return null}else if(yr=new Date(Date.UTC(U.year,U.month,U.day,U.hour,U.minute-U.timezoneOffset,U.second,U.millisecond)),U.month>11||U.month<0||U.day>31||U.day<1||U.hour>23||U.hour<0||U.minute>59||U.minute<0||U.second>59||U.second<0)return null;return yr}var k={format:p,parse:_,defaultI18n:yt,setGlobalDateI18n:Ht,setGlobalDateMasks:xt},E=k;function Z(f){return function(x,D,z,U){for(var lt=(0,S.isNil)(z)?0:z,Mt=(0,S.isNil)(U)?x.length:U;lt<Mt;){var wt=lt+Mt>>>1;f(x[wt])>D?Mt=wt:lt=wt+1}return lt}}var it="format";function M(f,x){var D=ft[it]||E[it];return D(f,x)}function s(f){return(0,S.isString)(f)&&(f.indexOf("T")>0?f=new Date(f).getTime():f=new Date(f.replace(/-/gi,"/")).getTime()),(0,S.isDate)(f)&&(f=f.getTime()),f}var e=1e3,t=60*e,u=60*t,c=24*u,l=c*31,C=c*365,A=[["HH:mm:ss",e],["HH:mm:ss",e*10],["HH:mm:ss",e*30],["HH:mm",t],["HH:mm",t*10],["HH:mm",t*30],["HH",u],["HH",u*6],["HH",u*12],["YYYY-MM-DD",c],["YYYY-MM-DD",c*4],["YYYY-WW",c*7],["YYYY-MM",l],["YYYY-MM",l*4],["YYYY-MM",l*6],["YYYY",c*380]];function Y(f,x,D){var z=(x-f)/D,U=Z(function(Mt){return Mt[1]})(A,z)-1,lt=A[U];return U<0?lt=A[0]:U>=A.length&&(lt=(0,S.last)(A)),lt}var I=function(f){(0,J.__extends)(x,f);function x(){var D=f!==null&&f.apply(this,arguments)||this;return D.type="timeCat",D}return x.prototype.translate=function(D){D=s(D);var z=this.values.indexOf(D);return z===-1&&((0,S.isNumber)(D)&&D<this.values.length?z=D:z=NaN),z},x.prototype.getText=function(D,z){var U=this.translate(D);if(U>-1){var lt=this.values[U],Mt=this.formatter;return lt=Mt?Mt(lt,z):M(lt,this.mask),lt}return D},x.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},x.prototype.setDomain=function(){var D=this.values;(0,S.each)(D,function(z,U){D[U]=s(z)}),D.sort(function(z,U){return z-U}),f.prototype.setDomain.call(this)},x}(ct),g=I,n=function(f){(0,J.__extends)(x,f);function x(){var D=f!==null&&f.apply(this,arguments)||this;return D.isContinuous=!0,D}return x.prototype.scale=function(D){if((0,S.isNil)(D))return NaN;var z=this.rangeMin(),U=this.rangeMax(),lt=this.max,Mt=this.min;if(lt===Mt)return z;var wt=this.getScalePercent(D);return z+wt*(U-z)},x.prototype.init=function(){f.prototype.init.call(this);var D=this.ticks,z=(0,S.head)(D),U=(0,S.last)(D);z<this.min&&(this.min=z),U>this.max&&(this.max=U),(0,S.isNil)(this.minLimit)||(this.min=z),(0,S.isNil)(this.maxLimit)||(this.max=U)},x.prototype.setDomain=function(){var D=(0,S.getRange)(this.values),z=D.min,U=D.max;(0,S.isNil)(this.min)&&(this.min=z),(0,S.isNil)(this.max)&&(this.max=U),this.min>this.max&&(this.min=z,this.max=U)},x.prototype.calculateTicks=function(){var D=this,z=f.prototype.calculateTicks.call(this);return this.nice||(z=(0,S.filter)(z,function(U){return U>=D.min&&U<=D.max})),z},x.prototype.getScalePercent=function(D){var z=this.max,U=this.min;return(D-U)/(z-U)},x.prototype.getInvertPercent=function(D){return(D-this.rangeMin())/(this.rangeMax()-this.rangeMin())},x}(N),v=n,m=function(f){(0,J.__extends)(x,f);function x(){var D=f!==null&&f.apply(this,arguments)||this;return D.type="linear",D.isLinear=!0,D}return x.prototype.invert=function(D){var z=this.getInvertPercent(D);return this.min+z*(this.max-this.min)},x.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},x}(v),r=m;function i(f,x){var D=Math.E,z;return x>=0?z=Math.pow(D,Math.log(x)/f):z=Math.pow(D,Math.log(-x)/f)*-1,z}function o(f,x){return f===1?1:Math.log(x)/Math.log(f)}function P(f,x,D){(0,S.isNil)(D)&&(D=Math.max.apply(null,f));var z=D;return(0,S.each)(f,function(U){U>0&&U<z&&(z=U)}),z===D&&(z=D/x),z>1&&(z=1),z}function F(f){var x=f.toString().split(/[eE]/),D=(x[0].split(".")[1]||"").length-+(x[1]||0);return D>0?D:0}function V(f,x){var D=F(f),z=F(x),U=Math.pow(10,Math.max(D,z));return(f*U+x*U)/U}var q=function(f){(0,J.__extends)(x,f);function x(){var D=f!==null&&f.apply(this,arguments)||this;return D.type="log",D}return x.prototype.invert=function(D){var z=this.base,U=o(z,this.max),lt=this.rangeMin(),Mt=this.rangeMax()-lt,wt,Kt=this.positiveMin;if(Kt){if(D===0)return 0;wt=o(z,Kt/z);var kt=1/(U-wt)*Mt;if(D<kt)return D/kt*Kt}else wt=o(z,this.min);var Xt=(D-lt)/Mt,jt=Xt*(U-wt)+wt;return Math.pow(z,jt)},x.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},x.prototype.setDomain=function(){f.prototype.setDomain.call(this);var D=this.min;if(D<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");D===0&&(this.positiveMin=P(this.values,this.base,this.max))},x.prototype.getScalePercent=function(D){var z=this.max,U=this.min;if(z===U||D<=0)return 0;var lt=this.base,Mt=this.positiveMin;Mt&&(U=Mt*1/lt);var wt;return D<Mt?wt=D/Mt/(o(lt,z)-o(lt,U)):wt=(o(lt,D)-o(lt,U))/(o(lt,z)-o(lt,U)),wt},x}(v),rt=q,et=function(f){(0,J.__extends)(x,f);function x(){var D=f!==null&&f.apply(this,arguments)||this;return D.type="pow",D}return x.prototype.invert=function(D){var z=this.getInvertPercent(D),U=this.exponent,lt=i(U,this.max),Mt=i(U,this.min),wt=z*(lt-Mt)+Mt,Kt=wt>=0?1:-1;return Math.pow(wt,U)*Kt},x.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},x.prototype.getScalePercent=function(D){var z=this.max,U=this.min;if(z===U)return 0;var lt=this.exponent,Mt=(i(lt,D)-i(lt,U))/(i(lt,z)-i(lt,U));return Mt},x}(v),mt=et,pt=function(f){(0,J.__extends)(x,f);function x(){var D=f!==null&&f.apply(this,arguments)||this;return D.type="time",D}return x.prototype.getText=function(D,z){var U=this.translate(D),lt=this.formatter;return lt?lt(U,z):M(U,this.mask)},x.prototype.scale=function(D){var z=D;return((0,S.isString)(z)||(0,S.isDate)(z))&&(z=this.translate(z)),f.prototype.scale.call(this,z)},x.prototype.translate=function(D){return s(D)},x.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},x.prototype.setDomain=function(){var D=this.values,z=this.getConfig("min"),U=this.getConfig("max");if((!(0,S.isNil)(z)||!(0,S.isNumber)(z))&&(this.min=this.translate(this.min)),(!(0,S.isNil)(U)||!(0,S.isNumber)(U))&&(this.max=this.translate(this.max)),D&&D.length){var lt=[],Mt=1/0,wt=Mt,Kt=0;(0,S.each)(D,function(kt){var Xt=s(kt);if(isNaN(Xt))throw new TypeError("Invalid Time: "+kt+" in time scale!");Mt>Xt?(wt=Mt,Mt=Xt):wt>Xt&&(wt=Xt),Kt<Xt&&(Kt=Xt),lt.push(Xt)}),D.length>1&&(this.minTickInterval=wt-Mt),(0,S.isNil)(z)&&(this.min=Mt),(0,S.isNil)(U)&&(this.max=Kt)}},x}(r),bt=pt,Ft=function(f){(0,J.__extends)(x,f);function x(){var D=f!==null&&f.apply(this,arguments)||this;return D.type="quantize",D}return x.prototype.invert=function(D){var z=this.ticks,U=z.length,lt=this.getInvertPercent(D),Mt=Math.floor(lt*(U-1));if(Mt>=U-1)return(0,S.last)(z);if(Mt<0)return(0,S.head)(z);var wt=z[Mt],Kt=z[Mt+1],kt=Mt/(U-1),Xt=(Mt+1)/(U-1);return wt+(lt-kt)/(Xt-kt)*(Kt-wt)},x.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},x.prototype.calculateTicks=function(){var D=f.prototype.calculateTicks.call(this);return this.nice||((0,S.last)(D)!==this.max&&D.push(this.max),(0,S.head)(D)!==this.min&&D.unshift(this.min)),D},x.prototype.getScalePercent=function(D){var z=this.ticks;if(D<(0,S.head)(z))return 0;if(D>(0,S.last)(z))return 1;var U=0;return(0,S.each)(z,function(lt,Mt){if(D>=lt)U=Mt;else return!1}),U/(z.length-1)},x}(v),Ct=Ft,Bt=function(f){(0,J.__extends)(x,f);function x(){var D=f!==null&&f.apply(this,arguments)||this;return D.type="quantile",D}return x.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},x}(Ct),Lt=Bt,Nt={};function Dt(f){return Nt[f]}function Rt(f,x){if(Dt(f))throw new Error("type '"+f+"' existed.");Nt[f]=x}var Zt=function(f){(0,J.__extends)(x,f);function x(){var D=f!==null&&f.apply(this,arguments)||this;return D.type="identity",D.isIdentity=!0,D}return x.prototype.calculateTicks=function(){return this.values},x.prototype.scale=function(D){return this.values[0]!==D&&(0,S.isNumber)(D)?D:this.range[0]},x.prototype.invert=function(D){var z=this.range;return D<z[0]||D>z[1]?NaN:this.values[0]},x}(N),Gt=Zt;function zt(f){var x=f.values,D=f.tickInterval,z=f.tickCount,U=f.showLast;if((0,S.isNumber)(D)){var lt=(0,S.filter)(x,function(rr,lr){return lr%D===0}),Mt=(0,S.last)(x);return U&&(0,S.last)(lt)!==Mt&<.push(Mt),lt}var wt=x.length,Kt=f.min,kt=f.max;if((0,S.isNil)(Kt)&&(Kt=0),(0,S.isNil)(kt)&&(kt=x.length-1),!(0,S.isNumber)(z)||z>=wt)return x.slice(Kt,kt+1);if(z<=0||kt<=0)return[];for(var Xt=z===1?wt:Math.floor(wt/(z-1)),jt=[],qt=Kt,ar=0;ar<z&&!(qt>=kt);ar++)qt=Math.min(Kt+ar*Xt,kt),ar===z-1&&U?jt.push(x[kt]):jt.push(x[qt]);return jt}function Qt(f){var x=f.min,D=f.max,z=f.nice,U=f.tickCount,lt=new cr;return lt.domain([x,D]),z&<.nice(U),lt.ticks(U)}var $t=5,er=Math.sqrt(50),or=Math.sqrt(10),nr=Math.sqrt(2),cr=function(){function f(){this._domain=[0,1]}return f.prototype.domain=function(x){return x?(this._domain=Array.from(x,Number),this):this._domain.slice()},f.prototype.nice=function(x){var D,z;x===void 0&&(x=$t);var U=this._domain.slice(),lt=0,Mt=this._domain.length-1,wt=this._domain[lt],Kt=this._domain[Mt],kt;return Kt<wt&&(D=[Kt,wt],wt=D[0],Kt=D[1],z=[Mt,lt],lt=z[0],Mt=z[1]),kt=dr(wt,Kt,x),kt>0?(wt=Math.floor(wt/kt)*kt,Kt=Math.ceil(Kt/kt)*kt,kt=dr(wt,Kt,x)):kt<0&&(wt=Math.ceil(wt*kt)/kt,Kt=Math.floor(Kt*kt)/kt,kt=dr(wt,Kt,x)),kt>0?(U[lt]=Math.floor(wt/kt)*kt,U[Mt]=Math.ceil(Kt/kt)*kt,this.domain(U)):kt<0&&(U[lt]=Math.ceil(wt*kt)/kt,U[Mt]=Math.floor(Kt*kt)/kt,this.domain(U)),this},f.prototype.ticks=function(x){return x===void 0&&(x=$t),xr(this._domain[0],this._domain[this._domain.length-1],x||$t)},f}();function xr(f,x,D){var z,U=-1,lt,Mt,wt;if(x=+x,f=+f,D=+D,f===x&&D>0)return[f];if((z=x<f)&&(lt=f,f=x,x=lt),(wt=dr(f,x,D))===0||!isFinite(wt))return[];if(wt>0)for(f=Math.ceil(f/wt),x=Math.floor(x/wt),Mt=new Array(lt=Math.ceil(x-f+1));++U<lt;)Mt[U]=(f+U)*wt;else for(f=Math.floor(f*wt),x=Math.ceil(x*wt),Mt=new Array(lt=Math.ceil(f-x+1));++U<lt;)Mt[U]=(f-U)/wt;return z&&Mt.reverse(),Mt}function dr(f,x,D){var z=(x-f)/Math.max(0,D),U=Math.floor(Math.log(z)/Math.LN10),lt=z/Math.pow(10,U);return U>=0?(lt>=er?10:lt>=or?5:lt>=nr?2:1)*Math.pow(10,U):-Math.pow(10,-U)/(lt>=er?10:lt>=or?5:lt>=nr?2:1)}function Cr(f,x,D){var z;return D==="ceil"?z=Math.ceil(f/x):D==="floor"?z=Math.floor(f/x):z=Math.round(f/x),z*x}function ur(f,x,D){var z=Cr(f,D,"floor"),U=Cr(x,D,"ceil");z=(0,S.fixedBase)(z,D),U=(0,S.fixedBase)(U,D);for(var lt=[],Mt=Math.max((U-z)/(Math.pow(2,12)-1),D),wt=z;wt<=U;wt=wt+Mt){var Kt=(0,S.fixedBase)(wt,Mt);lt.push(Kt)}return{min:z,max:U,ticks:lt}}function vr(f,x,D){var z,U=f.minLimit,lt=f.maxLimit,Mt=f.min,wt=f.max,Kt=f.tickCount,kt=Kt===void 0?5:Kt,Xt=(0,S.isNil)(U)?(0,S.isNil)(x)?Mt:x:U,jt=(0,S.isNil)(lt)?(0,S.isNil)(D)?wt:D:lt;if(Xt>jt&&(z=[Xt,jt],jt=z[0],Xt=z[1]),kt<=2)return[Xt,jt];for(var qt=(jt-Xt)/(kt-1),ar=[],rr=0;rr<kt;rr++)ar.push(Xt+qt*rr);return ar}function fr(f){var x=f.min,D=f.max,z=f.tickInterval,U=f.minLimit,lt=f.maxLimit,Mt=Qt(f);return!(0,S.isNil)(U)||!(0,S.isNil)(lt)?vr(f,(0,S.head)(Mt),(0,S.last)(Mt)):z?ur(x,D,z).ticks:Mt}function sr(f){return Math.abs(f)<1e-15?f:parseFloat(f.toFixed(15))}var wr=[1,5,2,2.5,4,3],Er=null,Pr=Number.EPSILON*100;function Sr(f,x){return(f%x+x)%x}function Rr(f){return Math.round(f*1e12)/1e12}function Fr(f,x,D,z,U,lt){var Mt=(0,S.size)(x),wt=(0,S.indexOf)(x,f),Kt=0,kt=Sr(z,lt);return(kt<Pr||lt-kt<Pr)&&z<=0&&U>=0&&(Kt=1),1-wt/(Mt-1)-D+Kt}function Xr(f,x,D){var z=(0,S.size)(x),U=(0,S.indexOf)(x,f),lt=1;return 1-U/(z-1)-D+lt}function Hr(f,x,D,z,U,lt){var Mt=(f-1)/(lt-U),wt=(x-1)/(Math.max(lt,z)-Math.min(D,U));return 2-Math.max(Mt/wt,wt/Mt)}function Ir(f,x){return f>=x?2-(f-1)/(x-1):1}function Wr(f,x,D,z){var U=x-f;return 1-.5*(Math.pow(x-z,2)+Math.pow(f-D,2))/Math.pow(.1*U,2)}function br(f,x,D){var z=x-f;if(D>z){var U=(D-z)/2;return 1-Math.pow(U,2)/Math.pow(.1*z,2)}return 1}function Qr(){return 1}function Or(f,x,D,z,U,lt){D===void 0&&(D=5),z===void 0&&(z=!0),U===void 0&&(U=wr),lt===void 0&&(lt=[.25,.2,.5,.05]);var Mt=D<0?0:Math.round(D);if(Number.isNaN(f)||Number.isNaN(x)||typeof f!="number"||typeof x!="number"||!Mt)return{min:0,max:0,ticks:[]};if(x-f<1e-15||Mt===1)return{min:f,max:x,ticks:[f]};if(x-f>1e148){var wt=D||5,Kt=(x-f)/wt;return{min:f,max:x,ticks:Array(wt).fill(null).map(function(ae,ne){return sr(f+Kt*ne)})}}for(var kt={score:-2,lmin:0,lmax:0,lstep:0},Xt=1;Xt<1/0;){for(var jt=0;jt<U.length;jt+=1){var qt=U[jt],ar=Xr(qt,U,Xt);if(lt[0]*ar+lt[1]+lt[2]+lt[3]<kt.score){Xt=1/0;break}for(var rr=2;rr<1/0;){var lr=Ir(rr,Mt);if(lt[0]*ar+lt[1]+lt[2]*lr+lt[3]<kt.score)break;for(var hr=(x-f)/(rr+1)/Xt/qt,yr=Math.ceil(Math.log10(hr));yr<1/0;){var ir=Xt*qt*Math.pow(10,yr),Tr=br(f,x,ir*(rr-1));if(lt[0]*ar+lt[1]*Tr+lt[2]*lr+lt[3]<kt.score)break;var mr=Math.floor(x/ir)*Xt-(rr-1)*Xt,gr=Math.ceil(f/ir)*Xt;if(mr<=gr)for(var wt=gr-mr,Mr=0;Mr<=wt;Mr+=1){var _r=mr+Mr,pr=_r*(ir/Xt),Ar=pr+ir*(rr-1),Yr=ir,Vr=Fr(qt,U,Xt,pr,Ar,Yr),Nr=Wr(f,x,pr,Ar),te=Hr(rr,Mt,f,x,pr,Ar),re=Qr(),$r=lt[0]*Vr+lt[1]*Nr+lt[2]*te+lt[3]*re;$r>kt.score&&(!z||pr<=f&&Ar>=x)&&(kt.lmin=pr,kt.lmax=Ar,kt.lstep=Yr,kt.score=$r)}yr+=1}rr+=1}}Xt+=1}var ee=sr(kt.lmax),Jr=sr(kt.lmin),qr=sr(kt.lstep),jr=Math.floor(Rr((ee-Jr)/qr))+1,Dr=new Array(jr);Dr[0]=sr(Jr);for(var jt=1;jt<jr;jt++)Dr[jt]=sr(Dr[jt-1]+qr);return{min:Math.min(f,(0,S.head)(Dr)),max:Math.max(x,(0,S.last)(Dr)),ticks:Dr}}function Ur(f){var x=f.min,D=f.max,z=f.tickCount,U=f.nice,lt=f.tickInterval,Mt=f.minLimit,wt=f.maxLimit,Kt=Or(x,D,z,U).ticks;return!(0,S.isNil)(Mt)||!(0,S.isNil)(wt)?vr(f,(0,S.head)(Kt),(0,S.last)(Kt)):lt?ur(x,D,lt).ticks:Kt}function Kr(f){var x=f.base,D=f.tickCount,z=f.min,U=f.max,lt=f.values,Mt,wt=o(x,U);if(z>0)Mt=Math.floor(o(x,z));else{var Kt=P(lt,x,U);Mt=Math.floor(o(x,Kt))}for(var kt=wt-Mt,Xt=Math.ceil(kt/D),jt=[],qt=Mt;qt<wt+Xt;qt=qt+Xt)jt.push(Math.pow(x,qt));return z<=0&&jt.unshift(0),jt}function Br(f,x,D){if(D===void 0&&(D=5),f===x)return{max:x,min:f,ticks:[f]};var z=D<0?0:Math.round(D);if(z===0)return{max:x,min:f,ticks:[]};var U=1.5,lt=.5+1.5*U,Mt=x-f,wt=Mt/z,Kt=Math.pow(10,Math.floor(Math.log10(wt))),kt=Kt;2*Kt-wt<U*(wt-kt)&&(kt=2*Kt,5*Kt-wt<lt*(wt-kt)&&(kt=5*Kt,10*Kt-wt<U*(wt-kt)&&(kt=10*Kt)));for(var Xt=Math.ceil(x/kt),jt=Math.floor(f/kt),qt=Math.max(Xt*kt,x),ar=Math.min(jt*kt,f),rr=Math.floor((qt-ar)/kt)+1,lr=new Array(rr),hr=0;hr<rr;hr++)lr[hr]=sr(ar+hr*kt);return{min:ar,max:qt,ticks:lr}}function Lr(f){var x=f.exponent,D=f.tickCount,z=Math.ceil(i(x,f.max)),U=Math.floor(i(x,f.min)),lt=Br(U,z,D).ticks;return lt.map(function(Mt){var wt=Mt>=0?1:-1;return Math.pow(Mt,x)*wt})}function kr(f,x){var D=f.length*x;return x===1?f[f.length-1]:x===0?f[0]:D%1!==0?f[Math.ceil(D)-1]:f.length%2===0?(f[D-1]+f[D])/2:f[D]}function Gr(f){var x=f.tickCount,D=f.values;if(!D||!D.length)return[];for(var z=D.slice().sort(function(wt,Kt){return wt-Kt}),U=[],lt=0;lt<x;lt++){var Mt=lt/(x-1);U.push(kr(z,Mt))}return U}function Zr(f){var x=f.min,D=f.max,z=f.tickCount,U=f.tickInterval,lt=f.minLimit,Mt=f.maxLimit,wt=Br(x,D,z).ticks;return!(0,S.isNil)(lt)||!(0,S.isNil)(Mt)?vr(f,(0,S.head)(wt),(0,S.last)(wt)):U?ur(x,D,U).ticks:wt}function zr(f){var x=f.min,D=f.max,z=f.minTickInterval,U=f.tickInterval,lt=f.tickCount;if(U)lt=Math.ceil((D-x)/U);else{U=Y(x,D,lt)[1];var Mt=(D-x)/U,wt=Mt/lt;wt>1&&(U=U*Math.ceil(wt)),z&&U<z&&(U=z)}U=Math.max(Math.floor((D-x)/(Math.pow(2,12)-1)),U);for(var Kt=[],kt=x;kt<D+U;kt+=U)Kt.push(kt);return Kt}function O(f){var x=zt((0,J.__assign)({showLast:!0},f));return x}function h(f){return new Date(f).getFullYear()}function T(f){return new Date(f,0,1).getTime()}function G(f){return new Date(f).getMonth()}function vt(f,x){var D=h(f),z=h(x),U=G(f),lt=G(x);return(z-D)*12+(lt-U)%12}function At(f,x){return new Date(f,x,1).getTime()}function It(f,x){return Math.ceil((x-f)/c)}function Et(f,x){return Math.ceil((x-f)/u)}function Vt(f,x){return Math.ceil((x-f)/(60*1e3))}function tr(f){var x=f.min,D=f.max,z=f.minTickInterval,U=f.tickCount,lt=f.tickInterval,Mt=[];lt||(lt=(D-x)/U,z&<<z&&(lt=z)),lt=Math.max(Math.floor((D-x)/(Math.pow(2,12)-1)),lt);var wt=h(x);if(lt>C)for(var Kt=h(D),kt=Math.ceil(lt/C),Xt=wt;Xt<=Kt+kt;Xt=Xt+kt)Mt.push(T(Xt));else if(lt>l)for(var jt=Math.ceil(lt/l),qt=G(x),ar=vt(x,D),Xt=0;Xt<=ar+jt;Xt=Xt+jt)Mt.push(At(wt,Xt+qt));else if(lt>c)for(var rr=new Date(x),lr=rr.getFullYear(),hr=rr.getMonth(),yr=rr.getDate(),ir=Math.ceil(lt/c),Tr=It(x,D),Xt=0;Xt<Tr+ir;Xt=Xt+ir)Mt.push(new Date(lr,hr,yr+Xt).getTime());else if(lt>u)for(var rr=new Date(x),lr=rr.getFullYear(),hr=rr.getMonth(),ir=rr.getDate(),mr=rr.getHours(),gr=Math.ceil(lt/u),Mr=Et(x,D),Xt=0;Xt<=Mr+gr;Xt=Xt+gr)Mt.push(new Date(lr,hr,ir,mr+Xt).getTime());else if(lt>t)for(var _r=Vt(x,D),pr=Math.ceil(lt/t),Xt=0;Xt<=_r+pr;Xt=Xt+pr)Mt.push(x+Xt*t);else{var Ar=lt;Ar<e&&(Ar=e);for(var Yr=Math.floor(x/e)*e,Vr=Math.ceil((D-x)/e),Nr=Math.ceil(Ar/e),Xt=0;Xt<Vr+Nr;Xt=Xt+Nr)Mt.push(Yr+Xt*e)}return Mt.length>=512&&console.warn("Notice: current ticks length("+Mt.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+lt+") is too small, increase the value to solve the problem!"),Mt}ht("cat",zt),ht("time-cat",O),ht("wilkinson-extended",Ur),ht("r-pretty",Zr),ht("time",zr),ht("time-pretty",tr),ht("log",Kr),ht("pow",Lr),ht("quantile",Gr),ht("d3-linear",fr),Rt("cat",ct),Rt("category",ct),Rt("identity",Gt),Rt("linear",r),Rt("log",rt),Rt("pow",mt),Rt("time",bt),Rt("timeCat",g),Rt("quantize",Ct),Rt("quantile",Lt)},81365:function(Jt,St,H){"use strict";H.d(St,{qY:function(){return B}});var ft=H(14224),S=function(y,w,X){if(X||arguments.length===2)for(var W=0,ut=w.length,yt;W<ut;W++)(yt||!(W in w))&&(yt||(yt=Array.prototype.slice.call(w,0,W)),yt[W]=w[W]);return y.concat(yt||Array.prototype.slice.call(w))},dt=function(){function y(w,X,W){this.name=w,this.version=X,this.os=W,this.type="browser"}return y}(),ot=function(){function y(w){this.version=w,this.type="node",this.name="node",this.os=ft.platform}return y}(),ht=function(){function y(w,X,W,ut){this.name=w,this.version=X,this.os=W,this.bot=ut,this.type="bot-device"}return y}(),$=function(){function y(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return y}(),N=function(){function y(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return y}(),J=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,tt=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,ct=3,nt=[["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",J]],j=[["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 B(y){return y?Q(y):typeof document=="undefined"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"?new N:typeof navigator!="undefined"?Q(navigator.userAgent):at()}function b(y){return y!==""&&nt.reduce(function(w,X){var W=X[0],ut=X[1];if(w)return w;var yt=ut.exec(y);return!!yt&&[W,yt]},!1)}function L(y){var w=b(y);return w?w[0]:null}function Q(y){var w=b(y);if(!w)return null;var X=w[0],W=w[1];if(X==="searchbot")return new $;var ut=W[1]&&W[1].split(".").join("_").split("_").slice(0,3);ut?ut.length<ct&&(ut=S(S([],ut,!0),R(ct-ut.length),!0)):ut=[];var yt=ut.join("."),Pt=st(y),Ht=tt.exec(y);return Ht&&Ht[1]?new ht(X,yt,Pt,Ht[1]):new dt(X,yt,Pt)}function st(y){for(var w=0,X=j.length;w<X;w++){var W=j[w],ut=W[0],yt=W[1],Pt=yt.exec(y);if(Pt)return ut}return null}function at(){var y=typeof ft!="undefined"&&ft.version;return y?new ot(ft.version.slice(1)):null}function R(y){for(var w=[],X=0;X<y;X++)w.push("0");return w}},73485:function(Jt,St,H){"use strict";H.r(St),H.d(St,{add:function(){return Pt},adjoint:function(){return nt},clone:function(){return ot},copy:function(){return ht},create:function(){return S},determinant:function(){return j},equals:function(){return Ut},exactEquals:function(){return _t},frob:function(){return yt},fromMat2d:function(){return y},fromMat4:function(){return dt},fromQuat:function(){return w},fromRotation:function(){return at},fromScaling:function(){return R},fromTranslation:function(){return st},fromValues:function(){return $},identity:function(){return J},invert:function(){return ct},mul:function(){return Yt},multiply:function(){return B},multiplyScalar:function(){return Wt},multiplyScalarAndAdd:function(){return Tt},normalFromMat4:function(){return X},projection:function(){return W},rotate:function(){return L},scale:function(){return Q},set:function(){return N},str:function(){return ut},sub:function(){return Ot},subtract:function(){return Ht},translate:function(){return b},transpose:function(){return tt}});var ft=H(31767);function S(){var a=new ft.ARRAY_TYPE(9);return ft.ARRAY_TYPE!=Float32Array&&(a[1]=0,a[2]=0,a[3]=0,a[5]=0,a[6]=0,a[7]=0),a[0]=1,a[4]=1,a[8]=1,a}function dt(a,d){return a[0]=d[0],a[1]=d[1],a[2]=d[2],a[3]=d[4],a[4]=d[5],a[5]=d[6],a[6]=d[8],a[7]=d[9],a[8]=d[10],a}function ot(a){var d=new ft.ARRAY_TYPE(9);return d[0]=a[0],d[1]=a[1],d[2]=a[2],d[3]=a[3],d[4]=a[4],d[5]=a[5],d[6]=a[6],d[7]=a[7],d[8]=a[8],d}function ht(a,d){return a[0]=d[0],a[1]=d[1],a[2]=d[2],a[3]=d[3],a[4]=d[4],a[5]=d[5],a[6]=d[6],a[7]=d[7],a[8]=d[8],a}function $(a,d,K,gt,xt,p,_,k,E){var Z=new ft.ARRAY_TYPE(9);return Z[0]=a,Z[1]=d,Z[2]=K,Z[3]=gt,Z[4]=xt,Z[5]=p,Z[6]=_,Z[7]=k,Z[8]=E,Z}function N(a,d,K,gt,xt,p,_,k,E,Z){return a[0]=d,a[1]=K,a[2]=gt,a[3]=xt,a[4]=p,a[5]=_,a[6]=k,a[7]=E,a[8]=Z,a}function J(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=1,a[5]=0,a[6]=0,a[7]=0,a[8]=1,a}function tt(a,d){if(a===d){var K=d[1],gt=d[2],xt=d[5];a[1]=d[3],a[2]=d[6],a[3]=K,a[5]=d[7],a[6]=gt,a[7]=xt}else a[0]=d[0],a[1]=d[3],a[2]=d[6],a[3]=d[1],a[4]=d[4],a[5]=d[7],a[6]=d[2],a[7]=d[5],a[8]=d[8];return a}function ct(a,d){var K=d[0],gt=d[1],xt=d[2],p=d[3],_=d[4],k=d[5],E=d[6],Z=d[7],it=d[8],M=it*_-k*Z,s=-it*p+k*E,e=Z*p-_*E,t=K*M+gt*s+xt*e;return t?(t=1/t,a[0]=M*t,a[1]=(-it*gt+xt*Z)*t,a[2]=(k*gt-xt*_)*t,a[3]=s*t,a[4]=(it*K-xt*E)*t,a[5]=(-k*K+xt*p)*t,a[6]=e*t,a[7]=(-Z*K+gt*E)*t,a[8]=(_*K-gt*p)*t,a):null}function nt(a,d){var K=d[0],gt=d[1],xt=d[2],p=d[3],_=d[4],k=d[5],E=d[6],Z=d[7],it=d[8];return a[0]=_*it-k*Z,a[1]=xt*Z-gt*it,a[2]=gt*k-xt*_,a[3]=k*E-p*it,a[4]=K*it-xt*E,a[5]=xt*p-K*k,a[6]=p*Z-_*E,a[7]=gt*E-K*Z,a[8]=K*_-gt*p,a}function j(a){var d=a[0],K=a[1],gt=a[2],xt=a[3],p=a[4],_=a[5],k=a[6],E=a[7],Z=a[8];return d*(Z*p-_*E)+K*(-Z*xt+_*k)+gt*(E*xt-p*k)}function B(a,d,K){var gt=d[0],xt=d[1],p=d[2],_=d[3],k=d[4],E=d[5],Z=d[6],it=d[7],M=d[8],s=K[0],e=K[1],t=K[2],u=K[3],c=K[4],l=K[5],C=K[6],A=K[7],Y=K[8];return a[0]=s*gt+e*_+t*Z,a[1]=s*xt+e*k+t*it,a[2]=s*p+e*E+t*M,a[3]=u*gt+c*_+l*Z,a[4]=u*xt+c*k+l*it,a[5]=u*p+c*E+l*M,a[6]=C*gt+A*_+Y*Z,a[7]=C*xt+A*k+Y*it,a[8]=C*p+A*E+Y*M,a}function b(a,d,K){var gt=d[0],xt=d[1],p=d[2],_=d[3],k=d[4],E=d[5],Z=d[6],it=d[7],M=d[8],s=K[0],e=K[1];return a[0]=gt,a[1]=xt,a[2]=p,a[3]=_,a[4]=k,a[5]=E,a[6]=s*gt+e*_+Z,a[7]=s*xt+e*k+it,a[8]=s*p+e*E+M,a}function L(a,d,K){var gt=d[0],xt=d[1],p=d[2],_=d[3],k=d[4],E=d[5],Z=d[6],it=d[7],M=d[8],s=Math.sin(K),e=Math.cos(K);return a[0]=e*gt+s*_,a[1]=e*xt+s*k,a[2]=e*p+s*E,a[3]=e*_-s*gt,a[4]=e*k-s*xt,a[5]=e*E-s*p,a[6]=Z,a[7]=it,a[8]=M,a}function Q(a,d,K){var gt=K[0],xt=K[1];return a[0]=gt*d[0],a[1]=gt*d[1],a[2]=gt*d[2],a[3]=xt*d[3],a[4]=xt*d[4],a[5]=xt*d[5],a[6]=d[6],a[7]=d[7],a[8]=d[8],a}function st(a,d){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=1,a[5]=0,a[6]=d[0],a[7]=d[1],a[8]=1,a}function at(a,d){var K=Math.sin(d),gt=Math.cos(d);return a[0]=gt,a[1]=K,a[2]=0,a[3]=-K,a[4]=gt,a[5]=0,a[6]=0,a[7]=0,a[8]=1,a}function R(a,d){return a[0]=d[0],a[1]=0,a[2]=0,a[3]=0,a[4]=d[1],a[5]=0,a[6]=0,a[7]=0,a[8]=1,a}function y(a,d){return a[0]=d[0],a[1]=d[1],a[2]=0,a[3]=d[2],a[4]=d[3],a[5]=0,a[6]=d[4],a[7]=d[5],a[8]=1,a}function w(a,d){var K=d[0],gt=d[1],xt=d[2],p=d[3],_=K+K,k=gt+gt,E=xt+xt,Z=K*_,it=gt*_,M=gt*k,s=xt*_,e=xt*k,t=xt*E,u=p*_,c=p*k,l=p*E;return a[0]=1-M-t,a[3]=it-l,a[6]=s+c,a[1]=it+l,a[4]=1-Z-t,a[7]=e-u,a[2]=s-c,a[5]=e+u,a[8]=1-Z-M,a}function X(a,d){var K=d[0],gt=d[1],xt=d[2],p=d[3],_=d[4],k=d[5],E=d[6],Z=d[7],it=d[8],M=d[9],s=d[10],e=d[11],t=d[12],u=d[13],c=d[14],l=d[15],C=K*k-gt*_,A=K*E-xt*_,Y=K*Z-p*_,I=gt*E-xt*k,g=gt*Z-p*k,n=xt*Z-p*E,v=it*u-M*t,m=it*c-s*t,r=it*l-e*t,i=M*c-s*u,o=M*l-e*u,P=s*l-e*c,F=C*P-A*o+Y*i+I*r-g*m+n*v;return F?(F=1/F,a[0]=(k*P-E*o+Z*i)*F,a[1]=(E*r-_*P-Z*m)*F,a[2]=(_*o-k*r+Z*v)*F,a[3]=(xt*o-gt*P-p*i)*F,a[4]=(K*P-xt*r+p*m)*F,a[5]=(gt*r-K*o-p*v)*F,a[6]=(u*n-c*g+l*I)*F,a[7]=(c*Y-t*n-l*A)*F,a[8]=(t*g-u*Y+l*C)*F,a):null}function W(a,d,K){return a[0]=2/d,a[1]=0,a[2]=0,a[3]=0,a[4]=-2/K,a[5]=0,a[6]=-1,a[7]=1,a[8]=1,a}function ut(a){return"mat3("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+", "+a[6]+", "+a[7]+", "+a[8]+")"}function yt(a){return Math.hypot(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8])}function Pt(a,d,K){return a[0]=d[0]+K[0],a[1]=d[1]+K[1],a[2]=d[2]+K[2],a[3]=d[3]+K[3],a[4]=d[4]+K[4],a[5]=d[5]+K[5],a[6]=d[6]+K[6],a[7]=d[7]+K[7],a[8]=d[8]+K[8],a}function Ht(a,d,K){return a[0]=d[0]-K[0],a[1]=d[1]-K[1],a[2]=d[2]-K[2],a[3]=d[3]-K[3],a[4]=d[4]-K[4],a[5]=d[5]-K[5],a[6]=d[6]-K[6],a[7]=d[7]-K[7],a[8]=d[8]-K[8],a}function Wt(a,d,K){return a[0]=d[0]*K,a[1]=d[1]*K,a[2]=d[2]*K,a[3]=d[3]*K,a[4]=d[4]*K,a[5]=d[5]*K,a[6]=d[6]*K,a[7]=d[7]*K,a[8]=d[8]*K,a}function Tt(a,d,K,gt){return a[0]=d[0]+K[0]*gt,a[1]=d[1]+K[1]*gt,a[2]=d[2]+K[2]*gt,a[3]=d[3]+K[3]*gt,a[4]=d[4]+K[4]*gt,a[5]=d[5]+K[5]*gt,a[6]=d[6]+K[6]*gt,a[7]=d[7]+K[7]*gt,a[8]=d[8]+K[8]*gt,a}function _t(a,d){return a[0]===d[0]&&a[1]===d[1]&&a[2]===d[2]&&a[3]===d[3]&&a[4]===d[4]&&a[5]===d[5]&&a[6]===d[6]&&a[7]===d[7]&&a[8]===d[8]}function Ut(a,d){var K=a[0],gt=a[1],xt=a[2],p=a[3],_=a[4],k=a[5],E=a[6],Z=a[7],it=a[8],M=d[0],s=d[1],e=d[2],t=d[3],u=d[4],c=d[5],l=d[6],C=d[7],A=d[8];return Math.abs(K-M)<=ft.EPSILON*Math.max(1,Math.abs(K),Math.abs(M))&&Math.abs(gt-s)<=ft.EPSILON*Math.max(1,Math.abs(gt),Math.abs(s))&&Math.abs(xt-e)<=ft.EPSILON*Math.max(1,Math.abs(xt),Math.abs(e))&&Math.abs(p-t)<=ft.EPSILON*Math.max(1,Math.abs(p),Math.abs(t))&&Math.abs(_-u)<=ft.EPSILON*Math.max(1,Math.abs(_),Math.abs(u))&&Math.abs(k-c)<=ft.EPSILON*Math.max(1,Math.abs(k),Math.abs(c))&&Math.abs(E-l)<=ft.EPSILON*Math.max(1,Math.abs(E),Math.abs(l))&&Math.abs(Z-C)<=ft.EPSILON*Math.max(1,Math.abs(Z),Math.abs(C))&&Math.abs(it-A)<=ft.EPSILON*Math.max(1,Math.abs(it),Math.abs(A))}var Yt=B,Ot=Ht}}]);
|