From 76e2f11d27179b1457324b888caf0049b7e316e5 Mon Sep 17 00:00:00 2001 From: walotta Date: Tue, 7 Nov 2023 01:26:54 +0000 Subject: [PATCH] Updates --- CNAME | 1 - asset-manifest.json | 16 ++++++++-------- index.html | 2 +- static/js/main.5edaa1d1.js | 3 --- static/js/main.dc044fa9.js | 3 +++ ....LICENSE.txt => main.dc044fa9.js.LICENSE.txt} | 0 ...main.5edaa1d1.js.map => main.dc044fa9.js.map} | 2 +- 7 files changed, 13 insertions(+), 14 deletions(-) delete mode 100644 CNAME delete mode 100644 static/js/main.5edaa1d1.js create mode 100644 static/js/main.dc044fa9.js rename static/js/{main.5edaa1d1.js.LICENSE.txt => main.dc044fa9.js.LICENSE.txt} (100%) rename static/js/{main.5edaa1d1.js.map => main.dc044fa9.js.map} (51%) diff --git a/CNAME b/CNAME deleted file mode 100644 index ffdc122..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -llm-speedtest.colearn.cloud \ No newline at end of file diff --git a/asset-manifest.json b/asset-manifest.json index 9aaa4aa..60661e2 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,15 +1,15 @@ { "files": { - "main.css": "/fleece-benchmark/static/css/main.e6c13ad2.css", - "main.js": "/fleece-benchmark/static/js/main.5edaa1d1.js", - "static/js/787.82ea8e80.chunk.js": "/fleece-benchmark/static/js/787.82ea8e80.chunk.js", - "index.html": "/fleece-benchmark/index.html", - "main.e6c13ad2.css.map": "/fleece-benchmark/static/css/main.e6c13ad2.css.map", - "main.5edaa1d1.js.map": "/fleece-benchmark/static/js/main.5edaa1d1.js.map", - "787.82ea8e80.chunk.js.map": "/fleece-benchmark/static/js/787.82ea8e80.chunk.js.map" + "main.css": "/static/css/main.e6c13ad2.css", + "main.js": "/static/js/main.dc044fa9.js", + "static/js/787.82ea8e80.chunk.js": "/static/js/787.82ea8e80.chunk.js", + "index.html": "/index.html", + "main.e6c13ad2.css.map": "/static/css/main.e6c13ad2.css.map", + "main.dc044fa9.js.map": "/static/js/main.dc044fa9.js.map", + "787.82ea8e80.chunk.js.map": "/static/js/787.82ea8e80.chunk.js.map" }, "entrypoints": [ "static/css/main.e6c13ad2.css", - "static/js/main.5edaa1d1.js" + "static/js/main.dc044fa9.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index b0785fe..77dcfcc 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -fleece benchmark
\ No newline at end of file +fleece benchmark
\ No newline at end of file diff --git a/static/js/main.5edaa1d1.js b/static/js/main.5edaa1d1.js deleted file mode 100644 index 350e6ce..0000000 --- a/static/js/main.5edaa1d1.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see main.5edaa1d1.js.LICENSE.txt */ -!function(){var t={2469:function(t,e){"use strict";var n=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r=0&&e._call.call(null,t),e=e._next;--u}()}finally{u=0,function(){var t,e,n=r,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);o=t,E(i)}(),g=0}}function k(){var t=m.now(),e=t-h;e>p&&(v-=e,h=t)}function E(t){u||(d&&(d=clearTimeout(d)),t-g>24?(t<1/0&&(d=setTimeout(C,t-m.now()-v)),f&&(f=clearInterval(f))):(f||(h=m.now(),f=setInterval(k,p)),u=1,y(C)))}function M(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function O(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function I(){}w.prototype=S.prototype={constructor:w,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?b():+n)+(null==e?0:+e),this._next||o===this||(o?o._next=this:r=this,o=this),this._call=t,this._time=n,E()},stop:function(){this._call&&(this._call=null,this._time=1/0,E())}};var P=.7,T=1/P,A="\\s*([+-]?\\d+)\\s*",F="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",R="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",L=/^#([0-9a-f]{3,8})$/,B=new RegExp("^rgb\\(".concat(A,",").concat(A,",").concat(A,"\\)$")),N=new RegExp("^rgb\\(".concat(R,",").concat(R,",").concat(R,"\\)$")),D=new RegExp("^rgba\\(".concat(A,",").concat(A,",").concat(A,",").concat(F,"\\)$")),j=new RegExp("^rgba\\(".concat(R,",").concat(R,",").concat(R,",").concat(F,"\\)$")),z=new RegExp("^hsl\\(".concat(F,",").concat(R,",").concat(R,"\\)$")),_=new RegExp("^hsla\\(".concat(F,",").concat(R,",").concat(R,",").concat(F,"\\)$")),H={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};function W(){return this.rgb().formatHex()}function V(){return this.rgb().formatRgb()}function U(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=L.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?X(e):3===n?new q(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?G(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?G(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=B.exec(t))?new q(e[1],e[2],e[3],1):(e=N.exec(t))?new q(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=D.exec(t))?G(e[1],e[2],e[3],e[4]):(e=j.exec(t))?G(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=z.exec(t))?tt(e[1],e[2]/100,e[3]/100,1):(e=_.exec(t))?tt(e[1],e[2]/100,e[3]/100,e[4]):H.hasOwnProperty(t)?X(H[t]):"transparent"===t?new q(NaN,NaN,NaN,0):null}function X(t){return new q(t>>16&255,t>>8&255,255&t,1)}function G(t,e,n,r){return r<=0&&(t=e=n=NaN),new q(t,e,n,r)}function Y(t,e,n,r){return 1===arguments.length?((o=t)instanceof I||(o=U(o)),o?new q((o=o.rgb()).r,o.g,o.b,o.opacity):new q):new q(t,e,n,null==r?1:r);var o}function q(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Z(){return"#".concat(Q(this.r)).concat(Q(this.g)).concat(Q(this.b))}function $(){var t=K(this.opacity);return"".concat(1===t?"rgb(":"rgba(").concat(J(this.r),", ").concat(J(this.g),", ").concat(J(this.b)).concat(1===t?")":", ".concat(t,")"))}function K(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function J(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Q(t){return((t=J(t))<16?"0":"")+t.toString(16)}function tt(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new nt(t,e,n,r)}function et(t){if(t instanceof nt)return new nt(t.h,t.s,t.l,t.opacity);if(t instanceof I||(t=U(t)),!t)return new nt;if(t instanceof nt)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),a=NaN,l=i-o,c=(i+o)/2;return l?(a=e===i?(n-r)/l+6*(n0&&c<1?0:a,new nt(a,l,c,t.opacity)}function nt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function rt(t){return(t=(t||0)%360)<0?t+360:t}function ot(t){return Math.max(0,Math.min(1,t||0))}function it(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function at(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}M(I,U,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:W,formatHex:W,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return et(this).formatHsl()},formatRgb:V,toString:V}),M(q,Y,O(I,{brighter:function(t){return t=null==t?T:Math.pow(T,t),new q(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?P:Math.pow(P,t),new q(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new q(J(this.r),J(this.g),J(this.b),K(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:Z,formatHex:Z,formatHex8:function(){return"#".concat(Q(this.r)).concat(Q(this.g)).concat(Q(this.b)).concat(Q(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:$,toString:$})),M(nt,(function(t,e,n,r){return 1===arguments.length?et(t):new nt(t,e,n,null==r?1:r)}),O(I,{brighter:function(t){return t=null==t?T:Math.pow(T,t),new nt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?P:Math.pow(P,t),new nt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new q(it(t>=240?t-240:t+120,o,r),it(t,o,r),it(t<120?t+240:t-120,o,r),this.opacity)},clamp:function(){return new nt(rt(this.h),ot(this.s),ot(this.l),K(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 t=K(this.opacity);return"".concat(1===t?"hsl(":"hsla(").concat(rt(this.h),", ").concat(100*ot(this.s),"%, ").concat(100*ot(this.l),"%").concat(1===t?")":", ".concat(t,")"))}}));var lt=function(t){return function(){return t}};function ct(t,e){return function(n){return t+n*e}}function st(t){return 1===(t=+t)?ut:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):lt(isNaN(e)?n:e)}}function ut(t,e){var n=e-t;return n?ct(t,n):lt(isNaN(t)?e:t)}var dt=function t(e){var n=st(e);function r(t,e){var r=n((t=Y(t)).r,(e=Y(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=ut(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function ft(t){return function(e){var n,r,o=e.length,i=new Array(o),a=new Array(o),l=new Array(o);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,l=ri&&(o=e.slice(i,o),l[a]?l[a]+=o:l[++a]=o),(n=n[0])===(r=r[0])?l[a]?l[a]+=r:l[++a]=r:(l[++a]=null,c.push({i:a,x:mt(n,r)})),i=xt.lastIndex;return if.length?(d=kt.parsePathString(i[u]),f=kt.parsePathString(o[u]),f=kt.fillPathByDiff(f,d),f=kt.formatPath(f,d),e.fromAttrs.path=f,e.toAttrs.path=d):e.pathFormatted||(d=kt.parsePathString(i[u]),f=kt.parsePathString(o[u]),f=kt.formatPath(f,d),e.fromAttrs.path=f,e.toAttrs.path=d,e.pathFormatted=!0),r[u]=[];for(var p=0;p0){for(var i=r.animators.length-1;i>=0;i--)if((t=r.animators[i]).destroyed)r.removeAnimator(i);else{if(!t.isAnimatePaused())for(var a=(e=t.get("animations")).length-1;a>=0;a--)n=e[a],It(t,n,o)&&(e.splice(a,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(i)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),Tt=Pt,At=n(9168),Ft=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Rt(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function Lt(t,e,n){if(n.bubbles){var r=void 0,o=!1;if("mouseenter"===e?(r=n.fromShape,o=!0):"mouseleave"===e&&(o=!0,r=n.toShape),t.isCanvas()&&o)return;if(r&&(0,c.UY)(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var Bt=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");(0,c.S6)(Ft,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");(0,c.S6)(Ft,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,r,o,i){var a=new At.Z(t,e);return a.fromShape=o,a.toShape=i,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(r),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),o=this["_on"+t],i=!1;if(o)o.call(this,n,r,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(i=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(i||(this.currentShape=r),r&&!r.get("destroyed")){var l=this.canvas;l.get("el").style.cursor=r.attr("cursor")||l.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var o=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(o.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,o){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),o||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),o&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,o=this.currentShape,i=this.draggingShape;if(this.dragging)i&&this._emitDragoverEvents(n,t,o,e,!1),this._emitEvent("drag",n,t,i);else{var a=this.mousedownPoint;if(a){var l=this.mousedownShape,c=n.timeStamp-this.mousedownTimeStamp,s=a.clientX-t.clientX,u=a.clientY-t.clientY;c>120||s*s+u*u>40?l&&l.get("draggable")?((i=this.mousedownShape).set("capture",!1),this.draggingShape=i,this.dragging=!0,this._emitEvent("dragstart",n,t,i),this.mousedownShape=null,this.mousedownPoint=null):!l&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,o,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,o,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,o,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,o,i){var a=this._getEventObj(t,e,n,r,o,i);if(r){a.shape=r,Rt(r,t,a);for(var l=r.getParent();l;)l.emitDelegation(t,a),a.propagationStopped||Lt(l,t,a),a.propagationPath.push(l),l=l.getParent()}else{Rt(this.canvas,t,a)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),Nt=Bt,Dt=(0,a.qY)(),jt=Dt&&"firefox"===Dt.name,zt=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return(0,i.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");(0,c.HD)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new Nt({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new Tt(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");c.jU&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");c.jU&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(jt&&!(0,c.kK)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!(0,c.kK)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(l.Z),_t=zt},6277:function(t,e,n){"use strict";var r=n(5971),o=n(5597),i=n(2489),a={},l="_INDEX";function c(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){c(t,e)}))}}function s(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){s(t,e)}))}}var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,o=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return o.length>0?(0,i.S6)(o,(function(o){var i=o.getBBox(),a=i.minX,l=i.maxX,c=i.minY,s=i.maxY;ae&&(e=l),cr&&(r=s)})):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,o=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return o.length>0?(0,i.S6)(o,(function(o){var i=o.getCanvasBBox(),a=i.minX,l=i.maxX,c=i.minY,s=i.maxY;ae&&(e=l),cr&&(r=s)})):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var o=this.getTotalMatrix();this._applyChildrenMarix(o)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();(0,i.S6)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;a--){var l=t[a];if((0,i.pP)(l)&&(l.isGroup()?o=l.getShape(e,n,r):l.isHit(e,n)&&(o=l)),o)break}return o},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),o=t.getParent();o&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),(0,i.As)(t.getChildren(),e)}(o,t,!1),t.set("parent",this),e&&c(t,e),r&&s(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();(0,i.S6)(e,(function(t,e){return t[l]=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e[l]-n[l]:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return(0,i.S6)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return(0,i.S6)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(o.Z);e.Z=u},5597:function(t,e,n){"use strict";var r=n(5971),o=n(6275),i=n(6403),a=n(2489),l=n(5313),c=n(9753),s=i.vs,u="matrix",d=["zIndex","capture","visible","type"],f=["repeat"];function p(t,e){var n={},r=e.attrs;for(var o in t)n[o]=r[o];return n}var h=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return(0,o.CD)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return(0,r.ZT)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n0?r=function(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,a=Object.prototype.hasOwnProperty;return(0,o.S6)(t,(function(t){n+rt.delay&&(0,o.S6)(e.toAttrs,(function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}(r,w):n.addAnimator(this),r.push(w),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");(0,o.S6)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return(0,o.S6)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return(0,o.S6)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,i=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var l=function(t){var l=i[t],s=l.get("name");if(s){if((l.isGroup()||l.isCanvas&&l.isCanvas())&&n&&(0,a.UY)(l,n))return"break";(0,o.kJ)(s)?(0,o.S6)(s,(function(t){r.emitDelegateEvent(l,t,e)})):c.emitDelegateEvent(l,s,e)}},c=this,s=0;s=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,o=t.maxX,a=t.maxY;if(e){var l=(0,i.rG)(e,[t.minX,t.minY]),c=(0,i.rG)(e,[t.maxX,t.minY]),s=(0,i.rG)(e,[t.minX,t.maxY]),u=(0,i.rG)(e,[t.maxX,t.maxY]);n=Math.min(l[0],c[0],s[0],u[0]),o=Math.max(l[0],c[0],s[0],u[0]),r=Math.min(l[1],c[1],s[1],u[1]),a=Math.max(l[1],c[1],s[1],u[1])}var d=this.attrs;if(d.shadowColor){var f=d.shadowBlur,p=void 0===f?0:f,h=d.shadowOffsetX,g=void 0===h?0:h,v=d.shadowOffsetY,m=void 0===v?0:v,y=n-p+g,b=o+p+g,x=r-p+m,w=a+p+m;n=Math.min(n,y),o=Math.max(o,b),r=Math.min(r,x),a=Math.max(a,w)}return{x:n,y:r,minX:n,minY:r,maxX:o,maxY:a,width:o-n,height:a-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),o=[t,e,1],i=(o=this.invertFromMatrix(o))[0],a=o[1],l=this._isInBBox(i,a);if(this.isOnlyHitBox())return l;if(l&&!this.isClipped(i,a)){if(this.isInShape(i,a))return!0;if(n&&n.isHit(i,a))return!0;if(r&&r.isHit(i,a))return!0}return!1},e}(o.Z);e.Z=a},3169:function(t,e,n){"use strict";n.d(e,{_:function(){return q},C:function(){return Z}});var r={};function o(t){return+t}function i(t){return t*t}function a(t){return t*(2-t)}function l(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function c(t){return t*t*t}function s(t){return--t*t*t+1}function u(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.r(r),n.d(r,{easeBack:function(){return W},easeBackIn:function(){return _},easeBackInOut:function(){return W},easeBackOut:function(){return H},easeBounce:function(){return D},easeBounceIn:function(){return N},easeBounceInOut:function(){return j},easeBounceOut:function(){return D},easeCircle:function(){return E},easeCircleIn:function(){return C},easeCircleInOut:function(){return E},easeCircleOut:function(){return k},easeCubic:function(){return u},easeCubicIn:function(){return c},easeCubicInOut:function(){return u},easeCubicOut:function(){return s},easeElastic:function(){return X},easeElasticIn:function(){return U},easeElasticInOut:function(){return G},easeElasticOut:function(){return X},easeExp:function(){return S},easeExpIn:function(){return x},easeExpInOut:function(){return S},easeExpOut:function(){return w},easeLinear:function(){return o},easePoly:function(){return p},easePolyIn:function(){return d},easePolyInOut:function(){return p},easePolyOut:function(){return f},easeQuad:function(){return l},easeQuadIn:function(){return i},easeQuadInOut:function(){return l},easeQuadOut:function(){return a},easeSin:function(){return y},easeSinIn:function(){return v},easeSinInOut:function(){return y},easeSinOut:function(){return m}});var d=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),f=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),p=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),h=Math.PI,g=h/2;function v(t){return 1===+t?1:1-Math.cos(t*g)}function m(t){return Math.sin(t*g)}function y(t){return(1-Math.cos(h*t))/2}function b(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function x(t){return b(1-+t)}function w(t){return 1-b(t)}function S(t){return((t*=2)<=1?b(1-t):2-b(t-1))/2}function C(t){return 1-Math.sqrt(1-t*t)}function k(t){return Math.sqrt(1- --t*t)}function E(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var M=4/11,O=6/11,I=8/11,P=3/4,T=9/11,A=10/11,F=15/16,R=21/22,L=63/64,B=1/M/M;function N(t){return 1-D(1-t)}function D(t){return(t=+t)1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}(0,f.S6)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0};var v="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029";new RegExp("([a-z])["+v+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+v+"]*,?["+v+"]*)+)","ig"),new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+v+"]*,?["+v+"]*","ig");Math.PI;function m(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function y(t,e){return m(t)*m(e)?(t[0]*e[0]+t[1]*e[1])/(m(t)*m(e)):1}function b(t,e){return(t[0]*e[1]1&&(n*=Math.sqrt(h),r*=Math.sqrt(h));var g=n*n*(p*p)+r*r*(d*d),v=g?Math.sqrt((n*n*(r*r)-g)/g):1;i===a&&(v*=-1),isNaN(v)&&(v=0);var m=r?v*n*p/r:0,w=n?v*-r*d/n:0,S=(l+s)/2+Math.cos(o)*m-Math.sin(o)*w,C=(c+u)/2+Math.sin(o)*m+Math.cos(o)*w,k=[(d-m)/n,(p-w)/r],E=[(-1*d-m)/n,(-1*p-w)/r],M=b([1,0],k),O=b(k,E);return y(k,E)<=-1&&(O=Math.PI),y(k,E)>=1&&(O=0),0===a&&O>0&&(O-=2*Math.PI),1===a&&O<0&&(O+=2*Math.PI),{cx:S,cy:C,rx:x(t,[s,u])?0:n,ry:x(t,[s,u])?0:r,startAngle:M,endAngle:M+O,xRotation:o,arcFlag:i,sweepFlag:a}}function S(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function C(t,e){var n=t.prePoint,r=t.currentPoint,o=t.nextPoint,i=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),a=Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2),l=Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2),c=Math.acos((i+a-l)/(2*Math.sqrt(i)*Math.sqrt(a)));if(!c||0===Math.sin(c)||(0,f.vQ)(c,0))return{xExtra:0,yExtra:0};var s=Math.abs(Math.atan2(o[1]-r[1],o[0]-r[0])),u=Math.abs(Math.atan2(o[0]-r[0],o[1]-r[1]));return s=s>Math.PI/2?Math.PI-s:s,u=u>Math.PI/2?Math.PI-u:u,{xExtra:Math.cos(c/2-s)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(u-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0}}o("rect",a),o("image",a),o("circle",l),o("marker",l),o("polyline",(function(t){for(var e=t.attr().points,n=[],r=[],o=0;o2&&(n.push([o].concat(l.splice(0,2))),c="l",o="m"===o?"l":"L"),"o"===c&&1===l.length&&n.push([o,l[0]]),"r"===c)n.push([o].concat(l));else for(;l.length>=e[c]&&(n.push([o].concat(l.splice(0,e[c]))),e[c]););return t})),n},c=function(t,e){for(var n=[],r=0,o=t.length;o-2*!e>r;r+=2){var i=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?o-4===r?i[3]={x:+t[0],y:+t[1]}:o-2===r&&(i[2]={x:+t[0],y:+t[1]},i[3]={x:+t[2],y:+t[3]}):i[0]={x:+t[o-2],y:+t[o-1]}:o-4===r?i[3]=i[2]:r||(i[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return n},s=function(t,e,n,r,o){var i=[];if(null===o&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==o){var a=Math.PI/180,l=t+n*Math.cos(-r*a),c=t+n*Math.cos(-o*a);i=[["M",l,e+n*Math.sin(-r*a)],["A",n,n,0,+(o-r>180),0,c,e+n*Math.sin(-o*a)]]}else i=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return i},u=function(t){if(!(t=l(t))||!t.length)return[["M",0,0]];var e,n,r=[],o=0,i=0,a=0,u=0,d=0;"M"===t[0][0]&&(a=o=+t[0][1],u=i=+t[0][2],d++,r[0]=["M",o,i]);for(var f=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,h=void 0,g=d,v=t.length;g1&&(r*=S=Math.sqrt(S),o*=S);var C=r*r,k=o*o,E=(a===l?-1:1)*Math.sqrt(Math.abs((C*k-C*w*w-k*x*x)/(C*w*w+k*x*x)));h=E*r*w/o+(e+c)/2,g=E*-o*x/r+(n+s)/2,f=Math.asin(((n-g)/o).toFixed(9)),p=Math.asin(((s-g)/o).toFixed(9)),f=ep&&(f-=2*Math.PI),!l&&p>f&&(p-=2*Math.PI)}var M=p-f;if(Math.abs(M)>v){var O=p,I=c,P=s;p=f+v*(l&&p>f?1:-1),y=t(c=h+r*Math.cos(p),s=g+o*Math.sin(p),r,o,i,0,l,I,P,[p,O,h,g])}M=p-f;var T=Math.cos(f),A=Math.sin(f),F=Math.cos(p),R=Math.sin(p),L=Math.tan(M/4),B=4/3*r*L,N=4/3*o*L,D=[e,n],j=[e+B*A,n-N*T],z=[c+B*R,s-N*F],_=[c,s];if(j[0]=2*D[0]-j[0],j[1]=2*D[1]-j[1],u)return[j,z,_].concat(y);for(var H=[],W=0,V=(y=[j,z,_].concat(y).join().split(",")).length;W7){t[e].shift();for(var i=t[e];i.length;)l[e]="A",o&&(c[e]="A"),t.splice(e++,0,["C"].concat(i.splice(0,6)));t.splice(e,1),n=Math.max(r.length,o&&o.length||0)}},m=function(t,e,i,a,l){t&&e&&"M"===t[l][0]&&"M"!==e[l][0]&&(e.splice(l,0,["M",a.x,a.y]),i.bx=0,i.by=0,i.x=t[l][1],i.y=t[l][2],n=Math.max(r.length,o&&o.length||0))};n=Math.max(r.length,o&&o.length||0);for(var y=0;y1?1:c<0?0:c)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var h=s*u[p]+s,g=m(h,t,n,o,a),v=m(h,e,r,i,l),y=g*g+v*v;f+=d[p]*Math.sqrt(y)}return s*f},b=function(t,e,n,r,o,i,a,l){for(var c,s,u,d,f=[],p=[[],[]],h=0;h<2;++h)if(0===h?(s=6*t-12*n+6*o,c=-3*t+9*n-9*o+3*a,u=3*n-3*t):(s=6*e-12*r+6*i,c=-3*e+9*r-9*i+3*l,u=3*r-3*e),Math.abs(c)<1e-12){if(Math.abs(s)<1e-12)continue;(d=-u/s)>0&&d<1&&f.push(d)}else{var g=s*s-4*u*c,v=Math.sqrt(g);if(!(g<0)){var m=(-s+v)/(2*c);m>0&&m<1&&f.push(m);var y=(-s-v)/(2*c);y>0&&y<1&&f.push(y)}}for(var b,x=f.length,w=x;x--;)b=1-(d=f[x]),p[0][x]=b*b*b*t+3*b*b*d*n+3*b*d*d*o+d*d*d*a,p[1][x]=b*b*b*e+3*b*b*d*r+3*b*d*d*i+d*d*d*l;return p[0][w]=t,p[1][w]=e,p[0][w+1]=a,p[1][w+1]=l,p[0].length=p[1].length=w+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},x=function(t,e,n,r,o,i,a,l){if(!(Math.max(t,n)Math.max(o,a)||Math.max(e,r)Math.max(i,l))){var c=(t-n)*(i-l)-(e-r)*(o-a);if(c){var s=((t*r-e*n)*(o-a)-(t-n)*(o*l-i*a))/c,u=((t*r-e*n)*(i-l)-(e-r)*(o*l-i*a))/c,d=+s.toFixed(2),f=+u.toFixed(2);if(!(d<+Math.min(t,n).toFixed(2)||d>+Math.max(t,n).toFixed(2)||d<+Math.min(o,a).toFixed(2)||d>+Math.max(o,a).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(i,l).toFixed(2)||f>+Math.max(i,l).toFixed(2)))return{x:s,y:u}}}},w=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},S=function(t,e,n,r,o){if(o)return[["M",+t+ +o,e],["l",n-2*o,0],["a",o,o,0,0,1,o,o],["l",0,r-2*o],["a",o,o,0,0,1,-o,o],["l",2*o-n,0],["a",o,o,0,0,1,-o,-o],["l",0,2*o-r],["a",o,o,0,0,1,o,-o],["z"]];var i=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return i.parsePathArray=v,i},C=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:S(t,e,n,r),vb:[t,e,n,r].join(" ")}},k=function(t,e,n,o,i,a,l,c){(0,r.kJ)(t)||(t=[t,e,n,o,i,a,l,c]);var s=b.apply(null,t);return C(s.min.x,s.min.y,s.max.x-s.min.x,s.max.y-s.min.y)},E=function(t,e,n,r,o,i,a,l,c){var s=1-c,u=Math.pow(s,3),d=Math.pow(s,2),f=c*c,p=f*c,h=t+2*c*(n-t)+f*(o-2*n+t),g=e+2*c*(r-e)+f*(i-2*r+e),v=n+2*c*(o-n)+f*(a-2*o+n),m=r+2*c*(i-r)+f*(l-2*i+r);return{x:u*t+3*d*c*n+3*s*c*c*o+p*a,y:u*e+3*d*c*r+3*s*c*c*i+p*l,m:{x:h,y:g},n:{x:v,y:m},start:{x:s*t+c*n,y:s*e+c*r},end:{x:s*o+c*a,y:s*i+c*l},alpha:90-180*Math.atan2(h-v,g-m)/Math.PI}},M=function(t,e,n){if(!function(t,e){return t=C(t),e=C(e),w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}(k(t),k(e)))return n?0:[];for(var r=~~(y.apply(0,t)/8),o=~~(y.apply(0,e)/8),i=[],a=[],l={},c=n?0:[],s=0;s=0&&S<=1&&M>=0&&M<=1&&(n?c+=1:c.push({x:b.x,y:b.y,t1:S,t2:M}))}}return c},O=function(t,e){return function(t,e,n){var r,o,i,a,l,c,s,u,d,f;t=h(t),e=h(e);for(var p=n?0:[],g=0,v=t.length;g=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e.concat(t[t.length-1])}))}(t,e,n));else{var o=[].concat(t);"M"===o[0]&&(o[0]="L");for(var i=0;i<=n-1;i++)r.push(o)}return r},T=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,o=n/r,i=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a=0;c--)a=i[c].index,"add"===i[c].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var d=o-(r=t.length);if(r0)){t[r]=e[r];break}n=L(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=L(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=L(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},9341:function(t,e,n){"use strict";n.d(e,{$O:function(){return l},FE:function(){return i},mY:function(){return a}});var r=n(2489),o=n(3841);function i(t,e,n){var o=1;if((0,r.HD)(t)&&(o=t.split("\n").length),o>1){var i=function(t,e){return e?e-t:.14*t}(e,n);return e*o+i*(o-1)}return e}function a(t,e){var n=(0,o.L)(),i=0;if((0,r.kK)(t)||""===t)return i;if(n.save(),n.font=e,(0,r.HD)(t)&&t.includes("\n")){var a=t.split("\n");(0,r.S6)(a,(function(t){var e=n.measureText(t).width;i(n-t)*(n-t)+(r-e)*(r-e)?i(n,r,o,a):this.pointToLine(t,e,n,r,o,a)},pointToLine:function(t,e,n,r,o,i){var a=[n-t,r-e];if(u.I6(a,[0,0]))return Math.sqrt((o-t)*(o-t)+(i-e)*(i-e));var l=[-a[1],a[0]];u.Fv(l,l);var c=[o-t,i-e];return Math.abs(u.AK(c,l))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function f(t,e,n,r,o,a){var l,c=1/0,s=[n,r],u=20;a&&a>200&&(u=a/10);for(var d=1/u,f=d/10,p=0;p<=u;p++){var h=p*d,g=[o.apply(null,t.concat([h])),o.apply(null,e.concat([h]))];(b=i(s[0],s[1],g[0],g[1]))=0&&b=0?[o]:[]}function g(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function v(t,e,n,r,o,i,a){var l=p(t,n,o,a),c=p(e,r,i,a),s=d.pointAt(t,e,n,r,a),u=d.pointAt(n,r,o,i,a);return[[t,e,s.x,s.y,l,c],[l,c,u.x,u.y,o,i]]}function m(t,e,n,r,o,a,l){if(0===l)return(i(t,e,n,r)+i(n,r,o,a)+i(t,e,o,a))/2;var c=v(t,e,n,r,o,a,.5),s=c[0],u=c[1];return s.push(l-1),u.push(l-1),m.apply(null,s)+m.apply(null,u)}var y={box:function(t,e,n,r,o,i){var a=h(t,n,o)[0],c=h(e,r,i)[0],s=[t,o],u=[e,i];return void 0!==a&&s.push(p(t,n,o,a)),void 0!==c&&u.push(p(e,r,i,c)),l(s,u)},length:function(t,e,n,r,o,i){return m(t,e,n,r,o,i,3)},nearestPoint:function(t,e,n,r,o,i,a,l){return f([t,n,o],[e,r,i],a,l,p)},pointDistance:function(t,e,n,r,o,a,l,c){var s=this.nearestPoint(t,e,n,r,o,a,l,c);return i(s.x,s.y,l,c)},interpolationAt:p,pointAt:function(t,e,n,r,o,i,a){return{x:p(t,n,o,a),y:p(e,r,i,a)}},divide:function(t,e,n,r,o,i,a){return v(t,e,n,r,o,i,a)},tangentAngle:function(t,e,n,r,o,i,a){var l=g(t,n,o,a),c=g(e,r,i,a);return s(Math.atan2(c,l))}};function b(t,e,n,r,o){var i=1-o;return i*i*i*t+3*e*o*i*i+3*n*o*o*i+r*o*o*o}function x(t,e,n,r,o){var i=1-o;return 3*(i*i*(e-t)+2*i*o*(n-e)+o*o*(r-n))}function w(t,e,n,r){var o,i,l,c=-3*t+9*e-9*n+3*r,s=6*t-12*e+6*n,u=3*e-3*t,d=[];if(a(c,0))a(s,0)||(o=-u/s)>=0&&o<=1&&d.push(o);else{var f=s*s-4*c*u;a(f,0)?d.push(-s/(2*c)):f>0&&(i=(-s-(l=Math.sqrt(f)))/(2*c),(o=(-s+l)/(2*c))>=0&&o<=1&&d.push(o),i>=0&&i<=1&&d.push(i))}return d}function S(t,e,n,r,o,i,a,l,c){var s=b(t,n,o,a,c),u=b(e,r,i,l,c),f=d.pointAt(t,e,n,r,c),p=d.pointAt(n,r,o,i,c),h=d.pointAt(o,i,a,l,c),g=d.pointAt(f.x,f.y,p.x,p.y,c),v=d.pointAt(p.x,p.y,h.x,h.y,c);return[[t,e,f.x,f.y,g.x,g.y,s,u],[s,u,v.x,v.y,h.x,h.y,a,l]]}function C(t,e,n,r,o,a,l,c,s){if(0===s)return function(t,e){for(var n=0,r=t.length,o=0;o0?n:-1*n}var M=function(t,e,n,r,o,i){var a=n,l=r;if(0===a||0===l)return{x:t,y:e};for(var c,s,u=o-t,d=i-e,f=Math.abs(u),p=Math.abs(d),h=a*a,g=l*l,v=Math.PI/4,m=0;m<4;m++){c=a*Math.cos(v),s=l*Math.sin(v);var y=(h-g)*Math.pow(Math.cos(v),3)/a,b=(g-h)*Math.pow(Math.sin(v),3)/l,x=c-y,w=s-b,S=f-y,C=p-b,k=Math.hypot(w,x),M=Math.hypot(C,S);v+=k*Math.asin((x*C-w*S)/(k*M))/Math.sqrt(h+g-c*c-s*s),v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+E(c,u),y:e+E(s,d)}};function O(t,e,n,r,o,i){return n*Math.cos(o)*Math.cos(i)-r*Math.sin(o)*Math.sin(i)+t}function I(t,e,n,r,o,i){return n*Math.sin(o)*Math.cos(i)+r*Math.cos(o)*Math.sin(i)+e}function P(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function T(t,e,n){var r=Math.cos(n),o=Math.sin(n);return[t*r-e*o,t*o+e*r]}var A={box:function(t,e,n,r,o,i,a){for(var l=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,o),c=1/0,s=-1/0,u=[i,a],d=2*-Math.PI;d<=2*Math.PI;d+=Math.PI){var f=l+d;is&&(s=p)}var h=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,o),g=1/0,v=-1/0,m=[i,a];for(d=2*-Math.PI;d<=2*Math.PI;d+=Math.PI){var y=h+d;iv&&(v=b)}return{x:c,y:g,width:s-c,height:v-g}},length:function(t,e,n,r,o,i,a){},nearestPoint:function(t,e,n,r,o,i,a,l,c){var s=T(l-t,c-e,-o),u=s[0],d=s[1],f=M(0,0,n,r,u,d),p=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,f.x,f.y);pa&&(f=P(n,r,a));var h=T(f.x,f.y,o);return{x:h[0]+t,y:h[1]+e}},pointDistance:function(t,e,n,r,o,a,l,c,s){var u=this.nearestPoint(t,e,n,r,c,s);return i(u.x,u.y,c,s)},pointAt:function(t,e,n,r,o,i,a,l){var c=(a-i)*l+i;return{x:O(t,0,n,r,o,c),y:I(0,e,n,r,o,c)}},tangentAngle:function(t,e,n,r,o,i,a,l){var c=(a-i)*l+i,u=function(t,e,n,r,o,i,a,l){return-1*n*Math.cos(o)*Math.sin(l)-r*Math.sin(o)*Math.cos(l)}(0,0,n,r,o,0,0,c),d=function(t,e,n,r,o,i,a,l){return-1*n*Math.sin(o)*Math.sin(l)+r*Math.cos(o)*Math.cos(l)}(0,0,n,r,o,0,0,c);return s(Math.atan2(d,u))}};function F(t){for(var e=0,n=[],r=0;r1||e<0||t.length<2)return null;var n=F(t),r=n.segments,o=n.totalLength;if(0===o)return{x:t[0][0],y:t[0][1]};for(var i=0,a=null,l=0;l=i&&e<=i+f){var p=(e-i)/f;a=d.pointAt(s[0],s[1],u[0],u[1],p);break}i+=f}return a}function B(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=F(t),r=n.segments,o=n.totalLength,i=0,a=0,l=0;l=i&&e<=i+d){a=Math.atan2(u[1]-s[1],u[0]-s[0]);break}i+=d}return a}function N(t,e,n){for(var r=1/0,o=0;o=0;return n?i?2*Math.PI-r:r:i?r:2*Math.PI-r}},6275:function(t,e,n){"use strict";n.d(e,{Ct:function(){return Xt},f0:function(){return Pt},uZ:function(){return W},VS:function(){return gt},d9:function(){return vt},FX:function(){return o},Ds:function(){return mt},b$:function(){return xt},e5:function(){return a},S6:function(){return p},yW:function(){return N},hX:function(){return i},sE:function(){return y},cx:function(){return b},Wx:function(){return x},ri:function(){return V},xH:function(){return w},U5:function(){return J},U2:function(){return Tt},Lo:function(){return Ut},rx:function(){return k},ru:function(){return H},vM:function(){return z},Ms:function(){return _},wH:function(){return Q},YM:function(){return L},q9:function(){return o},cq:function(){return wt},kJ:function(){return d},jn:function(){return lt},J_:function(){return ct},kK:function(){return pt},xb:function(){return Ct},Xy:function(){return kt},mf:function(){return s},BD:function(){return g},UM:function(){return u},Ft:function(){return st},hj:function(){return U},vQ:function(){return G},Kn:function(){return f},PO:function(){return m},HD:function(){return T},P9:function(){return c},o8:function(){return ft},XP:function(){return h},Z$:function(){return B},vl:function(){return nt},UI:function(){return Et},Q8:function(){return Ot},Fp:function(){return S},UT:function(){return Y},HP:function(){return yt},VV:function(){return C},F:function(){return q},CD:function(){return Pt},wQ:function(){return Z},ZT:function(){return zt},CE:function(){return Lt},ei:function(){return Rt},u4:function(){return I},Od:function(){return P},U7:function(){return ht},t8:function(){return At},dp:function(){return _t},G:function(){return D},MR:function(){return A},ng:function(){return rt},P2:function(){return Bt},qo:function(){return Nt},c$:function(){return K},BB:function(){return et},jj:function(){return F},EL:function(){return jt},jC:function(){return ot},VO:function(){return tt},I:function(){return R}});var r=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)},o=function(t,e){return!!r(t)&&t.indexOf(e)>-1},i=function(t,e){if(!r(t))return t;for(var n=[],o=0;oe[o])return 1;if(t[o]n?n:t},V=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var o=n.substr(r+1).length;return o>20&&(o=20),parseFloat(t.toFixed(o))},U=function(t){return c(t,"Number")},X=(Number.isInteger&&Number.isInteger,1e-5);function G(t,e,n){return void 0===n&&(n=X),Math.abs(t-e)r&&(n=i,r=a)}return n}},q=function(t,e){if(d(t)){for(var n,r=1/0,o=0;oe?(r&&(clearTimeout(r),r=null),l=s,a=t.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(c,u)),a};return s.cancel=function(){clearTimeout(r),l=0,r=o=i=null},s},Nt=function(t){return r(t)?Array.prototype.slice.call(t):[]},Dt={},jt=function(t){return Dt[t=t||"g"]?Dt[t]+=1:Dt[t]=1,t+Dt[t]},zt=function(){};function _t(t){return u(t)?0:r(t)?t.length:Object.keys(t).length}var Ht,Wt=n(5971),Vt=yt((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,o=e.fontWeight,i=e.fontStyle,a=e.fontVariant;return Ht||(Ht=document.createElement("canvas").getContext("2d")),Ht.font=[i,a,o,n+"px",r].join(" "),Ht.measureText(T(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),(0,Wt.pr)([t],tt(e)).join("")})),Ut=function(t,e,n,r){void 0===r&&(r="...");var o,i,a=Vt(r,n),l=T(t)?t:et(t),c=e,s=[];if(Vt(t,n)<=e)return t;for(;o=l.substr(0,16),!((i=Vt(o,n))+a>c&&i>c);)if(s.push(o),c-=i,!(l=l.substr(16)))return s.join("");for(;o=l.substr(0,1),!((i=Vt(o,n))+a>c);)if(s.push(o),c-=i,!(l=l.substr(1)))return s.join("");return""+s.join("")+r},Xt=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}()},1694:function(t,e){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t=[],e=0;eo&&(t.splice(r+1,0,d),n=!0)}return n}}function d(t,e,n,r){var o=r-t*t,i=Math.abs(o)<1e-24?0:(n-t*e)/o;return[e-i*t,i]}function f(){var t,n=function(t){return t[0]},r=function(t){return t[1]};function o(o){var i=0,c=0,s=0,f=0,p=0,h=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;a(o,n,r,(function(e,n){var r=Math.log(n),o=e*n;++i,c+=(n-c)/i,f+=(o-f)/i,h+=(e*o-h)/i,s+=(n*r-s)/i,p+=(o*r-p)/i,t||(ev&&(v=e))}));var m=e(d(f/c,s/c,p/c,h/c),2),y=m[0],b=m[1];y=Math.exp(y);var x=function(t){return y*Math.exp(b*t)},w=u(g,v,x);return w.a=y,w.b=b,w.predict=x,w.rSquared=l(o,n,r,c,x),w}return o.domain=function(e){return arguments.length?(t=e,o):t},o.x=function(t){return arguments.length?(n=t,o):n},o.y=function(t){return arguments.length?(r=t,o):r},o}function p(){var t,n=function(t){return t[0]},r=function(t){return t[1]};function o(o){var i=0,c=0,s=0,u=0,f=0,p=t?+t[0]:1/0,h=t?+t[1]:-1/0;a(o,n,r,(function(e,n){++i,c+=(e-c)/i,s+=(n-s)/i,u+=(e*n-u)/i,f+=(e*e-f)/i,t||(eh&&(h=e))}));var g=e(d(c,s,u,f),2),v=g[0],m=g[1],y=function(t){return m*t+v},b=[[p,y(p)],[h,y(h)]];return b.a=m,b.b=v,b.predict=y,b.rSquared=l(o,n,r,s,y),b}return o.domain=function(e){return arguments.length?(t=e,o):t},o.x=function(t){return arguments.length?(n=t,o):n},o.y=function(t){return arguments.length?(r=t,o):r},o}function h(t){t.sort((function(t,e){return t-e}));var e=t.length/2;return e%1===0?(t[e-1]+t[e])/2:t[Math.floor(e)]}var g=2,v=1e-12;function m(){var t=function(t){return t[0]},n=function(t){return t[1]},r=.3;function o(o){for(var a=e(i(o,t,n,!0),4),l=a[0],c=a[1],s=a[2],u=a[3],f=l.length,p=Math.max(2,~~(r*f)),m=new Float64Array(f),w=new Float64Array(f),S=new Float64Array(f).fill(1),C=-1;++C<=g;){for(var k=[0,p-1],E=0;El[I]-M?O:I,T=0,A=0,F=0,R=0,L=0,B=1/Math.abs(l[P]-M||1),N=O;N<=I;++N){var D=l[N],j=c[N],z=y(Math.abs(M-D)*B)*S[N],_=D*z;T+=z,A+=_,F+=j*z,R+=j*_,L+=D*_}var H=e(d(A/T,F/T,R/T,L/T),2),W=H[0],V=H[1];m[E]=W+V*M,w[E]=Math.abs(c[E]-m[E]),b(l,E+1,k)}if(C===g)break;var U=h(w);if(Math.abs(U)=1?v:(G=1-X*X)*G}return x(l,m,s,u)}return o.bandwidth=function(t){return arguments.length?(r=t,o):r},o.x=function(e){return arguments.length?(t=e,o):t},o.y=function(t){return arguments.length?(n=t,o):n},o}function y(t){return(t=1-t*t*t)*t*t}function b(t,e,n){var r=t[e],o=n[0],i=n[1]+1;if(!(i>=t.length))for(;e>o&&t[i]-r<=r-t[o];)n[0]=++o,n[1]=i,++i}function x(t,e,n,r){for(var o,i=t.length,a=[],l=0,c=0,s=[];lv&&(v=e))}));var y=e(d(s,f,p,h),2),b=y[0],x=y[1],w=function(t){return x*Math.log(t)/m+b},S=u(g,v,w);return S.a=x,S.b=b,S.predict=w,S.rSquared=l(i,n,r,f,w),S}return i.domain=function(e){return arguments.length?(t=e,i):t},i.x=function(t){return arguments.length?(n=t,i):n},i.y=function(t){return arguments.length?(r=t,i):r},i.base=function(t){return arguments.length?(o=t,i):o},i}function S(){var t,n=function(t){return t[0]},r=function(t){return t[1]};function o(o){var c,s,d,f,p=e(i(o,n,r),4),h=p[0],g=p[1],v=p[2],m=p[3],y=h.length,b=0,x=0,w=0,S=0,C=0;for(c=0;cO&&(O=e))}));var I=w-b*b,P=b*I-x*x,T=(C*b-S*x)/P,A=(S*I-C*x)/P,F=-T*b,R=function(t){return T*(t-=v)*t+A*t+F+m},L=u(M,O,R);return L.a=T,L.b=A-2*T*v,L.c=F-A*v+T*v*v+m,L.predict=R,L.rSquared=l(o,n,r,k,R),L}return o.domain=function(e){return arguments.length?(t=e,o):t},o.x=function(t){return arguments.length?(n=t,o):n},o.y=function(t){return arguments.length?(r=t,o):r},o}function C(){var t,n=function(t){return t[0]},r=function(t){return t[1]},o=3;function c(c){if(1===o){var s=p().x(n).y(r).domain(t)(c);return s.coefficients=[s.b,s.a],delete s.a,delete s.b,s}if(2===o){var d=S().x(n).y(r).domain(t)(c);return d.coefficients=[d.c,d.b,d.a],delete d.a,delete d.b,delete d.c,d}var f,h,g,v,m,y=e(i(c,n,r),4),b=y[0],x=y[1],w=y[2],C=y[3],M=b.length,O=[],I=[],P=o+1,T=0,A=0,F=t?+t[0]:1/0,R=t?+t[1]:-1/0;for(a(c,n,r,(function(e,n){++A,T+=(n-T)/A,t||(eR&&(R=e))})),f=0;f=0;--o)for(a=e[o],l=1,c[o]+=a,i=1;i<=o;++i)l*=(o+1-i)/i,c[o-i]+=a*Math.pow(n,i)*l;return c[0]+=r,c}function E(t){var e,n,r,o,i,a=t.length-1,l=[];for(e=0;eMath.abs(t[e][o])&&(o=n);for(r=e;r=e;r--)t[r][n]-=t[r][e]*t[e][n]/t[e][e]}for(n=a-1;n>=0;--n){for(i=0,r=n+1;rv&&(v=e))}));var m=e(d(c,s,f,p),2),y=m[0],b=m[1];y=Math.exp(y);var x=function(t){return y*Math.pow(t,b)},w=u(g,v,x);return w.a=y,w.b=b,w.predict=x,w.rSquared=l(o,n,r,h,x),w}return o.domain=function(e){return arguments.length?(t=e,o):t},o.x=function(t){return arguments.length?(n=t,o):n},o.y=function(t){return arguments.length?(r=t,o):r},o}t.regressionExp=f,t.regressionLinear=p,t.regressionLoess=m,t.regressionLog=w,t.regressionPoly=C,t.regressionPow=M,t.regressionQuad=S,Object.defineProperty(t,"__esModule",{value:!0})}(e)},9761:function(t,e,n){"use strict";n.d(e,{qY:function(){return p}});var r=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o0)throw"Initial bisect points must have opposite signs";if(0===a)return e;if(0===l)return n;for(var s=0;s=0&&(e=u),Math.abs(c)=g[h-1].fx){var I=!1;if(w.fx>O.fx?(l(S,1+f,x,-f,O),S.fx=t(S),S.fx=1)break;for(v=1;vs+a*i*u||d>=g)h=i;else{if(Math.abs(p)<=-c*u)return i;p*(h-f)>=0&&(h=f),f=i,g=d}return 0}i=i||1,a=a||1e-6,c=c||.1;for(var v=0;v<10;++v){if(l(r.x,1,n.x,i,e),d=r.fx=t(r.x,r.fxprime),p=o(r.fxprime,e),d>s+a*i*u||v&&d>=f)return g(h,i,f);if(Math.abs(p)<=-c*u)return i;if(p>=0)return g(i,h,d);f=d,h=i,i*=2}return i}function u(t,e,n){var r,c,u,d={x:e.slice(),fx:0,fxprime:e.slice()},f={x:e.slice(),fx:0,fxprime:e.slice()},p=e.slice(),h=1;u=(n=n||{}).maxIterations||20*e.length,d.fx=t(d.x,d.fxprime),a(r=d.fxprime.slice(),d.fxprime,-1);for(var g=0;g0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t}function f(t,e){return t[0]*e[0]+t[1]*e[1]}function p(t,e,n){var r=e[0],o=e[1];return t[0]=n[0]*r+n[3]*o+n[6],t[1]=n[1]*r+n[4]*o+n[7],t}function h(t,e){var n=t[0],r=t[1],o=e[0],i=e[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(o*o+i*i),l=a&&(n*o+r*i)/a;return Math.acos(Math.min(Math.max(l,-1),1))}function g(t,e){return t[0]===e[0]&&t[1]===e[1]}var v=i;!function(){var t=function(){var t=new r.WT(2);return r.WT!=Float32Array&&(t[0]=0,t[1]=0),t}()}()},3654:function(t){"use strict";var e=t.exports;t.exports.isNumber=function(t){return"number"===typeof t},t.exports.findMin=function(t){if(0===t.length)return 1/0;for(var e=t[0],n=1;n=d.length)){var n=Math.max(e-r,0),o=e,a=Math.min(e+r,d.length-1),l=n-(e-r),s=e+r-a,f=p[-r-1+l]||0,m=p[-r-1+s]||0,y=h/(h-f-m);l>0&&(v+=y*(l-1)*g);var b=Math.max(0,e-r+1);i.inside(0,d.length-1,b)&&(d[b].y+=1*y*g),i.inside(0,d.length-1,o+1)&&(d[o+1].y-=2*y*g),i.inside(0,d.length-1,a+1)&&(d[a+1].y+=1*y*g)}}));var m=v,y=0,b=0;return d.forEach((function(t){y+=t.y,m+=y,t.y=m,b+=m})),b>0&&d.forEach((function(t){t.y/=b})),d},t.exports.getExpectedValueFromPdf=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){e+=t.x*t.y})),e}},t.exports.getXWithLeftTailArea=function(t,e){if(t&&0!==t.length){for(var n=0,r=0,o=0;o=e));o++);return t[r].x}},t.exports.getPerplexity=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){var n=Math.log(t.y);isFinite(n)&&(e+=t.y*n)})),e=-e/r,Math.pow(2,e)}}},4501:function(t,e){"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function m(t){if("object"===typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case i:case l:case a:case f:case p:return t;default:switch(t=t&&t.$$typeof){case u:case s:case d:case g:case h:case c:return t;default:return e}}case o:return e}}}n=Symbol.for("react.module.reference"),e.isFragment=function(t){return m(t)===i},e.isMemo=function(t){return m(t)===h}},3873:function(t,e,n){"use strict";t.exports=n(4501)},4463:function(t,e,n){"use strict";var r=n(2791),o=n(5296);function i(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n