1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1534],{2374:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var r in e)Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}(e,{cancelIdleCallback:function(){return i},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(t){let e=Date.now();return self.setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},i="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(t){return clearTimeout(t)};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},2700:(t,e,r)=>{"use strict";var i=r(2735),n=r(7016),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(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 u(t)}return f(t,e,r)}function f(t,e,r){if("string"==typeof t){var i=t,n=e;if(("string"!=typeof n||""===n)&&(n="utf8"),!l.isEncoding(n))throw TypeError("Unknown encoding: "+n);var o=0|p(i,n),f=s(o),a=f.write(i,n);return a!==o&&(f=f.slice(0,a)),f}if(ArrayBuffer.isView(t)){var u=t;if(R(u,Uint8Array)){var g=new Uint8Array(u);return c(g.buffer,g.byteOffset,g.byteLength)}return h(u)}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(R(t,ArrayBuffer)||t&&R(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(R(t,SharedArrayBuffer)||t&&R(t.buffer,SharedArrayBuffer)))return c(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var m=t.valueOf&&t.valueOf();if(null!=m&&m!==t)return l.from(m,e,r);var _=function(t){if(l.isBuffer(t)){var e=0|d(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?s(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(_)return _;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return l.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 a(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 u(t){return a(t),s(t<0?0:0|d(t))}function h(t){for(var e=t.length<0?0:0|d(t.length),r=s(e),i=0;i<e;i+=1)r[i]=255&t[i];return r}function c(t,e,r){var i;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(i=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),l.prototype),i}function d(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||R(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);var r=t.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return A(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return N(t).length;default:if(n)return i?-1:A(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,r){var n,o,s,l=!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){var i=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);for(var n="",o=e;o<r;++o)n+=C[t[o]];return n}(this,e,r);case"utf8":case"utf-8":return b(this,e,r);case"ascii":return function(t,e,r){var i="";r=Math.min(t.length,r);for(var n=e;n<r;++n)i+=String.fromCharCode(127&t[n]);return i}(this,e,r);case"latin1":case"binary":return function(t,e,r){var i="";r=Math.min(t.length,r);for(var n=e;n<r;++n)i+=String.fromCharCode(t[n]);return i}(this,e,r);case"base64":return n=this,o=e,s=r,0===o&&s===n.length?i.fromByteArray(n):i.fromByteArray(n.slice(o,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var i=t.slice(e,r),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}(this,e,r);default:if(l)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),l=!0}}function m(t,e,r){var i=t[e];t[e]=t[r],t[r]=i}function _(t,e,r,i,n){var o;if(0===t.length)return -1;if("string"==typeof r?(i=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(n)return -1;else r=t.length-1;else if(r<0)if(!n)return -1;else r=0;
vendor: 14,393 bytes, line 1
1if("string"==typeof e&&(e=l.from(e,i)),l.isBuffer(e))return 0===e.length?-1:y(t,e,r,i,n);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return y(t,[e],r,i,n)}throw TypeError("val must be string, number or Buffer")}function y(t,e,r,i,n){var o,s=1,l=t.length,f=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return -1;s=2,l/=2,f/=2,r/=2}function a(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(n){var u=-1;for(o=r;o<l;o++)if(a(t,o)===a(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===f)return u*s}else -1!==u&&(o-=o-u),u=-1}else for(r+f>l&&(r=l-f),o=r;o>=0;o--){for(var h=!0,c=0;c<f;c++)if(a(t,o+c)!==a(e,c)){h=!1;break}if(h)return o}return -1}function b(t,e,r){r=Math.min(t.length,r);for(var i=[],n=e;n<r;){var o,s,l,f,a=t[n],u=null,h=a>239?4:a>223?3:a>191?2:1;if(n+h<=r)switch(h){case 1:a<128&&(u=a);break;case 2:(192&(o=t[n+1]))==128&&(f=(31&a)<<6|63&o)>127&&(u=f);break;case 3:o=t[n+1],s=t[n+2],(192&o)==128&&(192&s)==128&&(f=(15&a)<<12|(63&o)<<6|63&s)>2047&&(f<55296||f>57343)&&(u=f);break;case 4:o=t[n+1],s=t[n+2],l=t[n+3],(192&o)==128&&(192&s)==128&&(192&l)==128&&(f=(15&a)<<18|(63&o)<<12|(63&s)<<6|63&l)>65535&&f<1114112&&(u=f)}null===u?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),n+=h}var c=i,d=c.length;if(d<=4096)return String.fromCharCode.apply(String,c);for(var p="",g=0;g<d;)p+=String.fromCharCode.apply(String,c.slice(g,g+=4096));return p}function v(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 w(t,e,r,i,n,o){if(!l.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<o)throw RangeError('"value" argument is out of bounds');if(r+i>t.length)throw RangeError("Index out of range")}function I(t,e,r,i,n,o){if(r+i>t.length||r<0)throw RangeError("Index out of range")}function O(t,e,r,i,o){return e*=1,r>>>=0,o||I(t,e,r,4,34028234663852886e22,-34028234663852886e22),n.write(t,e,r,i,23,4),r+4}function E(t,e,r,i,o){return e*=1,r>>>=0,o||I(t,e,r,8,17976931348623157e292,-17976931348623157e292),n.write(t,e,r,i,52,8),r+8}e.hp=l,e.IS=50,l.TYPED_ARRAY_SUPPORT=function(){try{var 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}}(),l.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(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(t,e,r){return f(t,e,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(t,e,r){return(a(t),t<=0)?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)},l.allocUnsafe=function(t){return u(t)},l.allocUnsafeSlow=function(t){return u(t)},l.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==l.prototype},l.compare=function(t,e){if(R(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),R(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(t)||!l.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,i=e.length,n=0,o=Math.min(r,i);n<o;++n)if(t[n]!==e[n]){r=t[n],i=e[n];break}return r<i?-1:+(i<r)},l.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}},l.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,i=l.allocUnsafe(e),n=0;for(r=0;r<t.length;++r){var o=t[r];if(R(o,Uint8Array))n+o.length>i.length?l.from(o).copy(i,n):Uint8Array.prototype.set.call(i,o,n);else if(l.isBuffer(o))o.copy(i,n);else throw TypeError('"list" argument must be an Array of Buffers');n+=o.length}return i},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},l.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?b(this,0,t):g.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(t){if(!l.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",r=e.IS;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(t,e,r,i,n){if(R(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.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===i&&(i=0),void 0===n&&(n=this.length),e<0||r>t.length||i<0||n>this.length)throw RangeError("out of range index");if(i>=n&&e>=r)return 0;if(i>=n)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,i>>>=0,n>>>=0,this===t)return 0;for(var o=n-i,s=r-e,f=Math.min(o,s),a=this.slice(i,n),u=t.slice(e,r),h=0;h<f;++h)if(a[h]!==u[h]){o=a[h],s=u[h];break}return o<s?-1:+(s<o)},l.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},l.prototype.indexOf=function(t,e,r){return _(this,t,e,r,!0)},l.prototype.lastIndexOf=function(t,e,r){return _(this,t,e,r,!1)},l.prototype.write=function(t,e,r,i){if(void 0===e)i="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)i=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,o,s,l,f,a,u,h,c=this.length-e;if((void 0===r||r>c)&&(r=c),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var d=!1;;)switch(i){case"hex":return function(t,e,r,i){r=Number(r)||0;var n=t.length-r;i?(i=Number(i))>n&&(i=n):i=n;var o=e.length;i>o/2&&(i=o/2);for(var s=0;s<i;++s){var l,f=parseInt(e.substr(2*s,2),16);if((l=f)!=l)break;t[r+s]=f}return s}(this,t,e,r);case"utf8":case"utf-8":return n=e,o=r,x(A(t,this.length-n),this,n,o);case"ascii":case"latin1":case"binary":return s=e,l=r,x(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(t),this,s,l);case"base64":return f=e,a=r,x(N(t),this,f,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=e,h=r,x(function(t,e){for(var r,i,n=[],o=0;o<t.length&&!((e-=2)<0);++o)i=(r=t.charCodeAt(o))>>8,n.push(r%256),n.push(i);return n}(t,this.length-u),this,u,h);default:if(d)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),d=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(t,e){var 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);var i=this.subarray(t,e);return Object.setPrototypeOf(i,l.prototype),i},l.prototype.readUintLE=l.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);for(var i=this[t],n=1,o=0;++o<e&&(n*=256);)i+=this[t+o]*n;return i},l.prototype.readUintBE=l.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);for(var i=this[t+--e],n=1;e>0&&(n*=256);)i+=this[t+--e]*n;return i},l.prototype.readUint8=l.prototype.readUInt8=function(t,e){return t>>>=0,e||v(t,1,this.length),this[t]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||v(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||v(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||v(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(t,e){return t>>>=0,e||v(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);for(var i=this[t],n=1,o=0;++o<e&&(n*=256);)i+=this[t+o]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*e)),i},l.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);for(var i=e,n=1,o=this[t+--i];i>0&&(n*=256);)o+=this[t+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return(t>>>=0,e||v(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||v(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},l.prototype.readInt16BE=function(t,e){t>>>=0,e||v(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},l.prototype.readInt32LE=function(t,e){return t>>>=0,e||v(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return t>>>=0,e||v(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return t>>>=0,e||v(t,4,this.length),n.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return t>>>=0,e||v(t,4,this.length),n.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return t>>>=0,e||v(t,8,this.length),n.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return t>>>=0,e||v(t,8,this.length),n.read(this,t,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(t,e,r,i){if(t*=1,e>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;w(this,t,e,r,n,0)}var o=1,s=0;for(this[e]=255&t;++s<r&&(o*=256);)this[e+s]=t/o&255;return e+r},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(t,e,r,i){if(t*=1,e>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;w(this,t,e,r,n,0)}var o=r-1,s=1;for(this[e+o]=255&t;--o>=0&&(s*=256);)this[e+o]=t/s&255;return e+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,1,255,0),this[e]=255&t,e+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||w(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},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||w(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},l.prototype.writeIntLE=function(t,e,r,i){if(t*=1,e>>>=0,!i){var n=Math.pow(2,8*r-1);w(this,t,e,r,n-1,-n)}var o=0,s=1,l=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===l&&0!==this[e+o-1]&&(l=1),this[e+o]=(t/s|0)-l&255;return e+r},l.prototype.writeIntBE=function(t,e,r,i){if(t*=1,e>>>=0,!i){var n=Math.pow(2,8*r-1);w(this,t,e,r,n-1,-n)}var o=r-1,s=1,l=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===l&&0!==this[e+o+1]&&(l=1),this[e+o]=(t/s|0)-l&255;return e+r},l.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||w(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},l.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||w(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},l.prototype.writeFloatLE=function(t,e,r){return O(this,t,e,!0,r)},l.prototype.writeFloatBE=function(t,e,r){return O(this,t,e,!1,r)},l.prototype.writeDoubleLE=function(t,e,r){return E(this,t,e,!0,r)},l.prototype.writeDoubleBE=function(t,e,r){return E(this,t,e,!1,r)},l.prototype.copy=function(t,e,r,i){if(!l.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<r&&(i=r),i===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(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-r&&(i=t.length-e+r);var n=i-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,i):Uint8Array.prototype.set.call(t,this.subarray(r,i),e),n},l.prototype.fill=function(t,e,r,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===t.length){var n,o=t.charCodeAt(0);("utf8"===i&&o<128||"latin1"===i)&&(t=o)}}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(n=e;n<r;++n)this[n]=t;
1else{var s=l.isBuffer(t)?t:l.from(t,i),f=s.length;if(0===f)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(n=0;n<r-e;++n)this[n+e]=s[n%f]}return this};var S=/[^+/0-9A-Za-z-_]/g;function A(t,e){e=e||1/0;for(var r,i=t.length,n=null,o=[],s=0;s<i;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!n){if(r>56319||s+1===i){(e-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(e-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function N(t){return i.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function x(t,e,r,i){for(var n=0;n<i&&!(n+r>=e.length)&&!(n>=t.length);++n)e[n+r]=t[n];return n}function R(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var C=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)e[i+n]=t[r]+t[n];return e}()},2735:(t,e)=>{"use strict";e.byteLength=function(t){var e=f(t),r=e[0],i=e[1];return(r+i)*3/4-i},e.toByteArray=function(t){var e,r,o=f(t),s=o[0],l=o[1],a=new n((s+l)*3/4-l),u=0,h=l>0?s-4:s;for(r=0;r<h;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],a[u++]=e>>16&255,a[u++]=e>>8&255,a[u++]=255&e;return 2===l&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,a[u++]=255&e),1===l&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,a[u++]=e>>8&255,a[u++]=255&e),a},e.fromByteArray=function(t){for(var e,i=t.length,n=i%3,o=[],s=0,l=i-n;s<l;s+=16383)o.push(function(t,e,i){for(var n,o=[],s=e;s<i;s+=3)n=(t[s]<<16&0xff0000)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(r[n>>18&63]+r[n>>12&63]+r[n>>6&63]+r[63&n]);return o.join("")}(t,s,s+16383>l?l:s+16383));return 1===n?o.push(r[(e=t[i-1])>>2]+r[e<<4&63]+"=="):2===n&&o.push(r[(e=(t[i-2]<<8)+t[i-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],i=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function f(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 i=r===e?0:4-r%4;return[r,i]}i[45]=62,i[95]=63},7016:(t,e)=>{e.read=function(t,e,r,i,n){var o,s,l=8*n-i-1,f=(1<<l)-1,a=f>>
11,u=-7,h=r?n-1:0,c=r?-1:1,d=t[e+h];for(h+=c,o=d&(1<<-u)-1,d>>=-u,u+=l;u>0;o=256*o+t[e+h],h+=c,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=i;u>0;s=256*s+t[e+h],h+=c,u-=8);if(0===o)o=1-a;else{if(o===f)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,i),o-=a}return(d?-1:1)*s*Math.pow(2,o-i)},e.write=function(t,e,r,i,n,o){var s,l,f,a=8*o-n-1,u=(1<<a)-1,h=u>>1,c=5960464477539062e-23*(23===n),d=i?0:o-1,p=i?1:-1,g=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(l=+!!isNaN(e),s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-s))<1&&(s--,f*=2),s+h>=1?e+=c/f:e+=c*Math.pow(2,1-h),e*f>=2&&(s++,f/=2),s+h>=u?(l=0,s=u):s+h>=1?(l=(e*f-1)*Math.pow(2,n),s+=h):(l=e*Math.pow(2,h-1)*Math.pow(2,n),s=0));n>=8;t[r+d]=255&l,d+=p,l/=256,n-=8);for(s=s<<n|l,a+=n;a>0;t[r+d]=255&s,d+=p,s/=256,a-=8);t[r+d-p]|=128*g}},7703:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return f}});let i=r(2115),n=r(2374),o="function"==typeof IntersectionObserver,s=new Map,l=[];function f(t){let{rootRef:e,rootMargin:r,disabled:f}=t,a=f||!o,[u,h]=(0,i.useState)(!1),c=(0,i.useRef)(null),d=(0,i.useCallback)(t=>{c.current=t},[]);return(0,i.useEffect)(()=>{if(o){if(a||u)return;let t=c.current;if(t&&t.tagName)return function(t,e,r){let{id:i,observer:n,elements:o}=function(t){let e,r={root:t.root||null,margin:t.rootMargin||""},i=l.find(t=>t.root===r.root&&t.margin===r.margin);if(i&&(e=s.get(i)))return e;let n=new Map;return e={id:r,observer:new IntersectionObserver(t=>{t.forEach(t=>{let e=n.get(t.target),r=t.isIntersecting||t.intersectionRatio>0;e&&r&&e(r)})},t),elements:n},l.push(r),s.set(r,e),e}(r);return o.set(t,e),n.observe(t),function(){if(o.delete(t),n.unobserve(t),0===o.size){n.disconnect(),s.delete(i);let t=l.findIndex(t=>t.root===i.root&&t.margin===i.margin);t>-1&&l.splice(t,1)}}}(t,t=>t&&h(t),{root:null==e?void 0:e.current,rootMargin:r})}else if(!u){let t=(0,n.requestIdleCallback)(()=>h(!0));return()=>(0,n.cancelIdleCallback)(t)}},[a,r,e,u,c.current]),[d,u,(0,i.useCallback)(()=>{h(!1)},[])]}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},8221:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return S}});let i=r(8229),n=r(6966),o=r(5155),s=n._(r(2115)),l=n._(r(7650)),f=i._(r(5564)),a=r(5840),u=r(7703),h=r(6752);r(3230);let c=r(214);function d(t){return"/"===t[0]?t.slice(1):t}let p="function"==typeof l.preload,g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0},m=new Set,_="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",y=new Map([["default",function(t){var e;let{config:r,src:i,width:n,quality:o}=t,s=o||(null==(e=r.qualities)?void 0:e.reduce((t,e)=>Math.abs(e-75)<Math.abs(t-75)?e:t))||75;return!r.dangerouslyAllowSVG&&i.split("?",1)[0].endsWith(".svg")?i:(0,c.normalizePathTrailingSlash)(r.path)+"?url="+encodeURIComponent(i)+"&w="+n+"&q="+s}],["imgix",function(t){let{config:e,src:r,width:i,quality:n}=t,o=new URL(""+e.path+d(r)),s=o.searchParams;return s.set("auto",s.getAll("auto").join(",")||"format"),s.set("fit",s.get("fit")||"max"),s.set("w",s.get("w")||i.toString()),n&&s.set("q",n.toString()),o.href}],["cloudinary",function(t){let{config:e,src:r,width:i,quality:n}=t,o=["f_auto","c_limit","w_"+i,"q_"+(n||"auto")].join(",")+"/";return""+e.path+o+d(r)}],["akamai",function(t){let{config:e,src:r,width:i}=t;return""+e.path+d(r)+"?imwidth="+i}],["custom",function(t){let{src:e}=t;throw Object.defineProperty(Error('Image with src "'+e+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}]]);function b(t){return void 0!==t.default}function v(t){let{config:e,src:r,unoptimized:i,layout:n,width:o,quality:s,sizes:l,loader:f}=t;if(i)return{src:r,srcSet:void 0,sizes:void 0};let{widths:a,kind:u}=function(t,e,r,i){let{deviceSizes:n,allSizes:o}=t;if(i&&("fill"===r||"responsive"===r)){let t=/(^|\s)(1?\d?\d)vw/g,e=[];for(let r;r=t.exec(i);)e.push(parseInt(r[2]));if(e.length){let t=.01*Math.min(...e);return{widths:o.filter(e=>e>=n[0]*t),kind:"w"}}return{widths:o,kind:"w"}}return"number"!=typeof e||"fill"===r||"responsive"===r?{widths:n,kind:"w"}:{widths:[...new Set([e,2*e].map(t=>o.find(e=>e>=t)||o[o.length-1]))],kind:"x"}}(e,o,n,l),h=a.length-1;return{sizes:l||"w"!==u?l:"100vw",srcSet:a.map((t,i)=>f({config:e,src:r,quality:s,width:t})+" "+("w"===u?t:i+1)+u).join(", "),src:f({config:e,src:r,quality:s,width:a[h]})}}function w(t){return"number"==typeof t?t:"string"==typeof t?parseInt(t,10):void 0}function I(t){var e;let r=(null==(e=t.config)?void 0:e.loader)||"default",i=y.get(r);if(i)return i(t);throw Object.defineProperty(Error('Unknown "loader" found in "next.config.js". Expected: '+a.VALID_LOADERS.join(", ")+". Received: "+r),"__NEXT_ERROR_CODE",{value:"E338",enumerable:!1,
1configurable:!0})}function O(t,e,r,i,n,o){t&&t.src!==_&&t["data-loaded-src"]!==e&&(t["data-loaded-src"]=e,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentNode&&(m.add(e),"blur"===i&&o(!0),null==n?void 0:n.current)){let{naturalWidth:e,naturalHeight:r}=t;n.current({naturalWidth:e,naturalHeight:r})}}))}let E=t=>{let{imgAttributes:e,heightInt:r,widthInt:i,qualityInt:n,layout:l,className:f,imgStyle:a,blurStyle:u,isLazy:h,placeholder:c,loading:d,srcString:p,config:g,unoptimized:m,loader:_,onLoadingCompleteRef:y,setBlurComplete:b,setIntersection:w,onLoad:I,onError:E,isVisible:S,noscriptSizes:A,...N}=t;return d=h?"lazy":d,(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("img",{...N,...e,decoding:"async","data-nimg":l,className:f,style:{...a,...u},ref:(0,s.useCallback)(t=>{w(t),(null==t?void 0:t.complete)&&O(t,p,l,c,y,b)},[w,p,l,c,y,b]),onLoad:t=>{O(t.currentTarget,p,l,c,y,b),I&&I(t)},onError:t=>{"blur"===c&&b(!0),E&&E(t)}}),(h||"blur"===c)&&(0,o.jsx)("noscript",{children:(0,o.jsx)("img",{...N,loading:d,decoding:"async","data-nimg":l,style:a,className:f,...v({config:g,src:p,unoptimized:m,layout:l,width:i,quality:n,sizes:A,loader:_})})})]})};function S(t){var e;let r,{src:i,sizes:n,unoptimized:l=!1,priority:c=!1,loading:d,lazyRoot:y=null,lazyBoundary:O,className:S,quality:A,width:N,height:x,style:R,objectFit:C,objectPosition:B,onLoadingComplete:L,placeholder:T="empty",blurDataURL:D,...U}=t,k=(0,s.useContext)(h.ImageConfigContext),j=(0,s.useMemo)(()=>{var t;let e=g||k||a.imageConfigDefault,r=[...e.deviceSizes,...e.imageSizes].sort((t,e)=>t-e),i=e.deviceSizes.sort((t,e)=>t-e),n=null==(t=e.qualities)?void 0:t.sort((t,e)=>t-e);return{...e,allSizes:r,deviceSizes:i,qualities:n}},[k]),M=n?"responsive":"intrinsic";"layout"in U&&(U.layout&&(M=U.layout),delete U.layout);let $=I;if("loader"in U){if(U.loader){let t=U.loader;$=e=>{let{config:r,...i}=e;return t(i)}}delete U.loader}let P="";if("object"==typeof(e=i)&&(b(e)||void 0!==e.src)){let t=b(i)?i.default:i;if(!t.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(t)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(D=D||t.blurDataURL,P=t.src,(!M||"fill"!==M)&&(x=x||t.height,N=N||t.width,!t.height||!t.width))throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(t)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0})}let z=!c&&("lazy"===d||void 0===d);((i="string"==typeof i?i:P).startsWith("data:")||i.startsWith("blob:"))&&(l=!0,z=!1),m.has(i)&&(z=!1),j.unoptimized&&(l=!0);let[q,V]=(0,s.useState)(!1),[J,F,Q]=(0,u.useIntersection)({rootRef:y,rootMargin:O||"200px",disabled:!z}),G=!z||F,H={boxSizing:"border-box",display:"block",overflow:"hidden",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},W={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},Y=!1,X=w(N),Z=w(x),K=w(A),tt=Object.assign({},R,{position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:C,objectPosition:B}),te="blur"!==T||q?{}:{backgroundSize:C||"cover",backgroundPosition:B||"0% 0%",filter:"blur(20px)",backgroundImage:'url("'+D+'")'};if("fill"===M)H.display="block",H.position="absolute",H.top=0,H.left=0,H.bottom=0,H.right=0;else if(void 0!==X&&void 0!==Z){let t=Z/X,e=isNaN(t)?"100%":""+100*t+"%";"responsive"===M?(H.display="block",H.position="relative",Y=!0,W.paddingTop=e):"intrinsic"===M?(H.display="inline-block",H.position="relative",H.maxWidth="100%",Y=!0,W.maxWidth="100%",r="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27"+X+"%27%20height=%27"+Z+"%27/%3e"):"fixed"===M&&(H.display="inline-block",H.position="relative",H.width=X,H.height=Z)}let tr={src:_,srcSet:void 0,sizes:void 0};G&&(tr=v({config:j,src:i,unoptimized:l,layout:M,width:X,quality:K,sizes:n,loader:$}));let ti=i,tn=p?void 0:{imageSrcSet:tr.srcSet,imageSizes:tr.sizes,crossOrigin:U.crossOrigin,referrerPolicy:U.referrerPolicy},to=s.default.useLayoutEffect,ts=(0,s.useRef)(L),tl=(0,s.useRef)(i);(0,s.useEffect)(()=>{ts.current=L},[L]),to(()=>{tl.current!==i&&(Q(),tl.current=i)},[Q,i]);let tf={isLazy:z,imgAttributes:tr,heightInt:Z,widthInt:X,qualityInt:K,layout:M,className:S,imgStyle:tt,blurStyle:te,loading:d,config:j,unoptimized:l,placeholder:T,loader:$,srcString:ti,onLoadingCompleteRef:ts,setBlurComplete:V,setIntersection:J,isVisible:G,noscriptSizes:n,...U};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("span",{style:H,children:[Y?(0,o.jsx)("span",{style:W,children:r?(0,o.jsx)("img",{style:{display:"block",maxWidth:"100%",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},alt:"","aria-hidden":!0,src:r}):null}):null,(0,o.jsx)(E,{...tf})]}),!p&&c?(0,o.jsx)(f.default,{children:(0,o.jsx)("link",{rel:"preload",as:"image",href:tr.srcSet?void 0:tr.src,...tn},"__nimg-"+tr.src+tr.srcSet+tr.sizes)}):null]})}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esMo
1dule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},8937:(t,e,r)=>{t.exports=r(8221)},9717:(t,e,r)=>{"use strict";r.d(e,{q:()=>m});var i=r(2700).hp;class n extends Error{constructor(t,e,r,...o){for(let s of(Array.isArray(e)&&(e=e.join(" ").trim()),super(e),void 0!==Error.captureStackTrace&&Error.captureStackTrace(this,n),this.code=t,o))for(let t in s){let e=s[t];this[t]=i.isBuffer(e)?e.toString(r.encoding):null==e?e:JSON.parse(JSON.stringify(e))}}}let o=function(t){let e=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];if(null==i||!1===i)e[r]={disabled:!0};else if("string"==typeof i)e[r]={name:i};else{if("object"!=typeof i||null===i||Array.isArray(i))throw new n("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(i)} at position ${r}`]);if("string"!=typeof i.name)throw new n("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${r}`,"when column is an object literal"]);e[r]=i}}return e};var s=r(2700).hp;class l{constructor(t=100){this.size=t,this.length=0,this.buf=s.allocUnsafe(t)}prepend(t){if(s.isBuffer(t)){let e=this.length+t.length;if(e>=this.size&&(this.resize(),e>=this.size))throw Error("INVALID_BUFFER_STATE");let r=this.buf;this.buf=s.allocUnsafe(this.size),t.copy(this.buf,0),r.copy(this.buf,t.length),this.length+=t.length}else{let e=this.length++;e===this.size&&this.resize();let r=this.clone();this.buf[0]=t,r.copy(this.buf,1,0,e)}}append(t){let e=this.length++;e===this.size&&this.resize(),this.buf[e]=t}clone(){return s.from(this.buf.slice(0,this.length))}resize(){let t=this.length;this.size=2*this.size;let e=s.allocUnsafe(this.size);this.buf.copy(e,0,0,t),this.buf=e}toString(t){return t?this.buf.slice(0,this.length).toString(t):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}}var f=r(2700).hp,a=r(2700).hp;let u=function(t){let e={};for(let r in t)e[r.replace(/([A-Z])/g,function(t,e){return"_"+e.toLowerCase()})]=t[r];if(void 0===e.encoding||!0===e.encoding)e.encoding="utf8";else if(null===e.encoding||!1===e.encoding)e.encoding=null;else if("string"!=typeof e.encoding&&null!==e.encoding)throw new n("CSV_INVALID_OPTION_ENCODING",["Invalid option encoding:","encoding must be a string or null to return a buffer,",`got ${JSON.stringify(e.encoding)}`],e);if(void 0===e.bom||null===e.bom||!1===e.bom)e.bom=!1;else if(!0!==e.bom)throw new n("CSV_INVALID_OPTION_BOM",["Invalid option bom:","bom must be true,",`got ${JSON.stringify(e.bom)}`],e);if(e.cast_function=null,void 0===e.cast||null===e.cast||!1===e.cast||""===e.cast)e.cast=void 0;else if("function"==typeof e.cast)e.cast_function=e.cast,e.cast=!0;else if(!0!==e.cast)throw new n("CSV_INVALID_OPTION_CAST",["Invalid option cast:","cast must be true or a function,",`got ${JSON.stringify(e.cast)}`],e);if(void 0===e.cast_date||null===e.cast_date||!1===e.cast_date||""===e.cast_date)e.cast_date=!1;else if(!0===e.cast_date)e.cast_date=function(t){let e=Date.parse(t);return isNaN(e)?t:new Date(e)};else if("function"!=typeof e.cast_date)throw new n("CSV_INVALID_OPTION_CAST_DATE",["Invalid option cast_date:","cast_date must be true or a function,",`got ${JSON.stringify(e.cast_date)}`],e);if(e.cast_first_line_to_header=null,!0===e.columns)e.cast_first_line_to_header=void 0;else if("function"==typeof e.columns)e.cast_first_line_to_header=e.columns,e.columns=!0;else if(Array.isArray(e.columns))e.columns=o(e.columns);else if(void 0===e.columns||null===e.columns||!1===e.columns)e.columns=!1;else throw new n("CSV_INVALID_OPTION_COLUMNS",["Invalid option columns:","expect an array, a function or true,",`got ${JSON.stringify(e.columns)}`],e);if(void 0===e.group_columns_by_name||null===e.group_columns_by_name||!1===e.group_columns_by_name)e.group_columns_by_name=!1;else if(!0!==e.group_columns_by_name)throw new n("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","expect an boolean,",`got ${JSON.stringify(e.group_columns_by_name)}`],e);else if(!1===e.columns)throw new n("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","the `columns` mode must be activated."],e);if(void 0===e.comment||null===e.comment||!1===e.comment||""===e.comment)e.comment=null;else if("string"==typeof e.comment&&(e.comment=a.from(e.comment,e.encoding)),!a.isBuffer(e.comment))throw new n("CSV_INVALID_OPTION_COMMENT",["Invalid option comment:","comment must be a buffer or a string,",`got ${JSON.stringify(e.comment)}`],e);if(void 0===e.comment_no_infix||null===e.comment_no_infix||!1===e.comment_no_infix)e.comment_no_infix=!1;else if(!0!==e.comment_no_infix)throw new n("CSV_INVALID_OPTION_COMMENT",["Invalid option comment_no_infix:","value must be a boolean,",`got ${JSON.stringify(e.comment_no_infix)}`],e);let r=JSON.stringify(e.delimiter);if(Array.isArray(e.delimiter)||(e.delimiter=[e.delimiter]),0===e.delimiter.length)throw new n("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of str
1ing|buffer,",`got ${r}`],e);if(e.delimiter=e.delimiter.map(function(t){if(null==t||!1===t)return a.from(",",e.encoding);if("string"==typeof t&&(t=a.from(t,e.encoding)),!a.isBuffer(t)||0===t.length)throw new n("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${r}`],e);return t}),void 0===e.escape||!0===e.escape?e.escape=a.from('"',e.encoding):"string"==typeof e.escape?e.escape=a.from(e.escape,e.encoding):(null===e.escape||!1===e.escape)&&(e.escape=null),null!==e.escape&&!a.isBuffer(e.escape))throw Error(`Invalid Option: escape must be a buffer, a string or a boolean, got ${JSON.stringify(e.escape)}`);if(void 0===e.from||null===e.from)e.from=1;else if("string"==typeof e.from&&/\d+/.test(e.from)&&(e.from=parseInt(e.from)),Number.isInteger(e.from)){if(e.from<0)throw Error(`Invalid Option: from must be a positive integer, got ${JSON.stringify(t.from)}`)}else throw Error(`Invalid Option: from must be an integer, got ${JSON.stringify(e.from)}`);if(void 0===e.from_line||null===e.from_line)e.from_line=1;else if("string"==typeof e.from_line&&/\d+/.test(e.from_line)&&(e.from_line=parseInt(e.from_line)),Number.isInteger(e.from_line)){if(e.from_line<=0)throw Error(`Invalid Option: from_line must be a positive integer greater than 0, got ${JSON.stringify(t.from_line)}`)}else throw Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(t.from_line)}`);if(void 0===e.ignore_last_delimiters||null===e.ignore_last_delimiters)e.ignore_last_delimiters=!1;else if("number"==typeof e.ignore_last_delimiters)e.ignore_last_delimiters=Math.floor(e.ignore_last_delimiters),0===e.ignore_last_delimiters&&(e.ignore_last_delimiters=!1);else if("boolean"!=typeof e.ignore_last_delimiters)throw new n("CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS",["Invalid option `ignore_last_delimiters`:","the value must be a boolean value or an integer,",`got ${JSON.stringify(e.ignore_last_delimiters)}`],e);if(!0===e.ignore_last_delimiters&&!1===e.columns)throw new n("CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS",["The option `ignore_last_delimiters`","requires the activation of the `columns` option"],e);if(void 0===e.info||null===e.info||!1===e.info)e.info=!1;else if(!0!==e.info)throw Error(`Invalid Option: info must be true, got ${JSON.stringify(e.info)}`);if(void 0===e.max_record_size||null===e.max_record_size||!1===e.max_record_size)e.max_record_size=0;else if(Number.isInteger(e.max_record_size)&&e.max_record_size>=0);else if("string"==typeof e.max_record_size&&/\d+/.test(e.max_record_size))e.max_record_size=parseInt(e.max_record_size);else throw Error(`Invalid Option: max_record_size must be a positive integer, got ${JSON.stringify(e.max_record_size)}`);if(void 0===e.objname||null===e.objname||!1===e.objname)e.objname=void 0;else if(a.isBuffer(e.objname)){if(0===e.objname.length)throw Error("Invalid Option: objname must be a non empty buffer");null===e.encoding||(e.objname=e.objname.toString(e.encoding))}else if("string"==typeof e.objname){if(0===e.objname.length)throw Error("Invalid Option: objname must be a non empty string")}else if("number"==typeof e.objname);else throw Error(`Invalid Option: objname must be a string or a buffer, got ${e.objname}`);if(void 0!==e.objname){if("number"==typeof e.objname){if(!1!==e.columns)throw Error("Invalid Option: objname index cannot be combined with columns or be defined as a field")}else if(!1===e.columns)throw Error("Invalid Option: objname field must be combined with columns or be defined as an index")}if(void 0===e.on_record||null===e.on_record)e.on_record=void 0;else if("function"!=typeof e.on_record)throw new n("CSV_INVALID_OPTION_ON_RECORD",["Invalid option `on_record`:","expect a function,",`got ${JSON.stringify(e.on_record)}`],e);if(void 0!==e.on_skip&&null!==e.on_skip&&"function"!=typeof e.on_skip)throw Error(`Invalid Option: on_skip must be a function, got ${JSON.stringify(e.on_skip)}`);if(null===e.quote||!1===e.quote||""===e.quote)e.quote=null;else if(void 0===e.quote||!0===e.quote?e.quote=a.from('"',e.encoding):"string"==typeof e.quote&&(e.quote=a.from(e.quote,e.encoding)),!a.isBuffer(e.quote))throw Error(`Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(e.quote)}`);if(void 0===e.raw||null===e.raw||!1===e.raw)e.raw=!1;else if(!0!==e.raw)throw Error(`Invalid Option: raw must be true, got ${JSON.stringify(e.raw)}`);if(void 0===e.record_delimiter)e.record_delimiter=[];else if("string"==typeof e.record_delimiter||a.isBuffer(e.record_delimiter)){if(0===e.record_delimiter.length)throw new n("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer,",`got ${JSON.stringify(e.record_delimiter)}`],e);e.record_delimiter=[e.record_delimiter]}else if(!Array.isArray(e.record_delimiter))throw new n("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of str
1ing|buffer,",`got ${JSON.stringify(e.record_delimiter)}`],e);if(e.record_delimiter=e.record_delimiter.map(function(t,r){if("string"==typeof t||a.isBuffer(t)){if(0===t.length)throw new n("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer",`at index ${r},`,`got ${JSON.stringify(t)}`],e)}else throw new n("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer",`at index ${r},`,`got ${JSON.stringify(t)}`],e);return"string"==typeof t&&(t=a.from(t,e.encoding)),t}),"boolean"==typeof e.relax_column_count);else if(void 0===e.relax_column_count||null===e.relax_column_count)e.relax_column_count=!1;else throw Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(e.relax_column_count)}`);if("boolean"==typeof e.relax_column_count_less);else if(void 0===e.relax_column_count_less||null===e.relax_column_count_less)e.relax_column_count_less=!1;else throw Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(e.relax_column_count_less)}`);if("boolean"==typeof e.relax_column_count_more);else if(void 0===e.relax_column_count_more||null===e.relax_column_count_more)e.relax_column_count_more=!1;else throw Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(e.relax_column_count_more)}`);if("boolean"==typeof e.relax_quotes);else if(void 0===e.relax_quotes||null===e.relax_quotes)e.relax_quotes=!1;else throw Error(`Invalid Option: relax_quotes must be a boolean, got ${JSON.stringify(e.relax_quotes)}`);if("boolean"==typeof e.skip_empty_lines);else if(void 0===e.skip_empty_lines||null===e.skip_empty_lines)e.skip_empty_lines=!1;else throw Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(e.skip_empty_lines)}`);if("boolean"==typeof e.skip_records_with_empty_values);else if(void 0===e.skip_records_with_empty_values||null===e.skip_records_with_empty_values)e.skip_records_with_empty_values=!1;else throw Error(`Invalid Option: skip_records_with_empty_values must be a boolean, got ${JSON.stringify(e.skip_records_with_empty_values)}`);if("boolean"==typeof e.skip_records_with_error);else if(void 0===e.skip_records_with_error||null===e.skip_records_with_error)e.skip_records_with_error=!1;else throw Error(`Invalid Option: skip_records_with_error must be a boolean, got ${JSON.stringify(e.skip_records_with_error)}`);if(void 0===e.rtrim||null===e.rtrim||!1===e.rtrim)e.rtrim=!1;else if(!0!==e.rtrim)throw Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(e.rtrim)}`);if(void 0===e.ltrim||null===e.ltrim||!1===e.ltrim)e.ltrim=!1;else if(!0!==e.ltrim)throw Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(e.ltrim)}`);if(void 0===e.trim||null===e.trim||!1===e.trim)e.trim=!1;else if(!0!==e.trim)throw Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(e.trim)}`);if(!0===e.trim&&!1!==t.ltrim?e.ltrim=!0:!0!==e.ltrim&&(e.ltrim=!1),!0===e.trim&&!1!==t.rtrim?e.rtrim=!0:!0!==e.rtrim&&(e.rtrim=!1),void 0===e.to||null===e.to)e.to=-1;else if("string"==typeof e.to&&/\d+/.test(e.to)&&(e.to=parseInt(e.to)),Number.isInteger(e.to)){if(e.to<=0)throw Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(t.to)}`)}else throw Error(`Invalid Option: to must be an integer, got ${JSON.stringify(t.to)}`);if(void 0===e.to_line||null===e.to_line)e.to_line=-1;else if("string"==typeof e.to_line&&/\d+/.test(e.to_line)&&(e.to_line=parseInt(e.to_line)),Number.isInteger(e.to_line)){if(e.to_line<=0)throw Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(t.to_line)}`)}else throw Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(t.to_line)}`);return e};var h=r(2700).hp;let c=function(t){return t.every(t=>null==t||t.toString&&""===t.toString().trim())},d={utf8:h.from([239,187,191]),utf16le:h.from([255,254])},p=function(t={}){let e=u(t);return{info:{bytes:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},original_options:t,options:e,state:{bomSkipped:!1,bufBytesStart:0,castField:e.cast_function,commenting:!1,error:void 0,enabled:1===e.from_line,escaping:!1,escapeIsQuote:f.isBuffer(e.escape)&&f.isBuffer(e.quote)&&0===f.compare(e.escape,e.quote),expectedRecordLength:Array.isArray(e.columns)?e.columns.length:void 0,field:new l(20),firstLineToHeaders:e.cast_first_line_to_header,needMoreDataSize:Math.max(null!==e.comment?e.comment.length:0,...e.delimiter.map(t=>t.length),null!==e.quote?e.quote.length:0),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new l(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:0===e.record_delimiter.length?0:Math.max(...e.record_delimiter.map(t=>t.length)),trimChars:[f.from(" ",e.encoding)[0],f.from(" ",e.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:[f.from(f.from([13],"utf8").toString(),e.encoding),f.from(f.from([10],"utf8").toString(),e.encoding),f.from(f.from([12],"utf8").toString(),e.encoding),f.from(f.from([32],"utf8").toString(),e.encoding),f.from(f.from([9],"utf8").toString(),e.encoding)]},__needMoreData:function(t,e,r){if(r)return!1;let{encoding:i,escape:n,quote:o}=this.options,{quoting:s,needMoreDataSize:l,recordDelimiterMaxLength:f}=this.state;return e-t-1<Math.max(l,0===f?h.from("\r\n",i).length:f,s?(null===n?0:n.length)+o.length:0,s?o.length+f:0)},parse:function(t,e,r,i){let o,s,{bom:l,comment_no_infix:f,encoding:a,from_line:c,ltrim:p,max_record_size:g,raw:m,relax_quotes:_,rtrim:y,skip_empty_lines:b,to:v,to_line:w}=this.options,{comment:I,escape:O,quote:E,record_delimiter:S}
1=this.options,{bomSkipped:A,previousBuf:N,rawBuffer:x,escapeIsQuote:R}=this.state;if(void 0===N)if(void 0===t)return void i();else o=t;else o=void 0!==N&&void 0===t?N:h.concat([N,t]);if(!1===A)if(!1===l)this.state.bomSkipped=!0;else if(o.length<3){if(!1===e){this.state.previousBuf=o;return}}else{for(let t in d)if(0===d[t].compare(o,0,d[t].length)){let e=d[t].length;this.state.bufBytesStart+=e,o=o.slice(e),this.options=u({...this.original_options,encoding:t}),{comment:I,escape:O,quote:E}=this.options;break}this.state.bomSkipped=!0}let C=o.length;for(s=0;s<C&&!this.__needMoreData(s,C,e);s++){if(!0===this.state.wasRowDelimiter&&(this.info.lines++,this.state.wasRowDelimiter=!1),-1!==w&&this.info.lines>w){this.state.stop=!0,i();return}!1===this.state.quoting&&0===S.length&&this.__autoDiscoverRecordDelimiter(o,s)&&(S=this.options.record_delimiter);let t=o[s];if(!0===m&&x.append(t),(13===t||10===t)&&!1===this.state.wasRowDelimiter&&(this.state.wasRowDelimiter=!0),!0===this.state.escaping)this.state.escaping=!1;else{if(null!==O&&!0===this.state.quoting&&this.__isEscape(o,s,t)&&s+O.length<C)if(R){if(this.__isQuote(o,s+O.length)){this.state.escaping=!0,s+=O.length-1;continue}}else{this.state.escaping=!0,s+=O.length-1;continue}if(!1===this.state.commenting&&this.__isQuote(o,s))if(!0===this.state.quoting){let e=o[s+E.length],r=y&&this.__isCharTrimable(o,s+E.length),i=null!==I&&this.__compareBytes(I,o,s+E.length,e),l=this.__isDelimiter(o,s+E.length,e),f=0===S.length?this.__autoDiscoverRecordDelimiter(o,s+E.length):this.__isRecordDelimiter(e,o,s+E.length);if(null!==O&&this.__isEscape(o,s,t)&&this.__isQuote(o,s+O.length))s+=O.length-1;else if(!e||l||f||i||r){this.state.quoting=!1,this.state.wasQuoting=!0,s+=E.length-1;continue}else if(!1===_){let t=this.__error(new n("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(e)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(void 0!==t)return t}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(E),s+=E.length-1}else if(0!==this.state.field.length){if(!1===_){let t=this.__infoField(),e=Object.keys(d).map(t=>!!d[t].equals(this.state.field.toString())&&t).filter(Boolean)[0],r=this.__error(new n("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(t.column)} at line ${t.lines}, value is ${JSON.stringify(this.state.field.toString(a))}`,e?`(${e} bom)`:void 0],this.options,t,{field:this.state.field}));if(void 0!==r)return r}}else{this.state.quoting=!0,s+=E.length-1;continue}if(!1===this.state.quoting){let e=this.__isRecordDelimiter(t,o,s);if(0!==e){if(this.state.commenting&&!1===this.state.wasQuoting&&0===this.state.record.length&&0===this.state.field.length)this.info.comment_lines++;else{if(!1===this.state.enabled&&this.info.lines+ +(!0===this.state.wasRowDelimiter)>=c){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),s+=e-1;continue}if(!0===b&&!1===this.state.wasQuoting&&0===this.state.record.length&&0===this.state.field.length){this.info.empty_lines++,s+=e-1;continue}this.info.bytes=this.state.bufBytesStart+s;let t=this.__onField();if(void 0!==t)return t;this.info.bytes=this.state.bufBytesStart+s+e;let n=this.__onRecord(r);if(void 0!==n)return n;if(-1!==v&&this.info.records>=v){this.state.stop=!0,i();return}}this.state.commenting=!1,s+=e-1;continue}if(this.state.commenting)continue;if(null!==I&&(!1===f||0===this.state.record.length&&0===this.state.field.length)&&0!==this.__compareBytes(I,o,s,t)){this.state.commenting=!0;continue}let n=this.__isDelimiter(o,s,t);if(0!==n){this.info.bytes=this.state.bufBytesStart+s;let t=this.__onField();if(void 0!==t)return t;s+=n-1;continue}}}if(!1===this.state.commenting&&0!==g&&this.state.record_length+this.state.field.length>g)return this.__error(new n("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${g}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let e=!1===p||!0===this.state.quoting||0!==this.state.field.length||!this.__isCharTrimable(o,s),l=!1===y||!1===this.state.wasQuoting;if(!0===e&&!0===l)this.state.field.append(t);else{if(!0===y&&!this.__isCharTrimable(o,s))return this.__error(new n("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","foun
1d non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));!1===e&&(s+=this.__isCharTrimable(o,s)-1);continue}}if(!0===e)if(!0===this.state.quoting){let t=this.__error(new n("CSV_QUOTE_NOT_CLOSED",["Quote Not Closed:",`the parsing is finished with an opening quote at line ${this.info.lines}`],this.options,this.__infoField()));if(void 0!==t)return t}else if(!0===this.state.wasQuoting||0!==this.state.record.length||0!==this.state.field.length){this.info.bytes=this.state.bufBytesStart+s;let t=this.__onField();if(void 0!==t)return t;let e=this.__onRecord(r);if(void 0!==e)return e}else!0===this.state.wasRowDelimiter?this.info.empty_lines++:!0===this.state.commenting&&this.info.comment_lines++;else this.state.bufBytesStart+=s,this.state.previousBuf=o.slice(s);!0===this.state.wasRowDelimiter&&(this.info.lines++,this.state.wasRowDelimiter=!1)},__onRecord:function(t){let{columns:e,group_columns_by_name:r,encoding:i,info:o,from:s,relax_column_count:l,relax_column_count_less:f,relax_column_count_more:a,raw:u,skip_records_with_empty_values:h}=this.options,{enabled:d,record:p}=this.state;if(!1===d)return this.__resetRecord();let g=p.length;if(!0===e)return!0===h&&c(p)?void this.__resetRecord():this.__firstLineToColumns(p);if(!1===e&&0===this.info.records&&(this.state.expectedRecordLength=g),g!==this.state.expectedRecordLength){let t=!1===e?new n("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${g} on line ${this.info.lines}`],this.options,this.__infoField(),{record:p}):new n("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${e.length},`,`got ${g} on line ${this.info.lines}`],this.options,this.__infoField(),{record:p});if(!0===l||!0===f&&g<this.state.expectedRecordLength||!0===a&&g>this.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=t;else{let e=this.__error(t);if(e)return e}}if(!0===h&&c(p))return void this.__resetRecord();if(!0===this.state.recordHasError){this.__resetRecord(),this.state.recordHasError=!1;return}if(this.info.records++,1===s||this.info.records>=s){let{objname:n}=this.options;if(!1!==e){let s={};for(let t=0,i=p.length;t<i;t++)void 0===e[t]||e[t].disabled||(!0===r&&void 0!==s[e[t].name]?Array.isArray(s[e[t].name])?s[e[t].name]=s[e[t].name].concat(p[t]):s[e[t].name]=[s[e[t].name],p[t]]:s[e[t].name]=p[t]);if(!0===u||!0===o){let e=Object.assign({record:s},!0===u?{raw:this.state.rawBuffer.toString(i)}:{},!0===o?{info:this.__infoRecord()}:{}),r=this.__push(void 0===n?e:[s[n],e],t);if(r)return r}else{let e=this.__push(void 0===n?s:[s[n],s],t);if(e)return e}}else if(!0===u||!0===o){let e=Object.assign({record:p},!0===u?{raw:this.state.rawBuffer.toString(i)}:{},!0===o?{info:this.__infoRecord()}:{}),r=this.__push(void 0===n?e:[p[n],e],t);if(r)return r}else{let e=this.__push(void 0===n?p:[p[n],p],t);if(e)return e}}this.__resetRecord()},__firstLineToColumns:function(t){let{firstLineToHeaders:e}=this.state;try{let r=void 0===e?t:e.call(null,t);if(!Array.isArray(r))return this.__error(new n("CSV_INVALID_COLUMN_MAPPING",["Invalid Column Mapping:","expect an array from column function,",`got ${JSON.stringify(r)}`],this.options,this.__infoField(),{headers:r}));let i=o(r);this.state.expectedRecordLength=i.length,this.options.columns=i,this.__resetRecord();return}catch(t){return t}},__resetRecord:function(){!0===this.options.raw&&this.state.rawBuffer.reset(),this.state.error=void 0,this.state.record=[],this.state.record_length=0},__onField:function(){let{cast:t,encoding:e,rtrim:r,max_record_size:i}=this.options,{enabled:n,wasQuoting:o}=this.state;if(!1===n)return this.__resetField();let s=this.state.field.toString(e);if(!0===r&&!1===o&&(s=s.trimRight()),!0===t){let[t,e]=this.__cast(s);if(void 0!==t)return t;s=e}this.state.record.push(s),0!==i&&"string"==typeof s&&(this.state.record_length+=s.length),this.__resetField()},__resetField:function(){this.state.field.reset(),this.state.wasQuoting=!1},__push:function(t,e){let{on_record:r}=this.options;if(void 0!==r){let e=this.__infoRecord();try{t=r.call(null,t,e)}catch(t){return t}if(null==t)return}e(t)},__cast:function(t){let{columns:e,relax_column_count:r}=this.options;if(!0===Array.isArray(e)&&r&&this.options.columns.length<=this.state.record.length)return[void 0,void 0];if(null!==this.state.castField)try{let e=this.__infoField();return[void 0,this.state.castField.call(null,t,e)]}catch(t){return[t]}if(this.__isFloat(t))return[void 0,parseFloat(t)];if(!1!==this.options.cast_date){let e=this.__infoField();return[void 0,this.options.cast_date.call(null,t,e)]}return[void 0,t]},__isCharTrimable:function(t,e){let{timchars:r}=this.state;t:for(let i=0;i<r.length;i++){let n=r[i];for(let r=0;r<n.length;r++)if(n[r]!==t[e+r])continue t;return n.length}return 0},__isFloat:function(t){return t-parseFloat(t)+1>=0},__compareBytes:function(t,e,r,i){if(t[0]!==i)return 0;let n=t.length;for(let i=1;i<n;
1i++)if(t[i]!==e[r+i])return 0;return n},__isDelimiter:function(t,e,r){let{delimiter:i,ignore_last_delimiters:n}=this.options;if(!0===n&&this.state.record.length===this.options.columns.length-1||!1!==n&&"number"==typeof n&&this.state.record.length===n-1)return 0;t:for(let n=0;n<i.length;n++){let o=i[n];if(o[0]===r){for(let r=1;r<o.length;r++)if(o[r]!==t[e+r])continue t;return o.length}}return 0},__isRecordDelimiter:function(t,e,r){let{record_delimiter:i}=this.options,n=i.length;t:for(let o=0;o<n;o++){let n=i[o],s=n.length;if(n[0]===t){for(let t=1;t<s;t++)if(n[t]!==e[r+t])continue t;return n.length}}return 0},__isEscape:function(t,e,r){let{escape:i}=this.options;if(null===i)return!1;let n=i.length;if(i[0]===r){for(let r=0;r<n;r++)if(i[r]!==t[e+r])return!1;return!0}return!1},__isQuote:function(t,e){let{quote:r}=this.options;if(null===r)return!1;let i=r.length;for(let n=0;n<i;n++)if(r[n]!==t[e+n])return!1;return!0},__autoDiscoverRecordDelimiter:function(t,e){let{encoding:r}=this.options,i=[h.from("\r\n",r),h.from("\n",r),h.from("\r",r)];e:for(let r=0;r<i.length;r++){let n=i[r].length;for(let o=0;o<n;o++)if(i[r][o]!==t[e+o])continue e;return this.options.record_delimiter.push(i[r]),this.state.recordDelimiterMaxLength=i[r].length,i[r].length}return 0},__error:function(t){let{encoding:e,raw:r,skip_records_with_error:i}=this.options,n="string"==typeof t?Error(t):t;if(!i)return n;this.state.recordHasError=!0,void 0!==this.options.on_skip&&this.options.on_skip(n,r?this.state.rawBuffer.toString(e):void 0)},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:t,raw:e,encoding:r}=this.options;return{...this.__infoDataSet(),error:this.state.error,header:!0===t,index:this.state.record.length,raw:e?this.state.rawBuffer.toString(r):void 0}},__infoField:function(){let{columns:t}=this.options,e=Array.isArray(t);return{...this.__infoRecord(),column:!0===e?t.length>this.state.record.length?t[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};var g=r(2700).hp;let m=function(t,e={}){"string"==typeof t&&(t=g.from(t));let r=e&&e.objname?{}:[],i=p(e),n=t=>{void 0===i.options.objname?r.push(t):r[t[0]]=t[1]},o=()=>{},s=i.parse(t,!1,n,o);if(void 0!==s)throw s;let l=i.parse(void 0,!0,n,o);if(void 0!==l)throw l;return 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.