UNPKG

@stdlib/esm

Version:

ES module distribution for Stdlib, a standard library for JavaScript and Node.js.

3 lines 42 kB
// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 import e from"./../utils/define-nonenumerable-read-only-property.js";import i from"./../vendor/events.js";import t from"./../vendor/debug.js";import n from"./../utils/keys.js";import r from"./../utils/define-property.js";import a from"./../utils/define-read-only-property.js";import s from"./../assert/is-plain-object.js";import o from"./../utils/copy.js";import l from"./../utils/inherit.js";import u from"./../utils/merge.js";import g from"./../random/base/minstd.js";import h from"./../assert/is-node-repl.js";import c from"./../assert/is-nan.js";import p from"./../assert/is-array.js";import m from"./../assert/is-empty-array.js";import y from"./../assert/is-string-array.js";import d from"./../assert/is-function.js";import v from"./../assert/is-string.js";import f from"./../utils/index-of.js";import b from"./../assert/is-number.js";import _ from"./../assert/is-number-array.js";import x from"./../assert/is-nonnegative-integer.js";import w from"./../assert/is-nonnegative-integer-array.js";import R from"./../assert/is-positive-number.js";import S from"./../assert/is-null.js";import{scaleTime as O,scaleLinear as T}from"./../vendor/d3-scale.js";import{format as N}from"./../vendor/d3-format.js";import{timeFormat as V}from"./../vendor/d3-time-format.js";import k from"./../assert/is-boolean.js";import E from"./../assert/is-boolean-array.js";import z from"./../assert/contains.js";import j from"./../vendor/vdom-to-html.js";import P from"./components/svg/annotations.js";import A from"./components/svg/clip-path.js";import C from"./components/svg/canvas.js";import M from"./components/svg/graph.js";import F from"./components/svg/title.js";import J from"./components/svg/marks.js";import L from"./components/svg/background.js";import D from"./components/svg/defs.js";import I from"./components/svg/axis.js";import W from"./components/svg/path.js";import B from"./components/svg/symbols.js";import U from"./components/svg/rug.js";function $(e){console.log(JSON.stringify(e))}var H=$;function G(e,i,t){if("none"!==i){if("stdout"===i)return H(t);if("browser"===i)throw new Error("invalid argument. Must provide a supported viewer. Value: `"+i+"`.");if("terminal"!==i)throw new Error("invalid argument. Must provide a supported viewer. Value: `"+i+"`.")}}var X=t,Y=c.isPrimitive,q=X("plot:accessor:is-defined");function K(e){var i=!Y(e);return q("Datum: %s. Defined: %s.",JSON.stringify(e),i),i}var Q=h,Z=K;function ee(){var e,i;return e=Q(),(i={}).autoRender=!1,i.autoView=!1,i.colors="category10",i.description="",i.engine="svg",i.height=400,i.isDefined=Z,i.labels=[],i.lineOpacity=.9,i.lineStyle="-",i.lineWidth=2,i.paddingBottom=80,i.paddingLeft=90,i.paddingRight=20,i.paddingTop=80,i.renderFormat="vdom",i.symbols="none",i.symbolsOpacity=.9,i.symbolsSize=6,i.title="",i.viewer=e?"window":"none",i.width=400,i.x=[],i.xAxisOrient="bottom",i.xLabel="x",i.xMax=null,i.xMin=null,i.xNumTicks=5,i.xRug=!1,i.xRugOrient="bottom",i.xRugOpacity=.1,i.xRugSize=6,i.xScale="linear",i.xTickFormat=null,i.y=[],i.yAxisOrient="left",i.yLabel="y",i.yMax=null,i.yMin=null,i.yNumTicks=5,i.yRug=!1,i.yRugOrient="left",i.yRugOpacity=.1,i.yRugSize=6,i.yScale="linear",i.yTickFormat=null,i}var ie=t,te=p,ne=ie("plot:set:x");function re(e){if(!te(e))throw new TypeError("invalid value. `x` must be an array. Value: `"+e+".`");ne("Current value: %s.",JSON.stringify(this._xData)),this._xData=e.slice(),ne("New Value: %s.",JSON.stringify(this._xData)),this.emit("change")}function ae(){return this._xData.slice()}var se=t,oe=p,le=se("plot:set:y");function ue(e){if(!oe(e))throw new TypeError("invalid value. `y` must be an array. Value: `"+e+".`");le("Current value: %s.",JSON.stringify(this._yData)),this._yData=e.slice(),le("New Value: %s.",JSON.stringify(this._yData)),this.emit("change")}function ge(){return this._yData.slice()}var he=t,ce=m,pe=y.primitives,me=he("plot:set:labels");function ye(e){if(!ce(e)&&!pe(e))throw new TypeError("invalid value. `labels` must be either an array of strings or an empty array. Value: `"+e+".`");me("Current value: %s.",JSON.stringify(this._labels)),this._labels=e.slice(),me("New Value: %s.",JSON.stringify(this._labels)),this.emit("change")}function de(){return this._labels.slice()}var ve=t,fe=d,be=ve("plot:set:is-defined");function _e(e){if(!fe(e))throw new TypeError("invalid value. `isDefined` must be a function. Value: `"+e+".`");e!==this._isDefined&&(be("Current value: %s.",this._isDefined),this._isDefined=e,be("New Value: %s.",this._isDefined),this.emit("change"))}function xe(){return this._isDefined}var we={category10:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcdb22","#17becf"],category20:["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"],category20b:["#393b79","#5254a3","#6b6ecf","#9c9ede","#637939","#8ca252","#b5cf6b","#cedb9c","#8c6d31","#bd9e39","#e7ba52","#e7cb94","#843c39","#ad494a","#d6616b","#e7969c","#7b4173","#a55194","#ce6dbd","#de9ed6"],category20c:["#3182bd","#6baed6","#9ecae1","#c6dbef","#e6550d","#fd8d3c","#fdae6b","#fdd0a2","#31a354","#74c476","#a1d99b","#c7e9c0","#756bb1","#9e9ac8","#bcbddc","#dadaeb","#636363","#969696","#bdbdbd","#d9d9d9"]},Re=t,Se=v.isPrimitive,Oe=y.primitives,Te=we,Ne=Re("plot:set:colors");function Ve(e){var i=Se(e);if(!i&&!Oe(e))throw new TypeError("invalid value. `colors` must be either a string or a string array. Value: `"+e+".`");e=i?void 0===Te[e]?[e]:Te[e].slice():e.slice(),Ne("Current value: %s.",JSON.stringify(this._colors)),this._colors=e,Ne("New Value: %s.",JSON.stringify(this._colors)),this.emit("change")}function ke(){return this._colors.slice()}var Ee=["-","--",":","-.","none"],ze=t,je=v.isPrimitive,Pe=y.primitives,Ae=f,Ce=Ee,Me=ze("plot:set:line-style");function Fe(e){var i,t=je(e);if(!t&&!Pe(e))throw new TypeError("invalid value. `lineStyle` must be a string or a string array. Value: `"+e+".`");for(e=t?[e]:e.slice(),i=0;i<e.length;i++)if(-1===Ae(Ce,e[i]))throw new Error("invalid value. Unsupported/unrecognized line style. Must be one of `["+Ce.join(",")+"]`. Value: `"+e[i]+"`.");Me("Current value: %s.",JSON.stringify(this._lineStyle)),this._lineStyle=e,Me("New Value: %s.",JSON.stringify(this._lineStyle)),this.emit("change")}function Je(){return this._lineStyle.slice()}var Le=t,De=b.isPrimitive,Ie=_.primitives,We=Le("plot:set:line-opacity");function Be(e){var i,t=De(e);if(!t&&!Ie(e))throw new TypeError("invalid value. `lineOpacity` must be a number or number array. Value: `"+e+".`");for(e=t?[e]:e.slice(),i=0;i<e.length;i++)if(e[i]<0||e[i]>1)throw new RangeError("invalid value. A `lineOpacity` must be a number on the interval `[0,1]`. Value: `"+e[i]+"`.");We("Current value: %s.",JSON.stringify(this._lineOpacity)),this._lineOpacity=e,We("New Value: %s.",JSON.stringify(this._lineOpacity)),this.emit("change")}function Ue(){return this._lineOpacity.slice()}var $e=t,He=x.isPrimitive,Ge=w.primitives,Xe=$e("plot:set:line-width");function Ye(e){var i=He(e);if(!i&&!Ge(e))throw new TypeError("invalid value. `lineWidth` must be a nonnegative integer or nonnegative integer array. Value: `"+e+".`");e=i?[e]:e.slice(),Xe("Current value: %s.",JSON.stringify(this._lineWidth)),this._lineWidth=e,Xe("New Value: %s.",JSON.stringify(this._lineWidth)),this.emit("change")}function qe(){return this._lineWidth.slice()}var Ke=["closed-circle","open-circle","none"],Qe=t,Ze=v.isPrimitive,ei=y.primitives,ii=f,ti=Ke,ni=Qe("plot:set:symbols");function ri(e){var i,t=Ze(e);if(!t&&!ei(e))throw new TypeError("invalid value. `symbols` must be a string or string array. Value: `"+e+".`");for(e=t?[e]:e.slice(),i=0;i<e.length;i++)if(-1===ii(ti,e[i]))throw new Error("invalid value. Unrecognized/unsupported symbol. Value: `["+e.join(",")+"]`.");ni("Current value: %s.",JSON.stringify(this._symbols)),this._symbols=e,ni("New Value: %s.",JSON.stringify(this._symbols)),this.emit("change")}function ai(){return this._symbols.slice()}var si=t,oi=x.isPrimitive,li=w.primitives,ui=si("plot:set:symbols-size");function gi(e){var i=oi(e);if(!i&&!li(e))throw new TypeError("invalid value. `symbolsSize` must be a nonnegative integer or nonnegative integer array. Value: `"+e+".`");e=i?[e]:e.slice(),ui("Current value: %s.",JSON.stringify(this._symbolsSize)),this._symbolsSize=e,ui("New Value: %s.",JSON.stringify(this._symbolsSize)),this.emit("change")}function hi(){return this._symbolsSize.slice()}var ci=t,pi=b.isPrimitive,mi=_.primitives,yi=ci("plot:set:symbols-opacity");function di(e){var i,t=pi(e);if(!t&&!mi(e))throw new TypeError("invalid value. `symbolsOpacity` must be a number or number array. Value: `"+e+".`");for(e=t?[e]:e.slice(),i=0;i<e.length;i++)if(e[i]<0||e[i]>1)throw new RangeError("invalid value. A `symbolsOpacity` must be a number on the interval `[0,1]`. Value: `"+e[i]+"`.");yi("Current value: %s.",JSON.stringify(this._symbolsOpacity)),this._symbolsOpacity=e,yi("New Value: %s.",JSON.stringify(this._symbolsOpacity)),this.emit("change")}function vi(){return this._symbolsOpacity.slice()}var fi=t,bi=R.isPrimitive,_i=fi("plot:set:width");function xi(e){if(!bi(e))throw new TypeError("invalid value. `width` must be a positive number. Value: `"+e+".`");e!==this._width&&(_i("Current value: %d.",this._width),this._width=e,_i("New value: %d.",this._width),this.emit("change"))}function wi(){return this._width}var Ri=t,Si=R.isPrimitive,Oi=Ri("plot:set:height");function Ti(e){if(!Si(e))throw new TypeError("invalid value. `height` must be a positive number. Value: `"+e+".`");e!==this._height&&(Oi("Current value: %d.",this._height),this._height=e,Oi("New Value: %d.",this._height),this.emit("change"))}function Ni(){return this._height}var Vi=t,ki=x.isPrimitive,Ei=Vi("plot:set:padding-left");function zi(e){if(!ki(e))throw new TypeError("invalid value. `paddingLeft` must be a nonnegative integer. Value: `"+e+".`");e!==this._paddingLeft&&(Ei("Current value: %d.",this._paddingLeft),this._paddingLeft=e,Ei("New value: %d.",this._paddingLeft),this.emit("change"))}function ji(){return this._paddingLeft}var Pi=t,Ai=x.isPrimitive,Ci=Pi("plot:set:padding-right");function Mi(e){if(!Ai(e))throw new TypeError("invalid value. `paddingRight` must be a nonnegative integer. Value: `"+e+".`");e!==this._paddingRight&&(Ci("Current value: %d.",this._paddingRight),this._paddingRight=e,Ci("New value: %d.",this._paddingRight),this.emit("change"))}function Fi(){return this._paddingRight}var Ji=t,Li=x.isPrimitive,Di=Ji("plot:set:padding-top");function Ii(e){if(!Li(e))throw new TypeError("invalid value. `paddingTop` must be a nonnegative integer. Value: `"+e+".`");e!==this._paddingTop&&(Di("Current value: %d.",this._paddingTop),this._paddingTop=e,Di("New value: %d.",this._paddingTop),this.emit("change"))}function Wi(){return this._paddingTop}var Bi=t,Ui=x.isPrimitive,$i=Bi("plot:set:padding-bottom");function Hi(e){if(!Ui(e))throw new TypeError("invalid value. `paddingBottom` must be a nonnegative integer. Value: `"+e+".`");e!==this._paddingBottom&&($i("Current value: %d.",this._paddingBottom),this._paddingBottom=e,$i("New value: %d.",this._paddingBottom),this.emit("change"))}function Gi(){return this._paddingBottom}var Xi=t,Yi=S,qi=b.isPrimitive,Ki=Xi("plot:set:x-min");function Qi(e){if(!Yi(e)&&!qi(e))throw new TypeError("invalid value. `xMin` must be either a finite number, Date, or null. Value: `"+e+".`");Ki("Current value: %s.",this._xMin),this._xMin=e,Ki("New value: %s.",this._xMin),this.emit("change")}function Zi(e){var i,t;if(0===e.length)return null;for(i=e[0],t=1;t<e.length;t++)e[t]<i&&(i=e[t]);return i}var et=S,it=Zi;function tt(e){var i,t;if(0===e.length)return null;for(i=new Array(e.length),t=0;t<e.length;t++)i[t]=it(e[t]);return it(i)}function nt(){var e;return et(this._xMin)?(e=tt(this._xData),et(e)?0:e):this._xMin}var rt=t,at=S,st=b.isPrimitive,ot=rt("line:set:x-max");function lt(e){if(!at(e)&&!st(e))throw new TypeError("invalid value. `xMax` must be either a finite number, Date, or null. Value: `"+e+".`");e!==this._xMax&&(ot("Current value: %s.",this._xMax),this._xMax=e,ot("New value: %s.",this._xMax),this.emit("change"))}function ut(e){var i,t;if(0===e.length)return null;for(i=e[0],t=1;t<e.length;t++)e[t]>i&&(i=e[t]);return i}var gt=S,ht=ut;function ct(e){var i,t;if(0===e.length)return null;for(i=new Array(e.length),t=0;t<e.length;t++)i[t]=ht(e[t]);return ht(i)}function pt(){var e;return gt(this._xMax)?(e=ct(this._xData),gt(e)?1:e):this._xMax}var mt=t,yt=S,dt=b.isPrimitive,vt=mt("plot:set:y-min");function ft(e){if(!yt(e)&&!dt(e))throw new TypeError("invalid value. `yMin` must be either a finite number or null. Value: `"+e+".`");e!==this._yMin&&(vt("Current value: %d.",this._yMin),this._yMin=e,vt("New value: %d.",this._yMin),this.emit("change"))}var bt=S,_t=Zi;function xt(e){var i,t;if(0===e.length)return null;for(i=new Array(e.length),t=0;t<e.length;t++)i[t]=_t(e[t]);return _t(i)}function wt(){var e;return bt(this._yMin)?(e=xt(this._yData),bt(e)?0:e):this._yMin}var Rt=t,St=S,Ot=b.isPrimitive,Tt=Rt("plot:set:y-max");function Nt(e){if(!St(e)&&!Ot(e))throw new TypeError("invalid value. `yMax` must be either a finite number or null. Value: `"+e+".`");e!==this._yMax&&(Tt("Current value: %d.",this._yMax),this._yMax=e,Tt("New value: %d.",this._yMax),this.emit("change"))}var Vt=S,kt=ut;function Et(e){var i,t;if(0===e.length)return null;for(i=new Array(e.length),t=0;t<e.length;t++)i[t]=kt(e[t]);return kt(i)}function zt(){var e;return Vt(this._yMax)?(e=Et(this._yData),Vt(e)?1:e):this._yMax}var jt=t,Pt=v.isPrimitive,At=jt("plot:set:x-scale");function Ct(e){if(!Pt(e))throw new TypeError("invalid value. `xScale` must be a string. Value: `"+e+".`");e!==this._xScale&&(At("Current value: %s.",this._xScale),this._xScale=e,At("New value: %s.",this._xScale),this.emit("change"))}function Mt(){var e;return"time"===this._xScale?e=O().domain(this.xDomain).range(this.xRange):"linear"===this._xScale&&(e=T().domain(this.xDomain).range(this.xRange)),e}var Ft=t,Jt=v.isPrimitive,Lt=Ft("plot:set:y-scale");function Dt(e){if(!Jt(e))throw new TypeError("invalid value. `yScale` must be a string. Value: `"+e+".`");Lt("Current value: %s.",this._yScale),this._yScale=e,Lt("New value: %s.",this._yScale),this.emit("change")}function It(){var e;return"time"===this._yScale?e=O().domain(this.yDomain).range(this.yRange):"linear"===this._yScale&&(e=T().domain(this.yDomain).range(this.yRange)),e}var Wt=t,Bt=S,Ut=v.isPrimitive,$t=Wt("plot:set:x-tick-format");function Ht(e){if(!Bt(e)&&!Ut(e))throw new TypeError("invalid value. `xTickFormat` must be a string or null. Value: `"+e+".`");e!==this._xTickFormat&&($t("Current value: %s.",this._xTickFormat),this._xTickFormat=e,$t("New value: %s.",this._xTickFormat),this.emit("change"))}var Gt=S;function Xt(){return Gt(this._xTickFormat)?this._xTickFormat:"time"===this._xScale?V(this._xTickFormat):N(this._xTickFormat)}var Yt=t,qt=S,Kt=v.isPrimitive,Qt=Yt("plot:set:y-tick-format");function Zt(e){if(!qt(e)&&!Kt(e))throw new TypeError("invalid value. `yTickFormat` must be a string or null. Value: `"+e+".`");e!==this._yTickFormat&&(Qt("Current value: %s.",this._yTickFormat),this._yTickFormat=e,Qt("New value: %s.",this._yTickFormat),this.emit("change"))}var en=S;function tn(){return en(this._yTickFormat)?this._yTickFormat:"time"===this._yScale?V(this._yTickFormat):N(this._yTickFormat)}var nn=t,rn=S,an=x.isPrimitive,sn=nn("plot:set:x-num-ticks");function on(e){if(!rn(e)&&!an(e))throw new TypeError("invalid value. `xNumTicks` must be a nonnegative integer or null. Value: `"+e+".`");e!==this._xNumTicks&&(sn("Current value: %d.",this._xNumTicks),this._xNumTicks=e,sn("New value: %d.",this._xNumTicks),this.emit("change"))}function ln(){return this._xNumTicks}var un=t,gn=S,hn=x.isPrimitive,cn=un("plot:set:y-num-ticks");function pn(e){if(!gn(e)&&!hn(e))throw new TypeError("invalid value. `yNumTicks` must be a nonnegative integer or null. Value: `"+e+".`");e!==this._yNumTicks&&(cn("Current value: %d.",this._yNumTicks),this._yNumTicks=e,cn("New value: %d.",this._yNumTicks),this.emit("change"))}function mn(){return this._yNumTicks}var yn=["bottom","top"],dn=t,vn=f,fn=yn,bn=dn("plot:set:x-axis-orient");function _n(e){if(-1===vn(fn,e))throw new TypeError("invalid value. `xAxisOrient` must be one of `["+fn.join(", ")+"]`. Value: `"+e+".`");e!==this._xAxisOrient&&(bn("Current value: %s.",this._xAxisOrient),this._xAxisOrient=e,bn("New value: %s.",this._xAxisOrient),this.emit("change"))}function xn(){return this._xAxisOrient}var wn=["left","right"],Rn=t,Sn=f,On=wn,Tn=Rn("plot:set:y-axis-orient");function Nn(e){if(-1===Sn(On,e))throw new TypeError("invalid value. `yAxisOrient` must be one of `["+On.join(", ")+"]`. Value: `"+e+".`");e!==this._yAxisOrient&&(Tn("Current value: %s.",this._yAxisOrient),this._yAxisOrient=e,Tn("New value: %s.",this._yAxisOrient),this.emit("change"))}function Vn(){return this._yAxisOrient}var kn=t,En=k.isPrimitive,zn=E.primitives,jn=kn("plot:set:x-rug");function Pn(e){var i=En(e);if(!i&&!zn(e))throw new TypeError("invalid value. `xRug` must be a boolean or boolean array. Value: `"+e+".`");i&&(e=[e]),jn("Current value: %s.",JSON.stringify(this._xRug)),this._xRug=e,jn("New Value: %s.",JSON.stringify(this._xRug)),this.emit("change")}function An(){return this._xRug.slice()}var Cn=t,Mn=k.isPrimitive,Fn=E.primitives,Jn=Cn("plot:set:y-rug");function Ln(e){var i=Mn(e);if(!i&&!Fn(e))throw new TypeError("invalid value. `yRug` must be a boolean or boolean array. Value: `"+e+".`");i&&(e=[e]),Jn("Current value: %s.",JSON.stringify(this._yRug)),this._yRug=e,Jn("New Value: %s.",JSON.stringify(this._yRug)),this.emit("change")}function Dn(){return this._yRug.slice()}var In=["bottom","top"],Wn=t,Bn=v.isPrimitive,Un=y.primitives,$n=f,Hn=In,Gn=Wn("plot:set:x-rug-orient");function Xn(e){var i,t=Bn(e);if(!t&&!Un(e))throw new TypeError("invalid value. `xRugOrient` must be either a string or string array. Value: `"+e+"`.");for(e=t?[e]:e.slice(),i=0;i<e.length;i++)if(-1===$n(Hn,e[i]))throw new TypeError("invalid value. Unrecognized/unsupported orientation. An `xRugOrient` value must be one of `["+Hn.join(", ")+"]`. Value: `"+e[i]+".`");Gn("Current value: %s.",JSON.stringify(this._xRugOrient)),this._xRugOrient=e,Gn("New value: %s.",JSON.stringify(this._xRugOrient)),this.emit("change")}function Yn(){return this._xRugOrient.slice()}var qn=["left","right"],Kn=t,Qn=v.isPrimitive,Zn=y.primitives,er=f,ir=qn,tr=Kn("plot:set:y-rug-orient");function nr(e){var i,t=Qn(e);if(!t&&!Zn(e))throw new TypeError("invalid value. `yRugOrient` must be either a string or string array. Value: `"+e+"`.");for(e=t?[e]:e.slice(),i=0;i<e.length;i++)if(-1===er(ir,e[i]))throw new TypeError("invalid value. Unrecognized/unsupported orientation. A `yRugOrient` value must be one of `["+ir.join(", ")+"]`. Value: `"+e[i]+".`");tr("Current value: %s.",JSON.stringify(this._yRugOrient)),this._yRugOrient=e,tr("New value: %s.",JSON.stringify(this._yRugOrient)),this.emit("change")}function rr(){return this._yRugOrient.slice()}var ar=t,sr=b.isPrimitive,or=_.primitives,lr=ar("plot:set:x-rug-opacity");function ur(e){var i,t=sr(e);if(!t&&!or(e))throw new TypeError("invalid value. `xRugOpacity` must be a number or number array. Value: `"+e+".`");for(e=t?[e]:e.slice(),i=0;i<e.length;i++)if(e[i]<0||e[i]>1)throw new RangeError("invalid value. An `xRugOpacity` must be a number on the interval `[0,1]`. Value: `"+e[i]+"`.");lr("Current value: %s.",JSON.stringify(this._xRugOpacity)),this._xRugOpacity=e,lr("New Value: %s.",JSON.stringify(this._xRugOpacity)),this.emit("change")}function gr(){return this._xRugOpacity.slice()}var hr=t,cr=b.isPrimitive,pr=_.primitives,mr=hr("plot:set:y-rug-opacity");function yr(e){var i,t=cr(e);if(!t&&!pr(e))throw new TypeError("invalid value. `yRugOpacity` must be a number or number array. Value: `"+e+".`");for(e=t?[e]:e.slice(),i=0;i<e.length;i++)if(e[i]<0||e[i]>1)throw new RangeError("invalid value. A `yRugOpacity` must be a number on the interval `[0,1]`. Value: `"+e[i]+"`.");mr("Current value: %s.",JSON.stringify(this._yRugOpacity)),this._yRugOpacity=e,mr("New Value: %s.",JSON.stringify(this._yRugOpacity)),this.emit("change")}function dr(){return this._yRugOpacity.slice()}var vr=t,fr=x.isPrimitive,br=w.primitives,_r=vr("plot:set:x-rug-size");function xr(e){var i=fr(e);if(!i&&!br(e))throw new TypeError("invalid value. `xRugSize` must be a nonnegative integer or nonnegative integer array. Value: `"+e+".`");e=i?[e]:e.slice(),_r("Current value: %s.",JSON.stringify(this._xRugSize)),this._xRugSize=e,_r("New Value: %s.",JSON.stringify(this._xRugSize)),this.emit("change")}function wr(){return this._xRugSize.slice()}var Rr=t,Sr=x.isPrimitive,Or=w.primitives,Tr=Rr("plot:set:y-rug-size");function Nr(e){var i=Sr(e);if(!i&&!Or(e))throw new TypeError("invalid value. `yRugSize` must be a nonnegative integer or nonnegative integer array. Value: `"+e+".`");e=i?[e]:e.slice(),Tr("Current value: %s.",JSON.stringify(this._yRugSize)),this._yRugSize=e,Tr("New Value: %s.",JSON.stringify(this._yRugSize)),this.emit("change")}function Vr(){return this._yRugSize.slice()}var kr=t,Er=v.isPrimitive,zr=kr("plot:set:description");function jr(e){if(!Er(e))throw new TypeError("invalid value. `description` must be a string. Value: `"+e+".`");e!==this._description&&(zr("Current value: %s.",this._description),this._description=e,zr("New value: %s.",this._description),this.emit("change"))}function Pr(){return this._description}var Ar=t,Cr=v.isPrimitive,Mr=Ar("plot:set:title");function Fr(e){if(!Cr(e))throw new TypeError("invalid value. `title` must be a string. Value: `"+e+".`");e!==this._title&&(Mr("Current value: %s.",this._title),this._title=e,Mr("New value: %s.",this._title),this.emit("change"))}function Jr(){return this._title}var Lr=t,Dr=v.isPrimitive,Ir=Lr("plot:set:x-label");function Wr(e){if(!Dr(e))throw new TypeError("invalid value. `xLabel` must be a string. Value: `"+e+".`");e!==this._xLabel&&(Ir("Current value: %s.",this._xLabel),this._xLabel=e,Ir("New value: %s.",this._xLabel),this.emit("change"))}function Br(){return this._xLabel}var Ur=t,$r=v.isPrimitive,Hr=Ur("plot:set:y-label");function Gr(e){if(!$r(e))throw new TypeError("invalid value. `yLabel` must be a string. Value: `"+e+".`");e!==this._yLabel&&(Hr("Current value: %s.",this._yLabel),this._yLabel=e,Hr("New value: %s.",this._yLabel),this.emit("change"))}function Xr(){return this._yLabel}var Yr=["svg"],qr=t,Kr=z,Qr=Yr,Zr=qr("plot:set:engine");function ea(e){if(!Kr(Qr,e))throw new TypeError("invalid value. `engine` must be one of `["+Qr.join(", ")+"]`. Value: `"+e+".`");e!==this._engine&&(Zr("Current value: %s.",this._engine),this._engine=e,Zr("New value: %s.",this._engine),this.emit("change"))}function ia(){return this._engine}var ta=t,na=k.isPrimitive,ra=ta("plot:set:auto-render");function aa(e){if(!na(e))throw new TypeError("invalid value. `autoRender` must be a boolean primitive. Value: `"+e+".`");e!==this._autoRender&&(ra("Current value: %s.",this._autoRender),this._autoRender=e,ra("New Value: %s.",this._autoRender),this.emit("change"))}function sa(){return this._autoRender}var oa=["vdom","html"],la=t,ua=f,ga=oa,ha=la("plot:set:renderformat");function ca(e){if(-1===ua(ga,e))throw new TypeError("invalid value. Unrecognized/unsupported `format`. Must be one of `["+ga.join(", ")+"]`. Value: `"+e+".`");e!==this._renderFormat&&(ha("Current value: %s.",this._renderFormat),this._renderFormat=e,ha("New value: %s.",this._renderFormat),this.emit("change"))}function pa(){return this._renderFormat}var ma=["none","browser","terminal","stdout","window"],ya=t,da=f,va=ma,fa=ya("plot:set:viewer");function ba(e){if(-1===da(va,e))throw new TypeError("invalid value. Unrecognized/unsupported `viewer`. Value: `"+e+".`");e!==this._viewer&&(fa("Current value: %s.",this._viewer),this._viewer=e,fa("New value: %s.",this._viewer),this.emit("change"))}function _a(){return this._viewer}var xa=t,wa=k.isPrimitive,Ra=xa("plot:set:auto-view");function Sa(e){if(!wa(e))throw new TypeError("invalid value. `autoView` must be a boolean primitive. Value: `"+e+".`");e!==this._autoView&&(Ra("Current value: %s.",this._autoView),this._autoView=e,Ra("New Value: %s.",this._autoView),this.emit("change"))}function Oa(){return this._autoView}function Ta(){return this._width-this._paddingLeft-this._paddingRight}function Na(){return this._height-this._paddingTop-this._paddingBottom}function Va(){return[this.xMin,this.xMax]}function ka(){return[this.yMin,this.yMax]}function Ea(){return[0,this.graphWidth]}function za(){return[this.graphHeight,0]}var ja=t,Pa=ja("plot:x-pos");function Aa(){var e=this.xScale;return function(i){var t=e(i);return Pa("Value: %d => Pixel: %d.",i,t),t}}var Ca=t,Ma=Ca("plot:y-pos");function Fa(){var e=this.yScale;return function(i){var t=e(i);return Ma("Value: %d => Pixel: %d.",i,t),t}}function Ja(e,i){return"top"===e?"translate(0,0)":"translate(0,"+i+")"}function La(e,i){return"left"===e?"translate(0,0)":"translate("+i+",0)"}var Da=t,Ia=Da("plot:render:svg:marks:lines");function Wa(e){var i,t,n,r,a,s,o,l,u,g,h,c;for(g=e.$.svg.path,i=e.lineOpacity.length,a=e.lineStyle.length,s=e.lineWidth.length,r=e.colors.length,h=e.x.length,u=[],Ia("Rendering lines..."),c=0;c<h;c++)t=e.lineStyle[c%a],Ia("Line style: %s (%d).",t,c),"none"!==t?(o=e.colors[c%r],Ia("Line color: %s (%d).",o,c),n=e.lineOpacity[c%i],Ia("Line opacity: %s (%d).",n,c),l=e.lineWidth[c%s],Ia("Line width: %s (%d).",l,c),g.x=e.x[c],g.y=e.y[c],g.style=t,g.label=e.labels[c]||"",g.color=o,g.opacity=n,g.width=l,Ia("Rendering line %d...",c),u.push(g.render())):Ia("Line style (%d) is `none`. Skipping...",c);return Ia("Finished rendering lines."),u}var Ba=t,Ua=Ba("plot:render:svg:marks:symbols");function $a(e){var i,t,n,r,a,s,o,l,u,g,h,c;for(g=e.$.svg.symbols,i=e.symbolsOpacity.length,t=e.symbols.length,n=e.colors.length,a=e.symbolsSize.length,h=e.x.length,l=[],Ua("Rendering symbols..."),c=0;c<h;c++)s=e.symbols[c%t],Ua("Symbol: %s (%d).",s,c),"none"!==s?(r=e.symbolsOpacity[c%i],Ua("Symbols opacity: %d (%d).",r,c),u=e.symbolsSize[c%a],Ua("Symbols size: %d (%d).",u,c),o=e.colors[c%n],Ua("Symbols color: %s (%d).",o,c),g.x=e.x[c],g.y=e.y[c],g.symbol=s,g.label=e.labels[c]||"",g.color=o,g.size=u,g.opacity=r,Ua("Rendering symbols %d...",c),l.push(g.render())):Ua("Symbol (%d) is `none`. Skipping...",c);return Ua("Finished rendering symbols."),l}function Ha(e,i){return"top"===e?"translate(0,0)":"translate(0,"+i+")"}var Ga=t,Xa=Ha,Ya=Ga("plot:render:svg:marks:x-rug");function qa(e){var i,t,n,r,a,s,o,l,u,g,h,c,p,m,y;for(c=e.$.svg.xRug,t=e.xRugOpacity.length,n=e.xRugOrient.length,a=e.colors.length,s=e.xRugSize.length,l=e.xRug.length,p=e.x.length,g=[],Ya("Rendering x-axis rug plots..."),y=0;y<p;y++)e.xRug[y%l]?(u=e.colors[y%a],Ya("Rug color: %s (%d).",u,y),r=e.xRugOpacity[y%t],Ya("Rug opacity: %d (%d).",r,y),o=e.xRugOrient[y%n],Ya("Rug orientation: %s (%d).",o,y),h=e.xRugSize[y%s],Ya("Rug tick size: %d (%d).",h,y),c.data=e.x[y],c.label=e.labels[y]||"",c.color=u,c.size=h,c.opacity=r,c.orientation=o,Ya("Rendering x-axis rug %d...",y),(m=c.render()).properties.className+=" x",i=Xa(o,e.graphHeight),m.properties.attributes||(m.properties.attributes={}),m.properties.attributes.transform=i,g.push(m)):Ya("Rug plot (%d) disabled. Skipping...",y);return Ya("Finished rendering x-axis rug plots."),g}function Ka(e,i){return"left"===e?"translate(0,0)":"translate("+i+",0)"}var Qa=t,Za=Ka,es=Qa("plot:render:svg:marks:y-rug");function is(e){var i,t,n,r,a,s,o,l,u,g,h,c,p,m,y;for(c=e.$.svg.yRug,t=e.yRugOpacity.length,n=e.yRugOrient.length,a=e.colors.length,s=e.yRugSize.length,l=e.yRug.length,p=e.y.length,g=[],es("Rendering y-axis rug plots..."),y=0;y<p;y++)e.yRug[y%l]?(u=e.colors[y%a],es("Rug color: %s (%d).",u,y),r=e.yRugOpacity[y%t],es("Rug opacity: %d (%d).",r,y),o=e.yRugOrient[y%n],es("Rug orientation: %s (%d).",o,y),h=e.yRugSize[y%s],es("Rug tick size: %d (%d).",h,y),c.data=e.y[y],c.label=e.labels[y]||"",c.color=u,c.size=h,c.opacity=r,c.orientation=o,es("Rendering y-axis rug %d...",y),(m=c.render()).properties.className+=" y",i=Za(o,e.graphWidth),m.properties.attributes||(m.properties.attributes={}),m.properties.attributes.transform=i,g.push(m)):es("Rug plot (%d) disabled. Skipping...",y);return es("Finished rendering y-axis rug plots."),g}var ts=t,ns=Wa,rs=$a,as=qa,ss=is,os=ts("plot:render:svg:marks");function ls(e){var i,t,n;if(os("Rendering marks group..."),i=e.$.svg.marks.render(),0===e.x.length)return os("No individual marks to render."),i;for(t=[],os("Rendering lines..."),t=t.concat(ns(e)),os("Rendering symbols..."),t=t.concat(rs(e)),os("Rendering x-axis rug plots..."),t=t.concat(as(e)),os("Rendering y-axis rug plots..."),t=t.concat(ss(e)),os("Inserting individual marks into marks group..."),n=0;n<t.length;n++)i.children.push(t[n]),i.count+=t[n].count;return os("Finished rendering marks."),i}var us=t,gs=r,hs=P,cs=A,ps=C,ms=M,ys=F,ds=J,vs=L,fs=D,bs=I,_s=W,xs=B,ws=U,Rs=us("plot:render:svg:init");function Ss(e){var i=e.$.svg;Rs("Initializing components..."),Rs("Initializing canvas component..."),gs(i,"canvas",{configurable:!1,enumerable:!1,writable:!1,value:new ps({autoRender:!1})}),Rs("Initializing definitions component..."),gs(i,"defs",{configurable:!1,enumerable:!1,writable:!1,value:new fs({autoRender:!1})}),Rs("Initializing clipping path component..."),gs(i,"clipPath",{configurable:!1,enumerable:!1,writable:!1,value:new cs({autoRender:!1,id:e._clipPathId})}),Rs("Initializing graph component..."),gs(i,"graph",{configurable:!1,enumerable:!1,writable:!1,value:new ms({autoRender:!1})}),Rs("Initializing annotations component..."),gs(i,"annotations",{configurable:!1,enumerable:!1,writable:!1,value:new hs({autoRender:!1})}),Rs("Initializing title component..."),gs(i,"title",{configurable:!1,enumerable:!1,writable:!1,value:new ys({autoRender:!1})}),Rs("Initializing background component..."),gs(i,"bkgd",{configurable:!1,enumerable:!1,writable:!1,value:new vs({autoRender:!1})}),Rs("Initializing marks component..."),gs(i,"marks",{configurable:!1,enumerable:!1,writable:!1,value:new ds({autoRender:!1,clipPathId:e._clipPathId})}),Rs("Initializing path component..."),gs(i,"path",{configurable:!1,enumerable:!1,writable:!1,value:new _s({autoRender:!1})}),Rs("Initializing symbols component..."),gs(i,"symbols",{configurable:!1,enumerable:!1,writable:!1,value:new xs({autoRender:!1})}),Rs("Initializing x-axis rug component..."),gs(i,"xRug",{configurable:!1,enumerable:!1,writable:!1,value:new ws({autoRender:!1})}),Rs("Initializing y-axis rug component..."),gs(i,"yRug",{configurable:!1,enumerable:!1,writable:!1,value:new ws({autoRender:!1})}),Rs("Initializing x-axis component..."),gs(i,"xAxis",{configurable:!1,enumerable:!1,writable:!1,value:new bs({autoRender:!1})}),Rs("Initializing y-axis component..."),gs(i,"yAxis",{configurable:!1,enumerable:!1,writable:!1,value:new bs({autoRender:!1})}),Rs("All components initialized.")}var Os=t,Ts=Os("plot:render:svg:sync");function Ns(e){var i=e.$.svg;Ts("Syncing..."),Ts("Syncing canvas..."),i.canvas.width=e.width,i.canvas.height=e.height,Ts("Syncing definitions..."),Ts("Syncing clipping path..."),i.clipPath.width=e.graphWidth,i.clipPath.height=e.graphHeight,Ts("Syncing graph..."),i.graph.translateX=e.paddingLeft,i.graph.translateY=e.paddingTop,Ts("Syncing annotations..."),Ts("Syncing title..."),i.title.text=e.title,Ts("Syncing background..."),i.bkgd.width=e.graphWidth,i.bkgd.height=e.graphHeight,Ts("Syncing marks..."),i.marks.clipPathId=e._clipPathId,Ts("Syncing path..."),i.path.xScale=e.xScale,i.path.yScale=e.yScale,Ts("Syncing symbols..."),i.symbols.xScale=e.xScale,i.symbols.yScale=e.yScale,Ts("Syncing x-axis rug..."),i.xRug.scale=e.xScale,Ts("Syncing y-axis rug..."),i.yRug.scale=e.yScale,Ts("Syncing x-axis..."),i.xAxis.scale=e.xScale,i.xAxis.label=e.xLabel,i.xAxis.tickFormat=e.xTickFormat,i.xAxis.numTicks=e.xNumTicks,i.xAxis.orientation=e.xAxisOrient,Ts("Syncing y-axis..."),i.yAxis.scale=e.yScale,i.yAxis.label=e.yLabel,i.yAxis.tickFormat=e.yTickFormat,i.yAxis.numTicks=e.yNumTicks,i.yAxis.orientation=e.yAxisOrient,Ts("Sync complete.")}var Vs=t,ks=Ja,Es=La,zs=ls,js=Ss,Ps=Ns,As=Vs("plot:render:svg:main");function Cs(e){var i,t,n,r,a,s,o,l,u,g,h;return(h=e.$.svg).canvas||(As("Initializing components..."),js(e)),As("Syncing component states..."),Ps(e),As("Rendering individual components..."),As("Rendering annotations..."),i=h.annotations.render(),As("Rendering clip-path..."),t=h.clipPath.render(),As("Rendering canvas..."),n=h.canvas.render(),As("Rendering graph..."),a=h.graph.render(),As("Rendering title..."),r=h.title.render(),As("Rendering x-axis..."),o=h.xAxis.render(),As("Rendering y-axis..."),l=h.yAxis.render(),As("Rendering background..."),u=h.bkgd.render(),As("Rendering definitions..."),g=h.defs.render(),As("Rendering marks..."),s=zs(e),As("Updating rendered components..."),As("Updating title..."),r.properties.attributes.x=e.paddingLeft+e.graphWidth/2,r.properties.attributes.y=e.paddingTop/2,As("Updating x-axis..."),o.properties.className+=" x",o.properties.attributes.transform=ks(e.xAxisOrient,e.graphHeight),As("Updating y-axis..."),l.properties.className+=" y",l.properties.attributes.transform=Es(e.yAxisOrient,e.graphWidth),As("Assembling virtual tree..."),As("Inserting clip-path into definitions..."),g.children.push(t),g.count+=t.count,As("Inserting background into graph..."),a.children.push(u),a.count+=u.count,As("Inserting marks into graph..."),a.children.push(s),a.count+=s.count,As("Inserting x-axis into graph..."),a.children.push(o),a.count+=o.count,As("Inserting y-axis into graph..."),a.children.push(l),a.count+=l.count,As("Inserting title into annotations..."),i.children.push(r),i.count+=r.count,As("Inserting definitions into canvas..."),n.children.push(g),n.count+=g.count,As("Inserting graph into canvas..."),n.children.push(a),n.count+=a.count,As("Inserting annotations into canvas..."),n.children.push(i),n.count+=i.count,n}function Ms(e){var i,t,n;if(i=e._xData,t=e._yData,i.length!==t.length)throw new Error("invalid state. `x` and `y` are different lengths. `x` length: "+i.length+", `y` length: "+t.length+".");for(n=0;n<i.length;n++)if(i[n].length!==t[n].length)throw new Error("invalid state. Each `x[i]:y[i]` pair must be the same length. x["+n+"].length: "+i[n].length+", y["+n+"].length: "+t[n].length+".")}var Fs=t,Js=j,Ls=Cs,Ds=Ms,Is=Fs("plot:render");function Ws(e){var i,t,n;return t=this.renderFormat,arguments.length?(this.renderFormat=e,n=e):n=t,Is("Validating render state..."),Ds(this),Is("Render format: %s.",this.renderFormat),Is("Rendering..."),"svg"===this._engine&&(i=Ls(this),"html"===n&&(i=Js(i)),this.emit("render",i)),arguments.length&&(this.renderFormat=t),i}var Bs=t,Us=G,$s=Bs("plot:view");function Hs(e){var i=this.viewer;arguments.length&&(this.viewer=e),$s("Viewer: %s.",this.viewer),$s("Generating view..."),Us(this,this.viewer,this.render()),arguments.length&&(this.viewer=i)}var Gs=i.EventEmitter,Xs=t,Ys=n,qs=r,Ks=a,Qs=s,Zs=o,eo=l,io=u.factory,to=g,no=G,ro=ee,ao=re,so=ae,oo=ue,lo=ge,uo=ye,go=de,ho=_e,co=xe,po=Ve,mo=ke,yo=Fe,vo=Je,fo=Be,bo=Ue,_o=Ye,xo=qe,wo=ri,Ro=ai,So=gi,Oo=hi,To=di,No=vi,Vo=xi,ko=wi,Eo=Ti,zo=Ni,jo=zi,Po=ji,Ao=Mi,Co=Fi,Mo=Ii,Fo=Wi,Jo=Hi,Lo=Gi,Do=Qi,Io=nt,Wo=lt,Bo=pt,Uo=ft,$o=wt,Ho=Nt,Go=zt,Xo=Ct,Yo=Mt,qo=Dt,Ko=It,Qo=Ht,Zo=Xt,el=Zt,il=tn,tl=on,nl=ln,rl=pn,al=mn,sl=_n,ol=xn,ll=Nn,ul=Vn,gl=Pn,hl=An,cl=Ln,pl=Dn,ml=Xn,yl=Yn,dl=nr,vl=rr,fl=ur,bl=gr,_l=yr,xl=dr,wl=xr,Rl=wr,Sl=Nr,Ol=Vr,Tl=jr,Nl=Pr,Vl=Fr,kl=Jr,El=Wr,zl=Br,jl=Gr,Pl=Xr,Al=ea,Cl=ia,Ml=aa,Fl=sa,Jl=ca,Ll=pa,Dl=ba,Il=_a,Wl=Sa,Bl=Oa,Ul=Ta,$l=Na,Hl=Va,Gl=ka,Xl=Ea,Yl=za,ql=Aa,Kl=Fa,Ql=Ws,Zl=Hs,eu=Xs("plot:main"),iu=["_autoRender","_autoView","_colors","_description","_engine","_height","_isDefined","_labels","_lineOpacity","_lineStyle","_lineWidth","_paddingBottom","_paddingLeft","_paddingRight","_paddingTop","_renderFormat","_symbols","_symbolsOpacity","_symbolsSize","_title","_viewer","_width","_xAxisOrient","_xData","_xLabel","_xMax","_xMin","_xNumTicks","_xRug","_xRugOpacity","_xRugOrient","_xRugSize","_xScale","_xTickFormat","_yAxisOrient","_yData","_yLabel","_yMax","_yMin","_yNumTicks","_yRug","_yRugOpacity","_yRugOrient","_yRugSize","_yScale","_yTickFormat"],tu=io({extend:!1});function nu(){var e,i,t,n,r,a,s;if(i=arguments.length,!(this instanceof nu))return 0===i?new nu:1===i?new nu(arguments[0]):2===i?new nu(arguments[0],arguments[1]):new nu(arguments[0],arguments[1],arguments[2]);if(n=this,r=ro(),0===i)e={};else if(1===i){if(!Qs(e=arguments[0]))throw new TypeError("invalid argument. Options argument must be an `object`. Value: `"+e+"`.")}else if(2===i)e={x:arguments[0],y:arguments[1]};else if(i>2){if(!Qs(arguments[2]))throw new TypeError("invalid argument. Options argument must be an `object`. Value: `"+arguments[2]+"`.");(e=Zs(arguments[2])).x=arguments[0],e.y=arguments[1]}for(r=tu(r,e),eu("Creating an instance with the following configuration: %s.",JSON.stringify(r)),Gs.call(this),s=0;s<iu.length;s++)qs(this,iu[s],{configurable:!1,enumerable:!1,writable:!0,value:null});for(qs(this,"_clipPathId",{configurable:!1,enumerable:!1,writable:!1,value:to().toString()}),qs(this,"$",{configurable:!1,enumerable:!1,writable:!1,value:{}}),qs(this.$,"svg",{configurable:!1,enumerable:!1,writable:!1,value:{}}),t=Ys(r),s=0;s<t.length;s++)this[a=t[s]]=r[a];return this.on("change",o),this.on("render",l),this;function o(){eu("Received a change event."),n._autoRender&&n.render()}function l(e){eu("Received a render event."),n._autoView&&(eu("Viewer: %s.",n._viewer),eu("Generating view..."),no(n,n._viewer,e))}}eo(nu,Gs),qs(nu.prototype,"x",{configurable:!1,enumerable:!0,set:ao,get:so}),qs(nu.prototype,"y",{configurable:!1,enumerable:!0,set:oo,get:lo}),qs(nu.prototype,"labels",{configurable:!1,enumerable:!0,set:uo,get:go}),qs(nu.prototype,"isDefined",{configurable:!1,enumerable:!0,set:ho,get:co}),qs(nu.prototype,"colors",{configurable:!1,enumerable:!0,set:po,get:mo}),qs(nu.prototype,"lineStyle",{configurable:!1,enumerable:!0,set:yo,get:vo}),qs(nu.prototype,"lineOpacity",{configurable:!1,enumerable:!0,set:fo,get:bo}),qs(nu.prototype,"lineWidth",{configurable:!1,enumerable:!0,set:_o,get:xo}),qs(nu.prototype,"symbols",{configurable:!1,enumerable:!0,set:wo,get:Ro}),qs(nu.prototype,"symbolsSize",{configurable:!1,enumerable:!0,set:So,get:Oo}),qs(nu.prototype,"symbolsOpacity",{configurable:!1,enumerable:!0,set:To,get:No}),qs(nu.prototype,"width",{configurable:!1,enumerable:!0,set:Vo,get:ko}),qs(nu.prototype,"height",{configurable:!1,enumerable:!0,set:Eo,get:zo}),qs(nu.prototype,"paddingLeft",{configurable:!1,enumerable:!0,set:jo,get:Po}),qs(nu.prototype,"paddingRight",{configurable:!1,enumerable:!0,set:Ao,get:Co}),qs(nu.prototype,"paddingTop",{configurable:!1,enumerable:!0,set:Mo,get:Fo}),qs(nu.prototype,"paddingBottom",{configurable:!1,enumerable:!0,set:Jo,get:Lo}),qs(nu.prototype,"xMin",{configurable:!1,enumerable:!0,set:Do,get:Io}),qs(nu.prototype,"xMax",{configurable:!1,enumerable:!0,set:Wo,get:Bo}),qs(nu.prototype,"yMin",{configurable:!1,enumerable:!0,set:Uo,get:$o}),qs(nu.prototype,"yMax",{configurable:!1,enumerable:!0,set:Ho,get:Go}),qs(nu.prototype,"xScale",{configurable:!1,enumerable:!0,set:Xo,get:Yo}),qs(nu.prototype,"yScale",{configurable:!1,enumerable:!0,set:qo,get:Ko}),qs(nu.prototype,"xTickFormat",{configurable:!1,enumerable:!0,set:Qo,get:Zo}),qs(nu.prototype,"yTickFormat",{configurable:!1,enumerable:!0,set:el,get:il}),qs(nu.prototype,"xNumTicks",{configurable:!1,enumerable:!0,set:tl,get:nl}),qs(nu.prototype,"yNumTicks",{configurable:!1,enumerable:!0,set:rl,get:al}),qs(nu.prototype,"xAxisOrient",{configurable:!1,enumerable:!0,set:sl,get:ol}),qs(nu.prototype,"yAxisOrient",{configurable:!1,enumerable:!0,set:ll,get:ul}),qs(nu.prototype,"xRug",{configurable:!1,enumerable:!0,set:gl,get:hl}),qs(nu.prototype,"yRug",{configurable:!1,enumerable:!0,set:cl,get:pl}),qs(nu.prototype,"xRugOrient",{configurable:!1,enumerable:!0,set:ml,get:yl}),qs(nu.prototype,"yRugOrient",{configurable:!1,enumerable:!0,set:dl,get:vl}),qs(nu.prototype,"xRugOpacity",{configurable:!1,enumerable:!0,set:fl,get:bl}),qs(nu.prototype,"yRugOpacity",{configurable:!1,enumerable:!0,set:_l,get:xl}),qs(nu.prototype,"xRugSize",{configurable:!1,enumerable:!0,set:wl,get:Rl}),qs(nu.prototype,"yRugSize",{configurable:!1,enumerable:!0,set:Sl,get:Ol}),qs(nu.prototype,"description",{configurable:!1,enumerable:!0,set:Tl,get:Nl}),qs(nu.prototype,"title",{configurable:!1,enumerable:!0,set:Vl,get:kl}),qs(nu.prototype,"xLabel",{configurable:!1,enumerable:!0,set:El,get:zl}),qs(nu.prototype,"yLabel",{configurable:!1,enumerable:!0,set:jl,get:Pl}),qs(nu.prototype,"engine",{configurable:!1,enumerable:!0,set:Al,get:Cl}),qs(nu.prototype,"autoRender",{configurable:!1,enumerable:!0,set:Ml,get:Fl}),qs(nu.prototype,"renderFormat",{configurable:!1,enumerable:!0,set:Jl,get:Ll}),qs(nu.prototype,"viewer",{configurable:!1,enumerable:!0,set:Dl,get:Il}),qs(nu.prototype,"autoView",{configurable:!1,enumerable:!0,set:Wl,get:Bl}),qs(nu.prototype,"graphWidth",{configurable:!1,enumerable:!0,get:Ul}),qs(nu.prototype,"graphHeight",{configurable:!1,enumerable:!0,get:$l}),qs(nu.prototype,"xDomain",{configurable:!1,enumerable:!0,get:Hl}),qs(nu.prototype,"yDomain",{configurable:!1,enumerable:!0,get:Gl}),qs(nu.prototype,"xRange",{configurable:!1,enumerable:!0,get:Xl}),qs(nu.prototype,"yRange",{configurable:!1,enumerable:!0,get:Yl}),qs(nu.prototype,"xPos",{configurable:!1,enumerable:!0,get:ql}),qs(nu.prototype,"yPos",{configurable:!1,enumerable:!0,get:Kl}),Ks(nu.prototype,"render",Ql),Ks(nu.prototype,"view",Zl);var ru=s,au=o,su=nu;function ou(e){var i;if(arguments.length){if(!ru(e))throw new TypeError("invalid argument. `options` argument must be a plain object. Value: `"+e+"`");i=au(e)}else i={};return t;function t(e,t){return 2===arguments.length?new su(e,t,i):new su(i)}}var lu=e,uu=nu,gu=ou;lu(uu,"factory",gu);export default uu; //# sourceMappingURL=ctor.js.map