1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[59086],{3836:(t,e)=>{"use strict";e.byteLength=function(t){var e=a(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,i=a(t),u=i[0],s=i[1],f=new o((u+s)*3/4-s),l=0,h=s>0?u-4:u;for(r=0;r<h;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],f[l++]=e>>16&255,f[l++]=e>>8&255,f[l++]=255&e;return 2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,f[l++]=255&e),1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,f[l++]=e>>8&255,f[l++]=255&e),f},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],u=0,s=n-o;u<s;u+=16383)i.push(function(t,e,n){for(var o,i=[],u=e;u<n;u+=3)i.push(r[(o=(t[u]<<16&0xff0000)+(t[u+1]<<8&65280)+(255&t[u+2]))>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(t,u,u+16383>s?s:u+16383));return 1===o?i.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===o&&i.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,s=i.length;u<s;++u)r[u]=i[u],n[i.charCodeAt(u)]=u;function a(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},75927:(t,e,r)=>{"use strict";let n=r(3836),o=r(84981),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function u(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return a(t,e,r)}function a(t,e,r){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!s.isEncoding(e))throw TypeError("Unknown encoding: "+e);let r=0|y(t,e),n=u(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(j(t,Uint8Array)){let e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(j(t,ArrayBuffer)||t&&j(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(j(t,SharedArrayBuffer)||t&&j(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return s.from(n,e,r);let o=function(t){var e;if(s.isBuffer(t)){let e=0|c(t.length),r=u(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||(e=t.length)!=e?u(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw 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 TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),u(t<0?0:0|c(t))}function h(t){let e=t.length<0?0:0|c(t.length),r=u(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function p(t,e,r){let n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),s.prototype),n}function c(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function y(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||j(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return k(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return L(t).length;default:if(o)return n?-1:k(t).length;e=(""+e).toLowerCase(),o=!0}}function d(t,e,r){let o=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let o="";for(let n=e;n<r;++n)o+=C[t[n]];return o}(this,e,r);case"utf8":case"utf-8":return m(this,e,r);case"ascii":return function(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}(this,e,r);case"base64":var i,u;return i=e,u=r,0===i&&u===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(i,u));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){let n=t.slice(e,r),o="";for(let t=0;t<n.length-1;t+=2)o+=String.fromCharCode(n[t]+256*n[t+1]);return o}(this,e,r);default:if(o)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}function g(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}function b(t,e,r,n,o){var i;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r=+r)!=i&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return -1;r=t.length-1}
vendor: 5,794 bytes, line 1
1else if(r<0){if(!o)return -1;r=0}if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,o);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,o);throw TypeError("val must be string, number or Buffer")}function v(t,e,r,n,o){let i,u=1,s=t.length,a=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;u=2,s/=2,a/=2,r/=2}function f(t,e){return 1===u?t[e]:t.readUInt16BE(e*u)}if(o){let n=-1;for(i=r;i<s;i++)if(f(t,i)===f(e,-1===n?0:i-n)){if(-1===n&&(n=i),i-n+1===a)return n*u}else -1!==n&&(i-=i-n),n=-1}else for(r+a>s&&(r=s-a),i=r;i>=0;i--){let r=!0;for(let n=0;n<a;n++)if(f(t,i+n)!==f(e,n)){r=!1;break}if(r)return i}return -1}function m(t,e,r){r=Math.min(t.length,r);let n=[],o=e;for(;o<r;){let e=t[o],i=null,u=e>239?4:e>223?3:e>191?2:1;if(o+u<=r){let r,n,s,a;switch(u){case 1:e<128&&(i=e);break;case 2:(192&(r=t[o+1]))==128&&(a=(31&e)<<6|63&r)>127&&(i=a);break;case 3:r=t[o+1],n=t[o+2],(192&r)==128&&(192&n)==128&&(a=(15&e)<<12|(63&r)<<6|63&n)>2047&&(a<55296||a>57343)&&(i=a);break;case 4:r=t[o+1],n=t[o+2],s=t[o+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(a=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&a<1114112&&(i=a)}}null===i?(i=65533,u=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=u}return function(t){let e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}function w(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function N(t,e,r,n,o,i){if(!s.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function E(t,e,r,n,o){O(e,n,o,t,r,7);let i=Number(e&BigInt(0xffffffff));t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i;let u=Number(e>>BigInt(32)&BigInt(0xffffffff));return t[r++]=u,u>>=8,t[r++]=u,u>>=8,t[r++]=u,u>>=8,t[r++]=u,r}function I(t,e,r,n,o){O(e,n,o,t,r,7);let i=Number(e&BigInt(0xffffffff));t[r+7]=i,i>>=8,t[r+6]=i,i>>=8,t[r+5]=i,i>>=8,t[r+4]=i;let u=Number(e>>BigInt(32)&BigInt(0xffffffff));return t[r+3]=u,u>>=8,t[r+2]=u,u>>=8,t[r+1]=u,u>>=8,t[r]=u,r+8}function _(t,e,r,n,o,i){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function A(t,e,r,n,i){return e=+e,r>>>=0,i||_(t,e,r,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,r,n,23,4),r+4}function B(t,e,r,n,i){return e=+e,r>>>=0,i||_(t,e,r,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,r,n,52,8),r+8}e.hp=s,e.IS=50,s.TYPED_ARRAY_SUPPORT=function(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,r){return a(t,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,r){return(f(t),t<=0)?u(t):void 0!==e?"string"==typeof r?u(t).fill(e,r):u(t).fill(e):u(t)},s.allocUnsafe=function(t){return l(t)},s.allocUnsafeSlow=function(t){return l(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(j(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),j(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){let r;if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;let n=s.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){let e=t[r];if(j(e,Uint8Array))o+e.length>n.length?(s.isBuffer(e)||(e=s.from(e)),e.copy(n,o)):Uint8Array.prototype.set.call(n,e,o);else if(s.isBuffer(e))e.copy(n,o);else throw TypeError('"list" argument must be an Array of Buffers');o+=e.length}return n},s.byteLength=y,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)g(this,e,e+1);return this},s.prototype.swap32=function(){let t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},s.prototype.swap64=function(){let t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},s.prototype.toString=function(){let t=this.length;return 0===t?"":0==arguments.length?m(this,0,t):d.apply(this,arguments)}
vendor: 10,103 bytes, line 1
1,s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){let t="",r=e.IS;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(t,e,r,n,o){if(j(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;let i=o-n,u=r-e,a=Math.min(i,u),f=this.slice(n,o),l=t.slice(e,r);for(let t=0;t<a;++t)if(f[t]!==l[t]){i=f[t],u=l[t];break}return i<u?-1:u<i?1:0},s.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return b(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return b(this,t,e,r,!1)},s.prototype.write=function(t,e,r,n){var o,i,u,s,a,f,l,h;if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let p=this.length-e;if((void 0===r||r>p)&&(r=p),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let c=!1;for(;;)switch(n){case"hex":return function(t,e,r,n){let o;r=Number(r)||0;let i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;let u=e.length;for(n>u/2&&(n=u/2),o=0;o<n;++o){let n=parseInt(e.substr(2*o,2),16);if(n!=n)break;t[r+o]=n}return o}(this,t,e,r);case"utf8":case"utf-8":return o=e,i=r,M(k(t,this.length-o),this,o,i);case"ascii":case"latin1":case"binary":return u=e,s=r,M(function(t){let e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(t),this,u,s);case"base64":return a=e,f=r,M(L(t),this,a,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=e,h=r,M(function(t,e){let r,n;let o=[];for(let i=0;i<t.length&&!((e-=2)<0);++i)n=(r=t.charCodeAt(i))>>8,o.push(r%256),o.push(n);return o}(t,this.length-l),this,l,h);default:if(c)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),c=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(t,e){let r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);let n=this.subarray(t,e);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);let n=this[t],o=1,i=0;for(;++i<e&&(o*=256);)n+=this[t+i]*o;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);let n=this[t+--e],o=1;for(;e>0&&(o*=256);)n+=this[t+--e]*o;return n},s.prototype.readUint8=s.prototype.readUInt8=function(t,e){return t>>>=0,e||w(t,1,this.length),this[t]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||w(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||w(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||w(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||w(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readBigUInt64LE=D(function(t){T(t>>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&P(t,this.length-8);let n=e+256*this[++t]+65536*this[++t]+0x1000000*this[++t],o=this[++t]+256*this[++t]+65536*this[++t]+0x1000000*r;return BigInt(n)+(BigInt(o)<<BigInt(32))}),s.prototype.readBigUInt64BE=D(function(t){T(t>>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&P(t,this.length-8);let n=0x1000000*e+65536*this[++t]+256*this[++t]+this[++t],o=0x1000000*this[++t]+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(o)}),s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);let n=this[t],o=1,i=0;for(;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);let n=e,o=1,i=this[t+--n];for(;n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},s.prototype.readInt8=function(t,e){return(t>>>=0,e||w(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||w(t,2,this.length);let r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||w(t,2,this.length);let r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||w(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||w(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readBigInt64LE=D(function(t){T(t>>>=0,"offset");let e=this[t],r=this[t+7];return(void 0===e||void 0===r)&&P(t,this.length-8),(BigInt(this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24))<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+0x1000000*this[++t])}),s.prototype.readBigInt64BE=D(function(t){T(t>>>=0,"offset");let e=this[t],r=this[t+7];return(void 0===e||void 0===r)&&P(t,this.length-8),(BigInt((e<<24)+65536*this[++t]+256*this[++t]+this[++t])<<BigInt(32))+BigInt(0x1000000*this[++t]+65536*this[++t]+256*this[++t]+r)}),s.prototype.readFloatLE=function(t,e){return t>>>=0,e||w(t,4,this.length),o.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||w(t,4,this.length),o.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||w(t,8,this.length),o.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||w(t,8,this.length),o.read(this,t,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;N(this,t,e,r,n,0)}let o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;N(this,t,e,r,n,0)}let o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeBigUInt64LE=D(function(t,e=0){return E(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=D(function(t,e=0){return I(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){let n=Math.pow(2,8*r-1);N(this,t,e,r,n-1,-n)}let o=0,i=1,u=0;for(this[e]=255&t;++o<r&&(i*=256);)t<0&&0===u&&0!==this[e+o-1]&&(u=1),this[e+o]=(t/i>>0)-u&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){let n=Math.pow(2,8*r-1);N(this,t,e,r,n-1,-n)}let o=r-1,i=1,u=0;for(this[e+o]=255&t;--o>=0&&(i*=256);)t<0&&0===u&&0!==this[e+o+1]&&(u=1),this[e+o]=(t/i>>0)-u&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeBigInt64LE=D(function(t,e=0){return E(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=D(function(t,e=0){return I(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(t,e,r){return A(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return A(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return B(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return B(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);let o=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),o}
vendor: 4,204 bytes, line 1
1,s.prototype.fill=function(t,e,r,n){let o;if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){let e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{let i=s.isBuffer(t)?t:s.from(t,n),u=i.length;if(0===u)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=i[o%u]}return this};let R={};function S(t,e,r){R[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function U(t){let e="",r=t.length,n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function O(t,e,r,n,o,i){if(t>r||t<e){let n;let o="bigint"==typeof e?"n":"";throw n=i>3?0===e||e===BigInt(0)?`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:`>= ${e}${o} and <= ${r}${o}`,new R.ERR_OUT_OF_RANGE("value",n,t)}T(o,"offset"),(void 0===n[o]||void 0===n[o+i])&&P(o,n.length-(i+1))}function T(t,e){if("number"!=typeof t)throw new R.ERR_INVALID_ARG_TYPE(e,"number",t)}function P(t,e,r){if(Math.floor(t)!==t)throw T(t,r),new R.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new R.ERR_BUFFER_OUT_OF_BOUNDS;throw new R.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}S("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),S("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),S("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?o=U(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=U(o)),o+="n"),n+=` It must be ${e}. Received ${o}`},RangeError);let x=/[^+/0-9A-Za-z-_]/g;function k(t,e){let r;e=e||1/0;let n=t.length,o=null,i=[];for(let u=0;u<n;++u){if((r=t.charCodeAt(u))>55295&&r<57344){if(!o){if(r>56319||u+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function L(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(x,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function M(t,e,r,n){let o;for(o=0;o<n&&!(o+r>=e.length)&&!(o>=t.length);++o)e[o+r]=t[o];return o}function j(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}let C=function(){let t="0123456789abcdef",e=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let o=0;o<16;++o)e[n+o]=t[r]+t[o]}return e}();function D(t){return"undefined"==typeof BigInt?q:t}function q(){throw Error("BigInt not supported")}},84981:(t,e)=>{e.read=function(t,e,r,n,o){var i,u,s=8*o-n-1,a=(1<<s)-1,f=a>>1,l=-7,h=r?o-1:0,p=r?-1:1,c=t[e+h];for(h+=p,i=c&(1<<-l)-1,c>>=-l,l+=s;l>0;i=256*i+t[e+h],h+=p,l-=8);for(u=i&(1<<-l)-1,i>>=-l,l+=n;l>0;u=256*u+t[e+h],h+=p,l-=8);if(0===i)i=1-f;else{if(i===a)return u?NaN:1/0*(c?-1:1);u+=Math.pow(2,n),i-=f}return(c?-1:1)*u*Math.pow(2,i-n)}
1,e.write=function(t,e,r,n,o,i){var u,s,a,f=8*i-o-1,l=(1<<f)-1,h=l>>1,p=23===o?5960464477539062e-23:0,c=n?0:i-1,y=n?1:-1,d=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(s=isNaN(e)?1:0,u=l):(u=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-u))<1&&(u--,a*=2),u+h>=1?e+=p/a:e+=p*Math.pow(2,1-h),e*a>=2&&(u++,a/=2),u+h>=l?(s=0,u=l):u+h>=1?(s=(e*a-1)*Math.pow(2,o),u+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,o),u=0));o>=8;t[r+c]=255&s,c+=y,s/=256,o-=8);for(u=u<<o|s,f+=o;f>0;t[r+c]=255&u,c+=y,u/=256,f-=8);t[r+c-y]|=128*d}},3523:t=>{t.exports=function(t,e,r){if(null!=t&&"number"!=typeof t)throw Error("start must be a number or null");if(null!=e&&"number"!=typeof e)throw Error("stop must be a number or null");if(null!=r&&"number"!=typeof r)throw Error("step must be a number or null");null==e&&(e=t||0,t=0),null==r&&(r=e>t?1:-1);for(var n=[],o=t<e;o?t<e:t>e;t+=r)n.push(t);return n}},59423:(t,e,r)=>{var n="__lodash_hash_undefined__",o=/^\[object .+?Constructor\]$/,i="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,u="object"==typeof self&&self&&self.Object===Object&&self,s=i||u||Function("return this")();function a(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!=e)return function(t,e,r,n){for(var o=t.length,i=-1;++i<o;)if(e(t[i],i,t))return i;return -1}(t,f,0);for(var n=-1,o=t.length;++n<o;)if(t[n]===e)return n;return -1}(t,e,0)>-1}function f(t){return t!=t}function l(t,e){return t.has(e)}var h=Array.prototype,p=Function.prototype,c=Object.prototype,y=s["__core-js_shared__"],d=function(){var t=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),g=p.toString,b=c.hasOwnProperty,v=c.toString,m=RegExp("^"+g.call(b).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=s.Symbol,N=c.propertyIsEnumerable,E=h.splice,I=w?w.isConcatSpreadable:void 0,_=Math.max,A=x(s,"Map"),B=x(Object,"create");function R(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function S(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function U(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function O(t){var e=-1,r=t?t.length:0;for(this.__data__=new U;++e<r;)this.add(t[e])}function T(t,e){for(var r,n=t.length;n--;)if((r=t[n][0])===e||r!=r&&e!=e)return n;return -1}function P(t,e){var r,n=t.__data__;return("string"==(r=typeof e)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?n["string"==typeof e?"string":"hash"]:n.map}function x(t,e){var r=null==t?void 0:t[e];return!(!D(r)||d&&d in r)&&(C(r)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(r)?m:o).test(function(t){if(null!=t){try{return g.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(r))?r:void 0}function k(t){return M(t)||j(t)&&b.call(t,"callee")&&(!N.call(t,"callee")||"[object Arguments]"==v.call(t))||!!(I&&t&&t[I])}R.prototype.clear=function(){this.__data__=B?B(null):{}},R.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},R.prototype.get=function(t){var e=this.__data__;if(B){var r=e[t];return r===n?void 0:r}return b.call(e,t)?e[t]:void 0},R.prototype.has=function(t){var e=this.__data__;return B?void 0!==e[t]:b.call(e,t)},R.prototype.set=function(t,e){return this.__data__[t]=B&&void 0===e?n:e,this},S.prototype.clear=function(){this.__data__=[]},S.prototype.delete=function(t){var e=this.__data__,r=T(e,t);return!(r<0)&&(r==e.length-1?e.pop():E.call(e,r,1),!0)},S.prototype.get=function(t){var e=this.__data__,r=T(e,t);return r<0?void 0:e[r][1]},S.prototype.has=function(t){return T(this.__data__,t)>-1},S.prototype.set=function(t,e){var r=this.__data__,n=T(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},U.prototype.clear=function(){this.__data__={hash:new R,map:new(A||S),string:new R}},U.prototype.delete=function(t){return P(this,t).delete(t)},U.prototype.get=function(t){return P(this,t).get(t)},U.prototype.has=function(t){return P(this,t).has(t)},U.prototype.set=function(t,e){return P(this,t).set(t,e),this},O.prototype.add=O.prototype.push=function(t){return this.__data__.set(t,n),this},O.prototype.has=function(t){return this.__data__.has(t)};var L=function(t,e){return e=_(void 0===e?t.length-1:e,0),function(){for(var r=arguments,n=-1,o=_(r.length-e,0),i=Array(o);++n<o;)i[n]=r[e+n];n=-1;for(var u=Array(e+1);++n<e;)u[n]=r[n];return u[e]=i,function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(t,this,u)}}(function(t,e){return j(t)?function(t,e,r,n){var o=-1,i=a,u=!0,s=t.length,f=[],h=e.length;if(!s)return f;e.length>=200&&(i=l,u=!1,e=new O(e));t:for(;++o<s;){var p=t[o],c=p;if(p=0!==p?p:0,u&&c==c){for(var y=h;y--;)if(e[y]===c)continue t;f.push(p)}else i(e,c,void 0)||f.push(p)}return f}(t,function t(e,r,n,o,i){var u=-1,s=e.length;for(n||(n=k),i||(i=[]);++u<s;){var a=e[u];r>0&&n(a)?r>1?t(a,r-1,n,o,i):function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(i,a):o||(i[i.length]=a)}return i}(e,1,j,!0)):[]}),M=Array.isArray;function j(t){var e,r;return!!t&&"object"==typeof t&&null!=(e=t)&&"number"==typeof(r=e.length)&&r>-1&&r%1==0&&r<=0x1fffffffffffff&&!C(e)}function C(t){var e=D(t)?v.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function D(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=L},46743:(t,e,r)=>{"use strict";r.d(e,{NH:()=>M,WX:()=>U,yB:()=>L});var n=r(3523),o=r.n(n),i=r(12115),u=r(81996),s=r.n(u),a=r(4617),f=r.n(a),l=r(59423),h=r.n(l);function p(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function y(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),t}function d(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g(){return(g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function b(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function N(t,e){return e&&("object"==typeof e||"function"==typeof e)?e:w(t)}var E=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"],I=["Db","Eb","Gb","Ab","Bb"],_={C:0,"C#":1,Db:1,D:2,"D#":3,Eb:3,E:4,F:5,"F#":6,Gb:6,G:7,"G#":8,Ab:8,A:9,"A#":10,Bb:10,B:11},A=/([a-g])([#b]?)(\d+)/,B=o()(12,128).reduce(function(t,e){var r,n;return t[e]=(r=Math.floor((e-12)/12),n=E[(e-12)%12],{note:"".concat(n).concat(r),pitchName:n,octave:r,midiNumber:e,isAccidental:I.includes(n)}),t},{});function R(t){var e=B[t];if(!e)throw Error("Invalid MIDI number");return e}var S=o()(12,128).filter(function(t){return!R(t).isAccidental}),U={fromNote:function(t){if(!t)throw Error("Invalid note argument");var e=A.exec(t.toLowerCase());if(!e)throw Error("Invalid note argument");var r=function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var u,s=t[Symbol.iterator]();!(n=(u=s.next()).done)&&(r.push(u.value),4!==r.length);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,4)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}(),n=r[1],o=r[2],i=r[3],u=_["".concat(n.toUpperCase()).concat(o)];if(null==u)throw Error("Invalid note argument");return 12+u+12*parseInt(i,10)},getAttributes:R,MIN_MIDI_NUMBER:12,MAX_MIDI_NUMBER:127,NATURAL_MIDI_NUMBERS:S},O=function(t){function e(){p(this,e);for(var t,r,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return d(w(r=N(this,(t=v(e)).call.apply(t,[this].concat(o)))),"onPlayNoteInput",function(){r.props.onPlayNoteInput(r.props.midiNumber)}),d(w(r),"onStopNoteInput",function(){r.props.onStopNoteInput(r.props.midiNumber)}),r}return b(e,t),y(e,[{key:"getAbsoluteKeyPosition",value:function(t){var e=U.getAttributes(t),r=e.octave,n=e.pitchName;return this.props.pitchPositions[n]+7*r}},{key:"getRelativeKeyPosition",value:function(t){return this.getAbsoluteKeyPosition(t)-this.getAbsoluteKeyPosition(this.props.noteRange.first)}},{key:"render",value:function(){var t=this.props,e=t.naturalKeyWidth,r=t.accidentalWidthRatio,n=t.midiNumber,o=t.gliss,u=t.useTouchEvents,s=t.accidental,a=t.active,l=t.disabled,h=t.children;return i.createElement("div",{className:f()("ReactPiano__Key",{"ReactPiano__Key--accidental":s,"ReactPiano__Key--natural":!s,"ReactPiano__Key--disabled":l,"ReactPiano__Key--active":a}),style:{left:T(this.getRelativeKeyPosition(n)*e),width:T(s?r*e:e)},onMouseDown:u?null:this.onPlayNoteInput,onMouseUp:u?null:this.onStopNoteInput,onMouseEnter:o?this.onPlayNoteInput:null,onMouseLeave:this.onStopNoteInput,onTouchStart:u?this.onPlayNoteInput:null,onTouchCancel:u?this.onStopNoteInput:null,onTouchEnd:u?this.onStopNoteInput:null},i.createElement("div",{className:"ReactPiano__NoteLabelContainer"},h))}}]),e}(i.Component);function T(t){return"".concat(100*t,"%")}d(O,"propTypes",{midiNumber:s().number.isRequired,naturalKeyWidth:s().number.isRequired,gliss:s().bool.isRequired,useTouchEvents:s().bool.isRequired,accidental:s().bool.isRequired,active:s().bool.isRequired,disabled:s().bool.isRequired,onPlayNoteInput:s().func.isRequired,onStopNoteInput:s().func.isRequired,accidentalWidthRatio:s().number.isRequired,pitchPositions:s().object.isRequired,children:s().node}),d(O,"defaultProps",{accidentalWidthRatio:.65,pitchPositions:{C:0,Db:.55,D:1,Eb:1.8,E:2,F:3,Gb:3.5,G:4,Ab:4.7,A:5,Bb:5.85,B:6}});var P=function(t){function e(){return p(this,e),N(this,v(e).apply(this,arguments))}return b(e,t),y(e,[{key:"getMidiNumbers",value:function(){return o()(this.props.noteRange.first,this.props.noteRange.last+1)}},{key:"getNaturalKeyCount",value:function(){return this.getMidiNumbers().filter(function(t){return!U.getAttributes(t).isAccidental}).length}},{key:"getNaturalKeyWidth",value:function(){return 1/this.getNaturalKeyCount()}},{key:"getWidth",value:function(){return this.props.width?this.props.width:"100%"}},{key:"getHeight",value:function(){if(!this.props.width)return"100%";var t=this.props.width*this.getNaturalKeyWidth();return"".concat(t/this.props.keyWidthToHeight,"px")}},{key:"render",value:function(){var t=this,e=this.getNaturalKeyWidth();return i.createElement("div",{className:f()("ReactPiano__Keyboard",this.props.className),style:{width:this.getWidth(),height:this.getHeight()}},this.getMidiNumbers().map(function(r){var n=U.getAttributes(r),o=(n.note,n.isAccidental),u=!t.props.disabled&&t.props.activeNotes.includes(r);return i.createElement(O,{naturalKeyWidth:e,midiNumber:r,noteRange:t.props.noteRange,active:u,accidental:o,disabled:t.props.disabled,onPlayNoteInput:t.props.onPlayNoteInput,onStopNoteInput:t.props.onStopNoteInput,gliss:t.props.gliss,useTouchEvents:t.props.useTouchEvents,key:r},t.props.disabled?null:t.props.renderNoteLabel({isActive:u,isAccidental:o,midiNumber:r}))}))}}]),e}(i.Component);function x(t){return"number"==typeof t&&U.NATURAL_MIDI_NUMBERS.includes(t)}d(P,"propTypes",{noteRange:function(t,e,r){var n=t[e],o=n.first,i=n.last;return o&&i?x(o)&&x(i)?o>=i?Error("Invalid prop ".concat(e," supplied to ").concat(r,". ").concat(e,".first must be smaller than ").concat(e,".last.")):void 0:Error("Invalid prop ".concat(e," supplied to ").concat(r,". ").concat(e," values must be valid MIDI numbers, and should not be accidentals (sharp or flat notes).")):Error("Invalid prop ".concat(e," supplied to ").concat(r,". ").concat(e," must be an object with .first and .last values."))},activeNotes:s().arrayOf(s().number),onPlayNoteInput:s().func.isRequired,onStopNoteInput:s().func.isRequired,renderNoteLabel:s().func.isRequired,keyWidthToHeight:s().number.isRequired,className:s().string,disabled:s().bool,gliss:s().bool,useTouchEvents:s().bool,width:s().number}),d(P,"defaultProps",{disabled:!1,gliss:!1,useTouchEvents:!1,keyWidthToHeight:.33,renderNoteLabel:function(){}});var k=function(t){function e(){p(this,e);for(var t,r,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return d(w(r=N(this,(t=v(e)).call.apply(t,[this].concat(o)))),"state",{isMouseDown:!1,useTouchEvents:!1}),d(w(r),"handleNoteChanges",function(t){var e=t.prevActiveNotes,n=t.nextActiveNotes;
1if(!r.props.disabled){var o=h()(e,n);h()(n,e).forEach(function(t){r.props.playNote(t)}),o.forEach(function(t){r.props.stopNote(t)})}}),d(w(r),"getMidiNumberForKey",function(t){if(!r.props.keyboardShortcuts)return null;var e=r.props.keyboardShortcuts.find(function(e){return e.key===t});return e&&e.midiNumber}),d(w(r),"getKeyForMidiNumber",function(t){if(!r.props.keyboardShortcuts)return null;var e=r.props.keyboardShortcuts.find(function(e){return e.midiNumber===t});return e&&e.key}),d(w(r),"onKeyDown",function(t){if(!t.ctrlKey&&!t.metaKey&&!t.shiftKey){var e=r.getMidiNumberForKey(t.key);e&&r.onPlayNoteInput(e)}}),d(w(r),"onKeyUp",function(t){var e=r.getMidiNumberForKey(t.key);e&&r.onStopNoteInput(e)}),d(w(r),"onPlayNoteInput",function(t){r.props.disabled||r.props.onPlayNoteInput(t,r.props.activeNotes)}),d(w(r),"onStopNoteInput",function(t){r.props.disabled||r.props.onStopNoteInput(t,r.props.activeNotes)}),d(w(r),"onMouseDown",function(){r.setState({isMouseDown:!0})}),d(w(r),"onMouseUp",function(){r.setState({isMouseDown:!1})}),d(w(r),"onTouchStart",function(){r.setState({useTouchEvents:!0})}),d(w(r),"renderNoteLabel",function(t){var e=t.midiNumber,n=t.isActive,o=t.isAccidental,i=r.getKeyForMidiNumber(e);return r.props.renderNoteLabel({keyboardShortcut:i,midiNumber:e,isActive:n,isAccidental:o})}),r}return b(e,t),y(e,[{key:"componentDidMount",value:function(){window.addEventListener("keydown",this.onKeyDown),window.addEventListener("keyup",this.onKeyUp)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("keyup",this.onKeyUp)}},{key:"componentDidUpdate",value:function(t,e){this.props.activeNotes!==t.activeNotes&&this.handleNoteChanges({prevActiveNotes:t.activeNotes||[],nextActiveNotes:this.props.activeNotes||[]})}},{key:"render",value:function(){return i.createElement("div",{style:{width:"100%",height:"100%"},onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchStart:this.onTouchStart,"data-testid":"container"},i.createElement(P,{noteRange:this.props.noteRange,onPlayNoteInput:this.onPlayNoteInput,onStopNoteInput:this.onStopNoteInput,activeNotes:this.props.activeNotes,className:this.props.className,disabled:this.props.disabled,width:this.props.width,keyWidthToHeight:this.props.keyWidthToHeight,gliss:this.state.isMouseDown,useTouchEvents:this.state.useTouchEvents,renderNoteLabel:this.renderNoteLabel}))}}]),e}(i.Component);d(k,"propTypes",{noteRange:s().object.isRequired,activeNotes:s().arrayOf(s().number.isRequired).isRequired,playNote:s().func.isRequired,stopNote:s().func.isRequired,onPlayNoteInput:s().func.isRequired,onStopNoteInput:s().func.isRequired,renderNoteLabel:s().func.isRequired,className:s().string,disabled:s().bool,width:s().number,keyWidthToHeight:s().number,keyboardShortcuts:s().arrayOf(s().shape({key:s().string.isRequired,midiNumber:s().number.isRequired}))}),d(k,"defaultProps",{renderNoteLabel:function(t){var e=t.keyboardShortcut,r=(t.midiNumber,t.isActive),n=t.isAccidental;return e?i.createElement("div",{className:f()("ReactPiano__NoteLabel",{"ReactPiano__NoteLabel--active":r,"ReactPiano__NoteLabel--accidental":n,"ReactPiano__NoteLabel--natural":!n})},e):null}});var L=function(t){function e(){p(this,e);for(var t,r,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return d(w(r=N(this,(t=v(e)).call.apply(t,[this].concat(o)))),"state",{activeNotes:r.props.activeNotes||[]}),d(w(r),"handlePlayNoteInput",function(t){r.setState(function(e){return(r.props.onPlayNoteInput&&r.props.onPlayNoteInput(t,{prevActiveNotes:e.activeNotes}),e.activeNotes.includes(t))?null:{activeNotes:e.activeNotes.concat(t)}})}),d(w(r),"handleStopNoteInput",function(t){r.setState(function(e){return r.props.onStopNoteInput&&r.props.onStopNoteInput(t,{prevActiveNotes:r.state.activeNotes}),{activeNotes:e.activeNotes.filter(function(e){return t!==e})}})}),r}return b(e,t),y(e,[{key:"componentDidUpdate",value:function(t){t.activeNotes!==this.props.activeNotes&&this.state.activeNotes!==this.props.activeNotes&&this.setState({activeNotes:this.props.activeNotes||[]})}},{key:"render",value:function(){var t=this.props,e=(t.activeNotes,t.onPlayNoteInput,t.onStopNoteInput,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,["activeNotes","onPlayNoteInput","onStopNoteInput"]));return i.createElement(k,g({activeNotes:this.state.activeNotes,onPlayNoteInput:this.handlePlayNoteInput,onStopNoteInput:this.handleStopNoteInput},e))}}]),e}(i.Component);
1d(L,"propTypes",{noteRange:s().object.isRequired,activeNotes:s().arrayOf(s().number.isRequired),playNote:s().func.isRequired,stopNote:s().func.isRequired,onPlayNoteInput:s().func,onStopNoteInput:s().func,renderNoteLabel:s().func,className:s().string,disabled:s().bool,width:s().number,keyWidthToHeight:s().number,keyboardShortcuts:s().arrayOf(s().shape({key:s().string.isRequired,midiNumber:s().number.isRequired}))});var M={create:function(t){for(var e=t.firstNote,r=t.lastNote,n=t.keyboardConfig,o=e,i=0,u=[];i<n.length&&o<=r;){var s=n[i];U.getAttributes(o).isAccidental?u.push({key:s.flat,midiNumber:o}):(u.push({key:s.natural,midiNumber:o}),i+=1),o+=1}return u},BOTTOM_ROW:[{natural:"z",flat:"a",sharp:"s"},{natural:"x",flat:"s",sharp:"d"},{natural:"c",flat:"d",sharp:"f"},{natural:"v",flat:"f",sharp:"g"},{natural:"b",flat:"g",sharp:"h"},{natural:"n",flat:"h",sharp:"j"},{natural:"m",flat:"j",sharp:"k"},{natural:",",flat:"k",sharp:"l"},{natural:".",flat:"l",sharp:";"},{natural:"/",flat:";",sharp:"'"}],HOME_ROW:[{natural:"a",flat:"q",sharp:"w"},{natural:"s",flat:"w",sharp:"e"},{natural:"d",flat:"e",sharp:"r"},{natural:"f",flat:"r",sharp:"t"},{natural:"g",flat:"t",sharp:"y"},{natural:"h",flat:"y",sharp:"u"},{natural:"j",flat:"u",sharp:"i"},{natural:"k",flat:"i",sharp:"o"},{natural:"l",flat:"o",sharp:"p"},{natural:";",flat:"p",sharp:"["},{natural:"'",flat:"[",sharp:"]"}],QWERTY_ROW:[{natural:"q",flat:"1",sharp:"2"},{natural:"w",flat:"2",sharp:"3"},{natural:"e",flat:"3",sharp:"4"},{natural:"r",flat:"4",sharp:"5"},{natural:"t",flat:"5",sharp:"6"},{natural:"y",flat:"6",sharp:"7"},{natural:"u",flat:"7",sharp:"8"},{natural:"i",flat:"8",sharp:"9"},{natural:"o",flat:"9",sharp:"0"},{natural:"p",flat:"0",sharp:"-"},{natural:"[",flat:"-",sharp:"="}]}},56310:()=>{},4617:(t,e)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=i(t,function(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return o.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)n.call(t,r)&&t[r]&&(e=i(e,r));return e}(r)))}return t}function i(t,e){return e?t?t+" "+e:t+e:t}t.exports?(o.default=o,t.exports=o):void 0!==(r=(function(){return o}).apply(e,[]))&&(t.exports=r)}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.