vendor: 35,556 bytes, lines 1-670
1import { n as e } from "./rolldown-runtime-CMxvf4Kt.js"; 2function t(e2) { 3 var t2 = e2.length; 4 if (t2 % 4 > 0) throw Error(`Invalid string. Length must be a multiple of 4`); 5 var n2 = e2.indexOf(`=`); 6 n2 === -1 && (n2 = t2); 7 var r2 = n2 === t2 ? 0 : 4 - n2 % 4; 8 return [n2, r2]; 9} 10function n(e2) { 11 var n2 = t(e2), r2 = n2[0], i2 = n2[1]; 12 return (r2 + i2) * 3 / 4 - i2; 13} 14function r(e2, t2, n2) { 15 return (t2 + n2) * 3 / 4 - n2; 16} 17function i(e2) { 18 var n2, i2 = t(e2), a2 = i2[0], o2 = i2[1], s2 = new f(r(e2, a2, o2)), c2 = 0, l2 = o2 > 0 ? a2 - 4 : a2, u2; 19 for (u2 = 0; u2 < l2; u2 += 4) n2 = d[e2.charCodeAt(u2)] << 18 | d[e2.charCodeAt(u2 + 1)] << 12 | d[e2.charCodeAt(u2 + 2)] << 6 | d[e2.charCodeAt(u2 + 3)], s2[c2++] = n2 >> 16 & 255, s2[c2++] = n2 >> 8 & 255, s2[c2++] = n2 & 255; 20 return o2 === 2 && (n2 = d[e2.charCodeAt(u2)] << 2 | d[e2.charCodeAt(u2 + 1)] >> 4, s2[c2++] = n2 & 255), o2 === 1 && (n2 = d[e2.charCodeAt(u2)] << 10 | d[e2.charCodeAt(u2 + 1)] << 4 | d[e2.charCodeAt(u2 + 2)] >> 2, s2[c2++] = n2 >> 8 & 255, s2[c2++] = n2 & 255), s2; 21} 22function a(e2) { 23 return u[e2 >> 18 & 63] + u[e2 >> 12 & 63] + u[e2 >> 6 & 63] + u[e2 & 63]; 24} 25function o(e2, t2, n2) { 26 for (var r2, i2 = [], o2 = t2; o2 < n2; o2 += 3) r2 = (e2[o2] << 16 & 16711680) + (e2[o2 + 1] << 8 & 65280) + (e2[o2 + 2] & 255), i2.push(a(r2)); 27 return i2.join(``); 28} 29function s(e2) { 30 for (var t2, n2 = e2.length, r2 = n2 % 3, i2 = [], a2 = 16383, s2 = 0, c2 = n2 - r2; s2 < c2; s2 += a2) i2.push(o(e2, s2, s2 + a2 > c2 ? c2 : s2 + a2)); 31 return r2 === 1 ? (t2 = e2[n2 - 1], i2.push(u[t2 >> 2] + u[t2 << 4 & 63] + `==`)) : r2 === 2 && (t2 = (e2[n2 - 2] << 8) + e2[n2 - 1], i2.push(u[t2 >> 10] + u[t2 >> 4 & 63] + u[t2 << 2 & 63] + `=`)), i2.join(``); 32} 33var c, l, u, d, f, p, m, h, g, _, v = e((() => { 34 for (c = {}, l = {}, l.byteLength = n, l.toByteArray = i, l.fromByteArray = s, u = [], d = [], f = typeof Uint8Array < `u` ? Uint8Array : Array, p = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`, m = 0, h = p.length; m < h; ++m) u[m] = p[m], d[p.charCodeAt(m)] = m; 35 d[45] = 62, d[95] = 63, g = {}, g.read = function(e2, t2, n2, r2, i2) { 36 var a2, o2, s2 = i2 * 8 - r2 - 1, c2 = (1 << s2) - 1, l2 = c2 >> 1, u2 = -7, d2 = n2 ? i2 - 1 : 0, f2 = n2 ? -1 : 1, p2 = e2[t2 + d2]; 37 for (d2 += f2, a2 = p2 & (1 << -u2) - 1, p2 >>= -u2, u2 += s2; u2 > 0; a2 = a2 * 256 + e2[t2 + d2], d2 += f2, u2 -= 8) ; 38 for (o2 = a2 & (1 << -u2) - 1, a2 >>= -u2, u2 += r2; u2 > 0; o2 = o2 * 256 + e2[t2 + d2], d2 += f2, u2 -= 8) ; 39 if (a2 === 0) a2 = 1 - l2; 40 else if (a2 === c2) return o2 ? NaN : (p2 ? -1 : 1) * (1 / 0); 41 else o2 += 2 ** r2, a2 -= l2; 42 return (p2 ? -1 : 1) * o2 * 2 ** (a2 - r2); 43 }, g.write = function(e2, t2, n2, r2, i2, a2) { 44 var o2, s2, c2, l2 = a2 * 8 - i2 - 1, u2 = (1 << l2) - 1, d2 = u2 >> 1, f2 = i2 === 23 ? 2 ** -24 - 2 ** -77 : 0, p2 = r2 ? 0 : a2 - 1, m2 = r2 ? 1 : -1, h2 = +(t2 < 0 || t2 === 0 && 1 / t2 < 0); 45 for (t2 = Math.abs(t2), isNaN(t2) || t2 === 1 / 0 ? (s2 = +!!isNaN(t2), o2 = u2) : (o2 = Math.floor(Math.log(t2) / Math.LN2), t2 * (c2 = 2 ** -o2) < 1 && (o2--, c2 *= 2), o2 + d2 >= 1 ? t2 += f2 / c2 : t2 += f2 * 2 ** (1 - d2), t2 * c2 >= 2 && (o2++, c2 /= 2), o2 + d2 >= u2 ? (s2 = 0, o2 = u2) : o2 + d2 >= 1 ? (s2 = (t2 * c2 - 1) * 2 ** i2, o2 += d2) : (s2 = t2 * 2 ** (d2 - 1) * 2 ** i2, o2 = 0)); i2 >= 8; e2[n2 + p2] = s2 & 255, p2 += m2, s2 /= 256, i2 -= 8) ; 46 for (o2 = o2 << i2 | s2, l2 += i2; l2 > 0; e2[n2 + p2] = o2 & 255, p2 += m2, o2 /= 256, l2 -= 8) ; 47 e2[n2 + p2 - m2] |= h2 * 128; 48 }, (function(e2) { 49 let t2 = l, n2 = g, r2 = typeof Symbol == `function` && typeof Symbol.for == `function` ? /* @__PURE__ */ Symbol.for(`nodejs.util.inspect.custom`) : null; 50 e2.Buffer = d2, e2.SlowBuffer = te, e2.INSPECT_MAX_BYTES = 50; 51 let i2 = 2147483647; 52 e2.kMaxLength = i2; 53 let { Uint8Array: a2, ArrayBuffer: o2, SharedArrayBuffer: s2 } = globalThis; 54 d2.TYPED_ARRAY_SUPPORT = c2(), !d2.TYPED_ARRAY_SUPPORT && typeof console < `u` && typeof console.error == `function` && 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."); 55 function c2() { 56 try { 57 let e3 = new a2(1), t3 = { foo: function() { 58 return 42; 59 } }; 60 return Object.setPrototypeOf(t3, a2.prototype), Object.setPrototypeOf(e3, t3), e3.foo() === 42; 61 } catch { 62 return false; 63 } 64 } 65 Object.defineProperty(d2.prototype, "parent", { enumerable: true, get: function() { 66 if (d2.isBuffer(this)) return this.buffer; 67 } }), Object.defineProperty(d2.prototype, "offset", { enumerable: true, get: function() { 68 if (d2.isBuffer(this)) return this.byteOffset; 69 } }); 70 function u2(e3) { 71 if (e3 > i2) throw RangeError(`The value "` + e3 + `" is invalid for option "size"`); 72 let t3 = new a2(e3); 73 return Object.setPrototypeOf(t3, d2.prototype), t3; 74 } 75 function d2(e3, t3, n3) { 76 if (typeof e3 == `number`) { 77 if (typeof t3 == `string`) throw TypeError(`The "string" argument must be of type string. Received type number`); 78 return h2(e3); 79 } 80 return f2(e3, t3, n3); 81 } 82 d2.poolSize = 8192; 83 function f2(e3, t3, n3) { 84 if (typeof e3 == `string`) return _2(e3, t3); 85 if (o2.isView(e3)) return y(e3); 86 if (e3 == null) throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ` + typeof e3); 87 if (Z(e3, o2) || e3 && Z(e3.buffer, o2) || s2 !== void 0 && (Z(e3, s2) || e3 && Z(e3.buffer, s2))) return b(e3, t3, n3); 88 if (typeof e3 == `number`) throw TypeError(`The "value" argument must not be of type number. Received type number`); 89 let r3 = e3.valueOf && e3.valueOf(); 90 if (r3 != null && r3 !== e3) return d2.from(r3, t3, n3); 91 let i3 = ee(e3); 92 if (i3) return i3; 93 if (typeof Symbol < `u` && Symbol.toPrimitive != null && typeof e3[Symbol.toPrimitive] == `function`) return d2.from(e3[Symbol.toPrimitive](`string`), t3, n3); 94 throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ` + typeof e3); 95 } 96 d2.from = function(e3, t3, n3) { 97 return f2(e3, t3, n3); 98 }, Object.setPrototypeOf(d2.prototype, a2.prototype), Object.setPrototypeOf(d2, a2); 99 function p2(e3) { 100 if (typeof e3 != `number`) throw TypeError(`"size" argument must be of type number`); 101 if (e3 < 0) throw RangeError(`The value "` + e3 + `" is invalid for option "size"`); 102 } 103 function m2(e3, t3, n3) { 104 return p2(e3), e3 <= 0 || t3 === void 0 ? u2(e3) : typeof n3 == `string` ? u2(e3).fill(t3, n3) : u2(e3).fill(t3); 105 } 106 d2.alloc = function(e3, t3, n3) { 107 return m2(e3, t3, n3); 108 }; 109 function h2(e3) { 110 return p2(e3), u2(e3 < 0 ? 0 : x(e3) | 0); 111 } 112 d2.allocUnsafe = function(e3) { 113 return h2(e3); 114 }, d2.allocUnsafeSlow = function(e3) { 115 return h2(e3); 116 }; 117 function _2(e3, t3) { 118 if ((typeof t3 != `string` || t3 === ``) && (t3 = `utf8`), !d2.isEncoding(t3)) throw TypeError(`Unknown encoding: ` + t3); 119 let n3 = S(e3, t3) | 0, r3 = u2(n3), i3 = r3.write(e3, t3); 120 return i3 !== n3 && (r3 = r3.slice(0, i3)), r3; 121 } 122 function v2(e3) { 123 let t3 = e3.length < 0 ? 0 : x(e3.length) | 0, n3 = u2(t3); 124 for (let r3 = 0; r3 < t3; r3 += 1) n3[r3] = e3[r3] & 255; 125 return n3; 126 } 127 function y(e3) { 128 if (Z(e3, a2)) { 129 let t3 = new a2(e3); 130 return b(t3.buffer, t3.byteOffset, t3.byteLength); 131 } 132 return v2(e3); 133 } 134 function b(e3, t3, n3) { 135 if (t3 < 0 || e3.byteLength < t3) throw RangeError(`"offset" is outside of buffer bounds`); 136 if (e3.byteLength < t3 + (n3 || 0)) throw RangeError(`"length" is outside of buffer bounds`); 137 let r3; 138 return r3 = t3 === void 0 && n3 === void 0 ? new a2(e3) : n3 === void 0 ? new a2(e3, t3) : new a2(e3, t3, n3), Object.setPrototypeOf(r3, d2.prototype), r3; 139 } 140 function ee(e3) { 141 if (d2.isBuffer(e3)) { 142 let t3 = x(e3.length) | 0, n3 = u2(t3); 143 return n3.length === 0 || e3.copy(n3, 0, 0, t3), n3; 144 } 145 if (e3.length !== void 0) return typeof e3.length != `number` || Q(e3.length) ? u2(0) : v2(e3); 146 if (e3.type === `Buffer` && Array.isArray(e3.data)) return v2(e3.data); 147 } 148 function x(e3) { 149 if (e3 >= i2) throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x` + i2.toString(16) + ` bytes`); 150 return e3 | 0; 151 } 152 function te(e3) { 153 return +e3 != e3 && (e3 = 0), d2.alloc(+e3); 154 } 155 d2.isBuffer = function(e3) { 156 return e3 != null && e3._isBuffer === true && e3 !== d2.prototype; 157 }, d2.compare = function(e3, t3) { 158 if (Z(e3, a2) && (e3 = d2.from(e3, e3.offset, e3.byteLength)), Z(t3, a2) && (t3 = d2.from(t3, t3.offset, t3.byteLength)), !d2.isBuffer(e3) || !d2.isBuffer(t3)) throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`); 159 if (e3 === t3) return 0; 160 let n3 = e3.length, r3 = t3.length; 161 for (let i3 = 0, a3 = Math.min(n3, r3); i3 < a3; ++i3) if (e3[i3] !== t3[i3]) { 162 n3 = e3[i3], r3 = t3[i3]; 163 break; 164 } 165 return n3 < r3 ? -1 : +(r3 < n3); 166 }, d2.isEncoding = function(e3) { 167 switch (String(e3).toLowerCase()) { 168 case `hex`: 169 case `utf8`: 170 case `utf-8`: 171 case `ascii`: 172 case `latin1`: 173 case `binary`: 174 case `base64`: 175 case `ucs2`: 176 case `ucs-2`: 177 case `utf16le`: 178 case `utf-16le`: 179 return true; 180 default: 181 return false; 182 } 183 }, d2.concat = function(e3, t3) { 184 if (!Array.isArray(e3)) throw TypeError(`"list" argument must be an Array of Buffers`); 185 if (e3.length === 0) return d2.alloc(0); 186 let n3; 187 if (t3 === void 0) for (t3 = 0, n3 = 0; n3 < e3.length; ++n3) t3 += e3[n3].length; 188 let r3 = d2.allocUnsafe(t3), i3 = 0; 189 for (n3 = 0; n3 < e3.length; ++n3) { 190 let t4 = e3[n3]; 191 if (Z(t4, a2)) i3 + t4.length > r3.length ? (d2.isBuffer(t4) || (t4 = d2.from(t4)), t4.copy(r3, i3)) : a2.prototype.set.call(r3, t4, i3); 192 else if (d2.isBuffer(t4)) t4.copy(r3, i3); 193 else throw TypeError(`"list" argument must be an Array of Buffers`); 194 i3 += t4.length; 195 } 196 return r3; 197 }; 198 function S(e3, t3) { 199 if (d2.isBuffer(e3)) return e3.length; 200 if (o2.isView(e3) || Z(e3, o2)) return e3.byteLength; 201 if (typeof e3 != `string`) throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ` + typeof e3); 202 let n3 = e3.length, r3 = arguments.length > 2 && arguments[2] === true; 203 if (!r3 && n3 === 0) return 0; 204 let i3 = false; 205 for (; ; ) switch (t3) { 206 case `ascii`: 207 case `latin1`: 208 case `binary`: 209 return n3; 210 case `utf8`: 211 case `utf-8`: 212 return q(e3).length; 213 case `ucs2`: 214 case `ucs-2`: 215 case `utf16le`: 216 case `utf-16le`: 217 return n3 * 2; 218 case `hex`: 219 return n3 >>> 1; 220 case `base64`: 221 return Y(e3).length; 222 default: 223 if (i3) return r3 ? -1 : q(e3).length; 224 t3 = (`` + t3).toLowerCase(), i3 = true; 225 } 226 } 227 d2.byteLength = S; 228 function C(e3, t3, n3) { 229 let r3 = false; 230 if ((t3 === void 0 || t3 < 0) && (t3 = 0), t3 > this.length || ((n3 === void 0 || n3 > this.length) && (n3 = this.length), n3 <= 0) || (n3 >>>= 0, t3 >>>= 0, n3 <= t3)) return ``; 231 for (e3 || (e3 = `utf8`); ; ) switch (e3) { 232 case `hex`: 233 return se(this, t3, n3); 234 case `utf8`: 235 case `utf-8`: 236 return A(this, t3, n3); 237 case `ascii`: 238 return ae(this, t3, n3); 239 case `latin1`: 240 case `binary`: 241 return oe(this, t3, n3); 242 case `base64`: 243 return k(this, t3, n3); 244 case `ucs2`: 245 case `ucs-2`: 246 case `utf16le`: 247 case `utf-16le`: 248 return ce(this, t3, n3); 249 default: 250 if (r3) throw TypeError(`Unknown encoding: ` + e3); 251 e3 = (e3 + ``).toLowerCase(), r3 = true; 252 } 253 } 254 d2.prototype._isBuffer = true; 255 function w(e3, t3, n3) { 256 let r3 = e3[t3]; 257 e3[t3] = e3[n3], e3[n3] = r3; 258 } 259 d2.prototype.swap16 = function() { 260 let e3 = this.length; 261 if (e3 % 2 != 0) throw RangeError(`Buffer size must be a multiple of 16-bits`); 262 for (let t3 = 0; t3 < e3; t3 += 2) w(this, t3, t3 + 1); 263 return this; 264 }, d2.prototype.swap32 = function() { 265 let e3 = this.length; 266 if (e3 % 4 != 0) throw RangeError(`Buffer size must be a multiple of 32-bits`); 267 for (let t3 = 0; t3 < e3; t3 += 4) w(this, t3, t3 + 3), w(this, t3 + 1, t3 + 2); 268 return this; 269 }, d2.prototype.swap64 = function() { 270 let e3 = this.length; 271 if (e3 % 8 != 0) throw RangeError(`Buffer size must be a multiple of 64-bits`); 272 for (let t3 = 0; t3 < e3; t3 += 8) w(this, t3, t3 + 7), w(this, t3 + 1, t3 + 6), w(this, t3 + 2, t3 + 5), w(this, t3 + 3, t3 + 4); 273 return this; 274 }, d2.prototype.toString = function() { 275 let e3 = this.length; 276 return e3 === 0 ? `` : arguments.length === 0 ? A(this, 0, e3) : C.apply(this, arguments); 277 }, d2.prototype.toLocaleString = d2.prototype.toString, d2.prototype.equals = function(e3) { 278 if (!d2.isBuffer(e3)) throw TypeError(`Argument must be a Buffer`); 279 return this === e3 ? true : d2.compare(this, e3) === 0; 280 }, d2.prototype.inspect = function() { 281 let t3 = ``, n3 = e2.INSPECT_MAX_BYTES; 282 return t3 = this.toString(`hex`, 0, n3).replace(/(.{2})/g, `$1 `).trim(), this.length > n3 && (t3 += ` ... `), `<Buffer ` + t3 + `>`; 283 }, r2 && (d2.prototype[r2] = d2.prototype.inspect), d2.prototype.compare = function(e3, t3, n3, r3, i3) { 284 if (Z(e3, a2) && (e3 = d2.from(e3, e3.offset, e3.byteLength)), !d2.isBuffer(e3)) throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type ` + typeof e3); 285 if (t3 === void 0 && (t3 = 0), n3 === void 0 && (n3 = e3 ? e3.length : 0), r3 === void 0 && (r3 = 0), i3 === void 0 && (i3 = this.length), t3 < 0 || n3 > e3.length || r3 < 0 || i3 > this.length) throw RangeError(`out of range index`); 286 if (r3 >= i3 && t3 >= n3) return 0; 287 if (r3 >= i3) return -1; 288 if (t3 >= n3) return 1; 289 if (t3 >>>= 0, n3 >>>= 0, r3 >>>= 0, i3 >>>= 0, this === e3) return 0; 290 let o3 = i3 - r3, s3 = n3 - t3, c3 = Math.min(o3, s3), l2 = this.slice(r3, i3), u3 = e3.slice(t3, n3); 291 for (let e4 = 0; e4 < c3; ++e4) if (l2[e4] !== u3[e4]) { 292 o3 = l2[e4], s3 = u3[e4]; 293 break; 294 } 295 return o3 < s3 ? -1 : +(s3 < o3); 296 }; 297 function T(e3, t3, n3, r3, i3) { 298 if (e3.length === 0) return -1; 299 if (typeof n3 == `string` ? (r3 = n3, n3 = 0) : n3 > 2147483647 ? n3 = 2147483647 : n3 < -2147483648 && (n3 = -2147483648), n3 = +n3, Q(n3) && (n3 = i3 ? 0 : e3.length - 1), n3 < 0 && (n3 = e3.length + n3), n3 >= e3.length) { 300 if (i3) return -1; 301 n3 = e3.length - 1; 302 } else if (n3 < 0) if (i3) n3 = 0; 303 else return -1; 304 if (typeof t3 == `string` && (t3 = d2.from(t3, r3)), d2.isBuffer(t3)) return t3.length === 0 ? -1 : E(e3, t3, n3, r3, i3); 305 if (typeof t3 == `number`) return t3 &= 255, typeof a2.prototype.indexOf == `function` ? i3 ? a2.prototype.indexOf.call(e3, t3, n3) : a2.prototype.lastIndexOf.call(e3, t3, n3) : E(e3, [t3], n3, r3, i3); 306 throw TypeError(`val must be string, number or Buffer`); 307 } 308 function E(e3, t3, n3, r3, i3) { 309 let a3 = 1, o3 = e3.length, s3 = t3.length; 310 if (r3 !== void 0 && (r3 = String(r3).toLowerCase(), r3 === `ucs2` || r3 === `ucs-2` || r3 === `utf16le` || r3 === `utf-16le`)) { 311 if (e3.length < 2 || t3.length < 2) return -1; 312 a3 = 2, o3 /= 2, s3 /= 2, n3 /= 2; 313 } 314 function c3(e4, t4) { 315 return a3 === 1 ? e4[t4] : e4.readUInt16BE(t4 * a3); 316 } 317 let l2; 318 if (i3) { 319 let r4 = -1; 320 for (l2 = n3; l2 < o3; l2++) if (c3(e3, l2) === c3(t3, r4 === -1 ? 0 : l2 - r4)) { 321 if (r4 === -1 && (r4 = l2), l2 - r4 + 1 === s3) return r4 * a3; 322 } else r4 !== -1 && (l2 -= l2 - r4), r4 = -1; 323 } else for (n3 + s3 > o3 && (n3 = o3 - s3), l2 = n3; l2 >= 0; l2--) { 324 let n4 = true; 325 for (let r4 = 0; r4 < s3; r4++) if (c3(e3, l2 + r4) !== c3(t3, r4)) { 326 n4 = false; 327 break; 328 } 329 if (n4) return l2; 330 } 331 return -1; 332 } 333 d2.prototype.includes = function(e3, t3, n3) { 334 return this.indexOf(e3, t3, n3) !== -1; 335 }, d2.prototype.indexOf = function(e3, t3, n3) { 336 return T(this, e3, t3, n3, true); 337 }, d2.prototype.lastIndexOf = function(e3, t3, n3) { 338 return T(this, e3, t3, n3, false); 339 }; 340 function ne(e3, t3, n3, r3) { 341 n3 = Number(n3) || 0; 342 let i3 = e3.length - n3; 343 r3 ? (r3 = Number(r3), r3 > i3 && (r3 = i3)) : r3 = i3; 344 let a3 = t3.length; 345 r3 > a3 / 2 && (r3 = a3 / 2); 346 let o3; 347 for (o3 = 0; o3 < r3; ++o3) { 348 let r4 = parseInt(t3.substr(o3 * 2, 2), 16); 349 if (Q(r4)) return o3; 350 e3[n3 + o3] = r4; 351 } 352 return o3; 353 } 354 function re(e3, t3, n3, r3) { 355 return X(q(t3, e3.length - n3), e3, n3, r3); 356 } 357 function ie(e3, t3, n3, r3) { 358 return X(de(t3), e3, n3, r3); 359 } 360 function D(e3, t3, n3, r3) { 361 return X(Y(t3), e3, n3, r3); 362 } 363 function O(e3, t3, n3, r3) { 364 return X(J(t3, e3.length - n3), e3, n3, r3); 365 } 366 d2.prototype.write = function(e3, t3, n3, r3) { 367 if (t3 === void 0) r3 = `utf8`, n3 = this.length, t3 = 0; 368 else if (n3 === void 0 && typeof t3 == `string`) r3 = t3, n3 = this.length, t3 = 0; 369 else if (isFinite(t3)) t3 >>>= 0, isFinite(n3) ? (n3 >>>= 0, r3 === void 0 && (r3 = `utf8`)) : (r3 = n3, n3 = void 0); 370 else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`); 371 let i3 = this.length - t3; 372 if ((n3 === void 0 || n3 > i3) && (n3 = i3), e3.length > 0 && (n3 < 0 || t3 < 0) || t3 > this.length) throw RangeError(`Attempt to write outside buffer bounds`); 373 r3 || (r3 = `utf8`); 374 let a3 = false; 375 for (; ; ) switch (r3) { 376 case `hex`: 377 return ne(this, e3, t3, n3); 378 case `utf8`: 379 case `utf-8`: 380 return re(this, e3, t3, n3); 381 case `ascii`: 382 case `latin1`: 383 case `binary`: 384 return ie(this, e3, t3, n3); 385 case `base64`: 386 return D(this, e3, t3, n3); 387 case `ucs2`: 388 case `ucs-2`: 389 case `utf16le`: 390 case `utf-16le`: 391 return O(this, e3, t3, n3); 392 default: 393 if (a3) throw TypeError(`Unknown encoding: ` + r3); 394 r3 = (`` + r3).toLowerCase(), a3 = true; 395 } 396 }, d2.prototype.toJSON = function() { 397 return { type: `Buffer`, data: Array.prototype.slice.call(this._arr || this, 0) }; 398 }; 399 function k(e3, n3, r3) { 400 return n3 === 0 && r3 === e3.length ? t2.fromByteArray(e3) : t2.fromByteArray(e3.slice(n3, r3)); 401 } 402 function A(e3, t3, n3) { 403 n3 = Math.min(e3.length, n3); 404 let r3 = [], i3 = t3; 405 for (; i3 < n3; ) { 406 let t4 = e3[i3], a3 = null, o3 = t4 > 239 ? 4 : t4 > 223 ? 3 : t4 > 191 ? 2 : 1; 407 if (i3 + o3 <= n3) { 408 let n4, r4, s3, c3; 409 switch (o3) { 410 case 1: 411 t4 < 128 && (a3 = t4); 412 break; 413 case 2: 414 n4 = e3[i3 + 1], (n4 & 192) == 128 && (c3 = (t4 & 31) << 6 | n4 & 63, c3 > 127 && (a3 = c3)); 415 break; 416 case 3: 417 n4 = e3[i3 + 1], r4 = e3[i3 + 2], (n4 & 192) == 128 && (r4 & 192) == 128 && (c3 = (t4 & 15) << 12 | (n4 & 63) << 6 | r4 & 63, c3 > 2047 && (c3 < 55296 || c3 > 57343) && (a3 = c3)); 418 break; 419 case 4: 420 n4 = e3[i3 + 1], r4 = e3[i3 + 2], s3 = e3[i3 + 3], (n4 & 192) == 128 && (r4 & 192) == 128 && (s3 & 192) == 128 && (c3 = (t4 & 15) << 18 | (n4 & 63) << 12 | (r4 & 63) << 6 | s3 & 63, c3 > 65535 && c3 < 1114112 && (a3 = c3)); 421 } 422 } 423 a3 === null ? (a3 = 65533, o3 = 1) : a3 > 65535 && (a3 -= 65536, r3.push(a3 >>> 10 & 1023 | 55296), a3 = 56320 | a3 & 1023), r3.push(a3), i3 += o3; 424 } 425 return M(r3); 426 } 427 let j = 4096; 428 function M(e3) { 429 let t3 = e3.length; 430 if (t3 <= j) return String.fromCharCode.apply(String, e3); 431 let n3 = ``, r3 = 0; 432 for (; r3 < t3; ) n3 += String.fromCharCode.apply(String, e3.slice(r3, r3 += j)); 433 return n3; 434 } 435 function ae(e3, t3, n3) { 436 let r3 = ``; 437 n3 = Math.min(e3.length, n3); 438 for (let i3 = t3; i3 < n3; ++i3) r3 += String.fromCharCode(e3[i3] & 127); 439 return r3; 440 } 441 function oe(e3, t3, n3) { 442 let r3 = ``; 443 n3 = Math.min(e3.length, n3); 444 for (let i3 = t3; i3 < n3; ++i3) r3 += String.fromCharCode(e3[i3]); 445 return r3; 446 } 447 function se(e3, t3, n3) { 448 let r3 = e3.length; 449 (!t3 || t3 < 0) && (t3 = 0), (!n3 || n3 < 0 || n3 > r3) && (n3 = r3); 450 let i3 = ``; 451 for (let r4 = t3; r4 < n3; ++r4) i3 += fe[e3[r4]]; 452 return i3; 453 } 454 function ce(e3, t3, n3) { 455 let r3 = e3.slice(t3, n3), i3 = ``; 456 for (let e4 = 0; e4 < r3.length - 1; e4 += 2) i3 += String.fromCharCode(r3[e4] + r3[e4 + 1] * 256); 457 return i3; 458 } 459 d2.prototype.slice = function(e3, t3) { 460 let n3 = this.length; 461 e3 = ~~e3, t3 = t3 === void 0 ? n3 : ~~t3, e3 < 0 ? (e3 += n3, e3 < 0 && (e3 = 0)) : e3 > n3 && (e3 = n3), t3 < 0 ? (t3 += n3, t3 < 0 && (t3 = 0)) : t3 > n3 && (t3 = n3), t3 < e3 && (t3 = e3); 462 let r3 = this.subarray(e3, t3); 463 return Object.setPrototypeOf(r3, d2.prototype), r3; 464 }; 465 function N(e3, t3, n3) { 466 if (e3 % 1 != 0 || e3 < 0) throw RangeError(`offset is not uint`); 467 if (e3 + t3 > n3) throw RangeError(`Trying to access beyond buffer length`); 468 } 469 d2.prototype.readUintLE = d2.prototype.readUIntLE = function(e3, t3, n3) { 470 e3 >>>= 0, t3 >>>= 0, n3 || N(e3, t3, this.length); 471 let r3 = this[e3], i3 = 1, a3 = 0; 472 for (; ++a3 < t3 && (i3 *= 256); ) r3 += this[e3 + a3] * i3; 473 return r3; 474 }, d2.prototype.readUintBE = d2.prototype.readUIntBE = function(e3, t3, n3) { 475 e3 >>>= 0, t3 >>>= 0, n3 || N(e3, t3, this.length); 476 let r3 = this[e3 + --t3], i3 = 1; 477 for (; t3 > 0 && (i3 *= 256); ) r3 += this[e3 + --t3] * i3; 478 return r3; 479 }, d2.prototype.readUint8 = d2.prototype.readUInt8 = function(e3, t3) { 480 return e3 >>>= 0, t3 || N(e3, 1, this.length), this[e3]; 481 }, d2.prototype.readUint16LE = d2.prototype.readUInt16LE = function(e3, t3) { 482 return e3 >>>= 0, t3 || N(e3, 2, this.length), this[e3] | this[e3 + 1] << 8; 483 }, d2.prototype.readUint16BE = d2.prototype.readUInt16BE = function(e3, t3) { 484 return e3 >>>= 0, t3 || N(e3, 2, this.length), this[e3] << 8 | this[e3 + 1]; 485 }, d2.prototype.readUint32LE = d2.prototype.readUInt32LE = function(e3, t3) { 486 return e3 >>>= 0, t3 || N(e3, 4, this.length), (this[e3] | this[e3 + 1] << 8 | this[e3 + 2] << 16) + this[e3 + 3] * 16777216; 487 }, d2.prototype.readUint32BE = d2.prototype.readUInt32BE = function(e3, t3) { 488 return e3 >>>= 0, t3 || N(e3, 4, this.length), this[e3] * 16777216 + (this[e3 + 1] << 16 | this[e3 + 2] << 8 | this[e3 + 3]); 489 }, d2.prototype.readBigUInt64LE = $(function(e3) { 490 e3 >>>= 0, G(e3, `offset`); 491 let t3 = this[e3], n3 = this[e3 + 7]; 492 (t3 === void 0 || n3 === void 0) && K(e3, this.length - 8); 493 let r3 = t3 + this[++e3] * 2 ** 8 + this[++e3] * 2 ** 16 + this[++e3] * 2 ** 24, i3 = this[++e3] + this[++e3] * 2 ** 8 + this[++e3] * 2 ** 16 + n3 * 2 ** 24; 494 return BigInt(r3) + (BigInt(i3) << BigInt(32)); 495 }), d2.prototype.readBigUInt64BE = $(function(e3) { 496 e3 >>>= 0, G(e3, `offset`); 497 let t3 = this[e3], n3 = this[e3 + 7]; 498 (t3 === void 0 || n3 === void 0) && K(e3, this.length - 8); 499 let r3 = t3 * 2 ** 24 + this[++e3] * 2 ** 16 + this[++e3] * 2 ** 8 + this[++e3], i3 = this[++e3] * 2 ** 24 + this[++e3] * 2 ** 16 + this[++e3] * 2 ** 8 + n3; 500 return (BigInt(r3) << BigInt(32)) + BigInt(i3); 501 }), d2.prototype.readIntLE = function(e3, t3, n3) { 502 e3 >>>= 0, t3 >>>= 0, n3 || N(e3, t3, this.length); 503 let r3 = this[e3], i3 = 1, a3 = 0; 504 for (; ++a3 < t3 && (i3 *= 256); ) r3 += this[e3 + a3] * i3; 505 return i3 *= 128, r3 >= i3 && (r3 -= 2 ** (8 * t3)), r3; 506 }, d2.prototype.readIntBE = function(e3, t3, n3) { 507 e3 >>>= 0, t3 >>>= 0, n3 || N(e3, t3, this.length); 508 let r3 = t3, i3 = 1, a3 = this[e3 + --r3]; 509 for (; r3 > 0 && (i3 *= 256); ) a3 += this[e3 + --r3] * i3; 510 return i3 *= 128, a3 >= i3 && (a3 -= 2 ** (8 * t3)), a3; 511 }, d2.prototype.readInt8 = function(e3, t3) { 512 return e3 >>>= 0, t3 || N(e3, 1, this.length), this[e3] & 128 ? (255 - this[e3] + 1) * -1 : this[e3]; 513 }, d2.prototype.readInt16LE = function(e3, t3) { 514 e3 >>>= 0, t3 || N(e3, 2, this.length); 515 let n3 = this[e3] | this[e3 + 1] << 8; 516 return n3 & 32768 ? n3 | 4294901760 : n3; 517 }, d2.prototype.readInt16BE = function(e3, t3) { 518 e3 >>>= 0, t3 || N(e3, 2, this.length); 519 let n3 = this[e3 + 1] | this[e3] << 8; 520 return n3 & 32768 ? n3 | 4294901760 : n3; 521 }, d2.prototype.readInt32LE = function(e3, t3) { 522 return e3 >>>= 0, t3 || N(e3, 4, this.length), this[e3] | this[e3 + 1] << 8 | this[e3 + 2] << 16 | this[e3 + 3] << 24; 523 }, d2.prototype.readInt32BE = function(e3, t3) { 524 return e3 >>>= 0, t3 || N(e3, 4, this.length), this[e3] << 24 | this[e3 + 1] << 16 | this[e3 + 2] << 8 | this[e3 + 3]; 525 }, d2.prototype.readBigInt64LE = $(function(e3) { 526 e3 >>>= 0, G(e3, `offset`); 527 let t3 = this[e3], n3 = this[e3 + 7]; 528 (t3 === void 0 || n3 === void 0) && K(e3, this.length - 8); 529 let r3 = this[e3 + 4] + this[e3 + 5] * 2 ** 8 + this[e3 + 6] * 2 ** 16 + (n3 << 24); 530 return (BigInt(r3) << BigInt(32)) + BigInt(t3 + this[++e3] * 2 ** 8 + this[++e3] * 2 ** 16 + this[++e3] * 2 ** 24); 531 }), d2.prototype.readBigInt64BE = $(function(e3) { 532 e3 >>>= 0, G(e3, `offset`); 533 let t3 = this[e3], n3 = this[e3 + 7]; 534 (t3 === void 0 || n3 === void 0) && K(e3, this.length - 8); 535 let r3 = (t3 << 24) + this[++e3] * 2 ** 16 + this[++e3] * 2 ** 8 + this[++e3]; 536 return (BigInt(r3) << BigInt(32)) + BigInt(this[++e3] * 2 ** 24 + this[++e3] * 2 ** 16 + this[++e3] * 2 ** 8 + n3); 537 }), d2.prototype.readFloatLE = function(e3, t3) { 538 return e3 >>>= 0, t3 || N(e3, 4, this.length), n2.read(this, e3, true, 23, 4); 539 }, d2.prototype.readFloatBE = function(e3, t3) { 540 return e3 >>>= 0, t3 || N(e3, 4, this.length), n2.read(this, e3, false, 23, 4); 541 }, d2.prototype.readDoubleLE = function(e3, t3) { 542 return e3 >>>= 0, t3 || N(e3, 8, this.length), n2.read(this, e3, true, 52, 8); 543 }, d2.prototype.readDoubleBE = function(e3, t3) { 544 return e3 >>>= 0, t3 || N(e3, 8, this.length), n2.read(this, e3, false, 52, 8); 545 }; 546 function P(e3, t3, n3, r3, i3, a3) { 547 if (!d2.isBuffer(e3)) throw TypeError(`"buffer" argument must be a Buffer instance`); 548 if (t3 > i3 || t3 < a3) throw RangeError(`"value" argument is out of bounds`); 549 if (n3 + r3 > e3.length) throw RangeError(`Index out of range`); 550 } 551 d2.prototype.writeUintLE = d2.prototype.writeUIntLE = function(e3, t3, n3, r3) { 552 if (e3 = +e3, t3 >>>= 0, n3 >>>= 0, !r3) { 553 let r4 = 2 ** (8 * n3) - 1; 554 P(this, e3, t3, n3, r4, 0); 555 } 556 let i3 = 1, a3 = 0; 557 for (this[t3] = e3 & 255; ++a3 < n3 && (i3 *= 256); ) this[t3 + a3] = e3 / i3 & 255; 558 return t3 + n3; 559 }, d2.prototype.writeUintBE = d2.prototype.writeUIntBE = function(e3, t3, n3, r3) { 560 if (e3 = +e3, t3 >>>= 0, n3 >>>= 0, !r3) { 561 let r4 = 2 ** (8 * n3) - 1; 562 P(this, e3, t3, n3, r4, 0); 563 } 564 let i3 = n3 - 1, a3 = 1; 565 for (this[t3 + i3] = e3 & 255; --i3 >= 0 && (a3 *= 256); ) this[t3 + i3] = e3 / a3 & 255; 566 return t3 + n3; 567 }, d2.prototype.writeUint8 = d2.prototype.writeUInt8 = function(e3, t3, n3) { 568 return e3 = +e3, t3 >>>= 0, n3 || P(this, e3, t3, 1, 255, 0), this[t3] = e3 & 255, t3 + 1; 569 }, d2.prototype.writeUint16LE = d2.prototype.writeUInt16LE = function(e3, t3, n3) { 570 return e3 = +e3, t3 >>>= 0, n3 || P(this, e3, t3, 2, 65535, 0), this[t3] = e3 & 255, this[t3 + 1] = e3 >>> 8, t3 + 2; 571 }, d2.prototype.writeUint16BE = d2.prototype.writeUInt16BE = function(e3, t3, n3) { 572 return e3 = +e3, t3 >>>= 0, n3 || P(this, e3, t3, 2, 65535, 0), this[t3] = e3 >>> 8, this[t3 + 1] = e3 & 255, t3 + 2; 573 }, d2.prototype.writeUint32LE = d2.prototype.writeUInt32LE = function(e3, t3, n3) { 574 return e3 = +e3, t3 >>>= 0, n3 || P(this, e3, t3, 4, 4294967295, 0), this[t3 + 3] = e3 >>> 24, this[t3 + 2] = e3 >>> 16, this[t3 + 1] = e3 >>> 8, this[t3] = e3 & 255, t3 + 4; 575 }, d2.prototype.writeUint32BE = d2.prototype.writeUInt32BE = function(e3, t3, n3) { 576 return e3 = +e3, t3 >>>= 0, n3 || P(this, e3, t3, 4, 4294967295, 0), this[t3] = e3 >>> 24, this[t3 + 1] = e3 >>> 16, this[t3 + 2] = e3 >>> 8, this[t3 + 3] = e3 & 255, t3 + 4; 577 }; 578 function F(e3, t3, n3, r3, i3) { 579 W(t3, r3, i3, e3, n3, 7); 580 let a3 = Number(t3 & BigInt(4294967295)); 581 e3[n3++] = a3, a3 >>= 8, e3[n3++] = a3, a3 >>= 8, e3[n3++] = a3, a3 >>= 8, e3[n3++] = a3; 582 let o3 = Number(t3 >> BigInt(32) & BigInt(4294967295)); 583 return e3[n3++] = o3, o3 >>= 8, e3[n3++] = o3, o3 >>= 8, e3[n3++] = o3, o3 >>= 8, e3[n3++] = o3, n3; 584 } 585 function I(e3, t3, n3, r3, i3) { 586 W(t3, r3, i3, e3, n3, 7); 587 let a3 = Number(t3 & BigInt(4294967295)); 588 e3[n3 + 7] = a3, a3 >>= 8, e3[n3 + 6] = a3, a3 >>= 8, e3[n3 + 5] = a3, a3 >>= 8, e3[n3 + 4] = a3; 589 let o3 = Number(t3 >> BigInt(32) & BigInt(4294967295)); 590 return e3[n3 + 3] = o3, o3 >>= 8, e3[n3 + 2] = o3, o3 >>= 8, e3[n3 + 1] = o3, o3 >>= 8, e3[n3] = o3, n3 + 8; 591 } 592 d2.prototype.writeBigUInt64LE = $(function(e3, t3 = 0) { 593 return F(this, e3, t3, BigInt(0), BigInt(`0xffffffffffffffff`)); 594 }), d2.prototype.writeBigUInt64BE = $(function(e3, t3 = 0) { 595 return I(this, e3, t3, BigInt(0), BigInt(`0xffffffffffffffff`)); 596 }), d2.prototype.writeIntLE = function(e3, t3, n3, r3) { 597 if (e3 = +e3, t3 >>>= 0, !r3) { 598 let r4 = 2 ** (8 * n3 - 1); 599 P(this, e3, t3, n3, r4 - 1, -r4); 600 } 601 let i3 = 0, a3 = 1, o3 = 0; 602 for (this[t3] = e3 & 255; ++i3 < n3 && (a3 *= 256); ) e3 < 0 && o3 === 0 && this[t3 + i3 - 1] !== 0 && (o3 = 1), this[t3 + i3] = (e3 / a3 >> 0) - o3 & 255; 603 return t3 + n3; 604 }, d2.prototype.writeIntBE = function(e3, t3, n3, r3) { 605 if (e3 = +e3, t3 >>>= 0, !r3) { 606 let r4 = 2 ** (8 * n3 - 1); 607 P(this, e3, t3, n3, r4 - 1, -r4); 608 } 609 let i3 = n3 - 1, a3 = 1, o3 = 0; 610 for (this[t3 + i3] = e3 & 255; --i3 >= 0 && (a3 *= 256); ) e3 < 0 && o3 === 0 && this[t3 + i3 + 1] !== 0 && (o3 = 1), this[t3 + i3] = (e3 / a3 >> 0) - o3 & 255; 611 return t3 + n3; 612 }, d2.prototype.writeInt8 = function(e3, t3, n3) { 613 return e3 = +e3, t3 >>>= 0, n3 || P(this, e3, t3, 1, 127, -128), e3 < 0 && (e3 = 255 + e3 + 1), this[t3] = e3 & 255, t3 + 1; 614 }, d2.prototype.writeInt16LE = function(e3, t3, n3) { 615 return e3 = +e3, t3 >>>= 0, n3 || P(this, e3, t3, 2, 32767, -32768), this[t3] = e3 & 255, this[t3 + 1] = e3 >>> 8, t3 + 2; 616 }, d2.prototype.writeInt16BE = function(e3, t3, n3) { 617 return e3 = +e3, t3 >>>= 0, n3 || P(this, e3, t3, 2, 32767, -32768), this[t3] = e3 >>> 8, this[t3 + 1] = e3 & 255, t3 + 2; 618 }, d2.prototype.writeInt32LE = function(e3, t3, n3) { 619 return e3 = +e3, t3 >>>= 0, n3 || P(this, e3, t3, 4, 2147483647, -2147483648), this[t3] = e3 & 255, this[t3 + 1] = e3 >>> 8, this[t3 + 2] = e3 >>> 16, this[t3 + 3] = e3 >>> 24, t3 + 4; 620 }, d2.prototype.writeInt32BE = function(e3, t3, n3) { 621 return e3 = +e3, t3 >>>= 0, n3 || P(this, e3, t3, 4, 2147483647, -2147483648), e3 < 0 && (e3 = 4294967295 + e3 + 1), this[t3] = e3 >>> 24, this[t3 + 1] = e3 >>> 16, this[t3 + 2] = e3 >>> 8, this[t3 + 3] = e3 & 255, t3 + 4; 622 }, d2.prototype.writeBigInt64LE = $(function(e3, t3 = 0) { 623 return F(this, e3, t3, -BigInt(`0x8000000000000000`), BigInt(`0x7fffffffffffffff`)); 624 }), d2.prototype.writeBigInt64BE = $(function(e3, t3 = 0) { 625 return I(this, e3, t3, -BigInt(`0x8000000000000000`), BigInt(`0x7fffffffffffffff`)); 626 }); 627 function L(e3, t3, n3, r3, i3, a3) { 628 if (n3 + r3 > e3.length || n3 < 0) throw RangeError(`Index out of range`); 629 } 630 function R(e3, t3, r3, i3, a3) { 631 return t3 = +t3, r3 >>>= 0, a3 || L(e3, t3, r3, 4), n2.write(e3, t3, r3, i3, 23, 4), r3 + 4; 632 } 633 d2.prototype.writeFloatLE = function(e3, t3, n3) { 634 return R(this, e3, t3, true, n3); 635 }, d2.prototype.writeFloatBE = function(e3, t3, n3) { 636 return R(this, e3, t3, false, n3); 637 }; 638 function z(e3, t3, r3, i3, a3) { 639 return t3 = +t3, r3 >>>= 0, a3 || L(e3, t3, r3, 8), n2.write(e3, t3, r3, i3, 52, 8), r3 + 8; 640 } 641 d2.prototype.writeDoubleLE = function(e3, t3, n3) { 642 return z(this, e3, t3, true, n3); 643 }, d2.prototype.writeDoubleBE = function(e3, t3, n3) { 644 return z(this, e3, t3, false, n3); 645 }, d2.prototype.copy = function(e3, t3, n3, r3) { 646 if (!d2.isBuffer(e3)) throw TypeError(`argument should be a Buffer`); 647 if (n3 || (n3 = 0), !r3 && r3 !== 0 && (r3 = this.length), t3 >= e3.length && (t3 = e3.length), t3 || (t3 = 0), r3 > 0 && r3 < n3 && (r3 = n3), r3 === n3 || e3.length === 0 || this.length === 0) return 0; 648 if (t3 < 0) throw RangeError(`targetStart out of bounds`); 649 if (n3 < 0 || n3 >= this.length) throw RangeError(`Index out of range`); 650 if (r3 < 0) throw RangeError(`sourceEnd out of bounds`); 651 r3 > this.length && (r3 = this.length), e3.length - t3 < r3 - n3 && (r3 = e3.length - t3 + n3); 652 let i3 = r3 - n3; 653 return this === e3 && typeof a2.prototype.copyWithin == `function` ? this.copyWithin(t3, n3, r3) : a2.prototype.set.call(e3, this.subarray(n3, r3), t3), i3; 654 }, d2.prototype.fill = function(e3, t3, n3, r3) { 655 if (typeof e3 == `string`) { 656 if (typeof t3 == `string` ? (r3 = t3, t3 = 0, n3 = this.length) : typeof n3 == `string` && (r3 = n3, n3 = this.length), r3 !== void 0 && typeof r3 != `string`) throw TypeError(`encoding must be a string`); 657 if (typeof r3 == `string` && !d2.isEncoding(r3)) throw TypeError(`Unknown encoding: ` + r3); 658 if (e3.length === 1) { 659 let t4 = e3.charCodeAt(0); 660 (r3 === `utf8` && t4 < 128 || r3 === `latin1`) && (e3 = t4); 661 } 662 } else typeof e3 == `number` ? e3 &= 255 : typeof e3 == `boolean` && (e3 = Number(e3)); 663 if (t3 < 0 || this.length < t3 || this.length < n3) throw RangeError(`Out of range index`); 664 if (n3 <= t3) return this; 665 t3 >>>= 0, n3 = n3 === void 0 ? this.length : n3 >>> 0, e3 || (e3 = 0); 666 let i3; 667 if (typeof e3 == `number`) for (i3 = t3; i3 < n3; ++i3) this[i3] = e3; 668 else { 669 let a3 = d2.isBuffer(e3) ? e3 : d2.from(e3, r3), o3 = a3.length; 670 if (o3 === 0) throw TypeError(`The value "` + e3 + `" is invali
670d for argument "value"`); 671 for (i3 = 0; i3 < n3 - t3; ++i3) this[i3 + t3] = a3[i3 % o3]; 672 } 673 return this; 674 }; 675 let B = {}; 676 function V(e3, t3, n3) { 677 B[e3] = class extends n3 { 678 constructor() { 679 super(), Object.defineProperty(this, "message", { value: t3.apply(this, arguments), writable: true, configurable: true }), this.name = `${this.name} [${e3}]`, this.stack, delete this.name; 680 } 681 get code() { 682 return e3; 683 } 684 set code(e4) { 685 Object.defineProperty(this, "code", { configurable: true, enumerable: true, value: e4, writable: true }); 686 } 687 toString() { 688 return `${this.name} [${e3}]: ${this.message}`; 689 } 690 }; 691 } 692 V(`ERR_BUFFER_OUT_OF_BOUNDS`, function(e3) { 693 return e3 ? `${e3} is outside of buffer bounds` : `Attempt to access memory outside buffer bounds`; 694 }, RangeError), V(`ERR_INVALID_ARG_TYPE`, function(e3, t3) { 695 return `The "${e3}" argument must be of type number. Received type ${typeof t3}`; 696 }, TypeError), V(`ERR_OUT_OF_RANGE`, function(e3, t3, n3) { 697 let r3 = `The value of "${e3}" is out of range.`, i3 = n3; 698 return Number.isInteger(n3) && Math.abs(n3) > 2 ** 32 ? i3 = H(String(n3)) : typeof n3 == `bigint` && (i3 = String(n3), (n3 > BigInt(2) ** BigInt(32) || n3 < -(BigInt(2) ** BigInt(32))) && (i3 = H(i3)), i3 += `n`), r3 += ` It must be ${t3}. Received ${i3}`, r3; 699 }, RangeError); 700 function H(e3) { 701 let t3 = ``, n3 = e3.length, r3 = +(e3[0] === `-`); 702 for (; n3 >= r3 + 4; n3 -= 3) t3 = `_${e3.slice(n3 - 3, n3)}${t3}`; 703 return `${e3.slice(0, n3)}${t3}`; 704 } 705 function U(e3, t3, n3) { 706 G(t3, `offset`), (e3[t3] === void 0 || e3[t3 + n3] === void 0) && K(t3, e3.length - (n3 + 1)); 707 } 708 function W(e3, t3, n3, r3, i3, a3) { 709 if (e3 > n3 || e3 < t3) { 710 let r4 = typeof t3 == `bigint` ? `n` : ``, i4; 711 throw i4 = a3 > 3 ? t3 === 0 || t3 === BigInt(0) ? `>= 0${r4} and < 2${r4} ** ${(a3 + 1) * 8}${r4}` : `>= -(2${r4} ** ${(a3 + 1) * 8 - 1}${r4}) and < 2 ** ${(a3 + 1) * 8 - 1}${r4}` : `>= ${t3}${r4} and <= ${n3}${r4}`, new B.ERR_OUT_OF_RANGE(`value`, i4, e3); 712 } 713 U(r3, i3, a3); 714 } 715 function G(e3, t3) { 716 if (typeof e3 != `number`) throw new B.ERR_INVALID_ARG_TYPE(t3, `number`, e3); 717 } 718 function K(e3, t3, n3) { 719 throw Math.floor(e3) === e3 ? t3 < 0 ? new B.ERR_BUFFER_OUT_OF_BOUNDS() : new B.ERR_OUT_OF_RANGE(n3 || `offset`, `>= ${+!!n3} and <= ${t3}`, e3) : (G(e3, n3), new B.ERR_OUT_OF_RANGE(n3 || `offset`, `an integer`, e3)); 720 } 721 let le = /[^+/0-9A-Za-z-_]/g; 722 function ue(e3) { 723 if (e3 = e3.split(`=`)[0], e3 = e3.trim().replace(le, ``), e3.length < 2) return ``; 724 for (; e3.length % 4 != 0; ) e3 += `=`; 725 return e3; 726 } 727 function q(e3, t3) { 728 t3 || (t3 = 1 / 0); 729 let n3, r3 = e3.length, i3 = null, a3 = []; 730 for (let o3 = 0; o3 < r3; ++o3) { 731 if (n3 = e3.charCodeAt(o3), n3 > 55295 && n3 < 57344) { 732 if (!i3) { 733 if (n3 > 56319) { 734 (t3 -= 3) > -1 && a3.push(239, 191, 189); 735 continue; 736 } else if (o3 + 1 === r3) { 737 (t3 -= 3) > -1 && a3.push(239, 191, 189); 738 continue; 739 } 740 i3 = n3; 741 continue; 742 } 743 if (n3 < 56320) { 744 (t3 -= 3) > -1 && a3.push(239, 191, 189), i3 = n3; 745 continue; 746 } 747 n3 = (i3 - 55296 << 10 | n3 - 56320) + 65536; 748 } else i3 && (t3 -= 3) > -1 && a3.push(239, 191, 189); 749 if (i3 = null, n3 < 128) { 750 if (--t3 < 0) break; 751 a3.push(n3); 752 } else if (n3 < 2048) { 753 if ((t3 -= 2) < 0) break; 754 a3.push(n3 >> 6 | 192, n3 & 63 | 128); 755 } else if (n3 < 65536) { 756 if ((t3 -= 3) < 0) break; 757 a3.push(n3 >> 12 | 224, n3 >> 6 & 63 | 128, n3 & 63 | 128); 758 } else if (n3 < 1114112) { 759 if ((t3 -= 4) < 0) break; 760 a3.push(n3 >> 18 | 240, n3 >> 12 & 63 | 128, n3 >> 6 & 63 | 128, n3 & 63 | 128); 761 } else throw Error(`Invalid code point`); 762 } 763 return a3; 764 } 765 function de(e3) { 766 let t3 = []; 767 for (let n3 = 0; n3 < e3.length; ++n3) t3.push(e3.charCodeAt(n3) & 255); 768 return t3; 769 } 770 function J(e3, t3) { 771 let n3, r3, i3, a3 = []; 772 for (let o3 = 0; o3 < e3.length && !((t3 -= 2) < 0); ++o3) n3 = e3.charCodeAt(o3), r3 = n3 >> 8, i3 = n3 % 256, a3.push(i3), a3.push(r3); 773 return a3; 774 } 775 function Y(e3) { 776 return t2.toByteArray(ue(e3)); 777 } 778 function X(e3, t3, n3, r3) { 779 let i3; 780 for (i3 = 0; i3 < r3 && !(i3 + n3 >= t3.length || i3 >= e3.length); ++i3) t3[i3 + n3] = e3[i3]; 781 return i3; 782 } 783 function Z(e3, t3) { 784 return e3 instanceof t3 || e3 != null && e3.constructor != null && e3.constructor.name != null && e3.constructor.name === t3.name; 785 } 786 function Q(e3) { 787 return e3 !== e3; 788 } 789 let fe = (function() { 790 let e3 = `0123456789abcdef`, t3 = Array(256); 791 for (let n3 = 0; n3 < 16; ++n3) { 792 let r3 = n3 * 16; 793 for (let i3 = 0; i3 < 16; ++i3) t3[r3 + i3] = e3[n3] + e3[i3]; 794 } 795 return t3; 796 })(); 797 function $(e3) { 798 return typeof BigInt > `u` ? pe : e3; 799 } 800 function pe() { 801 throw Error(`BigInt not supported`); 802 } 803 })(c), _ = c.Buffer, c.Blob, c.BlobOptions, c.Buffer, c.File, c.FileOptions, c.INSPECT_MAX_BYTES, c.SlowBuffer, c.TranscodeEncoding, c.atob, c.btoa, c.constants, c.isAscii, c.isUtf8, c.kMaxLength, c.kStringMaxLength, c.resolveObjectURL, c.transcode; 804})); 805export { 806 v as n, 807 _ as t 808};
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.