forked from stdlib-js/stdlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstdlib-plot-flat.min.js
More file actions
2 lines (2 loc) · 306 KB
/
stdlib-plot-flat.min.js
File metadata and controls
2 lines (2 loc) · 306 KB
1
2
/* @license Apache-2.0 AND BSL-1.0 */
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).stdlib_plot_flat=e()}}(function(){var e,t,n=(e=function(e,t){(function(e){"use strict";var n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=e,t.SlowBuffer=function(t){+t!=t&&(t=0);return e.alloc(+t)},t.INSPECT_MAX_BYTES=50;var r=2147483647;function i(t){if(t>r)throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=new Uint8Array(t);return Object.setPrototypeOf(n,e.prototype),n}function e(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return o(e)}return u(e,t,n)}function u(t,n,r){if("string"==typeof t)return function(t,n){"string"==typeof n&&""!==n||(n="utf8");if(!e.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var r=0|c(t,n),u=i(r),a=u.write(t,n);a!==r&&(u=u.slice(0,a));return u}(t,n);if(ArrayBuffer.isView(t))return s(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(P(t,ArrayBuffer)||t&&P(t.buffer,ArrayBuffer))return function(t,n,r){if(n<0||t.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<n+(r||0))throw new RangeError('"length" is outside of buffer bounds');var i;i=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);return Object.setPrototypeOf(i,e.prototype),i}(t,n,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var u=t.valueOf&&t.valueOf();if(null!=u&&u!==t)return e.from(u,n,r);var a=function(t){if(e.isBuffer(t)){var n=0|l(t.length),r=i(n);return 0===r.length?r:(t.copy(r,0,0,n),r)}if(void 0!==t.length)return"number"!=typeof t.length||L(t.length)?i(0):s(t);if("Buffer"===t.type&&Array.isArray(t.data))return s(t.data)}(t);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return e.from(t[Symbol.toPrimitive]("string"),n,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function a(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function o(e){return a(e),i(e<0?0:0|l(e))}function s(e){for(var t=e.length<0?0:0|l(e.length),n=i(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function l(e){if(e>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function c(t,n){if(e.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||P(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var u=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return R(t).length;default:if(u)return i?-1:B(t).length;n=(""+n).toLowerCase(),u=!0}}function f(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function h(t,n,r,i,u){if(0===t.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),L(r=+r)&&(r=u?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(u)return-1;r=t.length-1}else if(r<0){if(!u)return-1;r=0}if("string"==typeof n&&(n=e.from(n,i)),e.isBuffer(n))return 0===n.length?-1:p(t,n,r,i,u);if("number"==typeof n)return n&=255,"function"==typeof Uint8Array.prototype.indexOf?u?Uint8Array.prototype.indexOf.call(t,n,r):Uint8Array.prototype.lastIndexOf.call(t,n,r):p(t,[n],r,i,u);throw new TypeError("val must be string, number or Buffer")}function p(e,t,n,r,i){var u,a=1,o=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(u=n;u<o;u++)if(l(e,u)===l(t,-1===c?0:u-c)){if(-1===c&&(c=u),u-c+1===s)return c*a}else-1!==c&&(u-=u-c),c=-1}else for(n+s>o&&(n=o-s),u=n;u>=0;u--){for(var f=!0,h=0;h<s;h++)if(l(e,u+h)!==l(t,h)){f=!1;break}if(f)return u}return-1}function d(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var u=t.length;r>u/2&&(r=u/2);for(var a=0;a<r;++a){var o=parseInt(t.substr(2*a,2),16);if(L(o))return a;e[n+a]=o}return a}function g(e,t,n,r){return V(B(t,e.length-n),e,n,r)}function v(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function y(e,t,n,r){return v(e,t,n,r)}function m(e,t,n,r){return V(R(t),e,n,r)}function b(e,t,n,r){return V(function(e,t){for(var n,r,i,u=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,u.push(i),u.push(r);return u}(t,e.length-n),e,n,r)}function _(e,t,n){return 0===t&&n===e.length?mn.fromByteArray(e):mn.fromByteArray(e.slice(t,n))}function w(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var u,a,o,s,l=e[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(u=e[i+1]))&&(s=(31&l)<<6|63&u)>127&&(c=s);break;case 3:u=e[i+1],a=e[i+2],128==(192&u)&&128==(192&a)&&(s=(15&l)<<12|(63&u)<<6|63&a)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:u=e[i+1],a=e[i+2],o=e[i+3],128==(192&u)&&128==(192&a)&&128==(192&o)&&(s=(15&l)<<18|(63&u)<<12|(63&a)<<6|63&o)>65535&&s<1114112&&(c=s)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=x));return n}(r)}t.kMaxLength=r,e.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),e.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(e.prototype,"parent",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.buffer}}),Object.defineProperty(e.prototype,"offset",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&e[Symbol.species]===e&&Object.defineProperty(e,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),e.poolSize=8192,e.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(e.prototype,Uint8Array.prototype),Object.setPrototypeOf(e,Uint8Array),e.alloc=function(e,t,n){return function(e,t,n){return a(e),e<=0?i(e):void 0!==t?"string"==typeof n?i(e).fill(t,n):i(e).fill(t):i(e)}(e,t,n)},e.allocUnsafe=function(e){return o(e)},e.allocUnsafeSlow=function(e){return o(e)},e.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==e.prototype},e.compare=function(t,n){if(P(t,Uint8Array)&&(t=e.from(t,t.offset,t.byteLength)),P(n,Uint8Array)&&(n=e.from(n,n.offset,n.byteLength)),!e.isBuffer(t)||!e.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===n)return 0;for(var r=t.length,i=n.length,u=0,a=Math.min(r,i);u<a;++u)if(t[u]!==n[u]){r=t[u],i=n[u];break}return r<i?-1:i<r?1:0},e.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},e.concat=function(t,n){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return e.alloc(0);var r;if(void 0===n)for(n=0,r=0;r<t.length;++r)n+=t[r].length;var i=e.allocUnsafe(n),u=0;for(r=0;r<t.length;++r){var a=t[r];if(P(a,Uint8Array)&&(a=e.from(a)),!e.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,u),u+=a.length}return i},e.byteLength=c,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},e.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},e.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},e.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?w(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,n);case"utf8":case"utf-8":return w(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},e.prototype.toLocaleString=e.prototype.toString,e.prototype.equals=function(t){if(!e.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===e.compare(this,t)},e.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},n&&(e.prototype[n]=e.prototype.inspect),e.prototype.compare=function(t,n,r,i,u){if(P(t,Uint8Array)&&(t=e.from(t,t.offset,t.byteLength)),!e.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===n&&(n=0),void 0===r&&(r=t?t.length:0),void 0===i&&(i=0),void 0===u&&(u=this.length),n<0||r>t.length||i<0||u>this.length)throw new RangeError("out of range index");if(i>=u&&n>=r)return 0;if(i>=u)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,i>>>=0,u>>>=0,this===t)return 0;for(var a=u-i,o=r-n,s=Math.min(a,o),l=this.slice(i,u),c=t.slice(n,r),f=0;f<s;++f)if(l[f]!==c[f]){a=l[f],o=c[f];break}return a<o?-1:o<a?1:0},e.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},e.prototype.indexOf=function(e,t,n){return h(this,e,t,n,!0)},e.prototype.lastIndexOf=function(e,t,n){return h(this,e,t,n,!1)},e.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var u=!1;;)switch(r){case"hex":return d(this,e,t,n);case"utf8":case"utf-8":return g(this,e,t,n);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return y(this,e,t,n);case"base64":return m(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b(this,e,t,n);default:if(u)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),u=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function C(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",u=t;u<n;++u)i+=O(e[u]);return i}function F(e,t,n){for(var r=e.slice(t,n),i="",u=0;u<r.length;u+=2)i+=String.fromCharCode(r[u]+256*r[u+1]);return i}function T(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(t,n,r,i,u,a){if(!e.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>u||n<a)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}function M(e,t,n,r,i,u){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,i){return t=+t,n>>>=0,i||M(e,0,n,4),Tn.write(e,t,n,r,23,4),n+4}function k(e,t,n,r,i){return t=+t,n>>>=0,i||M(e,0,n,8),Tn.write(e,t,n,r,52,8),n+8}e.prototype.slice=function(t,n){var r=this.length;t=~~t,n=void 0===n?r:~~n,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),n<0?(n+=r)<0&&(n=0):n>r&&(n=r),n<t&&(n=t);var i=this.subarray(t,n);return Object.setPrototypeOf(i,e.prototype),i},e.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);for(var r=this[e],i=1,u=0;++u<t&&(i*=256);)r+=this[e+u]*i;return r},e.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},e.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},e.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},e.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},e.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},e.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},e.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);for(var r=this[e],i=1,u=0;++u<t&&(i*=256);)r+=this[e+u]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},e.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);for(var r=t,i=1,u=this[e+--r];r>0&&(i*=256);)u+=this[e+--r]*i;return u>=(i*=128)&&(u-=Math.pow(2,8*t)),u},e.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},e.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},e.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},e.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},e.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},e.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),Tn.read(this,e,!0,23,4)},e.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),Tn.read(this,e,!1,23,4)},e.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),Tn.read(this,e,!0,52,8)},e.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),Tn.read(this,e,!1,52,8)},e.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,u=0;for(this[t]=255&e;++u<n&&(i*=256);)this[t+u]=e/i&255;return t+n},e.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,u=1;for(this[t+i]=255&e;--i>=0&&(u*=256);)this[t+i]=e/u&255;return t+n},e.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,255,0),this[t]=255&e,t+1},e.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},e.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},e.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},e.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},e.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var u=0,a=1,o=0;for(this[t]=255&e;++u<n&&(a*=256);)e<0&&0===o&&0!==this[t+u-1]&&(o=1),this[t+u]=(e/a>>0)-o&255;return t+n},e.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var u=n-1,a=1,o=0;for(this[t+u]=255&e;--u>=0&&(a*=256);)e<0&&0===o&&0!==this[t+u+1]&&(o=1),this[t+u]=(e/a>>0)-o&255;return t+n},e.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},e.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},e.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},e.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},e.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},e.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},e.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},e.prototype.writeDoubleLE=function(e,t,n){return k(this,e,t,!0,n)},e.prototype.writeDoubleBE=function(e,t,n){return k(this,e,t,!1,n)},e.prototype.copy=function(t,n,r,i){if(!e.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),n>=t.length&&(n=t.length),n||(n=0),i>0&&i<r&&(i=r),i===r)return 0;if(0===t.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-n<i-r&&(i=t.length-n+r);var u=i-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(n,r,i);else if(this===t&&r<n&&n<i)for(var a=u-1;a>=0;--a)t[a+n]=this[a+r];else Uint8Array.prototype.set.call(t,this.subarray(r,i),n);return u},e.prototype.fill=function(t,n,r,i){if("string"==typeof t){if("string"==typeof n?(i=n,n=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!e.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===t.length){var u=t.charCodeAt(0);("utf8"===i&&u<128||"latin1"===i)&&(t=u)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;var a;if(n>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(a=n;a<r;++a)this[a]=t;else{var o=e.isBuffer(t)?t:e.from(t,i),s=o.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(a=0;a<r-n;++a)this[a+n]=o[a%s]}return this};var S=/[^+/0-9A-Za-z-_]/g;function O(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,i=null,u=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&u.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&u.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&u.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&u.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;u.push(n)}else if(n<2048){if((t-=2)<0)break;u.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;u.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;u.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return u}function R(e){return mn.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function P(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function L(e){return e!=e}}).call(this,n({}).Buffer)},function(n){return t||e(t={exports:{},parent:n},t.exports),t.exports}),r="function"==typeof Object.defineProperty?Object.defineProperty:null;var i=function(){var e;if("function"!=typeof r)return!1;try{r({},"x",{}),e=!0}catch(t){e=!1}return e},u=Object.defineProperty;var a=function(e,t){return void 0!==e&&null!==e&&("symbol"==typeof t?t in Object(e):String(t)in Object(e))};var o=function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}();var s=function(){return o&&"symbol"==typeof Symbol.toStringTag},l=Object.prototype.toString;var c=function(e){return l.call(e)},f=Object.prototype.hasOwnProperty;var h=function(e,t){return void 0!==e&&null!==e&&f.call(e,t)},p="function"==typeof Symbol?Symbol.toStringTag:"";var d=function(e){var t,n,r;if(null===e||void 0===e)return l.call(e);n=e[p],t=h(e,p);try{e[p]=void 0}catch(t){return l.call(e)}return r=l.call(e),t?e[p]=n:delete e[p],r},g=s()?d:c;var v=Array.isArray?Array.isArray:function(e){return"[object Array]"===g(e)};var y=function(e){return"object"==typeof e&&null!==e&&!v(e)},m=Object.prototype,b=m.__defineGetter__,_=m.__defineSetter__,w=m.__lookupGetter__,x=m.__lookupSetter__;var E=function(e,t,n){var r,i,u,o;if(!y(e))throw new TypeError("invalid argument. First argument must be an object. Value: `"+e+"`.");if(!y(n))throw new TypeError("invalid argument. Property descriptor must be an object. Value: `"+n+"`.");if((i=a(n,"value"))&&(w.call(e,t)||x.call(e,t)?(r=e.__proto__,e.__proto__=m,delete e[t],e[t]=n.value,e.__proto__=r):e[t]=n.value),u=a(n,"get"),o=a(n,"set"),i&&(u||o))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return u&&b&&b.call(e,t,n.get),o&&_&&_.call(e,t,n.set),e},A=i()?u:E;var C=function(e,t,n){A(e,t,{configurable:!1,enumerable:!0,writable:!1,value:n})};var F=function(e,t,n){A(e,t,{configurable:!1,enumerable:!1,writable:!1,value:n})},T=Object.create||function(e){var t=function(){};return t.prototype=e,new t},D=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n},M=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function N(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=T(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}var k=N;N.EventEmitter=N,N.prototype._events=void 0,N.prototype._maxListeners=void 0;var S,O=10;try{var B={};Object.defineProperty&&Object.defineProperty(B,"x",{value:0}),S=0===B.x}catch(e){S=!1}function R(e){return void 0===e._maxListeners?N.defaultMaxListeners:e._maxListeners}function V(e,t,n,r){var i,u,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((u=e._events)?(u.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),u=e._events),a=u[t]):(u=e._events=T(null),e._eventsCount=0),a){if("function"==typeof a?a=u[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(i=R(e))&&i>0&&a.length>i){a.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');o.name="MaxListenersExceededWarning",o.emitter=e,o.type=t,o.count=a.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",o.name,o.message)}}else a=u[t]=n,++e._eventsCount;return e}function P(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function L(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=M.call(P,r);return i.listener=n,r.wrapFn=i,i}function j(e,t,n){var r=e._events;if(!r)return[];var i=r[t];return i?"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):I(i,i.length):[]}function z(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function I(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}S?Object.defineProperty(N,"defaultMaxListeners",{enumerable:!0,get:function(){return O},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');O=e}}):N.defaultMaxListeners=O,N.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},N.prototype.getMaxListeners=function(){return R(this)},N.prototype.emit=function(e){var t,n,r,i,u,a,o="error"===e;if(a=this._events)o=o&&null==a.error;else if(!o)return!1;if(o){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var s=new Error('Unhandled "error" event. ('+t+")");throw s.context=t,s}if(!(n=a[e]))return!1;var l="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=I(e,r),u=0;u<r;++u)i[u].call(n)}(n,l,this);break;case 2:!function(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,u=I(e,i),a=0;a<i;++a)u[a].call(n,r)}(n,l,this,arguments[1]);break;case 3:!function(e,t,n,r,i){if(t)e.call(n,r,i);else for(var u=e.length,a=I(e,u),o=0;o<u;++o)a[o].call(n,r,i)}(n,l,this,arguments[1],arguments[2]);break;case 4:!function(e,t,n,r,i,u){if(t)e.call(n,r,i,u);else for(var a=e.length,o=I(e,a),s=0;s<a;++s)o[s].call(n,r,i,u)}(n,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),u=1;u<r;u++)i[u-1]=arguments[u];!function(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,u=I(e,i),a=0;a<i;++a)u[a].apply(n,r)}(n,l,this,i)}return!0},N.prototype.addListener=function(e,t){return V(this,e,t,!1)},N.prototype.on=N.prototype.addListener,N.prototype.prependListener=function(e,t){return V(this,e,t,!0)},N.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,L(this,e,t)),this},N.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,L(this,e,t)),this},N.prototype.removeListener=function(e,t){var n,r,i,u,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=T(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,u=n.length-1;u>=0;u--)if(n[u]===t||n[u].listener===t){a=n[u].listener,i=u;break}if(i<0)return this;0===i?n.shift():function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),r.removeListener&&this.emit("removeListener",e,a||t)}return this},N.prototype.removeAllListeners=function(e){var t,n,r;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=T(null),this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=T(null):delete n[e]),this;if(0===arguments.length){var i,u=D(n);for(r=0;r<u.length;++r)"removeListener"!==(i=u[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=T(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},N.prototype.listeners=function(e){return j(this,e,!0)},N.prototype.rawListeners=function(e){return j(this,e,!1)},N.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):z.call(e,t)},N.prototype.listenerCount=z,N.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var U=1e3,J=60*U,Y=60*J,H=24*Y,W=365.25*H;function q(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var X,$={};function G(e){function t(){if(t.enabled){var e=t,n=+new Date,r=n-(X||n);e.diff=r,e.prev=X,e.curr=n,X=n;for(var i=new Array(arguments.length),u=0;u<i.length;u++)i[u]=arguments[u];i[0]=$.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var a=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(t,n){if("%%"===t)return t;a++;var r=$.formatters[n];if("function"==typeof r){var u=i[a];t=r.call(e,u),i.splice(a,1),a--}return t}),$.formatArgs.call(e,i),(t.log||$.log||console.log.bind(console)).apply(e,i)}}return t.namespace=e,t.enabled=$.enabled(e),t.useColors=$.useColors(),t.color=function(e){var t,n=0;for(t in e)n=(n<<5)-n+e.charCodeAt(t),n|=0;return $.colors[Math.abs(n)%$.colors.length]}(e),"function"==typeof $.init&&$.init(t),t}($=$=G.debug=G.default=G).coerce=function(e){return e instanceof Error?e.stack||e.message:e},$.disable=function(){$.enable("")},$.enable=function(e){$.save(e),$.names=[],$.skips=[];for(var t=("string"==typeof e?e:"").split(/[\s,]+/),n=t.length,r=0;r<n;r++)t[r]&&("-"===(e=t[r].replace(/\*/g,".*?"))[0]?$.skips.push(new RegExp("^"+e.substr(1)+"$")):$.names.push(new RegExp("^"+e+"$")))},$.enabled=function(e){var t,n;for(t=0,n=$.skips.length;t<n;t++)if($.skips[t].test(e))return!1;for(t=0,n=$.names.length;t<n;t++)if($.names[t].test(e))return!0;return!1},$.humanize=function(e,t){t=t||{};var n,r=typeof e;if("string"===r&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*W;case"days":case"day":case"d":return n*H;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Y;case"minutes":case"minute":case"mins":case"min":case"m":return n*J;case"seconds":case"second":case"secs":case"sec":case"s":return n*U;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===r&&!1===isNaN(e))return t.long?q(n=e,H,"day")||q(n,Y,"hour")||q(n,J,"minute")||q(n,U,"second")||n+" ms":function(e){return e>=H?Math.round(e/H)+"d":e>=Y?Math.round(e/Y)+"h":e>=J?Math.round(e/J)+"m":e>=U?Math.round(e/U)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))},$.names=[],$.skips=[],$.formatters={};var Z,Q,K,ee=Z={};function te(){throw new Error("setTimeout has not been defined")}function ne(){throw new Error("clearTimeout has not been defined")}function re(e){if(Q===setTimeout)return setTimeout(e,0);if((Q===te||!Q)&&setTimeout)return Q=setTimeout,setTimeout(e,0);try{return Q(e,0)}catch(t){try{return Q.call(null,e,0)}catch(t){return Q.call(this,e,0)}}}!function(){try{Q="function"==typeof setTimeout?setTimeout:te}catch(e){Q=te}try{K="function"==typeof clearTimeout?clearTimeout:ne}catch(e){K=ne}}();var ie,ue=[],ae=!1,oe=-1;function se(){ae&&ie&&(ae=!1,ie.length?ue=ie.concat(ue):oe=-1,ue.length&&le())}function le(){if(!ae){var e=re(se);ae=!0;for(var t=ue.length;t;){for(ie=ue,ue=[];++oe<t;)ie&&ie[oe].run();oe=-1,t=ue.length}ie=null,ae=!1,function(e){if(K===clearTimeout)return clearTimeout(e);if((K===ne||!K)&&clearTimeout)return K=clearTimeout,clearTimeout(e);try{K(e)}catch(t){try{return K.call(null,e)}catch(t){return K.call(this,e)}}}(e)}}function ce(e,t){this.fun=e,this.array=t}function fe(){}ee.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];ue.push(new ce(e,t)),1!==ue.length||ae||re(le)},ce.prototype.run=function(){this.fun.apply(null,this.array)},ee.title="browser",ee.browser=!0,ee.env={},ee.argv=[],ee.version="",ee.versions={},ee.on=fe,ee.addListener=fe,ee.once=fe,ee.off=fe,ee.removeListener=fe,ee.removeAllListeners=fe,ee.emit=fe,ee.prependListener=fe,ee.prependOnceListener=fe,ee.listeners=function(e){return[]},ee.binding=function(e){throw new Error("process.binding is not supported")},ee.cwd=function(){return"/"},ee.chdir=function(e){throw new Error("process.chdir is not supported")},ee.umask=function(){return 0};var he={};(function(e){function t(){var t;try{t=he.storage.debug}catch(e){}return!t&&void 0!==e&&"env"in e&&(t=e.env.DEBUG),t}(he=he=$).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},he.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+he.humanize(this.diff),!t)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&"%c"===e&&(i=++r)}),e.splice(i,0,n)},he.save=function(e){try{null==e?he.storage.removeItem("debug"):he.storage.debug=e}catch(e){}},he.load=t,he.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},he.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),he.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],he.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},he.enable(t())}).call(this,Z);var pe=function(e){return Object.keys(Object(e))};var de=function(){return function(){return 2!==(pe(arguments)||"").length}(1,2)},ge=void 0!==Object.keys;var ve=function(e){return"[object Arguments]"===g(e)};var ye=function(){return ve(arguments)}();var me=function(e){return"string"==typeof e},be=String.prototype.valueOf;var _e=function(e){try{return be.call(e),!0}catch(e){return!1}},we=s();var xe=function(e){return"object"==typeof e&&(e instanceof String||(we?_e(e):"[object String]"===g(e)))};var Ee=function(e){return me(e)||xe(e)};F(Ee,"isPrimitive",me),F(Ee,"isObject",xe);var Ae=Ee;var Ce=function(e){return"number"==typeof e},Fe=Number,Te=Fe.prototype.toString,De=Boolean.prototype.toString;var Me=function(e){try{return De.call(e),!0}catch(e){return!1}};var Ne=function(e){try{return Te.call(e),!0}catch(e){return!1}},ke=s();var Se=function(e){return"object"==typeof e&&(e instanceof Fe||(ke?Ne(e):"[object Number]"===g(e)))};var Oe=function(e){return Ce(e)||Se(e)};F(Oe,"isPrimitive",Ce),F(Oe,"isObject",Se);var Be=Oe;var Re=function(e){return e!=e},Ve=Be.isPrimitive;var Pe=function(e){return Ve(e)&&Re(e)},Le=Be.isObject;var je=function(e){return Le(e)&&Re(e.valueOf())};var ze=function(e){return Pe(e)||je(e)};F(ze,"isPrimitive",Pe),F(ze,"isObject",je);var Ie=ze,Ue=Number.POSITIVE_INFINITY,Je=Fe.NEGATIVE_INFINITY,Ye=Math.floor;var He=function(e){return Ye(e)===e};var We=function(e){return e<Ue&&e>Je&&He(e)},qe=Be.isPrimitive;var Xe=function(e){return qe(e)&&We(e)},$e=Be.isObject;var Ge=function(e){return $e(e)&&We(e.valueOf())};var Ze=function(e){return Xe(e)||Ge(e)};F(Ze,"isPrimitive",Xe),F(Ze,"isObject",Ge);var Qe=Ze,Ke=Object.prototype.propertyIsEnumerable;var et=!Ke.call("beep","0"),tt=Ie.isPrimitive,nt=Qe.isPrimitive;var rt=function(e,t){var n;return void 0!==e&&null!==e&&(!(n=Ke.call(e,t))&&et&&Ae(e)?!tt(t=+t)&&nt(t)&&t>=0&&t<e.length:n)},it=4294967295;var ut=ye?ve:function(e){return null!==e&&"object"==typeof e&&!v(e)&&"number"==typeof e.length&&He(e.length)&&e.length>=0&&e.length<=it&&h(e,"callee")&&!rt(e,"callee")},at=Array.prototype.slice;var ot=function(e){return ut(e)?pe(at.call(e)):pe(e)};var st=function(e){if("function"!=typeof e)throw new TypeError("invalid argument. Must provide a function. Value: `"+e+"`.");return function(t){var n,r;if(!v(t))return!1;if(0===(n=t.length))return!1;for(r=0;r<n;r++)if(!1===e(t[r]))return!1;return!0}};var lt=function(e){return null!==e&&"object"==typeof e};F(lt,"isObjectLikeArray",st(lt));var ct=lt;var ft=rt(function(){},"prototype"),ht=!rt({toString:null},"toString"),pt=9007199254740991;var dt=function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.length&&He(e.length)&&e.length>=0&&e.length<=pt},gt=Ae.isPrimitive,vt=Qe.isPrimitive;var yt=function(e,t,n){var r,i;if(!dt(e)&&!gt(e))throw new TypeError("invalid argument. First argument must be an array-like object. Value: `"+e+"`.");if(0===(r=e.length))return-1;if(3===arguments.length){if(!vt(n))throw new TypeError("invalid argument. `fromIndex` must be an integer. Value: `"+n+"`.");if(n>=0){if(n>=r)return-1;i=n}else(i=r+n)<0&&(i=0)}else i=0;if(Ie(t)){for(;i<r;i++)if(Ie(e[i]))return i}else for(;i<r;i++)if(e[i]===t)return i;return-1},mt=/./;var bt=function(e){return"boolean"==typeof e},_t=s();var wt=function(e){return"object"==typeof e&&(e instanceof Boolean||(_t?Me(e):"[object Boolean]"===g(e)))};var xt=function(e){return bt(e)||wt(e)};F(xt,"isPrimitive",bt),F(xt,"isObject",wt);var Et=xt;var At=function(){return new Function("return this;")()},Ct="object"==typeof self?self:null,Ft="object"==typeof window?window:null,Tt={};(function(e){"use strict";Tt="object"==typeof e?e:null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var Dt=Et.isPrimitive;var Mt=function(e){if(arguments.length){if(!Dt(e))throw new TypeError("invalid argument. Must provide a boolean primitive. Value: `"+e+"`.");if(e)return At()}if(Ct)return Ct;if(Ft)return Ft;if(Tt)return Tt;throw new Error("unexpected error. Unable to resolve global object.")}(),Nt=Mt.document&&Mt.document.childNodes,kt=Int8Array;var St=/^\s*function\s*([^(]*)/i;var Ot=function(e){return ct(e)&&(e._isBuffer||e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))};var Bt=function(e){var t,n,r;if(("Object"===(n=g(e).slice(8,-1))||"Error"===n)&&e.constructor){if("string"==typeof(r=e.constructor).name)return r.name;if(t=St.exec(r.toString()))return t[1]}return Ot(e)?"Buffer":n};var Rt=function(e){var t;return null===e?"null":"object"==(t=typeof e)?Bt(e).toLowerCase():t};var Vt=function(e){return Bt(e).toLowerCase()},Pt=function(){return"function"==typeof mt||"object"==typeof kt||"function"==typeof Nt}()?Vt:Rt;var Lt=function(e){return e.constructor&&e.constructor.prototype===e},jt=["console","external","frame","frameElement","frames","innerHeight","innerWidth","outerHeight","outerWidth","pageXOffset","pageYOffset","parent","scrollLeft","scrollTop","scrollX","scrollY","self","webkitIndexedDB","webkitStorageInfo","window"],zt="undefined"==typeof window?void 0:window;var It=function(){var e;if("undefined"===Pt(zt))return!1;for(e in zt)try{-1===yt(jt,e)&&h(zt,e)&&null!==zt[e]&&"object"===Pt(zt[e])&&Lt(zt[e])}catch(e){return!0}return!1}(),Ut="undefined"!=typeof window;var Jt=function(e){if(!1===Ut&&!It)return Lt(e);try{return Lt(e)}catch(e){return!1}},Yt=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var Ht=function(e){var t,n,r,i,u,a,o;if(i=[],ut(e)){for(o=0;o<e.length;o++)i.push(o.toString());return i}if("string"==typeof e){if(e.length>0&&!h(e,"0"))for(o=0;o<e.length;o++)i.push(o.toString())}else{if(!1==(r="function"==typeof e)&&!ct(e))return i;n=ft&&r}for(u in e)n&&"prototype"===u||!h(e,u)||i.push(String(u));if(ht)for(t=Jt(e),o=0;o<Yt.length;o++)a=Yt[o],t&&"constructor"===a||!h(e,a)||i.push(String(a));return i},Wt=ge?de()?ot:pe:Ht;var qt=function(e){return"function"===Pt(e)},Xt=Object.getPrototypeOf;var $t=function(e){return e.__proto__};var Gt=function(e){var t=$t(e);return t||null===t?t:"[object Function]"===g(e.constructor)?e.constructor.prototype:e instanceof Object?Object.prototype:null},Zt=qt(Object.getPrototypeOf)?Xt:Gt;var Qt=function(e){return null===e||void 0===e?null:(e=Object(e),Zt(e))},Kt=Object.prototype;var en=function(e){var t;return!!y(e)&&(!(t=Qt(e))||!h(e,"constructor")&&h(t,"constructor")&&qt(t.constructor)&&"[object Function]"===g(t.constructor)&&h(t,"isPrototypeOf")&&qt(t.isPrototypeOf)&&(t===Kt||function(e){var t;for(t in e)if(!h(e,t))return!1;return!0}(e)))},tn=Qe.isPrimitive;var nn=function(e){return tn(e)&&e>=0},rn=Qe.isObject;var un=function(e){return rn(e)&&e.valueOf()>=0};var an=function(e){return nn(e)||un(e)};F(an,"isPrimitive",nn),F(an,"isObject",un);var on=an;var sn=function(e){if("object"!=typeof e||null===e)return!1;if(e instanceof Error)return!0;for(;e;){if("[object Error]"===g(e))return!0;e=Qt(e)}return!1},ln=/^\/((?:\\\/|[^\/])+)\/([imgy]*)$/,cn=Ae.isPrimitive;var fn=function(e){if(!cn(e))throw new TypeError("invalid argument. Must provide a regular expression string. Value: `"+e+"`.");return(e=ln.exec(e))?new RegExp(e[1],e[2]):null},hn=void 0!==Object.getOwnPropertyNames,pn=Object.getOwnPropertyNames;var dn=hn?function(e){return pn(Object(e))}:function(e){return Wt(Object(e))},gn=void 0!==Object.getOwnPropertyDescriptor,vn=Object.getOwnPropertyDescriptor;for(var yn=gn?function(e,t){var n;return null===e||void 0===e?null:void 0===(n=vn(e,t))?null:n}:function(e,t){return h(e,t)?{configurable:!0,enumerable:!0,writable:!0,value:e[t]}:null},mn={byteLength:function(e){var t=Cn(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=Cn(e),i=r[0],u=r[1],a=new wn(function(e,t,n){return 3*(t+n)/4-n}(0,i,u)),o=0,s=u>0?i-4:i;for(n=0;n<s;n+=4)t=_n[e.charCodeAt(n)]<<18|_n[e.charCodeAt(n+1)]<<12|_n[e.charCodeAt(n+2)]<<6|_n[e.charCodeAt(n+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=255&t;2===u&&(t=_n[e.charCodeAt(n)]<<2|_n[e.charCodeAt(n+1)]>>4,a[o++]=255&t);1===u&&(t=_n[e.charCodeAt(n)]<<10|_n[e.charCodeAt(n+1)]<<4|_n[e.charCodeAt(n+2)]>>2,a[o++]=t>>8&255,a[o++]=255&t);return a},fromByteArray:function(e){for(var t,n=e.length,r=n%3,i=[],u=0,a=n-r;u<a;u+=16383)i.push(Fn(e,u,u+16383>a?a:u+16383));1===r?(t=e[n-1],i.push(bn[t>>2]+bn[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(bn[t>>10]+bn[t>>4&63]+bn[t<<2&63]+"="));return i.join("")}},bn=[],_n=[],wn="undefined"!=typeof Uint8Array?Uint8Array:Array,xn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",En=0,An=xn.length;En<An;++En)bn[En]=xn[En],_n[xn.charCodeAt(En)]=En;function Cn(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function Fn(e,t,n){for(var r,i,u=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),u.push(bn[(i=r)>>18&63]+bn[i>>12&63]+bn[i>>6&63]+bn[63&i]);return u.join("")}_n["-".charCodeAt(0)]=62,_n["_".charCodeAt(0)]=63;var Tn={read:function(e,t,n,r,i){var u,a,o=8*i-r-1,s=(1<<o)-1,l=s>>1,c=-7,f=n?i-1:0,h=n?-1:1,p=e[t+f];for(f+=h,u=p&(1<<-c)-1,p>>=-c,c+=o;c>0;u=256*u+e[t+f],f+=h,c-=8);for(a=u&(1<<-c)-1,u>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=h,c-=8);if(0===u)u=1-l;else{if(u===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),u-=l}return(p?-1:1)*a*Math.pow(2,u-r)},write:function(e,t,n,r,i,u){var a,o,s,l=8*u-i-1,c=(1<<l)-1,f=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:u-1,d=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+f>=1?h/s:h*Math.pow(2,1-f))*s>=2&&(a++,s/=2),a+f>=c?(o=0,a=c):a+f>=1?(o=(t*s-1)*Math.pow(2,i),a+=f):(o=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&o,p+=d,o/=256,i-=8);for(a=a<<i|o,l+=i;l>0;e[n+p]=255&a,p+=d,a/=256,l-=8);e[n+p-d]|=128*g}},Dn={};(function(e){"use strict";Dn="function"==typeof e?e:null}).call(this,n({}).Buffer);var Mn=function(){var e,t;if("function"!=typeof Dn)return!1;try{t="function"==typeof Dn.from?Dn.from([1,2,3,4]):new Dn([1,2,3,4]),e=Ot(t)&&1===t[0]&&2===t[1]&&3===t[2]&&4===t[3]}catch(t){e=!1}return e},Nn=n({}).Buffer;var kn=function(){throw new Error("not implemented")},Sn=Mn()?Nn:kn;var On=qt(Sn.from)?function(e){if(!Ot(e))throw new TypeError("invalid argument. Must provide a Buffer. Value: `"+e+"`");return Sn.from(e)}:function(e){if(!Ot(e))throw new TypeError("invalid argument. Must provide a Buffer. Value: `"+e+"`");return new Sn(e)},Bn="function"==typeof Int8Array;var Rn=function(e){return Bn&&e instanceof Int8Array||"[object Int8Array]"===g(e)},Vn=127,Pn=-128,Ln="function"==typeof Int8Array?Int8Array:null;var jn="function"==typeof Int8Array?Int8Array:null;var zn=function(){throw new Error("not implemented")},In=function(){var e,t;if("function"!=typeof Ln)return!1;try{t=new Ln([1,3.14,-3.14,Vn+1]),e=Rn(t)&&1===t[0]&&3===t[1]&&-3===t[2]&&t[3]===Pn}catch(t){e=!1}return e}()?jn:zn,Un="function"==typeof Uint8Array;var Jn=function(e){return Un&&e instanceof Uint8Array||"[object Uint8Array]"===g(e)},Yn=255,Hn="function"==typeof Uint8Array?Uint8Array:null;var Wn="function"==typeof Uint8Array?Uint8Array:null;var qn=function(){throw new Error("not implemented")},Xn=function(){var e,t;if("function"!=typeof Hn)return!1;try{t=new Hn(t=[1,3.14,-3.14,Yn+1,Yn+2]),e=Jn(t)&&1===t[0]&&3===t[1]&&t[2]===Yn-2&&0===t[3]&&1===t[4]}catch(t){e=!1}return e}()?Wn:qn,$n="function"==typeof Uint8ClampedArray;var Gn=function(e){return $n&&e instanceof Uint8ClampedArray||"[object Uint8ClampedArray]"===g(e)},Zn="function"==typeof Uint8ClampedArray?Uint8ClampedArray:null;var Qn="function"==typeof Uint8ClampedArray?Uint8ClampedArray:null;var Kn=function(){throw new Error("not implemented")},er=function(){var e,t;if("function"!=typeof Zn)return!1;try{t=new Zn([-1,0,1,3.14,4.99,255,256]),e=Gn(t)&&0===t[0]&&0===t[1]&&1===t[2]&&3===t[3]&&5===t[4]&&255===t[5]&&255===t[6]}catch(t){e=!1}return e}()?Qn:Kn,tr="function"==typeof Int16Array;var nr=function(e){return tr&&e instanceof Int16Array||"[object Int16Array]"===g(e)},rr=32767,ir=-32768,ur="function"==typeof Int16Array?Int16Array:null;var ar="function"==typeof Int16Array?Int16Array:null;var or=function(){throw new Error("not implemented")},sr=function(){var e,t;if("function"!=typeof ur)return!1;try{t=new ur([1,3.14,-3.14,rr+1]),e=nr(t)&&1===t[0]&&3===t[1]&&-3===t[2]&&t[3]===ir}catch(t){e=!1}return e}()?ar:or,lr="function"==typeof Uint16Array;var cr=function(e){return lr&&e instanceof Uint16Array||"[object Uint16Array]"===g(e)},fr=65535,hr="function"==typeof Uint16Array?Uint16Array:null;var pr="function"==typeof Uint16Array?Uint16Array:null;var dr=function(){throw new Error("not implemented")},gr=function(){var e,t;if("function"!=typeof hr)return!1;try{t=new hr(t=[1,3.14,-3.14,fr+1,fr+2]),e=cr(t)&&1===t[0]&&3===t[1]&&t[2]===fr-2&&0===t[3]&&1===t[4]}catch(t){e=!1}return e}()?pr:dr,vr="function"==typeof Int32Array;var yr=function(e){return vr&&e instanceof Int32Array||"[object Int32Array]"===g(e)},mr=2147483647,br=-2147483648,_r="function"==typeof Int32Array?Int32Array:null;var wr="function"==typeof Int32Array?Int32Array:null;var xr=function(){throw new Error("not implemented")},Er=function(){var e,t;if("function"!=typeof _r)return!1;try{t=new _r([1,3.14,-3.14,mr+1]),e=yr(t)&&1===t[0]&&3===t[1]&&-3===t[2]&&t[3]===br}catch(t){e=!1}return e}()?wr:xr,Ar="function"==typeof Uint32Array;var Cr=function(e){return Ar&&e instanceof Uint32Array||"[object Uint32Array]"===g(e)},Fr="function"==typeof Uint32Array?Uint32Array:null;var Tr="function"==typeof Uint32Array?Uint32Array:null;var Dr=function(){throw new Error("not implemented")},Mr=function(){var e,t;if("function"!=typeof Fr)return!1;try{t=new Fr(t=[1,3.14,-3.14,it+1,it+2]),e=Cr(t)&&1===t[0]&&3===t[1]&&t[2]===it-2&&0===t[3]&&1===t[4]}catch(t){e=!1}return e}()?Tr:Dr,Nr="function"==typeof Float32Array;var kr=function(e){return Nr&&e instanceof Float32Array||"[object Float32Array]"===g(e)},Sr="function"==typeof Float32Array?Float32Array:null;var Or="function"==typeof Float32Array?Float32Array:null;var Br=function(){throw new Error("not implemented")},Rr=function(){var e,t;if("function"!=typeof Sr)return!1;try{t=new Sr([1,3.14,-3.14,5e40]),e=kr(t)&&1===t[0]&&3.140000104904175===t[1]&&-3.140000104904175===t[2]&&t[3]===Ue}catch(t){e=!1}return e}()?Or:Br,Vr="function"==typeof Float64Array;var Pr=function(e){return Vr&&e instanceof Float64Array||"[object Float64Array]"===g(e)},Lr="function"==typeof Float64Array?Float64Array:null;var jr=function(){var e,t;if("function"!=typeof Lr)return!1;try{t=new Lr([1,3.14,-3.14,NaN]),e=Pr(t)&&1===t[0]&&3.14===t[1]&&-3.14===t[2]&&t[3]!=t[3]}catch(t){e=!1}return e},zr="function"==typeof Float64Array?Float64Array:null;var Ir=function(){throw new Error("not implemented")},Ur=jr()?zr:Ir;function Jr(e){return new In(e)}function Yr(e){return new Xn(e)}function Hr(e){return new er(e)}function Wr(e){return new sr(e)}function qr(e){return new gr(e)}function Xr(e){return new Er(e)}function $r(e){return new Mr(e)}function Gr(e){return new Rr(e)}function Zr(e){return new Ur(e)}var Qr={int8array:Jr,uint8array:Yr,uint8clampedarray:Hr,int16array:Wr,uint16array:qr,int32array:Xr,uint32array:$r,float32array:Gr,float64array:Zr};function Kr(e,t,n,r,i){var u,a,o,s,l,c,f,p,d,g;if(i-=1,"object"!=typeof e||null===e)return e;if(Ot(e))return On(e);if(sn(e))return function(e){var t,n,r,i,u,a,o=[],s=[];for(u=new e.constructor(e.message),o.push(e),s.push(u),e.stack&&(u.stack=e.stack),e.code&&(u.code=e.code),e.errno&&(u.errno=e.errno),e.syscall&&(u.syscall=e.syscall),t=Wt(e),a=0;a<t.length;a++)i=t[a],n=yn(e,i),h(n,"value")&&(r=v(e[i])?[]:{},n.value=Kr(e[i],r,o,s,-1)),A(u,i,n);return u}(e);if("date"===(o=Pt(e)))return new Date(+e);if("regexp"===o)return fn(e.toString());if("set"===o)return new Set(e);if("map"===o)return new Map(e);if("string"===o||"boolean"===o||"number"===o)return e.valueOf();if(l=Qr[o])return l(e);if("array"!==o&&"object"!==o)return"function"==typeof Object.freeze?function(e){var t,n,r,i,u,a,o,s;for(t=[],i=[],o=Object.create(Qt(e)),t.push(e),i.push(o),n=dn(e),s=0;s<n.length;s++)r=n[s],u=yn(e,r),h(u,"value")&&(a=v(e[r])?[]:{},u.value=Kr(e[r],a,t,i,-1)),A(o,r,u);return Object.isExtensible(e)||Object.preventExtensions(o),Object.isSealed(e)&&Object.seal(o),Object.isFrozen(e)&&Object.freeze(o),o}(e):{};if(a=Wt(e),i>0)for(u=o,g=0;g<a.length;g++)p=e[c=a[g]],o=Pt(p),"object"!=typeof p||null===p||"array"!==o&&"object"!==o||Ot(p)?"object"===u?(s=yn(e,c),h(s,"value")&&(s.value=Kr(p)),A(t,c,s)):t[c]=Kr(p):-1===(d=yt(n,p))?(f=v(p)?new Array(p.length):{},n.push(p),r.push(f),"array"===u?t[c]=Kr(p,f,n,r,i):(s=yn(e,c),h(s,"value")&&(s.value=Kr(p,f,n,r,i)),A(t,c,s))):t[c]=r[d];else if("array"===o)for(g=0;g<a.length;g++)t[c=a[g]]=e[c];else for(g=0;g<a.length;g++)c=a[g],s=yn(e,c),A(t,c,s);return Object.isExtensible(e)||Object.preventExtensions(t),Object.isSealed(e)&&Object.seal(t),Object.isFrozen(e)&&Object.freeze(t),t}var ei=Kr,ti=on.isPrimitive;var ni=function(e,t){var n;if(arguments.length>1){if(!ti(t))throw new TypeError("invalid argument. `level` must be a nonnegative integer. Value: `"+t+"`.");if(0===t)return e}else t=Ue;return n=v(e)?new Array(e.length):{},ei(e,n,[e],[n],t)};var ri=function(e){var t=typeof e;return null===e||"object"!==t&&"function"!==t?new TypeError("invalid argument. A provided constructor must be either an object (except null) or a function. Value: `"+e+"`."):null},ii=Object.create;function ui(){}var ai="function"==typeof ii?ii:function(e){return ui.prototype=e,new ui};var oi=function(e,t){var n=ri(e);if(n)throw n;if(n=ri(t))throw n;if(void 0===t.prototype)throw new TypeError("invalid argument. Second argument must have a prototype from which another object can inherit. Value: `"+t.prototype+"`.");return e.prototype=ai(t.prototype),A(e.prototype,"constructor",{configurable:!0,enumerable:!1,writable:!0,value:e}),e},si={level:Ue,override:!0,extend:!0,copy:!0};var li=function e(t,n,r,i,u,a){var o,s,l,c,f,p,d,g,v;for(s=qt(u),r-=1,c=Wt(n),v=0;v<c.length;v++)if(p=c[v],(o=h(t,p))||a)if(d=n[p],o){if(f=t[p],l=Pt(f),!Ot(f)&&"object"===l&&y(d)&&r){e(f,d,r,i,u,a);continue}s?(g=u(f,d,p),i&&g!==f&&g===d&&(g=ni(g)),t[p]=g):u&&(t[p]=i?ni(d):d)}else t[p]=i?ni(d):d};var ci=function(e){return function(t){var n,r,i,u;if((n=arguments.length-1)<1)throw new Error("insufficient input arguments. Must provide both a target object and one or more source objects.");if(!y(t))throw new TypeError("invalid argument. First argument must be an object. Value: `"+t+"`.");for(i=new Array(n),u=0;u<n;u++){if(r=arguments[u+1],!y(r))throw new TypeError("invalid argument. A merge source must be an object. Value: `"+r+"`.");i[u]=r}for(u=0;u<n;u++)li(t,i[u],e.level,e.copy,e.override,e.extend);return t}},fi=ci(si),hi=Qe.isPrimitive;var pi=function(e){return hi(e)&&e>0},di=Qe.isObject;var gi=function(e){return di(e)&&e.valueOf()>0};var vi=function(e){return pi(e)||gi(e)};F(vi,"isPrimitive",pi),F(vi,"isObject",gi);var yi=vi,mi=Et.isPrimitive,bi=yi.isPrimitive;var _i=function(e,t){return en(t)?h(t,"level")&&(e.level=t.level,!bi(e.level))?new TypeError("invalid option. `level` option must be a positive integer. Option: `"+e.level+"`."):h(t,"copy")&&(e.copy=t.copy,!mi(e.copy))?new TypeError("invalid option. `copy` option must be a boolean primitive. Option: `"+e.copy+"`."):!h(t,"override")||(e.override=t.override,mi(e.override)||qt(e.override))?h(t,"extend")&&(e.extend=t.extend,!mi(e.extend))?new TypeError("invalid option. `extend` option must be a boolean primitive. Option: `"+e.extend+"`."):null:new TypeError("invalid option. `override` option must be either a boolean primitive or a function. Option: `"+e.override+"`."):new TypeError("invalid argument. Options argument must be an object. Value: `"+t+"`.")};F(fi,"factory",function(e){var t,n;if(t=ni(si),n=_i(t,e))throw n;return ci(t)});var wi=fi;var xi=function(e,t,n){A(e,t,{configurable:!1,enumerable:!1,get:n})};var Ei=function(e,t,n,r){A(e,t,{configurable:!1,enumerable:!1,get:n,set:r})},Ai=8;var Ci=function(e,t,n,r,i){var u,a,o,s;if(e<=0)return r;if(1===n&&1===i){if((o=e%Ai)>0)for(s=0;s<o;s++)r[s]=t[s];if(e<Ai)return r;for(s=o;s<e;s+=Ai)r[s]=t[s],r[s+1]=t[s+1],r[s+2]=t[s+2],r[s+3]=t[s+3],r[s+4]=t[s+4],r[s+5]=t[s+5],r[s+6]=t[s+6],r[s+7]=t[s+7];return r}for(u=n<0?(1-e)*n:0,a=i<0?(1-e)*i:0,s=0;s<e;s++)r[a]=t[u],u+=n,a+=i;return r},Fi=8;F(Ci,"ndarray",function(e,t,n,r,i,u,a){var o,s,l,c;if(e<=0)return i;if(o=r,s=a,1===n&&1===u){if((l=e%Fi)>0)for(c=0;c<l;c++)i[s]=t[o],o+=n,s+=u;if(e<Fi)return i;for(c=l;c<e;c+=Fi)i[s]=t[o],i[s+1]=t[o+1],i[s+2]=t[o+2],i[s+3]=t[o+3],i[s+4]=t[o+4],i[s+5]=t[o+5],i[s+6]=t[o+6],i[s+7]=t[o+7],o+=Fi,s+=Fi;return i}for(c=0;c<e;c++)i[s]=t[o],o+=n,s+=u;return i});var Ti=Ci,Di=[Ur,Rr,Er,Mr,sr,gr,In,Xn,er],Mi=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"],Ni=jr()?Qt(Ur):function(){};var ki=function(e){var t,n;if("object"!=typeof e||null===e)return!1;if(e instanceof Ni)return!0;for(n=0;n<Di.length;n++)if(e instanceof Di[n])return!0;for(;e;){for(t=Bt(e),n=0;n<Mi.length;n++)if(Mi[n]===t)return!0;e=Qt(e)}return!1};var Si=function(e,t){if("function"!=typeof t)throw new TypeError("invalid argument. `constructor` argument must be callable. Value: `"+t+"`.");return e instanceof t},Oi=[[Ur,"Float64Array"],[Rr,"Float32Array"],[Er,"Int32Array"],[Mr,"Uint32Array"],[sr,"Int16Array"],[gr,"Uint16Array"],[In,"Int8Array"],[Xn,"Uint8Array"],[er,"Uint8ClampedArray"]];var Bi=function(e){var t,n;for(n=0;n<Oi.length;n++)if(Si(e,Oi[n][0]))return Oi[n][1];for(;e;){for(t=Bt(e),n=0;n<Oi.length;n++)if(t===Oi[n][1])return Oi[n][1];e=Qt(e)}};var Ri=function(e){var t,n;if(!ki(e))throw new TypeError("invalid argument. Must provide a typed array. Value: `"+e+"`.");for((t={}).type=Bi(e),t.data=[],n=0;n<e.length;n++)t.data.push(e[n]);return t},Vi=mr-1;var Pi=function(){return 0|Ye(1+Vi*Math.random())},Li=Et.isPrimitive,ji=yi.isPrimitive,zi=mr-1|0,Ii=mr-1|0,Ui=16807,Ji=1,Yi=2,Hi=2,Wi=4,qi=5;function Xi(e,t){var n;return n=t?"option":"argument",e.length<qi+1?new RangeError("invalid "+n+". `state` array has insufficient length."):e[0]!==Ji?new RangeError("invalid "+n+". `state` array has an incompatible schema version. Expected: "+Ji+". Actual: "+e[0]+"."):e[1]!==Yi?new RangeError("invalid "+n+". `state` array has an incompatible number of sections. Expected: "+Yi+". Actual: "+e[1]+"."):1!==e[Hi]?new RangeError("invalid "+n+". `state` array has an incompatible state length. Expected: "+1..toString()+". Actual: "+e[Hi]+"."):e[Wi]!==e.length-qi?new RangeError("invalid "+n+". `state` array length is incompatible with seed section length. Expected: "+(e.length-qi)+". Actual: "+e[Wi]+"."):null}var $i=function(e){var t,n,r,i,u,a;if(r={},arguments.length){if(!en(e))throw new TypeError("invalid argument. Options argument must be an object. Value: `"+e+"`.");if(h(e,"copy")&&(r.copy=e.copy,!Li(e.copy)))throw new TypeError("invalid option. `copy` option must be a boolean. Option: `"+e.copy+"`.");if(h(e,"state")){if(n=e.state,r.state=!0,!yr(n))throw new TypeError("invalid option. `state` option must be an Int32Array. Option: `"+n+"`.");if(a=Xi(n,!0))throw a;!1===r.copy?t=n:(t=new Er(n.length),Ti(n.length,n,1,t,1)),n=new Er(t.buffer,t.byteOffset+(Hi+1)*t.BYTES_PER_ELEMENT,1),i=new Er(t.buffer,t.byteOffset+(Wi+1)*t.BYTES_PER_ELEMENT,n[Wi])}if(void 0===i)if(h(e,"seed"))if(i=e.seed,r.seed=!0,ji(i)){if(i>Ii)throw new RangeError("invalid option. `seed` option must be a positive integer less than the maximum signed 32-bit integer. Option: `"+i+"`.");i|=0}else{if(!(dt(i)&&i.length>0))throw new TypeError("invalid option. `seed` option must be either a positive integer less than the maximum signed 32-bit integer or an array-like object containing integer values less than the maximum signed 32-bit integer. Option: `"+i+"`.");u=i.length,(t=new Er(qi+u))[0]=Ji,t[1]=Yi,t[Hi]=1,t[Wi]=u,Ti.ndarray(u,i,1,0,t,1,Wi+1),n=new Er(t.buffer,t.byteOffset+(Hi+1)*t.BYTES_PER_ELEMENT,1),i=new Er(t.buffer,t.byteOffset+(Wi+1)*t.BYTES_PER_ELEMENT,u),n[0]=i[0]}else i=0|Pi()}else i=0|Pi();return void 0===n&&((t=new Er(qi+1))[0]=Ji,t[1]=Yi,t[Hi]=1,t[Wi]=1,t[Wi+1]=i,n=new Er(t.buffer,t.byteOffset+(Hi+1)*t.BYTES_PER_ELEMENT,1),i=new Er(t.buffer,t.byteOffset+(Wi+1)*t.BYTES_PER_ELEMENT,1),n[0]=i[0]),F(g,"NAME","minstd"),xi(g,"seed",o),xi(g,"seedLength",s),Ei(g,"state",f,p),xi(g,"stateLength",l),xi(g,"byteLength",c),F(g,"toJSON",d),F(g,"MIN",1),F(g,"MAX",mr-1),F(g,"normalized",v),F(v,"NAME",g.NAME),xi(v,"seed",o),xi(v,"seedLength",s),Ei(v,"state",f,p),xi(v,"stateLength",l),xi(v,"byteLength",c),F(v,"toJSON",d),F(v,"MIN",(g.MIN-1)/zi),F(v,"MAX",(g.MAX-1)/zi),g;function o(){var e=t[Wi];return Ti(e,i,1,new Er(e),1)}function s(){return t[Wi]}function l(){return t.length}function c(){return t.byteLength}function f(){var e=t.length;return Ti(e,t,1,new Er(e),1)}function p(e){var u;if(!yr(e))throw new TypeError("invalid argument. Must provide an Int32Array. Value: `"+e+"`.");if(u=Xi(e,!1))throw u;!1===r.copy?r.state&&e.length===t.length?Ti(e.length,e,1,t,1):(t=e,r.state=!0):(e.length!==t.length&&(t=new Er(e.length)),Ti(e.length,e,1,t,1)),n=new Er(t.buffer,t.byteOffset+(Hi+1)*t.BYTES_PER_ELEMENT,1),i=new Er(t.buffer,t.byteOffset+(Wi+1)*t.BYTES_PER_ELEMENT,t[Wi])}function d(){var e={type:"PRNG"};return e.name=g.NAME,e.state=Ri(t),e.params=[],e}function g(){var e=0|n[0];return e=Ui*e%mr|0,n[0]=e,0|e}function v(){return(g()-1)/zi}},Gi=$i({seed:Pi()});F(Gi,"factory",$i);var Zi=Gi;var Qi=function(e){console.log(JSON.stringify(e))};var Ki=function(e){console.log(JSON.stringify(e))};var eu=function(e,t,n){if("none"!==t){if("stdout"===t)return Qi(n);if("browser"===t)throw new Error("invalid argument. Must provide a supported viewer. Value: `"+t+"`.");if("terminal"!==t)throw new Error("invalid argument. Must provide a supported viewer. Value: `"+t+"`.")}};var tu=function(e,t,n){if("none"!==t){if("stdout"===t)return Ki(n);if("browser"===t)throw new Error("invalid argument. Must provide a supported viewer. Value: `"+t+"`.");if("terminal"!==t)throw new Error("invalid argument. Must provide a supported viewer. Value: `"+t+"`.")}};var nu=function(e){return function(){return e}}(!1),ru=Ie.isPrimitive,iu=he("plot:accessor:is-defined");var uu=function(e){var t=!ru(e);return iu("Datum: %s. Defined: %s.",JSON.stringify(e),t),t};var au=function(){var e,t;return e=nu(),(t={}).autoRender=!1,t.autoView=!1,t.colors="category10",t.description="",t.engine="svg",t.height=400,t.isDefined=uu,t.labels=[],t.lineOpacity=.9,t.lineStyle="-",t.lineWidth=2,t.paddingBottom=80,t.paddingLeft=90,t.paddingRight=20,t.paddingTop=80,t.renderFormat="vdom",t.symbols="none",t.symbolsOpacity=.9,t.symbolsSize=6,t.title="",t.viewer=e?"window":"none",t.width=400,t.x=[],t.xAxisOrient="bottom",t.xLabel="x",t.xMax=null,t.xMin=null,t.xNumTicks=5,t.xRug=!1,t.xRugOrient="bottom",t.xRugOpacity=.1,t.xRugSize=6,t.xScale="linear",t.xTickFormat=null,t.y=[],t.yAxisOrient="left",t.yLabel="y",t.yMax=null,t.yMin=null,t.yNumTicks=5,t.yRug=!1,t.yRugOrient="left",t.yRugOpacity=.1,t.yRugSize=6,t.yScale="linear",t.yTickFormat=null,t},ou=he("plot:set:x");var su=function(e){if(!v(e))throw new TypeError("invalid value. `x` must be an array. Value: `"+e+".`");ou("Current value: %s.",JSON.stringify(this._xData)),this._xData=e.slice(),ou("New Value: %s.",JSON.stringify(this._xData)),this.emit("change")};var lu=function(){return this._xData.slice()},cu=he("plot:set:y");var fu=function(e){if(!v(e))throw new TypeError("invalid value. `y` must be an array. Value: `"+e+".`");cu("Current value: %s.",JSON.stringify(this._yData)),this._yData=e.slice(),cu("New Value: %s.",JSON.stringify(this._yData)),this.emit("change")};var hu=function(){return this._yData.slice()};var pu=function(e){return v(e)&&0===e.length},du=st(Ae);F(du,"primitives",st(Ae.isPrimitive)),F(du,"objects",st(Ae.isObject));var gu=du,vu=gu.primitives,yu=he("plot:set:labels");var mu=function(e){if(!pu(e)&&!vu(e))throw new TypeError("invalid value. `labels` must be either an array of strings or an empty array. Value: `"+e+".`");yu("Current value: %s.",JSON.stringify(this._labels)),this._labels=e.slice(),yu("New Value: %s.",JSON.stringify(this._labels)),this.emit("change")};var bu=function(){return this._labels.slice()};var _u=function(){return this._labels.slice()},wu=he("plot:set:is-defined");var xu=function(e){if(!qt(e))throw new TypeError("invalid value. `isDefined` must be a function. Value: `"+e+".`");e!==this._isDefined&&(wu("Current value: %s.",this._isDefined),this._isDefined=e,wu("New Value: %s.",this._isDefined),this.emit("change"))};var Eu=function(){return this._isDefined};var Au=function(){return this._isDefined},Cu={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"]},Fu=Cu,Tu=Ae.isPrimitive,Du=gu.primitives,Mu=he("plot:set:colors");var Nu=function(e){var t=Tu(e);if(!t&&!Du(e))throw new TypeError("invalid value. `colors` must be either a string or a string array. Value: `"+e+".`");e=t?void 0===Fu[e]?[e]:Fu[e].slice():e.slice(),Mu("Current value: %s.",JSON.stringify(this._colors)),this._colors=e,Mu("New Value: %s.",JSON.stringify(this._colors)),this.emit("change")};var ku=function(){return this._colors.slice()},Su=["-","--",":","-.","none"],Ou=["-","--",":","-.","none"],Bu=Ae.isPrimitive,Ru=gu.primitives,Vu=he("plot:set:line-style");var Pu=function(e){var t,n=Bu(e);if(!n&&!Ru(e))throw new TypeError("invalid value. `lineStyle` must be a string or a string array. Value: `"+e+".`");for(e=n?[e]:e.slice(),t=0;t<e.length;t++)if(-1===yt(Ou,e[t]))throw new Error("invalid value. Unsupported/unrecognized line style. Must be one of `["+Ou.join(",")+"]`. Value: `"+e[t]+"`.");Vu("Current value: %s.",JSON.stringify(this._lineStyle)),this._lineStyle=e,Vu("New Value: %s.",JSON.stringify(this._lineStyle)),this.emit("change")};var Lu=function(){return this._lineStyle.slice()},ju=4294967295;var zu=function(e){return void 0!==e&&null!==e&&"function"!=typeof e&&"number"==typeof e.length&&He(e.length)&&e.length>=0&&e.length<=ju};var Iu=function(e){if("function"!=typeof e)throw new TypeError("invalid argument. Must provide a function. Value: `"+e+"`.");return function(t){var n,r;if(!zu(t))return!1;if(0===(n=t.length))return!1;for(r=0;r<n;r++)if(!1===e(t[r]))return!1;return!0}},Uu=Iu(Be);F(Uu,"primitives",Iu(Be.isPrimitive)),F(Uu,"objects",Iu(Be.isObject));var Ju=Uu,Yu=Be.isPrimitive,Hu=Ju.primitives,Wu=he("plot:set:line-opacity");var qu=function(e){var t,n=Yu(e);if(!n&&!Hu(e))throw new TypeError("invalid value. `lineOpacity` must be a number or number array. Value: `"+e+".`");for(e=n?[e]:e.slice(),t=0;t<e.length;t++)if(e[t]<0||e[t]>1)throw new RangeError("invalid value. A `lineOpacity` must be a number on the interval `[0,1]`. Value: `"+e[t]+"`.");Wu("Current value: %s.",JSON.stringify(this._lineOpacity)),this._lineOpacity=e,Wu("New Value: %s.",JSON.stringify(this._lineOpacity)),this.emit("change")};var Xu=function(){return this._lineOpacity.slice()},$u=Iu(on);F($u,"primitives",Iu(on.isPrimitive)),F($u,"objects",Iu(on.isObject));var Gu=$u,Zu=on.isPrimitive,Qu=Gu.primitives,Ku=he("plot:set:line-width");var ea=function(e){var t=Zu(e);if(!t&&!Qu(e))throw new TypeError("invalid value. `lineWidth` must be a nonnegative integer or nonnegative integer array. Value: `"+e+".`");e=t?[e]:e.slice(),Ku("Current value: %s.",JSON.stringify(this._lineWidth)),this._lineWidth=e,Ku("New Value: %s.",JSON.stringify(this._lineWidth)),this.emit("change")};var ta=function(){return this._lineWidth.slice()},na=["closed-circle","open-circle","none"],ra=Ae.isPrimitive,ia=gu.primitives,ua=he("plot:set:symbols");var aa=function(e){var t,n=ra(e);if(!n&&!ia(e))throw new TypeError("invalid value. `symbols` must be a string or string array. Value: `"+e+".`");for(e=n?[e]:e.slice(),t=0;t<e.length;t++)if(-1===yt(na,e[t]))throw new Error("invalid value. Unrecognized/unsupported symbol. Value: `["+e.join(",")+"]`.");ua("Current value: %s.",JSON.stringify(this._symbols)),this._symbols=e,ua("New Value: %s.",JSON.stringify(this._symbols)),this.emit("change")};var oa=function(){return this._symbols.slice()},sa=on.isPrimitive,la=Gu.primitives,ca=he("plot:set:symbols-size");var fa=function(e){var t=sa(e);if(!t&&!la(e))throw new TypeError("invalid value. `symbolsSize` must be a nonnegative integer or nonnegative integer array. Value: `"+e+".`");e=t?[e]:e.slice(),ca("Current value: %s.",JSON.stringify(this._symbolsSize)),this._symbolsSize=e,ca("New Value: %s.",JSON.stringify(this._symbolsSize)),this.emit("change")};var ha=function(){return this._symbolsSize.slice()},pa=Be.isPrimitive,da=Ju.primitives,ga=he("plot:set:symbols-opacity");var va=function(e){var t,n=pa(e);if(!n&&!da(e))throw new TypeError("invalid value. `symbolsOpacity` must be a number or number array. Value: `"+e+".`");for(e=n?[e]:e.slice(),t=0;t<e.length;t++)if(e[t]<0||e[t]>1)throw new RangeError("invalid value. A `symbolsOpacity` must be a number on the interval `[0,1]`. Value: `"+e[t]+"`.");ga("Current value: %s.",JSON.stringify(this._symbolsOpacity)),this._symbolsOpacity=e,ga("New Value: %s.",JSON.stringify(this._symbolsOpacity)),this.emit("change")};var ya=function(){return this._symbolsOpacity.slice()},ma=Be.isPrimitive;var ba=function(e){return ma(e)&&e>0},_a=Be.isObject;var wa=function(e){return _a(e)&&e.valueOf()>0};var xa=function(e){return ba(e)||wa(e)};F(xa,"isPrimitive",ba),F(xa,"isObject",wa);var Ea=xa,Aa=Ea.isPrimitive,Ca=he("plot:set:width");var Fa=function(e){if(!Aa(e))throw new TypeError("invalid value. `width` must be a positive number. Value: `"+e+".`");e!==this._width&&(Ca("Current value: %d.",this._width),this._width=e,Ca("New value: %d.",this._width),this.emit("change"))};var Ta=function(){return this._width};var Da=function(){return this._width},Ma=Ea.isPrimitive,Na=he("plot:set:height");var ka=function(e){if(!Ma(e))throw new TypeError("invalid value. `height` must be a positive number. Value: `"+e+".`");e!==this._height&&(Na("Current value: %d.",this._height),this._height=e,Na("New Value: %d.",this._height),this.emit("change"))};var Sa=function(){return this._height};var Oa=function(){return this._height},Ba=on.isPrimitive,Ra=he("plot:set:padding-left");var Va=function(e){if(!Ba(e))throw new TypeError("invalid value. `paddingLeft` must be a nonnegative integer. Value: `"+e+".`");e!==this._paddingLeft&&(Ra("Current value: %d.",this._paddingLeft),this._paddingLeft=e,Ra("New value: %d.",this._paddingLeft),this.emit("change"))};var Pa=function(){return this._paddingLeft};var La=function(){return this._paddingLeft},ja=on.isPrimitive,za=he("plot:set:padding-right");var Ia=function(e){if(!ja(e))throw new TypeError("invalid value. `paddingRight` must be a nonnegative integer. Value: `"+e+".`");e!==this._paddingRight&&(za("Current value: %d.",this._paddingRight),this._paddingRight=e,za("New value: %d.",this._paddingRight),this.emit("change"))};var Ua=function(){return this._paddingRight};var Ja=function(){return this._paddingRight},Ya=on.isPrimitive,Ha=he("plot:set:padding-top");var Wa=function(e){if(!Ya(e))throw new TypeError("invalid value. `paddingTop` must be a nonnegative integer. Value: `"+e+".`");e!==this._paddingTop&&(Ha("Current value: %d.",this._paddingTop),this._paddingTop=e,Ha("New value: %d.",this._paddingTop),this.emit("change"))};var qa=function(){return this._paddingTop};var Xa=function(){return this._paddingTop},$a=on.isPrimitive,Ga=he("plot:set:padding-bottom");var Za=function(e){if(!$a(e))throw new TypeError("invalid value. `paddingBottom` must be a nonnegative integer. Value: `"+e+".`");e!==this._paddingBottom&&(Ga("Current value: %d.",this._paddingBottom),this._paddingBottom=e,Ga("New value: %d.",this._paddingBottom),this.emit("change"))};var Qa=function(){return this._paddingBottom};var Ka=function(){return this._paddingBottom};var eo=function(e){return null===e},to=Be.isPrimitive,no=he("plot:set:x-min");var ro=function(e){if(!eo(e)&&!to(e))throw new TypeError("invalid value. `xMin` must be either a finite number, Date, or null. Value: `"+e+".`");no("Current value: %s.",this._xMin),this._xMin=e,no("New value: %s.",this._xMin),this.emit("change")};var io=function(e){var t,n;if(0===e.length)return null;for(t=e[0],n=1;n<e.length;n++)e[n]<t&&(t=e[n]);return t};var uo=function(){var e;return eo(this._xMin)?(e=function(e){var t,n;if(0===e.length)return null;for(t=new Array(e.length),n=0;n<e.length;n++)t[n]=io(e[n]);return io(t)}(this._xData),eo(e)?0:e):this._xMin},ao=Be.isPrimitive,oo=he("line:set:x-max");var so=function(e){if(!eo(e)&&!ao(e))throw new TypeError("invalid value. `xMax` must be either a finite number, Date, or null. Value: `"+e+".`");e!==this._xMax&&(oo("Current value: %s.",this._xMax),this._xMax=e,oo("New value: %s.",this._xMax),this.emit("change"))};var lo=function(e){var t,n;if(0===e.length)return null;for(t=e[0],n=1;n<e.length;n++)e[n]>t&&(t=e[n]);return t};var co=function(){var e;return eo(this._xMax)?(e=function(e){var t,n;if(0===e.length)return null;for(t=new Array(e.length),n=0;n<e.length;n++)t[n]=lo(e[n]);return lo(t)}(this._xData),eo(e)?1:e):this._xMax},fo=Be.isPrimitive,ho=he("plot:set:y-min");var po=function(e){if(!eo(e)&&!fo(e))throw new TypeError("invalid value. `yMin` must be either a finite number or null. Value: `"+e+".`");e!==this._yMin&&(ho("Current value: %d.",this._yMin),this._yMin=e,ho("New value: %d.",this._yMin),this.emit("change"))};var go=function(){var e;return eo(this._yMin)?(e=function(e){var t,n;if(0===e.length)return null;for(t=new Array(e.length),n=0;n<e.length;n++)t[n]=io(e[n]);return io(t)}(this._yData),eo(e)?0:e):this._yMin},vo=Be.isPrimitive,yo=he("plot:set:y-max");var mo=function(e){if(!eo(e)&&!vo(e))throw new TypeError("invalid value. `yMax` must be either a finite number or null. Value: `"+e+".`");e!==this._yMax&&(yo("Current value: %d.",this._yMax),this._yMax=e,yo("New value: %d.",this._yMax),this.emit("change"))};var bo=function(){var e;return eo(this._yMax)?(e=function(e){var t,n;if(0===e.length)return null;for(t=new Array(e.length),n=0;n<e.length;n++)t[n]=lo(e[n]);return lo(t)}(this._yData),eo(e)?1:e):this._yMax},_o={exports:{}};!function(e,t){"object"==typeof _o.exports?t(_o.exports):t(e.d3=e.d3||{})}(this,function(e){"use strict";function t(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function n(e){var n;return 1===e.length&&(n=e,e=function(e,r){return t(n(e),r)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var u=r+i>>>1;e(t[u],n)<0?r=u+1:i=u}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var u=r+i>>>1;e(t[u],n)>0?i=u:r=u+1}return r}}}var r=n(t),i=r.right,u=r.left;function a(e,t){return[e,t]}function o(e){return null===e?NaN:+e}function s(e,t){var n,r,i=e.length,u=0,a=-1,s=0,l=0;if(null==t)for(;++a<i;)isNaN(n=o(e[a]))||(l+=(r=n-s)*(n-(s+=r/++u)));else for(;++a<i;)isNaN(n=o(t(e[a],a,e)))||(l+=(r=n-s)*(n-(s+=r/++u)));if(u>1)return l/(u-1)}function l(e,t){var n=s(e,t);return n?Math.sqrt(n):n}function c(e,t){var n,r,i,u=e.length,a=-1;if(null==t){for(;++a<u;)if(null!=(n=e[a])&&n>=n)for(r=i=n;++a<u;)null!=(n=e[a])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++a<u;)if(null!=(n=t(e[a],a,e))&&n>=n)for(r=i=n;++a<u;)null!=(n=t(e[a],a,e))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]}var f=Array.prototype,h=f.slice,p=f.map;function d(e){return function(){return e}}function g(e){return e}function v(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),u=new Array(i);++r<i;)u[r]=e+r*n;return u}var y=Math.sqrt(50),m=Math.sqrt(10),b=Math.sqrt(2);function _(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),u=r/Math.pow(10,i);return i>=0?(u>=y?10:u>=m?5:u>=b?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(u>=y?10:u>=m?5:u>=b?2:1)}function w(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),u=r/i;return u>=y?i*=10:u>=m?i*=5:u>=b&&(i*=2),t<e?-i:i}function x(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1}function E(e,t,n){if(null==n&&(n=o),r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,u=Math.floor(i),a=+n(e[u],u,e);return a+(+n(e[u+1],u+1,e)-a)*(i-u)}}function A(e,t){var n,r,i=e.length,u=-1;if(null==t){for(;++u<i;)if(null!=(n=e[u])&&n>=n)for(r=n;++u<i;)null!=(n=e[u])&&r>n&&(r=n)}else for(;++u<i;)if(null!=(n=t(e[u],u,e))&&n>=n)for(r=n;++u<i;)null!=(n=t(e[u],u,e))&&r>n&&(r=n);return r}function C(e){if(!(i=e.length))return[];for(var t=-1,n=A(e,F),r=new Array(n);++t<n;)for(var i,u=-1,a=r[t]=new Array(i);++u<i;)a[u]=e[u][t];return r}function F(e){return e.length}e.bisect=i,e.bisectRight=i,e.bisectLeft=u,e.ascending=t,e.bisector=n,e.cross=function(e,t,n){var r,i,u,o,s=e.length,l=t.length,c=new Array(s*l);for(null==n&&(n=a),r=u=0;r<s;++r)for(o=e[r],i=0;i<l;++i,++u)c[u]=n(o,t[i]);return c},e.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},e.deviation=l,e.extent=c,e.histogram=function(){var e=g,t=c,n=x;function r(r){var u,a,o=r.length,s=new Array(o);for(u=0;u<o;++u)s[u]=e(r[u],u,r);var l=t(s),c=l[0],f=l[1],h=n(s,c,f);Array.isArray(h)||(h=w(c,f,h),h=v(Math.ceil(c/h)*h,f,h));for(var p=h.length;h[0]<=c;)h.shift(),--p;for(;h[p-1]>f;)h.pop(),--p;var d,g=new Array(p+1);for(u=0;u<=p;++u)(d=g[u]=[]).x0=u>0?h[u-1]:c,d.x1=u<p?h[u]:f;for(u=0;u<o;++u)c<=(a=s[u])&&a<=f&&g[i(h,a,0,p)].push(r[u]);return g}return r.value=function(t){return arguments.length?(e="function"==typeof t?t:d(t),r):e},r.domain=function(e){return arguments.length?(t="function"==typeof e?e:d([e[0],e[1]]),r):t},r.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?d(h.call(e)):d(e),r):n},r},e.thresholdFreedmanDiaconis=function(e,n,r){return e=p.call(e,o).sort(t),Math.ceil((r-n)/(2*(E(e,.75)-E(e,.25))*Math.pow(e.length,-1/3)))},e.thresholdScott=function(e,t,n){return Math.ceil((n-t)/(3.5*l(e)*Math.pow(e.length,-1/3)))},e.thresholdSturges=x,e.max=function(e,t){var n,r,i=e.length,u=-1;if(null==t){for(;++u<i;)if(null!=(n=e[u])&&n>=n)for(r=n;++u<i;)null!=(n=e[u])&&n>r&&(r=n)}else for(;++u<i;)if(null!=(n=t(e[u],u,e))&&n>=n)for(r=n;++u<i;)null!=(n=t(e[u],u,e))&&n>r&&(r=n);return r},e.mean=function(e,t){var n,r=e.length,i=r,u=-1,a=0;if(null==t)for(;++u<r;)isNaN(n=o(e[u]))?--i:a+=n;else for(;++u<r;)isNaN(n=o(t(e[u],u,e)))?--i:a+=n;if(i)return a/i},e.median=function(e,n){var r,i=e.length,u=-1,a=[];if(null==n)for(;++u<i;)isNaN(r=o(e[u]))||a.push(r);else for(;++u<i;)isNaN(r=o(n(e[u],u,e)))||a.push(r);return E(a.sort(t),.5)},e.merge=function(e){for(var t,n,r,i=e.length,u=-1,a=0;++u<i;)a+=e[u].length;for(n=new Array(a);--i>=0;)for(t=(r=e[i]).length;--t>=0;)n[--a]=r[t];return n},e.min=A,e.pairs=function(e,t){null==t&&(t=a);for(var n=0,r=e.length-1,i=e[0],u=new Array(r<0?0:r);n<r;)u[n]=t(i,i=e[++n]);return u},e.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},e.quantile=E,e.range=v,e.scan=function(e,n){if(r=e.length){var r,i,u=0,a=0,o=e[a];for(null==n&&(n=t);++u<r;)(n(i=e[u],o)<0||0!==n(o,o))&&(o=i,a=u);return 0===n(o,o)?a:void 0}},e.shuffle=function(e,t,n){for(var r,i,u=(null==n?e.length:n)-(t=null==t?0:+t);u;)i=Math.random()*u--|0,r=e[u+t],e[u+t]=e[i+t],e[i+t]=r;return e},e.sum=function(e,t){var n,r=e.length,i=-1,u=0;if(null==t)for(;++i<r;)(n=+e[i])&&(u+=n);else for(;++i<r;)(n=+t(e[i],i,e))&&(u+=n);return u},e.ticks=function(e,t,n){var r,i,u,a,o=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=_(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),u=new Array(i=Math.ceil(t-e+1));++o<i;)u[o]=(e+o)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),u=new Array(i=Math.ceil(e-t+1));++o<i;)u[o]=(e-o)/a;return r&&u.reverse(),u},e.tickIncrement=_,e.tickStep=w,e.transpose=C,e.variance=s,e.zip=function(){return C(arguments)},Object.defineProperty(e,"__esModule",{value:!0})}),_o=_o.exports;var wo={exports:{}};!function(e,t){"object"==typeof wo.exports?t(wo.exports):t(e.d3=e.d3||{})}(this,function(e){"use strict";function t(){}function n(e,n){var r=new t;if(e instanceof t)e.each(function(e,t){r.set(t,e)});else if(Array.isArray(e)){var i,u=-1,a=e.length;if(null==n)for(;++u<a;)r.set(u,e[u]);else for(;++u<a;)r.set(n(i=e[u],u,e),i)}else if(e)for(var o in e)r.set(o,e[o]);return r}function r(){return{}}function i(e,t,n){e[t]=n}function u(){return n()}function a(e,t,n){e.set(t,n)}function o(){}t.prototype=n.prototype={constructor:t,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var s=n.prototype;function l(e,t){var n=new o;if(e instanceof o)e.each(function(e){n.add(e)});else if(e){var r=-1,i=e.length;if(null==t)for(;++r<i;)n.add(e[r]);else for(;++r<i;)n.add(t(e[r],r,e))}return n}o.prototype=l.prototype={constructor:o,has:s.has,add:function(e){return this["$"+(e+="")]=e,this},remove:s.remove,clear:s.clear,values:s.keys,size:s.size,empty:s.empty,each:s.each},e.nest=function(){var e,t,o,s=[],l=[];function c(r,i,u,a){if(i>=s.length)return null!=e&&r.sort(e),null!=t?t(r):r;for(var o,l,f,h=-1,p=r.length,d=s[i++],g=n(),v=u();++h<p;)(f=g.get(o=d(l=r[h])+""))?f.push(l):g.set(o,[l]);return g.each(function(e,t){a(v,t,c(e,i,u,a))}),v}return o={object:function(e){return c(e,0,r,i)},map:function(e){return c(e,0,u,a)},entries:function(e){return function e(n,r){if(++r>s.length)return n;var i,u=l[r-1];return null!=t&&r>=s.length?i=n.entries():(i=[],n.each(function(t,n){i.push({key:n,values:e(t,r)})})),null!=u?i.sort(function(e,t){return u(e.key,t.key)}):i}(c(e,0,u,a),0)},key:function(e){return s.push(e),o},sortKeys:function(e){return l[s.length-1]=e,o},sortValues:function(t){return e=t,o},rollup:function(e){return t=e,o}}},e.set=l,e.map=n,e.keys=function(e){var t=[];for(var n in e)t.push(n);return t},e.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},e.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},Object.defineProperty(e,"__esModule",{value:!0})}),wo=wo.exports;var xo={exports:{}};!function(e,t){"object"==typeof xo.exports?t(xo.exports):t((e=e||self).d3=e.d3||{})}(this,function(e){"use strict";function t(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function n(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function r(){}var i="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",a="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",o=/^#([0-9a-f]{3})$/,s=/^#([0-9a-f]{6})$/,l=new RegExp("^rgb\\("+[i,i,i]+"\\)$"),c=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),f=new RegExp("^rgba\\("+[i,i,i,u]+"\\)$"),h=new RegExp("^rgba\\("+[a,a,a,u]+"\\)$"),p=new RegExp("^hsl\\("+[u,a,a]+"\\)$"),d=new RegExp("^hsla\\("+[u,a,a,u]+"\\)$"),g={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 v(){return this.rgb().formatHex()}function y(){return this.rgb().formatRgb()}function m(e){var t;return e=(e+"").trim().toLowerCase(),(t=o.exec(e))?new E((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=s.exec(e))?b(parseInt(t[1],16)):(t=l.exec(e))?new E(t[1],t[2],t[3],1):(t=c.exec(e))?new E(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=f.exec(e))?_(t[1],t[2],t[3],t[4]):(t=h.exec(e))?_(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=p.exec(e))?T(t[1],t[2]/100,t[3]/100,1):(t=d.exec(e))?T(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?b(g[e]):"transparent"===e?new E(NaN,NaN,NaN,0):null}function b(e){return new E(e>>16&255,e>>8&255,255&e,1)}function _(e,t,n,r){return r<=0&&(e=t=n=NaN),new E(e,t,n,r)}function w(e){return e instanceof r||(e=m(e)),e?new E((e=e.rgb()).r,e.g,e.b,e.opacity):new E}function x(e,t,n,r){return 1===arguments.length?w(e):new E(e,t,n,null==r?1:r)}function E(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function A(){return"#"+F(this.r)+F(this.g)+F(this.b)}function C(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function F(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function T(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new N(e,t,n,r)}function D(e){if(e instanceof N)return new N(e.h,e.s,e.l,e.opacity);if(e instanceof r||(e=m(e)),!e)return new N;if(e instanceof N)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,u=Math.min(t,n,i),a=Math.max(t,n,i),o=NaN,s=a-u,l=(a+u)/2;return s?(o=t===a?(n-i)/s+6*(n<i):n===a?(i-t)/s+2:(t-n)/s+4,s/=l<.5?a+u:2-a-u,o*=60):s=l>0&&l<1?0:o,new N(o,s,l,e.opacity)}function M(e,t,n,r){return 1===arguments.length?D(e):new N(e,t,n,null==r?1:r)}function N(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function k(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}t(r,m,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:v,formatHex:v,formatHsl:function(){return D(this).formatHsl()},formatRgb:y,toString:y}),t(E,x,n(r,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new E(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new E(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:A,formatHex:A,formatRgb:C,toString:C})),t(N,M,n(r,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new N(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new N(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new E(k(e>=240?e-240:e+120,i,r),k(e,i,r),k(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var S=Math.PI/180,O=180/Math.PI,B=.96422,R=1,V=.82521,P=4/29,L=6/29,j=3*L*L,z=L*L*L;function I(e){if(e instanceof J)return new J(e.l,e.a,e.b,e.opacity);if(e instanceof G)return Z(e);e instanceof E||(e=w(e));var t,n,r=q(e.r),i=q(e.g),u=q(e.b),a=Y((.2225045*r+.7168786*i+.0606169*u)/R);return r===i&&i===u?t=n=a:(t=Y((.4360747*r+.3850649*i+.1430804*u)/B),n=Y((.0139322*r+.0971045*i+.7141733*u)/V)),new J(116*a-16,500*(t-a),200*(a-n),e.opacity)}function U(e,t,n,r){return 1===arguments.length?I(e):new J(e,t,n,null==r?1:r)}function J(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Y(e){return e>z?Math.pow(e,1/3):e/j+P}function H(e){return e>L?e*e*e:j*(e-P)}function W(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function q(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function X(e){if(e instanceof G)return new G(e.h,e.c,e.l,e.opacity);if(e instanceof J||(e=I(e)),0===e.a&&0===e.b)return new G(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*O;return new G(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function $(e,t,n,r){return 1===arguments.length?X(e):new G(e,t,n,null==r?1:r)}function G(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Z(e){if(isNaN(e.h))return new J(e.l,0,0,e.opacity);var t=e.h*S;return new J(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}t(J,U,n(r,{brighter:function(e){return new J(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new J(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new E(W(3.1338561*(t=B*H(t))-1.6168667*(e=R*H(e))-.4906146*(n=V*H(n))),W(-.9787684*t+1.9161415*e+.033454*n),W(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),t(G,$,n(r,{brighter:function(e){return new G(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new G(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Z(this).rgb()}}));var Q=-.14861,K=1.78277,ee=-.29227,te=-.90649,ne=1.97294,re=ne*te,ie=ne*K,ue=K*ee-te*Q;function ae(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof oe)return new oe(e.h,e.s,e.l,e.opacity);e instanceof E||(e=w(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(ue*r+re*t-ie*n)/(ue+re-ie),u=r-i,a=(ne*(n-i)-ee*u)/te,o=Math.sqrt(a*a+u*u)/(ne*i*(1-i)),s=o?Math.atan2(a,u)*O-120:NaN;return new oe(s<0?s+360:s,o,i,e.opacity)}(e):new oe(e,t,n,null==r?1:r)}function oe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}t(oe,ae,n(r,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new oe(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new oe(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*S,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new E(255*(t+n*(Q*r+K*i)),255*(t+n*(ee*r+te*i)),255*(t+n*(ne*r)),this.opacity)}})),e.color=m,e.cubehelix=ae,e.gray=function(e,t){return new J(e,0,0,null==t?1:t)},e.hcl=$,e.hsl=M,e.lab=U,e.lch=function(e,t,n,r){return 1===arguments.length?X(e):new G(n,t,e,null==r?1:r)},e.rgb=x,Object.defineProperty(e,"__esModule",{value:!0})}),xo=xo.exports;var Eo={exports:{}};!function(e,t){"object"==typeof Eo.exports?t(Eo.exports,xo):t(e.d3=e.d3||{},e.d3)}(this,function(e,t){"use strict";function n(e,t,n,r,i){var u=e*e,a=u*e;return((1-3*e+3*u-a)*t+(4-6*u+3*a)*n+(1+3*e+3*u-3*a)*r+a*i)/6}function r(e){var t=e.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),u=e[i],a=e[i+1],o=i>0?e[i-1]:2*u-a,s=i<t-1?e[i+2]:2*a-u;return n((r-i/t)*t,o,u,a,s)}}function i(e){var t=e.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*t),u=e[(i+t-1)%t],a=e[i%t],o=e[(i+1)%t],s=e[(i+2)%t];return n((r-i/t)*t,u,a,o,s)}}function u(e){return function(){return e}}function a(e,t){return function(n){return e+n*t}}function o(e,t){var n=t-e;return n?a(e,n>180||n<-180?n-360*Math.round(n/360):n):u(isNaN(e)?t:e)}function s(e){return 1==(e=+e)?l:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):u(isNaN(t)?n:t)}}function l(e,t){var n=t-e;return n?a(e,n):u(isNaN(e)?t:e)}var c=function e(n){var r=s(n);function i(e,n){var i=r((e=t.rgb(e)).r,(n=t.rgb(n)).r),u=r(e.g,n.g),a=r(e.b,n.b),o=l(e.opacity,n.opacity);return function(t){return e.r=i(t),e.g=u(t),e.b=a(t),e.opacity=o(t),e+""}}return i.gamma=e,i}(1);function f(e){return function(n){var r,i,u=n.length,a=new Array(u),o=new Array(u),s=new Array(u);for(r=0;r<u;++r)i=t.rgb(n[r]),a[r]=i.r||0,o[r]=i.g||0,s[r]=i.b||0;return a=e(a),o=e(o),s=e(s),i.opacity=1,function(e){return i.r=a(e),i.g=o(e),i.b=s(e),i+""}}}var h=f(r),p=f(i);function d(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,u=new Array(i),a=new Array(r);for(n=0;n<i;++n)u[n]=w(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=u[n](e);return a}}function g(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}}function v(e,t){return t-=e=+e,function(n){return e+t*n}}function y(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=w(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var m=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,b=new RegExp(m.source,"g");function _(e,t){var n,r,i,u=m.lastIndex=b.lastIndex=0,a=-1,o=[],s=[];for(e+="",t+="";(n=m.exec(e))&&(r=b.exec(t));)(i=r.index)>u&&(i=t.slice(u,i),o[a]?o[a]+=i:o[++a]=i),(n=n[0])===(r=r[0])?o[a]?o[a]+=r:o[++a]=r:(o[++a]=null,s.push({i:a,x:v(n,r)})),u=b.lastIndex;return u<t.length&&(i=t.slice(u),o[a]?o[a]+=i:o[++a]=i),o.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)o[(n=s[r]).i]=n.x(e);return o.join("")})}function w(e,n){var r,i=typeof n;return null==n||"boolean"===i?u(n):("number"===i?v:"string"===i?(r=t.color(n))?(n=r,c):_:n instanceof t.color?c:n instanceof Date?g:Array.isArray(n)?d:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?y:v)(e,n)}var x,E,A,C,F=180/Math.PI,T={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function D(e,t,n,r,i,u){var a,o,s;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(s=e*n+t*r)&&(n-=e*s,r-=t*s),(o=Math.sqrt(n*n+r*r))&&(n/=o,r/=o,s/=o),e*r<t*n&&(e=-e,t=-t,s=-s,a=-a),{translateX:i,translateY:u,rotate:Math.atan2(t,e)*F,skewX:Math.atan(s)*F,scaleX:a,scaleY:o}}function M(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(u,a){var o=[],s=[];return u=e(u),a=e(a),function(e,r,i,u,a,o){if(e!==i||r!==u){var s=a.push("translate(",null,t,null,n);o.push({i:s-4,x:v(e,i)},{i:s-2,x:v(r,u)})}else(i||u)&&a.push("translate("+i+t+u+n)}(u.translateX,u.translateY,a.translateX,a.translateY,o,s),function(e,t,n,u){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),u.push({i:n.push(i(n)+"rotate(",null,r)-2,x:v(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(u.rotate,a.rotate,o,s),function(e,t,n,u){e!==t?u.push({i:n.push(i(n)+"skewX(",null,r)-2,x:v(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(u.skewX,a.skewX,o,s),function(e,t,n,r,u,a){if(e!==n||t!==r){var o=u.push(i(u)+"scale(",null,",",null,")");a.push({i:o-4,x:v(e,n)},{i:o-2,x:v(t,r)})}else 1===n&&1===r||u.push(i(u)+"scale("+n+","+r+")")}(u.scaleX,u.scaleY,a.scaleX,a.scaleY,o,s),u=a=null,function(e){for(var t,n=-1,r=s.length;++n<r;)o[(t=s[n]).i]=t.x(e);return o.join("")}}}var N=M(function(e){return"none"===e?T:(x||(x=document.createElement("DIV"),E=document.documentElement,A=document.defaultView),x.style.transform=e,e=A.getComputedStyle(E.appendChild(x),null).getPropertyValue("transform"),E.removeChild(x),D(+(e=e.slice(7,-1).split(","))[0],+e[1],+e[2],+e[3],+e[4],+e[5]))},"px, ","px)","deg)"),k=M(function(e){return null==e?T:(C||(C=document.createElementNS("http://www.w3.org/2000/svg","g")),C.setAttribute("transform",e),(e=C.transform.baseVal.consolidate())?D((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):T)},", ",")",")"),S=Math.SQRT2,O=2,B=4,R=1e-12;function V(e){return((e=Math.exp(e))+1/e)/2}function P(e){return function(n,r){var i=e((n=t.hsl(n)).h,(r=t.hsl(r)).h),u=l(n.s,r.s),a=l(n.l,r.l),o=l(n.opacity,r.opacity);return function(e){return n.h=i(e),n.s=u(e),n.l=a(e),n.opacity=o(e),n+""}}}var L=P(o),j=P(l);function z(e){return function(n,r){var i=e((n=t.hcl(n)).h,(r=t.hcl(r)).h),u=l(n.c,r.c),a=l(n.l,r.l),o=l(n.opacity,r.opacity);return function(e){return n.h=i(e),n.c=u(e),n.l=a(e),n.opacity=o(e),n+""}}}var I=z(o),U=z(l);function J(e){return function n(r){function i(n,i){var u=e((n=t.cubehelix(n)).h,(i=t.cubehelix(i)).h),a=l(n.s,i.s),o=l(n.l,i.l),s=l(n.opacity,i.opacity);return function(e){return n.h=u(e),n.s=a(e),n.l=o(Math.pow(e,r)),n.opacity=s(e),n+""}}return r=+r,i.gamma=n,i}(1)}var Y=J(o),H=J(l);e.interpolate=w,e.interpolateArray=d,e.interpolateBasis=r,e.interpolateBasisClosed=i,e.interpolateDate=g,e.interpolateDiscrete=function(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}},e.interpolateHue=function(e,t){var n=o(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}},e.interpolateNumber=v,e.interpolateObject=y,e.interpolateRound=function(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}},e.interpolateString=_,e.interpolateTransformCss=N,e.interpolateTransformSvg=k,e.interpolateZoom=function(e,t){var n,r,i=e[0],u=e[1],a=e[2],o=t[0],s=t[1],l=t[2],c=o-i,f=s-u,h=c*c+f*f;if(h<R)r=Math.log(l/a)/S,n=function(e){return[i+e*c,u+e*f,a*Math.exp(S*e*r)]};else{var p=Math.sqrt(h),d=(l*l-a*a+B*h)/(2*a*O*p),g=(l*l-a*a-B*h)/(2*l*O*p),v=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(g*g+1)-g);r=(y-v)/S,n=function(e){var t,n=e*r,o=V(v),s=a/(O*p)*(o*(t=S*n+v,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(v));return[i+s*c,u+s*f,a*o/V(S*n+v)]}}return n.duration=1e3*r,n},e.interpolateRgb=c,e.interpolateRgbBasis=h,e.interpolateRgbBasisClosed=p,e.interpolateHsl=L,e.interpolateHslLong=j,e.interpolateLab=function(e,n){var r=l((e=t.lab(e)).l,(n=t.lab(n)).l),i=l(e.a,n.a),u=l(e.b,n.b),a=l(e.opacity,n.opacity);return function(t){return e.l=r(t),e.a=i(t),e.b=u(t),e.opacity=a(t),e+""}},e.interpolateHcl=I,e.interpolateHclLong=U,e.interpolateCubehelix=Y,e.interpolateCubehelixLong=H,e.piecewise=function(e,t){for(var n=0,r=t.length-1,i=t[0],u=new Array(r<0?0:r);n<r;)u[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return u[t](e-t)}},e.quantize=function(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n},Object.defineProperty(e,"__esModule",{value:!0})}),Eo=Eo.exports;var Ao={exports:{}};!function(e,t){"object"==typeof Ao.exports?t(Ao.exports):t((e=e||self).d3=e.d3||{})}(this,function(e){"use strict";function t(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function n(e){return(e=t(Math.abs(e)))?e[1]:NaN}var r,i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function u(e){if(!(t=i.exec(e)))throw new Error("invalid format: "+e);var t;return new a({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function a(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function o(e,n){var r=t(e,n);if(!r)return e+"";var i=r[0],u=r[1];return u<0?"0."+new Array(-u).join("0")+i:i.length>u+1?i.slice(0,u+1)+"."+i.slice(u+1):i+new Array(u-i.length+2).join("0")}u.prototype=a.prototype,a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var s={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return o(100*e,t)},r:o,s:function(e,n){var i=t(e,n);if(!i)return e+"";var u=i[0],a=i[1],o=a-(r=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,s=u.length;return o===s?u:o>s?u+new Array(o-s+1).join("0"):o>0?u.slice(0,o)+"."+u.slice(o):"0."+new Array(1-o).join("0")+t(e,Math.max(0,n+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function l(e){return e}var c,f=Array.prototype.map,h=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function p(e){var t,i,a=void 0===e.grouping||void 0===e.thousands?l:(t=f.call(e.grouping,Number),i=e.thousands+"",function(e,n){for(var r=e.length,u=[],a=0,o=t[0],s=0;r>0&&o>0&&(s+o+1>n&&(o=Math.max(1,n-s)),u.push(e.substring(r-=o,r+o)),!((s+=o+1)>n));)o=t[a=(a+1)%t.length];return u.reverse().join(i)}),o=void 0===e.currency?"":e.currency[0]+"",c=void 0===e.currency?"":e.currency[1]+"",p=void 0===e.decimal?".":e.decimal+"",d=void 0===e.numerals?l:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(f.call(e.numerals,String)),g=void 0===e.percent?"%":e.percent+"",v=void 0===e.minus?"-":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function m(e){var t=(e=u(e)).fill,n=e.align,i=e.sign,l=e.symbol,f=e.zero,m=e.width,b=e.comma,_=e.precision,w=e.trim,x=e.type;"n"===x?(b=!0,x="g"):s[x]||(void 0===_&&(_=12),w=!0,x="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var E="$"===l?o:"#"===l&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",A="$"===l?c:/[%p]/.test(x)?g:"",C=s[x],F=/[defgprs%]/.test(x);function T(e){var u,o,s,l=E,c=A;if("c"===x)c=C(e)+c,e="";else{var g=(e=+e)<0;if(e=isNaN(e)?y:C(Math.abs(e),_),w&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(i>0){if(!+e[r])break e;i=0}}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),g&&0==+e&&(g=!1),l=(g?"("===i?i:v:"-"===i||"("===i?"":i)+l,c=("s"===x?h[8+r/3]:"")+c+(g&&"("===i?")":""),F)for(u=-1,o=e.length;++u<o;)if(48>(s=e.charCodeAt(u))||s>57){c=(46===s?p+e.slice(u+1):e.slice(u))+c,e=e.slice(0,u);break}}b&&!f&&(e=a(e,1/0));var T=l.length+e.length+c.length,D=T<m?new Array(m-T+1).join(t):"";switch(b&&f&&(e=a(D+e,D.length?m-c.length:1/0),D=""),n){case"<":e=l+e+c+D;break;case"=":e=l+D+e+c;break;case"^":e=D.slice(0,T=D.length>>1)+l+e+c+D.slice(T);break;default:e=D+l+e+c}return d(e)}return _=void 0===_?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),T.toString=function(){return e+""},T}return{format:m,formatPrefix:function(e,t){var r=m(((e=u(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(n(t)/3))),a=Math.pow(10,-i),o=h[8+i/3];return function(e){return r(a*e)+o}}}}function d(t){return c=p(t),e.format=c.format,e.formatPrefix=c.formatPrefix,c}d({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),e.FormatSpecifier=a,e.formatDefaultLocale=d,e.formatLocale=p,e.formatSpecifier=u,e.precisionFixed=function(e){return Math.max(0,-n(Math.abs(e)))},e.precisionPrefix=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(n(t)/3)))-n(Math.abs(e)))},e.precisionRound=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,n(t)-n(e))+1},Object.defineProperty(e,"__esModule",{value:!0})}),Ao=Ao.exports;var Co={exports:{}};!function(e,t){"object"==typeof Co.exports?t(Co.exports):t(e.d3=e.d3||{})}(this,function(e){"use strict";var t=new Date,n=new Date;function r(e,i,u,a){function o(t){return e(t=new Date(+t)),t}return o.floor=o,o.ceil=function(t){return e(t=new Date(t-1)),i(t,1),e(t),t},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,t){return i(e=new Date(+e),null==t?1:Math.floor(t)),e},o.range=function(t,n,r){var u,a=[];if(t=o.ceil(t),r=null==r?1:Math.floor(r),!(t<n&&r>0))return a;do{a.push(u=new Date(+t)),i(t,r),e(t)}while(u<t&&t<n);return a},o.filter=function(t){return r(function(n){if(n>=n)for(;e(n),!t(n);)n.setTime(n-1)},function(e,n){if(e>=e)if(n<0)for(;++n<=0;)for(;i(e,-1),!t(e););else for(;--n>=0;)for(;i(e,1),!t(e););})},u&&(o.count=function(r,i){return t.setTime(+r),n.setTime(+i),e(t),e(n),Math.floor(u(t,n))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(a?function(t){return a(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var i=r(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?r(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):i:null};var u=i.range,a=6e4,o=6048e5,s=r(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()}),l=s.range,c=r(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+t*a)},function(e,t){return(t-e)/a},function(e){return e.getMinutes()}),f=c.range,h=r(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-e.getMinutes()*a)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()}),p=h.range,d=r(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*a)/864e5},function(e){return e.getDate()-1}),g=d.range;function v(e){return r(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*a)/o})}var y=v(0),m=v(1),b=v(2),_=v(3),w=v(4),x=v(5),E=v(6),A=y.range,C=m.range,F=b.range,T=_.range,D=w.range,M=x.range,N=E.range,k=r(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),S=k.range,O=r(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});O.every=function(e){return isFinite(e=Math.floor(e))&&e>0?r(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var B=O.range,R=r(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*a)},function(e,t){return(t-e)/a},function(e){return e.getUTCMinutes()}),V=R.range,P=r(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()}),L=P.range,j=r(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1}),z=j.range;function I(e){return r(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/o})}var U=I(0),J=I(1),Y=I(2),H=I(3),W=I(4),q=I(5),X=I(6),$=U.range,G=J.range,Z=Y.range,Q=H.range,K=W.range,ee=q.range,te=X.range,ne=r(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),re=ne.range,ie=r(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});ie.every=function(e){return isFinite(e=Math.floor(e))&&e>0?r(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var ue=ie.range;e.timeInterval=r,e.timeMillisecond=i,e.timeMilliseconds=u,e.utcMillisecond=i,e.utcMilliseconds=u,e.timeSecond=s,e.timeSeconds=l,e.utcSecond=s,e.utcSeconds=l,e.timeMinute=c,e.timeMinutes=f,e.timeHour=h,e.timeHours=p,e.timeDay=d,e.timeDays=g,e.timeWeek=y,e.timeWeeks=A,e.timeSunday=y,e.timeSundays=A,e.timeMonday=m,e.timeMondays=C,e.timeTuesday=b,e.timeTuesdays=F,e.timeWednesday=_,e.timeWednesdays=T,e.timeThursday=w,e.timeThursdays=D,e.timeFriday=x,e.timeFridays=M,e.timeSaturday=E,e.timeSaturdays=N,e.timeMonth=k,e.timeMonths=S,e.timeYear=O,e.timeYears=B,e.utcMinute=R,e.utcMinutes=V,e.utcHour=P,e.utcHours=L,e.utcDay=j,e.utcDays=z,e.utcWeek=U,e.utcWeeks=$,e.utcSunday=U,e.utcSundays=$,e.utcMonday=J,e.utcMondays=G,e.utcTuesday=Y,e.utcTuesdays=Z,e.utcWednesday=H,e.utcWednesdays=Q,e.utcThursday=W,e.utcThursdays=K,e.utcFriday=q,e.utcFridays=ee,e.utcSaturday=X,e.utcSaturdays=te,e.utcMonth=ne,e.utcMonths=re,e.utcYear=ie,e.utcYears=ue,Object.defineProperty(e,"__esModule",{value:!0})}),Co=Co.exports;var Fo={exports:{}};!function(e,t){"object"==typeof Fo.exports?t(Fo.exports,Co):t(e.d3=e.d3||{},e.d3)}(this,function(e,t){"use strict";function n(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function r(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function i(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function u(e){var u=e.dateTime,a=e.date,s=e.time,l=e.periods,c=e.days,f=e.shortDays,h=e.months,ye=e.shortMonths,me=p(l),be=d(l),_e=p(c),we=d(c),xe=p(f),Ee=d(f),Ae=p(h),Ce=d(h),Fe=p(ye),Te=d(ye),De={a:function(e){return f[e.getDay()]},A:function(e){return c[e.getDay()]},b:function(e){return ye[e.getMonth()]},B:function(e){return h[e.getMonth()]},c:null,d:B,e:B,f:j,H:R,I:V,j:P,L:L,m:z,M:I,p:function(e){return l[+(e.getHours()>=12)]},Q:ge,s:ve,S:U,u:J,U:Y,V:H,w:W,W:q,x:null,X:null,y:X,Y:$,Z:G,"%":de},Me={a:function(e){return f[e.getUTCDay()]},A:function(e){return c[e.getUTCDay()]},b:function(e){return ye[e.getUTCMonth()]},B:function(e){return h[e.getUTCMonth()]},c:null,d:Z,e:Z,f:ne,H:Q,I:K,j:ee,L:te,m:re,M:ie,p:function(e){return l[+(e.getUTCHours()>=12)]},Q:ge,s:ve,S:ue,u:ae,U:oe,V:se,w:le,W:ce,x:null,X:null,y:fe,Y:he,Z:pe,"%":de},Ne={a:function(e,t,n){var r=xe.exec(t.slice(n));return r?(e.w=Ee[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=_e.exec(t.slice(n));return r?(e.w=we[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=Fe.exec(t.slice(n));return r?(e.m=Te[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=Ae.exec(t.slice(n));return r?(e.m=Ce[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,t,n){return Oe(e,u,t,n)},d:A,e:A,f:N,H:F,I:F,j:C,L:M,m:E,M:T,p:function(e,t,n){var r=me.exec(t.slice(n));return r?(e.p=be[r[0].toLowerCase()],n+r[0].length):-1},Q:S,s:O,S:D,u:v,U:y,V:m,w:g,W:b,x:function(e,t,n){return Oe(e,a,t,n)},X:function(e,t,n){return Oe(e,s,t,n)},y:w,Y:_,Z:x,"%":k};function ke(e,t){return function(n){var r,i,u,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=o[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(u=t[r])&&(r=u(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function Se(e,n){return function(u){var a,o,s=i(1900);if(Oe(s,e,u+="",0)!=u.length)return null;if("Q"in s)return new Date(s.Q);if("p"in s&&(s.H=s.H%12+12*s.p),"V"in s){if(s.V<1||s.V>53)return null;"w"in s||(s.w=1),"Z"in s?(a=(o=(a=r(i(s.y))).getUTCDay())>4||0===o?t.utcMonday.ceil(a):t.utcMonday(a),a=t.utcDay.offset(a,7*(s.V-1)),s.y=a.getUTCFullYear(),s.m=a.getUTCMonth(),s.d=a.getUTCDate()+(s.w+6)%7):(a=(o=(a=n(i(s.y))).getDay())>4||0===o?t.timeMonday.ceil(a):t.timeMonday(a),a=t.timeDay.offset(a,7*(s.V-1)),s.y=a.getFullYear(),s.m=a.getMonth(),s.d=a.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),o="Z"in s?r(i(s.y)).getUTCDay():n(i(s.y)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+7*s.W-(o+5)%7:s.w+7*s.U-(o+6)%7);return"Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,r(s)):n(s)}}function Oe(e,t,n,r){for(var i,u,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(u=Ne[i in o?t.charAt(a++):i])||(r=u(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return De.x=ke(a,De),De.X=ke(s,De),De.c=ke(u,De),Me.x=ke(a,Me),Me.X=ke(s,Me),Me.c=ke(u,Me),{format:function(e){var t=ke(e+="",De);return t.toString=function(){return e},t},parse:function(e){var t=Se(e+="",n);return t.toString=function(){return e},t},utcFormat:function(e){var t=ke(e+="",Me);return t.toString=function(){return e},t},utcParse:function(e){var t=Se(e,r);return t.toString=function(){return e},t}}}var a,o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,l=/^%/,c=/[\\^$*+?|[\]().{}]/g;function f(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",u=i.length;return r+(u<n?new Array(n-u+1).join(t)+i:i)}function h(e){return e.replace(c,"\\$&")}function p(e){return new RegExp("^(?:"+e.map(h).join("|")+")","i")}function d(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function g(e,t,n){var r=s.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function v(e,t,n){var r=s.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function y(e,t,n){var r=s.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function m(e,t,n){var r=s.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function b(e,t,n){var r=s.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function _(e,t,n){var r=s.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function w(e,t,n){var r=s.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function x(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function E(e,t,n){var r=s.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function A(e,t,n){var r=s.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function C(e,t,n){var r=s.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function F(e,t,n){var r=s.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function T(e,t,n){var r=s.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function D(e,t,n){var r=s.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function M(e,t,n){var r=s.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function N(e,t,n){var r=s.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function k(e,t,n){var r=l.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function S(e,t,n){var r=s.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function O(e,t,n){var r=s.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function B(e,t){return f(e.getDate(),t,2)}function R(e,t){return f(e.getHours(),t,2)}function V(e,t){return f(e.getHours()%12||12,t,2)}function P(e,n){return f(1+t.timeDay.count(t.timeYear(e),e),n,3)}function L(e,t){return f(e.getMilliseconds(),t,3)}function j(e,t){return L(e,t)+"000"}function z(e,t){return f(e.getMonth()+1,t,2)}function I(e,t){return f(e.getMinutes(),t,2)}function U(e,t){return f(e.getSeconds(),t,2)}function J(e){var t=e.getDay();return 0===t?7:t}function Y(e,n){return f(t.timeSunday.count(t.timeYear(e),e),n,2)}function H(e,n){var r=e.getDay();return e=r>=4||0===r?t.timeThursday(e):t.timeThursday.ceil(e),f(t.timeThursday.count(t.timeYear(e),e)+(4===t.timeYear(e).getDay()),n,2)}function W(e){return e.getDay()}function q(e,n){return f(t.timeMonday.count(t.timeYear(e),e),n,2)}function X(e,t){return f(e.getFullYear()%100,t,2)}function $(e,t){return f(e.getFullYear()%1e4,t,4)}function G(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+f(t/60|0,"0",2)+f(t%60,"0",2)}function Z(e,t){return f(e.getUTCDate(),t,2)}function Q(e,t){return f(e.getUTCHours(),t,2)}function K(e,t){return f(e.getUTCHours()%12||12,t,2)}function ee(e,n){return f(1+t.utcDay.count(t.utcYear(e),e),n,3)}function te(e,t){return f(e.getUTCMilliseconds(),t,3)}function ne(e,t){return te(e,t)+"000"}function re(e,t){return f(e.getUTCMonth()+1,t,2)}function ie(e,t){return f(e.getUTCMinutes(),t,2)}function ue(e,t){return f(e.getUTCSeconds(),t,2)}function ae(e){var t=e.getUTCDay();return 0===t?7:t}function oe(e,n){return f(t.utcSunday.count(t.utcYear(e),e),n,2)}function se(e,n){var r=e.getUTCDay();return e=r>=4||0===r?t.utcThursday(e):t.utcThursday.ceil(e),f(t.utcThursday.count(t.utcYear(e),e)+(4===t.utcYear(e).getUTCDay()),n,2)}function le(e){return e.getUTCDay()}function ce(e,n){return f(t.utcMonday.count(t.utcYear(e),e),n,2)}function fe(e,t){return f(e.getUTCFullYear()%100,t,2)}function he(e,t){return f(e.getUTCFullYear()%1e4,t,4)}function pe(){return"+0000"}function de(){return"%"}function ge(e){return+e}function ve(e){return Math.floor(+e/1e3)}function ye(t){return a=u(t),e.timeFormat=a.format,e.timeParse=a.parse,e.utcFormat=a.utcFormat,e.utcParse=a.utcParse,a}ye({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var me=Date.prototype.toISOString?function(e){return e.toISOString()}:e.utcFormat("%Y-%m-%dT%H:%M:%S.%LZ");var be=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:e.utcParse("%Y-%m-%dT%H:%M:%S.%LZ");e.timeFormatDefaultLocale=ye,e.timeFormatLocale=u,e.isoFormat=me,e.isoParse=be,Object.defineProperty(e,"__esModule",{value:!0})}),Fo=Fo.exports;var To={exports:{}};!function(e,t){"object"==typeof To.exports?t(To.exports,_o,wo,Eo,Ao,Co,Fo,xo):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3,e.d3,e.d3,e.d3)}(this,function(e,t,n,r,i,u,a,o){"use strict";var s=Array.prototype,l=s.map,c=s.slice,f={name:"implicit"};function h(e){var t=n.map(),r=[],i=f;function u(n){var u=n+"",a=t.get(u);if(!a){if(i!==f)return i;t.set(u,a=r.push(n))}return e[(a-1)%e.length]}return e=null==e?[]:c.call(e),u.domain=function(e){if(!arguments.length)return r.slice();r=[],t=n.map();for(var i,a,o=-1,s=e.length;++o<s;)t.has(a=(i=e[o])+"")||t.set(a,r.push(i));return u},u.range=function(t){return arguments.length?(e=c.call(t),u):e.slice()},u.unknown=function(e){return arguments.length?(i=e,u):i},u.copy=function(){return h().domain(r).range(e).unknown(i)},u}function p(){var e,n,r=h().unknown(void 0),i=r.domain,u=r.range,a=[0,1],o=!1,s=0,l=0,c=.5;function f(){var r=i().length,f=a[1]<a[0],h=a[f-0],p=a[1-f];e=(p-h)/Math.max(1,r-s+2*l),o&&(e=Math.floor(e)),h+=(p-h-e*(r-s))*c,n=e*(1-s),o&&(h=Math.round(h),n=Math.round(n));var d=t.range(r).map(function(t){return h+e*t});return u(f?d.reverse():d)}return delete r.unknown,r.domain=function(e){return arguments.length?(i(e),f()):i()},r.range=function(e){return arguments.length?(a=[+e[0],+e[1]],f()):a.slice()},r.rangeRound=function(e){return a=[+e[0],+e[1]],o=!0,f()},r.bandwidth=function(){return n},r.step=function(){return e},r.round=function(e){return arguments.length?(o=!!e,f()):o},r.padding=function(e){return arguments.length?(s=l=Math.max(0,Math.min(1,e)),f()):s},r.paddingInner=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),f()):s},r.paddingOuter=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),f()):l},r.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),f()):c},r.copy=function(){return p().domain(i()).range(a).round(o).paddingInner(s).paddingOuter(l).align(c)},f()}var d=function(e){return function(){return e}},g=function(e){return+e},v=[0,1];function y(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:d(t)}function m(e,t,n,r){var i=e[0],u=e[1],a=t[0],o=t[1];return u<i?(i=n(u,i),a=r(o,a)):(i=n(i,u),a=r(a,o)),function(e){return a(i(e))}}function b(e,n,r,i){var u=Math.min(e.length,n.length)-1,a=new Array(u),o=new Array(u),s=-1;for(e[u]<e[0]&&(e=e.slice().reverse(),n=n.slice().reverse());++s<u;)a[s]=r(e[s],e[s+1]),o[s]=i(n[s],n[s+1]);return function(n){var r=t.bisect(e,n,1,u)-1;return o[r](a[r](n))}}function _(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function w(e,t){var n,i,u,a=v,o=v,s=r.interpolate,f=!1;function h(){return n=Math.min(a.length,o.length)>2?b:m,i=u=null,p}function p(t){return(i||(i=n(a,o,f?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,s)))(+t)}return p.invert=function(e){return(u||(u=n(o,a,y,f?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},p.domain=function(e){return arguments.length?(a=l.call(e,g),h()):a.slice()},p.range=function(e){return arguments.length?(o=c.call(e),h()):o.slice()},p.rangeRound=function(e){return o=c.call(e),s=r.interpolateRound,h()},p.clamp=function(e){return arguments.length?(f=!!e,h()):f},p.interpolate=function(e){return arguments.length?(s=e,h()):s},h()}var x=function(e,n,r){var u,a=e[0],o=e[e.length-1],s=t.tickStep(a,o,null==n?10:n);switch((r=i.formatSpecifier(null==r?",f":r)).type){case"s":var l=Math.max(Math.abs(a),Math.abs(o));return null!=r.precision||isNaN(u=i.precisionPrefix(s,l))||(r.precision=u),i.formatPrefix(r,l);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(u=i.precisionRound(s,Math.max(Math.abs(a),Math.abs(o))))||(r.precision=u-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(u=i.precisionFixed(s))||(r.precision=u-2*("%"===r.type))}return i.format(r)};function E(e){var n=e.domain;return e.ticks=function(e){var r=n();return t.ticks(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,t){return x(n(),e,t)},e.nice=function(r){null==r&&(r=10);var i,u=n(),a=0,o=u.length-1,s=u[a],l=u[o];return l<s&&(i=s,s=l,l=i,i=a,a=o,o=i),(i=t.tickIncrement(s,l,r))>0?(s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i,i=t.tickIncrement(s,l,r)):i<0&&(s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i,i=t.tickIncrement(s,l,r)),i>0?(u[a]=Math.floor(s/i)*i,u[o]=Math.ceil(l/i)*i,n(u)):i<0&&(u[a]=Math.ceil(s*i)/i,u[o]=Math.floor(l*i)/i,n(u)),e},e}var A=function(e,t){var n,r=0,i=(e=e.slice()).length-1,u=e[r],a=e[i];return a<u&&(n=r,r=i,i=n,n=u,u=a,a=n),e[r]=t.floor(u),e[i]=t.ceil(a),e};function C(e,t){return(t=Math.log(t/e))?function(n){return Math.log(n/e)/t}:d(t)}function F(e,t){return e<0?function(n){return-Math.pow(-t,n)*Math.pow(-e,1-n)}:function(n){return Math.pow(t,n)*Math.pow(e,1-n)}}function T(e){return isFinite(e)?+("1e"+e):e<0?0:e}function D(e){return 10===e?T:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function M(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function N(e){return function(t){return-e(-t)}}function k(e,t){return e<0?-Math.pow(-e,t):Math.pow(e,t)}function S(){var e=1,t=w(function(t,n){return(n=k(n,e)-(t=k(t,e)))?function(r){return(k(r,e)-t)/n}:d(n)},function(t,n){return n=k(n,e)-(t=k(t,e)),function(r){return k(t+n*r,1/e)}}),n=t.domain;return t.exponent=function(t){return arguments.length?(e=+t,n(n())):e},t.copy=function(){return _(t,S().exponent(e))},E(t)}var O=1e3,B=60*O,R=60*B,V=24*R,P=7*V,L=30*V,j=365*V;function z(e){return new Date(e)}function I(e){return e instanceof Date?+e:+new Date(+e)}function U(e,n,i,u,a,o,s,c,f){var h=w(y,r.interpolateNumber),p=h.invert,d=h.domain,g=f(".%L"),v=f(":%S"),m=f("%I:%M"),b=f("%I %p"),x=f("%a %d"),E=f("%b %d"),C=f("%B"),F=f("%Y"),T=[[s,1,O],[s,5,5*O],[s,15,15*O],[s,30,30*O],[o,1,B],[o,5,5*B],[o,15,15*B],[o,30,30*B],[a,1,R],[a,3,3*R],[a,6,6*R],[a,12,12*R],[u,1,V],[u,2,2*V],[i,1,P],[n,1,L],[n,3,3*L],[e,1,j]];function D(t){return(s(t)<t?g:o(t)<t?v:a(t)<t?m:u(t)<t?b:n(t)<t?i(t)<t?x:E:e(t)<t?C:F)(t)}function M(n,r,i,u){if(null==n&&(n=10),"number"==typeof n){var a=Math.abs(i-r)/n,o=t.bisector(function(e){return e[2]}).right(T,a);o===T.length?(u=t.tickStep(r/j,i/j,n),n=e):o?(u=(o=T[a/T[o-1][2]<T[o][2]/a?o-1:o])[1],n=o[0]):(u=Math.max(t.tickStep(r,i,n),1),n=c)}return null==u?n:n.every(u)}return h.invert=function(e){return new Date(p(e))},h.domain=function(e){return arguments.length?d(l.call(e,I)):d().map(z)},h.ticks=function(e,t){var n,r=d(),i=r[0],u=r[r.length-1],a=u<i;return a&&(n=i,i=u,u=n),n=(n=M(e,i,u,t))?n.range(i,u+1):[],a?n.reverse():n},h.tickFormat=function(e,t){return null==t?D:f(t)},h.nice=function(e,t){var n=d();return(e=M(e,n[0],n[n.length-1],t))?d(A(n,e)):h},h.copy=function(){return _(h,U(e,n,i,u,a,o,s,c,f))},h}var J=function(e){return e.match(/.{6}/g).map(function(e){return"#"+e})},Y=J("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),H=J("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),W=J("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),q=J("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),X=r.interpolateCubehelixLong(o.cubehelix(300,.5,0),o.cubehelix(-240,.5,1)),$=r.interpolateCubehelixLong(o.cubehelix(-100,.75,.35),o.cubehelix(80,1.5,.8)),G=r.interpolateCubehelixLong(o.cubehelix(260,.75,.35),o.cubehelix(80,1.5,.8)),Z=o.cubehelix();function Q(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var K=Q(J("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),ee=Q(J("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),te=Q(J("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ne=Q(J("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));e.scaleBand=p,e.scalePoint=function(){return function e(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return e(n())},t}(p().paddingInner(1))},e.scaleIdentity=function e(){var t=[0,1];function n(e){return+e}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=l.call(e,g),n):t.slice()},n.copy=function(){return e().domain(t)},E(n)},e.scaleLinear=function e(){var t=w(y,r.interpolateNumber);return t.copy=function(){return _(t,e())},E(t)},e.scaleLog=function e(){var n=w(C,F).domain([1,10]),r=n.domain,u=10,a=M(10),o=D(10);function s(){return a=M(u),o=D(u),r()[0]<0&&(a=N(a),o=N(o)),n}return n.base=function(e){return arguments.length?(u=+e,s()):u},n.domain=function(e){return arguments.length?(r(e),s()):r()},n.ticks=function(e){var n,i=r(),s=i[0],l=i[i.length-1];(n=l<s)&&(p=s,s=l,l=p);var c,f,h,p=a(s),d=a(l),g=null==e?10:+e,v=[];if(!(u%1)&&d-p<g){if(p=Math.round(p)-1,d=Math.round(d)+1,s>0){for(;p<d;++p)for(f=1,c=o(p);f<u;++f)if(!((h=c*f)<s)){if(h>l)break;v.push(h)}}else for(;p<d;++p)for(f=u-1,c=o(p);f>=1;--f)if(!((h=c*f)<s)){if(h>l)break;v.push(h)}}else v=t.ticks(p,d,Math.min(d-p,g)).map(o);return n?v.reverse():v},n.tickFormat=function(e,t){if(null==t&&(t=10===u?".0e":","),"function"!=typeof t&&(t=i.format(t)),e===1/0)return t;null==e&&(e=10);var r=Math.max(1,u*e/n.ticks().length);return function(e){var n=e/o(Math.round(a(e)));return n*u<u-.5&&(n*=u),n<=r?t(e):""}},n.nice=function(){return r(A(r(),{floor:function(e){return o(Math.floor(a(e)))},ceil:function(e){return o(Math.ceil(a(e)))}}))},n.copy=function(){return _(n,e().base(u))},n},e.scaleOrdinal=h,e.scaleImplicit=f,e.scalePow=S,e.scaleSqrt=function(){return S().exponent(.5)},e.scaleQuantile=function e(){var n=[],r=[],i=[];function u(){var e=0,u=Math.max(1,r.length);for(i=new Array(u-1);++e<u;)i[e-1]=t.quantile(n,e/u);return a}function a(e){if(!isNaN(e=+e))return r[t.bisect(i,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?i[t-1]:n[0],t<i.length?i[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(var r,i=0,a=e.length;i<a;++i)null==(r=e[i])||isNaN(r=+r)||n.push(r);return n.sort(t.ascending),u()},a.range=function(e){return arguments.length?(r=c.call(e),u()):r.slice()},a.quantiles=function(){return i.slice()},a.copy=function(){return e().domain(n).range(r)},a},e.scaleQuantize=function e(){var n=0,r=1,i=1,u=[.5],a=[0,1];function o(e){if(e<=e)return a[t.bisect(u,e,0,i)]}function s(){var e=-1;for(u=new Array(i);++e<i;)u[e]=((e+1)*r-(e-i)*n)/(i+1);return o}return o.domain=function(e){return arguments.length?(n=+e[0],r=+e[1],s()):[n,r]},o.range=function(e){return arguments.length?(i=(a=c.call(e)).length-1,s()):a.slice()},o.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,u[0]]:t>=i?[u[i-1],r]:[u[t-1],u[t]]},o.copy=function(){return e().domain([n,r]).range(a)},E(o)},e.scaleThreshold=function e(){var n=[.5],r=[0,1],i=1;function u(e){if(e<=e)return r[t.bisect(n,e,0,i)]}return u.domain=function(e){return arguments.length?(n=c.call(e),i=Math.min(n.length,r.length-1),u):n.slice()},u.range=function(e){return arguments.length?(r=c.call(e),i=Math.min(n.length,r.length-1),u):r.slice()},u.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},u.copy=function(){return e().domain(n).range(r)},u},e.scaleTime=function(){return U(u.timeYear,u.timeMonth,u.timeWeek,u.timeDay,u.timeHour,u.timeMinute,u.timeSecond,u.timeMillisecond,a.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},e.scaleUtc=function(){return U(u.utcYear,u.utcMonth,u.utcWeek,u.utcDay,u.utcHour,u.utcMinute,u.utcSecond,u.utcMillisecond,a.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},e.schemeCategory10=Y,e.schemeCategory20b=H,e.schemeCategory20c=W,e.schemeCategory20=q,e.interpolateCubehelixDefault=X,e.interpolateRainbow=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Z.h=360*e-100,Z.s=1.5-1.5*t,Z.l=.8-.9*t,Z+""},e.interpolateWarm=$,e.interpolateCool=G,e.interpolateViridis=K,e.interpolateMagma=ee,e.interpolateInferno=te,e.interpolatePlasma=ne,e.scaleSequential=function e(t){var n=0,r=1,i=!1;function u(e){var u=(e-n)/(r-n);return t(i?Math.max(0,Math.min(1,u)):u)}return u.domain=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.clamp=function(e){return arguments.length?(i=!!e,u):i},u.interpolator=function(e){return arguments.length?(t=e,u):t},u.copy=function(){return e(t).domain([n,r]).clamp(i)},E(u)},Object.defineProperty(e,"__esModule",{value:!0})});var Do=(To=To.exports).scaleLinear,Mo=To.scaleTime;var No=function(){var e;return"time"===this._xScale?e=Mo().domain(this.xDomain).range(this.xRange):"linear"===this._xScale&&(e=Do().domain(this.xDomain).range(this.xRange)),e},ko=Ae.isPrimitive,So=he("plot:set:x-scale");var Oo=function(e){if(!ko(e))throw new TypeError("invalid value. `xScale` must be a string. Value: `"+e+".`");e!==this._xScale&&(So("Current value: %s.",this._xScale),this._xScale=e,So("New value: %s.",this._xScale),this.emit("change"))},Bo=To.scaleLinear,Ro=To.scaleTime;var Vo=function(){var e;return"time"===this._yScale?e=Ro().domain(this.yDomain).range(this.yRange):"linear"===this._yScale&&(e=Bo().domain(this.yDomain).range(this.yRange)),e},Po=Ae.isPrimitive,Lo=he("plot:set:y-scale");var jo=function(e){if(!Po(e))throw new TypeError("invalid value. `yScale` must be a string. Value: `"+e+".`");Lo("Current value: %s.",this._yScale),this._yScale=e,Lo("New value: %s.",this._yScale),this.emit("change")},zo=Ae.isPrimitive,Io=he("plot:set:x-tick-format");var Uo=function(e){if(!eo(e)&&!zo(e))throw new TypeError("invalid value. `xTickFormat` must be a string or null. Value: `"+e+".`");e!==this._xTickFormat&&(Io("Current value: %s.",this._xTickFormat),this._xTickFormat=e,Io("New value: %s.",this._xTickFormat),this.emit("change"))},Jo=Ao.format,Yo=Fo.timeFormat;var Ho=function(){return eo(this._xTickFormat)?this._xTickFormat:"time"===this._xScale?Yo(this._xTickFormat):Jo(this._xTickFormat)},Wo=Ao.format,qo=Fo.timeFormat;var Xo=function(){return eo(this._xTickFormat)?this._xTickFormat:"time"===this._xScale?qo(this._xTickFormat):Wo(this._xTickFormat)},$o=Ae.isPrimitive,Go=he("plot:set:y-tick-format");var Zo=function(e){if(!eo(e)&&!$o(e))throw new TypeError("invalid value. `yTickFormat` must be a string or null. Value: `"+e+".`");e!==this._yTickFormat&&(Go("Current value: %s.",this._yTickFormat),this._yTickFormat=e,Go("New value: %s.",this._yTickFormat),this.emit("change"))},Qo=Ao.format,Ko=Fo.timeFormat;var es=function(){return eo(this._yTickFormat)?this._yTickFormat:"time"===this._yScale?Ko(this._yTickFormat):Qo(this._yTickFormat)},ts=on.isPrimitive,ns=he("plot:set:x-num-ticks");var rs=function(e){if(!eo(e)&&!ts(e))throw new TypeError("invalid value. `xNumTicks` must be a nonnegative integer or null. Value: `"+e+".`");e!==this._xNumTicks&&(ns("Current value: %d.",this._xNumTicks),this._xNumTicks=e,ns("New value: %d.",this._xNumTicks),this.emit("change"))};var is=function(){return this._xNumTicks};var us=function(){return this._xNumTicks},as=on.isPrimitive,os=he("plot:set:y-num-ticks");var ss=function(e){if(!eo(e)&&!as(e))throw new TypeError("invalid value. `yNumTicks` must be a nonnegative integer or null. Value: `"+e+".`");e!==this._yNumTicks&&(os("Current value: %d.",this._yNumTicks),this._yNumTicks=e,os("New value: %d.",this._yNumTicks),this.emit("change"))};var ls=function(){return this._yNumTicks};var cs=function(){return this._yNumTicks},fs=["bottom","top"],hs=["bottom","top"],ps=he("plot:set:x-axis-orient");var ds=function(e){if(-1===yt(hs,e))throw new TypeError("invalid value. `xAxisOrient` must be one of `["+hs.join(", ")+"]`. Value: `"+e+".`");e!==this._xAxisOrient&&(ps("Current value: %s.",this._xAxisOrient),this._xAxisOrient=e,ps("New value: %s.",this._xAxisOrient),this.emit("change"))};var gs=function(){return this._xAxisOrient};var vs=function(){return this._xAxisOrient},ys=["left","right"],ms=["left","right"],bs=he("plot:set:y-axis-orient");var _s=function(e){if(-1===yt(ms,e))throw new TypeError("invalid value. `yAxisOrient` must be one of `["+ms.join(", ")+"]`. Value: `"+e+".`");e!==this._yAxisOrient&&(bs("Current value: %s.",this._yAxisOrient),this._yAxisOrient=e,bs("New value: %s.",this._yAxisOrient),this.emit("change"))};var ws=function(){return this._yAxisOrient};var xs=function(){return this._yAxisOrient},Es=Iu(Et);F(Es,"primitives",Iu(Et.isPrimitive)),F(Es,"objects",Iu(Et.isObject));var As=Es,Cs=Et.isPrimitive,Fs=As.primitives,Ts=he("plot:set:x-rug");var Ds=function(e){var t=Cs(e);if(!t&&!Fs(e))throw new TypeError("invalid value. `xRug` must be a boolean or boolean array. Value: `"+e+".`");t&&(e=[e]),Ts("Current value: %s.",JSON.stringify(this._xRug)),this._xRug=e,Ts("New Value: %s.",JSON.stringify(this._xRug)),this.emit("change")};var Ms=function(){return this._xRug.slice()},Ns=Et.isPrimitive,ks=As.primitives,Ss=he("plot:set:y-rug");var Os=function(e){var t=Ns(e);if(!t&&!ks(e))throw new TypeError("invalid value. `yRug` must be a boolean or boolean array. Value: `"+e+".`");t&&(e=[e]),Ss("Current value: %s.",JSON.stringify(this._yRug)),this._yRug=e,Ss("New Value: %s.",JSON.stringify(this._yRug)),this.emit("change")};var Bs=function(){return this._yRug.slice()},Rs=["bottom","top"],Vs=Ae.isPrimitive,Ps=gu.primitives,Ls=he("plot:set:x-rug-orient");var js=function(e){var t,n=Vs(e);if(!n&&!Ps(e))throw new TypeError("invalid value. `xRugOrient` must be either a string or string array. Value: `"+e+"`.");for(e=n?[e]:e.slice(),t=0;t<e.length;t++)if(-1===yt(Rs,e[t]))throw new TypeError("invalid value. Unrecognized/unsupported orientation. An `xRugOrient` value must be one of `["+Rs.join(", ")+"]`. Value: `"+e[t]+".`");Ls("Current value: %s.",JSON.stringify(this._xRugOrient)),this._xRugOrient=e,Ls("New value: %s.",JSON.stringify(this._xRugOrient)),this.emit("change")};var zs=function(){return this._xRugOrient.slice()},Is=["left","right"],Us=Ae.isPrimitive,Js=gu.primitives,Ys=he("plot:set:y-rug-orient");var Hs=function(e){var t,n=Us(e);if(!n&&!Js(e))throw new TypeError("invalid value. `yRugOrient` must be either a string or string array. Value: `"+e+"`.");for(e=n?[e]:e.slice(),t=0;t<e.length;t++)if(-1===yt(Is,e[t]))throw new TypeError("invalid value. Unrecognized/unsupported orientation. A `yRugOrient` value must be one of `["+Is.join(", ")+"]`. Value: `"+e[t]+".`");Ys("Current value: %s.",JSON.stringify(this._yRugOrient)),this._yRugOrient=e,Ys("New value: %s.",JSON.stringify(this._yRugOrient)),this.emit("change")};var Ws=function(){return this._yRugOrient.slice()},qs=Be.isPrimitive,Xs=Ju.primitives,$s=he("plot:set:x-rug-opacity");var Gs=function(e){var t,n=qs(e);if(!n&&!Xs(e))throw new TypeError("invalid value. `xRugOpacity` must be a number or number array. Value: `"+e+".`");for(e=n?[e]:e.slice(),t=0;t<e.length;t++)if(e[t]<0||e[t]>1)throw new RangeError("invalid value. An `xRugOpacity` must be a number on the interval `[0,1]`. Value: `"+e[t]+"`.");$s("Current value: %s.",JSON.stringify(this._xRugOpacity)),this._xRugOpacity=e,$s("New Value: %s.",JSON.stringify(this._xRugOpacity)),this.emit("change")};var Zs=function(){return this._xRugOpacity.slice()},Qs=Be.isPrimitive,Ks=Ju.primitives,el=he("plot:set:y-rug-opacity");var tl=function(e){var t,n=Qs(e);if(!n&&!Ks(e))throw new TypeError("invalid value. `yRugOpacity` must be a number or number array. Value: `"+e+".`");for(e=n?[e]:e.slice(),t=0;t<e.length;t++)if(e[t]<0||e[t]>1)throw new RangeError("invalid value. A `yRugOpacity` must be a number on the interval `[0,1]`. Value: `"+e[t]+"`.");el("Current value: %s.",JSON.stringify(this._yRugOpacity)),this._yRugOpacity=e,el("New Value: %s.",JSON.stringify(this._yRugOpacity)),this.emit("change")};var nl=function(){return this._yRugOpacity.slice()},rl=on.isPrimitive,il=Gu.primitives,ul=he("plot:set:x-rug-size");var al=function(e){var t=rl(e);if(!t&&!il(e))throw new TypeError("invalid value. `xRugSize` must be a nonnegative integer or nonnegative integer array. Value: `"+e+".`");e=t?[e]:e.slice(),ul("Current value: %s.",JSON.stringify(this._xRugSize)),this._xRugSize=e,ul("New Value: %s.",JSON.stringify(this._xRugSize)),this.emit("change")};var ol=function(){return this._xRugSize.slice()},sl=on.isPrimitive,ll=Gu.primitives,cl=he("plot:set:y-rug-size");var fl=function(e){var t=sl(e);if(!t&&!ll(e))throw new TypeError("invalid value. `yRugSize` must be a nonnegative integer or nonnegative integer array. Value: `"+e+".`");e=t?[e]:e.slice(),cl("Current value: %s.",JSON.stringify(this._yRugSize)),this._yRugSize=e,cl("New Value: %s.",JSON.stringify(this._yRugSize)),this.emit("change")};var hl=function(){return this._yRugSize.slice()},pl=Ae.isPrimitive,dl=he("plot:set:description");var gl=function(e){if(!pl(e))throw new TypeError("invalid value. `description` must be a string. Value: `"+e+".`");e!==this._description&&(dl("Current value: %s.",this._description),this._description=e,dl("New value: %s.",this._description),this.emit("change"))};var vl=function(){return this._description};var yl=function(){return this._description},ml=Ae.isPrimitive,bl=he("plot:set:title");var _l=function(e){if(!ml(e))throw new TypeError("invalid value. `title` must be a string. Value: `"+e+".`");e!==this._title&&(bl("Current value: %s.",this._title),this._title=e,bl("New value: %s.",this._title),this.emit("change"))};var wl=function(){return this._title};var xl=function(){return this._title},El=Ae.isPrimitive,Al=he("plot:set:x-label");var Cl=function(e){if(!El(e))throw new TypeError("invalid value. `xLabel` must be a string. Value: `"+e+".`");e!==this._xLabel&&(Al("Current value: %s.",this._xLabel),this._xLabel=e,Al("New value: %s.",this._xLabel),this.emit("change"))};var Fl=function(){return this._xLabel};var Tl=function(){return this._xLabel},Dl=Ae.isPrimitive,Ml=he("plot:set:y-label");var Nl=function(e){if(!Dl(e))throw new TypeError("invalid value. `yLabel` must be a string. Value: `"+e+".`");e!==this._yLabel&&(Ml("Current value: %s.",this._yLabel),this._yLabel=e,Ml("New value: %s.",this._yLabel),this.emit("change"))};var kl=function(){return this._yLabel};var Sl=function(){return this._yLabel},Ol=Qe.isPrimitive,Bl=Ae.isPrimitive,Rl=Ie.isPrimitive;var Vl=function(e,t,n){var r,i,u;if(!dt(e)&&!Bl(e))throw new TypeError("invalid argument. First argument must be array-like. Value: `"+e+"`.");if(arguments.length<2)throw new Error("insufficient input arguments. Must provide a search value.");if(arguments.length>2){if(!Ol(n))throw new TypeError("invalid argument. Third argument must be an integer. Value: `"+n+"`.");(i=n)<0&&(i=0)}else i=0;if(Bl(e)){if(!Bl(t))throw new TypeError("invalid argument. Second argument must be a string primitive. Value: `"+t+"`.");return-1!==e.indexOf(t,i)}if(r=e.length,Rl(t)){for(u=i;u<r;u++)if(Rl(e[u]))return!0;return!1}for(u=i;u<r;u++)if(e[u]===t)return!0;return!1},Pl=["svg"],Ll=["svg"],jl=he("plot:set:engine");var zl=function(e){if(!Vl(Ll,e))throw new TypeError("invalid value. `engine` must be one of `["+Ll.join(", ")+"]`. Value: `"+e+".`");e!==this._engine&&(jl("Current value: %s.",this._engine),this._engine=e,jl("New value: %s.",this._engine),this.emit("change"))};var Il=function(){return this._engine},Ul=Et.isPrimitive,Jl=he("plot:set:auto-render");var Yl=function(e){if(!Ul(e))throw new TypeError("invalid value. `autoRender` must be a boolean primitive. Value: `"+e+".`");e!==this._autoRender&&(Jl("Current value: %s.",this._autoRender),this._autoRender=e,Jl("New Value: %s.",this._autoRender),this.emit("change"))};var Hl=function(){return this._autoRender};var Wl=function(){return this._autoRender},ql=["vdom","html"],Xl=["vdom","html"],$l=he("plot:set:renderformat");var Gl=function(e){if(-1===yt(Xl,e))throw new TypeError("invalid value. Unrecognized/unsupported `format`. Must be one of `["+Xl.join(", ")+"]`. Value: `"+e+".`");e!==this._renderFormat&&($l("Current value: %s.",this._renderFormat),this._renderFormat=e,$l("New value: %s.",this._renderFormat),this.emit("change"))};var Zl=function(){return this._renderFormat};var Ql=function(){return this._renderFormat},Kl=["none","browser","terminal","stdout","window"],ec=["none","browser","terminal","stdout","window"],tc=he("plot:set:viewer");var nc=function(e){if(-1===yt(ec,e))throw new TypeError("invalid value. Unrecognized/unsupported `viewer`. Value: `"+e+".`");e!==this._viewer&&(tc("Current value: %s.",this._viewer),this._viewer=e,tc("New value: %s.",this._viewer),this.emit("change"))};var rc=function(){return this._viewer};var ic=function(){return this._viewer},uc=Et.isPrimitive,ac=he("plot:set:auto-view");var oc=function(e){if(!uc(e))throw new TypeError("invalid value. `autoView` must be a boolean primitive. Value: `"+e+".`");e!==this._autoView&&(ac("Current value: %s.",this._autoView),this._autoView=e,ac("New Value: %s.",this._autoView),this.emit("change"))};var sc=function(){return this._autoView};var lc=function(){return this._autoView};var cc=function(){return this._width-this._paddingLeft-this._paddingRight};var fc=function(){return this._width-this._paddingLeft-this._paddingRight};var hc=function(){return this._height-this._paddingTop-this._paddingBottom};var pc=function(){return this._height-this._paddingTop-this._paddingBottom};var dc=function(){return[this.xMin,this.xMax]};var gc=function(){return[this.xMin,this.xMax]};var vc=function(){return[this.yMin,this.yMax]};var yc=function(){return[this.yMin,this.yMax]};var mc=function(){return[0,this.graphWidth]};var bc=function(){return[0,this.graphWidth]};var _c=function(){return[this.graphHeight,0]};var wc=function(){return[this.graphHeight,0]},xc=he("plot:x-pos");var Ec=function(){var e=this.xScale;return function(t){var n=e(t);return xc("Value: %d => Pixel: %d.",t,n),n}},Ac=he("plot:y-pos");var Cc=function(){var e=this.yScale;return function(t){var n=e(t);return Ac("Value: %d => Pixel: %d.",t,n),n}},Fc=/["'&<>]/,Tc=function(e){var t,n=""+e,r=Fc.exec(n);if(!r)return n;var i="",u=0,a=0;for(u=r.index;u<n.length;u++){switch(n.charCodeAt(u)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}a!==u&&(i+=n.substring(a,u)),a=u+1,i+=t}return a!==u?i+n.substring(a,u):i};var Dc=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)Mc.call(n,r)&&(e[r]=n[r])}return e},Mc=Object.prototype.hasOwnProperty;var Nc="2",kc=function(e){return e&&"VirtualNode"===e.type&&e.version===Nc};var Sc=function(e){return e&&"VirtualText"===e.type&&e.version===Nc};var Oc=function(e){return e&&"Thunk"===e.type};var Bc=function(e){return e&&"Widget"===e.type};var Rc=Vc;function Vc(e){if(!(this instanceof Vc))return new Vc(e);this.value=e}Vc.prototype.hook=function(e,t){e[t]!==this.value&&(e[t]=this.value)};var Pc=Lc;function Lc(e,t){if(!(this instanceof Lc))return new Lc(e,t);this.namespace=e,this.value=t}Lc.prototype.hook=function(e,t,n){n&&"AttributeHook"===n.type&&n.value===this.value&&n.namespace===this.namespace||e.setAttributeNS(this.namespace,t,this.value)},Lc.prototype.unhook=function(e,t,n){if(!n||"AttributeHook"!==n.type||n.namespace!==this.namespace){var r=t.indexOf(":"),i=r>-1?t.substr(r+1):t;e.removeAttributeNS(this.namespace,i)}},Lc.prototype.type="AttributeHook";var jc,zc,Ic={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{"İ":"i",I:"ı","İ":"i"}},az:{regexp:/[\u0130]/g,map:{"İ":"i",I:"ı","İ":"i"}},lt:{regexp:/[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g,map:{I:"i̇",J:"j̇","Į":"į̇","Ì":"i̇̀","Í":"i̇́","Ĩ":"i̇̃"}}},Uc=/[^\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]+/g,Jc=/([\u0061-\u007A\u00B5\u00DF-\u00F6\u00F8-\u00FF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0561-\u0587\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7FA\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A])([\u0041-\u005A\u00C0-\u00D6\u00D8-\u00DE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA\uFF21-\uFF3A\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g,Yc=/([\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])([^\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g,Hc=function(e,t,n){if(null==e)return"";return n=n||" ",function(e,t){var n=Ic[t];return e=null==e?"":String(e),n&&(e=e.replace(n.regexp,function(e){return n.map[e]})),e.toLowerCase()}(e=String(e).replace(Jc,"$1 $2").replace(Yc,"$1 $2").replace(Uc,function(e,t,r){return 0===t||t===r.length-e.length?"":n}),t)},Wc=function(e,t){return Hc(e,t,"-")},qc={BOOLEAN:1,OVERLOADED_BOOLEAN:2},Xc={attributeTypes:qc,properties:{accept:!0,acceptCharset:!0,accessKey:!0,action:!0,allowFullScreen:qc.BOOLEAN,allowTransparency:!0,alt:!0,async:qc.BOOLEAN,autocomplete:!0,autofocus:qc.BOOLEAN,autoplay:qc.BOOLEAN,cellPadding:!0,cellSpacing:!0,charset:!0,checked:qc.BOOLEAN,classID:!0,className:!0,cols:!0,colSpan:!0,content:!0,contentEditable:!0,contextMenu:!0,controls:qc.BOOLEAN,coords:!0,crossOrigin:!0,data:!0,dateTime:!0,defer:qc.BOOLEAN,dir:!0,disabled:qc.BOOLEAN,download:qc.OVERLOADED_BOOLEAN,draggable:!0,enctype:!0,form:!0,formAction:!0,formEncType:!0,formMethod:!0,formNoValidate:qc.BOOLEAN,formTarget:!0,frameBorder:!0,headers:!0,height:!0,hidden:qc.BOOLEAN,href:!0,hreflang:!0,htmlFor:!0,httpEquiv:!0,icon:!0,id:!0,label:!0,lang:!0,list:!0,loop:qc.BOOLEAN,manifest:!0,marginHeight:!0,marginWidth:!0,max:!0,maxLength:!0,media:!0,mediaGroup:!0,method:!0,min:!0,multiple:qc.BOOLEAN,muted:qc.BOOLEAN,name:!0,noValidate:qc.BOOLEAN,open:!0,pattern:!0,placeholder:!0,poster:!0,preload:!0,radiogroup:!0,readOnly:qc.BOOLEAN,rel:!0,required:qc.BOOLEAN,role:!0,rows:!0,rowSpan:!0,sandbox:!0,scope:!0,scrolling:!0,seamless:qc.BOOLEAN,selected:qc.BOOLEAN,shape:!0,size:!0,sizes:!0,span:!0,spellcheck:!0,src:!0,srcdoc:!0,srcset:!0,start:!0,step:!0,style:!0,tabIndex:!0,target:!0,title:!0,type:!0,useMap:!0,value:!0,width:!0,wmode:!0,autocapitalize:!0,autocorrect:!0,itemProp:!0,itemScope:qc.BOOLEAN,itemType:!0,property:!0},attributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"}},$c=Xc.attributeTypes,Gc=Xc.properties,Zc=Xc.attributeNames,Qc=(jc=function(e){return Tc(e)+'="'},zc={},function(e){return zc.hasOwnProperty(e)?zc[e]:zc[e]=jc.call(this,e)}),Kc=function(e,t,n){if(Gc.hasOwnProperty(e)){if(function(e,t){var n=Gc[e];return null==t||n===$c.BOOLEAN&&!t||n===$c.OVERLOADED_BOOLEAN&&!1===t}(e,t))return"";e=(Zc[e]||e).toLowerCase();var r=Gc[e];return r===$c.BOOLEAN||r===$c.OVERLOADED_BOOLEAN&&!0===t?Tc(e):Qc(e)+Tc(t)+'"'}if(n)return null==t?"":Qc(e)+Tc(t)+'"';return null};var ef={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},tf=nf;function nf(e,t){return e?(Oc(e)&&(e=e.render()),Bc(e)&&e.render&&(e=e.render()),kc(e)?function(e){var t=e.properties,n="<"+e.tagName.toLowerCase();for(var r in t){var i=t[r];if(null!=i)if("attributes"!=r)if("dataset"!=r){if("style"==r){var u="";for(var a in i=Dc({},i))u+=Wc(a)+": "+i[a]+"; ";i=u.trim()}if(i instanceof Rc||i instanceof Pc)n+=" "+Kc(r,i.value,!0);else{var o=Kc(r,i);o&&(n+=" "+o)}}else for(var s in i=Dc({},i))n+=" "+Kc("data-"+Wc(s),i[s],!0);else for(var l in i=Dc({},i))n+=" "+Kc(l,i[l],!0)}return n+">"}(e)+function(e){var t=e.properties.innerHTML;if(null!=t)return t;var n="";if(e.children&&e.children.length)for(var r=0,i=e.children.length;r<i;r++){var u=e.children[r];n+=nf(u,e)}return n}(e)+function(e){var t=e.tagName.toLowerCase();return ef[t]?"":"</"+t+">"}(e):Sc(e)?!t||"script"!==t.tagName.toLowerCase()&&"style"!==t.tagName.toLowerCase()?Tc(String(e.text)):String(e.text):""):""}var rf=function(e,t){return"top"===e?"translate(0,0)":"translate(0,"+t+")"};var uf=function(e,t){return"left"===e?"translate(0,0)":"translate("+t+",0)"},af=he("plot:render:svg:marks:lines");var of=function(e){var t,n,r,i,u,a,o,s,l,c,f,h;for(c=e.$.svg.path,t=e.lineOpacity.length,u=e.lineStyle.length,a=e.lineWidth.length,i=e.colors.length,f=e.x.length,l=[],af("Rendering lines..."),h=0;h<f;h++)n=e.lineStyle[h%u],af("Line style: %s (%d).",n,h),"none"!==n?(o=e.colors[h%i],af("Line color: %s (%d).",o,h),r=e.lineOpacity[h%t],af("Line opacity: %s (%d).",r,h),s=e.lineWidth[h%a],af("Line width: %s (%d).",s,h),c.x=e.x[h],c.y=e.y[h],c.style=n,c.label=e.labels[h]||"",c.color=o,c.opacity=r,c.width=s,af("Rendering line %d...",h),l.push(c.render())):af("Line style (%d) is `none`. Skipping...",h);return af("Finished rendering lines."),l},sf=he("plot:render:svg:marks:symbols");var lf=function(e){var t,n,r,i,u,a,o,s,l,c,f,h;for(c=e.$.svg.symbols,t=e.symbolsOpacity.length,n=e.symbols.length,r=e.colors.length,u=e.symbolsSize.length,f=e.x.length,s=[],sf("Rendering symbols..."),h=0;h<f;h++)a=e.symbols[h%n],sf("Symbol: %s (%d).",a,h),"none"!==a?(i=e.symbolsOpacity[h%t],sf("Symbols opacity: %d (%d).",i,h),l=e.symbolsSize[h%u],sf("Symbols size: %d (%d).",l,h),o=e.colors[h%r],sf("Symbols color: %s (%d).",o,h),c.x=e.x[h],c.y=e.y[h],c.symbol=a,c.label=e.labels[h]||"",c.color=o,c.size=l,c.opacity=i,sf("Rendering symbols %d...",h),s.push(c.render())):sf("Symbol (%d) is `none`. Skipping...",h);return sf("Finished rendering symbols."),s};var cf=function(e,t){return"top"===e?"translate(0,0)":"translate(0,"+t+")"},ff=he("plot:render:svg:marks:x-rug");var hf=function(e){var t,n,r,i,u,a,o,s,l,c,f,h,p,d,g;for(h=e.$.svg.xRug,n=e.xRugOpacity.length,r=e.xRugOrient.length,u=e.colors.length,a=e.xRugSize.length,s=e.xRug.length,p=e.x.length,c=[],ff("Rendering x-axis rug plots..."),g=0;g<p;g++)e.xRug[g%s]?(l=e.colors[g%u],ff("Rug color: %s (%d).",l,g),i=e.xRugOpacity[g%n],ff("Rug opacity: %d (%d).",i,g),o=e.xRugOrient[g%r],ff("Rug orientation: %s (%d).",o,g),f=e.xRugSize[g%a],ff("Rug tick size: %d (%d).",f,g),h.data=e.x[g],h.label=e.labels[g]||"",h.color=l,h.size=f,h.opacity=i,h.orientation=o,ff("Rendering x-axis rug %d...",g),(d=h.render()).properties.className+=" x",t=cf(o,e.graphHeight),d.properties.attributes||(d.properties.attributes={}),d.properties.attributes.transform=t,c.push(d)):ff("Rug plot (%d) disabled. Skipping...",g);return ff("Finished rendering x-axis rug plots."),c};var pf=function(e,t){return"left"===e?"translate(0,0)":"translate("+t+",0)"},df=he("plot:render:svg:marks:y-rug");var gf=function(e){var t,n,r,i,u,a,o,s,l,c,f,h,p,d,g;for(h=e.$.svg.yRug,n=e.yRugOpacity.length,r=e.yRugOrient.length,u=e.colors.length,a=e.yRugSize.length,s=e.yRug.length,p=e.y.length,c=[],df("Rendering y-axis rug plots..."),g=0;g<p;g++)e.yRug[g%s]?(l=e.colors[g%u],df("Rug color: %s (%d).",l,g),i=e.yRugOpacity[g%n],df("Rug opacity: %d (%d).",i,g),o=e.yRugOrient[g%r],df("Rug orientation: %s (%d).",o,g),f=e.yRugSize[g%a],df("Rug tick size: %d (%d).",f,g),h.data=e.y[g],h.label=e.labels[g]||"",h.color=l,h.size=f,h.opacity=i,h.orientation=o,df("Rendering y-axis rug %d...",g),(d=h.render()).properties.className+=" y",t=pf(o,e.graphWidth),d.properties.attributes||(d.properties.attributes={}),d.properties.attributes.transform=t,c.push(d)):df("Rug plot (%d) disabled. Skipping...",g);return df("Finished rendering y-axis rug plots."),c},vf=he("plot:render:svg:marks");var yf=function(e){var t,n,r;if(vf("Rendering marks group..."),t=e.$.svg.marks.render(),0===e.x.length)return vf("No individual marks to render."),t;for(n=[],vf("Rendering lines..."),n=n.concat(of(e)),vf("Rendering symbols..."),n=n.concat(lf(e)),vf("Rendering x-axis rug plots..."),n=n.concat(hf(e)),vf("Rendering y-axis rug plots..."),n=n.concat(gf(e)),vf("Inserting individual marks into marks group..."),r=0;r<n.length;r++)t.children.push(n[r]),t.count+=n[r].count;return vf("Finished rendering marks."),t},mf=Array.isArray,bf=Object.prototype.toString,_f=mf||function(e){return"[object Array]"===bf.call(e)};var wf=function(e){return e&&("function"==typeof e.hook&&!e.hasOwnProperty("hook")||"function"==typeof e.unhook&&!e.hasOwnProperty("unhook"))};var xf=Cf,Ef={},Af=[];function Cf(e,t,n,r,i){this.tagName=e,this.properties=t||Ef,this.children=n||Af,this.key=null!=r?String(r):void 0,this.namespace="string"==typeof i?i:null;var u,a=n&&n.length||0,o=0,s=!1,l=!1,c=!1;for(var f in t)if(t.hasOwnProperty(f)){var h=t[f];wf(h)&&h.unhook&&(u||(u={}),u[f]=h)}for(var p=0;p<a;p++){var d=n[p];kc(d)?(o+=d.count||0,!s&&d.hasWidgets&&(s=!0),!l&&d.hasThunks&&(l=!0),c||!d.hooks&&!d.descendantHooks||(c=!0)):!s&&Bc(d)?"function"==typeof d.destroy&&(s=!0):!l&&Oc(d)&&(l=!0)}this.count=a+o,this.hasWidgets=s,this.hasThunks=l,this.hooks=u,this.descendantHooks=c}Cf.prototype.version=Nc,Cf.prototype.type="VirtualNode";var Ff=Tf;function Tf(e){this.text=String(e)}Tf.prototype.version=Nc,Tf.prototype.type="VirtualText";var Df,Mf,Nf,kf=(Mf=String.prototype.split,Nf=/()??/.exec("")[1]===Df,function(e,t,n){if("[object RegExp]"!==Object.prototype.toString.call(t))return Mf.call(e,t,n);var r,i,u,a,o=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.extended?"x":"")+(t.sticky?"y":""),l=0;for(t=new RegExp(t.source,s+"g"),e+="",Nf||(r=new RegExp("^"+t.source+"$(?!\\s)",s)),n=n===Df?-1>>>0:n>>>0;(i=t.exec(e))&&!((u=i.index+i[0].length)>l&&(o.push(e.slice(l,i.index)),!Nf&&i.length>1&&i[0].replace(r,function(){for(var e=1;e<arguments.length-2;e++)arguments[e]===Df&&(i[e]=Df)}),i.length>1&&i.index<e.length&&Array.prototype.push.apply(o,i.slice(1)),a=i[0].length,l=u,o.length>=n));)t.lastIndex===i.index&&t.lastIndex++;return l===e.length?!a&&t.test("")||o.push(""):o.push(e.slice(l)),o.length>n?o.slice(0,n):o}),Sf=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,Of=/^\.|#/,Bf=function(e,t){if(!e)return"DIV";var n,r,i,u,a=!t.hasOwnProperty("id"),o=kf(e,Sf),s=null;Of.test(o[1])&&(s="DIV");for(u=0;u<o.length;u++)(r=o[u])&&(i=r.charAt(0),s?"."===i?(n=n||[]).push(r.substring(1,r.length)):"#"===i&&a&&(t.id=r.substring(1,r.length)):s=r);n&&(t.className&&n.push(t.className),t.className=n.join(" "));return t.namespace?s:s.toUpperCase()};var Rf={};(function(e){"use strict";var t="undefined"!=typeof window?window:void 0!==e?e:{};Rf=function(e,n){if(e in t)return t[e];return t[e]=n,n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});(function(e,t,n){var r="__INDIVIDUAL_ONE_VERSION_"+e,i=Rf(r+"_ENFORCE_SINGLETON",t);if(i!==t)throw new Error("Can only have one copy of "+e+".\nYou already have version "+i+" installed.\nThis means you cannot install version "+t);Rf(r,n)})("ev-store","7");var Vf="__EV_STORE_KEY@7",Pf=function(e){var t=e[Vf];t||(t=e[Vf]={});return t};var Lf=jf;function jf(e){if(!(this instanceof jf))return new jf(e);this.value=e}function zf(e){return kc(e)||Sc(e)||Bc(e)||Oc(e)}function If(e){try{return JSON.stringify(e,null," ")}catch(t){return String(e)}}jf.prototype.hook=function(e,t){Pf(e)[t.substr(3)]=this.value},jf.prototype.unhook=function(e,t){Pf(e)[t.substr(3)]=void 0};var Uf=function(e,t,n){var r,i,u,a,o=[];!n&&(s=t,"string"==typeof s||_f(s)||zf(s))&&(n=t,i={});var s;r=Bf(e,i=i||t||{}),i.hasOwnProperty("key")&&(u=i.key,i.key=void 0);i.hasOwnProperty("namespace")&&(a=i.namespace,i.namespace=void 0);"INPUT"!==r||a||!i.hasOwnProperty("value")||void 0===i.value||wf(i.value)||(i.value=Rc(i.value));(function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];if(wf(n))continue;"ev-"===t.substr(0,3)&&(e[t]=Lf(n))}})(i),void 0!==n&&null!==n&&function e(t,n,r,i){if("string"==typeof t)n.push(new Ff(t));else if("number"==typeof t)n.push(new Ff(String(t)));else if(zf(t))n.push(t);else{if(!_f(t)){if(null===t||void 0===t)return;throw a={foreignObject:t,parentVnode:{tagName:r,properties:i}},(o=new Error).type="virtual-hyperscript.unexpected.virtual-element",o.message="Unexpected virtual child passed to h().\nExpected a VNode / Vthunk / VWidget / string but:\ngot:\n"+If(a.foreignObject)+".\nThe parent vnode is:\n"+If(a.parentVnode),o.foreignObject=a.foreignObject,o.parentVnode=a.parentVnode,o}for(var u=0;u<t.length;u++)e(t[u],n,r,i)}var a,o}(n,o,r,i);return new xf(r,i,o,u,a)},Jf=he("annotations:render"),Yf="g";var Hf=function(){var e,t;return Jf("Rendering..."),t={namespace:"http://www.w3.org/2000/svg",property:"annotations",className:"annotations",attributes:{transform:"translate(0,0)"}},Jf("Generating a virtual DOM tree (%s) with properties: %s.",Yf,JSON.stringify(t)),e=Uf(Yf,t,[]),this.emit("_render",e),e},Wf=k.EventEmitter,qf=he("annotations:main");function Xf(){var e;return Si(this,Xf)?(e=this,qf("Creating an instance..."),Wf.call(this),this.on("change",function(){qf("Received a change event."),e.render()}),this.on("_render",function(){var t,n;for(qf("Received a render event. Re-emitting..."),(t=new Array(arguments.length+1))[0]="render",n=0;n<arguments.length;n++)t[n+1]=arguments[n];e.emit.apply(e,t)}),this):new Xf}oi(Xf,Wf),F(Xf.prototype,"render",Hf);var $f=Xf,Gf={width:400,height:400,id:"",autoRender:!1},Zf=Ea.isPrimitive;var Qf=function(e){return Zf(e)?null:new TypeError("invalid value. `width` must be a positive number. Value: `"+e+".`")},Kf=Ea.isPrimitive;var eh=function(e){return Kf(e)?null:new TypeError("invalid value. `width` must be a positive number. Value: `"+e+".`")},th=Ea.isPrimitive;var nh=function(e){return th(e)?null:new TypeError("invalid value. `height` must be a positive number. Value: `"+e+".`")},rh=Ea.isPrimitive;var ih=function(e){return rh(e)?null:new TypeError("invalid value. `height` must be a positive number. Value: `"+e+".`")},uh=Ae.isPrimitive;var ah=function(e){return uh(e)?null:new TypeError("invalid value. `id` must be a string. Value: `"+e+".`")},oh=Et.isPrimitive;var sh=function(e){return oh(e)?null:new TypeError("invalid value. `autoRender` must be a boolean primitive. Value: `"+e+".`")},lh=Et.isPrimitive;var ch=function(e){return lh(e)?null:new TypeError("invalid value. `autoRender` must be a boolean primitive. Value: `"+e+".`")},fh={width:eh,height:ih,id:ah,autoRender:ch},hh=Wt(fh);var ph=function(e,t){var n,r,i,u;if(!en(t))return new TypeError("invalid argument. Options argument must be an object. Value: `"+t+"`.");for(u=0;u<hh.length;u++)if(r=hh[u],h(t,r)){if(i=t[r],n=fh[r](i))return n;e[r]=i}return null},dh={width:"change",height:"change",id:"change",autoRender:"change"},gh={label:"change",numTicks:"change",orientation:"change",scale:"change",tickFormat:"change",tickPadding:"change",ticks:"change",tickSize:"change",innerTickSize:"change",outerTickSize:"change",autoRender:"change"};var vh=function(e){return gh[e]};var yh=function(e){return dh[e]},mh=he("clippath:set:width"),bh=yh("width");var _h=function(e){var t=eh(e);if(t)throw t;mh("Current value: %d.",this._width),this._width=e,mh("New value: %d.",this._width),this.emit(bh)};var wh=function(){return this._width},xh=he("clippath:set:height"),Eh=yh("height");var Ah=function(e){var t=ih(e);if(t)throw t;xh("Current value: %d.",this._height),this._height=e,xh("New Value: %d.",this._height),this.emit(Eh)};var Ch=function(){return this._height},Fh=he("clippath:set:id"),Th=yh("id");var Dh=function(e){var t=ah(e);if(t)throw t;Fh("Current value: %s.",this._id),this._id=e,Fh("New value: %s.",this._id),this.emit(Th)};var Mh=function(){return this._id},Nh=he("clip-path:set:auto-render"),kh=yh("autoRender");var Sh=function(e){var t=ch(e);if(t)throw t;Nh("Current value: %d.",this._autoRender),this._autoRender=e,Nh("New Value: %d.",this._autoRender),this.emit(kh)};var Oh=function(){return this._autoRender},Bh=he("clippath:components:rect"),Rh="rect";var Vh=function(e){var t={namespace:"http://www.w3.org/2000/svg",className:"clipPath",attributes:{width:e.width,height:e.height}};return Bh("Generating a virtual DOM tree (%s) with properties: %s.",Rh,JSON.stringify(t)),Uf(Rh,t,[])},Ph=he("clippath:components:main"),Lh="clipPath";var jh=function(e){var t,n;return n={namespace:"http://www.w3.org/2000/svg",id:e.id},Ph("Rendering clipping path rectangle..."),t=[Vh(e)],Ph("Generating a virtual DOM tree (%s) with properties: %s.",Lh,JSON.stringify(n)),Uf(Lh,n,t)},zh=he("clippath:render");var Ih=function(){var e;return zh("Rendering..."),e=jh(this),this.emit("_render",e),e},Uh=k.EventEmitter,Jh=he("clippath:main");function Yh(e){var t,n,r;if(!(this instanceof Yh))return new Yh(e);if(t=this,n=ni(Gf),r=ph(n,e))throw r;return Jh("Creating an instance with the following configuration: %s.",JSON.stringify(n)),Uh.call(this),A(this,"_width",{configurable:!1,enumerable:!1,writable:!0,value:n.width}),A(this,"_height",{configurable:!1,enumerable:!1,writable:!0,value:n.height}),A(this,"_id",{configurable:!1,enumerable:!1,writable:!0,value:n.id||Zi().toString()}),A(this,"_autoRender",{configurable:!1,enumerable:!1,writable:!0,value:n.autoRender}),this.on("change",function(){Jh("Received a change event."),t._autoRender&&t.render()}),this.on("_render",function(){var e,n;for(Jh("Received a render event. Re-emitting..."),(e=new Array(arguments.length+1))[0]="render",n=0;n<arguments.length;n++)e[n+1]=arguments[n];t.emit.apply(t,e)}),this}Yh.prototype=Object.create(Uh.prototype),Yh.prototype.constructor=Yh,A(Yh.prototype,"width",{configurable:!1,enumerable:!0,set:_h,get:wh}),A(Yh.prototype,"height",{configurable:!1,enumerable:!0,set:Ah,get:Ch}),A(Yh.prototype,"id",{configurable:!1,enumerable:!0,set:Dh,get:Mh}),A(Yh.prototype,"autoRender",{configurable:!1,enumerable:!0,set:Sh,get:Oh}),C(Yh.prototype,"render",Ih);var Hh=Yh,Wh={width:400,height:400,autoRender:!1},qh={width:400,height:400,autoRender:!1},Xh=Ea.isPrimitive;var $h=function(e){return Xh(e)?null:new TypeError("invalid value. `width` must be a positive number. Value: `"+e+".`")},Gh=Ea.isPrimitive;var Zh=function(e){return Gh(e)?null:new TypeError("invalid value. `height` must be a positive number. Value: `"+e+".`")},Qh=Et.isPrimitive;var Kh=function(e){return Qh(e)?null:new TypeError("invalid value. `autoRender` must be a boolean primitive. Value: `"+e+".`")},ep=Et.isPrimitive;var tp=function(e){return ep(e)?null:new TypeError("invalid value. `autoRender` must be a boolean primitive. Value: `"+e+".`")},np={width:Qf,height:nh,autoRender:tp},rp={width:$h,height:Zh,autoRender:Kh},ip=Wt(np);var up=function(e,t){var n,r,i,u;if(!en(t))return new TypeError("invalid argument. Options argument must be an object. Value: `"+t+"`.");for(u=0;u<ip.length;u++)if(r=ip[u],h(t,r)){if(i=t[r],n=np[r](i))return n;e[r]=i}return null},ap=Wt(rp);var op=function(e,t){var n,r,i,u;if(!en(t))return new TypeError("invalid argument. Options argument must be an object. Value: `"+t+"`.");for(u=0;u<ap.length;u++)if(r=ap[u],h(t,r)){if(i=t[r],n=rp[r](i))return n;e[r]=i}return null},sp={width:"change",height:"change",autoRender:"change"},lp={width:"change",height:"change",autoRender:"change"};var cp=function(e){return lp[e]},fp=he("canvas:set:width"),hp=cp("width");var pp=function(e){var t=$h(e);if(t)throw t;fp("Current value: %d.",this._width),this._width=e,fp("New value: %d.",this._width),this.emit(hp)};var dp=function(){return this._width},gp=he("canvas:set:height"),vp=cp("height");var yp=function(e){var t=Zh(e);if(t)throw t;gp("Current value: %d.",this._height),this._height=e,gp("New Value: %d.",this._height),this.emit(vp)};var mp=function(){return this._height},bp=he("canvas:set:auto-render"),_p=cp("autoRender");var wp=function(e){var t=Kh(e);if(t)throw t;bp("Current value: %d.",this._autoRender),this._autoRender=e,bp("New Value: %d.",this._autoRender),this.emit(_p)};var xp=function(){return this._autoRender},Ep=he("canvas:render"),Ap="svg";var Cp=function(){var e,t;return Ep("Rendering..."),e={namespace:"http://www.w3.org/2000/svg",property:"canvas",className:"canvas",attributes:{width:this.width,height:this.height}},Ep("Generating a virtual DOM tree (%s) with properties: %s.",Ap,JSON.stringify(e)),t=Uf(Ap,e,[]),this.emit("_render",t),t},Fp=k.EventEmitter,Tp=he("canvas:main");function Dp(e){var t,n,r;if(!(this instanceof Dp))return new Dp(e);if(t=this,n=ni(qh),r=op(n,e))throw r;return Tp("Creating an instance with the following configuration: %s.",JSON.stringify(n)),Fp.call(this),A(this,"_width",{configurable:!1,enumerable:!1,writable:!0,value:n.width}),A(this,"_height",{configurable:!1,enumerable:!1,writable:!0,value:n.height}),A(this,"_autoRender",{configurable:!1,enumerable:!1,writable:!0,value:n.autoRender}),this.on("change",function(){Tp("Received a change event."),t._autoRender&&t.render()}),this.on("_render",function(){var e,n;for(Tp("Received a render event. Re-emitting..."),(e=new Array(arguments.length+1))[0]="render",n=0;n<arguments.length;n++)e[n+1]=arguments[n];t.emit.apply(t,e)}),this}Dp.prototype=Object.create(Fp.prototype),Dp.prototype.constructor=Dp,A(Dp.prototype,"width",{configurable:!1,enumerable:!0,set:pp,get:dp}),A(Dp.prototype,"height",{configurable:!1,enumerable:!0,set:yp,get:mp}),A(Dp.prototype,"autoRender",{configurable:!1,enumerable:!0,set:wp,get:xp}),C(Dp.prototype,"render",Cp);var Mp=Dp,Np={translateX:0,translateY:0,autoRender:!1},kp=on.isPrimitive;var Sp=function(e){return kp(e)?null:new TypeError("invalid value. `translateX` must be a nonnegative integer. Value: `"+e+".`")},Op=on.isPrimitive;var Bp=function(e){return Op(e)?null:new TypeError("invalid value. `translateY` must be a nonnegative integer. Value: `"+e+".`")},Rp=Et.isPrimitive;var Vp=function(e){return Rp(e)?null:new TypeError("invalid value. `autoRender` must be a boolean primitive. Value: `"+e+".`")},Pp={translateX:Sp,translateY:Bp,autoRender:Vp},Lp=Wt(Pp);var jp=function(e,t){var n,r,i,u;if(!en(t))return new TypeError("invalid argument. Options argument must be an object. Value: `"+t+"`.");for(u=0;u<Lp.length;u++)if(r=Lp[u],h(t,r)){if(i=t[r],n=Pp[r](i))return n;e[r]=i}return null},zp={translateX:"change",translateY:"change",autoRender:"change"};var Ip=function(e){return zp[e]},Up=he("graph:set:translate-x"),Jp=Ip("translateX");var Yp=function(e){var t=Sp(e);if(t)throw t;Up("Current value: %d.",this._translateX),this._translateX=e,Up("New Value: %d.",this._translateX),this.emit(Jp)};var Hp=function(){return this._translateX},Wp=he("graph:set:translate-y"),qp=Ip("translateY");var Xp=function(e){var t=Bp(e);if(t)throw t;Wp("Current value: %d.",this._translateY),this._translateY=e,Wp("New Value: %d.",this._translateY),this.emit(qp)};var $p=function(){return this._translateY},Gp=he("canvas:set:auto-render"),Zp=Ip("autoRender");var Qp=function(e){var t=Vp(e);if(t)throw t;Gp("Current value: %d.",this._autoRender),this._autoRender=e,Gp("New Value: %d.",this._autoRender),this.emit(Zp)};var Kp=function(){return this._autoRender},ed=he("graph:render"),td="g";var nd=function(){var e,t;return ed("Rendering..."),e={namespace:"http://www.w3.org/2000/svg",property:"graph",className:"graph",attributes:{transform:"translate("+this.translateX+","+this.translateY+")"}},ed("Generating a virtual DOM tree (%s) with properties: %s.",td,JSON.stringify(e)),t=Uf(td,e,[]),this.emit("_render",t),t},rd=k.EventEmitter,id=he("graph:main");function ud(e){var t,n,r;if(!(this instanceof ud))return new ud(e);if(t=this,n=ni(Np),r=jp(n,e))throw r;return id("Creating an instance with the following configuration: %s.",JSON.stringify(n)),rd.call(this),A(this,"_translateX",{configurable:!1,enumerable:!1,writable:!0,value:n.translateX}),A(this,"_translateY",{configurable:!1,enumerable:!1,writable:!0,value:n.translateY}),A(this,"_autoRender",{configurable:!1,enumerable:!1,writable:!0,value:n.autoRender}),this.on("change",function(){id("Received a change event."),t._autoRender&&t.render()}),this.on("_render",function(){var e,n;for(id("Received a render event. Re-emitting..."),(e=new Array(arguments.length+1))[0]="render",n=0;n<arguments.length;n++)e[n+1]=arguments[n];t.emit.apply(t,e)}),this}ud.prototype=Object.create(rd.prototype),ud.prototype.constructor=ud,A(ud.prototype,"translateX",{configurable:!1,enumerable:!0,set:Yp,get:Hp}),A(ud.prototype,"translateY",{configurable:!1,enumerable:!0,set:Xp,get:$p}),A(ud.prototype,"autoRender",{configurable:!1,enumerable:!0,set:Qp,get:Kp}),C(ud.prototype,"render",nd);var ad=ud,od={text:"",autoRender:!1},sd=Ae.isPrimitive;var ld=function(e){return sd(e)?null:new TypeError("invalid value. `text` must be a string primitive. Value: `"+e+".`")},cd=Et.isPrimitive;var fd=function(e){return cd(e)?null:new TypeError("invalid value. `autoRender` must be a boolean primitive. Value: `"+e+".`")},hd={text:ld,autoRender:fd},pd=Wt(hd);var dd=function(e,t){var n,r,i,u;if(!en(t))return new TypeError("invalid argument. Options argument must be an object. Value: `"+t+"`.");for(u=0;u<pd.length;u++)if(r=pd[u],h(t,r)){if(i=t[r],n=hd[r](i))return n;e[r]=i}return null},gd={text:"change",autoRender:"change"};var vd=function(e){return gd[e]},yd=he("title:set:text"),md=vd("text");var bd=function(e){var t=ld(e);if(t)throw t;yd("Current value: %d.",this._text),this._text=e,yd("New Value: %d.",this._text),this.emit(md)};var _d=function(){return this._text},wd=he("title:set:auto-render"),xd=vd("autoRender");var Ed=function(e){var t=fd(e);if(t)throw t;wd("Current value: %d.",this._autoRender),this._autoRender=e,wd("New Value: %d.",this._autoRender),this.emit(xd)};var Ad=function(){return this._autoRender},Cd=he("title:render"),Fd="text";var Td=function(){var e,t,n;return Cd("Rendering..."),e={namespace:"http://www.w3.org/2000/svg",property:"title",className:"title noselect",attributes:{x:0,y:0,"text-anchor":"middle"}},n=this.text,Cd("Title: %s.",n),Cd("Generating a virtual DOM tree (%s) with properties: %s.",Fd,JSON.stringify(e)),t=Uf(Fd,e,n),this.emit("_render",t),t},Dd=k.EventEmitter,Md=he("title:main");function Nd(e){var t,n,r;if(!(this instanceof Nd))return new Nd(e);if(t=this,n=ni(od),r=dd(n,e))throw r;return Md("Creating an instance with the following configuration: %s.",JSON.stringify(n)),Dd.call(this),A(this,"_text",{configurable:!1,enumerable:!1,writable:!0,value:n.text}),A(this,"_autoRender",{configurable:!1,enumerable:!1,writable:!0,value:n.autoRender}),this.on("change",function(){Md("Received a change event."),t._autoRender&&t.render()}),this.on("_render",function(){var e,n;for(Md("Received a render event. Re-emitting..."),(e=new Array(arguments.length+1))[0]="render",n=0;n<arguments.length;n++)e[n+1]=arguments[n];t.emit.apply(t,e)}),this}Nd.prototype=Object.create(Dd.prototype),Nd.prototype.constructor=Nd,A(Nd.prototype,"text",{configurable:!1,enumerable:!0,set:bd,get:_d}),A(Nd.prototype,"autoRender",{configurable:!1,enumerable:!0,set:Ed,get:Ad}),C(Nd.prototype,"render",Td);var kd=Nd,Sd={clipPathId:"",autoRender:!1},Od=Ae.isPrimitive;var Bd=function(e){return Od(e)?null:new TypeError("invalid value. `clipPathId` must be a string primitive. Value: `"+e+".`")},Rd=Et.isPrimitive;var Vd=function(e){return Rd(e)?null:new TypeError("invalid value. `autoRender` must be a boolean primitive. Value: `"+e+".`")},Pd={clipPathId:Bd,autoRender:Vd},Ld=Wt(Pd);var jd=function(e,t){var n,r,i,u;if(!en(t))return new TypeError("invalid argument. Options argument must be an object. Value: `"+t+"`.");for(u=0;u<Ld.length;u++)if(r=Ld[u],h(t,r)){if(i=t[r],n=Pd[r](i))return n;e[r]=i}return null},zd={clipPathId:"change",autoRender:"change"};var Id=function(e){return zd[e]},Ud=he("marks:set:clip-path-id"),Jd=Id("clipPathId");var Yd=function(e){var t=Bd(e);if(t)throw t;Ud("Current value: %d.",this._clipPathId),this._clipPathId=e,Ud("New Value: %d.",this._clipPathId),this.emit(Jd)};var Hd=function(){return this._clipPathId},Wd=he("marks:set:auto-render"),qd=Id("autoRender");var Xd=function(e){var t=Vd(e);if(t)throw t;Wd("Current value: %d.",this._autoRender),this._autoRender=e,Wd("New Value: %d.",this._autoRender),this.emit(qd)};var $d=function(){return this._autoRender},Gd=he("marks:render"),Zd="g";var Qd=function(){var e,t;return Gd("Rendering..."),e={namespace:"http://www.w3.org/2000/svg",property:"marks",className:"marks",attributes:{"clip-path":"url(#"+this._clipPathId+")"}},Gd("Generating a virtual DOM tree (%s) with properties: %s.",Zd,JSON.stringify(e)),t=Uf(Zd,e,[]),this.emit("_render",t),t},Kd=k.EventEmitter,eg=he("marks:main");function tg(e){var t,n,r;if(!(this instanceof tg))return new tg(e);if(t=this,n=ni(Sd),r=jd(n,e))throw r;return eg("Creating an instance with the following configuration: %s.",JSON.stringify(n)),Kd.call(this),A(this,"_clipPathId",{configurable:!1,enumerable:!1,writable:!0,value:n.clipPathId}),A(this,"_autoRender",{configurable:!1,enumerable:!1,writable:!0,value:n.autoRender}),this.on("change",function(){eg("Received a change event."),t._autoRender&&t.render()}),this.on("_render",function(){var e,n;for(eg("Received a render event. Re-emitting..."),(e=new Array(arguments.length+1))[0]="render",n=0;n<arguments.length;n++)e[n+1]=arguments[n];t.emit.apply(t,e)}),this}tg.prototype=Object.create(Kd.prototype),tg.prototype.constructor=tg,A(tg.prototype,"clipPathId",{configurable:!1,enumerable:!0,set:Yd,get:Hd}),A(tg.prototype,"autoRender",{configurable:!1,enumerable:!0,set:Xd,get:$d}),C(tg.prototype,"render",Qd);var ng=tg;var rg=function(e){return sp[e]},ig=he("background:set:width"),ug=rg("width");var ag=function(e){var t=Qf(e);if(t)throw t;ig("Current value: %d.",this._width),this._width=e,ig("New value: %d.",this._width),this.emit(ug)};var og=function(){return this._width},sg=he("background:set:height"),lg=rg("height");var cg=function(e){var t=nh(e);if(t)throw t;sg("Current value: %d.",this._height),this._height=e,sg("New Value: %d.",this._height),this.emit(lg)};var fg=function(){return this._height},hg=he("background:set:auto-render"),pg=rg("autoRender");var dg=function(e){var t=tp(e);if(t)throw t;hg("Current value: %d.",this._autoRender),this._autoRender=e,hg("New Value: %d.",this._autoRender),this.emit(pg)};var gg=function(){return this._autoRender},vg=he("background:render"),yg="rect";var mg=function(){var e,t;return vg("Rendering..."),e={namespace:"http://www.w3.org/2000/svg",className:"background",attributes:{x:0,y:0,width:this.width,height:this.height,fill:"none",stroke:"none"}},vg("Generating a virtual DOM tree (%s) with properties: %s.",yg,JSON.stringify(e)),t=Uf(yg,e,[]),this.emit("_render",t),t},bg=k.EventEmitter,_g=he("background:main");function wg(e){var t,n,r;if(!(this instanceof wg))return new wg(e);if(t=this,n=ni(Wh),r=up(n,e))throw r;return _g("Creating an instance with the following configuration: %s.",JSON.stringify(n)),bg.call(this),A(this,"_width",{configurable:!1,enumerable:!1,writable:!0,value:n.width}),A(this,"_height",{configurable:!1,enumerable:!1,writable:!0,value:n.height}),A(this,"_autoRender",{configurable:!1,enumerable:!1,writable:!0,value:n.autoRender}),this.on("change",function(){_g("Received a change event."),t._autoRender&&t.render()}),this.on("_render",function(){var e,n;for(_g("Received a render event. Re-emitting..."),(e=new Array(arguments.length+1))[0]="render",n=0;n<arguments.length;n++)e[n+1]=arguments[n];t.emit.apply(t,e)}),this}wg.prototype=Object.create(bg.prototype),wg.prototype.constructor=wg,A(wg.prototype,"width",{configurable:!1,enumerable:!0,set:ag,get:og}),A(wg.prototype,"height",{configurable:!1,enumerable:!0,set:cg,get:fg}),A(wg.prototype,"autoRender",{configurable:!1,enumerable:!0,set:dg,get:gg}),C(wg.prototype,"render",mg);var xg=wg,Eg=he("defs:render"),Ag="defs";var Cg=function(){var e,t;return Eg("Rendering..."),t={namespace:"http://www.w3.org/2000/svg"},Eg("Generating a virtual DOM tree (%s) with properties: %s.",Ag,JSON.stringify(t)),e=Uf(Ag,t,[]),this.emit("_render",e),e},Fg=k.EventEmitter,Tg=he("defs:main");function Dg(){var e;return Si(this,Dg)?(e=this,Tg("Creating an instance..."),Fg.call(this),this.on("change",function(){Tg("Received a change event."),e.render()}),this.on("_render",function(){var t,n;for(Tg("Received a render event. Re-emitting..."),(t=new Array(arguments.length+1))[0]="render",n=0;n<arguments.length;n++)t[n+1]=arguments[n];e.emit.apply(e,t)}),this):new Dg}oi(Dg,Fg),F(Dg.prototype,"render",Cg);var Mg=Dg,Ng={scale:null,label:"",ticks:null,numTicks:null,tickFormat:null,tickSize:6,innerTickSize:6,outerTickSize:6,tickPadding:3,orientation:"bottom",autoRender:!1},kg=Ae.isPrimitive;var Sg=function(e){return kg(e)?null:new TypeError("invalid value. `label` must be a string. Value: `"+e+".`")},Og=on.isPrimitive;var Bg=function(e){return eo(e)||Og(e)?null:new TypeError("invalid value. `numTicks` must be a nonnegative integer or null. Value: `"+e+".`")},Rg=["left","right","top","bottom"];var Vg=function(e){return-1===yt(Rg,e)?new TypeError("invalid value. `orientation` must be one of `["+Rg.join(",")+"]`. Value: `"+e+".`"):null};var Pg=function(e){return qt(e)?null:new TypeError("invalid value. `scale` must be a function. Value: `"+e+".`")},Lg=Ae.isPrimitive;var jg=function(e){return eo(e)||Lg(e)||qt(e)?null:new TypeError("invalid value. `tickFormat` must be a string, function, or null. Value: `"+e+".`")},zg=on.isPrimitive;var Ig=function(e){return zg(e)?null:new TypeError("invalid value. `tickPadding` must be a nonnegative integer. Value: `"+e+".`")};var Ug=function(e){return eo(e)||v(e)?null:new TypeError("invalid value. `ticks` must be either null or an array. Value: `"+e+".`")},Jg=on.isPrimitive;var Yg=function(e){return Jg(e)?null:new TypeError("invalid value. `tickSize` must be a nonnegative integer. Value: `"+e+".`")},Hg=on.isPrimitive;var Wg=function(e){return Hg(e)?null:new TypeError("invalid value. `innerTickSize` must be a nonnegative integer. Value: `"+e+".`")},qg=on.isPrimitive;var Xg=function(e){return qg(e)?null:new TypeError("invalid value. `outerTickSize` must be a nonnegative integer. Value: `"+e+".`")},$g={autoRender:sh,label:Sg,numTicks:Bg,orientation:Vg,scale:Pg,tickFormat:jg,tickPadding:Ig,ticks:Ug,tickSize:Yg,innerTickSize:Wg,outerTickSize:Xg},Gg=Wt($g);var Zg=function(e,t){var n,r,i,u;if(!en(t))return new TypeError("invalid argument. Options argument must be an object. Value: `"+t+"`.");for(u=0;u<Gg.length;u++)if(r=Gg[u],h(t,r)){if(i=t[r],n=$g[r](i))return n;e[r]=i}return null},Qg=he("axis:set:scale"),Kg=vh("scale");var ev=function(e){var t=Pg(e);if(t)throw t;Qg("Current value: %s.",this._scale),this._scale=e,Qg("New Value: %s.",this._scale),this.emit(Kg)};var tv=function(){return this._scale},nv=he("axis:set:orientation"),rv=vh("orientation");var iv=function(e){var t=Vg(e);if(t)throw t;nv("Current value: %s.",this._orientation),this._orientation=e,nv("New Value: %s.",this._orientation),this.emit(rv)};var uv=function(){return this._orientation},av=he("axis:set:xlabel"),ov=vh("label");var sv=function(e){var t=Sg(e);if(t)throw t;av("Current value: %s.",this._label),this._label=e,av("New value: %s.",this._label),this.emit(ov)};var lv=function(){return this._label},cv=he("axis:set:ticks"),fv=vh("ticks");var hv=function(e){var t=Ug(e);if(t)throw t;cv("Current value: %s.",JSON.stringify(this._ticks)),eo(e)?this._ticks=e:this._ticks=e.slice(),cv("New Value: %s.",JSON.stringify(this._ticks)),this.emit(fv)};var pv=function(){return eo(this._ticks)?this._scale.ticks?this._scale.ticks(this._numTicks,this._tickFormat):this._scale.domain():this._ticks.slice()},dv=he("axis:set:numticks"),gv=vh("numTicks");var vv=function(e){var t=Bg(e);if(t)throw t;dv("Current value: %d.",e),this._numTicks=e,dv("New Value: %s.",this._numTicks),this.emit(gv)};var yv=function(){return this._numTicks},mv=he("axis:set:tickformat"),bv=vh("tickFormat");var _v=function(e){var t=jg(e);if(t)throw t;mv("Current value: %s.",this._tickFormat),this._tickFormat=e,mv("New Value: %s.",this._tickFormat),this.emit(bv)};var wv=function(e){return e},xv=Ao.format,Ev=Ae.isPrimitive;var Av=function(){return Ev(this._tickFormat)?xv(this._tickFormat):eo(this._tickFormat)?this._scale.tickFormat?this._scale.tickFormat(this._numTicks,this._tickFormat):wv:this._tickFormat},Cv=he("axis:set:ticksize"),Fv=vh("tickSize");var Tv=function(e){var t=Yg(e);if(t)throw t;Cv("Current value: %d.",e),this._tickSize=e,Cv("New Value: %s.",this._tickSize),this.emit(Fv)};var Dv=function(){return this._tickSize},Mv=he("axis:set:ticksize-inner"),Nv=vh("innerTickSize");var kv=function(e){var t=Wg(e);if(t)throw t;Mv("Current value: %d.",e),this._innerTickSize=e,Mv("New Value: %s.",this._innerTickSize),this.emit(Nv)};var Sv=function(){return this._innerTickSize},Ov=he("axis:set:ticksize-outer"),Bv=vh("outerTickSize");var Rv=function(e){var t=Xg(e);if(t)throw t;Ov("Current value: %d.",e),this._outerTickSize=e,Ov("New Value: %s.",this._outerTickSize),this.emit(Bv)};var Vv=function(){return this._outerTickSize},Pv=he("axis:set:tickpadding"),Lv=vh("tickPadding");var jv=function(e){var t=Ig(e);if(t)throw t;Pv("Current value: %d.",e),this._tickPadding=e,Pv("New Value: %s.",this._tickPadding),this.emit(Lv)};var zv=function(){return this._tickPadding};var Iv=function(){return this._innerTickSize+this._tickPadding};var Uv=function(){return"top"===this._orientation||"left"===this._orientation?-1:1},Jv=he("axis:center");var Yv=function(){var e=this._scale.bandwidth()/2;return function(t){var n=this._scale(t)+e;return Jv("Value: %s => Coordinate: %d",t,n),n}};var Hv=function(){var e=this._scale.copy();return e.bandwidth?Yv(e):e},Wv=he("axis:set:auto-render"),qv=vh("autoRender");var Xv=function(e){var t=sh(e);if(t)throw t;Wv("Current value: %d.",this._autoRender),this._autoRender=e,Wv("New Value: %d.",this._autoRender),this.emit(qv)};var $v=function(){return this._autoRender};var Gv=function(e){return"left"===e?"end":"right"===e?"start":"middle"},Zv=he("axis:components:domain"),Qv="path";var Kv=function(e){var t,n,r,i,u,a,o,s;return t=e._orientation,Zv("Axis orientation: %s.",t),a=e._scale.range(),Zv("Axis range: %s.",JSON.stringify(a)),r=a[0]+.5,i=a[a.length-1]+.5,u=e.tickDir*e._outerTickSize,s="","left"===t||"right"===t?(s+="M"+u+","+r,s+="H0.5",s+="V"+i,s+="H"+u,n="none"):(s+="M"+r+","+u,s+="V0.5",s+="H"+i,s+="V"+u,n="#aaa"),o={namespace:"http://www.w3.org/2000/svg",property:"axis.domain",className:"domain",attributes:{fill:"none",stroke:n,"stroke-width":1,d:s}},Zv("Generating a virtual DOM tree (%s) with properties: %s.",Qv,JSON.stringify(o)),Uf(Qv,o,[])},ey=he("axis:engine:translate-x");var ty=function(e){return function(t){var n="translate("+e(t)+",0)";return ey("Value: %s => Transform: %s.",t,n),n}},ny=he("axis:engine:translate-y");var ry=function(e){return function(t){var n="translate(0,"+e(t)+")";return ny("Value: %s => Transform: %s.",t,n),n}};var iy=function(e,t){return"top"===e||"bottom"===e?ty(t):ry(t)};var uy=function(e){return"left"===e||"right"===e?"x":"y"};var ay=function(e){return"left"===e||"right"===e?"y":"x"},oy=he("axis:components:line"),sy="line";var ly=function(e){var t,n,r;return t={namespace:"http://www.w3.org/2000/svg",attributes:{stroke:"#aaa","stroke-width":1}},n=uy(e._orientation),r=ay(e._orientation),t.attributes[n+"2"]=e.tickDir*e._innerTickSize,t.attributes[r+"1"]=.5,t.attributes[r+"2"]=.5,oy("Generating a virtual DOM tree (%s) with properties: %s.",sy,JSON.stringify(t)),Uf(sy,t,[])};var cy=function(e){return"top"===e?"0em":"bottom"===e?".71em":".32em"},fy=he("axis:components:text"),hy="text";var py=function(e,t){var n,r,i,u,a;return n=e._orientation,fy("Axis orientation: %s.",n),r={namespace:"http://www.w3.org/2000/svg",attributes:{fill:"#000",dy:cy(n)}},u=uy(n),a=ay(n),r.attributes[u]=e.tickDir*e.tickSpacing,r.attributes[a]=.5,i=e.tickFormat(t),fy("Tick text: %s.",i),fy("Generating a virtual DOM tree (%s) with properties: %s.",hy,JSON.stringify(r)),Uf(hy,r,i)},dy=he("axis:components:tick"),gy="g";var vy=function(e,t,n){var r,i;return i={namespace:"http://www.w3.org/2000/svg",property:"axis.tick",className:"tick",attributes:{opacity:1,transform:n(t)}},r=new Array(2),dy("Rendering a tick line..."),r[0]=ly(e),dy("Rendering tick text..."),r[1]=py(e,t),dy("Generating a virtual DOM tree (%s) with properties: %s.",gy,JSON.stringify(i)),Uf(gy,i,r)},yy=he("axis:components:ticks");var my=function(e){var t,n,r,i;for(n=e.ticks,yy("Tick values: %s.",JSON.stringify(n)),yy("Generating tick transform..."),t=iy(e._orientation,e._scale),yy("Rendering ticks..."),r=new Array(n.length),i=0;i<n.length;i++)yy("Rendering tick %d with value %s...",i,n[i]),r[i]=vy(e,n[i],t);return yy("Finished rendering ticks."),r};var by=function(e){return"bottom"===e||"top"===e?"rotate(0)":"left"===e?"rotate(-90)":"rotate(90)"};var _y=function(e,t){return"left"===e||"right"===e?-t[0]/2:t[1]/2};var wy=function(e){return"left"===e?-72:"right"===e?72:"bottom"===e?45:-45},xy=he("axis:components:label"),Ey="text";var Ay=function(e){var t,n;return t=e._orientation,xy("Axis orientation: %s.",t),n={namespace:"http://www.w3.org/2000/svg",property:"axis.label",className:"label noselect",attributes:{fill:"#000",stroke:"none","text-anchor":"middle",transform:by(t),x:_y(t,e._scale.range()),y:wy(t)}},xy("Axis label: %s.",e._label),xy("Generating a virtual DOM tree (%s) with properties: %s.",Ey,JSON.stringify(n)),Uf(Ey,n,e._label)},Cy=he("axis:components:main"),Fy="g";var Ty=function(e){var t,n;return n={namespace:"http://www.w3.org/2000/svg",property:"axis",className:"axis",attributes:{fill:"none","font-size":10,"font-family":"sans-serif","text-anchor":Gv(e._orientation)}},Cy("Rendering tick marks..."),t=my(e),Cy("Rendering domain line..."),t.unshift(Kv(e)),Cy("Rendering label..."),t.push(Ay(e)),Cy("Generating a virtual DOM tree (%s) with properties: %s.",Fy,JSON.stringify(n)),Uf(Fy,n,t)},Dy=he("axis:render");var My=function(){var e;return Dy("Rendering..."),e=Ty(this),this.emit("_render",e),e},Ny=k.EventEmitter,ky=To.scaleLinear,Sy=he("axis:main");function Oy(e){var t,n,r;if(!(this instanceof Oy))return new Oy(e);if(t=this,n=ni(Ng),r=Zg(n,e))throw r;return Sy("Creating an instance with the following configuration: %s.",JSON.stringify(n)),Ny.call(this),A(this,"_scale",{configurable:!1,enumerable:!1,writable:!0,value:n.scale||ky()}),A(this,"_orientation",{configurable:!1,enumerable:!1,writable:!0,value:n.orientation}),A(this,"_label",{configurable:!1,enumerable:!1,writable:!0,value:n.label}),A(this,"_ticks",{configurable:!1,enumerable:!1,writable:!0,value:n.ticks}),A(this,"_numTicks",{configurable:!1,enumerable:!1,writable:!0,value:n.numTicks}),A(this,"_tickFormat",{configurable:!1,enumerable:!1,writable:!0,value:n.tickFormat}),A(this,"_tickSize",{configurable:!1,enumerable:!1,writable:!0,value:n.tickSize}),A(this,"_innerTickSize",{configurable:!1,enumerable:!1,writable:!0,value:n.innerTickSize}),A(this,"_outerTickSize",{configurable:!1,enumerable:!1,writable:!0,value:n.outerTickSize}),A(this,"_tickPadding",{configurable:!1,enumerable:!1,writable:!0,value:n.tickPadding}),A(this,"_autoRender",{configurable:!1,enumerable:!1,writable:!0,value:n.autoRender}),this.on("change",function(){Sy("Received a change event."),t._autoRender&&t.render()}),this.on("_render",function(){var e,n;for(Sy("Received a render event. Re-emitting..."),(e=new Array(arguments.length+1))[0]="render",n=0;n<arguments.length;n++)e[n+1]=arguments[n];t.emit.apply(t,e)}),this}Oy.prototype=Object.create(Ny.prototype),Oy.prototype.constructor=Oy,A(Oy.prototype,"scale",{configurable:!1,enumerable:!0,set:ev,get:tv}),A(Oy.prototype,"orientation",{configurable:!1,enumerable:!0,set:iv,get:uv}),A(Oy.prototype,"label",{configurable:!1,enumerable:!0,set:sv,get:lv}),A(Oy.prototype,"ticks",{configurable:!1,enumerable:!0,set:hv,get:pv}),A(Oy.prototype,"numTicks",{configurable:!1,enumerable:!0,set:vv,get:yv}),A(Oy.prototype,"tickFormat",{configurable:!1,enumerable:!0,set:_v,get:Av}),A(Oy.prototype,"tickSize",{configurable:!1,enumerable:!0,set:Tv,get:Dv}),A(Oy.prototype,"innerTickSize",{configurable:!1,enumerable:!0,set:kv,get:Sv}),A(Oy.prototype,"outerTickSize",{configurable:!1,enumerable:!0,set:Rv,get:Vv}),A(Oy.prototype,"tickPadding",{configurable:!1,enumerable:!0,set:jv,get:zv}),A(Oy.prototype,"tickSpacing",{configurable:!1,enumerable:!0,get:Iv}),A(Oy.prototype,"tickDir",{configurable:!1,enumerable:!0,get:Uv}),A(Oy.prototype,"tickPos",{configurable:!1,enumerable:!0,get:Hv}),A(Oy.prototype,"autoRender",{configurable:!1,enumerable:!0,set:Xv,get:$v}),C(Oy.prototype,"render",My);var By=Oy,Ry=Ie.isPrimitive,Vy=he("path:accessor:is-defined");var Py=function(e){var t=!Ry(e);return Vy("Datum: %s. Defined: %s.",JSON.stringify(e),t),t},Ly={autoRender:!1,color:"#000",isDefined:null,label:"",opacity:.9,style:"-",width:2,x:[],xScale:null,y:[],yScale:null},jy=he("path:set:x");var zy=function(e){if(!zu(e))throw new TypeError("invalid value. `x` must be array-like. Value: `"+e+".`");jy("Current value: %s.",JSON.stringify(this._xData)),this._xData=e,jy("New Value: %s.",JSON.stringify(this._xData)),this.emit("change")};var Iy=function(){return this._xData},Uy=he("path:set:y");var Jy=function(e){if(!zu(e))throw new TypeError("invalid value. `y` must be array-like. Value: `"+e+".`");Uy("Current value: %s.",JSON.stringify(this._yData)),this._yData=e,Uy("New Value: %s.",JSON.stringify(this._yData)),this.emit("change")};var Yy=function(){return this._yData},Hy=he("path:set:xscale");var Wy=function(e){if(!qt(e))throw new TypeError("invalid value. `xScale` must be a function. Value: `"+e+".`");Hy("Current value: %s.",this._xScale),this._xScale=e,Hy("New Value: %s.",this._xScale),this.emit("change")};var qy=function(){return this._xScale},Xy=he("path:set:yscale");var $y=function(e){if(!qt(e))throw new TypeError("invalid value. `yScale` must be a function. Value: `"+e+".`");Xy("Current value: %s.",this._yScale),this._yScale=e,Xy("New Value: %s.",this._yScale),this.emit("change")};var Gy=function(){return this._yScale},Zy=he("path:set:is-defined");var Qy=function(e){if(!qt(e))throw new TypeError("invalid value. `isDefined` must be a function. Value: `"+e+".`");Zy("Current value: %s.",this._isDefined),this._isDefined=e,Zy("New Value: %s.",this._isDefined),this.emit("change")},Ky=Ae.isPrimitive,em=he("path:set:color");var tm=function(e){if(!Ky(e))throw new TypeError("invalid value. `color` must be a string primitive. Value: `"+e+".`");em("Current value: %d.",this._color),this._color=e,em("New Value: %d.",this._color),this.emit("change")};var nm=function(){return this._color},rm=Ae.isPrimitive,im=he("path:set:label");var um=function(e){if(!rm(e))throw new TypeError("invalid value. `label` must be a string primitive. Value: `"+e+".`");im("Current value: %d.",this._label),this._label=e,im("New Value: %d.",this._label),this.emit("change")};var am=function(){return this._label},om=Be.isPrimitive,sm=he("path:set:opacity");var lm=function(e){if(!om(e))throw new TypeError("invalid value. `opacity` must be a number. Value: `"+e+".`");if(e<0||e>1)throw new RangeError("invalid value. `opacity` must be a number on the interval `[0,1]`. Value: `"+e+"`.");sm("Current value: %d.",this._opacity),this._opacity=e,sm("New Value: %d.",this._opacity),this.emit("change")};var cm=function(){return this._opacity},fm=on.isPrimitive,hm=he("path:set:width");var pm=function(e){if(!fm(e))throw new TypeError("invalid value. `width` must be a nonnegative integer. Value: `"+e+".`");hm("Current value: %d.",this._width),this._width=e,hm("New Value: %d.",this._width),this.emit("change")};var dm=function(){return this._width},gm=Ae.isPrimitive,vm=he("path:set:style");var ym=function(e){if(!gm(e))throw new TypeError("invalid value. `style` must be a string primitive. Value: `"+e+".`");vm("Current value: %d.",this._style),this._style=e,vm("New Value: %d.",this._style),this.emit("change")};var mm=function(){return this._style},bm=Et.isPrimitive,_m=he("path:set:auto-render");var wm=function(e){if(!bm(e))throw new TypeError("invalid value. `autoRender` must be a boolean primitive. Value: `"+e+".`");_m("Current value: %d.",this._autoRender),this._autoRender=e,_m("New Value: %d.",this._autoRender),this.emit("change")};var xm=function(){return this._autoRender},Em={exports:{}};!function(e,t){"object"==typeof Em.exports?t(Em.exports):t((e=e||self).d3=e.d3||{})}(this,function(e){"use strict";var t=Math.PI,n=2*t,r=n-1e-6;function i(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function u(){return new i}i.prototype=u.prototype={constructor:i,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,u){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+u)},arcTo:function(e,n,r,i,u){e=+e,n=+n,r=+r,i=+i,u=+u;var a=this._x1,o=this._y1,s=r-e,l=i-n,c=a-e,f=o-n,h=c*c+f*f;if(u<0)throw new Error("negative radius: "+u);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=n);else if(h>1e-6)if(Math.abs(f*s-l*c)>1e-6&&u){var p=r-a,d=i-o,g=s*s+l*l,v=p*p+d*d,y=Math.sqrt(g),m=Math.sqrt(h),b=u*Math.tan((t-Math.acos((g+h-v)/(2*y*m)))/2),_=b/m,w=b/y;Math.abs(_-1)>1e-6&&(this._+="L"+(e+_*c)+","+(n+_*f)),this._+="A"+u+","+u+",0,0,"+ +(f*p>c*d)+","+(this._x1=e+w*s)+","+(this._y1=n+w*l)}else this._+="L"+(this._x1=e)+","+(this._y1=n);else;},arc:function(e,i,u,a,o,s){e=+e,i=+i,s=!!s;var l=(u=+u)*Math.cos(a),c=u*Math.sin(a),f=e+l,h=i+c,p=1^s,d=s?a-o:o-a;if(u<0)throw new Error("negative radius: "+u);null===this._x1?this._+="M"+f+","+h:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+f+","+h),u&&(d<0&&(d=d%n+n),d>r?this._+="A"+u+","+u+",0,1,"+p+","+(e-l)+","+(i-c)+"A"+u+","+u+",0,1,"+p+","+(this._x1=f)+","+(this._y1=h):d>1e-6&&(this._+="A"+u+","+u+",0,"+ +(d>=t)+","+p+","+(this._x1=e+u*Math.cos(o))+","+(this._y1=i+u*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.path=u,Object.defineProperty(e,"__esModule",{value:!0})}),Em=Em.exports;var Am={exports:{}};!function(e,t){"object"==typeof Am.exports?t(Am.exports,Em):t(e.d3=e.d3||{},e.d3)}(this,function(e,t){"use strict";function n(e){return function(){return e}}var r=Math.abs,i=Math.atan2,u=Math.cos,a=Math.max,o=Math.min,s=Math.sin,l=Math.sqrt,c=1e-12,f=Math.PI,h=f/2,p=2*f;function d(e){return e>=1?h:e<=-1?-h:Math.asin(e)}function g(e){return e.innerRadius}function v(e){return e.outerRadius}function y(e){return e.startAngle}function m(e){return e.endAngle}function b(e){return e&&e.padAngle}function _(e,t,n,r,i,u,o){var s=e-n,c=t-r,f=(o?u:-u)/l(s*s+c*c),h=f*c,p=-f*s,d=e+h,g=t+p,v=n+h,y=r+p,m=(d+v)/2,b=(g+y)/2,_=v-d,w=y-g,x=_*_+w*w,E=i-u,A=d*y-v*g,C=(w<0?-1:1)*l(a(0,E*E*x-A*A)),F=(A*w-_*C)/x,T=(-A*_-w*C)/x,D=(A*w+_*C)/x,M=(-A*_+w*C)/x,N=F-m,k=T-b,S=D-m,O=M-b;return N*N+k*k>S*S+O*O&&(F=D,T=M),{cx:F,cy:T,x01:-h,y01:-p,x11:F*(i/E-1),y11:T*(i/E-1)}}function w(e){this._context=e}function x(e){return new w(e)}function E(e){return e[0]}function A(e){return e[1]}function C(){var e=E,r=A,i=n(!0),u=null,a=x,o=null;function s(n){var s,l,c,f=n.length,h=!1;for(null==u&&(o=a(c=t.path())),s=0;s<=f;++s)!(s<f&&i(l=n[s],s,n))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+e(l,s,n),+r(l,s,n));if(c)return o=null,c+""||null}return s.x=function(t){return arguments.length?(e="function"==typeof t?t:n(+t),s):e},s.y=function(e){return arguments.length?(r="function"==typeof e?e:n(+e),s):r},s.defined=function(e){return arguments.length?(i="function"==typeof e?e:n(!!e),s):i},s.curve=function(e){return arguments.length?(a=e,null!=u&&(o=a(u)),s):a},s.context=function(e){return arguments.length?(null==e?u=o=null:o=a(u=e),s):u},s}function F(){var e=E,r=null,i=n(0),u=A,a=n(!0),o=null,s=x,l=null;function c(n){var c,f,h,p,d,g=n.length,v=!1,y=new Array(g),m=new Array(g);for(null==o&&(l=s(d=t.path())),c=0;c<=g;++c){if(!(c<g&&a(p=n[c],c,n))===v)if(v=!v)f=c,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),h=c-1;h>=f;--h)l.point(y[h],m[h]);l.lineEnd(),l.areaEnd()}v&&(y[c]=+e(p,c,n),m[c]=+i(p,c,n),l.point(r?+r(p,c,n):y[c],u?+u(p,c,n):m[c]))}if(d)return l=null,d+""||null}function f(){return C().defined(a).curve(s).context(o)}return c.x=function(t){return arguments.length?(e="function"==typeof t?t:n(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:n(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:n(+e),c):r},c.y=function(e){return arguments.length?(i="function"==typeof e?e:n(+e),u=null,c):i},c.y0=function(e){return arguments.length?(i="function"==typeof e?e:n(+e),c):i},c.y1=function(e){return arguments.length?(u=null==e?null:"function"==typeof e?e:n(+e),c):u},c.lineX0=c.lineY0=function(){return f().x(e).y(i)},c.lineY1=function(){return f().x(e).y(u)},c.lineX1=function(){return f().x(r).y(i)},c.defined=function(e){return arguments.length?(a="function"==typeof e?e:n(!!e),c):a},c.curve=function(e){return arguments.length?(s=e,null!=o&&(l=s(o)),c):s},c.context=function(e){return arguments.length?(null==e?o=l=null:l=s(o=e),c):o},c}function T(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function D(e){return e}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var M=k(x);function N(e){this._curve=e}function k(e){function t(t){return new N(e(t))}return t._curve=e,t}function S(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(k(e)):t()._curve},e}function O(){return S(C().curve(M))}function B(){var e=F().curve(M),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,u=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return S(n())},delete e.lineX0,e.lineEndAngle=function(){return S(r())},delete e.lineX1,e.lineInnerRadius=function(){return S(i())},delete e.lineY0,e.lineOuterRadius=function(){return S(u())},delete e.lineY1,e.curve=function(e){return arguments.length?t(k(e)):t()._curve},e}function R(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}N.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var V=Array.prototype.slice;function P(e){return e.source}function L(e){return e.target}function j(e){var r=P,i=L,u=E,a=A,o=null;function s(){var n,s=V.call(arguments),l=r.apply(this,s),c=i.apply(this,s);if(o||(o=n=t.path()),e(o,+u.apply(this,(s[0]=l,s)),+a.apply(this,s),+u.apply(this,(s[0]=c,s)),+a.apply(this,s)),n)return o=null,n+""||null}return s.source=function(e){return arguments.length?(r=e,s):r},s.target=function(e){return arguments.length?(i=e,s):i},s.x=function(e){return arguments.length?(u="function"==typeof e?e:n(+e),s):u},s.y=function(e){return arguments.length?(a="function"==typeof e?e:n(+e),s):a},s.context=function(e){return arguments.length?(o=null==e?null:e,s):o},s}function z(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function I(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function U(e,t,n,r,i){var u=R(t,n),a=R(t,n=(n+i)/2),o=R(r,n),s=R(r,i);e.moveTo(u[0],u[1]),e.bezierCurveTo(a[0],a[1],o[0],o[1],s[0],s[1])}var J={draw:function(e,t){var n=Math.sqrt(t/f);e.moveTo(n,0),e.arc(0,0,n,0,p)}},Y={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},H=Math.sqrt(1/3),W=2*H,q={draw:function(e,t){var n=Math.sqrt(t/W),r=n*H;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},X=Math.sin(f/10)/Math.sin(7*f/10),$=Math.sin(p/10)*X,G=-Math.cos(p/10)*X,Z={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=$*n,i=G*n;e.moveTo(0,-n),e.lineTo(r,i);for(var u=1;u<5;++u){var a=p*u/5,o=Math.cos(a),s=Math.sin(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},Q={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},K=Math.sqrt(3),ee={draw:function(e,t){var n=-Math.sqrt(t/(3*K));e.moveTo(0,2*n),e.lineTo(-K*n,-n),e.lineTo(K*n,-n),e.closePath()}},te=-.5,ne=Math.sqrt(3)/2,re=1/Math.sqrt(12),ie=3*(re/2+1),ue={draw:function(e,t){var n=Math.sqrt(t/ie),r=n/2,i=n*re,u=r,a=n*re+n,o=-u,s=a;e.moveTo(r,i),e.lineTo(u,a),e.lineTo(o,s),e.lineTo(te*r-ne*i,ne*r+te*i),e.lineTo(te*u-ne*a,ne*u+te*a),e.lineTo(te*o-ne*s,ne*o+te*s),e.lineTo(te*r+ne*i,te*i-ne*r),e.lineTo(te*u+ne*a,te*a-ne*u),e.lineTo(te*o+ne*s,te*s-ne*o),e.closePath()}},ae=[J,Y,q,Q,Z,ee,ue];function oe(){}function se(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function le(e){this._context=e}function ce(e){this._context=e}function fe(e){this._context=e}function he(e,t){this._basis=new le(e),this._beta=t}le.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:se(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:se(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ce.prototype={areaStart:oe,areaEnd:oe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:se(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},fe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:se(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},he.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],u=t[0],a=e[n]-i,o=t[n]-u,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(i+r*a),this._beta*t[s]+(1-this._beta)*(u+r*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var pe=function e(t){function n(e){return 1===t?new le(e):new he(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function de(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function ge(e,t){this._context=e,this._k=(1-t)/6}ge.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:de(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:de(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ve=function e(t){function n(e){return new ge(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ye(e,t){this._context=e,this._k=(1-t)/6}ye.prototype={areaStart:oe,areaEnd:oe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:de(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var me=function e(t){function n(e){return new ye(e,t)}return n.tension=function(t){return e(+t)},n}(0);function be(e,t){this._context=e,this._k=(1-t)/6}be.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:de(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var _e=function e(t){function n(e){return new be(e,t)}return n.tension=function(t){return e(+t)},n}(0);function we(e,t,n){var r=e._x1,i=e._y1,u=e._x2,a=e._y2;if(e._l01_a>c){var o=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*o-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,i=(i*o-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>c){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,f=3*e._l23_a*(e._l23_a+e._l12_a);u=(u*l+e._x1*e._l23_2a-t*e._l12_2a)/f,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/f}e._context.bezierCurveTo(r,i,u,a,e._x2,e._y2)}function xe(e,t){this._context=e,this._alpha=t}xe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:we(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ee=function e(t){function n(e){return t?new xe(e,t):new ge(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ae(e,t){this._context=e,this._alpha=t}Ae.prototype={areaStart:oe,areaEnd:oe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:we(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ce=function e(t){function n(e){return t?new Ae(e,t):new ye(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Fe(e,t){this._context=e,this._alpha=t}Fe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:we(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Te=function e(t){function n(e){return t?new Fe(e,t):new be(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function De(e){this._context=e}function Me(e){return e<0?-1:1}function Ne(e,t,n){var r=e._x1-e._x0,i=t-e._x1,u=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),o=(u*i+a*r)/(r+i);return(Me(u)+Me(a))*Math.min(Math.abs(u),Math.abs(a),.5*Math.abs(o))||0}function ke(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Se(e,t,n){var r=e._x0,i=e._y0,u=e._x1,a=e._y1,o=(u-r)/3;e._context.bezierCurveTo(r+o,i+o*t,u-o,a-o*n,u,a)}function Oe(e){this._context=e}function Be(e){this._context=new Re(e)}function Re(e){this._context=e}function Ve(e){this._context=e}function Pe(e){var t,n,r=e.length-1,i=new Array(r),u=new Array(r),a=new Array(r);for(i[0]=0,u[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,u[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,u[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/u[t-1],u[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/u[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/u[t];for(u[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)u[t]=2*e[t+1]-i[t+1];return[i,u]}function Le(e,t){this._context=e,this._t=t}function je(e,t){if((i=e.length)>1)for(var n,r,i,u=1,a=e[t[0]],o=a.length;u<i;++u)for(r=a,a=e[t[u]],n=0;n<o;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function ze(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Ie(e,t){return e[t]}function Ue(e){var t=e.map(Je);return ze(e).sort(function(e,n){return t[e]-t[n]})}function Je(e){for(var t,n=-1,r=0,i=e.length,u=-1/0;++n<i;)(t=+e[n][1])>u&&(u=t,r=n);return r}function Ye(e){var t=e.map(He);return ze(e).sort(function(e,n){return t[e]-t[n]})}function He(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}De.prototype={areaStart:oe,areaEnd:oe,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Oe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Se(this,this._t0,ke(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Se(this,ke(this,n=Ne(this,e,t)),n);break;default:Se(this,this._t0,n=Ne(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Be.prototype=Object.create(Oe.prototype)).point=function(e,t){Oe.prototype.point.call(this,t,e)},Re.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,u){this._context.bezierCurveTo(t,e,r,n,u,i)}},Ve.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Pe(e),i=Pe(t),u=0,a=1;a<n;++u,++a)this._context.bezierCurveTo(r[0][u],i[0][u],r[1][u],i[1][u],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Le.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},e.arc=function(){var e=g,a=v,w=n(0),x=null,E=y,A=m,C=b,F=null;function T(){var n,g,v,y=+e.apply(this,arguments),m=+a.apply(this,arguments),b=E.apply(this,arguments)-h,T=A.apply(this,arguments)-h,D=r(T-b),M=T>b;if(F||(F=n=t.path()),m<y&&(g=m,m=y,y=g),m>c)if(D>p-c)F.moveTo(m*u(b),m*s(b)),F.arc(0,0,m,b,T,!M),y>c&&(F.moveTo(y*u(T),y*s(T)),F.arc(0,0,y,T,b,M));else{var N,k,S=b,O=T,B=b,R=T,V=D,P=D,L=C.apply(this,arguments)/2,j=L>c&&(x?+x.apply(this,arguments):l(y*y+m*m)),z=o(r(m-y)/2,+w.apply(this,arguments)),I=z,U=z;if(j>c){var J=d(j/y*s(L)),Y=d(j/m*s(L));(V-=2*J)>c?(B+=J*=M?1:-1,R-=J):(V=0,B=R=(b+T)/2),(P-=2*Y)>c?(S+=Y*=M?1:-1,O-=Y):(P=0,S=O=(b+T)/2)}var H=m*u(S),W=m*s(S),q=y*u(R),X=y*s(R);if(z>c){var $,G=m*u(O),Z=m*s(O),Q=y*u(B),K=y*s(B);if(D<f&&($=function(e,t,n,r,i,u,a,o){var s=n-e,l=r-t,f=a-i,h=o-u,p=h*s-f*l;if(!(p*p<c))return[e+(p=(f*(t-u)-h*(e-i))/p)*s,t+p*l]}(H,W,Q,K,G,Z,q,X))){var ee=H-$[0],te=W-$[1],ne=G-$[0],re=Z-$[1],ie=1/s(((v=(ee*ne+te*re)/(l(ee*ee+te*te)*l(ne*ne+re*re)))>1?0:v<-1?f:Math.acos(v))/2),ue=l($[0]*$[0]+$[1]*$[1]);I=o(z,(y-ue)/(ie-1)),U=o(z,(m-ue)/(ie+1))}}P>c?U>c?(N=_(Q,K,H,W,m,U,M),k=_(G,Z,q,X,m,U,M),F.moveTo(N.cx+N.x01,N.cy+N.y01),U<z?F.arc(N.cx,N.cy,U,i(N.y01,N.x01),i(k.y01,k.x01),!M):(F.arc(N.cx,N.cy,U,i(N.y01,N.x01),i(N.y11,N.x11),!M),F.arc(0,0,m,i(N.cy+N.y11,N.cx+N.x11),i(k.cy+k.y11,k.cx+k.x11),!M),F.arc(k.cx,k.cy,U,i(k.y11,k.x11),i(k.y01,k.x01),!M))):(F.moveTo(H,W),F.arc(0,0,m,S,O,!M)):F.moveTo(H,W),y>c&&V>c?I>c?(N=_(q,X,G,Z,y,-I,M),k=_(H,W,Q,K,y,-I,M),F.lineTo(N.cx+N.x01,N.cy+N.y01),I<z?F.arc(N.cx,N.cy,I,i(N.y01,N.x01),i(k.y01,k.x01),!M):(F.arc(N.cx,N.cy,I,i(N.y01,N.x01),i(N.y11,N.x11),!M),F.arc(0,0,y,i(N.cy+N.y11,N.cx+N.x11),i(k.cy+k.y11,k.cx+k.x11),M),F.arc(k.cx,k.cy,I,i(k.y11,k.x11),i(k.y01,k.x01),!M))):F.arc(0,0,y,R,B,M):F.lineTo(q,X)}else F.moveTo(0,0);if(F.closePath(),n)return F=null,n+""||null}return T.centroid=function(){var t=(+e.apply(this,arguments)+ +a.apply(this,arguments))/2,n=(+E.apply(this,arguments)+ +A.apply(this,arguments))/2-f/2;return[u(n)*t,s(n)*t]},T.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:n(+t),T):e},T.outerRadius=function(e){return arguments.length?(a="function"==typeof e?e:n(+e),T):a},T.cornerRadius=function(e){return arguments.length?(w="function"==typeof e?e:n(+e),T):w},T.padRadius=function(e){return arguments.length?(x=null==e?null:"function"==typeof e?e:n(+e),T):x},T.startAngle=function(e){return arguments.length?(E="function"==typeof e?e:n(+e),T):E},T.endAngle=function(e){return arguments.length?(A="function"==typeof e?e:n(+e),T):A},T.padAngle=function(e){return arguments.length?(C="function"==typeof e?e:n(+e),T):C},T.context=function(e){return arguments.length?(F=null==e?null:e,T):F},T},e.area=F,e.line=C,e.pie=function(){var e=D,t=T,r=null,i=n(0),u=n(p),a=n(0);function o(n){var o,s,l,c,f,h=n.length,d=0,g=new Array(h),v=new Array(h),y=+i.apply(this,arguments),m=Math.min(p,Math.max(-p,u.apply(this,arguments)-y)),b=Math.min(Math.abs(m)/h,a.apply(this,arguments)),_=b*(m<0?-1:1);for(o=0;o<h;++o)(f=v[g[o]=o]=+e(n[o],o,n))>0&&(d+=f);for(null!=t?g.sort(function(e,n){return t(v[e],v[n])}):null!=r&&g.sort(function(e,t){return r(n[e],n[t])}),o=0,l=d?(m-h*_)/d:0;o<h;++o,y=c)s=g[o],c=y+((f=v[s])>0?f*l:0)+_,v[s]={data:n[s],index:o,value:f,startAngle:y,endAngle:c,padAngle:b};return v}return o.value=function(t){return arguments.length?(e="function"==typeof t?t:n(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,r=null,o):t},o.sort=function(e){return arguments.length?(r=e,t=null,o):r},o.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:n(+e),o):i},o.endAngle=function(e){return arguments.length?(u="function"==typeof e?e:n(+e),o):u},o.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:n(+e),o):a},o},e.areaRadial=B,e.radialArea=B,e.lineRadial=O,e.radialLine=O,e.pointRadial=R,e.linkHorizontal=function(){return j(z)},e.linkVertical=function(){return j(I)},e.linkRadial=function(){var e=j(U);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e},e.symbol=function(){var e=n(J),r=n(64),i=null;function u(){var n;if(i||(i=n=t.path()),e.apply(this,arguments).draw(i,+r.apply(this,arguments)),n)return i=null,n+""||null}return u.type=function(t){return arguments.length?(e="function"==typeof t?t:n(t),u):e},u.size=function(e){return arguments.length?(r="function"==typeof e?e:n(+e),u):r},u.context=function(e){return arguments.length?(i=null==e?null:e,u):i},u},e.symbols=ae,e.symbolCircle=J,e.symbolCross=Y,e.symbolDiamond=q,e.symbolSquare=Q,e.symbolStar=Z,e.symbolTriangle=ee,e.symbolWye=ue,e.curveBasisClosed=function(e){return new ce(e)},e.curveBasisOpen=function(e){return new fe(e)},e.curveBasis=function(e){return new le(e)},e.curveBundle=pe,e.curveCardinalClosed=me,e.curveCardinalOpen=_e,e.curveCardinal=ve,e.curveCatmullRomClosed=Ce,e.curveCatmullRomOpen=Te,e.curveCatmullRom=Ee,e.curveLinearClosed=function(e){return new De(e)},e.curveLinear=x,e.curveMonotoneX=function(e){return new Oe(e)},e.curveMonotoneY=function(e){return new Be(e)},e.curveNatural=function(e){return new Ve(e)},e.curveStep=function(e){return new Le(e,.5)},e.curveStepAfter=function(e){return new Le(e,1)},e.curveStepBefore=function(e){return new Le(e,0)},e.stack=function(){var e=n([]),t=ze,r=je,i=Ie;function u(n){var u,a,o=e.apply(this,arguments),s=n.length,l=o.length,c=new Array(l);for(u=0;u<l;++u){for(var f,h=o[u],p=c[u]=new Array(s),d=0;d<s;++d)p[d]=f=[0,+i(n[d],h,d,n)],f.data=n[d];p.key=h}for(u=0,a=t(c);u<l;++u)c[a[u]].index=u;return r(c,a),c}return u.keys=function(t){return arguments.length?(e="function"==typeof t?t:n(V.call(t)),u):e},u.value=function(e){return arguments.length?(i="function"==typeof e?e:n(+e),u):i},u.order=function(e){return arguments.length?(t=null==e?ze:"function"==typeof e?e:n(V.call(e)),u):t},u.offset=function(e){return arguments.length?(r=null==e?je:e,u):r},u},e.stackOffsetExpand=function(e,t){if((r=e.length)>0){for(var n,r,i,u=0,a=e[0].length;u<a;++u){for(i=n=0;n<r;++n)i+=e[n][u][1]||0;if(i)for(n=0;n<r;++n)e[n][u][1]/=i}je(e,t)}},e.stackOffsetDiverging=function(e,t){if((o=e.length)>0)for(var n,r,i,u,a,o,s=0,l=e[t[0]].length;s<l;++s)for(u=a=0,n=0;n<o;++n)(i=(r=e[t[n]][s])[1]-r[0])>=0?(r[0]=u,r[1]=u+=i):i<0?(r[1]=a,r[0]=a+=i):r[0]=u},e.stackOffsetNone=je,e.stackOffsetSilhouette=function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],u=i.length;r<u;++r){for(var a=0,o=0;a<n;++a)o+=e[a][r][1]||0;i[r][1]+=i[r][0]=-o/2}je(e,t)}},e.stackOffsetWiggle=function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,u=0,a=1;a<r;++a){for(var o=0,s=0,l=0;o<i;++o){for(var c=e[t[o]],f=c[a][1]||0,h=(f-(c[a-1][1]||0))/2,p=0;p<o;++p){var d=e[t[p]];h+=(d[a][1]||0)-(d[a-1][1]||0)}s+=f,l+=h*f}n[a-1][1]+=n[a-1][0]=u,s&&(u-=l/s)}n[a-1][1]+=n[a-1][0]=u,je(e,t)}},e.stackOrderAppearance=Ue,e.stackOrderAscending=Ye,e.stackOrderDescending=function(e){return Ye(e).reverse()},e.stackOrderInsideOut=function(e){var t,n,r=e.length,i=e.map(He),u=Ue(e),a=0,o=0,s=[],l=[];for(t=0;t<r;++t)n=u[t],a<o?(a+=i[n],s.push(n)):(o+=i[n],l.push(n));return l.reverse().concat(s)},e.stackOrderNone=ze,e.stackOrderReverse=function(e){return ze(e).reverse()},Object.defineProperty(e,"__esModule",{value:!0})});var Cm=(Am=Am.exports).line;var Fm=function(){return Cm().x(this.xPos).y(this.yPos).defined(this.isDefined)},Tm=he("path:xpos");var Dm=function(){var e=this.xScale;return function(t){var n=e(t[0]);return Tm("Value: %d => Pixel: %d.",t[0],n),n}},Mm=he("path:ypos");var Nm=function(){var e=this.yScale;return function(t){var n=e(t[1]);return Mm("Value: %d => Pixel: %d.",t[1],n),n}};var km=function(e,t){var n,r;if(e.length!==t.length)throw new Error("invalid arguments. Must provide equal length array-like objects. `x` length: "+e.length+", `y` length: "+t.length+".");for(n=new Array(e.length),r=0;r<e.length;r++)n[r]=[e[r],t[r]];return n},Sm={"-":"","--":"5, 1",":":"0.9","-.":"5, 1, 1, 1"};var Om=function(e){var t=Sm[e];return t||e},Bm=he("path:render"),Rm="path";var Vm=function(){var e,t;return Bm("Rendering..."),e={namespace:"http://www.w3.org/2000/svg",property:"line",className:"path line",attributes:{d:this.line(km(this._xData,this._yData)),fill:"none",stroke:this.color,"stroke-width":this.width,"stroke-opacity":this.opacity,"stroke-dasharray":Om(this.style),"data-label":this.label}},Bm("Generating a virtual DOM tree (%s) with properties: %s.",Rm,JSON.stringify(e)),t=Uf(Rm,e,[]),this.emit("_render",t),t},Pm=k.EventEmitter,Lm=To.scaleLinear,jm=he("path:main"),zm=["_autoRender","_color","_isDefined","_label","_opacity","_style","_width","_xData","_xScale","_yData","_yScale"];function Im(e){var t,n,r,i,u;if(!(this instanceof Im))return arguments.length?new Im(e):new Im;if(t=this,(r=ni(Ly)).isDefined=Py,r.xScale=Lm(),r.yScale=Lm(),arguments.length){if(!en(e))throw new TypeError("invalid argument. `options` argument must be an object. Value: `"+e+"`.");r=wi(r,e)}for(jm("Creating an instance with the following configuration: %s.",JSON.stringify(r)),Pm.call(this),u=0;u<zm.length;u++)A(this,zm[u],{configurable:!1,enumerable:!1,writable:!0,value:null});for(n=Wt(r),u=0;u<n.length;u++)this[i=n[u]]=r[i];return this.on("change",function(){jm("Received a change event."),t._autoRender&&t.render()}),this.on("_render",function(){var e,n;for(jm("Received a render event. Re-emitting..."),(e=new Array(arguments.length+1))[0]="render",n=0;n<arguments.length;n++)e[n+1]=arguments[n];t.emit.apply(t,e)}),this}Im.prototype=Object.create(Pm.prototype),Im.prototype.constructor=Im,A(Im.prototype,"x",{configurable:!1,enumerable:!0,set:zy,get:Iy}),A(Im.prototype,"y",{configurable:!1,enumerable:!0,set:Jy,get:Yy}),A(Im.prototype,"xScale",{configurable:!1,enumerable:!0,set:Wy,get:qy}),A(Im.prototype,"yScale",{configurable:!1,enumerable:!0,set:$y,get:Gy}),A(Im.prototype,"isDefined",{configurable:!1,enumerable:!0,set:Qy,get:Eu}),A(Im.prototype,"color",{configurable:!1,enumerable:!0,set:tm,get:nm}),A(Im.prototype,"label",{configurable:!1,enumerable:!0,set:um,get:am}),A(Im.prototype,"opacity",{configurable:!1,enumerable:!0,set:lm,get:cm}),A(Im.prototype,"width",{configurable:!1,enumerable:!0,set:pm,get:dm}),A(Im.prototype,"style",{configurable:!1,enumerable:!0,set:ym,get:mm}),A(Im.prototype,"autoRender",{configurable:!1,enumerable:!0,set:wm,get:xm}),A(Im.prototype,"line",{configurable:!1,enumerable:!0,get:Fm}),A(Im.prototype,"xPos",{configurable:!1,enumerable:!0,get:Dm}),A(Im.prototype,"yPos",{configurable:!1,enumerable:!0,get:Nm}),C(Im.prototype,"render",Vm);var Um=Im,Jm=Ie.isPrimitive,Ym=he("symbols:accessor:is-defined");var Hm=function(e){var t=!Jm(e);return Ym("Datum: %s. Defined: %s.",JSON.stringify(e),t),t},Wm={autoRender:!1,color:"#000",isDefined:null,label:"",opacity:.9,size:6,symbol:"closed-circle",x:[],xScale:null,y:[],yScale:null},qm=["closed-circle","open-circle"],Xm=he("symbols:set:symbol");var $m=function(e){if(-1===yt(qm,e))throw new TypeError("invalid value. `symbol` must be a supported symbol. Symbols: ["+qm.join(",")+"]. Value: `"+e+"`.");Xm("Current value: %d.",this._symbol),this._symbol=e,Xm("New Value: %d.",this._symbol),this.emit("change")};var Gm=function(){return this._symbol},Zm=he("symbols:set:x");var Qm=function(e){if(!zu(e))throw new TypeError("invalid value. `x` must be array-like. Value: `"+e+".`");Zm("Current value: %s.",JSON.stringify(this._xData)),this._xData=e,Zm("New Value: %s.",JSON.stringify(this._xData)),this.emit("change")};var Km=function(){return this._xData},eb=he("symbols:set:y");var tb=function(e){if(!zu(e))throw new TypeError("invalid value. `y` must be array-like. Value: `"+e+".`");eb("Current value: %s.",JSON.stringify(this._yData)),this._yData=e,eb("New Value: %s.",JSON.stringify(this._yData)),this.emit("change")};var nb=function(){return this._yData},rb=he("symbols:set:xscale");var ib=function(e){if(!qt(e))throw new TypeError("invalid value. `xScale` must be a function. Value: `"+e+".`");rb("Current value: %s.",this._xScale),this._xScale=e,rb("New Value: %s.",this._xScale),this.emit("change")};var ub=function(){return this._xScale},ab=he("symbols:set:yscale");var ob=function(e){if(!qt(e))throw new TypeError("invalid value. `yScale` must be a function. Value: `"+e+".`");ab("Current value: %s.",this._yScale),this._yScale=e,ab("New Value: %s.",this._yScale),this.emit("change")};var sb=function(){return this._yScale},lb=he("symbols:set:is-defined");var cb=function(e){if(!qt(e))throw new TypeError("invalid value. `isDefined` must be a function. Value: `"+e+".`");lb("Current value: %s.",this._isDefined),this._isDefined=e,lb("New Value: %s.",this._isDefined),this.emit("change")};var fb=function(){return this._isDefined},hb=on.isPrimitive,pb=he("symbols:set:size");var db=function(e){if(!hb(e)&&!qt(e))throw new TypeError("invalid value. `size` must be a nonnegative integer or a function. Value: `"+e+".`");pb("Current value: %d.",this._size),this._size=e,pb("New Value: %d.",this._size),this.emit("change")},gb=Be.isPrimitive;var vb=function(){var e=this;return gb(this._size)?function(){return e._size}:this._size},yb=Be.isPrimitive,mb=he("symbols:set:opacity");var bb=function(e){var t=yb(e);if(!t&&!qt(e))throw new TypeError("invalid value. `opacity` must be a number or a function. Value: `"+e+".`");if(t&&(e<0||e>1))throw new RangeError("invalid value. `opacity` must be a number on the interval `[0,1]`. Value: `"+e+"`.");mb("Current value: %d.",this._opacity),this._opacity=e,mb("New Value: %d.",this._opacity),this.emit("change")},_b=Be.isPrimitive;var wb=function(){var e=this;return _b(this._opacity)?function(){return e._opacity}:this._opacity},xb=Ae.isPrimitive,Eb=he("symbols:set:color");var Ab=function(e){if(!xb(e)&&!qt(e))throw new TypeError("invalid value. `color` must be a string primitive or a function. Value: `"+e+".`");Eb("Current value: %d.",this._color),this._color=e,Eb("New Value: %d.",this._color),this.emit("change")},Cb=Ae.isPrimitive;var Fb=function(){var e=this;return Cb(this._color)?function(){return e._color}:this._color},Tb=Ae.isPrimitive,Db=he("symbols:set:label");var Mb=function(e){if(!Tb(e)&&!qt(e))throw new TypeError("invalid value. `label` must be a string primitive or a function. Value: `"+e+".`");Db("Current value: %d.",this._label),this._label=e,Db("New Value: %d.",this._label),this.emit("change")},Nb=Ae.isPrimitive;var kb=function(){var e=this;return Nb(this._label)?function(){return e._label}:this._label},Sb=Et.isPrimitive,Ob=he("symbols:set:auto-render");var Bb=function(e){if(!Sb(e))throw new TypeError("invalid value. `autoRender` must be a boolean primitive. Value: `"+e+".`");Ob("Current value: %d.",this._autoRender),this._autoRender=e,Ob("New Value: %d.",this._autoRender),this.emit("change")};var Rb=function(){return this._autoRender},Vb=he("symbols:xpos");var Pb=function(){var e=this.xScale;return function(t){var n=e(t);return Vb("Value: %d => Pixel: %d.",t,n),n}},Lb=he("symbols:ypos");var jb=function(){var e=this.yScale;return function(t){var n=e(t);return Lb("Value: %d => Pixel: %d.",t,n),n}},zb=he("symbols:render:closed-circles"),Ib="circle";var Ub=function(e){var t,n,r,i,u,a,o,s,l,c,f,h,p,d;for(zb("Rendering closed circles..."),t=e.isDefined,n=e.opacity,r=e.label,i=e.color,a=e.size,o=e.xPos,s=e.yPos,h=e.x,p=e.y,l=new Array(h.length),d=0;d<h.length;d++)c=h[d],f=p[d],t(c)&&t(f)?(zb("Rendering datum %d...",d),u={namespace:"http://www.w3.org/2000/svg",property:"closed-circle",className:"closed-circle",attributes:{cx:o(c),cy:s(f),r:a(c,f,d)/2,stroke:"none",opacity:n(c,f,d),fill:i(c,f,d),"data-label":r(c,f,d)}},zb("Generating a virtual DOM tree (%s) with properties: %s.",Ib,JSON.stringify(u)),l[d]=Uf(Ib,u,[])):zb("Datum %d is undefined. [%s,%s].",d,c,f);return l},Jb=he("symbols:render:open-circles"),Yb="circle";var Hb=function(e){var t,n,r,i,u,a,o,s,l,c,f,h,p,d;for(Jb("Rendering open circles..."),t=e.isDefined,n=e.opacity,r=e.label,i=e.color,a=e.size,o=e.xPos,s=e.yPos,h=e.x,p=e.y,l=new Array(h.length),d=0;d<h.length;d++)c=h[d],f=p[d],t(c)&&t(f)?(Jb("Rendering datum %d...",d),u={namespace:"http://www.w3.org/2000/svg",property:"open-circle",className:"open-circle",attributes:{cx:o(c),cy:s(f),r:a(c,f,d)/2,fill:"none",opacity:n(c,f,d),stroke:i(c,f,d),"stroke-width":1,"data-label":r(c,f,d)}},Jb("Generating a virtual DOM tree (%s) with properties: %s.",Yb,JSON.stringify(u)),l[d]=Uf(Yb,u,[])):Jb("Datum %d is undefined. [%s,%s].",d,c,f);return l},Wb=he("symbols:render"),qb="g",Xb={"closed-circle":Ub,"open-circle":Hb};var $b=function(){var e,t,n;return Wb("Rendering..."),t={namespace:"http://www.w3.org/2000/svg",property:"symbols",className:"symbols"},Wb("Symbol: %s.",this.symbol),e=(0,Xb[this.symbol])(this),Wb("Generating a virtual DOM tree (%s) with properties: %s.",qb,JSON.stringify(t)),n=Uf(qb,t,e),this.emit("_render",n),n},Gb=k.EventEmitter,Zb=To.scaleLinear,Qb=he("symbols:main"),Kb=["_autoRender","_color","_isDefined","_label","_opacity","_size","_symbol","_xData","_xScale","_yData","_yScale"];function e_(e){var t,n,r,i,u;if(!(this instanceof e_))return arguments.length?new e_(e):new e_;if(t=this,(r=ni(Wm)).isDefined=Hm,r.xScale=Zb(),r.yScale=Zb(),arguments.length){if(!en(e))throw new TypeError("invalid argument. `options` argument must be an object. Value: `"+e+"`.");r=wi(r,e)}for(Qb("Creating an instance with the following configuration: %s.",JSON.stringify(r)),Gb.call(this),u=0;u<Kb.length;u++)A(this,Kb[u],{configurable:!1,enumerable:!1,writable:!0,value:null});for(n=Wt(r),u=0;u<n.length;u++)this[i=n[u]]=r[i];return this.on("change",function(){Qb("Received a change event."),t._autoRender&&t.render()}),this.on("_render",function(){var e,n;for(Qb("Received a render event. Re-emitting..."),(e=new Array(arguments.length+1))[0]="render",n=0;n<arguments.length;n++)e[n+1]=arguments[n];t.emit.apply(t,e)}),this}e_.prototype=Object.create(Gb.prototype),e_.prototype.constructor=e_,A(e_.prototype,"symbol",{configurable:!1,enumerable:!0,set:$m,get:Gm}),A(e_.prototype,"x",{configurable:!1,enumerable:!0,set:Qm,get:Km}),A(e_.prototype,"y",{configurable:!1,enumerable:!0,set:tb,get:nb}),A(e_.prototype,"xScale",{configurable:!1,enumerable:!0,set:ib,get:ub}),A(e_.prototype,"yScale",{configurable:!1,enumerable:!0,set:ob,get:sb}),A(e_.prototype,"isDefined",{configurable:!1,enumerable:!0,set:cb,get:fb}),A(e_.prototype,"size",{configurable:!1,enumerable:!0,set:db,get:vb}),A(e_.prototype,"opacity",{configurable:!1,enumerable:!0,set:bb,get:wb}),A(e_.prototype,"color",{configurable:!1,enumerable:!0,set:Ab,get:Fb}),A(e_.prototype,"label",{configurable:!1,enumerable:!0,set:Mb,get:kb}),A(e_.prototype,"autoRender",{configurable:!1,enumerable:!0,set:Bb,get:Rb}),A(e_.prototype,"xPos",{configurable:!1,enumerable:!0,get:Pb}),A(e_.prototype,"yPos",{configurable:!1,enumerable:!0,get:jb}),C(e_.prototype,"render",$b);var t_=e_,n_=Ie.isPrimitive,r_=he("rug:accessor:is-defined");var i_=function(e){var t=!n_(e);return r_("Datum: %s. Defined: %s.",JSON.stringify(e),t),t},u_={autoRender:!1,color:"#aaa",data:[],isDefined:null,label:"",opacity:.9,orientation:"bottom",scale:null,size:6},a_=Et.isPrimitive,o_=he("rug:set:auto-render");var s_=function(e){if(!a_(e))throw new TypeError("invalid value. `autoRender` must be a boolean primitive. Value: `"+e+".`");e!==this._autoRender&&(o_("Current value: %d.",this._autoRender),this._autoRender=e,o_("New Value: %d.",this._autoRender),this.emit("change"))};var l_=function(){return this._autoRender},c_=Ae.isPrimitive,f_=he("rug:set:color");var h_=function(e){if(!c_(e)&&!qt(e))throw new TypeError("invalid value. `color` must be a string primitive or a function. Value: `"+e+".`");e!==this._color&&(f_("Current value: %d.",this._color),this._color=e,f_("New Value: %d.",this._color),this.emit("change"))},p_=Ae.isPrimitive;var d_=function(){var e=this;return p_(this._color)?function(){return e._color}:this._color},g_=he("rug:set:data");var v_=function(e){if(!zu(e))throw new TypeError("invalid value. `data` must be array-like. Value: `"+e+".`");g_("Current value: %s.",JSON.stringify(this._data)),this._data=e,g_("New Value: %s.",JSON.stringify(this._data)),this.emit("change")};var y_=function(){return this._data},m_=he("rug:set:is-defined");var b_=function(e){if(!qt(e))throw new TypeError("invalid value. `isDefined` must be a function. Value: `"+e+".`");e!==this._isDefined&&(m_("Current value: %s.",this._isDefined),this._isDefined=e,m_("New Value: %s.",this._isDefined),this.emit("change"))};var __=function(){return this._isDefined},w_=Ae.isPrimitive,x_=he("rug:set:label");var E_=function(e){if(!w_(e)&&!qt(e))throw new TypeError("invalid value. `label` must be a string primitive or a function. Value: `"+e+".`");e!==this._label&&(x_("Current value: %d.",this._label),this._label=e,x_("New Value: %d.",this._label),this.emit("change"))},A_=Ae.isPrimitive;var C_=function(){var e=this;return A_(this._label)?function(){return e._label}:this._label},F_=Be.isPrimitive,T_=he("rug:set:opacity");var D_=function(e){var t=F_(e);if(!t&&!qt(e))throw new TypeError("invalid value. `opacity` must be a number or a function. Value: `"+e+".`");if(t&&(e!=e||e<0||e>1))throw new RangeError("invalid value. `opacity` must be a number on the interval `[0,1]`. Value: `"+e+"`.");e!==this._opacity&&(T_("Current value: %d.",this._opacity),this._opacity=e,T_("New Value: %d.",this._opacity),this.emit("change"))},M_=Be.isPrimitive;var N_=function(){var e=this;return M_(this._opacity)?function(){return e._opacity}:this._opacity},k_=["bottom","left","right","top"],S_=he("rug:set:orientation");var O_=function(e){if(-1===yt(k_,e))throw new Error("invalid value. `orientation` must be one of `["+k_.join(",")+"]`. Value: `"+e+".`");e!==this._orientation&&(S_("Current value: %d.",this._orientation),this._orientation=e,S_("New Value: %d.",this._orientation),this.emit("change"))};var B_=function(){return this._orientation},R_=he("rug:pos");var V_=function(){var e=this.scale;return function(t){var n=e(t);return R_("Value: %d => Pixel: %d.",t,n),n}},P_=he("rug:set:scale");var L_=function(e){if(!qt(e))throw new TypeError("invalid value. `scale` must be a function. Value: `"+e+".`");e!==this._scale&&(P_("Current value: %s.",this._scale),this._scale=e,P_("New Value: %s.",this._scale),this.emit("change"))};var j_=function(){return this._scale},z_=on.isPrimitive,I_=he("rug:set:size");var U_=function(e){if(!z_(e))throw new TypeError("invalid value. `size` must be a nonnegative integer. Value: `"+e+".`");e!==this._size&&(I_("Current value: %d.",this._size),this._size=e,I_("New Value: %d.",this._size),this.emit("change"))};var J_=function(){return this._size};var Y_=function(e){return"left"===e||"right"===e?"x":"y"};var H_=function(e){return"left"===e||"right"===e?"y":"x"};var W_=function(e){return"bottom"===e||"right"===e?-1:1},q_=he("rug:render:ticks"),X_="line";var $_=function(e){var t,n,r,i,u,a,o,s,l,c;for(q_("Rendering ticks..."),n=e.data,i=e.pos,o=Y_(e.orientation),s=H_(e.orientation),u=W_(e.orientation),r=new Array(n.length),c=0;c<n.length;c++)l=n[c],e.isDefined(l,c)?(t={namespace:"http://www.w3.org/2000/svg",property:"rug.tick",className:"tick",attributes:{fill:"none",opacity:e.opacity(l,c),stroke:e.color(l,c),"stroke-width":1,"data-label":e.label(l,c)}},a=i(l),t.attributes[o+"1"]=0,t.attributes[o+"2"]=u*e.size,t.attributes[s+"1"]=a,t.attributes[s+"2"]=a,q_("Rendering tick %d with value %s...",c,l),q_("Generating a virtual DOM tree (%s) with properties: %s.",X_,JSON.stringify(t)),r[c]=Uf(X_,t,[])):q_("Datum %d is not defined. Value: %s.",c,l);return q_("Finished rendering ticks."),r},G_=he("rug:render"),Z_="g";var Q_=function(){var e,t,n;return G_("Rendering..."),t={namespace:"http://www.w3.org/2000/svg",property:"rug",className:"rug"},e=$_(this),G_("Generating a virtual DOM tree (%s) with properties: %s.",Z_,JSON.stringify(t)),n=Uf(Z_,t,e),this.emit("_render",n),n},K_=k.EventEmitter,ew=To.scaleLinear,tw=he("rug:main"),nw=["_autoRender","_color","_data","_isDefined","_label","_opacity","_orientation","_scale","_size"];function rw(e){var t,n,r,i,u;if(!Si(this,rw))return arguments.length?new rw(e):new rw;if(t=this,(r=ni(u_)).isDefined=i_,r.scale=ew(),arguments.length){if(!en(e))throw new TypeError("invalid argument. `options` argument must be an object. Value: `"+e+"`.");r=wi(r,e)}for(tw("Creating an instance with the following configuration: %s.",JSON.stringify(r)),K_.call(this),u=0;u<nw.length;u++)A(this,nw[u],{configurable:!1,enumerable:!1,writable:!0,value:null});for(n=Wt(r),u=0;u<n.length;u++)this[i=n[u]]=r[i];return this.on("change",function(){tw("Received a change event."),t._autoRender&&t.render()}),this.on("_render",function(){var e,n;for(tw("Received a render event. Re-emitting..."),(e=new Array(arguments.length+1))[0]="render",n=0;n<arguments.length;n++)e[n+1]=arguments[n];t.emit.apply(t,e)}),this}oi(rw,K_),A(rw.prototype,"autoRender",{configurable:!1,enumerable:!0,set:s_,get:l_}),A(rw.prototype,"color",{configurable:!1,enumerable:!0,set:h_,get:d_}),A(rw.prototype,"data",{configurable:!1,enumerable:!0,set:v_,get:y_}),A(rw.prototype,"isDefined",{configurable:!1,enumerable:!0,set:b_,get:__}),A(rw.prototype,"label",{configurable:!1,enumerable:!0,set:E_,get:C_}),A(rw.prototype,"opacity",{configurable:!1,enumerable:!0,set:D_,get:N_}),A(rw.prototype,"orientation",{configurable:!1,enumerable:!0,set:O_,get:B_}),A(rw.prototype,"pos",{configurable:!1,enumerable:!0,get:V_}),A(rw.prototype,"scale",{configurable:!1,enumerable:!0,set:L_,get:j_}),A(rw.prototype,"size",{configurable:!1,enumerable:!0,set:U_,get:J_}),C(rw.prototype,"render",Q_);var iw=rw,uw=he("plot:render:svg:init");var aw=function(e){var t=e.$.svg;uw("Initializing components..."),uw("Initializing canvas component..."),A(t,"canvas",{configurable:!1,enumerable:!1,writable:!1,value:new Mp({autoRender:!1})}),uw("Initializing definitions component..."),A(t,"defs",{configurable:!1,enumerable:!1,writable:!1,value:new Mg({autoRender:!1})}),uw("Initializing clipping path component..."),A(t,"clipPath",{configurable:!1,enumerable:!1,writable:!1,value:new Hh({autoRender:!1,id:e._clipPathId})}),uw("Initializing graph component..."),A(t,"graph",{configurable:!1,enumerable:!1,writable:!1,value:new ad({autoRender:!1})}),uw("Initializing annotations component..."),A(t,"annotations",{configurable:!1,enumerable:!1,writable:!1,value:new $f({autoRender:!1})}),uw("Initializing title component..."),A(t,"title",{configurable:!1,enumerable:!1,writable:!1,value:new kd({autoRender:!1})}),uw("Initializing background component..."),A(t,"bkgd",{configurable:!1,enumerable:!1,writable:!1,value:new xg({autoRender:!1})}),uw("Initializing marks component..."),A(t,"marks",{configurable:!1,enumerable:!1,writable:!1,value:new ng({autoRender:!1,clipPathId:e._clipPathId})}),uw("Initializing path component..."),A(t,"path",{configurable:!1,enumerable:!1,writable:!1,value:new Um({autoRender:!1})}),uw("Initializing symbols component..."),A(t,"symbols",{configurable:!1,enumerable:!1,writable:!1,value:new t_({autoRender:!1})}),uw("Initializing x-axis rug component..."),A(t,"xRug",{configurable:!1,enumerable:!1,writable:!1,value:new iw({autoRender:!1})}),uw("Initializing y-axis rug component..."),A(t,"yRug",{configurable:!1,enumerable:!1,writable:!1,value:new iw({autoRender:!1})}),uw("Initializing x-axis component..."),A(t,"xAxis",{configurable:!1,enumerable:!1,writable:!1,value:new By({autoRender:!1})}),uw("Initializing y-axis component..."),A(t,"yAxis",{configurable:!1,enumerable:!1,writable:!1,value:new By({autoRender:!1})}),uw("All components initialized.")},ow=he("plot:render:svg:sync");var sw=function(e){var t=e.$.svg;ow("Syncing..."),ow("Syncing canvas..."),t.canvas.width=e.width,t.canvas.height=e.height,ow("Syncing definitions..."),ow("Syncing clipping path..."),t.clipPath.width=e.graphWidth,t.clipPath.height=e.graphHeight,ow("Syncing graph..."),t.graph.translateX=e.paddingLeft,t.graph.translateY=e.paddingTop,ow("Syncing annotations..."),ow("Syncing title..."),t.title.text=e.title,ow("Syncing background..."),t.bkgd.width=e.graphWidth,t.bkgd.height=e.graphHeight,ow("Syncing marks..."),t.marks.clipPathId=e._clipPathId,ow("Syncing path..."),t.path.xScale=e.xScale,t.path.yScale=e.yScale,ow("Syncing symbols..."),t.symbols.xScale=e.xScale,t.symbols.yScale=e.yScale,ow("Syncing x-axis rug..."),t.xRug.scale=e.xScale,ow("Syncing y-axis rug..."),t.yRug.scale=e.yScale,ow("Syncing x-axis..."),t.xAxis.scale=e.xScale,t.xAxis.label=e.xLabel,t.xAxis.tickFormat=e.xTickFormat,t.xAxis.numTicks=e.xNumTicks,t.xAxis.orientation=e.xAxisOrient,ow("Syncing y-axis..."),t.yAxis.scale=e.yScale,t.yAxis.label=e.yLabel,t.yAxis.tickFormat=e.yTickFormat,t.yAxis.numTicks=e.yNumTicks,t.yAxis.orientation=e.yAxisOrient,ow("Sync complete.")},lw=he("plot:render:svg:main");var cw=function(e){var t,n,r,i,u,a,o,s,l,c,f;return(f=e.$.svg).canvas||(lw("Initializing components..."),aw(e)),lw("Syncing component states..."),sw(e),lw("Rendering individual components..."),lw("Rendering annotations..."),t=f.annotations.render(),lw("Rendering clip-path..."),n=f.clipPath.render(),lw("Rendering canvas..."),r=f.canvas.render(),lw("Rendering graph..."),u=f.graph.render(),lw("Rendering title..."),i=f.title.render(),lw("Rendering x-axis..."),o=f.xAxis.render(),lw("Rendering y-axis..."),s=f.yAxis.render(),lw("Rendering background..."),l=f.bkgd.render(),lw("Rendering definitions..."),c=f.defs.render(),lw("Rendering marks..."),a=yf(e),lw("Updating rendered components..."),lw("Updating title..."),i.properties.attributes.x=e.paddingLeft+e.graphWidth/2,i.properties.attributes.y=e.paddingTop/2,lw("Updating x-axis..."),o.properties.className+=" x",o.properties.attributes.transform=rf(e.xAxisOrient,e.graphHeight),lw("Updating y-axis..."),s.properties.className+=" y",s.properties.attributes.transform=uf(e.yAxisOrient,e.graphWidth),lw("Assembling virtual tree..."),lw("Inserting clip-path into definitions..."),c.children.push(n),c.count+=n.count,lw("Inserting background into graph..."),u.children.push(l),u.count+=l.count,lw("Inserting marks into graph..."),u.children.push(a),u.count+=a.count,lw("Inserting x-axis into graph..."),u.children.push(o),u.count+=o.count,lw("Inserting y-axis into graph..."),u.children.push(s),u.count+=s.count,lw("Inserting title into annotations..."),t.children.push(i),t.count+=i.count,lw("Inserting definitions into canvas..."),r.children.push(c),r.count+=c.count,lw("Inserting graph into canvas..."),r.children.push(u),r.count+=u.count,lw("Inserting annotations into canvas..."),r.children.push(t),r.count+=t.count,r};var fw=function(e){var t,n,r;if(t=e._xData,n=e._yData,t.length!==n.length)throw new Error("invalid state. `x` and `y` are different lengths. `x` length: "+t.length+", `y` length: "+n.length+".");for(r=0;r<t.length;r++)if(t[r].length!==n[r].length)throw new Error("invalid state. Each `x[i]:y[i]` pair must be the same length. x["+r+"].length: "+t[r].length+", y["+r+"].length: "+n[r].length+".")},hw=he("plot:render");var pw=function(e){var t,n,r;return n=this.renderFormat,arguments.length?(this.renderFormat=e,r=e):r=n,hw("Validating render state..."),fw(this),hw("Render format: %s.",this.renderFormat),hw("Rendering..."),"svg"===this._engine&&(t=cw(this),"html"===r&&(t=tf(t)),this.emit("render",t)),arguments.length&&(this.renderFormat=n),t},dw=he("plot:view");var gw=function(e){var t=this.viewer;arguments.length&&(this.viewer=e),dw("Viewer: %s.",this.viewer),dw("Generating view..."),tu(this,this.viewer,this.render()),arguments.length&&(this.viewer=t)},vw=k.EventEmitter,yw=wi.factory,mw=he("plot:main"),bw=["_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"],_w=yw({extend:!1});function ww(){var e,t,n,r,i,u,a;if(t=arguments.length,!(this instanceof ww))return 0===t?new ww:1===t?new ww(arguments[0]):2===t?new ww(arguments[0],arguments[1]):new ww(arguments[0],arguments[1],arguments[2]);if(r=this,i=au(),0===t)e={};else if(1===t){if(e=arguments[0],!en(e))throw new TypeError("invalid argument. Options argument must be an `object`. Value: `"+e+"`.")}else if(2===t)e={x:arguments[0],y:arguments[1]};else if(t>2){if(!en(arguments[2]))throw new TypeError("invalid argument. Options argument must be an `object`. Value: `"+arguments[2]+"`.");(e=ni(arguments[2])).x=arguments[0],e.y=arguments[1]}for(i=_w(i,e),mw("Creating an instance with the following configuration: %s.",JSON.stringify(i)),vw.call(this),a=0;a<bw.length;a++)A(this,bw[a],{configurable:!1,enumerable:!1,writable:!0,value:null});for(A(this,"_clipPathId",{configurable:!1,enumerable:!1,writable:!1,value:Zi().toString()}),A(this,"$",{configurable:!1,enumerable:!1,writable:!1,value:{}}),A(this.$,"svg",{configurable:!1,enumerable:!1,writable:!1,value:{}}),n=Wt(i),a=0;a<n.length;a++)this[u=n[a]]=i[u];return this.on("change",function(){mw("Received a change event."),r._autoRender&&r.render()}),this.on("render",function(e){mw("Received a render event."),r._autoView&&(mw("Viewer: %s.",r._viewer),mw("Generating view..."),tu(r,r._viewer,e))}),this}oi(ww,vw),A(ww.prototype,"x",{configurable:!1,enumerable:!0,set:su,get:lu}),A(ww.prototype,"y",{configurable:!1,enumerable:!0,set:fu,get:hu}),A(ww.prototype,"labels",{configurable:!1,enumerable:!0,set:mu,get:_u}),A(ww.prototype,"isDefined",{configurable:!1,enumerable:!0,set:xu,get:Au}),A(ww.prototype,"colors",{configurable:!1,enumerable:!0,set:Nu,get:ku}),A(ww.prototype,"lineStyle",{configurable:!1,enumerable:!0,set:Pu,get:Lu}),A(ww.prototype,"lineOpacity",{configurable:!1,enumerable:!0,set:qu,get:Xu}),A(ww.prototype,"lineWidth",{configurable:!1,enumerable:!0,set:ea,get:ta}),A(ww.prototype,"symbols",{configurable:!1,enumerable:!0,set:aa,get:oa}),A(ww.prototype,"symbolsSize",{configurable:!1,enumerable:!0,set:fa,get:ha}),A(ww.prototype,"symbolsOpacity",{configurable:!1,enumerable:!0,set:va,get:ya}),A(ww.prototype,"width",{configurable:!1,enumerable:!0,set:Fa,get:Da}),A(ww.prototype,"height",{configurable:!1,enumerable:!0,set:ka,get:Oa}),A(ww.prototype,"paddingLeft",{configurable:!1,enumerable:!0,set:Va,get:La}),A(ww.prototype,"paddingRight",{configurable:!1,enumerable:!0,set:Ia,get:Ja}),A(ww.prototype,"paddingTop",{configurable:!1,enumerable:!0,set:Wa,get:Xa}),A(ww.prototype,"paddingBottom",{configurable:!1,enumerable:!0,set:Za,get:Ka}),A(ww.prototype,"xMin",{configurable:!1,enumerable:!0,set:ro,get:uo}),A(ww.prototype,"xMax",{configurable:!1,enumerable:!0,set:so,get:co}),A(ww.prototype,"yMin",{configurable:!1,enumerable:!0,set:po,get:go}),A(ww.prototype,"yMax",{configurable:!1,enumerable:!0,set:mo,get:bo}),A(ww.prototype,"xScale",{configurable:!1,enumerable:!0,get:No,set:Oo}),A(ww.prototype,"yScale",{configurable:!1,enumerable:!0,get:Vo,set:jo}),A(ww.prototype,"xTickFormat",{configurable:!1,enumerable:!0,set:Uo,get:Xo}),A(ww.prototype,"yTickFormat",{configurable:!1,enumerable:!0,set:Zo,get:es}),A(ww.prototype,"xNumTicks",{configurable:!1,enumerable:!0,set:rs,get:us}),A(ww.prototype,"yNumTicks",{configurable:!1,enumerable:!0,set:ss,get:cs}),A(ww.prototype,"xAxisOrient",{configurable:!1,enumerable:!0,set:ds,get:vs}),A(ww.prototype,"yAxisOrient",{configurable:!1,enumerable:!0,set:_s,get:xs}),A(ww.prototype,"xRug",{configurable:!1,enumerable:!0,set:Ds,get:Ms}),A(ww.prototype,"yRug",{configurable:!1,enumerable:!0,set:Os,get:Bs}),A(ww.prototype,"xRugOrient",{configurable:!1,enumerable:!0,set:js,get:zs}),A(ww.prototype,"yRugOrient",{configurable:!1,enumerable:!0,set:Hs,get:Ws}),A(ww.prototype,"xRugOpacity",{configurable:!1,enumerable:!0,set:Gs,get:Zs}),A(ww.prototype,"yRugOpacity",{configurable:!1,enumerable:!0,set:tl,get:nl}),A(ww.prototype,"xRugSize",{configurable:!1,enumerable:!0,set:al,get:ol}),A(ww.prototype,"yRugSize",{configurable:!1,enumerable:!0,set:fl,get:hl}),A(ww.prototype,"description",{configurable:!1,enumerable:!0,set:gl,get:yl}),A(ww.prototype,"title",{configurable:!1,enumerable:!0,set:_l,get:xl}),A(ww.prototype,"xLabel",{configurable:!1,enumerable:!0,set:Cl,get:Tl}),A(ww.prototype,"yLabel",{configurable:!1,enumerable:!0,set:Nl,get:Sl}),A(ww.prototype,"engine",{configurable:!1,enumerable:!0,set:zl,get:Il}),A(ww.prototype,"autoRender",{configurable:!1,enumerable:!0,set:Yl,get:Wl}),A(ww.prototype,"renderFormat",{configurable:!1,enumerable:!0,set:Gl,get:Ql}),A(ww.prototype,"viewer",{configurable:!1,enumerable:!0,set:nc,get:ic}),A(ww.prototype,"autoView",{configurable:!1,enumerable:!0,set:oc,get:lc}),A(ww.prototype,"graphWidth",{configurable:!1,enumerable:!0,get:fc}),A(ww.prototype,"graphHeight",{configurable:!1,enumerable:!0,get:pc}),A(ww.prototype,"xDomain",{configurable:!1,enumerable:!0,get:gc}),A(ww.prototype,"yDomain",{configurable:!1,enumerable:!0,get:yc}),A(ww.prototype,"xRange",{configurable:!1,enumerable:!0,get:bc}),A(ww.prototype,"yRange",{configurable:!1,enumerable:!0,get:wc}),A(ww.prototype,"xPos",{configurable:!1,enumerable:!0,get:Ec}),A(ww.prototype,"yPos",{configurable:!1,enumerable:!0,get:Cc}),C(ww.prototype,"render",pw),C(ww.prototype,"view",gw);var xw=ww;F(xw,"factory",function(e){var t;if(arguments.length){if(!en(e))throw new TypeError("invalid argument. `options` argument must be a plain object. Value: `"+e+"`");t=ni(e)}else t={};return function(e,n){return 2===arguments.length?new xw(e,n,t):new xw(t)}});var Ew=xw,Aw=Ew;var Cw=function(){var e,t;return e=nu(),(t={}).autoRender=!1,t.autoView=!1,t.description="",t.engine="svg",t.height=400,t.labels=[],t.lineOpacity=.9,t.lineStyle="-",t.lineWidth=2,t.paddingBottom=80,t.paddingLeft=90,t.paddingRight=20,t.paddingTop=80,t.renderFormat="vdom",t.title="",t.viewer=e?"window":"none",t.width=400,t.xAxisOrient="bottom",t.xLabel="x",t.xMax=null,t.xMin=null,t.xNumTicks=5,t.xTickFormat=null,t.yAxisOrient="left",t.yLabel="y",t.yMax=null,t.yMin=null,t.yNumTicks=5,t.yTickFormat=null,t},Fw=Et.isPrimitive,Tw=he("plot:base:set:auto-render");var Dw=function(e){if(!Fw(e))throw new TypeError("invalid value. `autoRender` must be a boolean primitive. Value: `"+e+".`");e!==this._autoRender&&(Tw("Current value: %s.",this._autoRender),this._autoRender=e,Tw("New Value: %s.",this._autoRender),this.emit("change"))},Mw=Et.isPrimitive,Nw=he("plot:base:set:auto-view");var kw=function(e){if(!Mw(e))throw new TypeError("invalid value. `autoView` must be a boolean primitive. Value: `"+e+".`");e!==this._autoView&&(Nw("Current value: %s.",this._autoView),this._autoView=e,Nw("New Value: %s.",this._autoView),this.emit("change"))},Sw=Ae.isPrimitive,Ow=he("plot:base:set:description");var Bw=function(e){if(!Sw(e))throw new TypeError("invalid value. `description` must be a string. Value: `"+e+".`");e!==this._description&&(Ow("Current value: %s.",this._description),this._description=e,Ow("New value: %s.",this._description),this.emit("change"))},Rw=he("plot:base:set:engine");var Vw=function(e){if(!Vl(Pl,e))throw new TypeError("invalid value. `engine` must be one of `["+Pl.join(", ")+"]`. Value: `"+e+".`");e!==this._engine&&(Rw("Current value: %s.",this._engine),this._engine=e,Rw("New value: %s.",this._engine),this.emit("change"))};var Pw=function(){return this._engine},Lw=Ea.isPrimitive,jw=he("plot:base:set:height");var zw=function(e){if(!Lw(e))throw new TypeError("invalid value. `height` must be a positive number. Value: `"+e+".`");e!==this._height&&(jw("Current value: %d.",this._height),this._height=e,jw("New Value: %d.",this._height),this.emit("change"))},Iw=gu.primitives,Uw=he("plot:base:set:labels");var Jw=function(e){if(!pu(e)&&!Iw(e))throw new TypeError("invalid value. `labels` must be either an array of strings or an empty array. Value: `"+e+".`");Uw("Current value: %s.",JSON.stringify(this._labels)),this._labels=e.slice(),Uw("New Value: %s.",JSON.stringify(this._labels)),this.emit("change")},Yw=Be.isPrimitive,Hw=Ju.primitives,Ww=he("plot:base:set:line-opacity");var qw=function(e){var t,n=Yw(e);if(!n&&!Hw(e))throw new TypeError("invalid value. `lineOpacity` must be a number or number array. Value: `"+e+".`");for(e=n?[e]:e.slice(),t=0;t<e.length;t++)if(e[t]<0||e[t]>1)throw new RangeError("invalid value. A `lineOpacity` must be a number on the interval `[0,1]`. Value: `"+e[t]+"`.");Ww("Current value: %s.",JSON.stringify(this._lineOpacity)),this._lineOpacity=e,Ww("New Value: %s.",JSON.stringify(this._lineOpacity)),this.emit("change")};var Xw=function(){return this._lineOpacity.slice()},$w=Ae.isPrimitive,Gw=gu.primitives,Zw=he("plot:base:set:line-style");var Qw=function(e){var t,n=$w(e);if(!n&&!Gw(e))throw new TypeError("invalid value. `lineStyle` must be a string or a string array. Value: `"+e+".`");for(e=n?[e]:e.slice(),t=0;t<e.length;t++)if(-1===yt(Su,e[t]))throw new Error("invalid value. Unsupported/unrecognized line style. Must be one of `["+Su.join(",")+"]`. Value: `"+e[t]+"`.");Zw("Current value: %s.",JSON.stringify(this._lineStyle)),this._lineStyle=e,Zw("New Value: %s.",JSON.stringify(this._lineStyle)),this.emit("change")};var Kw=function(){return this._lineStyle.slice()},ex=on.isPrimitive,tx=Gu.primitives,nx=he("plot:base:set:line-width");var rx=function(e){var t=ex(e);if(!t&&!tx(e))throw new TypeError("invalid value. `lineWidth` must be a nonnegative integer or nonnegative integer array. Value: `"+e+".`");e=t?[e]:e.slice(),nx("Current value: %s.",JSON.stringify(this._lineWidth)),this._lineWidth=e,nx("New Value: %s.",JSON.stringify(this._lineWidth)),this.emit("change")};var ix=function(){return this._lineWidth.slice()},ux=on.isPrimitive,ax=he("plot:base:set:padding-bottom");var ox=function(e){if(!ux(e))throw new TypeError("invalid value. `paddingBottom` must be a nonnegative integer. Value: `"+e+".`");e!==this._paddingBottom&&(ax("Current value: %d.",this._paddingBottom),this._paddingBottom=e,ax("New value: %d.",this._paddingBottom),this.emit("change"))},sx=on.isPrimitive,lx=he("plot:base:set:padding-left");var cx=function(e){if(!sx(e))throw new TypeError("invalid value. `paddingLeft` must be a nonnegative integer. Value: `"+e+".`");e!==this._paddingLeft&&(lx("Current value: %d.",this._paddingLeft),this._paddingLeft=e,lx("New value: %d.",this._paddingLeft),this.emit("change"))},fx=on.isPrimitive,hx=he("plot:base:set:padding-right");var px=function(e){if(!fx(e))throw new TypeError("invalid value. `paddingRight` must be a nonnegative integer. Value: `"+e+".`");e!==this._paddingRight&&(hx("Current value: %d.",this._paddingRight),this._paddingRight=e,hx("New value: %d.",this._paddingRight),this.emit("change"))},dx=on.isPrimitive,gx=he("plot:base:set:padding-top");var vx=function(e){if(!dx(e))throw new TypeError("invalid value. `paddingTop` must be a nonnegative integer. Value: `"+e+".`");e!==this._paddingTop&&(gx("Current value: %d.",this._paddingTop),this._paddingTop=e,gx("New value: %d.",this._paddingTop),this.emit("change"))},yx=he("plot:base:render");var mx=function(e){var t,n,r;return n=this.renderFormat,arguments.length?(this.renderFormat=e,r=e):r=n,yx("Render format: %s.",this.renderFormat),yx("Rendering..."),t=this._render(r),this.emit("render",t),arguments.length&&(this.renderFormat=n),t};var bx=function(){throw new Error("method not implemented.")},_x=he("plot:base:set:render-format");var wx=function(e){if(-1===yt(ql,e))throw new TypeError("invalid value. Unrecognized/unsupported `format`. Must be one of `["+ql.join(", ")+"]`. Value: `"+e+".`");e!==this._renderFormat&&(_x("Current value: %s.",this._renderFormat),this._renderFormat=e,_x("New value: %s.",this._renderFormat),this.emit("change"))},xx=Ae.isPrimitive,Ex=he("plot:base:set:title");var Ax=function(e){if(!xx(e))throw new TypeError("invalid value. `title` must be a string. Value: `"+e+".`");e!==this._title&&(Ex("Current value: %s.",this._title),this._title=e,Ex("New value: %s.",this._title),this.emit("change"))},Cx=he("plot:base:set:viewer");var Fx=function(e){if(-1===yt(Kl,e))throw new TypeError("invalid value. Unrecognized/unsupported `viewer`. Value: `"+e+".`");e!==this._viewer&&(Cx("Current value: %s.",this._viewer),this._viewer=e,Cx("New value: %s.",this._viewer),this.emit("change"))},Tx=Ea.isPrimitive,Dx=he("plot:base:set:width");var Mx=function(e){if(!Tx(e))throw new TypeError("invalid value. `width` must be a positive number. Value: `"+e+".`");e!==this._width&&(Dx("Current value: %d.",this._width),this._width=e,Dx("New value: %d.",this._width),this.emit("change"))},Nx=he("plot:base:set:x-axis-orient");var kx=function(e){if(-1===yt(fs,e))throw new TypeError("invalid value. `xAxisOrient` must be one of `["+fs.join(", ")+"]`. Value: `"+e+".`");e!==this._xAxisOrient&&(Nx("Current value: %s.",this._xAxisOrient),this._xAxisOrient=e,Nx("New value: %s.",this._xAxisOrient),this.emit("change"))},Sx=Ae.isPrimitive,Ox=he("plot:base:set:x-label");var Bx=function(e){if(!Sx(e))throw new TypeError("invalid value. `xLabel` must be a string. Value: `"+e+".`");e!==this._xLabel&&(Ox("Current value: %s.",this._xLabel),this._xLabel=e,Ox("New value: %s.",this._xLabel),this.emit("change"))},Rx=on.isPrimitive,Vx=he("plot:base:set:x-num-ticks");var Px=function(e){if(!eo(e)&&!Rx(e))throw new TypeError("invalid value. `xNumTicks` must be a nonnegative integer or null. Value: `"+e+".`");e!==this._xNumTicks&&(Vx("Current value: %d.",this._xNumTicks),this._xNumTicks=e,Vx("New value: %d.",this._xNumTicks),this.emit("change"))},Lx=he("plot:base:x-pos");var jx=function(){var e=this.xScale;return function(t){var n=e(t);return Lx("Value: %d => Pixel: %d.",t,n),n}},zx=Ae.isPrimitive,Ix=he("plot:base:set:x-tick-format");var Ux=function(e){if(!eo(e)&&!zx(e))throw new TypeError("invalid value. `xTickFormat` must be a string or null. Value: `"+e+".`");e!==this._xTickFormat&&(Ix("Current value: %s.",this._xTickFormat),this._xTickFormat=e,Ix("New value: %s.",this._xTickFormat),this.emit("change"))},Jx=he("plot:base:set:y-axis-orient");var Yx=function(e){if(-1===yt(ys,e))throw new TypeError("invalid value. `yAxisOrient` must be one of `["+ys.join(", ")+"]`. Value: `"+e+".`");e!==this._yAxisOrient&&(Jx("Current value: %s.",this._yAxisOrient),this._yAxisOrient=e,Jx("New value: %s.",this._yAxisOrient),this.emit("change"))},Hx=Ae.isPrimitive,Wx=he("plot:base:set:y-label");var qx=function(e){if(!Hx(e))throw new TypeError("invalid value. `yLabel` must be a string. Value: `"+e+".`");e!==this._yLabel&&(Wx("Current value: %s.",this._yLabel),this._yLabel=e,Wx("New value: %s.",this._yLabel),this.emit("change"))},Xx=on.isPrimitive,$x=he("plot:base:set:y-num-ticks");var Gx=function(e){if(!eo(e)&&!Xx(e))throw new TypeError("invalid value. `yNumTicks` must be a nonnegative integer or null. Value: `"+e+".`");e!==this._yNumTicks&&($x("Current value: %d.",this._yNumTicks),this._yNumTicks=e,$x("New value: %d.",this._yNumTicks),this.emit("change"))},Zx=he("plot:base:y-pos");var Qx=function(){var e=this.yScale;return function(t){var n=e(t);return Zx("Value: %d => Pixel: %d.",t,n),n}},Kx=Ae.isPrimitive,eE=he("plot:base:set:y-tick-format");var tE=function(e){if(!eo(e)&&!Kx(e))throw new TypeError("invalid value. `yTickFormat` must be a string or null. Value: `"+e+".`");e!==this._yTickFormat&&(eE("Current value: %s.",this._yTickFormat),this._yTickFormat=e,eE("New value: %s.",this._yTickFormat),this.emit("change"))},nE=Ao.format;var rE=function(){return eo(this._yTickFormat)?this._yTickFormat:nE(this._yTickFormat)},iE=he("plot:base:view");var uE=function(e){var t=this.viewer;arguments.length&&(this.viewer=e),iE("Viewer: %s.",this.viewer),iE("Generating view..."),eu(this,this.viewer,this.render()),arguments.length&&(this.viewer=t)},aE=k.EventEmitter,oE=wi.factory,sE=he("plot:base:main"),lE=["_autoRender","_autoView","_description","_engine","_height","_isDefined","_labels","_lineOpacity","_lineStyle","_lineWidth","_paddingBottom","_paddingLeft","_paddingRight","_paddingTop","_renderFormat","_title","_viewer","_width","_xAxisOrient","_xData","_xLabel","_xMax","_xMin","_xNumTicks","_xScale","_xTickFormat","_yAxisOrient","_yData","_yLabel","_yMax","_yMin","_yNumTicks","_yScale","_yTickFormat"],cE=oE({extend:!1});function fE(){var e,t,n,r,i,u,a;if(t=arguments.length,!(this instanceof fE))return 0===t?new fE:1===t?new fE(arguments[0]):2===t?new fE(arguments[0],arguments[1]):new fE(arguments[0],arguments[1],arguments[2]);if(r=this,i=Cw(),0===t)e={};else if(1===t){if(e=arguments[0],!en(e))throw new TypeError("invalid argument. Options argument must be an `object`. Value: `"+e+"`.")}else if(2===t)e={};else if(t>2){if(!en(arguments[2]))throw new TypeError("invalid argument. Options argument must be an `object`. Value: `"+arguments[2]+"`.");e=ni(arguments[2])}for(i=cE(i,e),sE("Creating an instance with the following configuration: %s.",JSON.stringify(i)),aE.call(this),a=0;a<lE.length;a++)A(this,lE[a],{configurable:!1,enumerable:!1,writable:!0,value:null});for(A(this,"_clipPathId",{configurable:!1,enumerable:!1,writable:!1,value:Zi().toString()}),A(this,"$",{configurable:!1,enumerable:!1,writable:!1,value:{}}),A(this.$,"svg",{configurable:!1,enumerable:!1,writable:!1,value:{}}),n=Wt(i),a=0;a<n.length;a++)this[u=n[a]]=i[u];return this.on("change",function(){sE("Received a change event."),r._autoRender&&r.render()}),this.on("render",function(e){sE("Received a render event."),r._autoView&&(sE("Viewer: %s.",r._viewer),sE("Generating view..."),uE(r,r._viewer,e))}),this}oi(fE,aE),A(fE.prototype,"autoRender",{configurable:!1,enumerable:!0,set:Dw,get:Hl}),A(fE.prototype,"autoView",{configurable:!1,enumerable:!0,set:kw,get:sc}),A(fE.prototype,"description",{configurable:!1,enumerable:!0,set:Bw,get:vl}),A(fE.prototype,"engine",{configurable:!1,enumerable:!0,set:Vw,get:Pw}),A(fE.prototype,"graphHeight",{configurable:!1,enumerable:!0,get:hc}),A(fE.prototype,"graphWidth",{configurable:!1,enumerable:!0,get:cc}),A(fE.prototype,"height",{configurable:!1,enumerable:!0,set:zw,get:Sa}),A(fE.prototype,"labels",{configurable:!1,enumerable:!0,set:Jw,get:bu}),A(fE.prototype,"lineOpacity",{configurable:!1,enumerable:!0,set:qw,get:Xw}),A(fE.prototype,"lineStyle",{configurable:!1,enumerable:!0,set:Qw,get:Kw}),A(fE.prototype,"lineWidth",{configurable:!1,enumerable:!0,set:rx,get:ix}),A(fE.prototype,"paddingBottom",{configurable:!1,enumerable:!0,set:ox,get:Qa}),A(fE.prototype,"paddingLeft",{configurable:!1,enumerable:!0,set:cx,get:Pa}),A(fE.prototype,"paddingRight",{configurable:!1,enumerable:!0,set:px,get:Ua}),A(fE.prototype,"paddingTop",{configurable:!1,enumerable:!0,set:vx,get:qa}),C(fE.prototype,"render",mx),C(fE.prototype,"_render",bx),A(fE.prototype,"renderFormat",{configurable:!1,enumerable:!0,set:wx,get:Zl}),A(fE.prototype,"title",{configurable:!1,enumerable:!0,set:Ax,get:wl}),A(fE.prototype,"viewer",{configurable:!1,enumerable:!0,set:Fx,get:rc}),A(fE.prototype,"width",{configurable:!1,enumerable:!0,set:Mx,get:Ta}),A(fE.prototype,"xAxisOrient",{configurable:!1,enumerable:!0,set:kx,get:gs}),A(fE.prototype,"xDomain",{configurable:!1,enumerable:!0,get:dc}),A(fE.prototype,"xLabel",{configurable:!1,enumerable:!0,set:Bx,get:Fl}),A(fE.prototype,"xNumTicks",{configurable:!1,enumerable:!0,set:Px,get:is}),A(fE.prototype,"xPos",{configurable:!1,enumerable:!0,get:jx}),A(fE.prototype,"xRange",{configurable:!1,enumerable:!0,get:mc}),A(fE.prototype,"xTickFormat",{configurable:!1,enumerable:!0,set:Ux,get:Ho}),A(fE.prototype,"yAxisOrient",{configurable:!1,enumerable:!0,set:Yx,get:ws}),A(fE.prototype,"yDomain",{configurable:!1,enumerable:!0,get:vc}),A(fE.prototype,"yLabel",{configurable:!1,enumerable:!0,set:qx,get:kl}),A(fE.prototype,"yNumTicks",{configurable:!1,enumerable:!0,set:Gx,get:ls}),A(fE.prototype,"yPos",{configurable:!1,enumerable:!0,get:Qx}),A(fE.prototype,"yRange",{configurable:!1,enumerable:!0,get:_c}),A(fE.prototype,"yTickFormat",{configurable:!1,enumerable:!0,set:tE,get:rE}),C(fE.prototype,"view",uE);var hE=fE,pE=1.7976931348623157e308,dE=Ie.isPrimitive,gE=he("sparkline:accessor:is-defined");var vE=function(e){var t=!dE(e);return gE("Datum: %s. Defined: %s.",JSON.stringify(e),t),t};var yE=function(){var e={autoRender:!1};return e.bufferSize=pE,e.data=[],e.description="",e.isDefined=vE,e.label="",e},mE=Et.isPrimitive,bE=he("sparkline:set:auto-render");var _E=function(e){if(!mE(e))throw new TypeError("invalid value. `autoRender` must be a boolean primitive. Value: `"+e+".`");e!==this._autoRender&&(bE("Current value: %d.",this._autoRender),this._autoRender=e,bE("New Value: %d.",this._autoRender),this.emit("change"))};var wE=function(){return this._autoRender},xE=yi.isPrimitive,EE=he("sparkline:set:buffer-size");var AE=function(e){var t=eo(e);if(!xE(e)&&!t)throw new TypeError("invalid value. `bufferSize` must be a positive integer or null. Value: `"+e+"`.");if(t&&(e=pE),this._data&&e<this._data.length)throw new RangeError("invalid value. `bufferSize` size is smaller than the number of data elements. Number of elements: `"+this._data.length+"`. Value: `"+e+"`.");e!==this._bufferSize&&(EE("Current value: %s.",this._bufferSize),this._bufferSize=e,EE("New value: %s.",this._bufferSize),this.emit("change"))};var CE=function(){return this._bufferSize};var FE=function(e){return null!==e&&"object"==typeof e&&"object"==typeof e.data&&"object"==typeof e.shape&&"object"==typeof e.strides&&"number"==typeof e.offset&&"string"==typeof e.order&&"number"==typeof e.ndims&&"string"==typeof e.dtype&&"number"==typeof e.length&&"object"==typeof e.flags&&"function"==typeof e.get&&"function"==typeof e.set},TE=he("sparkline:set:data");var DE=function(e){var t,n;if(t=FE(e)&&"function"==typeof e.iget,!dt(e)&&!t)throw new TypeError("invalid value. `data` must be an array-like object or an ndarray. Value: `"+e+"`.");if(e.length>this._bufferSize)throw new RangeError("invalid value. `data` length exceeds maximum data buffer size. Buffer size: `"+this._bufferSize+"`. Length: `"+e.length+"`.");if(TE("Current value: %s.",JSON.stringify(this._data)),this._data=[],t)for(n=0;n<e.length;n++)this._data.push(e.iget(n));else for(n=0;n<e.length;n++)this._data.push(e[n]);TE("New value: %s.",JSON.stringify(this._data)),this.emit("change")};var ME=function(){return this._data.slice()},NE=Ae.isPrimitive,kE=he("plot:set:description");var SE=function(e){if(!NE(e))throw new TypeError("invalid value. `description` must be a string. Value: `"+e+".`");e!==this._description&&(kE("Current value: %s.",this._description),this._description=e,kE("New value: %s.",this._description),this.emit("change"))};var OE=function(){return this._description},BE=he("sparkline:set:is-defined");var RE=function(e){if(!qt(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"))};var VE=function(){return this._isDefined},PE=Ae.isPrimitive,LE=he("sparkline:set:label");var jE=function(e){if(!PE(e))throw new TypeError("invalid value. `label` must be a string. Value: `"+e+".`");e!==this._label&&(LE("Current value: %s.",this._label),this._label=e,LE("New Value: %s.",this._label),this.emit("change"))};var zE=function(){return this._label},IE=he("sparkline:push");var UE=function(e){return IE("Current value: %s.",JSON.stringify(this._data)),this._data.length>=this._bufferSize&&this._data.shift(),this._data.push(e),IE("New value: %s.",JSON.stringify(this._data)),this.emit("change"),this},JE=he("sparkline:render");var YE=function(){var e;return JE("Rendering..."),e=this._render(),this.emit("render",e),e};var HE=function(){throw new Error("method not implemented.")};var WE=function(){return this.render()},qE=k.EventEmitter,XE=wi.factory,$E=he("sparkline:main"),GE=XE({extend:!1}),ZE=["_autoRender","_bufferSize","_data","_description","_isDefined","_labels"];function QE(){var e,t,n,r,i,u,a;if(t=arguments.length,!(this instanceof QE))return 0===t?new QE:1===t?new QE(arguments[0]):new QE(arguments[0],arguments[1]);if(i=this,n=yE(),0===t)e={};else if(1===t){if(zu(arguments[0]))e={data:arguments[0]};else if(e=arguments[0],!en(e))throw new TypeError("invalid argument. Options argument must be an object. Value: `"+e+"`.")}else{if(!en(arguments[1]))throw new TypeError("invalid argument. Options argument must be an object. Value: `"+arguments[1]+"`.");(e=arguments[1]).data=arguments[0]}for(n=GE(n,e),$E("Creating an instance with the following configuration: %s.",JSON.stringify(n)),qE.call(this),a=0;a<ZE.length;a++)A(this,ZE[a],{configurable:!1,enumerable:!1,writable:!0,value:null});for(r=Wt(n),a=0;a<r.length;a++)this[u=r[a]]=n[u];return this.on("change",function(){$E("Received a change event."),i._autoRender&&i.render()}),this.on("render",function(){$E("Received a render event.")}),this}oi(QE,qE),A(QE.prototype,"autoRender",{configurable:!1,enumerable:!0,set:_E,get:wE}),A(QE.prototype,"bufferSize",{configurable:!1,enumerable:!0,set:AE,get:CE}),A(QE.prototype,"data",{configurable:!1,enumerable:!0,set:DE,get:ME}),A(QE.prototype,"description",{configurable:!1,enumerable:!0,set:SE,get:OE}),A(QE.prototype,"isDefined",{configurable:!1,enumerable:!0,set:RE,get:VE}),A(QE.prototype,"label",{configurable:!1,enumerable:!0,set:jE,get:zE}),QE.prototype.push=UE,QE.prototype.render=YE,QE.prototype._render=HE,QE.prototype.toString=WE;var KE=QE,eA=Ae.isPrimitive,tA=gu.primitives;var nA=function(e,t){var n,r,i;if("object"!=typeof e||null===e)throw new TypeError("invalid argument. First argument must be an object. Value: `"+e+"`.");if(n={},eA(t))return h(e,t)&&(n[t]=e[t]),n;if(tA(t)){for(i=0;i<t.length;i++)r=t[i],h(e,r)&&(n[r]=e[r]);return n}throw new TypeError("invalid argument. Second argument must be either a string primitive or an array of string primitives. Value: `"+t+"`.")};var rA=function(){var e={infinities:!1,type:"column",yMax:null,yMin:null};return e},iA=Et.isPrimitive,uA=he("sparkline:unicode:set:infinities");var aA=function(e){if(!iA(e))throw new TypeError("invalid value. `infinities` must be a boolean primitive. Value: `"+e+"`.");e!==this._infinities&&(uA("Current value: %s.",this._infinities),this._infinities=e,uA("New value: %s.",this._infinities),this.emit("change"))};var oA=function(){return this._infinities};var sA=function(){return this._infinities},lA=["column","line","tristate","up-down","win-loss"],cA=he("sparkline:unicode:set:type");var fA=function(e){if(!Vl(lA,e))throw new TypeError("invalid value. `type` must be one of `["+lA.join(", ")+"]`. Value: `"+e+"`.");e!==this._type&&(cA("Current value: %s.",this._type),this._type=e,cA("New value: %s.",this._type),this.emit("change"))};var hA=function(){return this._type};var pA=function(e){return e==e&&e>Je&&e<Ue},dA=Be.isPrimitive;var gA=function(e){return dA(e)&&pA(e)},vA=Be.isObject;var yA=function(e){return vA(e)&&pA(e.valueOf())};var mA=function(e){return gA(e)||yA(e)};F(mA,"isPrimitive",gA),F(mA,"isObject",yA);var bA=mA,_A=bA.isPrimitive,wA=he("sparkline:unicode:set:y-max");var xA=function(e){if(!_A(e)&&!eo(e))throw new TypeError("invalid value. `yMax` must be a finite number primitive or null. Value: `"+e+"`.");e!==this._yMax&&(wA("Current value: %s.",this._yMax),this._yMax=e,wA("New value: %s.",this._yMax),this.emit("change"))};var EA=function(){var e,t,n,r;if(null===this._yMax){for(t=this._data.length,e=Je,r=0;r<t;r++)n=this._data[r],this._isDefined(n)&&n!==Ue&&n>e&&(e=n);return e}return this._yMax};var AA=function(){var e,t,n,r;if(null===this._yMax){for(t=this._data.length,e=Je,r=0;r<t;r++)n=this._data[r],this._isDefined(n)&&n!==Ue&&n>e&&(e=n);return e}return this._yMax},CA=bA.isPrimitive,FA=he("sparkline:unicode:set:y-min");var TA=function(e){if(!CA(e)&&!eo(e))throw new TypeError("invalid value. `yMin` must be a finite number primitive or null. Value: `"+e+"`.");e!==this._yMin&&(FA("Current value: %s.",this._yMin),this._yMin=e,FA("New value: %s.",this._yMin),this.emit("change"))};var DA=function(){var e,t,n,r;if(null===this._yMin){for(t=this._data.length,e=Ue,r=0;r<t;r++)n=this._data[r],this._isDefined(n)&&n!==Je&&n<e&&(e=n);return e}return this._yMin};var MA=function(){var e,t,n,r;if(null===this._yMin){for(t=this._data.length,e=Ue,r=0;r<t;r++)n=this._data[r],this._isDefined(n)&&n!==Je&&n<e&&(e=n);return e}return this._yMin};var NA=function(){var e={infinities:!1,yMax:null,yMin:null};return e},kA=Et.isPrimitive,SA=he("sparkline:column-chart:unicode:set:infinities");var OA=function(e){if(!kA(e))throw new TypeError("invalid value. `infinities` must be a boolean primitive. Value: `"+e+"`.");e!==this._infinities&&(SA("Current value: %s.",this._infinities),this._infinities=e,SA("New value: %s.",this._infinities),this.emit("change"))},BA=bA.isPrimitive,RA=he("sparkline:column-chart:unicode:set:y-max");var VA=function(e){if(!BA(e)&&!eo(e))throw new TypeError("invalid value. `yMax` must be a finite number primitive or null. Value: `"+e+"`.");e!==this._yMax&&(RA("Current value: %s.",this._yMax),this._yMax=e,RA("New value: %s.",this._yMax),this.emit("change"))},PA=bA.isPrimitive,LA=he("sparkline:column-chart:unicode:set:y-min");var jA=function(e){if(!PA(e)&&!eo(e))throw new TypeError("invalid value. `yMin` must be a finite number primitive or null. Value: `"+e+"`.");e!==this._yMin&&(LA("Current value: %s.",this._yMin),this._yMin=e,LA("New value: %s.",this._yMin),this.emit("change"))};var zA=function(e){return e<0?-e:0===e?0:e},IA=Math.round,UA=["▁","▂","▃","▄","▅","▆","▇","█"],JA="∞",YA=" ";var HA=function(){var e,t,n,r,i,u,a,o,s,l;if(0===(u=this._data.length))return"";for(r=this.yMin,i=this.yMax,s=(e=0===(t=zA(i-r))?0===i?[UA[0]]:[UA[3]]:UA).length-1,n="",l=0;l<u;l++)o=this._data[l],!this._infinities||o!==Ue&&o!==Je?this._isDefined(o,l)&&o!==Ue&&o!==Je?((a=IA((t?(o-r)/t:0)*s))<0?a=0:a>s&&(a=s),n+=e[a]):n+=YA:n+=JA;return n},WA=wi.factory,qA=he("sparkline:column-chart:unicode:main"),XA=WA({extend:!1}),$A=["_infinities","_yMax","_yMin"],GA=["infinities","yMax","yMin"];function ZA(){var e,t,n,r,i,u;if(t=arguments.length,!(this instanceof ZA))return 0===t?new ZA:1===t?new ZA(arguments[0]):new ZA(arguments[0],arguments[1]);for(0===t?KE.call(this):1===t?KE.call(this,arguments[0]):KE.call(this,arguments[0],arguments[1]),n=NA(),e=1!==t||zu(arguments[0])?2===t?arguments[1]:{}:arguments[0],n=XA(n,nA(e,GA)),qA("Creating an instance with the following configuration: %s.",JSON.stringify(e)),u=0;u<$A.length;u++)A(this,$A[u],{configurable:!1,enumerable:!1,writable:!0,value:null});for(r=Wt(n),u=0;u<r.length;u++)this[i=r[u]]=n[i];return this}oi(ZA,KE),A(ZA.prototype,"infinities",{configurable:!1,enumerable:!0,set:OA,get:oA}),A(ZA.prototype,"yMax",{configurable:!1,enumerable:!0,set:VA,get:EA}),A(ZA.prototype,"yMin",{configurable:!1,enumerable:!0,set:jA,get:DA}),ZA.prototype._render=HA;var QA=ZA;var KA=function(){var e={infinities:!1,yMax:null,yMin:null};return e},eC=Et.isPrimitive,tC=he("sparkline:line-chart:unicode:set:infinities");var nC=function(e){if(!eC(e))throw new TypeError("invalid value. `infinities` must be a boolean primitive. Value: `"+e+"`.");e!==this._infinities&&(tC("Current value: %s.",this._infinities),this._infinities=e,tC("New value: %s.",this._infinities),this.emit("change"))};var rC=function(){return this._infinities},iC=bA.isPrimitive,uC=he("sparkline:line-chart:unicode:set:y-max");var aC=function(e){if(!iC(e)&&!eo(e))throw new TypeError("invalid value. `yMax` must be a finite number primitive or null. Value: `"+e+"`.");e!==this._yMax&&(uC("Current value: %s.",this._yMax),this._yMax=e,uC("New value: %s.",this._yMax),this.emit("change"))};var oC=function(){var e,t,n,r;if(null===this._yMax){for(t=this._data.length,e=Je,r=0;r<t;r++)n=this._data[r],this._isDefined(n)&&n!==Ue&&n>e&&(e=n);return e}return this._yMax},sC=bA.isPrimitive,lC=he("sparkline:line-chart:unicode:set:y-min");var cC=function(e){if(!sC(e)&&!eo(e))throw new TypeError("invalid value. `yMin` must be a finite number primitive or null. Value: `"+e+"`.");e!==this._yMin&&(lC("Current value: %s.",this._yMin),this._yMin=e,lC("New value: %s.",this._yMin),this.emit("change"))};var fC=function(){var e,t,n,r;if(null===this._yMin){for(t=this._data.length,e=Ue,r=0;r<t;r++)n=this._data[r],this._isDefined(n)&&n!==Je&&n<e&&(e=n);return e}return this._yMin},hC=[["⣀","⡠","⡐","⡈"],["⢄","⠤","⠔","⠌"],["⢂","⠢","⠒","⠊"],["⢁","⠡","⠑","⠉"]],pC="∞",dC=" ";var gC=function(){var e,t,n,r,i,u,a,o,s,l,c,f;if(0===(u=this._data.length))return"";for(r=this.yMin,i=this.yMax,e=0===(t=zA(i-r))?0===i?[[hC[0][0]]]:[[hC[2][2]]]:hC,a=new Array(u),o=new Array(u),l=e.length-1,c=0;c<u;c++)s=this._data[c],this._isDefined(s,c)&&s!==Ue&&s!==Je?((f=IA((t?(s-r)/t:0)*l))<0?f=0:f>l&&(f=l),a[c]=f):o[c]=!0;for(n="",c=0;c<u;c++)if(s=this._data[c],!this._infinities||s!==Ue&&s!==Je)if(o[c])n+=dC;else{if(c===u-1){n+=e[f=a[c]][f];break}f=c+1,f=(l=this._data[f])===Ue?3:l===Je?0:o[f]?a[c]:a[f],n+=e[a[c]][f]}else n+=pC;return n},vC=wi.factory,yC=he("sparkline:line-chart:unicode:main"),mC=vC({extend:!1}),bC=["_infinities","_yMax","_yMin"],_C=["infinities","yMax","yMin"];function wC(){var e,t,n,r,i,u;if(t=arguments.length,!(this instanceof wC))return 0===t?new wC:1===t?new wC(arguments[0]):new wC(arguments[0],arguments[1]);for(0===t?KE.call(this):1===t?KE.call(this,arguments[0]):KE.call(this,arguments[0],arguments[1]),n=KA(),e=1!==t||zu(arguments[0])?2===t?arguments[1]:{}:arguments[0],n=mC(n,nA(e,_C)),yC("Creating an instance with the following configuration: %s.",JSON.stringify(e)),u=0;u<bC.length;u++)A(this,bC[u],{configurable:!1,enumerable:!1,writable:!0,value:null});for(r=Wt(n),u=0;u<r.length;u++)this[i=r[u]]=n[i];return this}oi(wC,KE),A(wC.prototype,"infinities",{configurable:!1,enumerable:!0,set:nC,get:rC}),A(wC.prototype,"yMax",{configurable:!1,enumerable:!0,set:aC,get:oC}),A(wC.prototype,"yMin",{configurable:!1,enumerable:!0,set:cC,get:fC}),wC.prototype._render=gC;var xC=wC,EC="▀",AC="▄",CC="─",FC=" ";var TC=function(){var e,t,n,r;if(0===(t=this._data.length))return"";for(e="",r=0;r<t;r++)n=this._data[r],this._isDefined(n,r)?e+=n<0?AC:0===n?CC:EC:e+=FC;return e};function DC(){var e;return e=arguments.length,this instanceof DC?(0===e?KE.call(this):1===e?KE.call(this,arguments[0]):KE.call(this,arguments[0],arguments[1]),this):0===e?new DC:1===e?new DC(arguments[0]):new DC(arguments[0],arguments[1])}oi(DC,KE),DC.prototype._render=TC;var MC=DC,NC="↑",kC="↓",SC=" ";var OC=function(){var e,t,n,r;if(0===(t=this._data.length))return"";for(e="",r=0;r<t;r++)n=this._data[r],this._isDefined(n,r)?e+=1===n?NC:-1===n?kC:SC:e+=SC;return e};function BC(){var e;return e=arguments.length,this instanceof BC?(0===e?KE.call(this):1===e?KE.call(this,arguments[0]):KE.call(this,arguments[0],arguments[1]),this):0===e?new BC:1===e?new BC(arguments[0]):new BC(arguments[0],arguments[1])}oi(BC,KE),BC.prototype._render=OC;var RC=BC,VC=["└","┴"],PC=["┌","┬"],LC="╵",jC="╷",zC=" ";var IC=function(){var e,t,n,r,i;if(0===(t=this._data.length))return"";for(e="",i=0;i<t;i++)r=this._data[i],this._isDefined(r,i)?e+=2===r?2===n||-2===n?VC[1]:VC[0]:1===r?LC:-1===r?jC:-2===r?2===n||-2===n?PC[1]:PC[0]:zC:e+=zC,n=r;return e};function UC(){var e;return e=arguments.length,this instanceof UC?(0===e?KE.call(this):1===e?KE.call(this,arguments[0]):KE.call(this,arguments[0],arguments[1]),this):0===e?new UC:1===e?new UC(arguments[0]):new UC(arguments[0],arguments[1])}oi(UC,KE),UC.prototype._render=IC;var JC=UC,YC=he("sparkline:unicode:render");var HC=function(){var e;switch(YC("Rendering..."),this._type){case"column":e=QA.prototype._render.call(this);break;case"line":e=xC.prototype._render.call(this);break;case"tristate":e=MC.prototype._render.call(this);break;case"up-down":e=RC.prototype._render.call(this);break;case"win-loss":e=JC.prototype._render.call(this)}return this.emit("render",e),e},WC=wi.factory,qC=he("sparkline:unicode:main"),XC=WC({extend:!1}),$C=["_infinities","_type","_yMax","_yMin"],GC=["infinities","type","yMax","yMin"];function ZC(){var e,t,n,r,i,u;if(t=arguments.length,!(this instanceof ZC))return 0===t?new ZC:1===t?new ZC(arguments[0]):new ZC(arguments[0],arguments[1]);for(0===t?KE.call(this):1===t?KE.call(this,arguments[0]):KE.call(this,arguments[0],arguments[1]),n=rA(),e=1!==t||zu(arguments[0])?2===t?arguments[1]:{}:arguments[0],n=XC(n,nA(e,GC)),qC("Creating an instance with the following configuration: %s.",JSON.stringify(e)),u=0;u<$C.length;u++)A(this,$C[u],{configurable:!1,enumerable:!1,writable:!0,value:null});for(r=Wt(n),u=0;u<r.length;u++)this[i=r[u]]=n[i];return this}oi(ZC,KE),A(ZC.prototype,"infinities",{configurable:!1,enumerable:!0,set:aA,get:sA}),A(ZC.prototype,"type",{configurable:!1,enumerable:!0,set:fA,get:hA}),A(ZC.prototype,"yMax",{configurable:!1,enumerable:!0,set:xA,get:AA}),A(ZC.prototype,"yMin",{configurable:!1,enumerable:!0,set:TA,get:MA}),ZC.prototype.render=HC;var QC=ZC;var KC=function(e){return e};var eF=function(e){return e};var tF=function(e){return e===Ue||e===Je};var nF=function(e,t){var n,r,i;for(n=new Array(e.length),i=0;i<e.length;i++)r=t(e[i],i),Re(r)||tF(r)||(n[i]=IA(r));return n},rF=yi.isPrimitive;var iF=function(e){return en(e)?!h(e,"x")||v(e.x)||ki(e.x)?h(e,"xValue")&&!qt(e.xValue)?new TypeError("invalid option. `xValue` option must be a function. Option: `"+e.xValue+"`."):!h(e,"y")||v(e.y)||ki(e.y)?h(e,"yValue")&&!qt(e.yValue)?new TypeError("invalid option. `yValue` option must be a function. Option: `"+e.yValue+"`."):h(e,"leafDigits")&&!rF(e.leafDigits)?new TypeError("invalid option. `leafDigits` option must be a positive integer. Option: `"+e.leafDigits+"`."):null:new TypeError("invalid option. `y` option must be an array or typed array. Option: `"+e.y+"`."):new TypeError("invalid option. `x` option must be an array or typed array. Option: `"+e.x+"`."):new TypeError("invalid argument. Options argument must be an object. Value: `"+e+"`.")};var uF=function(e){if(!qt(e))throw new TypeError("invalid value. `xValue` must be a function. Value: `"+e+"`.");this._xValue=e};var aF=function(){return this._xValue};var oF=function(e){if(!qt(e))throw new TypeError("invalid value. `yValue` must be a function. Value: `"+e+"`.");this._yValue=e};var sF=function(){return this._yValue};var lF=function(e){if(!v(e)&&!ki(e))throw new TypeError("invalid value. Must be an array or typed array. Value: `"+e+"`.");this._x=nF(e,this._xValue)};var cF=function(){return ni(this._x)};var fF=function(e){if(!v(e)&&!ki(e))throw new TypeError("invalid value. Must be an array or typed array. Value: `"+e+"`.");this._y=nF(e,this._yValue)};var hF,pF=function(){return ni(this._y)},dF=1023,gF=1023,vF=-1023,yF=-1074,mF={uint16:gr,uint8:Xn};(hF=new mF.uint16(1))[0]=4660;var bF,_F,wF=52===new mF.uint8(hF.buffer)[0];!0===wF?(bF=1,_F=0):(bF=0,_F=1);var xF,EF,AF={HIGH:bF,LOW:_F};!0===wF?(xF=1,EF=0):(xF=0,EF=1);var CF={HIGH:xF,LOW:EF},FF=new Ur(1),TF=new Mr(FF.buffer),DF=CF.HIGH,MF=CF.LOW;var NF=function(e,t){return FF[0]=t,e[0]=TF[DF],e[1]=TF[MF],e};var kF=function(e,t){return 1===arguments.length?NF([0,0],e):NF(e,t)},SF=!0===wF?1:0,OF=new Ur(1),BF=new Mr(OF.buffer);var RF=function(e){return OF[0]=e,BF[SF]},VF=new Ur(1),PF=new Mr(VF.buffer),LF=AF.HIGH,jF=AF.LOW;var zF=function(e,t){return PF[LF]=e,PF[jF]=t,VF[0]},IF=2147483648,UF=2147483647,JF=[0,0];var YF=function(e,t){var n,r;return kF(JF,e),n=JF[0],n&=UF,r=RF(t),zF(n|=r&=IF,JF[1])},HF=2.2250738585072014e-308,WF=4503599627370496;var qF=function(e,t){return Re(t)||tF(t)?(e[0]=t,e[1]=0,e):0!==t&&zA(t)<HF?(e[0]=t*WF,e[1]=-52,e):(e[0]=t,e[1]=0,e)};var XF=function(e,t){return 1===arguments.length?qF([0,0],e):qF(e,t)},$F=2146435072;var GF=function(e){var t=RF(e);return(t=(t&$F)>>>20)-dF|0},ZF=2.220446049250313e-16,QF=2148532223,KF=[0,0],eT=[0,0];var tT=function(e,t){var n,r;return 0===e||Re(e)||tF(e)?e:(XF(KF,e),e=KF[0],t+=KF[1],(t+=GF(e))<yF?YF(0,e):t>gF?e<0?Je:Ue:(t<=vF?(t+=52,r=ZF):r=1,kF(eT,e),n=eT[0],n&=QF,r*zF(n|=t+dF<<20,eT[1])))},nT=308,rT=-308;var iT=function(e){return 0===e?2394.2374120738828:2394.2374120738828+e*(406.7172899368727+e*(11.745273255434405+.040996251979858706*e))};var uT=function(e){return 0===e?2079.608192860019:2079.608192860019+e*(1272.0927117834513+e*(85.09361608493066+1*e))},aT=3.321928094887362,oT=.301025390625,sT=4605038981195214e-21;var lT=function(e){var t,n,r;return Re(e)?e:e>nT?Ue:e<rT?0:(r=t=Ye(aT*e+.5),e-=t*oT,e=(t=(e-=t*sT)*iT(n=e*e))/(uT(n)-t),e=1+tT(e,1),tT(e,r))};function cT(e,t){return e-t}function fT(e,t){return e.val-t.val}function hT(e){return new Array(e).join(" ")}function pT(e,t){var n,r,i,u,a,o,s,l,c,f;for(e.sort(cT),a=e.length,s=new Array(a),l=new Array(a),n=0,r=0,c=0;c<a;c++)s[c]=Ye(e[c]/t),(u=s[c].toString().length)>n&&(n=u),l[c]=e[c]%t,(u=l[c].toString().length)>r&&(r=u);for(o="",c=0;c<a;c++){for(;i<s[c];)o+="\n",o+=" "+(i+=1)+hT(n-(i.toString().length-1)),o+=" | ";s[c]!==i&&(o+="\n",o+=" "+(f=s[c].toString())+hT(n-(f.length-1)),o+=" | "),o+=(f=l[c].toString())+hT(r-f.length)+" ",i=s[c]}return o}var dT=function(){var e,t,n,r,i;return r=this._x,i=this._y,t=this._leafDigits,e=lT(t),r.length&&i.length?n=function(e,t,n){var r,i,u,a,o,s,l,c,f,h,p,d,g,v,y,m,b;for(h=[],y=0;y<e.length;y++)m={val:e[y],class:"x"},h.push(m);for(y=0;y<t.length;y++)m={val:t[y],class:"y"},h.push(m);for(g=h.length,h.sort(fT),u=0,r=0,i=0,v=new Array(g),d=new Array(g),y=0;y<g;y++)v[y]=Ye(h[y].val/n),(f=v[y].toString().length)>u&&(u=f),"x"===h[y].class?(d[y]=h[y].val%n,(f=d[y].toString().length)>r&&(r=f)):"y"===h[y].class&&(d[y]=h[y].val%n,(f=d[y].toString().length)>i&&(i=f));for(s=[],l="",y=0;y<g;y++){for(;a<v[y];)s.push(l),l="& | "+hT(u-(b=(a+=1).toString().length-1))+a+" | ";v[y]!==a&&(l&&s.push(l),l="& | ",l+=hT(u-(b=(m=v[y].toString()).length-1))+m,l+=" | "),b=(m=d[y].toString()).length,"x"===h[y].class?l=m+hT(r-b)+" "+l:"y"===h[y].class&&(l=l+m+hT(r-b)+" "),a=v[y]}for(c=0,y=0;y<s.length;y++)(m=s[y].indexOf("|"))>c&&(c=m);for(y=0;y<s.length;y++)o=c-(p=s[y].split("&",2))[0].length,p[0]=hT(o)+p[0],s[y]=p[0]+p[1];return s.join("\n")}(r,i,e):r.length&&!i.length?n=pT(r,e):i.length&&!r.length&&(n=pT(i,e)),n+="\n\n",n+="Legend: ",n+="\n X | Y => "+e+" * X + Y\n"};function gT(e){var t,n;if(!(this instanceof gT))return arguments.length?new gT(e):new gT;if(arguments.length){if(n=iF(t=e))throw n}else t={};return A(this,"_x",{configurable:!1,enumerable:!1,writable:!0,value:[]}),A(this,"_xValue",{configurable:!1,enumerable:!1,writable:!0,value:KC}),A(this,"_y",{configurable:!1,enumerable:!1,writable:!0,value:[]}),A(this,"_yValue",{configurable:!1,enumerable:!1,writable:!0,value:eF}),A(this,"_leafDigits",{configurable:!1,enumerable:!1,writable:!0,value:1}),void 0!==t.xValue&&(this._xValue=t.xValue),void 0!==t.yValue&&(this._yValue=t.yValue),void 0!==t.x&&(this._x=nF(t.x,this._yValue)),void 0!==t.y&&(this._y=nF(t.y,this._yValue)),void 0!==t.leafDigits&&(this._leafDigits=t.leafDigits),this}A(gT.prototype,"xValue",{configurable:!1,enumerable:!0,set:uF,get:aF}),A(gT.prototype,"yValue",{configurable:!1,enumerable:!0,set:oF,get:sF}),A(gT.prototype,"x",{configurable:!1,enumerable:!0,set:lF,get:cF}),A(gT.prototype,"y",{configurable:!1,enumerable:!0,set:fF,get:pF}),gT.prototype.render=dT;var vT=gT,yT={};return C(yT,"plot",Aw),C(yT,"ctor",hE),C(yT,"annotations",$f),C(yT,"axis",By),C(yT,"background",xg),C(yT,"canvas",Mp),C(yT,"clipPath",Hh),C(yT,"defs",Mg),C(yT,"graph",ad),C(yT,"marks",ng),C(yT,"path",Um),C(yT,"rug",iw),C(yT,"symbols",t_),C(yT,"title",kd),C(yT,"Plot",Ew),C(yT,"SparklineBase",KE),C(yT,"UnicodeSparkline",QC),C(yT,"UnicodeColumnChartSparkline",QA),C(yT,"UnicodeLineChartSparkline",xC),C(yT,"UnicodeTristateChartSparkline",MC),C(yT,"UnicodeUpDownChartSparkline",RC),C(yT,"UnicodeWinLossChartSparkline",JC),C(yT,"stemleaf",vT),yT});