/*! For license information please see Charts.js.LICENSE.txt */ (()=>{var t={79742:(t,e)=>{"use strict";e.byteLength=function(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,o=c(t),a=o[0],u=o[1],s=new i(function(t,e,n){return 3*(e+n)/4-n}(0,a,u)),f=0,l=u>0?a-4:a;for(n=0;n>16&255,s[f++]=e>>8&255,s[f++]=255&e;return 2===u&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,s[f++]=255&e),1===u&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,s[f++]=e>>8&255,s[f++]=255&e),s},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=16383,u=0,c=r-i;uc?c:u+a));return 1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function s(t,e,r){for(var i,o,a=[],u=e;u>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},48764:(t,e,n)=>{"use strict";const r=n(79742),i=n(80645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.INSPECT_MAX_BYTES=50;const a=2147483647;function u(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return s(t,e,n)}function s(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|y(t,e);let r=u(n);const i=r.write(t,e);return i!==n&&(r=r.slice(0,i)),r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(X(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(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(X(t,ArrayBuffer)||t&&X(t.buffer,ArrayBuffer))return d(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(X(t,SharedArrayBuffer)||t&&X(t.buffer,SharedArrayBuffer)))return d(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);const i=function(t){if(c.isBuffer(t)){const e=0|p(t.length),n=u(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||J(t.length)?u(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),u(t<0?0:0|p(t))}function h(t){const e=t.length<0?0:0|p(t.length),n=u(e);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function y(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||X(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);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(t).length;default:if(i)return r?-1:G(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return S(this,e,n);case"utf8":case"utf-8":return B(this,e,n);case"ascii":return k(this,e,n);case"latin1":case"binary":return F(this,e,n);case"base64":return M(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),J(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:b(t,e,n,r,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):b(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,r,i){let o,a=1,u=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,u/=2,c/=2,n/=2}function s(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){let r=-1;for(o=n;ou&&(n=u-c),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=e.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function M(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function B(t,e,n){n=Math.min(t.length,n);const r=[];let i=e;for(;i239?4:e>223?3:e>191?2:1;if(i+a<=n){let n,r,u,c;switch(a){case 1:e<128&&(o=e);break;case 2:n=t[i+1],128==(192&n)&&(c=(31&e)<<6|63&n,c>127&&(o=c));break;case 3:n=t[i+1],r=t[i+2],128==(192&n)&&128==(192&r)&&(c=(15&e)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=t[i+1],r=t[i+2],u=t[i+3],128==(192&n)&&128==(192&r)&&128==(192&u)&&(c=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&u,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(t){const e=t.length;if(e<=T)return String.fromCharCode.apply(String,t);let n="",r=0;for(;rr.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},c.byteLength=y,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;en&&(t+=" ... "),""},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,i){if(X(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0);const u=Math.min(o,a),s=this.slice(r,i),f=t.slice(e,n);for(let t=0;t>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return x(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":case"latin1":case"binary":return _(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function k(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;ir)&&(n=r);let i="";for(let r=e;rn)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function I(t,e,n,r,i){$(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,n}function O(t,e,n,r,i){$(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=a,a>>=8,t[n+2]=a,a>>=8,t[n+1]=a,a>>=8,t[n]=a,n+8}function P(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,r,o){return e=+e,n>>>=0,o||P(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function L(t,e,n,r,o){return e=+e,n>>>=0,o||P(t,0,n,8),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||C(t,e,this.length);let r=this[t],i=1,o=0;for(;++o>>=0,e>>>=0,n||C(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||C(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||C(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||C(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=K((function(t){H(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||q(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||q(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<>>=0,e>>>=0,n||C(t,e,this.length);let r=this[t],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||C(t,e,this.length);let r=e,i=1,o=this[t+--r];for(;r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return t>>>=0,e||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||C(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||C(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=K((function(t){H(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||q(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||q(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<>>=0,e||C(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||C(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||C(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||C(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[e]=255&t;++o>>=0,n>>>=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=K((function(t,e=0){return I(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=K((function(t,e=0){return O(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=0,o=1,a=0;for(this[e]=255&t;++i>0)-a&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/o>>0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=K((function(t,e=0){return I(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=K((function(t,e=0){return O(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return L(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return L(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function $(t,e,n,r,i,o){if(t>n||t3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new U.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,n){H(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||q(e,t.length-(n+1))}(r,i,o)}function H(t,e){if("number"!=typeof t)throw new U.ERR_INVALID_ARG_TYPE(e,"number",t)}function q(t,e,n){if(Math.floor(t)!==t)throw H(t,n),new U.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}j("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),j("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),j("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=z(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),r+=` It must be ${e}. Received ${i}`,r}),RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function G(t,e){let n;e=e||1/0;const r=t.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function W(t,e,n,r){let i;for(i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function X(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function J(t){return t!=t}const Z=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function K(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},80645:(t,e)=>{e.read=function(t,e,n,r,i){var o,a,u=8*i-r-1,c=(1<>1,f=-7,l=n?i-1:0,h=n?-1:1,d=t[e+l];for(l+=h,o=d&(1<<-f)-1,d>>=-f,f+=u;f>0;o=256*o+t[e+l],l+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=r;f>0;a=256*a+t[e+l],l+=h,f-=8);if(0===o)o=1-s;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=s}return(d?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,u,c,s=8*o-i-1,f=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+l>=1?h/c:h*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=f?(u=0,a=f):a+l>=1?(u=(e*c-1)*Math.pow(2,i),a+=l):(u=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&u,d+=p,u/=256,i-=8);for(a=a<0;t[n+d]=255&a,d+=p,a/=256,s-=8);t[n+d-p]|=128*y}},2043:function(t,e,n){var r,i;!function(o,a){"use strict";r=function(){var t=function(){},e="undefined",n=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"];function i(t,e){var n=t[e];if("function"==typeof n.bind)return n.bind(t);try{return Function.prototype.bind.call(n,t)}catch(e){return function(){return Function.prototype.apply.apply(n,[t,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(e,n){for(var i=0;i=0&&n<=u.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(o=n,!1!==i&&function(t){var n=(r[t]||"silent").toUpperCase();if(typeof window!==e&&s){try{return void(window.localStorage[s]=n)}catch(t){}try{window.document.cookie=encodeURIComponent(s)+"="+n+";"}catch(t){}}}(n),a.call(u,n,t),typeof console===e&&n=0?(this.splice(e,1),!1):(this.push(t),!0)},e.prototype.toString=function(){return this.join(" ").trim()},n.prototype.cloneNode=function(t){if(!t||"childNodes"in this&&Array.isArray(this.childNodes)&&0===this.childNodes.length)return new(Object.getPrototypeOf(this).constructor)(this);var e=new(Object.getPrototypeOf(this).constructor)(this),n=[];return this.childNodes.map((function(t){return n.push(t.cloneNode(!0))})),e.childNodes=n,e},Object.defineProperty(n.prototype,"nodeValue",{get:function(){return null}}),Object.defineProperty(n.prototype,"children",{get:function(){return this.childNodes}}),Object.defineProperty(n.prototype,"firstChild",{get:function(){return this.childNodes[0]||null}}),Object.defineProperty(n.prototype,"lastChild",{get:function(){return this.childNodes[this.childNodes.length-1]||null}}),Object.defineProperty(n.prototype,"nodeName",{get:function(){return this.tagName}});var r={"&":"&","<":"<",">":">"};function i(t){n.apply(this),this.nodeType=3,this.textContent=String(t)}i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.prototype.render=function(){return(this.textContent||"").replace(/[&<>]/g,(function(t){return r[t]}))},Object.defineProperty(i.prototype,"nodeValue",{get:function(){return this.textContent}});var o,a=new RegExp("\\s*([ >+~])\\s*","g"),u=new RegExp("(^|[ >+~])([^ >+~]+)","ig"),c=new RegExp("#[^. >+~]+","g"),s=new RegExp("^(?:[ >+~])?([^#. >+~\\[\\]]+)"),f=new RegExp("\\.[^. >+~]+","g"),l=function(t){return null!=t?t[0]:null},h=function(t){return Array.isArray(t)&&t.length>1?t[1]:null},d=function(t){return t.substr(1)},p=function(t){return null!=t?d(t):null},y=(o=d,function(t){return Array.isArray(t)?t.map(o):null});function g(t){return null==t||0===t.length?null:t.replace(a,"$1").match(u).map((function(t,e){return{tagName:(h(t.match(s))||"").toLowerCase(),id:p(l(t.match(c))),classNames:y(t.match(f)),relation:e>0?t[0]:null}})).reverse()}function m(t,e){return!(null==t||e.tagName&&t.tagName!==e.tagName||e.id&&t.id!==e.id||e.classNames&&!e.classNames.every((function(e){return t.classList.contains(e)})))}function v(t,e){for(var n=t,r=function(t){switch(e[t-1].relation){case" ":do{n=n.parentNode}while(null!=n&&!m(n,e[t]));break;case">":if(!m(n.parentNode,e[t]))return{v:!1};break;case"+":if(!m(n.parentNode.childNodes.find((function(t){return t.nextSibling===n})),e[t]))return{v:!1};break;case"~":if(!n.parentNode.childNodes.slice(0,n.parentNode.childNodes.indexOf(n)).some((function(n){return m(n,e[t])})))return{v:!1}}},i=1;i=n));a++);return o}function x(t,e){return b(t,e,1)[0]||null}function w(){}function _(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function A(t){var e=[],n=t.split("");n.map((function(t,n){"-"===t&&e.push(n)}));var r=t.split("");return e.map((function(t,e){var i=n[t+1].toUpperCase();r.splice(t-e,2,i)})),r.join("")}function E(t){var e=[],n=t.split("");n.map((function(t,n){/^[A-Z]/.test(t)&&e.push(n)}));var r=t.split("");return e.map((function(t){r.splice(t,1,"-"+n[t].toLowerCase())})),r.join("")}function M(){}function B(){}w.prototype={},M.prototype=Object.create({}),M.prototype.getPropertyPriority=function(t){return""},M.prototype.getPropertyValue=function(t){return _(this,t=A(t))?this[t]:""},M.prototype.setProperty=function(t,e){this[A(t)]=e},M.prototype.removeProperty=function(t){var e=this.getPropertyValue(t);return e&&delete this[A(t)],e},M.prototype.valueOf=function(){return this},M.prototype.toString=function(){var t="";for(var e in this)_(this,e)&&(t+=E(e)+": "+this[e]+"; ");return t},M.prototype.setValue=function(t){var e=t.split(";");for(var n in e){var r=n.split(":");this[r[0].trim()]=r[1].trim()}},Object.defineProperty(M.prototype,"cssText",{get:function(){return this.toString()},set:function(t){this.setValue(t)},enumerable:!0}),B.prototype={};var T="area base br col command embed hr img input keygen link meta param source track wbr".split(" ").reduce((function(t,e){return t[e]=!0,t}),{});function k(t){for(var e in n.apply(this),this.attributes=new w,this.style=new M,this.dataset=new B,this.nodeType=1,t)this[e]=t[e];this.tagName||(this.tagName="div"),this.tagName=this.tagName.toLowerCase(),Object.defineProperty(this,"isVoidEl",{value:T[this.tagName]})}var F=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(k);k.prototype=Object.create(n.prototype),k.prototype.constructor=k;var S=function(){};"blur click focus".split(" ").forEach((function(t){return k.prototype[t]=S}));var N="tagName view nodeType isVoidEl parent parentNode childNodes isMounted".split(" ").reduce((function(t,e){return t[e]=!0,t}),{});function C(t){return t.render()}function R(){this.documentElement=this.createElement("html"),this.head=this.documentElement.appendChild(this.createElement("head")),this.body=this.documentElement.appendChild(this.createElement("body")),this.nodeType=9}k.prototype.render=function(t){var e=this,n=this.isVoidEl,r=[],i=!1,o="";for(var a in this)if("isMounted"!==a&&"style"!==a&&"attributes"!==a&&"dataset"!==a&&"_classList"!==a&&_(this,a))if(N[a])this.childNodes.length&&(i=!0);else if("_innerHTML"===a)o=this._innerHTML;else if(!N[a]){if(a in this.attributes)continue;if("function"==typeof this[a])continue;var u=void 0;switch(typeof this[a]){case"string":case"number":u='"'+this[a]+'"';break;default:u="'"+JSON.stringify(this[a])+"'"}r.push(a+"="+u)}this.className&&r.push('class="'+this.className+'"');var c=this.style.cssText;c.length>0&&r.push('style="'+c+'"');var s=Object.keys(this.attributes);if(s.length>0&&s.filter((function(t){return"style"!==t&&"_classList"!==t})).map((function(t){return r.push(t+'="'+e.attributes[t]+'"')})),t)return!n&&i?this.childNodes.map(C).join(""):!n&&o?o:"";if(!n&&i){var f=this.tagName;return"<"+[f].concat(r).join(" ")+">"+this.childNodes.map(C).join("")+""}if(!n&&o){var l=this.tagName;return"<"+[this.tagName].concat(r).join(" ")+">"+o+""}var h=[this.tagName].concat(r).join(" ");return n?"<"+h+">":"<"+h+">"},k.prototype.addEventListener=function(){},k.prototype.removeEventListener=function(){},k.prototype.setAttribute=function(t,e){var n=this;if("class"===t)return this.classList.splice(0,this.classList.length),void e.split(" ").forEach((function(t){return n.classList.add(t)}));var r,i,o=t;/^data-/.test(t)?(o=A(t),this.dataset[o]=e,Object.defineProperty(this,o,{get:(r=this,i=o,function(){return r.dataset[i]}),enumerable:!1,configurable:!0})):_(this,o)||Object.defineProperty(this,o,{get:function(t,e){return function(){return t.attributes[e]}}(this,o),enumerable:!0,configurable:!0}),this.attributes[t]=e},k.prototype.getAttribute=function(t){return this.attributes[t]||this[t]||null},k.prototype.removeAttribute=function(t){"class"!==t?(/^data-/.test(t)&&delete this.dataset[A(t)],_(this.attributes,t)&&(delete this.attributes[t],delete this[t])):this.classList.reset()},k.prototype.appendChild=function(t){if(this.isVoidEl)return t;t.parentNode=this;for(var e=0;e0})))},k.prototype.querySelector=function(t){return x(t,this)},k.prototype.querySelectorAll=function(t){return b(t,this)},k.prototype.matches=function(t){var e=g(t);return!(null==e||e.length>1)&&m(this,e[0])},Object.defineProperties(k.prototype,{_classList:{value:null,enumerable:!1,configurable:!1,writable:!0},classList:{get:function(){return this._classList||(this._classList=new e(this)),this._classList}},className:{set:function(t){this.classList.reset(t)},get:function(){return null==this._classList?"":this._classList.toString()}},innerHTML:{get:function(){return this._innerHTML||this.render(!0)},set:function(t){this._innerHTML=t}},outerHTML:{get:function(){return this.render()}},firstChild:{get:function(){return this.childNodes[0]||null}},textContent:{get:function(){return this.childNodes.filter((function(t){return t instanceof i})).map((function(t){return t.textContent})).join("")},set:function(t){this.childNodes=[new i(t)]}},nextSibling:{get:function(){for(var t=this.parentNode.childNodes,e=0;e0})));if(0===t.length)return[];var n=t.every((function(t){return e.documentElement.classList.contains(t)}));return this.documentElement.childNodes.reduce((function(e,n){return t.every((function(t){return n.classList.contains(t)}))?e.concat(n,n.getElementsByClassName(t)):e.concat(n.getElementsByClassName(t))}),n?[this.documentElement]:[])},R.prototype.getElementById=function(t){if(this.documentElement.id===t)return this.documentElement;return function t(e,n){for(var r=[],i=0;i0?t(e,r):null}(t,this.documentElement.childNodes)},R.prototype.querySelector=function(t){return x(t,this)},R.prototype.querySelectorAll=function(t){return b(t,this)},R.prototype.implementation=Object.create(null),R.prototype.implementation.hasFeature=function(t){return!1},R.prototype.implementation.createHTMLDocument=function(t){var e=new R;return e.outerHTML=t,e},t.Document=R,t.HTMLElement=k,t.Node=n,t.SVGElement=F,t.TextNode=i,t.render=function(t,e){return(t.el||t).render(e)},Object.defineProperty(t,"__esModule",{value:!0})}(e)},34155:t=>{var e,n,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var u,c=[],s=!1,f=-1;function l(){s&&u&&(s=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!s){var t=a(l);s=!0;for(var e=c.length;e;){for(u=c,c=[];++f1)for(var n=1;n{!function(t){var e,n,r,i=String.fromCharCode;function o(t){for(var e,n,r=[],i=0,o=t.length;i=55296&&e<=56319&&i=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function u(t,e){return i(t>>e&63|128)}function c(t){if(0==(4294967168&t))return i(t);var e="";return 0==(4294965248&t)?e=i(t>>6&31|192):0==(4294901760&t)?(a(t),e=i(t>>12&15|224),e+=u(t,6)):0==(4292870144&t)&&(e=i(t>>18&7|240),e+=u(t,12),e+=u(t,6)),e+i(63&t|128)}function s(){if(r>=n)throw Error("Invalid byte index");var t=255&e[r];if(r++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function f(){var t,i;if(r>n)throw Error("Invalid byte index");if(r==n)return!1;if(t=255&e[r],r++,0==(128&t))return t;if(192==(224&t)){if((i=(31&t)<<6|s())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if((i=(15&t)<<12|s()<<6|s())>=2048)return a(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(i=(7&t)<<18|s()<<12|s()<<6|s())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}t.version="3.0.0",t.encode=function(t){for(var e=o(t),n=e.length,r=-1,i="";++r65535&&(o+=i((e-=65536)>>>10&1023|55296),e=56320|1023&e),o+=i(e);return o}(u)}}(e)},17061:(t,e,n)=>{var r=n(18698).default;function i(){"use strict";t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,o=Object.create(i.prototype),u=new k(r||[]);return a(o,"_invoke",{value:E(t,n,u)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p={};function y(){}function g(){}function m(){}var v={};l(v,c,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(F([])));x&&x!==n&&o.call(x,c)&&(v=x);var w=m.prototype=y.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function n(i,a,u,c){var s=d(t[i],t,a);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==r(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return n("throw",t,u,c)}))}c(s.arg)}var i;a(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function E(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var u=M(a,n);if(u){if(u===p)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function M(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,M(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=d(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,p;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function B(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(B,this),this.reset(!0)}function F(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:F(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},18698:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},64687:(t,e,n)=>{var r=n(17061)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t={};n.r(t),n.d(t,{Adder:()=>U,Delaunay:()=>sc,FormatSpecifier:()=>kf,InternMap:()=>$,InternSet:()=>H,Node:()=>Wy,Voronoi:()=>rc,ZoomTransform:()=>uB,active:()=>To,arc:()=>YA,area:()=>QA,areaRadial:()=>cE,ascending:()=>h,autoType:()=>$c,axisBottom:()=>Fe,axisLeft:()=>Se,axisRight:()=>ke,axisTop:()=>Te,bin:()=>At,bisect:()=>_,bisectCenter:()=>w,bisectLeft:()=>x,bisectRight:()=>b,bisector:()=>p,blob:()=>Ns,blur:()=>A,blur2:()=>E,blurImage:()=>M,brush:()=>na,brushSelection:()=>Qo,brushX:()=>ta,brushY:()=>ea,buffer:()=>Rs,chord:()=>da,chordDirected:()=>ya,chordTranspose:()=>pa,cluster:()=>zy,color:()=>_r,contourDensity:()=>Su,contours:()=>_u,count:()=>S,create:()=>xA,creator:()=>Dn,cross:()=>I,csv:()=>Ls,csvFormat:()=>Fc,csvFormatBody:()=>Sc,csvFormatRow:()=>Cc,csvFormatRows:()=>Nc,csvFormatValue:()=>Rc,csvParse:()=>Tc,csvParseRows:()=>kc,cubehelix:()=>hu,cumsum:()=>O,curveBasis:()=>KE,curveBasisClosed:()=>tM,curveBasisOpen:()=>nM,curveBumpX:()=>hE,curveBumpY:()=>dE,curveBundle:()=>iM,curveCardinal:()=>uM,curveCardinalClosed:()=>sM,curveCardinalOpen:()=>lM,curveCatmullRom:()=>pM,curveCatmullRomClosed:()=>gM,curveCatmullRomOpen:()=>vM,curveLinear:()=>XA,curveLinearClosed:()=>xM,curveMonotoneX:()=>kM,curveMonotoneY:()=>FM,curveNatural:()=>CM,curveStep:()=>IM,curveStepAfter:()=>PM,curveStepBefore:()=>OM,descending:()=>d,deviation:()=>D,difference:()=>ue,disjoint:()=>ce,dispatch:()=>Pe,drag:()=>gc,dragDisable:()=>nr,dragEnable:()=>rr,dsv:()=>Ds,dsvFormat:()=>Mc,easeBack:()=>Ms,easeBackIn:()=>As,easeBackInOut:()=>Ms,easeBackOut:()=>Es,easeBounce:()=>xs,easeBounceIn:()=>bs,easeBounceInOut:()=>ws,easeBounceOut:()=>xs,easeCircle:()=>cs,easeCircleIn:()=>as,easeCircleInOut:()=>cs,easeCircleOut:()=>us,easeCubic:()=>Ao,easeCubicIn:()=>wo,easeCubicInOut:()=>Ao,easeCubicOut:()=>_o,easeElastic:()=>ks,easeElasticIn:()=>Ts,easeElasticInOut:()=>Fs,easeElasticOut:()=>ks,easeExp:()=>os,easeExpIn:()=>rs,easeExpInOut:()=>os,easeExpOut:()=>is,easeLinear:()=>qc,easePoly:()=>Jc,easePolyIn:()=>Wc,easePolyInOut:()=>Jc,easePolyOut:()=>Xc,easeQuad:()=>Vc,easeQuadIn:()=>Yc,easeQuadInOut:()=>Vc,easeQuadOut:()=>Gc,easeSin:()=>es,easeSinIn:()=>Qc,easeSinInOut:()=>es,easeSinOut:()=>ts,every:()=>ee,extent:()=>L,fcumsum:()=>z,filter:()=>re,flatGroup:()=>K,flatRollup:()=>Q,forceCenter:()=>Vs,forceCollide:()=>uf,forceLink:()=>ff,forceManyBody:()=>bf,forceRadial:()=>xf,forceSimulation:()=>vf,forceX:()=>wf,forceY:()=>_f,format:()=>Rf,formatDefaultLocale:()=>Lf,formatLocale:()=>Df,formatPrefix:()=>If,formatSpecifier:()=>Tf,fsum:()=>j,geoAlbers:()=>ny,geoAlbersUsa:()=>ry,geoArea:()=>$l,geoAzimuthalEqualArea:()=>uy,geoAzimuthalEqualAreaRaw:()=>ay,geoAzimuthalEquidistant:()=>sy,geoAzimuthalEquidistantRaw:()=>cy,geoBounds:()=>Ah,geoCentroid:()=>Oh,geoCircle:()=>Gh,geoClipAntimeridian:()=>rd,geoClipCircle:()=>id,geoClipExtent:()=>hd,geoClipRectangle:()=>ld,geoConicConformal:()=>yy,geoConicConformalRaw:()=>py,geoConicEqualArea:()=>ey,geoConicEqualAreaRaw:()=>ty,geoConicEquidistant:()=>by,geoConicEquidistantRaw:()=>vy,geoContains:()=>Fd,geoDistance:()=>xd,geoEqualEarth:()=>By,geoEqualEarthRaw:()=>My,geoEquirectangular:()=>my,geoEquirectangularRaw:()=>gy,geoGnomonic:()=>ky,geoGnomonicRaw:()=>Ty,geoGraticule:()=>Cd,geoGraticule10:()=>Rd,geoIdentity:()=>Fy,geoInterpolate:()=>Id,geoLength:()=>md,geoMercator:()=>ly,geoMercatorRaw:()=>fy,geoNaturalEarth1:()=>Ny,geoNaturalEarth1Raw:()=>Sy,geoOrthographic:()=>Ry,geoOrthographicRaw:()=>Cy,geoPath:()=>Dp,geoProjection:()=>Zp,geoProjectionMutator:()=>Kp,geoRotation:()=>Hh,geoStereographic:()=>Oy,geoStereographicRaw:()=>Iy,geoStream:()=>vl,geoTransform:()=>Lp,geoTransverseMercator:()=>Dy,geoTransverseMercatorRaw:()=>Py,gray:()=>Ga,greatest:()=>St,greatestIndex:()=>Vt,group:()=>X,groupSort:()=>ft,groups:()=>J,hcl:()=>eu,hierarchy:()=>Hy,histogram:()=>At,hsl:()=>Or,html:()=>Ys,image:()=>js,index:()=>nt,indexes:()=>rt,interpolate:()=>ui,interpolateArray:()=>Qr,interpolateBasis:()=>zr,interpolateBasisClosed:()=>$r,interpolateBlues:()=>V_,interpolateBrBG:()=>o_,interpolateBuGn:()=>A_,interpolateBuPu:()=>M_,interpolateCividis:()=>iA,interpolateCool:()=>uA,interpolateCubehelix:()=>rm,interpolateCubehelixDefault:()=>oA,interpolateCubehelixLong:()=>im,interpolateDate:()=>ei,interpolateDiscrete:()=>qg,interpolateGnBu:()=>T_,interpolateGreens:()=>X_,interpolateGreys:()=>Z_,interpolateHcl:()=>tm,interpolateHclLong:()=>em,interpolateHsl:()=>Jg,interpolateHslLong:()=>Zg,interpolateHue:()=>Yg,interpolateInferno:()=>vA,interpolateLab:()=>Kg,interpolateMagma:()=>mA,interpolateNumber:()=>ni,interpolateNumberArray:()=>Zr,interpolateObject:()=>ri,interpolateOrRd:()=>F_,interpolateOranges:()=>rA,interpolatePRGn:()=>u_,interpolatePiYG:()=>s_,interpolatePlasma:()=>bA,interpolatePuBu:()=>R_,interpolatePuBuGn:()=>N_,interpolatePuOr:()=>l_,interpolatePuRd:()=>O_,interpolatePurples:()=>Q_,interpolateRainbow:()=>sA,interpolateRdBu:()=>d_,interpolateRdGy:()=>y_,interpolateRdPu:()=>D_,interpolateRdYlBu:()=>m_,interpolateRdYlGn:()=>b_,interpolateReds:()=>eA,interpolateRgb:()=>Vr,interpolateRgbBasis:()=>Xr,interpolateRgbBasisClosed:()=>Jr,interpolateRound:()=>Gg,interpolateSinebow:()=>dA,interpolateSpectral:()=>w_,interpolateString:()=>ai,interpolateTransformCss:()=>Xi,interpolateTransformSvg:()=>Ji,interpolateTurbo:()=>pA,interpolateViridis:()=>gA,interpolateWarm:()=>aA,interpolateYlGn:()=>z_,interpolateYlGnBu:()=>U_,interpolateYlOrBr:()=>H_,interpolateYlOrRd:()=>Y_,interpolateZoom:()=>Wg,interrupt:()=>Hi,intersection:()=>se,interval:()=>iB,isoFormat:()=>eB,isoParse:()=>rB,json:()=>$s,lab:()=>Va,lch:()=>tu,least:()=>Yt,leastIndex:()=>Gt,line:()=>KA,lineRadial:()=>uE,link:()=>mE,linkHorizontal:()=>vE,linkRadial:()=>xE,linkVertical:()=>bE,local:()=>_A,map:()=>ie,matcher:()=>$e,max:()=>Et,maxIndex:()=>Mt,mean:()=>Pt,median:()=>Dt,medianIndex:()=>Lt,merge:()=>Ut,min:()=>Bt,minIndex:()=>Tt,mode:()=>jt,namespace:()=>rn,namespaces:()=>nn,nice:()=>wt,now:()=>wi,pack:()=>pg,packEnclose:()=>Xy,packSiblings:()=>cg,pairs:()=>zt,partition:()=>xg,path:()=>Aa,permute:()=>at,pie:()=>nE,piecewise:()=>om,pointRadial:()=>sE,pointer:()=>si,pointers:()=>EA,polygonArea:()=>um,polygonCentroid:()=>cm,polygonContains:()=>dm,polygonHull:()=>hm,polygonLength:()=>pm,precisionFixed:()=>Uf,precisionPrefix:()=>jf,precisionRound:()=>zf,quadtree:()=>Ks,quantile:()=>Nt,quantileIndex:()=>Rt,quantileSorted:()=>Ct,quantize:()=>am,quickselect:()=>kt,radialArea:()=>cE,radialLine:()=>uE,randomBates:()=>wm,randomBernoulli:()=>Em,randomBeta:()=>Tm,randomBinomial:()=>km,randomCauchy:()=>Sm,randomExponential:()=>_m,randomGamma:()=>Bm,randomGeometric:()=>Mm,randomInt:()=>mm,randomIrwinHall:()=>xm,randomLcg:()=>Pm,randomLogNormal:()=>bm,randomLogistic:()=>Nm,randomNormal:()=>vm,randomPareto:()=>Am,randomPoisson:()=>Cm,randomUniform:()=>gm,randomWeibull:()=>Fm,range:()=>Ht,rank:()=>qt,reduce:()=>oe,reverse:()=>ae,rgb:()=>Br,ribbon:()=>Ia,ribbonArrow:()=>Oa,rollup:()=>tt,rollups:()=>et,scaleBand:()=>zm,scaleDiverging:()=>zw,scaleDivergingLog:()=>$w,scaleDivergingPow:()=>qw,scaleDivergingSqrt:()=>Yw,scaleDivergingSymlog:()=>Hw,scaleIdentity:()=>nv,scaleImplicit:()=>Um,scaleLinear:()=>ev,scaleLog:()=>lv,scaleOrdinal:()=>jm,scalePoint:()=>Hm,scalePow:()=>xv,scaleQuantile:()=>Ev,scaleQuantize:()=>Mv,scaleRadial:()=>Av,scaleSequential:()=>Iw,scaleSequentialLog:()=>Ow,scaleSequentialPow:()=>Dw,scaleSequentialQuantile:()=>Uw,scaleSequentialSqrt:()=>Lw,scaleSequentialSymlog:()=>Pw,scaleSqrt:()=>wv,scaleSymlog:()=>yv,scaleThreshold:()=>Bv,scaleTime:()=>Sw,scaleUtc:()=>Nw,scan:()=>Wt,schemeAccent:()=>Ww,schemeBlues:()=>G_,schemeBrBG:()=>i_,schemeBuGn:()=>__,schemeBuPu:()=>E_,schemeCategory10:()=>Vw,schemeDark2:()=>Xw,schemeGnBu:()=>B_,schemeGreens:()=>W_,schemeGreys:()=>J_,schemeOrRd:()=>k_,schemeOranges:()=>nA,schemePRGn:()=>a_,schemePaired:()=>Jw,schemePastel1:()=>Zw,schemePastel2:()=>Kw,schemePiYG:()=>c_,schemePuBu:()=>C_,schemePuBuGn:()=>S_,schemePuOr:()=>f_,schemePuRd:()=>I_,schemePurples:()=>K_,schemeRdBu:()=>h_,schemeRdGy:()=>p_,schemeRdPu:()=>P_,schemeRdYlBu:()=>g_,schemeRdYlGn:()=>v_,schemeReds:()=>tA,schemeSet1:()=>Qw,schemeSet2:()=>t_,schemeSet3:()=>e_,schemeSpectral:()=>x_,schemeTableau10:()=>n_,schemeYlGn:()=>j_,schemeYlGnBu:()=>L_,schemeYlOrBr:()=>$_,schemeYlOrRd:()=>q_,select:()=>Zn,selectAll:()=>MA,selection:()=>Jn,selector:()=>Le,selectorAll:()=>ze,shuffle:()=>Xt,shuffler:()=>Jt,some:()=>ne,sort:()=>ut,stack:()=>zM,stackOffsetDiverging:()=>HM,stackOffsetExpand:()=>$M,stackOffsetNone:()=>DM,stackOffsetSilhouette:()=>qM,stackOffsetWiggle:()=>YM,stackOrderAppearance:()=>GM,stackOrderAscending:()=>WM,stackOrderDescending:()=>JM,stackOrderInsideOut:()=>ZM,stackOrderNone:()=>LM,stackOrderReverse:()=>KM,stratify:()=>Bg,style:()=>yn,subset:()=>de,sum:()=>Zt,superset:()=>le,svg:()=>Gs,symbol:()=>WE,symbolAsterisk:()=>_E,symbolCircle:()=>AE,symbolCross:()=>EE,symbolDiamond:()=>TE,symbolDiamond2:()=>kE,symbolPlus:()=>FE,symbolSquare:()=>SE,symbolSquare2:()=>NE,symbolStar:()=>OE,symbolTriangle:()=>DE,symbolTriangle2:()=>UE,symbolWye:()=>qE,symbolX:()=>YE,symbols:()=>GE,symbolsFill:()=>GE,symbolsStroke:()=>VE,text:()=>Os,thresholdFreedmanDiaconis:()=>It,thresholdScott:()=>Ot,thresholdSturges:()=>_t,tickFormat:()=>Qm,tickIncrement:()=>bt,tickStep:()=>xt,ticks:()=>vt,timeDay:()=>Jv,timeDays:()=>Zv,timeFormat:()=>ox,timeFormatDefaultLocale:()=>Bw,timeFormatLocale:()=>rx,timeFriday:()=>ib,timeFridays:()=>lb,timeHour:()=>Vv,timeHours:()=>Wv,timeInterval:()=>Pv,timeMillisecond:()=>Lv,timeMilliseconds:()=>Uv,timeMinute:()=>qv,timeMinutes:()=>Yv,timeMonday:()=>tb,timeMondays:()=>ub,timeMonth:()=>pb,timeMonths:()=>yb,timeParse:()=>ax,timeSaturday:()=>ob,timeSaturdays:()=>hb,timeSecond:()=>zv,timeSeconds:()=>$v,timeSunday:()=>Qv,timeSundays:()=>ab,timeThursday:()=>rb,timeThursdays:()=>fb,timeTickInterval:()=>Qb,timeTicks:()=>Kb,timeTuesday:()=>eb,timeTuesdays:()=>cb,timeWednesday:()=>nb,timeWednesdays:()=>sb,timeWeek:()=>Qv,timeWeeks:()=>ab,timeYear:()=>mb,timeYears:()=>vb,timeout:()=>Fi,timer:()=>Ei,timerFlush:()=>Mi,transition:()=>vo,transpose:()=>Kt,tree:()=>Og,treemap:()=>jg,treemapBinary:()=>zg,treemapDice:()=>bg,treemapResquarify:()=>Hg,treemapSlice:()=>Pg,treemapSliceDice:()=>$g,treemapSquarify:()=>Ug,tsv:()=>Us,tsvFormat:()=>Dc,tsvFormatBody:()=>Lc,tsvFormatRow:()=>jc,tsvFormatRows:()=>Uc,tsvFormatValue:()=>zc,tsvParse:()=>Oc,tsvParseRows:()=>Pc,union:()=>pe,utcDay:()=>Bb,utcDays:()=>Tb,utcFormat:()=>ux,utcFriday:()=>Ib,utcFridays:()=>zb,utcHour:()=>Ab,utcHours:()=>Eb,utcMillisecond:()=>Lv,utcMilliseconds:()=>Uv,utcMinute:()=>xb,utcMinutes:()=>wb,utcMonday:()=>Sb,utcMondays:()=>Db,utcMonth:()=>qb,utcMonths:()=>Yb,utcParse:()=>cx,utcSaturday:()=>Ob,utcSaturdays:()=>$b,utcSecond:()=>zv,utcSeconds:()=>$v,utcSunday:()=>Fb,utcSundays:()=>Pb,utcThursday:()=>Rb,utcThursdays:()=>jb,utcTickInterval:()=>Zb,utcTicks:()=>Jb,utcTuesday:()=>Nb,utcTuesdays:()=>Lb,utcWednesday:()=>Cb,utcWednesdays:()=>Ub,utcWeek:()=>Fb,utcWeeks:()=>Pb,utcYear:()=>Vb,utcYears:()=>Wb,variance:()=>P,window:()=>ln,xml:()=>qs,zip:()=>te,zoom:()=>vB,zoomIdentity:()=>cB,zoomTransform:()=>sB});var e={};function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){for(var n=0;ne?1:t>=e?0:NaN}function d(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function p(t){let e,n,r;function i(t,r,i=0,o=t.length){if(i>>1;n(t[e],r)<0?i=e+1:o=e}while(ih(t(e),n),r=(e,n)=>t(e)-n):(e=t===h||t===d?t:y,n=t,r=t),{left:i,center:function(t,e,n=0,o=t.length){const a=i(t,e,n,o-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,i=0,o=t.length){if(i>>1;n(t[e],r)<=0?i=e+1:o=e}while(i=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}n.r(e),n.d(e,{hexbin:()=>dk});const v=p(h),b=v.right,x=v.left,w=p(g).center,_=b;function A(t,e){if(!((e=+e)>=0))throw new RangeError("invalid r");let n=t.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!e)return t;const r=F(e),i=t.slice();return r(t,i,0,n,1),r(i,t,0,n,1),r(t,i,0,n,1),t}const E=B(F),M=B((function(t){const e=F(t);return(t,n,r,i,o)=>{e(t,n,0+(r<<=2),0+(i<<=2),o<<=2),e(t,n,r+1,i+1,o),e(t,n,r+2,i+2,o),e(t,n,r+3,i+3,o)}}));function B(t){return function(e,n,r=n){if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:i,width:o,height:a}=e;if(!((o=Math.floor(o))>=0))throw new RangeError("invalid width");if(!((a=Math.floor(void 0!==a?a:i.length/o))>=0))throw new RangeError("invalid height");if(!o||!a||!n&&!r)return e;const u=n&&t(n),c=r&&t(r),s=i.slice();return u&&c?(T(u,s,i,o,a),T(u,i,s,o,a),T(u,s,i,o,a),k(c,i,s,o,a),k(c,s,i,o,a),k(c,i,s,o,a)):u?(T(u,i,s,o,a),T(u,s,i,o,a),T(u,i,s,o,a)):c&&(k(c,i,s,o,a),k(c,s,i,o,a),k(c,i,s,o,a)),e}}function T(t,e,n,r,i){for(let o=0,a=r*i;o{if(!((o-=a)>=i))return;let u=t*r[i];const c=a*t;for(let t=i,e=i+c;t{if(!((a-=u)>=o))return;let c=e*i[o];const s=u*e,f=s+u;for(let t=o,e=o+s;t=e&&++n;else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(i=+i)>=i&&++n}return n}function N(t){return 0|t.length}function C(t){return!(t>0)}function R(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function I(...t){const e="function"==typeof t[t.length-1]&&function(t){return e=>t(...e)}(t.pop()),n=(t=t.map(R)).map(N),r=t.length-1,i=new Array(r+1).fill(0),o=[];if(r<0||n.some(C))return o;for(;;){o.push(i.map(((e,n)=>t[n][e])));let a=r;for(;++i[a]===n[a];){if(0===a)return e?o.map(e):o;i[a--]=0}}}function O(t,e){var n=0,r=0;return Float64Array.from(t,void 0===e?t=>n+=+t||0:i=>n+=+e(i,r++,t)||0)}function P(t,e){let n,r=0,i=0,o=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(n=e-i,i+=n/++r,o+=n*(e-i));else{let a=-1;for(let u of t)null!=(u=e(u,++a,t))&&(u=+u)>=u&&(n=u-i,i+=n/++r,o+=n*(u-i))}if(r>1)return o/(r-1)}function D(t,e){const n=P(t,e);return n?Math.sqrt(n):n}function L(t,e){let n,r;if(void 0===e)for(const e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r=o&&(n=r=o):(n>o&&(n=o),r0){for(o=t[--i];i>0&&(e=o,n=t[--i],o=e+n,r=n-(o-e),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(n=2*r,e=o+n,n==e-o&&(o=e))}return o}}function j(t,e){const n=new U;if(void 0===e)for(let e of t)(e=+e)&&n.add(e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&n.add(i)}return+n}function z(t,e){const n=new U;let r=-1;return Float64Array.from(t,void 0===e?t=>n.add(+t||0):i=>n.add(+e(i,++r,t)||0))}class $ extends Map{constructor(t,e=V){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(q(this,t))}has(t){return super.has(q(this,t))}set(t,e){return super.set(Y(this,t),e)}delete(t){return super.delete(G(this,t))}}class H extends Set{constructor(t,e=V){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const e of t)this.add(e)}has(t){return super.has(q(this,t))}add(t){return super.add(Y(this,t))}delete(t){return super.delete(G(this,t))}}function q({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Y({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function G({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function V(t){return null!==t&&"object"==typeof t?t.valueOf():t}function W(t){return t}function X(t,...e){return ot(t,W,W,e)}function J(t,...e){return ot(t,Array.from,W,e)}function Z(t,e){for(let n=1,r=e.length;nt.pop().map((([e,n])=>[...t,e,n]))));return t}function K(t,...e){return Z(J(t,...e),e)}function Q(t,e,...n){return Z(et(t,e,...n),n)}function tt(t,e,...n){return ot(t,W,e,n)}function et(t,e,...n){return ot(t,Array.from,e,n)}function nt(t,...e){return ot(t,W,it,e)}function rt(t,...e){return ot(t,Array.from,it,e)}function it(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function ot(t,e,n,r){return function t(i,o){if(o>=r.length)return n(i);const a=new $,u=r[o++];let c=-1;for(const t of i){const e=u(t,++c,i),n=a.get(e);n?n.push(t):a.set(e,[t])}for(const[e,n]of a)a.set(e,t(n,o));return e(a)}(t,0)}function at(t,e){return Array.from(e,(e=>t[e]))}function ut(t,...e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&2!==n.length||e.length>1){const r=Uint32Array.from(t,((t,e)=>e));return e.length>1?(e=e.map((e=>t.map(e))),r.sort(((t,n)=>{for(const r of e){const e=st(r[t],r[n]);if(e)return e}}))):(n=t.map(n),r.sort(((t,e)=>st(n[t],n[e])))),at(t,r)}return t.sort(ct(n))}function ct(t=h){if(t===h)return st;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}function st(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(te?1:0)}function ft(t,e,n){return(2!==e.length?ut(tt(t,e,n),(([t,e],[n,r])=>h(e,r)||h(t,n))):ut(X(t,n),(([t,n],[r,i])=>e(n,i)||h(t,r)))).map((([t])=>t))}var lt=Array.prototype,ht=lt.slice;function dt(t){return()=>t}lt.map;const pt=Math.sqrt(50),yt=Math.sqrt(10),gt=Math.sqrt(2);function mt(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=pt?10:o>=yt?5:o>=gt?2:1;let u,c,s;return i<0?(s=Math.pow(10,-i)/a,u=Math.round(t*s),c=Math.round(e*s),u/se&&--c,s=-s):(s=Math.pow(10,i)*a,u=Math.round(t/s),c=Math.round(e/s),u*se&&--c),c0))return[];if((t=+t)==(e=+e))return[t];const r=e=i))return[];const u=o-i+1,c=new Array(u);if(r)if(a<0)for(let t=0;t0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function _t(t){return Math.ceil(Math.log(S(t))/Math.LN2)+1}function At(){var t=W,e=L,n=_t;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a,u=r.length,c=new Array(u);for(i=0;i=l)if(t>=l&&e===L){const t=bt(f,l,n);isFinite(t)&&(t>0?l=(Math.floor(l/t)+1)*t:t<0&&(l=(Math.ceil(l*-t)+1)/-t))}else h.pop()}for(var d=h.length,p=0,y=d;h[p]<=f;)++p;for(;h[y-1]>l;)--y;(p||y0?h[i-1]:f,g.x1=i0)for(i=0;i=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n=i)&&(n=i)}return n}function Mt(t,e){let n,r=-1,i=-1;if(void 0===e)for(const e of t)++i,null!=e&&(n=e)&&(n=e,r=i);else for(let o of t)null!=(o=e(o,++i,t))&&(n=o)&&(n=o,r=i);return r}function Bt(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function Tt(t,e){let n,r=-1,i=-1;if(void 0===e)for(const e of t)++i,null!=e&&(n>e||void 0===n&&e>=e)&&(n=e,r=i);else for(let o of t)null!=(o=e(o,++i,t))&&(n>o||void 0===n&&o>=o)&&(n=o,r=i);return r}function kt(t,e,n=0,r=1/0,i){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=void 0===i?st:ct(i);r>n;){if(r-n>600){const o=r-n+1,a=e-n+1,u=Math.log(o),c=.5*Math.exp(2*u/3),s=.5*Math.sqrt(u*c*(o-c)/o)*(a-o/2<0?-1:1);kt(t,e,Math.max(n,Math.floor(e-a*c/o+s)),Math.min(r,Math.floor(e+(o-a)*c/o+s)),i)}const o=t[e];let a=n,u=r;for(Ft(t,n,e),i(t[r],o)>0&&Ft(t,n,r);a0;)--u}0===i(t[n],o)?Ft(t,n,u):(++u,Ft(t,u,r)),u<=e&&(n=u+1),e<=u&&(r=u-1)}return t}function Ft(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function St(t,e=h){let n,r=!1;if(1===e.length){let i;for(const o of t){const t=e(o);(r?h(t,i)>0:0===h(t,t))&&(n=o,i=t,r=!0)}}else for(const i of t)(r?e(i,n)>0:0===e(i,i))&&(n=i,r=!0);return n}function Nt(t,e,n){if((r=(t=Float64Array.from(m(t,n))).length)&&!isNaN(e=+e)){if(e<=0||r<2)return Bt(t);if(e>=1)return Et(t);var r,i=(r-1)*e,o=Math.floor(i),a=Et(kt(t,o).subarray(0,o+1));return a+(Bt(t.subarray(o+1))-a)*(i-o)}}function Ct(t,e,n=g){if((r=t.length)&&!isNaN(e=+e)){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function Rt(t,e,n){if((r=(t=Float64Array.from(m(t,n))).length)&&!isNaN(e=+e)){if(e<=0||r<2)return Tt(t);if(e>=1)return Mt(t);var r,i=Math.floor((r-1)*e),o=kt(Uint32Array.from(t,((t,e)=>e)),i,0,r-1,((e,n)=>st(t[e],t[n])));return St(o.subarray(0,i+1),(e=>t[e]))}}function It(t,e,n){return Math.ceil((n-e)/(2*(Nt(t,.75)-Nt(t,.25))*Math.pow(S(t),-1/3)))}function Ot(t,e,n){return Math.ceil((n-e)*Math.cbrt(S(t))/(3.49*D(t)))}function Pt(t,e){let n=0,r=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(++n,r+=e);else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}function Dt(t,e){return Nt(t,.5,e)}function Lt(t,e){return Rt(t,.5,e)}function Ut(t){return Array.from(function*(t){for(const e of t)yield*e}(t))}function jt(t,e){const n=new $;if(void 0===e)for(let e of t)null!=e&&e>=e&&n.set(e,(n.get(e)||0)+1);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&i>=i&&n.set(i,(n.get(i)||0)+1)}let r,i=0;for(const[t,e]of n)e>i&&(i=e,r=t);return r}function zt(t,e=$t){const n=[];let r,i=!1;for(const o of t)i&&n.push(e(r,o)),r=o,i=!0;return n}function $t(t,e){return[t,e]}function Ht(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++re(n[t],n[r]);let o,a;return Uint32Array.from(n,((t,e)=>e)).sort(e===h?(t,e)=>st(n[t],n[e]):ct(i)).forEach(((t,e)=>{const n=i(t,void 0===o?t:o);n>=0?((void 0===o||n>0)&&(o=t,a=e),r[t]=a):r[t]=NaN})),r}function Yt(t,e=h){let n,r=!1;if(1===e.length){let i;for(const o of t){const t=e(o);(r?h(t,i)<0:0===h(t,t))&&(n=o,i=t,r=!0)}}else for(const i of t)(r?e(i,n)<0:0===e(i,i))&&(n=i,r=!0);return n}function Gt(t,e=h){if(1===e.length)return Tt(t,e);let n,r=-1,i=-1;for(const o of t)++i,(r<0?0===e(o,o):e(o,n)<0)&&(n=o,r=i);return r}function Vt(t,e=h){if(1===e.length)return Mt(t,e);let n,r=-1,i=-1;for(const o of t)++i,(r<0?0===e(o,o):e(o,n)>0)&&(n=o,r=i);return r}function Wt(t,e){const n=Gt(t,e);return n<0?void 0:n}const Xt=Jt(Math.random);function Jt(t){return function(e,n=0,r=e.length){let i=r-(n=+n);for(;i;){const r=t()*i--|0,o=e[i+n];e[i+n]=e[r+n],e[r+n]=o}return e}}function Zt(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function Kt(t){if(!(i=t.length))return[];for(var e=-1,n=Bt(t,Qt),r=new Array(n);++ee(n,r,t)))}function oe(t,e,n){if("function"!=typeof e)throw new TypeError("reducer is not a function");const r=t[Symbol.iterator]();let i,o,a=-1;if(arguments.length<3){if(({done:i,value:n}=r.next()),i)return;++a}for(;({done:i,value:o}=r.next()),!i;)n=e(n,o,++a,t);return n}function ae(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function ue(t,...e){t=new H(t);for(const n of e)for(const e of n)t.delete(e);return t}function ce(t,e){const n=e[Symbol.iterator](),r=new H;for(const e of t){if(r.has(e))return!1;let t,i;for(;({value:t,done:i}=n.next())&&!i;){if(Object.is(e,t))return!1;r.add(t)}}return!0}function se(t,...e){t=new H(t),e=e.map(fe);t:for(const n of t)for(const r of e)if(!r.has(n)){t.delete(n);continue t}return t}function fe(t){return t instanceof H?t:new H(t)}function le(t,e){const n=t[Symbol.iterator](),r=new Set;for(const t of e){const e=he(t);if(r.has(e))continue;let i,o;for(;({value:i,done:o}=n.next());){if(o)return!1;const t=he(i);if(r.add(t),Object.is(e,t))break}}return!0}function he(t){return null!==t&&"object"==typeof t?t.valueOf():t}function de(t,e){return le(e,t)}function pe(...t){const e=new H;for(const n of t)for(const t of n)e.add(t);return e}function ye(t){return t}var ge=1,me=2,ve=3,be=4,xe=1e-6;function we(t){return"translate("+t+",0)"}function _e(t){return"translate(0,"+t+")"}function Ae(t){return e=>+t(e)}function Ee(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Me(){return!this.__axis}function Be(t,e){var n=[],r=null,i=null,o=6,a=6,u=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,s=t===ge||t===be?-1:1,f=t===be||t===me?"x":"y",l=t===ge||t===ve?we:_e;function h(h){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,p=null==i?e.tickFormat?e.tickFormat.apply(e,n):ye:i,y=Math.max(o,0)+u,g=e.range(),m=+g[0]+c,v=+g[g.length-1]+c,b=(e.bandwidth?Ee:Ae)(e.copy(),c),x=h.selection?h.selection():h,w=x.selectAll(".domain").data([null]),_=x.selectAll(".tick").data(d,e).order(),A=_.exit(),E=_.enter().append("g").attr("class","tick"),M=_.select("line"),B=_.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),_=_.merge(E),M=M.merge(E.append("line").attr("stroke","currentColor").attr(f+"2",s*o)),B=B.merge(E.append("text").attr("fill","currentColor").attr(f,s*y).attr("dy",t===ge?"0em":t===ve?"0.71em":"0.32em")),h!==x&&(w=w.transition(h),_=_.transition(h),M=M.transition(h),B=B.transition(h),A=A.transition(h).attr("opacity",xe).attr("transform",(function(t){return isFinite(t=b(t))?l(t+c):this.getAttribute("transform")})),E.attr("opacity",xe).attr("transform",(function(t){var e=this.parentNode.__axis;return l((e&&isFinite(e=e(t))?e:b(t))+c)}))),A.remove(),w.attr("d",t===be||t===me?a?"M"+s*a+","+m+"H"+c+"V"+v+"H"+s*a:"M"+c+","+m+"V"+v:a?"M"+m+","+s*a+"V"+c+"H"+v+"V"+s*a:"M"+m+","+c+"H"+v),_.attr("opacity",1).attr("transform",(function(t){return l(b(t)+c)})),M.attr(f+"2",s*o),B.attr(f,s*y).text(p),x.filter(Me).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===me?"start":t===be?"end":"middle"),x.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(u=+t,h):u},h.offset=function(t){return arguments.length?(c=+t,h):c},h}function Te(t){return Be(ge,t)}function ke(t){return Be(me,t)}function Fe(t){return Be(ve,t)}function Se(t){return Be(be,t)}var Ne={value:()=>{}};function Ce(){for(var t,e=0,n=arguments.length,r={};e=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a0)for(var n,r,i=new Array(n),o=0;oe?1:t>=e?0:NaN}Xe.prototype={constructor:Xe,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var en="http://www.w3.org/1999/xhtml";const nn={svg:"http://www.w3.org/2000/svg",xhtml:en,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function rn(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),nn.hasOwnProperty(e)?{space:nn[e],local:t}:t}function on(t){return function(){this.removeAttribute(t)}}function an(t){return function(){this.removeAttributeNS(t.space,t.local)}}function un(t,e){return function(){this.setAttribute(t,e)}}function cn(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function sn(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function fn(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function ln(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function hn(t){return function(){this.style.removeProperty(t)}}function dn(t,e,n){return function(){this.style.setProperty(t,e,n)}}function pn(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function yn(t,e){return t.style.getPropertyValue(e)||ln(t).getComputedStyle(t,null).getPropertyValue(e)}function gn(t){return function(){delete this[t]}}function mn(t,e){return function(){this[t]=e}}function vn(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function bn(t){return t.trim().split(/^|\s+/)}function xn(t){return t.classList||new wn(t)}function wn(t){this._node=t,this._names=bn(t.getAttribute("class")||"")}function _n(t,e){for(var n=xn(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Vn=[null];function Wn(t,e){this._groups=t,this._parents=e}function Xn(){return new Wn([[document.documentElement]],Vn)}Wn.prototype=Xn.prototype={constructor:Wn,select:function(t){"function"!=typeof t&&(t=Le(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=w&&(w=x+1);!(b=m[w])&&++w=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=tn);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?hn:"function"==typeof e?pn:dn)(t,e,null==n?"":n)):yn(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?gn:"function"==typeof e?vn:mn)(t,e)):this.node()[t]},classed:function(t,e){var n=bn(t+"");if(arguments.length<2){for(var r=xn(this.node()),i=-1,o=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=e?Hn:$n,r=0;r>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Er(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Er(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=dr.exec(t))?new Tr(e[1],e[2],e[3],1):(e=pr.exec(t))?new Tr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=yr.exec(t))?Er(e[1],e[2],e[3],e[4]):(e=gr.exec(t))?Er(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=mr.exec(t))?Rr(e[1],e[2]/100,e[3]/100,1):(e=vr.exec(t))?Rr(e[1],e[2]/100,e[3]/100,e[4]):br.hasOwnProperty(t)?Ar(br[t]):"transparent"===t?new Tr(NaN,NaN,NaN,0):null}function Ar(t){return new Tr(t>>16&255,t>>8&255,255&t,1)}function Er(t,e,n,r){return r<=0&&(t=e=n=NaN),new Tr(t,e,n,r)}function Mr(t){return t instanceof ar||(t=_r(t)),t?new Tr((t=t.rgb()).r,t.g,t.b,t.opacity):new Tr}function Br(t,e,n,r){return 1===arguments.length?Mr(t):new Tr(t,e,n,null==r?1:r)}function Tr(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function kr(){return`#${Cr(this.r)}${Cr(this.g)}${Cr(this.b)}`}function Fr(){const t=Sr(this.opacity);return`${1===t?"rgb(":"rgba("}${Nr(this.r)}, ${Nr(this.g)}, ${Nr(this.b)}${1===t?")":`, ${t})`}`}function Sr(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Nr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Cr(t){return((t=Nr(t))<16?"0":"")+t.toString(16)}function Rr(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Pr(t,e,n,r)}function Ir(t){if(t instanceof Pr)return new Pr(t.h,t.s,t.l,t.opacity);if(t instanceof ar||(t=_r(t)),!t)return new Pr;if(t instanceof Pr)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=e===o?(n-r)/u+6*(n0&&c<1?0:a,new Pr(a,u,c,t.opacity)}function Or(t,e,n,r){return 1===arguments.length?Ir(t):new Pr(t,e,n,null==r?1:r)}function Pr(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Dr(t){return(t=(t||0)%360)<0?t+360:t}function Lr(t){return Math.max(0,Math.min(1,t||0))}function Ur(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function jr(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function zr(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r=240?t-240:t+120,i,r),Ur(t,i,r),Ur(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Pr(Dr(this.h),Lr(this.s),Lr(this.l),Sr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Sr(this.opacity);return`${1===t?"hsl(":"hsla("}${Dr(this.h)}, ${100*Lr(this.s)}%, ${100*Lr(this.l)}%${1===t?")":`, ${t})`}`}}));const Hr=t=>()=>t;function qr(t,e){return function(n){return t+n*e}}function Yr(t,e){var n=e-t;return n?qr(t,n>180||n<-180?n-360*Math.round(n/360):n):Hr(isNaN(t)?e:t)}function Gr(t,e){var n=e-t;return n?qr(t,n):Hr(isNaN(t)?e:t)}const Vr=function t(e){var n=function(t){return 1==(t=+t)?Gr:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Hr(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Br(t)).r,(e=Br(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Gr(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Wr(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),u=new Array(i);for(n=0;no&&(i=e.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:ni(n,r)})),o=oi.lastIndex;return o=0&&e._call.call(void 0,t),e=e._next;--hi}function Bi(){mi=(gi=bi.now())+vi,hi=di=0;try{Mi()}finally{hi=0,function(){for(var t,e,n=fi,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:fi=e);li=t,ki(r)}(),mi=0}}function Ti(){var t=bi.now(),e=t-gi;e>yi&&(vi-=e,gi=t)}function ki(t){hi||(di&&(di=clearTimeout(di)),t-mi>24?(t<1/0&&(di=setTimeout(Bi,t-bi.now()-vi)),pi&&(pi=clearInterval(pi))):(pi||(gi=bi.now(),pi=setInterval(Ti,yi)),hi=1,xi(Bi)))}function Fi(t,e,n){var r=new Ai;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}Ai.prototype=Ei.prototype={constructor:Ai,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?wi():+n)+(null==e?0:+e),this._next||li===this||(li?li._next=this:fi=this,li=this),this._call=t,this._time=n,ki()},stop:function(){this._call&&(this._call=null,this._time=1/0,ki())}};var Si=Pe("start","end","cancel","interrupt"),Ni=[],Ci=0,Ri=1,Ii=2,Oi=3,Pi=4,Di=5,Li=6;function Ui(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(c){var s,f,l,h;if(n.state!==Ri)return u();for(s in i)if((h=i[s]).name===n.name){if(h.state===Oi)return Fi(o);h.state===Pi?(h.state=Li,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+sCi)throw new Error("too late; already scheduled");return n}function zi(t,e){var n=$i(t,e);if(n.state>Oi)throw new Error("too late; already running");return n}function $i(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Hi(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>Ii&&n.state180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:ni(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:ni(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,c),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:ni(t,n)},{i:u-2,x:ni(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var e,n=-1,r=c.length;++n=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?ji:zi;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(e,n),a.on=i}}(n,t,e))},attr:function(t,e){var n=rn(t),r="transform"===n?Ji:to;return this.attrTween(t,"function"==typeof e?(n.local?ao:oo)(n,r,Qi(this,"attr."+t,e)):null==e?(n.local?no:eo)(n):(n.local?io:ro)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=rn(t);return this.tween(n,(r.local?uo:co)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?Xi:to;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=yn(this,t),a=(this.style.removeProperty(t),yn(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,yo(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var a=yn(this,t),u=n(this),c=u+"";return null==u&&(this.style.removeProperty(t),c=u=yn(this,t)),a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,u))}}(t,r,Qi(this,"style."+t,e))).each(function(t,e){var n,r,i,o,a="style."+e,u="end."+a;return function(){var c=zi(this,t),s=c.on,f=null==c.value[a]?o||(o=yo(e)):void 0;s===n&&i===f||(r=(n=s).copy()).on(u,i=f),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var a=yn(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,o,n)),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Qi(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=$i(this.node(),n).tween,o=0,a=i.length;oRi&&n.name===e)return new mo([[t]],Bo,e,+r);return null}const ko=t=>()=>t;function Fo(t,{sourceEvent:e,target:n,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function So(t){t.preventDefault(),t.stopImmediatePropagation()}var No={name:"drag"},Co={name:"space"},Ro={name:"handle"},Io={name:"center"};const{abs:Oo,max:Po,min:Do}=Math;function Lo(t){return[+t[0],+t[1]]}function Uo(t){return[Lo(t[0]),Lo(t[1])]}var jo={name:"x",handles:["w","e"].map(Wo),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},zo={name:"y",handles:["n","s"].map(Wo),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},$o={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Wo),input:function(t){return null==t?null:Uo(t)},output:function(t){return t}},Ho={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},qo={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Yo={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Go={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Vo={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Wo(t){return{type:t}}function Xo(t){return!t.ctrlKey&&!t.button}function Jo(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Zo(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ko(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Qo(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function ta(){return ra(jo)}function ea(){return ra(zo)}function na(){return ra($o)}function ra(t){var e,n=Jo,r=Xo,i=Zo,o=!0,a=Pe("start","brush","end"),u=6;function c(e){var n=e.property("__brush",y).selectAll(".overlay").data([Wo("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Ho.overlay).merge(n).each((function(){var t=Ko(this).extent;Zn(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([Wo("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Ho.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return Ho[t.type]})),e.each(s).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function s(){var t=Zn(this),e=Ko(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-u/2:e[0][0]-u/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-u/2:e[0][1]-u/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+u:u})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+u:u}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function f(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new l(t,e,n):r}function l(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function h(n){if((!e||n.touches)&&r.apply(this,arguments)){var i,a,u,c,l,h,d,p,y,g,m,v=this,b=n.target.__data__.type,x="selection"===(o&&n.metaKey?b="overlay":b)?No:o&&n.altKey?Io:Ro,w=t===zo?null:Go[b],_=t===jo?null:Vo[b],A=Ko(v),E=A.extent,M=A.selection,B=E[0][0],T=E[0][1],k=E[1][0],F=E[1][1],S=0,N=0,C=w&&_&&o&&n.shiftKey,R=Array.from(n.touches||[n],(t=>{const e=t.identifier;return(t=si(t,v)).point0=t.slice(),t.identifier=e,t}));Hi(v);var I=f(v,arguments,!0).beforestart();if("overlay"===b){M&&(y=!0);const e=[R[0],R[1]||R[0]];A.selection=M=[[i=t===zo?B:Do(e[0][0],e[1][0]),u=t===jo?T:Do(e[0][1],e[1][1])],[l=t===zo?k:Po(e[0][0],e[1][0]),d=t===jo?F:Po(e[0][1],e[1][1])]],R.length>1&&U(n)}else i=M[0][0],u=M[0][1],l=M[1][0],d=M[1][1];a=i,c=u,h=l,p=d;var O=Zn(v).attr("pointer-events","none"),P=O.selectAll(".overlay").attr("cursor",Ho[b]);if(n.touches)I.moved=L,I.ended=j;else{var D=Zn(n.view).on("mousemove.brush",L,!0).on("mouseup.brush",j,!0);o&&D.on("keydown.brush",(function(t){switch(t.keyCode){case 16:C=w&&_;break;case 18:x===Ro&&(w&&(l=h-S*w,i=a+S*w),_&&(d=p-N*_,u=c+N*_),x=Io,U(t));break;case 32:x!==Ro&&x!==Io||(w<0?l=h-S:w>0&&(i=a-S),_<0?d=p-N:_>0&&(u=c-N),x=Co,P.attr("cursor",Ho.selection),U(t));break;default:return}So(t)}),!0).on("keyup.brush",(function(t){switch(t.keyCode){case 16:C&&(g=m=C=!1,U(t));break;case 18:x===Io&&(w<0?l=h:w>0&&(i=a),_<0?d=p:_>0&&(u=c),x=Ro,U(t));break;case 32:x===Co&&(t.altKey?(w&&(l=h-S*w,i=a+S*w),_&&(d=p-N*_,u=c+N*_),x=Io):(w<0?l=h:w>0&&(i=a),_<0?d=p:_>0&&(u=c),x=Ro),P.attr("cursor",Ho[b]),U(t));break;default:return}So(t)}),!0),nr(n.view)}s.call(v),I.start(n,x.name)}function L(t){for(const e of t.changedTouches||[t])for(const t of R)t.identifier===e.identifier&&(t.cur=si(e,v));if(C&&!g&&!m&&1===R.length){const t=R[0];Oo(t.cur[0]-t[0])>Oo(t.cur[1]-t[1])?m=!0:g=!0}for(const t of R)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);y=!0,So(t),U(t)}function U(t){const e=R[0],n=e.point0;var r;switch(S=e[0]-n[0],N=e[1]-n[1],x){case Co:case No:w&&(S=Po(B-i,Do(k-l,S)),a=i+S,h=l+S),_&&(N=Po(T-u,Do(F-d,N)),c=u+N,p=d+N);break;case Ro:R[1]?(w&&(a=Po(B,Do(k,R[0][0])),h=Po(B,Do(k,R[1][0])),w=1),_&&(c=Po(T,Do(F,R[0][1])),p=Po(T,Do(F,R[1][1])),_=1)):(w<0?(S=Po(B-i,Do(k-i,S)),a=i+S,h=l):w>0&&(S=Po(B-l,Do(k-l,S)),a=i,h=l+S),_<0?(N=Po(T-u,Do(F-u,N)),c=u+N,p=d):_>0&&(N=Po(T-d,Do(F-d,N)),c=u,p=d+N));break;case Io:w&&(a=Po(B,Do(k,i-S*w)),h=Po(B,Do(k,l+S*w))),_&&(c=Po(T,Do(F,u-N*_)),p=Po(T,Do(F,d+N*_)))}ht+n))}function da(){return ga(!1,!1)}function pa(){return ga(!1,!0)}function ya(){return ga(!0,!1)}function ga(t,e){var n=0,r=null,i=null,o=null;function a(a){var u,c=a.length,s=new Array(c),f=ha(0,c),l=new Array(c*c),h=new Array(c),d=0;a=Float64Array.from({length:c*c},e?(t,e)=>a[e%c][e/c|0]:(t,e)=>a[e/c|0][e%c]);for(let e=0;er(s[t],s[e])));for(const n of f){const r=e;if(t){const t=ha(1+~c,c).filter((t=>t<0?a[~t*c+n]:a[n*c+t]));i&&t.sort(((t,e)=>i(t<0?-a[~t*c+n]:a[n*c+t],e<0?-a[~e*c+n]:a[n*c+e])));for(const r of t)r<0?(l[~r*c+n]||(l[~r*c+n]={source:null,target:null})).target={index:n,startAngle:e,endAngle:e+=a[~r*c+n]*d,value:a[~r*c+n]}:(l[n*c+r]||(l[n*c+r]={source:null,target:null})).source={index:n,startAngle:e,endAngle:e+=a[n*c+r]*d,value:a[n*c+r]};h[n]={index:n,startAngle:r,endAngle:e,value:s[n]}}else{const t=ha(0,c).filter((t=>a[n*c+t]||a[t*c+n]));i&&t.sort(((t,e)=>i(a[n*c+t],a[n*c+e])));for(const r of t){let t;if(nba)if(Math.abs(f*u-c*s)>ba&&i){var h=n-o,d=r-a,p=u*u+c*c,y=h*h+d*d,g=Math.sqrt(p),m=Math.sqrt(l),v=i*Math.tan((ma-Math.acos((p+l-y)/(2*g*m)))/2),b=v/m,x=v/g;Math.abs(b-1)>ba&&(this._+="L"+(t+b*s)+","+(e+b*f)),this._+="A"+i+","+i+",0,0,"+ +(f*h>s*d)+","+(this._x1=t+x*u)+","+(this._y1=e+x*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(r),u=n*Math.sin(r),c=t+a,s=e+u,f=1^o,l=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>ba||Math.abs(this._y1-s)>ba)&&(this._+="L"+c+","+s),n&&(l<0&&(l=l%va+va),l>xa?this._+="A"+n+","+n+",0,1,"+f+","+(t-a)+","+(e-u)+"A"+n+","+n+",0,1,"+f+","+(this._x1=c)+","+(this._y1=s):l>ba&&(this._+="A"+n+","+n+",0,"+ +(l>=ma)+","+f+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const Aa=_a;var Ea=Array.prototype.slice;function Ma(t){return function(){return t}}function Ba(t){return t.source}function Ta(t){return t.target}function ka(t){return t.radius}function Fa(t){return t.startAngle}function Sa(t){return t.endAngle}function Na(){return 0}function Ca(){return 10}function Ra(t){var e=Ba,n=Ta,r=ka,i=ka,o=Fa,a=Sa,u=Na,c=null;function s(){var s,f=e.apply(this,arguments),l=n.apply(this,arguments),h=u.apply(this,arguments)/2,d=Ea.call(arguments),p=+r.apply(this,(d[0]=f,d)),y=o.apply(this,d)-ca,g=a.apply(this,d)-ca,m=+i.apply(this,(d[0]=l,d)),v=o.apply(this,d)-ca,b=a.apply(this,d)-ca;if(c||(c=s=Aa()),h>la&&(ia(g-y)>2*h+la?g>y?(y+=h,g-=h):(y-=h,g+=h):y=g=(y+g)/2,ia(b-v)>2*h+la?b>v?(v+=h,b-=h):(v-=h,b+=h):v=b=(v+b)/2),c.moveTo(p*oa(y),p*aa(y)),c.arc(0,0,p,y,g),y!==v||g!==b)if(t){var x=m-+t.apply(this,arguments),w=(v+b)/2;c.quadraticCurveTo(0,0,x*oa(v),x*aa(v)),c.lineTo(m*oa(w),m*aa(w)),c.lineTo(x*oa(b),x*aa(b))}else c.quadraticCurveTo(0,0,m*oa(v),m*aa(v)),c.arc(0,0,m,v,b);if(c.quadraticCurveTo(0,0,p*oa(y),p*aa(y)),c.closePath(),s)return c=null,s+""||null}return t&&(s.headRadius=function(e){return arguments.length?(t="function"==typeof e?e:Ma(+e),s):t}),s.radius=function(t){return arguments.length?(r=i="function"==typeof t?t:Ma(+t),s):r},s.sourceRadius=function(t){return arguments.length?(r="function"==typeof t?t:Ma(+t),s):r},s.targetRadius=function(t){return arguments.length?(i="function"==typeof t?t:Ma(+t),s):i},s.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:Ma(+t),s):o},s.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:Ma(+t),s):a},s.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:Ma(+t),s):u},s.source=function(t){return arguments.length?(e=t,s):e},s.target=function(t){return arguments.length?(n=t,s):n},s.context=function(t){return arguments.length?(c=null==t?null:t,s):c},s}function Ia(){return Ra()}function Oa(){return Ra(Ca)}const Pa=Math.PI/180,Da=180/Math.PI,La=.96422,Ua=1,ja=.82521,za=4/29,$a=6/29,Ha=3*$a*$a,qa=$a*$a*$a;function Ya(t){if(t instanceof Wa)return new Wa(t.l,t.a,t.b,t.opacity);if(t instanceof nu)return ru(t);t instanceof Tr||(t=Mr(t));var e,n,r=Ka(t.r),i=Ka(t.g),o=Ka(t.b),a=Xa((.2225045*r+.7168786*i+.0606169*o)/Ua);return r===i&&i===o?e=n=a:(e=Xa((.4360747*r+.3850649*i+.1430804*o)/La),n=Xa((.0139322*r+.0971045*i+.7141733*o)/ja)),new Wa(116*a-16,500*(e-a),200*(a-n),t.opacity)}function Ga(t,e){return new Wa(t,0,0,null==e?1:e)}function Va(t,e,n,r){return 1===arguments.length?Ya(t):new Wa(t,e,n,null==r?1:r)}function Wa(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Xa(t){return t>qa?Math.pow(t,1/3):t/Ha+za}function Ja(t){return t>$a?t*t*t:Ha*(t-za)}function Za(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ka(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Qa(t){if(t instanceof nu)return new nu(t.h,t.c,t.l,t.opacity);if(t instanceof Wa||(t=Ya(t)),0===t.a&&0===t.b)return new nu(NaN,0()=>t;function mu(t,e){for(var n,r=-1,i=e.length;++rr!=d>r&&n<(h-s)*(r-f)/(d-f)+s&&(i=-i)}return i}function bu(t,e,n){var r,i,o,a;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])==(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&(i=t[r=+(t[0]===e[0])],o=n[r],a=e[r],i<=o&&o<=a||a<=o&&o<=i)}function xu(){}var wu=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function _u(){var t=1,e=1,n=_t,r=u;function i(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(yu);else{const n=L(t,Au);for(e=vt(...wt(n[0],n[1],e),e);e[e.length-1]>=n[1];)e.pop();for(;e[1]o(t,e)))}function o(n,i){const o=null==i?NaN:+i;if(isNaN(o))throw new Error(`invalid value: ${i}`);var u=[],c=[];return function(n,r,i){var o,u,c,s,f,l,h=new Array,d=new Array;for(o=u=-1,s=Eu(n[0],r),wu[s<<1].forEach(p);++o=r,wu[f<<2].forEach(p);++o0?u.push([t]):c.push(t)})),c.forEach((function(t){for(var e,n=0,r=u.length;n0&&o0&&a=0&&o>=0))throw new Error("invalid size");return t=r,e=o,i},i.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?gu(pu.call(t)):gu(t),i):n},i.smooth=function(t){return arguments.length?(r=t?u:xu,i):r===u},i}function Au(t){return isFinite(t)?t:NaN}function Eu(t,e){return null!=t&&+t>=e}function Mu(t){return null==t||isNaN(t=+t)?-1/0:t}function Bu(t,e,n,r){const i=r-e,o=n-e,a=isFinite(i)||isFinite(o)?i/o:Math.sign(i)/Math.sign(o);return isNaN(a)?t:t+a-.5}function Tu(t){return t[0]}function ku(t){return t[1]}function Fu(){return 1}function Su(){var t=Tu,e=ku,n=Fu,r=960,i=500,o=20,a=2,u=3*o,c=r+2*u>>a,s=i+2*u>>a,f=gu(20);function l(r){var i=new Float32Array(c*s),f=Math.pow(2,-a),l=-1;for(const o of r){var h=(t(o,++l,r)+u)*f,d=(e(o,l,r)+u)*f,p=+n(o,l,r);if(p&&h>=0&&h=0&&dt*r)))(e).map(((t,e)=>(t.value=+n[e],d(t))))}function d(t){return t.coordinates.forEach(p),t}function p(t){t.forEach(y)}function y(t){t.forEach(g)}function g(t){t[0]=t[0]*Math.pow(2,a)-u,t[1]=t[1]*Math.pow(2,a)-u}function m(){return c=r+2*(u=3*o)>>a,s=i+2*u>>a,h}return h.contours=function(t){var e=l(t),n=_u().size([c,s]),r=Math.pow(2,2*a),i=t=>{t=+t;var i=d(n.contour(e,t*r));return i.value=t,i};return Object.defineProperty(i,"max",{get:()=>Et(e)/r}),i},h.x=function(e){return arguments.length?(t="function"==typeof e?e:gu(+e),h):t},h.y=function(t){return arguments.length?(e="function"==typeof t?t:gu(+t),h):e},h.weight=function(t){return arguments.length?(n="function"==typeof t?t:gu(+t),h):n},h.size=function(t){if(!arguments.length)return[r,i];var e=+t[0],n=+t[1];if(!(e>=0&&n>=0))throw new Error("invalid size");return r=e,i=n,m()},h.cellSize=function(t){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(t)/Math.LN2),m()},h.thresholds=function(t){return arguments.length?(f="function"==typeof t?t:Array.isArray(t)?gu(pu.call(t)):gu(t),h):f},h.bandwidth=function(t){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return o=(Math.sqrt(4*t*t+1)-1)/2,m()},h}const Nu=134217729,Cu=33306690738754706e-32;function Ru(t,e,n,r,i){let o,a,u,c,s=e[0],f=r[0],l=0,h=0;f>s==f>-s?(o=s,s=e[++l]):(o=f,f=r[++h]);let d=0;if(ls==f>-s?(a=s+o,u=o-(a-s),s=e[++l]):(a=f+o,u=o-(a-f),f=r[++h]),o=a,0!==u&&(i[d++]=u);ls==f>-s?(a=o+s,c=a-o,u=o-(a-c)+(s-c),s=e[++l]):(a=o+f,c=a-o,u=o-(a-c)+(f-c),f=r[++h]),o=a,0!==u&&(i[d++]=u);for(;l0!=u>0)return c;const s=Math.abs(a+u);return Math.abs(c)>=Ou*s?c:-function(t,e,n,r,i,o,a){let u,c,s,f,l,h,d,p,y,g,m,v,b,x,w,_,A,E;const M=t-i,B=n-i,T=e-o,k=r-o;x=M*k,h=Nu*M,d=h-(h-M),p=M-d,h=Nu*k,y=h-(h-k),g=k-y,w=p*g-(x-d*y-p*y-d*g),_=T*B,h=Nu*T,d=h-(h-T),p=T-d,h=Nu*B,y=h-(h-B),g=B-y,A=p*g-(_-d*y-p*y-d*g),m=w-A,l=w-m,Lu[0]=w-(m+l)+(l-A),v=x+m,l=v-x,b=x-(v-l)+(m-l),m=b-_,l=b-m,Lu[1]=b-(m+l)+(l-_),E=v+m,l=E-v,Lu[2]=v-(E-l)+(m-l),Lu[3]=E;let F=function(t,e){let n=e[0];for(let t=1;t<4;t++)n+=e[t];return n}(0,Lu),S=Pu*a;if(F>=S||-F>=S)return F;if(l=t-M,u=t-(M+l)+(l-i),l=n-B,s=n-(B+l)+(l-i),l=e-T,c=e-(T+l)+(l-o),l=r-k,f=r-(k+l)+(l-o),0===u&&0===c&&0===s&&0===f)return F;if(S=Du*a+Cu*Math.abs(F),F+=M*f+k*u-(T*s+B*c),F>=S||-F>=S)return F;x=u*k,h=Nu*u,d=h-(h-u),p=u-d,h=Nu*k,y=h-(h-k),g=k-y,w=p*g-(x-d*y-p*y-d*g),_=c*B,h=Nu*c,d=h-(h-c),p=c-d,h=Nu*B,y=h-(h-B),g=B-y,A=p*g-(_-d*y-p*y-d*g),m=w-A,l=w-m,$u[0]=w-(m+l)+(l-A),v=x+m,l=v-x,b=x-(v-l)+(m-l),m=b-_,l=b-m,$u[1]=b-(m+l)+(l-_),E=v+m,l=E-v,$u[2]=v-(E-l)+(m-l),$u[3]=E;const N=Ru(4,Lu,4,$u,Uu);x=M*f,h=Nu*M,d=h-(h-M),p=M-d,h=Nu*f,y=h-(h-f),g=f-y,w=p*g-(x-d*y-p*y-d*g),_=T*s,h=Nu*T,d=h-(h-T),p=T-d,h=Nu*s,y=h-(h-s),g=s-y,A=p*g-(_-d*y-p*y-d*g),m=w-A,l=w-m,$u[0]=w-(m+l)+(l-A),v=x+m,l=v-x,b=x-(v-l)+(m-l),m=b-_,l=b-m,$u[1]=b-(m+l)+(l-_),E=v+m,l=E-v,$u[2]=v-(E-l)+(m-l),$u[3]=E;const C=Ru(N,Uu,4,$u,ju);x=u*f,h=Nu*u,d=h-(h-u),p=u-d,h=Nu*f,y=h-(h-f),g=f-y,w=p*g-(x-d*y-p*y-d*g),_=c*s,h=Nu*c,d=h-(h-c),p=c-d,h=Nu*s,y=h-(h-s),g=s-y,A=p*g-(_-d*y-p*y-d*g),m=w-A,l=w-m,$u[0]=w-(m+l)+(l-A),v=x+m,l=v-x,b=x-(v-l)+(m-l),m=b-_,l=b-m,$u[1]=b-(m+l)+(l-_),E=v+m,l=E-v,$u[2]=v-(E-l)+(m-l),$u[3]=E;const R=Ru(C,ju,4,$u,zu);return zu[R-1]}(t,e,n,r,i,o,s)}Iu(4),Iu(4),Iu(4),Iu(4),Iu(4),Iu(4),Iu(4),Iu(4),Iu(4),Iu(8),Iu(8),Iu(8),Iu(4),Iu(8),Iu(8),Iu(8),Iu(12),Iu(192),Iu(192),Iu(4),Iu(4),Iu(4),Iu(4),Iu(4),Iu(4),Iu(4),Iu(4),Iu(8),Iu(8),Iu(8),Iu(8),Iu(8),Iu(8),Iu(8),Iu(8),Iu(8),Iu(4),Iu(4),Iu(4),Iu(8),Iu(16),Iu(16),Iu(16),Iu(32),Iu(32),Iu(48),Iu(64),Iu(1152),Iu(1152),Iu(4),Iu(4),Iu(4),Iu(4),Iu(4),Iu(4),Iu(4),Iu(4),Iu(4),Iu(4),Iu(24),Iu(24),Iu(24),Iu(24),Iu(24),Iu(24),Iu(24),Iu(24),Iu(24),Iu(24),Iu(1152),Iu(1152),Iu(1152),Iu(1152),Iu(1152),Iu(2304),Iu(2304),Iu(3456),Iu(5760),Iu(8),Iu(8),Iu(8),Iu(16),Iu(24),Iu(48),Iu(48),Iu(96),Iu(192),Iu(384),Iu(384),Iu(384),Iu(768),Iu(96),Iu(96),Iu(96),Iu(1152);const qu=Math.pow(2,-52),Yu=new Uint32Array(512);class Gu{static from(t,e=Ku,n=Qu){const r=t.length,i=new Float64Array(2*r);for(let o=0;o>1;if(e>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const n=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.update()}update(){const{coords:t,_hullPrev:e,_hullNext:n,_hullTri:r,_hullHash:i}=this,o=t.length>>1;let a=1/0,u=1/0,c=-1/0,s=-1/0;for(let e=0;ec&&(c=n),r>s&&(s=r),this._ids[e]=e}const f=(a+c)/2,l=(u+s)/2;let h,d,p,y=1/0;for(let e=0;e0&&(d=e,y=n)}let v=t[2*d],b=t[2*d+1],x=1/0;for(let e=0;er&&(e[n++]=i,r=this._dists[i])}return this.hull=e.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(Hu(g,m,v,b,w,_)<0){const t=d,e=v,n=b;d=p,v=w,b=_,p=t,w=e,_=n}const A=function(t,e,n,r,i,o){const a=n-t,u=r-e,c=i-t,s=o-e,f=a*a+u*u,l=c*c+s*s,h=.5/(a*s-u*c);return{x:t+(s*f-u*l)*h,y:e+(a*l-c*f)*h}}(g,m,v,b,w,_);this._cx=A.x,this._cy=A.y;for(let e=0;e0&&Math.abs(s-o)<=qu&&Math.abs(f-a)<=qu)continue;if(o=s,a=f,c===h||c===d||c===p)continue;let l=0;for(let t=0,e=this._hashKey(s,f);t=0;)if(g=y,g===l){g=-1;break}if(-1===g)continue;let m=this._addTriangle(g,c,n[g],-1,-1,r[g]);r[c]=this._legalize(m+2),r[g]=m,E++;let v=n[g];for(;y=n[v],Hu(s,f,t[2*v],t[2*v+1],t[2*y],t[2*y+1])<0;)m=this._addTriangle(v,c,y,r[c],-1,r[v]),r[c]=this._legalize(m+2),n[v]=v,E--,v=y;if(g===l)for(;y=e[g],Hu(s,f,t[2*y],t[2*y+1],t[2*g],t[2*g+1])<0;)m=this._addTriangle(y,c,g,-1,r[g],r[y]),this._legalize(m+2),r[y]=m,n[g]=g,E--,g=y;this._hullStart=e[c]=g,n[g]=e[v]=c,n[c]=v,i[this._hashKey(s,f)]=c,i[this._hashKey(t[2*g],t[2*g+1])]=g}this.hull=new Uint32Array(E);for(let t=0,e=this._hullStart;t0?3-n:1+n)/4}(t-this._cx,e-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:e,_halfedges:n,coords:r}=this;let i=0,o=0;for(;;){const a=n[t],u=t-t%3;if(o=u+(t+2)%3,-1===a){if(0===i)break;t=Yu[--i];continue}const c=a-a%3,s=u+(t+1)%3,f=c+(a+2)%3,l=e[o],h=e[t],d=e[s],p=e[f];if(Wu(r[2*l],r[2*l+1],r[2*h],r[2*h+1],r[2*d],r[2*d+1],r[2*p],r[2*p+1])){e[t]=p,e[a]=l;const r=n[f];if(-1===r){let e=this._hullStart;do{if(this._hullTri[e]===f){this._hullTri[e]=t;break}e=this._hullPrev[e]}while(e!==this._hullStart)}this._link(t,r),this._link(a,n[o]),this._link(o,f);const u=c+(a+1)%3;i=n&&e[t[a]]>o;)t[a+1]=t[a--];t[a+1]=r}else{let i=n+1,o=r;Zu(t,n+r>>1,i),e[t[n]]>e[t[r]]&&Zu(t,n,r),e[t[i]]>e[t[r]]&&Zu(t,i,r),e[t[n]]>e[t[i]]&&Zu(t,n,i);const a=t[i],u=e[a];for(;;){do{i++}while(e[t[i]]u);if(o=o-n?(Ju(t,e,i,r),Ju(t,e,n,o-1)):(Ju(t,e,n,o-1),Ju(t,e,i,r))}}function Zu(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function Ku(t){return t[0]}function Qu(t){return t[1]}const tc=1e-6;class ec{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,e){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,e){this._+=`L${this._x1=+t},${this._y1=+e}`}arc(t,e,n){const r=(t=+t)+(n=+n),i=e=+e;if(n<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>tc||Math.abs(this._y1-i)>tc)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${t-n},${e}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(t,e,n,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class nc{constructor(){this._=[]}moveTo(t,e){this._.push([t,e])}closePath(){this._.push(this._[0].slice())}lineTo(t,e){this._.push([t,e])}value(){return this._.length?this._:null}}class rc{constructor(t,[e,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(e=+e)&&(i=+i)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=r,this.xmin=e,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:e,triangles:n},vectors:r}=this,i=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let e,r,o=0,a=0,u=n.length;o1;)i-=2;for(let t=2;t4)for(let t=0;t0){if(e>=this.ymax)return null;(i=(this.ymax-e)/r)0){if(t>=this.xmax)return null;(i=(this.xmax-t)/n)this.xmax?2:0)|(ethis.ymax?8:0)}}const ic=2*Math.PI,oc=Math.pow;function ac(t){return t[0]}function uc(t){return t[1]}function cc(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}class sc{static from(t,e=ac,n=uc,r){return new sc("length"in t?function(t,e,n,r){const i=t.length,o=new Float64Array(2*i);for(let a=0;a2&&function(t){const{triangles:e,coords:n}=t;for(let t=0;t1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:e.length/2},((t,e)=>e)).sort(((t,n)=>e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]));const t=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[e[2*t],e[2*t+1],e[2*n],e[2*n+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let t=0,n=e.length/2;t0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],o[r[0]]=1,2===r.length&&(o[r[1]]=0,this.triangles[1]=r[1],this.triangles[2]=r[1]))}voronoi(t){return new rc(this,t)}*neighbors(t){const{inedges:e,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){const e=a.indexOf(t);return e>0&&(yield a[e-1]),void(e=0&&i!==n&&i!==r;)n=i;return i}_step(t,e,n){const{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:u,points:c}=this;if(-1===r[t]||!c.length)return(t+1)%(c.length>>1);let s=t,f=oc(e-c[2*t],2)+oc(n-c[2*t+1],2);const l=r[t];let h=l;do{let r=u[h];const l=oc(e-c[2*r],2)+oc(n-c[2*r+1],2);if(l()=>t;function lc(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:a,y:u,dx:c,dy:s,dispatch:f}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:s,enumerable:!0,configurable:!0},_:{value:f}})}function hc(t){return!t.ctrlKey&&!t.button}function dc(){return this.parentNode}function pc(t,e){return null==e?{x:t.x,y:t.y}:e}function yc(){return navigator.maxTouchPoints||"ontouchstart"in this}function gc(){var t,e,n,r,i=hc,o=dc,a=pc,u=yc,c={},s=Pe("start","drag","end"),f=0,l=0;function h(t){t.on("mousedown.drag",d).filter(u).on("touchstart.drag",g).on("touchmove.drag",m,Kn).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(a,u){if(!r&&i.call(this,a,u)){var c=b(this,o.call(this,a,u),a,u,"mouse");c&&(Zn(a.view).on("mousemove.drag",p,Qn).on("mouseup.drag",y,Qn),nr(a.view),tr(a),n=!1,t=a.clientX,e=a.clientY,c("start",a))}}function p(r){if(er(r),!n){var i=r.clientX-t,o=r.clientY-e;n=i*i+o*o>l}c.mouse("drag",r)}function y(t){Zn(t.view).on("mousemove.drag mouseup.drag",null),rr(t.view,n),er(t),c.mouse("end",t)}function g(t,e){if(i.call(this,t,e)){var n,r,a=t.changedTouches,u=o.call(this,t,e),c=a.length;for(n=0;n=o?c=!0:(r=t.charCodeAt(a++))===xc?s=!0:r===wc&&(s=!0,t.charCodeAt(a)===xc&&++a),t.slice(i+1,e-1).replace(/""/g,'"')}for(;a9999?"+"+Ec(t,6):Ec(t,4)}(t.getUTCFullYear())+"-"+Ec(t.getUTCMonth()+1,2)+"-"+Ec(t.getUTCDate(),2)+(i?"T"+Ec(e,2)+":"+Ec(n,2)+":"+Ec(r,2)+"."+Ec(i,3)+"Z":r?"T"+Ec(e,2)+":"+Ec(n,2)+":"+Ec(r,2)+"Z":n||e?"T"+Ec(e,2)+":"+Ec(n,2)+"Z":"")}(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,i,o=r(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?function(t,e){var n=_c(t);return function(r,i){return e(n(r),i,t)}}(t,e):_c(t)}));return o.columns=i||[],o},parseRows:r,format:function(e,n){return null==n&&(n=Ac(e)),[n.map(a).join(t)].concat(i(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=Ac(t)),i(t,e).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:a}}var Bc=Mc(","),Tc=Bc.parse,kc=Bc.parseRows,Fc=Bc.format,Sc=Bc.formatBody,Nc=Bc.formatRows,Cc=Bc.formatRow,Rc=Bc.formatValue,Ic=Mc("\t"),Oc=Ic.parse,Pc=Ic.parseRows,Dc=Ic.format,Lc=Ic.formatBody,Uc=Ic.formatRows,jc=Ic.formatRow,zc=Ic.formatValue;function $c(t){for(var e in t){var n,r,i=t[e].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Hc&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;t[e]=i}return t}const Hc=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),qc=t=>+t;function Yc(t){return t*t}function Gc(t){return t*(2-t)}function Vc(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var Wc=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),Xc=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),Jc=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Zc=Math.PI,Kc=Zc/2;function Qc(t){return 1==+t?1:1-Math.cos(t*Kc)}function ts(t){return Math.sin(t*Kc)}function es(t){return(1-Math.cos(Zc*t))/2}function ns(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function rs(t){return ns(1-+t)}function is(t){return 1-ns(t)}function os(t){return((t*=2)<=1?ns(1-t):2-ns(t-1))/2}function as(t){return 1-Math.sqrt(1-t*t)}function us(t){return Math.sqrt(1- --t*t)}function cs(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var ss=4/11,fs=6/11,ls=8/11,hs=3/4,ds=9/11,ps=10/11,ys=15/16,gs=21/22,ms=63/64,vs=1/ss/ss;function bs(t){return 1-xs(1-t)}function xs(t){return(t=+t)Os(e,n).then((e=>(new DOMParser).parseFromString(e,t)))}const qs=Hs("application/xml");var Ys=Hs("text/html"),Gs=Hs("image/svg+xml");function Vs(t,e){var n,r=1;function i(){var i,o,a=n.length,u=0,c=0;for(i=0;i=(o=(y+m)/2))?y=o:m=o,(f=n>=(a=(g+v)/2))?g=a:v=a,i=d,!(d=d[l=f<<1|s]))return i[l]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),e===u&&n===c)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(s=e>=(o=(y+m)/2))?y=o:m=o,(f=n>=(a=(g+v)/2))?g=a:v=a}while((l=f<<1|s)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[l]=p,t}function Xs(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function Js(t){return t[0]}function Zs(t){return t[1]}function Ks(t,e,n){var r=new Qs(null==e?Js:e,null==n?Zs:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Qs(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function tf(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var ef=Ks.prototype=Qs.prototype;function nf(t){return function(){return t}}function rf(t){return 1e-6*(t()-.5)}function of(t){return t.x+t.vx}function af(t){return t.y+t.vy}function uf(t){var e,n,r,i=1,o=1;function a(){for(var t,a,c,s,f,l,h,d=e.length,p=0;ps+p||of+p||ac.index){var y=s-u.x-u.vx,g=f-u.y-u.vy,m=y*y+g*g;mt.r&&(t.r=t[e].r)}function c(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;r[u(t,e,r),t])));for(a=0,i=new Array(s);af&&(f=r),il&&(l=i));if(c>f||s>l)return this;for(this.cover(c,s).cover(f,l),n=0;nt||t>=i||r>e||e>=o;)switch(u=(eh||(o=c.y0)>d||(a=c.x1)=m)<<1|t>=g)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-s],p[p.length-1-s]=c)}else{var v=t-+this._x.call(null,y.data),b=e-+this._y.call(null,y.data),x=v*v+b*b;if(x=(u=(p+g)/2))?p=u:g=u,(f=a>=(c=(y+m)/2))?y=c:m=c,e=d,!(d=d[l=f<<1|s]))return this;if(!d.length)break;(e[l+1&3]||e[l+2&3]||e[l+3&3])&&(n=e,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[l]=i:delete e[l],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)},ef.removeAll=function(t){for(var e=0,n=t.length;e(t=(lf*t+hf)%df)/df}();function l(){h(),s.call("tick",e),n1?(null==n?u.delete(t):u.set(t,p(n)),e):u.get(t)},find:function(e,n,r){var i,o,a,u,c,s=0,f=t.length;for(null==r?r=1/0:r*=r,s=0;s1?(s.on(t,n),e):s.on(t)}}}function bf(){var t,e,n,r,i,o=nf(-30),a=1,u=1/0,c=.81;function s(n){var i,o=t.length,a=Ks(t,pf,yf).visitAfter(l);for(r=n,i=0;i=u)){(t.data!==e||t.next)&&(0===l&&(p+=(l=rf(n))*l),0===h&&(p+=(h=rf(n))*h),p1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Ef(t){return(t=Af(Math.abs(t)))?t[1]:NaN}var Mf,Bf=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Tf(t){if(!(e=Bf.exec(t)))throw new Error("invalid format: "+t);var e;return new kf({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function kf(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ff(t,e){var n=Af(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Tf.prototype=kf.prototype,kf.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};const Sf={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Ff(100*t,e),r:Ff,s:function(t,e){var n=Af(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Mf=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Af(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Nf(t){return t}var Cf,Rf,If,Of=Array.prototype.map,Pf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Df(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Nf:(e=Of.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Nf:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Of.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"−":t.minus+"",f=void 0===t.nan?"NaN":t.nan+"";function l(t){var e=(t=Tf(t)).fill,n=t.align,l=t.sign,h=t.symbol,d=t.zero,p=t.width,y=t.comma,g=t.precision,m=t.trim,v=t.type;"n"===v?(y=!0,v="g"):Sf[v]||(void 0===g&&(g=12),m=!0,v="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",x="$"===h?o:/[%p]/.test(v)?c:"",w=Sf[v],_=/[defgprs%]/.test(v);function A(t){var i,o,c,h=b,A=x;if("c"===v)A=w(t)+A,t="";else{var E=(t=+t)<0||1/t<0;if(t=isNaN(t)?f:w(Math.abs(t),g),m&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),E&&0==+t&&"+"!==l&&(E=!1),h=(E?"("===l?l:s:"-"===l||"("===l?"":l)+h,A=("s"===v?Pf[8+Mf/3]:"")+A+(E&&"("===l?")":""),_)for(i=-1,o=t.length;++i(c=t.charCodeAt(i))||c>57){A=(46===c?a+t.slice(i+1):t.slice(i))+A,t=t.slice(0,i);break}}y&&!d&&(t=r(t,1/0));var M=h.length+t.length+A.length,B=M>1)+h+t+A+B.slice(M);break;default:t=B+h+t+A}return u(t)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),A.toString=function(){return t+""},A}return{format:l,formatPrefix:function(t,e){var n=l(((t=Tf(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Ef(e)/3))),i=Math.pow(10,-r),o=Pf[8+r/3];return function(t){return n(i*t)+o}}}}function Lf(t){return Cf=Df(t),Rf=Cf.format,If=Cf.formatPrefix,Cf}function Uf(t){return Math.max(0,-Ef(Math.abs(t)))}function jf(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ef(e)/3)))-Ef(Math.abs(t)))}function zf(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ef(e)-Ef(t))+1}Lf({thousands:",",grouping:[3],currency:["$",""]});var $f=1e-6,Hf=1e-12,qf=Math.PI,Yf=qf/2,Gf=qf/4,Vf=2*qf,Wf=180/qf,Xf=qf/180,Jf=Math.abs,Zf=Math.atan,Kf=Math.atan2,Qf=Math.cos,tl=Math.ceil,el=Math.exp,nl=(Math.floor,Math.hypot),rl=Math.log,il=Math.pow,ol=Math.sin,al=Math.sign||function(t){return t>0?1:t<0?-1:0},ul=Math.sqrt,cl=Math.tan;function sl(t){return t>1?0:t<-1?qf:Math.acos(t)}function fl(t){return t>1?Yf:t<-1?-Yf:Math.asin(t)}function ll(t){return(t=ol(t/2))*t}function hl(){}function dl(t,e){t&&yl.hasOwnProperty(t.type)&&yl[t.type](t,e)}var pl={Feature:function(t,e){dl(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,o=Qf(e=(e*=Xf)/2+Gf),a=ol(e),u=Al*a,c=_l*o+u*Qf(i),s=u*r*ol(i);Ol.add(Kf(s,c)),wl=t,_l=o,Al=a}function $l(t){return Pl=new U,vl(t,Dl),2*Pl}function Hl(t){return[Kf(t[1],t[0]),fl(t[2])]}function ql(t){var e=t[0],n=t[1],r=Qf(n);return[r*Qf(e),r*ol(e),ol(n)]}function Yl(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Gl(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Vl(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Wl(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Xl(t){var e=ul(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var Jl,Zl,Kl,Ql,th,eh,nh,rh,ih,oh,ah,uh,ch,sh,fh,lh,hh={point:dh,lineStart:yh,lineEnd:gh,polygonStart:function(){hh.point=mh,hh.lineStart=vh,hh.lineEnd=bh,Cl=new U,Dl.polygonStart()},polygonEnd:function(){Dl.polygonEnd(),hh.point=dh,hh.lineStart=yh,hh.lineEnd=gh,Ol<0?(El=-(Bl=180),Ml=-(Tl=90)):Cl>$f?Tl=90:Cl<-$f&&(Ml=-90),Il[0]=El,Il[1]=Bl},sphere:function(){El=-(Bl=180),Ml=-(Tl=90)}};function dh(t,e){Rl.push(Il=[El=t,Bl=t]),eTl&&(Tl=e)}function ph(t,e){var n=ql([t*Xf,e*Xf]);if(Nl){var r=Gl(Nl,n),i=Gl([r[1],-r[0],0],r);Xl(i),i=Hl(i);var o,a=t-kl,u=a>0?1:-1,c=i[0]*Wf*u,s=Jf(a)>180;s^(u*klTl&&(Tl=o):s^(u*kl<(c=(c+360)%360-180)&&cTl&&(Tl=e)),s?txh(El,Bl)&&(Bl=t):xh(t,Bl)>xh(El,Bl)&&(El=t):Bl>=El?(tBl&&(Bl=t)):t>kl?xh(El,t)>xh(El,Bl)&&(Bl=t):xh(t,Bl)>xh(El,Bl)&&(El=t)}else Rl.push(Il=[El=t,Bl=t]);eTl&&(Tl=e),Nl=n,kl=t}function yh(){hh.point=ph}function gh(){Il[0]=El,Il[1]=Bl,hh.point=dh,Nl=null}function mh(t,e){if(Nl){var n=t-kl;Cl.add(Jf(n)>180?n+(n>0?360:-360):n)}else Fl=t,Sl=e;Dl.point(t,e),ph(t,e)}function vh(){Dl.lineStart()}function bh(){mh(Fl,Sl),Dl.lineEnd(),Jf(Cl)>$f&&(El=-(Bl=180)),Il[0]=El,Il[1]=Bl,Nl=null}function xh(t,e){return(e-=t)<0?e+360:e}function wh(t,e){return t[0]-e[0]}function _h(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:exh(r[0],r[1])&&(r[1]=i[1]),xh(i[0],r[1])>xh(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(u=xh(r[1],i[0]))>a&&(a=u,El=i[0],Bl=r[1])}return Rl=Il=null,El===1/0||Ml===1/0?[[NaN,NaN],[NaN,NaN]]:[[El,Ml],[Bl,Tl]]}var Eh={sphere:hl,point:Mh,lineStart:Th,lineEnd:Sh,polygonStart:function(){Eh.lineStart=Nh,Eh.lineEnd=Ch},polygonEnd:function(){Eh.lineStart=Th,Eh.lineEnd=Sh}};function Mh(t,e){t*=Xf;var n=Qf(e*=Xf);Bh(n*Qf(t),n*ol(t),ol(e))}function Bh(t,e,n){++Jl,Kl+=(t-Kl)/Jl,Ql+=(e-Ql)/Jl,th+=(n-th)/Jl}function Th(){Eh.point=kh}function kh(t,e){t*=Xf;var n=Qf(e*=Xf);sh=n*Qf(t),fh=n*ol(t),lh=ol(e),Eh.point=Fh,Bh(sh,fh,lh)}function Fh(t,e){t*=Xf;var n=Qf(e*=Xf),r=n*Qf(t),i=n*ol(t),o=ol(e),a=Kf(ul((a=fh*o-lh*i)*a+(a=lh*r-sh*o)*a+(a=sh*i-fh*r)*a),sh*r+fh*i+lh*o);Zl+=a,eh+=a*(sh+(sh=r)),nh+=a*(fh+(fh=i)),rh+=a*(lh+(lh=o)),Bh(sh,fh,lh)}function Sh(){Eh.point=Mh}function Nh(){Eh.point=Rh}function Ch(){Ih(uh,ch),Eh.point=Mh}function Rh(t,e){uh=t,ch=e,t*=Xf,e*=Xf,Eh.point=Ih;var n=Qf(e);sh=n*Qf(t),fh=n*ol(t),lh=ol(e),Bh(sh,fh,lh)}function Ih(t,e){t*=Xf;var n=Qf(e*=Xf),r=n*Qf(t),i=n*ol(t),o=ol(e),a=fh*o-lh*i,u=lh*r-sh*o,c=sh*i-fh*r,s=nl(a,u,c),f=fl(s),l=s&&-f/s;ih.add(l*a),oh.add(l*u),ah.add(l*c),Zl+=f,eh+=f*(sh+(sh=r)),nh+=f*(fh+(fh=i)),rh+=f*(lh+(lh=o)),Bh(sh,fh,lh)}function Oh(t){Jl=Zl=Kl=Ql=th=eh=nh=rh=0,ih=new U,oh=new U,ah=new U,vl(t,Eh);var e=+ih,n=+oh,r=+ah,i=nl(e,n,r);return iqf?t+Math.round(-t/Vf)*Vf:t,e]}function Uh(t,e,n){return(t%=Vf)?e||n?Dh(zh(t),$h(e,n)):zh(t):e||n?$h(e,n):Lh}function jh(t){return function(e,n){return[(e+=t)>qf?e-Vf:e<-qf?e+Vf:e,n]}}function zh(t){var e=jh(t);return e.invert=jh(-t),e}function $h(t,e){var n=Qf(t),r=ol(t),i=Qf(e),o=ol(e);function a(t,e){var a=Qf(e),u=Qf(t)*a,c=ol(t)*a,s=ol(e),f=s*n+u*r;return[Kf(c*i-f*o,u*n-s*r),fl(f*i+c*o)]}return a.invert=function(t,e){var a=Qf(e),u=Qf(t)*a,c=ol(t)*a,s=ol(e),f=s*i-c*o;return[Kf(c*i+s*o,u*n+f*r),fl(f*n-u*r)]},a}function Hh(t){function e(e){return(e=t(e[0]*Xf,e[1]*Xf))[0]*=Wf,e[1]*=Wf,e}return t=Uh(t[0]*Xf,t[1]*Xf,t.length>2?t[2]*Xf:0),e.invert=function(e){return(e=t.invert(e[0]*Xf,e[1]*Xf))[0]*=Wf,e[1]*=Wf,e},e}function qh(t,e,n,r,i,o){if(n){var a=Qf(e),u=ol(e),c=r*n;null==i?(i=e+r*Vf,o=e-c/2):(i=Yh(a,i),o=Yh(a,o),(r>0?io)&&(i+=r*Vf));for(var s,f=i;r>0?f>o:f1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Wh(t,e){return Jf(t[0]-e[0])<$f&&Jf(t[1]-e[1])<$f}function Xh(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Jh(t,e,n,r,i){var o,a,u=[],c=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],a=t[e];if(Wh(r,a)){if(!r[2]&&!a[2]){for(i.lineStart(),o=0;o=0;--o)i.point((f=s[o])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}s=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function Zh(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,B=M*E,T=B>qf,k=g*_;if(c.add(Kf(k*M*ol(B),m*A+k*Qf(B))),a+=T?E+M*Vf:E,T^p>=n^x>=n){var F=Gl(ql(d),ql(b));Xl(F);var S=Gl(o,F);Xl(S);var N=(T^E>=0?-1:1)*fl(S[2]);(r>N||r===N&&(F[0]||F[1]))&&(u+=T^E>=0?1:-1)}}return(a<-$f||a<$f&&c<-Hf)^1&u}function td(t,e,n,r){return function(i){var o,a,u,c=e(i),s=Vh(),f=e(s),l=!1,h={point:d,lineStart:y,lineEnd:g,polygonStart:function(){h.point=m,h.lineStart=v,h.lineEnd=b,a=[],o=[]},polygonEnd:function(){h.point=d,h.lineStart=y,h.lineEnd=g,a=Ut(a);var t=Qh(o,r);a.length?(l||(i.polygonStart(),l=!0),Jh(a,nd,t,n,i)):t&&(l||(i.polygonStart(),l=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(e,n){t(e,n)&&i.point(e,n)}function p(t,e){c.point(t,e)}function y(){h.point=p,c.lineStart()}function g(){h.point=d,c.lineEnd()}function m(t,e){u.push([t,e]),f.point(t,e)}function v(){f.lineStart(),u=[]}function b(){m(u[0][0],u[0][1]),f.lineEnd();var t,e,n,r,c=f.clean(),h=s.result(),d=h.length;if(u.pop(),o.push(u),u=null,d)if(1&c){if((e=(n=h[0]).length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),t=0;t1&&2&c&&h.push(h.pop().concat(h.shift())),a.push(h.filter(ed))}return h}}function ed(t){return t.length>1}function nd(t,e){return((t=t.x)[0]<0?t[1]-Yf-$f:Yf-t[1])-((e=e.x)[0]<0?e[1]-Yf-$f:Yf-e[1])}Lh.invert=Lh;const rd=td((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var u=o>0?qf:-qf,c=Jf(o-n);Jf(c-qf)<$f?(t.point(n,r=(r+a)/2>0?Yf:-Yf),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),e=0):i!==u&&c>=qf&&(Jf(n-i)<$f&&(n-=i*$f),Jf(o-u)<$f&&(o-=u*$f),r=function(t,e,n,r){var i,o,a=ol(t-n);return Jf(a)>$f?Zf((ol(e)*(o=Qf(r))*ol(n)-ol(r)*(i=Qf(e))*ol(t))/(i*o*a)):(e+r)/2}(n,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=o,r=a),i=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*Yf,r.point(-qf,i),r.point(0,i),r.point(qf,i),r.point(qf,0),r.point(qf,-i),r.point(0,-i),r.point(-qf,-i),r.point(-qf,0),r.point(-qf,i);else if(Jf(t[0]-e[0])>$f){var o=t[0]0,i=Jf(e)>$f;function o(t,n){return Qf(t)*Qf(n)>e}function a(t,n,r){var i=[1,0,0],o=Gl(ql(t),ql(n)),a=Yl(o,o),u=o[0],c=a-u*u;if(!c)return!r&&t;var s=e*a/c,f=-e*u/c,l=Gl(i,o),h=Wl(i,s);Vl(h,Wl(o,f));var d=l,p=Yl(h,d),y=Yl(d,d),g=p*p-y*(Yl(h,h)-1);if(!(g<0)){var m=ul(g),v=Wl(d,(-p-m)/y);if(Vl(v,h),v=Hl(v),!r)return v;var b,x=t[0],w=n[0],_=t[1],A=n[1];w0^v[1]<(Jf(v[0]-x)<$f?_:A):_<=v[1]&&v[1]<=A:E>qf^(x<=v[0]&&v[0]<=w)){var B=Wl(d,(-p+m)/y);return Vl(B,h),[v,Hl(B)]}}}function u(e,n){var i=r?t:qf-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return td(o,(function(t){var e,n,c,s,f;return{lineStart:function(){s=c=!1,f=1},point:function(l,h){var d,p=[l,h],y=o(l,h),g=r?y?0:u(l,h):y?u(l+(l<0?qf:-qf),h):0;if(!e&&(s=c=y)&&t.lineStart(),y!==c&&(!(d=a(e,p))||Wh(e,d)||Wh(p,d))&&(p[2]=1),y!==c)f=0,y?(t.lineStart(),d=a(p,e),t.point(d[0],d[1])):(d=a(e,p),t.point(d[0],d[1],2),t.lineEnd()),e=d;else if(i&&e&&r^y){var m;g&n||!(m=a(p,e,!0))||(f=0,r?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1],3)))}!y||e&&Wh(e,p)||t.point(p[0],p[1]),e=p,c=y,n=g},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return f|(s&&c)<<1}}}),(function(e,r,i,o){qh(o,t,n,i,e,r)}),r?[0,-t]:[-qf,t-qf])}var od,ad,ud,cd,sd=1e9,fd=-sd;function ld(t,e,n,r){function i(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function o(i,o,u,s){var f=0,l=0;if(null==i||(f=a(i,u))!==(l=a(o,u))||c(i,o)<0^u>0)do{s.point(0===f||3===f?t:n,f>1?r:e)}while((f=(f+u+4)%4)!==l);else s.point(o[0],o[1])}function a(r,i){return Jf(r[0]-t)<$f?i>0?0:3:Jf(r[0]-n)<$f?i>0?2:1:Jf(r[1]-e)<$f?i>0?1:0:i>0?3:2}function u(t,e){return c(t.x,e.x)}function c(t,e){var n=a(t,1),r=a(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var c,s,f,l,h,d,p,y,g,m,v,b=a,x=Vh(),w={point:_,lineStart:function(){w.point=A,s&&s.push(f=[]),m=!0,g=!1,p=y=NaN},lineEnd:function(){c&&(A(l,h),d&&g&&x.rejoin(),c.push(x.result())),w.point=_,g&&b.lineEnd()},polygonStart:function(){b=x,c=[],s=[],v=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=s.length;nr&&(h-o)*(r-a)>(d-a)*(t-o)&&++e:d<=r&&(h-o)*(r-a)<(d-a)*(t-o)&&--e;return e}(),n=v&&e,i=(c=Ut(c)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&Jh(c,u,e,o,a),a.polygonEnd()),b=a,c=s=f=null}};function _(t,e){i(t,e)&&b.point(t,e)}function A(o,a){var u=i(o,a);if(s&&f.push([o,a]),m)l=o,h=a,d=u,m=!1,u&&(b.lineStart(),b.point(o,a));else if(u&&g)b.point(o,a);else{var c=[p=Math.max(fd,Math.min(sd,p)),y=Math.max(fd,Math.min(sd,y))],x=[o=Math.max(fd,Math.min(sd,o)),a=Math.max(fd,Math.min(sd,a))];!function(t,e,n,r,i,o){var a,u=t[0],c=t[1],s=0,f=1,l=e[0]-u,h=e[1]-c;if(a=n-u,l||!(a>0)){if(a/=l,l<0){if(a0){if(a>f)return;a>s&&(s=a)}if(a=i-u,l||!(a<0)){if(a/=l,l<0){if(a>f)return;a>s&&(s=a)}else if(l>0){if(a0)){if(a/=h,h<0){if(a0){if(a>f)return;a>s&&(s=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>s&&(s=a)}else if(h>0){if(a0&&(t[0]=u+s*l,t[1]=c+s*h),f<1&&(e[0]=u+f*l,e[1]=c+f*h),!0}}}}}(c,x,t,e,n,r)?u&&(b.lineStart(),b.point(o,a),v=!1):(g||(b.lineStart(),b.point(c[0],c[1])),b.point(x[0],x[1]),u||b.lineEnd(),v=!1)}p=o,y=a,g=u}return w}}function hd(){var t,e,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=ld(r,i,o,a)(e=n)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],o=+u[1][0],a=+u[1][1],t=e=null,n):[[r,i],[o,a]]}}}var dd={sphere:hl,point:hl,lineStart:function(){dd.point=yd,dd.lineEnd=pd},lineEnd:hl,polygonStart:hl,polygonEnd:hl};function pd(){dd.point=dd.lineEnd=hl}function yd(t,e){ad=t*=Xf,ud=ol(e*=Xf),cd=Qf(e),dd.point=gd}function gd(t,e){t*=Xf;var n=ol(e*=Xf),r=Qf(e),i=Jf(t-ad),o=Qf(i),a=r*ol(i),u=cd*n-ud*r*o,c=ud*n+cd*r*o;od.add(Kf(ul(a*a+u*u),c)),ad=t,ud=n,cd=r}function md(t){return od=new U,vl(t,dd),+od}var vd=[null,null],bd={type:"LineString",coordinates:vd};function xd(t,e){return vd[0]=t,vd[1]=e,md(bd)}var wd={Feature:function(t,e){return Ad(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r0&&(i=xd(t[o],t[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))$f})).map(c)).concat(Ht(tl(o/d)*d,i,d).filter((function(t){return Jf(t%y)>$f})).map(s))}return m.lines=function(){return v().map((function(t){return{type:"LineString",coordinates:t}}))},m.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(l(a).slice(1),f(n).reverse().slice(1),l(u).reverse().slice(1))]}},m.extent=function(t){return arguments.length?m.extentMajor(t).extentMinor(t):m.extentMinor()},m.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],u=+t[0][1],a=+t[1][1],r>n&&(t=r,r=n,n=t),u>a&&(t=u,u=a,a=t),m.precision(g)):[[r,u],[n,a]]},m.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],o=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),o>i&&(n=o,o=i,i=n),m.precision(g)):[[e,o],[t,i]]},m.step=function(t){return arguments.length?m.stepMajor(t).stepMinor(t):m.stepMinor()},m.stepMajor=function(t){return arguments.length?(p=+t[0],y=+t[1],m):[p,y]},m.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],m):[h,d]},m.precision=function(h){return arguments.length?(g=+h,c=Sd(o,i,90),s=Nd(e,t,g),f=Sd(u,a,90),l=Nd(r,n,g),m):g},m.extentMajor([[-180,-90+$f],[180,90-$f]]).extentMinor([[-180,-80-$f],[180,80+$f]])}function Rd(){return Cd()()}function Id(t,e){var n=t[0]*Xf,r=t[1]*Xf,i=e[0]*Xf,o=e[1]*Xf,a=Qf(r),u=ol(r),c=Qf(o),s=ol(o),f=a*Qf(n),l=a*ol(n),h=c*Qf(i),d=c*ol(i),p=2*fl(ul(ll(o-r)+a*c*ll(i-n))),y=ol(p),g=p?function(t){var e=ol(t*=p)/y,n=ol(p-t)/y,r=n*f+e*h,i=n*l+e*d,o=n*u+e*s;return[Kf(i,r)*Wf,Kf(o,ul(r*r+i*i))*Wf]}:function(){return[n*Wf,r*Wf]};return g.distance=p,g}const Od=t=>t;var Pd,Dd,Ld,Ud,jd=new U,zd=new U,$d={point:hl,lineStart:hl,lineEnd:hl,polygonStart:function(){$d.lineStart=Hd,$d.lineEnd=Gd},polygonEnd:function(){$d.lineStart=$d.lineEnd=$d.point=hl,jd.add(Jf(zd)),zd=new U},result:function(){var t=jd/2;return jd=new U,t}};function Hd(){$d.point=qd}function qd(t,e){$d.point=Yd,Pd=Ld=t,Dd=Ud=e}function Yd(t,e){zd.add(Ud*t-Ld*e),Ld=t,Ud=e}function Gd(){Yd(Pd,Dd)}const Vd=$d;var Wd=1/0,Xd=Wd,Jd=-Wd,Zd=Jd,Kd={point:function(t,e){tJd&&(Jd=t),eZd&&(Zd=e)},lineStart:hl,lineEnd:hl,polygonStart:hl,polygonEnd:hl,result:function(){var t=[[Wd,Xd],[Jd,Zd]];return Jd=Zd=-(Xd=Wd=1/0),t}};const Qd=Kd;var tp,ep,np,rp,ip=0,op=0,ap=0,up=0,cp=0,sp=0,fp=0,lp=0,hp=0,dp={point:pp,lineStart:yp,lineEnd:vp,polygonStart:function(){dp.lineStart=bp,dp.lineEnd=xp},polygonEnd:function(){dp.point=pp,dp.lineStart=yp,dp.lineEnd=vp},result:function(){var t=hp?[fp/hp,lp/hp]:sp?[up/sp,cp/sp]:ap?[ip/ap,op/ap]:[NaN,NaN];return ip=op=ap=up=cp=sp=fp=lp=hp=0,t}};function pp(t,e){ip+=t,op+=e,++ap}function yp(){dp.point=gp}function gp(t,e){dp.point=mp,pp(np=t,rp=e)}function mp(t,e){var n=t-np,r=e-rp,i=ul(n*n+r*r);up+=i*(np+t)/2,cp+=i*(rp+e)/2,sp+=i,pp(np=t,rp=e)}function vp(){dp.point=pp}function bp(){dp.point=wp}function xp(){_p(tp,ep)}function wp(t,e){dp.point=_p,pp(tp=np=t,ep=rp=e)}function _p(t,e){var n=t-np,r=e-rp,i=ul(n*n+r*r);up+=i*(np+t)/2,cp+=i*(rp+e)/2,sp+=i,fp+=(i=rp*t-np*e)*(np+t),lp+=i*(rp+e),hp+=3*i,pp(np=t,rp=e)}const Ap=dp;function Ep(t){this._context=t}Ep.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Vf)}},result:hl};var Mp,Bp,Tp,kp,Fp,Sp=new U,Np={point:hl,lineStart:function(){Np.point=Cp},lineEnd:function(){Mp&&Rp(Bp,Tp),Np.point=hl},polygonStart:function(){Mp=!0},polygonEnd:function(){Mp=null},result:function(){var t=+Sp;return Sp=new U,t}};function Cp(t,e){Np.point=Rp,Bp=kp=t,Tp=Fp=e}function Rp(t,e){kp-=t,Fp-=e,Sp.add(ul(kp*kp+Fp*Fp)),kp=t,Fp=e}const Ip=Np;function Op(){this._string=[]}function Pp(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Dp(t,e){var n,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),vl(t,n(r))),r.result()}return o.area=function(t){return vl(t,n(Vd)),Vd.result()},o.measure=function(t){return vl(t,n(Ip)),Ip.result()},o.bounds=function(t){return vl(t,n(Qd)),Qd.result()},o.centroid=function(t){return vl(t,n(Ap)),Ap.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,Od):(t=e).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(e=null,new Op):new Ep(e=t),"function"!=typeof i&&r.pointRadius(i),o):e},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(e)}function Lp(t){return{stream:Up(t)}}function Up(t){return function(e){var n=new jp;for(var r in t)n[r]=t[r];return n.stream=e,n}}function jp(){}function zp(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),vl(n,t.stream(Qd)),e(Qd.result()),null!=r&&t.clipExtent(r),t}function $p(t,e,n){return zp(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,u=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,u])}),n)}function Hp(t,e,n){return $p(t,[[0,0],e],n)}function qp(t,e,n){return zp(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];t.scale(150*i).translate([o,a])}),n)}function Yp(t,e,n){return zp(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([o,a])}),n)}Op.prototype={_radius:4.5,_circle:Pp(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Pp(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},jp.prototype={constructor:jp,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Gp=16,Vp=Qf(30*Xf);function Wp(t,e){return+e?function(t,e){function n(r,i,o,a,u,c,s,f,l,h,d,p,y,g){var m=s-r,v=f-i,b=m*m+v*v;if(b>4*e&&y--){var x=a+h,w=u+d,_=c+p,A=ul(x*x+w*w+_*_),E=fl(_/=A),M=Jf(Jf(_)-1)<$f||Jf(o-l)<$f?(o+l)/2:Kf(w,x),B=t(M,E),T=B[0],k=B[1],F=T-r,S=k-i,N=v*F-m*S;(N*N/b>e||Jf((m*F+v*S)/b-.5)>.3||a*h+u*d+c*p2?t[2]%360*Xf:0,F()):[g*Wf,m*Wf,v*Wf]},T.angle=function(t){return arguments.length?(b=t%360*Xf,F()):b*Wf},T.reflectX=function(t){return arguments.length?(x=t?-1:1,F()):x<0},T.reflectY=function(t){return arguments.length?(w=t?-1:1,F()):w<0},T.precision=function(t){return arguments.length?(a=Wp(u,B=t*t),S()):ul(B)},T.fitExtent=function(t,e){return $p(T,t,e)},T.fitSize=function(t,e){return Hp(T,t,e)},T.fitWidth=function(t,e){return qp(T,t,e)},T.fitHeight=function(t,e){return Yp(T,t,e)},function(){return e=t.apply(this,arguments),T.invert=e.invert&&k,F()}}function Qp(t){var e=0,n=qf/3,r=Kp(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Xf,n=t[1]*Xf):[e*Wf,n*Wf]},i}function ty(t,e){var n=ol(t),r=(n+ol(e))/2;if(Jf(r)<$f)return function(t){var e=Qf(t);function n(t,n){return[t*e,ol(n)/e]}return n.invert=function(t,n){return[t/e,fl(n*e)]},n}(t);var i=1+n*(2*r-n),o=ul(i)/r;function a(t,e){var n=ul(i-2*r*ol(e))/r;return[n*ol(t*=r),o-n*Qf(t)]}return a.invert=function(t,e){var n=o-e,a=Kf(t,Jf(n))*al(n);return n*r<0&&(a-=qf*al(t)*al(n)),[a/r,fl((i-(t*t+n*n)*r*r)/(2*r))]},a}function ey(){return Qp(ty).scale(155.424).center([0,33.6442])}function ny(){return ey().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function ry(){var t,e,n,r,i,o,a=ny(),u=ey().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=ey().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,e){o=[t,e]}};function f(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(r.point(e,a),o)||(i.point(e,a),o)}function l(){return t=e=null,f}return f.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(t)},f.stream=function(n){return t&&e===n?t:(r=[a.stream(e=n),u.stream(n),c.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n0?e<-Yf+$f&&(e=-Yf+$f):e>Yf-$f&&(e=Yf-$f);var n=i/il(dy(e),r);return[n*ol(r*t),i-n*Qf(r*t)]}return o.invert=function(t,e){var n=i-e,o=al(r)*ul(t*t+n*n),a=Kf(t,Jf(n))*al(n);return n*r<0&&(a-=qf*al(t)*al(n)),[a/r,2*Zf(il(i/o,1/r))-Yf]},o}function yy(){return Qp(py).scale(109.5).parallels([30,30])}function gy(t,e){return[t,e]}function my(){return Zp(gy).scale(152.63)}function vy(t,e){var n=Qf(t),r=t===e?ol(t):(n-Qf(e))/(e-t),i=n/r+t;if(Jf(r)<$f)return gy;function o(t,e){var n=i-e,o=r*t;return[n*ol(o),i-n*Qf(o)]}return o.invert=function(t,e){var n=i-e,o=Kf(t,Jf(n))*al(n);return n*r<0&&(o-=qf*al(t)*al(n)),[o/r,i-al(r)*ul(t*t+n*n)]},o}function by(){return Qp(vy).scale(131.154).center([0,13.9389])}cy.invert=oy((function(t){return t})),fy.invert=function(t,e){return[t,2*Zf(el(e))-Yf]},gy.invert=gy;var xy=1.340264,wy=-.081106,_y=893e-6,Ay=.003796,Ey=ul(3)/2;function My(t,e){var n=fl(Ey*ol(e)),r=n*n,i=r*r*r;return[t*Qf(n)/(Ey*(xy+3*wy*r+i*(7*_y+9*Ay*r))),n*(xy+wy*r+i*(_y+Ay*r))]}function By(){return Zp(My).scale(177.158)}function Ty(t,e){var n=Qf(e),r=Qf(t)*n;return[n*ol(t)/r,ol(e)/r]}function ky(){return Zp(Ty).scale(144.049).clipAngle(60)}function Fy(){var t,e,n,r,i,o,a,u=1,c=0,s=0,f=1,l=1,h=0,d=null,p=1,y=1,g=Up({point:function(t,e){var n=b([t,e]);this.stream.point(n[0],n[1])}}),m=Od;function v(){return p=u*f,y=u*l,o=a=null,b}function b(n){var r=n[0]*p,i=n[1]*y;if(h){var o=i*t-r*e;r=r*t+i*e,i=o}return[r+c,i+s]}return b.invert=function(n){var r=n[0]-c,i=n[1]-s;if(h){var o=i*t+r*e;r=r*t-i*e,i=o}return[r/p,i/y]},b.stream=function(t){return o&&a===t?o:o=g(m(a=t))},b.postclip=function(t){return arguments.length?(m=t,d=n=r=i=null,v()):m},b.clipExtent=function(t){return arguments.length?(m=null==t?(d=n=r=i=null,Od):ld(d=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),v()):null==d?null:[[d,n],[r,i]]},b.scale=function(t){return arguments.length?(u=+t,v()):u},b.translate=function(t){return arguments.length?(c=+t[0],s=+t[1],v()):[c,s]},b.angle=function(n){return arguments.length?(e=ol(h=n%360*Xf),t=Qf(h),v()):h*Wf},b.reflectX=function(t){return arguments.length?(f=t?-1:1,v()):f<0},b.reflectY=function(t){return arguments.length?(l=t?-1:1,v()):l<0},b.fitExtent=function(t,e){return $p(b,t,e)},b.fitSize=function(t,e){return Hp(b,t,e)},b.fitWidth=function(t,e){return qp(b,t,e)},b.fitHeight=function(t,e){return Yp(b,t,e)},b}function Sy(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function Ny(){return Zp(Sy).scale(175.295)}function Cy(t,e){return[Qf(e)*ol(t),ol(e)]}function Ry(){return Zp(Cy).scale(249.5).clipAngle(90+$f)}function Iy(t,e){var n=Qf(e),r=1+Qf(t)*n;return[n*ol(t)/r,ol(e)/r]}function Oy(){return Zp(Iy).scale(250).clipAngle(142)}function Py(t,e){return[rl(cl((Yf+e)/2)),-t]}function Dy(){var t=hy(Py),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}function Ly(t,e){return t.parent===e.parent?1:2}function Uy(t,e){return t+e.x}function jy(t,e){return Math.max(t,e.y)}function zy(){var t=Ly,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(Uy,0)/t.length}(n),e.y=function(t){return 1+t.reduce(jy,0)}(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var u=function(t){for(var e;e=t.children;)t=e[0];return t}(i),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),s=u.x-t(u,c)/2,f=c.x+t(c,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-s)/(f-s)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function $y(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function Hy(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Yy)):void 0===e&&(e=qy);for(var n,r,i,o,a,u=new Wy(t),c=[u];n=c.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)c.push(r=i[o]=new Wy(i[o])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(Vy)}function qy(t){return t.children}function Yy(t){return Array.isArray(t)?t[1]:null}function Gy(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Vy(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Wy(t){this.data=t,this.depth=this.height=0,this.parent=null}function Xy(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(Array.from(t))).length,o=[];r0&&n*n>r*r+i*i}function Qy(t,e){for(var n=0;n(a*=a)?(r=(s+a-i)/(2*s),o=Math.sqrt(Math.max(0,a/s-r*r)),n.x=t.x-r*u-o*c,n.y=t.y-r*c+o*u):(r=(s+i-a)/(2*s),o=Math.sqrt(Math.max(0,i/s-r*r)),n.x=e.x+r*u-o*c,n.y=e.y+r*c+o*u)):(n.x=e.x+n.r,n.y=e.y)}function ig(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function og(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function ag(t){this._=t,this.next=null,this.previous=null}function ug(t){if(!(o=(e=t,t="object"==typeof e&&"length"in e?e:Array.from(e)).length))return 0;var e,n,r,i,o,a,u,c,s,f,l,h;if((n=t[0]).x=0,n.y=0,!(o>1))return n.r;if(r=t[1],n.x=-r.r,r.x=n.r,r.y=0,!(o>2))return n.r+r.r;rg(r,n,i=t[2]),n=new ag(n),r=new ag(r),i=new ag(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;t:for(c=3;c$f&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},Cy.invert=oy(fl),Iy.invert=oy((function(t){return 2*Zf(t)})),Py.invert=function(t,e){return[-e,2*Zf(el(t))-Yf]},Wy.prototype=Hy.prototype={constructor:Wy,count:function(){return this.eachAfter($y)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],u=[],c=-1;o=a.pop();)if(u.push(o),n=o.children)for(r=0,i=n.length;r=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return Hy(this).eachBefore(Gy)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;nfunction(t){let e=(t=`${t}`).length;return kg(t,e-1)&&!kg(t,e-2)&&(t=t.slice(0,-1)),"/"===t[0]?t:`/${t}`}(t(e,n,r)))),n=e.map(Tg),i=new Set(e).add("");for(const t of n)i.has(t)||(i.add(t),e.push(t),n.push(Tg(t)),h.push(Ag));d=(t,n)=>e[n],p=(t,e)=>n[e]}for(a=0,i=h.length;a=0&&(s=h[t]).data===Ag;--t)s.data=null}if(u.parent=wg,u.eachBefore((function(t){t.depth=t.parent.depth+1,--i})).eachBefore(Vy),u.parent=null,i>0)throw new Error("cycle");return u}return r.id=function(t){return arguments.length?(e=sg(t),r):e},r.parentId=function(t){return arguments.length?(n=sg(t),r):n},r.path=function(e){return arguments.length?(t=sg(e),r):t},r}function Tg(t){let e=t.length;if(e<2)return"";for(;--e>1&&!kg(t,e););return t.slice(0,e)}function kg(t,e){if("/"===t[e]){let n=0;for(;e>0&&"\\"===t[--e];)++n;if(0==(1&n))return!0}return!1}function Fg(t,e){return t.parent===e.parent?1:2}function Sg(t){var e=t.children;return e?e[0]:t.t}function Ng(t){var e=t.children;return e?e[e.length-1]:t.t}function Cg(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Rg(t,e,n){return t.a.parent===e.parent?t.a:n}function Ig(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function Og(){var t=Fg,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,o,a=new Ig(t,0),u=[a];e=u.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(n=e.children[i]=new Ig(r[i],i)),n.parent=e;return(a.parent=new Ig(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(u);else{var s=i,f=i,l=i;i.eachBefore((function(t){t.xf.x&&(f=t),t.depth>l.depth&&(l=t)}));var h=s===f?1:t(s,f)/2,d=h-s.x,p=e/(f.x+h+d),y=n/(l.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*y}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,u=n,c=o.parent.children[0],s=o.m,f=a.m,l=u.m,h=c.m;u=Ng(u),o=Sg(o),u&&o;)c=Sg(c),(a=Ng(a)).a=e,(i=u.z+l-o.z-s+t(u._,o._))>0&&(Cg(Rg(u,e,r),e,i),s+=i,f+=i),l+=u.m,s+=o.m,h+=c.m,f+=a.m;u&&!Ng(a)&&(a.t=u,a.m+=l-f),o&&!Sg(c)&&(c.t=o,c.m+=s-h,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function Pg(t,e,n,r,i){for(var o,a=t.children,u=-1,c=a.length,s=t.value&&(i-n)/t.value;++uh&&(h=u),g=f*f*y,(d=Math.max(h/g,g/l))>p){f-=u;break}p=d}m.push(a={value:f,dice:c1?e:1)},n}(Dg);function jg(){var t=Ug,e=!1,n=1,r=1,i=[0],o=lg,a=lg,u=lg,c=lg,s=lg;function f(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(l),i=[0],e&&t.eachBefore(vg),t}function l(e){var n=i[e.depth],r=e.x0+n,f=e.y0+n,l=e.x1-n,h=e.y1-n;l=n-1){var f=u[e];return f.x0=i,f.y0=o,f.x1=a,void(f.y1=c)}for(var l=s[e],h=r/2+l,d=e+1,p=n-1;d>>1;s[y]c-o){var v=r?(i*m+a*g)/r:a;t(e,d,g,i,o,v,c),t(d,n,m,v,o,a,c)}else{var b=r?(o*m+c*g)/r:c;t(e,d,g,i,o,a,b),t(d,n,m,i,b,a,c)}}(0,c,t.value,e,n,r,i)}function $g(t,e,n,r,i){(1&t.depth?Pg:bg)(t,e,n,r,i)}const Hg=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,u,c,s,f,l=-1,h=a.length,d=t.value;++l1?e:1)},n}(Dg);function qg(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function Yg(t,e){var n=Yr(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}function Gg(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Vg(t){return((t=Math.exp(t))+1/t)/2}const Wg=function t(e,n,r){function i(t,i){var o,a,u=t[0],c=t[1],s=t[2],f=i[0],l=i[1],h=i[2],d=f-u,p=l-c,y=d*d+p*p;if(y<1e-12)a=Math.log(h/s)/e,o=function(t){return[u+t*d,c+t*p,s*Math.exp(e*t*a)]};else{var g=Math.sqrt(y),m=(h*h-s*s+r*y)/(2*s*n*g),v=(h*h-s*s-r*y)/(2*h*n*g),b=Math.log(Math.sqrt(m*m+1)-m),x=Math.log(Math.sqrt(v*v+1)-v);a=(x-b)/e,o=function(t){var r,i=t*a,o=Vg(b),f=s/(n*g)*(o*(r=e*i+b,((r=Math.exp(2*r))-1)/(r+1))-function(t){return((t=Math.exp(t))-1/t)/2}(b));return[u+f*d,c+f*p,s*o/Vg(e*i+b)]}}return o.duration=1e3*a*e/Math.SQRT2,o}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4);function Xg(t){return function(e,n){var r=t((e=Or(e)).h,(n=Or(n)).h),i=Gr(e.s,n.s),o=Gr(e.l,n.l),a=Gr(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}const Jg=Xg(Yr);var Zg=Xg(Gr);function Kg(t,e){var n=Gr((t=Va(t)).l,(e=Va(e)).l),r=Gr(t.a,e.a),i=Gr(t.b,e.b),o=Gr(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=o(e),t+""}}function Qg(t){return function(e,n){var r=t((e=eu(e)).h,(n=eu(n)).h),i=Gr(e.c,n.c),o=Gr(e.l,n.l),a=Gr(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=a(t),e+""}}}const tm=Qg(Yr);var em=Qg(Gr);function nm(t){return function e(n){function r(e,r){var i=t((e=hu(e)).h,(r=hu(r)).h),o=Gr(e.s,r.s),a=Gr(e.l,r.l),u=Gr(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=a(Math.pow(t,n)),e.opacity=u(t),e+""}}return n=+n,r.gamma=e,r}(1)}const rm=nm(Yr);var im=nm(Gr);function om(t,e){void 0===e&&(e=t,t=ui);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n1&&sm(t[n[i-2]],t[n[i-1]],t[r])<=0;)--i;n[i++]=r}return n.slice(0,i)}function hm(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e=0;--e)s.push(t[r[o[e]][2]]);for(e=+u;eu!=s>u&&a<(c-n)*(u-r)/(s-r)+n&&(f=!f),c=n,s=r;return f}function pm(t){for(var e,n,r=-1,i=t.length,o=t[i-1],a=o[0],u=o[1],c=0;++r1);return t+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(ym),bm=function t(e){var n=vm.source(e);function r(){var t=n.apply(this,arguments);return function(){return Math.exp(t())}}return r.source=t,r}(ym),xm=function t(e){function n(t){return(t=+t)<=0?()=>0:function(){for(var n=0,r=t;r>1;--r)n+=e();return n+r*e()}}return n.source=t,n}(ym),wm=function t(e){var n=xm.source(e);function r(t){if(0==(t=+t))return e;var r=n(t);return function(){return r()/t}}return r.source=t,r}(ym),_m=function t(e){function n(t){return function(){return-Math.log1p(-e())/t}}return n.source=t,n}(ym),Am=function t(e){function n(t){if((t=+t)<0)throw new RangeError("invalid alpha");return t=1/-t,function(){return Math.pow(1-e(),t)}}return n.source=t,n}(ym),Em=function t(e){function n(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return function(){return Math.floor(e()+t)}}return n.source=t,n}(ym),Mm=function t(e){function n(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return 0===t?()=>1/0:1===t?()=>1:(t=Math.log1p(-t),function(){return 1+Math.floor(Math.log1p(-e())/t)})}return n.source=t,n}(ym),Bm=function t(e){var n=vm.source(e)();function r(t,r){if((t=+t)<0)throw new RangeError("invalid k");if(0===t)return()=>0;if(r=null==r?1:+r,1===t)return()=>-Math.log1p(-e())*r;var i=(t<1?t+1:t)-1/3,o=1/(3*Math.sqrt(i)),a=t<1?()=>Math.pow(e(),1/t):()=>1;return function(){do{do{var t=n(),u=1+o*t}while(u<=0);u*=u*u;var c=1-e()}while(c>=1-.0331*t*t*t*t&&Math.log(c)>=.5*t*t+i*(1-u+Math.log(u)));return i*u*a()*r}}return r.source=t,r}(ym),Tm=function t(e){var n=Bm.source(e);function r(t,e){var r=n(t),i=n(e);return function(){var t=r();return 0===t?0:t/(t+i())}}return r.source=t,r}(ym),km=function t(e){var n=Mm.source(e),r=Tm.source(e);function i(t,e){return t=+t,(e=+e)>=1?()=>t:e<=0?()=>0:function(){for(var i=0,o=t,a=e;o*a>16&&o*(1-a)>16;){var u=Math.floor((o+1)*a),c=r(u,o-u+1)();c<=a?(i+=u,o-=u,a=(a-c)/(1-c)):(o=u-1,a/=c)}for(var s=a<.5,f=n(s?a:1-a),l=f(),h=0;l<=o;++h)l+=f();return i+(s?h:o-h)}}return i.source=t,i}(ym),Fm=function t(e){function n(t,n,r){var i;return 0==(t=+t)?i=t=>-Math.log(t):(t=1/t,i=e=>Math.pow(e,t)),n=null==n?0:+n,r=null==r?1:+r,function(){return n+r*i(-Math.log1p(-e()))}}return n.source=t,n}(ym),Sm=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,function(){return t+n*Math.tan(Math.PI*e())}}return n.source=t,n}(ym),Nm=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,function(){var r=e();return t+n*Math.log(r/(1-r))}}return n.source=t,n}(ym),Cm=function t(e){var n=Bm.source(e),r=km.source(e);function i(t){return function(){for(var i=0,o=t;o>16;){var a=Math.floor(.875*o),u=n(a)();if(u>o)return i+r(a-1,o/u)();i+=a,o-=u}for(var c=-Math.log1p(-e()),s=0;c<=o;++s)c-=Math.log1p(-e());return i+s}}return i.source=t,i}(ym),Rm=1664525,Im=1013904223,Om=1/4294967296;function Pm(t=Math.random()){let e=0|(0<=t&&t<1?t/Om:Math.abs(t));return()=>(e=Rm*e+Im|0,Om*(e>>>0))}function Dm(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Lm(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}const Um=Symbol("implicit");function jm(){var t=new $,e=[],n=[],r=Um;function i(i){let o=t.get(i);if(void 0===o){if(r!==Um)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new $;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return jm(e,n).unknown(r)},Dm.apply(i,arguments),i}function zm(){var t,e,n=jm().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,u=!1,c=0,s=0,f=.5;function l(){var n=r().length,l=ae&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(a[0],a[t-1])),r=t>2?Xm:Wm,i=o=null,l}function l(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),u,c)))(t(s(e)))}return l.invert=function(n){return s(e((o||(o=r(u,a.map(t),ni)))(n)))},l.domain=function(t){return arguments.length?(a=Array.from(t,qm),f()):a.slice()},l.range=function(t){return arguments.length?(u=Array.from(t),f()):u.slice()},l.rangeRound=function(t){return u=Array.from(t),c=Gg,f()},l.clamp=function(t){return arguments.length?(s=!!t||Gm,f()):s!==Gm},l.interpolate=function(t){return arguments.length?(c=t,f()):c},l.unknown=function(t){return arguments.length?(n=t,l):n},function(n,r){return t=n,e=r,f()}}function Km(){return Zm()(Gm,Gm)}function Qm(t,e,n,r){var i,o=xt(t,e,n);switch((r=Tf(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=jf(o,a))||(r.precision=i),If(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=zf(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Uf(o))||(r.precision=i-2*("%"===r.type))}return Rf(r)}function tv(t){var e=t.domain;return t.ticks=function(t){var n=e();return vt(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Qm(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,u=o.length-1,c=o[a],s=o[u],f=10;for(s0;){if((i=bt(c,s,n))===r)return o[a]=c,o[u]=s,e(o);if(i>0)c=Math.floor(c/i)*i,s=Math.ceil(s/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,s=Math.floor(s*i)/i}r=i}return t},t}function ev(){var t=Km();return t.copy=function(){return Jm(t,ev())},Dm.apply(t,arguments),tv(t)}function nv(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,qm),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return nv(t).unknown(e)},t=arguments.length?Array.from(t,qm):[0,1],tv(n)}function rv(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a-t(-e,n)}function fv(t){const e=t(iv,ov),n=e.domain;let r,i,o=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(o),i=function(t){return 10===t?cv:t===Math.E?Math.exp:e=>Math.pow(t,e)}(o),n()[0]<0?(r=sv(r),i=sv(i),t(av,uv)):t(iv,ov),e}return e.base=function(t){return arguments.length?(o=+t,a()):o},e.domain=function(t){return arguments.length?(n(t),a()):n()},e.ticks=t=>{const e=n();let a=e[0],u=e[e.length-1];const c=u0){for(;l<=h;++l)for(s=1;su)break;p.push(f)}}else for(;l<=h;++l)for(s=o-1;s>=1;--s)if(f=l>0?s/i(-l):s*i(l),!(fu)break;p.push(f)}2*p.length{if(null==t&&(t=10),null==n&&(n=10===o?"s":","),"function"!=typeof n&&(o%1||null!=(n=Tf(n)).precision||(n.trim=!0),n=Rf(n)),t===1/0)return n;const a=Math.max(1,o*t/e.ticks().length);return t=>{let e=t/i(Math.round(r(t)));return e*on(rv(n(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),e}function lv(){const t=fv(Zm()).domain([1,10]);return t.copy=()=>Jm(t,lv()).base(t.base()),Dm.apply(t,arguments),t}function hv(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function dv(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function pv(t){var e=1,n=t(hv(e),dv(e));return n.constant=function(n){return arguments.length?t(hv(e=+n),dv(e)):e},tv(n)}function yv(){var t=pv(Zm());return t.copy=function(){return Jm(t,yv()).constant(t.constant())},Dm.apply(t,arguments)}function gv(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function mv(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function vv(t){return t<0?-t*t:t*t}function bv(t){var e=t(Gm,Gm),n=1;return e.exponent=function(e){return arguments.length?1==(n=+e)?t(Gm,Gm):.5===n?t(mv,vv):t(gv(n),gv(1/n)):n},tv(e)}function xv(){var t=bv(Zm());return t.copy=function(){return Jm(t,xv()).exponent(t.exponent())},Dm.apply(t,arguments),t}function wv(){return xv.apply(null,arguments).exponent(.5)}function _v(t){return Math.sign(t)*t*t}function Av(){var t,e=Km(),n=[0,1],r=!1;function i(n){var i=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(e(n));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return e.invert(_v(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(t){return arguments.length?(e.range((n=Array.from(t,qm)).map(_v)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(r=!!t,i):r},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return Av(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},Dm.apply(i,arguments),tv(i)}function Ev(){var t,e=[],n=[],r=[];function i(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t0?r[i-1]:e[0],i=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Mv().domain([e,n]).range(o).unknown(t)},Dm.apply(tv(a),arguments)}function Bv(){var t,e=[.5],n=[0,1],r=1;function i(i){return null!=i&&i<=i?n[_(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=Array.from(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return Bv().domain(e).range(n).unknown(t)},Dm.apply(i,arguments)}const Tv=1e3,kv=60*Tv,Fv=60*kv,Sv=24*Fv,Nv=7*Sv,Cv=30*Sv,Rv=365*Sv;var Iv=new Date,Ov=new Date;function Pv(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return u;do{u.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Iv.setTime(+e),Ov.setTime(+r),t(Iv),t(Ov),Math.floor(n(Iv,Ov))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Dv=Pv((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));Dv.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Pv((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Dv:null};const Lv=Dv;var Uv=Dv.range,jv=Pv((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Tv)}),(function(t,e){return(e-t)/Tv}),(function(t){return t.getUTCSeconds()}));const zv=jv;var $v=jv.range,Hv=Pv((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Tv)}),(function(t,e){t.setTime(+t+e*kv)}),(function(t,e){return(e-t)/kv}),(function(t){return t.getMinutes()}));const qv=Hv;var Yv=Hv.range,Gv=Pv((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Tv-t.getMinutes()*kv)}),(function(t,e){t.setTime(+t+e*Fv)}),(function(t,e){return(e-t)/Fv}),(function(t){return t.getHours()}));const Vv=Gv;var Wv=Gv.range,Xv=Pv((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*kv)/Sv),(t=>t.getDate()-1));const Jv=Xv;var Zv=Xv.range;function Kv(t){return Pv((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*kv)/Nv}))}var Qv=Kv(0),tb=Kv(1),eb=Kv(2),nb=Kv(3),rb=Kv(4),ib=Kv(5),ob=Kv(6),ab=Qv.range,ub=tb.range,cb=eb.range,sb=nb.range,fb=rb.range,lb=ib.range,hb=ob.range,db=Pv((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const pb=db;var yb=db.range,gb=Pv((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));gb.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Pv((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const mb=gb;var vb=gb.range,bb=Pv((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*kv)}),(function(t,e){return(e-t)/kv}),(function(t){return t.getUTCMinutes()}));const xb=bb;var wb=bb.range,_b=Pv((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*Fv)}),(function(t,e){return(e-t)/Fv}),(function(t){return t.getUTCHours()}));const Ab=_b;var Eb=_b.range,Mb=Pv((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Sv}),(function(t){return t.getUTCDate()-1}));const Bb=Mb;var Tb=Mb.range;function kb(t){return Pv((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/Nv}))}var Fb=kb(0),Sb=kb(1),Nb=kb(2),Cb=kb(3),Rb=kb(4),Ib=kb(5),Ob=kb(6),Pb=Fb.range,Db=Sb.range,Lb=Nb.range,Ub=Cb.range,jb=Rb.range,zb=Ib.range,$b=Ob.range,Hb=Pv((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const qb=Hb;var Yb=Hb.range,Gb=Pv((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Gb.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Pv((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const Vb=Gb;var Wb=Gb.range;function Xb(t,e,n,r,i,o){const a=[[zv,1,Tv],[zv,5,5*Tv],[zv,15,15*Tv],[zv,30,30*Tv],[o,1,kv],[o,5,5*kv],[o,15,15*kv],[o,30,30*kv],[i,1,Fv],[i,3,3*Fv],[i,6,6*Fv],[i,12,12*Fv],[r,1,Sv],[r,2,2*Sv],[n,1,Nv],[e,1,Cv],[e,3,3*Cv],[t,1,Rv]];function u(e,n,r){const i=Math.abs(n-e)/r,o=p((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(xt(e/Rv,n/Rv,r));if(0===o)return Lv.every(Math.max(xt(e,n,r),1));const[u,c]=a[i/a[o-1][2]=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ew,s:Mw,S:Yx,u:Gx,U:Vx,V:Xx,w:Jx,W:Zx,x:null,X:null,y:Kx,Y:tw,Z:nw,"%":Aw},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:rw,e:rw,f:cw,g:bw,G:ww,H:iw,I:ow,j:aw,L:uw,m:sw,M:fw,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ew,s:Mw,S:lw,u:hw,U:dw,V:yw,w:gw,W:mw,x:null,X:null,y:vw,Y:xw,Z:_w,"%":Aw},w={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return E(t,e,n,r)},d:Tx,e:Tx,f:Rx,g:Ax,G:_x,H:Fx,I:Fx,j:kx,L:Cx,m:Bx,M:Sx,p:function(t,e,n){var r=s.exec(e.slice(n));return r?(t.p=f.get(r[0].toLowerCase()),n+r[0].length):-1},q:Mx,Q:Ox,s:Px,S:Nx,u:vx,U:bx,V:xx,w:mx,W:wx,x:function(t,e,r){return E(t,n,e,r)},X:function(t,e,n){return E(t,r,e,n)},y:Ax,Y:_x,Z:Ex,"%":Ix};function _(t,e){return function(n){var r,i,o,a=[],u=-1,c=0,s=t.length;for(n instanceof Date||(n=new Date(+n));++u53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=ex(nx(o.y,0,1))).getUTCDay(),r=i>4||0===i?Sb.ceil(r):Sb(r),r=Bb.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=tx(nx(o.y,0,1))).getDay(),r=i>4||0===i?tb.ceil(r):tb(r),r=Jv.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?ex(nx(o.y,0,1)).getUTCDay():tx(nx(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,ex(o)):tx(o)}}function E(t,e,n,r){for(var i,o,a=0,u=e.length,c=n.length;a=c)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=w[i in sx?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(e,b),x.x=_(n,x),x.X=_(r,x),x.c=_(e,x),{format:function(t){var e=_(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=A(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=_(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=A(t+="",!0);return e.toString=function(){return t},e}}}var ix,ox,ax,ux,cx,sx={"-":"",_:" ",0:"0"},fx=/^\s*\d+/,lx=/^%/,hx=/[\\^$*+?|[\]().{}]/g;function dx(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o[t.toLowerCase(),e])))}function mx(t,e,n){var r=fx.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function vx(t,e,n){var r=fx.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function bx(t,e,n){var r=fx.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function xx(t,e,n){var r=fx.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function wx(t,e,n){var r=fx.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function _x(t,e,n){var r=fx.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ax(t,e,n){var r=fx.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ex(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Mx(t,e,n){var r=fx.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Bx(t,e,n){var r=fx.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Tx(t,e,n){var r=fx.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function kx(t,e,n){var r=fx.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Fx(t,e,n){var r=fx.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Sx(t,e,n){var r=fx.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Nx(t,e,n){var r=fx.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Cx(t,e,n){var r=fx.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Rx(t,e,n){var r=fx.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ix(t,e,n){var r=lx.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Ox(t,e,n){var r=fx.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Px(t,e,n){var r=fx.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Dx(t,e){return dx(t.getDate(),e,2)}function Lx(t,e){return dx(t.getHours(),e,2)}function Ux(t,e){return dx(t.getHours()%12||12,e,2)}function jx(t,e){return dx(1+Jv.count(mb(t),t),e,3)}function zx(t,e){return dx(t.getMilliseconds(),e,3)}function $x(t,e){return zx(t,e)+"000"}function Hx(t,e){return dx(t.getMonth()+1,e,2)}function qx(t,e){return dx(t.getMinutes(),e,2)}function Yx(t,e){return dx(t.getSeconds(),e,2)}function Gx(t){var e=t.getDay();return 0===e?7:e}function Vx(t,e){return dx(Qv.count(mb(t)-1,t),e,2)}function Wx(t){var e=t.getDay();return e>=4||0===e?rb(t):rb.ceil(t)}function Xx(t,e){return t=Wx(t),dx(rb.count(mb(t),t)+(4===mb(t).getDay()),e,2)}function Jx(t){return t.getDay()}function Zx(t,e){return dx(tb.count(mb(t)-1,t),e,2)}function Kx(t,e){return dx(t.getFullYear()%100,e,2)}function Qx(t,e){return dx((t=Wx(t)).getFullYear()%100,e,2)}function tw(t,e){return dx(t.getFullYear()%1e4,e,4)}function ew(t,e){var n=t.getDay();return dx((t=n>=4||0===n?rb(t):rb.ceil(t)).getFullYear()%1e4,e,4)}function nw(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+dx(e/60|0,"0",2)+dx(e%60,"0",2)}function rw(t,e){return dx(t.getUTCDate(),e,2)}function iw(t,e){return dx(t.getUTCHours(),e,2)}function ow(t,e){return dx(t.getUTCHours()%12||12,e,2)}function aw(t,e){return dx(1+Bb.count(Vb(t),t),e,3)}function uw(t,e){return dx(t.getUTCMilliseconds(),e,3)}function cw(t,e){return uw(t,e)+"000"}function sw(t,e){return dx(t.getUTCMonth()+1,e,2)}function fw(t,e){return dx(t.getUTCMinutes(),e,2)}function lw(t,e){return dx(t.getUTCSeconds(),e,2)}function hw(t){var e=t.getUTCDay();return 0===e?7:e}function dw(t,e){return dx(Fb.count(Vb(t)-1,t),e,2)}function pw(t){var e=t.getUTCDay();return e>=4||0===e?Rb(t):Rb.ceil(t)}function yw(t,e){return t=pw(t),dx(Rb.count(Vb(t),t)+(4===Vb(t).getUTCDay()),e,2)}function gw(t){return t.getUTCDay()}function mw(t,e){return dx(Sb.count(Vb(t)-1,t),e,2)}function vw(t,e){return dx(t.getUTCFullYear()%100,e,2)}function bw(t,e){return dx((t=pw(t)).getUTCFullYear()%100,e,2)}function xw(t,e){return dx(t.getUTCFullYear()%1e4,e,4)}function ww(t,e){var n=t.getUTCDay();return dx((t=n>=4||0===n?Rb(t):Rb.ceil(t)).getUTCFullYear()%1e4,e,4)}function _w(){return"+0000"}function Aw(){return"%"}function Ew(t){return+t}function Mw(t){return Math.floor(+t/1e3)}function Bw(t){return ix=rx(t),ox=ix.format,ax=ix.parse,ux=ix.utcFormat,cx=ix.utcParse,ix}function Tw(t){return new Date(t)}function kw(t){return t instanceof Date?+t:+new Date(+t)}function Fw(t,e,n,r,i,o,a,u,c,s){var f=Km(),l=f.invert,h=f.domain,d=s(".%L"),p=s(":%S"),y=s("%I:%M"),g=s("%I %p"),m=s("%a %d"),v=s("%b %d"),b=s("%B"),x=s("%Y");function w(t){return(c(t)e(r/(t.length-1))))},n.quantiles=function(e){return Array.from({length:e+1},((n,r)=>Nt(t,r/e)))},n.copy=function(){return Uw(e).domain(t)},Lm.apply(n,arguments)}function jw(){var t,e,n,r,i,o,a,u=0,c=.5,s=1,f=1,l=Gm,h=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(f*tXr(t[t.length-1]);var i_=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Gw);const o_=r_(i_);var a_=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Gw);const u_=r_(a_);var c_=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Gw);const s_=r_(c_);var f_=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Gw);const l_=r_(f_);var h_=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Gw);const d_=r_(h_);var p_=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Gw);const y_=r_(p_);var g_=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Gw);const m_=r_(g_);var v_=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Gw);const b_=r_(v_);var x_=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Gw);const w_=r_(x_);var __=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Gw);const A_=r_(__);var E_=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Gw);const M_=r_(E_);var B_=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Gw);const T_=r_(B_);var k_=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Gw);const F_=r_(k_);var S_=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Gw);const N_=r_(S_);var C_=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Gw);const R_=r_(C_);var I_=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Gw);const O_=r_(I_);var P_=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Gw);const D_=r_(P_);var L_=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Gw);const U_=r_(L_);var j_=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Gw);const z_=r_(j_);var $_=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Gw);const H_=r_($_);var q_=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Gw);const Y_=r_(q_);var G_=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Gw);const V_=r_(G_);var W_=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Gw);const X_=r_(W_);var J_=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Gw);const Z_=r_(J_);var K_=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Gw);const Q_=r_(K_);var tA=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Gw);const eA=r_(tA);var nA=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Gw);const rA=r_(nA);function iA(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}const oA=im(hu(300,.5,0),hu(-240,.5,1));var aA=im(hu(-100,.75,.35),hu(80,1.5,.8)),uA=im(hu(260,.75,.35),hu(80,1.5,.8)),cA=hu();function sA(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return cA.h=360*t-100,cA.s=1.5-1.5*e,cA.l=.8-.9*e,cA+""}var fA=Br(),lA=Math.PI/3,hA=2*Math.PI/3;function dA(t){var e;return t=(.5-t)*Math.PI,fA.r=255*(e=Math.sin(t))*e,fA.g=255*(e=Math.sin(t+lA))*e,fA.b=255*(e=Math.sin(t+hA))*e,fA+""}function pA(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function yA(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}const gA=yA(Gw("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var mA=yA(Gw("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),vA=yA(Gw("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),bA=yA(Gw("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function xA(t){return Zn(Dn(t).call(document.documentElement))}var wA=0;function _A(){return new AA}function AA(){this._="@"+(++wA).toString(36)}function EA(t,e){return t.target&&(t=ci(t),void 0===e&&(e=t.currentTarget),t=t.touches||[t]),Array.from(t,(t=>si(t,e)))}function MA(t){return"string"==typeof t?new Wn([document.querySelectorAll(t)],[document.documentElement]):new Wn([Ue(t)],Vn)}function BA(t){return function(){return t}}AA.prototype=_A.prototype={constructor:AA,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};const TA=Math.abs,kA=Math.atan2,FA=Math.cos,SA=Math.max,NA=Math.min,CA=Math.sin,RA=Math.sqrt,IA=1e-12,OA=Math.PI,PA=OA/2,DA=2*OA;function LA(t){return t>=1?PA:t<=-1?-PA:Math.asin(t)}function UA(t){return t.innerRadius}function jA(t){return t.outerRadius}function zA(t){return t.startAngle}function $A(t){return t.endAngle}function HA(t){return t&&t.padAngle}function qA(t,e,n,r,i,o,a){var u=t-n,c=e-r,s=(a?o:-o)/RA(u*u+c*c),f=s*c,l=-s*u,h=t+f,d=e+l,p=n+f,y=r+l,g=(h+p)/2,m=(d+y)/2,v=p-h,b=y-d,x=v*v+b*b,w=i-o,_=h*y-p*d,A=(b<0?-1:1)*RA(SA(0,w*w*x-_*_)),E=(_*b-v*A)/x,M=(-_*v-b*A)/x,B=(_*b+v*A)/x,T=(-_*v+b*A)/x,k=E-g,F=M-m,S=B-g,N=T-m;return k*k+F*F>S*S+N*N&&(E=B,M=T),{cx:E,cy:M,x01:-f,y01:-l,x11:E*(i/w-1),y11:M*(i/w-1)}}function YA(){var t=UA,e=jA,n=BA(0),r=null,i=zA,o=$A,a=HA,u=null;function c(){var c,s,f,l=+t.apply(this,arguments),h=+e.apply(this,arguments),d=i.apply(this,arguments)-PA,p=o.apply(this,arguments)-PA,y=TA(p-d),g=p>d;if(u||(u=c=Aa()),hIA)if(y>DA-IA)u.moveTo(h*FA(d),h*CA(d)),u.arc(0,0,h,d,p,!g),l>IA&&(u.moveTo(l*FA(p),l*CA(p)),u.arc(0,0,l,p,d,g));else{var m,v,b=d,x=p,w=d,_=p,A=y,E=y,M=a.apply(this,arguments)/2,B=M>IA&&(r?+r.apply(this,arguments):RA(l*l+h*h)),T=NA(TA(h-l)/2,+n.apply(this,arguments)),k=T,F=T;if(B>IA){var S=LA(B/l*CA(M)),N=LA(B/h*CA(M));(A-=2*S)>IA?(w+=S*=g?1:-1,_-=S):(A=0,w=_=(d+p)/2),(E-=2*N)>IA?(b+=N*=g?1:-1,x-=N):(E=0,b=x=(d+p)/2)}var C=h*FA(b),R=h*CA(b),I=l*FA(_),O=l*CA(_);if(T>IA){var P,D=h*FA(x),L=h*CA(x),U=l*FA(w),j=l*CA(w);if(y1?0:f<-1?OA:Math.acos(f))/2),G=RA(P[0]*P[0]+P[1]*P[1]);k=NA(T,(l-G)/(Y-1)),F=NA(T,(h-G)/(Y+1))}}E>IA?F>IA?(m=qA(U,j,C,R,h,F,g),v=qA(D,L,I,O,h,F,g),u.moveTo(m.cx+m.x01,m.cy+m.y01),FIA&&A>IA?k>IA?(m=qA(I,O,D,L,l,-k,g),v=qA(C,R,U,j,l,-k,g),u.lineTo(m.cx+m.x01,m.cy+m.y01),k=f;--l)u.point(g[l],m[l]);u.lineEnd(),u.areaEnd()}y&&(g[s]=+t(h,s,c),m[s]=+e(h,s,c),u.point(r?+r(h,s,c):g[s],n?+n(h,s,c):m[s]))}if(d)return u=null,d+""||null}function s(){return KA().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?JA:BA(+t),e="function"==typeof e?e:BA(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?ZA:BA(+n),c.x=function(e){return arguments.length?(t="function"==typeof e?e:BA(+e),r=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:BA(+e),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:BA(+t),c):r},c.y=function(t){return arguments.length?(e="function"==typeof t?t:BA(+t),n=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:BA(+t),c):e},c.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:BA(+t),c):n},c.lineX0=c.lineY0=function(){return s().x(t).y(e)},c.lineY1=function(){return s().x(t).y(n)},c.lineX1=function(){return s().x(r).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:BA(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),c):o},c}function tE(t,e){return et?1:e>=t?0:NaN}function eE(t){return t}function nE(){var t=eE,e=tE,n=null,r=BA(0),i=BA(DA),o=BA(0);function a(a){var u,c,s,f,l,h=(a=VA(a)).length,d=0,p=new Array(h),y=new Array(h),g=+r.apply(this,arguments),m=Math.min(DA,Math.max(-DA,i.apply(this,arguments)-g)),v=Math.min(Math.abs(m)/h,o.apply(this,arguments)),b=v*(m<0?-1:1);for(u=0;u0&&(d+=l);for(null!=e?p.sort((function(t,n){return e(y[t],y[n])})):null!=n&&p.sort((function(t,e){return n(a[t],a[e])})),u=0,s=d?(m-h*b)/d:0;u0?l*s:0)+b,y[c]={data:a[c],index:u,value:l,startAngle:g,endAngle:f,padAngle:v};return y}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:BA(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:BA(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:BA(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:BA(+t),a):o},a}WA.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var rE=oE(XA);function iE(t){this._curve=t}function oE(t){function e(e){return new iE(t(e))}return e._curve=t,e}function aE(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(oE(t)):e()._curve},t}function uE(){return aE(KA().curve(rE))}function cE(){var t=QA().curve(rE),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return aE(n())},delete t.lineX0,t.lineEndAngle=function(){return aE(r())},delete t.lineX1,t.lineInnerRadius=function(){return aE(i())},delete t.lineY0,t.lineOuterRadius=function(){return aE(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(oE(t)):e()._curve},t}function sE(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}iE.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};class fE{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}class lE{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,e){if(t=+t,e=+e,0==this._point++)this._x0=t,this._y0=e;else{const n=sE(this._x0,this._y0),r=sE(this._x0,this._y0=(this._y0+e)/2),i=sE(t,this._y0),o=sE(t,e);this._context.moveTo(...n),this._context.bezierCurveTo(...r,...i,...o)}}}function hE(t){return new fE(t,!0)}function dE(t){return new fE(t,!1)}function pE(t){return new lE(t)}function yE(t){return t.source}function gE(t){return t.target}function mE(t){let e=yE,n=gE,r=JA,i=ZA,o=null,a=null;function u(){let u;const c=GA.call(arguments),s=e.apply(this,c),f=n.apply(this,c);if(null==o&&(a=t(u=Aa())),a.lineStart(),c[0]=s,a.point(+r.apply(this,c),+i.apply(this,c)),c[0]=f,a.point(+r.apply(this,c),+i.apply(this,c)),a.lineEnd(),u)return a=null,u+""||null}return u.source=function(t){return arguments.length?(e=t,u):e},u.target=function(t){return arguments.length?(n=t,u):n},u.x=function(t){return arguments.length?(r="function"==typeof t?t:BA(+t),u):r},u.y=function(t){return arguments.length?(i="function"==typeof t?t:BA(+t),u):i},u.context=function(e){return arguments.length?(null==e?o=a=null:a=t(o=e),u):o},u}function vE(){return mE(hE)}function bE(){return mE(dE)}function xE(){const t=mE(pE);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const wE=RA(3),_E={draw(t,e){const n=.59436*RA(e+NA(e/28,.75)),r=n/2,i=r*wE;t.moveTo(0,n),t.lineTo(0,-n),t.moveTo(-i,-r),t.lineTo(i,r),t.moveTo(-i,r),t.lineTo(i,-r)}},AE={draw(t,e){const n=RA(e/OA);t.moveTo(n,0),t.arc(0,0,n,0,DA)}},EE={draw(t,e){const n=RA(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},ME=RA(1/3),BE=2*ME,TE={draw(t,e){const n=RA(e/BE),r=n*ME;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},kE={draw(t,e){const n=.62625*RA(e);t.moveTo(0,-n),t.lineTo(n,0),t.lineTo(0,n),t.lineTo(-n,0),t.closePath()}},FE={draw(t,e){const n=.87559*RA(e-NA(e/7,2));t.moveTo(-n,0),t.lineTo(n,0),t.moveTo(0,n),t.lineTo(0,-n)}},SE={draw(t,e){const n=RA(e),r=-n/2;t.rect(r,r,n,n)}},NE={draw(t,e){const n=.4431*RA(e);t.moveTo(n,n),t.lineTo(n,-n),t.lineTo(-n,-n),t.lineTo(-n,n),t.closePath()}},CE=CA(OA/10)/CA(7*OA/10),RE=CA(DA/10)*CE,IE=-FA(DA/10)*CE,OE={draw(t,e){const n=RA(.8908130915292852*e),r=RE*n,i=IE*n;t.moveTo(0,-n),t.lineTo(r,i);for(let e=1;e<5;++e){const o=DA*e/5,a=FA(o),u=CA(o);t.lineTo(u*n,-a*n),t.lineTo(a*r-u*i,u*r+a*i)}t.closePath()}},PE=RA(3),DE={draw(t,e){const n=-RA(e/(3*PE));t.moveTo(0,2*n),t.lineTo(-PE*n,-n),t.lineTo(PE*n,-n),t.closePath()}},LE=RA(3),UE={draw(t,e){const n=.6824*RA(e),r=n/2,i=n*LE/2;t.moveTo(0,-n),t.lineTo(i,r),t.lineTo(-i,r),t.closePath()}},jE=-.5,zE=RA(3)/2,$E=1/RA(12),HE=3*($E/2+1),qE={draw(t,e){const n=RA(e/HE),r=n/2,i=n*$E,o=r,a=n*$E+n,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(jE*r-zE*i,zE*r+jE*i),t.lineTo(jE*o-zE*a,zE*o+jE*a),t.lineTo(jE*u-zE*c,zE*u+jE*c),t.lineTo(jE*r+zE*i,jE*i-zE*r),t.lineTo(jE*o+zE*a,jE*a-zE*o),t.lineTo(jE*u+zE*c,jE*c-zE*u),t.closePath()}},YE={draw(t,e){const n=.6189*RA(e-NA(e/6,1.7));t.moveTo(-n,-n),t.lineTo(n,n),t.moveTo(-n,n),t.lineTo(n,-n)}},GE=[AE,EE,TE,SE,OE,DE,qE],VE=[AE,FE,YE,UE,_E,NE,kE];function WE(t,e){let n=null;function r(){let r;if(n||(n=r=Aa()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return t="function"==typeof t?t:BA(t||AE),e="function"==typeof e?e:BA(void 0===e?64:+e),r.type=function(e){return arguments.length?(t="function"==typeof e?e:BA(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:BA(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function XE(){}function JE(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function ZE(t){this._context=t}function KE(t){return new ZE(t)}function QE(t){this._context=t}function tM(t){return new QE(t)}function eM(t){this._context=t}function nM(t){return new eM(t)}function rM(t,e){this._basis=new ZE(t),this._beta=e}ZE.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:JE(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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:JE(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},QE.prototype={areaStart:XE,areaEnd:XE,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:JE(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},eM.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(t,e){switch(t=+t,e=+e,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+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:JE(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},rM.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,u=e[n]-o,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*e[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const iM=function t(e){function n(t){return 1===e?new ZE(t):new rM(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function oM(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function aM(t,e){this._context=t,this._k=(1-e)/6}aM.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:oM(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:oM(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const uM=function t(e){function n(t){return new aM(t,e)}return n.tension=function(e){return t(+e)},n}(0);function cM(t,e){this._context=t,this._k=(1-e)/6}cM.prototype={areaStart:XE,areaEnd:XE,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:oM(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const sM=function t(e){function n(t){return new cM(t,e)}return n.tension=function(e){return t(+e)},n}(0);function fM(t,e){this._context=t,this._k=(1-e)/6}fM.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(t,e){switch(t=+t,e=+e,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:oM(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const lM=function t(e){function n(t){return new fM(t,e)}return n.tension=function(e){return t(+e)},n}(0);function hM(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>IA){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>IA){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*s+t._x1*t._l23_2a-e*t._l12_2a)/f,a=(a*s+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function dM(t,e){this._context=t,this._alpha=e}dM.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(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;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(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:hM(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const pM=function t(e){function n(t){return e?new dM(t,e):new aM(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function yM(t,e){this._context=t,this._alpha=e}yM.prototype={areaStart:XE,areaEnd:XE,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(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;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=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:hM(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const gM=function t(e){function n(t){return e?new yM(t,e):new cM(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function mM(t,e){this._context=t,this._alpha=e}mM.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(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;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:hM(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const vM=function t(e){function n(t){return e?new mM(t,e):new fM(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function bM(t){this._context=t}function xM(t){return new bM(t)}function wM(t){return t<0?-1:1}function _M(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(wM(o)+wM(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function AM(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function EM(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*e,o-u,a-u*n,o,a)}function MM(t){this._context=t}function BM(t){this._context=new TM(t)}function TM(t){this._context=t}function kM(t){return new MM(t)}function FM(t){return new BM(t)}function SM(t){this._context=t}function NM(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e1)for(var n,r,i,o=1,a=t[e[0]],u=a.length;o=0;)n[e]=e;return n}function UM(t,e){return t[e]}function jM(t){const e=[];return e.key=t,e}function zM(){var t=BA([]),e=LM,n=DM,r=UM;function i(i){var o,a,u=Array.from(t.apply(this,arguments),jM),c=u.length,s=-1;for(const t of i)for(o=0,++s;o0){for(var n,r,i,o=0,a=t[0].length;o0)for(var n,r,i,o,a,u,c=0,s=t[e[0]].length;c0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function qM(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;ao&&(o=e,r=n);return r}function WM(t){var e=t.map(XM);return LM(t).sort((function(t,n){return e[t]-e[n]}))}function XM(t){for(var e,n=0,r=-1,i=t.length;++r=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var QM="%Y-%m-%dT%H:%M:%S.%LZ",tB=Date.prototype.toISOString?function(t){return t.toISOString()}:ux(QM);const eB=tB;var nB=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:cx(QM);const rB=nB;function iB(t,e,n){var r=new Ai,i=e;return null==e?(r.restart(t,e,n),r):(r._restart=r.restart,r.restart=function(t,e,n){e=+e,n=null==n?wi():+n,r._restart((function o(a){a+=i,r._restart(o,i+=e,n),t(a)}),e,n)},r.restart(t,e,n),r)}const oB=t=>()=>t;function aB(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function uB(t,e,n){this.k=t,this.x=e,this.y=n}uB.prototype={constructor:uB,scale:function(t){return 1===t?this:new uB(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new uB(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var cB=new uB(1,0,0);function sB(t){for(;!t.__zoom;)if(!(t=t.parentNode))return cB;return t.__zoom}function fB(t){t.stopImmediatePropagation()}function lB(t){t.preventDefault(),t.stopImmediatePropagation()}function hB(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function dB(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function pB(){return this.__zoom||cB}function yB(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function gB(){return navigator.maxTouchPoints||"ontouchstart"in this}function mB(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function vB(){var t,e,n,r=hB,i=dB,o=mB,a=yB,u=gB,c=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],f=250,l=Wg,h=Pe("start","zoom","end"),d=500,p=150,y=0,g=10;function m(t){t.property("__zoom",pB).on("wheel.zoom",E,{passive:!1}).on("mousedown.zoom",M).on("dblclick.zoom",B).filter(u).on("touchstart.zoom",T).on("touchmove.zoom",k).on("touchend.zoom touchcancel.zoom",F).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(t,e){return(e=Math.max(c[0],Math.min(c[1],e)))===t.k?t:new uB(e,t.x,t.y)}function b(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new uB(t.k,r,i)}function x(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function w(t,e,n,r){t.on("start.zoom",(function(){_(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){_(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,o=arguments,a=_(t,o).event(r),u=i.apply(t,o),c=null==n?x(u):"function"==typeof n?n.apply(t,o):n,s=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),f=t.__zoom,h="function"==typeof e?e.apply(t,o):e,d=l(f.invert(c).concat(s/f.k),h.invert(c).concat(s/h.k));return function(t){if(1===t)t=h;else{var e=d(t),n=s/e[2];t=new uB(n,c[0]-e[0]*n,c[1]-e[1]*n)}a.zoom(null,t)}}))}function _(t,e,n){return!n&&t.__zooming||new A(t,e)}function A(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function E(t,...e){if(r.apply(this,arguments)){var n=_(this,e).event(t),i=this.__zoom,u=Math.max(c[0],Math.min(c[1],i.k*Math.pow(2,a.apply(this,arguments)))),f=si(t);if(n.wheel)n.mouse[0][0]===f[0]&&n.mouse[0][1]===f[1]||(n.mouse[1]=i.invert(n.mouse[0]=f)),clearTimeout(n.wheel);else{if(i.k===u)return;n.mouse=[f,i.invert(f)],Hi(this),n.start()}lB(t),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),p),n.zoom("mouse",o(b(v(i,u),n.mouse[0],n.mouse[1]),n.extent,s))}}function M(t,...e){if(!n&&r.apply(this,arguments)){var i=t.currentTarget,a=_(this,e,!0).event(t),u=Zn(t.view).on("mousemove.zoom",(function(t){if(lB(t),!a.moved){var e=t.clientX-f,n=t.clientY-l;a.moved=e*e+n*n>y}a.event(t).zoom("mouse",o(b(a.that.__zoom,a.mouse[0]=si(t,i),a.mouse[1]),a.extent,s))}),!0).on("mouseup.zoom",(function(t){u.on("mousemove.zoom mouseup.zoom",null),rr(t.view,a.moved),lB(t),a.event(t).end()}),!0),c=si(t,i),f=t.clientX,l=t.clientY;nr(t.view),fB(t),a.mouse=[c,this.__zoom.invert(c)],Hi(this),a.start()}}function B(t,...e){if(r.apply(this,arguments)){var n=this.__zoom,a=si(t.changedTouches?t.changedTouches[0]:t,this),u=n.invert(a),c=n.k*(t.shiftKey?.5:2),l=o(b(v(n,c),a,u),i.apply(this,e),s);lB(t),f>0?Zn(this).transition().duration(f).call(w,l,a,t):Zn(this).call(m.transform,l,a,t)}}function T(n,...i){if(r.apply(this,arguments)){var o,a,u,c,s=n.touches,f=s.length,l=_(this,i,n.changedTouches.length===f).event(n);for(fB(n),a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=";if(!t)return"";if("string"==typeof t&&(t=qB.strToArrayBuffer(t)),t instanceof ArrayBuffer&&(t=new Uint8Array(t)),64!==(e=qB.expandAlphRange(e).join("")).length&&65!==e.length)throw new CB(`Invalid Base64 alphabet length (${e.length}): ${e}`);for(var n,r,i,o,a,u,c,s="",f=0;f>2,a=(3&n)<<4|(r=t[f++])>>4,u=(15&r)<<2|(i=t[f++])>>6,c=63&i,isNaN(r)?u=c=64:isNaN(i)&&(c=64),s+=e.charAt(o)+e.charAt(a)+e.charAt(u)+e.charAt(c);return s}function IB(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!t)return"string"===n?"":[];if(e=e||"A-Za-z0-9+/=",64!==(e=qB.expandAlphRange(e).join("")).length&&65!==e.length)throw new CB(`Error: Base64 alphabet should be 64 characters long, or 65 with a padding character. Found ${e.length}: ${e}`);if(r){var o=new RegExp("[^"+e.replace(/[[\]\\\-^$]/g,"\\$&")+"]","g");t=t.replace(o,"")}if(i){if(t.length%4==1)throw new CB(`Error: Invalid Base64 input length (${t.length}). Cannot be 4n+1, even without padding chars.`);if(65===e.length){var a=e.charAt(64),u=t.indexOf(a);if(u>=0){if(u>2,f=(3&d)<<6|p,(c=l<<2|h>>4)>=0&&c<256&&y.push(c),s>=0&&s<256&&64!==d&&y.push(s),f>=0&&f<256&&64!==p&&y.push(f)}return"string"===n?qB.byteArrayToUtf8(y):y}function OB(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(n<1||Math.round(n)!==n)throw new CB("Byte length must be a positive integer");if("None"!==e){var r="Auto"===e?/[^a-f\d]|0x/gi:qB.regexRep(e);t=t.split(r)}else t=[t];for(var i=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:"Auto";e=qB.charRep(e);var n=[],r=t.split(e);""===r[r.length-1]&&(r=r.slice(0,r.length-1));for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"Space",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8;if(n<1||Math.round(n)!==n)throw new CB("Byte length must be a positive integer");var r=qB.regexRep(e);t=t.replace(r,"");for(var i=[],o=0;o65535){t-=65536;var e=String.fromCharCode(t>>>10&1023|55296);return t=56320|1023&t,e+String.fromCharCode(t)}return String.fromCharCode(t)}},{key:"ord",value:function(t){if(2===t.length){var e=t.charCodeAt(0),n=t.charCodeAt(1);if(e>=55296&&e<56320&&n>=56320&&n<57344)return 1024*(e-55296)+n-56320+65536}return t.charCodeAt(0)}},{key:"padBytesRight",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=new Array(e);return r.fill(n),TB(t).forEach((function(t,e){r[e]=t})),r}},{key:"truncate",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return t.length>e&&(t=t.slice(0,e-n.length)+n),t}},{key:"hex",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(e="string"==typeof e?t.ord(e):e).toString(16).padStart(n,"0")}},{key:"bin",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return(e="string"==typeof e?t.ord(e):e).toString(2).padStart(n,"0")}},{key:"printable",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?t.replace(/[^\x20-\x7f]/g,"."):(t=t.replace(/[\0-\x08\x0B-\x0C\x0E-\x1F\x7F-\x9F\xAD\u0378\u0379\u037F-\u0383\u038B\u038D\u03A2\u0528-\u0530\u0557\u0558\u0560\u0588\u058B-\u058E\u0590\u05C8-\u05CF\u05EB-\u05EF\u05F5-\u0605\u061C\u061D\u06DD\u070E\u070F\u074B\u074C\u07B2-\u07BF\u07FB-\u07FF\u082E\u082F\u083F\u085C\u085D\u085F-\u089F\u08A1\u08AD-\u08E3\u08FF\u0978\u0980\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09FC-\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF2-\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B55\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B78-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BFB-\u0C00\u0C04\u0C0D\u0C11\u0C29\u0C34\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5A-\u0C5F\u0C64\u0C65\u0C70-\u0C77\u0C80\u0C81\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0D01\u0D04\u0D0D\u0D11\u0D3B\u0D3C\u0D45\u0D49\u0D4F-\u0D56\u0D58-\u0D5F\u0D64\u0D65\u0D76-\u0D78\u0D80\u0D81\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DF1\u0DF5-\u0E00\u0E3B-\u0E3E\u0E5C-\u0E80\u0E83\u0E85\u0E86\u0E89\u0E8B\u0E8C\u0E8E-\u0E93\u0E98\u0EA0\u0EA4\u0EA6\u0EA8\u0EA9\u0EAC\u0EBA\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F48\u0F6D-\u0F70\u0F98\u0FBD\u0FCD\u0FDB-\u0FFF\u10C6\u10C8-\u10CC\u10CE\u10CF\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u137D-\u137F\u139A-\u139F\u13F5-\u13FF\u169D-\u169F\u16F1-\u16FF\u170D\u1715-\u171F\u1737-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17DE\u17DF\u17EA-\u17EF\u17FA-\u17FF\u180F\u181A-\u181F\u1878-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191D-\u191F\u192C-\u192F\u193C-\u193F\u1941-\u1943\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19DD\u1A1C\u1A1D\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1A9F\u1AAE-\u1AFF\u1B4C-\u1B4F\u1B7D-\u1B7F\u1BF4-\u1BFB\u1C38-\u1C3A\u1C4A-\u1C4C\u1C80-\u1CBF\u1CC8-\u1CCF\u1CF7-\u1CFF\u1DE7-\u1DFB\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FC5\u1FD4\u1FD5\u1FDC\u1FF0\u1FF1\u1FF5\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u206F\u2072\u2073\u208F\u209D-\u209F\u20BB-\u20CF\u20F1-\u20FF\u218A-\u218F\u23F4-\u23FF\u2427-\u243F\u244B-\u245F\u2700\u2B4D-\u2B4F\u2B5A-\u2BFF\u2C2F\u2C5F\u2CF4-\u2CF8\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D71-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E3C-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u2FFC-\u2FFF\u3040\u3097\u3098\u3100-\u3104\u312E-\u3130\u318F\u31BB-\u31BF\u31E4-\u31EF\u321F\u32FF\u4DB6-\u4DBF\u9FCD-\u9FFF\uA48D-\uA48F\uA4C7-\uA4CF\uA62C-\uA63F\uA698-\uA69E\uA6F8-\uA6FF\uA78F\uA794-\uA79F\uA7AB-\uA7F7\uA82C-\uA82F\uA83A-\uA83F\uA878-\uA87F\uA8C5-\uA8CD\uA8DA-\uA8DF\uA8FC-\uA8FF\uA954-\uA95E\uA97D-\uA97F\uA9CE\uA9DA-\uA9DD\uA9E0-\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A\uAA5B\uAA7C-\uAA7F\uAAC3-\uAADA\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F-\uABBF\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBC2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFE\uFDFF\uFE1A-\uFE1F\uFE27-\uFE2F\uFE53\uFE67\uFE6C-\uFE6F\uFE75\uFEFD-\uFF00\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]/g,"."),e||(t=t.replace(/[\x09-\x10\u2028\u2029]/g,".")),t)}},{key:"escapeWhitespace",value:function(t){return t.replace(/[\x09-\x10]/g,(function(t){return String.fromCharCode(57344+t.charCodeAt(0))}))}},{key:"parseEscapedChars",value:function(t){return t.replace(/\\([abfnrtv'"]|[0-3][0-7]{2}|[0-7]{1,2}|x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]{1,6}\}|\\)/g,(function(t,e){switch(e[0]){case"\\":return"\\";case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":return String.fromCharCode(parseInt(e,8));case"a":return String.fromCharCode(7);case"b":return"\b";case"t":return"\t";case"n":return"\n";case"v":return"\v";case"f":return"\f";case"r":return"\r";case'"':return'"';case"'":return"'";case"x":return String.fromCharCode(parseInt(e.substr(1),16));case"u":return"{"===e[1]?String.fromCodePoint(parseInt(e.slice(2,-1),16)):String.fromCharCode(parseInt(e.substr(1),16))}}))}},{key:"escapeRegex",value:function(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}},{key:"expandAlphRange",value:function(e){for(var n=[],r=0;r=0;i--)n=256*n+t[i];return n}},{key:"intToByteArray",value:function(t,e,n){var r=new Array(e);if("little"===n)for(var i=0;i>>=8;else for(var o=e-1;o>=0;o--)r[o]=255&t,t>>>=8;return r}},{key:"strToArrayBuffer",value:function(e){if(FB().debug(`Converting string[${null==e?void 0:e.length}] to array buffer`),!e)return new ArrayBuffer;for(var n,r=new Uint8Array(e.length),i=e.length;i--;)if(n=e.charCodeAt(i),r[i]=n,n>255)return t.strToUtf8ArrayBuffer(e);return r.buffer}},{key:"strToUtf8ArrayBuffer",value:function(t){if(FB().debug(`Converting string[${null==t?void 0:t.length}] to UTF8 array buffer`),!t)return new ArrayBuffer;var e=new TextEncoder("utf-8").encode(t);return t.length!==e.length&&(HB()&&self&&"function"==typeof self.setOption?self.setOption("attemptHighlight",!1):$B()&&(window.app.options.attemptHighlight=!1)),e.buffer}},{key:"strToByteArray",value:function(e){if(FB().debug(`Converting string[${null==e?void 0:e.length}] to byte array`),!e)return[];for(var n,r=new Array(e.length),i=e.length;i--;)if(n=e.charCodeAt(i),r[i]=n,n>255)return t.strToUtf8ByteArray(e);return r}},{key:"strToUtf8ByteArray",value:function(e){if(FB().debug(`Converting string[${null==e?void 0:e.length}] to UTF8 byte array`),!e)return[];var n=NB().encode(e);return e.length!==n.length&&(HB()?self.setOption("attemptHighlight",!1):$B()&&(window.app.options.attemptHighlight=!1)),t.strToByteArray(n)}},{key:"strToCharcode",value:function(e){if(FB().debug(`Converting string[${null==e?void 0:e.length}] to charcode`),!e)return[];for(var n=[],r=0;r=55296&&i<56320){var o=e[r+1].charCodeAt(0);o>=56320&&o<57344&&(i=t.ord(e[r]+e[++r]))}n.push(i)}return n}},{key:"byteArrayToUtf8",value:function(e){var n;if(FB().debug(`Converting byte array[${null===(n=e)||void 0===n?void 0:n.length}] to UTF8`),!e||!e.length)return"";e instanceof Uint8Array||(e=new Uint8Array(e));try{var r=new TextDecoder("utf-8",{fatal:!0}).decode(e);return r.length!==e.length&&(HB()?self.setOption("attemptHighlight",!1):$B()&&(window.app.options.attemptHighlight=!1)),r}catch(n){return t.byteArrayToChars(e)}}},{key:"byteArrayToChars",value:function(t){if(FB().debug(`Converting byte array[${null==t?void 0:t.length}] to chars`),!t||!t.length)return"";for(var e="",n=0;n1&&void 0!==arguments[1])||arguments[1];if(FB().debug(`Converting array buffer[${null==e?void 0:e.byteLength}] to str`),!e||!e.byteLength)return"";var r=new Uint8Array(e);return n?t.byteArrayToUtf8(r):t.byteArrayToChars(r)}},{key:"calculateShannonEntropy",value:function(t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var e,n=[],r=new Array(256).fill(0);for(e=0;e0&&n.push(r[e]/t.length);var i,o=0;for(e=0;e1&&void 0!==arguments[1]?arguments[1]:[","],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["\n","\r"],o=!1,a=!1,u="",c=[],s=[];t.length&&"\ufeff"===t[0]&&(t=t.substr(1));for(var f=0;f=0?(c.push(u),u=""):!a&&i.indexOf(e)>=0?(c.push(u),u="",s.push(c),c=[],i.indexOf(n)>=0&&n!==e&&f++):u+=e:a=!0;return c.length&&(c.push(u),s.push(c)),s}},{key:"stripHtmlTags",value:function(t){function e(t,n){var r=n.replace(t,"");return r.length===n.length?r:e(t,r)}return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(t=e(/]*>(\s|\S)*?<\/script[^>]*>/gi,t),t=e(/]*>(\s|\S)*?<\/style[^>]*>/gi,t)),e(/<[^>]+>/g,t)}},{key:"escapeHtml",value:function(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","\0":""};return t?t.replace(/[&<>"'`\u0000]/g,(function(t){return e[t]})):t}},{key:"unescapeHtml",value:function(t){var e={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/","`":"`","":"\0"};return t.replace(/(&#?x?[a-z0-9]{2,4};|\ue000)/gi,(function(t){return e[t]||t}))}},{key:"encodeURIFragment",value:function(t){var e={"%2D":"-","%2E":".","%5F":"_","%7E":"~","%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2C":",","%3B":";","%3A":":","%40":"@","%2F":"/","%3F":"?"};return(t=encodeURIComponent(t)).replace(/%[0-9A-F]{2}/g,(function(t){return e[t]||t}))}},{key:"generatePrettyRecipe",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="",r="",i="",o="",a="";return t.forEach((function(t){r=t.op.replace(/ /g,"_"),i=JSON.stringify(t.args).slice(1,-1).replace(/'/g,"\\'").replace(/"((?:[^"\\]|\\.)*)"/g,"'$1'").replace(/\\"/g,'"'),o=t.disabled?"/disabled":"",a=t.breakpoint?"/breakpoint":"",n+=`${r}(${i}${o}${a})`,e&&(n+="\n")})),n}},{key:"parseRecipeConfig",value:function(t){if(0===(t=t.trim()).length)return[];if("["===t[0])return JSON.parse(t);var e,n;t=t.replace(/\n/g,"");for(var r=/([^(]+)\(((?:'[^'\\]*(?:\\.[^'\\]*)*'|[^)/'])*)(\/[^)]+)?\)/g,i=[];e=r.exec(t);){n="["+(n=e[2].replace(/"/g,'\\"').replace(/(^|,|{|:)'/g,'$1"').replace(/([^\\]|(?:\\\\)+)'(,|:|}|$)/g,'$1"$2').replace(/\\'/g,"'"))+"]";var o={op:e[1].replace(/_/g," "),args:JSON.parse(n)};e[3]&&e[3].indexOf("disabled")>0&&(o.disabled=!0),e[3]&&e[3].indexOf("breakpoint")>0&&(o.breakpoint=!0),i.push(o)}return i}},{key:"displayFilesAsHTML",value:(e=_B(EB().mark((function e(n){var r,i,o,a,u;return EB().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=function(e){return`
\n
\n
\n ${t.escapeHtml(e.name)}\n
\n
\n
`},i=function(e,n){if(n.startsWith("image")){var r="data:";return r+=n+";",""}return`
${t.escapeHtml(t.arrayBufferToStr(e.buffer))}
`},o=function(){var e=_B(EB().mark((function e(n,r){var o,a,u,c;return EB().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.readFile(n);case 2:return o=e.sent,a=new Blob([o],{type:n.type||"octet/stream"}),u=URL.createObjectURL(a),c=`
\n
\n
\n \n \n ${n.size.toLocaleString()} bytes\n \n save\n \n \n open_in_browser\n \n \n
\n
\n
\n
\n ${i(o,n.type)}\n
\n
\n
`,e.abrupt("return",c);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),a=`
\n ${n.length} file(s) found\n
`,u=0;case 5:if(!(u=t.size)e(i);else{var n=t.slice(o,o+a);r.readAsArrayBuffer(n)}};r.onload=function(t){i.set(new Uint8Array(r.result),o),o+=a,u()},r.onerror=function(t){n(r.error.message)},u()}))}},{key:"readFileSync",value:function(t){if(!zB())throw new TypeError("Browser environment cannot support readFileSync");return Uint8Array.from(t.data).buffer}},{key:"mod",value:function(t,e){return(t%e+e)%e}},{key:"gcd",value:function(e,n){return n?t.gcd(n,e%n):e}},{key:"modInv",value:function(t,e){t%=e;for(var n=1;n>=0,e=String(void 0!==e?e:" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),e.slice(0,t)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(t,e){return t>>=0,e=String(void 0!==e?e:" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),String(this)+e.slice(0,t))});const YB=function(t){c(o,t);var e,n,i=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=l(e);if(n){var i=l(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return f(this,t)});function o(){var t;r(this,o);for(var e=arguments.length,n=new Array(e),a=0;a0||t===e?e:e-1}function iT(t){for(var e,n,r=1,i=t.length,o=t[0]+"";rs^n?1:-1;for(u=(c=i.length)<(s=o.length)?c:s,a=0;ao[a]^n?1:-1;return c==s?0:c>s^n?1:-1}function aT(t,e,n,r){if(tn||t!==WB(t))throw Error(XB+(r||"Argument")+("number"==typeof t?tn?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function uT(t){var e=t.c.length-1;return rT(t.e/KB)==e&&t.c[e]%2!=0}function cT(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function sT(t,e,n){var r,i;if(e<0){for(i=n+".";++e;i+=n);t=i+t}else if(++e>(r=t.length)){for(i=n,e-=r;--e;i+=n);t+=i}else eb?h.c=h.e=null:t.e=10;c/=10,u++);return void(u>b?h.c=h.e=null:(h.e=u,h.c=[t]))}l=String(t)}else{if(!GB.test(l=String(t)))return i(h,l,s);h.s=45==l.charCodeAt(0)?(l=l.slice(1),-1):1}(u=l.indexOf("."))>-1&&(l=l.replace(".","")),(c=l.search(/e/i))>0?(u<0&&(u=c),u+=+l.slice(c+1),l=l.substring(0,c)):u<0&&(u=l.length)}else{if(aT(e,2,E.length,"Base"),10==e&&M)return S(h=new B(t),p+h.e+1,y);if(l=String(t),s="number"==typeof t){if(0*t!=0)return i(h,l,s,e);if(h.s=1/t<0?(l=l.slice(1),-1):1,B.DEBUG&&l.replace(/^0\.0*|\./,"").length>15)throw Error(JB+t)}else h.s=45===l.charCodeAt(0)?(l=l.slice(1),-1):1;for(n=E.slice(0,e),u=c=0,f=l.length;cu){u=f;continue}}else if(!a&&(l==l.toUpperCase()&&(l=l.toLowerCase())||l==l.toLowerCase()&&(l=l.toUpperCase()))){a=!0,c=-1,u=0;continue}return i(h,String(t),s,e)}s=!1,(u=(l=r(l,e,10,h.s)).indexOf("."))>-1?l=l.replace(".",""):u=l.length}for(c=0;48===l.charCodeAt(c);c++);for(f=l.length;48===l.charCodeAt(--f););if(l=l.slice(c,++f)){if(f-=c,s&&B.DEBUG&&f>15&&(t>QB||t!==WB(t)))throw Error(JB+h.s*t);if((u=u-c-1)>b)h.c=h.e=null;else if(u=m)?cT(c,a):sT(c,a,"0");else if(o=(t=S(new B(t),e,n)).e,u=(c=iT(t.c)).length,1==r||2==r&&(e<=o||o<=g)){for(;uu){if(--e>0)for(c+=".";e--;c+="0");}else if((e+=o-u)>0)for(o+1==u&&(c+=".");e--;c+="0");return t.s<0&&i?"-"+c:c}function k(t,e){for(var n,r=1,i=new B(t[0]);r=10;i/=10,r++);return(n=r+n*KB-1)>b?t.c=t.e=null:n=10;u/=10,i++);if((o=e-i)<0)o+=KB,a=e,f=(c=l[s=0])/h[i-a-1]%10|0;else if((s=VB((o+1)/KB))>=l.length){if(!r)break t;for(;l.length<=s;l.push(0));c=f=0,i=1,a=(o%=KB)-KB+1}else{for(c=u=l[s],i=1;u>=10;u/=10,i++);f=(a=(o%=KB)-KB+i)<0?0:c/h[i-a-1]%10|0}if(r=r||e<0||null!=l[s+1]||(a<0?c:c%h[i-a-1]),r=n<4?(f||r)&&(0==n||n==(t.s<0?3:2)):f>5||5==f&&(4==n||r||6==n&&(o>0?a>0?c/h[i-a]:0:l[s-1])%10&1||n==(t.s<0?8:7)),e<1||!l[0])return l.length=0,r?(e-=t.e+1,l[0]=h[(KB-e%KB)%KB],t.e=-e||0):l[0]=t.e=0,t;if(0==o?(l.length=s,u=1,s--):(l.length=s+1,u=h[KB-o],l[s]=a>0?WB(c/h[i-a]%h[a])*u:0),r)for(;;){if(0==s){for(o=1,a=l[0];a>=10;a/=10,o++);for(a=l[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(t.e++,l[0]==ZB&&(l[0]=1));break}if(l[s]+=u,l[s]!=ZB)break;l[s--]=0,u=1}for(o=l.length;0===l[--o];l.pop());}t.e>b?t.c=t.e=null:t.e=m?cT(e,n):sT(e,n,"0"),t.s<0?"-"+e:e)}return B.clone=t,B.ROUND_UP=0,B.ROUND_DOWN=1,B.ROUND_CEIL=2,B.ROUND_FLOOR=3,B.ROUND_HALF_UP=4,B.ROUND_HALF_DOWN=5,B.ROUND_HALF_EVEN=6,B.ROUND_HALF_CEIL=7,B.ROUND_HALF_FLOOR=8,B.EUCLID=9,B.config=B.set=function(t){var e,n;if(null!=t){if("object"!=typeof t)throw Error(XB+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(aT(n=t[e],0,nT,e),p=n),t.hasOwnProperty(e="ROUNDING_MODE")&&(aT(n=t[e],0,8,e),y=n),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((n=t[e])&&n.pop?(aT(n[0],-nT,0,e),aT(n[1],0,nT,e),g=n[0],m=n[1]):(aT(n,-nT,nT,e),g=-(m=n<0?-n:n))),t.hasOwnProperty(e="RANGE"))if((n=t[e])&&n.pop)aT(n[0],-nT,-1,e),aT(n[1],1,nT,e),v=n[0],b=n[1];else{if(aT(n,-nT,nT,e),!n)throw Error(XB+e+" cannot be zero: "+n);v=-(b=n<0?-n:n)}if(t.hasOwnProperty(e="CRYPTO")){if((n=t[e])!==!!n)throw Error(XB+e+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw x=!n,Error(XB+"crypto unavailable");x=n}else x=n}if(t.hasOwnProperty(e="MODULO_MODE")&&(aT(n=t[e],0,9,e),w=n),t.hasOwnProperty(e="POW_PRECISION")&&(aT(n=t[e],0,nT,e),_=n),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(n=t[e]))throw Error(XB+e+" not an object: "+n);A=n}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(n=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(XB+e+" invalid: "+n);M="0123456789"==n.slice(0,10),E=n}}return{DECIMAL_PLACES:p,ROUNDING_MODE:y,EXPONENTIAL_AT:[g,m],RANGE:[v,b],CRYPTO:x,MODULO_MODE:w,POW_PRECISION:_,FORMAT:A,ALPHABET:E}},B.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!B.DEBUG)return!0;var e,n,r=t.c,i=t.e,o=t.s;t:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-nT&&i<=nT&&i===WB(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break t}if((e=(i+1)%KB)<1&&(e+=KB),String(r[0]).length==e){for(e=0;e=ZB||n!==WB(n))break t;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(XB+"Invalid BigNumber: "+t)},B.maximum=B.max=function(){return k(arguments,h.lt)},B.minimum=B.min=function(){return k(arguments,h.gt)},B.random=(o=9007199254740992,a=Math.random()*o&2097151?function(){return WB(Math.random()*o)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,n,r,i,o,u=0,c=[],s=new B(d);if(null==t?t=p:aT(t,0,nT),i=VB(t/KB),x)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(i*=2));u>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),e[u]=n[0],e[u+1]=n[1]):(c.push(o%1e14),u+=2);u=i/2}else{if(!crypto.randomBytes)throw x=!1,Error(XB+"crypto unavailable");for(e=crypto.randomBytes(i*=7);u=9e15?crypto.randomBytes(7).copy(e,u):(c.push(o%1e14),u+=7);u=i/7}if(!x)for(;u=10;o/=10,u++);un-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(r,i,o,a,u){var c,s,f,l,h,d,g,m,v=r.indexOf("."),b=p,x=y;for(v>=0&&(l=_,_=0,r=r.replace(".",""),d=(m=new B(i)).pow(r.length-v),_=l,m.c=e(sT(iT(d.c),d.e,"0"),10,o,t),m.e=m.c.length),f=l=(g=e(r,i,o,u?(c=E,t):(c=t,E))).length;0==g[--l];g.pop());if(!g[0])return c.charAt(0);if(v<0?--f:(d.c=g,d.e=f,d.s=a,g=(d=n(d,m,b,x,o)).c,h=d.r,f=d.e),v=g[s=f+b+1],l=o/2,h=h||s<0||null!=g[s+1],h=x<4?(null!=v||h)&&(0==x||x==(d.s<0?3:2)):v>l||v==l&&(4==x||h||6==x&&1&g[s-1]||x==(d.s<0?8:7)),s<1||!g[0])r=h?sT(c.charAt(1),-b,c.charAt(0)):c.charAt(0);else{if(g.length=s,h)for(--o;++g[--s]>o;)g[s]=0,s||(++f,g=[1].concat(g));for(l=g.length;!g[--l];);for(v=0,r="";v<=l;r+=c.charAt(g[v++]));r=sT(r,f,c.charAt(0))}return r}}(),n=function(){function t(t,e,n){var r,i,o,a,u=0,c=t.length,s=e%eT,f=e/eT|0;for(t=t.slice();c--;)u=((i=s*(o=t[c]%eT)+(r=f*o+(a=t[c]/eT|0)*s)%eT*eT+u)/n|0)+(r/eT|0)+f*a,t[c]=i%n;return u&&(t=[u].concat(t)),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]1;t.splice(0,1));}return function(r,i,o,a,u){var c,s,f,l,h,d,p,y,g,m,v,b,x,w,_,A,E,M=r.s==i.s?1:-1,T=r.c,k=i.c;if(!(T&&T[0]&&k&&k[0]))return new B(r.s&&i.s&&(T?!k||T[0]!=k[0]:k)?T&&0==T[0]||!k?0*M:M/0:NaN);for(g=(y=new B(M)).c=[],M=o+(s=r.e-i.e)+1,u||(u=ZB,s=rT(r.e/KB)-rT(i.e/KB),M=M/KB|0),f=0;k[f]==(T[f]||0);f++);if(k[f]>(T[f]||0)&&s--,M<0)g.push(1),l=!0;else{for(w=T.length,A=k.length,f=0,M+=2,(h=WB(u/(k[0]+1)))>1&&(k=t(k,h,u),T=t(T,h,u),A=k.length,w=T.length),x=A,v=(m=T.slice(0,A)).length;v=u/2&&_++;do{if(h=0,(c=e(k,m,A,v))<0){if(b=m[0],A!=v&&(b=b*u+(m[1]||0)),(h=WB(b/_))>1)for(h>=u&&(h=u-1),p=(d=t(k,h,u)).length,v=m.length;1==e(d,m,p,v);)h--,n(d,A=10;M/=10,f++);S(y,o+(y.e=f+s*KB-1)+1,a,l)}else y.e=s,y.r=+l;return y}}(),u=/^(-?)0([xbo])(?=\w[\w.]*$)/i,c=/^([^.]+)\.$/,s=/^\.([^.]+)$/,f=/^-?(Infinity|NaN)$/,l=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(t,e,n,r){var i,o=n?e:e.replace(l,"");if(f.test(o))t.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(u,(function(t,e,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?t:e})),r&&(i=r,o=o.replace(c,"$1").replace(s,"0.$1")),e!=o))return new B(o,i);if(B.DEBUG)throw Error(XB+"Not a"+(r?" base "+r:"")+" number: "+e);t.s=null}t.c=t.e=null},h.absoluteValue=h.abs=function(){var t=new B(this);return t.s<0&&(t.s=1),t},h.comparedTo=function(t,e){return oT(this,new B(t,e))},h.decimalPlaces=h.dp=function(t,e){var n,r,i,o=this;if(null!=t)return aT(t,0,nT),null==e?e=y:aT(e,0,8),S(new B(o),t+o.e+1,e);if(!(n=o.c))return null;if(r=((i=n.length-1)-rT(this.e/KB))*KB,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},h.dividedBy=h.div=function(t,e){return n(this,new B(t,e),p,y)},h.dividedToIntegerBy=h.idiv=function(t,e){return n(this,new B(t,e),0,1)},h.exponentiatedBy=h.pow=function(t,e){var n,r,i,o,a,u,c,s,f=this;if((t=new B(t)).c&&!t.isInteger())throw Error(XB+"Exponent not an integer: "+N(t));if(null!=e&&(e=new B(e)),a=t.e>14,!f.c||!f.c[0]||1==f.c[0]&&!f.e&&1==f.c.length||!t.c||!t.c[0])return s=new B(Math.pow(+N(f),a?t.s*(2-uT(t)):+N(t))),e?s.mod(e):s;if(u=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new B(NaN);(r=!u&&f.isInteger()&&e.isInteger())&&(f=f.mod(e))}else{if(t.e>9&&(f.e>0||f.e<-1||(0==f.e?f.c[0]>1||a&&f.c[1]>=24e7:f.c[0]<8e13||a&&f.c[0]<=9999975e7)))return o=f.s<0&&uT(t)?-0:0,f.e>-1&&(o=1/o),new B(u?1/o:o);_&&(o=VB(_/KB+2))}for(a?(n=new B(.5),u&&(t.s=1),c=uT(t)):c=(i=Math.abs(+N(t)))%2,s=new B(d);;){if(c){if(!(s=s.times(f)).c)break;o?s.c.length>o&&(s.c.length=o):r&&(s=s.mod(e))}if(i){if(0===(i=WB(i/2)))break;c=i%2}else if(S(t=t.times(n),t.e+1,1),t.e>14)c=uT(t);else{if(0==(i=+N(t)))break;c=i%2}f=f.times(f),o?f.c&&f.c.length>o&&(f.c.length=o):r&&(f=f.mod(e))}return r?s:(u&&(s=d.div(s)),e?s.mod(e):o?S(s,_,y,void 0):s)},h.integerValue=function(t){var e=new B(this);return null==t?t=y:aT(t,0,8),S(e,e.e+1,t)},h.isEqualTo=h.eq=function(t,e){return 0===oT(this,new B(t,e))},h.isFinite=function(){return!!this.c},h.isGreaterThan=h.gt=function(t,e){return oT(this,new B(t,e))>0},h.isGreaterThanOrEqualTo=h.gte=function(t,e){return 1===(e=oT(this,new B(t,e)))||0===e},h.isInteger=function(){return!!this.c&&rT(this.e/KB)>this.c.length-2},h.isLessThan=h.lt=function(t,e){return oT(this,new B(t,e))<0},h.isLessThanOrEqualTo=h.lte=function(t,e){return-1===(e=oT(this,new B(t,e)))||0===e},h.isNaN=function(){return!this.s},h.isNegative=function(){return this.s<0},h.isPositive=function(){return this.s>0},h.isZero=function(){return!!this.c&&0==this.c[0]},h.minus=function(t,e){var n,r,i,o,a=this,u=a.s;if(e=(t=new B(t,e)).s,!u||!e)return new B(NaN);if(u!=e)return t.s=-e,a.plus(t);var c=a.e/KB,s=t.e/KB,f=a.c,l=t.c;if(!c||!s){if(!f||!l)return f?(t.s=-e,t):new B(l?a:NaN);if(!f[0]||!l[0])return l[0]?(t.s=-e,t):new B(f[0]?a:3==y?-0:0)}if(c=rT(c),s=rT(s),f=f.slice(),u=c-s){for((o=u<0)?(u=-u,i=f):(s=c,i=l),i.reverse(),e=u;e--;i.push(0));i.reverse()}else for(r=(o=(u=f.length)<(e=l.length))?u:e,u=e=0;e0)for(;e--;f[n++]=0);for(e=ZB-1;r>u;){if(f[--r]=0;){for(n=0,h=b[i]%g,d=b[i]/g|0,o=i+(a=c);o>i;)n=((s=h*(s=v[--a]%g)+(u=d*s+(f=v[a]/g|0)*h)%g*g+p[o]+n)/y|0)+(u/g|0)+d*f,p[o--]=s%y;p[o]=n}return n?++r:p.splice(0,1),F(t,p,r)},h.negated=function(){var t=new B(this);return t.s=-t.s||null,t},h.plus=function(t,e){var n,r=this,i=r.s;if(e=(t=new B(t,e)).s,!i||!e)return new B(NaN);if(i!=e)return t.s=-e,r.minus(t);var o=r.e/KB,a=t.e/KB,u=r.c,c=t.c;if(!o||!a){if(!u||!c)return new B(i/0);if(!u[0]||!c[0])return c[0]?t:new B(u[0]?r:0*i)}if(o=rT(o),a=rT(a),u=u.slice(),i=o-a){for(i>0?(a=o,n=c):(i=-i,n=u),n.reverse();i--;n.push(0));n.reverse()}for((i=u.length)-(e=c.length)<0&&(n=c,c=u,u=n,e=i),i=0;e;)i=(u[--e]=u[e]+c[e]+i)/ZB|0,u[e]=ZB===u[e]?0:u[e]%ZB;return i&&(u=[i].concat(u),++a),F(t,u,a)},h.precision=h.sd=function(t,e){var n,r,i,o=this;if(null!=t&&t!==!!t)return aT(t,1,nT),null==e?e=y:aT(e,0,8),S(new B(o),t,e);if(!(n=o.c))return null;if(r=(i=n.length-1)*KB+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return t&&o.e+1>r&&(r=o.e+1),r},h.shiftedBy=function(t){return aT(t,-9007199254740991,QB),this.times("1e"+t)},h.squareRoot=h.sqrt=function(){var t,e,r,i,o,a=this,u=a.c,c=a.s,s=a.e,f=p+4,l=new B("0.5");if(1!==c||!u||!u[0])return new B(!c||c<0&&(!u||u[0])?NaN:u?a:1/0);if(0==(c=Math.sqrt(+N(a)))||c==1/0?(((e=iT(u)).length+s)%2==0&&(e+="0"),c=Math.sqrt(+e),s=rT((s+1)/2)-(s<0||s%2),r=new B(e=c==1/0?"5e"+s:(e=c.toExponential()).slice(0,e.indexOf("e")+1)+s)):r=new B(c+""),r.c[0])for((c=(s=r.e)+f)<3&&(c=0);;)if(o=r,r=l.times(o.plus(n(a,o,f,1))),iT(o.c).slice(0,c)===(e=iT(r.c)).slice(0,c)){if(r.e0&&p>0){for(o=p%u||u,f=d.substr(0,o);o0&&(f+=s+d.slice(o)),h&&(f="-"+f)}r=l?f+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?l.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):l):f}return(n.prefix||"")+r+(n.suffix||"")},h.toFraction=function(t){var e,r,i,o,a,u,c,s,f,l,h,p,g=this,m=g.c;if(null!=t&&(!(c=new B(t)).isInteger()&&(c.c||1!==c.s)||c.lt(d)))throw Error(XB+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+N(c));if(!m)return new B(g);for(e=new B(d),f=r=new B(d),i=s=new B(d),p=iT(m),a=e.e=p.length-g.e-1,e.c[0]=tT[(u=a%KB)<0?KB+u:u],t=!t||c.comparedTo(e)>0?a>0?e:f:c,u=b,b=1/0,c=new B(p),s.c[0]=0;l=n(c,e,0,1),1!=(o=r.plus(l.times(i))).comparedTo(t);)r=i,i=o,f=s.plus(l.times(o=f)),s=o,e=c.minus(l.times(o=e)),c=o;return o=n(t.minus(r),i,0,1),s=s.plus(o.times(f)),r=r.plus(o.times(i)),s.s=f.s=g.s,h=n(f,i,a*=2,y).minus(g).abs().comparedTo(n(s,r,a,y).minus(g).abs())<1?[f,i]:[s,r],b=u,h},h.toNumber=function(){return+N(this)},h.toPrecision=function(t,e){return null!=t&&aT(t,1,nT),T(this,t,e,2)},h.toString=function(t){var e,n=this,i=n.s,o=n.e;return null===o?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(null==t?e=o<=g||o>=m?cT(iT(n.c),o):sT(iT(n.c),o,"0"):10===t&&M?e=sT(iT((n=S(new B(n),p+o+1,y)).c),n.e,"0"):(aT(t,2,E.length,"Base"),e=r(sT(iT(n.c),o,"0"),10,t,i,!0)),i<0&&n.c[0]&&(e="-"+e)),e},h.valueOf=h.toJSON=function(){return N(this)},h._isBigNumber=!0,h[Symbol.toStringTag]="BigNumber",h[Symbol.for("nodejs.util.inspect.custom")]=h.valueOf,null!=e&&B.set(e),B}();const lT=fT;var hT=function(){function t(e){r(this,t),this.bytes=e,this.length=this.bytes.length,this.position=0,this.bitPos=0}return a(t,[{key:"getBytes",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!(this.position>this.length)){var e=null!==t?this.position+t:this.length,n=this.bytes.slice(this.position,e);return this.position=e,this.bitPos=0,n}}},{key:"readString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(!(this.position>this.length)){-1===t&&(t=this.length-this.position);for(var e="",n=this.position;n1&&void 0!==arguments[1]?arguments[1]:"be";if(!(this.position>this.length)){var n=0;if("be"===e)for(var r=this.position;r=this.position;i--)n<<=8,n|=this.bytes[i];return this.position+=t,this.bitPos=0,n}}},{key:"readBits",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(!(this.position>this.length)){var n,r=0,i=0;for(r=this.bytes[this.position++]&(n=this.bitPos,"be"===e?(1<<8-n)-1:256-(1<>>=this.bitPos),i=8-this.bitPos,this.bitPos=0;it){var o=i-t;"be"===e?r>>>=o:r&=(1<this.length))if(this.bitPos=0,"number"!=typeof t){var e=t.length,n=t[e-1];this.position=e;for(var r,i=function(t,e){var n=new Array;return t.forEach((function(t,r){n[t]=e-r})),n}(t,e);this.position=0;o--)if(this.bytes[this.position-e+o]!==t[o]){r=!1,this.position+=i[t[o]];break}if(r){this.position-=e;break}}}else for(;++this.positionthis.length)throw new Error("Cannot move to position "+e+" in stream. Out of bounds.");this.position=e,this.bitPos=0}},{key:"moveBackwardsBy",value:function(t){var e=this.position-t;if(e<0||e>this.length)throw new Error("Cannot move to position "+e+" in stream. Out of bounds.");this.position=e,this.bitPos=0}},{key:"moveBackwardsByBits",value:function(t){if(t<=this.bitPos)this.bitPos-=t;else for(this.bitPos>0&&(t-=this.bitPos,this.bitPos=0);t>0;)this.moveBackwardsBy(1),this.bitPos=8,this.moveBackwardsByBits(t),t-=8}},{key:"moveTo",value:function(t){if(t<0||t>this.length)throw new Error("Cannot move to position "+t+" in stream. Out of bounds.");this.position=t,this.bitPos=0}},{key:"hasMore",value:function(){return this.position0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.position;return this.bitPos>0&&e++,this.bytes.slice(t,e)}}]),t}();function dT(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return pT(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pT(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function pT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n>4],c=i[(15&a)>>2],s=(2&a)>>1;if("free"===u||"bad"===u||"reserved"===c){n.moveBackwardsBy(1);break}var f=Math.floor(144*u/c+s);if(n.position+f>n.length){n.moveTo(n.length);break}n.moveForwardsBy(f-3)}return n.carve()}},{name:"MPEG-4 Part 14 audio",extension:"m4a",mime:"audio/m4a",description:"",signature:[{4:102,5:116,6:121,7:112,8:77,9:52,10:65},{0:77,1:52,2:65,3:32}],extractor:null},{name:"Free Lossless Audio Codec",extension:"flac",mime:"audio/x-flac",description:"",signature:{0:102,1:76,2:97,3:67},extractor:null},{name:"Adaptive Multi-Rate audio codec",extension:"amr",mime:"audio/amr",description:"",signature:{0:35,1:33,2:65,3:77,4:82,5:10},extractor:null},{name:"Audacity",extension:"au",mime:"audio/x-au",description:"",signature:{0:100,1:110,2:115,3:46,24:65,25:117,26:100,27:97,28:99,29:105,30:116,31:121,32:66,33:108,34:111,35:99,36:107,37:70,38:105,39:108,40:101},extractor:null},{name:"Audacity Block",extension:"auf",mime:"application/octet-stream",description:"",signature:{0:65,1:117,2:100,3:97,4:99,5:105,6:116,7:121,8:66,9:108,10:111,11:99,12:107,13:70,14:105,15:108,16:101},extractor:null},{name:"Audio Interchange File",extension:"aif",mime:"audio/x-aiff",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:70},extractor:null},{name:"Audio Interchange File (compressed)",extension:"aifc",mime:"audio/x-aifc",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:67},extractor:null}],Documents:[{name:"Portable Document Format",extension:"pdf",mime:"application/pdf",description:"",signature:{0:37,1:80,2:68,3:70},extractor:function(t,e){var n=new hT(t.slice(e));return n.continueUntil([37,37,69,79,70]),n.moveForwardsBy(5),n.consumeIf(13),n.consumeIf(10),n.carve()}},{name:"Portable Document Format (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:65,1:74,2:86,3:66,4:69,5:82,6:105},extractor:null},{name:"Adobe PostScript",extension:"ps,eps,ai,pfa",mime:"application/postscript",description:"",signature:{0:37,1:33,2:80,3:83,4:45,5:65,6:100,7:111,8:98,9:101},extractor:null},{name:"PostScript",extension:"ps",mime:"application/postscript",description:"",signature:{0:37,1:33},extractor:null},{name:"Encapsulated PostScript",extension:"eps,ai",mime:"application/eps",description:"",signature:{0:197,1:208,2:211,3:198},extractor:null},{name:"Rich Text Format",extension:"rtf",mime:"application/rtf",description:"",signature:{0:123,1:92,2:114,3:116},extractor:function(t,e){var n=new hT(t.slice(e)),r=0;if(123!==n.readInt(1))throw new Error("Not a valid RTF file");for(r++;r>0&&n.hasMore();)switch(n.readInt(1)){case 123:r++;break;case 125:r--;break;case 92:n.consumeIf(92),n.position++}return n.carve()}},{name:"Microsoft Office document/OLE2",extension:"ole2,doc,xls,dot,ppt,xla,ppa,pps,pot,msi,sdw,db,vsd,msg",mime:"application/msword,application/vnd.ms-excel,application/vnd.ms-powerpoint",description:"Microsoft Office documents",signature:{0:208,1:207,2:17,3:224,4:161,5:177,6:26,7:225},extractor:null},{name:"Microsoft Office document/OLE2 (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:48,1:77,2:56,3:82,4:52,5:75,6:71,7:120},extractor:null},{name:"Microsoft Office 2007+ document",extension:"docx,xlsx,pptx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.presentationml.presentation",description:"",signature:{38:95,39:84,40:121,41:112,42:101,43:115,44:93,45:46,46:120,47:109,48:108},extractor:gT},{name:"Microsoft Access database",extension:"mdb,mda,mde,mdt,fdb,psa",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:74,14:101,15:116},extractor:null},{name:"Microsoft Access 2007+ database",extension:"accdb,accde,accda,accdu",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:65,14:67,15:69,16:32},extractor:null},{name:"Microsoft OneNote document",extension:"one",mime:"application/onenote",description:"",signature:{0:228,1:82,2:92,3:123,4:140,5:216,6:167,7:77,8:174,9:177,10:83,11:120,12:208,13:41,14:150,15:211},extractor:null},{name:"Outlook Express database",extension:"dbx",mime:"application/octet-stream",description:"",signature:{0:207,1:173,2:18,3:254,4:[48,197,198,199],11:17},extractor:null},{name:"Personal Storage Table (Outlook)",extension:"pst,ost,fdb,pab",mime:"application/octet-stream",description:"",signature:{0:33,1:66,2:68,3:78},extractor:null},{name:"Microsoft Exchange Database",extension:"edb",mime:"application/octet-stream",description:"",signature:{4:239,5:205,6:171,7:137,8:[32,35],9:6,10:0,11:0,12:[0,1],13:0,14:0,15:0},extractor:null},{name:"WordPerfect document",extension:"wpd,wp,wp5,wp6,wpp,bk!,wcm",mime:"application/wordperfect",description:"",signature:{0:255,1:87,2:80,3:67,7:[0,1,2],8:1,9:10},extractor:null},{name:"EPUB e-book",extension:"epub",mime:"application/epub+zip",description:"",signature:{0:80,1:75,2:3,3:4,30:109,31:105,32:109,33:101,34:116,35:121,36:112,37:101,38:97,39:112,40:112,41:108,42:105,43:99,44:97,45:116,46:105,47:111,48:110,49:47,50:101,51:112,52:117,53:98,54:43,55:122,56:105,57:112},extractor:gT}],Applications:[{name:"Windows Portable Executable",extension:"exe,dll,drv,vxd,sys,ocx,vbx,com,fon,scr",mime:"application/vnd.microsoft.portable-executable",description:"",signature:{0:77,1:90,3:[0,1,2],5:[0,1,2]},extractor:function(t,e){var n=new hT(t.slice(e));n.moveTo(60);var r=n.readInt(4,"le");n.moveTo(r),n.moveForwardsBy(6);var i=n.readInt(2,"le");n.moveForwardsBy(16);var o=523===n.readInt(2,"le")?112:96;n.moveForwardsBy(o-2),n.moveForwardsBy(32);var a=n.readInt(4,"le"),u=n.readInt(4,"le");if(a>0)return n.moveTo(a+u),n.carve();n.moveForwardsBy(88),n.moveForwardsBy(40*(i-1)),n.moveForwardsBy(16);var c=n.readInt(4,"le"),s=n.readInt(4,"le");return n.moveTo(s+c),n.carve()}},{name:"Executable and Linkable Format",extension:"elf,bin,axf,o,prx,so",mime:"application/x-executable",description:"Executable and Linkable Format file. No standard file extension.",signature:{0:127,1:69,2:76,3:70},extractor:function(t,e){var n=new hT(t.slice(e));n.moveForwardsBy(4);var r=1===n.readInt(1),i=1===n.readInt(1)?"le":"be";n.moveForwardsBy(r?26:34);var o=r?n.readInt(4,i):n.readInt(8,i);n.moveForwardsBy(10);var a=n.readInt(2,i),u=n.readInt(2,i);return n.moveTo(o),n.moveForwardsBy(a*u),n.carve()}},{name:"MacOS Mach-O object",extension:"dylib",mime:"application/octet-stream",description:"",signature:[{0:202,1:254,2:186,3:190,4:0,5:0,6:0,7:[1,2,3]},{0:206,1:250,2:237,3:254,4:7,5:0,6:0,7:0,8:[1,2,3]}],extractor:mT},{name:"MacOS Mach-O 64-bit object",extension:"dylib",mime:"application/octet-stream",description:"",signature:{0:207,1:250,2:237,3:254},extractor:mT},{name:"Adobe Flash",extension:"swf",mime:"application/x-shockwave-flash",description:"",signature:{0:[67,70],1:87,2:83},extractor:null},{name:"Java Class",extension:"class",mime:"application/java-vm",description:"",signature:{0:202,1:254,2:186,3:190},extractor:null},{name:"Dalvik Executable",extension:"dex",mime:"application/octet-stream",description:"Dalvik Executable as used by Android",signature:{0:100,1:101,2:120,3:10,4:48,5:51,6:53,7:0},extractor:null},{name:"Google Chrome Extension",extension:"crx",mime:"application/crx",description:"Google Chrome extension or packaged app",signature:{0:67,1:114,2:50,3:52},extractor:null}],Archives:[{name:"PKZIP archive",extension:"zip",mime:"application/zip",description:"",signature:{0:80,1:75,2:[3,5,7],3:[4,6,8]},extractor:gT},{name:"PKZIP archive (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:85,1:69,2:115,3:68,4:66,5:66},extractor:null},{name:"TAR archive",extension:"tar",mime:"application/x-tar",description:"",signature:{257:117,258:115,259:116,260:97,261:114},extractor:function(t,e){for(var n=new hT(t.slice(e));n.hasMore();){if(n.moveForwardsBy(257),n.getBytes(5).join("")!==[117,115,116,97,114].join("")){n.moveBackwardsBy(262);break}n.moveBackwardsBy(138);var r=0;n.getBytes(11).forEach((function(t,e){r+=(t-48).toString()})),r=512*Math.ceil(parseInt(r,8)/512),n.moveForwardsBy(r+377)}return n.consumeWhile(0),n.carve()}},{name:"Roshal Archive",extension:"rar",mime:"application/x-rar-compressed",description:"",signature:{0:82,1:97,2:114,3:33,4:26,5:7,6:[0,1]},extractor:null},{name:"Gzip",extension:"gz",mime:"application/gzip",description:"",signature:{0:31,1:139,2:8},extractor:function(t,e){var n=new hT(t.slice(e));n.moveForwardsBy(3);var r=n.readInt(1);if(n.moveForwardsBy(4),n.readInt(1),n.moveForwardsBy(1),4&r){var i=n.readInt(2,"le");n.moveForwardsby(i)}return 8&r&&(n.continueUntil(0),n.moveForwardsBy(1)),16&r&&(n.continueUntil(0),n.moveForwardsBy(1)),2&r&&n.moveForwardsBy(2),AT(n),n.moveForwardsBy(8),n.carve()}},{name:"Bzip2",extension:"bz2",mime:"application/x-bzip2",description:"",signature:{0:66,1:90,2:104},extractor:function(t,e){for(var n=new hT(t.slice(e)),r=[[119,36,83,133,9],[238,72,167,10,18],[220,145,78,20,36],[185,34,156,40,72],[114,69,56,80,144],[187,146,41,194,132],[93,201,20,225,66],[46,228,138,112,161],[23,114,69,56,80]],i=0;i=2368&&n.moveForwardsBy(4);var u=n.readInt(1,"be");if(n.moveForwardsBy(u),64&a){var c=n.readInt(4,"be");n.moveForwardsBy(c)}for(n.moveForwardsBy(4);n.hasMore();){var s=n.readInt(4,"be");if(0===s)break;var f=n.readInt(4,"be"),l=s===f?i:i+r;n.moveForwardsBy(f+4*l)}return n.carve()}},{name:"Linux deb package",extension:"deb",mime:"application/vnd.debian.binary-package",description:"",signature:{0:33,1:60,2:97,3:114,4:99,5:104,6:62},extractor:function(t,e){var n=new hT(t.slice(e));for(n.moveForwardsBy(8);n.hasMore();){n.moveForwardsBy(48);var r,i="",o=dT(n.getBytes(10));try{for(o.s();!(r=o.n()).done;){var a=r.value;i+=String.fromCharCode(a)}}catch(t){o.e(t)}finally{o.f()}i=parseInt(i.trim(),10),n.moveForwardsBy(2),n.moveForwardsBy(i)}return n.carve()}},{name:"Apple Disk Image",extension:"dmg",mime:"application/x-apple-diskimage",description:"",signature:{0:120,1:1,2:115,3:13,4:98,5:98,6:96},extractor:null}],Miscellaneous:[{name:"UTF-8 text",extension:"txt",mime:"text/plain",description:"UTF-8 encoded Unicode byte order mark, commonly but not exclusively seen in text files.",signature:{0:239,1:187,2:191},extractor:null},{name:"UTF-32 LE text",extension:"utf32le",mime:"charset/utf32le",description:"Little-endian UTF-32 encoded Unicode byte order mark.",signature:{0:255,1:254,2:0,3:0},extractor:null},{name:"UTF-16 LE text",extension:"utf16le",mime:"charset/utf16le",description:"Little-endian UTF-16 encoded Unicode byte order mark.",signature:{0:255,1:254},extractor:null},{name:"Web Open Font Format",extension:"woff",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:70,4:0,5:1,6:0,7:0},extractor:null},{name:"Web Open Font Format 2",extension:"woff2",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:50,4:0,5:1,6:0,7:0},extractor:null},{name:"Embedded OpenType font",extension:"eot",mime:"application/octet-stream",description:"",signature:[{8:2,9:0,10:1,34:76,35:80},{8:1,9:0,10:0,34:76,35:80},{8:2,9:0,10:2,34:76,35:80}],extractor:null},{name:"TrueType Font",extension:"ttf",mime:"application/font-sfnt",description:"",signature:{0:0,1:1,2:0,3:0,4:0},extractor:null},{name:"OpenType Font",extension:"otf",mime:"application/font-sfnt",description:"",signature:{0:79,1:84,2:84,3:79,4:0},extractor:null},{name:"SQLite",extension:"sqlite",mime:"application/x-sqlite3",description:"",signature:{0:83,1:81,2:76,3:105},extractor:function(t,e){var n=new hT(t.slice(e));n.moveTo(16);var r=n.readInt(2);n.moveTo(28);var i=n.readInt(4);return n.moveTo(r*i),n.carve()}},{name:"BitTorrent link",extension:"torrent",mime:"application/x-bittorrent",description:"",signature:[{0:100,1:56,2:58,3:97,4:110,5:110,6:111,7:117,8:110,9:99,10:101,11:35,12:35,13:58},{0:100,1:52,2:58,3:105,4:110,5:102,6:111,7:100,8:[52,53,54],9:58}],extractor:null},{name:"Cryptocurrency wallet",extension:"wallet",mime:"application/octet-stream",description:"",signature:{0:0,1:0,2:0,3:0,4:1,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:98,13:49,14:5,15:0},extractor:null},{name:"Registry fragment",extension:"hbin",mime:"application/octet-stream",description:"",signature:{0:104,1:98,2:105,3:110,4:0},extractor:null},{name:"Registry script",extension:"rgs",mime:"application/octet-stream",description:"",signature:{0:72,1:75,2:67,3:82,4:13,5:10,6:92,7:123},extractor:null},{name:"WinNT Registry Hive",extension:"registry",mime:"application/octet-stream",description:"",signature:{0:114,1:101,2:103,3:102},extractor:null},{name:"Windows Event Log",extension:"evt",mime:"application/octet-stream",description:"",signature:{0:48,1:0,2:0,3:0,4:76,5:102,6:76,7:101},extractor:function(t,e){var n=new hT(t.slice(e));n.moveTo(20);var r=n.readInt(4,"le");n.moveTo(r);var i=n.readInt(4,"le");return n.moveForwardsBy(i-4),n.carve()}},{name:"Windows Event Log",extension:"evtx",mime:"application/octet-stream",description:"",signature:{0:69,1:108,2:102,3:70,4:105,5:108,6:101},extractor:function(t,e){var n=new hT(t.slice(e));n.moveTo(40);var r=n.readInt(4,"le")-44;for(n.moveForwardsBy(r);n.hasMore()&&n.getBytes(7).join("")===[69,108,102,67,104,110,107].join("");)n.moveForwardsBy(65529);return n.consumeWhile(0),n.carve()}},{name:"Windows Pagedump",extension:"dmp",mime:"application/octet-stream",description:"",signature:{0:80,1:65,2:71,3:69,4:68,5:85,6:[77,54],7:[80,52]},extractor:function(t,e){var n=new hT(t.slice(e));return n.moveTo(112),n.moveTo(4096*(n.readInt(4,"le")+1)),n.carve()}},{name:"Windows Prefetch",extension:"pf",mime:"application/x-pf",description:"",signature:{0:[17,23,26],1:0,2:0,3:0,4:83,5:67,6:67,7:65},extractor:function(t,e){var n=new hT(t.slice(e));return n.moveTo(12),n.moveTo(n.readInt(4,"be")),n.carve()}},{name:"Windows Prefetch (Win 10)",extension:"pf",mime:"application/x-pf",description:"",signature:{0:77,1:65,2:77,3:4,7:0},extractor:function(t,e){var n=new hT(t.slice(e));return n.moveTo(n.readInt(4,"be")),n.carve()}},{name:"PList (XML)",extension:"plist",mime:"application/xml",description:"",signature:{39:60,40:33,41:68,42:79,43:67,44:84,45:89,46:80,47:69,48:32,49:112,50:108,51:105,52:115,53:116},extractor:function(t,e){var n=new hT(t.slice(e)),r=0;for(n.continueUntil([60,112,108,105,115,116]),n.moveForwardsBy(6),r++;r>0&&n.hasMore();)60===n.readInt(1)&&(n.getBytes(5).join("")===[112,108,105,115,116].join("")?r++:n.moveBackwardsBy(5),n.getBytes(7).join("")===[47,112,108,105,115,116,62].join("")?r--:n.moveBackwardsBy(7));return n.consumeIf(10),n.carve()}},{name:"PList (binary)",extension:"bplist,plist,ipmeta,abcdp,mdbackup,mdinfo,strings,nib,ichat,qtz,webbookmark,webhistory",mime:"application/x-plist",description:"",signature:{0:98,1:112,2:108,3:105,4:115,5:116,6:48,7:48},extractor:null},{name:"MacOS X Keychain",extension:"keychain",mime:"application/octet-stream",description:"",signature:{0:107,1:121,2:99,3:104,4:0,5:1},extractor:function(t,e){var n=new hT(t.slice(e));return n.moveTo(20),n.moveForwardsBy(n.readInt(4)),n.carve()}},{name:"TCP Packet",extension:"tcp",mime:"application/tcp",description:"",signature:{12:8,13:0,14:69,15:0,21:0,22:function(t){return t>=1&&t<=128},23:6},extractor:null},{name:"UDP Packet",extension:"udp",mime:"application/udp",description:"",signature:{12:8,13:0,14:69,15:0,16:[0,1,2,3,4,5],22:function(t){return t>=1&&t<=128},23:17},extractor:null},{name:"Compiled HTML",extension:"chm,chw,chi",mime:"application/vnd.ms-htmlhelp",description:"",signature:{0:73,1:84,2:83,3:70,4:3,5:0,6:0,7:0},extractor:null},{name:"Windows Password",extension:"pwl",mime:"application/octet-stream",description:"",signature:{0:227,1:130,2:133,3:150},extractor:null},{name:"Bitlocker recovery key",extension:"bitlocker",mime:"application/octet-stream",description:"",signature:{0:255,1:254,2:66,3:0,4:105,5:0,6:116,7:0,8:76,9:0,10:111,11:0,12:99,13:0,14:107,15:0,16:101,17:0,18:114,19:0,20:32,21:0},extractor:null},{name:"Certificate",extension:"cer,cat,p7b,p7c,p7m,p7s,swz,rsa,crl,crt,der",mime:"application/pkix-cert",description:"",signature:{0:48,1:130,4:[6,10,48]},extractor:null},{name:"Certificate",extension:"cat,swz,p7m",mime:"application/vnd.ms-pki.seccat",description:"",signature:{0:48,1:131,2:function(t){return 0!==t},5:6,6:9},extractor:null},{name:"PGP pubring",extension:"pkr,gpg",mime:"application/pgp-keys",description:"",signature:{0:153,1:1,2:[13,162],3:4},extractor:null},{name:"PGP secring",extension:"skr",mime:"application/pgp-keys",description:"",signature:[{0:149,1:1,2:207,3:4},{0:149,1:3,2:198,3:4},{0:149,1:5,2:134,3:4}],extractor:null},{name:"PGP Safe",extension:"pgd",mime:"application/pgp-keys",description:"",signature:{0:80,1:71,2:80,3:100,4:77,5:65,6:73,7:78,8:96,9:1,10:0},extractor:null},{name:"Task Scheduler",extension:"job",mime:"application/octet-stream",description:"",signature:{0:[0,1,2,3],1:[5,6],2:1,3:0,20:70,21:0},extractor:null},{name:"Windows Shortcut",extension:"lnk",mime:"application/x-ms-shortcut",description:"",signature:{0:76,1:0,2:0,3:0,4:1,5:20,6:2,7:0,8:0,9:0,10:0,11:0,12:192,13:0,14:0,15:0,16:0,17:0,18:0,19:70},extractor:function(t,e){var n=new hT(t.slice(e));return n.moveTo(52),n.moveTo(n.readInt(4,"le")),n.carve()}},{name:"Bash",extension:"bash",mime:"application/bash",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:98,8:97,9:115,10:104},extractor:null},{name:"Shell",extension:"sh",mime:"application/sh",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:115,8:104},extractor:null},{name:"Python",extension:"py,pyc,pyd,pyo,pyw,pyz",mime:"application/python",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:121,13:116,14:104,15:111,16:110,17:[50,51,10,13]},extractor:null},{name:"Ruby",extension:"rb",mime:"application/ruby",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:114,12:117,13:98,14:121},extractor:null},{name:"perl",extension:"pl,pm,t,pod",mime:"application/perl",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:101,13:114,14:108},extractor:null},{name:"php",extension:"php,phtml,php3,php4,php5,php7,phps,php-s,pht,phar",mime:"application/php",description:"",signature:{0:60,1:63,2:112,3:104,4:112},extractor:null},{name:"Smile",extension:"sml",mime:"\tapplication/x-jackson-smile",description:"",signature:{0:58,1:41,2:10},extractor:null},{name:"Lua Bytecode",extension:"luac",mime:"application/x-lua",description:"",signature:{0:27,1:76,2:117,3:97},extractor:null},{name:"WebAssembly binary",extension:"wasm",mime:"application/octet-stream",description:"",signature:{0:0,1:97,2:115,3:109},extractor:null}]};function gT(t,e){var n=new hT(t.slice(e));n.continueUntil([80,75,5,6]),n.moveForwardsBy(20);var r=n.readInt(2,"le");return n.moveForwardsBy(r),n.carve()}function mT(t,e){var n="207250237254",r=new hT(t.slice(e)),i=r.getBytes(4).join("");return r.moveTo(function(t,e,n){var r=28;e&&(r+=4),t.moveTo(16);var i=t.readInt(4,n);return function(t,e,n,r){for(var i=0,o=0;o0&&t.moveForwardsBy(1)}var ET=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],MT=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function BT(t,e,n){for(var r,i=0;(r=kT(t,e))&&256!==r;){if(++i>1e4)throw new Error("Caught in probable infinite loop while parsing Huffman Block");r<256||(t.readBits(ET[r-257],"le"),r=kT(t,n),t.readBits(MT[r],"le"))}}function TT(t){for(var e=Math.max.apply(Math,t),n=Math.min.apply(Math,t),r=1<>=1;for(var h=o<<16|c,d=s;d>>16;if(a>i)throw new Error(`Invalid Huffman Code length while parsing DEFLATE block at pos ${t.position}: ${a}`);return t.moveBackwardsByBits(i-a),65535&o}function FT(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t.length){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:0;for(var r in t){var i=parseInt(r,10)+n;switch(typeof t[r]){case"number":if(e[i]!==t[r])return!1;break;case"object":if(t[r].indexOf(e[i])<0)return!1;break;case"function":if(!t[r](e[i]))return!1;break;default:throw new Error(`Unrecognised signature type at offset ${r}`)}}return!0}var NT=function(){function t(){r(this,t)}return a(t,null,[{key:"checkForValue",value:function(t){if(void 0===t)throw new Error("only use translation methods with .bind")}},{key:"toArrayBuffer",value:function(){throw new Error("toArrayBuffer has not been implemented")}},{key:"fromArrayBuffer",value:function(){throw new Error("fromArrayBuffer has not been implemented")}}]),t}();const CT=NT;const RT=function(t){c(o,t);var e,n,i=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=l(e);if(n){var i=l(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return f(this,t)});function o(){return r(this,o),i.apply(this,arguments)}return a(o,null,[{key:"toArrayBuffer",value:function(){o.checkForValue(this.value),this.value=new Uint8Array(this.value).buffer}},{key:"fromArrayBuffer",value:function(){o.checkForValue(this.value),this.value=Array.prototype.slice.call(new Uint8Array(this.value))}}]),o}(CT);const IT=function(t){c(o,t);var e,n,i=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=l(e);if(n){var i=l(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return f(this,t)});function o(){return r(this,o),i.apply(this,arguments)}return a(o,null,[{key:"toArrayBuffer",value:function(){o.checkForValue(this.value),this.value=lT.isBigNumber(this.value)?qB.strToArrayBuffer(this.value.toFixed()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){o.checkForValue(this.value);try{this.value=new lT(qB.arrayBufferToStr(this.value))}catch(t){this.value=new lT(NaN)}}}]),o}(CT);const OT=function(t){c(o,t);var e,n,i=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=l(e);if(n){var i=l(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return f(this,t)});function o(){return r(this,o),i.apply(this,arguments)}return a(o,null,[{key:"toArrayBuffer",value:function(){var t=this;if(o.checkForValue(this.value),!zB())return new Promise((function(e,n){qB.readFile(t.value).then((function(e){return t.value=e.buffer})).then(e).catch(n)}));this.value=qB.readFileSync(this.value)}},{key:"fromArrayBuffer",value:function(){o.checkForValue(this.value),this.value=new File(this.value,"unknown")}}]),o}(CT);const PT=function(t){c(o,t);var e,n,i=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=l(e);if(n){var i=l(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return f(this,t)});function o(){return r(this,o),i.apply(this,arguments)}return a(o,null,[{key:"toArrayBuffer",value:function(){o.checkForValue(this.value),this.value=this.value?qB.strToArrayBuffer(this.value):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){o.checkForValue(this.value),this.value=this.value?qB.arrayBufferToStr(this.value):""}}]),o}(CT);const DT=function(t){c(o,t);var e,n,i=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=l(e);if(n){var i=l(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return f(this,t)});function o(){return r(this,o),i.apply(this,arguments)}return a(o,null,[{key:"toArrayBuffer",value:function(){o.checkForValue(this.value),this.value=this.value?qB.strToArrayBuffer(qB.unescapeHtml(qB.stripHtmlTags(this.value,!0))):new ArrayBuffer}}]),o}(PT);const LT=function(t){c(o,t);var e,n,i=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=l(e);if(n){var i=l(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return f(this,t)});function o(){return r(this,o),i.apply(this,arguments)}return a(o,null,[{key:"toArrayBuffer",value:function(){o.checkForValue(this.value),this.value=void 0!==this.value?qB.strToArrayBuffer(JSON.stringify(this.value,null,4)):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){o.checkForValue(this.value),this.value=JSON.parse(qB.arrayBufferToStr(this.value))}}]),o}(CT);const UT=function(t){c(s,t);var e,n,i,o,u=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=l(i);if(o){var n=l(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return f(this,t)});function s(){return r(this,s),u.apply(this,arguments)}return a(s,null,[{key:"toArrayBuffer",value:(n=_B(EB().mark((function t(){return EB().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s.checkForValue(this.value),!zB()){t.next=5;break}this.value=this.value.map((function(t){return Uint8Array.from(t.data)})),t.next=8;break;case 5:return t.next=7,s.concatenateTypedArraysWithTypedElements.apply(s,TB(this.value));case 7:this.value=t.sent;case 8:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"fromArrayBuffer",value:function(){s.checkForValue(this.value),this.value=[new File(this.value,"unknown")]}},{key:"concatenateTypedArraysWithTypedElements",value:(e=_B(EB().mark((function t(){var e,n,r,i,o,a,u,c,s,f,l,h,d,p=arguments;return EB().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(e=0,n=p.length,r=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(r(this,t),this.value=new ArrayBuffer(0),this.type=t.ARRAY_BUFFER,e&&Object.prototype.hasOwnProperty.call(e,"value")&&Object.prototype.hasOwnProperty.call(e,"type"))this.set(e.value,e.type);else if(e&&null!==n)this.set(e,n);else if(e){var i=t.typeEnum(e.constructor.name);this.set(e,i)}}var e;return a(t,[{key:"get",value:function(e){var n=this;return"string"==typeof e&&(e=t.typeEnum(e)),this.type!==e?zB()?(this._translate(e),this.value):new Promise((function(t,r){n._translate(e).then((function(){t(n.value)})).catch(r)})):this.value}},{key:"set",value:function(e,n){if("string"==typeof n&&(n=t.typeEnum(n)),FB().debug("Dish type: "+t.enumLookup(n)),this.value=e,this.type=n,!this.valid()){var r=qB.truncate(JSON.stringify(this.value),25);throw new YB(`Data is not a valid ${t.enumLookup(n)}: ${r}`)}}},{key:"presentAs",value:function(t){return this.clone().get(t)}},{key:"detectDishType",value:function(){var t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(yT);if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),!(t&&t.length>1))return[];var n=[],r={};for(var i in yT)e.includes(i)&&(r[i]=yT[i]);for(var o in r)r[o].forEach((function(e){FT(e.signature,t)&&n.push(e)}));return n}(new Uint8Array(this.value.slice(0,2048)));return t.length&&t[0].mime&&"text/plain"===t[0].mime?t[0].mime:null}},{key:"getTitle",value:(e=_B(EB().mark((function e(n){var r,i;return EB().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r="",e.t0=this.type,e.next=e.t0===t.FILE?4:e.t0===t.LIST_FILE?6:e.t0===t.JSON?8:e.t0===t.NUMBER||e.t0===t.BIG_NUMBER?10:e.t0===t.ARRAY_BUFFER||e.t0===t.BYTE_ARRAY?12:15;break;case 4:return r=this.value.name,e.abrupt("break",26);case 6:return r=`${this.value.length} file(s)`,e.abrupt("break",26);case 8:return r="application/json",e.abrupt("break",26);case 10:return r=this.value.toString(),e.abrupt("break",26);case 12:if(null===(r=this.detectDishType())){e.next=15;break}return e.abrupt("break",26);case 15:return e.prev=15,(i=this.clone()).value=i.value.slice(0,256),e.next=20,i.get(t.STRING);case 20:r=e.sent,e.next=26;break;case 23:e.prev=23,e.t1=e.catch(15),FB().error(`${t.enumLookup(this.type)} cannot be sliced. ${e.t1}`);case 26:return e.abrupt("return",r.slice(0,n));case 27:case"end":return e.stop()}}),e,this,[[15,23]])}))),function(t){return e.apply(this,arguments)})},{key:"valid",value:function(){switch(this.type){case t.BYTE_ARRAY:if(!(this.value instanceof Uint8Array||this.value instanceof Array))return!1;for(var e=0;e255)return!1;return!0;case t.STRING:case t.HTML:return"string"==typeof this.value;case t.NUMBER:return"number"==typeof this.value;case t.ARRAY_BUFFER:return this.value instanceof ArrayBuffer;case t.BIG_NUMBER:if(lT.isBigNumber(this.value))return!0;if(Object.keys(this.value).sort().equals(["c","e","s"])){var n=new lT;return n.c=this.value.c,n.e=this.value.e,n.s=this.value.s,this.value=n,!0}return!1;case t.JSON:return!0;case t.FILE:return this.value instanceof File;case t.LIST_FILE:return this.value instanceof Array&&this.value.reduce((function(t,e){return t&&e instanceof File}),!0);default:return!1}}},{key:"size",get:function(){switch(this.type){case t.BYTE_ARRAY:case t.STRING:case t.HTML:return this.value.length;case t.NUMBER:case t.BIG_NUMBER:return this.value.toString().length;case t.ARRAY_BUFFER:return this.value.byteLength;case t.JSON:return JSON.stringify(this.value).length;case t.FILE:return this.value.size;case t.LIST_FILE:return this.value.reduce((function(t,e){return t+e.size}),0);default:return-1}}},{key:"clone",value:function(){var e=new t;switch(this.type){case t.STRING:case t.HTML:case t.NUMBER:case t.BIG_NUMBER:e.set(this.value,this.type);break;case t.BYTE_ARRAY:case t.JSON:e.set(JSON.parse(JSON.stringify(this.value)),this.type);break;case t.ARRAY_BUFFER:e.set(this.value.slice(0),this.type);break;case t.FILE:e.set(new File([this.value],this.value.name,{type:this.value.type,lastModified:this.value.lastModified}),this.type);break;case t.LIST_FILE:e.set(this.value.map((function(t){return new File([t],t.name,{type:t.type,lastModified:t.lastModified})})),this.type);break;default:throw new YB("Cannot clone Dish, unknown type")}return e}},{key:"_translate",value:function(e){var n=this;if(FB().debug(`Translating Dish from ${t.enumLookup(this.type)} to ${t.enumLookup(e)}`),!zB())return new Promise((function(r,i){n._toArrayBuffer().then((function(){return n.type=t.ARRAY_BUFFER})).then((function(){n._fromArrayBuffer(e),r()})).catch(i)}));this._toArrayBuffer(),this.type=t.ARRAY_BUFFER,this._fromArrayBuffer(e)}},{key:"_toArrayBuffer",value:function(){var e=this,n={browser:{[t.STRING]:function(){return Promise.resolve(PT.toArrayBuffer.bind(e)())},[t.NUMBER]:function(){return Promise.resolve(jT.toArrayBuffer.bind(e)())},[t.HTML]:function(){return Promise.resolve(DT.toArrayBuffer.bind(e)())},[t.ARRAY_BUFFER]:function(){return Promise.resolve()},[t.BIG_NUMBER]:function(){return Promise.resolve(IT.toArrayBuffer.bind(e)())},[t.JSON]:function(){return Promise.resolve(LT.toArrayBuffer.bind(e)())},[t.FILE]:function(){return OT.toArrayBuffer.bind(e)()},[t.LIST_FILE]:function(){return Promise.resolve(UT.toArrayBuffer.bind(e)())},[t.BYTE_ARRAY]:function(){return Promise.resolve(RT.toArrayBuffer.bind(e)())}},node:{[t.STRING]:function(){return PT.toArrayBuffer.bind(e)()},[t.NUMBER]:function(){return jT.toArrayBuffer.bind(e)()},[t.HTML]:function(){return DT.toArrayBuffer.bind(e)()},[t.ARRAY_BUFFER]:function(){},[t.BIG_NUMBER]:function(){return IT.toArrayBuffer.bind(e)()},[t.JSON]:function(){return LT.toArrayBuffer.bind(e)()},[t.FILE]:function(){return OT.toArrayBuffer.bind(e)()},[t.LIST_FILE]:function(){return UT.toArrayBuffer.bind(e)()},[t.BYTE_ARRAY]:function(){return RT.toArrayBuffer.bind(e)()}}};try{return n[zB()?"node":"browser"][this.type]()}catch(e){throw new YB(`Error translating from ${t.enumLookup(this.type)} to ArrayBuffer: ${e}`)}}},{key:"_fromArrayBuffer",value:function(e){var n=this,r={[t.STRING]:function(){return PT.fromArrayBuffer.bind(n)()},[t.NUMBER]:function(){return jT.fromArrayBuffer.bind(n)()},[t.HTML]:function(){return DT.fromArrayBuffer.bind(n)()},[t.ARRAY_BUFFER]:function(){},[t.BIG_NUMBER]:function(){return IT.fromArrayBuffer.bind(n)()},[t.JSON]:function(){return LT.fromArrayBuffer.bind(n)()},[t.FILE]:function(){return OT.fromArrayBuffer.bind(n)()},[t.LIST_FILE]:function(){return UT.fromArrayBuffer.bind(n)()},[t.BYTE_ARRAY]:function(){return RT.fromArrayBuffer.bind(n)()}};try{r[e](),this.type=e}catch(n){throw new YB(`Error translating from ArrayBuffer to ${t.enumLookup(e)}: ${n}`)}}}],[{key:"typeEnum",value:function(e){switch(e.toLowerCase()){case"bytearray":case"byte array":return t.BYTE_ARRAY;case"string":return t.STRING;case"number":return t.NUMBER;case"html":return t.HTML;case"arraybuffer":case"array buffer":return t.ARRAY_BUFFER;case"bignumber":case"big number":return t.BIG_NUMBER;case"json":case"object":return t.JSON;case"file":return t.FILE;case"list":return t.LIST_FILE;default:throw new YB("Invalid data type string. No matching enum.")}}},{key:"enumLookup",value:function(e){switch(e){case t.BYTE_ARRAY:return"byteArray";case t.STRING:return"string";case t.NUMBER:return"number";case t.HTML:return"html";case t.ARRAY_BUFFER:return"ArrayBuffer";case t.BIG_NUMBER:return"BigNumber";case t.JSON:return"JSON";case t.FILE:return"File";case t.LIST_FILE:return"List";default:throw new YB("Invalid data type enum. No matching type.")}}}]),t}();zT.BYTE_ARRAY=0,zT.STRING=1,zT.NUMBER=2,zT.HTML=3,zT.ARRAY_BUFFER=4,zT.BIG_NUMBER=5,zT.JSON=6,zT.FILE=7,zT.LIST_FILE=8;const $T=zT;var HT=function(){function t(e){r(this,t),this.name="",this.type="",this._value=null,this.disabled=!1,this.hint="",this.rows=0,this.toggleValues=[],this.target=null,this.defaultIndex=0,this.maxLength=null,this.min=null,this.max=null,this.step=1,e&&this._parseConfig(e)}return a(t,[{key:"_parseConfig",value:function(t){this.name=t.name,this.type=t.type,this.defaultValue=t.value,this.disabled=!!t.disabled,this.hint=t.hint||!1,this.rows=t.rows||!1,this.toggleValues=t.toggleValues,this.target=void 0!==t.target?t.target:null,this.defaultIndex=void 0!==t.defaultIndex?t.defaultIndex:0,this.maxLength=t.maxLength||null,this.min=t.min,this.max=t.max,this.step=t.step}},{key:"config",get:function(){return this._value}},{key:"value",get:function(){return this._value},set:function(e){this._value=t.prepare(e,this.type)}}],[{key:"prepare",value:function(t,e){var n;switch(e){case"binaryString":case"binaryShortString":case"editableOption":case"editableOptionShort":return qB.parseEscapedChars(t);case"byteArray":return"string"==typeof t?OB(t=t.replace(/\s+/g,"")):t;case"number":if(null===t)return t;if(n=parseFloat(t),isNaN(n))throw"Invalid ingredient value. Not a number: "+qB.truncate(t.toString(),10);return n;default:return t}}}]),t}();const qT=HT;var YT=function(){function t(){r(this,t),this._inputType=-1,this._outputType=-1,this._presentType=-1,this._breakpoint=!1,this._disabled=!1,this._flowControl=!1,this._manualBake=!1,this._ingList=[],this.name="",this.module="",this.description="",this.infoURL=null}return a(t,[{key:"run",value:function(t,e){return t}},{key:"highlight",value:function(t,e){return!1}},{key:"highlightReverse",value:function(t,e){return!1}},{key:"present",value:function(t,e){return t}},{key:"inputType",get:function(){return $T.enumLookup(this._inputType)},set:function(t){this._inputType=$T.typeEnum(t)}},{key:"outputType",get:function(){return $T.enumLookup(this._outputType)},set:function(t){this._outputType=$T.typeEnum(t),this._presentType<0&&(this._presentType=this._outputType)}},{key:"presentType",get:function(){return $T.enumLookup(this._presentType)},set:function(t){this._presentType=$T.typeEnum(t)}},{key:"args",get:function(){return this._ingList.map((function(t){var e={name:t.name,type:t.type,value:t.defaultValue};return t.toggleValues&&(e.toggleValues=t.toggleValues),t.hint&&(e.hint=t.hint),t.rows&&(e.rows=t.rows),t.disabled&&(e.disabled=t.disabled),t.target&&(e.target=t.target),t.defaultIndex&&(e.defaultIndex=t.defaultIndex),t.maxLength&&(e.maxLength=t.maxLength),"number"==typeof t.min&&(e.min=t.min),"number"==typeof t.max&&(e.max=t.max),t.step&&(e.step=t.step),e}))},set:function(t){var e=this;t.forEach((function(t){var n=new qT(t);e.addIngredient(n)}))}},{key:"config",get:function(){return{op:this.name,args:this._ingList.map((function(t){return t.config}))}}},{key:"addIngredient",value:function(t){this._ingList.push(t)}},{key:"ingValues",get:function(){return this._ingList.map((function(t){return t.value}))},set:function(t){var e=this;t.forEach((function(t,n){e._ingList[n].value=t}))}},{key:"breakpoint",get:function(){return this._breakpoint},set:function(t){this._breakpoint=!!t}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=!!t}},{key:"flowControl",get:function(){return this._flowControl},set:function(t){this._flowControl=!!t}},{key:"manualBake",get:function(){return this._manualBake},set:function(t){this._manualBake=!!t}}]),t}();const GT=YT;var VT=t.default?t.default:t,WT=xB()?xB():bB,XT=function(t){c(o,t);var e,n,i=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=l(e);if(n){var i=l(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return f(this,t)});function o(){var t;return r(this,o),(t=i.call(this)).name="Entropy",t.module="Charts",t.description="Shannon Entropy, in the context of information theory, is a measure of the rate at which information is produced by a source of data. It can be used, in a broad sense, to detect whether data is likely to be structured or unstructured. 8 is the maximum, representing highly unstructured, 'random' data. English language text usually falls somewhere between 3.5 and 5. Properly encrypted or compressed data should have an entropy of over 7.5.",t.infoURL="https://wikipedia.org/wiki/Entropy_(information_theory)",t.inputType="ArrayBuffer",t.outputType="json",t.presentType="html",t.args=[{name:"Visualisation",type:"option",value:["Shannon scale","Histogram (Bar)","Histogram (Line)","Curve","Image"]}],t}return a(o,[{key:"calculateShannonEntropy",value:function(t){var e,n=[],r=new Array(256).fill(0);for(e=0;e0&&n.push(r[e]/t.length);var i,o=0;for(e=0;e0&&(n.append("path").datum(t).attr("d",o),n.selectAll("path").attr("fill","none").attr("stroke","steelblue")),this.createAxes(n,i,r,500,500,e,"Scanning Entropy","Block","Entropy"),n._groups[0][0].outerHTML}},{key:"createEntropyImage",value:function(t){for(var e=[],n=0;n
\n - 0 represents no randomness (i.e. all the bytes in the data have the same value) whereas 8, the maximum, represents a completely random string.\n - Standard English text usually falls somewhere between 3.5 and 5.\n - Properly encrypted or compressed data of a reasonable length should have an entropy of over 7.5.\n\n The following results show the entropy of chunks of the input data. Chunks with particularly high entropy could suggest encrypted or compressed sections.\n\n